ramips: add WPS button for newifi d1
authorDavid Yang <mmyangfl@gmail.com>
Sun, 25 Jul 2021 13:21:02 +0000 (21:21 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 17 Aug 2021 16:41:17 +0000 (18:41 +0200)
This device has a WPS button under WiFi antenna cover, add it to dts.

Signed-off-by: David Yang <mmyangfl@gmail.com>
target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts

index ddd46befe650259f0a3fe80bed3e366f49c2e7c5..e8069ec3945b61bb3bdee54f56fb6f2b96af165c 100644 (file)
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
+
+               wps {
+                       label = "wps";
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
+               };
        };
 
        gpio_export {
 
 &state_default {
        gpio {
-               groups = "jtag", "uart2";
+               groups = "jtag", "uart2", "wdt";
                function = "gpio";
        };
 };