[OpenWrt-Devel] [PATCH] ramips: mt7620: use throughput trigger on HiWiFi HC5x61

DENG Qingfang dengqf6 at mail2.sysu.edu.cn
Mon Dec 30 10:59:12 EST 2019


Throughput trigger support for MT7620 has been added, so switch to it
Remove HC5661 non-existent 5GHz LED

Signed-off-by: DENG Qingfang <dengqf6 at mail2.sysu.edu.cn>
---
 target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts        | 6 +-----
 target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts        | 2 ++
 target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts        | 2 ++
 .../linux/ramips/mt7620/base-files/etc/board.d/01_leds   | 9 +--------
 4 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts
index 185e045de1..452541137a 100644
--- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts
+++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts
@@ -29,11 +29,7 @@
 		wlan2g {
 			label = "hc5661:blue:wlan2g";
 			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
-		};
-
-		wlan5g {
-			label = "hc5661:blue:wlan5g";
-			gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "phy0tpt";
 		};
 	};
 };
diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts
index 265f7d9bb1..33ef8dd2aa 100644
--- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts
+++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts
@@ -29,11 +29,13 @@
 		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";
 		};
 	};
 };
diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
index 73f1a4079a..83a3a67ed0 100644
--- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
+++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
@@ -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 {
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
index d88fdfb043..c71333654a 100755
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
@@ -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"
-- 
2.24.1




_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list