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. --- .../dts/bindings/gpio/microchip,mcp23017.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/drivers/zephyr/dts/bindings/gpio/microchip,mcp23017.yaml (limited to 'app/drivers/zephyr/dts/bindings/gpio') 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 -- cgit v1.2.3