1common:
2  tags:
3    - drivers
4    - gpio
5  depends_on: gpio
6  harness: ztest
7  harness_config:
8    fixture: gpio_loopback
9
10tests:
11  drivers.gpio.2pin:
12    min_flash: 34
13    filter: dt_compat_enabled("test-gpio-basic-api") and not dt_compat_enabled("arduino-header-r3")
14
15  drivers.gpio.nrf_sense_edge:
16    platform_allow:
17      - nrf52840dk/nrf52840
18      - nrf52_bsim
19      - nrf5340bsim/nrf5340/cpuapp
20      - nrf5340bsim/nrf5340/cpunet
21      - nrf54l15bsim/nrf54l15/cpuapp
22    integration_platforms:
23      - nrf52840dk/nrf52840
24    extra_args: "DTC_OVERLAY_FILE=boards/nrf52840dk_nrf52840.overlay;\
25                 boards/nrf52840dk_nrf52840_sense_edge.overlay"
26
27  drivers.gpio.nrf_sense_edge.nrf54l:
28    platform_allow:
29      - nrf54l15dk/nrf54l15/cpuapp
30      - nrf54l15dk/nrf54l15/cpuapp/ns
31    extra_args: "EXTRA_DTC_OVERLAY_FILE=boards/nrf54l_sense_edge.overlay"
32
33  drivers.gpio.mr_canhubk3_wkpu:
34    platform_allow: mr_canhubk3
35    extra_args: "DTC_OVERLAY_FILE=boards/mr_canhubk3_wkpu.overlay"
36
37  drivers.gpio.2pin_ke17z_fgpio:
38    min_flash: 34
39    filter: dt_compat_enabled("test-gpio-basic-api")
40    platform_allow:
41      - frdm_ke17z
42      - frdm_ke17z512
43    extra_args: "DTC_OVERLAY_FILE=boards/frdm_ke17z_fgpio.overlay"
44    harness_config:
45      fixture: fgpio_loopback
46
47  drivers.gpio.2pin_arduino:
48    min_flash: 34
49    depends_on:
50      - gpio
51      - arduino_gpio
52    filter: >
53      dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
54      and not CONFIG_SOC_FAMILY_STM32
55    extra_args: "DTC_OVERLAY_FILE=arduino_D2D3.overlay"
56    extra_configs:
57      - CONFIG_SKIP_PULL_TEST=y
58    integration_platforms:
59      - frdm_k64f
60    platform_exclude:
61      # below boards are customized
62      - frdm_mcxe247
63      - frdm_mcxe31b
64      - mimxrt595_evk/mimxrt595s/cm33
65      - mimxrt1020_evk
66      - mimxrt1040_evk
67      - mimxrt1060_evk@A/mimxrt1062/qspi
68      - mimxrt1060_evk@B/mimxrt1062/qspi
69      - mimxrt1060_evk@C/mimxrt1062/qspi
70      - lpcxpresso55s69/lpc55s69/cpu0
71      - lpcxpresso55s36
72      - frdm_mcxw23
73      - mcxw23_evk
74  drivers.gpio.2pin_arduino_customized:
75    min_flash: 34
76    depends_on:
77      - gpio
78      - arduino_gpio
79    filter: dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
80    platform_allow:
81      - frdm_mcxe31b
82      - mimxrt595_evk/mimxrt595s/cm33
83      - mimxrt1020_evk
84      - mimxrt1040_evk
85      - mimxrt1060_evk/mimxrt1062/qspi
86      - lpcxpresso55s69/lpc55s69/cpu0
87      - lpcxpresso55s36
88      - nucleo_wb09ke
89      - nucleo_wb05kz
90      - nucleo_wba55cg
91      - nucleo_h745zi_q/stm32h745xx/m7
92      - nucleo_h745zi_q/stm32h745xx/m4
93      - stm32mp257f_ev1/stm32mp257fxx/m33
94      - frdm_mcxw23
95      - mcxw23_evk
96    integration_platforms:
97      - mimxrt595_evk/mimxrt595s/cm33
98  drivers.gpio.st_2pin_arduino:
99    min_flash: 34
100    depends_on:
101      - gpio
102      - arduino_gpio
103    filter: >
104      dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3")
105      and CONFIG_SOC_FAMILY_STM32
106    extra_args: "DTC_OVERLAY_FILE=arduino_D9D10.overlay"
107    integration_platforms:
108      - disco_l475_iot1
109    platform_exclude:
110      # below boards need customized
111      - nucleo_wb05kz
112      - nucleo_wb09ke
113      - nucleo_wba55cg
114  drivers.gpio.2pin_aw9523b:
115    depends_on:
116      - gpio
117      - arduino_gpio
118      - i2c
119      - arduino_i2c
120    harness_config:
121      fixture: aw9523b_on_arduino_header
122    filter: dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3") and
123            dt_nodelabel_enabled("arduino_i2c")
124    extra_dtc_overlay_files:
125      - boards/aw9523b_on_arduino_header.overlay
126  drivers.gpio.2pin_siwx91x_uulp:
127    platform_allow:
128      - siwx917_rb4338a
129    extra_args: "DTC_OVERLAY_FILE=boards/siwx917_rb4338a-uulp.overlay"
130  drivers.gpio.2pin.nrf54h20_cpurad_gpiote0:
131    harness_config:
132      fixture: i2s_loopback # Loopback includes the pin pair needed for that test
133    platform_allow:
134      - nrf54h20dk/nrf54h20/cpurad
135    extra_args:
136      - DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpurad_gpiote0.overlay"
137  drivers.gpio.2pin_hsgpio:
138    min_flash: 34
139    filter: dt_compat_enabled("test-gpio-basic-api")
140    platform_allow:
141      - frdm_rw612
142    extra_args: "DTC_OVERLAY_FILE=boards/frdm_rw612_hsgpio.overlay"
143    harness_config:
144      fixture: hsgpio_loopback
145  drivers.gpio.device_runtime_pm:
146    platform_allow:
147      - siwx917_rb4338a
148    extra_configs:
149      - CONFIG_PM=y
150      - CONFIG_PM_DEVICE=y
151      - CONFIG_ZTEST_NO_YIELD=n
152