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: 764372 Received: from akranes.kaiser.cx (akranes.kaiser.cx [152.53.16.207]) (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 43182125DA; Sat, 20 Jan 2024 18:30:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=152.53.16.207 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775407; cv=none; b=o5BjNpiFuNZeuxgJ5euNU2xZWFYtDH5tDrLmIKngnifR86G9IioCCAUD1/NXfzI6HyoJ1lknNvM2NfysEscBo5mctS/0/PwTNqlBkizln5BLB4/iOv4UPA4Ho0XHTgKe6Y7DNEjaQIU8kCmeKWzAE0O3S6ffoUM2SHB56g7ojOo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775407; c=relaxed/simple; bh=ZozKb2DSW5ARGRmpcf8M9RKu0CAMeRbLeLSR3ulc1uY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AXRiPzlOz+3/mJsr79BIsyt5XG6xDUE+Uzt5oXyQ2HXbIDVuIUB+E2nxwPE07KG8/Q07Q3N2Ni0XMqfx9I+aTHdsb8Fbj7nu/JA6URi8ROg1Gjj05/CmhNkf1FZtcJs/vx+3HuBUgmB+J/IGVCf4maW1oPaHate6czOH7o9/ZCA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx; spf=pass smtp.mailfrom=kaiser.cx; arc=none smtp.client-ip=152.53.16.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx 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> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 764534 Received: from akranes.kaiser.cx (akranes.kaiser.cx [152.53.16.207]) (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 444F014ABB; Sat, 20 Jan 2024 18:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=152.53.16.207 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775409; cv=none; b=ahQ3f3i1x2UNgLxERS1jYuap1fU8kyrReiThgCJ2wlkqJ6IHL+DSNjHcDzoaKGiv2oJyodUO7uhZi9ck7ltnjiy76ytFoivt8f9DWwg0VbskibKMsKzjgDs2LUhIDhVxF+8Tcei9r1Nnjb7bNhQEIDyG5FWQW6BBzKNXjv6lz2w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775409; c=relaxed/simple; bh=WrEX1i32M8aWr3iINek/tl8q5EvuhzxOCpSuCgI0Rtw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Qe/TORarVFY2gqbYbqrXfPbLXQj2ieLksW9vQeoLbLdKWpAtsn6HpqVhJ1YPXmrL/UGfHw8wbcXEvQY7AixGmSBVymchK8pQgssfUdas5ydNPb4jK0yDx5H0A2ykt/DTcl0u6Z7NYp8UFeJPmmnRxYuFrBSXFRB0bYKTSShvROA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx; spf=pass smtp.mailfrom=kaiser.cx; arc=none smtp.client-ip=152.53.16.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx 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> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 764535 Received: from akranes.kaiser.cx (akranes.kaiser.cx [152.53.16.207]) (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 C8311EEC6; Sat, 20 Jan 2024 18:30:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=152.53.16.207 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775405; cv=none; b=Hl7Xt8LnOjemToboGkSgQvaKEgvOUfnbQuyycEUwXbsxCJdjhX5wxWDz6l3AI/u0JOiTf9hT7pImO//hCYV6QSdgWWtX2lFtVGl647GNqKhyxMZEBx8BIA5qB3uja+MNKPxHNdOUh+Kk4X0fviQDDtsWf24Qyh4msWeVJ7KCYKQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775405; c=relaxed/simple; bh=402VGEfExEgOIX4MN7FxGefgsD24E3ZTdyyu/5bhCVo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FVO/M8SfBJvliuT1SOwjrJ5l2VgrB+q+9L6gagCzGVlYyTyN4ZA6lfbYKZ8mk1ORQ4hZf7vqTHnFdobc0yn8J6M4kbr05+lnBRAzDhd1UcRgqwRfBm4RZu9Y7cF5H1o8/NiQcAEHLGBPPypu2+Q8hB0TfesmfpnQ3seM4fTWXnc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx; spf=pass smtp.mailfrom=kaiser.cx; arc=none smtp.client-ip=152.53.16.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx 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> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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