From 647110e5e5adef98a133f5f65b212110e614309b Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Thu, 28 Jan 2021 22:54:44 -0500 Subject: feat(drivers): Add mcp23017 driver based on upstream mcp23s17 one. * Upstream Zephyr has in progress driver, so doing this locally here, until we can move over to that driver. --- app/drivers/gpio/Kconfig.mcp23017 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app/drivers/gpio/Kconfig.mcp23017 (limited to 'app/drivers/gpio/Kconfig.mcp23017') diff --git a/app/drivers/gpio/Kconfig.mcp23017 b/app/drivers/gpio/Kconfig.mcp23017 new file mode 100644 index 0000000..4953b92 --- /dev/null +++ b/app/drivers/gpio/Kconfig.mcp23017 @@ -0,0 +1,21 @@ +# MCP23017 GPIO configuration options + +# Copyright (c) 2021 Pete Johanson +# SPDX-License-Identifier: Apache-2.0 + +menuconfig GPIO_MCP23017 + bool "MCP23017 I2C-based GPIO chip" + depends on I2C + select HAS_DTS_GPIO + help + Enable driver for MCP23017 I2C-based GPIO chip. + +if GPIO_MCP23017 + +config GPIO_MCP23017_INIT_PRIORITY + int "Init priority" + default 75 + help + Device driver initialization priority. + +endif #GPIO_MCP23017 -- cgit v1.2.3