Commit fe469e83 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

dt-bindings: leds: use unevaluatedProperties for common.yaml

The common.yaml schema allows further properties, so the bindings using
it should restrict it with unevaluatedProperties:false.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221127204058.57111-2-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 47612a9f
...@@ -57,6 +57,7 @@ patternProperties: ...@@ -57,6 +57,7 @@ patternProperties:
"^led@[1-9]$": "^led@[1-9]$":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties: properties:
reg: reg:
......
...@@ -33,6 +33,7 @@ patternProperties: ...@@ -33,6 +33,7 @@ patternProperties:
"^led@[0-2]$": "^led@[0-2]$":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties: properties:
reg: reg:
......
...@@ -23,8 +23,8 @@ patternProperties: ...@@ -23,8 +23,8 @@ patternProperties:
# node name to at least catch some child nodes. # node name to at least catch some child nodes.
"(^led-[0-9a-f]$|led)": "(^led-[0-9a-f]$|led)":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties: properties:
gpios: gpios:
......
...@@ -77,6 +77,14 @@ patternProperties: ...@@ -77,6 +77,14 @@ patternProperties:
"^led@[0-9a-f]+$": "^led@[0-9a-f]+$":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties:
reg:
maxItems: 1
required:
- reg
required: required:
- compatible - compatible
......
...@@ -20,8 +20,8 @@ properties: ...@@ -20,8 +20,8 @@ properties:
patternProperties: patternProperties:
"^led(-[0-9a-f]+)?$": "^led(-[0-9a-f]+)?$":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties: properties:
pwms: pwms:
......
...@@ -72,14 +72,24 @@ properties: ...@@ -72,14 +72,24 @@ properties:
"^led@[0-9a-f]$": "^led@[0-9a-f]$":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties:
reg:
maxItems: 1
required:
- reg
patternProperties: patternProperties:
"^led@[0-9a-f]$": "^led@[0-9a-f]$":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties: properties:
reg: true reg:
maxItems: 1
required: required:
- reg - reg
......
...@@ -27,6 +27,7 @@ properties: ...@@ -27,6 +27,7 @@ properties:
led: led:
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
required: required:
- compatible - compatible
......
...@@ -36,6 +36,7 @@ properties: ...@@ -36,6 +36,7 @@ properties:
led: led:
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
required: required:
- compatible - compatible
......
...@@ -38,8 +38,8 @@ properties: ...@@ -38,8 +38,8 @@ properties:
patternProperties: patternProperties:
"^led@[0-6]$": "^led@[0-6]$":
type: object type: object
$ref: common.yaml# $ref: common.yaml#
unevaluatedProperties: false
properties: properties:
reg: reg:
......
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