diff options
author | Thibaut VARENE <hacks@slashdirt.org> | 2017-07-29 11:32:44 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-07-29 12:07:16 +0200 |
commit | c407e6c2f29b96fe589370125595004e856f78d5 (patch) | |
tree | ea06408d73a448cf82ad460d2482ed655d8bb610 /target/linux | |
parent | 8e67c358e775377c47a716ea0eda96d5ca0f7c66 (diff) | |
download | upstream-c407e6c2f29b96fe589370125595004e856f78d5.tar.gz upstream-c407e6c2f29b96fe589370125595004e856f78d5.tar.bz2 upstream-c407e6c2f29b96fe589370125595004e856f78d5.zip |
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@slashdirt.org>
[add the power led default-state which was omitted in the last commit
by me]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 1 | ||||
-rw-r--r-- | target/linux/ramips/dts/ArcherC50.dts | 1 |
2 files changed, 1 insertions, 1 deletions
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 4e6eeb26ba..2956defca8 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -90,7 +90,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 294fb5a5ec..7846180b4b 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 { |