Commit 9194e0f8 authored by Rob Herring's avatar Rob Herring Committed by Linus Walleij

dt-bindings: pinctrl: Add missing (unevaluated|additional)Properties on child nodes

In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-6-robh@kernel.orgSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 76e55d93
...@@ -23,6 +23,7 @@ patternProperties: ...@@ -23,6 +23,7 @@ patternProperties:
'-pins$': '-pins$':
type: object type: object
$ref: pinmux-node.yaml# $ref: pinmux-node.yaml#
additionalProperties: false
properties: properties:
function: function:
......
...@@ -44,6 +44,7 @@ properties: ...@@ -44,6 +44,7 @@ properties:
patternProperties: patternProperties:
'^gpio@[0-9a-f]*$': '^gpio@[0-9a-f]*$':
type: object type: object
additionalProperties: false
description: description:
Child nodes can be specified to contain pin configuration information, Child nodes can be specified to contain pin configuration information,
......
...@@ -42,6 +42,7 @@ properties: ...@@ -42,6 +42,7 @@ properties:
patternProperties: patternProperties:
'^gpio@[0-9a-f]*$': '^gpio@[0-9a-f]*$':
type: object type: object
additionalProperties: false
description: description:
Child nodes can be specified to contain pin configuration information, Child nodes can be specified to contain pin configuration information,
......
...@@ -24,6 +24,7 @@ patternProperties: ...@@ -24,6 +24,7 @@ patternProperties:
'-pins$': '-pins$':
type: object type: object
$ref: pinmux-node.yaml# $ref: pinmux-node.yaml#
additionalProperties: false
properties: properties:
marvell,function: marvell,function:
......
...@@ -76,6 +76,8 @@ required: ...@@ -76,6 +76,8 @@ required:
patternProperties: patternProperties:
'-[0-9]*$': '-[0-9]*$':
type: object type: object
additionalProperties: false
patternProperties: patternProperties:
'-pins*$': '-pins*$':
type: object type: object
......
...@@ -30,6 +30,7 @@ patternProperties: ...@@ -30,6 +30,7 @@ patternProperties:
"^gpio@[0-7]$": "^gpio@[0-7]$":
type: object type: object
additionalProperties: false
description: description:
Eight GPIO banks (gpio@0 to gpio@7), that each contain between 14 and 18 Eight GPIO banks (gpio@0 to gpio@7), that each contain between 14 and 18
......
...@@ -41,6 +41,7 @@ required: ...@@ -41,6 +41,7 @@ required:
patternProperties: patternProperties:
"^gpio-[0-9]*$": "^gpio-[0-9]*$":
type: object type: object
additionalProperties: false
description: description:
Each port of the r7s72100 pin controller hardware is itself a GPIO Each port of the r7s72100 pin controller hardware is itself a GPIO
......
...@@ -97,6 +97,9 @@ patternProperties: ...@@ -97,6 +97,9 @@ patternProperties:
additionalProperties: false additionalProperties: false
"^(initial|sleep)-state$": "^(initial|sleep)-state$":
type: object
additionalProperties: false
patternProperties: patternProperties:
"^(pin-[a-z0-9-]+|[a-z0-9-]+-pin)$": "^(pin-[a-z0-9-]+|[a-z0-9-]+-pin)$":
$ref: samsung,pinctrl-pins-cfg.yaml $ref: samsung,pinctrl-pins-cfg.yaml
......
...@@ -115,9 +115,12 @@ patternProperties: ...@@ -115,9 +115,12 @@ patternProperties:
'-[0-9]*$': '-[0-9]*$':
type: object type: object
additionalProperties: false
patternProperties: patternProperties:
'^pins': '^pins':
type: object type: object
additionalProperties: false
description: | description: |
A pinctrl node should contain at least one subnode representing the A pinctrl node should contain at least one subnode representing the
pinctrl group available on the machine. Each subnode will list the pinctrl group available on the machine. Each subnode will list the
......
...@@ -36,6 +36,7 @@ patternProperties: ...@@ -36,6 +36,7 @@ patternProperties:
pins it needs, and how they should be configured, with regard to muxer pins it needs, and how they should be configured, with regard to muxer
configuration, pullups, drive strength. configuration, pullups, drive strength.
$ref: "pinmux-node.yaml" $ref: "pinmux-node.yaml"
additionalProperties: false
properties: properties:
function: function:
......
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