MAC(sg.m2) configuration with SERDES 0x40 in T1022

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

MAC(sg.m2) configuration with SERDES 0x40 in T1022

2,264 Views
hemwant
Contributor IV

I am having a customised board with T1022 processor, the SERDES configuration as used through RCW in the board is 0x40. I am trying to establish connection between MAC (sg.m2) of processor with 1G/2.5G Ethernet PCS/PMA IP core of Xilinx within Artix/FPGA device(XC7A200T-2FFG1156C) . 

I have configured Fixed link with 1000Mbps speed and full duplex mode in device tree of the board. After making the changes, the processor side connection is displayed with 1000Mbps and full duplex mode when checked through ethtool command in processor. 1G/2.5G Ethernet PCS

But on FPGA side when the auto negotiation of IP is enabled, IP  status vector indicates the link is established on 10Mbps and half-duplex mode. When auto negotiation is disabled then IP  status vector indicates that IP is getting auto negotiation  sequences from the processor.

Is there any registers to check the link status of the processor MAC(sg.m2) and control the speed and auto negotiation so that it can be correctly configured with FPGA/Artix device.

//Entry in device tree of T1022 board

aliases {
        rgmii_phy1 = &rgmii_phy1;
        rgmii_phy2 = &rgmii_phy2;
        phy_sgmii_2 = &phy_sgmii_2;
        phy_sgmii_1 = &phy_sgmii_1;
        phy_sgmii_0 = &phy_sgmii_0;
    };


    soc: soc@ffe000000 {
        fman0: fman@400000 {
            rcpm-wakeup = <&rcpm 0x00000008>;

            
            enet0: ethernet@e0000 {
                               /* fixed-link = <0 1 1000 0 0>;
                                phy-connection-type = "sgmii";

                rcpm-wakeup = <&rcpm 0x80000000>;*/
            };


            enet1: ethernet@e2000 {
                tbi-handle = <&tbi1>;
                                fixed-link = <1 1 1000 0 0>;
                                phy-connection-type = "sgmii";
                        rcpm-wakeup = <&rcpm 0x40000000>;
                         status = "okay";
            };

            enet2: ethernet@e4000 {
                tbi-handle = <&tbi0>;
                phy-handle = <&phy_sgmii_2>;
                phy-connection-type = "sgmii";
                rcpm-wakeup = <&rcpm 0x20000000>;
            };

            /* TI phy*/
            enet3: ethernet@e6000 {
                phy-handle = <&rgmii_phy1>;
                phy-connection-type = "rgmii-id";
                rcpm-wakeup = <&rcpm 0x10000000>;
            };
            
            /* Ti phy */
            enet4: ethernet@e8000 {
                phy-handle = <&rgmii_phy2>;
                phy-connection-type = "rgmii-id";
                rcpm-wakeup = <&rcpm 0x08000000>;
            };

            mdio0: mdio@fc000{

            tbi0: tbi-phy@5 {
                                        reg = <0x5>;
                                        device_type = "tbi-phy";
                             };
                        tbi1: tbi-phy@1f {
                        device_type = "tbi-phy";
                        reg = <0x1F>;
                         };
                rgmii_phy1: ethernet-phy@1 { /* MAC3 */
                        reg = <0x1>;
                    };
                rgmii_phy2: ethernet-phy@4 { /* MAC3 */
                        reg = <0x4>;
                    };

                phy_sgmii_2: ethernet-phy@14 {
                                        reg = <0x14>;
                                };

                phy_sgmii_1: ethernet-phy@17 {
                                        reg = <0x17>;
                                };
                phy_sgmii_0: ethernet-phy@16 {
                                        reg = <0x16>;
                                };
            };        
        };
    };

    fsl,dpaa {
        compatible = "fsl,t1040-dpaa", "fsl,dpaa";
        ethernet@0 {
            compatible = "fsl,t1040-dpa-ethernet",
                    "fsl,dpa-ethernet";
            fsl,fman-mac = <&enet0>;
        };
        ethernet@1 {
            compatible = "fsl,t1040-dpa-ethernet",
                    "fsl,dpa-ethernet";
            fsl,fman-mac = <&enet1>;
        };
        ethernet@2 {
            compatible = "fsl,t1040-dpa-ethernet",
                    "fsl,dpa-ethernet";
            fsl,fman-mac = <&enet2>;
        };
        ethernet@3 {
            compatible = "fsl,t1040-dpa-ethernet",
                    "fsl,dpa-ethernet";
            fsl,fman-mac = <&enet3>;
        };
        ethernet@4 {
            compatible = "fsl,t1040-dpa-ethernet",
                    "fsl,dpa-ethernet";
            fsl,fman-mac = <&enet4>;
        };
    };

Labels (1)
0 Kudos
Reply
9 Replies

1,867 Views
hemwant
Contributor IV

yipingwang‌ Please respond to the above query.

0 Kudos
Reply

1,867 Views
hemwant
Contributor IV

yipingwang

imageedit_4_4169784855.png

As marked [To configure] in above image, is the section which we have to configure as 1000Mbps, also we are not having any external PHY.

->To access these registers, internal MDIO will be used. You can use u-boot commands -> mdio write and mdio read with address of the MAC.

We have tried to access these registers but mdio read/write  command requires phy addr and reg addr , this gives correct values only for MAC which has external PHY as phy_addr is known. In our case we do not have phy_addr as there is no external phy connected to our board with this particular MAC. What do you mean by reading with address of the MAC where can we find the address of the MAC for our case?

->For details of the MDIO addresses, refer to T1040 DPAA-RM section 5.4.2.1 and page 1308. Also refer to section 31.1.1.5 of T1040RM for MDIO port mapping.

 We have register dump corresponding to the register mentioned in section 31.1.1.5. There is no detail description of the register anywhere in the T1040RM and T1040 DPAA-RM. Please tell us the speed and auto neg settings of the MAC2 using the following SERDES MDIO address register dump.

=> md.l 0xfe4e3034 800
fe4e3034: 00000000 00001340 00001340 00000000    .......@...@....
fe4e3044: 00000000 00000000 00000000 00000000    ................
fe4e3054: 00000000 00000000 00000000 00000000    ................
fe4e3064: 00000000 00000000 00000000 00000000    ................
fe4e3074: 00000000 00000000 00000000 00000000    ................
fe4e3084: 00000000 00000000 00000000 00000000    ................
fe4e3094: 00000000 00000000 00000000 00000000    ................
fe4e30a4: 00000000 00000000 00000000 00000000    ................
fe4e30b4: 00000000 00000000 00000000 00000000    ................
fe4e30c4: 00000000 00000000 00000000 00000000    ................
fe4e30d4: 00000000 00000000 00000000 00000000    ................
fe4e30e4: 00000000 00000000 00000000 00000000    ................
fe4e30f4: 00000000 00000000 00000000 00000000    ................
fe4e3104: 00000000 00000000 00000000 00000000    ................
fe4e3114: 00000000 00000000 00000000 00000000    ................
fe4e3124: 00000000 00000000 00000000 00000000    ................
fe4e3134: 00000000 00000000 00000000 00000000    ................
fe4e3144: 00000000 00000000 00000000 00000000    ................
fe4e3154: 00000000 00000000 00000000 00000000    ................
fe4e3164: 00000000 00000000 00000000 00000000    ................
fe4e3174: 00000000 00000000 00000000 00000000    ................
fe4e3184: 00000000 00000000 00000000 00000000    ................
fe4e3194: 00000000 00000000 00000000 00000000    ................
fe4e31a4: 00000000 00000000 00000000 00000000    ................
fe4e31b4: 00000000 00000000 00000000 00000000    ................
fe4e31c4: 00000000 00000000 00000000 00000000    ................
fe4e31d4: 00000000 00000000 00000000 00000000    ................
fe4e31e4: 00000000 00000000 00000000 00000000    ................
fe4e31f4: 00000000 00000000 00000000 00000000    ................
fe4e3204: 00000000 00000000 00000000 00000000    ................
fe4e3214: 00000000 00000000 00000000 00000000    ................
fe4e3224: 00000000 00000000 00000000 00000000    ................
fe4e3234: 00000000 00000000 00000000 00000000    ................
fe4e3244: 00000000 00000000 00000000 00000000    ................
fe4e3254: 00000000 00000000 00000000 00000000    ................
fe4e3264: 00000000 00000000 00000000 00000000    ................
fe4e3274: 00000000 00000000 00000000 00000000    ................
fe4e3284: 00000000 00000000 00000000 00000000    ................
fe4e3294: 00000000 00000000 00000000 00000000    ................
fe4e32a4: 00000000 00000000 00000000 00000000    ................
fe4e32b4: 00000000 00000000 00000000 00000000    ................
fe4e32c4: 00000000 00000000 00000000 00000000    ................
fe4e32d4: 00000000 00000000 00000000 00000000    ................
fe4e32e4: 00000000 00000000 00000000 00000000    ................
fe4e32f4: 00000000 00000000 00000000 00000000    ................
fe4e3304: 00000000 00000000 00000000 00000000    ................
fe4e3314: 00000000 00000000 00000000 00000000    ................
fe4e3324: 00000000 00000000 00000000 00000000    ................
fe4e3334: 00000000 00000000 00000000 00000000    ................
fe4e3344: 00000000 00000000 00000000 00000000    ................
fe4e3354: 00000000 00000000 00000000 00000000    ................
fe4e3364: 00000000 00000000 00000000 00000000    ................
fe4e3374: 00000000 00000000 00000000 00000000    ................
fe4e3384: 00000000 00000000 00000000 00000000    ................
fe4e3394: 00000000 00000000 00000000 00000000    ................
fe4e33a4: 00000000 00000000 00000000 00000000    ................
fe4e33b4: 00000000 00000000 00000000 00000000    ................
fe4e33c4: 00000000 00000000 00000000 00000000    ................
fe4e33d4: 00000000 00000000 00000000 00000000    ................
fe4e33e4: 00000000 00000000 00000000 00000000    ................
fe4e33f4: 00000000 00000000 00000000 00000000    ................
fe4e3404: 00000000 00000000 00000000 00000000    ................
fe4e3414: 00000000 00000000 00000000 00000000    ................
fe4e3424: 00000000 00000000 00000000 00000000    ................
fe4e3434: 00000000 00000000 00000000 00000000    ................
fe4e3444: 00000000 00000000 00000000 00000000    ................
fe4e3454: 00000000 00000000 00000000 00000000    ................
fe4e3464: 00000000 00000000 00000000 00000000    ................
fe4e3474: 00000000 00000000 00000000 00000000    ................
fe4e3484: 00000000 00000000 00000000 00000000    ................
fe4e3494: 00000000 00000000 00000000 00000000    ................
fe4e34a4: 00000000 00000000 00000000 00000000    ................
fe4e34b4: 00000000 00000000 00000000 00000000    ................
fe4e34c4: 00000000 00000000 00000000 00000000    ................
fe4e34d4: 00000000 00000000 00000000 00000000    ................
fe4e34e4: 00000000 00000000 00000000 00000000    ................
fe4e34f4: 00000000 00000000 00000000 00000000    ................
fe4e3504: 00000000 00000000 00000000 00000000    ................
fe4e3514: 00000000 00000000 00000000 00000000    ................
fe4e3524: 00000000 00000000 00000000 00000000    ................
fe4e3534: 00000000 00000000 00000000 00000000    ................
fe4e3544: 00000000 00000000 00000000 00000000    ................
fe4e3554: 00000000 00000000 00000000 00000000    ................
fe4e3564: 00000000 00000000 00000000 00000000    ................
fe4e3574: 00000000 00000000 00000000 00000000    ................
fe4e3584: 00000000 00000000 00000000 00000000    ................
fe4e3594: 00000000 00000000 00000000 00000000    ................
fe4e35a4: 00000000 00000000 00000000 00000000    ................
fe4e35b4: 00000000 00000000 00000000 00000000    ................
fe4e35c4: 00000000 00000000 00000000 00000000    ................
fe4e35d4: 00000000 00000000 00000000 00000000    ................
fe4e35e4: 00000000 00000000 00000000 00000000    ................
fe4e35f4: 00000000 00000000 00000000 00000000    ................
fe4e3604: 00000000 00000000 00000000 00000000    ................
fe4e3614: 00000000 00000000 00000000 00000000    ................
fe4e3624: 00000000 00000000 00000000 00000000    ................
fe4e3634: 00000000 00000000 00000000 00000000    ................
fe4e3644: 00000000 00000000 00000000 00000000    ................
fe4e3654: 00000000 00000000 00000000 00000000    ................
fe4e3664: 00000000 00000000 00000000 00000000    ................
fe4e3674: 00000000 00000000 00000000 00000000    ................
fe4e3684: 00000000 00000000 00000000 00000000    ................
fe4e3694: 00000000 00000000 00000000 00000000    ................
fe4e36a4: 00000000 00000000 00000000 00000000    ................
fe4e36b4: 00000000 00000000 00000000 00000000    ................
fe4e36c4: 00000000 00000000 00000000 00000000    ................
fe4e36d4: 00000000 00000000 00000000 00000000    ................
fe4e36e4: 00000000 00000000 00000000 00000000    ................
fe4e36f4: 00000000 00000000 00000000 00000000    ................
fe4e3704: 00000000 00000000 00000000 00000000    ................
fe4e3714: 00000000 00000000 00000000 00000000    ................
fe4e3724: 00000000 00000000 00000000 00000000    ................
fe4e3734: 00000000 00000000 00000000 00000000    ................
fe4e3744: 00000000 00000000 00000000 00000000    ................
fe4e3754: 00000000 00000000 00000000 00000000    ................
fe4e3764: 00000000 00000000 00000000 00000000    ................
fe4e3774: 00000000 00000000 00000000 00000000    ................
fe4e3784: 00000000 00000000 00000000 00000000    ................
fe4e3794: 00000000 00000000 00000000 00000000    ................
fe4e37a4: 00000000 00000000 00000000 00000000    ................
fe4e37b4: 00000000 00000000 00000000 00000000    ................
fe4e37c4: 00000000 00000000 00000000 00000000    ................
fe4e37d4: 00000000 00000000 00000000 00000000    ................
fe4e37e4: 00000000 00000000 00000000 00000000    ................
fe4e37f4: 00000000 00000000 00000000 00000000    ................
fe4e3804: 00000000 00000000 00000000 00000000    ................
fe4e3814: 00000000 00000000 00000000 00000000    ................
fe4e3824: 00000000 00000000 00000000 00000000    ................
fe4e3834: 00000000 00000000 00000000 00000000    ................
fe4e3844: 00000000 00000000 00000000 00000000    ................
fe4e3854: 00000000 00000000 00000000 00000000    ................
fe4e3864: 00000000 00000000 00000000 00000000    ................
fe4e3874: 00000000 00000000 00000000 00000000    ................
fe4e3884: 00000000 00000000 00000000 00000000    ................
fe4e3894: 00000000 00000000 00000000 00000000    ................
fe4e38a4: 00000000 00000000 00000000 00000000    ................
fe4e38b4: 00000000 00000000 00000000 00000000    ................
fe4e38c4: 00000000 00000000 00000000 00000000    ................
fe4e38d4: 00000000 00000000 00000000 00000000    ................
fe4e38e4: 00000000 00000000 00000000 00000000    ................
fe4e38f4: 00000000 00000000 00000000 00000000    ................
fe4e3904: 00000000 00000000 00000000 00000000    ................
fe4e3914: 00000000 00000000 00000000 00000000    ................
fe4e3924: 00000000 00000000 00000000 00000000    ................
fe4e3934: 00000000 00000000 00000000 00000000    ................
fe4e3944: 00000000 00000000 00000000 00000000    ................
fe4e3954: 00000000 00000000 00000000 00000000    ................
fe4e3964: 00000000 00000000 00000000 00000000    ................
fe4e3974: 00000000 00000000 00000000 00000000    ................
fe4e3984: 00000000 00000000 00000000 00000000    ................
fe4e3994: 00000000 00000000 00000000 00000000    ................
fe4e39a4: 00000000 00000000 00000000 00000000    ................
fe4e39b4: 00000000 00000000 00000000 00000000    ................
fe4e39c4: 00000000 00000000 00000000 00000000    ................
fe4e39d4: 00000000 00000000 00000000 00000000    ................
fe4e39e4: 00000000 00000000 00000000 00000000    ................
fe4e39f4: 00000000 00000000 00000000 00000000    ................
fe4e3a04: 00000000 00000000 00000000 00000000    ................
fe4e3a14: 00000000 00000000 00000000 00000000    ................
fe4e3a24: 00000000 00000000 00000000 00000000    ................
fe4e3a34: 00000000 00000000 00000000 00000000    ................
fe4e3a44: 00000000 00000000 00000000 00000000    ................
fe4e3a54: 00000000 00000000 00000000 00000000    ................
fe4e3a64: 00000000 00000000 00000000 00000000    ................
fe4e3a74: 00000000 00000000 00000000 00000000    ................
fe4e3a84: 00000000 00000000 00000000 00000000    ................
fe4e3a94: 00000000 00000000 00000000 00000000    ................
fe4e3aa4: 00000000 00000000 00000000 00000000    ................
fe4e3ab4: 00000000 00000000 00000000 00000000    ................
fe4e3ac4: 00000000 00000000 00000000 00000000    ................
fe4e3ad4: 00000000 00000000 00000000 00000000    ................
fe4e3ae4: 00000000 00000000 00000000 00000000    ................
fe4e3af4: 00000000 00000000 00000000 00000000    ................
fe4e3b04: 00000000 00000000 00000000 00000000    ................
fe4e3b14: 00000000 00000000 00000000 00000000    ................
fe4e3b24: 00000000 00000000 00000000 00000000    ................
fe4e3b34: 00000000 00000000 00000000 00000000    ................
fe4e3b44: 00000000 00000000 00000000 00000000    ................
fe4e3b54: 00000000 00000000 00000000 00000000    ................
fe4e3b64: 00000000 00000000 00000000 00000000    ................
fe4e3b74: 00000000 00000000 00000000 00000000    ................
fe4e3b84: 00000000 00000000 00000000 00000000    ................
fe4e3b94: 00000000 00000000 00000000 00000000    ................
fe4e3ba4: 00000000 00000000 00000000 00000000    ................
fe4e3bb4: 00000000 00000000 00000000 00000000    ................
fe4e3bc4: 00000000 00000000 00000000 00000000    ................
fe4e3bd4: 00000000 00000000 00000000 00000000    ................
fe4e3be4: 00000000 00000000 00000000 00000000    ................
fe4e3bf4: 00000000 00000000 00000000 00000000    ................
fe4e3c04: 00000000 00000000 00000000 00000000    ................
fe4e3c14: 00000000 00000000 00000000 00000000    ................
fe4e3c24: 00000000 00000000 00000000 00000000    ................
fe4e3c34: 00000000 00000000 00000000 00000000    ................
fe4e3c44: 00000000 00000000 00000000 00000000    ................
fe4e3c54: 00000000 00000000 00000000 00000000    ................
fe4e3c64: 00000000 00000000 00000000 00000000    ................
fe4e3c74: 00000000 00000000 00000000 00000000    ................
fe4e3c84: 00000000 00000000 00000000 00000000    ................
fe4e3c94: 00000000 00000000 00000000 00000000    ................
fe4e3ca4: 00000000 00000000 00000000 00000000    ................
fe4e3cb4: 00000000 00000000 00000000 00000000    ................
fe4e3cc4: 00000000 00000000 00000000 00000000    ................
fe4e3cd4: 00000000 00000000 00000000 00000000    ................
fe4e3ce4: 00000000 00000000 00000000 00000000    ................
fe4e3cf4: 00000000 00000000 00000000 00000000    ................
fe4e3d04: 00000000 00000000 00000000 00000000    ................
fe4e3d14: 00000000 00000000 00000000 00000000    ................
fe4e3d24: 00000000 00000000 00000000 00000000    ................
fe4e3d34: 00000000 00000000 00000000 00000000    ................
fe4e3d44: 00000000 00000000 00000000 00000000    ................
fe4e3d54: 00000000 00000000 00000000 00000000    ................
fe4e3d64: 00000000 00000000 00000000 00000000    ................
fe4e3d74: 00000000 00000000 00000000 00000000    ................
fe4e3d84: 00000000 00000000 00000000 00000000    ................
fe4e3d94: 00000000 00000000 00000000 00000000    ................
fe4e3da4: 00000000 00000000 00000000 00000000    ................
fe4e3db4: 00000000 00000000 00000000 00000000    ................
fe4e3dc4: 00000000 00000000 00000000 00000000    ................
fe4e3dd4: 00000000 00000000 00000000 00000000    ................
fe4e3de4: 00000000 00000000 00000000 00000000    ................
fe4e3df4: 00000000 00000000 00000000 00000000    ................
fe4e3e04: 00000000 00000000 00000000 00000000    ................
fe4e3e14: 00000000 00000000 00000000 00000000    ................
fe4e3e24: 00000000 00000000 00000000 00000000    ................
fe4e3e34: 00000000 00000000 00000000 00000000    ................
fe4e3e44: 00000000 00000000 00000000 00000000    ................
fe4e3e54: 00000000 00000000 00000000 00000000    ................
fe4e3e64: 00000000 00000000 00000000 00000000    ................
fe4e3e74: 00000000 00000000 00000000 00000000    ................
fe4e3e84: 00000000 00000000 00000000 00000000    ................
fe4e3e94: 00000000 00000000 00000000 00000000    ................
fe4e3ea4: 00000000 00000000 00000000 00000000    ................
fe4e3eb4: 00000000 00000000 00000000 00000000    ................
fe4e3ec4: 00000000 00000000 00000000 00000000    ................
fe4e3ed4: 00000000 00000000 00000000 00000000    ................
fe4e3ee4: 00000000 00000000 00000000 00000000    ................
fe4e3ef4: 00000000 00000000 00000000 00000000    ................
fe4e3f04: 00000000 00000000 00000000 00000000    ................
fe4e3f14: 00000000 00000000 00000000 00000000    ................
fe4e3f24: 00000000 00000000 00000000 00000000    ................
fe4e3f34: 00000000 00000000 00000000 00000000    ................
fe4e3f44: 00000000 00000000 00000000 00000000    ................
fe4e3f54: 00000000 00000000 00000000 00000000    ................
fe4e3f64: 00000000 00000000 00000000 00000000    ................
fe4e3f74: 00000000 00000000 00000000 00000000    ................
fe4e3f84: 00000000 00000000 00000000 00000000    ................
fe4e3f94: 00000000 00000000 00000000 00000000    ................
fe4e3fa4: 00000000 00000000 00000000 00000000    ................
fe4e3fb4: 00000000 00000000 00000000 00000000    ................
fe4e3fc4: 00000000 00000000 00000000 00000000    ................
fe4e3fd4: 00000000 00000000 00000000 00000000    ................
fe4e3fe4: 00000000 00000000 00000000 00000000    ................
fe4e3ff4: 00000000 00000000 00000000 0001011e    ................
fe4e4004: 00000000 00000840 00000000 00000000    .......@........
fe4e4014: 00000600 00000000 00000020 00100020    ........... ...
fe4e4024: 00000000 00000000 00000000 00001448    ...............H
fe4e4034: 00000000 00000000 00000000 00000060    ...............`
fe4e4044: 0000000c 00000000 00000000 00000000    ................
fe4e4054: 00000000 00000000 00000000 00000000    ................
fe4e4064: 00000000 00000000 00000000 00000000    ................
fe4e4074: 00000000 00000000 00000000 00000000    ................
fe4e4084: 00000000 00000000 00000000 00000000    ................
fe4e4094: 00000000 00000000 00000000 00000000    ................
fe4e40a4: 00000000 00000000 00000000 00000000    ................
fe4e40b4: 00000000 00002000 00000000 00000000    ...... .........
fe4e40c4: 00000000 00000000 00000000 00000000    ................
fe4e40d4: 00000000 00000000 00000000 00000000    ................
fe4e40e4: 00000000 00000000 00000000 00000000    ................
fe4e40f4: 00000000 00000000 00000000 00000000    ................
fe4e4104: 00000000 00000000 00000000 00000000    ................
fe4e4114: 00000000 00000000 00000000 00000000    ................
fe4e4124: 00000000 00000000 00000000 00000000    ................
fe4e4134: 00000000 00000000 00000000 00000000    ................
fe4e4144: 00000000 00000000 00000000 00000000    ................
fe4e4154: 00000000 00000000 00000000 00000000    ................
fe4e4164: 00000000 00000000 00000000 00000000    ................
fe4e4174: 00000000 00000000 00000000 00000000    ................
fe4e4184: 00000000 00000000 00000000 00000000    ................
fe4e4194: 00000000 00000000 00000000 00000000    ................
fe4e41a4: 00000000 00000000 00000000 00000000    ................
fe4e41b4: 00000000 00000000 00000000 00000000    ................
fe4e41c4: 00000000 00000000 00000000 00000000    ................
fe4e41d4: 00000000 00000000 00000000 00000000    ................
fe4e41e4: 00000000 00000000 00000000 00000000    ................
fe4e41f4: 00000000 00000000 00000000 00000000    ................
fe4e4204: 00000000 00000000 00000000 00000000    ................
fe4e4214: 00000000 00000000 00000000 00000000    ................
fe4e4224: 00000000 00000000 00000000 00000000    ................
fe4e4234: 00000000 00000000 00000000 00000000    ................
fe4e4244: 00000000 00000000 00000000 00000000    ................
fe4e4254: 00000000 00000000 00000000 00000000    ................
fe4e4264: 00000000 00000000 00000000 00000000    ................
fe4e4274: 00000000 00000000 00000000 00000000    ................
fe4e4284: 00000000 00000000 00000000 00000000    ................
fe4e4294: 00000000 00000000 00000000 00000000    ................
fe4e42a4: 00000000 00000000 00000000 00000000    ................
fe4e42b4: 00000000 00000000 00000000 00000000    ................
fe4e42c4: 00000000 00000000 00000000 00000000    ................
fe4e42d4: 00000000 00000000 00000000 00000000    ................
fe4e42e4: 00000000 00000000 00000000 00000000    ................
fe4e42f4: 00000000 00000000 00000000 00001002    ................
fe4e4304: 00002000 00000000 00000000 00000000    .. .............
fe4e4314: 00000000 00000000 00000000 00000000    ................
fe4e4324: 00000000 00000000 00000000 00000000    ................
fe4e4334: 00000000 00000000 00000000 00000000    ................
fe4e4344: 00000000 00000000 00000000 00000000    ................
fe4e4354: 00000000 00000000 00000000 00000000    ................
fe4e4364: 00000000 00000000 00000000 00000000    ................
fe4e4374: 00000000 00000000 00000000 00000000    ................
fe4e4384: 00000000 00000000 00000000 00000000    ................
fe4e4394: 00000000 00000000 00000000 00000000    ................
fe4e43a4: 00000000 00000000 00000000 00000000    ................
fe4e43b4: 00000000 00000000 00000000 00000000    ................
fe4e43c4: 00000000 00000000 00000000 00000000    ................
fe4e43d4: 00000000 00000000 00000000 00000000    ................
fe4e43e4: 00000000 00000000 00000000 00000000    ................
fe4e43f4: 00000000 00000000 00000000 0001011e    ................
fe4e4404: 00000000 00000840 00000000 00000000    .......@........
fe4e4414: 00000600 00000000 00000020 00100020    ........... ...
fe4e4424: 00000000 00000000 00000000 00001448    ...............H
fe4e4434: 00000000 00000000 00000000 00000060    ...............`
fe4e4444: 0000000c 00000000 00000000 00000000    ................
fe4e4454: 00000000 00000000 00000000 00000000    ................
fe4e4464: 00000000 00000000 00000000 00000000    ................
fe4e4474: 00000000 00000000 00000000 00000000    ................
fe4e4484: 00000000 00000000 00000000 00000000    ................
fe4e4494: 00000000 00000000 00000000 00000000    ................
fe4e44a4: 00000000 00000000 00000000 00000000    ................
fe4e44b4: 00000000 00002000 00000000 00000000    ...... .........
fe4e44c4: 00000000 00000000 00000000 00000000    ................
fe4e44d4: 00000000 00000000 00000000 00000000    ................
fe4e44e4: 00000000 00000000 00000000 00000000    ................
fe4e44f4: 00000000 00000000 00000000 00000000    ................
fe4e4504: 00000000 00000000 00000000 00000000    ................
fe4e4514: 00000000 00000000 00000000 00000000    ................
fe4e4524: 00000000 00000000 00000000 00000000    ................
fe4e4534: 00000000 00000000 00000000 00000000    ................
fe4e4544: 00000000 00000000 00000000 00000000    ................
fe4e4554: 00000000 00000000 00000000 00000000    ................
fe4e4564: 00000000 00000000 00000000 00000000    ................
fe4e4574: 00000000 00000000 00000000 00000000    ................
fe4e4584: 00000000 00000000 00000000 00000000    ................
fe4e4594: 00000000 00000000 00000000 00000000    ................
fe4e45a4: 00000000 00000000 00000000 00000000    ................
fe4e45b4: 00000000 00000000 00000000 00000000    ................
fe4e45c4: 00000000 00000000 00000000 00000000    ................
fe4e45d4: 00000000 00000000 00000000 00000000    ................
fe4e45e4: 00000000 00000000 00000000 00000000    ................
fe4e45f4: 00000000 00000000 00000000 00000000    ................
fe4e4604: 00000000 00000000 00000000 00000000    ................
fe4e4614: 00000000 00000000 00000000 00000000    ................
fe4e4624: 00000000 00000000 00000000 00000000    ................
fe4e4634: 00000000 00000000 00000000 00000000    ................
fe4e4644: 00000000 00000000 00000000 00000000    ................
fe4e4654: 00000000 00000000 00000000 00000000    ................
fe4e4664: 00000000 00000000 00000000 00000000    ................
fe4e4674: 00000000 00000000 00000000 00000000    ................
fe4e4684: 00000000 00000000 00000000 00000000    ................
fe4e4694: 00000000 00000000 00000000 00000000    ................
fe4e46a4: 00000000 00000000 00000000 00000000    ................
fe4e46b4: 00000000 00000000 00000000 00000000    ................
fe4e46c4: 00000000 00000000 00000000 00000000    ................
fe4e46d4: 00000000 00000000 00000000 00000000    ................
fe4e46e4: 00000000 00000000 00000000 00000000    ................
fe4e46f4: 00000000 00000000 00000000 00001002    ................
fe4e4704: 00002000 00000000 00000000 00000000    .. .............
fe4e4714: 00000000 00000000 00000000 00000000    ................
fe4e4724: 00000000 00000000 00000000 00000000    ................
fe4e4734: 00000000 00000000 00000000 00000000    ................
fe4e4744: 00000000 00000000 00000000 00000000    ................
fe4e4754: 00000000 00000000 00000000 00000000    ................
fe4e4764: 00000000 00000000 00000000 00000000    ................
fe4e4774: 00000000 00000000 00000000 00000000    ................
fe4e4784: 00000000 00000000 00000000 00000000    ................
fe4e4794: 00000000 00000000 00000000 00000000    ................
fe4e47a4: 00000000 00000000 00000000 00000000    ................
fe4e47b4: 00000000 00000000 00000000 00000000    ................
fe4e47c4: 00000000 00000000 00000000 00000000    ................
fe4e47d4: 00000000 00000000 00000000 00000000    ................
fe4e47e4: 00000000 00000000 00000000 00000000    ................
fe4e47f4: 00000000 00000000 00000000 00000000    ................
fe4e4804: 000088e5 00000000 00000000 00000000    ................
fe4e4814: 00000000 00000000 00000000 00000000    ................
fe4e4824: 00000000 00000000 00000000 00000000    ................
fe4e4834: 00000000 00000000 00000000 00000000    ................
fe4e4844: 00000000 00000000 00000000 00000000    ................
fe4e4854: 00000000 00000000 00000000 00000000    ................
fe4e4864: 00000000 00000000 00000000 00000000    ................
fe4e4874: 00000000 00000000 00000000 00000000    ................
fe4e4884: 00000000 00000000 00000000 00000000    ................
fe4e4894: 00000000 00000000 00000000 00000000    ................
fe4e48a4: 00000000 00000000 00000000 00000000    ................
fe4e48b4: 00000000 00000000 00000000 00000000    ................
fe4e48c4: 00000000 00000000 00000000 00000000    ................
fe4e48d4: 00000000 00000000 00000000 00000000    ................
fe4e48e4: 00000000 00000000 00000000 00000000    ................
fe4e48f4: 00000000 00000000 00000000 00000000    ................
fe4e4904: 00000000 00000000 00000000 00000000    ................
fe4e4914: 00000000 00000000 00000000 00000000    ................
fe4e4924: 00000000 00000000 00000000 00000000    ................
fe4e4934: 00000000 00000000 00000000 00000000    ................
fe4e4944: 00000000 00000000 00000000 00000000    ................
fe4e4954: 00000000 00000000 00000000 00000000    ................
fe4e4964: 00000000 00000000 00000000 00000000    ................
fe4e4974: 00000000 00000000 00000000 00000000    ................
fe4e4984: 00000000 00000000 00000000 00000000    ................
fe4e4994: 00000000 00000000 00000000 00000000    ................
fe4e49a4: 00000000 00000000 00000000 00000000    ................
fe4e49b4: 00000000 00000000 00000000 00000000    ................
fe4e49c4: 00000000 00000000 00000000 00000000    ................
fe4e49d4: 00000000 00000000 00000000 00000000    ................
fe4e49e4: 00000000 00000000 00000000 00000000    ................
fe4e49f4: 00000000 00000000 00000000 00000000    ................
fe4e4a04: 00000000 00000000 00000000 00000000    ................
fe4e4a14: 00000000 00000000 00000000 00000000    ................
fe4e4a24: 00000000 00000000 00000000 00000000    ................
fe4e4a34: 00000000 00000000 00000000 00000000    ................
fe4e4a44: 00000000 00000000 00000000 00000000    ................
fe4e4a54: 00000000 00000000 00000000 00000000    ................
fe4e4a64: 00000000 00000000 00000000 00000000    ................
fe4e4a74: 00000000 00000000 00000000 00000000    ................
fe4e4a84: 00000000 00000000 00000000 00000000    ................
fe4e4a94: 00000000 00000000 00000000 00000000    ................
fe4e4aa4: 00000000 00000000 00000000 00000000    ................
fe4e4ab4: 00000000 00000000 00000000 00000000    ................
fe4e4ac4: 00000000 00000000 00000000 00000000    ................
fe4e4ad4: 00000000 00000000 00000000 00000000    ................
fe4e4ae4: 00000000 00000000 00000000 00000000    ................
fe4e4af4: 00000000 00000000 00000000 00000000    ................
fe4e4b04: 00000000 00000000 00000000 00000000    ................
fe4e4b14: 00000000 00000000 00000000 00000000    ................
fe4e4b24: 00000000 00000000 00000000 00000000    ................
fe4e4b34: 00000000 00000000 00000000 00000000    ................
fe4e4b44: 00000000 00000000 00000000 00000000    ................
fe4e4b54: 00000000 00000000 00000000 00000000    ................
fe4e4b64: 00000000 00000000 00000000 00000000    ................
fe4e4b74: 00000000 00000000 00000000 00000000    ................
fe4e4b84: 00000000 00000000 00000000 00000000    ................
fe4e4b94: 00000000 00000000 00000000 00000000    ................
fe4e4ba4: 00000000 00000000 00000000 00000000    ................
fe4e4bb4: 00000000 00000000 00000000 00000000    ................
fe4e4bc4: 00000000 00000000 00000000 00000000    ................
fe4e4bd4: 00000000 00000000 00000000 00000000    ................
fe4e4be4: 00000000 00000000 00000000 00000000    ................
fe4e4bf4: 00000000 0a800101 00000000 00000000    ................
fe4e4c04: 00000000 00000000 00000000 00000000    ................
fe4e4c14: 00000000 00000000 00000000 00000000    ................
fe4e4c24: 00000000 00000000 00000000 00000000    ................
fe4e4c34: 00000000 00000000 00000000 00000000    ................
fe4e4c44: 00000001 00000000 00000000 00000000    ................
fe4e4c54: 00000000 00000000 00000000 00000000    ................
fe4e4c64: 00000000 00000000 00000000 00000000    ................
fe4e4c74: 00000000 00000000 00000000 00000000    ................
fe4e4c84: 00000000 00000000 00000000 00000000    ................
fe4e4c94: 00000000 00000000 00000000 00000000    ................
fe4e4ca4: 00000000 00000000 00000000 00000000    ................
fe4e4cb4: 00000000 00000000 00000000 00000000    ................
fe4e4cc4: 00000000 00000000 00000000 00000000    ................
fe4e4cd4: 00000000 00000000 00000000 00000000    ................
fe4e4ce4: 00000000 00000000 00000000 00000000    ................
fe4e4cf4: 00000000 00000000 00000000 00000000    ................
fe4e4d04: 00000000 00000000 00000000 00000000    ................
fe4e4d14: 00000000 00000000 00000000 00000000    ................
fe4e4d24: 00000000 00000000 00000000 00000000    ................
fe4e4d34: 00000000 00000000 00000000 00000000    ................
fe4e4d44: 00000000 00000000 00000000 00000000    ................
fe4e4d54: 00000000 00000000 00000000 00000000    ................
fe4e4d64: 00000000 00000000 00000000 00000000    ................
fe4e4d74: 00000000 00000000 00000000 00000000    ................
fe4e4d84: 00000000 00000000 00000000 00000000    ................
fe4e4d94: 00000000 00000000 00000000 00000000    ................
fe4e4da4: 00000000 00000000 00000000 00000000    ................
fe4e4db4: 00000000 00000000 00000000 00000000    ................
fe4e4dc4: 00000000 00000000 00000000 00000000    ................
fe4e4dd4: 00000000 00000000 00000000 00000000    ................
fe4e4de4: 00000000 00000000 00000000 00000000    ................
fe4e4df4: 00000000 00000000 00000000 00000000    ................
fe4e4e04: 00000000 00000000 00000000 00000000    ................
fe4e4e14: 00000000 00000000 00000000 00000000    ................
fe4e4e24: 00000000 00000000 00000000 00000000    ................
fe4e4e34: 00000000 00000000 00000000 00000000    ................
fe4e4e44: 00000000 00000000 00000000 00000000    ................
fe4e4e54: 00000000 00000000 00000000 00000000    ................
fe4e4e64: 00000000 00000000 00000000 00000000    ................
fe4e4e74: 00000000 00000000 00000000 00000000    ................
fe4e4e84: 00000000 00000000 00000000 00000000    ................
fe4e4e94: 00000000 00000000 00000000 00000000    ................
fe4e4ea4: 00000000 00000000 00000000 00000000    ................
fe4e4eb4: 00000000 00000000 00000000 00000000    ................
fe4e4ec4: 00000000 00000000 00000000 00000000    ................
fe4e4ed4: 00000000 00000000 00000000 00000000    ................
fe4e4ee4: 00000000 00000000 00000000 00000000    ................
fe4e4ef4: 00000000 00000000 00000000 00000000    ................
fe4e4f04: 00000000 00000000 00000000 00000000    ................
fe4e4f14: 00000000 00000000 00000000 00000000    ................
fe4e4f24: 00000000 00000000 00000000 00000000    ................
fe4e4f34: 00000000 00000000 00000000 00000000    ................
fe4e4f44: 00000000 00000000 00000000 00000000    ................
fe4e4f54: 00000000 00000000 00000000 00000000    ................
fe4e4f64: 00000000 00000000 00000000 00000000    ................
fe4e4f74: 00000000 00000000 00000000 00000000    ................
fe4e4f84: 00000000 00000000 00000000 00000000    ................
fe4e4f94: 00000000 00000000 00000000 00000000    ................
fe4e4fa4: 00000000 00000000 00000000 00000000    ................
fe4e4fb4: 00000000 00000000 00000000 00000000    ................
fe4e4fc4: 00000000 00000000 00000000 00000000    ................
fe4e4fd4: 00000000 00000000 00000000 00000000    ................
fe4e4fe4: 00000000 00000000 00000000 00000000    ................
fe4e4ff4: 00000000 00000000 00000000 00000000    ................
fe4e5004: 00000000 00000000 00000000 00000000    ................
fe4e5014: 00000000 00000000 00000000 00000000    ................
fe4e5024: 00000000 00000000 00000000 00001448    ...............H

0 Kudos
Reply

1,868 Views
yipingwang
NXP TechSupport
NXP TechSupport

The fixed-link property declared in device tree prevents the driver from reading the status of the external PHY, it does not affect the PCS initialization, please make sure the other side of the connection supports SGMII auto-negotiation. Please refer to 31.6 in T1040 Reference manual. Please refer to section "Auto-Negotiation" in the attached application note.

Please check whether it would be help to read PCS MDIO reisgers in 31.5 in T1040RM.

Thanks,

Yiping

0 Kudos
Reply

1,868 Views
hemwant
Contributor IV

The interface in question is between Processor(T1022) mac with 1G/2.5G Ethernet PCS/PMA IP core of Xilinx within Artix/FPGA device(XC7A200T-2FFG1156C). There is no external PHY connected.

Now we need to verify the Processor side register configuration for 1G fixed link configuration without auto-neg. What are the CPU registers?

There are some registers in 31.5.4 in RM. Are these register relevant to the issue we have and how to access these registers.

Regards

Hemwant

0 Kudos
Reply

1,868 Views
hemwant
Contributor IV

yipingwang‌ Please respond to the above query.

0 Kudos
Reply

1,868 Views
yipingwang
NXP TechSupport
NXP TechSupport

SGMII link status register is available on SGMII MDIO access register - MDIO_SGMII_SR. The register is accessed through internal MDIO access.

Another register that may help checking the copper (media) end link status is  MDIO_SGMII_LP_DEV_ABIL_SGMII at offset 0x5.

Regarding this issue, the fixed link should be set at both link partners.

Thanks,

Yiping

0 Kudos
Reply

1,868 Views
hemwant
Contributor IV

How do we access the MDIO register as there is no external PHY connected to the interface?

If without external PHY MDIO can be accessed then what will be the PHY address to access register.

>>Regarding this issue, the fixed link should be set at both link partners.

The fixed link is set on processor end , on the other end the auto negotiation was disabled.

0 Kudos
Reply

1,868 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the update from app.

The registers mentioned in my previous response are internal to the SoC (T1040) and located in PCS module. Please refer to section 31.5 of T1040RM, rev-1.

To access these registers, internal MDIO will be used. You can use u-boot commands -> mdio write and mdio read with address of the MAC.

For details of the MDIO addresses, refer to T1040 DPAA-RM section 5.4.2.1 and page 1308. Also refer to section 31.1.1.5 of T1040RM for MDIO port mapping.

 

More details on accessing MDIO registers is available here:

https://drive.google.com/open?id=1fLt-Nm-h3odvVEEigoPoFCr4g7cQph3W 

0 Kudos
Reply

1,868 Views
yipingwang
NXP TechSupport
NXP TechSupport

Sorry for the late reply, I was discussing with the hardware AE team, will give you more feedback later.

Thanks,

Yiping

0 Kudos
Reply