Dear Community,
I am trying to configure the MCLK clock (which is input of a MIPI-CSI2 camera sensor) to achieve 37.125MHz. What I am doing is re-parenting the it as below :
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
clock-names = "mclk";
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_200M>;
assigned-clock-rates = <37125000>;
clock-frequency = <37125000>;
mipi_csi;
csi_id = <0>;
mclk = <37125000>;
mclk_source = <0>;
However, I only receive ~39.99MHz instead of ~37MHz :
Could someone tell me how to obtain the nearest value of to the expected frequency ?
Thanks in advance and best regards,
Khang
Hi @khang_letruong,
I am exploring the issue, and below are the details required for further analysis to debug this issue,
Thank you.
Best Regards,
Dhruvit.
Meanwhile, for the expected 74.25Mhz, I only receive 66.66MHz as below :
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
clock-names = "mclk";
assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_200M>;
assigned-clock-rates = <74250000>;
clock-frequency = <74250000>;
mipi_csi;
csi_id = <0>;
mclk = <74250000>;
mclk_source = <0>;
Regards,
Khang