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,134 次查看
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,861 次查看
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,861 次查看
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,861 次查看
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,862 次查看
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 项奖励
回复