dts: bindings: test: complete bindings for gpio expander

These need to be gpio controllers and have the necessary specifier
properties for use in gpio specifiers.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-12-09 08:02:38 -06:00 committed by Kumar Gala
parent fefc0aac52
commit feb0179d81
4 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,20 @@
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
description: Test GPIO node
include: [gpio-controller.yaml, base.yaml]
properties:
reg:
required: true
label:
required: true
"#gpio-cells":
const: 2
gpio-cells:
- pin
- flags

View file

@ -5,4 +5,4 @@ description: GPIO expander via I2C
compatible: "vnd,gpio-expander"
include: i2c-device.yaml
include: ["vnd,gpio-expander-common.yaml", i2c-device.yaml]

View file

@ -5,4 +5,4 @@ description: GPIO expander via SPI
compatible: "vnd,gpio-expander"
include: spi-device.yaml
include: ["vnd,gpio-expander-common.yaml", spi-device.yaml]

View file

@ -155,6 +155,8 @@
};
gpio@11 {
gpio-controller;
#gpio-cells = <2>;
compatible = "vnd,gpio-expander";
reg = <0x11>;
label = "TEST_EXPANDER_I2C";
@ -207,6 +209,8 @@
};
gpio@2 {
gpio-controller;
#gpio-cells = <2>;
compatible = "vnd,gpio-expander";
reg = <2>;
label = "TEST_EXPANDER_SPI";