Skip to content

Commit

Permalink
tests: nrf: enable twister tests for nrf54l09pdk
Browse files Browse the repository at this point in the history
Enabled tests:
- flash/common
- flahs/negative_tests
- retained_mem/api
- nrf_grtc_timer
- uart_elementary
- uart_mix_fifo_poll
- uart_pm
- wdt_error_cases
- fs/fcb

Signed-off-by: Rafał Kuźnia <[email protected]>
  • Loading branch information
e-rk committed Dec 3, 2024
1 parent 12bb79d commit f862f9d
Show file tree
Hide file tree
Showing 17 changed files with 164 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/drivers/flash/common/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ tests:
drivers.flash.common.no_explicit_erase:
platform_allow:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Expand Down
5 changes: 4 additions & 1 deletion tests/drivers/flash/negative_tests/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
#define TEST_AREA_SIZE FIXED_PARTITION_SIZE(TEST_AREA)
#define TEST_AREA_DEVICE FIXED_PARTITION_DEVICE(TEST_AREA)

#if defined(CONFIG_SOC_NRF54L05) || defined(CONFIG_SOC_NRF54L10) || defined(CONFIG_SOC_NRF54L15)
#if defined(CONFIG_SOC_NRF54L05) || \
defined(CONFIG_SOC_NRF54L09) || \
defined(CONFIG_SOC_NRF54L10) || \
defined(CONFIG_SOC_NRF54L15)
#define TEST_FLASH_START (DT_REG_ADDR(DT_MEM_FROM_FIXED_PARTITION(DT_NODELABEL(TEST_AREA))))
#define TEST_FLASH_SIZE (DT_REG_SIZE(DT_MEM_FROM_FIXED_PARTITION(DT_NODELABEL(TEST_AREA))))
#elif defined(CONFIG_SOC_NRF54H20)
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/flash/negative_tests/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ common:
tests:
drivers.flash.negative_tests:
platform_allow:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_POWEROFF=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/ {
cpuapp_sram@2002e000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2002e000 DT_SIZE_K(4)>;
zephyr,memory-region = "RetainedMem";
status = "okay";

retainedmem0: retainedmem {
compatible = "zephyr,retained-ram";
status = "okay";
};
};

aliases {
retainedmemtestdevice = &retainedmem0;
};
};

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(184)>;
ranges = <0x0 0x20000000 0x2e000>;
};
1 change: 1 addition & 0 deletions tests/drivers/retained_mem/api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tests:
- qemu_cortex_m3
- nrf54h20dk/nrf54h20/cpuapp
- nrf54h20dk/nrf54h20/cpurad
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/timer/nrf_grtc_timer/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ tests:
drivers.timer.nrf_grtc_timer:
tags: drivers
platform_allow:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuflpr
- nrf54l15bsim/nrf54l15/cpuapp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* SPDX-License-Identifier: Apache-2.0 */

&pinctrl {
uart21_default: uart21_default {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>,
<NRF_PSEL(UART_RTS, 1, 8)>,
<NRF_PSEL(UART_CTS, 1, 9)>;
};
};

uart21_sleep: uart21_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>,
<NRF_PSEL(UART_RTS, 1, 8)>,
<NRF_PSEL(UART_CTS, 1, 9)>;
low-power-enable;
};
};
};

dut: &uart21 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart21_default>;
pinctrl-1 = <&uart21_sleep>;
pinctrl-names = "default", "sleep";
hw-flow-control;
};
1 change: 1 addition & 0 deletions tests/drivers/uart/uart_elementary/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tests:
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54l15dk/nrf54l15/cpuflpr
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart21_default: uart21_default {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>,
<NRF_PSEL(UART_RTS, 1, 8)>,
<NRF_PSEL(UART_CTS, 1, 9)>;
};
};

uart21_sleep: uart21_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>,
<NRF_PSEL(UART_RTS, 1, 8)>,
<NRF_PSEL(UART_CTS, 1, 9)>;
low-power-enable;
};
};
};

dut: &uart21 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart21_default>;
pinctrl-1 = <&uart21_sleep>;
pinctrl-names = "default", "sleep";
hw-flow-control;
};

counter_dev: &timer00 {
status = "okay";
max-frequency = <DT_FREQ_M(64)>;
};

&grtc {
interrupts = <228 2>;
};
4 changes: 4 additions & 0 deletions tests/drivers/uart/uart_mix_fifo_poll/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ common:
- nrf9160dk/nrf9160
- nrf5340dk/nrf5340/cpuapp
- nrf5340bsim/nrf5340/cpuapp
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54l15bsim/nrf54l15/cpuapp
Expand Down Expand Up @@ -85,6 +86,7 @@ tests:
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
platform_exclude:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Expand All @@ -97,6 +99,7 @@ tests:
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
platform_exclude:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Expand All @@ -113,6 +116,7 @@ tests:
- CONFIG_NRFX_TIMER2=y
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
platform_exclude:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart21_default: uart21_default {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>;
};
};

uart21_sleep: uart21_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 1, 10)>,
<NRF_PSEL(UART_RX, 1, 11)>;
low-power-enable;
};
};
};

/ {
chosen {
zephyr,console = &uart20;
};
};

dut: &uart21 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart21_default>;
pinctrl-1 = <&uart21_sleep>;
pinctrl-names = "default", "sleep";
};
5 changes: 5 additions & 0 deletions tests/drivers/uart/uart_pm/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ common:
harness: ztest
platform_allow:
- nrf52840dk/nrf52840
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54l15bsim/nrf54l15/cpuapp
Expand Down Expand Up @@ -32,6 +33,7 @@ tests:
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
extra_args: DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840.overlay;nrf_rx_disable.overlay"
platform_exclude:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54l15bsim/nrf54l15/cpuapp
Expand All @@ -44,6 +46,7 @@ tests:
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
platform_exclude:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Expand All @@ -64,6 +67,7 @@ tests:
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
platform_exclude:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Expand All @@ -90,6 +94,7 @@ tests:
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
platform_exclude:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

&wdt31 {
status = "okay";
};
1 change: 1 addition & 0 deletions tests/drivers/watchdog/wdt_error_cases/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

/* Align tests to the specific target: */
#if defined(CONFIG_SOC_NRF54L05) || \
defined(CONFIG_SOC_NRF54L09) || \
defined(CONFIG_SOC_NRF54L10) || \
defined(CONFIG_SOC_NRF54L15) || \
defined(CONFIG_SOC_NRF54L20) || \
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/watchdog/wdt_error_cases/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ common:
tests:
drivers.watchdog.wdt_error_cases:
platform_allow:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
Expand Down
1 change: 1 addition & 0 deletions tests/subsys/fs/fcb/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tests:
- nrf52840dk/nrf52840
filesystem.fcb.no_erase:
platform_allow:
- nrf54l09pdk/nrf54l09/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
filesystem.fcb.native_sim.no_erase:
Expand Down

0 comments on commit f862f9d

Please sign in to comment.