Skip to contentSkip to conversation

ARM: dts: omap4: embt2ws: add LED

PATCH In review Andreas Kemnade 3 participants 3 messages Aug 19, 2023 – Oct 31, 2023

Subsystems (2)
lore
Share & tools
lore

Andreas Kemnade

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: omap4: embt2ws: add LED

Add LED since the driver is now available.

---
 .../boot/dts/ti/omap/omap4-epson-embt2ws.dts  | 27 ++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +26 -1
index e119e2cccc4e1..f47d330fb6ee4 100644
@@ -4,6 +4,7 @@
  */
 /dts-v1/;
 
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/input/input.h>
 #include "omap4460.dtsi"
 
@@ -206,7 +207,31 @@ &i2c3 {
 
 	clock-frequency = <100000>;
 
-	/* TODO: BD2606MVV at 0x66 */
+	led-controller@66 {
+		compatible = "rohm,bd2606mvv";
+		reg = <0x66>;
+
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		led@0 {
+			reg = <0>;
+			color = <LED_COLOR_ID_GREEN>;
+			function = LED_FUNCTION_STATUS;
+		};
+
+		led@2 {
+			reg = <2>;
+			color = <LED_COLOR_ID_BLUE>;
+			function = LED_FUNCTION_STATUS;
+		};
+
+		led@4 {
+			reg = <4>;
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_STATUS;
+		};
+	};
 };
 
 &i2c4 {
Signature · 1 line
2.39.2
maintainer
#1 lore raw
Quoted 1 line · Andreas Kemnade

Add LED since the driver is now available.

Thanks applying into omap-for-v6.7/dt.

Tony

#2 lore raw
In reply to Andreas Kemnade

Hi!

Quoted 3 lines

Add LED since the driver is now available.

Is it one LED or three LEDs?

If it is one, we should use multicolor...

BR,
Pavel

Quoted 33 lines
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +25 -1
@@ -206,7 +207,31 @@ &i2c3 {
 
 	clock-frequency = <100000>;
 
-	/* TODO: BD2606MVV at 0x66 */
+	led-controller@66 {
+		compatible = "rohm,bd2606mvv";
+		reg = <0x66>;
+
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		led@0 {
+			reg = <0>;
+			color = <LED_COLOR_ID_GREEN>;
+			function = LED_FUNCTION_STATUS;
+		};
+
+		led@2 {
+			reg = <2>;
+			color = <LED_COLOR_ID_BLUE>;
+			function = LED_FUNCTION_STATUS;
+		};
+
+		led@4 {
+			reg = <4>;
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_STATUS;
+		};
+	};
 };
 
 &i2c4 {
Signature · 1 line
People of Russia, stop Putin before his war on Ukraine escalates.