Ethernet phy vsc8572

We used PHY VSC8572 on our custom board(based on video kit) in SGMII mode together with PolarFire SOC under Linux.

We are able to boot Linux. We observe media detection in linux (link up, link down, 10/100/1000). We are able to setup the media loopback – far end loopback – it works -> RJ45 connector is correct. We are able to check SERDES loopback (input and facility) -> we can observe looped packets in TCPDUMP in polarfire Linux -> serdes SGMII links between MSS and PHY work ok. We are NOT able to check the near far loopback inside PHY. And of course ping doesn’t work. Linux driver for VSC8572 is used – it was tested with several printf to console. It looks like signal doesn’t go through the PHY but both sides separately work.

Any idea what can be tested or improve or focused to achieve ping?

Is problem.on phy side or rather on mac side? Our board is a clone from video kit where we replaced original phy chip vsc8662