From 370343a28f0f3a3977e8db9c80d9bde33b2fa1a6 Mon Sep 17 00:00:00 2001 From: Jakub Michalski Date: Fri, 19 Jan 2024 10:02:32 +0100 Subject: [PATCH] dts: bindings: update renesas rzt2m gpio bindings to handle interrupts Add irqs to rzt2m gpio bindings in order to add interrupt support to rzt2m gpio driver and adds common gpio node to store interrupt config (irqs are shared between ports) Signed-off-by: Jakub Michalski --- dts/bindings/gpio/renesas,rzt2m-gpio-common.yaml | 11 +++++++++++ dts/bindings/gpio/renesas,rzt2m-gpio.yaml | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 dts/bindings/gpio/renesas,rzt2m-gpio-common.yaml diff --git a/dts/bindings/gpio/renesas,rzt2m-gpio-common.yaml b/dts/bindings/gpio/renesas,rzt2m-gpio-common.yaml new file mode 100644 index 0000000000..18ec2ed9fb --- /dev/null +++ b/dts/bindings/gpio/renesas,rzt2m-gpio-common.yaml @@ -0,0 +1,11 @@ +# Copyright (c) 2024 Antmicro +# SPDX-License-Identifier: Apache-2.0 +description: Renesas RZT2M GPIO common + +compatible: "renesas,rzt2m-gpio-common" + +include: base.yaml + +properties: + interrupts: + required: true diff --git a/dts/bindings/gpio/renesas,rzt2m-gpio.yaml b/dts/bindings/gpio/renesas,rzt2m-gpio.yaml index e099c81753..ea8c61ad8d 100644 --- a/dts/bindings/gpio/renesas,rzt2m-gpio.yaml +++ b/dts/bindings/gpio/renesas,rzt2m-gpio.yaml @@ -13,6 +13,10 @@ properties: "#gpio-cells": const: 2 + irqs: + type: array + description: pin-irq pairs + gpio-cells: - pin - flags