Skip to content

Commit f4de094

Browse files
committed
tests: drivers: uart: enable testing for LM20 and LV10
Tests and samples for uart for L20 and L09. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent d8ceca3 commit f4de094

26 files changed

+821
-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: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
&uart20_default {
39+
/* Disconnect CTS and RTS lines from pins.
40+
* This is a workaround for increased current consumption
41+
* (~250 uA more).
42+
*/
43+
group1 {
44+
psels = <NRF_PSEL(UART_TX, 1, 4)>,
45+
<NRF_PSEL_DISCONNECTED(UART_RTS)>;
46+
};
47+
group2 {
48+
psels = <NRF_PSEL(UART_RX, 1, 5)>,
49+
<NRF_PSEL_DISCONNECTED(UART_CTS)>;
50+
bias-pull-up;
51+
};
52+
};
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: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
&uart20_default {
39+
/* Disconnect CTS and RTS lines from pins.
40+
* This is a workaround for increased current consumption
41+
* (~250 uA more).
42+
*/
43+
group1 {
44+
psels = <NRF_PSEL(UART_TX, 1, 4)>,
45+
<NRF_PSEL_DISCONNECTED(UART_RTS)>;
46+
};
47+
group2 {
48+
psels = <NRF_PSEL(UART_RX, 1, 5)>,
49+
<NRF_PSEL_DISCONNECTED(UART_CTS)>;
50+
bias-pull-up;
51+
};
52+
};

samples/peripheral/lpuart/sample.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ tests:
2323
- nrf54l15dk/nrf54l10/cpuapp
2424
- nrf54l15dk/nrf54l15/cpuapp
2525
- nrf54l20pdk/nrf54l20/cpuapp
26+
- nrf54l09pdk/nrf54l09/cpuapp
27+
- nrf54lv10apdk/nrf54lv10a/cpuapp
28+
- nrf54lm20apdk/nrf54lm20a/cpuapp
2629
integration_platforms:
2730
- nrf52dk/nrf52832
2831
- nrf52833dk/nrf52833
@@ -53,6 +56,9 @@ tests:
5356
- nrf54l15dk/nrf54l10/cpuapp
5457
- nrf54l15dk/nrf54l15/cpuapp
5558
- nrf54l20pdk/nrf54l20/cpuapp
59+
- nrf54l09pdk/nrf54l09/cpuapp
60+
- nrf54lv10apdk/nrf54lv10a/cpuapp
61+
- nrf54lm20apdk/nrf54lm20a/cpuapp
5662
integration_platforms:
5763
- nrf52840dk/nrf52840
5864
extra_configs:
@@ -100,6 +106,9 @@ tests:
100106
- nrf54l15dk/nrf54l10/cpuapp
101107
- nrf54l15dk/nrf54l15/cpuapp
102108
- nrf54l20pdk/nrf54l20/cpuapp
109+
- nrf54l09pdk/nrf54l09/cpuapp
110+
- nrf54lv10apdk/nrf54lv10a/cpuapp
111+
- nrf54lm20apdk/nrf54lm20a/cpuapp
103112
tags: ppk_power_measure
104113
harness: pytest
105114
harness_config:
@@ -137,6 +146,9 @@ tests:
137146
- nrf54l15dk/nrf54l10/cpuapp
138147
- nrf54l15dk/nrf54l15/cpuapp
139148
- nrf54l20pdk/nrf54l20/cpuapp
149+
- nrf54l09pdk/nrf54l09/cpuapp
150+
- nrf54lv10apdk/nrf54lv10a/cpuapp
151+
- nrf54lm20apdk/nrf54lm20a/cpuapp
140152
harness: console
141153
harness_config:
142154
fixture: gpio_loopback
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+
};
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@ tests:
2626
- nrf54l15dk/nrf54l15/cpuapp
2727
- nrf54l20pdk/nrf54l20/cpuapp
2828
- nrf54l09pdk/nrf54l09/cpuapp
29+
- nrf54lv10apdk/nrf54lv10a/cpuapp
30+
- nrf54lm20apdk/nrf54lm20a/cpuapp
2931
- nrf7120pdk/nrf7120/cpuapp
3032
integration_platforms:
3133
- nrf54l15dk/nrf54l05/cpuapp
3234
- nrf54l15dk/nrf54l10/cpuapp
3335
- nrf54l15dk/nrf54l15/cpuapp
3436
- nrf54l20pdk/nrf54l20/cpuapp
3537
- nrf54l09pdk/nrf54l09/cpuapp
38+
- nrf54lv10apdk/nrf54lv10a/cpuapp
39+
- nrf54lm20apdk/nrf54lm20a/cpuapp
3640
- nrf7120pdk/nrf7120/cpuapp
3741
extra_configs:
3842
- CONFIG_TEST_LPUART_LOOPBACK=y
@@ -47,13 +51,17 @@ tests:
4751
- nrf54l15dk/nrf54l15/cpuapp
4852
- nrf54l20pdk/nrf54l20/cpuapp
4953
- nrf54l09pdk/nrf54l09/cpuapp
54+
- nrf54lv10apdk/nrf54lv10a/cpuapp
55+
- nrf54lm20apdk/nrf54lm20a/cpuapp
5056
- nrf7120pdk/nrf7120/cpuapp
5157
integration_platforms:
5258
- nrf54l15dk/nrf54l05/cpuapp
5359
- nrf54l15dk/nrf54l10/cpuapp
5460
- nrf54l15dk/nrf54l15/cpuapp
5561
- nrf54l20pdk/nrf54l20/cpuapp
5662
- nrf54l09pdk/nrf54l09/cpuapp
63+
- nrf54lv10apdk/nrf54lv10a/cpuapp
64+
- nrf54lm20apdk/nrf54lm20a/cpuapp
5765
- nrf7120pdk/nrf7120/cpuapp
5866
extra_configs:
5967
- CONFIG_TEST_LPUART_LOOPBACK=y

0 commit comments

Comments
 (0)