From patchwork Sat Jan 20 18:29:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13524422 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 5D561C47DAF for ; Sat, 20 Jan 2024 18:30:45 +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=ocMuJGpAzGQIpGmq+F4qxu9RQy+/vXF2UB0ZlydvphI=; b=KY/DppwGAjYWjj bwSbSs0no4yS9Dv6GlGTNd+KCpQDP4WOx2IVySOqO+AtL5U2IHPzw8pIYmluH80+e90vgOQkivpKH 1QU4V5/83dRkCNdMNCa+QVFRjXszKMSM2VG3+Rgz/m5+7gtk0ZExpsFJGkDfNg6fvBJn8pJdHJDOF fXH0qO6Y0nIuu+kMjoKhTzYdWQxExKkkIneLL9O5Zwgj13xu8hF6ocCYjmwVg8nVYmNprJQyuDb2A +YjHUjNMwoRNS9NhBGvEv9HFUsVMGYk264y+ZKCthYzHRCmPRclD+SuoS/KS6XicAFAp8aXJpR5fK cbYs91loYuvHBp+Cgh7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRG6o-008DcS-19; Sat, 20 Jan 2024 18:30:22 +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 1rRG6c-008DXb-2d for linux-arm-kernel@lists.infradead.org; Sat, 20 Jan 2024 18:30:15 +0000 Received: from dslb-178-004-202-210.178.004.pools.vodafone-ip.de ([178.4.202.210] 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 1rRG6L-000BIC-1D; Sat, 20 Jan 2024 19:29:53 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v3 1/3] gpio: vf610: allow disabling the vf610 driver Date: Sat, 20 Jan 2024 19:29:27 +0100 Message-Id: <20240120182929.1129183-2-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240120182929.1129183-1-martin@kaiser.cx> References: <20240120182929.1129183-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240120_103010_862269_FCF86B72 X-CRM114-Status: GOOD ( 12.68 ) 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 --- 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 Sat Jan 20 18:29:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13524423 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 A7F72C47258 for ; Sat, 20 Jan 2024 18:30:49 +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=A74bNXiaB9DuC1c15djK/gXzEYvs781Qusm6wNn23QU=; b=DcpwcyyQcVfClv GL8ZtYwEmtsm9tNYgPtew+qS/p1N7r9Bfp4b7PxBI68jmctEzNAs7Vr+tYnLxUQ+0tbDGKXldQuj4 0yAORLfaDixWQaPNFfA1fAE39MEx/uXXkhqQ8S8d3BulHW9EVyeus4tBMWjq+3hghN7htCyYaWilw f1qJw2gxO80Pyo1L0IS274bDcbBOn91yqKKltkGu6LtCT0mOKALf+A2smHlMSv1/bXTX6bRWAmDUP RTZkMu2HH9vjvInBh5Ww8d4nqW9dNdqPU0WS92yNvd35Pn7bcJyeOm95QQN5nsNvWxUGFN3VJcAdx gMEf6/KGcYAHQ2u5WUBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRG6o-008Dcs-30; Sat, 20 Jan 2024 18:30:22 +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 1rRG6c-008DXa-2Z for linux-arm-kernel@lists.infradead.org; Sat, 20 Jan 2024 18:30:15 +0000 Received: from dslb-178-004-202-210.178.004.pools.vodafone-ip.de ([178.4.202.210] 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 1rRG6M-000BIC-28; Sat, 20 Jan 2024 19:29:54 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v3 2/3] ARM: imx_v6_v7_defconfig: enable the vf610 gpio driver Date: Sat, 20 Jan 2024 19:29:28 +0100 Message-Id: <20240120182929.1129183-3-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240120182929.1129183-1-martin@kaiser.cx> References: <20240120182929.1129183-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240120_103010_837440_8B2ECBAB X-CRM114-Status: UNSURE ( 9.46 ) 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 --- 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) 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 Sat Jan 20 18:29:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13524424 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 0F0C9C47DAF for ; Sat, 20 Jan 2024 18:30:51 +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=PBRDb2rcmgDlYzCBTY5qVrBcSEIcG/YmTHs8+KzSCX0=; b=zqGPk17MIlpFls 65ePovBI8o83pSDB1tAnLKibr3PWDGj7ldn/cIiecmRvwzz8GoIWiAQpY/+7WCLXfd5qYLZd40G6S UfBD9SulmU5DHOuOLwNZmoYPHYmGRr3JgLqiP5noRNyRoIO0jYl2G4bHxzU/plMswU/FZ9bx91dJU Ub6iRRmBDUhX6SgK2X3Nb5RQwPoTkhDY5U65GlBIUXW+bb8aU7Hc6n6CdTQZLXv5DSs1gnfsFfpMj 2JXHeZnzKcbFKAVczMfzAe3vjS/zJIGEnRJEmbERJZegc0fJLKzjM1E6wqK06DQYkVfblQoUK1/hE zO1AiIvbNg4eynEbjblw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRG6n-008Dby-2R; Sat, 20 Jan 2024 18:30:21 +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 1rRG6c-008DXO-2K for linux-arm-kernel@lists.infradead.org; Sat, 20 Jan 2024 18:30:14 +0000 Received: from dslb-178-004-202-210.178.004.pools.vodafone-ip.de ([178.4.202.210] 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 1rRG6O-000BIC-1O; Sat, 20 Jan 2024 19:29:56 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v3 3/3] arm64: defconfig: enable the vf610 gpio driver Date: Sat, 20 Jan 2024 19:29:29 +0100 Message-Id: <20240120182929.1129183-4-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240120182929.1129183-1-martin@kaiser.cx> References: <20240120182929.1129183-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240120_103010_756311_2D4A2ABB X-CRM114-Status: UNSURE ( 9.72 ) 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 --- 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) 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