1common:
2  tags:
3    - drivers
4    - uart
5  depends_on: gpio
6  harness: ztest
7  platform_allow:
8    - nrf52840dk/nrf52840
9    - nrf9160dk/nrf9160
10    - nrf5340dk/nrf5340/cpuapp
11    - nrf54l15pdk/nrf54l15/cpuapp
12    - nrf54h20dk/nrf54h20/cpuapp
13    - nrf54h20dk/nrf54h20/cpurad
14    - nrf52_bsim
15  integration_platforms:
16    - nrf52840dk/nrf52840
17  harness_config:
18    fixture: gpio_loopback
19tests:
20  drivers.uart.uart_mix_poll:
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=n
26
27  drivers.uart.uart_mix_poll_fifo:
28    extra_configs:
29      - CONFIG_UART_INTERRUPT_DRIVEN=y
30      - CONFIG_UART_0_INTERRUPT_DRIVEN=y
31      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
32      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n
33
34  drivers.uart.uart_mix_poll_async_api:
35    extra_configs:
36      - CONFIG_UART_ASYNC_API=y
37      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
38      - CONFIG_UART_0_ASYNC=y
39      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
40      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n
41
42  drivers.uart.uart_mix_poll_async_api_const:
43    extra_args: TEST_CONST_BUFFER=1
44    extra_configs:
45      - CONFIG_UART_ASYNC_API=y
46      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
47      - CONFIG_UART_0_ASYNC=y
48      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
49      - CONFIG_UART_0_TX_CACHE_SIZE=2
50      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n
51    tags: bsim_skip_CI # We skip a few tests to save CI time, as they give little extra coverage
52
53  drivers.uart.uart_mix_poll_with_ppi:
54    extra_configs:
55      - CONFIG_UART_INTERRUPT_DRIVEN=n
56      - CONFIG_UART_ASYNC_API=n
57      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
58      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n
59    tags: bsim_skip_CI
60
61  drivers.uart.uart_mix_poll_fifo_with_ppi:
62    extra_configs:
63      - CONFIG_UART_INTERRUPT_DRIVEN=y
64      - CONFIG_UART_0_INTERRUPT_DRIVEN=y
65      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
66      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n
67    tags: bsim_skip_CI
68
69  drivers.uart.uart_mix_poll_async_api_with_ppi:
70    extra_configs:
71      - CONFIG_UART_ASYNC_API=y
72      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
73      - CONFIG_UART_0_ASYNC=y
74      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
75      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n
76    tags: bsim_skip_CI
77
78  drivers.uart.legacy.uart_mix_poll:
79    extra_configs:
80      - CONFIG_UART_INTERRUPT_DRIVEN=n
81      - CONFIG_UART_ASYNC_API=n
82      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
83      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
84    platform_exclude:
85      - nrf54l15pdk/nrf54l15/cpuapp
86      - nrf54h20dk/nrf54h20/cpuapp
87      - nrf54h20dk/nrf54h20/cpurad
88
89  drivers.uart.legacy.uart_mix_poll_fifo:
90    extra_configs:
91      - CONFIG_UART_INTERRUPT_DRIVEN=y
92      - CONFIG_UART_0_INTERRUPT_DRIVEN=y
93      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
94      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
95    platform_exclude:
96      - nrf54l15pdk/nrf54l15/cpuapp
97      - nrf54h20dk/nrf54h20/cpuapp
98      - nrf54h20dk/nrf54h20/cpurad
99
100  drivers.uart.legacy.uart_mix_poll_async_api:
101    extra_configs:
102      - CONFIG_UART_ASYNC_API=y
103      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
104      - CONFIG_UART_0_ASYNC=y
105      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
106      - CONFIG_UART_0_NRF_HW_ASYNC=y
107      - CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
108      - CONFIG_NRFX_TIMER2=y
109      - CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=y
110    platform_exclude:
111      - nrf54l15pdk/nrf54l15/cpuapp
112      - nrf54h20dk/nrf54h20/cpuapp
113      - nrf54h20dk/nrf54h20/cpurad
114