Other Parts Discussed in Thread: AM5718,
Tool/software:
We are experiencing issues with the DP83822IF PHY in fiber mode. We are using an AFBR-59E5APZ transceiver. On the other end, there is a fiber-to-copper switch. We conducted a ping test from our device (in-house developed board with AM5718) to a PC, and everything works correctly. We disconnect the fibers, reconnect them, and it still works fine. However, when we reset the fiber switch (power off and on), communication does not return. The only way (so far) to make it work again is simply disconnecting and reconnecting the fibers.
The "trick" we're using to restore communication is periodically check register 0x0010, bit 13, which indicates a "Receive Error Latch". If at any moment we see it set to '1', we reset the PHY by writing 0x4000 to register 0x001f. This resolves the issue, but we'd like to understand what is happening, if anyone has experienced this before.