linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084
@ 2023-09-12  7:49 Stephan Gerhold
  2023-09-12  7:49 ` [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909 Stephan Gerhold
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Stephan Gerhold @ 2023-09-12  7:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold,
	Stephan Gerhold

Add the necessary definitions for the PM8909, PM8019 and PMA8084 PMIC to
the qcom_spmi-regulator driver to allow reading the actual voltages
applied to the hardware at runtime. This is mainly intended for
debugging since the regulators are usually controlled through the
RPM firmware (via qcom_smd-regulator).

These PMICs are used on totally different platforms (MSM8909, MDM9607, 
MSM8974/APQ8084). Each PMIC addition is independent and useful on it 
own. I only bundled them to simplify review.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
Stephan Gerhold (6):
      dt-bindings: regulator: qcom,spmi: Document PM8909
      regulator: qcom_spmi: Add PM8909 regulators
      dt-bindings: regulator: qcom,spmi: Document PM8019
      regulator: qcom_spmi: Add PM8019 regulators
      dt-bindings: regulator: qcom,spmi: Document PMA8084
      regulator: qcom_spmi: Add PMA8084 regulators

 .../bindings/regulator/qcom,spmi-regulator.yaml    | 68 ++++++++++++++-
 drivers/regulator/qcom_spmi-regulator.c            | 96 ++++++++++++++++++++++
 2 files changed, 163 insertions(+), 1 deletion(-)
---
base-commit: b03f047d9f28d6e68dce6ca66383b80ad66ec1ce
change-id: 20230906-spmi-pm8909-d7aea168a5a9

Best regards,
-- 
Stephan Gerhold <stephan@gerhold.net>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909
  2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
@ 2023-09-12  7:49 ` Stephan Gerhold
  2023-09-12 17:52   ` Rob Herring
  2023-09-12  7:49 ` [PATCH 2/6] regulator: qcom_spmi: Add PM8909 regulators Stephan Gerhold
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 11+ messages in thread
From: Stephan Gerhold @ 2023-09-12  7:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold,
	Stephan Gerhold

From: Stephan Gerhold <stephan.gerhold@kernkonzept.com>

Document the qcom,pm8909-regulators compatible together with the
necessary supply properties to allow interfacing via the hardware
regulator registers directly via SPMI. This is mainly intended for
debugging since the regulators are typically controlled via the RPM
firmware (qcom,rpm-pm8909-regulators compatible).

Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
 .../bindings/regulator/qcom,spmi-regulator.yaml       | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
index bdf34c2de96b..765c31246cc7 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
@@ -19,6 +19,7 @@ properties:
       - qcom,pm8005-regulators
       - qcom,pm8226-regulators
       - qcom,pm8841-regulators
+      - qcom,pm8909-regulators
       - qcom,pm8916-regulators
       - qcom,pm8941-regulators
       - qcom,pm8950-regulators
@@ -206,6 +207,24 @@ allOf:
       patternProperties:
         "^vdd_s[1-8]-supply$": true
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,pm8909-regulators
+    then:
+      properties:
+        vdd_s1-supply: true
+        vdd_s2-supply: true
+        vdd_l1-supply: true
+        vdd_l2_l5-supply: true
+        vdd_l3_l6_l10-supply: true
+        vdd_l4_l7-supply: true
+        vdd_l8_l11_l15_l18-supply: true
+        vdd_l9_l12_l14_l17-supply: true
+        vdd_l13-supply: true
+
   - if:
       properties:
         compatible:

-- 
2.42.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/6] regulator: qcom_spmi: Add PM8909 regulators
  2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
  2023-09-12  7:49 ` [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909 Stephan Gerhold
@ 2023-09-12  7:49 ` Stephan Gerhold
  2023-09-12  7:49 ` [PATCH 3/6] dt-bindings: regulator: qcom,spmi: Document PM8019 Stephan Gerhold
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Stephan Gerhold @ 2023-09-12  7:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold,
	Stephan Gerhold

From: Stephan Gerhold <stephan.gerhold@kernkonzept.com>

Add the necessary definitions for the PM8909 PMIC to the
qcom_spmi-regulator driver to allow reading the actual voltages applied
to the hardware at runtime. This is mainly intended for debugging since
the regulators are usually controlled through the RPM firmware (via
qcom_smd-regulator).

Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
 drivers/regulator/qcom_spmi-regulator.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c
index c95f6e9c7ab5..3c7ab6416b61 100644
--- a/drivers/regulator/qcom_spmi-regulator.c
+++ b/drivers/regulator/qcom_spmi-regulator.c
@@ -2168,6 +2168,29 @@ static const struct spmi_regulator_data pm8841_regulators[] = {
 	{ }
 };
 
+static const struct spmi_regulator_data pm8909_regulators[] = {
+	{ "s1", 0x1400, "vdd_s1", },
+	{ "s2", 0x1700, "vdd_s2", },
+	{ "l1", 0x4000, "vdd_l1", },
+	{ "l2", 0x4100, "vdd_l2_l5", },
+	{ "l3", 0x4200, "vdd_l3_l6_l10", },
+	{ "l4", 0x4300, "vdd_l4_l7", },
+	{ "l5", 0x4400, "vdd_l2_l5", },
+	{ "l6", 0x4500, "vdd_l3_l6_l10", },
+	{ "l7", 0x4600, "vdd_l4_l7", },
+	{ "l8", 0x4700, "vdd_l8_l11_l15_l18", },
+	{ "l9", 0x4800, "vdd_l9_l12_l14_l17", },
+	{ "l10", 0x4900, "vdd_l3_l6_l10", },
+	{ "l11", 0x4a00, "vdd_l8_l11_l15_l18", },
+	{ "l12", 0x4b00, "vdd_l9_l12_l14_l17", },
+	{ "l13", 0x4c00, "vdd_l13", },
+	{ "l14", 0x4d00, "vdd_l9_l12_l14_l17", },
+	{ "l15", 0x4e00, "vdd_l8_l11_l15_l18", },
+	{ "l17", 0x5000, "vdd_l9_l12_l14_l17", },
+	{ "l18", 0x5100, "vdd_l8_l11_l15_l18", },
+	{ }
+};
+
 static const struct spmi_regulator_data pm8916_regulators[] = {
 	{ "s1", 0x1400, "vdd_s1", },
 	{ "s2", 0x1700, "vdd_s2", },
@@ -2357,6 +2380,7 @@ static const struct of_device_id qcom_spmi_regulator_match[] = {
 	{ .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators },
 	{ .compatible = "qcom,pm8226-regulators", .data = &pm8226_regulators },
 	{ .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators },
+	{ .compatible = "qcom,pm8909-regulators", .data = &pm8909_regulators },
 	{ .compatible = "qcom,pm8916-regulators", .data = &pm8916_regulators },
 	{ .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators },
 	{ .compatible = "qcom,pm8950-regulators", .data = &pm8950_regulators },

-- 
2.42.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/6] dt-bindings: regulator: qcom,spmi: Document PM8019
  2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
  2023-09-12  7:49 ` [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909 Stephan Gerhold
  2023-09-12  7:49 ` [PATCH 2/6] regulator: qcom_spmi: Add PM8909 regulators Stephan Gerhold
@ 2023-09-12  7:49 ` Stephan Gerhold
  2023-09-12 17:53   ` Rob Herring
  2023-09-12  7:49 ` [PATCH 4/6] regulator: qcom_spmi: Add PM8019 regulators Stephan Gerhold
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 11+ messages in thread
From: Stephan Gerhold @ 2023-09-12  7:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold

Document the qcom,pm8019-regulators compatible together with the
necessary supply properties to allow interfacing via the hardware
regulator registers directly via SPMI. This is mainly intended for
debugging since the regulators are typically controlled via the RPM
firmware (qcom,rpm-pm8019-regulators compatible).

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 .../bindings/regulator/qcom,spmi-regulator.yaml      | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
index 765c31246cc7..fe6898a89ea1 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
@@ -17,6 +17,7 @@ properties:
       - qcom,pm660l-regulators
       - qcom,pm8004-regulators
       - qcom,pm8005-regulators
+      - qcom,pm8019-regulators
       - qcom,pm8226-regulators
       - qcom,pm8841-regulators
       - qcom,pm8909-regulators
@@ -177,6 +178,25 @@ allOf:
       patternProperties:
         "^vdd_s[1-4]-supply$": true
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,pm8019-regulators
+    then:
+      properties:
+        vdd_l1-supply: true
+        vdd_l2_l3-supply: true
+        vdd_l4_l5_l6-supply: true
+        vdd_l7_l8_l11-supply: true
+        vdd_l9-supply: true
+        vdd_l10-supply: true
+        vdd_l12-supply: true
+        vdd_l13_l14-supply: true
+      patternProperties:
+        "^vdd_s[1-4]-supply$": true
+
   - if:
       properties:
         compatible:

-- 
2.42.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/6] regulator: qcom_spmi: Add PM8019 regulators
  2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
                   ` (2 preceding siblings ...)
  2023-09-12  7:49 ` [PATCH 3/6] dt-bindings: regulator: qcom,spmi: Document PM8019 Stephan Gerhold
@ 2023-09-12  7:49 ` Stephan Gerhold
  2023-09-12  7:49 ` [PATCH 5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084 Stephan Gerhold
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Stephan Gerhold @ 2023-09-12  7:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold

Add the necessary definitions for the PM8019 PMIC to the
qcom_spmi-regulator driver to allow reading the actual voltages applied
to the hardware at runtime. This is mainly intended for debugging since
the regulators are usually controlled through the RPM firmware (via
qcom_smd-regulator).

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 drivers/regulator/qcom_spmi-regulator.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c
index 3c7ab6416b61..13fe1c73a547 100644
--- a/drivers/regulator/qcom_spmi-regulator.c
+++ b/drivers/regulator/qcom_spmi-regulator.c
@@ -2118,6 +2118,28 @@ static const struct spmi_regulator_data pm8005_regulators[] = {
 	{ }
 };
 
+static const struct spmi_regulator_data pm8019_regulators[] = {
+	{ "s1", 0x1400, "vdd_s1", },
+	{ "s2", 0x1700, "vdd_s2", },
+	{ "s3", 0x1a00, "vdd_s3", },
+	{ "s4", 0x1d00, "vdd_s4", },
+	{ "l1", 0x4000, "vdd_l1", },
+	{ "l2", 0x4100, "vdd_l2_l3", },
+	{ "l3", 0x4200, "vdd_l2_l3", },
+	{ "l4", 0x4300, "vdd_l4_l5_l6", },
+	{ "l5", 0x4400, "vdd_l4_l5_l6", },
+	{ "l6", 0x4500, "vdd_l4_l5_l6", },
+	{ "l7", 0x4600, "vdd_l7_l8_l11", },
+	{ "l8", 0x4700, "vdd_l7_l8_l11", },
+	{ "l9", 0x4800, "vdd_l9", },
+	{ "l10", 0x4900, "vdd_l10", },
+	{ "l11", 0x4a00, "vdd_l7_l8_l11", },
+	{ "l12", 0x4b00, "vdd_l12", },
+	{ "l13", 0x4c00, "vdd_l13_l14", },
+	{ "l14", 0x4d00, "vdd_l13_l14", },
+	{ }
+};
+
 static const struct spmi_regulator_data pm8226_regulators[] = {
 	{ "s1", 0x1400, "vdd_s1", },
 	{ "s2", 0x1700, "vdd_s2", },
@@ -2378,6 +2400,7 @@ static const struct of_device_id qcom_spmi_regulator_match[] = {
 	{ .compatible = "qcom,pm660l-regulators", .data = &pm660l_regulators },
 	{ .compatible = "qcom,pm8004-regulators", .data = &pm8004_regulators },
 	{ .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators },
+	{ .compatible = "qcom,pm8019-regulators", .data = &pm8019_regulators },
 	{ .compatible = "qcom,pm8226-regulators", .data = &pm8226_regulators },
 	{ .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators },
 	{ .compatible = "qcom,pm8909-regulators", .data = &pm8909_regulators },

-- 
2.42.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084
  2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
                   ` (3 preceding siblings ...)
  2023-09-12  7:49 ` [PATCH 4/6] regulator: qcom_spmi: Add PM8019 regulators Stephan Gerhold
@ 2023-09-12  7:49 ` Stephan Gerhold
  2023-09-12 17:53   ` Rob Herring
  2023-09-12  7:49 ` [PATCH 6/6] regulator: qcom_spmi: Add PMA8084 regulators Stephan Gerhold
  2023-09-27  8:58 ` [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Mark Brown
  6 siblings, 1 reply; 11+ messages in thread
From: Stephan Gerhold @ 2023-09-12  7:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold

Document the qcom,pma8084-regulators compatible together with the
necessary supply properties to allow interfacing via the hardware
regulator registers directly via SPMI. This is mainly intended for
debugging since the regulators are typically controlled via the RPM
firmware (qcom,rpm-pma8084-regulators compatible).

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 .../bindings/regulator/qcom,spmi-regulator.yaml    | 29 +++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
index fe6898a89ea1..7a1b7d2abbd4 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml
@@ -25,6 +25,7 @@ properties:
       - qcom,pm8941-regulators
       - qcom,pm8950-regulators
       - qcom,pm8994-regulators
+      - qcom,pma8084-regulators
       - qcom,pmi8994-regulators
       - qcom,pmp8074-regulators
       - qcom,pms405-regulators
@@ -34,7 +35,7 @@ properties:
     $ref: /schemas/types.yaml#/definitions/phandle
 
 patternProperties:
-  "^(5vs[1-2]|(l|s)[1-9][0-9]?|lvs[1-3])$":
+  "^(5vs[1-2]|(l|s)[1-9][0-9]?|lvs[1-4])$":
     description: List of regulators and its properties
     type: object
     $ref: regulator.yaml#
@@ -334,6 +335,32 @@ allOf:
       patternProperties:
         "^vdd_s[1-9][0-2]?-supply$": true
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,pma8084-regulators
+    then:
+      properties:
+        vdd_l1_l11-supply: true
+        vdd_l2_l3_l4_l27-supply: true
+        vdd_l5_l7-supply: true
+        vdd_l6_l12_l14_l15_l26-supply: true
+        vdd_l8-supply: true
+        vdd_l9_l10_l13_l20_l23_l24-supply: true
+        vdd_l16_l25-supply: true
+        vdd_l17-supply: true
+        vdd_l18-supply: true
+        vdd_l19-supply: true
+        vdd_l21-supply: true
+        vdd_l22-supply: true
+        vdd_lvs1_2-supply: true
+        vdd_lvs3_4-supply: true
+        vdd_5vs1-supply: true
+      patternProperties:
+        "^vdd_s([1-9]|1[0-2])-supply$": true
+
   - if:
       properties:
         compatible:

-- 
2.42.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 6/6] regulator: qcom_spmi: Add PMA8084 regulators
  2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
                   ` (4 preceding siblings ...)
  2023-09-12  7:49 ` [PATCH 5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084 Stephan Gerhold
@ 2023-09-12  7:49 ` Stephan Gerhold
  2023-09-27  8:58 ` [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Mark Brown
  6 siblings, 0 replies; 11+ messages in thread
From: Stephan Gerhold @ 2023-09-12  7:49 UTC (permalink / raw)
  To: Mark Brown
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold

Add the necessary definitions for the PMA8084 PMIC to the
qcom_spmi-regulator driver to allow reading the actual voltages applied
to the hardware at runtime. This is mainly intended for debugging since
the regulators are usually controlled through the RPM firmware (via
qcom_smd-regulator).

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 drivers/regulator/qcom_spmi-regulator.c | 49 +++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c
index 13fe1c73a547..fe32fd53f683 100644
--- a/drivers/regulator/qcom_spmi-regulator.c
+++ b/drivers/regulator/qcom_spmi-regulator.c
@@ -2359,6 +2359,54 @@ static const struct spmi_regulator_data pm8994_regulators[] = {
 	{ }
 };
 
+static const struct spmi_regulator_data pma8084_regulators[] = {
+	{ "s1", 0x1400, "vdd_s1", },
+	{ "s2", 0x1700, "vdd_s2", },
+	{ "s3", 0x1a00, "vdd_s3", },
+	{ "s4", 0x1d00, "vdd_s4", },
+	{ "s5", 0x2000, "vdd_s5", },
+	{ "s6", 0x2300, "vdd_s6", },
+	{ "s7", 0x2600, "vdd_s7", },
+	{ "s8", 0x2900, "vdd_s8", },
+	{ "s9", 0x2c00, "vdd_s9", },
+	{ "s10", 0x2f00, "vdd_s10", },
+	{ "s11", 0x3200, "vdd_s11", },
+	{ "s12", 0x3500, "vdd_s12", },
+	{ "l1", 0x4000, "vdd_l1_l11", },
+	{ "l2", 0x4100, "vdd_l2_l3_l4_l27", },
+	{ "l3", 0x4200, "vdd_l2_l3_l4_l27", },
+	{ "l4", 0x4300, "vdd_l2_l3_l4_l27", },
+	{ "l5", 0x4400, "vdd_l5_l7", },
+	{ "l6", 0x4500, "vdd_l6_l12_l14_l15_l26", },
+	{ "l7", 0x4600, "vdd_l5_l7", },
+	{ "l8", 0x4700, "vdd_l8", },
+	{ "l9", 0x4800, "vdd_l9_l10_l13_l20_l23_l24", },
+	{ "l10", 0x4900, "vdd_l9_l10_l13_l20_l23_l24", },
+	{ "l11", 0x4a00, "vdd_l1_l11", },
+	{ "l12", 0x4b00, "vdd_l6_l12_l14_l15_l26", },
+	{ "l13", 0x4c00, "vdd_l9_l10_l13_l20_l23_l24", },
+	{ "l14", 0x4d00, "vdd_l6_l12_l14_l15_l26", },
+	{ "l15", 0x4e00, "vdd_l6_l12_l14_l15_l26", },
+	{ "l16", 0x4f00, "vdd_l16_l25", },
+	{ "l17", 0x5000, "vdd_l17", },
+	{ "l18", 0x5100, "vdd_l18", },
+	{ "l19", 0x5200, "vdd_l19", },
+	{ "l20", 0x5300, "vdd_l9_l10_l13_l20_l23_l24", },
+	{ "l21", 0x5400, "vdd_l21", },
+	{ "l22", 0x5500, "vdd_l22", },
+	{ "l23", 0x5600, "vdd_l9_l10_l13_l20_l23_l24", },
+	{ "l24", 0x5700, "vdd_l9_l10_l13_l20_l23_l24", },
+	{ "l25", 0x5800, "vdd_l16_l25", },
+	{ "l26", 0x5900, "vdd_l6_l12_l14_l15_l26", },
+	{ "l27", 0x5a00, "vdd_l2_l3_l4_l27", },
+	{ "lvs1", 0x8000, "vdd_lvs1_2", },
+	{ "lvs2", 0x8100, "vdd_lvs1_2", },
+	{ "lvs3", 0x8200, "vdd_lvs3_4", },
+	{ "lvs4", 0x8300, "vdd_lvs3_4", },
+	{ "5vs1", 0x8400, "vdd_5vs1", },
+	{ }
+};
+
 static const struct spmi_regulator_data pmi8994_regulators[] = {
 	{ "s1", 0x1400, "vdd_s1", },
 	{ "s2", 0x1700, "vdd_s2", },
@@ -2408,6 +2456,7 @@ static const struct of_device_id qcom_spmi_regulator_match[] = {
 	{ .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators },
 	{ .compatible = "qcom,pm8950-regulators", .data = &pm8950_regulators },
 	{ .compatible = "qcom,pm8994-regulators", .data = &pm8994_regulators },
+	{ .compatible = "qcom,pma8084-regulators", .data = &pma8084_regulators },
 	{ .compatible = "qcom,pmi8994-regulators", .data = &pmi8994_regulators },
 	{ .compatible = "qcom,pmp8074-regulators", .data = &pmp8074_regulators },
 	{ .compatible = "qcom,pms405-regulators", .data = &pms405_regulators },

-- 
2.42.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909
  2023-09-12  7:49 ` [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909 Stephan Gerhold
@ 2023-09-12 17:52   ` Rob Herring
  0 siblings, 0 replies; 11+ messages in thread
From: Rob Herring @ 2023-09-12 17:52 UTC (permalink / raw)
  To: Stephan Gerhold
  Cc: Robert Marko, linux-arm-msm, Rob Herring, devicetree, Mark Brown,
	Liam Girdwood, Conor Dooley, linux-kernel, Andy Gross,
	Bjorn Andersson, Krzysztof Kozlowski, Konrad Dybcio,
	Stephan Gerhold


On Tue, 12 Sep 2023 09:49:49 +0200, Stephan Gerhold wrote:
> From: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
> 
> Document the qcom,pm8909-regulators compatible together with the
> necessary supply properties to allow interfacing via the hardware
> regulator registers directly via SPMI. This is mainly intended for
> debugging since the regulators are typically controlled via the RPM
> firmware (qcom,rpm-pm8909-regulators compatible).
> 
> Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
> ---
>  .../bindings/regulator/qcom,spmi-regulator.yaml       | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 3/6] dt-bindings: regulator: qcom,spmi: Document PM8019
  2023-09-12  7:49 ` [PATCH 3/6] dt-bindings: regulator: qcom,spmi: Document PM8019 Stephan Gerhold
@ 2023-09-12 17:53   ` Rob Herring
  0 siblings, 0 replies; 11+ messages in thread
From: Rob Herring @ 2023-09-12 17:53 UTC (permalink / raw)
  To: Stephan Gerhold
  Cc: Bjorn Andersson, Mark Brown, Andy Gross, Krzysztof Kozlowski,
	Rob Herring, linux-kernel, linux-arm-msm, Konrad Dybcio,
	Robert Marko, Conor Dooley, Liam Girdwood, devicetree


On Tue, 12 Sep 2023 09:49:51 +0200, Stephan Gerhold wrote:
> Document the qcom,pm8019-regulators compatible together with the
> necessary supply properties to allow interfacing via the hardware
> regulator registers directly via SPMI. This is mainly intended for
> debugging since the regulators are typically controlled via the RPM
> firmware (qcom,rpm-pm8019-regulators compatible).
> 
> Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
> ---
>  .../bindings/regulator/qcom,spmi-regulator.yaml      | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084
  2023-09-12  7:49 ` [PATCH 5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084 Stephan Gerhold
@ 2023-09-12 17:53   ` Rob Herring
  0 siblings, 0 replies; 11+ messages in thread
From: Rob Herring @ 2023-09-12 17:53 UTC (permalink / raw)
  To: Stephan Gerhold
  Cc: linux-kernel, devicetree, Rob Herring, Robert Marko,
	Bjorn Andersson, Andy Gross, linux-arm-msm, Konrad Dybcio,
	Conor Dooley, Mark Brown, Liam Girdwood, Krzysztof Kozlowski


On Tue, 12 Sep 2023 09:49:53 +0200, Stephan Gerhold wrote:
> Document the qcom,pma8084-regulators compatible together with the
> necessary supply properties to allow interfacing via the hardware
> regulator registers directly via SPMI. This is mainly intended for
> debugging since the regulators are typically controlled via the RPM
> firmware (qcom,rpm-pma8084-regulators compatible).
> 
> Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
> ---
>  .../bindings/regulator/qcom,spmi-regulator.yaml    | 29 +++++++++++++++++++++-
>  1 file changed, 28 insertions(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084
  2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
                   ` (5 preceding siblings ...)
  2023-09-12  7:49 ` [PATCH 6/6] regulator: qcom_spmi: Add PMA8084 regulators Stephan Gerhold
@ 2023-09-27  8:58 ` Mark Brown
  6 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2023-09-27  8:58 UTC (permalink / raw)
  To: Stephan Gerhold
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Liam Girdwood,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Robert Marko,
	linux-arm-msm, linux-kernel, devicetree, Stephan Gerhold

On Tue, 12 Sep 2023 09:49:48 +0200, Stephan Gerhold wrote:
> Add the necessary definitions for the PM8909, PM8019 and PMA8084 PMIC to
> the qcom_spmi-regulator driver to allow reading the actual voltages
> applied to the hardware at runtime. This is mainly intended for
> debugging since the regulators are usually controlled through the
> RPM firmware (via qcom_smd-regulator).
> 
> These PMICs are used on totally different platforms (MSM8909, MDM9607,
> MSM8974/APQ8084). Each PMIC addition is independent and useful on it
> own. I only bundled them to simplify review.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/6] dt-bindings: regulator: qcom,spmi: Document PM8909
      commit: 6f20872035378ab2311cc901f8f94f8718f1b17f
[2/6] regulator: qcom_spmi: Add PM8909 regulators
      commit: 813d01a40ae7c0c67681c82edce8463fbbd84b08
[3/6] dt-bindings: regulator: qcom,spmi: Document PM8019
      commit: 350aab7f8f2c7d7368d2bbc47717696a51014078
[4/6] regulator: qcom_spmi: Add PM8019 regulators
      commit: 5b30cb2a317a8e2636f724e8ebf5cbe3849e786e
[5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084
      commit: f72d04235781cf89410ffd750109f4b9931c50ea
[6/6] regulator: qcom_spmi: Add PMA8084 regulators
      commit: 317aa3c4fe708fcbee5b9fe5fc25e1b9e92b83f5

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-09-27  8:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12  7:49 [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Stephan Gerhold
2023-09-12  7:49 ` [PATCH 1/6] dt-bindings: regulator: qcom,spmi: Document PM8909 Stephan Gerhold
2023-09-12 17:52   ` Rob Herring
2023-09-12  7:49 ` [PATCH 2/6] regulator: qcom_spmi: Add PM8909 regulators Stephan Gerhold
2023-09-12  7:49 ` [PATCH 3/6] dt-bindings: regulator: qcom,spmi: Document PM8019 Stephan Gerhold
2023-09-12 17:53   ` Rob Herring
2023-09-12  7:49 ` [PATCH 4/6] regulator: qcom_spmi: Add PM8019 regulators Stephan Gerhold
2023-09-12  7:49 ` [PATCH 5/6] dt-bindings: regulator: qcom,spmi: Document PMA8084 Stephan Gerhold
2023-09-12 17:53   ` Rob Herring
2023-09-12  7:49 ` [PATCH 6/6] regulator: qcom_spmi: Add PMA8084 regulators Stephan Gerhold
2023-09-27  8:58 ` [PATCH 0/6] regulator: qcom_spmi: Add PM8909, PM8019 and PMA8084 Mark Brown

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).