ramips: mt7620: use throughput trigger on HiWiFi HC5x61
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Tue, 31 Dec 2019 14:35:41 +0000 (22:35 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 31 Dec 2019 17:09:47 +0000 (18:09 +0100)
Throughput trigger support for MT7620 has been added, so switch to it

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts
target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts
target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds

index 074257ab8604c79307bcfe11ef4060dd2f4145a1..452541137a70dd76597fbc66cee9ae9b62fb9eb7 100644 (file)
@@ -29,6 +29,7 @@
                wlan2g {
                        label = "hc5661:blue:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
        };
 };
index 265f7d9bb1ed3027ea1b31370aa1be747a84baa9..33ef8dd2aa90a3ef7197b05b26aa44039b10e386 100644 (file)
                wlan2g {
                        label = "hc5761:blue:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
 
                wlan5g {
                        label = "hc5761:blue:wlan5g";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
        };
 };
index 73f1a4079ad0bc4fd99736c0835bc7f91f1597f2..83a3a67ed0e1a5265314b56bf6e03f23f314c01a 100644 (file)
@@ -24,6 +24,7 @@
                wlan2g {
                        label = "hc5861:blue:wlan2g";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy1tpt";
                };
 
                internet {
@@ -34,6 +35,7 @@
                wlan5g {
                        label = "hc5861:blue:wlan5g";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                turbo {
index 77a98fa095348487bb14443a86349ee6734f3ad4..02899d646def247c65f8073eaf4d7f5ea36ba2d8 100755 (executable)
@@ -111,19 +111,12 @@ glinet,gl-mt300n|\
 glinet,gl-mt750)
        set_wifi_led "$boardname:wlan"
        ;;
-hiwifi,hc5661)
-       ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01"
-       set_wifi_led "$boardname:blue:wlan2g"
-       ;;
+hiwifi,hc5661|\
 hiwifi,hc5761)
        ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01"
-       ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
-       ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
        ;;
 hiwifi,hc5861)
        ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x20"
-       ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
-       ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
        ;;
 hnet,c108)
        ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"