In addition, i.MX7D doesn't support ISP, it requires camera should have ISP module, there is no ISP function in OV5647 chip, it can only output RAW data, so even if it's data can be normally tranmitted to MIPI CSI of processor, you can't also see camera image on screen.
Capture driver can capature RAW data from OV5647, but does't do any handling(such as converting data format), so image can't be displayed on screen.
You can try to use OV5640, or other modules with ISP function.
ISP function is supported by OV5640 module, and many i.mx EVK boards(such as I.MX6 series) support OV5640, OV5642, so for i.MX7d, OV5640(MIPI Interface) is no problem, at same time, OV5640 MIPI driver is also supported in our linux BSP.
In 4.1.15 BSP release, there is OV5647_mipi driver for iMX7: drivers/media/platform/mxc/subdev/ov5647_mini.c .
This below three files is required for camera bring up.
mxc_mipicsi.c --> mipi related csi (Receiver driver)
ov5640_mipi.c --> camera sensor (Transmitter)
mx6s_caputre.c --> ()
The i.MX 6Dual/6Quad processors incorporate the following hardware accelerators:
• VPU—Video Processing Unit
• IPUv3H—Image Processing Unit version 3H (2 IPUs)
• GPU3Dv4—3D Graphics Processing Unit (OpenGL ES 2.0) version 4
• GPU2Dv2—2D Graphics Processing Unit (BitBlt)
• GPUVG—OpenVG 1.1 Graphics Processing Unit
• ASRC—Asynchronous Sample Rate Converter
According to the official datasheet, the IPU(Image Process Unit) of the iMX.6 supports not the RAW RGB.
The RAW RGB data can only be transmitted into the RAM of the system, through the CPUs to read the RAW RGB format data and converts to others formats. But it will be consumed too much sources of the CPU.
According to the official datasheet from the OV company, OV5640 can output different formats. Because it has a standalone ISP(Image Signal Processor), which can be used to convert formats and resize or other operations.
According to the official datasheet from the OV company, OV5647 can output only RAW RGB format.
https://community.nxp.com/thread/395858
https://community.nxp.com/thread/302769 IPU - bayer pattern conversion
http://bdtic.com/en/ti/omap4430 - OMAP4430 with (Image Signal Processor)ISP.
https://community.nxp.com/thread/302769#309833
https://community.nxp.com/message/309833#309833
http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6DQIEC.pdf
https://cdn.sparkfun.com/datasheets/Dev/RaspberryPi/ov5647_full.pdf
https://cdn.sparkfun.com/datasheets/Sensors/LightImaging/OV5640_datasheet.pdf
https://community.nxp.com/thread/310786
http://forum.solid-run.com/linux-kernel-and-bootloaders-on-cubox-i-and-hummin-f10/ov5647-driver--t1740.html (FFmpeg capturing OK)
https://github.com/n-aizu/linux-linaro-stable-mx6/tree/linux-linaro-lsk-v3.14-mx6-picam (Source Code)