Skip to content

Commit c6940a3

Browse files
committed
[nrf fromlist] tests: drivers: uart: Enable test execution on nRF54L20pdk
Add overlays needed to execute uart driver tests on nRF54L20pdk. Upstream PR #: 82963 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 43b638f commit c6940a3

File tree

7 files changed

+148
-0
lines changed

7 files changed

+148
-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: 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ tests:
1111
- nrf54h20dk/nrf54h20/cpuapp
1212
- nrf54l15dk/nrf54l15/cpuapp
1313
- nrf54l15dk/nrf54l15/cpuflpr
14+
- nrf54l20pdk/nrf54l20/cpuapp
1415
- nrf5340dk/nrf5340/cpuapp
1516
drivers.uart.uart_elementary_dual_nrf54h:
1617
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
@@ -31,13 +32,15 @@ tests:
3132
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
3233
platform_allow:
3334
- nrf54l15dk/nrf54l15/cpuapp
35+
- nrf54l20pdk/nrf54l20/cpuapp
3436
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_dual_uart.overlay"
3537
extra_configs:
3638
- CONFIG_DUAL_UART_TEST=y
3739
drivers.uart.uart_elementary_dual_setup_mismatch_nrf54l:
3840
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
3941
platform_allow:
4042
- nrf54l15dk/nrf54l15/cpuapp
43+
- nrf54l20pdk/nrf54l20/cpuapp
4144
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_dual_uart.overlay"
4245
extra_configs:
4346
- CONFIG_DUAL_UART_TEST=y
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ common:
99
- nrf9160dk/nrf9160
1010
- nrf5340dk/nrf5340/cpuapp
1111
- nrf54l15dk/nrf54l15/cpuapp
12+
- nrf54l20pdk/nrf54l20/cpuapp
1213
- nrf54h20dk/nrf54h20/cpuapp
1314
- nrf54h20dk/nrf54h20/cpurad
1415
- nrf52_bsim
@@ -83,6 +84,7 @@ tests:
8384
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
8485
platform_exclude:
8586
- nrf54l15dk/nrf54l15/cpuapp
87+
- nrf54l20pdk/nrf54l20/cpuapp
8688
- nrf54h20dk/nrf54h20/cpuapp
8789
- nrf54h20dk/nrf54h20/cpurad
8890

@@ -94,6 +96,7 @@ tests:
9496
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
9597
platform_exclude:
9698
- nrf54l15dk/nrf54l15/cpuapp
99+
- nrf54l20pdk/nrf54l20/cpuapp
97100
- nrf54h20dk/nrf54h20/cpuapp
98101
- nrf54h20dk/nrf54h20/cpurad
99102

@@ -109,5 +112,6 @@ tests:
109112
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
110113
platform_exclude:
111114
- nrf54l15dk/nrf54l15/cpuapp
115+
- nrf54l20pdk/nrf54l20/cpuapp
112116
- nrf54h20dk/nrf54h20/cpuapp
113117
- nrf54h20dk/nrf54h20/cpurad
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
};
13+
};
14+
15+
uart21_sleep: uart21_sleep {
16+
group1 {
17+
psels = <NRF_PSEL(UART_TX, 1, 10)>,
18+
<NRF_PSEL(UART_RX, 1, 11)>;
19+
low-power-enable;
20+
};
21+
};
22+
};
23+
24+
/ {
25+
chosen {
26+
zephyr,console = &uart20;
27+
};
28+
};
29+
30+
dut: &uart21 {
31+
status = "okay";
32+
current-speed = <115200>;
33+
pinctrl-0 = <&uart21_default>;
34+
pinctrl-1 = <&uart21_sleep>;
35+
pinctrl-names = "default", "sleep";
36+
};

tests/drivers/uart/uart_pm/testcase.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ common:
66
platform_allow:
77
- nrf52840dk/nrf52840
88
- nrf54l15dk/nrf54l15/cpuapp
9+
- nrf54l20pdk/nrf54l20/cpuapp
910
- nrf54h20dk/nrf54h20/cpuapp
1011
- nrf52_bsim
1112
harness_config:
@@ -28,6 +29,7 @@ tests:
2829
extra_args: DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840.overlay;nrf_rx_disable.overlay"
2930
platform_exclude:
3031
- nrf54l15dk/nrf54l15/cpuapp
32+
- nrf54l20pdk/nrf54l20/cpuapp
3133
- nrf54h20dk/nrf54h20/cpuapp
3234

3335
drivers.uart.pm.enhanced_poll:
@@ -38,6 +40,7 @@ tests:
3840
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
3941
platform_exclude:
4042
- nrf54l15dk/nrf54l15/cpuapp
43+
- nrf54l20pdk/nrf54l20/cpuapp
4144
- nrf54h20dk/nrf54h20/cpuapp
4245

4346
drivers.uart.pm.int_driven:
@@ -57,6 +60,7 @@ tests:
5760
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
5861
platform_exclude:
5962
- nrf54l15dk/nrf54l15/cpuapp
63+
- nrf54l20pdk/nrf54l20/cpuapp
6064
- nrf54h20dk/nrf54h20/cpuapp
6165

6266
drivers.uart.pm.async:
@@ -82,4 +86,5 @@ tests:
8286
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
8387
platform_exclude:
8488
- nrf54l15dk/nrf54l15/cpuapp
89+
- nrf54l20pdk/nrf54l20/cpuapp
8590
- nrf54h20dk/nrf54h20/cpuapp

0 commit comments

Comments
 (0)