LX2160ARDB_REV2 XFI interface doesn't work

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

LX2160ARDB_REV2 XFI interface doesn't work

2,222件の閲覧回数
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 件の賞賛
返信
8 返答(返信)

2,202件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

2,190件の閲覧回数
tsungmin_wang
Contributor III

No, we just connect the optical transceiver to SerDes directly

0 件の賞賛
返信

2,183件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

2,170件の閲覧回数
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 件の賞賛
返信

2,167件の閲覧回数
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 件の賞賛
返信

2,115件の閲覧回数
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 件の賞賛
返信

2,109件の閲覧回数
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 件の賞賛
返信

2,046件の閲覧回数
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 件の賞賛
返信