Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp90006lqf; Tue, 26 Mar 2024 15:37:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUL1VmNxJIdrHWUlk0NR0HZTsqBcmk3/6EKepqbk2Z6VJ4hd2h7u5XnVX82XPAZKEi7UkFF/ldh7XO1gC9J0xAM2TDG0Kc2lPWKsAIS6w== X-Google-Smtp-Source: AGHT+IEOvRmXUeqzKcpjhFiZ0+Z+VPu/6bCG7ddGOUF78Ahrk1HlZLNtQyD6KpV/jE7MoFhuPf7J X-Received: by 2002:a05:6358:560c:b0:17f:56d8:73b7 with SMTP id b12-20020a056358560c00b0017f56d873b7mr13575899rwf.23.1711492639833; Tue, 26 Mar 2024 15:37:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711492639; cv=pass; d=google.com; s=arc-20160816; b=zqGRTEdhjXzucmuP+8U/HD3LMxsL2dvXoH0+IU/ixX0EFN0PIMfejjdI6RA1HIASm5 jjfiD4b6dOdyyrSr4yLOF6QK433esTS75xGfmIsJJpZEVAKphqqtPa0BIKwRSQDeEvVx PM6lARPPbEs62VCTomnCv9dUNKoMTaf0qCM4KWlWYbj0cOCXoiY+Vuob7UCb7SbYEFrP Xkm9VoaMbFLcQgXsFr8bSQajrsb9nCw9FhSCyJOFQoDbAB5CTfvNhDOGcxMMePwCZitx bypjSTu5PP6jM1pl2XqP6ybCWgwpa9CPe3t0/sqaRbEPHDKAP4DzrKa80fyTg6MaHUL8 FAXw== 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=cSLnzc4A97kNjNoMOdC35aW8lG2J1TDCsRnvXQtRKDw=; fh=BZsCA1p+fTaBXEk6aQUAR16z1pOiXgQse1xGK1vHinY=; b=Q54mv4Uo6NCTedKJfR5k7vABBqKPOtZPRaB02scLRu/i8W6g20l9RtS9um9Bp6JVIP AZygngrw+mSq82g+jRSjqkIwdOYnkurV6NMVZ6G1AlH1EzRhyKRDzZbKws39Ysn4XwGL Gq8q2vBzf39Q7WlxVTkSkZ86QQJoaWf//bpEGoa0Uqose64pPc4K1ab/NP2CE4kiQb/+ Z7pTmKqE30aJsHcAmqikOynpZlNxb3zF1dku/Cge+mpOYcZe6RqRnsq+NIwep8GsNpS6 EHzb/NstFlvi9R8VVtv1y7f3omygyK71Qg3U9P90x4byQExMR+fkNH6OuZtXgBLDRkm6 aSmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Qz3eHuq7; 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-120056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120056-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t35-20020a632263000000b005dc956c2c15si10196282pgm.70.2024.03.26.15.37.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:37:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Qz3eHuq7; 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-120056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120056-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 98D03B21DA2 for ; Tue, 26 Mar 2024 22:34:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D13841411FE; Tue, 26 Mar 2024 22:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qz3eHuq7" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 1193F13FD95; Tue, 26 Mar 2024 22:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492216; cv=none; b=YLw/qfJEqpxteb7PWDlInyfTmmQBetynZK1ZRhEjG4Ga1hdFLbM8hji0NYLGmvPj3s6Ws1ijjIuHhXM+e5sB8TRtbNob81WDiz37FxUYigTmA8WdXehzdBsoFLDRfWH79eGr8bKWnoHPb5tvjApSj2IVvNqrPaJxM06OgZHqEo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492216; c=relaxed/simple; bh=n4Q+rAJxdl0L0vlun3nV+RMJS1ynmTK2ySSf1lNNzPo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QzyUhqvBnIdIIXokQUxEMtO5MeT5sDzydAyvqlchLSclqKNBOkWr/c57LK3jil/l/RlEUvTYnK0ygGQlx0jlEshMTEXjzQhOLf64QRJlTX53FKD8S08uemM/suSjnsY8SR9EFa6eFI0jiOjfCeyEIxsrb6nV2a/1Do3lYL7dkqs= 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=Qz3eHuq7; arc=none smtp.client-ip=209.85.221.47 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-f47.google.com with SMTP id ffacd0b85a97d-33d90dfe73cso156822f8f.0; Tue, 26 Mar 2024 15:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711492213; x=1712097013; 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=cSLnzc4A97kNjNoMOdC35aW8lG2J1TDCsRnvXQtRKDw=; b=Qz3eHuq7uJcWgHKp6PCMMNqTZnJedJnZQLRNLufTClv0J2u4vaUgH4nqbC+5+14xjW WqhZemS6hBMKXAz+UJ4SzXCznY2xPtar45sexLMV1wwndJAqfPIOKQWFeWNAKYqdsiA0 NVhdJduYlAvbX0QODCyGS+sqZ/E9Bzn10jqovxPsDeStXZSPd15gvvyUf/e6PLEjVUla LohLeZj22Njvycyi/MBTi9gWzTyvgI+jDgUfwyad3eelEFRfH7gZcJtJhhrhwk9zvz9l ZcpgYnl/6x1kVcyfUjn0dkiczyJQUc5p2FxBnUqeRlqTJJNOXojQHERTbXYaYHDEkZt1 4Fzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711492213; x=1712097013; 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=cSLnzc4A97kNjNoMOdC35aW8lG2J1TDCsRnvXQtRKDw=; b=qlShSehx1l5Swjh5VySGULavRK14fmYWkMPDr4qIZUp0iXPtbdzSmlFcXBnJnqo009 oJyJjOR1LbvgNiIZMtvb5QPGISxUx6MERFpkmKWCTu2BDzEdVgmEX6THdspj/0lKvjVm Q2ncV7KYWuQ+AgIg5+0fw/gorhA5Lnq9Wp3G59qdvOEY21EeHfT1Y+Dj8pdYCND7wCsi yTW7KCufvLBgYGYFu+U+ZpaFik+bNtqanc2Nl4t9MymGPELTz78jN2zD4KXnjBsykFqe 3kEUsjqSRKf7a3AFFvQ2dCOfX84481bN9bsD6H3vxcoRdNRRUWamIneU2GrwJjc26xcb 1Cmw== X-Forwarded-Encrypted: i=1; AJvYcCVL970M3W1h6puxDQKgoUQZz8AjZyM84m88hwxl9KzM0j3QCf2C6KWxkefG93RBM7ivF9qHfyh7PattU1aXseLSyMz9lPIAFW48/uS2nE8nXM4FsDIVtDVgEqURUosBJ39Q7zRriD8o/Cqy7rbUepFtszM1JBbXyNKatkkKMV1H5Qb7SWA= X-Gm-Message-State: AOJu0Yw/61R+w2vPKdWHwepBglxoR0cSJPRtnIFGT8lp0ySM4nVvTXfp pDlBcsCqAVwtJ9pQ5qszPVWTd/HbJNPWc8Iu+6WTsTVPIU0Amo5f X-Received: by 2002:a5d:6d04:0:b0:341:c473:2919 with SMTP id e4-20020a5d6d04000000b00341c4732919mr3238048wrq.14.1711492213427; Tue, 26 Mar 2024 15:30:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:30:12 -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 12/13] pinctrl: renesas: pinctrl-rzg2l: Add support to pass custom params Date: Tue, 26 Mar 2024 22:28:43 +0000 Message-Id: <20240326222844.1422948-13-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 In prepration for passing custom params for RZ/V2H(P) SoC assign the custom params that is being passed of struct rzg2l_pinctrl_data. Signed-off-by: Lad Prabhakar --- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index d64a441b4f55..6f0c85bb97a8 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -258,6 +258,9 @@ struct rzg2l_pinctrl_data { const struct rzg2l_hwcfg *hwcfg; const struct rzg2l_variable_pin_cfg *variable_pin_cfg; unsigned int n_variable_pin_cfg; + unsigned int num_custom_params; + const struct pinconf_generic_params *custom_params; + const struct pin_config_item *custom_conf_items; void (*set_pfc_mode)(struct rzg2l_pinctrl *pctrl, u8 pin, u8 off, u8 func); void (*pm_set_pfc)(struct rzg2l_pinctrl *pctrl); void (*pmc_writeb)(struct rzg2l_pinctrl *pctrl, u8 val, void __iomem *addr); @@ -2278,6 +2281,13 @@ static int rzg2l_pinctrl_register(struct rzg2l_pinctrl *pctrl) pctrl->desc.pmxops = &rzg2l_pinctrl_pmxops; pctrl->desc.confops = &rzg2l_pinctrl_confops; pctrl->desc.owner = THIS_MODULE; + if (pctrl->data->num_custom_params) { + pctrl->desc.num_custom_params = pctrl->data->num_custom_params; + pctrl->desc.custom_params = pctrl->data->custom_params; +#ifdef CONFIG_DEBUG_FS + pctrl->desc.custom_conf_items = pctrl->data->custom_conf_items; +#endif + } pins = devm_kcalloc(pctrl->dev, pctrl->desc.npins, sizeof(*pins), GFP_KERNEL); if (!pins) -- 2.34.1