[source] ramips: Archer C50v1: fix power led

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 29 03:07:05 PDT 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/a6f6f8df23a06739d062ff4cf3e996b2aea200ae

commit a6f6f8df23a06739d062ff4cf3e996b2aea200ae
Author: Thibaut VARENE <hacks at slashdirt.org>
AuthorDate: Sat Jul 29 11:32:44 2017 +0200

    ramips: Archer C50v1: fix power led
    
    01_leds had a workaround for the power led to compensate for the
    inverted GPIO state. This patch was missing from my previous commit.
    
    Signed-off-by: Thibaut VARENE <hacks at slashdirt.org>
    [add the power led default-state which was omitted in the last commit
    by me]
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 target/linux/ramips/base-files/etc/board.d/01_leds | 1 -
 target/linux/ramips/dts/ArcherC50.dts              | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 8678a77..f6208fb 100644
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -92,7 +92,6 @@ c20i)
 	ucidef_set_led_wlan "wlan" "wlan" "$board:blue:wlan" "phy0radio"
 	;;
 c50)
-	ucidef_set_led_default "power" "power" "$board:green:power" "0"
 	ucidef_set_led_switch "lan" "lan" "$board:green:lan" "switch0" "0x1e"
 	ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x01"
 	set_usb_led "$board:green:usb"
diff --git a/target/linux/ramips/dts/ArcherC50.dts b/target/linux/ramips/dts/ArcherC50.dts
index e8a1893..497238f 100644
--- a/target/linux/ramips/dts/ArcherC50.dts
+++ b/target/linux/ramips/dts/ArcherC50.dts
@@ -23,6 +23,7 @@
 		power {
 			label = "c50:green:power";
 			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+			default-state = "on";
 		};
 
 		usb {



More information about the lede-commits mailing list