Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add NMXC power domain for Nord SoC
@ 2026-08-26 13:54 Shawn Guo
  2026-08-26 13:54 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index Shawn Guo
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Shawn Guo @ 2026-08-26 13:54 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Konrad Dybcio, Dmitry Baryshkov, Abel Vesa, Bartosz Golaszewski,
	Anurag Pateriya, linux-arm-msm, devicetree, linux-pm,
	linux-kernel, Shawn Guo

The Nord CDSP subsystems do not take their memory rail from the shared
MX rail like all other Qualcomm SoCs, but from a dedicated NMXC RPMh
resource. Add the nmxc.lvl RPMh resource and register it in the Nord
power domain table.

Changes for v2:
- Drop remoteproc changes since "mx" of remoteproc is just the name of
  memory rail input which can be wired up to NMXC power domain in DT
- Link to v1: https://lore.kernel.org/all/20260826102746.633076-1-shengchao.guo@oss.qualcomm.com/

Anurag Pateriya (2):
  dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index
  pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord

 drivers/pmdomain/qcom/rpmhpd.c          | 6 ++++++
 include/dt-bindings/power/qcom,rpmhpd.h | 1 +
 2 files changed, 7 insertions(+)

-- 
2.43.0


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

* [PATCH v2 1/2] dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index
  2026-08-26 13:54 [PATCH v2 0/2] Add NMXC power domain for Nord SoC Shawn Guo
@ 2026-08-26 13:54 ` Shawn Guo
  2026-08-26 13:54 ` [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord Shawn Guo
  2026-09-01 15:46 ` [PATCH v2 0/2] Add NMXC power domain for Nord SoC Ulf Hansson
  2 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2026-08-26 13:54 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Konrad Dybcio, Dmitry Baryshkov, Abel Vesa, Bartosz Golaszewski,
	Anurag Pateriya, linux-arm-msm, devicetree, linux-pm,
	linux-kernel, Shawn Guo

From: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>

Nord routes the NSP (compute DSP) memory rail through a dedicated NMXC
resource instead of the shared MX rail. Add the index so device trees can
reference it.

Signed-off-by: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
 include/dt-bindings/power/qcom,rpmhpd.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/dt-bindings/power/qcom,rpmhpd.h b/include/dt-bindings/power/qcom,rpmhpd.h
index 07bd2a7b0150..92c8408dbc57 100644
--- a/include/dt-bindings/power/qcom,rpmhpd.h
+++ b/include/dt-bindings/power/qcom,rpmhpd.h
@@ -32,6 +32,7 @@
 #define RPMHPD_GBX		22
 #define RPMHPD_NSP3		23
 #define RPMHPD_GFX1		24
+#define RPMHPD_NMXC		25
 
 /* RPMh Power Domain performance levels */
 #define RPMH_REGULATOR_LEVEL_RETENTION		16
-- 
2.43.0


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

* [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord
  2026-08-26 13:54 [PATCH v2 0/2] Add NMXC power domain for Nord SoC Shawn Guo
  2026-08-26 13:54 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index Shawn Guo
@ 2026-08-26 13:54 ` Shawn Guo
  2026-09-01 15:46 ` [PATCH v2 0/2] Add NMXC power domain for Nord SoC Ulf Hansson
  2 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2026-08-26 13:54 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Konrad Dybcio, Dmitry Baryshkov, Abel Vesa, Bartosz Golaszewski,
	Anurag Pateriya, linux-arm-msm, devicetree, linux-pm,
	linux-kernel, Shawn Guo

From: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>

Add the nmxc.lvl RPMh resource and register it in the Nord power domain
table. Nord supplies the NSP memory rail from this dedicated resource
rather than from the shared MX rail, so consumers need it exposed as its
own power domain.

Signed-off-by: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
 drivers/pmdomain/qcom/rpmhpd.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c
index 96e4bd2f5a14..717c44d1c39a 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -198,6 +198,11 @@ static struct rpmhpd mxc_ao = {
 	.res_name = "mxc.lvl",
 };
 
+static struct rpmhpd nmxc = {
+	.pd = { .name = "nmxc", },
+	.res_name = "nmxc.lvl",
+};
+
 static struct rpmhpd nsp = {
 	.pd = { .name = "nsp", },
 	.res_name = "nsp.lvl",
@@ -331,6 +336,7 @@ static struct rpmhpd *nord_rpmhpds[] = {
 	[RPMHPD_MX_AO] = &mx_ao,
 	[RPMHPD_MXC] = &mxc,
 	[RPMHPD_MXC_AO] = &mxc_ao,
+	[RPMHPD_NMXC] = &nmxc,
 	[RPMHPD_NSP0] = &nsp0,
 	[RPMHPD_NSP1] = &nsp1,
 	[RPMHPD_NSP2] = &nsp2,
-- 
2.43.0


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

* Re: [PATCH v2 0/2] Add NMXC power domain for Nord SoC
  2026-08-26 13:54 [PATCH v2 0/2] Add NMXC power domain for Nord SoC Shawn Guo
  2026-08-26 13:54 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index Shawn Guo
  2026-08-26 13:54 ` [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord Shawn Guo
@ 2026-09-01 15:46 ` Ulf Hansson
  2026-09-02  7:52   ` Shawn Guo
  2 siblings, 1 reply; 7+ messages in thread
From: Ulf Hansson @ 2026-09-01 15:46 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Ulf Hansson, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Konrad Dybcio, Dmitry Baryshkov, Abel Vesa,
	Bartosz Golaszewski, Anurag Pateriya, linux-arm-msm, devicetree,
	linux-pm, linux-kernel

On Wed, Aug 26, 2026 at 3:55 PM Shawn Guo
<shengchao.guo@oss.qualcomm.com> wrote:
>
> The Nord CDSP subsystems do not take their memory rail from the shared
> MX rail like all other Qualcomm SoCs, but from a dedicated NMXC RPMh
> resource. Add the nmxc.lvl RPMh resource and register it in the Nord
> power domain table.
>
> Changes for v2:
> - Drop remoteproc changes since "mx" of remoteproc is just the name of
>   memory rail input which can be wired up to NMXC power domain in DT
> - Link to v1: https://lore.kernel.org/all/20260826102746.633076-1-shengchao.guo@oss.qualcomm.com/
>
> Anurag Pateriya (2):
>   dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index
>   pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord
>
>  drivers/pmdomain/qcom/rpmhpd.c          | 6 ++++++
>  include/dt-bindings/power/qcom,rpmhpd.h | 1 +
>  2 files changed, 7 insertions(+)
>

Applied for next, thanks!

Kind regards
Uffe

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

* Re: [PATCH v2 0/2] Add NMXC power domain for Nord SoC
  2026-09-01 15:46 ` [PATCH v2 0/2] Add NMXC power domain for Nord SoC Ulf Hansson
@ 2026-09-02  7:52   ` Shawn Guo
  2026-09-02  9:42     ` Ulf Hansson
  0 siblings, 1 reply; 7+ messages in thread
From: Shawn Guo @ 2026-09-02  7:52 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Ulf Hansson, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Konrad Dybcio, Dmitry Baryshkov, Abel Vesa,
	Bartosz Golaszewski, Anurag Pateriya, linux-arm-msm, devicetree,
	linux-pm, linux-kernel

On Tue, Sep 01, 2026 at 05:46:09PM +0200, Ulf Hansson wrote:
> On Wed, Aug 26, 2026 at 3:55 PM Shawn Guo
> <shengchao.guo@oss.qualcomm.com> wrote:
> >
> > The Nord CDSP subsystems do not take their memory rail from the shared
> > MX rail like all other Qualcomm SoCs, but from a dedicated NMXC RPMh
> > resource. Add the nmxc.lvl RPMh resource and register it in the Nord
> > power domain table.
> >
> > Changes for v2:
> > - Drop remoteproc changes since "mx" of remoteproc is just the name of
> >   memory rail input which can be wired up to NMXC power domain in DT
> > - Link to v1: https://lore.kernel.org/all/20260826102746.633076-1-shengchao.guo@oss.qualcomm.com/
> >
> > Anurag Pateriya (2):
> >   dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index
> >   pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord
> >
> >  drivers/pmdomain/qcom/rpmhpd.c          | 6 ++++++
> >  include/dt-bindings/power/qcom,rpmhpd.h | 1 +
> >  2 files changed, 7 insertions(+)
> >
> 
> Applied for next, thanks!

Thank you, Ulf!

Could you maintain a immutable branch for qcom,rpmhpd.h patch? I have
dependant DTS patches planned, so an immutable branch would help Bjorn
to resolve the dependency.

Shawn

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

* Re: [PATCH v2 0/2] Add NMXC power domain for Nord SoC
  2026-09-02  7:52   ` Shawn Guo
@ 2026-09-02  9:42     ` Ulf Hansson
  2026-09-02 10:05       ` Shawn Guo
  0 siblings, 1 reply; 7+ messages in thread
From: Ulf Hansson @ 2026-09-02  9:42 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Ulf Hansson, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Konrad Dybcio, Dmitry Baryshkov, Abel Vesa,
	Bartosz Golaszewski, Anurag Pateriya, linux-arm-msm, devicetree,
	linux-pm, linux-kernel

On Wed, Sep 2, 2026 at 9:52 AM Shawn Guo <shengchao.guo@oss.qualcomm.com> wrote:
>
> On Tue, Sep 01, 2026 at 05:46:09PM +0200, Ulf Hansson wrote:
> > On Wed, Aug 26, 2026 at 3:55 PM Shawn Guo
> > <shengchao.guo@oss.qualcomm.com> wrote:
> > >
> > > The Nord CDSP subsystems do not take their memory rail from the shared
> > > MX rail like all other Qualcomm SoCs, but from a dedicated NMXC RPMh
> > > resource. Add the nmxc.lvl RPMh resource and register it in the Nord
> > > power domain table.
> > >
> > > Changes for v2:
> > > - Drop remoteproc changes since "mx" of remoteproc is just the name of
> > >   memory rail input which can be wired up to NMXC power domain in DT
> > > - Link to v1: https://lore.kernel.org/all/20260826102746.633076-1-shengchao.guo@oss.qualcomm.com/
> > >
> > > Anurag Pateriya (2):
> > >   dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index
> > >   pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord
> > >
> > >  drivers/pmdomain/qcom/rpmhpd.c          | 6 ++++++
> > >  include/dt-bindings/power/qcom,rpmhpd.h | 1 +
> > >  2 files changed, 7 insertions(+)
> > >
> >
> > Applied for next, thanks!
>
> Thank you, Ulf!
>
> Could you maintain a immutable branch for qcom,rpmhpd.h patch? I have
> dependant DTS patches planned, so an immutable branch would help Bjorn
> to resolve the dependency.

I am always applying the updated dt bindings to an immutable branch
called dt. Allowing SoC maintainers to pull it in, for the purpose
that you just described.

Kind regards
Uffe

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

* Re: [PATCH v2 0/2] Add NMXC power domain for Nord SoC
  2026-09-02  9:42     ` Ulf Hansson
@ 2026-09-02 10:05       ` Shawn Guo
  0 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2026-09-02 10:05 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Ulf Hansson, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Konrad Dybcio, Dmitry Baryshkov, Abel Vesa,
	Bartosz Golaszewski, Anurag Pateriya, linux-arm-msm, devicetree,
	linux-pm, linux-kernel

On Wed, Sep 02, 2026 at 11:42:29AM +0200, Ulf Hansson wrote:
> On Wed, Sep 2, 2026 at 9:52 AM Shawn Guo <shengchao.guo@oss.qualcomm.com> wrote:
> >
> > On Tue, Sep 01, 2026 at 05:46:09PM +0200, Ulf Hansson wrote:
> > > On Wed, Aug 26, 2026 at 3:55 PM Shawn Guo
> > > <shengchao.guo@oss.qualcomm.com> wrote:
> > > >
> > > > The Nord CDSP subsystems do not take their memory rail from the shared
> > > > MX rail like all other Qualcomm SoCs, but from a dedicated NMXC RPMh
> > > > resource. Add the nmxc.lvl RPMh resource and register it in the Nord
> > > > power domain table.
> > > >
> > > > Changes for v2:
> > > > - Drop remoteproc changes since "mx" of remoteproc is just the name of
> > > >   memory rail input which can be wired up to NMXC power domain in DT
> > > > - Link to v1: https://lore.kernel.org/all/20260826102746.633076-1-shengchao.guo@oss.qualcomm.com/
> > > >
> > > > Anurag Pateriya (2):
> > > >   dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index
> > > >   pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord
> > > >
> > > >  drivers/pmdomain/qcom/rpmhpd.c          | 6 ++++++
> > > >  include/dt-bindings/power/qcom,rpmhpd.h | 1 +
> > > >  2 files changed, 7 insertions(+)
> > > >
> > >
> > > Applied for next, thanks!
> >
> > Thank you, Ulf!
> >
> > Could you maintain a immutable branch for qcom,rpmhpd.h patch? I have
> > dependant DTS patches planned, so an immutable branch would help Bjorn
> > to resolve the dependency.
> 
> I am always applying the updated dt bindings to an immutable branch
> called dt. Allowing SoC maintainers to pull it in, for the purpose
> that you just described.

Awesome! Thank you Uffe!

Shawn

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

end of thread, other threads:[~2026-09-02 10:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 13:54 [PATCH v2 0/2] Add NMXC power domain for Nord SoC Shawn Guo
2026-08-26 13:54 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmhpd: Add NMXC power domain index Shawn Guo
2026-08-26 13:54 ` [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add NMXC power domain for Nord Shawn Guo
2026-09-01 15:46 ` [PATCH v2 0/2] Add NMXC power domain for Nord SoC Ulf Hansson
2026-09-02  7:52   ` Shawn Guo
2026-09-02  9:42     ` Ulf Hansson
2026-09-02 10:05       ` Shawn Guo

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