Registered User mNo edit summary Tag: 2017 source edit |
Registered User m (remove "Cortex-A35 master boot" chapters, useless for v6 and wording to review) Tag: 2017 source edit |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ApplicableFor | {{ApplicableFor | ||
|MPUs list=STM32MP13x, STM32MP15x, STM32MP25x | |MPUs list=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x | ||
|MPUs checklist=STM32MP13x, STM32MP15x, STM32MP25x | |MPUs checklist=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x | ||
}} | }} | ||
==Article purpose== | ==Article purpose== | ||
The purpose of this article is to: | The purpose of this article is to: | ||
Line 43: | Line 42: | ||
** Gamma with non-linear configurable table | ** Gamma with non-linear configurable table | ||
** Output as RGB888 24 bpp or YUV422 16 bpp (interleaved) | ** Output as RGB888 24 bpp or YUV422 16 bpp (interleaved) | ||
** Horizontal and vertical mirrors on layers (allowing 180 degree rotation) | |||
* the LTDC layer2 can be set as '''secure''' (under [[ETZPC_internal_peripheral|ETZPC]] control), whereas the layer1 is always '''non-secure''' | * the LTDC layer2 can be set as '''secure''' (under [[ETZPC_internal_peripheral|ETZPC]] control), whereas the layer1 is always '''non-secure''' | ||
=== On {{MicroprocessorDevice | device= | === On {{MicroprocessorDevice | device=21}} === | ||
The LTDC peripheral: | The LTDC peripheral: | ||
* main features are the same as on {{MicroprocessorDevice | device=13}}, with the following extra ones: | * main features are the same as on {{MicroprocessorDevice | device=13}}, with the following extra ones: | ||
** 3 input layers blended together to compose the display | ** 3 input layers blended together to compose the display | ||
** Upscaler (horizontal and vertical) with bilinear filtering, up to 8x8 with decimal ratios | ** Upscaler (horizontal and vertical) with bilinear filtering, up to 8x8 with decimal ratios | ||
** Secure layer (using layer3) capability, with grouped regs and additional interrupt set | ** Secure layer (using layer3) capability, with grouped regs and additional interrupt set | ||
Line 55: | Line 54: | ||
** The RISUP differentiates the access right of accesses performed toward the following RIF protected peripheral ID: | ** The RISUP differentiates the access right of accesses performed toward the following RIF protected peripheral ID: | ||
*** "LTDC common": LTDC common registers, about panel info, synchronization, interface | *** "LTDC common": LTDC common registers, about panel info, synchronization, interface | ||
*** " | *** "LTDC_L1L3" (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_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 | *** "LTDC_ROT": LTDC rotation, with information about the rotation buffers | ||
** The RIMU differentiates the bus transactions emitted by the following AXI masters: | ** The RIMU differentiates the bus transactions emitted by the following AXI masters: | ||
*** " | *** "RIMU_L1L3": read access only for layer 1 and 2, always non-protected | ||
*** "RIMU_L3": read access only for layer 3, potentially 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 | *** "RIMU_ROT": write of blended pixels, and read of to-be-rotated pixels, potentially protected, because containing blended pixels of the protected layer 3 | ||
=== On {{MicroprocessorDevice | device=23}} and {{MicroprocessorDevice | device=25}} === | |||
The LTDC peripheral: | |||
* main features are the same as on {{MicroprocessorDevice | device=21}}, with the following extra ones: | |||
** Rotation of the composition output allowing 90 ,180 or 270 degrees | |||
* is also connected to | * is also connected to | ||
** the [[DSI internal peripheral]] that provides an interface to communicate with MIPI<sup>®</sup> DSI-compliant display panels | ** the [[DSI internal peripheral]] that provides an interface to communicate with MIPI<sup>®</sup> DSI-compliant display panels | ||
Line 86: | Line 90: | ||
====On {{MicroprocessorDevice | device=2}}==== | ====On {{MicroprocessorDevice | device=2}}==== | ||
{{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp2_a35_boottime}} | {{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp2_a35_boottime}} | ||
<section begin=stm32mp25_a35_boottime /> | <section begin=stm32mp21_a35_boottime/><section begin=stm32mp23_a35_boottime/><section begin=stm32mp25_a35_boottime/> | ||
| rowspan="1" | Visual | | rowspan="1" | Visual | ||
| rowspan="1" | [[LTDC internal peripheral | LTDC]] <span title="RIF-aware internal peripheral"><sup>[[File:Info.png|15px|link=]]</sup></span> | | rowspan="1" | [[LTDC internal peripheral | LTDC]] <span title="RIF-aware internal peripheral"><sup>[[File:Info.png|15px|link=]]</sup></span> | ||
Line 96: | Line 101: | ||
| Shareable at internal peripheral level thanks to the RIF: see the [[LTDC internal peripheral#stm32mp2_LTDC_a35_boottime_rif | boot time allocation per feature]] | | Shareable at internal peripheral level thanks to the RIF: see the [[LTDC internal peripheral#stm32mp2_LTDC_a35_boottime_rif | boot time allocation per feature]] | ||
|- | |- | ||
<section end=stm32mp25_a35_boottime /> | <section end=stm32mp21_a35_boottime/><section end=stm32mp23_a35_boottime/><section end=stm32mp25_a35_boottime/> | ||
|} | |} | ||
Line 107: | Line 112: | ||
| | | | ||
|- | |- | ||
| | | L1L2 | ||
| | | | ||
| | | | ||
Line 113: | Line 118: | ||
| | | | ||
|- | |- | ||
| | | L3 | ||
| | | | ||
| | | | ||
Line 155: | Line 160: | ||
|} | |} | ||
====On {{MicroprocessorDevice | device=21}}==== | |||
{{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp21_runtime}} | |||
<section begin=stm32mp21_a35_runtime /> | |||
| rowspan="1" | Visual | |||
| rowspan="1" | [[LTDC internal peripheral | LTDC]] <span title="RIF-aware internal peripheral"><sup>[[File:Info.png|15px|link=]]</sup></span> | |||
| LTDC | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span><sup>OP-TEE</sup> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| Shareable at internal peripheral level thanks to the RIF: see the [[LTDC internal peripheral#stm32mp21_LTDC_a35_runtime_rif | runtime allocation per feature]] | |||
|- | |||
<section end=stm32mp21_a35_runtime /> | |||
|} | |||
<span id="stm32mp21_LTDC_a35_runtime_rif"></span>The below table shows the possible runtime allocations for the features of the LTDC instance. | |||
{{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp21_runtime_rif}} | |||
| CMN | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
| L1L2 | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
| L3 | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span><sup>OP-TEE</sup> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
| ROT | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
|} | |||
====On {{MicroprocessorDevice | device=23}}==== | |||
{{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp23_runtime}} | |||
<section begin=stm32mp23_a35_runtime /> | |||
| rowspan="1" | Visual | |||
| rowspan="1" | [[LTDC internal peripheral | LTDC]] <span title="RIF-aware internal peripheral"><sup>[[File:Info.png|15px|link=]]</sup></span> | |||
| LTDC | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span><sup>OP-TEE</sup> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| Shareable at internal peripheral level thanks to the RIF: see the [[LTDC internal peripheral#stm32mp23_LTDC_a35_runtime_rif | runtime allocation per feature]] | |||
|- | |||
<section end=stm32mp23_a35_runtime /> | |||
|} | |||
<span id="stm32mp23_LTDC_a35_runtime_rif"></span>The below table shows the possible runtime allocations for the features of the LTDC instance. | |||
{{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp23_runtime_rif}} | |||
| CMN | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
| L1L2 | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
| L3 | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span><sup>OP-TEE</sup> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
| ROT | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | |||
| <span title="assigned peripheral" style="font-size:21px">☑</span> | |||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span> | |||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | |||
| | |||
|- | |||
|} | |||
====On {{MicroprocessorDevice | device=25}}==== | ====On {{MicroprocessorDevice | device=25}}==== | ||
{{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp25_runtime}} | {{#lst:STM32MP2_internal_peripherals_assignment_table_template|stm32mp25_runtime}} | ||
Line 181: | Line 279: | ||
| | | | ||
|- | |- | ||
| | | L1L2 | ||
| <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | | <span title="assignable peripheral but not supported" style="font-size:21px">⬚</span><sup>OP-TEE</sup> | ||
| <span title="assigned peripheral" style="font-size:21px">☑</span> | | <span title="assigned peripheral" style="font-size:21px">☑</span> | ||
Line 189: | Line 287: | ||
| | | | ||
|- | |- | ||
| | | L3 | ||
| <span title="assigned peripheral" style="font-size:21px">☑</span><sup>OP-TEE</sup> | | <span title="assigned peripheral" style="font-size:21px">☑</span><sup>OP-TEE</sup> | ||
| <span title="assignable peripheral" style="font-size:21px">☐</span> | | <span title="assignable peripheral" style="font-size:21px">☐</span> | ||
Line 211: | Line 309: | ||
* '''Linux<sup>®</sup>''': [[DRM KMS overview | DRM/KMS framework]] | * '''Linux<sup>®</sup>''': [[DRM KMS overview | DRM/KMS framework]] | ||
* '''OP-TEE''': [[OP-TEE overview | OP-TEE framework (for the trusted UI)]] | * '''OP-TEE''': [[STM32 MPU OP-TEE overview | OP-TEE framework (for the trusted UI)]] | ||
** On {{MicroprocessorDevice | device=13}}, the LTDC can be set secure thanks to the [[ETZPC internal peripheral]] : this is done at runtime when [[OP-TEE overview | OP-TEE]] trusted user interface (Trusted UI) is launched in order to switch the LTDC control and the LTDC input layer2 as secure, to display a secure content that cannot be modified from the non-secure world. | ** On {{MicroprocessorDevice | device=13}}, the LTDC can be set secure thanks to the [[ETZPC internal peripheral]] : this is done at runtime when [[STM32 MPU OP-TEE overview | OP-TEE]] trusted user interface (Trusted UI) is launched in order to switch the LTDC control and the LTDC input layer2 as secure, to display a secure content that cannot be modified from the non-secure world. | ||
** On {{MicroprocessorDevice | device= | ** On {{MicroprocessorDevice | device=2}}, the LTDC can be set secure thanks to the [[RIFSC internal peripheral]] : this is done at runtime when [[STM32 MPU OP-TEE overview | OP-TEE]] trusted user interface (Trusted UI) is launched in order to switch the LTDC control and the LTDC input layer3 as secure, to display a secure content that cannot be modified from the non-secure world. | ||
* '''U-Boot''': [[U-Boot overview | U-Boot framework (for the display splash screen)]] | * '''U-Boot''': [[U-Boot overview | U-Boot framework (for the display splash screen)]] | ||
* '''STM32Cube''': | * '''STM32Cube''': | ||
** On {{MicroprocessorDevice | device=13}}: [[STM32CubeMP13 Package | LTDC HAL driver]] and {{CodeSource | STM32CubeMP13 | Drivers/STM32MP13xx_HAL_Driver/Inc/stm32mp13xx_hal_ltdc.h | header file of LTDC HAL module}} | ** On {{MicroprocessorDevice | device=13}}: [[STM32CubeMP13 Package | LTDC HAL driver]] and {{CodeSource | STM32CubeMP13 | Drivers/STM32MP13xx_HAL_Driver/Inc/stm32mp13xx_hal_ltdc.h | header file of LTDC HAL module}} | ||
** On {{MicroprocessorDevice | device= | ** On {{MicroprocessorDevice | device=2}}: [[STM32CubeMP2 Package | LTDC HAL driver]] and {{CodeSource | STM32CubeMP2 | Drivers/STM32MP2xx_HAL_Driver/Inc/stm32mp2xx_hal_ltdc.h | header file of LTDC HAL module}} | ||
==How to assign and configure the peripheral== | ==How to assign and configure the peripheral== | ||
Line 228: | Line 326: | ||
See also additional information in the [[LTDC device tree configuration]] article for Linux<sup>®</sup>. | See also additional information in the [[LTDC device tree configuration]] article for Linux<sup>®</sup>. | ||
==How to go further== | == How to go further == | ||
Refer to STM32 LTDC application note (AN4861) <ref>[https://www.st.com/resource/en/application_note/dm00287603.pdf LCD-TFT display controller (LTDC) on STM32 MCUs application note (AN4861)]</ref> for a detailed description of the LTDC peripheral and applicable use-cases. | Refer to STM32 LTDC application note (AN4861) <ref>[https://www.st.com/resource/en/application_note/dm00287603.pdf LCD-TFT display controller (LTDC) on STM32 MCUs application note (AN4861)]</ref> for a detailed description of the LTDC peripheral and applicable use-cases. | ||
Even if this application note is related to STM32 microcontrollers, it also applies to STM32 MPUs. | Even if this application note is related to STM32 microcontrollers, it also applies to STM32 MPUs. | ||
You may be interested in the following related articles: | |||
* [[How to use LTDC layers from CM33 and CA35 simultaneously]] | |||
* {{#categorytree:DRM KMS}} | |||
* {{#categorytree:OP-TEE Visual}} | |||
* {{#categorytree:U-Boot Visual}} | |||
=== Shared LTDC layers use cases === | |||
The STM32 LTDC internal peripheral can be used in various "shared" LTDC layers use cases. Please refer to following articles to go further: | |||
* [[How to use the secure display feature]] | |||
* [[How to use LTDC layers from CM33 and CA35 simultaneously]] | |||
==References== | ==References== |
Latest revision as of 16:58, 22 October 2024
1. Article purpose
The purpose of this article is to:
- briefly introduce the LTDC peripheral and its main features,
- indicate the peripheral instances assignment at boot time and their assignment at runtime (including whether instances can be allocated to secure contexts),
- list the software frameworks and drivers managing the peripheral,
- explain how to configure the peripheral.
2. Peripheral overview
The LCD-TFT (Liquid Crystal Display - Thin Film Transistor) Display Controller peripheral (LTDC) is used to provide an interface to a variety of parallel digital RGB LCD and TFT display panels. The LTDC generates the parallel digital RGB (Red, Green, Blue) signals and the related control signals (horizontal and vertical synchronizations, Pixel Clock and Data Enable).
Refer to the STM32 MPU reference manuals for the complete list of features.
2.1. On STM32MP15x lines 
The LTDC peripheral:
- main features are:
- 2 display layers
- 24-bit RGB parallel pixel output; 8 bits-per-pixel (RGB888)
- Programmable timings for different display panels
- Programmable polarity for HSYNC, VSYNC and data enable
- Color look-up table (CLUT) up to 256 color (256x24-bit) per layer
- Up to 8 input color formats selectable per layer: ARGB8888, RGB888, RGB565, ARGB1555, ARGB4444, L8 (8-bit luminance or CLUT), AL44 (4-bit alpha + 4-bit luminance), AL88 (8-bit alpha + 8-bit luminance)
- Pseudo-random dithering output for low bits per channel: Dither width 2 bits for red, green, blue
- Flexible blending between two layers using alpha value (per pixel or constant)
- Programmable background color
- Color keying (transparency color)
- Programmable window position and size
- is also connected to the DSI internal peripheral that provides an interface to communicate with MIPI® DSI-compliant display panels
- is a non-secure peripheral
2.2. On STM32MP13x lines 
The LTDC peripheral:
- main features are the same as on STM32MP15x lines
, with the following extra ones:
- Multiple input pixel formats:
- Predefined ARGB, with 7 formats: ARGB8888, ABGR8888, RGBA8888, BGRA8888, RGB565, BGR565, RGB888packed
- Flexible ARGB, allowing any width and location for A,R,G,B components
- Predefined YUV, with 3 formats: YUV422-1L (FourCC: YUYV, Interleaved), YUV420-2L (FourCC: NV12, semi planar), YUV420-3L (FourCC: Yxx, full planar) with some flexibility on the sequence of the component
- Blending with flexible layer order and alpha value (per pixel or constant)
- Gamma with non-linear configurable table
- Output as RGB888 24 bpp or YUV422 16 bpp (interleaved)
- Horizontal and vertical mirrors on layers (allowing 180 degree rotation)
- Multiple input pixel formats:
- the LTDC layer2 can be set as secure (under ETZPC control), whereas the layer1 is always non-secure
2.3. On STM32MP21 unknown microprocessor device
The LTDC peripheral:
- main features are the same as on STM32MP13x lines
, with the following extra ones:
- 3 input layers blended together to compose the display
- Upscaler (horizontal and vertical) with bilinear filtering, up to 8x8 with decimal ratios
- Secure layer (using layer3) capability, with grouped regs and additional interrupt set
- the LTDC layer3 can be set as secure (under RIFSC internal peripheral control), whereas layer1 and layer2 are always non-secure.
- The RISUP differentiates the access right of accesses performed toward the following RIF protected peripheral ID:
- "LTDC common": LTDC common registers, about panel info, synchronization, interface
- "LTDC_L1L3" (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
- The RIMU differentiates the bus transactions emitted by the following AXI masters:
- "RIMU_L1L3": 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
- The RISUP differentiates the access right of accesses performed toward the following RIF protected peripheral ID:
2.4. On STM32MP23 unknown microprocessor device and STM32MP25x lines 
The LTDC peripheral:
- main features are the same as on STM32MP21 unknown microprocessor device, with the following extra ones:
- Rotation of the composition output allowing 90 ,180 or 270 degrees
- is also connected to
- the DSI internal peripheral that provides an interface to communicate with MIPI® DSI-compliant display panels
- the LVDS internal peripheral that provides an interface to communicate with FPD-Link I and OpenLDI LVDS display panels
3. Peripheral usage
This chapter is applicable in the scope of the OpenSTLinux BSP running on the Arm® Cortex®-A processor(s), and the STM32CubeMPU Package running on the Arm® Cortex®-M processor.
3.1. Boot time assignment
3.1.1. On STM32MP1 series
The LTDC is used at boot time for displaying a splash screen thanks to the U-Boot framework [1].
Click on to expand or collapse the legend...
Domain | Peripheral | Boot time allocation | Comment ![]() | |||
---|---|---|---|---|---|---|
Instance | Cortex-A7 secure (ROM code) |
Cortex-A7 secure (TF-A BL2) |
Cortex-A7 non-secure (U-Boot) | |||
Visual | LTDC | LTDC | ☐ |
3.1.2. On STM32MP2 series
Click on to expand or collapse the legend...
Domain | Peripheral | Boot time allocation | Comment ![]() | |||
---|---|---|---|---|---|---|
Instance | Cortex-A35 secure (ROM code) |
Cortex-A35 secure (TF-A BL2) |
Cortex-A35 non-secure (U-Boot) | |||
Visual | LTDC ![]() |
LTDC | ☐ | ☐ | ☐ | Shareable at internal peripheral level thanks to the RIF: see the boot time allocation per feature |
The below table shows the possible boot time allocations for the features of the LTDC instance.
Feature | Boot time allocation ![]() |
Comment | ||
---|---|---|---|---|
Cortex-A35 secure (ROM code) |
Cortex-A35 secure (TF-A BL2) |
Cortex-A35 non-secure (U-Boot) | ||
CMN | ☑ | |||
L1L2 | ☑ | |||
L3 | ☐ | |||
ROT | ☑ |
3.2. Runtime assignment
3.2.1. On STM32MP13x lines 
Click on to expand or collapse the legend...
Domain | Peripheral | Runtime allocation | Comment ![]() | ||
---|---|---|---|---|---|
Instance | Cortex-A7 secure (OP-TEE) |
Cortex-A7 non-secure (Linux) | |||
Visual | LTDC | LTDC | ☐ | ☐ | Shareable (multiple choices supported) |
3.2.2. On STM32MP15x lines 
Click on to expand or collapse the legend...
Domain | Peripheral | Runtime allocation | Comment ![]() | |||
---|---|---|---|---|---|---|
Instance | Cortex-A7 secure (OP-TEE) |
Cortex-A7 non-secure (Linux) |
Cortex-M4 (STM32Cube) | |||
Visual | LTDC | LTDC | ☐ |
3.2.3. On STM32MP21 unknown microprocessor device
| rowspan="1" | Visual
| rowspan="1" | LTDC
| LTDC
| ☐OP-TEE
| ☐
| ☐
| ☐
| Shareable at internal peripheral level thanks to the RIF: see the runtime allocation per feature
|-
|}
The below table shows the possible runtime allocations for the features of the LTDC instance.
| CMN | ⬚OP-TEE | ☑ | ⬚ | ☐ | |- | L1L2 | ⬚OP-TEE | ☑ | ⬚ | ☐ | |- | L3 | ☑OP-TEE | ☐ | ⬚ | ☐ | |- | ROT | ⬚OP-TEE | ☑ | ⬚ | ☐ | |- |}
3.2.4. On STM32MP23 unknown microprocessor device
| rowspan="1" | Visual
| rowspan="1" | LTDC
| LTDC
| ☐OP-TEE
| ☐
| ☐
| ☐
| Shareable at internal peripheral level thanks to the RIF: see the runtime allocation per feature
|-
|}
The below table shows the possible runtime allocations for the features of the LTDC instance.
| CMN | ⬚OP-TEE | ☑ | ⬚ | ☐ | |- | L1L2 | ⬚OP-TEE | ☑ | ⬚ | ☐ | |- | L3 | ☑OP-TEE | ☐ | ⬚ | ☐ | |- | ROT | ⬚OP-TEE | ☑ | ⬚ | ☐ | |- |}
3.2.5. On STM32MP25x lines 
Click on to expand or collapse the legend...
Domain | Peripheral | Runtime allocation | Comment ![]() | |||||
---|---|---|---|---|---|---|---|---|
Instance | Cortex-A35 secure (OP-TEE / TF-A BL31) |
Cortex-A35 non-secure (Linux) |
Cortex-M33 secure (TF-M) |
Cortex-M33 non-secure (STM32Cube) |
Cortex-M0+![]() (STM32Cube) | |||
Visual | LTDC ![]() |
LTDC | ☐OP-TEE | ☐ | ☐ | ☐ | ☐ | Shareable at internal peripheral level thanks to the RIF: see the runtime allocation per feature |
The below table shows the possible runtime allocations for the features of the LTDC instance.
Feature | Runtime allocation ![]() |
Comment | ||||
---|---|---|---|---|---|---|
Cortex-A35 secure (OP-TEE / TF-A BL31) |
Cortex-A35 non-secure (Linux) |
Cortex-M33 secure (TF-M) |
Cortex-M33 non-secure (STM32Cube) |
Cortex-M0+![]() (STM32Cube) | ||
CMN | ⬚OP-TEE | ☑ | ⬚ | ☐ | ||
L1L2 | ⬚OP-TEE | ☑ | ⬚ | ☐ | ||
L3 | ☑OP-TEE | ☐ | ⬚ | ☐ | ||
ROT | ⬚OP-TEE | ☑ | ⬚ | ☐ |
4. Software frameworks and drivers
Below are listed the software frameworks and drivers managing the LTDC peripheral for the embedded software components listed in the above tables.
- Linux®: DRM/KMS framework
- OP-TEE: OP-TEE framework (for the trusted UI)
- On STM32MP13x lines
, the LTDC can be set secure thanks to the ETZPC internal peripheral : this is done at runtime when OP-TEE trusted user interface (Trusted UI) is launched in order to switch the LTDC control and the LTDC input layer2 as secure, to display a secure content that cannot be modified from the non-secure world.
- On STM32MP2 series, the LTDC can be set secure thanks to the RIFSC internal peripheral : this is done at runtime when OP-TEE trusted user interface (Trusted UI) is launched in order to switch the LTDC control and the LTDC input layer3 as secure, to display a secure content that cannot be modified from the non-secure world.
- On STM32MP13x lines
- U-Boot: U-Boot framework (for the display splash screen)
- STM32Cube:
- On STM32MP13x lines
: LTDC HAL driver and header file of LTDC HAL module
- On STM32MP2 series: LTDC HAL driver and header file of LTDC HAL module
- On STM32MP13x lines
5. How to assign and configure the peripheral
The peripheral assignment can be done via the STM32CubeMX graphical tool (and manually completed if needed).
This tool also helps to configure the peripheral:
- partial device trees (pin control and clock tree) generation for the OpenSTLinux software components,
- HAL initialization code generation for the STM32CubeMPU Package.
The configuration is applied by the firmware running in the context in which the peripheral is assigned.
See also additional information in the LTDC device tree configuration article for Linux®.
6. How to go further
Refer to STM32 LTDC application note (AN4861) [2] for a detailed description of the LTDC peripheral and applicable use-cases.
Even if this application note is related to STM32 microcontrollers, it also applies to STM32 MPUs.
You may be interested in the following related articles:
The STM32 LTDC internal peripheral can be used in various "shared" LTDC layers use cases. Please refer to following articles to go further:
7. References