Part Number: AM5K2E02
Hello,
We are trying to configure and use a 1000 Base-SX optical SFP with the AM5K2E02 SoC and are having trouble configuring the interface.
We are basing our config code for SerDes, SGMII, MACs and switch initialisation on the MCSDK CSL library which I believe covers PHYs only. We do also have copper PHYs on the same HW and are able to configure and use these with no issue.
Briefly, with the optical SFPs we are only able to achieve the SGMII link up status, and hence continue the initialisation steps for this connection, if the SFP is connected to a powered SFP at the other end at initialisation time.
If the remote SFP is not powered at initialisation time then we time out on the SGMII link up wait loop for that connection and continue with the other connections (copper PHYs and a copper SFP) since our application must start-up and cannot wait indefinitely.
We have tried periodically re-running the port-specific SGMII and MAC initialisation code during normal operation such that when the remote SFP is powered it can continue the initialisation steps for that port only but this does not work - we never see the SGMII link go up when the power is applied to the remote SFP.
We have updated our SGMII initialisation code from the TI example such that for the optical SFP connection we perform the Forced Link Configuration described in section 2.4.3.4 of manual SPRUHZ3A "KeyStone Architecture II Gigabit Ethernet (GbE) Switch Subsystem for K2E and K2L Devices".
We note that for the remote device on the optical connection (completely different HW) that it is able to initialise once at start-up with the AM5K2E02 device not powered (hence SFP not powered) and then sees the SGMII link go up once the AM5K2E02 device is powered. This is with no special code running during normal operation on the remote device and using identical SFPs on both devices.
Do you have any optical SFP specific example code or any other suggestions of what to try please?
Thank you
