-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
b37144b
commit bc0e4b6
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
samples/peripheral/lpuart/boards/nrf54l20pdk_nrf54l20_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
52 changes: 52 additions & 0 deletions
52
samples/peripheral/lpuart/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters