[PATCH v4 2/2] ARM: imx6plus: enable internal routing of clk_enet_ref where possible

Sven Van Asbroeck thesven73 at gmail.com
Mon Jun 29 10:37:25 EDT 2020

Hi Fabio,

On Mon, Jun 29, 2020 at 10:26 AM Fabio Estevam <festevam at gmail.com> wrote:
> Just tested 5.4.24_2.1.0 on an imx6qp sabresd and DHCP also fails there.

I think I discovered the problem !

When I compare the sabresd devicetree on mainline with the actual sabresd
schematics, the devicetree is incorrect ! Things still work, but only
by accident.

The sabresd has an AR8131 PHY, which generates the enet ref clock, not the
imx6. So on the schematic we see that the clock output of the PHY is wired
to imx6 ENET_REF_CLK, so it can be used as a clock source. And GPIO_16
is disconnected, as it should, because the imx6 is not generating the ref clk.

But the devicetree is written as if the imx6 is providing the clock ! See


Also there is no override of the fec PTP clock:

Although Shawn's mainline patch mandates this?

This will work, but only by accident. So on a plus, when we
(incorrectly) switch the
bypass bit on, things stop working.

More information about the linux-arm-kernel mailing list