I am using imx8mm with an mipi camera imx334. The sensor run at 891Mbps，4 lanes， 3824x2176，30fps，10bits raw data.My bsp is 4.14.98.
Take the image from the sensor as shown in the figure below，it looks like several images are stitched together.
My understanding is that the image path is sensor->mipi phy->csi bridge-> memory.I'm sure the sensor is OK because I've verified it on other motherboards platforms.And I can also be sure that Mipi phy is OK because there are no errors reported in the interrupt mipi_csis_irq_handler in file mxc_mipi_csi.c.What puzzles me is CSI bridge，in mx6s_capture.c the mx6s_csi_irq_handler processes the image data from Mipi PHY.when processing images,it was supposed to have 30 interrupts per second, but actually it was less than 10.
Can anyone know why about this?
can you pls share your dtsi,mipi_csi and mx6s_capture.c driver codes?
Hi ! @chinaman ,
We are using iMX8M processor and seeing similar issue like what you have posted. Our configuration on the sensor is 4lane, 720Mbps. Same issue with 720p30, 1080p30, 4Kp30.
Have you got this issue resolved ?
Appreciate your suggestion on solving the issue @chinaman @joanxie
for capture raw 10bits data, did you change any source code? maybe you can refer to the link as below:
I've tried code like this before,it doesn't work.
any improvement if you set lane to 2? what change have you tried so far?? did you change the clock?
Imx334 only supports 4 lanes or 8 lanes.There will be CRC or SOT errors reported in mipi_csis_irq_handler in mxc_mipi_csi.c if I set the mipi lanes to 2.How can I change clock.
Looking forward to your reply.
if you use 4 lanes, try to change the clock in the dts file:
assigned-clock-rates = <266000000>, <333000000>, <66000000>
That makes no difference.And the code seems to be imx8m not for imx8mm.
yes, this setting is for imx8m, for imx8mm, still set clk_ui to 333Mhz for your case, and did you set this to dual pixel mode or quad pixel mode?