Skip to content

Commit 660b8b2

Browse files
robimarkogclement
authored andcommitted
arm64: dts: marvell: eDPU: add support for version with external switch
New revision of eDPU uses an Marvell MV88E6361 switch to connect the SFP cage and G.hn IC instead of connecting them directly to the ethernet controllers. U-Boot will enable the switch node and disable the unused ethernet controller. Signed-off-by: Robert Marko <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]>
1 parent fe80877 commit 660b8b2

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

arch/arm64/boot/dts/marvell/armada-3720-eDPU.dts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,50 @@
1212
&eth0 {
1313
phy-mode = "2500base-x";
1414
};
15+
16+
/*
17+
* External MV88E6361 switch is only available on v2 of the board.
18+
* U-Boot will enable the MDIO bus and switch nodes.
19+
*/
20+
&mdio {
21+
status = "disabled";
22+
pinctrl-names = "default";
23+
pinctrl-0 = <&smi_pins>;
24+
25+
/* Actual device is MV88E6361 */
26+
switch: switch@0 {
27+
compatible = "marvell,mv88e6190";
28+
#address-cells = <1>;
29+
#size-cells = <0>;
30+
reg = <0>;
31+
status = "disabled";
32+
33+
ports {
34+
#address-cells = <1>;
35+
#size-cells = <0>;
36+
37+
port@0 {
38+
reg = <0>;
39+
label = "cpu";
40+
phy-mode = "2500base-x";
41+
managed = "in-band-status";
42+
ethernet = <&eth0>;
43+
};
44+
45+
port@9 {
46+
reg = <9>;
47+
label = "downlink";
48+
phy-mode = "2500base-x";
49+
managed = "in-band-status";
50+
};
51+
52+
port@a {
53+
reg = <10>;
54+
label = "uplink";
55+
phy-mode = "2500base-x";
56+
managed = "in-band-status";
57+
sfp = <&sfp_eth1>;
58+
};
59+
};
60+
};
61+
};

0 commit comments

Comments
 (0)