2025-08-26 3:25 AM - last edited on 2025-08-26 4:28 AM by Peter BENSCH
Hi
I am using Marvell Ethernet Phy(mv88q2220) in our project,i have integrated my Marvell driver into SDK and it is probing as well, we are using sxgmac driver for mac, while i am trying to initialize the eth0 interface i am facing issues related to validation of phy and phy is not able to attach.I have checked the phy-mode also it is configured correctly. I am attaching the error logs also, Can anyone suggest what could the potential cause of this issue ?
Error Logs:
root@sadk:~# ifconfig eth0 192.168.10.1 up
SIOCSIFFLAGS: Invalid argument
SIOCSIFFLAGS: Invalid argument
Dmesg Logs:
[ 55.096204] sxgmac 16cc8000.ethernet eth0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
[ 55.096449] sxgmac 16cc8000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -22)
[ 55.364867] sxgmac 16cc8000.ethernet: is_dsp_running changed to true
[ 55.365900] sxgmac 16cc8000.ethernet: MAC address filter register failure
[ 55.684876] sxgmac 16cc8000.ethernet: is_dsp_running changed to false
Thanks & Regards
Uthaya
2025-08-28 12:48 AM
Hello,
I suspect it's related to the PHY state. Can you check that the PHY is powered correctly at that point. Have you given enough time for the PHY to initialize (should be specified in spec)? Try to add a delay at the end of its configuration.
Best regards,
Gatien
2025-08-28 12:49 AM
Also, why are you using sxgmac?
2025-08-28 4:44 AM
Hi GatienC
We are using sxgmac for mac driver(ethernet sub-controller, Synopsys IP Core),i have added a TXCLK internal delay for 1.3 ns and tried but i am facing the same issue.
2025-08-29 12:27 AM
Hi,
What exactly is you platform please? MPU?
Also, the delay I was mentioning is the "ramp-up" delay after powering the PHY up. PHYs take some time before being fully functional (usually some us).
Regards,
Gatien
2025-08-29 1:50 AM
Hi,
I am using samsung exynos v920 SOC and i will try with ramp-up delay also.
2025-08-31 11:24 PM
Hi,
I have tried with ramp-up delay but still facing same issue. i have added a delay in driver before probing but it didn't works.
Thanks
Uthaya M
2025-09-14 11:25 PM
Hi
Any suggestion from anyone, it would be helpful
Thanks & Regards
Uthaya M
2025-09-15 12:38 AM
Hi
Any suggestion from anyone, it would be helpful
Thanks & Regards
Uthaya M
2025-09-15 12:54 AM
Hello @Uthaya ,
This forum is dedicated for STM32 product, and we cannot support other SoC outside from the ones provided by STMicroelectronics.
I advise you to contact the dedicated support for your product.
Kind regards,
Erwan.