From patchwork Wed May 1 14:25:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13650784 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 5A4BDC4345F for ; Wed, 1 May 2024 14:26:46 +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:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WD9SJ6EBrjWWuJLdqRmZqDtI0buQdQn/ANjQR+kkgQk=; b=n6dpm+IfenKDue DIWhUr3zeT2cZrrcZ4sap7RvVnhr1IEtZop/aNAT1U7E9yLZk62Cn3Fb3fKgtz8CJExwStLmumigW 8Ka1oLmHPbDqI09SoW0E5Eb79iYMGSyQzclcWNArgEuWxqk5DvJWaGHT/LvWnGSlHnGn1xt9HODD+ /J2XQfoHY5upjzaX13G7HGS9HsX1czTXIopw1fFigK6uQGQIIUiokvxHcdmuQX1tARrkCzjDf5QTx CTE/pLL6Gm0D9q0/08QCVgwTcaOzaeEq2jxJ38luJQAL3ixtDtEEhr0QjkGJvX/JDfOPHhT8FsptJ YSjG5PIK74gipW12MSbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Aup-00000009nc3-0d0B; Wed, 01 May 2024 14:26:35 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2Aul-00000009nbC-2brw for linux-arm-kernel@lists.infradead.org; Wed, 01 May 2024 14:26:33 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 50ADCCE1309; Wed, 1 May 2024 14:26:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5BF9C072AA; Wed, 1 May 2024 14:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714573588; bh=gvjcuw/DNw3vvMUAeKkw8TDIEbg1vf9BJ6FzQ8Vh0bg=; h=From:To:Cc:Subject:Date:From; b=GEGApENEN48MwbICDHhHvgqTEZTBOF/ujvWWeRXa4b2Fww4CW2kbHg9q2/fom2lnl dJ/9Peu44EhWyEABpUHR0PCVeRrVrI1HpPTmSs96Aj3EjGODFg5RFII0OlzUWuFxdO RBUaSpuFxNF7bQvUy8GUJKZV7DP30eznSzRYklJ2hmdlNFr+RWXwaa8UtLQNffo8aE slXZ0kd0PQAj65pB2JgisJz1ART6cVGFuJOWTaMhnsU6vAc3KYeVG2hbOAP+UG8Dgf Go9Y2hbB/uajp7MGSclfxiD/fqgNtBMi2MdrA8cnpNiM8aHFrGyLdJv/NE07TeiUIv r0OU51IVe1gsw== From: Lorenzo Bianconi To: linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, nbd@nbd.name, john@phrozen.org, devicetree@vger.kernel.org, dd@embedd.com, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, lorenzo.bianconi83@gmail.com, angelogioacchino.delregno@collabora.com, linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org Subject: [PATCH] arm64: dts: airoha: en7581: Add gpio controller nodes Date: Wed, 1 May 2024 16:25:54 +0200 Message-ID: <2d27e1ad360dec2c3d78d9800bc93ecb6f9b50c5.1714573214.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240501_072631_866345_C290C999 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. 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 Introduce the Airoha EN7581 gpio nodes in Airoha EN7581 dtsi Tested-by: Rajeev Kumar Signed-off-by: Lorenzo Bianconi --- This patch is based on the following pending patch: https://patchwork.kernel.org/project/spi-devel-general/patch/189790802f3ba1a80c4ab5e064b2425e5a360098.1714571980.git.lorenzo@kernel.org/ --- arch/arm64/boot/dts/airoha/en7581.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/airoha/en7581.dtsi b/arch/arm64/boot/dts/airoha/en7581.dtsi index 98c2a86086e1..5d0d76cecfe0 100644 --- a/arch/arm64/boot/dts/airoha/en7581.dtsi +++ b/arch/arm64/boot/dts/airoha/en7581.dtsi @@ -178,5 +178,25 @@ spi_nand: nand@0 { spi-rx-bus-width = <2>; }; }; + + gpio0: gpio@1fbf0200 { + compatible = "airoha,en7523-gpio"; + reg = <0 0x1fbf0204 0 0x4>, + <0 0x1fbf0200 0 0x4>, + <0 0x1fbf0220 0 0x4>, + <0 0x1fbf0214 0 0x4>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio1: gpio@1fbf0270 { + compatible = "airoha,en7523-gpio"; + reg = <0 0x1fbf0270 0 0x4>, + <0 0x1fbf0260 0 0x4>, + <0 0x1fbf0264 0 0x4>, + <0 0x1fbf0278 0 0x4>; + gpio-controller; + #gpio-cells = <2>; + }; }; };