linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/1] dt-bindings: fsl: fsl,rcpm: Add #power-domain-cells
@ 2025-07-31  5:58 Alexander Stein
  2025-07-31  6:32 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Stein @ 2025-07-31  5:58 UTC (permalink / raw)
  To: Christophe Leroy, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Frank Li
  Cc: Alexander Stein, linuxppc-dev, linux-arm-kernel, devicetree,
	linux-kernel

dtbs_check for ls1021.dtsi warns about unsupported property:
 power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'

But if removed the check warns about missing property:
 power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' is a required property

Given commit 8bcf67b8d893b ("ARM: dts: ls1021a: add #power-domain-cells
for power-controller node") explicitly added that property, add it
to the expected property list as well.

Fixes: ad21e3840a88 ("dt-bindings: soc: fsl: Convert rcpm to yaml format")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---

Changes in v2:
* Add the property instead of referencinf power-domain.yaml
* Adjust commit message
* v1: https://lore.kernel.org/all/20250725055835.260930-1-alexander.stein@ew.tq-group.com/

 Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml b/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
index 03d71ab930d79..2aa8e8a2643ba 100644
--- a/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
+++ b/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
@@ -49,6 +49,8 @@ properties:
   reg:
     maxItems: 1
 
+  "#power-domain-cells": true
+
   "#fsl,rcpm-wakeup-cells":
     description: |
       The number of IPPDEXPCR register cells in the
-- 
2.43.0


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

* Re: [PATCH v2 1/1] dt-bindings: fsl: fsl,rcpm: Add #power-domain-cells
  2025-07-31  5:58 [PATCH v2 1/1] dt-bindings: fsl: fsl,rcpm: Add #power-domain-cells Alexander Stein
@ 2025-07-31  6:32 ` Krzysztof Kozlowski
  2025-07-31 23:36   ` Frank Li
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-31  6:32 UTC (permalink / raw)
  To: Alexander Stein
  Cc: Christophe Leroy, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Frank Li, linuxppc-dev, linux-arm-kernel, devicetree,
	linux-kernel

On Thu, Jul 31, 2025 at 07:58:04AM +0200, Alexander Stein wrote:
> dtbs_check for ls1021.dtsi warns about unsupported property:
>  power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
> 
> But if removed the check warns about missing property:
>  power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' is a required property


And if any other warning says something, are you going to do that as
well?

> 
> Given commit 8bcf67b8d893b ("ARM: dts: ls1021a: add #power-domain-cells
> for power-controller node") explicitly added that property, add it
> to the expected property list as well.

No, commit does not explain why! It's one of this NXP commits without
explanation, doing random things.

No, explain why do you think this is a power domain provider - fast
look told me that it is NOT.

Best regards,
Krzysztof


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

* Re: [PATCH v2 1/1] dt-bindings: fsl: fsl,rcpm: Add #power-domain-cells
  2025-07-31  6:32 ` Krzysztof Kozlowski
@ 2025-07-31 23:36   ` Frank Li
  2025-08-12  6:14     ` [PATCH v2 1/1] dt-bindings: fsl: fsl, rcpm: " Alexander Stein
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Li @ 2025-07-31 23:36 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Alexander Stein, Christophe Leroy, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linuxppc-dev, linux-arm-kernel,
	devicetree, linux-kernel

On Thu, Jul 31, 2025 at 08:32:57AM +0200, Krzysztof Kozlowski wrote:
> On Thu, Jul 31, 2025 at 07:58:04AM +0200, Alexander Stein wrote:
> > dtbs_check for ls1021.dtsi warns about unsupported property:
> >  power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
> >
> > But if removed the check warns about missing property:
> >  power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' is a required property
>
>
> And if any other warning says something, are you going to do that as
> well?
>
> >
> > Given commit 8bcf67b8d893b ("ARM: dts: ls1021a: add #power-domain-cells
> > for power-controller node") explicitly added that property, add it
> > to the expected property list as well.
>
> No, commit does not explain why! It's one of this NXP commits without
> explanation, doing random things.
>
> No, explain why do you think this is a power domain provider - fast
> look told me that it is NOT.

It is not power controller. rcpm controller enable wakeup source.

In arm64, use below patch to fix warning

commit e39f567e1c38c29629962ab327f0ad1a288dcab2
Author: Frank Li <Frank.Li@nxp.com>
Date:   Mon Jul 29 14:59:24 2024 -0400

    arm64: dts: layerscape: rename rcpm as wakeup-control from power-control

    Invoke power-domain.yaml if node name as 'power-control'.

    Rcpm actually are not power domain controller. It just control wakeup
    capability. So rename it as wakeup-control. Fix below CHECK_DTBS warning.

    power-controller@1ee2140: '#power-domain-cells' is a required property
            from schema $id: http://devicetree.org/schemas/power/power-domain.yaml#

    Signed-off-by: Frank Li <Frank.Li@nxp.com>
    Signed-off-by: Shawn Guo <shawnguo@kernel.org>


Frank

>
> Best regards,
> Krzysztof
>

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

* Re: [PATCH v2 1/1] dt-bindings: fsl: fsl, rcpm: Add #power-domain-cells
  2025-07-31 23:36   ` Frank Li
@ 2025-08-12  6:14     ` Alexander Stein
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Stein @ 2025-08-12  6:14 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Frank Li
  Cc: Christophe Leroy, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linuxppc-dev, linux-arm-kernel, devicetree, linux-kernel

Hi Frank,

Am Freitag, 1. August 2025, 01:36:42 CEST schrieb Frank Li:
> On Thu, Jul 31, 2025 at 08:32:57AM +0200, Krzysztof Kozlowski wrote:
> > On Thu, Jul 31, 2025 at 07:58:04AM +0200, Alexander Stein wrote:
> > > dtbs_check for ls1021.dtsi warns about unsupported property:
> > >  power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
> > >
> > > But if removed the check warns about missing property:
> > >  power-controller@1ee2140 (fsl,ls1021a-rcpm): '#power-domain-cells' is a required property
> >
> >
> > And if any other warning says something, are you going to do that as
> > well?
> >
> > >
> > > Given commit 8bcf67b8d893b ("ARM: dts: ls1021a: add #power-domain-cells
> > > for power-controller node") explicitly added that property, add it
> > > to the expected property list as well.
> >
> > No, commit does not explain why! It's one of this NXP commits without
> > explanation, doing random things.
> >
> > No, explain why do you think this is a power domain provider - fast
> > look told me that it is NOT.
> 
> It is not power controller. rcpm controller enable wakeup source.
> 
> In arm64, use below patch to fix warning
> 
> commit e39f567e1c38c29629962ab327f0ad1a288dcab2
> Author: Frank Li <Frank.Li@nxp.com>
> Date:   Mon Jul 29 14:59:24 2024 -0400
> 
>     arm64: dts: layerscape: rename rcpm as wakeup-control from power-control
> 
>     Invoke power-domain.yaml if node name as 'power-control'.
> 
>     Rcpm actually are not power domain controller. It just control wakeup
>     capability. So rename it as wakeup-control. Fix below CHECK_DTBS warning.
> 
>     power-controller@1ee2140: '#power-domain-cells' is a required property
>             from schema $id: http://devicetree.org/schemas/power/power-domain.yaml#
> 
>     Signed-off-by: Frank Li <Frank.Li@nxp.com>
>     Signed-off-by: Shawn Guo <shawnguo@kernel.org>
> 

Thanks for the link. I've applied a similar change to ls1021 instead of this patch.

Thanks and best regards,
Alexander
-- 
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/



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

end of thread, other threads:[~2025-08-12  6:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31  5:58 [PATCH v2 1/1] dt-bindings: fsl: fsl,rcpm: Add #power-domain-cells Alexander Stein
2025-07-31  6:32 ` Krzysztof Kozlowski
2025-07-31 23:36   ` Frank Li
2025-08-12  6:14     ` [PATCH v2 1/1] dt-bindings: fsl: fsl, rcpm: " Alexander Stein

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