CDTech LCD touch screen

display / touch / bonding solutions

Driving a TFT Panel from a Raspberry Pi: DSI, HDMI and Parallel Compared on Real Constraints

Author: CDTech Publish Time:  Origin:

The Raspberry Pi offers three ways to reach a display, and they are not interchangeable. A DSI ribbon carries a serial lane pair, HDMI carries a negotiated video stream, and the 40-pin header can carry raw parallel RGB if enough pins can be spared. The choice is usually made on convenience and then discovered to be wrong at 1280 by 800 with a 30 cm flex.

This guide compares the three routes on what the platform actually provides: the lane count at the DSI connector, the point where HDMI negotiation stops, the GPIO and clock budget for parallel RGB, and the cable length each interface tolerates. The panel follows from those numbers, not from the connector that happens to be free.

What the DSI connector provides beyond its two data lanes

The 15-pin DSI connector on most boards carries a clock pair and two data lanes, plus 3.3 V and ground. That is enough for panel logic and not for the backlight, which needs its own supply and current limit. The lanes are bidirectional in low-power mode, which is easy to overlook: the pair that streams pixels can also carry display command set traffic or read a panel register.

Two consequences follow. A panel that expects command-mode initialisation can be brought up over DSI without a separate control bus, which simplifies the flex. And the PHY rate, not the wire count, sets the resolution ceiling, because it is a property of the board rather than the connector. The specification at the MIPI Alliance defines the lane behaviour; the board datasheet defines what the PHY achieves.

Where HDMI negotiation stops and panel timing begins

HDMI is a negotiated link. The source reads an EDID from the sink, chooses a mode the sink advertises, and sends it. A bare TFT panel has no EDID, so the negotiation happens between the Pi and whatever bridge sits in front of it, and the panel's timing sits outside that conversation.

That boundary is where most HDMI projects stall. The bridge has to be programmed, or jumpered, with the panel's pixel clock, porch values, sync polarity and colour mapping. The Pi can be told to emit a custom mode through its configuration file, the usual workaround for a panel with unusual geometry such as a bar display, but the bridge still has to accept that mode unchanged. Timing standards published by VESA show what a display expects.

10.1 inch 1280x800 TFT LCD with LVDS interface
A 10.1 inch 1280x800 TFT LCD with an LVDS interface, the panel type that needs a bridge before a Raspberry Pi can drive it.

How much GPIO clock and pin budget does parallel RGB need?

Twenty-two pins and a pixel clock you can generate.

An 18-bit bus takes 18 data lines plus pixel clock, two syncs and an enable, and the clock must carry the blanking interval, not only the visible pixels.

The pin count is arithmetic: three colours times six bits, plus pixel clock, horizontal sync, vertical sync and data enable. A 24-bit bus costs 28 pins, which exceeds the header, so 18-bit is the practical ceiling for a Pi. The clock is the harder constraint: pixel clock equals total pixels including porches multiplied by refresh, so a 1280 by 800 panel at 60 Hz lands near 70 MHz.

The guide to interfaces and controllers covers the peripherals that generate those timings; the practical limit is a few tens of megahertz, which suits 800 by 480 and strains 1280 by 800.

Can a 40-pin header spare 22 pins for an 18-bit RGB bus?

Yes, but only just, and little else fits.

The header exposes 28 usable GPIO, so an 18-bit bus leaves six pins for touch, backlight control and interrupts, and a single I2C bus uses two of them.

Mapping the bus is the first constraint, because the parallel peripheral can only drive certain pins and the mapping has to route on a two-layer board. The second is the rest of the product: an I2C bus for a capacitive touch controller takes two pins, a backlight PWM one, an interrupt one, and a fan another. That leaves nothing for SPI flash.

Where the budget is tight, 16-bit RGB costs 20 pins and leaves eight, at the price of banding in smooth gradients. A serial route avoids the problem, which is why DSI exists. The display selection guide sets out how the choice interacts with the rest of the BOM.

Comparing DSI, HDMI and parallel on reachable resolution

The three routes reach different resolutions, and the difference comes from bandwidth and pin count rather than from the connector. A two-lane DSI link and an 18-bit parallel bus both drive 800 by 480; they diverge above that, and again when cable length is added.

The table compares what each route reaches on a Raspberry Pi, and the parts it drags in.

RoutePins or lanesPractical resolutionColour depthExtra parts
DSI, two lanesClock plus 2 lanes800x480 to 1280x800 at 60 Hz24-bitDSI receiver in panel
DSI, four lanesClock plus 4 lanes1920x1200 class24-bitFour-lane capable board
HDMIOne connectorAny mode the bridge supports24-bitHDMI to LVDS bridge
Parallel RGB, 18-bit22 GPIO800x480 comfortable18-bitLevel shift and EMI care

The table hides one variable: blanking. A panel with generous porches needs a higher pixel clock for the same visible resolution, so two 1280 by 800 panels can sit on opposite sides of a link's limit, as the measurement literature presented through the Society for Information Display shows.

What fails first when a 1280x800 panel runs on two DSI lanes?

Bandwidth, before anything else.

At 60 Hz the visible area alone is about 61 megapixels per second, and with blanking and 24-bit colour the two lanes have almost no headroom.

The arithmetic is unforgiving. A 1280 by 800 panel at 60 Hz carries 61.4 million pixels per second before blanking, and blanking adds ten to twenty percent. At 24 bits per pixel that is 1.7 to 1.9 Gbit/s, which two lanes must carry as 850 to 950 Mbit/s each. A PHY rated at 1 Gbit/s per lane leaves almost no margin.

The usual remedies are to drop to 18-bit colour, reduce the refresh rate, or move to a board with four lanes. Each has a cost: 18-bit shows banding, 50 Hz is visible in motion, and four lanes need a different board and flex. The emission limits that apply at the link's limit are defined in IEC publications.

Adding a bridge when the panel speaks LVDS and the board does not

LVDS is the interface most 10 inch and larger industrial panels still use, and no Raspberry Pi exposes it directly. The route is a bridge: HDMI to LVDS, or DSI to LVDS where the HDMI port is wanted for something else. Either way the bridge becomes a component with its own datasheet, configuration and failure modes. The backlight driver is usually a third part again, because the panel's LED string rarely matches the supply the bridge provides.

Bridge selection turns on configurability. A fixed-function part selected by jumpers is cheap but only supports the timings its table contains. A programmable part with an I2C interface can be matched to an unusual panel, at the cost of firmware to maintain. Power sequencing belongs to the bridge too, and an HDMI hot-plug event can reset it.

Which route tolerates a 30 cm FPC without a repeater?

DSI and LVDS, not parallel RGB.

Parallel RGB is single-ended CMOS at tens of megahertz, so a 30 cm flex radiates, rings and skews, while differential lanes keep the same signal integrity over that distance.

Parallel RGB was designed for a ribbon a few centimetres long inside a monitor. At 30 cm the clock and data no longer arrive together, the edges ring, and the radiated emission climbs. Series termination, ground guard traces and a slower pixel clock can extend the reach, but each eats into the timing margin.

DSI is differential and tolerates the same flex without a repeater, provided the pairs are matched on a controlled impedance. LVDS goes further still, which is why it survived as the industrial standard for larger panels. HDMI is differential as well but adds a negotiation step, so a long cable carries both video and the EDID conversation. Flex assembly rules are covered by IPC standards.

Datasheet numbers each route needs before a sample order

A sample order placed against a pretty picture is an expensive way to learn about blanking intervals. The numbers that decide whether a panel can be driven belong on one page per route, collected before the first board is spun.

  • DSI: lane count, maximum lane rate, video or command mode, and the initialisation sequence.
  • HDMI: the bridge's supported pixel clock range, its EDID content and its configuration method.
  • Parallel: maximum pixel clock, porch values, bus width, logic level and data enable polarity.
  • All routes: backlight voltage, current and dimming method, plus the connector pinout.
  • FPC: maximum length, pair matching and the connector's mating height.
  • Power: the panel's inrush and the 3.3 V budget the board can spare.

Two items are commonly missing. The maximum pixel clock is often quoted with no blanking assumption, which makes it incomparable between vendors, and the initialisation sequence arrives only as a binary blob.

Matching the route to instrument panels and to kiosk panels

Instrument panels and kiosk panels pull the decision in opposite directions. An instrument panel is small, close to the board and cost-sensitive: 800 by 480 or 1024 by 600, an 18-bit parallel bus or a two-lane DSI link, and a touch controller on I2C. The pin budget is tight, the bandwidth is not.

A kiosk panel is larger and further away: 10 inch and up, 1280 by 800 or better, 24-bit colour, and a cable run that makes parallel RGB impractical. That points to four-lane DSI or HDMI with a bridge. The custom LCD display range shows the interface and size combinations; fix the enclosure and cable length first, then choose the route that survives them.

10.1 inch IPS TFT LCD display with 350nits
A 10.1 inch IPS TFT LCD display with 350 nits and an LVDS interface, a typical kiosk-class panel driven through a bridge.

If the interface is still an open question, CDTech can review a panel datasheet and a board block diagram together and say which route the timing and pin budget will actually support. Write to [email protected] or use the contact page.

FAQ

How many DSI lanes does a Raspberry Pi have?

Most boards expose a single DSI connector with a clock pair and two data lanes, which is enough for 800 by 480 and marginal for 1280 by 800 at 60 Hz. The Compute Module and newer boards route four-lane MIPI transceivers to their connectors, and each transceiver can be used for DSI or CSI. The lane count on the connector is the number to check before choosing a panel, because it sets the bandwidth ceiling more firmly than any other board feature.

Does HDMI support a 1920x720 panel?

Yes, if the bridge and the timing are handled deliberately. The Pi can be configured to emit a custom mode with the panel's exact pixel clock and porches, and the bridge has to accept that mode and pass it through. The difficulty is that a 1920 by 720 panel has no standard EDID, so the link may need a forced mode or a bridge with programmable timings. Confirm the bridge's maximum pixel clock before ordering the panel.

Can GPIO drive a parallel RGB panel?

Yes, through the board's parallel display peripheral rather than bit-banging. An 18-bit bus needs 22 pins including clock and syncs, which the 40-pin header can supply, leaving six GPIO for touch, backlight and interrupts. The practical limit is the pixel clock the peripheral can generate with acceptable jitter, which suits 800 by 480 and becomes difficult at 1280 by 800. A 24-bit bus needs 28 pins and leaves nothing else.

What is the maximum practical resolution over DSI?

With two lanes, 1280 by 800 at 60 Hz is the practical ceiling and it leaves little margin, because the payload approaches 1.8 Gbit/s with blanking and 24-bit colour. Dropping to 18-bit colour or 50 Hz buys headroom. With four lanes the ceiling moves into the 1920 by 1200 class. The limit is set by the board's PHY rate rather than the connector, so the board datasheet is the document that decides it.

×

Contact Us

(Accept word, pdf, dxf, dwg, jpg, ai, psd file, Max 10M)
captcha

By continuing to use the site you agree to our privacy policy Terms and Conditions.

I agree