1common:
2  tags:
3    - drivers
4    - uart
5  harness: ztest
6  platform_allow:
7    - nrf52840dk/nrf52840
8    - nrf54l15dk/nrf54l15/cpuapp
9    - nrf54l20pdk/nrf54l20/cpuapp
10    - nrf54l15bsim/nrf54l15/cpuapp
11    - nrf54h20dk/nrf54h20/cpuapp
12    - nrf52_bsim
13    - nrf5340bsim/nrf5340/cpuapp
14  harness_config:
15    fixture: gpio_loopback
16  depends_on: gpio
17  integration_platforms:
18    - nrf52840dk/nrf52840
19tests:
20  drivers.uart.pm:
21    extra_configs:
22      - CONFIG_UART_INTERRUPT_DRIVEN=n
23      - CONFIG_UART_ASYNC_API=n
24      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
25      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
26
27  drivers.uart.pm.no_rxpin:
28    extra_configs:
29      - CONFIG_UART_INTERRUPT_DRIVEN=n
30      - CONFIG_UART_ASYNC_API=n
31      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
32      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
33    extra_args: DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840.overlay;nrf_rx_disable.overlay"
34    platform_exclude:
35      - nrf54l15dk/nrf54l15/cpuapp
36      - nrf54l20pdk/nrf54l20/cpuapp
37      - nrf54l15bsim/nrf54l15/cpuapp
38      - nrf54h20dk/nrf54h20/cpuapp
39
40  drivers.uart.pm.enhanced_poll:
41    extra_configs:
42      - CONFIG_UART_INTERRUPT_DRIVEN=n
43      - CONFIG_UART_ASYNC_API=n
44      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
45      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
46    platform_exclude:
47      - nrf54l15dk/nrf54l15/cpuapp
48      - nrf54l20pdk/nrf54l20/cpuapp
49      - nrf54h20dk/nrf54h20/cpuapp
50
51  drivers.uart.pm.int_driven:
52    extra_configs:
53      - CONFIG_UART_INTERRUPT_DRIVEN=y
54      - CONFIG_UART_0_INTERRUPT_DRIVEN=y
55      - CONFIG_UART_ASYNC_API=n
56      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
57      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
58
59  drivers.uart.pm.int_driven.enhanced_poll:
60    extra_configs:
61      - CONFIG_UART_INTERRUPT_DRIVEN=y
62      - CONFIG_UART_0_INTERRUPT_DRIVEN=y
63      - CONFIG_UART_ASYNC_API=n
64      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
65      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
66    platform_exclude:
67      - nrf54l15dk/nrf54l15/cpuapp
68      - nrf54l20pdk/nrf54l20/cpuapp
69      - nrf54h20dk/nrf54h20/cpuapp
70
71  drivers.uart.pm.async:
72    extra_configs:
73      - CONFIG_UART_INTERRUPT_DRIVEN=n
74      - CONFIG_UART_ASYNC_API=y
75      - CONFIG_UART_0_ASYNC=y
76      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
77      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
78
79  drivers.uart.pm.async.enhanced_poll:
80    extra_configs:
81      - CONFIG_UART_INTERRUPT_DRIVEN=n
82      - CONFIG_UART_ASYNC_API=y
83      - CONFIG_UART_0_ASYNC=y
84      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
85      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
86    platform_exclude:
87      - nrf54l15dk/nrf54l15/cpuapp
88      - nrf54l20pdk/nrf54l20/cpuapp
89      - nrf54h20dk/nrf54h20/cpuapp
90