ramips: add support for TP-Link TL-MR3420 v5
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-WG3526.dtsi
index 6e82d253989ae73d40f8d4c81237271f038eed02..104a51f8de7110c0f65f760af70033853f3da745 100644 (file)
@@ -1,8 +1,11 @@
 #include "mt7621.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
@@ -26,7 +29,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 1>;
+                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
@@ -34,8 +37,9 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status_led: status {
-                       gpios = <&gpio0 24 1>;
+               status {
+                       label = "zbt-wg3526:green:status";
+                       gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
                };
        };
 };
@@ -52,8 +56,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";
        status = "okay";
 
        pcie0 {
-               mt76@0,0 {
+               wifi@14c3,7603 {
+                       compatible = "pci14c3,7603";
                        reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x0000>;
-                       mediatek,5ghz = <0>;
                };
        };
 
        pcie1 {
-               mt76@1,0 {
+               wifi@14c3,7662 {
+                       compatible = "pci14c3,7662";
                        reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 };
 &pinctrl {
        state_default: pinctrl0 {
                gpio {
-                       ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
+                       ralink,group = "wdt", "rgmii2", "jtag", "mdio";
                        ralink,function = "gpio";
                };
        };