LX2160ARDB_REV2 XFI interface doesn't work

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

LX2160ARDB_REV2 XFI interface doesn't work

1,625 Views
tsungmin_wang
Contributor III

Hi,

We have a lx2160ardb_rev2 custom board with serdes 1 (0x7).

DPMAC.3 and DPMAC.4 are set as XFI. And both of them connect to SFP+ cage directly (without PHY).

 

I try to test ping in U-Boot, but it doesn't link up when I connect one of them to another 10G SFP+

 

My device tree setting

&dpmac3 {
        status = "okay";
        phy-connection-type = "xfi";
};

&dpmac4 {
        status = "okay";
        phy-connection-type = "xfi";
};

 

Could you give some advises for debugging?

Thanks.

0 Kudos
8 Replies

1,605 Views
yipingwang
NXP TechSupport
NXP TechSupport

Do you use retimer for these two ports on your board?

0 Kudos

1,593 Views
tsungmin_wang
Contributor III

No, we just connect the optical transceiver to SerDes directly

0 Kudos

1,586 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check if SFI is configured. It's required if no retimer is used.

0 Kudos

1,573 Views
tsungmin_wang
Contributor III

Hi,

Do you mean the DPC and DTS?

This is my DPC.

        board_info {
                ports {
                        mac@3 {
                                link_tpye = "MAC_LINK_TYPE_FIXED";
                                serdes_cfg = "sfi";
                        };
                        mac@4 {
                                link_tpye = "MAC_LINK_TYPE_FIXED";
                                serdes_cfg = "sfi";
                        };
                };
        };

 

This is my DTS

&dpmac3 {
        status = "okay";
        phy-connection-type = "xfi";
};

&dpmac4 {
        status = "okay";
        phy-connection-type = "xfi";
};

 

 Am I right for the configurations?

 

Also, should I enable any driver in U-Boot or Linux?

Thanks.

0 Kudos

1,570 Views
yipingwang
NXP TechSupport
NXP TechSupport

You should define the DTS as the following.

&dpmac3 {
        status = "okay";
        fixed-link = <0 1 10000 0 0>;
        phy-connection-type = "xfi";
};
0 Kudos

1,518 Views
tsungmin_wang
Contributor III

Hi,

I use the same dts configuration to linux.

And dpc use "MAC_LINK_TYPE_FIXED" and "sfi" to XFI interface

        board_info {
                ports {
                        mac@3 {
                                link_tpye = "MAC_LINK_TYPE_FIXED";
                                serdes_cfg = "sfi";
                        };
                        mac@4 {
                                link_tpye = "MAC_LINK_TYPE_FIXED";
                                serdes_cfg = "sfi";
                        };
                };
        };

 

I use "restool" to create dpmac

 restool dpmac create --mac-id=3
 restool dpmac create --mac-id=4

 

Link them with "ls-addni"

ls-addni dpmac.3
ls-addni dpmac.4

 

The commands would create two interfaces.

But they doesn't link up when I connect them to another SFP interfaces.

 

How can I check the interface?

And should I enable something in kernel? 

0 Kudos

1,512 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following update from the expert team.

Does customer have RDB board. If yes, the mac5 and mac6 are optical fiber interfaces which have no retimer. Customer can use these two ports to check the fiber module at first. I am not sure if this is a fiber compatible issue.

0 Kudos

1,449 Views
tsungmin_wang
Contributor III

Hi,

We have checked that our fiber module can make the port link up on RDB board.

I'm not sure is the ref clock the problem.

Our PLLF is 156.25 MHz and PLLS is 100 MHz.

And default are both 161.13 MHz.

So, I wonder how to change this setting.

tsungmin_wang_0-1642396629230.png

I think I should set SRDS_PLL_REF_CLK_SEL_S1=0, is it right?

I have tested this setting, but it doesn't work. Should I set something else?

0 Kudos