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 <alex@vinarskis.com>
Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org>
Link: https://lore.kernel.org/r/20250910-leds-v5-2-bb90a0f897d5@vinarskis.com
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
Aleksandrs Vinarskis 2025-09-10 14:01:09 +02:00 committed by Lee Jones
parent 3f5df63955
commit 22420da366
3 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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: