[openwrt/openwrt] ramips: fix LAVA LR-25G001 broken wifi led triggers

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 30 13:12:26 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e06aaba4e3bef4ebd3e2b153dbc5e04dd5ba92e1

commit e06aaba4e3bef4ebd3e2b153dbc5e04dd5ba92e1
Author: Jani Partanen <rtfm at iki.fi>
AuthorDate: Mon Oct 18 02:12:27 2021 +0300

    ramips: fix LAVA LR-25G001 broken wifi led triggers
    
    LED labels for this device are different in 01_leds file and in device
    DTS. Switch to DT triggers, which works on Telewell TW-4 (LTE) clone
    device.
    
    This has not been tested on the LR-25G001 itself, just on the clone
    mentioned above.
    
    Fixes: 20b09a2125f5 ("ramips: add support for Lava LR-25G001")
    
    Signed-off-by: Jani Partanen <rtfm at iki.fi>
    [rephrase commit title/message]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts        | 2 ++
 target/linux/ramips/mt7620/base-files/etc/board.d/01_leds | 4 ----
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
index 1966e4cffd..b7fa78661e 100644
--- a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
+++ b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
@@ -41,11 +41,13 @@
 		wifi2g {
 			label = "green:wifi2g";
 			gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "phy1tpt";
 		};
 
 		wifi5g {
 			label = "green:wifi5g";
 			gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "phy0tpt";
 		};
 	};
 
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 ff3a5c8c0c..694f3d1541 100644
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
@@ -143,10 +143,6 @@ kingston,mlwg2|\
 sanlinking,d240)
 	ucidef_set_led_netdev "wifi_led" "wifi" "blue:wifi" "wlan0"
 	;;
-lava,lr-25g001)
-	ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "green:wlan2g" "wlan1"
-	ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "green:wlan5g" "wlan0"
-	;;
 lenovo,newifi-y1)
 	ucidef_set_led_netdev "wifi" "WIFI" "blue:wifi" "wlan1"
 	ucidef_set_led_netdev "wifi5g" "WIFI5G" "blue:wifi5g" "wlan0"



More information about the lede-commits mailing list