![Freescale Semiconductor i.MX 6DualLite Reference Manual Download Page 145](http://html1.mh-extra.com/html/freescale-semiconductor/i-mx-6duallite/i-mx-6duallite_reference-manual_2330523145.webp)
1. MIPI CSI2 driver initializes the mipi_csi2_info structure, some key information
about mipi sensor, such as connected IPU ID, CSI ID, virtual channel and date type.
2. The driver initilizes the D-PHY clock and pixel clock. The pixel clock is used for
MIPI D-PHY to transfer data to IPU CSI.
3. The driver waits for sensor connection.
17.2.2 MIPI CSI2 Common API Operation
MIPI CSI2 driver exports a large number of APIs to manage MIPI D-PHY.
The following is the introduction to all APIs:
• mipi_csi2_get_info: get the mipi_csi_info
• mipi_csi2_enable: enable mipi csi2 interface
• mipi_csi2_disable: disable mipi csi2 interface
• mipi_csi2_get_status: get mipi csi2 interface disable/enable status
• mipi_csi2_get_bind_ipu: get the ipu id which mipi csi2 will connect
• mipi_csi2_get_bind_csi: get the csi id which mipi csi2 will connect
• mipi_csi2_get_virtual_channel: get the virtual channel number by which mipi sensor
will tansfer data to MIPI D-PHY
• mipi_csi2_set_lanes: set the lanes number by which mipi sensor will tansfer data to
MIPI D-PHY
• mipi_csi2_set datatype: set the mipi sensor data type
• mipi_csi2_get_datatype: get the mipi sensor data type; This function will be called
by csi module to set csi register
• mipi_csi2_dphy_status: get the MIPI D-PHY status
• mipi_csi2_get_error1: get the mipi error1 register information
• mipi_csi2_get_error2: get the mipi error2 register informaiton
• mipi_csi2_pixelclk_enable: enable the pixel clock
• mipi_csi2_pixelclk_disable: disable the pixel clock
• mipi_csi2_reset: reset the MIPI D-PHY for data receiving and transferring
17.3 Driver Features
• Supporting 1-4 lanes
• Supporting IPU(0,1) and CSI(0,1)
• Supporting 0-3 virtual channels
• Supporting the following date types:
• RGB formats: RGB888, RGB666, RGB565, RGB555, RGB444
Chapter 17 MIPI CSI2 Driver
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
Freescale Semiconductor, Inc.
145