Skip to content

Commit bb15585

Browse files
committed
[nrf fromlist] tests: drivers: uart: Enable test execution on nRF54L05, 'L10, 'L20
Add overlays needed to execute uart driver tests on: - nRF54L05dk, - nRF54L10dk, - nRF54L20pdk. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 0f2b574 commit bb15585

13 files changed

+178
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
uart21_default_alt: uart21_default_alt {
5+
group1 {
6+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
7+
<NRF_PSEL(UART_RX, 1, 11)>;
8+
};
9+
};
10+
11+
uart21_sleep_alt: uart21_sleep_alt {
12+
group1 {
13+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
14+
<NRF_PSEL(UART_RX, 1, 11)>;
15+
low-power-enable;
16+
};
17+
};
18+
};
19+
20+
dut: &uart21 {
21+
status = "okay";
22+
pinctrl-0 = <&uart21_default_alt>;
23+
pinctrl-1 = <&uart21_sleep_alt>;
24+
pinctrl-names = "default", "sleep";
25+
current-speed = <115200>;
26+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
uart21_default: uart21_default {
5+
group1 {
6+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
7+
<NRF_PSEL(UART_RX, 1, 11)>,
8+
<NRF_PSEL(UART_RTS, 1, 8)>,
9+
<NRF_PSEL(UART_CTS, 1, 9)>;
10+
};
11+
};
12+
13+
uart21_sleep: uart21_sleep {
14+
group1 {
15+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
16+
<NRF_PSEL(UART_RX, 1, 11)>,
17+
<NRF_PSEL(UART_RTS, 1, 8)>,
18+
<NRF_PSEL(UART_CTS, 1, 9)>;
19+
low-power-enable;
20+
};
21+
};
22+
};
23+
24+
dut: &uart21 {
25+
status = "okay";
26+
current-speed = <115200>;
27+
pinctrl-0 = <&uart21_default>;
28+
pinctrl-1 = <&uart21_sleep>;
29+
pinctrl-names = "default", "sleep";
30+
hw-flow-control;
31+
};

tests/drivers/uart/uart_elementary/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ tests:
99
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
1010
platform_allow:
1111
- nrf54h20dk/nrf54h20/cpuapp
12+
- nrf54l15dk/nrf54l05/cpuapp
13+
- nrf54l15dk/nrf54l10/cpuapp
1214
- nrf54l15dk/nrf54l15/cpuapp
1315
- nrf54l15dk/nrf54l15/cpuflpr
16+
- nrf54l20pdk/nrf54l20/cpuapp
1417
- nrf5340dk/nrf5340/cpuapp
1518
drivers.uart.uart_elementary_dual_nrf54h:
1619
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
@@ -30,14 +33,20 @@ tests:
3033
drivers.uart.uart_elementary_dual_nrf54l:
3134
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
3235
platform_allow:
36+
- nrf54l15dk/nrf54l05/cpuapp
37+
- nrf54l15dk/nrf54l10/cpuapp
3338
- nrf54l15dk/nrf54l15/cpuapp
39+
- nrf54l20pdk/nrf54l20/cpuapp
3440
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_dual_uart.overlay"
3541
extra_configs:
3642
- CONFIG_DUAL_UART_TEST=y
3743
drivers.uart.uart_elementary_dual_setup_mismatch_nrf54l:
3844
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
3945
platform_allow:
46+
- nrf54l15dk/nrf54l05/cpuapp
47+
- nrf54l15dk/nrf54l10/cpuapp
4048
- nrf54l15dk/nrf54l15/cpuapp
49+
- nrf54l20pdk/nrf54l20/cpuapp
4150
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_dual_uart.overlay"
4251
extra_configs:
4352
- CONFIG_DUAL_UART_TEST=y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
uart21_default: uart21_default {
9+
group1 {
10+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
11+
<NRF_PSEL(UART_RX, 1, 11)>,
12+
<NRF_PSEL(UART_RTS, 1, 8)>,
13+
<NRF_PSEL(UART_CTS, 1, 9)>;
14+
};
15+
};
16+
17+
uart21_sleep: uart21_sleep {
18+
group1 {
19+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
20+
<NRF_PSEL(UART_RX, 1, 11)>,
21+
<NRF_PSEL(UART_RTS, 1, 8)>,
22+
<NRF_PSEL(UART_CTS, 1, 9)>;
23+
low-power-enable;
24+
};
25+
};
26+
};
27+
28+
dut: &uart21 {
29+
status = "okay";
30+
current-speed = <115200>;
31+
pinctrl-0 = <&uart21_default>;
32+
pinctrl-1 = <&uart21_sleep>;
33+
pinctrl-names = "default", "sleep";
34+
hw-flow-control;
35+
};
36+
37+
counter_dev: &timer00 {
38+
status = "okay";
39+
};
40+
41+
&grtc {
42+
interrupts = <228 2>;
43+
};

tests/drivers/uart/uart_mix_fifo_poll/testcase.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ common:
88
- nrf52840dk/nrf52840
99
- nrf9160dk/nrf9160
1010
- nrf5340dk/nrf5340/cpuapp
11+
- nrf54l15dk/nrf54l05/cpuapp
12+
- nrf54l15dk/nrf54l10/cpuapp
1113
- nrf54l15dk/nrf54l15/cpuapp
14+
- nrf54l20pdk/nrf54l20/cpuapp
1215
- nrf54h20dk/nrf54h20/cpuapp
1316
- nrf54h20dk/nrf54h20/cpurad
1417
- nrf52_bsim
@@ -82,7 +85,10 @@ tests:
8285
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
8386
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
8487
platform_exclude:
88+
- nrf54l15dk/nrf54l05/cpuapp
89+
- nrf54l15dk/nrf54l10/cpuapp
8590
- nrf54l15dk/nrf54l15/cpuapp
91+
- nrf54l20pdk/nrf54l20/cpuapp
8692
- nrf54h20dk/nrf54h20/cpuapp
8793
- nrf54h20dk/nrf54h20/cpurad
8894

@@ -93,7 +99,10 @@ tests:
9399
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
94100
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
95101
platform_exclude:
102+
- nrf54l15dk/nrf54l05/cpuapp
103+
- nrf54l15dk/nrf54l10/cpuapp
96104
- nrf54l15dk/nrf54l15/cpuapp
105+
- nrf54l20pdk/nrf54l20/cpuapp
97106
- nrf54h20dk/nrf54h20/cpuapp
98107
- nrf54h20dk/nrf54h20/cpurad
99108

@@ -108,6 +117,9 @@ tests:
108117
- CONFIG_NRFX_TIMER2=y
109118
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
110119
platform_exclude:
120+
- nrf54l15dk/nrf54l05/cpuapp
121+
- nrf54l15dk/nrf54l10/cpuapp
111122
- nrf54l15dk/nrf54l15/cpuapp
123+
- nrf54l20pdk/nrf54l20/cpuapp
112124
- nrf54h20dk/nrf54h20/cpuapp
113125
- nrf54h20dk/nrf54h20/cpurad
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "nrf54l15dk_nrf54l15_cpuapp.overlay"

0 commit comments

Comments
 (0)