cancel
Showing results for 
Search instead for 
Did you mean: 

SXGMAC Ethernet Driver Query

Uthaya
Associate II

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

9 REPLIES 9
GatienC
ST Employee

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

GatienC
ST Employee

Also, why are you using sxgmac?

Uthaya
Associate II

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.

GatienC
ST Employee

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

Hi,

I am using samsung exynos v920 SOC  and i will try with ramp-up delay also.

 

Uthaya
Associate II

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

Hi 

Any suggestion from anyone, it would be helpful

Thanks & Regards

Uthaya M

Uthaya
Associate II

Hi 

Any suggestion from anyone, it would be helpful

Thanks & Regards

Uthaya M

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.