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: 207788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3290285dyb; Wed, 28 Feb 2024 03:47:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVb43VlTpKUhGuFB9GqOwAcaJT5AMo1BfB5XSAYOSk+VbLOqVVbr8tevsABrK361sjZHkGPrc0PWf4GpzrqiQbrOvMDLw== X-Google-Smtp-Source: AGHT+IESI1Lge5eT0bfs9apsMhCIkzO+Z/ibSdsdwAcB2FGAqNqkqdtyP9NHgs6QeC7uZuRMriEy X-Received: by 2002:a05:6402:b33:b0:565:47d0:1ea with SMTP id bo19-20020a0564020b3300b0056547d001eamr10359807edb.12.1709120834387; Wed, 28 Feb 2024 03:47:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709120834; cv=pass; d=google.com; s=arc-20160816; b=VW5+66mu0wxHzExEW5Bl0YcLAspGfsMPngRaLIt3zoYcwUn53OQXJJ8KQUxMcNqA92 GQxS0ZEnbo0A3e5BJS1Q73XR2m0dQtyrQsjiUMDdp+Q9WPnD8v25GM7EqO63quScIUeY RPjoUCcoAMiw44Oo96OXS3wG/q9L5PpCfMDq754Q8L9htSA3SlRNoNFPnDDEaL+o3nfY eIO0LuGIRLTrr4HlXaJ5XMePyQlCCDGPLxaGLvKVNfXflW9rzSHp2Cs6jpGpMhhbLgZO qpdQ44zpWNsMMwG8wlqcmiXKONpeQAyyvdu5rJoSiEVfFfhX1U4orWfeIu0C4eOZAyyR mVrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=uq0DPUf03GzjraZNzemqCpT91bjhZDBezLXQfKzg4vE=; fh=FEGj322JUxHP58NgFBs9atrc2KpQCnFuCu2ueZtAhdY=; b=DnQ2hiXBYuKTmP1DJogoj3PXBVaS/6I7A4LT+3ilTWkuJeEQ9OEmyYV2mz/PeSWhJp wAHkMIL1MG6uTIHNgMjzcRjYQtSznHUsBsNst5bx9F+m82ZhPRSFEZw2cUagXWw21ull GmwvumK8sL6S5JVMzftFN1PnW+8fnhgHz5RZG3jFbw4MkXQWs/Wr7ZFfEWxsVbUAZ33B z5ITob2VHO5ApQthcYSXxDlnzfL99Rr0RRS9FFGiM6LuuNSKbGByPBq2hbsyhjj8TFtT hnyURxaZk2WQEfT89xncFTRckyxs84whM8bFkgXCddQdxgWY4rhCOcCghzubamJDLhlD /wng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="fnU/jrSR"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-84905-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84905-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dc9-20020a056402310900b00565bb5a945dsi1578033edb.171.2024.02.28.03.47.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 03:47:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84905-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="fnU/jrSR"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-84905-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84905-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4F8E51F2A1E0 for ; Wed, 28 Feb 2024 11:36:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA4BE15F326; Wed, 28 Feb 2024 11:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="fnU/jrSR" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCE7615CD47; Wed, 28 Feb 2024 11:28:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709119716; cv=none; b=kC3ZbyxVQrbTz6ChG5fDuAVZUZfWji59uKxLwedz7stAmencf++Wea5ogFdKXaJU6rhAHIvNZSqAWNXOKJ2LxOziPsgW2+JmEXxfkUpNS34oH6gdJAlonglpdjbPDLBpBaiH/wCFSJ+Se0fOTbvW6EVXhMUWO9/nOTUnuQYblr4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709119716; c=relaxed/simple; bh=HhFUuvndfjaSqasjWMz9GJl5r35qeCTPu7aLKxHaCKs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PlehGudgEK6+yOAsZ9ak3GO901RWaibY2g80TbLsKSKcTdxFS3iLG7fXg+97G1J0eVCRwGwwSBYHiqhM0kwGWKOp9bYjJgwNemXDAZ2SgISsg/lJbwtG2fhJ/Vfg2SAYG+AW3potW1XZ94fzri9uzP6q4UHtyAZLP+shBmcaeDw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=fnU/jrSR; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792143088073043748 X-GMAIL-MSGID: 1792143088073043748 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>; + }; }; };