From patchwork Sat Jan 29 20:26:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Villeneuve X-Patchwork-Id: 12729634 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94BCCC433EF for ; Sat, 29 Jan 2022 20:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:Cc:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=sQ9HHtBM9Lcl8MS+z3uDw5gAyrtVNiJRUK2vayxx8nA=; b=h8vur3PN3g9+Eyy+HbPb8jPdhg d1CeidKCL/BzXpMHZWQVZNUAqhnHV5eT7Yr5RtceMi8YOlk/abp+w9c905uLDB7cEYjARfKU5fIV9 b8EJUGps7nqRzPU417/6kZP1lTYaFLMlUyNwp0kpaSVOdP/sXd7cVOdhlX8wocbLayKRG5QQYuE7q kMTJj9SE66vuHvnFq/5DjmuPkZwW9nf4GN7CzXC9diIdk04gmAROQPdxDhOLjmHRLOsg3pXx3QijS UciD6gQnqXX22Zj+XlikYYNrQkb9KSEdIq6DFjcIFyDU/3Vd2J7bUkHKP7tp30DEZFX1ldgEVFOHF 21pp5CCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDuIw-005PJS-NF; Sat, 29 Jan 2022 20:26:38 +0000 Received: from mail.hugovil.com ([162.243.120.170]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDuIt-005PJ3-79 for linux-arm-kernel@lists.infradead.org; Sat, 29 Jan 2022 20:26:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nB+1Cg03XOHqlY3t8HBuf0gJTSR4wOsWdCqtLuMW07s=; b=SWvd/Oyc5QAnYl+K47OrCkd7b8 WcVS0UE2zCnGmJPov1KNFmlhHU6j7PQuPi6s7siODdn6k+heeMlGchldUmqzXutFwOpHMhuxtRGxl fFaxxgUvGHA6A7WCt7tdwPZGnoKCItIbSiFD+kk4i9OLj6FLlMiIvNtjqoyeNqMXA3Lc=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:55112 helo=pettiford.lan) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1nDuIf-0005AC-7A; Sat, 29 Jan 2022 15:26:22 -0500 From: Hugo Villeneuve To: hugo@hugovil.com, Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Hugo Villeneuve , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Sat, 29 Jan 2022 15:26:17 -0500 Message-Id: <20220129202617.2332885-1-hugo@hugovil.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220129060818.GQ4686@dragon> References: <20220129060818.GQ4686@dragon> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com Subject: [PATCH v2] arm64: dts: imx8mp-evk: add PCA6416 interrupt controller mode X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220129_122635_344964_CCB90316 X-CRM114-Status: GOOD ( 10.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hugo Villeneuve Add interrupt controller mode for the pca6416 on i.MX8MP EVK board's. Signed-off-by: Hugo Villeneuve --- Rebased on tree: git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git branch: for-next arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 2eb943210678..9055ce32aecc 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -294,6 +294,12 @@ pca6416: gpio@20 { reg = <0x20>; gpio-controller; #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pca6416_int>; + interrupt-parent = <&gpio1>; + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; }; }; @@ -448,6 +454,12 @@ MX8MP_IOMUXC_GPIO1_IO03__GPIO1_IO03 0x000001c0 >; }; + pinctrl_pca6416_int: pca6416_int_grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x146 /* Input pull-up. */ + >; + }; + pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { fsl,pins = < MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x41