ARM: mvebu: use the correct phy connection mode on Armada 385 DB
PATCH 1/1 ARM: mvebu: use the correct phy connection mode on Armada 385 DB
On Armada 385 DB, while the "rgmii" PHY connection mode works fine with the generic PHY driver, it fails to work when the Marvell PHY driver is enabled in the kernel configuration, due to a finer handling of the PHY configuration. This is due to the fact that the phy connection mode should instead be "rgmii-id", i.e with the TX/RX delay mechanisms enabled.
This fixes the network operation on Armada 385 DB with CONFIG_MARVELL_PHY=y. Without this patch and this option enabled, one would only get messages such as:
mvneta f1070000.ethernet eth1: bad rx status 0cc10000 (crc error), size=70
---
Jason, this commit is based on mvebu/dt-3xx
--- arch/arm/boot/dts/armada-385-db.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/armada-385-db.dts +2 -2
@@ -62,13 +62,13 @@ ethernet at 30000 { status = "okay"; phy = <&phy1>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; }; ethernet at 70000 { status = "okay"; phy = <&phy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; }; mdio {
Signature · 1 line
1.8.3.2
Jason Cooper
AppliedPATCH 1/1 ARM: mvebu: use the correct phy connection mode on Armada 385 DB
Quoted 13 lines · Thomas Petazzoni
On Armada 385 DB, while the "rgmii" PHY connection mode works fine with the generic PHY driver, it fails to work when the Marvell PHY driver is enabled in the kernel configuration, due to a finer handling of the PHY configuration. This is due to the fact that the phy connection mode should instead be "rgmii-id", i.e with the TX/RX delay mechanisms enabled.
This fixes the network operation on Armada 385 DB with
CONFIG_MARVELL_PHY=y. Without this patch and this option enabled, one would only get messages such as:mvneta f1070000.ethernet eth1: bad rx status
0cc10000(crc error), size=70
Quoted 8 lines
Signed-off-by Thomas Petazzoni <[email protected]>---
Jason, this commit is based on mvebu/dt-3xxSigned-off-by Thomas Petazzoni <[email protected]>--- arch/arm/boot/dts/armada-385-db.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to mvebu/dt (I merged mvebu/dt-3xx into mvebu/dt once it appeared stable)
thx,
Jason.