52. Display subsystem

52.1 Introduction

The display subsystem is targeted to drive up to 1536p60 display panels, through three different interfaces: parallel interface, LVDS, and DSI. It supports fairly advanced on-the-fly compositions to offload the GPU and optimize the use of the system bandwidth: up to three layers, rescale, mirror, rotation90, and a final YUV conversion.

The display subsystem reads pixels via the LTDC, and outputs them with the following capabilities:

Some over-target non-guaranteed use cases are possible, but with specific constraints:

The display subsystem can also display a secure layer with data that cannot be read by non-secure application, and with the display guaranteed stable.

52.2 Display subsystem main features

The display subsystem is built around LTDC, DSI, and LVDS:

52.3 Display subsystem implementation

The implementation is described in Section 55: DSI Host (DSI), Section 53: LCD-TFT display controller (LTDC), and Section 54: LVDS display interface transmitter (LVDS).

52.4 Display subsystem functional description

52.4.1 Display subsystem block diagram

The figure below shows the involved functional blocks in the display subsystem:

Figure 468. Display subsystem block diagram

Block diagram of the Display subsystem showing internal components and external interfaces.

The diagram illustrates the Display subsystem architecture. It is divided into an internal 'Display subsystem' block and external components.
External Interfaces:

Internal Display Subsystem Components:

Block diagram of the Display subsystem showing internal components and external interfaces.

MSv67445V3

Blocks in the above figure are shown with their instance/design names:

52.4.2 Display subsystem pins and external signal interface

The details of the pins and external signal interface of the display subsystem can be found in the respective functional block sections in this reference manual.

52.4.3 Display subsystem clocks

Figure 469. Display subsystem clock diagram

Figure 469. Display subsystem clock diagram, showing clock distribution and multiplexing for LTDC, DSI wrap/Host/PHY, and LVDS wrap/Host/PHY.
Figure 469. Display subsystem clock diagram, showing clock distribution and multiplexing for LTDC, DSI wrap/Host/PHY, and LVDS wrap/Host/PHY.

The display subsystem is implemented with the following clock max frequencies:

52.4.4 Display subsystem security

This section is an application of RIF security architecture (see Section 6.2: Resource isolation framework (RIF)). The security of the display subsystem is based on the protection of its register map and its master access to the system interconnect, based on default RISUP and RIMU respectively.

The RISUP differentiates the access right of accesses performed toward the following RIF protected peripheral ID (see Table 38: Indexes for non-RIF-aware peripherals (RISUP)):

The RIMU (RIMU_AXI_LTDC) differentiates the bus transactions emitted by the following AXI masters:

Security configuration of devices with never-secure display content

The security setup of devices that are never required to display any secure content is detailed below (the display subsystem works by default in a non-protected mode):

Note: Layer 3 is not fully featured, and lacks the resize and multi-planar capabilities of layers 1/2.

Security configuration of devices with a temporary secure content

For devices that temporarily display a secure content, it is expected that the secure content is displayed during short periods.

The working principle of the display subsystem is to segregate configuration spaces:

The configuration of the display subsystem for a secure content is the following:

The above recommended settings for the device with temporary secure layer are shown in the figure below.

Figure 470. Display RIF peripheral ID

Block diagram of the Display RIF peripheral ID showing clock domains, internal FIFO/PFC/blending/timing blocks, and interface signals to LCD-TFT panel.

The diagram illustrates the internal architecture of the Display RIF peripheral ID, showing clock domains and signal flow. The primary clock domains are the AHB clock domain, APB1 clock domain, and Pixel clock domain. Within the AHB clock domain, the AHB interface connects to Layer1 FIFO and Layer2 FIFO, which in turn connect to individual PFC blocks. The PFC blocks feed into the Blending unit, which connects to the Dithering unit. The APB1 clock domain houses the Configuration and status registers, which output an Interrupts signal and connect to the Timing generator. The Timing generator connects to the Blending unit. The module drives output signals to an external LCD-TFT panel: LCD_HSYNC, LCD_VSYNC, LCD_DE, LCD_CLK, LCD_R[7:0], LCD_G[7:0], and LCD_B[7:0]. Diagram reference: MSv68308V1.

Block diagram of the Display RIF peripheral ID showing clock domains, internal FIFO/PFC/blending/timing blocks, and interface signals to LCD-TFT panel.

The table below lists vertically all the functional blocks of the display subsystem. It also lists horizontally the associated RIF peripheral ID.

Note: Table color legend for recommended settings:

Table 496. Display subsystem RIF peripheral ID

All in display subsystemRISUP-slave
801191201218112212384
BlocksAddress range(LTDC) address x1Start address x4End address x4LTDC commonLTDC_L1L2LTDC_L3LTDC_ROTDSI commonDSI_TRIGDSI_RDLDITX
LTDCCommon CFG00x00x00x30Y-------
Interrupt-A0xD0x340x3C-Y------
Common CFG10x100x400x60Y-------
Interrupt-B0x190x640x70--Y-----
(empty)0x1D0x740x74Y-------
CRC0x1E0x780x7C--Y-----
Rotation Addr0x200x800x84---Y----
Rotation Color0x220x880x88Y-------
Common CFG20x230x8C0xFCY-------
L1-CFG0 (typ: video)0x400x1000x100-Y------
L1-CTRL0x410x1040x104-Y------
L1-CFG10x420x1080x1FC-Y------
L2-CFG0 (typ: UI)0x800x2000x200-Y------
L2-CTRL0x810x2040x204-Y------
L2-CFG10x820x2080x2FC-Y------
L3-CFG0 (typ: secu)0xC00x3000x300--Y-----
L3-CTRL0xC10x3040x304--Y-----
L3-CFG10xC20x3080x3FC--Y-----

Table 496. Display subsystem RIF peripheral ID (continued)

All in display subsystemRISUP-slave
801191201218112212384
BlocksAddress range(LTDC) address x1Start address x4End address x4LTDC commonLTDC_L1L2LTDC_L3LTDC_ROTDSI commonDSI_TRIGDSI_RDLDITX
DSI-HOST+ WRAPConfig HOST-0x000x6C----Y---
ReadPanel (and Write)-0x700x70------Y-
Config-0x740xB8----Y---
Interrupt-0xBC0xDC----Y---
Config-0xE00x3FC----Y---
Config WRAP-0x4000x400----Y---
Trigger-B for SmartPanel-0x4040x404----Y---
Interrupt-0x4080x414----Y---
PHY config-0x4180x42C----Y---
PLL config-0x4300x4FC----Y---
Trigger-A-0x4800xFFC-----Y--
DSI DPHY-Tx (no register)-----------
OpenLDILDITX Host-0x0000xFFC-------Y
OLDI PHY-Tx (no register)-----------

52.5 Display subsystem programmable parameters

Steps to configure the various main use cases supported by the display subsystem are detailed below. They provide the global picture and settings of the display subsystem (not repeating information available in the local sections).

The default use cases supported by the display subsystem are one of the following:

Other non-default use cases can be supported, with specific constraints:

These use cases are reviewed one by one in the next sections.

52.5.1 Parallel-interface display

This is the default use case to drive a display panel or bridge through the parallel interface. It allows panels to be driven up to 1080p60 (150 Mpixel/s), with either RGB888 or YUV422.

The RCC provides a pixel clock that drives both the LTDC and its synchronous parallel interface. Aside, the LTDC needs an AXI-Master clock to fetch pixels, and an APB-Slave clock to get configured.

The steps to follow are detailed below:

  1. 1. Setup security settings, with or without a secure layer depending on application needs, as described in Figure 468.
  2. 2. Clock and reset:

See Section 21: Reset and clock control (RCC) for more details.

  1. 3. LTDC configuration:
    • – Setup the LTDC (such as input layers, display information, parallel interface, AXI settings) as described in the LTDC section.
  2. 4. Signal polarity:

    The polarities of the signals are impacted by the fact that the LTDC parallel interface signals are relocked in the IO-ReTime logic, downstream of the LTDC. It results the following when configuring the polarities to match the panel on the parallel interface:

    • – The clock polarity (rising-vs-falling edge) must be configured in the IO-ReTime only (see Section 24: General-purpose I/Os (GPIO)), and not in the LTDC output logic. The clock polarity logic in the LTDC must remain in its default post-reset state.
    • – The polarity of the Vs, Hs, and De synchronization signals, unlike for the clock polarity, can be configured directly in the LTDC output stage (see Section 53: LCD-TFT display controller (LTDC)).
  3. 5. I/O configuration:

    Allocate an alternate GPIO bank to the display subsystem, with usually 28 pins needed: 24 pins for RGB888 and 4 others for the ancillary: HSync, VSync, DataEnable, and clock.

52.5.2 LVDS display

This is the default use case to drive a display panel through the LVDS interface, with either the FPD-1 or OpenLDI protocol.

It allows panels to be driven up to 1536p60 (~200 Mpixel/s) with a dual link or 1080p60 (150 Mpixel/s) with a single link. The output is either RGB888 (four data lanes and one clock lane) or RGB666 (using three data lanes and one clock lane).

The clocks global shaping is as follows:

The steps to setup that path are the following:

  1. 1. Setup the security settings, with or without a secure layer depending on the product needs, as described in Figure 468.
  2. 2. Clock and reset:
    • – i_lvdsphy_pll_clkin = 0x1 to select the ck_hse_osc as reference for the LVDS PLL. Instead, with i_lvdsphy_pll_clkin = 0x0, the ck_ker_lvdsphy clock can be selected from the RCC, but that increases the jitter, thus less recommended.
    • – DISPLAYCLKCR(1:0) = 0x1 to select the LVDS pixel clock (generated by the LVDS PLL then divided by seven) as input for the pixel_clk of the LTDC.
    • – i_lditx_pixclk_sel = 0x1, to select the LVDS pixel clock (generated by the LVDS PLL then divided by seven) as input for the clk_pix of the LVDS Host.
      In low-power, when the LVDS PLL is off, and when a clock is needed for some configuration, i_lditx_pixclk_sel can be set to 0x0 to select the PLL reference clock.
    • – i_lvds_dp_clk_sel = 1/1 when in Dual link mode. i_lvds_dp_clk_sel = 1/2 when in Single link mode.
      The LVDS PLL (typically at 784 Mbit/s for FPD-1) indeed provides a double-rate pixel clock (at 1/3.5 bit rate, thus 224 MHz):
      • - in Dual link mode, the LTDC and LVDS Host must provide pixels at 224 Mpixel/s (which are then split by the LVDS Host, at 112 Mpixel/s toward each link), thus using a 1/1 division.
      • - in Single link mode, the LTDC and LVDS Host must provide pixels at 112 Mpixel/s (which are forwarded by the LVDS Host at the same rate to the link), thus using a 1/2 division from 224 to 112.
    • – ck_icn_p_ltdc is provided by RCC to allow the configuration of the LTDC (default 200 MHz).
    • – ck_icn_m_ltdc is provided by RCC to allow the LTDC AXI to work (default 400 MHz).

See Section 21: Reset and clock control (RCC) for more details.

  1. 3. LVDS configuration: The LVDS Host and PLL can be configured through their register set, described in Section 54: LVDS display interface transmitter (LVDS). Two important configurations are:
    • – the link mode to reflect that LVDS is used in Single versus Dual link mode
    • – the JEIDA versus VESA bit placement of the RGB888 onto the LVDS data lanes
  2. 4. LTDC configuration:

52.5.3 DSI display

This is the default use case to drive a display panel through the MIPI DSI interface, with either the Video mode (default here) or Command mode (additional configuration needed).

It allows panels to be driven like up to very-high resolutions thanks to its theoretical 10Gbit/s interface output rate (4DL@2.5 Gbit/s/lane). In practice, the LTDC is limited to a max pixel rate of 312.5 Mpixel/s, which allows resolutions of 1080p60, 1536p60 (219 Mpixel/s, 4DL@1316 Mbps/lane). The display subsystem is balanced for display resolutions up to 1536p60, although some feature limitations can be used to rise to higher resolutions.

The clocks global shaping is as follows:

The LTDC pixel clock frequency is constrained/related to the DSI word clock, so that the LTDC equivalent bit rate (LTDC pixel clock rate x 24 bpp) is lower than the DSI output bit rate (N data lanes x DSI bit rate).

Although the horizontal blanking period can be used to smooth the LTDC bit rate, it is recommended to have the DSI bit rate be always larger than the peak LTDC bit rate.

As example, for a 1080p60 display:

The steps to setup that path are the following:

  1. 1. Setup the security settings, with or without a secure layer depending on application needs, as described in Figure 468.
  2. 2. Clock and reset:
    • – RCC_DSICFGR(15) = DSIPHYCKREFEL = 0x1 to select the ck_hse_osc as reference for the DSI PLL. Instead, with RCC_DSICFGR(15) = DSIPHYCKREFEL = 0x0, the ck_ker_dsiphy clock can be selected from the RCC, but that increase the jitter, thus less recommended.
    • – DISPLAYCLKCR(1:0) = 0x2, to select the RCC ck_ker_dsiblne as input for the pixel_clk of the LTDC. With DISPLAYCLKCR(1:0) = 0x0, the DSI word clock must be selected.
    • – i_dsiblne_clk_sel= 0x0, to select the DSI word clock for the DSI Host. In low-power mode, when the DSI PLL is off, i_dsiblne_clk_sel= 0x1 allows the ck_ker_dsiblne to continue to drive the DSI Host internal logic.
    • – ck_icn_p_dsi is provided by the RCC to allow the configuration of the DSI Host (default is 200 MHz).
    • – ck_icn_p_ltdc is provided by the RCC to allow the configuration of the LTDC (default is 200 MHz).
    • – ck_icn_m_ltdc is provided by the RCC to allow the LTDC AXI to work (default is 400 MHz).
  3. See Section 21: Reset and clock control (RCC) for more details.
  4. 3. DSI Host configuration (see Section 55: DSI Host (DSI)).
  5. 4. DSI Wrapper configuration:
    • – The DSI wrapper among others differentiates between Video mode (default) and Command mode (specific).
  6. 5. LTDC configuration:

52.5.4 Three panel interfaces in parallel

The display subsystem allows pixels to be sent in parallel across its three different interfaces: parallel, LVDS, and DSI. A major constraint is that all three displays must show exactly the same pixel content (and resolution) and synchronization characteristics (thus blanking).

This is achieved simply by having the following:

Ideally, a standard normalized display resolution must be used, like 1080p60:

The precise configuration is done following details provided in Section 52.5.1, Section 52.5.2, and Section 52.5.3.

52.5.5 Two LVDS panels in parallel

The display subsystem allows the pixels to be sent in parallel across its two parallel interface LVDS links. The content is the same, and the maximum resolution is the one of each link (1080p60).

Note: This use case is not exclusive with the above Section 52.5.4, which allows four parallel panels to be driven in parallel (parallel, DSI, two LVDS).

The two LVDS in parallel are achieved by configuring the LVDS by default, with the only except being to have both links enabled (to output the pixels), but configuring the link mode setting in single link mode. It results in the following:

Following items are in addition to the configuration detailed in Section 52.5.2:

52.6 Display subsystem interrupts

The interrupts are described in sections of peripherals in this reference manual.

52.7 Display subsystem registers

All registers are described in: