Commit 22420da3 authored by Aleksandrs Vinarskis's avatar Aleksandrs Vinarskis Committed by Lee Jones
Browse files

dt-bindings: leds: Unify 'leds' property



A number of existing schemas use 'leds' property to provide
phandle-array of LED(s) to the consumer. Additionally, with the
upcoming privacy-led support in device-tree, v4l2 subnode could be a
LED consumer, meaning that all camera sensors should support 'leds'
and 'led-names' property via common 'video-interface-devices.yaml'.

To avoid duplication, unify 'leds' property from existing schemas
to newly introduced 'led-consumer.yaml'.

Signed-off-by: default avatarAleksandrs Vinarskis <alex@vinarskis.com>
Reviewed-by: default avatar"Rob Herring (Arm)" <robh@kernel.org>
Link: https://lore.kernel.org/r/20250910-leds-v5-2-bb90a0f897d5@vinarskis.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 3f5df639
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -23,11 +23,7 @@ properties:
  compatible:
    const: led-backlight

  leds:
    description: A list of LED nodes
    $ref: /schemas/types.yaml#/definitions/phandle-array
    items:
      maxItems: 1
  leds: true

required:
  - compatible
+1 −4
Original line number Diff line number Diff line
@@ -17,10 +17,7 @@ properties:
  compatible:
    const: leds-group-multicolor

  leds:
    description:
      An aray of monochromatic leds
    $ref: /schemas/types.yaml#/definitions/phandle-array
  leds: true

required:
  - leds
+8 −0
Original line number Diff line number Diff line
@@ -17,6 +17,14 @@ properties:
      An array of phandles, each referring to a flash LED, a sub-node of the LED
      driver device node.

  leds:
    minItems: 1
    maxItems: 1

  led-names:
    enum:
      - privacy

  lens-focus:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: