public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add PMAU0102 RPMH regulator support
@ 2026-04-20  7:26 Shawn Guo
  2026-04-20  7:26 ` [PATCH 1/2] regulator: dt-bindings: qcom,rpmh: Add PMAU0102 support Shawn Guo
  2026-04-20  7:26 ` [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord Shawn Guo
  0 siblings, 2 replies; 7+ messages in thread
From: Shawn Guo @ 2026-04-20  7:26 UTC (permalink / raw)
  To: Mark Brown
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Konrad Dybcio,
	Dmitry Baryshkov, Kamal Wadhwa, Bartosz Golaszewski, Deepti Jaggi,
	devicetree, linux-arm-msm, linux-kernel, Shawn Guo

This series adds RPMH regulator support for PMAU0102 PMIC found on
Qualcomm Nord SoC based devices.

Patch 1 adds the PMAU0102 compatible to the dt-bindings for
qcom,rpmh-regulator, documenting its 8 SMPSes and 3 LDOs.

Patch 2 adds the corresponding vreg data to the rpmh-regulator driver.

Kamal Wadhwa (1):
  regulator: rpmh-regulator: Add RPMH regulator support for Nord

Shawn Guo (1):
  regulator: dt-bindings: qcom,rpmh: Add PMAU0102 support

 .../regulator/qcom,rpmh-regulator.yaml        | 11 +++++++++++
 drivers/regulator/qcom-rpmh-regulator.c       | 19 +++++++++++++++++++
 2 files changed, 30 insertions(+)

-- 
2.43.0


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

* [PATCH 1/2] regulator: dt-bindings: qcom,rpmh: Add PMAU0102 support
  2026-04-20  7:26 [PATCH 0/2] Add PMAU0102 RPMH regulator support Shawn Guo
@ 2026-04-20  7:26 ` Shawn Guo
  2026-04-20  7:26 ` [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord Shawn Guo
  1 sibling, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2026-04-20  7:26 UTC (permalink / raw)
  To: Mark Brown
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Konrad Dybcio,
	Dmitry Baryshkov, Kamal Wadhwa, Bartosz Golaszewski, Deepti Jaggi,
	devicetree, linux-arm-msm, linux-kernel, Shawn Guo

Add support for PMAU0102 PMIC used on Nord boards.

Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
 .../bindings/regulator/qcom,rpmh-regulator.yaml       | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
index 58bb0ad5dda4..cd5391892fc6 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
@@ -51,6 +51,7 @@ description: |
       For PM8450, smps1 - smps6, ldo1 - ldo4
       For PM8550, smps1 - smps6, ldo1 - ldo17, bob1 - bob2
       For PM8998, smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2
+      For PMAU0102, smps1 - smps8, ldo1 - ldo3
       For PMH0101, ldo1 - ldo18, bob1 - bob2
       For PMH0104, smps1 - smps4
       For PMH0110, smps1 - smps10, ldo1 - ldo4
@@ -87,6 +88,7 @@ properties:
       - qcom,pm8550ve-rpmh-regulators
       - qcom,pm8550vs-rpmh-regulators
       - qcom,pm8998-rpmh-regulators
+      - qcom,pmau0102-rpmh-regulators
       - qcom,pmc8180-rpmh-regulators
       - qcom,pmc8180c-rpmh-regulators
       - qcom,pmc8380-rpmh-regulators
@@ -413,6 +415,15 @@ allOf:
       patternProperties:
         "^vdd-s([1-9]|1[0-3])-supply$": true
 
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,pmau0102-rpmh-regulators
+    then:
+      patternProperties:
+        "^vdd-s[1-8]-supply$": true
+
   - if:
       properties:
         compatible:
-- 
2.43.0


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

* [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord
  2026-04-20  7:26 [PATCH 0/2] Add PMAU0102 RPMH regulator support Shawn Guo
  2026-04-20  7:26 ` [PATCH 1/2] regulator: dt-bindings: qcom,rpmh: Add PMAU0102 support Shawn Guo
@ 2026-04-20  7:26 ` Shawn Guo
  2026-04-20  9:21   ` Konrad Dybcio
  1 sibling, 1 reply; 7+ messages in thread
From: Shawn Guo @ 2026-04-20  7:26 UTC (permalink / raw)
  To: Mark Brown
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Konrad Dybcio,
	Dmitry Baryshkov, Kamal Wadhwa, Bartosz Golaszewski, Deepti Jaggi,
	devicetree, linux-arm-msm, linux-kernel, Shawn Guo

From: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>

Add support for PMAU0102 PMIC voltage regulators which are present on
Nord boards.

Signed-off-by: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
 drivers/regulator/qcom-rpmh-regulator.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
index 6e4cb2871fca..9545300d7b03 100644
--- a/drivers/regulator/qcom-rpmh-regulator.c
+++ b/drivers/regulator/qcom-rpmh-regulator.c
@@ -1100,6 +1100,21 @@ static const struct rpmh_vreg_init_data pm8998_vreg_data[] = {
 	{}
 };
 
+static const struct rpmh_vreg_init_data pmau0102_vreg_data[] = {
+	RPMH_VREG("smps1",  SMPS, 1,  &pmic5_ftsmps527,  "vdd-s1"),
+	RPMH_VREG("smps2",  SMPS, 2,  &pmic5_ftsmps527,  "vdd-s2"),
+	RPMH_VREG("smps3",  SMPS, 3,  &pmic5_ftsmps527,  "vdd-s3"),
+	RPMH_VREG("smps4",  SMPS, 4,  &pmic5_ftsmps527,  "vdd-s4"),
+	RPMH_VREG("smps5",  SMPS, 5,  &pmic5_ftsmps527,  "vdd-s5"),
+	RPMH_VREG("smps6",  SMPS, 6,  &pmic5_ftsmps527,  "vdd-s6"),
+	RPMH_VREG("smps7",  SMPS, 7,  &pmic5_ftsmps527,  "vdd-s7"),
+	RPMH_VREG("smps8",  SMPS, 8,  &pmic5_ftsmps527,  "vdd-s8"),
+	RPMH_VREG("ldo1",   LDO,  1,  &pmic5_nldo515,    NULL),
+	RPMH_VREG("ldo2",   LDO,  2,  &pmic5_nldo515,    NULL),
+	RPMH_VREG("ldo3",   LDO,  3,  &pmic5_pldo515_mv, NULL),
+	{}
+};
+
 static const struct rpmh_vreg_init_data pmg1110_vreg_data[] = {
 	RPMH_VREG("smps1",  SMPS, 1, &pmic5_ftsmps510,  "vdd-s1"),
 	{}
@@ -1877,6 +1892,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
 		.compatible = "qcom,pm8998-rpmh-regulators",
 		.data = pm8998_vreg_data,
 	},
+	{
+		.compatible = "qcom,pmau0102-rpmh-regulators",
+		.data = pmau0102_vreg_data,
+	},
 	{
 		.compatible = "qcom,pmg1110-rpmh-regulators",
 		.data = pmg1110_vreg_data,
-- 
2.43.0


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

* Re: [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord
  2026-04-20  7:26 ` [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord Shawn Guo
@ 2026-04-20  9:21   ` Konrad Dybcio
  2026-04-21 12:54     ` Shawn Guo
  0 siblings, 1 reply; 7+ messages in thread
From: Konrad Dybcio @ 2026-04-20  9:21 UTC (permalink / raw)
  To: Shawn Guo, Mark Brown
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Konrad Dybcio,
	Dmitry Baryshkov, Kamal Wadhwa, Bartosz Golaszewski, Deepti Jaggi,
	devicetree, linux-arm-msm, linux-kernel

On 4/20/26 9:26 AM, Shawn Guo wrote:
> From: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
> 
> Add support for PMAU0102 PMIC voltage regulators which are present on
> Nord boards.
> 
> Signed-off-by: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
> Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
> ---
>  drivers/regulator/qcom-rpmh-regulator.c | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
> index 6e4cb2871fca..9545300d7b03 100644
> --- a/drivers/regulator/qcom-rpmh-regulator.c
> +++ b/drivers/regulator/qcom-rpmh-regulator.c
> @@ -1100,6 +1100,21 @@ static const struct rpmh_vreg_init_data pm8998_vreg_data[] = {
>  	{}
>  };
>  
> +static const struct rpmh_vreg_init_data pmau0102_vreg_data[] = {
> +	RPMH_VREG("smps1",  SMPS, 1,  &pmic5_ftsmps527,  "vdd-s1"),
> +	RPMH_VREG("smps2",  SMPS, 2,  &pmic5_ftsmps527,  "vdd-s2"),
> +	RPMH_VREG("smps3",  SMPS, 3,  &pmic5_ftsmps527,  "vdd-s3"),
> +	RPMH_VREG("smps4",  SMPS, 4,  &pmic5_ftsmps527,  "vdd-s4"),
> +	RPMH_VREG("smps5",  SMPS, 5,  &pmic5_ftsmps527,  "vdd-s5"),
> +	RPMH_VREG("smps6",  SMPS, 6,  &pmic5_ftsmps527,  "vdd-s6"),
> +	RPMH_VREG("smps7",  SMPS, 7,  &pmic5_ftsmps527,  "vdd-s7"),
> +	RPMH_VREG("smps8",  SMPS, 8,  &pmic5_ftsmps527,  "vdd-s8"),
> +	RPMH_VREG("ldo1",   LDO,  1,  &pmic5_nldo515,    NULL),
> +	RPMH_VREG("ldo2",   LDO,  2,  &pmic5_nldo515,    NULL),
> +	RPMH_VREG("ldo3",   LDO,  3,  &pmic5_pldo515_mv, NULL),

Any reason for the NULL supplies?

Konrad

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

* Re: [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord
  2026-04-20  9:21   ` Konrad Dybcio
@ 2026-04-21 12:54     ` Shawn Guo
  2026-04-22  0:56       ` Dmitry Baryshkov
  0 siblings, 1 reply; 7+ messages in thread
From: Shawn Guo @ 2026-04-21 12:54 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Konrad Dybcio, Dmitry Baryshkov, Kamal Wadhwa,
	Bartosz Golaszewski, Deepti Jaggi, devicetree, linux-arm-msm,
	linux-kernel

On Mon, Apr 20, 2026 at 11:21:23AM +0200, Konrad Dybcio wrote:
> On 4/20/26 9:26 AM, Shawn Guo wrote:
> > From: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
> > 
> > Add support for PMAU0102 PMIC voltage regulators which are present on
> > Nord boards.
> > 
> > Signed-off-by: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
> > Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
> > ---
> >  drivers/regulator/qcom-rpmh-regulator.c | 19 +++++++++++++++++++
> >  1 file changed, 19 insertions(+)
> > 
> > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
> > index 6e4cb2871fca..9545300d7b03 100644
> > --- a/drivers/regulator/qcom-rpmh-regulator.c
> > +++ b/drivers/regulator/qcom-rpmh-regulator.c
> > @@ -1100,6 +1100,21 @@ static const struct rpmh_vreg_init_data pm8998_vreg_data[] = {
> >  	{}
> >  };
> >  
> > +static const struct rpmh_vreg_init_data pmau0102_vreg_data[] = {
> > +	RPMH_VREG("smps1",  SMPS, 1,  &pmic5_ftsmps527,  "vdd-s1"),
> > +	RPMH_VREG("smps2",  SMPS, 2,  &pmic5_ftsmps527,  "vdd-s2"),
> > +	RPMH_VREG("smps3",  SMPS, 3,  &pmic5_ftsmps527,  "vdd-s3"),
> > +	RPMH_VREG("smps4",  SMPS, 4,  &pmic5_ftsmps527,  "vdd-s4"),
> > +	RPMH_VREG("smps5",  SMPS, 5,  &pmic5_ftsmps527,  "vdd-s5"),
> > +	RPMH_VREG("smps6",  SMPS, 6,  &pmic5_ftsmps527,  "vdd-s6"),
> > +	RPMH_VREG("smps7",  SMPS, 7,  &pmic5_ftsmps527,  "vdd-s7"),
> > +	RPMH_VREG("smps8",  SMPS, 8,  &pmic5_ftsmps527,  "vdd-s8"),
> > +	RPMH_VREG("ldo1",   LDO,  1,  &pmic5_nldo515,    NULL),
> > +	RPMH_VREG("ldo2",   LDO,  2,  &pmic5_nldo515,    NULL),
> > +	RPMH_VREG("ldo3",   LDO,  3,  &pmic5_pldo515_mv, NULL),
> 
> Any reason for the NULL supplies?

We thought it's fine to not model LDO supplies, as they may not always
follow PMIC.  But that might be even a good reason for modeling, so that
we can have a better DT description for the supplies.  I will change it
to:

	RPMH_VREG("ldo1",   LDO,  1,  &pmic5_nldo515,    "vdd-l1"),
	RPMH_VREG("ldo2",   LDO,  2,  &pmic5_nldo515,    "vdd-l2"),
	RPMH_VREG("ldo3",   LDO,  3,  &pmic5_pldo515_mv, "vdd-l3"),

Thanks for asking!

Shawn

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

* Re: [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord
  2026-04-21 12:54     ` Shawn Guo
@ 2026-04-22  0:56       ` Dmitry Baryshkov
  2026-04-22  2:25         ` Shawn Guo
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2026-04-22  0:56 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Konrad Dybcio, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Konrad Dybcio, Dmitry Baryshkov, Kamal Wadhwa,
	Bartosz Golaszewski, Deepti Jaggi, devicetree, linux-arm-msm,
	linux-kernel

On Tue, Apr 21, 2026 at 08:54:06PM +0800, Shawn Guo wrote:
> On Mon, Apr 20, 2026 at 11:21:23AM +0200, Konrad Dybcio wrote:
> > On 4/20/26 9:26 AM, Shawn Guo wrote:
> > > From: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
> > > 
> > > Add support for PMAU0102 PMIC voltage regulators which are present on
> > > Nord boards.
> > > 
> > > Signed-off-by: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
> > > Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
> > > ---
> > >  drivers/regulator/qcom-rpmh-regulator.c | 19 +++++++++++++++++++
> > >  1 file changed, 19 insertions(+)
> > > 
> > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
> > > index 6e4cb2871fca..9545300d7b03 100644
> > > --- a/drivers/regulator/qcom-rpmh-regulator.c
> > > +++ b/drivers/regulator/qcom-rpmh-regulator.c
> > > @@ -1100,6 +1100,21 @@ static const struct rpmh_vreg_init_data pm8998_vreg_data[] = {
> > >  	{}
> > >  };
> > >  
> > > +static const struct rpmh_vreg_init_data pmau0102_vreg_data[] = {
> > > +	RPMH_VREG("smps1",  SMPS, 1,  &pmic5_ftsmps527,  "vdd-s1"),
> > > +	RPMH_VREG("smps2",  SMPS, 2,  &pmic5_ftsmps527,  "vdd-s2"),
> > > +	RPMH_VREG("smps3",  SMPS, 3,  &pmic5_ftsmps527,  "vdd-s3"),
> > > +	RPMH_VREG("smps4",  SMPS, 4,  &pmic5_ftsmps527,  "vdd-s4"),
> > > +	RPMH_VREG("smps5",  SMPS, 5,  &pmic5_ftsmps527,  "vdd-s5"),
> > > +	RPMH_VREG("smps6",  SMPS, 6,  &pmic5_ftsmps527,  "vdd-s6"),
> > > +	RPMH_VREG("smps7",  SMPS, 7,  &pmic5_ftsmps527,  "vdd-s7"),
> > > +	RPMH_VREG("smps8",  SMPS, 8,  &pmic5_ftsmps527,  "vdd-s8"),
> > > +	RPMH_VREG("ldo1",   LDO,  1,  &pmic5_nldo515,    NULL),
> > > +	RPMH_VREG("ldo2",   LDO,  2,  &pmic5_nldo515,    NULL),
> > > +	RPMH_VREG("ldo3",   LDO,  3,  &pmic5_pldo515_mv, NULL),
> > 
> > Any reason for the NULL supplies?
> 
> We thought it's fine to not model LDO supplies, as they may not always
> follow PMIC.  But that might be even a good reason for modeling, so that
> we can have a better DT description for the supplies.  I will change it
> to:
> 
> 	RPMH_VREG("ldo1",   LDO,  1,  &pmic5_nldo515,    "vdd-l1"),
> 	RPMH_VREG("ldo2",   LDO,  2,  &pmic5_nldo515,    "vdd-l2"),
> 	RPMH_VREG("ldo3",   LDO,  3,  &pmic5_pldo515_mv, "vdd-l3"),

Are those the actual supply pins?

> 
> Thanks for asking!
> 
> Shawn

-- 
With best wishes
Dmitry

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

* Re: [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord
  2026-04-22  0:56       ` Dmitry Baryshkov
@ 2026-04-22  2:25         ` Shawn Guo
  0 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2026-04-22  2:25 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Konrad Dybcio, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Konrad Dybcio, Dmitry Baryshkov, Kamal Wadhwa,
	Bartosz Golaszewski, Deepti Jaggi, devicetree, linux-arm-msm,
	linux-kernel

On Wed, Apr 22, 2026 at 03:56:20AM +0300, Dmitry Baryshkov wrote:
> On Tue, Apr 21, 2026 at 08:54:06PM +0800, Shawn Guo wrote:
...
> > We thought it's fine to not model LDO supplies, as they may not always
> > follow PMIC.  But that might be even a good reason for modeling, so that
> > we can have a better DT description for the supplies.  I will change it
> > to:
> > 
> > 	RPMH_VREG("ldo1",   LDO,  1,  &pmic5_nldo515,    "vdd-l1"),
> > 	RPMH_VREG("ldo2",   LDO,  2,  &pmic5_nldo515,    "vdd-l2"),
> > 	RPMH_VREG("ldo3",   LDO,  3,  &pmic5_pldo515_mv, "vdd-l3"),
> 
> Are those the actual supply pins?

From what I can see from schematics, yes, those are supply pins.

Shawn

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

end of thread, other threads:[~2026-04-22  2:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20  7:26 [PATCH 0/2] Add PMAU0102 RPMH regulator support Shawn Guo
2026-04-20  7:26 ` [PATCH 1/2] regulator: dt-bindings: qcom,rpmh: Add PMAU0102 support Shawn Guo
2026-04-20  7:26 ` [PATCH 2/2] regulator: rpmh-regulator: Add RPMH regulator support for Nord Shawn Guo
2026-04-20  9:21   ` Konrad Dybcio
2026-04-21 12:54     ` Shawn Guo
2026-04-22  0:56       ` Dmitry Baryshkov
2026-04-22  2:25         ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox