ramips: improve pinctrl for Youku YK-L1
authorShiji Yang <yangshiji66@qq.com>
Sun, 4 Apr 2021 03:55:41 +0000 (11:55 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 10 Apr 2021 18:48:26 +0000 (20:48 +0200)
1. rename led pin "air" to a more common name "wlan" and use "phy0tpt" to trigger it.
2. led "wan" can be triggered by ethernet pinctrl by default so just drop it.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/dts/mt7620a_youku_yk1.dts
target/linux/ramips/mt7620/base-files/etc/board.d/01_leds

index 3b84b07b8b297051404d7e217e2d46c34e8330f5..71fd1d12c0ea5d6e6848e27e3347069ed50a7e67 100644 (file)
        leds {
                compatible = "gpio-leds";
 
-               wan {
-                       label = "blue:wan";
-                       gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
-               };
-
-               air {
-                       label = "blue:air";
+               wlan {
+                       label = "blue:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                usb {
        status = "okay";
 };
 
-&gpio2 {
-       status = "okay";
-};
-
 &gpio3 {
        status = "okay";
 };
 
 &state_default {
        default {
-               groups = "i2c", "rgmii1", "ephy", "wled";
+               groups = "i2c", "rgmii1", "wled";
                function = "gpio";
        };
 };
index 40d322685af6787b49a248b54c92e50f1f5eba4f..bbedbe9f0d8963c13a926b0bf861520590004a1b 100644 (file)
@@ -194,10 +194,6 @@ tplink,archer-mr200)
 tplink,re200-v1)
        ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
        ;;
-youku,yk1)
-       ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10"
-       ucidef_set_led_netdev "wifi_led" "wifi" "blue:air" "wlan0"
-       ;;
 zbtlink,zbt-ape522ii)
        ucidef_set_led_netdev "wlan2g4" "wlan1-link" "green:wlan2g4" "wlan1"
        ucidef_set_led_netdev "sys1" "wlan1" "green:sys1" "wlan1" "tx rx"