[PATCH 1/2] ARM: dts: ti/omap: embt2ws: use mulit-led for RGB LED
Andreas Kemnade <[email protected]> Thu, 02 Jul 2026 15:52:43 +0200
| Newsgroups | org.kernel.vger.linux-omap,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
The device has one single RGB LED. Explicitly declare it as such by combing the LEDs into one. Suggested-by: Pavel Machek <[email protected]> Signed-off-by: Andreas Kemnade <[email protected]> --- arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts index e253e0775ea9..e11d1931c42a 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -64,6 +64,13 @@ key-lock { }; }; + multi-led { + compatible = "leds-group-multicolor"; + color = <LED_COLOR_ID_RGB>; + function = LED_FUNCTION_STATUS; + leds = <&led_r>, <&led_g>, <&led_b>; + }; + cb_v18: regulator-cb-v18 { pinctrl-names = "default"; pinctrl-0 = <&cb_v18_pins>; @@ -368,19 +375,19 @@ led-controller@66 { #address-cells = <1>; #size-cells = <0>; - led@0 { + led_g: led@0 { reg = <0>; color = <LED_COLOR_ID_GREEN>; function = LED_FUNCTION_STATUS; }; - led@2 { + led_b: led@2 { reg = <2>; color = <LED_COLOR_ID_BLUE>; function = LED_FUNCTION_STATUS; }; - led@4 { + led_r: led@4 { reg = <4>; color = <LED_COLOR_ID_RED>; function = LED_FUNCTION_STATUS; -- 2.47.3