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:

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:

Figure 388. Display subsystem block diagram

Block diagram of the Display subsystem showing data flow from AXI and AHB buses through RIMU and RISAD to the LTDC, then to a Parallel GPIO and finally to a HighRes parallel panel.

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.

Block diagram of the Display subsystem showing data flow from AXI and AHB buses through RIMU and RISAD to the LTDC, then to a Parallel GPIO and finally to a HighRes parallel panel.

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

Clock diagram of the Display subsystem showing clock inputs to the LTDC and RIMU/RISUP blocks, and the output to the LCD_CLK.

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.

Clock diagram of the Display subsystem showing clock inputs to the LTDC and RIMU/RISUP blocks, and the output to the LCD_CLK.

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

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)):

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:

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.

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

Figure 390. Display RIF peripheral ID

Figure 390: Display RIF peripheral ID block diagrams

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.

Figure 390: Display RIF peripheral ID block diagrams

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:

Table 425. Display subsystem RIF peripheral ID

All in display subsystemRISUP-slave
80119120
BlocksAddress range(LTDC) address x1Start address x4End address x4LTDC commonLTDC_L1L2LTDC_L3
LTDCCommon CFG00x00x00x30Y--
Interrupt-A0xD0x340x3C-Y-
Common CFG10x100x400x60Y--
Interrupt-B0x190x640x70--Y
(empty)0x1D0x740x74Y--
CRC0x1E0x780x7C--Y
(empty)0x200x800x88Y--
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

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. 1. Setup security settings, with or without a secure layer depending on application needs, as described in Figure 388.
  2. 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).

See Section 20: 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 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)).
  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.

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).