dts: bindings: gpio: add binding for PCAL6416A

Add the binding for the driver of the chip PCAL6416A.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
Benedikt Schmidt 2023-02-07 16:58:52 +01:00 committed by Christopher Friedt
parent 04386be57e
commit 50f164f9fe
3 changed files with 38 additions and 18 deletions

View file

@ -1,30 +1,14 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# Copyright (c) 2023 SILA Embedded Solutions GmbH
# SPDX-License-Identifier: Apache-2.0
description: PCAL6408A 8-bit I2C-based I/O expander
compatible: "nxp,pcal6408a"
include: [i2c-device.yaml, gpio-controller.yaml]
include: nxp,pcal64xxa-base.yaml
properties:
ngpios:
required: true
const: 8
int-gpios:
type: phandle-array
description: |
GPIO connected to the controller INT pin. This pin is active-low.
reset-gpios:
type: phandle-array
description: |
GPIO connected to the controller RESET pin. This pin is active-low.
"#gpio-cells":
const: 2
gpio-cells:
- pin
- flags

View file

@ -0,0 +1,13 @@
# Copyright (c) 2023 SILA Embedded Solutions GmbH
# SPDX-License-Identifier: Apache-2.0
description: PCAL6416A 16-bit I2C-based I/O expander
compatible: "nxp,pcal6416a"
include: nxp,pcal64xxa-base.yaml
properties:
ngpios:
required: true
const: 16

View file

@ -0,0 +1,23 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# Copyright (c) 2023 SILA Embedded Solutions GmbH
# SPDX-License-Identifier: Apache-2.0
include: [i2c-device.yaml, gpio-controller.yaml]
properties:
int-gpios:
type: phandle-array
description: |
GPIO connected to the controller INT pin. This pin is active-low.
reset-gpios:
type: phandle-array
description: |
GPIO connected to the controller RESET pin. This pin is active-low.
"#gpio-cells":
const: 2
gpio-cells:
- pin
- flags