Hi, On Thu, 28 Feb 2019 12:27:45 +0000 Andrejs Cainikovs andrejs.cainik...@netmodule.com wrote:
> Hi, > > I cant get ethernet to work on iMX8QXP MEK board with latest sources > (tried v2019.01 as well). Is this a bug or work in progress? This is probably due to the missing delay after PHY reset in fec_gpio_reset(). Please try with attached patch, it worked for me on MEK board with RevA CPU. -- Anatolij
>From 0f5297e36eb280c983415e6e63e469b876acf990 Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin <ag...@denx.de> Date: Thu, 11 Oct 2018 19:37:51 +0200 Subject: [PATCH] net: fec: delay after PHY reset when on i.MX8QXP MEK board Some delay after PHY reset is required, otherwise the PHY detection fails and ethernet doesn't work as a result. Add delay when building for i.MX8QXP MEK board. Signed-off-by: Anatolij Gustschin <ag...@denx.de> --- drivers/net/fec_mxc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 1a59026a62..81904740de 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1315,6 +1315,9 @@ static void fec_gpio_reset(struct fec_priv *priv) dm_gpio_set_value(&priv->phy_reset_gpio, 1); mdelay(priv->reset_delay); dm_gpio_set_value(&priv->phy_reset_gpio, 0); +#if CONFIG_IS_ENABLED(TARGET_IMX8QXP_MEK) + mdelay(150); +#endif } } #endif -- 2.17.1
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot