diff options
author | Rob Herring <robh@kernel.org> | 2020-10-06 20:19:08 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-10-27 00:13:56 +0300 |
commit | f84e2c5c528d937564e4a9e3411418e4c914b1fb (patch) | |
tree | 6858796d03eb49df0b467a68911b0cea6d8b5128 /Documentation/devicetree/bindings/leds | |
parent | 62298364bd489b06d16370fd258c7be6a906729c (diff) | |
download | linux-f84e2c5c528d937564e4a9e3411418e4c914b1fb.tar.xz |
dt-bindings: Another round of adding missing 'additionalProperties/unevalutatedProperties'
Another round of wack-a-mole. The json-schema default is additional
unknown properties are allowed, but for DT all properties should be
defined.
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/leds')
-rw-r--r-- | Documentation/devicetree/bindings/leds/backlight/common.yaml | 2 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/leds/leds-lp50xx.yaml | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/backlight/common.yaml b/Documentation/devicetree/bindings/leds/backlight/common.yaml index 4e7e95e331a5..bc817f77d2b1 100644 --- a/Documentation/devicetree/bindings/leds/backlight/common.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/common.yaml @@ -32,3 +32,5 @@ properties: that a LED can be made so bright that it gets damaged or causes damage due to restrictions in a specific system, such as mounting conditions. $ref: /schemas/types.yaml#definitions/uint32 + +additionalProperties: true diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index 947542a253ec..c192b5feadc7 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml @@ -46,6 +46,12 @@ properties: vled-supply: description: LED supply. + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + patternProperties: '^multi-led@[0-9a-f]$': type: object @@ -69,6 +75,8 @@ required: - compatible - reg +additionalProperties: false + examples: - | #include <dt-bindings/gpio/gpio.h> |