ramips: mt7621-dts: move wan port to gmac1 YunCore FAP-640
authorVolodymyr Puiul <volodymyr.puiul@gmail.com>
Sat, 10 Jun 2023 14:23:17 +0000 (18:23 +0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Jun 2023 16:16:39 +0000 (18:16 +0200)
move wan port to gmac1 to achieve 2Gbps CPU bandwidth between wan and
lan on YunCore FAP-640

Signed-off-by: Volodymyr Puiul <volodymyr.puiul@gmail.com>
target/linux/ramips/dts/mt7621_yuncore_fap640.dts

index a0c32a02116042f7c3f6a7f91ff755c386f84c35..d525dde385b4d921655a374cfc44534c0010b899 100644 (file)
 };
 
 &gmac0 {
+       nvmem-cells = <&macaddr_factory_e006>;
+       nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+
        nvmem-cells = <&macaddr_factory_0004>;
        nvmem-cell-names = "mac-address";
 };
 
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
+
 &switch0 {
        gpio-controller;
        #gpio-cells = <2>;
                        status = "okay";
                        label = "lan1";
                };
-
-               port@4 {
-                       status = "okay";
-                       label = "wan";
-                       nvmem-cells = <&macaddr_factory_0004>;
-                       nvmem-cell-names = "mac-address";
-               };
        };
 };
 
        macaddr_factory_0004: macaddr@0004 {
                reg = <0x0004 0x6>;
        };
+
+       macaddr_factory_e006: macaddr@e006 {
+               reg = <0xe006 0x6>;
+       };
 };