CSI capture of iMX7

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CSI capture of iMX7

跳至解决方案
1,203 次查看
tekuno27
Contributor I

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.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
905 次查看
igorpadykov
NXP Employee
NXP Employee

Hi ko-za

additionally packing can be performed in pxp, as described in

sect.13.7.9.3.3 Data Packing i.MX7D Reference Manual, tests are in

/pxp_v4l2_test:

pxp_v4l2_test\test - imx-test - i.MX Driver Test Application Software 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
906 次查看
igorpadykov
NXP Employee
NXP Employee

Hi ko-za

additionally packing can be performed in pxp, as described in

sect.13.7.9.3.3 Data Packing i.MX7D Reference Manual, tests are in

/pxp_v4l2_test:

pxp_v4l2_test\test - imx-test - i.MX Driver Test Application Software 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复