dt-bindings: pinctrl: Add missing additionalProperties on child node schemas
Commit Message
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>
---
.../devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml | 3 ++-
.../devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 1 +
.../devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml | 1 +
.../devicetree/bindings/pinctrl/rockchip,pinctrl.yaml | 2 ++
4 files changed, 6 insertions(+), 1 deletion(-)
Comments
On Mon, Sep 25, 2023 at 11:27 PM Rob Herring <robh@kernel.org> 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>
Patch applied!
Yours,
Linus Walleij
@@ -43,7 +43,8 @@ patternProperties:
"-state$":
oneOf:
- $ref: "#/$defs/qcom-mdm9607-tlmm-state"
- - patternProperties:
+ - additionalProperties: false
+ patternProperties:
".*":
$ref: "#/$defs/qcom-mdm9607-tlmm-state"
@@ -73,6 +73,7 @@ properties:
additionalProperties:
anyOf:
- type: object
+ additionalProperties: false
allOf:
- $ref: pincfg-node.yaml#
- $ref: pinmux-node.yaml#
@@ -53,6 +53,7 @@ properties:
additionalProperties:
anyOf:
- type: object
+ additionalProperties: false
allOf:
- $ref: pincfg-node.yaml#
- $ref: pinmux-node.yaml#
@@ -115,6 +115,8 @@ additionalProperties:
type: object
additionalProperties:
type: object
+ additionalProperties: false
+
properties:
rockchip,pins:
$ref: /schemas/types.yaml#/definitions/uint32-matrix