ARM: dts: Fix LEDs for igepv5
authorTony Lindgren <tony@atomide.com>
Sun, 11 Sep 2016 20:50:57 +0000 (13:50 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 13 Sep 2016 23:14:19 +0000 (16:14 -0700)
The LEDs on igepv5 are on the GPIO expander unlike on omap5-uevm.

Configuration copied from git.isee.biz git tree except fixed for
red and blue mapping.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap5-board-common.dtsi
arch/arm/boot/dts/omap5-igep0050.dts
arch/arm/boot/dts/omap5-uevm.dts

index c61eb2063be8e96d008876d1ebbdb382d5ed3815..6365635fea5c8dd5e65ac70459a1a6427631fd9a 100644 (file)
                reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
        };
 
-       leds {
-               compatible = "gpio-leds";
-               led1 {
-                       label = "omap5:blue:usr1";
-                       gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
-                       linux,default-trigger = "heartbeat";
-                       default-state = "off";
-               };
-       };
-
        tpd12s015: encoder {
                compatible = "ti,tpd12s015";
 
index f24b4498537a79779d2a0dc21faeb879e6feb86b..eceab970eba4870ca4ef06c5de6260f5e0ef0af7 100644 (file)
                        gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
                };
        };
+
+       leds {
+               compatible = "gpio-leds";
+               led@1 {
+                       label = "board:green:usr0";
+                       gpios = <&tca6416 1 0>;
+                       default-state = "off";
+               };
+               led@2 {
+                       label = "board:red:usr1";
+                       gpios = <&tca6416 2 0>;
+                       default-state = "off";
+               };
+               led@3 {
+                       label = "board:blue:usr1";
+                       gpios = <&tca6416 3 0>;
+                       default-state = "off";
+               };
+       };
 };
 
 &hdmi {
index 17704479f618201c68154307dffa246c7565b72f..6966b77976ba8430be1f5317ac92ac4cf45d68d7 100644 (file)
                device_type = "memory";
                reg = <0x80000000 0x7F000000>; /* 2032 MB */
        };
+
+       leds {
+               compatible = "gpio-leds";
+               led1 {
+                       label = "omap5:blue:usr1";
+                       gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
+                       linux,default-trigger = "heartbeat";
+                       default-state = "off";
+               };
+       };
 };
 
 &hdmi {