aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2019-08-30 20:11:45 +0200
committerDavid Bauer <mail@david-bauer.net>2019-08-31 10:31:00 +0200
commitfa46c9b208fe3833f085e9f6ddf7c492b16f6c34 (patch)
tree6b2dc819ef181ec8e2d4c1c301c9f9692d7c2f39
parent607dfdf211bebb5043cbc0267c1e2c3e3c2514b4 (diff)
downloadupstream-fa46c9b208fe3833f085e9f6ddf7c492b16f6c34.tar.gz
upstream-fa46c9b208fe3833f085e9f6ddf7c492b16f6c34.tar.bz2
upstream-fa46c9b208fe3833f085e9f6ddf7c492b16f6c34.zip
ramips: use phy trigger for various Netgear boards
This commit switches the default trigger for the WiFi LED from a netdev trigger on "wlan0" to a wireless-phy based trigger. THis allows the LED to work, even when the wireless interface is not named "wlan0" without modifiying the LED settings. Signed-off-by: David Bauer <mail@david-bauer.net>
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds1
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_r6220.dtsi1
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_r6350.dts1
3 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index e54300dafb..6735876651 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -296,7 +296,6 @@ netgear,r6220|\
netgear,r6350|\
netgear,wndr3700-v5)
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
- set_wifi_led "$boardname:green:wifi"
;;
omnima,hpm)
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
diff --git a/target/linux/ramips/dts/mt7621_netgear_r6220.dtsi b/target/linux/ramips/dts/mt7621_netgear_r6220.dtsi
index 1874850111..17000a5bf2 100644
--- a/target/linux/ramips/dts/mt7621_netgear_r6220.dtsi
+++ b/target/linux/ramips/dts/mt7621_netgear_r6220.dtsi
@@ -39,6 +39,7 @@
led_wifi: wifi {
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy0tpt";
};
led_wps: wps {
diff --git a/target/linux/ramips/dts/mt7621_netgear_r6350.dts b/target/linux/ramips/dts/mt7621_netgear_r6350.dts
index 403fc91d54..a5c3a1907c 100644
--- a/target/linux/ramips/dts/mt7621_netgear_r6350.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_r6350.dts
@@ -44,6 +44,7 @@
wifi {
label = "r6350:green:wifi";
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy0tpt";
};
};