diff --git a/dts/bindings/gpio/nxp,pcal6408a.yaml b/dts/bindings/gpio/nxp,pcal6408a.yaml index 9f101c2826b..4acf3816147 100644 --- a/dts/bindings/gpio/nxp,pcal6408a.yaml +++ b/dts/bindings/gpio/nxp,pcal6408a.yaml @@ -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 diff --git a/dts/bindings/gpio/nxp,pcal6416a.yaml b/dts/bindings/gpio/nxp,pcal6416a.yaml new file mode 100644 index 00000000000..7717ca83830 --- /dev/null +++ b/dts/bindings/gpio/nxp,pcal6416a.yaml @@ -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 diff --git a/dts/bindings/gpio/nxp,pcal64xxa-base.yaml b/dts/bindings/gpio/nxp,pcal64xxa-base.yaml new file mode 100644 index 00000000000..fabe8268339 --- /dev/null +++ b/dts/bindings/gpio/nxp,pcal64xxa-base.yaml @@ -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