Skip to content

Commit 78b5ab8

Browse files
nordic-seglrlubos
authored andcommitted
samples: peripheral: lpuart: Enable sample on PCA10197
Add overlay required to run the sample on [email protected] available on PCA10197. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 124c08f commit 78b5ab8

File tree

3 files changed

+67
-6
lines changed

3 files changed

+67
-6
lines changed

samples/peripheral/lpuart/boards/nrf54lm20apdk_nrf54lm20a_cpuapp.overlay

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
/* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */
22

3+
/* Two GPIO loopbacks are required:
4+
* Request-Response Pins: P1.15 - P1.16,
5+
* UART RX-TX Pins: P1.18 - P1.24
6+
*/
7+
38
&pinctrl {
49
uart21_default_alt: uart21_default_alt {
510
group1 {
6-
psels = <NRF_PSEL(UART_RX, 1, 10)>,
7-
<NRF_PSEL(UART_TX, 1, 11)>;
11+
psels = <NRF_PSEL(UART_RX, 1, 18)>,
12+
<NRF_PSEL(UART_TX, 1, 24)>;
813
};
914
};
1015

1116
uart21_sleep_alt: uart21_sleep_alt {
1217
group1 {
13-
psels = <NRF_PSEL(UART_RX, 1, 10)>,
14-
<NRF_PSEL(UART_TX, 1, 11)>;
18+
psels = <NRF_PSEL(UART_RX, 1, 18)>,
19+
<NRF_PSEL(UART_TX, 1, 24)>;
1520
low-power-enable;
1621
};
1722
};
@@ -26,8 +31,8 @@
2631
lpuart: nrf-sw-lpuart {
2732
compatible = "nordic,nrf-sw-lpuart";
2833
status = "okay";
29-
req-pin = <40>;
30-
rdy-pin = <41>;
34+
req-pin = <47>;
35+
rdy-pin = <48>;
3136
};
3237
};
3338

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
@@ -26,6 +26,7 @@ tests:
2626
- nrf54l09pdk/nrf54l09/cpuapp
2727
- nrf54lv10apdk/nrf54lv10a/cpuapp
2828
- nrf54lm20apdk/nrf54lm20a/cpuapp
29+
- [email protected]/nrf54lm20a/cpuapp
2930
integration_platforms:
3031
- nrf52dk/nrf52832
3132
- nrf52833dk/nrf52833
@@ -59,6 +60,7 @@ tests:
5960
- nrf54l09pdk/nrf54l09/cpuapp
6061
- nrf54lv10apdk/nrf54lv10a/cpuapp
6162
- nrf54lm20apdk/nrf54lm20a/cpuapp
63+
- [email protected]/nrf54lm20a/cpuapp
6264
integration_platforms:
6365
- nrf52840dk/nrf52840
6466
extra_configs:
@@ -109,6 +111,7 @@ tests:
109111
- nrf54l09pdk/nrf54l09/cpuapp
110112
- nrf54lv10apdk/nrf54lv10a/cpuapp
111113
- nrf54lm20apdk/nrf54lm20a/cpuapp
114+
- [email protected]/nrf54lm20a/cpuapp
112115
tags: ppk_power_measure
113116
harness: pytest
114117
harness_config:
@@ -149,6 +152,7 @@ tests:
149152
- nrf54l09pdk/nrf54l09/cpuapp
150153
- nrf54lv10apdk/nrf54lv10a/cpuapp
151154
- nrf54lm20apdk/nrf54lm20a/cpuapp
155+
- [email protected]/nrf54lm20a/cpuapp
152156
harness: console
153157
harness_config:
154158
fixture: gpio_loopback

0 commit comments

Comments
 (0)