SGMII Configuration for LX2160A

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

SGMII Configuration for LX2160A

2,308 Views
Elango0103
Contributor I

Hi,
I am using LX2160A in my custom hardware. i need to configure serdes 1 first 2 lines as SGMII(lane 0 and lane 1). I have added the below snippet in my "fsl-lx2160a-rdb.dts" file.

&dpmac3 {
status = "okay";
phy-connection-type = "sgmii";
managed = "in-band-status";
};
&dpmac4 {
status = "okay";
phy-connection-type = "sgmii";
managed = "in-band-status";
};

 

I can see link is UP and RUNNING, but still i can't able to ping the other end. LX2160A is directly connected to Ethernet Switch without any external phy. While performing ping test TX packets increases where RX remains 0.

root@TinyLinux:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.1.2 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::20a:35ff:fe00:2203 prefixlen 64 scopeid 0x20<link>
ether 00:0a:35:00:22:03 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9 bytes 726 (726.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.1.5 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::20a:35ff:fe00:2201 prefixlen 64 scopeid 0x20<link>
ether 00:0a:35:00:22:01 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9 bytes 726 (726.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Can someone help on this.

 

0 Kudos
Reply
5 Replies

2,045 Views
June_Lu
NXP TechSupport
NXP TechSupport

Please kindly follow AN13329 to do the debug.

Network subsystem troubleshooting on DPAA2 devices (illustrated with LX2160)

Thanks

0 Kudos
Reply

2,107 Views
June_Lu
NXP TechSupport
NXP TechSupport

Confirm with the internal team:

Suggest to use fixed-link instead of 'managed = "in-band-status".

Thanks

0 Kudos
Reply

2,080 Views
Elango0103
Contributor I

We have tried with fixed link configuration also, observed same result.

where Tx increases, Rx remains 0 (Link is UP).

&dpmac3 {
status = "okay";
phy-connection-type = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};

&dpmac4 {
status = "okay";
phy-connection-type = "sgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};

 

how to confirm LX side is proper by performing loopback test?

0 Kudos
Reply

2,199 Views
June_Lu
NXP TechSupport
NXP TechSupport

Please kindly share the SW version, thanks

0 Kudos
Reply

2,172 Views
Elango0103
Contributor I

We are using LSDK 21.08

0 Kudos
Reply