ramips: move Netgear R6120 LED trigger to DTS
authorAlex Lewontin <alex.c.lewontin@gmail.com>
Fri, 21 Feb 2020 20:58:12 +0000 (15:58 -0500)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 23 Jun 2020 19:53:22 +0000 (21:53 +0200)
This moves the trigger for the Netgear R6120's wlan2g_green LED from
base-files/etc/board.d/01_leds to the device-tree file.

This has been applied to R6120 based on findings for the very similar
Netgear R6080.

Signed-off-by: Alex Lewontin <alex.c.lewontin@gmail.com>
[merge case in 01_leds, slightly adjust commit message/title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7628an_netgear_r6120.dts
target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds

index f4fe73a526fed7699baec8543896df25375e46d5..191538100c4eee9b327685bb98673815c247033a 100644 (file)
@@ -43,6 +43,7 @@
                wlan2g_green {
                        label = "r6120:green:wlan2g";
                        gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                wlan2g_orange {
index 685895452a92a6fab4a92f6470b7eaa9df631a73..0837f9d00305a09a00ad1d30a605dfdae63a5983 100755 (executable)
@@ -22,7 +22,8 @@ alfa-network,awusfree1)
        ;;
 asus,rt-n10p-v3|\
 asus,rt-n11p-b1|\
-asus,rt-n12-vp-b1)
+asus,rt-n12-vp-b1|\
+netgear,r6120)
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0xf"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
        ;;
@@ -46,11 +47,6 @@ hiwifi,hc5761a)
 mediatek,linkit-smart-7688)
        ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
        ;;
-netgear,r6120)
-       ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
-       ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
-       ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
-       ;;
 rakwireless,rak633)
        set_wifi_led "$boardname:blue:wifi"
        ;;