ramips: add support for ALFA Network AC1200RM
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WF-2881.dts
index 84a14e4e0195d2eea5cd5efe2310de40f9b48abe..33f521cb95e2f0d41eededbc9d3301024f3e357f 100644 (file)
@@ -2,9 +2,11 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "netis,wf-2881", "mediatek,mt7621-soc";
        model = "NETIS WF-2881";
 
        memory@0 {
 
                usb {
                        label = "wf-2881:green:usb";
-                       gpios = <&gpio0 6 1>;
+                       gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
                wps {
                        label = "wf-2881:green:wps";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -38,7 +40,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -85,7 +87,7 @@
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 
@@ -94,7 +96,7 @@
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x0000>;
-                       mediatek,5ghz = <0>;
+                       ieee80211-freq-limit = <2400000 2500000>;
                };
        };
 };