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.
Do you use retimer for these two ports on your board?
No, we just connect the optical transceiver to SerDes directly
Please check if SFI is configured. It's required if no retimer is used.
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.
You should define the DTS as the following.
&dpmac3 {
status = "okay";
fixed-link = <0 1 10000 0 0>;
phy-connection-type = "xfi";
};
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?
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.
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.
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?