Skip to content

Commit

Permalink
ARM64: dts: marvell: Fix some common switch mistakes
Browse files Browse the repository at this point in the history
Fix some errors in the Marvell MV88E6xxx switch descriptions:
- The top node had no address size or cells.
- switch0@0 is not OK, should be ethernet-switch@0.
- ports should be ethernet-ports
- port@0 should be ethernet-port@0
- PHYs should be named ethernet-phy@

Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Gregory CLEMENT <[email protected]>
  • Loading branch information
linusw authored and gclement committed Dec 15, 2023
1 parent b85ea95 commit fedb923
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 112 deletions.
14 changes: 7 additions & 7 deletions arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts
Original file line number Diff line number Diff line change
Expand Up @@ -126,32 +126,32 @@

reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>;

ports {
switch0port1: port@1 {
ethernet-ports {
switch0port1: ethernet-port@1 {
reg = <1>;
label = "lan0";
phy-handle = <&switch0phy0>;
};

switch0port2: port@2 {
switch0port2: ethernet-port@2 {
reg = <2>;
label = "lan1";
phy-handle = <&switch0phy1>;
};

switch0port3: port@3 {
switch0port3: ethernet-port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&switch0phy2>;
};

switch0port4: port@4 {
switch0port4: ethernet-port@4 {
reg = <4>;
label = "lan3";
phy-handle = <&switch0phy3>;
};

switch0port5: port@5 {
switch0port5: ethernet-port@5 {
reg = <5>;
label = "wan";
phy-handle = <&extphy>;
Expand All @@ -160,7 +160,7 @@
};

mdio {
switch0phy3: switch0phy3@14 {
switch0phy3: ethernet-phy@14 {
reg = <0x14>;
};
};
Expand Down
20 changes: 9 additions & 11 deletions arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,17 @@
};

&mdio {
switch0: switch0@1 {
switch0: ethernet-switch@1 {
compatible = "marvell,mv88e6085";
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;

dsa,member = <0 0>;

ports {
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

switch0port0: port@0 {
switch0port0: ethernet-port@0 {
reg = <0>;
label = "cpu";
ethernet = <&eth0>;
Expand All @@ -168,19 +166,19 @@
};
};

switch0port1: port@1 {
switch0port1: ethernet-port@1 {
reg = <1>;
label = "wan";
phy-handle = <&switch0phy0>;
};

switch0port2: port@2 {
switch0port2: ethernet-port@2 {
reg = <2>;
label = "lan0";
phy-handle = <&switch0phy1>;
};

switch0port3: port@3 {
switch0port3: ethernet-port@3 {
reg = <3>;
label = "lan1";
phy-handle = <&switch0phy2>;
Expand All @@ -192,13 +190,13 @@
#address-cells = <1>;
#size-cells = <0>;

switch0phy0: switch0phy0@11 {
switch0phy0: ethernet-phy@11 {
reg = <0x11>;
};
switch0phy1: switch0phy1@12 {
switch0phy1: ethernet-phy@12 {
reg = <0x12>;
};
switch0phy2: switch0phy2@13 {
switch0phy2: ethernet-phy@13 {
reg = <0x13>;
};
};
Expand Down
20 changes: 9 additions & 11 deletions arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts
Original file line number Diff line number Diff line change
Expand Up @@ -152,31 +152,29 @@
};

&mdio {
switch0: switch0@1 {
switch0: ethernet-switch@1 {
compatible = "marvell,mv88e6085";
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;

dsa,member = <0 0>;

ports: ports {
ports: ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
ethernet-port@0 {
reg = <0>;
label = "cpu";
ethernet = <&eth0>;
};

port@1 {
ethernet-port@1 {
reg = <1>;
label = "wan";
phy-handle = <&switch0phy0>;
};

port@2 {
ethernet-port@2 {
reg = <2>;
label = "lan0";
phy-handle = <&switch0phy1>;
Expand All @@ -185,7 +183,7 @@
nvmem-cell-names = "mac-address";
};

port@3 {
ethernet-port@3 {
reg = <3>;
label = "lan1";
phy-handle = <&switch0phy2>;
Expand All @@ -199,13 +197,13 @@
#address-cells = <1>;
#size-cells = <0>;

switch0phy0: switch0phy0@11 {
switch0phy0: ethernet-phy@11 {
reg = <0x11>;
};
switch0phy1: switch0phy1@12 {
switch0phy1: ethernet-phy@12 {
reg = <0x12>;
};
switch0phy2: switch0phy2@13 {
switch0phy2: ethernet-phy@13 {
reg = <0x13>;
};
};
Expand Down
Loading

0 comments on commit fedb923

Please sign in to comment.