Skip to content

Commit 22420da

Browse files
alexVinarskislag-linaro
authored andcommitted
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: Aleksandrs Vinarskis <[email protected]> Reviewed-by: "Rob Herring (Arm)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 3f5df63 commit 22420da

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ properties:
2323
compatible:
2424
const: led-backlight
2525

26-
leds:
27-
description: A list of LED nodes
28-
$ref: /schemas/types.yaml#/definitions/phandle-array
29-
items:
30-
maxItems: 1
26+
leds: true
3127

3228
required:
3329
- compatible

Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ properties:
1717
compatible:
1818
const: leds-group-multicolor
1919

20-
leds:
21-
description:
22-
An aray of monochromatic leds
23-
$ref: /schemas/types.yaml#/definitions/phandle-array
20+
leds: true
2421

2522
required:
2623
- leds

Documentation/devicetree/bindings/media/video-interface-devices.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ properties:
1717
An array of phandles, each referring to a flash LED, a sub-node of the LED
1818
driver device node.
1919

20+
leds:
21+
minItems: 1
22+
maxItems: 1
23+
24+
led-names:
25+
enum:
26+
- privacy
27+
2028
lens-focus:
2129
$ref: /schemas/types.yaml#/definitions/phandle
2230
description:

0 commit comments

Comments
 (0)