1# MCP23S17 GPIO configuration options
2
3# Copyright (c) 2021 metraTec GmbH
4# SPDX-License-Identifier: Apache-2.0
5
6config GPIO_MCP23XXX
7	bool
8	help
9	  Enable support for the Microchip 23xxx I2C/SPI IO
10	  expanders.
11
12menuconfig GPIO_MCP230XX
13	bool "MCP230XX I2C-based GPIO chip"
14	default y
15	depends on DT_HAS_MICROCHIP_MCP23008_ENABLED || \
16	           DT_HAS_MICROCHIP_MCP23009_ENABLED || \
17	           DT_HAS_MICROCHIP_MCP23016_ENABLED || \
18	           DT_HAS_MICROCHIP_MCP23017_ENABLED || \
19	           DT_HAS_MICROCHIP_MCP23018_ENABLED
20	depends on I2C
21	select GPIO_MCP23XXX
22	help
23	  Enable driver for MCP230XX I2C-based GPIO chip.
24
25if GPIO_MCP230XX
26
27config GPIO_MCP230XX_INIT_PRIORITY
28	int "MCP230XX GPIO expander init priority"
29	default 75
30	help
31	  Device driver initialization priority.
32
33endif #GPIO_MCP230XX
34
35menuconfig GPIO_MCP23SXX
36	bool "MCP23SXX SPI-based GPIO chip"
37	default y
38	depends on DT_HAS_MICROCHIP_MCP23S08_ENABLED || \
39	           DT_HAS_MICROCHIP_MCP23S09_ENABLED || \
40	           DT_HAS_MICROCHIP_MCP23S17_ENABLED || \
41	           DT_HAS_MICROCHIP_MCP23S18_ENABLED
42	depends on SPI
43	select GPIO_MCP23XXX
44	help
45	  Enable driver for MCP23SXX SPI-based GPIO chip.
46
47if GPIO_MCP23SXX
48
49config GPIO_MCP23SXX_INIT_PRIORITY
50	int "MCP23SXX GPIO expander init priority"
51	default 75
52	help
53	  Device driver initialization priority.
54
55endif #GPIO_MCP23SXX
56