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:
- • parallel: 1080p60-RGB888
- • LVDS: 1536p60-RGB888
- • MIPI DSI: 1536p60-RGB888
Some over-target non-guaranteed use cases are possible, but with specific constraints:
- • Drive simultaneously three panels, using the three interfaces (parallel, LVDS, DSI), with a same content.
- • Drive simultaneously two parallel LVDS panels, using each one link, with a reduced resolution and a same content.
- • Drive a 4 k panel via the DSI, with a limited features and performances: one layer, no resize, no rotation, 30 fps, and non-standardized blanking sizes.
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:
- • LTDC: handles display composition and rotation
- – Composition: 3 layers
- – Input pixel format: flexible format, including YUV420 full-planar on layer 1.
- – Secure layer: protected access to buffer and configuration registers.
- – Rotation and mirror: 90 and 270 degrees, horizontal and vertical
- – Upsize
- – Miscellaneous: color lookup-table, color keying, Gamma
- – 1080p60 max performance
- • LTDC parallel interface (integrated inside the LTDC):
- – Standard: 24 bpp + H,V 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
- • DSI: handles the MIPI DSI protocol and PHY
- – Standard: MIPI DSI v1.3
- – Output rate: 4 data lanes @2.5 Gbps/lane
- – Resolution example: 1080p60-RGB888:with 891 Mbps/lan (4 lanes), 1536p60-RGB888: supported with 1316 Mbps/lane (4 lanes)
- – Pixel formats: RGB888
- • LVDS: handles the LVDS FPD or OpenLDI protocol and PHY
- – Standard: FPD-1 and OpenLDI (resp.: 781 and 1100 Mbps/lane)
- – Hardware: 2 links (4 data lanes + 1 clock lane, up to 1.1 Gbps/lane)
- – Output rate: 2 links FPD-1 224 Mpixel/s, 1 link FPD-1: 112 Mpixel/s
- – Resolution: 2 links: 1536p60-RGB888 max, x1 link: 1080p60-RGB888 max
- – Pixel format: RGB888/666, JEIDA/VESA.
- – Double display: capable (limitation to same content on both display).
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

The diagram illustrates the Display subsystem architecture. It is divided into an internal 'Display subsystem' block and external components.
External Interfaces:
- AXI (to memory): Connected to the AXI-Master (64 bits) within the LTDC block.
- AHB (config): Connected to the AHB-Slave (32 bits) within the LTDC block.
- APB (config): Connected to the AHB-Slave (32 bits) within the LTDC block.
- LTDC: Contains AXI-Master (64 bits) and AHB-Slave (32 bits). It outputs Pix_24b// to the DSI Host and LVDS Host.
- DSI Path:
- DSI Host: Receives Pix_24b from LTDC and outputs byte to the DSI PHY (4DL).
- DSI Wrapper: Interacts with the DSI Host and DSI PHY.
- DSI PHY (4DL): Includes a PLL (2.5G) and outputs dsi_bit to the High-resolution DSI panel (1536p60).
- Parallel GPIO: A dashed box containing 'Parallel GPIO (24 bits, 150MHz, -Real time)' and 'Pix24b' outputs Pix_24b// to the High-resolution parallel panel (1080p60).
- LVDS Path:
- LVDS Host: Contains '8amba_iditx_lib' and receives Pix_24b// from LTDC. It has two outputs: 5Bytes_Link1 and 5Bytes_Link2.
- LVDS Wrapper: Interacts with the LVDS Host and LVDS PHYs.
- LVDS PHY MST (4DL): Receives 5Bytes from Link1 and outputs lvds_bit to the High-resolution LVDS panel (1536p60). It includes a PLL (1.1G).
- LVDS PHY SLV (4DL): Receives 5Bytes from Link2 and outputs lvds_bit to the High-resolution LVDS panel (1536p60).
- Security Logic: Four blocks at the bottom: RIMU (LTDC), RISAD (LTDC), RISAD (DSI), and RISAD (LVDS).
MSv67445V3
Blocks in the above figure are shown with their instance/design names:
- • LTDC: composition and rotation engine, includes a parallel interface
- • Parallel GPIO: Parallel I/O-ring of the device with up to 24 bpp + HV synchronization
- • DSI Host: DSI-Host
- • DSI Wrapper: side registers for the DSI interface, handles smart panel trigger
- • DSI DPHY: DSI DPHY-Rx with 4DL+1CL, @2.5 Gbps/lane
- • LVDS Host: LVDS-Host, handles JEIDA/VESA, dual link, and dual panel
- • LVDS Wrapper: side registers for the LVDS interface
- • LVDS PHY: 2x LVDS link (4DL+1CL), including the 7x serialization
- • RIMU/RISAD: RIF security logic, configured to the specific display needs
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

The display subsystem is implemented with the following clock max frequencies:
- • RCC pixel clock (ck_ker_ltdc): 314 MHz
- • LTDC pixel clock (pixel_clk): 314 MHz
- • LTDC parallel interface (o_clk_display_par.): 150 MHz (I/O ReTime mandatory)
- • DSI bit clock (cn/p_tx_dphy): 2.5Gbps/lane (1.250 GHz)
- • DSI byte clock (TxByteClk/txblaneclk) 314 MHz
- • DSI config and ref clock (from ck_ker_dsiphy): min = 17 MHz, max = 27 MHz
- • LVDS bit clock (internal): 1.1 Gbps/lane
- • LVDS pixel clock (o_lvds_pll_dp_clk_out): 314 MHz
- • Register clocks (ck_icn_p_*): 200 MHz (all APB / AHB register files)
- • AXI-Master clock (ck_icn_m_ltdc): 400 MHz
- • AHB-Slave clock (ck_icn_s_ltdcsram): 200 MHz (not connected to system)
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)):
- • 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
- • LTDC_ROT: LTDC rotation, with information about the rotation buffers
- • DSI common: DSI common registers for DSI-wrapper and DSI-Host
- • DSI_TRIG: DSI Wrapper trigger-A to update a smart panel
- • DSI_RD: DSI-Host read access to a smart panel
- • LVDS: LVDS registers, for Host, Wrapper, and PHY registers
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
- • RIMU_ROT: write of blended pixels, and read of to-be-rotated pixels, potentially protected, because containing blended pixels of the protected layer 3
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:
- – Most non-layer peripheral indexes are concerned: RIF LTDC common, DSI common, LDITX.
- – 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, DSI common, and LDITX 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 and DSI common configuration spaces keep 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 and DSI common configuration spaces keep 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.
- • Rotation configuration registers must be protected:
- – RIF LTDC_ROT must be protected.
- – RIF LTDC_ROT RIMU AXI-Master must be configured to emit only protected transactions (tagged as S a/o P), which allow it to write and read-back the protected rotation memory buffer. The RIMU must be updated by trusted domain application using RIFSC_RIMC_ATTR13.
It is recommended a setup secure, privileged (optional) and CID = 0x4, that is configured in RIFSC_RISC_PER121_CIDCFGR and optionally RIFSC_RISC_PER121_SEMCR. With this setup, a secure application must make sure CID4 has access to the secure pixels area.
- – The protection of the configuration space of the LTDC_ROT allows the allocation of secure buffers to store the blended/pre-rotated frame in a secure place, with LTDC performing secure transaction to write and then read these pixels. A malware cannot access these pixels that contain a blended secure content.
- – It is recommended to let the OS initialize openly these registers at boot, and then get the registers permanently protected. The rotation buffer pointers are indeed expected to remain constant.
- • Read-access to a smart panel via DSI must be protected:
- – RIF DSI_RD must be protected, using the corresponding RIFSC_RISC_PER123_CIDCFGR and RIMC_PRIVCFGR registers.
- – The protection of the configuration space of the DSI_RD allows only secure software to access these registers and read data/pixels from a smart panel.
- – It is advised to allow the OS to retrieve at boot some needed display information. After, The DSI_RD configuration space can be either permanently protected, or protected on demand (when a secure content is displayed).
The above recommended settings for the device with temporary secure layer are shown in the figure below.
Figure 470. Display RIF peripheral ID

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.
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 496. Display subsystem RIF peripheral ID
| All in display subsystem | RISUP-slave | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 80 | 119 | 120 | 121 | 81 | 122 | 123 | 84 | |||||
| Blocks | Address range | (LTDC) address x1 | Start address x4 | End address x4 | LTDC common | LTDC_L1L2 | LTDC_L3 | LTDC_ROT | DSI common | DSI_TRIG | DSI_RD | LDITX |
| 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 | - | - | - | - | - | |
| Rotation Addr | 0x20 | 0x80 | 0x84 | - | - | - | Y | - | - | - | - | |
| Rotation Color | 0x22 | 0x88 | 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 | - | - | - | - | - | |
Table 496. Display subsystem RIF peripheral ID (continued)
| All in display subsystem | RISUP-slave | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 80 | 119 | 120 | 121 | 81 | 122 | 123 | 84 | |||||
| Blocks | Address range | (LTDC) address x1 | Start address x4 | End address x4 | LTDC common | LTDC_L1L2 | LTDC_L3 | LTDC_ROT | DSI common | DSI_TRIG | DSI_RD | LDITX |
| DSI-HOST+ WRAP | Config HOST | - | 0x00 | 0x6C | - | - | - | - | Y | - | - | - |
| ReadPanel (and Write) | - | 0x70 | 0x70 | - | - | - | - | - | - | Y | - | |
| Config | - | 0x74 | 0xB8 | - | - | - | - | Y | - | - | - | |
| Interrupt | - | 0xBC | 0xDC | - | - | - | - | Y | - | - | - | |
| Config | - | 0xE0 | 0x3FC | - | - | - | - | Y | - | - | - | |
| Config WRAP | - | 0x400 | 0x400 | - | - | - | - | Y | - | - | - | |
| Trigger-B for SmartPanel | - | 0x404 | 0x404 | - | - | - | - | Y | - | - | - | |
| Interrupt | - | 0x408 | 0x414 | - | - | - | - | Y | - | - | - | |
| PHY config | - | 0x418 | 0x42C | - | - | - | - | Y | - | - | - | |
| PLL config | - | 0x430 | 0x4FC | - | - | - | - | Y | - | - | - | |
| Trigger-A | - | 0x480 | 0xFFC | - | - | - | - | - | Y | - | - | |
| DSI DPHY-Tx (no register) | - | - | - | - | - | - | - | - | - | - | - | |
| OpenLDI | LDITX Host | - | 0x000 | 0xFFC | - | - | - | - | - | - | - | 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:
- • Parallel-interface display use case
- • LVDS display (FPD-1 or OpenLDI) use case
- • DSI display use case
Other non-default use cases can be supported, with specific constraints:
- • Drive of three panels interfaces in parallel (Parallel-interface, LVDS, DSI), but with the same content.
- • Drive of two LVDS panels in parallel, using each one link, but with a reduced resolution.
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. Setup security settings, with or without a secure layer depending on application needs, as described in Figure 468.
- 2. Clock and reset:
- – ck_ker_dsiblane 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_dsiblane 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_dsiblane).
- – ck_icn_p_ltdc is provided by the RCC to allow the LTDC configuration (default 200 MHz).
- – ck_icn_m_ltdc is provided by the RCC to allow the LTDC AXI to work (default 400 MHz).
See Section 21: 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 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)).
- 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 PLL integrated in one of the LVDS links generates a bit clock (typically from 700 MHz to 1.1 GHz) that is sent to both LVDS links (when both are needed), and there drives the LVDS PHY data lanes.
- • The bit clock is also divided by seven to provide a pixel clock that is used in both the LVDS Host and the LTDC (which are synchronous).
- • Aside, the LTDC needs an AXI-Master clock to fetch pixels, and an APB-Slave clock to get configured. The LVDS Host needs also a clock for its configuration.
The steps to setup that path are the following:
- 1. Setup the security settings, with or without a secure layer depending on the product needs, as described in Figure 468.
- 2. Clock and reset:
- –
i_lvdsphy_pll_clkin = 0x1to select theck_hse_oscas reference for the LVDS PLL. Instead, withi_lvdsphy_pll_clkin = 0x0, theck_ker_lvdsphyclock can be selected from the RCC, but that increases the jitter, thus less recommended. - –
DISPLAYCLKCR(1:0) = 0x1to select the LVDS pixel clock (generated by the LVDS PLL then divided by seven) as input for thepixel_clkof 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 theclk_pixof the LVDS Host.
In low-power, when the LVDS PLL is off, and when a clock is needed for some configuration,i_lditx_pixclk_selcan be set to0x0to select the PLL reference clock. - –
i_lvds_dp_clk_sel = 1/1when in Dual link mode.i_lvds_dp_clk_sel = 1/2when 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_ltdcis provided by RCC to allow the configuration of the LTDC (default 200 MHz). - –
ck_icn_m_ltdcis provided by RCC to allow the LTDC AXI to work (default 400 MHz).
- –
See Section 21: Reset and clock control (RCC) for more details.
- 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
- 4. LTDC configuration:
- – Setup the LTDC (such as input layers, display information, parallel interface, AXI settings) as described in Section 53: LCD-TFT display controller (LTDC).
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 PLL integrated in the DSI DPHY-Tx generates a bit-clock (usually, around 1000 Mbit/s/lane for a display panel, and up to 2.5 Gbit/s/lane for a bridge) that drives the PHY bit lanes.
- • That clock is also divided by eight to provide a DSI word32b clock, which is fed into the DSI Host.
- • The DSI Host resynchronizes data from a LTDC pixel24b clock to the DSI word32b clock.
- • The LTDC must be provided the above-mentioned pixel clock, that may be provided either by the RC,C or be directly the DSI word clock. Using the RCC clock usually allows a finer frequency selection (as not constrained by bit rates constraints), but does preempt a PLL from the RCC.
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:
- – average pixel rate: 125 Mpixel/s (= 1920x1080)
- – peak pixel rate (with blanking): 148.5 Mpixel/s (CEA HDTV Standard)
- – The RCC generates a 148.5 MHz pixel clock.
- – The LTDC generates a 148.5 Mpixel/s 24bpp (= 3564 Mbit/s).
- – The DSI word32 clock must be above 111.3 MHz.
- – The DSI bit rate must be above or equal to 891 Mbit/s (on four data lanes).
- • Similar computations are valid when less than four data lanes are used on the DSI: DSI words become respectively 24, 16, and 8 bits with 3DL, 2DL, and 1DL, with an according impact on the LTDC pixel rate.
- • Aside, the LTDC needs an AXI-Master clock to fetch pixels, and an APB-Slave clock to get configured. The LVDS Host needs also a clock for its configuration.
The steps to setup that path are the following:
- 1. Setup the security settings, with or without a secure layer depending on application needs, as described in Figure 468.
- 2. Clock and reset:
- – RCC_DSICFGR(15) = DSIPHYCKREFEL = 0x1 to select the
ck_hse_oscas reference for the DSI PLL. Instead, with RCC_DSICFGR(15) = DSIPHYCKREFEL = 0x0, theck_ker_dsiphyclock can be selected from the RCC, but that increase the jitter, thus less recommended. - – DISPLAYCLKCR(1:0) = 0x2, to select the RCC
ck_ker_dsiblneas input for thepixel_clkof 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 theck_ker_dsiblneto continue to drive the DSI Host internal logic. - –
ck_icn_p_dsiis provided by the RCC to allow the configuration of the DSI Host (default is 200 MHz). - –
ck_icn_p_ltdcis provided by the RCC to allow the configuration of the LTDC (default is 200 MHz). - –
ck_icn_m_ltdcis provided by the RCC to allow the LTDC AXI to work (default is 400 MHz).
- – RCC_DSICFGR(15) = DSIPHYCKREFEL = 0x1 to select the
- See Section 21: Reset and clock control (RCC) for more details.
- 3. DSI Host configuration (see Section 55: DSI Host (DSI)).
- 4. DSI Wrapper configuration:
- – The DSI wrapper among others differentiates between Video mode (default) and Command mode (specific).
- 5. LTDC configuration:
- – Setup the LTDC (such as input layers, display information, parallel interface, AXI Settings) as described in Section 53: LCD-TFT display controller (LTDC).
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:
- • The LVDS PLL bit clock is the Master clock.
- • The LVDS Host and LTDC are slaved on that clock (see the LVDS setup above), as LTDC and LVDS Host are synchronous.
- • The LTDC generates a pixel flow that follows the LVDS requirements (such as resolution, blanking, pixel rate).
- • The LTDC parallel interface works by default, and feeds directly the GPIO with that pixel flow. The parallel interface follows then the LVDS requirements.
- • The DSI PLL is activated in parallel, to provide a DSI bit clock and word clock.
- • The DSI Host works also by default, and resynchronizes the LTDC pixels into the DSI domain. The DSI timings follow then the LVDS ones.
- • Vs, Hs, and De polarities are configured as such:
- – The LTDC is configured to match the polarities expected by the panel on the parallel interface.
- – The LVDS Host is then configured to match the polarities expected by the LVDS panel. The LVDS Host polarity settings have to take into account the polarities already configured in the LTDC for the parallel interface (as signals coming into the LVDS Host are the ones output on the parallel interface).
- – The DSI Host must have the input polarity of its Vs, Hs, and De signals to be configured to compensate the polarity set in the LTDC (like for the LVDS Host, signals coming into the DSI Host are the ones output on the parallel interface).
Ideally, a standard normalized display resolution must be used, like 1080p60:
- • LVDS PLL runs at 519.75 MHz.
- • LVDS PHY (both links): 519.75 Mbit/s (= 74.25 Mpixel/s/link, so 148.5 Mpixel/s)
- • LVDS pixel clock: 148.5 MHz
- • LTDC pixel clock: 148.5 MHz
- • DSI word clock: 111.375 MHz (or a bit higher if convenient)
- • DSI bit clock: 891 Mbps/lane (or a bit higher if convenient)
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:
- • LVDS PLL bit clock, by default, is the Master clock (typically at 728 Mbit/s/lane). Both LVDS links follow that clock.
- • LVDS pixel clock, unlike usual, is generated as in single link mode (with a division by two) to reach 112 MHz.
- • LTDC pixel clock, by default, uses the LVDS pixel clock.
Following items are in addition to the configuration detailed in Section 52.5.2:
- • The two links are enabled.
- • The LVDS pixel clock divider is set to divide by two.
- • The LVDS Host is configured as driving with link mode = single link.
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: