The i.MX 8MP NAVQ+ kit comes with support for connecting the Emcraft OV5647 camera. The OV5647 camera connects to the kit via the MIPI-CSI2 interface, and provides an easy way to bring visual input into the i.MX 8M Plus. The camera is based on the Omnivision OV5647 chip. It provides auto focus, focal length 2.8mm, range 60cm-infinity and an 62 degrees field-of-view. Link to the i.MX 8M Plus is via the dual-lane MIPI-CSI2 interface.
The OV5647 camera does not implement an ISP processing block on board, so video stream from the camera is transmitter in raw bayer format directly to the i.MX 8MP, where the stream is processed by the dedicated i.MX 8MP ISP block. The i.MX 8MP ISP processing pipeline includes de-mosaicing from the bayer format and 3A processing (Auto Exposure, Auto Focus, Auto White Balance).
Connecting Emcraft OV5647 Camera
To connect the Emcraft OV5647 camera to the kit, plug the camera cable into the CSI1 on the back side of the carrier board. The following picture illustrates connection of the camera to the kit:
For correct functioning of the Emcraft OV5647 camera with NAVQ+ kit BSP release 1.1.8-xxx or higher is required. To enable support for the camera in software follow the below steps that enable correct DTB configuration for Linux kernel:
Connect NAVQ+ kit to a host via a USB-to-serial adapter, then open a serial terminal program on the host, and set “115200, 8N, 1” serial properties for the NAVQ+ port.
Reset the NAVQ+ and stop at the U-Boot prompt by pressing the “Enter” key early at boot.
After the last command is invoked the board will reset, and OV5647 camera will be ready for use on the CSI1 port.
Finding Camera Device Nodes
Depending on additional hardware connected to the NAVQ+, the Emcraft OV5647 camera may not be the only V4L2 device present in the system. In order to access the camera the user needs to determine the correct video device file node.
The below command outputs video device node registered for single OV5647 camera connected to the NAVQ+: