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