ramips: fix wps leds/btn for TP-Link TL-WA801ND v5
- 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>
This commit is contained in:
parent
d4009d7985
commit
26105974e7
1 changed files with 16 additions and 4 deletions
|
@ -24,6 +24,12 @@
|
||||||
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
||||||
linux,code = <KEY_RESTART>;
|
linux,code = <KEY_RESTART>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wps {
|
||||||
|
label = "wps";
|
||||||
|
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,code = <KEY_WPS_BUTTON>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -44,16 +50,22 @@
|
||||||
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
wps {
|
wps_red {
|
||||||
label = "tl-wa801nd-v5:orange:wps";
|
label = "tl-wa801nd-v5:red:wps";
|
||||||
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
|
wps_green {
|
||||||
|
label = "tl-wa801nd-v5:green:wps";
|
||||||
|
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&state_default {
|
&state_default {
|
||||||
gpio {
|
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";
|
ralink,function = "gpio";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue