Interface primer

MIPI CSI-2 Primer

CSI-2 is the standard way a sensor streams data into a processor: a one-way, source-synchronous serial link with a small packet protocol on top. It was built for phone cameras. It now carries automotive cameras, ToF sensors and the raw ADC output of radar chips such as the AWR2243.

OwnerMIPI Alliance, Camera Working Group
DirectionSensor → host only; control on a separate I²C-style bus
PHYD-PHY (clock + 1–4 lanes) or C-PHY (1–3 trios)
Lane rateD-PHY 80 Mb/s to 2.5 Gb/s (v1.2), 4.5 Gb/s (v2.x)
ReachA board or short flex, roughly 30 cm or less
Integrity6-bit ECC on every header, CRC-16 on every payload

What it is

CSI-2 stands for Camera Serial Interface, second generation. It replaces the old parallel camera bus (8 to 16 data pins, a pixel clock, HSYNC and VSYNC) with a few low-swing differential lanes. The sync signals turn into packets: a Frame Start packet replaces the VSYNC edge, and a line of pixels travels as one long packet with a header and a checksum.

The specification is split in two. The CSI-2 protocol defines packets, data types, virtual channels and how bytes are spread across lanes. The PHY is a separate MIPI specification: D-PHY for most designs, C-PHY for high-bandwidth phone cameras. CSI-2 runs on either one. A third piece, CCI (Camera Control Interface), is an I²C-compatible bus the host uses to program the sensor's registers.

Transmitter (image sensor, radar)Receiver (SoC, FPGA)Applicationframes, lines, samplesApplicationframes, lines, samplespixels or samplesPixel ↔ byte packingRAW10 → 5 bytes / 4 pxPixel ↔ byte packingRAW10 → 5 bytes / 4 pxbyte streamLow-level protocolpacket header, ECC, CRCLow-level protocolpacket header, ECC, CRCpacketsLane managementbyte striping across lanesLane managementbyte striping across lanesbytes per lanePHY (D-PHY or C-PHY)LP / HS electrical statesPHY (D-PHY or C-PHY)LP / HS electrical stateswire symbolsclock lane (D-PHY only)1–4 data lanes (or 1–3 trios)CCI: I²C-compatible register access, receiver is the master
Each layer on the transmitter has a peer on the receiver. Only the PHY crosses the wire; everything above it is logic. Image data moves one way. Control (CCI) goes the other way on a separate, slow bus.

Why engineers use it

What it is not

The pages

ProtocolPackets, header, ECC and CRC, data types, virtual channels, lane striping, CCI. D-PHY signalingLP and HS voltage levels, the start-of-transmission sequence, timing, termination, clock modes. D-PHY vs C-PHY3-phase trios, embedded clock, 16-bit-to-7-symbol coding, and when each PHY fits. AWR2243How the radar maps chirps to lines, the payload, the bandwidth math, and the two-chip cascade. Zynq-7020Receiving CSI-2 without a hard D-PHY: resistor network, ISERDES clocking, packet parsing, DMA into DDR.

The one-minute answer

If asked "what is CSI-2?"

It's MIPI's sensor-to-processor streaming interface. Physically it's usually D-PHY: a forwarded DDR clock plus up to four data lanes, each about 200 mV differential at up to a couple of Gb/s, dropping to 1.2 V single-ended low-power states between bursts. On top of that it's a light packet protocol: a 4-byte header with virtual channel, data type, word count and ECC, then the payload, then a CRC-16. Frames and lines are marked with short packets. On our radar board the AWR2243 used it to stream raw ADC samples, one chirp per line, at 4 × 600 Mb/s into the Zynq, where a soft receiver built on ISERDES deserialized it and DMA'd it into DDR.