ramips: mt7621: nix mac-address-increment
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_elecom_wrc-gs.dtsi
index fd54ead0bc8292b851db8fcebbf879e13434bb7f..30b8d4e0104c932270af9dbf4913221ceb8ec501 100644 (file)
                led-failsafe = &led_power_green;
                led-running = &led_power_green;
                led-upgrade = &led_power_green;
-               label-mac-device = &wan;
+               label-mac-device = &gmac1;
        };
 
-       leds {
+       leds: leds {
                compatible = "gpio-leds";
 
                led_power_green: power_green {
        };
 };
 
-&gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
 };
 
 &switch0 {
        ports {
-               wan: port@0 {
-                       status = "okay";
-                       label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan4";
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
-                       };
-               };
-       };
-};
 
-&state_default {
-       gpio {
-               groups = "uart3", "jtag", "wdt", "sdhci";
-               function = "gpio";
-       };
-};
-
-&pcie {
-       status = "okay";
-};
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
 
-&pcie0 {
-       wifi@0,0 {
-               compatible = "mediatek,mt76";
-               reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0000>;
-               ieee80211-freq-limit = <2400000 2500000>;
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x4da8>;
+                                       };
 
-               led {
-                       led-sources = <0>;
-                       led-active-low;
+                                       eeprom_factory_8000: eeprom@8000 {
+                                               reg = <0x8000 0x4da8>;
+                                       };
+                               };
+                       };
                };
        };
 };
 
-&pcie1 {
-       wifi@0,0 {
-               compatible = "mediatek,mt76";
-               reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x8000>;
-               ieee80211-freq-limit = <5000000 6000000>;
-
-               led {
-                       led-sources = <0>;
-                       led-active-low;
-               };
-       };
+&pcie {
+       status = "okay";
 };
 
 &xhci {