Skip to content

Commit

Permalink
ARM: dts: Fix LEDs for igepv5
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tony Lindgren committed Sep 13, 2016
1 parent b118c6a commit e7ee0bc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/arm/boot/dts/omap5-board-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@
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";

Expand Down
19 changes: 19 additions & 0 deletions arch/arm/boot/dts/omap5-igep0050.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@
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 {
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/omap5-uevm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
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 {
Expand Down

0 comments on commit e7ee0bc

Please sign in to comment.