Skip to content

Commit

Permalink
samples: peripheral: lpuart: Enable test execution on nrf54l20pdk
Browse files Browse the repository at this point in the history
Add overlays needed to execute lpuart tests on nrf54l20pdk.

Signed-off-by: Sebastian Głąb <[email protected]>
  • Loading branch information
nordic-segl committed Jan 8, 2025
1 parent b37144b commit bc0e4b6
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_UART_21_ASYNC=y
CONFIG_UART_21_INTERRUPT_DRIVEN=n
# Do not use interrupt driven API for console UART to not enable RX.
CONFIG_UART_20_INTERRUPT_DRIVEN=n
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */

&pinctrl {
uart21_default_alt: uart21_default_alt {
group1 {
psels = <NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_TX, 1, 11)>;
};
};

uart21_sleep_alt: uart21_sleep_alt {
group1 {
psels = <NRF_PSEL(UART_RX, 1, 10)>,
<NRF_PSEL(UART_TX, 1, 11)>;
low-power-enable;
};
};
};

&uart21 {
status = "okay";
pinctrl-0 = <&uart21_default_alt>;
pinctrl-1 = <&uart21_sleep_alt>;
pinctrl-names = "default", "sleep";
current-speed = <115200>;
lpuart: nrf-sw-lpuart {
compatible = "nordic,nrf-sw-lpuart";
status = "okay";
req-pin = <40>;
rdy-pin = <41>;
};
};

&gpiote20 {
status = "okay";
};

&uart20_default {
/* Disconnect CTS and RTS lines from pins.
* This is a workaround for increased current consumption
* (~250 uA more).
*/
group1 {
psels = <NRF_PSEL(UART_TX, 1, 4)>,
<NRF_PSEL_DISCONNECTED(UART_RTS)>;
};
group2 {
psels = <NRF_PSEL(UART_RX, 1, 5)>,
<NRF_PSEL_DISCONNECTED(UART_CTS)>;
bias-pull-up;
};
};
6 changes: 4 additions & 2 deletions samples/peripheral/lpuart/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tests:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf52dk/nrf52832
- nrf52833dk/nrf52833
Expand Down Expand Up @@ -47,6 +48,7 @@ tests:
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
extra_configs:
Expand Down Expand Up @@ -85,7 +87,7 @@ tests:
- nrf54l15dk/nrf54l15/cpuapp
platform_allow: nrf52dk/nrf52832 nrf52833dk/nrf52833 nrf52840dk/nrf52840 nrf9160dk/nrf9160/ns
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l05/cpuapp
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp nrf54l20pdk/nrf54l20/cpuapp
tags: ppk_power_measure
harness: pytest
harness_config:
Expand Down Expand Up @@ -114,7 +116,7 @@ tests:
- nrf54l15dk/nrf54l15/cpuapp
platform_allow: nrf52dk/nrf52832 nrf52833dk/nrf52833 nrf52840dk/nrf52840 nrf9160dk/nrf9160/ns
nrf5340dk/nrf5340/cpuapp nrf21540dk/nrf52840 nrf54l15dk/nrf54l05/cpuapp
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp
nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp nrf54l20pdk/nrf54l20/cpuapp
harness: console
harness_config:
fixture: gpio_loopback
Expand Down

0 comments on commit bc0e4b6

Please sign in to comment.