summaryrefslogtreecommitdiff
path: root/app/drivers/gpio/Kconfig.mcp23017
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2021-01-28 22:54:44 -0500
committerPete Johanson <peter@peterjohanson.com>2021-09-14 20:48:28 -0400
commit647110e5e5adef98a133f5f65b212110e614309b (patch)
tree2295ff9a2135fc495db41da977459b1a86f19380 /app/drivers/gpio/Kconfig.mcp23017
parent2f0ad4cc8c7c4a4b0344206bce638a8241b85b95 (diff)
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.
Diffstat (limited to 'app/drivers/gpio/Kconfig.mcp23017')
-rw-r--r--app/drivers/gpio/Kconfig.mcp2301721
1 files changed, 21 insertions, 0 deletions
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