ramips: move status led unset to devicetree
authorMathias Kresin <dev@kresin.me>
Tue, 28 Aug 2018 05:04:40 +0000 (07:04 +0200)
committerMathias Kresin <dev@kresin.me>
Sun, 7 Oct 2018 09:34:18 +0000 (11:34 +0200)
Release the led used for boot status indication via devicetree instead
of setting a default off trigger in userspace.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/dts/AC1200RM.dts
target/linux/ramips/dts/CY-SWR1100.dts
target/linux/ramips/dts/DWR-118-A2.dts
target/linux/ramips/dts/DWR-921-C1.dts
target/linux/ramips/dts/F5D8235_V1.dts
target/linux/ramips/dts/WR1200JS.dts
target/linux/ramips/dts/ZBT-CPE102.dts

index e45508e..0767d90 100755 (executable)
@@ -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"
        ;;
index 4af7793..0135541 100644 (file)
@@ -44,8 +44,6 @@
        aliases {
                led-boot = &led_wps;
                led-failsafe = &led_wps;
-               led-running = &led_wps;
-               led-upgrade = &led_wps;
        };
 
        chosen {
index c852571..2d948b0 100644 (file)
@@ -12,8 +12,6 @@
        aliases {
                led-boot = &led_wps;
                led-failsafe = &led_wps;
-               led-running = &led_wps;
-               led-upgrade = &led_wps;
        };
 
        nor-flash@1c000000 {
index e91e80e..d53073e 100644 (file)
@@ -12,8 +12,6 @@
        aliases {
                led-boot = &led_internet;
                led-failsafe = &led_internet;
-               led-running = &led_internet;
-               led-upgrade = &led_internet;
        };
 
        gpio-keys-polled {
index 6f65453..c4a3373 100644 (file)
@@ -12,8 +12,6 @@
        aliases {
                led-boot = &led_sstrenghg;
                led-failsafe = &led_sstrenghg;
-               led-running = &led_sstrenghg;
-               led-upgrade = &led_sstrenghg;
        };
 
        gpio-keys-polled {
index b1506a8..a8c9910 100644 (file)
@@ -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 {
index 83388f6..e1f3247 100644 (file)
@@ -12,8 +12,6 @@
        aliases {
                led-boot = &led_wps;
                led-failsafe = &led_wps;
-               led-running = &led_wps;
-               led-upgrade = &led_wps;
        };
 
        memory@0 {
index dbe89b4..4da8644 100644 (file)
@@ -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 {