Skip to content

Commit 90b654e

Browse files
nordic-krchcarlescufi
authored andcommitted
tests: drivers: uart: uart_mix_fifo_poll: Add nrf54h20dk overlays
Add overlays for nrf54h20dk (cpuapp and cpurad). Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent adeb19b commit 90b654e

File tree

4 files changed

+77
-0
lines changed

4 files changed

+77
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
uart137_default_alt: uart137_default_alt {
5+
group1 {
6+
psels = <NRF_PSEL(UART_TX, 0, 6)>,
7+
<NRF_PSEL(UART_RX, 0, 7)>,
8+
<NRF_PSEL(UART_RTS, 0, 8)>,
9+
<NRF_PSEL(UART_CTS, 0, 9)>;
10+
};
11+
};
12+
13+
uart137_sleep_alt: uart137_sleep_alt {
14+
group1 {
15+
psels = <NRF_PSEL(UART_TX, 0, 6)>,
16+
<NRF_PSEL(UART_RX, 0, 7)>,
17+
<NRF_PSEL(UART_RTS, 0, 8)>,
18+
<NRF_PSEL(UART_CTS, 0, 9)>;
19+
low-power-enable;
20+
};
21+
};
22+
};
23+
24+
dut: &uart137 {
25+
status = "okay";
26+
pinctrl-0 = <&uart137_default_alt>;
27+
pinctrl-1 = <&uart137_sleep_alt>;
28+
pinctrl-names = "default", "sleep";
29+
current-speed = <115200>;
30+
hw-flow-control;
31+
};
32+
33+
/* Use timer137 as only this one can generate interrupts on cpusys. */
34+
counter_dev: &timer137 {
35+
status = "okay";
36+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include "nrf54h20dk_nrf54h20_common.dtsi"
4+
5+
&dut {
6+
memory-regions = <&cpuapp_dma_region>;
7+
};
8+
9+
&grtc {
10+
interrupts = <109 2>;
11+
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include "nrf54h20dk_nrf54h20_common.dtsi"
4+
5+
&cpurad_dma_region {
6+
/* Default space is not enough. */
7+
reg = <0x1e80 0x100>;
8+
};
9+
10+
&dut {
11+
memory-regions = <&cpurad_dma_region>;
12+
};
13+
14+
&grtc {
15+
interrupts = <109 2>;
16+
};

tests/drivers/uart/uart_mix_fifo_poll/testcase.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ common:
99
- nrf9160dk/nrf9160
1010
- nrf5340dk/nrf5340/cpuapp
1111
- nrf54l15pdk/nrf54l15/cpuapp
12+
- nrf54h20dk/nrf54h20/cpuapp
13+
- nrf54h20dk/nrf54h20/cpurad
1214
- nrf52_bsim
1315
integration_platforms:
1416
- nrf52840dk/nrf52840
@@ -79,13 +81,21 @@ tests:
7981
- CONFIG_UART_ASYNC_API=n
8082
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
8183
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
84+
platform_exclude:
85+
- nrf54l15pdk/nrf54l15/cpuapp
86+
- nrf54h20dk/nrf54h20/cpuapp
87+
- nrf54h20dk/nrf54h20/cpurad
8288

8389
drivers.uart.legacy.uart_mix_poll_fifo:
8490
extra_configs:
8591
- CONFIG_UART_INTERRUPT_DRIVEN=y
8692
- CONFIG_UART_0_INTERRUPT_DRIVEN=y
8793
- CONFIG_UART_0_ENHANCED_POLL_OUT=n
8894
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
95+
platform_exclude:
96+
- nrf54l15pdk/nrf54l15/cpuapp
97+
- nrf54h20dk/nrf54h20/cpuapp
98+
- nrf54h20dk/nrf54h20/cpurad
8999

90100
drivers.uart.legacy.uart_mix_poll_async_api:
91101
extra_configs:
@@ -97,3 +107,7 @@ tests:
97107
- CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
98108
- CONFIG_NRFX_TIMER2=y
99109
- CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
110+
platform_exclude:
111+
- nrf54l15pdk/nrf54l15/cpuapp
112+
- nrf54h20dk/nrf54h20/cpuapp
113+
- nrf54h20dk/nrf54h20/cpurad

0 commit comments

Comments
 (0)