Skip to content

Commit b9c74d5

Browse files
nordic-seglnordicjm
authored andcommitted
[nrf fromtree] tests: drivers: uart: uart_async_api: Cleanup after nRF54LM20 rename
Remove duplicated test configuration after nrf54l20pdk/nrf54l20/cpuxxx was renamed to nrf54lm20dk/nrf54lm20a/cpuxxx. Add test on fast instance uart00 on nrf54lm20dk. Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit e5a9c35)
1 parent b6aca3f commit b9c74d5

File tree

5 files changed

+57
-26
lines changed

5 files changed

+57
-26
lines changed

tests/drivers/uart/uart_async_api/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/drivers/uart/uart_async_api/boards/nrf54lm20dk_nrf54lm20_common.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
/* Test requires following loopback:
28
* P1.13 - P1.14
39
*/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_VAR_LENGTH_BUFFER_TEST_BUADRATE_LIMIT=57600
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Test requires following loopback:
8+
* P2.02 - P2.00
9+
*/
10+
11+
&pinctrl {
12+
uart00_default_alt: uart00_default_alt {
13+
group1 {
14+
psels = <NRF_PSEL(UART_TX, 2, 2)>;
15+
};
16+
17+
group2 {
18+
psels = <NRF_PSEL(UART_RX, 2, 0)>;
19+
bias-pull-up;
20+
};
21+
};
22+
23+
uart00_sleep_alt: uart00_sleep_alt {
24+
group1 {
25+
psels = <NRF_PSEL(UART_TX, 2, 2)>,
26+
<NRF_PSEL(UART_RX, 2, 0)>;
27+
low-power-enable;
28+
};
29+
};
30+
};
31+
32+
dut: &uart00 {
33+
status = "okay";
34+
pinctrl-0 = <&uart00_default_alt>;
35+
pinctrl-1 = <&uart00_sleep_alt>;
36+
pinctrl-names = "default", "sleep";
37+
current-speed = <4000000>;
38+
};
39+
40+
&gpio2 {
41+
status = "okay";
42+
};

tests/drivers/uart/uart_async_api/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ tests:
1818
- platform:mimxrt685_evk/mimxrt685s/cm33:"DTC_OVERLAY_FILE=nxp/dut_flexcomm4.overlay"
1919
- platform:mimxrt595_evk/mimxrt595s/cm33:"DTC_OVERLAY_FILE=nxp/dut_flexcomm12.overlay"
2020
- platform:frdm_rw612/rw612:"DTC_OVERLAY_FILE=nxp/dut_lpc_flexcomm0.overlay"
21+
drivers.uart.async_api.fast:
22+
harness: ztest
23+
harness_config:
24+
fixture: uart_fast_loopback
25+
platform_allow:
26+
- nrf54lm20dk/nrf54lm20a/cpuapp
27+
extra_args:
28+
- DTC_OVERLAY_FILE="boards/nrf54lm20dk_nrf54lm20a_cpuapp_uart00.overlay"
2129
drivers.uart.wide:
2230
filter: CONFIG_SERIAL_SUPPORT_ASYNC and not CONFIG_UART_MCUX_LPUART
2331
harness: ztest

0 commit comments

Comments
 (0)