diff mbox series

dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas

Message ID 20230926164553.102914-1-robh@kernel.org
State Accepted
Headers show
Series dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success
robh/dtbs-check warning build log
robh/dt-meta-schema success

Commit Message

Rob Herring (Arm) Sept. 26, 2023, 4:45 p.m. UTC
Just as unevaluatedProperties or additionalProperties are required at
the top level of schemas, they should (and will) also be required for
child node schemas. That ensures only documented properties are
present for any node.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/arm/psci.yaml | 1 +
 1 file changed, 1 insertion(+)

Comments

Conor Dooley Sept. 27, 2023, 3:11 p.m. UTC | #1
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Rob Herring (Arm) Sept. 28, 2023, 3:34 p.m. UTC | #2
On Tue, 26 Sep 2023 11:45:44 -0500, Rob Herring wrote:
> Just as unevaluatedProperties or additionalProperties are required at
> the top level of schemas, they should (and will) also be required for
> child node schemas. That ensures only documented properties are
> present for any node.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/arm/psci.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml
index 0c5381e081bd..cbb012e217ab 100644
--- a/Documentation/devicetree/bindings/arm/psci.yaml
+++ b/Documentation/devicetree/bindings/arm/psci.yaml
@@ -101,6 +101,7 @@  properties:
 patternProperties:
   "^power-domain-":
     $ref: /schemas/power/power-domain.yaml#
+    unevaluatedProperties: false
 
     type: object
     description: |