[OpenWrt-Devel,3/3] ralink: add FireWRT button detail
diff mbox

Message ID 1422602354-23358-3-git-send-email-fl.service@t-firefly.com
State Rejected
Headers show

Commit Message

wengbj Jan. 30, 2015, 7:19 a.m. UTC
---
 target/linux/ramips/dts/FIREWRT.dts            |   12 ++++++++++++
 target/linux/ramips/mt7621/profiles/firefly.mk |    2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

Patch
diff mbox

diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts
index ddad8bf..58049b7 100644
--- a/target/linux/ramips/dts/FIREWRT.dts
+++ b/target/linux/ramips/dts/FIREWRT.dts
@@ -92,4 +92,16 @@ 
 		};
 	};
 
+	gpio-keys-polled {
+		compatible = "gpio-keys-polled";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		poll-interval = <20>;
+		wps {
+			label = "wps";
+			gpios = <&gpio0 18 1>;
+			linux,code = <0x211>;
+		};
+	};
+
 };
diff --git a/target/linux/ramips/mt7621/profiles/firefly.mk b/target/linux/ramips/mt7621/profiles/firefly.mk
index c8292b0..b095979 100644
--- a/target/linux/ramips/mt7621/profiles/firefly.mk
+++ b/target/linux/ramips/mt7621/profiles/firefly.mk
@@ -8,7 +8,7 @@ 
 define Profile/Firefly
 	NAME:=Firefly Device
 	PACKAGES:=\
-		kmod-usb-core kmod-usb3 kmod-usb-hid  kmod-usb-storage mount-utils usbutils \
+		kmod-usb-core kmod-usb3 kmod-usb-hid  kmod-usb-storage mount-utils usbutils hostapd-utils \
         kmod-sdhci-mt7620 \
 		kmod-fs-ext3 kmod-fs-vfat kmod-fs-ntfs \
 		kmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-utf8 \