summaryrefslogtreecommitdiff
path: root/app/drivers/zephyr/dts
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/zephyr/dts
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/zephyr/dts')
-rw-r--r--app/drivers/zephyr/dts/bindings/gpio/microchip,mcp23017.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/drivers/zephyr/dts/bindings/gpio/microchip,mcp23017.yaml b/app/drivers/zephyr/dts/bindings/gpio/microchip,mcp23017.yaml
new file mode 100644
index 0000000..75e19c4
--- /dev/null
+++ b/app/drivers/zephyr/dts/bindings/gpio/microchip,mcp23017.yaml
@@ -0,0 +1,29 @@
+#
+# Copyright (c) 2020 Geanix ApS
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+description: >
+ This is a representation of the Microchip MCP23017 I2C Gpio Expander.
+
+compatible: "microchip,mcp23017"
+
+include: [gpio-controller.yaml, i2c-device.yaml]
+
+properties:
+ label:
+ required: true
+
+ "#gpio-cells":
+ const: 2
+
+ ngpios:
+ type: int
+ required: true
+ const: 16
+ description: Number of gpios supported
+
+gpio-cells:
+ - pin
+ - flags