regulator: dt-bindings: Add missing unevaluatedProperties on child node schemas
authorRob Herring <robh@kernel.org>
Mon, 25 Sep 2023 21:26:53 +0000 (16:26 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 26 Sep 2023 07:50:00 +0000 (09:50 +0200)
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>
Link: https://lore.kernel.org/r/20230925212658.1975419-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/maxim,max20086.yaml
Documentation/devicetree/bindings/regulator/maxim,max77826.yaml
Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml

index 05f72391185e957f98ad6704e36262fc68fbddd7..7394c0a339c5b9ee045c29adbfb92a5c834aaa23 100644 (file)
@@ -43,6 +43,7 @@ properties:
       "^OUT[1-4]$":
         type: object
         $ref: regulator.yaml#
+        unevaluatedProperties: false
 
     additionalProperties: false
 
index 78c0b63243f7c8c14813b53fb19f77b046efbdb1..6d6bbfbd26d4b9ad9b99fe801b2c13f98773f994 100644 (file)
@@ -30,10 +30,12 @@ properties:
       "^LDO([1-9]|1[0-5])$":
         type: object
         $ref: regulator.yaml#
+        unevaluatedProperties: false
 
       "^BUCK|BUCKBOOST$":
         type: object
         $ref: regulator.yaml#
+        unevaluatedProperties: false
 
     additionalProperties: false
 
index eb61e04ef85219bd7c9e81f8a15d95e299e48328..b5181719daa1670bfd1a9338edf15878c84ea354 100644 (file)
@@ -48,10 +48,12 @@ properties:
       "^LDO[1-4]$":
         type: object
         $ref: regulator.yaml#
+        unevaluatedProperties: false
 
       "^BUCK|BOOST$":
         type: object
         $ref: regulator.yaml#
+        unevaluatedProperties: false
 
     additionalProperties: false