Commit caaeb8c5 authored by Rob Herring's avatar Rob Herring Committed by Linus Walleij

dt-bindings: pinctrl: Add missing additionalProperties on child node schemas

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: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230925212713.1975800-1-robh@kernel.orgSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 34d7c484
...@@ -43,7 +43,8 @@ patternProperties: ...@@ -43,7 +43,8 @@ patternProperties:
"-state$": "-state$":
oneOf: oneOf:
- $ref: "#/$defs/qcom-mdm9607-tlmm-state" - $ref: "#/$defs/qcom-mdm9607-tlmm-state"
- patternProperties: - additionalProperties: false
patternProperties:
".*": ".*":
$ref: "#/$defs/qcom-mdm9607-tlmm-state" $ref: "#/$defs/qcom-mdm9607-tlmm-state"
......
...@@ -73,6 +73,7 @@ properties: ...@@ -73,6 +73,7 @@ properties:
additionalProperties: additionalProperties:
anyOf: anyOf:
- type: object - type: object
additionalProperties: false
allOf: allOf:
- $ref: pincfg-node.yaml# - $ref: pincfg-node.yaml#
- $ref: pinmux-node.yaml# - $ref: pinmux-node.yaml#
......
...@@ -53,6 +53,7 @@ properties: ...@@ -53,6 +53,7 @@ properties:
additionalProperties: additionalProperties:
anyOf: anyOf:
- type: object - type: object
additionalProperties: false
allOf: allOf:
- $ref: pincfg-node.yaml# - $ref: pincfg-node.yaml#
- $ref: pinmux-node.yaml# - $ref: pinmux-node.yaml#
......
...@@ -115,6 +115,8 @@ additionalProperties: ...@@ -115,6 +115,8 @@ additionalProperties:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
additionalProperties: false
properties: properties:
rockchip,pins: rockchip,pins:
$ref: /schemas/types.yaml#/definitions/uint32-matrix $ref: /schemas/types.yaml#/definitions/uint32-matrix
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment