Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp88718lqf; Tue, 26 Mar 2024 15:33:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPFbSqg6IHxo5T+dmvJlu4dscae8I3cw7TEfO41XnjJEuSOATkuNkNzL/ZX0mR4KsCLbLZoS/Kf5NGzGmLLSIoMM6HpFpQkWnDRI/a6w== X-Google-Smtp-Source: AGHT+IH1LzTxUYV3gDoHUDsp0NIxvx32FYoOjmIBjMK3Upn2xl6V8YDh2mWWKBiYQx5YzhcPypuJ X-Received: by 2002:a05:6a20:d90d:b0:1a3:cb50:b52d with SMTP id jd13-20020a056a20d90d00b001a3cb50b52dmr8142261pzb.31.1711492424757; Tue, 26 Mar 2024 15:33:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711492424; cv=pass; d=google.com; s=arc-20160816; b=GQrgXyOJcG4TUGbHMHtxn157a0WZhS0N5aLGUNee2sQDoaRnlNusEm8ShyUfurHadD O/70eZgdz4oJWpFBaTU5bdUj8pWG47R5CVzW/pSEmMLhh4iPn22o1mzNdCe2ji/w864p gNnj33RIZ0B/AjlolCdL8J8Dho0phJx7C8ACq/ajjcJryQ9QzUbE4iRnCbucS0b3DzjB pEsu/486wJwOY7XozuFdOHprPe/tjplzZeoBpiTqATavDLz+frP1F1QQ5R/E2dDsOT8G cYiQrDvJD8doLdCWp1n4JH8BLsbdPjDNCaHV1MjZIIINOhC7mcUEQnM/oIvBXxk+2OZP E8HA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FgohSLyg2e0nbKWx+Eeh0sacbPLQWN8SXQaLV85doCI=; fh=Yzu/pQdIVG0OS91RpMMvcQnPgJXogcqjanJg46PwMx8=; b=tEihKxJbOufen/sX7yhIEDLb2aUCiQ4/0MNxioXyWikf4uTDKBukan1o4sCv0fvwbx epqChIULgEHgjqjAtcv2MUEVDf1cbpEo6B5bpuarXpFQmGuHC8nll9BiKf31tES128ds rhY02wJ9j72s1+gDRvXHoHLqNLlMcLwnKySK0t2n58Qcz61wihqv+c3vo/tK9tw7WRAs Ayj5MT7nDfOXXCCjOjqnG+l+u1RRWJCIj9VXV4Z+wiUbqLq4APG25Rt+VR69m40ivQCK 6WjEwWP2xynsjZrtB9IY+xb46C00hv3hhl05iXYa4huYaV9+QznXZFr9x7QmGrqn8bbf gaew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OzHC9gB5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-120048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g13-20020a63fa4d000000b005eb4df79741si10356863pgk.533.2024.03.26.15.33.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120048-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=@gmail.com header.s=20230601 header.b=OzHC9gB5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-120048-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 D956DB22AAD for ; Tue, 26 Mar 2024 22:31:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD36B13E6C3; Tue, 26 Mar 2024 22:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OzHC9gB5" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E1E61CAAE; Tue, 26 Mar 2024 22:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492207; cv=none; b=COIOLV2CMBZHi1wZ2/z4LpqAErZn8i75VZyIsedmRPXVumAr8BKq/TLL5GRpsRh34Wf5BoI7xUN271Fkubz1IN7wOYsGkXIRvX4PJLnqZETfR1Cl/H4Zo3keyAr9zS6JId8gxJSroEsl07FWkzEDNSPyaKNSy77cZJlMs0JTmFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492207; c=relaxed/simple; bh=nr1KyEnr6RNBT94GwrGI82jLNrmEMY7aUvTUBIXU3UI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jzpCg6CzX6Yxg+YOrowM42AkmbAlDVsX4YTICTeswpDiPgEAsdM4rqzV1FGOXuD9UNnFunrP74Zrdy0iI1TAJDlOTYeqGBiCv6kFAFHIWeJaVl4oYoHW94BFoKQ2g2ap/j4jcj/Cex0LEuyi6dleKOGq3PTin8BrRE5TS5RCIi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OzHC9gB5; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-341cf77b86bso1754315f8f.2; Tue, 26 Mar 2024 15:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711492204; x=1712097004; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FgohSLyg2e0nbKWx+Eeh0sacbPLQWN8SXQaLV85doCI=; b=OzHC9gB5GCs3+g8a2od9FODGdBlba7+IvgWxXwQnjbtm+ihnZLn+oLs00gl4NPDc92 LMQne+WBwIDyICOJ+AfBUwahyfgj9/9KbmwtOINPDsT/VQISboEDUoiqaFR9rW7ar+8X 2naoTvf8E4yuidk32zgk57PJklAesYxgubH0RnM62ovKvQkhQ/rjRvYEzJAC+2G9YfvZ kBpy9guEiDOLkwy9R8Zsfhxu25VHP7Tytjp0cMTQEeRj9qqKZIY0dZfW5cURiQrzseGG CPJWhYcNLCNkgdc46R4C12RQqc0msw+cx8zJFJlhSfBMkUGU1ixO/fK0rM+CacdQk5hO gqVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711492204; x=1712097004; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FgohSLyg2e0nbKWx+Eeh0sacbPLQWN8SXQaLV85doCI=; b=fYyAHF7NVXg+TwsphicVdUow1593DONNjLnksqtyiRRErg9uDJ5BG1zXr+776uZxp1 0/wUczeTJYQeBg//lffEwa+DtQC0y1uWPh1Q3cNklz4V9UWZJpu84Tx6XGNAE4hhaAR8 MEx1csbt+vBRYiQK9JkLfxu3mKkQ4wEY/hAmT6kITmPHgPA9AxSS8i2MUhkAeUAM4xHQ bjxS6GuGj4YTHJ0Q1zYUNOrMnmZg6e5Uvi2jl1lK6fkryNHolq6CsJtH/tEl6DbSh5O3 oF8am9AI/T+16Mb3yrooTv7yZuHXEfT5YHkATphfTwzUausprNaRayoBRDtIuivq0T1i hDbQ== X-Forwarded-Encrypted: i=1; AJvYcCWhxJ067ZF+KZYk5j1AB1kcFYrlYbMnWAAfiJx4ZzBWchwiIzqV2ibHdSnBYsT5PJBvGr9JQmty1oEa4doi1DYlm/5kL6jBhhL2eBAjGWJJlBZGA7DI+LHyvmqrpfIl6hup7uMk0vegi9zU8gXCj0RjfnQjlgl8chT95zwnxd/MbaJ2ADU= X-Gm-Message-State: AOJu0Yys3Itfhiui1WEwOm1ZsT3KOpUSrnf0f1JCxf/hGfVmFLfSZ8Vv L5ZcVH4Noe08FuG6jA7yyiQrcn7qr7Weoqm+5MrC+8hIx/I0LNEm X-Received: by 2002:a5d:4b08:0:b0:33d:b2d6:b3a6 with SMTP id v8-20020a5d4b08000000b0033db2d6b3a6mr570127wrq.48.1711492204432; Tue, 26 Mar 2024 15:30:04 -0700 (PDT) Received: from prasmi.home ([2a00:23c8:2500:a01:90ec:252a:cdf5:54e9]) by smtp.gmail.com with ESMTPSA id bs20-20020a056000071400b00341de138a2esm600647wrb.94.2024.03.26.15.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:30:03 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Fabrizio Castro , Lad Prabhakar Subject: [RFC PATCH 05/13] pinctrl: renesas: pinctrl-rzg2l: Allow parsing of variable configuration for all architectures Date: Tue, 26 Mar 2024 22:28:36 +0000 Message-Id: <20240326222844.1422948-6-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326222844.1422948-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20240326222844.1422948-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Lad Prabhakar Enable parsing of variable configuration for all architectures. This patch is in preparation for adding support for the RZ/V2H SoC, which utilizes the ARM64 architecture and features port pins with variable configuration. Signed-off-by: Lad Prabhakar --- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index f2c71462de92..da3a54b7b06a 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -322,7 +322,6 @@ struct rzg2l_pinctrl { static const u16 available_ps[] = { 1800, 2500, 3300 }; -#ifdef CONFIG_RISCV static u64 rzg2l_pinctrl_get_variable_pin_cfg(struct rzg2l_pinctrl *pctrl, u64 pincfg, unsigned int port, @@ -339,6 +338,7 @@ static u64 rzg2l_pinctrl_get_variable_pin_cfg(struct rzg2l_pinctrl *pctrl, return 0; } +#ifdef CONFIG_RISCV static const struct rzg2l_variable_pin_cfg r9a07g043f_variable_pin_cfg[] = { { .port = 20, @@ -2285,13 +2285,11 @@ static int rzg2l_pinctrl_register(struct rzg2l_pinctrl *pctrl) if (i && !(i % RZG2L_PINS_PER_PORT)) j++; pin_data[i] = pctrl->data->port_pin_configs[j]; -#ifdef CONFIG_RISCV if (pin_data[i] & PIN_CFG_VARIABLE) pin_data[i] = rzg2l_pinctrl_get_variable_pin_cfg(pctrl, pin_data[i], j, i % RZG2L_PINS_PER_PORT); -#endif pins[i].drv_data = &pin_data[i]; } -- 2.34.1