From c79b1a38aabe26fc0fbc6bd6af0a5453e8aba95a Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Sun, 16 May 2021 18:42:59 -0500 Subject: [PATCH] samples: display: Convert driver and lvgl sample.yaml to use depends_on Converts the display driver and lvgl sample.yaml to select boards for the adafruit_2_8_tft_touch_v2 shield configuration by depending on the arduino_{gpio,i2c,spi} features instead of using an explicit platform_allow list. This will enable twister to automatically select new boards that add support for Arduino ports. The reel_board and reel_board_v2 are excluded due to a conflict between display drivers (onboard display vs. shield display). The ubx_evkannab1_nrf52832 board is excluded due to a conflict between the arduino_spi and arduino_i2c ports, which cannot be used simultaneously. Signed-off-by: Maureen Helm --- samples/drivers/display/sample.yaml | 3 ++- samples/subsys/display/lvgl/sample.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/drivers/display/sample.yaml b/samples/drivers/display/sample.yaml index 14f737d4404..94ea697a6db 100644 --- a/samples/drivers/display/sample.yaml +++ b/samples/drivers/display/sample.yaml @@ -3,7 +3,8 @@ sample: name: display_sample tests: sample.display.shield.adafruit_2_8_tft_touch_v2: - platform_allow: nrf52840dk_nrf52840 mimxrt685_evk_cm33 frdm_k64f + depends_on: arduino_gpio arduino_i2c arduino_spi + platform_exclude: reel_board reel_board_v2 ubx_evkannab1_nrf52832 extra_args: SHIELD=adafruit_2_8_tft_touch_v2 tags: display shield harness: console diff --git a/samples/subsys/display/lvgl/sample.yaml b/samples/subsys/display/lvgl/sample.yaml index deb6ed9dc9b..788777b5014 100644 --- a/samples/subsys/display/lvgl/sample.yaml +++ b/samples/subsys/display/lvgl/sample.yaml @@ -7,7 +7,8 @@ tests: platform_allow: reel_board mimxrt1050_evk mimxrt1060_evk mimxrt1064_evk tags: samples display gui sample.display.adafruit_2_8_tft_touch_v2: - platform_allow: nrf52840dk_nrf52840 mimxrt685_evk_cm33 frdm_k64f + depends_on: arduino_gpio arduino_i2c arduino_spi + platform_exclude: reel_board reel_board_v2 ubx_evkannab1_nrf52832 extra_args: SHIELD=adafruit_2_8_tft_touch_v2 tags: shield sample.display.waveshare_epaper_gdeh0213b1: