[PATCH RFC 1/2] dt-bindings: leds-group-multicolor: Introduce default-intensity
Stefan Wahren <[email protected]>
| Newsgroups | org.kernel.vger.linux-leds,org.kernel.vger.linux-devicetree |
|---|---|
| Message-ID | <[email protected]> |
Currently it's not possible to specify the initial color of a LED group during boot. So introduce a new property similar to default-brightness, which specifies the intensity of each LED in the group. Signed-off-by: Stefan Wahren <[email protected]> --- .../devicetree/bindings/leds/leds-group-multicolor.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml index 5c9cfa39396b..18b722b807ba 100644 --- a/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml +++ b/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml @@ -19,6 +19,12 @@ properties: leds: true + default-intensity: + description: + Intensity to be set for each individual LED. Used only during + initialization. If the property is not set then max intensity is used. + $ref: /schemas/types.yaml#/definitions/uint32-array + required: - leds @@ -56,6 +62,7 @@ examples: color = <LED_COLOR_ID_RGB>; function = LED_FUNCTION_INDICATOR; leds = <&led0>, <&led1>, <&led2>; + default-intensity = <1 0 0>; }; ... -- 2.43.0