summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2022-08-23 17:56:46 +0300
committerRob Herring <robh@kernel.org>2022-08-31 23:43:19 +0300
commit7b3c2046f6fc97324c58904b56f9e7a2c0f27049 (patch)
treeed6cc92d9583d787887be293232c1a6e1a42ee31 /Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
parenta536208da6f7d877f1adbad4ff13f63f31f59d91 (diff)
downloadlinux-7b3c2046f6fc97324c58904b56f9e7a2c0f27049.tar.xz
dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
In order to ensure only documented properties are present, node schemas must have unevaluatedProperties or additionalProperties set to false (typically). Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://lore.kernel.org/r/20220823145649.3118479-15-robh@kernel.org
Diffstat (limited to 'Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml')
-rw-r--r--Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
index a055b3e819d8..777e1d852ddd 100644
--- a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
+++ b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
@@ -43,11 +43,21 @@ properties:
pgc:
type: object
+ additionalProperties: false
description: list of power domains provided by this controller.
+ properties:
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
patternProperties:
"power-domain@[0-9]$":
type: object
+ additionalProperties: false
+
properties:
'#power-domain-cells':
@@ -78,6 +88,10 @@ properties:
- '#power-domain-cells'
- reg
+ required:
+ - '#address-cells'
+ - '#size-cells'
+
required:
- compatible
- reg