[openwrt/openwrt] ramips: add WPS button for newifi d1

LEDE Commits lede-commits at lists.infradead.org
Tue Aug 17 10:14:50 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/efca67983d4fc01c14619efcaa632220bd28826e

commit efca67983d4fc01c14619efcaa632220bd28826e
Author: David Yang <mmyangfl at gmail.com>
AuthorDate: Sun Jul 25 21:21:02 2021 +0800

    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 at gmail.com>
---
 target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
index ddd46befe6..e8069ec394 100644
--- a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
+++ b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts
@@ -47,6 +47,12 @@
 			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 {
@@ -159,7 +165,7 @@
 
 &state_default {
 	gpio {
-		groups = "jtag", "uart2";
+		groups = "jtag", "uart2", "wdt";
 		function = "gpio";
 	};
 };



More information about the lede-commits mailing list