lkml.org 
[lkml]   [2022]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 1/2] dt-bindings: leds: Add multi-color default-intensities property
Date
From: Sven Schwermer <sven.schwermer@disruptive-technologies.com>

This allows to assign intensity values to the indivisual sub LEDs
(colors) at driver probe time, i.e. most commonly at kernel boot time.
This is crucial for setting a specific color early in the boot process.

Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
---

Notes:
V1->V2: no changes

.../devicetree/bindings/leds/leds-class-multicolor.yaml | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
index 37445c68cdef..c483967a847c 100644
--- a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
@@ -31,6 +31,13 @@ patternProperties:
include/linux/leds/common.h.
enum: [ 8, 9 ]

+ default-intensities:
+ description: |
+ This parameter, if present, sets the initial intensities of the
+ individual colors. This array must have the same length as the
+ multi-color LED has sub LEDs (colors).
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+
$ref: "common.yaml#"

required:
--
2.36.0
\
 
 \ /
  Last update: 2022-05-03 13:28    [W:0.037 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site