Skip to content

Commit 80068b9

Browse files
committed
tests: drivers: lpuart: Enable test execution on nrf54l20pdk
Add overlyas needed to run the test on nrf54l20pdk. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent a02e383 commit 80068b9

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_UART_21_ASYNC=y
7+
CONFIG_UART_21_INTERRUPT_DRIVEN=n
8+
# Do not use interrupt driven API for console UART to not enable RX.
9+
CONFIG_UART_20_INTERRUPT_DRIVEN=n
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */
2+
3+
&pinctrl {
4+
uart21_default_alt: uart21_default_alt {
5+
group1 {
6+
psels = <NRF_PSEL(UART_RX, 1, 10)>,
7+
<NRF_PSEL(UART_TX, 1, 11)>;
8+
};
9+
};
10+
11+
uart21_sleep_alt: uart21_sleep_alt {
12+
group1 {
13+
psels = <NRF_PSEL(UART_RX, 1, 10)>,
14+
<NRF_PSEL(UART_TX, 1, 11)>;
15+
low-power-enable;
16+
};
17+
};
18+
};
19+
20+
&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+
lpuart: nrf-sw-lpuart {
27+
compatible = "nordic,nrf-sw-lpuart";
28+
status = "okay";
29+
req-pin = <40>;
30+
rdy-pin = <41>;
31+
};
32+
};
33+
34+
&gpiote20 {
35+
status = "okay";
36+
};
37+
38+
&timer20 {
39+
status = "okay";
40+
interrupts = <202 0>;
41+
};
42+
43+
/ {
44+
busy-sim {
45+
compatible = "vnd,busy-sim";
46+
status = "okay";
47+
counter = <&timer20>;
48+
};
49+
};

tests/drivers/lpuart/testcase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ tests:
2020
- nrf54l15dk/nrf54l05/cpuapp
2121
- nrf54l15dk/nrf54l10/cpuapp
2222
- nrf54l15dk/nrf54l15/cpuapp
23+
- nrf54l20pdk/nrf54l20/cpuapp
2324
integration_platforms:
2425
- nrf54l15dk/nrf54l05/cpuapp
2526
- nrf54l15dk/nrf54l10/cpuapp
2627
- nrf54l15dk/nrf54l15/cpuapp
28+
- nrf54l20pdk/nrf54l20/cpuapp
2729
extra_configs:
2830
- CONFIG_TEST_LPUART_LOOPBACK=y
2931
harness: ztest
@@ -35,10 +37,12 @@ tests:
3537
- nrf54l15dk/nrf54l05/cpuapp
3638
- nrf54l15dk/nrf54l10/cpuapp
3739
- nrf54l15dk/nrf54l15/cpuapp
40+
- nrf54l20pdk/nrf54l20/cpuapp
3841
integration_platforms:
3942
- nrf54l15dk/nrf54l05/cpuapp
4043
- nrf54l15dk/nrf54l10/cpuapp
4144
- nrf54l15dk/nrf54l15/cpuapp
45+
- nrf54l20pdk/nrf54l20/cpuapp
4246
extra_configs:
4347
- CONFIG_TEST_LPUART_LOOPBACK=y
4448
- CONFIG_TEST_BUSY_SIM=y

0 commit comments

Comments
 (0)