How to set up the MIPI CSI-2 and ISI to transfer RAW10 images on the i.MX8QM

I have succeeded to stream images through MIPI CSI-2 from a 16Mpx image sensor based on the following article:

Also, I have created the device driver for this image sensor and changed other device drivers into /drivers/media/platform/imx8/ folder.

The ISI has been set to bypass the image format conversion (CSC), when the image sensor is configured as V4L2_PIX_FMT_SGRBG10 (mxc_isi_channel_set_csc function, in the mxc-isi-hw.c file)

The iMX8 is receiving bytes, the buffer size is correct, like for 640x480x10bits = 384000bytes, and it is possible to display the frames from the image sensor but some bytes are missing, like show in the example below:

00 14 00 34 00 14 00 34 00 3C 00 58 00 68 00 68 00 4C 00 44 00 38 00 38 00 60 00 54 00 34 00 54 00 34 00 24 00 6C 00 24 00 70 00 34 00 68 00 28 00 4C 00 48 00 4C 00 18 00 44 00 3C 00 44 00 54

It looks like the MIPI CSI-2 or Pixel Link is not transmitting the RAW10, just 8 bits.
How can I set up the MIPI CSI-2 and/or the Pixel Link for RAW10 bits?

I vaguely remember that there might be some errata/limitation when attempting raw transfers over MIPI CSI-2 on i.MX 8/8X. I would suggest you asking NXP about this.

This issue was solved at:
https://community.nxp.com/t5/i-MX-Processors/How-to-set-up-the-MIPI-CSI-2-and-ISI-to-transfer-RAW10-images-on/m-p/1134413/thread-id/161009#M161528

Perfect, thanks for letting us know.