ath79: correctly define WiFi switch for TL-WR841ND v8
[openwrt/staging/yousong.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wr841-v8.dts
index 3577e4994f31887a435760a2ec22d16a5e874182..95a047c6d4d27a46643779877ceafedba423d0ec 100644 (file)
@@ -6,14 +6,24 @@
 / {
        model = "TP-Link TL-WR841N/ND v8";
        compatible = "tplink,tl-wr841-v8", "qca,ar9341";
-};
 
-&keys {
-       reset {
-               label = "Reset";
-               linux,code = <KEY_RESTART>;
-               gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
-               debounce-interval = <60>;
+       keys {
+               compatible = "gpio-keys";
+
+               rfkill {
+                       label = "WiFi";
+                       linux,code = <KEY_RFKILL>;
+                       linux,input-type = <EV_SW>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
+                       debounce-interval = <60>;
+               };
+
+               reset {
+                       label = "Reset";
+                       linux,code = <KEY_RESTART>;
+                       gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+                       debounce-interval = <60>;
+               };
        };
 };