* [PATCH 1/1] dt-bindings: fsl: fsl,rcpm: reference power-domains.yaml
@ 2025-07-25 5:58 Alexander Stein
2025-07-25 7:25 ` Rob Herring (Arm)
2025-07-25 19:47 ` Rob Herring
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Stein @ 2025-07-25 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 a
reference to the common bindings to fix the warning.
Fixes: ad21e3840a88 ("dt-bindings: soc: fsl: Convert rcpm to yaml format")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml b/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
index 03d71ab930d79..5b7c0a1905545 100644
--- a/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
+++ b/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
@@ -13,6 +13,9 @@ description:
maintainers:
- Frank Li <Frank.Li@nxp.com>
+allOf:
+ - $ref: /schemas/power/power-domain.yaml#
+
properties:
compatible:
oneOf:
@@ -75,7 +78,7 @@ properties:
RCPM register block is Little Endian. Without it RCPM
will be Big Endian (default case).
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] dt-bindings: fsl: fsl,rcpm: reference power-domains.yaml
2025-07-25 5:58 [PATCH 1/1] dt-bindings: fsl: fsl,rcpm: reference power-domains.yaml Alexander Stein
@ 2025-07-25 7:25 ` Rob Herring (Arm)
2025-07-25 19:47 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-07-25 7:25 UTC (permalink / raw)
To: Alexander Stein
Cc: devicetree, Christophe Leroy, linuxppc-dev, Conor Dooley,
Krzysztof Kozlowski, Frank Li, linux-arm-kernel, linux-kernel
On Fri, 25 Jul 2025 07:58:34 +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
>
> Given commit 8bcf67b8d893b ("ARM: dts: ls1021a: add #power-domain-cells
> for power-controller node") explicitly added that property, add a
> reference to the common bindings to fix the warning.
>
> Fixes: ad21e3840a88 ("dt-bindings: soc: fsl: Convert rcpm to yaml format")
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.example.dtb: global-utilities@e2000 (fsl,t4240-rcpm): $nodename:0: 'global-utilities@e2000' does not match '^(power-controller|power-domain|performance-domain)([@-].*)?$'
from schema $id: http://devicetree.org/schemas/soc/fsl/fsl,rcpm.yaml#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.example.dtb: global-utilities@e2000 (fsl,t4240-rcpm): '#power-domain-cells' is a required property
from schema $id: http://devicetree.org/schemas/soc/fsl/fsl,rcpm.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250725055835.260930-1-alexander.stein@ew.tq-group.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] dt-bindings: fsl: fsl,rcpm: reference power-domains.yaml
2025-07-25 5:58 [PATCH 1/1] dt-bindings: fsl: fsl,rcpm: reference power-domains.yaml Alexander Stein
2025-07-25 7:25 ` Rob Herring (Arm)
@ 2025-07-25 19:47 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2025-07-25 19:47 UTC (permalink / raw)
To: Alexander Stein
Cc: Christophe Leroy, Krzysztof Kozlowski, Conor Dooley, Frank Li,
linuxppc-dev, linux-arm-kernel, devicetree, linux-kernel
On Fri, Jul 25, 2025 at 07:58:34AM +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
>
> Given commit 8bcf67b8d893b ("ARM: dts: ls1021a: add #power-domain-cells
> for power-controller node") explicitly added that property, add a
> reference to the common bindings to fix the warning.
>
> Fixes: ad21e3840a88 ("dt-bindings: soc: fsl: Convert rcpm to yaml format")
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml b/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
> index 03d71ab930d79..5b7c0a1905545 100644
> --- a/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
> +++ b/Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
> @@ -13,6 +13,9 @@ description:
> maintainers:
> - Frank Li <Frank.Li@nxp.com>
>
> +allOf:
> + - $ref: /schemas/power/power-domain.yaml#
This is not correct. The fix for the above warning is to add
'#power-domain-cells' to the properties list here. You can't just
reference the schema because you have to define the value of
'#power-domain-cells' for this provider.
Generally, we only add a $ref to providers if they have child nodes
(e.g. are a bus).
> +
> properties:
> compatible:
> oneOf:
> @@ -75,7 +78,7 @@ properties:
> RCPM register block is Little Endian. Without it RCPM
> will be Big Endian (default case).
>
> -additionalProperties: false
> +unevaluatedProperties: false
>
> examples:
> - |
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-25 19:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-25 5:58 [PATCH 1/1] dt-bindings: fsl: fsl,rcpm: reference power-domains.yaml Alexander Stein
2025-07-25 7:25 ` Rob Herring (Arm)
2025-07-25 19:47 ` Rob Herring
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).