ramips: use tpt DTS trigger for TP-Link TL-MR3020 v3 and TL-WA801ND v5
authorJan Alexander <jan@nalx.net>
Thu, 30 Jan 2020 14:23:51 +0000 (15:23 +0100)
committerDavid Bauer <mail@david-bauer.net>
Thu, 30 Jan 2020 21:15:55 +0000 (22:15 +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 and TL-WA801NDv5.

Signed-off-by: Jan Alexander <jan@nalx.net>
[changed commit title and extended commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[added comment about test result on TL-WA801ND v5]
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 20eb45da4fc19c12ea2073471992eeaf9d602fa5)

target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/dts/TL-MR3020V3.dts
target/linux/ramips/dts/TL-WA801NDV5.dts

index 0845db393d76632e1af2e63e9a8fb1df611c9218..5c005db0c1074f7ea051baf3ae3fbc5fe1e81556 100755 (executable)
@@ -337,13 +337,9 @@ tplink,c50-v4)
        ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
        ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
        ;;
-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-wa801nd-v5|\
 tplink,tl-mr3020-v3)
-       set_wifi_led "$boardname:green:wlan"
-       ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
+       ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
        ;;
 tplink,tl-mr3420-v5|\
 tplink,tl-wr842n-v5)
index 7a9ef414463e7b96e500cddea7f3957b81e6f2fe..361754bced7c800ddd136397b5e89f4df37fa3ad 100644 (file)
@@ -67,6 +67,7 @@
                wlan {
                        label = "tl-mr3020-v3:green:wlan";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wps {
index 409e13e2dfb39e0c7c7d565f30f67267721ae14b..44f1a6e9f498e768179eed763d3127184b433b2a 100644 (file)
@@ -49,6 +49,7 @@
                wlan {
                        label = "tl-wa801nd-v5:green:wlan";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wps_red {