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 e45508ee2bdee1c1a08d6122e41561c1926d3d75..0767d9089403be4571e32c100a2733421b73baa3 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 4af779314d5e34b2086daf4e7bdb9573aea456e9..013554168df236a23e587516c0b3aba374d3c7e7 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 c852571468b8492efc19e7a4aba568900ac6579d..2d948b0323af4edfb5f3de0bda3b3b5d8cdd9a9a 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 e91e80e69bb10bb33172dcef59e5e7bdab05aa85..d53073e25e7dae4e6cdc6a9332ce4aede39f1427 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 6f654537972b9d322c70203bcfdfdd3261a9e329..c4a3373822bfcb0251916a6f71f841f0b92f7c2d 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 b1506a84afe213bda5ede197cfaa7b3f0c5caab3..a8c991049d5cdbf62887e3903d448afdc9a1cd12 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 83388f623591037fe18f1034480ed426a62f6c84..e1f3247aad78d944ca10e30204fb7a6570b98628 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 dbe89b4f5e4d41069119b1d3bc65052f1da6148d..4da8644a9cd6dd429b9d98c177ba3fd4f6a72a6a 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 {