1# SPDX-License-Identifier: Apache-2.0
2
3mainmenu "SPI Loopback Test"
4
5source "Kconfig.zephyr"
6
7config SPI_LOOPBACK_DRV_NAME
8	string "SPI device name to use for test"
9
10config SPI_LOOPBACK_CS_GPIO
11	bool "SPI port CS pin is controlled via a GPIO port during test"
12	depends on GPIO
13
14config SPI_LOOPBACK_CS_CTRL_GPIO_DRV_NAME
15	string "The GPIO port which is used to control CS"
16	depends on SPI_LOOPBACK_CS_GPIO
17	default "GPIO_0"
18
19config SPI_LOOPBACK_CS_CTRL_GPIO_PIN
20	int "The GPIO PIN which is used to act as a CS pin"
21	depends on SPI_LOOPBACK_CS_GPIO
22	default 0
23
24config SPI_LOOPBACK_SLAVE_NUMBER
25	int "Slave number from 0 to host controller slave limit"
26	default 0
27
28config SPI_LOOPBACK_SLOW_FREQ
29	int "The frequency in Hz to use when testing in slow mode"
30	default 500000
31
32config SPI_LOOPBACK_FAST_FREQ
33	int "The frequency in Hz to use when testing in fast mode"
34	default 16000000
35
36config SPI_LOOPBACK_MODE_LOOP
37	bool "Configure the SPI in LOOP mode, so that no extra wiring is needed"
38