Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1294451lqh; Mon, 6 May 2024 03:25:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXwkI4xy8aOtAUxNz8qWrkYA56tvQpsr34kK9vejTHgaCY2vupnFwbxg7JeDECNcueJ1JZ8vQZZAksdbV6Et+wXsBaaFJJpEYcuZeIDQ== X-Google-Smtp-Source: AGHT+IHTb7rdYFavHEP7VLXscJaKZ+4SdD7tDrh3ae4hh92Ebkmmm4g64hhufCTfgDJs/nWQI/Oc X-Received: by 2002:a05:6a21:2d8c:b0:1ad:9413:d5bd with SMTP id ty12-20020a056a212d8c00b001ad9413d5bdmr11654273pzb.9.1714991116877; Mon, 06 May 2024 03:25:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714991116; cv=pass; d=google.com; s=arc-20160816; b=Z3TYt8OxKRc6LskRfJxxuzi43Aery3OLQW/VVrX5kz/a3DYVc4WadNh9J084DM3kBj XMjkKGhSHZ6r9fkXtQ67RRz1FwEQzy0as+YVkP087lASpLQg+HAPD2upyhgCmo8F3Ugd FTERDS4waLpF1bhrJh+UupJt7swqdUEbl26JvPWyOrpYSq0BD6qUsH2I5K0BpB68Gffk NAVT0Qa9CmXR5WosATekvMbFl9Pu2c7jDxJaXIuun53Mbj+zRiYF7gElPUe0ro9yNyxF MzfmW/mJbMAA6hv77L0D4IgrW4cycACdM44LVq+ernz0vFt4+Qs/p3MsdTqWigkLrQfp uliA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=wmFwpK3N8h26Gty8Cr+tcAz2yNoNekoIKLqBXcgccJE=; fh=81AVysleB9HcdgWhm4sGWdKrie69J6kxMthkNZN/PKI=; b=IcA0yCx4uXoaRw4Jhz/jpuA7lA1IKsYU/HK0+POv7FPjU+qKCGhBJb/NzQJ7LgIQ+o Mlcs+8gdhTfNeDz6etZctGBs2As5r8EhyMtVi1x3BTHszu/Q00dDeayInxRVVo3TrKtD Ez+semHEG2rOeh3CK1x+PQDTEQaNjkSoVKgxs3c8WByZNSF49qE0YbGiNYDZxULlQgoz FiKETphvmqwe0aVa0AdOvJu736TEnR4ojvVlRQmZpaqowX8yNO1TM0Wh7B7pOQ9doCXt Hd5U6cf5wU7tFNuJNL14Dzavzl5gk36HZdmCEZy2Q1oAdPxwBxQ2Uirczhwwxpr/yyut Hbpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=pFuFcelH; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-169663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id hv9-20020a17090ae40900b002b0dd4ebbbfsi10585828pjb.31.2024.05.06.03.25.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 03:25:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=pFuFcelH; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-169663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9B65BB21F07 for ; Mon, 6 May 2024 10:24:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 920A9142917; Mon, 6 May 2024 10:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="pFuFcelH" Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (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 1A0361422A2; Mon, 6 May 2024 10:24:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714991067; cv=none; b=KTGXlPwaqDrhym1D8AnzCwfxVgRByP6ElARXuI6I5jJ3ZJnGI6GsQgaoRESYNYj1zpDfl8gtUfZfDmmml5FUCX5xyzXoPJ0/tsmXFxAucNF4N1uDwgEHPeUqadH0SOVz6hbW7u6RMRTlfK4WnJcGtoXoCOo/rlIKVch/zyJXUEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714991067; c=relaxed/simple; bh=M2VUMtNp5P3o890SB2AKCq/Qvl+kHhU87lLXVyDZ834=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=bl8a451893J27W4ymCZsrAU9fpWPfJwF2HFxd+7cRtkemkLYAaqLGUfrlG2Z6jiFCF3IQ/2LA11Kppt2V3XwmHynMstOy8loCT5BEjmgx/jei/YgNwkGGzUQtp1s/MEWt9LTnktV45i8XRNCWymKprobWeC2h+51weUdVSIqysI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=pFuFcelH; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References; bh=wmFwpK3N8h26Gty8Cr+tcAz2yNoNekoIKLqBXcgccJE=; b=pF uFcelHy4P+rqcXZYlaes07Jkz/+XlIlCCaw1xTHIfrfDJaaWujw/cM8xSh5Hw6bWwx0OnAnJcr1ZT qPEmkkfunL4hCNrW3HFsllLqArORax/Pd8Xq+9eHSQOZJ0zL3h/p06oUnPhZhuOYKy0SUZEGsZKiR oFvfh2kQvEAf1NghfSHjhHwmhZOzPNp2elxLL96FKjvp7BR2T8FPygAV/l/OgiP8BTToSSao/a9bv e5mwQvZ43NulUKKSyvuCVqO9o926GL4Tw+11/8HLXYSVZ0Dn+La5qqEoLUl5c2SVPoanfGaKH1tYv ohzeqeURXEa3ECh1iZuU9mrijSPsKRBg==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s3vVs-0007Xy-Tw; Mon, 06 May 2024 12:24:04 +0200 Received: from [87.49.147.101] (helo=localhost) by sslproxy03.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s3vVr-000Ofo-29; Mon, 06 May 2024 12:24:04 +0200 From: Esben Haabendal Subject: [PATCH v2 0/3] ARM: imx: only enable pinctrl as needed Date: Mon, 06 May 2024 12:23:52 +0200 Message-Id: <20240506-imx-pinctrl-optional-v2-0-bdff75085156@geanix.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIALivOGYC/x2MQQqAIBAAvyJ7bkGsJPpKdDDdaqFMVCII/550H JiZFxJFpgSjeCHSzYkvX0E1Auxu/EbIrjIoqTrZS418PhjY2xwPvEKuujlQt8a61i3D4CzUNER a+fm301zKB2FwNF1mAAAA To: Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dong Aisheng , Jacky Bai , Linus Walleij Cc: Arnd Bergmann , Rasmus Villemoes , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Esben Haabendal X-Mailer: b4 0.13.0 X-Authenticated-Sender: esben@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27267/Mon May 6 10:24:34 2024) 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. This is a very late follow up v1 3 years ago [1]. The situation seems to be unchanged since then, and I have tried to incorporate the requested changes. [1] https://lore.kernel.org/linux-arm-kernel/be1c35eb997959b4939b304ef26664dfb9cd2275.1621941451.git.esben@geanix.com/ Changes since v1: - Changed all the pinctrl drivers to be user-configurable, allowing disable even for systems with pinctrl. - Added fixup of overly generic dependency for i.MX RT pinctrl drivers. - Allow compile-testing of i.MX pinctrl drivers using CONFIG_COMPILE_TEST. Signed-off-by: Esben Haabendal --- Esben Haabendal (3): ARM: imx: Allow user to disable pinctrl pinctrl: freescale: Use CONFIG_SOC_IMXRT to guard i.MX RT1xxx drivers pinctrl: freescale: enable use with COMPILE_TEST arch/arm/mach-imx/Kconfig | 16 ------- drivers/pinctrl/freescale/Kconfig | 89 +++++++++++++++++++++++++++------------ 2 files changed, 63 insertions(+), 42 deletions(-) --- base-commit: dd5a440a31fae6e459c0d6271dddd62825505361 change-id: 20240506-imx-pinctrl-optional-63acd3db88dc Best regards, -- Esben Haabendal