1common:
2  platform_exclude:
3    - stamp_c3
4    - wio_terminal
5    - xiao_esp32c3
6  tags:
7    - drivers
8    - uart
9tests:
10  drivers.uart.async_api:
11    filter: CONFIG_SERIAL_SUPPORT_ASYNC and not CONFIG_UART_MCUX_LPUART
12    harness: ztest
13    harness_config:
14      fixture: gpio_loopback
15    depends_on: gpio
16  drivers.uart.wide:
17    filter: CONFIG_SERIAL_SUPPORT_ASYNC and not CONFIG_UART_MCUX_LPUART
18    harness: ztest
19    harness_config:
20      fixture: gpio_loopback
21    depends_on: gpio
22    extra_configs:
23      - CONFIG_UART_WIDE_DATA=y
24    arch_allow: arm
25    platform_allow: nucleo_h743zi
26    integration_platforms:
27      - nucleo_h743zi
28  drivers.uart.async_api.nrf_uart:
29    filter: CONFIG_SERIAL_SUPPORT_ASYNC
30    harness: ztest
31    platform_allow: nrf52840dk/nrf52840
32    harness_config:
33      fixture: gpio_loopback
34    depends_on: gpio
35    extra_args: DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840.overlay;boards/nrf_uart.overlay"
36    integration_platforms:
37      - nrf52840dk/nrf52840
38  drivers.uart.async_api.rtt:
39    filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_HAS_SEGGER_RTT
40      and not CONFIG_UART_MCUX_LPUART and not CONFIG_UART_MCUX_FLEXCOMM
41    extra_args: DTC_OVERLAY_FILE=boards/segger_rtt.overlay
42    extra_configs:
43      - CONFIG_USE_SEGGER_RTT=y
44      - CONFIG_UART_RTT=y
45    platform_exclude:
46      - xmc45_relax_kit
47      - xmc47_relax_kit
48    build_only: true
49    integration_platforms:
50      - qemu_cortex_m0
51  drivers.uart.async_api.lpuart:
52    filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_UART_MCUX_LPUART and not CONFIG_CPU_HAS_DCACHE
53    harness: ztest
54    depends_on: dma
55  drivers.uart.async_api.lpuart.rt_nocache:
56    filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_UART_MCUX_LPUART and CONFIG_CPU_HAS_DCACHE
57    harness: ztest
58    depends_on: dma
59    extra_configs:
60      - CONFIG_DCACHE=y
61      - CONFIG_NOCACHE_MEMORY=y
62      - CONFIG_USERSPACE=n
63  drivers.uart.async_api.sam0:
64    filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_SOC_FAMILY_ATMEL_SAM0
65    platform_allow:
66      - samc21n_xpro
67      - samd21_xpro
68      - saml21_xpro
69      - samr21_xpro
70      - samr34_xpro
71      - same54_xpro
72    extra_configs:
73      - CONFIG_UART_SAM0_ASYNC=y
74      - CONFIG_DMA=y
75    build_only: true
76    integration_platforms:
77      - samc21n_xpro
78  drivers.uart.async_api.nocache_mem:
79    # nocache memory region is defined by the linker
80    filter: CONFIG_SERIAL_SUPPORT_ASYNC and CONFIG_CPU_HAS_DCACHE
81    harness: ztest
82    harness_config:
83      fixture: gpio_loopback
84    depends_on: gpio
85    platform_allow:
86      - nucleo_f746zg
87      - nucleo_h723zg
88    extra_args:
89      - EXTRA_CONF_FILE=stm32_nocache_mem.conf
90  drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg:
91    # nocache memory region is defined in DT
92    harness: ztest
93    harness_config:
94      fixture: gpio_loopback
95    depends_on: gpio
96    platform_allow:
97      - nucleo_f746zg
98    extra_args:
99      - DTC_OVERLAY_FILE="boards/nucleo_f746zg.overlay;boards/nucleo_f746zg_nocachemem.overlay"
100      - EXTRA_CONF_FILE=stm32_nocache_mem_dt.conf
101    extra_configs:
102      - CONFIG_TEST_USERSPACE=n
103  drivers.uart.async_api.nocache_mem_dt.nucleo_h723zg:
104    # nocache memory region is defined in DT
105    harness: ztest
106    harness_config:
107      fixture: gpio_loopback
108    depends_on: gpio
109    platform_allow:
110      - nucleo_h723zg
111    extra_args:
112      - DTC_OVERLAY_FILE="boards/nucleo_h723zg.overlay;boards/nucleo_h723zg_nocachemem.overlay"
113      - EXTRA_CONF_FILE=stm32_nocache_mem_dt.conf
114