Hi,
I would like to change the clock source on which the S/PDIF transmitter operates, so it can be clocked by an external clock synthesizer. The reason for this is that I would like to synchronize the S/PDIF outputs of multiple individual devices.
Currently I see 2 options for this:
1. Set the clock source for audio PLL1&2 to the pad clock input on for example CLKIN1 or CLKIN2 and provide a 24MHz clock there from my synthesizer that I can slightly tune.
2. Use the EXT_CLK_2 or EXT_CLK_3 input to clock the S/PDIF block directly with a correct audio frequency like 24.576 or 22.579Mhz from the synthesizer.
Regarding option 1:
In the u-boot sources, clk_imx8mm.c, "decode_fracpll" I see that any clk source other than the 24Mhz SYS_XTAL is refused:
/* Only support SYS_XTAL 24M, PAD_CLK not take into consideration */
if ((pll_gnrl_ctl & GENMASK(1, 0)) != 0)
return 0;
Is this because the hardware PAD inputs on the SOC are non-functional, or because the driver in it's current state has not (yet) been written to support these pins?
Regarding option 2:
It looks like I will have to severley re-write fsl_spdif.c to make this work.
Would you know of alternative routes I could take to make this work?
Thanks in advance!