From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D1E1C43217 for ; Thu, 2 Dec 2021 09:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356837AbhLBJ4n (ORCPT ); Thu, 2 Dec 2021 04:56:43 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:34717 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356758AbhLBJ42 (ORCPT ); Thu, 2 Dec 2021 04:56:28 -0500 Received: (Authenticated sender: herve.codina@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPA id F19DE240017; Thu, 2 Dec 2021 09:53:01 +0000 (UTC) From: Herve Codina To: Viresh Kumar , Shiraz Hashim , soc@kernel.org, Rob Herring , Thomas Gleixner , Marc Zyngier , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: [PATCH 0/6] spear: Fix SPEAr3XX plgpio support Date: Thu, 2 Dec 2021 10:52:49 +0100 Message-Id: <20211202095255.165797-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Hi, This patch series fixes the plgpio support on SPEAr3xx SOCs. The first four patches of this series fixes a ressources sharing issue between the plgpio driver and the pinmux driver. Indeed, these two drivers can use the same IO address range on some SPEAr3xx SOCs. To solve the issue, a regmap (syscon managed) is used in both drivers and the plgpio driver can reference the pinmux regmap to use it. The second part of this series is related to IRQs. The plgpio on SPEAr320s SOC uses an IRQ line in the reserve range (from SPEAr320 point of view). This issue is fixed enabling all the 'reserved' IRQs and adding a dtsi file for the SPEAr320s with the correct interrupt for the plgpio node. Best regards, Herve Herve Codina (6): pinctrl: spear: spear: Convert to regmap pinctrl: spear: plgpio: Convert to regmap pinctrl: spear: plgpio: Introduce regmap phandle ARM: dts: spear3xx: Use plgpio regmap in SPEAr310 and SPEAr320 irq: spear-shirq: Add support for IRQ 0..6 ARM: dts: spear3xx: Add spear320s dtsi arch/arm/boot/dts/spear310.dtsi | 1 + arch/arm/boot/dts/spear320.dtsi | 1 + arch/arm/boot/dts/spear320s.dtsi | 24 ++++ drivers/irqchip/spear-shirq.c | 2 + drivers/pinctrl/spear/pinctrl-plgpio.c | 148 +++++++++++++++---------- drivers/pinctrl/spear/pinctrl-spear.c | 10 +- drivers/pinctrl/spear/pinctrl-spear.h | 12 +- 7 files changed, 131 insertions(+), 67 deletions(-) create mode 100644 arch/arm/boot/dts/spear320s.dtsi -- 2.31.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 B8D44C433F5 for ; Thu, 2 Dec 2021 09:54:48 +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=J3yDYOPtOGIh5swPZv4hyOXt2aEL7BrgxAPA3a3wY0Q=; b=TSnRzepyEntJWy yQbgHJs3m6dMm1wNijhu2aTm3wJievGXsV6INX18E0bWCW9dLLQBKShqrwweRkd+p4X3DYYYITlJu 9CDrqzDiipJCBzhhB6q444ILcPG2WzLWCAcJcjVoQTXh7Z11pZ8AB0808EcaoZaGnVL4VytWydlsI x7myyhE2oUHEjILcudm9eBKILqcucHOBZVbzED7Z1UbcVAkzqaMDzCOo1C8pIXXAIA3ZQjVDRc97o Qye3nOZcX0pMzCMK2sdIsWLP75KqnPKa5C/F4dYpxE+4KGlcIJaqDQCnXf8bPthYM3Mrg+QhKVf2H nASydpac8TV2vIKgroxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msim8-00Bfp5-TK; Thu, 02 Dec 2021 09:53:13 +0000 Received: from relay10.mail.gandi.net ([217.70.178.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msim4-00BfnJ-RB for linux-arm-kernel@lists.infradead.org; Thu, 02 Dec 2021 09:53:10 +0000 Received: (Authenticated sender: herve.codina@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPA id F19DE240017; Thu, 2 Dec 2021 09:53:01 +0000 (UTC) From: Herve Codina To: Viresh Kumar , Shiraz Hashim , soc@kernel.org, Rob Herring , Thomas Gleixner , Marc Zyngier , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: [PATCH 0/6] spear: Fix SPEAr3XX plgpio support Date: Thu, 2 Dec 2021 10:52:49 +0100 Message-Id: <20211202095255.165797-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211202_015309_060308_19D5506D X-CRM114-Status: GOOD ( 14.78 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This patch series fixes the plgpio support on SPEAr3xx SOCs. The first four patches of this series fixes a ressources sharing issue between the plgpio driver and the pinmux driver. Indeed, these two drivers can use the same IO address range on some SPEAr3xx SOCs. To solve the issue, a regmap (syscon managed) is used in both drivers and the plgpio driver can reference the pinmux regmap to use it. The second part of this series is related to IRQs. The plgpio on SPEAr320s SOC uses an IRQ line in the reserve range (from SPEAr320 point of view). This issue is fixed enabling all the 'reserved' IRQs and adding a dtsi file for the SPEAr320s with the correct interrupt for the plgpio node. Best regards, Herve Herve Codina (6): pinctrl: spear: spear: Convert to regmap pinctrl: spear: plgpio: Convert to regmap pinctrl: spear: plgpio: Introduce regmap phandle ARM: dts: spear3xx: Use plgpio regmap in SPEAr310 and SPEAr320 irq: spear-shirq: Add support for IRQ 0..6 ARM: dts: spear3xx: Add spear320s dtsi arch/arm/boot/dts/spear310.dtsi | 1 + arch/arm/boot/dts/spear320.dtsi | 1 + arch/arm/boot/dts/spear320s.dtsi | 24 ++++ drivers/irqchip/spear-shirq.c | 2 + drivers/pinctrl/spear/pinctrl-plgpio.c | 148 +++++++++++++++---------- drivers/pinctrl/spear/pinctrl-spear.c | 10 +- drivers/pinctrl/spear/pinctrl-spear.h | 12 +- 7 files changed, 131 insertions(+), 67 deletions(-) create mode 100644 arch/arm/boot/dts/spear320s.dtsi -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel