AnsweredAssumed Answered

clko2 output problem on IMX8MQuad EVK board

Question asked by coin du on Oct 31, 2018
Latest reply on Nov 1, 2018 by coin du

Hi   All:

        how to use CLKO2 to ouput 24MHZ clock?

        in clk-imx8mq.c file can find CLKO2 parents input 

 

         static const char *imx8mq_clko2_sels[] = {"osc_25m", "sys2_pll_200m", "sys1_pll_400m", "sys2_pll_166m", "audio_pll1_out","video_pll1_out", "ckil", };

       

      when I use sys_pll_200m as clko2`s parent and set clock-rate to  24000000, the result mclk_clock will be 25M

 

pinctrl-0 = <&pinctrl_csi1>;
clocks = <&clk IMX8MQ_CLK_CLKO2_DIV>;
clock-names = "csi_mclk";
assigned-clocks = <&clk IMX8MQ_CLK_CLKO2_SRC>,
<&clk IMX8MQ_CLK_CLKO2_DIV>;
assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_200M>;
assigned-clock-rates = <0>, <24000000>;
csi_id = <0>;

 

      use sys_pill_166m as clko2`s parent ,  the result csi_mclk will be 23.8M

 

      

      please tell me show to ouput 24M precise with clko2

 

thanks

Outcomes