We have a custom board set up with the a LS1046a processor. The serdes control section of the rcw is configured as 0x1333 and the serdes1 port B is connected to the SGMII interface of a Marwell 88E1512 Phy chip. In u-boot i can see the Phy at adress 0x3 and reading the registers i can see that the link on the copper interface is up, but the SGMII interface is down according to the PHY registers. The phy is configured as sgmii->copper.
I used the same code as on the ls1046ardb devboard in /board/freescale/ls1046ardb/eth.c but not working. Have i missed some defines from the headers or some initialization needs to be done as well on the MAC side?
Thanks in advance!
Solved! Go to Solution.
Well, the code under board/freescale/ls1046ardb/ has been validated on LS1046A-RDB
only. It may not fit your design, although it is believed to be a good starting
point. The suggestions are:
1. Use CodeWarior QCVS SerDes tool to validate your SerDes connection:
https://docs.nxp.com/bundle/GUID-062F363E-637F-47AB-8C1A-84C46F4167DA/page/GUID-2EB267F7-9529-466E-9...
2. Check the link status in SGMII_SR[AN_COMP, LINK_STAT]
3. Check the link partner response in SGMII_LP_DEV_ABIL_SGMII.
4. Consult at the PHY manufacturer/documentation.
Have a great day,
Platon
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
---------------------------------------------------------------------
Dear Platon,
Thanks for your answer!
I have another PHY connected to the serdes1 block lane D, which I am trying to use in SGMII->copper mode. I configured the rcw[128-143] as 3333 so that the D lane is configured as SGMII. I use the ls1046ardb reference design and I only changed in the dts the fman part see in the attached file. So far ethtool fm1-mac9 command says the following, but I cant ping through the interface. Is it something that I miss from the device tree?
ethtool output
Thanks in advance!
Best regards,
Kristóf
Well, the code under board/freescale/ls1046ardb/ has been validated on LS1046A-RDB
only. It may not fit your design, although it is believed to be a good starting
point. The suggestions are:
1. Use CodeWarior QCVS SerDes tool to validate your SerDes connection:
https://docs.nxp.com/bundle/GUID-062F363E-637F-47AB-8C1A-84C46F4167DA/page/GUID-2EB267F7-9529-466E-9...
2. Check the link status in SGMII_SR[AN_COMP, LINK_STAT]
3. Check the link partner response in SGMII_LP_DEV_ABIL_SGMII.
4. Consult at the PHY manufacturer/documentation.
Have a great day,
Platon
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
---------------------------------------------------------------------