From: Mathias Kresin Date: Tue, 28 Aug 2018 05:04:40 +0000 (+0200) Subject: ramips: move status led unset to devicetree X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c074239c79ae8704c96e4e1ba94dde3015a882c9;p=openwrt%2Fstaging%2Faparcar.git ramips: move status led unset to devicetree Release the led used for boot status indication via devicetree instead of setting a default off trigger in userspace. Signed-off-by: Mathias Kresin --- 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 e45508ee2b..0767d90894 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -33,7 +33,6 @@ air3gii) ;; alfa-network,ac1200rm) set_wifi_led "$boardname:green:wlan2g" "wlan1" - ucidef_set_led_default "wps" "wps" "$boardname:green:wps" "0" ;; alfa-network,awusfree1) set_wifi_led "$boardname:blue:wlan" @@ -78,9 +77,6 @@ cf-wr800n) ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1 set_wifi_led "$boardname:white:wifi" ;; -cy-swr1100) - ucidef_set_led_default "wps" "WPS" "$boardname:blue:wps" "0" - ;; d240) set_wifi_led "$boardname:blue:wifi" ;; @@ -117,12 +113,10 @@ dlink,dwr-118-a2) ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0e" ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" set_wifi_led "$boardname:green:wlan2g" "wlan1" - ucidef_set_led_default "internet" "internet" "$boardname:green:internet" "0" ;; dlink,dwr-921-c1) set_wifi_led "$boardname:green:wifi" ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f" - ucidef_set_led_default "sigstrength" "Signal Strength" "$boardname:green:sigstrength" "0" ;; dir-860l-b1) ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "eth0.2" @@ -139,7 +133,6 @@ ex3700) ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1" ;; f5d8235-v1) - ucidef_set_led_default "lan" "lan" "$boardname:blue:wired" "0" set_wifi_led "$boardname:blue:wireless" ;; fonera20n) @@ -407,16 +400,12 @@ y1s) ;; youhua,wr1200js) ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01" - ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0" ;; zbt-ape522ii) ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1" ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx" ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx" ;; -zbt-cpe102) - ucidef_set_led_default "power" "power" "$boardname:green:4g-0" "0" - ;; zbt-wa05) set_wifi_led "$boardname:blue:air" ;; diff --git a/target/linux/ramips/dts/AC1200RM.dts b/target/linux/ramips/dts/AC1200RM.dts index 4af779314d..013554168d 100644 --- a/target/linux/ramips/dts/AC1200RM.dts +++ b/target/linux/ramips/dts/AC1200RM.dts @@ -44,8 +44,6 @@ aliases { led-boot = &led_wps; led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; }; chosen { diff --git a/target/linux/ramips/dts/CY-SWR1100.dts b/target/linux/ramips/dts/CY-SWR1100.dts index c852571468..2d948b0323 100644 --- a/target/linux/ramips/dts/CY-SWR1100.dts +++ b/target/linux/ramips/dts/CY-SWR1100.dts @@ -12,8 +12,6 @@ aliases { led-boot = &led_wps; led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; }; nor-flash@1c000000 { diff --git a/target/linux/ramips/dts/DWR-118-A2.dts b/target/linux/ramips/dts/DWR-118-A2.dts index e91e80e69b..d53073e25e 100644 --- a/target/linux/ramips/dts/DWR-118-A2.dts +++ b/target/linux/ramips/dts/DWR-118-A2.dts @@ -12,8 +12,6 @@ aliases { led-boot = &led_internet; led-failsafe = &led_internet; - led-running = &led_internet; - led-upgrade = &led_internet; }; gpio-keys-polled { diff --git a/target/linux/ramips/dts/DWR-921-C1.dts b/target/linux/ramips/dts/DWR-921-C1.dts index 6f65453797..c4a3373822 100644 --- a/target/linux/ramips/dts/DWR-921-C1.dts +++ b/target/linux/ramips/dts/DWR-921-C1.dts @@ -12,8 +12,6 @@ aliases { led-boot = &led_sstrenghg; led-failsafe = &led_sstrenghg; - led-running = &led_sstrenghg; - led-upgrade = &led_sstrenghg; }; gpio-keys-polled { diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts index b1506a84af..a8c991049d 100644 --- a/target/linux/ramips/dts/F5D8235_V1.dts +++ b/target/linux/ramips/dts/F5D8235_V1.dts @@ -14,8 +14,6 @@ aliases { led-boot = &led_wired_blue; led-failsafe = &led_wired_blue; - led-running = &led_wired_blue; - led-upgrade = &led_wired_blue; }; cfi@1f000000 { diff --git a/target/linux/ramips/dts/WR1200JS.dts b/target/linux/ramips/dts/WR1200JS.dts index 83388f6235..e1f3247aad 100644 --- a/target/linux/ramips/dts/WR1200JS.dts +++ b/target/linux/ramips/dts/WR1200JS.dts @@ -12,8 +12,6 @@ aliases { led-boot = &led_wps; led-failsafe = &led_wps; - led-running = &led_wps; - led-upgrade = &led_wps; }; memory@0 { diff --git a/target/linux/ramips/dts/ZBT-CPE102.dts b/target/linux/ramips/dts/ZBT-CPE102.dts index dbe89b4f5e..4da8644a9c 100644 --- a/target/linux/ramips/dts/ZBT-CPE102.dts +++ b/target/linux/ramips/dts/ZBT-CPE102.dts @@ -17,8 +17,6 @@ aliases { led-boot = &led_4g_0; led-failsafe = &led_4g_0; - led-running = &led_4g_0; - led-upgrade = &led_4g_0; }; gpio-leds {