imx8m: composite clock wrong clock parent ?
Hi,
I am working on a i.MX8MM based board and I got issue to make the Ethernet phy work.
I noticed that the MDIO clock is not configured properly and the FEC outputs a 26,6MHz MDIO clock.
That's because the clk_get_rate() call at line 1389 returns 24MHz whereas it should returns 266MHz as it is set in the device tree and configured in the SoC:
BIOS> md.l 0x30388880 1
30388880: 11000000
With some debug traces we can see that the enet_axi's parent is wrong:
fecmxc_probe 1388clk_get_rate 447: clk clock-controller at 30380000 clk_get_rate 447: clk enet1_root_clkclk_get_rate 447: clk enet_axiclk_get_parent_rate 489: clk enet_axi parent clock-osc-24m clk_get_parent_rate 489: clk enet1_root_clk parent enet_axi fecmxc_probe 1390
Is this a known issue ?
Regards,
Signature · 2 lines
S?bastien Szymanski, Armadeus Systems Software engineer
Hi S?bastien,
Quoted 24 lines · S?bastien Szymanski
Hi,
I am working on a i.MX8MM based board and I got issue to make the Ethernet phy work.
I noticed that the MDIO clock is not configured properly and the FEC outputs a 26,6MHz MDIO clock.
That's because theclk_get_rate()call at line 1389 returns 24MHz whereas it should returns 266MHz as it is set in the device tree and configured in the SoC:BIOS> md.l
0x303888801
30388880: 11000000With some debug traces we can see that the enet_axi's parent is wrong:
fecmxc_probe1388clk_get_rate447: clk clock-controller at 30380000clk_get_rate447: clkenet1_root_clkclk_get_rate447: clkenet_axiclk_get_parent_rate489: clkenet_axiparent clock-osc-24mclk_get_parent_rate489: clkenet1_root_clkparentenet_axifecmxc_probe1390
Quoted 1 line
Is this a known issue ?
It seems someone needs to work on a drivers/clk/imx/clk-imx8mq.c driver.
Regards,
Fabio Estevam
Quoted 17 lines
Subject: imx8m: composite clock wrong clock parent ?
Hi,
I am working on a i.MX8MM based board and I got issue to make the Ethernet phy work.
I noticed that the MDIO clock is not configured properly and the FEC outputs a 26,6MHz MDIO clock.
That's because theclk_get_rate()call at line 1389 returns 24MHz whereas it should returns 266MHz as it is set in the device tree and configured in the SoC:BIOS> md.l
0x303888801
30388880: 11000000With some debug traces we can see that the enet_axi's parent is wrong:
Quoted 7 lines
fecmxc_probe1388clk_get_rate447: clk clock-controller at 30380000clk_get_rate447: clkenet1_root_clkclk_get_rate447: clkenet_axiclk_get_parent_rate489: clkenet_axiparent clock-osc-24mclk_get_parent_rate489: clkenet1_root_clkparentenet_axifecmxc_probe1390Is this a known issue ?
There is an issue in current clk framework in U-Boot, it could not runtime set the parent of a clk, and I have not find time to work on this. I not check whether your issue is related the upper issue in CCF.
Regards,
Peng.
Quoted 6 lines
Regards,
--
S?bastien Szymanski, Armadeus Systems
Software engineer