AnsweredAssumed Answered

CSI capture of iMX7

Question asked by ko-za taga on Jun 13, 2018
Latest reply on Jun 13, 2018 by igorpadykov

Hi,

I have a question about i.MX7 MIPI - CSI.

In the reference manual (i.MX 7 Dual Applications Processor Reference Manual Rev 1)
13.3 CMOS Sensor Interface (CSI)
"· Full control of 8-bit / pixel, 10-bit / pixel or 16-bit / pixel data format to 64-bit receive FIFO packing."
Although it is described, since RGB888 is 24-bit / pixel, does not it correspond?

 


The functions I use are as follows
  V4L2
   ↓
  CSI
   ↓
  MIPI-CSI 2

 


When I looked at the CSI driver of IMX 7, there was no implementation of RGB 888.
/drivers/media/platform/mxc/subdev/mx6s_capture.c

 static struct mx6s_fmt formats[] = {
  {
    .name = "UYVY-16",
    .fourcc = V4L2_PIX_FMT_UYVY,
    .pixelformat = V4L2_PIX_FMT_UYVY,
    .mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
    .bpp = 2,
  }, {
    .name = "YUYV-16",
    .fourcc = V4L2_PIX_FMT_YUYV,
    .pixelformat = V4L2_PIX_FMT_YUYV,
    .mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
    .bpp = 2,
  }, {
    .name = "YUV32 (X-Y-U-V)",
    .fourcc = V4L2_PIX_FMT_YUV32,
    .pixelformat = V4L2_PIX_FMT_YUV32,
    .mbus_code = MEDIA_BUS_FMT_AYUV8_1X32,
    .bpp = 4,
  }, {
    .name = "RAWRGB8 (SBGGR8)",
    .fourcc = V4L2_PIX_FMT_SBGGR8,
    .pixelformat = V4L2_PIX_FMT_SBGGR8,
    .mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
    .bpp = 1,
  }
 };


I tried to implement whether RGB888 can be used for testing.
It seemed that the data that can be acquired was aligned to 32 bits. (0 is packed in RGB888)
I hope 0 can capture unpacked data, but I want to know if that is possible.

Thank you.

Outcomes