ramips: unielec-u7621-01: Increase SPI frequency to 50MHz
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_router-ac2100.dtsi
index 7faf9b3e89ac5b53ae4aa8ede930a04c8face70c..c7d6c574aa0c67052a6a2f6434f499105f65e92b 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &switch0 {
        ports {
-               port@0 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_e006>;
-                       nvmem-cell-names = "mac-address";
-               };
-
                port@2 {
                        status = "okay";
                        label = "lan1";
                function = "gpio";
        };
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_e000: macaddr@e000 {
-               reg = <0xe000 0x6>;
-       };
-
-       macaddr_factory_e006: macaddr@e006 {
-               reg = <0xe006 0x6>;
-       };
-};