AnsweredAssumed Answered

LS1021A: SGMII to SFP

Question asked by Doohan Chuang on Aug 28, 2019
Latest reply on Jan 15, 2020 by Rajan Soni

We are developing a product for a SFP(optical fiber) port based on LS1012A processor and test the connection using uboot(2016.01) base on SDK 2.0-1703. 

Our product encountered a problem that could not be connected. We use eTsec1(SGMII1) and do some modify:

In ls1021atwr.h

   1. undef CONFIG_TSEC2 CONFIG_TSEC3 -> Ony eTESC1

   2. undef CONFIG_PHY_ATHEROS --> Use Generic PHY

   3. Modify TSEC1_PHY_ADDR to 0x1F

   4. SerDes Protocol : 0x20

   5. RCW:

         00000000: 0608000a 00000000 00000000 00000000

         00000010: 20000000 08447900 60040a00 21046000

         00000020: 00000000 00000000 00000000 00034700

         00000030: 20004100 00049340 00000000 00000000

 

 

When we used "ping" command to verify the network connection, we found that the network connection failed.

At this time the value of the TBI PHY register is as follows:

                    0: 0x1140

                    1: 0x016D

                    4: 0x0020

                    5: 0x4020

                    6: 0x0006

                    7: 0x0000

                    8: 0x0000

                    F: 0xA000

                    10: 0x0000

                    11: 0x0020

It seems not in SGMII Mode. We refer to "SGMII PHYless Example" in document <https://www.nxp.com/files-static/training_pdf/FTF/2012/americas/WBNR_FTF12_NET_F0215.pdf>.

Is the issue depends on Serdes or eTSEC settings?

 

 

Regards

Doohan

Outcomes