From patchwork Wed Jan 24 20:58:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13529680 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 50BB4C47422 for ; Wed, 24 Jan 2024 21:00:15 +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:References:In-Reply-To: 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: List-Owner; bh=cl93DYdnHPQCujpFD6WhqnZcsHZ1L5YA7wGnzmJJLRg=; b=vhgStFQjtBDXwh msAERt3uB9qeOH8xHP+z9ropr3c8hlgmFqtNoI4H1/YntoPu6O2hgAUdivkqAoqc2gkyG5lg5lzib 9gPA3Nit/jJgsXkLlyWHZMts6rBWvljbJ0Y6ksvRgvVXZz92j6ZGD/4dZ8xwKsH7cqmwGLtHO3GY4 v+JhBezCMrTZM1ohwv47S0M/q0MTNIO9fnig+pnAaMyuNjK65DAoSd7WxmNc4HoySsAwSYwsHUvU9 2Nv3BgBdQRYjYRoAgTAkioyBW8lUOwhiih3iQHNFpjd/4wjAvrSuY8dMl24AKDjwoXqMIJs6fq7/T eUVJB3tprA3xS5xxsvzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLd-00551R-0K; Wed, 24 Jan 2024 20:59:49 +0000 Received: from akranes.kaiser.cx ([2a0a:4cc0:1:11ef:4484:ccff:febf:ddfa]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLM-0054wF-23 for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 20:59:34 +0000 Received: from dslb-188-097-042-032.188.097.pools.vodafone-ip.de ([188.97.42.32] helo=martin-debian-2.paytec.ch) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rSkL1-000SPR-0Q; Wed, 24 Jan 2024 21:59:11 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , Andrew Lunn , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v4 1/4] gpio: vf610: allow disabling the vf610 driver Date: Wed, 24 Jan 2024 21:58:57 +0100 Message-Id: <20240124205900.14791-2-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240124205900.14791-1-martin@kaiser.cx> References: <20240124205900.14791-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_125932_670710_05A20B87 X-CRM114-Status: GOOD ( 13.81 ) 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 The vf610 gpio driver is enabled by default for all i.MX machines, without any option to disable it in a board-specific config file. Most i.MX chipsets have no hardware for this driver. Change the default to enable GPIO_VF610 for SOC_VF610 and disable it otherwise. Add a text description after the bool type, this makes the driver selectable by make config etc. Fixes: 30a35c07d9e9 ("gpio: vf610: drop the SOC_VF610 dependency for GPIO_VF610") Signed-off-by: Martin Kaiser --- v4: - add a new patch to enable COMPILE_TEST v3: - split the changes into three patches v2: - enable the vf610 gpio driver in the defconfig files for arm_v7 (i.MX7ULP) and arm64 (i.MX8QM, DXL, ULP and i.MX93) drivers/gpio/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 1301cec94f12..353af1a4d0ac 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -711,7 +711,8 @@ config GPIO_UNIPHIER Say yes here to support UniPhier GPIOs. config GPIO_VF610 - def_bool y + bool "VF610 GPIO support" + default y if SOC_VF610 depends on ARCH_MXC select GPIOLIB_IRQCHIP help From patchwork Wed Jan 24 20:58:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13529678 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 7E211C47422 for ; Wed, 24 Jan 2024 21:00:07 +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:References:In-Reply-To: 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: List-Owner; bh=iPr71S6C83u9IKrJsuj2syQVPYaAWKdaQTE7mv/U31Y=; b=wS5BcJ1HOoDCpA YiIVWdIarx8Ezh3HztTFrJnxUk7DNrOolkZRqtsSJXPRxEne9OAhtc4gbRUIpiLuy2dmw963JI83S wbT6C0cDtr+Yk9EHCeK1L+U7bc45SK3hbPjoxNOgfOPh2YwkgCKIHIes9RHUFICODZunoFivOknTB C8wwzoQRkRclPCZglQrq1ESDyZnuD2n9hzuW1roaZVg4q6yQxxB11d47XD+pIe6+0PGk99WkrwLGk 6J+ug7oD0j0GejR612mZmenxvtwqO74wxqlhOvJOZ3lXFyy4MKG7ID8djLDpMjFruygtoEwfUWw/m qxnG12oWQHE6Lmo3Earg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLQ-0054y8-0V; Wed, 24 Jan 2024 20:59:36 +0000 Received: from akranes.kaiser.cx ([2a0a:4cc0:1:11ef:4484:ccff:febf:ddfa]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLM-0054wI-0N for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 20:59:33 +0000 Received: from dslb-188-097-042-032.188.097.pools.vodafone-ip.de ([188.97.42.32] helo=martin-debian-2.paytec.ch) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rSkL2-000SPR-0G; Wed, 24 Jan 2024 21:59:12 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , Andrew Lunn , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v4 2/4] gpio: vf610: enable COMPILE_TEST Date: Wed, 24 Jan 2024 21:58:58 +0100 Message-Id: <20240124205900.14791-3-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240124205900.14791-1-martin@kaiser.cx> References: <20240124205900.14791-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_125932_171003_BFD9D0A4 X-CRM114-Status: GOOD ( 10.93 ) 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 Enable COMPILE_TEST for the vf610 gpio driver to support test builds on systems without this hardware. Signed-off-by: Martin Kaiser --- v4: - add a new patch to enable COMPILE_TEST drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 353af1a4d0ac..3081406ff57a 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -713,7 +713,7 @@ config GPIO_UNIPHIER config GPIO_VF610 bool "VF610 GPIO support" default y if SOC_VF610 - depends on ARCH_MXC + depends on ARCH_MXC || COMPILE_TEST select GPIOLIB_IRQCHIP help Say yes here to support i.MX or Vybrid vf610 GPIOs. From patchwork Wed Jan 24 20:58:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13529679 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 C1F3DC47422 for ; Wed, 24 Jan 2024 21:00:10 +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:References:In-Reply-To: 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: List-Owner; bh=IqswTaF/rYdoP3A6xrrkdXaA7F+fuiqdkSzrLRKcVCg=; b=imeFLZT3UsrCjp cBCt/NC64Eir/RUouGvcp1o1j4ZZAVEfHjbnSwj/lc8MDCDHEPryBMpq9JxtAvDmCPCVt0n9QssZx kX71lQZ9HkfH4xD1/ZYi/evr4mDFdmYgZt/RTbqAkuoljRrRnTFft7YI8TeiEK559f29xcJO0vHYN eS/VXBeXeayrAOpuzSW08HK5lINleabpTBWGs3HI08YUfjwpDrbf7tcKft9e7T5vr+arwkffrKmnh FZ963o3StTBecweU75sdTB0aP9wH3t2AsxtH7h0vd7kJMtuWXu2i5bE+aAxANcGmQa2aXwgTHvSzM OEMYta/STELIIyZGLRsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLP-0054xn-1S; Wed, 24 Jan 2024 20:59:35 +0000 Received: from akranes.kaiser.cx ([2a0a:4cc0:1:11ef:4484:ccff:febf:ddfa]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLM-0054wJ-0G for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 20:59:33 +0000 Received: from dslb-188-097-042-032.188.097.pools.vodafone-ip.de ([188.97.42.32] helo=martin-debian-2.paytec.ch) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rSkL3-000SPR-02; Wed, 24 Jan 2024 21:59:13 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , Andrew Lunn , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v4 3/4] ARM: imx_v6_v7_defconfig: enable the vf610 gpio driver Date: Wed, 24 Jan 2024 21:58:59 +0100 Message-Id: <20240124205900.14791-4-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240124205900.14791-1-martin@kaiser.cx> References: <20240124205900.14791-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_125932_137772_D8374533 X-CRM114-Status: UNSURE ( 9.95 ) 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 The vf610 gpio driver is used in i.MX7ULP chips (Cortex A7, ARMv7-A architecture). Enable it in imx_v6_v7_defconfig. (vf610 gpio used to be enabled by default for all i.MX chips. This was changed recently as most i.MX chips don't need this driver.) Signed-off-by: Martin Kaiser --- v4: - add a new patch to enable COMPILE_TEST v3: - split the changes into three patches arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 0a90583f9f01..3cdcb786f33f 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -208,6 +208,7 @@ CONFIG_PINCTRL_IMX8MQ=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_MXC=y CONFIG_GPIO_SIOX=m +CONFIG_GPIO_VF610=y CONFIG_GPIO_MAX732X=y CONFIG_GPIO_PCA953X=y CONFIG_GPIO_PCF857X=y From patchwork Wed Jan 24 20:59:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13529681 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 4D681C47422 for ; Wed, 24 Jan 2024 21:00:17 +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:References:In-Reply-To: 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: List-Owner; bh=kXyQTclARhOQvjzTWRrqe1NGfT8GjyzfSk7ajCRd7gE=; b=1VsOeVwglD5X+g I9eYQgZMIde3/jYgQmdfcjRnNkOirhLuvCtvPGNIm91KjblM+4oWckeJPTlWN0tggIZhf4iRzAkwJ paCcuvC/4/xhTE/9RhH8hum03XvKNc6VGQH4JhnktvNiviuN6TgD6qYLBrOwa8eprAA/AzmbfGBaz QkW9T2WhFk/TiXqJP65To1NxdHWYlLoWY1UzbU/CvrHkiQcNriF8DgfbVMzyTMNSzGepSwBMVO3xY MEyXdhURDOpK4/zSF+glP3DmbT7viClgfgqwoKpgPaspWcp60XYHLO5h2XmQsg+0jjkkkRJEeElC7 iLYDPGswVJvkkZqKQSYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLd-005524-30; Wed, 24 Jan 2024 20:59:50 +0000 Received: from akranes.kaiser.cx ([2a0a:4cc0:1:11ef:4484:ccff:febf:ddfa]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSkLN-0054wN-0x for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 20:59:34 +0000 Received: from dslb-188-097-042-032.188.097.pools.vodafone-ip.de ([188.97.42.32] helo=martin-debian-2.paytec.ch) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rSkL3-000SPR-34; Wed, 24 Jan 2024 21:59:14 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , Andrew Lunn , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v4 4/4] arm64: defconfig: enable the vf610 gpio driver Date: Wed, 24 Jan 2024 21:59:00 +0100 Message-Id: <20240124205900.14791-5-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240124205900.14791-1-martin@kaiser.cx> References: <20240124205900.14791-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_125933_335080_01AB58C3 X-CRM114-Status: UNSURE ( 9.80 ) 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 The vf610 gpio driver is used in i.MX8QM, DXL, ULP and i.MX93 chips. Enable it in arm64 defconfig. (vf610 gpio used to be enabled by default for all i.MX chips. This was changed recently as most i.MX chips don't need this driver.) Signed-off-by: Martin Kaiser --- v4: - add a new patch to enable COMPILE_TEST v3: - split the changes into three patches arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e6cf3e5d63c3..915c7c8fd13f 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -632,6 +632,7 @@ CONFIG_GPIO_SYSCON=y CONFIG_GPIO_UNIPHIER=y CONFIG_GPIO_VISCONTI=y CONFIG_GPIO_WCD934X=m +CONFIG_GPIO_VF610=y CONFIG_GPIO_XGENE=y CONFIG_GPIO_XGENE_SB=y CONFIG_GPIO_MAX732X=y