Commit 1759a039 authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Lee Jones
Browse files

dt-bindings: mfd: fsl,mc13xxx: Fix LEDs node schema



The 'leds' node is missing constraints on additional properties. It is
mixing 'leds' node and child node properties as well as missing some
properties. Add the 'led@' child nodes and the missing properties.

Fixes: 1160f9f8 ("dt-bindings: mfd: fsl,mc13xxx: Convert txt to DT schema")
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20251118213541.43812-1-robh@kernel.org


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 384bd58b
Loading
Loading
Loading
Loading
+43 −31
Original line number Diff line number Diff line
@@ -93,7 +93,25 @@ properties:

  leds:
    type: object
    additionalProperties: false

    properties:
      '#address-cells':
        const: 1

      '#size-cells':
        const: 0

      led-control:
        $ref: /schemas/types.yaml#/definitions/uint32-array
        description: |
          Setting for LED-Control register array length depends on model,
          mc13783: 6, mc13892: 4, mc34708: 1

    patternProperties:
      '^led@[0-9a-b]$':
        $ref: /schemas/leds/common.yaml#
        unevaluatedProperties: false

        properties:
          reg:
@@ -126,12 +144,6 @@ properties:
                1: Charger Green
            maxItems: 1

      led-control:
        $ref: /schemas/types.yaml#/definitions/uint32-array
        description: |
          Setting for LED-Control register array length depends on model,
          mc13783: 6, mc13892: 4, mc34708: 1

  regulators:
    type: object

@@ -262,7 +274,7 @@ examples:
                #size-cells = <0>;
                led-control = <0x000 0x000 0x0e0 0x000>;

                sysled@3 {
                led@3 {
                    reg = <3>;
                    label = "system:red:live";
                    linux,default-trigger = "heartbeat";