From patchwork Wed Feb 28 11:28:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Patchwork-Id: 13575431 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 CBC60C5478C for ; Wed, 28 Feb 2024 12:47:02 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7tL3hkeRXt5j4MwoCDFzIgGPyEPSnbSZ2lhZ3mz5O3k=; b=YrrO7VsABXaYIq NVbFdDBTZ1tcrOWL2P8Rh2oaGpLXaSGBQTmXOontXvrnaaICpNGx0c4cVtAsUK6Edzy2S7P7scA6D G5LV3J9O7LFMns5HVLxNr2Zjq4sM3y7ATY/o8M9urgPYSIIjFkLuF5/v7p9FJ7j6fi50QWbSytnL3 9yfMbmzbEY/JRAHCcsPb2oMDFoQsVjl3OVWmOO5pyt83GYp7dS39DnX+4hLNsAxxrzmwynQmVSg2p g604b2eiuLUqCBMXYTP1xELHqWe7O15t8QshT2Ba/38luMZjlg8tbhzsHYxxWWCJeku7WIlgwqRrX Zna1mCqW4Q3ZWM/uKyrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfJKj-00000009Hwh-0pRX; Wed, 28 Feb 2024 12:46:49 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfI6z-00000008yZH-2ZRV for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 11:28:35 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 9D08A1BF219; Wed, 28 Feb 2024 11:28:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709119712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uq0DPUf03GzjraZNzemqCpT91bjhZDBezLXQfKzg4vE=; b=fnU/jrSRHTXJIeUiDceVTbJn+etiOTYJRSX70xeikOILLIAPIOvbYImkwGsXD2wqqkUzLa ic2y0CYbLU1WJdSrXIuaoaxVt65L/4J8g8+TUFccGK55mUDIdvQRNo+M4dU4/5iIekvuqH W2v1LGfSfelivCnKvDuweW4aUBYw/tNfDjBRDQPXkRG7uoDS9iTBVwsKp1HC4S7xgYHlRq RiU7qE2WsQcUTN810F/80XjC5W3Z3T46rdL/UJxIX1+MEJr7t8kVgnE2QRzuuLWE06fgr5 ZCtYQmKkMgBPmF/J7NVlxo7XsoHZqLq5Ym59ccYxQ3qCQWyzMtPI7xxVOAMSjw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 28 Feb 2024 12:28:26 +0100 Subject: [PATCH v2 28/30] MIPS: mobileye: eyeq5: add two GPIO bank nodes MIME-Version: 1.0 Message-Id: <20240228-mbly-gpio-v2-28-3ba757474006@bootlin.com> References: <20240228-mbly-gpio-v2-0-3ba757474006@bootlin.com> In-Reply-To: <20240228-mbly-gpio-v2-0-3ba757474006@bootlin.com> To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_032833_841694_B2F804DD X-CRM114-Status: UNSURE ( 8.04 ) 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 This platform uses the same GPIO controller as Nomadik. It however has its own pinconf & pinmux controller. EyeQ5 is the first platform to use gpio-nomadik independently from pinctrl-nomadik. Signed-off-by: Théo Lebrun Acked-by: Linus Walleij --- arch/mips/boot/dts/mobileye/eyeq5.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi index 8d4f65ec912d..0f18ac73620b 100644 --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi @@ -158,6 +158,32 @@ timer { clocks = <&core0_clk>; }; }; + + gpio0: gpio@1400000 { + compatible = "mobileye,eyeq5-gpio"; + reg = <0x0 0x1400000 0x0 0x1000>; + gpio-bank = <0>; + ngpios = <29>; + interrupt-parent = <&gic>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio1: gpio@1500000 { + compatible = "mobileye,eyeq5-gpio"; + reg = <0x0 0x1500000 0x0 0x1000>; + gpio-bank = <1>; + ngpios = <23>; + interrupt-parent = <&gic>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; };