Hello,
On the iMX8M Nano I want to enable a 24MHz output clock on pin GPIO1_IO15.
When tested in U-Boot, this works as expected. Only the definition of MX8MN_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2 is needed in the device tree, and the 24MHz clock is generated on the pin.
However, if I then boot Linux, this clock output is disabled during kernel startup. I don't understand why, because also in the Linux device tree, I define MX8MN_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2.
Also when I read the register IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO15 from Linux, it says that it is configured for MUX_MODE of CCM_CLKO2, which is what I expect.
But as said, the clock is not on the output anymore.
Is there something I am forgetting (e.g. another device tree setting) which would disable the clock output on the pin, even though in Linux the IOMUXC_SW_MUX_CTL_PAD says it's configured correctly, and it was running in the U-Boot stage?