ramips: add WPS button for newifi d1

This device has a WPS button under WiFi antenna cover, add it to dts.

Signed-off-by: David Yang <mmyangfl@gmail.com>
This commit is contained in:
David Yang 2021-07-25 21:21:02 +08:00 committed by Adrian Schmutzler
parent ad6b077049
commit efca67983d

View File

@ -47,6 +47,12 @@
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps {
label = "wps";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
}; };
gpio_export { gpio_export {
@ -159,7 +165,7 @@
&state_default { &state_default {
gpio { gpio {
groups = "jtag", "uart2"; groups = "jtag", "uart2", "wdt";
function = "gpio"; function = "gpio";
}; };
}; };