Skip to content

Commit cffb7be

Browse files
committed
samples: lvgl: revise NXP related settings
unify the configs and remove platform_allow as possible Signed-off-by: Hake Huang <[email protected]>
1 parent cc7c3fa commit cffb7be

File tree

5 files changed

+61
-36
lines changed

5 files changed

+61
-36
lines changed

samples/subsys/display/lvgl/boards/mimxrt1060_evk.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.

samples/subsys/display/lvgl/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2025 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_MAIN_STACK_SIZE=20480
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright 2025 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DMA=y
5+
CONFIG_MAIN_STACK_SIZE=20480
6+
CONFIG_MIPI_DSI=y

samples/subsys/display/lvgl/sample.yaml

Lines changed: 51 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,55 @@ tests:
2222
integration_platforms:
2323
- native_sim/native/64
2424
sample.display.lvgl.rk055hdmipi4m:
25+
depends_on: mipi_dsi
26+
filter: (CONFIG_MIPI_DSI_MCUX or CONFIG_MIPI_DSI_MCUX_2L)
27+
and dt_chosen_enabled("zephyr,display")
28+
and dt_compat_enabled("goodix,gt911")
2529
tags: shield
2630
# This sample is intended to test the RT1170 and RT595, which require
2731
# a display shield to work with LVGL
2832
min_flash: 250
2933
# The minimum RAM needed for this display is actually around 8MB,
3034
# but the RT595 uses external PSRAM for the display buffer
3135
min_ram: 32
32-
harness: none
33-
extra_args: SHIELD="rk055hdmipi4m"
34-
platform_allow:
35-
- mimxrt1170_evk/mimxrt1176/cm7
36-
- mimxrt595_evk/mimxrt595s/cm33
36+
harness: console
37+
extra_args:
38+
- SHIELD="rk055hdmipi4m"
39+
- EXTRA_CONF_FILE="nxp_mipi.conf"
3740
integration_platforms:
3841
- mimxrt1170_evk/mimxrt1176/cm7
3942
harness_config:
4043
fixture: fixture_display_rk055hdmipi4m
41-
sample.subsys.display.lvgl.st_b_lcd40_dsi1_mb1166:
44+
type: multi_line
45+
regex:
46+
- "lvgl sample"
47+
- "run"
48+
49+
sample.display.lvgl.rk055hdmipi4ma0:
50+
depends_on: mipi_dsi
51+
filter: (CONFIG_MIPI_DSI_MCUX or CONFIG_MIPI_DSI_MCUX_2L)
52+
and dt_chosen_enabled("zephyr,display")
53+
and dt_compat_enabled("goodix,gt911")
4254
tags: shield
55+
# This sample is intended to test the RT1170 and RT595, which require
56+
# a display shield to work with LVGL
57+
min_flash: 250
58+
# The minimum RAM needed for this display is actually around 8MB,
59+
# but the RT595 uses external PSRAM for the display buffer
60+
min_ram: 32
61+
harness: console
62+
extra_args:
63+
- SHIELD="rk055hdmipi4ma0"
64+
- EXTRA_CONF_FILE="nxp_mipi.conf"
65+
integration_platforms:
66+
- mimxrt1170_evk/mimxrt1176/cm7
67+
harness_config:
68+
fixture: fixture_display_rk055hdmipi4ma0
69+
type: multi_line
70+
regex:
71+
- "lvgl sample"
72+
- "run"
73+
sample.subsys.display.lvgl.st_b_lcd40_dsi1_mb1166:
4374
filter: dt_compat_enabled("orisetech,otm8009a")
4475
platform_allow: stm32h747i_disco/stm32h747xx/m7
4576
extra_args: SHIELD=st_b_lcd40_dsi1_mb1166
@@ -59,7 +90,6 @@ tests:
5990
- lvgl
6091
- gui
6192
sample.subsys.display.lvgl.st_b_lcd40_dsi1_mb1166_a09:
62-
tags: shield
6393
filter: dt_compat_enabled("frida,nt35510")
6494
platform_allow: stm32h747i_disco/stm32h747xx/m7
6595
extra_args: SHIELD=st_b_lcd40_dsi1_mb1166_a09
@@ -79,16 +109,16 @@ tests:
79109
- lvgl
80110
- gui
81111
samples.subsys.display.lvgl.rk043fn66hs_ctg:
82-
platform_allow:
83-
- mimxrt1064_evk
84-
- mimxrt1060_evk/mimxrt1062/qspi
85-
- mimxrt1060_evk@C/mimxrt1062/qspi
86-
- mimxrt1050_evk/mimxrt1052/hyperflash
87-
- mimxrt1040_evk
112+
depends_on: lcd_if
113+
filter: CONFIG_DISPLAY_MCUX_ELCDIF
114+
and dt_chosen_enabled("zephyr,display")
115+
and dt_node_enabled("dt_path_enabled", "gt911_rk043fn66hs_ctg")
88116
integration_platforms:
89117
- mimxrt1040_evk
90118
tags: display
91-
extra_args: SHIELD=rk043fn66hs_ctg
119+
extra_args:
120+
- SHIELD=rk043fn66hs_ctg
121+
- EXTRA_CONF_FILE="nxp_elcdif_pxp.conf"
92122
harness: console
93123
harness_config:
94124
fixture: fixture_display_rk043fn66hs_ctg
@@ -97,15 +127,16 @@ tests:
97127
- "lvgl sample"
98128
- "run"
99129
samples.subsys.display.lvgl.rk043fn02h_ct:
100-
platform_allow:
101-
- mimxrt1064_evk
102-
- mimxrt1060_evk@C/mimxrt1062/qspi
103-
- mimxrt1050_evk/mimxrt1052/hyperflash
104-
- mimxrt1040_evk
130+
depends_on: lcd_if
131+
filter: CONFIG_DISPLAY_MCUX_ELCDIF
132+
and dt_chosen_enabled("zephyr,display")
133+
and dt_compat_enabled("goodix,gt911")
105134
integration_platforms:
106135
- mimxrt1040_evk
107136
harness: console
108-
extra_args: SHIELD=rk043fn02h_ct
137+
extra_args:
138+
- SHIELD=rk043fn02h_ct
139+
- EXTRA_CONF_FILE="nxp_elcdif_pxp.conf"
109140
harness_config:
110141
fixture: fixture_display_rk043fn02h_ct
111142
type: multi_line

0 commit comments

Comments
 (0)