On Mon, May 13, 2019 at 01:29:42PM +0300, Serge Semin wrote:
Hello Vincente,
On Sat, May 11, 2019 at 05:06:04PM +0200, Vicente Bergas wrote: ...
Hmm, just figured out, that in the datasheet RXDLY/TXDLY pins are actually grounded, so
phy-mode="rgmii" should work for you. Are you sure that on your actual hardware the
resistors aren't placed differently?
The current config register state can be read from the 0x1c extension page. Something
like this:
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -221,6 +221,9 @@ static int rtl8211e_config_init(struct phy_device *phydev)
if (ret)
goto err_restore_page;
+ ret = phy_read(phydev, 0x1c);
+ dev_info(&phydev->mdio.dev, "PHY config register %08x\n", ret);
+
ret = phy_modify(phydev, 0x1c, RTL8211E_TX_DELAY | RTL8211E_RX_DELAY,
val);
-Sergey