Skip to content

Commit bae8334

Browse files
arinc9tsbogend
authored andcommitted
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: Arınç ÜNAL <arinc.unal@arinc9.com> Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 09e61ef commit bae8334

3 files changed

Lines changed: 31 additions & 13 deletions

File tree

arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,16 @@
9191
status = "okay";
9292
};
9393

94-
&gmac1 {
95-
status = "okay";
96-
phy-handle = <&ethphy4>;
97-
};
98-
99-
&mdio {
100-
ethphy4: ethernet-phy@4 {
101-
reg = <4>;
102-
};
103-
};
104-
10594
&switch0 {
10695
ports {
10796
port@0 {
10897
status = "okay";
10998
label = "ethblack";
11099
};
100+
101+
port@4 {
102+
status = "okay";
103+
label = "ethblue";
104+
};
111105
};
112106
};

arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,12 @@
112112
};
113113

114114
&gmac1 {
115-
status = "okay";
116115
phy-mode = "rgmii-rxid";
117116
phy-handle = <&ethphy5>;
117+
118+
fixed-link {
119+
status = "disabled";
120+
};
118121
};
119122

120123
&mdio {
@@ -134,5 +137,9 @@
134137
status = "okay";
135138
label = "ethblue";
136139
};
140+
141+
port@5 {
142+
status = "disabled";
143+
};
137144
};
138145
};

arch/mips/boot/dts/ralink/mt7621.dtsi

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,13 @@
332332
gmac1: mac@1 {
333333
compatible = "mediatek,eth-mac";
334334
reg = <1>;
335-
status = "disabled";
336335
phy-mode = "rgmii";
336+
337+
fixed-link {
338+
speed = <1000>;
339+
full-duplex;
340+
pause;
341+
};
337342
};
338343

339344
mdio: mdio-bus {
@@ -384,6 +389,18 @@
384389
label = "swp4";
385390
};
386391

392+
port@5 {
393+
reg = <5>;
394+
ethernet = <&gmac1>;
395+
phy-mode = "rgmii";
396+
397+
fixed-link {
398+
speed = <1000>;
399+
full-duplex;
400+
pause;
401+
};
402+
};
403+
387404
port@6 {
388405
reg = <6>;
389406
ethernet = <&gmac0>;

0 commit comments

Comments
 (0)