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

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.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 47612a9f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ patternProperties:
  "^led@[1-9]$":
    type: object
    $ref: common.yaml#
    unevaluatedProperties: false

    properties:
      reg:
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ patternProperties:
  "^led@[0-2]$":
    type: object
    $ref: common.yaml#
    unevaluatedProperties: false

    properties:
      reg:
+1 −1
Original line number Diff line number Diff line
@@ -23,8 +23,8 @@ patternProperties:
  # node name to at least catch some child nodes.
  "(^led-[0-9a-f]$|led)":
    type: object

    $ref: common.yaml#
    unevaluatedProperties: false

    properties:
      gpios:
+8 −0
Original line number Diff line number Diff line
@@ -77,6 +77,14 @@ patternProperties:
      "^led@[0-9a-f]+$":
        type: object
        $ref: common.yaml#
        unevaluatedProperties: false

        properties:
          reg:
            maxItems: 1

        required:
          - reg

required:
  - compatible
+1 −1
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@ properties:
patternProperties:
  "^led(-[0-9a-f]+)?$":
    type: object

    $ref: common.yaml#
    unevaluatedProperties: false

    properties:
      pwms:
Loading