45. Display subsystem
45.1 Introduction
The display subsystem is targeted to drive up to 1080p60 display panels, through a parallel interface. It supports some on-the-fly compositions and optimizes the use of the system bandwidth: up to three layers, color conversion, blend, mirror, and a final YUV conversion.
The display subsystem can display a secure layer with data that cannot be read by non-secure application, and with the display guaranteed stable.
45.2 Display subsystem main features
The display subsystem is built around LTDC:
- • LTDC: handles display composition
- – Composition: three layers
- – Input pixel format: flexible format, including YUV420 full-planar on layer L1
- – Secure layer: protected access to buffer and configuration registers.
- – Mirror: horizontal and vertical
- – Miscellaneous: color lookup-table, color keying, Gamma
- – 1080p60 max performance
- • LTDC parallel interface (integrated inside the LTDC):
- – Standard: 24 bpp + Hs, Vs, De (DataEnable) synchronization signals with ReTime
- – Output rate: 150 Mpixel/s
- – Resolution: 1920x1080 at 60 fps max, with HDMI blankings
- – Pixel formats: RGB888, 666, 565, YUV422-16 bits/BT601/709
45.3 Display subsystem implementation
The implementation is described in Section 46: LCD-TFT display controller (LTDC).
45.4 Display subsystem functional description
45.4.1 Display subsystem block diagram
Figure 388 shows the functional blocks in the display subsystem, with their instance/design names:
- • LTDC: composition engine, includes a parallel interface
- • Parallel GPIO: Parallel I/O-ring of the device with up to 24 bpp + H/V synchronization
- • RIMU/RISAD: RIF security logic, configured for the specific display needs
Figure 388. Display subsystem block diagram

The diagram illustrates the data flow within the Display subsystem. On the left, an AXI bus (fetch from memory) connects to the RIMU (LTDC) block, which acts as an AXI master (64 bits). An AHB bus (register config) connects to the RISAD (LTDC) block, which acts as an AXI slave (32 bits). Both RIMU and RISAD feed into the LTDC block. The LTDC outputs a Pix_24b// signal to a Parallel GPIO (24 bits) block, which is configured for 150 MHz - ReTime. The Parallel GPIO then outputs a Pix24b signal to a HighRes parallel panel (1080p60), which expects a Pix_24b// input. The reference ID MSv70429V1 is located in the bottom right corner.
45.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.
45.4.3 Display subsystem clocks
Figure 389. Display subsystem clock diagram

The diagram shows the clocking architecture of the Display subsystem. External clock inputs ck_ker_ltdc, ck_icn_p_ltdc, and ck_icn_m_ltdc are provided to the LTDC block. The LTDC block contains internal signals pixel_clk, pclk, and aclk, and outputs an LCD_CLK signal. The RIMU (LTDC) and RISUP (LTDC) blocks also receive pclk signals. RAMS and RAM clocks are shown as internal components. The reference ID MSv70428V1 is located in the bottom right corner.
The display subsystem is implemented with the following clock max frequencies:
- • LTDC pixel clock (pixel_clk): 150 MHz
- • LTDC parallel interface (lcd_clk): 150 MHz (I/O ReTime mandatory)
- • Register clocks (ck_icn_p_*): 150 MHz (all APB/AHB register files)
- • AXI-Master clock (ck_icn_m_ltdc): 400 MHz
45.4.4 Display subsystem security
This section is an application of RIF security architecture (see Section 5.4: 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)):
- • LTDC common: LTDC common registers, about panel info, synchronization, interface
- • LTDC_L1L2 (layer 1 and 2): for the window of any two default applications
- • LTDC_L3: LTDC layer 3, for the window of a potentially secure application, or any default application if there is no secure layer
The RIMU (RIMU_AXI_LTDC) differentiates the bus transactions emitted by the following AXI masters:
- • RIMU_L1L2: read access only for layer 1 and 2, always non-protected
- • RIMU_L3: read access only for layer 3, potentially protected
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):
- • The display subsystem configuration space is set as non-protected.
The default operating system (OS) software has a full access and can configure/handle all peripherals of the display subsystem. - • The layer 3 (which has a hardware secure capability) can be reused as a default layer, like layer 1 and 2, and can display the content of any application.
Note: Layer 3 is not fully featured, and lacks the resize and multi-planar capabilities of layers 1/2.
- • The LTDC AXI-master emits by default non-protected accesses. It inherits NP and NS modes from its associated RIF peripheral ID.
The AXI CID = DISP can be associated to the three AXI clients, via the RIMU, to tag that the AXI transaction contains pixels.
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 secure layer 3 is always protected.
- • Never-secure layers 1 and 2 are always non-protected.
- • The intermediate common features (such as panel data, synchronization) are usually non-protected and handled by the OS (when no secure content is displayed), but temporarily protected (with no OS access) during the short period when a secure content is displayed via layer 3. Removing the access of the non-protected OS guarantees that a malware does not impact the stability of the displayed protected content.
- • A few minor items get specifically protected or open, as detailed below.
The configuration of the display subsystem for a secure content is the following:
- • Layer 3 is set permanently protected:
- – RIF LTDC_L3 RISUP peripheral ID must be set as protected (S and/or P flags).
- – RIF LTDC_L3 RIMU AXI-Master emits protected transactions (tagged as S a/o P), which allow it to retrieve the protected layer 3 pixels from their protected memory
buffer. The RIMU must be updated by a trusted domain application using RIFSC_RIMC_ATTR12.
The recommendation is to use a secure, privileged (optional), and CID = 0x4 setup that is configured in RIFSC_RISC_PER120_CIDCFGR (and optionally RIFSC_RISC_PER120_SEMCR). With this secure setup, the application must make sure that CID4 has access to the secure pixels area.
- – Only a secure software is able to configure the layer 3 parameters (such as width, height, buffer address), so that the characteristics of the layer 3 are guaranteed.
- – The interrupt bank B is associated automatically with the layer 3, and gets permanently protected and devoted to the secure software handling layer 3. The secure software must thus handle and be driven by that interrupt bank B.
- – The LTDC features that must allow data-evasion get also protected (automatically, as associated with the layer 3 rights), with an access allowed only to the secure software. These features are the CRC (which allows the displayed frames to be signed mainly for test purposes), the blend-order (which is used to hide the protected content below some malware layer faking the protected content).
- • Layers 1 and 2 are set permanently as non-protected:
- – RIF LTDC_L1L2 RISUP peripheral ID is set as not protected.
- – RIF LTDC_L1L2 RIMU AXI-master keeps its initial setup in RIFSC_RIMC_ATTR11, and emits only non-protected transactions which is enough to retrieve pixels from any application buffer.
- – The default OS drivers handle the layer 1 and 2 parameters (such as width, height, buffer address).
- – The interrupt bank A is associated automatically with layer 1 and 2, and keeps an non-protected open access. The OS must then handle and be driven by that Interrupt bank A to globally drive the display.
- • Common registers must be set at boot as non-protected, temporarily:
- – The non-layer peripheral index RIF LTDC common is concerned.
- – This allows the default OS to boot the display subsystem, and to handle it.
- • Common registers must be set as protected when displaying a protected content:
- – RIF LTDC common must be set protected before starting to display a protected content, and be unprotected after the protected content has finished to be updated. The LTDC common configuration space keeps a permanent read-access for non-secure or unprivileged software.
- – The protection restricts the write accesses only: it removes the access of the non-protected OS, and so guarantees that a malware does not impact the stability of the displayed protected content. The LTDC common configuration space keeps a permanent read-access for non-secure or unprivileged software (PRDENy bits in RISAB_CIDxRDCFG can be used).
- – The protection does not restrict the read accesses: the OS is usually unaware of the status of the protected layer 3 that is handled by a different, secure, software. The read access capability for the OS allow the display drivers to remain somehow stable, although the write access of the display drivers is not performed.
The above recommended settings for the device with temporary secure layer are shown in the figure below.
Figure 390. Display RIF peripheral ID

The diagram consists of two main sections illustrating RIFSC (RISC Interface for Security Control) interactions with RIMU/RIMUx and LTDC (LCD-TFT Display Controller).
Top Diagram: Illustrates RIFSC containing registers RIMC_ATTR0 (*) (DISPL01), RIMC_ATTR1 (*) (DISPL2), and RIMC_ATTR2 (*) (ROT). These generate output control signals pcid_cfg[0..2], sec[0..2], and priv[0..2] routed to multiplexers within RIMUx. RIMUx outputs bus control signals bus_cid, bus_nsec, and bus_priv to LTDC (3 h/w functions). Includes a Logic 5to3 block, connected to an AHB bus and AHB or AXI interconnect.
Bottom Diagram: Details the register structure within RIFSC, showing RISC_PRIVCFGR(outputting priv[y]), RISC_SECCFGR(outputting sec[y]), RISC_CIDCFGR*(outputting cid_cfg[y] and cf_cfg[y]), and RIMC_ATTRx*(outputting cidsel[x], pcid_cfg[x], secsel[x], sec[x], privsel[x], priv[x]). Inside RIMU 0,1,2, multiplexers select between dynamic or static configuration inputs (such as e.g. 0x0 _hw_cid, "1", and "0"). Control lines link to slave port RISUP(on AHB bus) and LTDC Master port, generating bus_nsec_i, bus_priv_i, bus_clk, and bus_AxID connected to the AHB/AXI interconnect.
MSv74104V1
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:
- - green for a permanently non-protected setting
- - blue for a temporarily protected versus non-protected
- - purple for a permanently protected state
Table 425. Display subsystem RIF peripheral ID
| All in display subsystem | RISUP-slave | ||||||
|---|---|---|---|---|---|---|---|
| 80 | 119 | 120 | |||||
| Blocks | Address range | (LTDC) address x1 | Start address x4 | End address x4 | LTDC common | LTDC_L1L2 | LTDC_L3 |
| LTDC | Common CFG0 | 0x0 | 0x0 | 0x30 | Y | - | - |
| Interrupt-A | 0xD | 0x34 | 0x3C | - | Y | - | |
| Common CFG1 | 0x10 | 0x40 | 0x60 | Y | - | - | |
| Interrupt-B | 0x19 | 0x64 | 0x70 | - | - | Y | |
| (empty) | 0x1D | 0x74 | 0x74 | Y | - | - | |
| CRC | 0x1E | 0x78 | 0x7C | - | - | Y | |
| (empty) | 0x20 | 0x80 | 0x88 | Y | - | - | |
| Common CFG2 | 0x23 | 0x8C | 0xFC | Y | - | - | |
| L1-CFG0 (typ: video) | 0x40 | 0x100 | 0x100 | - | Y | - | |
| L1-CTRL | 0x41 | 0x104 | 0x104 | - | Y | - | |
| L1-CFG1 | 0x42 | 0x108 | 0x1FC | - | Y | - | |
| L2-CFG0 (typ: UI) | 0x80 | 0x200 | 0x200 | - | Y | - | |
| L2-CTRL | 0x81 | 0x204 | 0x204 | - | Y | - | |
| L2-CFG1 | 0x82 | 0x208 | 0x2FC | - | Y | - | |
| L3-CFG0 (typ: secu) | 0xC0 | 0x300 | 0x300 | - | - | Y | |
| L3-CTRL | 0xC1 | 0x304 | 0x304 | - | - | Y | |
| L3-CFG1 | 0xC2 | 0x308 | 0x3FC | - | - | Y | |
45.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).
45.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. Setup security settings, with or without a secure layer depending on application needs, as described in Figure 388.
- 2. Clock and reset:
- – ck_ker_ltdc clock, provided by the RCC, as output pixel clock.
One PLL of the RCC needs to be allocated to the display subsystem to provide the clock that is exactly at the wanted pixel rate for the output display. For instance, a standard 1080p60 requires a 148,50 MHz clock. - – DISPLAYCLKCR(1:0) setting = 0x2, to select the above ck_ker_ltdc as input for the pixel_clk of the LTDC.
- – o_clk_display_parallel, is driven automatically by the LTDC (after some gating) from its above provided pixel_clock (from the RCC ck_ker_ltdc).
- – ck_icn_p_ltdc is provided by the RCC to allow the LTDC configuration (default 150 MHz).
- – ck_icn_m_ltdc is provided by the RCC to allow the LTDC AXI to work (default 400 MHz).
- – ck_ker_ltdc clock, provided by the RCC, as output pixel clock.
See Section 20: Reset and clock control (RCC) for more details.
- 3. LTDC configuration:
- – Setup the LTDC (such as input layers, display information, parallel interface, AXI settings) as described in the LTDC section.
- 4. Signal polarity:
The polarities of the signals are impacted by the fact that the LTDC parallel interface signals are reclocked 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 22: 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 LDTC output stage (see Section 46: LCD-TFT display controller (LTDC)).
- 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.
45.6 Display subsystem interrupts
The interrupts are described in sections of peripherals in this reference manual.
45.7 Display subsystem registers
All registers are described in Section 46: LCD-TFT display controller (LTDC).