MIPI CSI-2 color data format is wrong

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIPI CSI-2 color data format is wrong

Jump to solution
838 Views
dimitarmaznekov
Contributor II

We are working trying to receive RGB888 video on MIPI CSI-2 interface from custom sensor.
We are using VAR-DT6CustomBoard with DART-MX6 SOM.
We are running linux imx_4.14.78_1.0.0_ga_var01 with modified ov5640_mipi driver to receive video from our custom sensor.
Currently we are capable of receiving video over MIPI interface, but it seems like the color data format is wrong.
We've set MIPI_DT_RGB888 format in the ov5640 driver. We added debug prints in ipu_csi_enc.c and the format in csi_enc_setup() function is set to IPU_PIX_FMT_UYVY

It's our custom sensor. It's implemented using FPGA transmitting MIPI CSI-2 at 160Mb/s (80Mhz physical clk) in RGB888 format. We can confirm the signal integrity with oscilloscope.

We are trying to receive the MIPI signal with RGB888 format using modified ov5640 mipi driver, but it seems like its not supporting this format (its default is V4L2_PIX_FMT_UYVY).
Do you have MIPI driver that supports capturing RGB888 (V4L2_PIX_FMT_RGB24) we can use or help us modify the existing one?

0 Kudos
1 Solution
2 Replies
805 Views
dimitarmaznekov
Contributor II

It was missconfiguration in Xillinx IP Core MIPI CSI2 TX especialy continoius clock.

0 Kudos
823 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos