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.
we want to know how to config the sgmii ports?
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.
>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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------