ramips: add support for ipTIME A1004ns
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we3526.dts
index 7973626fadebf8d5dccf79cefccde1d6087d6507..1f43f2a2dcc7b661dffd7b93ddeb7470b9ed3699 100644 (file)
@@ -7,7 +7,7 @@
 
 / {
        compatible = "zbtlink,zbt-we3526", "mediatek,mt7621-soc";
-       model = "ZBT-WE3526";
+       model = "Zbtlink ZBT-WE3526";
 
        chosen {
                bootargs = "console=ttyS0,115200";
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <20>;
+               compatible = "gpio-keys";
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe000>;
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "wdt";
-                       ralink,function = "gpio";
+&switch0 {
+       ports {
+               port@0 {
+                       status = "okay";
+                       label = "lan1";
+               };
+
+               port@1 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@2 {
+                       status = "okay";
+                       label = "lan3";
+               };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan4";
+               };
+
+               port@4 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&factory 0xe006>;
                };
        };
 };
+
+&state_default {
+       gpio {
+               groups = "wdt";
+               function = "gpio";
+       };
+};