ARM: dts: armada: Add missing phy-mode and fixed links

The DSA framework has got more picky about always having a phy-mode
for the CPU port. The Armada Ethernet supports RGMII, SGMII,
1000base-x and 2500Base-X. Set the switch phy-mode based on how the
SoC Ethernet ports is been configured. For RGMII mode, have the switch
add the delays.

Additionally, the cpu label has never actually been used in the
binding, so remove it.

Lastly, add a fixed-link node indicating the expected speed/duplex of
the link to the SoC.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
This commit is contained in:
Andrew Lunn 2023-04-07 17:17:22 +02:00 committed by Gregory CLEMENT
parent e2e1bcb19b
commit 0939de7d89
7 changed files with 16 additions and 8 deletions

View File

@ -171,8 +171,8 @@ port@3 {
port@5 {
reg = <5>;
label = "cpu";
ethernet = <&eth1>;
phy-mode = "rgmii-id";
fixed-link {
speed = <1000>;
full-duplex;

View File

@ -148,7 +148,7 @@ ports {
port@0 {
ethernet = <&eth0>;
label = "cpu";
phy-mode = "rgmii";
reg = <0>;
fixed-link {

View File

@ -68,8 +68,13 @@ port@8 {
port@10 {
reg = <10>;
label = "cpu";
phy-mode = "2500base-x";
ethernet = <&eth1>;
fixed-link {
speed = <2500>;
full-duplex;
};
};
};

View File

@ -48,8 +48,13 @@ port@4 {
port@5 {
reg = <5>;
label = "cpu";
phy-mode = "2500base-x";
ethernet = <&eth1>;
fixed-link {
speed = <2500>;
full-duplex;
};
};
};

View File

@ -195,7 +195,7 @@ port@4 {
port@5 {
reg = <5>;
label = "cpu";
phy-mode = "sgmii";
ethernet = <&eth2>;
fixed-link {

View File

@ -479,7 +479,6 @@ ports@4 {
ports@5 {
reg = <5>;
label = "cpu";
ethernet = <&eth1>;
phy-mode = "rgmii-id";
@ -491,7 +490,6 @@ fixed-link {
ports@6 {
reg = <6>;
label = "cpu";
ethernet = <&eth0>;
phy-mode = "rgmii-id";

View File

@ -302,7 +302,7 @@ port@4 {
port@5 {
reg = <5>;
label = "cpu";
phy-mode = "rgmii-id";
ethernet = <&eth0>;
fixed-link {
speed = <1000>;