]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: pinctrl: Add missing additionalProperties on child node schemas
authorRob Herring <robh@kernel.org>
Mon, 25 Sep 2023 21:27:10 +0000 (16:27 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Sep 2023 06:54:35 +0000 (08:54 +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/20230925212713.1975800-1-robh@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml
Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml

index 2aedb7e7bc8b1df324f99111b6138cd7754838db..5ece3b9d676b3d49d0efe1b132dc3679766c48d7 100644 (file)
@@ -43,7 +43,8 @@ patternProperties:
   "-state$":
     oneOf:
       - $ref: "#/$defs/qcom-mdm9607-tlmm-state"
-      - patternProperties:
+      - additionalProperties: false
+        patternProperties:
           ".*":
             $ref: "#/$defs/qcom-mdm9607-tlmm-state"
 
index 145c5442f268ca5977252ec327661951e443f162..4782f96feb7ec337a085f1d43a9b25d61cd8670d 100644 (file)
@@ -73,6 +73,7 @@ properties:
 additionalProperties:
   anyOf:
     - type: object
+      additionalProperties: false
       allOf:
         - $ref: pincfg-node.yaml#
         - $ref: pinmux-node.yaml#
index cb81a17bd0b1f2294574af49db2a740fb66db86a..5fa5d31f8866bac516cdf91c1812e0c88453792d 100644 (file)
@@ -53,6 +53,7 @@ properties:
 additionalProperties:
   anyOf:
     - type: object
+      additionalProperties: false
       allOf:
         - $ref: pincfg-node.yaml#
         - $ref: pinmux-node.yaml#
index 10c335efe619e6dad1bbdadfe6eae43599b6959e..20e806dce1ecb83d7ca047b3cd2c6388af463eb2 100644 (file)
@@ -115,6 +115,8 @@ additionalProperties:
   type: object
   additionalProperties:
     type: object
+    additionalProperties: false
+
     properties:
       rockchip,pins:
         $ref: /schemas/types.yaml#/definitions/uint32-matrix