ramips: add support for Rostelecom RT-FE-1A
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_edgerouter-x.dts
index bca7c616900f983210aa7d865f2ea4d5b3b4a659..4665f04f023764a7483247a38ba04c2df353d3b8 100644 (file)
@@ -4,3 +4,26 @@
        model = "Ubiquiti EdgeRouter X";
        compatible = "ubnt,edgerouter-x", "mediatek,mt7621-soc";
 };
+
+&gmac1 {
+       status = "okay";
+       label = "eth0";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_22 0>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
+&switch0 {
+       ports {
+               port@0 {
+                       status = "disabled";
+               };
+       };
+};