mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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:
parent
3f5df63955
commit
22420da366
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user