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>
port@5 {
reg = <5>;
- label = "cpu";
ethernet = <ð1>;
+ phy-mode = "rgmii-id";
fixed-link {
speed = <1000>;
full-duplex;
port@0 {
ethernet = <ð0>;
- label = "cpu";
+ phy-mode = "rgmii";
reg = <0>;
fixed-link {
port@10 {
reg = <10>;
- label = "cpu";
+ phy-mode = "2500base-x";
+
ethernet = <ð1>;
+ fixed-link {
+ speed = <2500>;
+ full-duplex;
+ };
};
};
port@5 {
reg = <5>;
- label = "cpu";
+ phy-mode = "2500base-x";
ethernet = <ð1>;
+
+ fixed-link {
+ speed = <2500>;
+ full-duplex;
+ };
};
};
port@5 {
reg = <5>;
- label = "cpu";
+ phy-mode = "sgmii";
ethernet = <ð2>;
fixed-link {
ports@5 {
reg = <5>;
- label = "cpu";
ethernet = <ð1>;
phy-mode = "rgmii-id";
ports@6 {
reg = <6>;
- label = "cpu";
ethernet = <ð0>;
phy-mode = "rgmii-id";
port@5 {
reg = <5>;
- label = "cpu";
+ phy-mode = "rgmii-id";
ethernet = <ð0>;
fixed-link {
speed = <1000>;