Skip to content

Commit

Permalink
tests: drivers: lpuart: allow testing on nRF54L05 and nRF54L10
Browse files Browse the repository at this point in the history
Lpuart test and sample can now be run on nRF54L05 and
nRF54l10 targets.

Signed-off-by: Michał Stasiak <[email protected]>
  • Loading branch information
mstasiaknordic authored and rlubos committed Dec 6, 2024
1 parent a79f194 commit 52d6498
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_UART_21_ASYNC=y
CONFIG_UART_21_INTERRUPT_DRIVEN=n
# Do not use interrupt driven API for console UART to not enable RX.
CONFIG_UART_20_INTERRUPT_DRIVEN=n
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_UART_21_ASYNC=y
CONFIG_UART_21_INTERRUPT_DRIVEN=n
# Do not use interrupt driven API for console UART to not enable RX.
CONFIG_UART_20_INTERRUPT_DRIVEN=n
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
16 changes: 14 additions & 2 deletions samples/peripheral/lpuart/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ tests:
- nrf9160dk/nrf9160/ns
- nrf5340dk/nrf5340/cpuapp
- nrf21540dk/nrf52840
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
integration_platforms:
- nrf52dk/nrf52832
Expand All @@ -23,6 +25,8 @@ tests:
- nrf9160dk/nrf9160/ns
- nrf5340dk/nrf5340/cpuapp
- nrf21540dk/nrf52840
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
platform_exclude: native_sim
tags: ppk_power_measure
Expand All @@ -40,6 +44,8 @@ tests:
- nrf9160dk/nrf9160/ns
- nrf5340dk/nrf5340/cpuapp
- nrf21540dk/nrf52840
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
Expand Down Expand Up @@ -74,9 +80,12 @@ tests:
- nrf9160dk/nrf9160/ns
- nrf5340dk/nrf5340/cpuapp
- nrf21540dk/nrf52840
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
platform_allow: nrf52dk/nrf52832 nrf52833dk/nrf52833 nrf52840dk/nrf52840 nrf9160dk/nrf9160/ns
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l15/cpuapp
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l05/cpuapp
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp
tags: ppk_power_measure
harness: pytest
harness_config:
Expand All @@ -100,9 +109,12 @@ tests:
- nrf9160dk/nrf9160/ns
- nrf5340dk/nrf5340/cpuapp
- nrf21540dk/nrf52840
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
platform_allow: nrf52dk/nrf52832 nrf52833dk/nrf52833 nrf52840dk/nrf52840 nrf9160dk/nrf9160/ns
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l15/cpuapp
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l05/cpuapp
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp
harness: console
harness_config:
fixture: gpio_loopback
Expand Down
9 changes: 9 additions & 0 deletions tests/drivers/lpuart/boards/nrf54l15dk_nrf54l05_cpuapp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_UART_21_ASYNC=y
CONFIG_UART_21_INTERRUPT_DRIVEN=n
# Do not use interrupt driven API for console UART to not enable RX.
CONFIG_UART_20_INTERRUPT_DRIVEN=n
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
9 changes: 9 additions & 0 deletions tests/drivers/lpuart/boards/nrf54l15dk_nrf54l10_cpuapp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_UART_21_ASYNC=y
CONFIG_UART_21_INTERRUPT_DRIVEN=n
# Do not use interrupt driven API for console UART to not enable RX.
CONFIG_UART_20_INTERRUPT_DRIVEN=n
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
14 changes: 12 additions & 2 deletions tests/drivers/lpuart/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ tests:
fixture: gpio_loopback
lpuart.loopback.nrf54l:
sysbuild: true
platform_allow: nrf54l15dk/nrf54l15/cpuapp
platform_allow:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
integration_platforms:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
extra_configs:
- CONFIG_TEST_LPUART_LOOPBACK=y
Expand All @@ -26,8 +31,13 @@ tests:
fixture: gpio_loopback
lpuart.loopback.nrf54l.busy_sim:
sysbuild: true
platform_allow: nrf54l15dk/nrf54l15/cpuapp
platform_allow:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
integration_platforms:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
extra_configs:
- CONFIG_TEST_LPUART_LOOPBACK=y
Expand Down

0 comments on commit 52d6498

Please sign in to comment.