ramips: use tpt DTS trigger for TP-Link TL-MR3020 v3 and TL-WA801ND v5
authorJan Alexander <jan@nalx.net>
Wed, 29 Jan 2020 14:03:18 +0000 (15:03 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 30 Jan 2020 12:09:12 +0000 (13:09 +0100)
This converts the TP-Link TL-MR3020v3 board to use the WLAN throughput
LED trigger in order to react to all VAPs.

It also moves the WLAN trigger config of the TP-Link TL-WA801NDv5 to the
DTS and merges the now identical LAN LED configs.

Verified these changes on a TL-MR3020v3.

Signed-off-by: Jan Alexander <jan@nalx.net>
[changed commit title and extended commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds

index fa69110d45465423dc40583dcef0599b17b65513..cf0f5eb796d49c4ed125c1be941773d9295e90f0 100644 (file)
@@ -61,6 +61,7 @@
                wlan {
                        label = "tl-mr3020-v3:green:wlan";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wps {
index d2cb271efb2e401c820413ce85c4cb2128ae2886..7b9033202c7ac2b7dfd67cb27222f7aeb1ade1f1 100644 (file)
@@ -48,6 +48,7 @@
                wlan {
                        label = "tl-wa801nd-v5:green:wlan";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wps_red {
index 79f45ba545e3922153e9f614720eda856d918c31..877dbb60bd567dd04e72923d74b6f40f73052391 100755 (executable)
@@ -64,9 +64,9 @@ tplink,archer-c50-v4)
        ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
        ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
        ;;
-tplink,tl-mr3020-v3)
-       set_wifi_led "$boardname:green:wlan"
-       ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
+tplink,tl-mr3020-v3|\
+tplink,tl-wa801nd-v5)
+       ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
        ;;
 tplink,tl-mr3420-v5|\
 tplink,tl-wr842n-v5)
@@ -74,10 +74,6 @@ tplink,tl-wr842n-v5)
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
        ;;
-tplink,tl-wa801nd-v5)
-       ucidef_set_led_wlan "wlan" "wlan" "$boardname:green:wlan" "phy0tpt"
-       ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
-       ;;
 tplink,tl-wr840n-v4)
        ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"