T4240 sgmii ports to GbE switch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

T4240 sgmii ports to GbE switch

865 Views
jerryxu
Contributor I


hi,

     we connect t4240's rgmii port (EC1) to a GbE PHY, it works properly, and we connect t4240's two sgmii ports (sg2.1,sg2.2 on serdes2) to a GbE switch,we can not access the cpu from RJ45_1 or RJ45_2, but the GbE switch seems works properly,because  we can communicate from RJ45_1 to RJ45_2 directly.

pastedImage_5.png

     we want to know how to config the sgmii ports?

Labels (1)
0 Kudos
3 Replies

521 Views
jerryxu
Contributor I

hi,bpe

     thanks for your reply,i have another questions:

     1. If I turn off the hole SERDES1, it will have an impact on the SERDES2 ?  I config SERDES2 as 0x6, sg2.1 to sg2.4 on SERDES2's E to H;

     2. If i want to solve this problem in UBOOT,How can do it ?

     3. I can't find the "fixed-link.txt" in UBOOT or Linux,can you send me one ,or tell me the detailed path ?

     4. I can't find the sgmii control registers in T4240.

0 Kudos

521 Views
bpe
NXP Employee
NXP Employee

>1. If I turn off the hole SERDES1, it will have an impact on the SERDES2 ? 

>I config SERDES2 as 0x6, sg2.1 to sg2.4 on SERDES2's E to H;

>

[Platon] Off-topic. Please create a separate thread for this.

>2. If i want to solve this problem in UBOOT,How can do it ?

>

[Platon] Recommended course of actions:

1. Figure out from your switch documentation, what type of

autonegotiation it expects on the ports connected to T4240, if at all.

2. Study the recommended initializations in T4240RM, Section 8.6

   Additional useful information can be found in AN3869.

3. Inspect and modify  dtsec_configure_serdes() in drivers/net/fm/eth.c

accordingly. Out-of-the-box, it supports only autonegotiation type SGMII.

>3. I can't find the "fixed-link.txt" in UBOOT or Linux,can you send

>me one ,or tell me the detailed path ?

>

[Platon] The path is from the top of Linux 4.1 kernel source directory

tree. If you are working with an older SDK/kernel, you can look at

Documentation/devicetree/bindings/net/fsl-tsec-phy.txt

>4. I can't find the sgmii control registers in T4240.

>

[Platon] See T4240RM, Section 18.5.

Have a great day,

Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

521 Views
bpe
NXP Employee
NXP Employee

Remove the reference to the PHY and add a 'fixed-link' property to the Device Tree nodes that describe MACs

connected to the switch. See details in /Documentation/devicetree/bindings/net/fixed-link.txt. A good discussion

of the underlying protocol and hardware can be found in AN3869.


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos