SGMII3 additional connection problems P2020

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SGMII3 additional connection problems P2020

2,091件の閲覧回数
gyosunshim
Contributor III

Hi All,

Use the P2020RDB board and the board design.

When you add one more to the VSC8221 Serdes lane 3 below, we will ask for modifications or side u-boot linux kernel.

pastedImage_2.png

Thank you for always.

Best regards,

gyosun.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,700件の閲覧回数
gyosunshim
Contributor III

Thank you for answer.

It changed the dts file as shown below.

         enet2: ethernet@26000 {

             #address-cells = <1>;

             #size-cells = <1>;

             cell-index = <2>;

             device_type = "network";

             model = "eTSEC";

             compatible = "gianfar";

             reg = <0x26000 0x1000>;

             ranges = <0x0 0x26000 0x1000>;

             local-mac-address = [ 00 00 00 00 00 00 ];

             interrupts = <31 2 32 2 33 2>;

             interrupt-parent = <&mpic>;

            tbi-handle = <&tbi1>;

             phy-handle = <&phy1>;

            phy-connection-type = "sgmii";

             ptimer-handle = <&ptp_timer>;

             mdio@520 {

                 #address-cells = <1>;

                 #size-cells = <0>;

                 compatible = "fsl,gianfar-tbi";

                 reg = <0x520 0x20>;

                 tbi1: tbi-phy@11 {

                     reg = <0x11>;

                     device_type = "tbi-phy";

                 };

             };

         };

u-boot board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c has also changed the file, as shown below.

#ifdef CONFIG_TSEC3

    SET_STD_TSEC_INFO(tsec_info[num], 3);

    if (is_serdes_configured(SGMII_TSEC3)) {

        printf("eTSEC3 is in sgmii mode.\n");

        tsec_info[num].flags |= TSEC_SGMII;

    }

    num++;

#endif

The following message during boot is OK.

Net:   eTSEC2 is in sgmii mode.

eTSEC3 is in sgmii mode.

No address specified for VSC7385 microcode.

However, if an eth2 comes up as shown below.

root@p2020rdb:~# ifconfig eth2 up

net eth2: error: SGMII mode requires that the device tree specify a tbi-handle

When you set all the ip and ping eth1 eth2 that this behavior is not doing the operation, during the operation, eth2 eth1 do not speak the operation. This is only one of two ping.

eth1 phy address is 0, eth2 phy address is 1.

Where do you fix the more?

Thank you.

Best regards,

gyosun.

0 件の賞賛
返信

1,700件の閲覧回数
Pavel
NXP Employee
NXP Employee

The P2020 cfg_IO_ports[0:3] pins configure signal multiplexing. See the Table 1-2 of the P2020 Reference Manual.

NXP SDK 1.9 u-boot for P2020 contains initialization for the VSC7385 switch only. Add code in u-boot if VSC8221 initialization is needed.

Change the P2020 .dts file for setting SGMII mode eTSEC.

Have a great day,

Pavel Chubakov

0 件の賞賛
返信

1,700件の閲覧回数
gyosunshim
Contributor III

Can you answer under the reply?
I need your help.
Thank you.

gyosun.

0 件の賞賛
返信