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.
This commit is contained in:
Pete Johanson
2021-01-28 22:54:44 -05:00
parent 2f0ad4cc8c
commit 647110e5e5
8 changed files with 481 additions and 2 deletions

View File

@@ -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