From nobody Thu Oct 2 10:50:28 2025 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AAA5221F29; Thu, 18 Sep 2025 16:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.17.235.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758214237; cv=none; b=HhSkN27VcfT7J0dod+F1XK4d76bpz/GZN4HpRYf02oadZTDgx9hCFEV4k0n2o1OHPbvg8gk91EKECKVx04P5qFcZLGXFFHLWzbmIrQUaOmlSDXWNjb583oGit7ggEwH1SJJLlQoMP21DNLB9yUkBp3Sb1GWm72mb2RENROPW4VQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758214237; c=relaxed/simple; bh=k3Y6MBNnl6dECpR6PnRX0K8qXjVVH4SDYF4pnM6U+5g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lLQ/afSkHbTZ9GQNIU5i5wiRUO25KQ+4RJJBVGxLww4gIE0fkVBaDM70Anoyec/J8wywXDl5e6ThlbwUPk2ysWPJQtfQoESEUCe1ulqXD3p/9f0F7k0NzZor+PeX1S2FgJyGb/WbD4RZRF3pnzdIawno2Ggu43PlkG/86RD16YQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=csgroup.eu; spf=pass smtp.mailfrom=csgroup.eu; arc=none smtp.client-ip=93.17.235.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=csgroup.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=csgroup.eu Received: from localhost (mailhub4.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4cSLY82NTDz9sg9; Thu, 18 Sep 2025 18:23:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sEG83xOg8Ef7; Thu, 18 Sep 2025 18:23:40 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4cSLY624WMz9sfq; Thu, 18 Sep 2025 18:23:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 361D48B767; Thu, 18 Sep 2025 18:23:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id mscD6JiKuvkZ; Thu, 18 Sep 2025 18:23:38 +0200 (CEST) Received: from PO20335.idsi0.si.c-s.fr (unknown [192.168.235.99]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 79A2C8B778; Thu, 18 Sep 2025 18:23:37 +0200 (CEST) From: Christophe Leroy To: Qiang Zhao , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 7/7] dt-bindings: soc: fsl: qe: Add support of IRQ in QE GPIO Date: Thu, 18 Sep 2025 18:23:27 +0200 Message-ID: <7269082e90d20cf2cb4c11ceb61e24f0520d0154.1758212309.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1758212606; l=3549; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=k3Y6MBNnl6dECpR6PnRX0K8qXjVVH4SDYF4pnM6U+5g=; b=3OSUaeiNXCSwzLz+tUKTqJNBGf6B7Ioh5bO/V4rphHE6/+9Er+qUOqScWnM/rlK+XLEXiwf1o glInwdidngzCUT7dAGGwouPmY/73WQuRgFgH5vsf+hc8S21egdBPaJM X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In the QE, a few GPIOs have an associated IRQ to notify changes. Add IRQ support to QE GPIO. As not all GPIOs have an associated IRQ, the driver needs to know to which GPIO corresponds each provided IRQ. This is provided via multiple compatible properties: compatible =3D "fsl,mpc8323-qe-pario-bank-a" compatible =3D "fsl,mpc8323-qe-pario-bank-b" compatible =3D "fsl,mpc8323-qe-pario-bank-c" compatible =3D "fsl,mpc8360-qe-pario-bank-a" compatible =3D "fsl,mpc8360-qe-pario-bank-b" compatible =3D "fsl,mpc8360-qe-pario-bank-c" compatible =3D "fsl,mpc8360-qe-pario-bank-d" compatible =3D "fsl,mpc8360-qe-pario-bank-e" compatible =3D "fsl,mpc8360-qe-pario-bank-f" compatible =3D "fsl,mpc8360-qe-pario-bank-g" compatible =3D "fsl,mpc8568-qe-pario-bank-a" compatible =3D "fsl,mpc8568-qe-pario-bank-b" compatible =3D "fsl,mpc8568-qe-pario-bank-c" compatible =3D "fsl,mpc8568-qe-pario-bank-d" compatible =3D "fsl,mpc8568-qe-pario-bank-e" compatible =3D "fsl,mpc8568-qe-pario-bank-f" When not using IRQ and for banks having no IRQ (like bank D on mpc8323) the origin compatible =3D "fsl,mpc8323-qe-pario-bank" is still valid. Signed-off-by: Christophe Leroy --- .../gpio/fsl,mpc8323-qe-pario-bank.yaml | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/fsl,mpc8323-qe-pario-ba= nk.yaml b/Documentation/devicetree/bindings/gpio/fsl,mpc8323-qe-pario-bank.= yaml index 0dd9c0e6ca39..c34aeea119e0 100644 --- a/Documentation/devicetree/bindings/gpio/fsl,mpc8323-qe-pario-bank.yaml +++ b/Documentation/devicetree/bindings/gpio/fsl,mpc8323-qe-pario-bank.yaml @@ -14,6 +14,22 @@ properties: items: - enum: - fsl,chip-qe-pario-bank + - fsl,mpc8323-qe-pario-bank-a + - fsl,mpc8323-qe-pario-bank-b + - fsl,mpc8323-qe-pario-bank-c + - fsl,mpc8360-qe-pario-bank-a + - fsl,mpc8360-qe-pario-bank-b + - fsl,mpc8360-qe-pario-bank-c + - fsl,mpc8360-qe-pario-bank-d + - fsl,mpc8360-qe-pario-bank-e + - fsl,mpc8360-qe-pario-bank-f + - fsl,mpc8360-qe-pario-bank-g + - fsl,mpc8568-qe-pario-bank-a + - fsl,mpc8568-qe-pario-bank-b + - fsl,mpc8568-qe-pario-bank-c + - fsl,mpc8568-qe-pario-bank-d + - fsl,mpc8568-qe-pario-bank-e + - fsl,mpc8568-qe-pario-bank-f - const: fsl,mpc8323-qe-pario-bank =20 reg: @@ -24,6 +40,9 @@ properties: '#gpio-cells': const: 2 =20 + interrupts: + description: List of interrupts for lines of the port that trigger int= errupts on change. + required: - compatible - reg @@ -35,15 +54,19 @@ additionalProperties: false examples: - | gpio-controller@1400 { - compatible =3D "fsl,mpc8360-qe-pario-bank", "fsl,mpc8323-qe-pario-= bank"; + compatible =3D "fsl,mpc8360-qe-pario-bank-a", "fsl,mpc8323-qe-pari= o-bank"; reg =3D <0x1400 0x18>; gpio-controller; #gpio-cells =3D <2>; + interrupts =3D <0 1 2 3>; + interrupt-parent =3D <&qepic>; }; =20 gpio-controller@1460 { - compatible =3D "fsl,mpc8360-qe-pario-bank", "fsl,mpc8323-qe-pario-= bank"; + compatible =3D "fsl,mpc8360-qe-pario-bank-e", "fsl,mpc8323-qe-pari= o-bank"; reg =3D <0x1460 0x18>; gpio-controller; #gpio-cells =3D <2>; + interrupts =3D <19 20 21 22 23 24 25>; + interrupt-parent =3D <&qepic>; }; --=20 2.49.0