public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] rockchip: Fix ethernet on Radxa ROCK Pi E v1.21
@ 2024-01-18  7:19 Jonas Karlman
  2024-01-18  7:19 ` [PATCH 1/2] net: designware: Reset eth phy before phy connect Jonas Karlman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jonas Karlman @ 2024-01-18  7:19 UTC (permalink / raw)
  To: Kever Yang, Ramon Fried, Joe Hershberger, Simon Glass,
	Banglang Huang
  Cc: Trevor Woerner, u-boot, Jonas Karlman

Ethernet on a Radxa ROCK Pi E v1.21 with a RTL8211F ethernet PHY
currently fails with the following message:

  Could not get PHY for ethernet@ff540000: addr -1

This happens because the ethernet PHY is never reset before a phy-id is
read back from the MDIO bus.

This series fixes this issue by calling eth_phy_set_mdio_bus() from the
designware ethernet driver to issue a PHY reset before the phy_connect()
call.

With the driver change and DM_ETH_PHY and PHY_REALTEK enabled the PHY
can be identified and etherent works:

  => mdio list
  ethernet@ff540000:
  1 - RealTek RTL8211F <--> ethernet@ff540000

This was tested with and without the DM_MDIO option enabled. Decided to
leave it disabled in this series.

Jonas Karlman (2):
  net: designware: Reset eth phy before phy connect
  rockchip: rk3328-rock-pi-e: Enable DM_ETH_PHY and PHY_REALTEK

 configs/rock-pi-e-rk3328_defconfig | 2 ++
 drivers/net/designware.c           | 7 +++++++
 2 files changed, 9 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-01  3:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18  7:19 [PATCH 0/2] rockchip: Fix ethernet on Radxa ROCK Pi E v1.21 Jonas Karlman
2024-01-18  7:19 ` [PATCH 1/2] net: designware: Reset eth phy before phy connect Jonas Karlman
2024-02-01  3:08   ` Kever Yang
2024-01-18  7:19 ` [PATCH 2/2] rockchip: rk3328-rock-pi-e: Enable DM_ETH_PHY and PHY_REALTEK Jonas Karlman
2024-02-01  3:08   ` Kever Yang
2024-01-18 21:00 ` [PATCH 0/2] rockchip: Fix ethernet on Radxa ROCK Pi E v1.21 Trevor Woerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox