ramips: add support for D-Link DWR-116-A1/2
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ZBT-WG2626.dts
index b599d7b49bdd61f4fe0f9e880099b6c7f4628379..79f2859bb7a3d8307fa889258feb8369f590b48e 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
+       compatible = "zbtlink,zbt-wg2626", "mediatek,mt7621-soc";
        model = "ZBT-WG2626";
 
        memory@0 {
@@ -29,8 +32,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
@@ -39,7 +42,7 @@
 
                status {
                        label = "zbt-wg2626:green:status";
-                       gpios = <&gpio0 24 1>;
+                       gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
                };
        };
 };
@@ -56,8 +59,8 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80";
                spi-max-frequency = <10000000>;
+               m25p,chunked-io = <32>;
 
                partition@0 {
                        label = "u-boot";
@@ -92,7 +95,7 @@
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x0000>;
-                       mediatek,5ghz = <0>;
+                       ieee80211-freq-limit = <2400000 2500000>;
                };
        };
 };
 &pinctrl {
        state_default: pinctrl0 {
                gpio {
-                       ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
+                       ralink,group = "wdt", "rgmii2", "jtag", "mdio";
                        ralink,function = "gpio";
                };
        };