i.MX8MPlus EVK: PHY loopback on ENET_QOS

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

i.MX8MPlus EVK: PHY loopback on ENET_QOS

1,830 Views
abelal
Contributor III

Hi experts,

I have the i.MX8MP EVK on which I am trying to develop a loopback test for ethernet PHYs. On the EVK, one PHY is connected to ENET/fec and the other is connected to ENET_QOS/eqos. I understand both of these use a different driver when it comes to hardware IP but the PHY handling is same.

Without connecting any ethernet cables I use phytool to switch the PHY to loopback mode by using the standard BMCR register of the PHY. Example for fec

phytool write eth0/1/0x0 0x6100

and in dmesg I get

[  466.592107] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  466.592938] fec 30be0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off

I am able to receive the packets that I send on this interface making clear the loopback works. The RJ45 port LED for this interface also goes up.

However when I try to do the same with ENET_QOS/eqos the interface never goes up

phytool write eth1/1/0x0 0x6100

nothing in dmesg at this point nor do I receive the packets I send on the interface but the RJ45 port LED is on.

Can this behavior be explained? How can I make the eqos work when PHY is in loopback mode?

Labels (2)
0 Kudos
Reply
3 Replies

1,806 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The bit of Loopback mode in QOS is 12:

Qmiller_0-1666666239215.png

But the Bit12  of 0x6100 you used is 0, you  need change this value.

 

Tags (1)
0 Kudos
Reply

1,792 Views
abelal
Contributor III

Hi @Zhiming_Liu ,

You are referring to the MAC loopback capability however please note that I am trying a different scenario where I am putting the PHY in the loopback mode (not the MAC) and it works as expected for the FEC interface and not the EQOS.

0 Kudos
Reply

1,814 Views
abelal
Contributor III

Hello team,

No updates/response here?

0 Kudos
Reply