ramips: convert TP-Link MT7620 boards to tpt trigger
authorDavid Bauer <mail@david-bauer.net>
Thu, 2 Jan 2020 02:11:39 +0000 (03:11 +0100)
committerDavid Bauer <mail@david-bauer.net>
Fri, 3 Jan 2020 16:52:35 +0000 (17:52 +0100)
This converts all MediaTek MT7620 boards from TP-Link to use the now
supported WiFi throughput LED trigger. This way, the LED state now
covers all VAPs regardless of their name.

Also align all single-WiFi LEDs to represent the state of the 2.4GHz
radio. This was not always the case previously, as later-added support
for the MT7610 altered the phy probing order.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 1e7c6381f0058e49caab8de54eaad4862732f95d)

target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/dts/ArcherC2-v1.dts
target/linux/ramips/dts/ArcherC20i.dts
target/linux/ramips/dts/ArcherC20v1.dts
target/linux/ramips/dts/ArcherC50.dts
target/linux/ramips/dts/ArcherMR200.dts

index 38125375f4f681e6f3db752113627107ce433976..fa7daf0ff249387d9f63f60f36a20f6fdcc1a560 100755 (executable)
@@ -83,13 +83,10 @@ c108)
 c20i)
        ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
-       ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio"
        ;;
 c50)
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
-       ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1
-       set_wifi_led "$boardname:green:wlan5g"
        ;;
 cf-wr800n)
        ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1
@@ -324,12 +321,10 @@ tl-wr841n-v13)
 tplink,c2-v1)
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
-       set_wifi_led "$boardname:green:wlan"
        ;;
 tplink,c20-v1)
        ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
-       ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0"
        ;;
 tplink,c20-v4)
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
index 921a50a56cd15ecc4a6c63c168c250c6f8fe29a1..5444a6646187ae515dd3fce1c186a041351e45e3 100644 (file)
@@ -57,6 +57,7 @@
                wlan {
                        label = "c2-v1:green:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
        };
 
index cf715a413f97c9ad46f1772b99463083a179f4fa..52c28787632097e53b1554903e754009ef69ca60 100644 (file)
@@ -36,6 +36,7 @@
                wlan {
                        label = "c20i:blue:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
        };
 
index 39e33b8ff0856116acaadce18684550a6a91e203..7add5698865f89949baea4bb4429708a32fc2799 100644 (file)
                wlan5g {
                        label = "c20-v1:blue:wlan5g";
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wlan2g {
                        label = "c20-v1:blue:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
 
                wps {
index b6f5bed0b71e2e2a16c6dcdbab7d1e9f44be2390..3c9f4d772902f2677e467d24573ca101e6af5119 100644 (file)
                wlan5g {
                        label = "c50:green:wlan5g";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wlan2g {
                        label = "c50:green:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
 
                wps {
index ff00dbe958416adb7e0b0faed00226754f79fd33..0ff2f61d42a9310ed1bfa26674a40d18574bc43a 100644 (file)
@@ -71,6 +71,7 @@
                wlan {
                        label = "mr200:white:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
        };