Skip to content

Commit 820f8a8

Browse files
grygoriyStmlind
authored andcommitted
ARM: dts: am57xx: fix networking on boards with ksz9031 phy
Since commit bcf3440 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on boards: am571x-idk am572x-idk am574x-idk am57xx-beagle-x15 All above boards have phy-mode = "rgmii" and this is worked before because KSZ9031 PHY started with default RGMII internal delays configuration (TX off, RX on 1.2 ns) and MAC provided TX delay. After above commit, the KSZ9031 PHY starts handling phy mode properly and disables RX delay, as result networking is become broken. Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous behavior. Cc: Oleksij Rempel <[email protected]> Cc: Andrew Lunn <[email protected]> Cc: Philippe Schenker <[email protected]> Fixes: bcf3440 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") Reviewed-by: Philippe Schenker <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 738b150 commit 820f8a8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

arch/arm/boot/dts/am571x-idk.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@
190190

191191
&cpsw_port1 {
192192
phy-handle = <&ethphy0_sw>;
193-
phy-mode = "rgmii";
193+
phy-mode = "rgmii-rxid";
194194
ti,dual-emac-pvid = <1>;
195195
};
196196

197197
&cpsw_port2 {
198198
phy-handle = <&ethphy1_sw>;
199-
phy-mode = "rgmii";
199+
phy-mode = "rgmii-rxid";
200200
ti,dual-emac-pvid = <2>;
201201
};
202202

arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,13 @@
433433

434434
&cpsw_emac0 {
435435
phy-handle = <&phy0>;
436-
phy-mode = "rgmii";
436+
phy-mode = "rgmii-rxid";
437437
dual_emac_res_vlan = <1>;
438438
};
439439

440440
&cpsw_emac1 {
441441
phy-handle = <&phy1>;
442-
phy-mode = "rgmii";
442+
phy-mode = "rgmii-rxid";
443443
dual_emac_res_vlan = <2>;
444444
};
445445

arch/arm/boot/dts/am57xx-idk-common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,13 @@
408408

409409
&cpsw_emac0 {
410410
phy-handle = <&ethphy0>;
411-
phy-mode = "rgmii";
411+
phy-mode = "rgmii-rxid";
412412
dual_emac_res_vlan = <1>;
413413
};
414414

415415
&cpsw_emac1 {
416416
phy-handle = <&ethphy1>;
417-
phy-mode = "rgmii";
417+
phy-mode = "rgmii-rxid";
418418
dual_emac_res_vlan = <2>;
419419
};
420420

0 commit comments

Comments
 (0)