ARM: dts: am437x: fix networking on boards with ksz9031 phy
Subsystems (3)
PATCH v2 1/1 ARM: dts: am437x: fix networking on boards with ksz9031 phy
Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on boards:
am437x-gp-evm
am437x-sk-evm
am437x-idk-evm
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.
--- arch/arm/boot/dts/am437x-gp-evm.dts | 2 +- arch/arm/boot/dts/am437x-idk-evm.dts | 2 +- arch/arm/boot/dts/am437x-sk-evm.dts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/am437x-gp-evm.dts +1 -1
@@ -943,7 +943,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; }; &elm {
arch/arm/boot/dts/am437x-idk-evm.dts +1 -1
@@ -504,7 +504,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; }; &rtc {
arch/arm/boot/dts/am437x-sk-evm.dts +2 -2
@@ -833,13 +833,13 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; dual_emac_res_vlan = <1>; }; &cpsw_emac1 { phy-handle = <ðphy1>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; dual_emac_res_vlan = <2>; };
Signature · 1 line
2.17.1
Quoted 19 lines · Grygorii Strashko
Since commit
bcf3440c6dd7("net: phy: micrel: add phy-mode support for the
KSZ9031 PHY") the networking is broken on boards:
am437x-gp-evm
am437x-sk-evm
am437x-idk-evmAll 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.
Quoted 6 lines
Cc Oleksij Rempel <[email protected]>Cc Andrew Lunn <[email protected]>Cc Philippe Schenker <[email protected]>Fixes commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode supportfor the KSZ9031 PHY")
Signed-off-by Grygorii Strashko <[email protected]>
Quoted 55 lines
--- arch/arm/boot/dts/am437x-gp-evm.dts | 2 +- arch/arm/boot/dts/am437x-idk-evm.dts | 2 +- arch/arm/boot/dts/am437x-sk-evm.dts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)arch/arm/boot/dts/am437x-gp-evm.dts +1
-1@@ -943,7 +943,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; }; &elm {arch/arm/boot/dts/am437x-idk-evm.dts +1
-1@@ -504,7 +504,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; }; &rtc {arch/arm/boot/dts/am437x-sk-evm.dts +2
-2@@ -833,13 +833,13 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; dual_emac_res_vlan = <1>; }; &cpsw_emac1 { phy-handle = <ðphy1>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; dual_emac_res_vlan = <2>; };
Quoted 20 lines · Philippe Schenker
Quoted 19 lines · Grygorii Strashko
Since commit
bcf3440c6dd7("net: phy: micrel: add phy-mode support for the
KSZ9031 PHY") the networking is broken on boards:
am437x-gp-evm
am437x-sk-evm
am437x-idk-evmAll 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.
Quoted 8 lines
Quoted 6 lines
Cc Oleksij Rempel <[email protected]>Cc Andrew Lunn <[email protected]>Cc Philippe Schenker <[email protected]>Fixes commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode supportfor the KSZ9031 PHY")
Signed-off-by Grygorii Strashko <[email protected]>Reviewed-by Philippe Schenker <[email protected]>
Thanks applying into fixes.
Tony