Skip to content

Commit 7ce60ae

Browse files
nordic-seglnordic-piks
authored andcommitted
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 eb97e7b commit 7ce60ae

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

samples/peripheral/lpuart/README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The sample also requires the following pins to be shorted:
3131
- nRF21540 DK
3232
- nRF5340 DK pins
3333
- nRF54L15 DK pins
34+
- nRF54L20 DK pins
3435
- nRF9160 DK pins
3536
* - Request-Response Pins
3637
- P0.24-P0.25
@@ -39,6 +40,7 @@ The sample also requires the following pins to be shorted:
3940
- P1.07-P1.08
4041
- P1.14-P1.15
4142
- P1.08-P1.09
43+
- P1.08-P1.09
4244
- P0.12-P0.13
4345
* - UART RX-TX Pins
4446
- P0.22-P0.23
@@ -47,6 +49,7 @@ The sample also requires the following pins to be shorted:
4749
- P1.05-P1.06
4850
- P1.12-P1.13
4951
- P1.10-P1.11
52+
- P1.10-P1.11
5053
- P0.10-P0.11
5154

5255
Additionally, it requires a logic analyzer.
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tests:
2222
- nrf54l15dk/nrf54l05/cpuapp
2323
- nrf54l15dk/nrf54l10/cpuapp
2424
- nrf54l15dk/nrf54l15/cpuapp
25+
- nrf54l20pdk/nrf54l20/cpuapp
2526
integration_platforms:
2627
- nrf52dk/nrf52832
2728
- nrf52833dk/nrf52833
@@ -51,6 +52,7 @@ tests:
5152
- nrf54l15dk/nrf54l05/cpuapp
5253
- nrf54l15dk/nrf54l10/cpuapp
5354
- nrf54l15dk/nrf54l15/cpuapp
55+
- nrf54l20pdk/nrf54l20/cpuapp
5456
integration_platforms:
5557
- nrf52840dk/nrf52840
5658
extra_configs:
@@ -97,6 +99,7 @@ tests:
9799
- nrf54l15dk/nrf54l05/cpuapp
98100
- nrf54l15dk/nrf54l10/cpuapp
99101
- nrf54l15dk/nrf54l15/cpuapp
102+
- nrf54l20pdk/nrf54l20/cpuapp
100103
tags: ppk_power_measure
101104
harness: pytest
102105
harness_config:
@@ -133,6 +136,7 @@ tests:
133136
- nrf54l15dk/nrf54l05/cpuapp
134137
- nrf54l15dk/nrf54l10/cpuapp
135138
- nrf54l15dk/nrf54l15/cpuapp
139+
- nrf54l20pdk/nrf54l20/cpuapp
136140
harness: console
137141
harness_config:
138142
fixture: gpio_loopback

0 commit comments

Comments
 (0)