[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <364df52a196fa0ae5db07e599995fcf8dfafb43e.1651575831.git.sven.schwermer@disruptive-technologies.com>
Date: Tue, 3 May 2022 13:04:50 +0200
From: Sven Schwermer <sven@...nschwermer.de>
To: linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org,
pavel@....cz, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, dmurphy@...com,
devicetree@...r.kernel.org
Cc: Sven Schwermer <sven.schwermer@...ruptive-technologies.com>
Subject: [PATCH v1 1/2] dt-bindings: leds: Add multi-color default-intensities property
From: Sven Schwermer <sven.schwermer@...ruptive-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@...ruptive-technologies.com>
---
.../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
Powered by blists - more mailing lists