NXP_C45_TJA11XX Driver Soft Reset Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

NXP_C45_TJA11XX Driver Soft Reset Issue

跳至解决方案
1,320 次查看
DusanStanisic99
Contributor II

Hello everyone,

 

We're doing a bring-up of a custom board that has TI TDA4 SoC and TJA1120 PHY on it. After including the nxp_c45_tja11xx driver in our Linux build, we got an error during boot inside the nxp_c45_soft_reset function. If we make a change to the phy_read_mmd_poll_timeout macro call so that its last parameter (sleep_before_read) is true instead of false as is the case by default, this issue disappears. We also tried using shorter sleep (1000 us) before phy_read_mmd_poll_timeout and this also works.

It seems that without any sleep between MDIO write and read, the software tries to read the PHY register while it's still in reset and fails. But, strangely, this wasn't noticed by anyone so far. Could this be somehow caused by our board, or is this perhaps a bug in the driver?

Note:
We are using the revision 1 of TJA1120A Phy.

Best Regards,

Dusan

 

 
1 解答
1,285 次查看
PavelL
NXP Employee
NXP Employee

Hello @DusanStanisic99 ,

that might be a small bug in the driver. Your observation seems to be correct to me.

Please refer to TJA1120's application note, AN13663, page 30 - where startup timing is depicted.

PavelL_0-1736952413530.png

Best regards,

Pavel

在原帖中查看解决方案

4 回复数
1,280 次查看
rm_
Contributor I

Hello @PavelL,

I'm working with Dusan on this. Shall we create a patch with fix and send it to driver maintainer(s)?

Best Regards,
Milos

0 项奖励
回复
1,243 次查看
PavelL
NXP Employee
NXP Employee

Hello @rm_ ,

that would be great. Please do.

Best regards,

Pavel

0 项奖励
回复
1,212 次查看
rm_
Contributor I
0 项奖励
回复
1,286 次查看
PavelL
NXP Employee
NXP Employee

Hello @DusanStanisic99 ,

that might be a small bug in the driver. Your observation seems to be correct to me.

Please refer to TJA1120's application note, AN13663, page 30 - where startup timing is depicted.

PavelL_0-1736952413530.png

Best regards,

Pavel