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_MCP230XX_ENABLED
16	depends on I2C
17	select GPIO_MCP23XXX
18	help
19	  Enable driver for MCP230XX I2C-based GPIO chip.
20
21if GPIO_MCP230XX
22
23config GPIO_MCP230XX_INIT_PRIORITY
24	int "MCP230XX GPIO expander init priority"
25	default 75
26	help
27	  Device driver initialization priority.
28
29endif #GPIO_MCP230XX
30
31menuconfig GPIO_MCP23SXX
32	bool "MCP23SXX SPI-based GPIO chip"
33	default y
34	depends on DT_HAS_MICROCHIP_MCP23SXX_ENABLED
35	depends on SPI
36	select GPIO_MCP23XXX
37	help
38	  Enable driver for MCP23SXX SPI-based GPIO chip.
39
40if GPIO_MCP23SXX
41
42config GPIO_MCP23SXX_INIT_PRIORITY
43	int "MCP23SXX GPIO expander init priority"
44	default 75
45	help
46	  Device driver initialization priority.
47
48endif #GPIO_MCP23SXX
49