Skip to content

Commit 731a844

Browse files
nordic-krchnordic-segl
authored andcommitted
[nrf fromtree] tests: drivers: uart: Add nrf54l09pdk_nrf54l09_cpuapp target
Add new target to the following tests: - uart_elementary - uart_async_api - uart_mix_fifo_poll - uart_pm Signed-off-by: Krzysztof Chruściński <[email protected]> Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 72d0ed7)
1 parent 4a4db64 commit 731a844

File tree

7 files changed

+146
-0
lines changed

7 files changed

+146
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ tests:
1111
filter: CONFIG_SERIAL_SUPPORT_INTERRUPT
1212
platform_allow:
1313
- nrf54h20dk/nrf54h20/cpuapp
14+
- nrf54l09pdk/nrf54l09/cpuapp
1415
- nrf54l15dk/nrf54l15/cpuapp
1516
- nrf54l20pdk/nrf54l20/cpuapp
1617
- nrf54l15dk/nrf54l15/cpuflpr
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
- nrf5340bsim/nrf5340/cpuapp
12+
- nrf54l09pdk/nrf54l09/cpuapp
1213
- nrf54l15dk/nrf54l15/cpuapp
1314
- nrf54l20pdk/nrf54l20/cpuapp
1415
- nrf54l15bsim/nrf54l15/cpuapp
@@ -80,3 +81,6 @@ tests:
8081
- nrf52840dk/nrf52840
8182
- nrf5340dk/nrf5340/cpuapp
8283
- nrf9160dk/nrf9160
84+
- nrf54l09pdk/nrf54l09/cpuapp
85+
- nrf54l09pdk/nrf54l09/cpuapp
86+
- nrf54l09pdk/nrf54l09/cpuapp
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
@@ -5,6 +5,7 @@ common:
55
harness: ztest
66
platform_allow:
77
- nrf52840dk/nrf52840
8+
- nrf54l09pdk/nrf54l09/cpuapp
89
- nrf54l15dk/nrf54l15/cpuapp
910
- nrf54l20pdk/nrf54l20/cpuapp
1011
- nrf54l15bsim/nrf54l15/cpuapp
@@ -31,6 +32,7 @@ tests:
3132
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
3233
extra_args: DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840.overlay;nrf_rx_disable.overlay"
3334
platform_exclude:
35+
- nrf54l09pdk/nrf54l09/cpuapp
3436
- nrf54l15dk/nrf54l15/cpuapp
3537
- nrf54l20pdk/nrf54l20/cpuapp
3638
- nrf54l15bsim/nrf54l15/cpuapp
@@ -45,6 +47,7 @@ tests:
4547
- CONFIG_UART_ASYNC_API=n
4648
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
4749
platform_exclude:
50+
- nrf54l09pdk/nrf54l09/cpuapp
4851
- nrf54l15dk/nrf54l15/cpuapp
4952
- nrf54l20pdk/nrf54l20/cpuapp
5053
- nrf54h20dk/nrf54h20/cpuapp
@@ -64,6 +67,7 @@ tests:
6467
- CONFIG_UART_ASYNC_API=n
6568
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
6669
platform_exclude:
70+
- nrf54l09pdk/nrf54l09/cpuapp
6771
- nrf54l15dk/nrf54l15/cpuapp
6872
- nrf54l20pdk/nrf54l20/cpuapp
6973
- nrf54h20dk/nrf54h20/cpuapp
@@ -83,6 +87,7 @@ tests:
8387
- CONFIG_UART_0_ASYNC=y
8488
- CONFIG_UART_0_ENHANCED_POLL_OUT=y
8589
platform_exclude:
90+
- nrf54l09pdk/nrf54l09/cpuapp
8691
- nrf54l15dk/nrf54l15/cpuapp
8792
- nrf54l20pdk/nrf54l20/cpuapp
8893
- nrf54h20dk/nrf54h20/cpuapp

0 commit comments

Comments
 (0)