Hi All,
I would like to know how to set the frequencies of both PLLs in the same SAI node. I have found some patches that allow for run-time parent clock switching depending on whether the audio rate is 8K or 11K based. Using these patches it is possible to render all known audio rates natively which is exactly what we're after.
This snippet of code below shows what we'd like to be able to use:
clocks = <&clk IMX8MM_CLK_SAI1_IPG>, <&clk IMX8MM_CLK_DUMMY>,
<&clk IMX8MM_CLK_SAI1_ROOT>, <&clk IMX8MM_CLK_DUMMY>,
<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_AUDIO_PLL1_OUT>,
<&clk IMX8MM_AUDIO_PLL2_OUT>;
clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k", "pll11k";
Focusing on the two PLL clocks 'pll8k' and pll11k' these will need to be set to their appropriate frequencies, however at the moment they default to the audio_pll1 and audio_pll2 frequencies of 393216000 and 361267200 respectively.
Since this configuration is a little non-standard we cannot use assigned-clock-parents and assigned-clock-rates properties to set the PLL frequencies (have tried but they don't work). Is there a simple way to set both frequencies within this particular SAI node? We've tried a number of things within the node declaration and also outside the node such as in imx8mm.dtst clk: clock-controller node etc. Nothing seems to work so far..
Thanks.