Hello, I am creating a camera driver for IMX296 for the i.MX 8 MQ. I am struggling with generating the appropriate clock signal for the image sensor, which is either 37.125, 74.25 or 54 MHz.
I base my devicetree on the ov5640, and the devicetree for the imx296 looks like this:
I try an ask for 54MHz, but the output become 50MHz which indicates that the clock divider used here is rounded to nearest integer, 4.
Is it possible to increase the accuracy of the PLL here, so that I can get these above mentioned frequencies?
I have tried to change assigned-clock-parents to <&clk IMX8MQ_SYS1_PLL_266M> which should be able to get close enough to 54MHz, dividing by 5, but this results in an error: "clk: failed to reparent clko1_div to sys1_pll_266m: -22".
What can I do to achieve the above mentioned frequencies?