Problem phenomenon:

Network often LINK UP 10/Half or 100/HALF or 100/Full

Very unstable.

When I actually found that I.MX6 is configured to RMII, the MDC clock is 8MHz

3417.jpg

Then check the specification book of LAN8720

445.jpg

The maximum MDC can only be 2.5MHz.

So there are problems here, so check the specification book of I.MX6

3718.jpg

Register MII Speed Control Register (ENET_MSCR)

3902.jpg

Because we use the external 50MHz active clock to connect GPIO16, guess that the internal MAC clock will not be lower than 50MHz, so modify the MSCR to 0x9.

You can use it at this time

Tags: