From f057133349847929080af18ac7687e19d125b7dd Mon Sep 17 00:00:00 2001 From: David Bauer Date: Fri, 30 Aug 2019 20:11:45 +0200 Subject: 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 (cherry picked from commit fa46c9b208fe3833f085e9f6ddf7c492b16f6c34) --- target/linux/ramips/base-files/etc/board.d/01_leds | 1 - target/linux/ramips/dts/R6220.dtsi | 1 + target/linux/ramips/dts/R6350.dts | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) 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"; }; }; -- cgit v1.2.3