Skip to content

Commit

Permalink
arm: dts: mt7623: add port@5 as CPU port
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Matthias Brugger <[email protected]>
  • Loading branch information
arinc9 authored and mbgg committed Jun 9, 2023
1 parent 031bf30 commit 115ee47
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions arch/arm/boot/dts/mt7623a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
};
};

&gmac1 {
status = "okay";
phy-mode = "rgmii";

fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};

&eth {
status = "okay";
power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>;
Expand Down Expand Up @@ -79,6 +90,19 @@
label = "swp4";
};

port@5 {
reg = <5>;
label = "cpu";
ethernet = <&gmac1>;
phy-mode = "rgmii";

fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};

port@6 {
reg = <6>;
label = "cpu";
Expand Down
24 changes: 24 additions & 0 deletions arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,17 @@
};
};

&gmac1 {
status = "okay";
phy-mode = "rgmii";

fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};

&eth {
status = "okay";

Expand Down Expand Up @@ -225,6 +236,19 @@
label = "lan3";
};

port@5 {
reg = <5>;
label = "cpu";
ethernet = <&gmac1>;
phy-mode = "rgmii";

fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};

port@6 {
reg = <6>;
label = "cpu";
Expand Down

0 comments on commit 115ee47

Please sign in to comment.