Chapter 16
OmniVision Camera Driver
16.1 OV5640 Using MIPI CSI-2 interface
This is an introduction to the OV5640 camera driver that uses the MIPI CSI-2 interface.
16.1.1 Hardware Operation
The OV5640 is a small camera sensor and lens module with low-power consumption.
The camera driver is located under the Linux V4L2 architecture and it implements the
V4L2 capture interfaces. Applications cannot use the camera driver directly. Instead, the
applications use the V4L2 capture driver to open and close the camera for preview and
image capture, controlling the camera, getting images from camera, and starting the
camera preview.
The OV5640 uses the serial camera control bus (SCCB) interface to control the sensor
operation. It works as an I
2
C client. V4L2 driver uses I
2
C bus to control camera
operation.
OV5640 supports two transfer modes: parallel interface and MIPI interface.
When using MIPI mode, OV5640 connects to i.MX AP chip through the MIPI CSI-2
interface. MIPI receives the sensor data and transfers them to IPU CSI.
Refer to OV5640 datasheet to get more information on the sensor.
Refer to the i.MX 6 Multimedia Applications Processor Reference Manual for more
information on MIPI CSI-2 and IPU CSI.
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
Freescale Semiconductor, Inc.
139