Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Rob Herring and committed by
Linus Walleij
caaeb8c5 34d7c484

+6 -1
+2 -1
Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml
··· 43 43 "-state$": 44 44 oneOf: 45 45 - $ref: "#/$defs/qcom-mdm9607-tlmm-state" 46 - - patternProperties: 46 + - additionalProperties: false 47 + patternProperties: 47 48 ".*": 48 49 $ref: "#/$defs/qcom-mdm9607-tlmm-state" 49 50
+1
Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml
··· 73 73 additionalProperties: 74 74 anyOf: 75 75 - type: object 76 + additionalProperties: false 76 77 allOf: 77 78 - $ref: pincfg-node.yaml# 78 79 - $ref: pinmux-node.yaml#
+1
Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
··· 53 53 additionalProperties: 54 54 anyOf: 55 55 - type: object 56 + additionalProperties: false 56 57 allOf: 57 58 - $ref: pincfg-node.yaml# 58 59 - $ref: pinmux-node.yaml#
+2
Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml
··· 115 115 type: object 116 116 additionalProperties: 117 117 type: object 118 + additionalProperties: false 119 + 118 120 properties: 119 121 rockchip,pins: 120 122 $ref: /schemas/types.yaml#/definitions/uint32-matrix