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  integration_platforms:
12    - nrf52840dk_nrf52840
13  harness_config:
14    fixture: gpio_loopback
15tests:
16  drivers.uart.uart_mix_poll:
17    extra_configs:
18      - CONFIG_UART_INTERRUPT_DRIVEN=n
19      - CONFIG_UART_ASYNC_API=n
20      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
21
22  drivers.uart.uart_mix_poll_fifo:
23    extra_configs:
24      - CONFIG_UART_INTERRUPT_DRIVEN=y
25      - CONFIG_UART_0_INTERRUPT_DRIVEN=y
26      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
27
28  drivers.uart.uart_mix_poll_async_api:
29    extra_configs:
30      - CONFIG_UART_ASYNC_API=y
31      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
32      - CONFIG_UART_0_ASYNC=y
33      - CONFIG_UART_0_NRF_HW_ASYNC=y
34      - CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
35      - CONFIG_NRFX_TIMER2=y
36      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
37
38  drivers.uart.uart_mix_poll_async_api_const:
39    extra_args: TEST_CONST_BUFFER=1
40    extra_configs:
41      - CONFIG_UART_ASYNC_API=y
42      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
43      - CONFIG_UART_0_ASYNC=y
44      - CONFIG_UART_0_NRF_HW_ASYNC=y
45      - CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
46      - CONFIG_NRFX_TIMER2=y
47      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
48      - CONFIG_UART_ASYNC_TX_CACHE_SIZE=2
49
50  drivers.uart.uart_mix_poll_async_api_low_power:
51    extra_configs:
52      - CONFIG_UART_ASYNC_API=y
53      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
54      - CONFIG_UART_0_ASYNC=y
55      - CONFIG_UART_0_NRF_HW_ASYNC=y
56      - CONFIG_UART_0_NRF_ASYNC_LOW_POWER=y
57      - CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
58      - CONFIG_NRFX_TIMER2=y
59      - CONFIG_UART_0_ENHANCED_POLL_OUT=n
60
61  drivers.uart.uart_mix_poll_with_ppi:
62    extra_configs:
63      - CONFIG_UART_INTERRUPT_DRIVEN=n
64      - CONFIG_UART_ASYNC_API=n
65      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
66
67  drivers.uart.uart_mix_poll_fifo_with_ppi:
68    extra_configs:
69      - CONFIG_UART_INTERRUPT_DRIVEN=y
70      - CONFIG_UART_0_INTERRUPT_DRIVEN=y
71      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
72
73  drivers.uart.uart_mix_poll_async_api_with_ppi:
74    extra_configs:
75      - CONFIG_UART_ASYNC_API=y
76      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
77      - CONFIG_UART_0_ASYNC=y
78      - CONFIG_UART_0_NRF_HW_ASYNC=y
79      - CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
80      - CONFIG_NRFX_TIMER2=y
81      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
82
83  drivers.uart.uart_mix_poll_async_api_with_ppi_low_power:
84    extra_configs:
85      - CONFIG_UART_ASYNC_API=y
86      - CONFIG_UART_0_INTERRUPT_DRIVEN=n
87      - CONFIG_UART_0_ASYNC=y
88      - CONFIG_UART_0_NRF_HW_ASYNC=y
89      - CONFIG_UART_0_NRF_ASYNC_LOW_POWER=y
90      - CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
91      - CONFIG_NRFX_TIMER2=y
92      - CONFIG_UART_0_ENHANCED_POLL_OUT=y
93