From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 4 Jan 2016 19:33:24 -0500 Subject: [U-Boot] [PATCH v2] mx6cuboxi: Fix the reset delay for the AR8035 PHY In-Reply-To: <1451950688-10549-1-git-send-email-festevam@gmail.com> References: <1451950688-10549-1-git-send-email-festevam@gmail.com> Message-ID: <20160105003324.GG4093@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jan 04, 2016 at 09:38:08PM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > Since commit 59370f3fcd1350 ("net: phy: delay only if reset handler is > registered") Ethernet is no longer functional: > > Booting from net ... > FEC Waiting for PHY auto negotiation to complete......... TIMEOUT ! > BOOTP broadcast 1 > BOOTP broadcast 2 > BOOTP broadcast 3 > BOOTP broadcast 4 > > This commit does not have an issue in itself, but it revelead a problem > with the Ethernet initialization. > > As per the AR8035 datasheet: > > "For a reliable power on reset, suggest to keep asserting the reset > low long enough (10ms) to ensure the clock is stable and clock-to-reset > 1ms requirement is satisfied." > > So do as suggested and keep the reset low for 10ms. > > Also add a 100us delay after deasserting the reset line > to guarantee that the PHY ID can be read correctly and the Atheros > PHY can be loaded as per Troy Kisky's suggestion. > > Signed-off-by: Fabio Estevam Repeated my test from V1, still passes (and takes a while for the initial BOOTP reply): Tested-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: