From 405d4e14dbcd5e3d39db38649247a52155f6102d Mon Sep 17 00:00:00 2001 From: Jakub Zymelka Date: Mon, 16 Sep 2024 16:17:34 +0200 Subject: [PATCH] [nrf noup] samples: basic: blinky: add eGPIO tests configuration Add yaml configurations to enable eGPIO tests with sysbuild and different backends. Signed-off-by: Jakub Zymelka --- .../nrf54l15dk_nrf54l15_cpuapp_egpio.overlay | 9 ++++ samples/basic/blinky/sample.yaml | 47 +++++++++++++++++-- 2 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 samples/basic/blinky/boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay diff --git a/samples/basic/blinky/boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay b/samples/basic/blinky/boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay new file mode 100644 index 00000000000..1c59420d055 --- /dev/null +++ b/samples/basic/blinky/boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +&led0 { + gpios = <&egpio 7 GPIO_ACTIVE_HIGH>; +}; diff --git a/samples/basic/blinky/sample.yaml b/samples/basic/blinky/sample.yaml index de711910dad..7f257e92971 100644 --- a/samples/basic/blinky/sample.yaml +++ b/samples/basic/blinky/sample.yaml @@ -1,12 +1,51 @@ sample: name: Blinky Sample +common: + tags: + - LED + - gpio + depends_on: gpio tests: sample.basic.blinky: - tags: - - LED - - gpio filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") - depends_on: gpio harness: led integration_platforms: - frdm_k64f + + sample.basic.blinky.egpio_icmsg: + sysbuild: true + platform_allow: + - nrf54l15dk/nrf54l15/cpuapp + integration_platforms: + - nrf54l15dk/nrf54l15/cpuapp + extra_args: blinky_SNIPPET=emulated-gpio-icmsg + SB_CONFIG_SDP=y + SB_CONFIG_EGPIO_FLPR_APPLICATION=y + SB_CONFIG_PARTITION_MANAGER=n + EXTRA_DTC_OVERLAY_FILE="./boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay" + harness: console + harness_config: + type: multi_line + ordered: true + regex: + - "LED state: ON" + - "LED state: OFF" + + sample.basic.blinky.egpio_mbox: + sysbuild: true + platform_allow: + - nrf54l15dk/nrf54l15/cpuapp + integration_platforms: + - nrf54l15dk/nrf54l15/cpuapp + extra_args: blinky_SNIPPET=emulated-gpio-mbox + SB_CONFIG_SDP=y + SB_CONFIG_EGPIO_FLPR_APPLICATION=y + SB_CONFIG_PARTITION_MANAGER=n + EXTRA_DTC_OVERLAY_FILE="./boards/nrf54l15dk_nrf54l15_cpuapp_egpio.overlay" + harness: console + harness_config: + type: multi_line + ordered: true + regex: + - "LED state: ON" + - "LED state: OFF"