25MHz clock from i.MX 6 GPIO16 stops during Linux kernel boot

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

25MHz clock from i.MX 6 GPIO16 stops during Linux kernel boot

ソリューションへジャンプ
2,137件の閲覧回数
mahi
Contributor IV

Hi community,

I am using a 25MHz clock generated by i.MX6 for my ethernet PHY. The clock output is enabled in u-boot which works just fine. But during the startup of the Linux kernel, this clock "disappears" for some seconds and when startup is almost finished, it recovers.

I think the clock is restarted in imx6q_clocks_init (clk-imx6q.c) but I cannot find where and why it is stopped.

Can someone give me a hint, where my clock might get disabled?

Unfortunately I couldn't manage to set up a working debugging solution for the kernel yet - apparently my J-Link does not like the i.MX6, but this is a different story.

Best regards Martin

ラベル(3)
0 件の賞賛
返信
1 解決策
1,864件の閲覧回数
mahi
Contributor IV

Hi Alejandro,

actually this is not a problem.

I suspected the missing clock to be the reason why the KSZ9031 on my board was not found. In the end the real reason was the power supply of the PHY being disabled due to a missing entry in the device tree...

Best Regards

Martin

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,864件の閲覧回数
mahi
Contributor IV

I found where the clock is stopped... fec_probe (in fec_main.c) calls fec_enet_clk_enable(ndev, false); to disable the clocks.

But I still can't figure out why this is done...

0 件の賞賛
返信
1,864件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Are you getting some kind of problem because of this?

What you mentioned seems to be related to this patch, but not su sure yet.

[PATCH v5] net: fec: Ensure clocks are enabled while using mdio bus

0 件の賞賛
返信
1,865件の閲覧回数
mahi
Contributor IV

Hi Alejandro,

actually this is not a problem.

I suspected the missing clock to be the reason why the KSZ9031 on my board was not found. In the end the real reason was the power supply of the PHY being disabled due to a missing entry in the device tree...

Best Regards

Martin

0 件の賞賛
返信