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-09-07 00:59:41 +0200
commitf057133349847929080af18ac7687e19d125b7dd (patch)
tree0b7aac418ca78b40523f33a5eaf9fa9b68f661a4
parentb8b62b8506f5465331e749799c36ef49160036f4 (diff)
downloadupstream-f057133349847929080af18ac7687e19d125b7dd.tar.gz
upstream-f057133349847929080af18ac7687e19d125b7dd.tar.bz2
upstream-f057133349847929080af18ac7687e19d125b7dd.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> (cherry picked from commit fa46c9b208fe3833f085e9f6ddf7c492b16f6c34)
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds1
-rw-r--r--target/linux/ramips/dts/R6220.dtsi1
-rw-r--r--target/linux/ramips/dts/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 35d046cc90..f5e914c518 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -278,7 +278,6 @@ r6220|\
netgear,r6350|\
wndr3700v5)
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
- set_wifi_led "$boardname:green:wifi"
;;
re350-v1)
ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
diff --git a/target/linux/ramips/dts/R6220.dtsi b/target/linux/ramips/dts/R6220.dtsi
index 98a2078ecc..4dbb234e82 100644
--- a/target/linux/ramips/dts/R6220.dtsi
+++ b/target/linux/ramips/dts/R6220.dtsi
@@ -44,6 +44,7 @@
led_wifi: wifi {
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy0tpt";
};
led_wps: wps {
diff --git a/target/linux/ramips/dts/R6350.dts b/target/linux/ramips/dts/R6350.dts
index e49a5decde..538fa21ace 100644
--- a/target/linux/ramips/dts/R6350.dts
+++ b/target/linux/ramips/dts/R6350.dts
@@ -49,6 +49,7 @@
wifi {
label = "r6350:green:wifi";
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "phy0tpt";
};
};