MIPI CSI-2 and DSI Camera and Display Interfaces

MIPI CSI-2 connects camera sensors to processors and MIPI DSI connects processors to display panels. Both usually run on the MIPI D-PHY: a differential clock lane and one to four data lanes that switch between a fast, low-swing high-speed (HS) mode for pixels and a slow, 1.2 V low-power (LP) mode for control. A logic analyser cannot follow HS video, but it can capture and decode the LP-mode traffic, which is where DSI panel initialisation commands, lane state sequences and many bring-up faults live.

1 to 4 data lanesPlus one clock lane on D-PHY
HS modeAbout 200 mV differential swing, for pixel data
LP mode1.2 V single-ended, for control and escape mode
Short and long packets4-byte header with ECC; payload checksum
Virtual channelsSeveral streams share one link
DCSStandard command set for DSI panels

How a CSI-2 or DSI Link Is Built

Each D-PHY lane is a differential pair. In HS mode the transmitter drives a small differential signal into a terminated receiver at hundreds of Mbit/s to several Gbit/s per lane. In LP mode the two wires of the pair are driven separately as 1.2 V CMOS signals. LP-11 is the stop state, and short sequences of LP-11, LP-10, LP-01 and LP-00 request HS mode (LP-11, LP-01, LP-00), enter escape mode (LP-11, LP-10, LP-00, LP-01, LP-00) or turn the bus around. CSI-2 cameras are configured over a separate two-wire camera control interface (CCI) that is compatible with I2C. DSI displays take their configuration over the DSI link itself, usually in LP mode, where commands go on data lane 0 only; commands sent in HS mode are spread across all the data lanes like pixel data.

D-PHY link: a clock lane and up to four data lanes, with the camera control bus alongsideA CSI-2 camera sends image data to the application processor over a D-PHY link of one differential clock lane and one to four differential data lanes. A separate two-wire camera control interface, compatible with I2C, runs from the processor to the camera. A DSI link is the same shape in the other direction: the processor drives a display, and commands sent in LP mode travel on data lane 0.Camera sensorCSI-2 transmitterApplication processorCSI-2 receiverClock lane (differential)Data lane 0Data lane 1Data lanes 2 and 3 (optional)CCI: I2C-compatible camera control (SCL, SDA)Logic analyserProbe the lanes single-ended to see the 1.2 V LP states
A CSI-2 link from camera to processor. DSI has the same lane structure, from processor to display. The CCI control bus is a separate I2C-compatible pair.

CSI-2 from version 1.3, and DSI-2, the successor to DSI, also run on the MIPI C-PHY, which uses three-wire trios instead of differential pairs. C-PHY has LP modes too, but the decoders listed below are described by their makers for D-PHY low-power traffic, so check with us before buying for a C-PHY design.

Packets, Data Types and Commands

CSI-2 and DSI short and long packet formatsA short packet is four bytes: a data identifier holding the virtual channel and data type, two bytes of data, and an error-correcting code byte. A long packet has the same four-byte header, with a 16-bit word count in place of the data, then the payload and a 16-bit checksum.Short packetData IDVC + typeData16 bitsECC8 bitsLong packetData IDVC + typeWord count16 bitsECC8 bitsPayloadword count bytesChecksum16-bit CRC
CSI-2 and DSI share the packet layout. The data identifier byte carries the virtual channel and a 6-bit data type.
  1. Short packets carry events and small commands: in CSI-2, frame start (data type 0x00), frame end (0x01), line start and line end; in DSI, DCS short writes (0x05 with no parameter, 0x15 with one) and reads (0x06).
  2. Long packets carry a line of pixels in CSI-2, identified by data types such as RAW8 (0x2A), RAW10 (0x2B) or YUV422 8-bit (0x1E), and multi-byte commands in DSI, such as a DCS long write (0x39).
  3. ECC and checksum: the header ECC corrects single-bit errors and detects double-bit errors; the 16-bit checksum protects the payload.
  4. Virtual channels let one link carry several streams, for example image data and embedded statistics from one sensor, or two sensors through an aggregator.

DSI Commands You Will See During Panel Bring-Up

DCS CommandCodeWhat It Does
exit_sleep_mode0x11Wakes the panel driver; most datasheets require a delay before the next command
set_display_on0x29Turns the display output on after initialisation
set_display_off0x28Blanks the display
enter_sleep_mode0x10Puts the panel driver into sleep
write_memory_start0x2CStarts a frame-memory write in command mode panels
Set maximum return packet size0x37 (data type)Sent before a read so the panel knows how many bytes it may return

Panel vendors add many manufacturer-specific commands for gamma, power and timing, sent as generic or DCS long writes. A decoded capture of the LP traffic is the quickest way to compare your initialisation sequence with the one in the panel datasheet.

Where CSI-2 and DSI Are Used

  • Phones, tablets and wearables: almost every camera module and display panel.
  • Automotive: surround view, driver monitoring and dashboard displays, often with a serialiser carrying CSI-2 over a longer cable.
  • Embedded vision: single-board computers and machine-vision modules with CSI-2 camera connectors.
  • Medical and industrial displays: small DSI panels on handheld instruments and control panels.

Common CSI-2 and DSI Faults and How to Find Them

SymptomLikely CauseWhat to Check
DSI panel stays blankInitialisation sequence wrong, out of order, or missing a delay after exit_sleep_modeDecode the LP commands and compare codes, parameters and gaps with the panel datasheet
Panel reads return nothingNo bus turnaround, or maximum return packet size not setLook for the BTA sequence and the 0x37 packet before the read
Camera never streamsSensor not configured over CCI, or wrong addressDecode the CCI bus with an I2C decoder: address, register writes, acknowledges
Lanes stuck in LP-11Transmitter never requests HS mode; clock lane not startedCapture LP states on the clock lane and data lane 0 after the stream-on command
Image corrupted or ECC errorsLane order or polarity swapped, or skew between lanesCheck the schematic lane mapping; HS signal quality needs an oscilloscope with suitable bandwidth

Tools for Decoding MIPI CSI-2 and DSI

Watch tools record the lanes single-ended and decode the low-power traffic: LP state changes, escape mode and packets sent in LP data transmission. They do not capture HS-mode pixel data, which needs a dedicated D-PHY protocol analyser. Probe close to the receiver with short leads, and set the logic threshold for 1.2 V LP signalling.

ProductRoleCapabilityPrice ex VAT
Acute TravelLogic 34-ChannelWatchLogic analyser running Acute's decoder library, which includes MIPI DSI LP; the MIPI CSI LP decoder is supplied on request from Acute£1,260
ZeroPlus LAP-C Pro SeriesWatchLogic analyser with MIPI CSI-2 and MIPI DSI decoders for LP mode in ZeroPlus's decoder library; ask us to confirm which decoders come with your LAP-C Pro model£925

The CCI camera control bus is I2C, so any of the tools in our I2C guide will decode it. Not sure what you need for an HS-mode problem? Tell us the sensor or panel and the lane rate.

Frequently Asked Questions

Can a Logic Analyser Decode MIPI CSI-2 Video?

Not the video itself. Pixel data travels in HS mode at hundreds of Mbit/s or more per lane with a swing of about 200 mV, which a logic analyser cannot follow. It can decode the 1.2 V low-power traffic: lane states, escape mode and LP packets. For CSI-2, decode the CCI control bus with an I2C decoder as well.

What Is the Difference Between CSI-2 and DSI?

They share the packet structure and usually the D-PHY, but CSI-2 carries image data from a camera to a processor and DSI carries image data and commands from a processor to a display. DSI sends panel commands over the display link itself, often in LP mode on data lane 0; CSI-2 uses a separate I2C-compatible bus for camera control.

What Are LP-11 and LP-00?

They are the low-power line states of a D-PHY lane, naming the level of each wire of the pair. LP-11, both high, is the stop state between transmissions. Sequences of LP-11, LP-01 and LP-00 request HS mode; other sequences enter escape mode or turn the bus around.

Why Does My DSI Panel Work on One Board and Not Another?

Most often the initialisation sequence or its timing differs: a missing delay after exit_sleep_mode, a command sent in HS mode that the panel expects in LP mode, or a different lane count. Capture both boards and compare the decoded LP commands.

Do These Decoders Work on C-PHY?

The makers describe their decoders for D-PHY LP mode. Check with us before relying on them for a C-PHY link.

More Protocols

By John Legg CEng, Director, Debug Store. Updated 24 November 2026.