AnsweredAssumed Answered

imx8mq 4 lane mipi csi configuration

Question asked by Dennis Muhlestein on Dec 23, 2019
Latest reply on Feb 3, 2020 by Dennis Muhlestein

There are a couple of threads where 4 lane configuration CSI is not working.

 * Camera porting guide for MIPI-CSI2 on i.MX8M? -> Maybe it's a clock rate problem?, No porting guide available.

 * iMX8M MIPI-CSI 4-lane configuration -> Never got it to work, switched to single lane.

 

Does anyone have this working with a 4-lane camera?  If so, what additional changes were required?

 

I've configured my mipi_csi endpoint/device for 4 lanes correctly (at least I think from the log)

3.102329] mxc-mipi-csi2_yav 30a70000.mipi_csi1: mipi_csi2_probe
[ 3.108554] CSI: Registered sensor subdevice: mxc-mipi-csi2.0
[ 3.114394] mxc-mipi-csi2_yav 30a70000.mipi_csi: Remote device at /mipi_csi1@30a70000/port/endpoint1 XXX found
[ 3.124432] mxc-mipi-csi2_yav 30a70000.mipi_csi1: lanes: 4, name: mxc-mipi-csi2.0
[ 3.154081] mxc-mipi-csi2_yav 30a70000.mipi_csi: Registered sensor subdevice: mycamera 0-0060

 

The data format is the same as the example Ov5640 camera.  (YUYV 422 format).

I'm having the same result as other threads where v4l2 fails to dequeue buffers after I start the stream.  I've verified 4 lane mipi data is being driven from the device.  We are using a camera ISP to process raw camera data before receiving it at the imx side.  We've used this same ISP and sensor on our imx6 solution and have no problems receiving the data on that platform.  I don't however know if there are changes in the i.mx8m receiver that would require us to change anything about the data.

 

Any ideas for debugging or suggestions appreciated.

Outcomes