-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: lpuart: Enable test execution on nrf54l20pdk
Add overlyas needed to run the test on nrf54l20pdk. Signed-off-by: Sebastian Głąb <[email protected]>
- Loading branch information
1 parent
0543ac7
commit b37144b
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
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 |
49 changes: 49 additions & 0 deletions
49
tests/drivers/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,49 @@ | ||
/* 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"; | ||
}; | ||
|
||
&timer20 { | ||
status = "okay"; | ||
interrupts = <202 0>; | ||
}; | ||
|
||
/ { | ||
busy-sim { | ||
compatible = "vnd,busy-sim"; | ||
status = "okay"; | ||
counter = <&timer20>; | ||
}; | ||
}; |
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