From patchwork Tue May 25 11:22:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esben Haabendal X-Patchwork-Id: 12278529 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 868E2C2B9F8 for ; Tue, 25 May 2021 11:24:34 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1A29261413 for ; Tue, 25 May 2021 11:24:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A29261413 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=geanix.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=4ppxL2hEO6u+YnCxBbCKNhcasyNlPPSrR7PWhskvK3U=; b=kcJt7wfnlZQzgj Es8Ezh0uw3mxZfvAxPhNxtl2HehFPPyAs3mVq8NfG/ys/qv7vYyoBIpzCP437bHpjvoZAMgfPRAHn 6+XtSSV3+7MnjpdL0uGkqz06MR2CXK9sa/bWe8rpJKp6myyZUP1bUaUovhx82bHYHQA2IDgKYagPJ oaCkL+YXbEshksarkIblpllOPwa4qR59mR8T5XzcLHehJji0q17BJ7IlMXbKtwkdG991nIuSUWm+A rjGPL8WjZ0m0n7ODPJdS1AQYaSVZaSLokXsne+nBRWq8gNz5UAQVAdJqEG0KAnHyndUAqYeovssY8 fTbyohacvnWAVUVNcX2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1llV9Q-004k24-0O; Tue, 25 May 2021 11:23:08 +0000 Received: from first.geanix.com ([116.203.34.67]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1llV9K-004jy7-6y for linux-arm-kernel@lists.infradead.org; Tue, 25 May 2021 11:23:04 +0000 Received: from localhost (80-62-117-165-mobile.dk.customer.tdc.net [80.62.117.165]) by first.geanix.com (Postfix) with ESMTPSA id 194AE46181E; Tue, 25 May 2021 11:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1621941777; bh=Oy2Cx/M2zELsslWhmc5BIVf86O5MuE1OwiFxG1cgwUw=; h=From:To:Cc:Subject:Date; b=VsbkbIWGXvGe965MUm6cRViXRoJWSz9R/KIpcxwgptfy/mlpOdAq7fWp8bDfwl1Cl +L1hpt2r7HxsvggKxT174GXYmE0/fvAGxXpUH9cfkalvmnN5jPNGCV4ct7at1XFnRh La46CHySNUnZhFMchI37DgprvnPAw5pNt2wF15abAU4cCiqt+MoX0KksScb16RvvhF Bsldq5DltSdba5auLUyK4cc2tX82BqqNesg/hspIscaJGXl1O8gl6IYLuu8NbUdqb8 zzklX04Xu0BML3Gs5O32XcxhB9iN2TkRcLWwnA+4IXGMV59sq0/HMRLFrxaJR6JYPz e+eQ+DD1P2pmg== From: Esben Haabendal To: Shawn Guo , Sascha Hauer Cc: Rasmus Villemoes , Russell King , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Arnd Bergmann , Nobuhiro Iwamatsu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: imx: only enable pinctrl as needed Date: Tue, 25 May 2021 13:22:54 +0200 Message-Id: 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-20210525_042302_976474_29A1CAA2 X-CRM114-Status: UNSURE ( 9.99 ) 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 As not all mach-imx platforms has support for run-time changes of pin configurations (such as LS1021A), a more selective approach to enabling pinctrl infrastructure makes sense, so that an e.g. an LS1021A only kernel could be built without pinctrl support. Signed-off-by: Esben Haabendal --- arch/arm/mach-imx/Kconfig | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index b407b024dde3..3fc170456cde 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -6,7 +6,6 @@ menuconfig ARCH_MXC select CLKSRC_IMX_GPT select GENERIC_IRQ_CHIP select GPIOLIB - select PINCTRL select PM_OPP if PM select SOC_BUS select SRAM @@ -61,6 +60,7 @@ config SOC_IMX31 config SOC_IMX35 bool "i.MX35 support" select MXC_AVIC + select PINCTRL select PINCTRL_IMX35 help This enables support for Freescale i.MX35 processor @@ -73,6 +73,7 @@ config SOC_IMX1 bool "i.MX1 support" select CPU_ARM920T select MXC_AVIC + select PINCTRL select PINCTRL_IMX1 help This enables support for Freescale i.MX1 processor @@ -85,6 +86,7 @@ config SOC_IMX25 bool "i.MX25 support" select CPU_ARM926T select MXC_AVIC + select PINCTRL select PINCTRL_IMX25 help This enables support for Freescale i.MX25 processor @@ -93,6 +95,7 @@ config SOC_IMX27 bool "i.MX27 support" select CPU_ARM926T select MXC_AVIC + select PINCTRL select PINCTRL_IMX27 help This enables support for Freescale i.MX27 processor @@ -110,6 +113,7 @@ config SOC_IMX5 config SOC_IMX50 bool "i.MX50 support" + select PINCTRL select PINCTRL_IMX50 select SOC_IMX5 @@ -118,6 +122,7 @@ config SOC_IMX50 config SOC_IMX51 bool "i.MX51 support" + select PINCTRL select PINCTRL_IMX51 select SOC_IMX5 help @@ -125,6 +130,7 @@ config SOC_IMX51 config SOC_IMX53 bool "i.MX53 support" + select PINCTRL select PINCTRL_IMX53 select SOC_IMX5 @@ -149,6 +155,7 @@ config SOC_IMX6Q select ARM_ERRATA_775420 select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD + select PINCTRL select PINCTRL_IMX6Q select SOC_IMX6 @@ -159,6 +166,7 @@ config SOC_IMX6SL bool "i.MX6 SoloLite support" select ARM_ERRATA_754322 select ARM_ERRATA_775420 + select PINCTRL select PINCTRL_IMX6SL select SOC_IMX6 @@ -169,6 +177,7 @@ config SOC_IMX6SLL bool "i.MX6 SoloLiteLite support" select ARM_ERRATA_754322 select ARM_ERRATA_775420 + select PINCTRL select PINCTRL_IMX6SLL select SOC_IMX6 @@ -179,6 +188,7 @@ config SOC_IMX6SX bool "i.MX6 SoloX support" select ARM_ERRATA_754322 select ARM_ERRATA_775420 + select PINCTRL select PINCTRL_IMX6SX select SOC_IMX6 @@ -187,6 +197,7 @@ config SOC_IMX6SX config SOC_IMX6UL bool "i.MX6 UltraLite support" + select PINCTRL select PINCTRL_IMX6UL select SOC_IMX6 select ARM_ERRATA_814220 @@ -223,6 +234,7 @@ config SOC_IMX7D_CM4 config SOC_IMX7D bool "i.MX7 Dual support" + select PINCTRL select PINCTRL_IMX7D select SOC_IMX7D_CA7 if ARCH_MULTI_V7 select SOC_IMX7D_CM4 if ARM_SINGLE_ARMV7M @@ -233,6 +245,7 @@ config SOC_IMX7D config SOC_IMX7ULP bool "i.MX7ULP support" select CLKSRC_IMX_TPM + select PINCTRL select PINCTRL_IMX7ULP select SOC_IMX7D_CA7 if ARCH_MULTI_V7 select SOC_IMX7D_CM4 if ARM_SINGLE_ARMV7M @@ -242,6 +255,7 @@ config SOC_IMX7ULP config SOC_VF610 bool "Vybrid Family VF610 support" select ARM_GIC if ARCH_MULTI_V7 + select PINCTRL select PINCTRL_VF610 help