NXP_C45_TJA11XX Driver Soft Reset Issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NXP_C45_TJA11XX Driver Soft Reset Issue

ソリューションへジャンプ
1,317件の閲覧回数
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,282件の閲覧回数
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,277件の閲覧回数
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,240件の閲覧回数
PavelL
NXP Employee
NXP Employee

Hello @rm_ ,

that would be great. Please do.

Best regards,

Pavel

0 件の賞賛
返信
1,209件の閲覧回数
rm_
Contributor I
0 件の賞賛
返信
1,283件の閲覧回数
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