ath79: correctly define WiFi switch for TL-WR841ND v8
[openwrt/staging/yousong.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wr842n-v2.dts
index d9b0ee86f501f50ae0926f5a659d40840546de60..4df0feae98fe7b28ccab5e8381173fad36fa94b4 100644 (file)
@@ -7,6 +7,24 @@
        model = "TP-Link TL-WR842N/ND v2";
        compatible = "tplink,tl-wr842n-v2", "qca,ar9341";
 
+       keys {
+               compatible = "gpio-keys";
+
+               rfkill {
+                       label = "WiFi";
+                       linux,code = <KEY_RFKILL>;
+                       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>;
+               };
+       };
+
        gpio-export {
                compatible = "gpio-export";
 
        };
 };
 
-&keys {
-       reset {
-               label = "Reset";
-               linux,code = <KEY_RESTART>;
-               gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
-               debounce-interval = <60>;
-       };
-};
-
 &leds {
        usb {
                label = "tp-link:green:usb";