Dear NXP Community,
i.MX8QXP fec is not responding. There is a link-up with KSZ micrel phy. The MDIO bus is working but the Fec is not responding. The TXEN line is always low.
Is the 4.19.35 kernel FEC driver for rmii for i.MX8QXP working? The ref-clk is there but the FEC is not transmitting no data.
There is a fixup made for fec driver for RGMII in kernel 4.19.35 [fec_fixup.c] does that mean that kernel 4.19.35 only compatible for RGMII.
/*fec_fixup.c*/
static int ar8031_phy_fixup(struct phy_device *dev)
{
u16 val;
/* Set RGMII IO voltage to 1.8V */
phy_write(dev, 0x1d, 0x1f);
phy_write(dev, 0x1e, 0x8);
/* Disable phy AR8031 SmartEEE function */
phy_write(dev, 0xd, 0x3);
phy_write(dev, 0xe, 0x805d);
phy_write(dev, 0xd, 0x4003);
val = phy_read(dev, 0xe);
val &= ~(0x1 << 8);
phy_write(dev, 0xe, val);
/* Introduce tx clock delay */
phy_write(dev, 0x1d, 0x5);
phy_write(dev, 0x1e, 0x100);
return 0;
}
As rmii IO requires 3.3 V, does that mean a kernel patch is required for RMII or is the fec_main.c is sufficient for RMII in FEC configuration.
@igorpadykov
@joanxie
Thanking in advance. Hoping to hear from the community soon.
Kind Regards,
Hossain