Skip to content

Commit 3b14ceb

Browse files
committed
samples: peripheral: lpuart: Enable test execution on nrf54l20pdk
Add overlays needed to execute lpuart tests on nrf54l20pdk. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 80068b9 commit 3b14ceb

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
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+
};

samples/peripheral/lpuart/sample.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ tests:
1818
- nrf54l15dk/nrf54l05/cpuapp
1919
- nrf54l15dk/nrf54l10/cpuapp
2020
- nrf54l15dk/nrf54l15/cpuapp
21+
- nrf54l20pdk/nrf54l20/cpuapp
2122
integration_platforms:
2223
- nrf52dk/nrf52832
2324
- nrf52833dk/nrf52833
@@ -28,6 +29,7 @@ tests:
2829
- nrf54l15dk/nrf54l05/cpuapp
2930
- nrf54l15dk/nrf54l10/cpuapp
3031
- nrf54l15dk/nrf54l15/cpuapp
32+
- nrf54l20pdk/nrf54l20/cpuapp
3133
platform_exclude: native_sim
3234
tags: ppk_power_measure
3335
harness: pytest
@@ -47,6 +49,7 @@ tests:
4749
- nrf54l15dk/nrf54l05/cpuapp
4850
- nrf54l15dk/nrf54l10/cpuapp
4951
- nrf54l15dk/nrf54l15/cpuapp
52+
- nrf54l20pdk/nrf54l20/cpuapp
5053
integration_platforms:
5154
- nrf52840dk/nrf52840
5255
extra_configs:
@@ -83,9 +86,10 @@ tests:
8386
- nrf54l15dk/nrf54l05/cpuapp
8487
- nrf54l15dk/nrf54l10/cpuapp
8588
- nrf54l15dk/nrf54l15/cpuapp
89+
- nrf54l20pdk/nrf54l20/cpuapp
8690
platform_allow: nrf52dk/nrf52832 nrf52833dk/nrf52833 nrf52840dk/nrf52840 nrf9160dk/nrf9160/ns
8791
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l05/cpuapp
88-
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp
92+
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp nrf54l20pdk/nrf54l20/cpuapp
8993
tags: ppk_power_measure
9094
harness: pytest
9195
harness_config:
@@ -112,9 +116,10 @@ tests:
112116
- nrf54l15dk/nrf54l05/cpuapp
113117
- nrf54l15dk/nrf54l10/cpuapp
114118
- nrf54l15dk/nrf54l15/cpuapp
119+
- nrf54l20pdk/nrf54l20/cpuapp
115120
platform_allow: nrf52dk/nrf52832 nrf52833dk/nrf52833 nrf52840dk/nrf52840 nrf9160dk/nrf9160/ns
116121
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l05/cpuapp
117-
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp
122+
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp nrf54l20pdk/nrf54l20/cpuapp
118123
harness: console
119124
harness_config:
120125
fixture: gpio_loopback

0 commit comments

Comments
 (0)