* [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform
@ 2023-08-07 12:18 Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 1/9] dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for PM7550BA Rohit Agarwal
` (9 more replies)
0 siblings, 10 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Hi,
Changes in v2:
- Added compatible for pm7550ba for eusb2 repeater and used it in DT.
- Addressed some minor comments from Konrad to add fixes tag, labels
and update the labels
This series add support of pmics that are found in SDX75 platform and
add the corresponding regulators in the IDP platform as well.
It also parallely updates the pmic found in SDX65 to PM7250b and add pinctrl
support for the same pmic chip.
This series is based on the new header inclusion[1] and movement of the
regulators level from rpmpd to rpmhpd[2].
This series can be picked after successfully picking [2] and [3] as [1] has
already been applied.
[1] https://lore.kernel.org/all/1689744162-9421-1-git-send-email-quic_rohiagar@quicinc.com/
[2] https://lore.kernel.org/all/1690781104-2290-1-git-send-email-quic_rohiagar@quicinc.com/
[3] https://lore.kernel.org/all/1690461813-22564-1-git-send-email-quic_rohiagar@quicinc.com/
Thanks,
Rohit.
Rohit Agarwal (9):
dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for
PM7550BA
arm64: dts: qcom: sdx75: Add spmi node
arm64: dts: qcom: Add pinctrl gpio support for pm7250b
arm64: dts: qcom: Add pm7550ba PMIC dtsi
arm64: dts: qcom: Add pmx75 PMIC dtsi
ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65
arm64: dts: qcom: sdx75-idp: Add pmics supported in SDX75
arm64: dts: qcom: sdx75: Add rpmhpd node
arm64: dts: qcom: sdx75-idp: Add regulator nodes
.../bindings/phy/qcom,snps-eusb2-repeater.yaml | 7 +-
arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts | 2 +-
arch/arm64/boot/dts/qcom/pm7250b.dtsi | 10 +
arch/arm64/boot/dts/qcom/pm7550ba.dtsi | 70 +++++++
arch/arm64/boot/dts/qcom/pmx75.dtsi | 64 ++++++
arch/arm64/boot/dts/qcom/sdx75-idp.dts | 230 +++++++++++++++++++++
arch/arm64/boot/dts/qcom/sdx75.dtsi | 74 +++++++
7 files changed, 455 insertions(+), 2 deletions(-)
create mode 100644 arch/arm64/boot/dts/qcom/pm7550ba.dtsi
create mode 100644 arch/arm64/boot/dts/qcom/pmx75.dtsi
--
2.7.4
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 1/9] dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for PM7550BA
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 2/9] arm64: dts: qcom: sdx75: Add spmi node Rohit Agarwal
` (8 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add a dt-bindings compatible string for the Qualcomm's PM7550BA PMIC.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
.../devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml
index 083fda5..029569d 100644
--- a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml
@@ -15,7 +15,12 @@ description:
properties:
compatible:
- const: qcom,pm8550b-eusb2-repeater
+ oneOf:
+ - items:
+ - enum:
+ - qcom,pm7550ba-eusb2-repeater
+ - const: qcom,pm8550b-eusb2-repeater
+ - const: qcom,pm8550b-eusb2-repeater
reg:
maxItems: 1
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 2/9] arm64: dts: qcom: sdx75: Add spmi node
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 1/9] dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for PM7550BA Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 3/9] arm64: dts: qcom: Add pinctrl gpio support for pm7250b Rohit Agarwal
` (7 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add SPMI node to SDX75 dtsi.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm64/boot/dts/qcom/sdx75.dtsi | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdx75.dtsi b/arch/arm64/boot/dts/qcom/sdx75.dtsi
index 21d5d55..6e2d07f 100644
--- a/arch/arm64/boot/dts/qcom/sdx75.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdx75.dtsi
@@ -469,6 +469,29 @@
interrupt-controller;
};
+ spmi_bus: spmi@c400000 {
+ compatible = "qcom,spmi-pmic-arb";
+ reg = <0x0 0x0c400000 0x0 0x3000>,
+ <0x0 0x0c500000 0x0 0x400000>,
+ <0x0 0x0c440000 0x0 0x80000>,
+ <0x0 0x0c4c0000 0x0 0x10000>,
+ <0x0 0x0c42d000 0x0 0x4000>;
+ reg-names = "core",
+ "chnls",
+ "obsrvr",
+ "intr",
+ "cnfg";
+ interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "periph_irq";
+ qcom,ee = <0>;
+ qcom,channel = <0>;
+ qcom,bus-id = <0>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+ interrupt-controller;
+ #interrupt-cells = <4>;
+ };
+
tlmm: pinctrl@f000000 {
compatible = "qcom,sdx75-tlmm";
reg = <0x0 0x0f000000 0x0 0x400000>;
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 3/9] arm64: dts: qcom: Add pinctrl gpio support for pm7250b
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 1/9] dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for PM7550BA Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 2/9] arm64: dts: qcom: sdx75: Add spmi node Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 4/9] arm64: dts: qcom: Add pm7550ba PMIC dtsi Rohit Agarwal
` (6 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add pinctrl gpio dts node for pm7250b.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/pm7250b.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi
index daa6f1d..f40b9f8 100644
--- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi
@@ -147,6 +147,16 @@
#size-cells = <0>;
status = "disabled";
};
+
+ pm7250b_gpios: pinctrl@c000 {
+ compatible = "qcom,pm7250b-gpio", "qcom,spmi-gpio";
+ reg = <0xc000>;
+ gpio-controller;
+ gpio-ranges = <&pm7250b_gpios 0 0 12>;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
};
pmic@3 {
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 4/9] arm64: dts: qcom: Add pm7550ba PMIC dtsi
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
` (2 preceding siblings ...)
2023-08-07 12:18 ` [PATCH v2 3/9] arm64: dts: qcom: Add pinctrl gpio support for pm7250b Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 5/9] arm64: dts: qcom: Add pmx75 " Rohit Agarwal
` (5 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add dtsi for pm7550ba PMIC found in Qualcomm platforms.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm64/boot/dts/qcom/pm7550ba.dtsi | 70 ++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/pm7550ba.dtsi
diff --git a/arch/arm64/boot/dts/qcom/pm7550ba.dtsi b/arch/arm64/boot/dts/qcom/pm7550ba.dtsi
new file mode 100644
index 0000000..a970b5b
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/pm7550ba.dtsi
@@ -0,0 +1,70 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
+
+/ {
+ thermal-zones {
+ pm7550ba-thermal {
+ polling-delay-passive = <100>;
+ polling-delay = <0>;
+
+ thermal-sensors = <&pm7550ba_temp>;
+
+ trips {
+ trip0 {
+ temperature = <95000>;
+ hysteresis = <0>;
+ type = "passive";
+ };
+
+ trip1 {
+ temperature = <115000>;
+ hysteresis = <0>;
+ type = "hot";
+ };
+
+ trip2 {
+ temperature = <145000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+ };
+ };
+};
+
+&spmi_bus {
+ pm7550ba: pmic@7 {
+ compatible = "qcom,pm7550ba", "qcom,spmi-pmic";
+ reg = <7 SPMI_USID>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pm7550ba_temp_alarm: temp-alarm@a00 {
+ compatible = "qcom,spmi-temp-alarm";
+ reg = <0xa00>;
+ interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
+ #thermal-sensor-cells = <0>;
+ };
+
+ pm7550ba_gpios: gpio@8800 {
+ compatible = "qcom,pm7550ba-gpio", "qcom,spmi-gpio";
+ reg = <0x8800>;
+ gpio-controller;
+ gpio-ranges = <&pm7550ba_gpios 0 0 8>;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+
+ pm7550ba_eusb2_repeater: phy@fd00 {
+ compatible = "qcom,pm7550ba-eusb2-repeater", "qcom,pm8550b-eusb2-repeater";
+ reg = <0xfd00>;
+ #phy-cells = <0>;
+ };
+ };
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 5/9] arm64: dts: qcom: Add pmx75 PMIC dtsi
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
` (3 preceding siblings ...)
2023-08-07 12:18 ` [PATCH v2 4/9] arm64: dts: qcom: Add pm7550ba PMIC dtsi Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 6/9] ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65 Rohit Agarwal
` (4 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add dtsi for pmx75 PMIC found in Qualcomm platforms.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm64/boot/dts/qcom/pmx75.dtsi | 64 +++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/pmx75.dtsi
diff --git a/arch/arm64/boot/dts/qcom/pmx75.dtsi b/arch/arm64/boot/dts/qcom/pmx75.dtsi
new file mode 100644
index 0000000..cd02206
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/pmx75.dtsi
@@ -0,0 +1,64 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
+
+/ {
+ thermal-zones {
+ pmx75-thermal {
+ polling-delay-passive = <100>;
+ polling-delay = <0>;
+
+ thermal-sensors = <&pmx75_temp>;
+
+ trips {
+ trip0 {
+ temperature = <95000>;
+ hysteresis = <0>;
+ type = "passive";
+ };
+
+ trip1 {
+ temperature = <115000>;
+ hysteresis = <0>;
+ type = "hot";
+ };
+
+ trip2 {
+ temperature = <145000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+ };
+ };
+};
+
+&spmi_bus {
+ pmx75: pmic@1 {
+ compatible = "qcom,pmx75", "qcom,spmi-pmic";
+ reg = <1 SPMI_USID>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pmx75_temp_alarm: temp-alarm@a00 {
+ compatible = "qcom,spmi-temp-alarm";
+ reg = <0xa00>;
+ interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
+ #thermal-sensor-cells = <0>;
+ };
+
+ pmx75_gpios: gpio@8800 {
+ compatible = "qcom,pmx75-gpio", "qcom,spmi-gpio";
+ reg = <0x8800>;
+ gpio-controller;
+ gpio-ranges = <&pmx75_gpios 0 0 16>;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+ };
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 6/9] ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
` (4 preceding siblings ...)
2023-08-07 12:18 ` [PATCH v2 5/9] arm64: dts: qcom: Add pmx75 " Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 7/9] arm64: dts: qcom: sdx75-idp: Add pmics supported in SDX75 Rohit Agarwal
` (3 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Update the pmic used in sdx65 platform to pm7250b.
Fixes: 26380f298b2b (ARM: dts: qcom: sdx65-mtp: Add pmk8350b and pm8150b pmic)
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts b/arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts
index 02d8d6e..fcf1c51 100644
--- a/arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts
+++ b/arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts
@@ -7,7 +7,7 @@
#include "qcom-sdx65.dtsi"
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <arm64/qcom/pmk8350.dtsi>
-#include <arm64/qcom/pm8150b.dtsi>
+#include <arm64/qcom/pm7250b.dtsi>
#include "qcom-pmx65.dtsi"
/ {
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 7/9] arm64: dts: qcom: sdx75-idp: Add pmics supported in SDX75
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
` (5 preceding siblings ...)
2023-08-07 12:18 ` [PATCH v2 6/9] ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65 Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 8/9] arm64: dts: qcom: sdx75: Add rpmhpd node Rohit Agarwal
` (2 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
SDX75-idp features pmk8550, pmx75 and pm7550ba pmic, so include them.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm64/boot/dts/qcom/sdx75-idp.dts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdx75-idp.dts b/arch/arm64/boot/dts/qcom/sdx75-idp.dts
index cbe5cdf..0da8c98 100644
--- a/arch/arm64/boot/dts/qcom/sdx75-idp.dts
+++ b/arch/arm64/boot/dts/qcom/sdx75-idp.dts
@@ -6,6 +6,9 @@
/dts-v1/;
#include "sdx75.dtsi"
+#include "pm7550ba.dtsi"
+#include "pmk8550.dtsi"
+#include "pmx75.dtsi"
/ {
model = "Qualcomm Technologies, Inc. SDX75 IDP";
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 8/9] arm64: dts: qcom: sdx75: Add rpmhpd node
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
` (6 preceding siblings ...)
2023-08-07 12:18 ` [PATCH v2 7/9] arm64: dts: qcom: sdx75-idp: Add pmics supported in SDX75 Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 9/9] arm64: dts: qcom: sdx75-idp: Add regulator nodes Rohit Agarwal
2023-08-07 12:21 ` [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add rpmhpd node and opps for this node to the SDX75 dts.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm64/boot/dts/qcom/sdx75.dtsi | 51 +++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdx75.dtsi b/arch/arm64/boot/dts/qcom/sdx75.dtsi
index 6e2d07f..124dd99 100644
--- a/arch/arm64/boot/dts/qcom/sdx75.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdx75.dtsi
@@ -9,6 +9,7 @@
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/clock/qcom,sdx75-gcc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/power/qcom,rpmhpd.h>
#include <dt-bindings/soc/qcom,rpmh-rsc.h>
/ {
@@ -666,6 +667,56 @@
clock-names = "xo";
#clock-cells = <1>;
};
+
+ rpmhpd: power-controller {
+ compatible = "qcom,sdx75-rpmhpd";
+ #power-domain-cells = <1>;
+ operating-points-v2 = <&rpmhpd_opp_table>;
+
+ rpmhpd_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ rpmhpd_opp_ret: opp-16 {
+ opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
+ };
+
+ rpmhpd_opp_min_svs: opp-48 {
+ opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
+ };
+
+ rpmhpd_opp_low_svs: opp-64 {
+ opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
+ };
+
+ rpmhpd_opp_svs: opp-128 {
+ opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
+ };
+
+ rpmhpd_opp_svs_l1: opp-192 {
+ opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
+ };
+
+ rpmhpd_opp_nom: opp-256 {
+ opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
+ };
+
+ rpmhpd_opp_nom_l1: opp-320 {
+ opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
+ };
+
+ rpmhpd_opp_nom_l2: opp-336 {
+ opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
+ };
+
+ rpmhpd_opp_turbo: opp-384 {
+ opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
+ };
+
+ rpmhpd_opp_turbo_l1: opp-416 {
+ opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
+ };
+ };
+ };
};
cpufreq_hw: cpufreq@17d91000 {
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 9/9] arm64: dts: qcom: sdx75-idp: Add regulator nodes
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
` (7 preceding siblings ...)
2023-08-07 12:18 ` [PATCH v2 8/9] arm64: dts: qcom: sdx75: Add rpmhpd node Rohit Agarwal
@ 2023-08-07 12:18 ` Rohit Agarwal
2023-08-07 12:21 ` [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:18 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add all the regulators along with labels found on SDX75 IDP.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm64/boot/dts/qcom/sdx75-idp.dts | 227 +++++++++++++++++++++++++++++++++
1 file changed, 227 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdx75-idp.dts b/arch/arm64/boot/dts/qcom/sdx75-idp.dts
index 0da8c98..10d1587 100644
--- a/arch/arm64/boot/dts/qcom/sdx75-idp.dts
+++ b/arch/arm64/boot/dts/qcom/sdx75-idp.dts
@@ -5,6 +5,7 @@
/dts-v1/;
+#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "sdx75.dtsi"
#include "pm7550ba.dtsi"
#include "pmk8550.dtsi"
@@ -17,6 +18,232 @@
aliases {
serial0 = &uart1;
};
+
+ vph_pwr: vph-pwr-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vph_pwr";
+ regulator-min-microvolt = <3700000>;
+ regulator-max-microvolt = <3700000>;
+ };
+
+ vph_ext: vph-ext-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vph_ext";
+ regulator-min-microvolt = <3700000>;
+ regulator-max-microvolt = <3700000>;
+ };
+
+ vreg_bob_3p3: pmx75-bob {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_bob_3p3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ vin-supply = <&vph_ext>;
+ };
+};
+
+&apps_rsc {
+ pmx75-rpmh-regulators {
+ compatible = "qcom,pmx75-rpmh-regulators";
+ qcom,pmic-id = "b";
+
+ vdd-s1-supply = <&vph_pwr>;
+ vdd-s2-supply = <&vph_pwr>;
+ vdd-s3-supply = <&vph_pwr>;
+ vdd-s4-supply = <&vph_pwr>;
+ vdd-s5-supply = <&vph_pwr>;
+ vdd-s6-supply = <&vph_pwr>;
+ vdd-s7-supply = <&vph_pwr>;
+ vdd-s8-supply = <&vph_pwr>;
+ vdd-s9-supply = <&vph_pwr>;
+ vdd-s10-supply = <&vph_pwr>;
+ vdd-l1-supply = <&vreg_s2b_1p224>;
+ vdd-l2-l18-supply = <&vreg_s2b_1p224>;
+ vdd-l3-supply = <&vreg_s7b_0p936>;
+ vdd-l4-l16-supply = <&vreg_s7b_0p936>;
+ vdd-l5-l6-supply = <&vreg_s4b_1p824>;
+ vdd-l7-supply = <&vreg_s7b_0p936>;
+ vdd-l8-l9-supply = <&vreg_s8b_0p824>;
+ vdd-l10-supply = <&vreg_bob_3p3>;
+ vdd-l11-l13-supply = <&vreg_bob_3p3>;
+ vdd-l12-supply = <&vreg_s2b_1p224>;
+ vdd-l14-supply = <&vreg_s3b_0p752>;
+ vdd-l15-supply = <&vreg_s2b_1p224>;
+ vdd-l17-supply = <&vreg_s8b_0p824>;
+ vdd-l19-supply = <&vreg_s7b_0p936>;
+ vdd-l20-l21-supply = <&vreg_s7b_0p936>;
+
+ vreg_s2b_1p224: smps2 {
+ regulator-name = "vreg_s2b_1p224";
+ regulator-min-microvolt = <1224000>;
+ regulator-max-microvolt = <1350000>;
+ };
+
+ vreg_s3b_0p752: smps3 {
+ regulator-name = "vreg_s3b_0p752";
+ regulator-min-microvolt = <684000>;
+ regulator-max-microvolt = <904000>;
+ };
+
+ vreg_s4b_1p824: smps4 {
+ regulator-name = "vreg_s4b_1p824";
+ regulator-min-microvolt = <1824000>;
+ regulator-max-microvolt = <1904000>;
+ };
+
+ vreg_s7b_0p936: smps7 {
+ regulator-name = "vreg_s7b_0p936";
+ regulator-min-microvolt = <352000>;
+ regulator-max-microvolt = <1060000>;
+ };
+
+ vreg_s8b_0p824: smps8 {
+ regulator-name = "vreg_s8b_0p824";
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <1100000>;
+ };
+
+ vreg_l1b_1p2: ldo1 {
+ regulator-name = "vreg_l1b_1p2";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l2b_1p128: ldo2 {
+ regulator-name = "vreg_l2b_1p128";
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <1160000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l3b_0p896: ldo3 {
+ regulator-name = "vreg_l3b_0p896";
+ regulator-min-microvolt = <300000>;
+ regulator-max-microvolt = <1040000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l4b_0p88: ldo4 {
+ regulator-name = "vreg_l4b_0p88";
+ regulator-min-microvolt = <864000>;
+ regulator-max-microvolt = <912000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l5b_1p776: ldo5 {
+ regulator-name = "vreg_l5b_1p776";
+ regulator-min-microvolt = <1770000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l6b_1p8: ldo6 {
+ regulator-name = "vreg_l6b_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l7b_0p904: ldo7 {
+ regulator-name = "vreg_l7b_0p904";
+ regulator-min-microvolt = <300000>;
+ regulator-max-microvolt = <960000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l8b_0p8: ldo8 {
+ regulator-name = "vreg_l8b_0p8";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l9b_0p752: ldo9 {
+ regulator-name = "vreg_l9b_0p752";
+ regulator-min-microvolt = <752000>;
+ regulator-max-microvolt = <800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l10b_3p08: ldo10 {
+ regulator-name = "vreg_l10b_3p08";
+ regulator-min-microvolt = <3008000>;
+ regulator-max-microvolt = <3088000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l11b_1p8: ldo11 {
+ regulator-name = "vreg_l11b_1p8";
+ regulator-min-microvolt = <1704000>;
+ regulator-max-microvolt = <2928000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l12b_1p2: ldo12 {
+ regulator-name = "vreg_l12b_1p2";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l13b_1p8: ldo13 {
+ regulator-name = "vreg_l13b_1p8";
+ regulator-min-microvolt = <1704000>;
+ regulator-max-microvolt = <2928000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l14b_0p624: ldo14 {
+ regulator-name = "vreg_l14b_0p624";
+ regulator-min-microvolt = <300000>;
+ regulator-max-microvolt = <800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l15b_1p2: ldo15 {
+ regulator-name = "vreg_l15b_1p2";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l16b_0p912: ldo16 {
+ regulator-name = "vreg_l16b_0p912";
+ regulator-min-microvolt = <880000>;
+ regulator-max-microvolt = <920000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l17b_0p752: ldo17 {
+ regulator-name = "vreg_l17b_0p752";
+ regulator-min-microvolt = <684000>;
+ regulator-max-microvolt = <957600>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l19b_0p952: ldo19 {
+ regulator-name = "vreg_l19b_0p952";
+ regulator-min-microvolt = <900000>;
+ regulator-max-microvolt = <960000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l20b_0p912: ldo20 {
+ regulator-name = "vreg_l20b_0p912";
+ regulator-min-microvolt = <912000>;
+ regulator-max-microvolt = <952000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l21b_0p856: ldo21 {
+ regulator-name = "vreg_l21b_0p856";
+ regulator-min-microvolt = <300000>;
+ regulator-max-microvolt = <1000000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+ };
};
&chosen {
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
` (8 preceding siblings ...)
2023-08-07 12:18 ` [PATCH v2 9/9] arm64: dts: qcom: sdx75-idp: Add regulator nodes Rohit Agarwal
@ 2023-08-07 12:21 ` Rohit Agarwal
9 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:21 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti
On 8/7/2023 5:48 PM, Rohit Agarwal wrote:
> Hi,
>
> Changes in v2:
> - Added compatible for pm7550ba for eusb2 repeater and used it in DT.
> - Addressed some minor comments from Konrad to add fixes tag, labels
> and update the labels
>
> This series add support of pmics that are found in SDX75 platform and
> add the corresponding regulators in the IDP platform as well.
> It also parallely updates the pmic found in SDX65 to PM7250b and add pinctrl
> support for the same pmic chip.
> This series is based on the new header inclusion[1] and movement of the
> regulators level from rpmpd to rpmhpd[2].
> This series can be picked after successfully picking [2] and [3] as [1] has
> already been applied.
>
> [1] https://lore.kernel.org/all/1689744162-9421-1-git-send-email-quic_rohiagar@quicinc.com/
> [2] https://lore.kernel.org/all/1690781104-2290-1-git-send-email-quic_rohiagar@quicinc.com/
> [3] https://lore.kernel.org/all/1690461813-22564-1-git-send-email-quic_rohiagar@quicinc.com/
>
> Thanks,
> Rohit.
Sorry for the spam please ignore this. Will resend version 2.
Thanks,
Rohit.
>
> Rohit Agarwal (9):
> dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for
> PM7550BA
> arm64: dts: qcom: sdx75: Add spmi node
> arm64: dts: qcom: Add pinctrl gpio support for pm7250b
> arm64: dts: qcom: Add pm7550ba PMIC dtsi
> arm64: dts: qcom: Add pmx75 PMIC dtsi
> ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65
> arm64: dts: qcom: sdx75-idp: Add pmics supported in SDX75
> arm64: dts: qcom: sdx75: Add rpmhpd node
> arm64: dts: qcom: sdx75-idp: Add regulator nodes
>
> .../bindings/phy/qcom,snps-eusb2-repeater.yaml | 7 +-
> arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts | 2 +-
> arch/arm64/boot/dts/qcom/pm7250b.dtsi | 10 +
> arch/arm64/boot/dts/qcom/pm7550ba.dtsi | 70 +++++++
> arch/arm64/boot/dts/qcom/pmx75.dtsi | 64 ++++++
> arch/arm64/boot/dts/qcom/sdx75-idp.dts | 230 +++++++++++++++++++++
> arch/arm64/boot/dts/qcom/sdx75.dtsi | 74 +++++++
> 7 files changed, 455 insertions(+), 2 deletions(-)
> create mode 100644 arch/arm64/boot/dts/qcom/pm7550ba.dtsi
> create mode 100644 arch/arm64/boot/dts/qcom/pmx75.dtsi
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 2/9] arm64: dts: qcom: sdx75: Add spmi node
2023-08-07 12:28 Rohit Agarwal
@ 2023-08-07 12:28 ` Rohit Agarwal
0 siblings, 0 replies; 12+ messages in thread
From: Rohit Agarwal @ 2023-08-07 12:28 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, vkoul, kishon, robh+dt,
krzysztof.kozlowski+dt, conor+dt, abel.vesa
Cc: linux-arm-msm, devicetree, linux-kernel, linux-phy, quic_pkondeti,
Rohit Agarwal
Add SPMI node to SDX75 dtsi.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
---
arch/arm64/boot/dts/qcom/sdx75.dtsi | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdx75.dtsi b/arch/arm64/boot/dts/qcom/sdx75.dtsi
index 21d5d55..6e2d07f 100644
--- a/arch/arm64/boot/dts/qcom/sdx75.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdx75.dtsi
@@ -469,6 +469,29 @@
interrupt-controller;
};
+ spmi_bus: spmi@c400000 {
+ compatible = "qcom,spmi-pmic-arb";
+ reg = <0x0 0x0c400000 0x0 0x3000>,
+ <0x0 0x0c500000 0x0 0x400000>,
+ <0x0 0x0c440000 0x0 0x80000>,
+ <0x0 0x0c4c0000 0x0 0x10000>,
+ <0x0 0x0c42d000 0x0 0x4000>;
+ reg-names = "core",
+ "chnls",
+ "obsrvr",
+ "intr",
+ "cnfg";
+ interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "periph_irq";
+ qcom,ee = <0>;
+ qcom,channel = <0>;
+ qcom,bus-id = <0>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+ interrupt-controller;
+ #interrupt-cells = <4>;
+ };
+
tlmm: pinctrl@f000000 {
compatible = "qcom,sdx75-tlmm";
reg = <0x0 0x0f000000 0x0 0x400000>;
--
2.7.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2023-08-07 12:29 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 12:18 [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 1/9] dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for PM7550BA Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 2/9] arm64: dts: qcom: sdx75: Add spmi node Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 3/9] arm64: dts: qcom: Add pinctrl gpio support for pm7250b Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 4/9] arm64: dts: qcom: Add pm7550ba PMIC dtsi Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 5/9] arm64: dts: qcom: Add pmx75 " Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 6/9] ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65 Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 7/9] arm64: dts: qcom: sdx75-idp: Add pmics supported in SDX75 Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 8/9] arm64: dts: qcom: sdx75: Add rpmhpd node Rohit Agarwal
2023-08-07 12:18 ` [PATCH v2 9/9] arm64: dts: qcom: sdx75-idp: Add regulator nodes Rohit Agarwal
2023-08-07 12:21 ` [PATCH v2 0/9] Add pmics supported in Qualcomm's SDX75 platform Rohit Agarwal
-- strict thread matches above, loose matches on Subject: below --
2023-08-07 12:28 Rohit Agarwal
2023-08-07 12:28 ` [PATCH v2 2/9] arm64: dts: qcom: sdx75: Add spmi node Rohit Agarwal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).