ramips: fix wps leds/btn for TP-Link TL-WA801ND v5
authorJan Alexander <jan@nalx.net>
Wed, 15 Jan 2020 20:12:33 +0000 (21:12 +0100)
committerDavid Bauer <mail@david-bauer.net>
Fri, 17 Jan 2020 19:12:19 +0000 (20:12 +0100)
- fix color and active mode for existing wps led
- add green wps led
- add wps button

Signed-off-by: Jan Alexander <jan@nalx.net>
[wrap line]
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts

index b4c004b955b8ca34d9e12d121994ed3e86f98dcc..d2cb271efb2e401c820413ce85c4cb2128ae2886 100644 (file)
                        gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
+
+               wps {
+                       label = "wps";
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
+               };
        };
 
        leds {
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
-                       label = "tl-wa801nd-v5:orange:wps";
-                       gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+               wps_red {
+                       label = "tl-wa801nd-v5:red:wps";
+                       gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
+               };
+
+               wps_green {
+                       label = "tl-wa801nd-v5:green:wps";
+                       gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
                };
        };
 };
 
 &state_default {
        gpio {
-               ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an";
+               ralink,group = "p0led_an", "p1led_an", "perst", "refclk",
+                               "uart1", "wdt", "wled_an";
                ralink,function = "gpio";
        };
 };