ramips: fix LAVA LR-25G001 broken wifi led triggers
authorJani Partanen <rtfm@iki.fi>
Sun, 17 Oct 2021 23:12:27 +0000 (02:12 +0300)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 30 Oct 2021 20:11:23 +0000 (22:11 +0200)
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@iki.fi>
[rephrase commit title/message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds

index 1966e4cffd1e8e49198189c61848a4f3ad4e1304..b7fa78661e49659b9dd1a080d148505c4a34d63c 100644 (file)
                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";
                };
        };
 
index ff3a5c8c0ca14e9e3e3ea15a4bcdf2dbc6444eaa..694f3d15411086b1ee65c44ea75903671bc11134 100644 (file)
@@ -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"