Skip to content

Commit 115ee47

Browse files
arinc9mbgg
authored andcommitted
arm: dts: mt7623: add port@5 as CPU port
On the MT7623AI SoC and Bananapi BPI-R2, 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. Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Link: https://lore.kernel.org/r/20230210182505.24597-6-arinc.unal@arinc9.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent 031bf30 commit 115ee47

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

arch/arm/boot/dts/mt7623a.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
2828
};
2929
};
3030

31+
&gmac1 {
32+
status = "okay";
33+
phy-mode = "rgmii";
34+
35+
fixed-link {
36+
speed = <1000>;
37+
full-duplex;
38+
pause;
39+
};
40+
};
41+
3142
&eth {
3243
status = "okay";
3344
power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>;
@@ -79,6 +90,19 @@
7990
label = "swp4";
8091
};
8192

93+
port@5 {
94+
reg = <5>;
95+
label = "cpu";
96+
ethernet = <&gmac1>;
97+
phy-mode = "rgmii";
98+
99+
fixed-link {
100+
speed = <1000>;
101+
full-duplex;
102+
pause;
103+
};
104+
};
105+
82106
port@6 {
83107
reg = <6>;
84108
label = "cpu";

arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,17 @@
182182
};
183183
};
184184

185+
&gmac1 {
186+
status = "okay";
187+
phy-mode = "rgmii";
188+
189+
fixed-link {
190+
speed = <1000>;
191+
full-duplex;
192+
pause;
193+
};
194+
};
195+
185196
&eth {
186197
status = "okay";
187198

@@ -225,6 +236,19 @@
225236
label = "lan3";
226237
};
227238

239+
port@5 {
240+
reg = <5>;
241+
label = "cpu";
242+
ethernet = <&gmac1>;
243+
phy-mode = "rgmii";
244+
245+
fixed-link {
246+
speed = <1000>;
247+
full-duplex;
248+
pause;
249+
};
250+
};
251+
228252
port@6 {
229253
reg = <6>;
230254
label = "cpu";

0 commit comments

Comments
 (0)