ramips: use WiFi LED DT triggers for TP-Link RE650 v1
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 7 Jul 2020 09:49:36 +0000 (11:49 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 7 Jul 2020 09:57:48 +0000 (11:57 +0200)
This moves WiFi LED triggers from 01_leds to device tree.

While at it, convert the labels there to lower case; this is
more commonly used and the change will actually remove competition
between DT trigger and leftover uci config on already installed
systems.

Suggested-by: Georgi Vlaev <georgi.vlaev@gmail.com>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7621_tplink_re650-v1.dts
target/linux/ramips/mt7621/base-files/etc/board.d/01_leds

index ab8805f163d038755b534680907ef93eb76a2559..b7290635b95ef220f5cbe51595fbb235b2a77787 100644 (file)
                };
 
                wifi2g {
-                       label = "re650-v1:blue:wifi2G";
+                       label = "re650-v1:blue:wifi2g";
                        gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wifi5g {
-                       label = "re650-v1:blue:wifi5G";
+                       label = "re650-v1:blue:wifi5g";
                        gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
 
                wps_red {
index 2e3dca7901a3d61093e3bae04788400c9e99bfac..37ebd0fb640666e108dbddf42428a6365d5ddecc 100755 (executable)
@@ -68,14 +68,14 @@ netgear,r6800)
        ucidef_set_led_netdev "lan3" "LAN3" "$boardname:white:lan3" "lan3"
        ucidef_set_led_netdev "lan4" "LAN4" "$boardname:white:lan4" "lan4"
        ;;
-tplink,re350-v1|\
-tplink,re650-v1)
+tplink,re350-v1)
        ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
        ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1"
        ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx"
        ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link"
        ;;
-tplink,re500-v1)
+tplink,re500-v1|\
+tplink,re650-v1)
        ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx"
        ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link"
        ;;