ARM: dts: ti/omap: embt2ws: define RGB LED
Andreas Kemnade
maintainercover ARM: dts: ti/omap: embt2ws: define RGB LED
Combine the LED definitions into an RGB LED and add the drivers into defconfig.
This has already been suggested a long time ago.
Signed-off-by Andreas Kemnade <[email protected]>
---
Andreas Kemnade (2):
ARM: dts: ti/omap: embt2ws: use mulit-led for RGB LED
arm: omap2plus_defconfig: Enable multi-LED
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 13 ++++++++++--- arch/arm/configs/omap2plus_defconfig | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-)
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260702-b200multiled-ce27e3f3a5f6
Best regards,
Signature · 1 line
Andreas Kemnade <[email protected]>
Andreas Kemnade
maintainerPATCH 1/2 ARM: dts: ti/omap: embt2ws: use mulit-led for RGB LED
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(-)
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +10 -3
@@ -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;
Signature · 1 line
2.47.3
Andreas Kemnade
maintainerPATCH 2/2 arm: omap2plus_defconfig: Enable multi-LED
In reply to Andreas KemnadeEnable drivers needed to use RGB LEDs composed of multiple monochromatic LEDs.
Signed-off-by Andreas Kemnade <[email protected]>
--- arch/arm/configs/omap2plus_defconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/configs/omap2plus_defconfig +2 -0
@@ -602,6 +602,7 @@ CONFIG_MMC_OMAP_HS=y CONFIG_MMC_SDHCI_OMAP=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=m +CONFIG_LEDS_CLASS_MULTICOLOR=m CONFIG_LEDS_CPCAP=m CONFIG_LEDS_LM3532=m CONFIG_LEDS_GPIO=m
@@ -611,6 +612,7 @@ CONFIG_LEDS_PCA963X=m CONFIG_LEDS_PWM=m CONFIG_LEDS_BD2606MVV=m CONFIG_LEDS_TCA6507=m +CONFIG_LEDS_GROUP_MULTICOLOR=m CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=m CONFIG_LEDS_TRIGGER_ONESHOT=m
Signature · 1 line
2.47.3