Commit bae83341 authored by Arınç ÜNAL's avatar Arınç ÜNAL Committed by Thomas Bogendoerfer

mips: dts: ralink: mt7621: add port@5 as CPU port

On MT7621AT, MT7621DAT, and MT7621ST SoCs, port 5 of the MT7530 switch is
connected to the second MAC of the SoC as a CPU port. Add the port and set
up the second MAC on the bindings. Revert PHY muxing on GB-PC1.

There's an external PHY connected to the second MAC of the SoC on GB-PC2,
therefore, disable port@5 for this device.
Signed-off-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
Acked-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 09e61efd
...@@ -91,22 +91,16 @@ &pcie { ...@@ -91,22 +91,16 @@ &pcie {
status = "okay"; status = "okay";
}; };
&gmac1 {
status = "okay";
phy-handle = <&ethphy4>;
};
&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
&switch0 { &switch0 {
ports { ports {
port@0 { port@0 {
status = "okay"; status = "okay";
label = "ethblack"; label = "ethblack";
}; };
port@4 {
status = "okay";
label = "ethblue";
};
}; };
}; };
...@@ -112,9 +112,12 @@ &pcie { ...@@ -112,9 +112,12 @@ &pcie {
}; };
&gmac1 { &gmac1 {
status = "okay";
phy-mode = "rgmii-rxid"; phy-mode = "rgmii-rxid";
phy-handle = <&ethphy5>; phy-handle = <&ethphy5>;
fixed-link {
status = "disabled";
};
}; };
&mdio { &mdio {
...@@ -134,5 +137,9 @@ port@4 { ...@@ -134,5 +137,9 @@ port@4 {
status = "okay"; status = "okay";
label = "ethblue"; label = "ethblue";
}; };
port@5 {
status = "disabled";
};
}; };
}; };
...@@ -332,8 +332,13 @@ fixed-link { ...@@ -332,8 +332,13 @@ fixed-link {
gmac1: mac@1 { gmac1: mac@1 {
compatible = "mediatek,eth-mac"; compatible = "mediatek,eth-mac";
reg = <1>; reg = <1>;
status = "disabled";
phy-mode = "rgmii"; phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
}; };
mdio: mdio-bus { mdio: mdio-bus {
...@@ -384,6 +389,18 @@ port@4 { ...@@ -384,6 +389,18 @@ port@4 {
label = "swp4"; label = "swp4";
}; };
port@5 {
reg = <5>;
ethernet = <&gmac1>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
port@6 { port@6 {
reg = <6>; reg = <6>;
ethernet = <&gmac0>; ethernet = <&gmac0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment