1common:
2  depends_on: spi
3  tags:
4    - drivers
5    - spi
6  harness: ztest
7  harness_config:
8    fixture: gpio_spi_loopback
9  platform_allow:
10    - nrf52840dk/nrf52840
11    - nrf54l15dk/nrf54l15/cpuapp
12    - nrf54h20dk/nrf54h20/cpuapp
13    - nrf54h20dk/nrf54h20/cpurad
14    - nrf54h20dk/nrf54h20/cpuppr
15
16tests:
17  drivers.spi.spi_mode0:
18    extra_configs:
19      - CONFIG_TESTED_SPI_MODE=0
20    extra_args: EXTRA_DTC_OVERLAY_FILE="boards/250khz.overlay"
21    integration_platforms:
22      - nrf52840dk/nrf52840
23
24  drivers.spi.spi_mode1:
25    extra_configs:
26      - CONFIG_TESTED_SPI_MODE=1
27    extra_args: EXTRA_DTC_OVERLAY_FILE="boards/500khz.overlay"
28    integration_platforms:
29      - nrf52840dk/nrf52840
30
31  drivers.spi.spi_mode2:
32    extra_configs:
33      - CONFIG_TESTED_SPI_MODE=2
34    extra_args: EXTRA_DTC_OVERLAY_FILE="boards/1mhz.overlay"
35    integration_platforms:
36      - nrf52840dk/nrf52840
37
38  drivers.spi.spi_mode3:
39    extra_configs:
40      - CONFIG_TESTED_SPI_MODE=3
41    extra_args: EXTRA_DTC_OVERLAY_FILE="boards/2mhz.overlay"
42    integration_platforms:
43      - nrf52840dk/nrf52840
44
45  drivers.spi.spi_4MHz:
46    extra_configs:
47      - CONFIG_TESTED_SPI_MODE=2
48    extra_args: EXTRA_DTC_OVERLAY_FILE="boards/4mhz.overlay"
49    integration_platforms:
50      - nrf52840dk/nrf52840
51
52  drivers.spi.spi_8MHz:
53    extra_configs:
54      - CONFIG_TESTED_SPI_MODE=1
55    extra_args: EXTRA_DTC_OVERLAY_FILE="boards/8mhz.overlay"
56    integration_platforms:
57      - nrf52840dk/nrf52840
58
59  drivers.spi.spi_fast:
60    extra_args: DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
61    platform_exclude:
62      - nrf52840dk/nrf52840
63      - nrf54l15dk/nrf54l15/cpuapp
64      - nrf54h20dk/nrf54h20/cpurad
65      - nrf54h20dk/nrf54h20/cpuppr
66
67  drivers.spi.pm_runtime:
68    extra_configs:
69      - CONFIG_PM_DEVICE=y
70      - CONFIG_PM_DEVICE_RUNTIME=y
71    filter: CONFIG_SOC_FAMILY_NORDIC_NRF
72