Hello everyone,
I am desperately trying to make two DP83822I work. They are both connected in RMII to one NXP i.MX6ULG2 and have the addresses 0x00 and 0x01. For the schematics, please contact me in private.
The MDIO interface seems to work fine, I can read all the registers and their reading seem OK. The PHYs are configured in RMII and are slave. The 50MHz is well sent from the CPU.
Nevertheless, auto-negotiation fails nearly all the time and I have no link (no led turned-on and no ping possible in u-boot).
By looking at the signals, I see that the pulses I have for the negotiation a duration of ~40ns instead of 100ns and are repeated every 5.7ms instead of 16ms. It looks like the PHYs work in free-running mode (at 125MHz ?) but I don't know why that would happen.
Here is a dump of the main registers (connected to an empty interface but similar values when connected to the network).
0x00 - 0x3000
0x01 - 0x7849
0x02 - 0x2000
0x03 - 0xa240
0x04 - 0x1e1
0x05 - 0x0
0x06 - 0x4
0x07 - 0x2001
0x08 - 0x0
0x09 - 0x0
0x0A - 0x100
0x0B - 0x1000
0x0C - 0x0
0x0D- 0x0
0x0E - 0x0
0x0F - 0x0
0x10 - 0x4002
0x11 - 0x108
0x12 - 0x0
0x13 - 0x800
0x14 - 0x0
0x15 - 0x0
0x16 - 0x100
0x17 - 0xe1
0x18 - 0x480
0x19 - 0x8001
0x1A - 0x0
0x1B - 0x7d
0x1C - 0x5ee
0x1D - 0x0
0x1E - 0x102
0x1F - 0x0
And some registers of the extended set:
0x0462 - 0x1
0x0463 - 0x0
0x0467 - 0xF70
0x0468 - 0x000
The overall shape of the pulse is good but the timing is wrong.
Is there anything I could check to fix this issue ?
Regards,
Sébastien