mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
dt-bindings: leds: Add default-intensity property
Document the default-intensity property to set a default color on multicolor LEDs. Update pwm-multicolor to support it and update the example to turn the LED red on boot. Signed-off-by: Jonas Rebmann <jre@pengutronix.de> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20260713-multicolor-default-v3-1-fb43f3f789cf@pengutronix.de Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
07e028d93a
commit
2ebd1cb772
|
|
@ -73,6 +73,16 @@ properties:
|
|||
- keep
|
||||
default: off
|
||||
|
||||
default-intensity:
|
||||
description:
|
||||
The initial intensity of the LED color component. As the intensity of
|
||||
each sub-LED is multiplied with the overall brightness, without this
|
||||
property on a sub-LED, it may effectively be initialized at minimum
|
||||
brightness regardless of its linux,default-trigger and default-brightness
|
||||
properties.
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
default: 0
|
||||
|
||||
linux,default-trigger:
|
||||
description:
|
||||
This parameter, if present, is a string defining the trigger assigned to
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ properties:
|
|||
|
||||
color: true
|
||||
|
||||
default-intensity: true
|
||||
|
||||
required:
|
||||
- pwms
|
||||
- color
|
||||
|
|
@ -63,12 +65,14 @@ examples:
|
|||
|
||||
multi-led {
|
||||
color = <LED_COLOR_ID_RGB>;
|
||||
linux,default-trigger = "default-on";
|
||||
function = LED_FUNCTION_INDICATOR;
|
||||
max-brightness = <65535>;
|
||||
|
||||
led-red {
|
||||
pwms = <&pwm1 0 1000000>;
|
||||
color = <LED_COLOR_ID_RED>;
|
||||
default-intensity = <65535>;
|
||||
};
|
||||
|
||||
led-green {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user