2240d0b39e6334ccbb5612b9c95cfaa2a6a3417c
[openwrt/openwrt.git] / target / linux / mvebu / patches-5.10 / 315-arm64-dts-uDPU-switch-PHY-operation-mode-to-2500base.patch
1 Certain SFP modules (most notably Nokia GPON ones) first check
2 connectivity on 1000base-x, and switch to 2500base-x afterwards. This
3 is considered a quirk so the phylink switches the interface to
4 2500base-x as well.
5
6 However, after power-cycling the uDPU device, network interface/SFP module
7 will not work correctly until the module is re-seated. This patch
8 resolves this issue by forcing the interface to be brought up in
9 2500base-x mode by default.
10
11 Signed-off-by: Jakov Petrina <jakov.petrina@sartura.hr>
12 Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr>
13 Cc: Luka Perkov <luka.perkov@sartura.hr>
14
15 --- a/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
16 +++ b/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
17 @@ -162,7 +162,7 @@
18 };
19
20 &eth0 {
21 - phy-mode = "sgmii";
22 + phy-mode = "2500base-x";
23 status = "okay";
24 managed = "in-band-status";
25 phys = <&comphy1 0>;
26 @@ -170,7 +170,7 @@
27 };
28
29 &eth1 {
30 - phy-mode = "sgmii";
31 + phy-mode = "2500base-x";
32 status = "okay";
33 managed = "in-band-status";
34 phys = <&comphy0 1>;