ramips: TP-Link TL-WR902AC v3: add missing wps button
[openwrt/staging/lynxis.git] / target / linux / ramips / dts / DIR-860L-B1.dts
index 9ce9aa2890d9915d68ddf064d9ad2e150abe4b0d..5dfc1eeaefd57d5a81e019f13f6fd9d1630bc952 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "ralink,mt7621-eval-board", "ralink,mt7621-soc";
+       compatible = "dlink,dir-860l-b1", "mediatek,mt7621-soc";
        model = "D-Link DIR-860L B1";
 
        memory@0 {
 
                power {
                        label = "dir-860l-b1:orange:power";
-                       gpios = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                power2 {
                        label = "dir-860l-b1:green:power";
-                       gpios = <&gpio0 15 1>;
+                       gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
 
                net {
                        label = "dir-860l-b1:orange:net";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                net2 {
                        label = "dir-860l-b1:green:net";
-                       gpios = <&gpio0 16 1>;
+                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                };
        };
 
                #address-cells = <1>;
                #size-cells = <0>;
                poll-interval = <20>;
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
+
+               wps {
+                       label = "wps";
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
+               };
        };
 };
 
@@ -54,9 +69,9 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80";
+               reg = <0>;
                spi-max-frequency = <10000000>;
+               m25p,chunked-io = <32>;
 
                partition@0 {
                        label = "u-boot";
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&radio 0x2000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&radio 0>;
-                       mediatek,5ghz = <0>;
+                       ieee80211-freq-limit = <2400000 2500000>;
                };
        };
 };