Hi igorpadykov,
i have already read the document on MIPI debug and the thread (some experinece when enable mipi camera ). I am in the state C "check the clock settings" of this last document.
My camera have several test mode with different clock lane frequency. with two first clock (208 and 312MHz) i get the correct image. It is a fixed image with color bar.
for 416 and 499 MHz the camera doesn't work. I suspect a frequency problem.
For testing i modify clock in file clk-imx6q.c.
About clock managment :
I would get clock in my driver with clk_get(struct device *dev, const char *id); but by example for the hsp_clk (i think is ipu1 clock) i don't understand to wich device the clock is attached for get it ? I thank that is a system clock and i try clk_get(NULL, "ipu1") but it doesn't work.
About image :
i have a camera mode that use a 499MHz lanes frequency so (mipi_clk_lane / (8bit *2))*4 lanes = 249. The mipi pixel clck is connect to emi_sel clock (396MHz)
So i have ccm_pixel_clk (396) > 249. I change the CSCDR3[IPU1_HSP_PODF] divider to set divide by one. And the ipu clock is 528Mhz (> ccm_pixel_clk)
But the result is ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
What is the good way to debug my process or set the correct frequency to ipu and mipi_pixel_clk ?