Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: lvgl: enhacements for CI check and mimxrt1060_evkc updates #84458

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions boards/nxp/mimxrt1040_evk/mimxrt1040_evk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ supported:
- adc
- arduino_gpio
- counter
- display
- flash
- gpio
- i2c
- lcd_if
- pwm
- spi
vendor: nxp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ supported:
- flash
- gpio
- i2c
- lcd_if
- netif:eth
- sdhc
- spi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ supported:
- flash
- gpio
- i2c
- lcd_if
- netif:eth
- sdhc
- spi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ supported:
- flash
- gpio
- i2c
- lcd_if
- netif:eth
- pwm
- sdhc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ supported:
- flash
- gpio
- i2c
- lcd_if
- netif:eth
- pwm
- sdhc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ supported:
- dma
- gpio
- i2c
- lcd_if
- netif:eth
- sdhc
- spi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ supported:
- dma
- gpio
- i2c
- lcd_if
- netif:eth
- sdhc
- spi
Expand Down
1 change: 1 addition & 0 deletions boards/nxp/mimxrt1064_evk/mimxrt1064_evk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ supported:
- gpio
- hwinfo
- i2c
- lcd_if
- netif:eth
- pwm
- sdhc
Expand Down
2 changes: 2 additions & 0 deletions boards/nxp/mimxrt1160_evk/mimxrt1160_evk_mimxrt1166_cm7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ supported:
- can
- counter
- dma
- display
- flash
- gpio
- hwinfo
- i2c
- mipi_dsi
- netif:eth
- pwm
- spi
Expand Down
2 changes: 2 additions & 0 deletions boards/nxp/mimxrt595_evk/mimxrt595_evk_mimxrt595s_cm33.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ supported:
- counter
- dma
- dmic
- display
- flash
- gpio
- i2c
- i2s
- mipi_dsi
- pwm
- sdhc
- spi
Expand Down
8 changes: 0 additions & 8 deletions samples/subsys/display/lvgl/boards/mimxrt1060_evk.conf

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions samples/subsys/display/lvgl/nxp_elcdif_pxp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2025 NXP
# SPDX-License-Identifier: Apache-2.0

CONFIG_MAIN_STACK_SIZE=20480
6 changes: 6 additions & 0 deletions samples/subsys/display/lvgl/nxp_mipi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2025 NXP
# SPDX-License-Identifier: Apache-2.0

CONFIG_DMA=y
CONFIG_MAIN_STACK_SIZE=20480
CONFIG_MIPI_DSI=y
118 changes: 95 additions & 23 deletions samples/subsys/display/lvgl/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,54 @@
integration_platforms:
- native_sim/native/64
sample.display.lvgl.rk055hdmipi4m:
depends_on: mipi_dsi
filter: (CONFIG_MIPI_DSI_MCUX or CONFIG_MIPI_DSI_MCUX_2L)
and dt_chosen_enabled("zephyr,display")
and dt_compat_enabled("goodix,gt911")
tags: shield
# This sample is intended to test the RT1170 and RT595, which require
# a display shield to work with LVGL
min_flash: 250
# The minimum RAM needed for this display is actually around 8MB,
# but the RT595 uses external PSRAM for the display buffer
min_ram: 32
harness: none
extra_args: SHIELD="rk055hdmipi4m"
platform_allow:
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt595_evk/mimxrt595s/cm33
harness: console
extra_args:
- SHIELD="rk055hdmipi4m"
- EXTRA_CONF_FILE="nxp_mipi.conf"
integration_platforms:
- mimxrt1170_evk/mimxrt1176/cm7
harness_config:
fixture: fixture_display_rk055hdmipi4m
type: multi_line
regex:
- "lvgl sample"
- "run"

sample.display.lvgl.rk055hdmipi4ma0:
depends_on: mipi_dsi
filter: (CONFIG_MIPI_DSI_MCUX or CONFIG_MIPI_DSI_MCUX_2L)
and dt_chosen_enabled("zephyr,display")
and dt_compat_enabled("goodix,gt911")
tags: shield
# This sample is intended to test the RT1170 and RT595, which require
# a display shield to work with LVGL
min_flash: 250
# The minimum RAM needed for this display is actually around 8MB,
# but the RT595 uses external PSRAM for the display buffer
min_ram: 32
harness: console
extra_args:
- SHIELD="rk055hdmipi4ma0"
- EXTRA_CONF_FILE="nxp_mipi.conf"
integration_platforms:
- mimxrt1170_evk/mimxrt1176/cm7
harness_config:
fixture: fixture_display_rk055hdmipi4ma0
type: multi_line
regex:
- "lvgl sample"
- "run"
sample.subsys.display.lvgl.st_b_lcd40_dsi1_mb1166:
tags: shield
filter: dt_compat_enabled("orisetech,otm8009a")
Expand All @@ -46,6 +78,18 @@
harness: console
harness_config:
fixture: fixture_display
type: multi_line
regex:
- "lvgl sample"
- "run"
modules:
- lvgl
tags:

Check warning on line 87 in samples/subsys/display/lvgl/sample.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (key-duplicates)

samples/subsys/display/lvgl/sample.yaml:87 duplication of key "tags" in mapping
- samples
- display
- shield
- lvgl
- gui
sample.subsys.display.lvgl.st_b_lcd40_dsi1_mb1166_a09:
tags: shield
filter: dt_compat_enabled("frida,nt35510")
Expand All @@ -54,40 +98,64 @@
harness: console
harness_config:
fixture: fixture_display
sample.subsys.display.lvgl.rk043fn66hs_ctg:
tags: shield
platform_allow:
- mimxrt1064_evk
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1050_evk/mimxrt1052/hyperflash
- mimxrt1040_evk
type: multi_line
regex:
- "lvgl sample"
- "run"
modules:
- lvgl
tags:

Check warning on line 107 in samples/subsys/display/lvgl/sample.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (key-duplicates)

samples/subsys/display/lvgl/sample.yaml:107 duplication of key "tags" in mapping
- samples
- display
- shield
- lvgl
- gui
samples.subsys.display.lvgl.rk043fn66hs_ctg:
depends_on: lcd_if
filter: CONFIG_DISPLAY_MCUX_ELCDIF
and dt_chosen_enabled("zephyr,display")
and dt_node_enabled("dt_path_enabled", "gt911_rk043fn66hs_ctg")
integration_platforms:
- mimxrt1040_evk
tags: display
extra_args:

Check failure on line 121 in samples/subsys/display/lvgl/sample.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

samples/subsys/display/lvgl/sample.yaml:121 trailing whitespace

Check warning on line 121 in samples/subsys/display/lvgl/sample.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (trailing-spaces)

samples/subsys/display/lvgl/sample.yaml:121 trailing spaces
- SHIELD=rk043fn66hs_ctg
- EXTRA_CONF_FILE="nxp_elcdif_pxp.conf"
harness: console
extra_args: SHIELD=rk043fn66hs_ctg
harness_config:
fixture: fixture_display_rk043fn66hs_ctg
sample.subsys.display.lvgl.rk043fn02h_ct:
tags: shield
platform_allow:
- mimxrt1064_evk
- mimxrt1060_evk@C/mimxrt1062/qspi
- mimxrt1050_evk/mimxrt1052/hyperflash
- mimxrt1040_evk
type: multi_line
regex:
- "lvgl sample"
- "run"
samples.subsys.display.lvgl.rk043fn02h_ct:
depends_on: lcd_if
filter: CONFIG_DISPLAY_MCUX_ELCDIF
and dt_chosen_enabled("zephyr,display")
and dt_compat_enabled("goodix,gt911")
integration_platforms:
- mimxrt1040_evk
harness: console
extra_args: SHIELD=rk043fn02h_ct
extra_args:
- SHIELD=rk043fn02h_ct
- EXTRA_CONF_FILE="nxp_elcdif_pxp.conf"
harness_config:
fixture: fixture_display_rk043fn02h_ct
sample.subsys.display.lvgl.rtkmipilcdb00000be:
tags: shield
type: multi_line
regex:
- "lvgl sample"
- "run"
samples.subsys.display.lvgl.rtkmipilcdb00000be:
platform_allow:
- ek_ra8d1
harness: console
extra_args: SHIELD=rtkmipilcdb00000be
harness_config:
fixture: fixture_display
type: multi_line
regex:
- "lvgl sample"
- "run"
sample.subsys.display.lvgl.seeed_xiao_round_display:
tags: shield
min_flash: 320
Expand All @@ -104,3 +172,7 @@
harness: console
harness_config:
fixture: fixture_seeed_xiao_round_display
type: multi_line
regex:
- "lvgl sample"
- "run"
2 changes: 2 additions & 0 deletions samples/subsys/display/lvgl/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ int main(void)
lv_timer_handler();
display_blanking_off(display_dev);

printf("lvgl sample\n");
while (1) {
if ((count % 100) == 0U) {
sprintf(count_str, "%d", count/100U);
lv_label_set_text(count_label, count_str);
printf("run %u\n", count/100U);
}
lv_timer_handler();
++count;
Expand Down
Loading