From daa2b1573b1b627cd2a3f0ae90126f0223e7669e Mon Sep 17 00:00:00 2001 From: Bo Kragelund Date: Fri, 29 Mar 2019 11:35:58 +0100 Subject: [PATCH] dts: bindings: gpio: added generic gpio for input and output This change enables configuration of generic gpio for inputs and outputs similar to gpio-leds and gpio-keys. Signed-off-by: Bo Kragelund --- dts/bindings/gpio/gpio-in.yaml | 33 +++++++++++++++++++++++++++++++++ dts/bindings/gpio/gpio-out.yaml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 dts/bindings/gpio/gpio-in.yaml create mode 100644 dts/bindings/gpio/gpio-out.yaml diff --git a/dts/bindings/gpio/gpio-in.yaml b/dts/bindings/gpio/gpio-in.yaml new file mode 100644 index 0000000000000..5e6a396da030a --- /dev/null +++ b/dts/bindings/gpio/gpio-in.yaml @@ -0,0 +1,33 @@ +# +# Copyright (c) 2019, Prevas A/S +# All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +--- +title: GPIO IN +version: 0.1 + +description: > + This is a representation of generic GPIO input nodes + +properties: + compatible: + type: string + category: required + description: compatible strings + constraint: "gpio-in" + generation: define + + gpios: + type: compound + category: required + generation: define + + label: + type: string + category: required + description: Human readable string describing the device (used by Zephyr for API name) + generation: define + +... diff --git a/dts/bindings/gpio/gpio-out.yaml b/dts/bindings/gpio/gpio-out.yaml new file mode 100644 index 0000000000000..a3ec51aae65ef --- /dev/null +++ b/dts/bindings/gpio/gpio-out.yaml @@ -0,0 +1,33 @@ +# +# Copyright (c) 2019, Prevas A/S +# All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +--- +title: GPIO OUT +version: 0.1 + +description: > + This is a representation of generic GPIO output nodes + +properties: + compatible: + type: string + category: required + description: compatible strings + constraint: "gpio-out" + generation: define + + gpios: + type: compound + category: required + generation: define + + label: + type: string + category: required + description: Human readable string describing the device (used by Zephyr for API name) + generation: define + +...