Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp87235lqf; Tue, 26 Mar 2024 15:30:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrQ7eGfockAlsfaN6dcQ+5M3+8drozUVJjaTM43rE/AS83jgYC3kMDJGP/c/HnjRiErZCRRcJxIzkIg4XfNbnEO6c4GJ5hOWcq8X7PIA== X-Google-Smtp-Source: AGHT+IHUHW8y4T7cXqhl68aegej22lbE68qWWqIgKLWm3jVfAQTod3cA4mKtKXoS+v1Dmsmpx5k4 X-Received: by 2002:a05:6870:a350:b0:229:7fe1:5674 with SMTP id y16-20020a056870a35000b002297fe15674mr2629767oak.29.1711492213417; Tue, 26 Mar 2024 15:30:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711492213; cv=pass; d=google.com; s=arc-20160816; b=dB7imPJ7QF3xv3AEJMS0G0UFVGcOwCXDVPmd2CpisVSLVSLivdtYYYEg+uSeRpxSo+ eiQZCzstMHeiJ3OT5ynymcIr4YZSXr7nfBaA/T4rOoNFcCiBJXLAAB3hUVL7bQT6gluB yggzmqvzrxaizmxNtTbdB/6FCohsdpb2QoHFe73UBfcygzWzExFQBFQPxEYxGN365uZH +vTTAF3ExbqchRpXbXRHxVsIzQgOOiu3YjC81T6vDbGTk5Wl4DH/z4bbFDuEaqB1EpI5 s8/O9YTVdcWJZhmcQl2bBmTWulWEqO28nwrRJ47Gy8+MDBngnbG004GHHPAHXRFSeqIe EkJA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=vbPt5ntP/CxLfYWp8zy6p/zJwX6nqgrJF6QZz86Xn8g=; fh=KTzBcbM5nWDfiDJd1aD0bojaE3ZaSKedKWdgtF6U+3Q=; b=QNHy//NlPiXgq/xqzKMQlw6ZwE9qtmQXpLejrdRC1YlbDRAR6dOBUH1xchTw8jG8JL ZbDPQW3ewHaXfA7axsLjgZv6wXcgAZFw4Rg5sYYO98dXSLynIIO2CsClni2W2po76M6G 4DKGRGYSucuCFj/dht/SC6KdqrG9atKk6I18SXcTNXmk6aVIRkvI2L482VBOVifsovbE +Y+LuQTvv+9JeUgTHsdx83ja5UXrELiIGl3vPPTPzeN/JW6FPhaFw5h5UCMCuwpn6Dv+ H1I0N0Mr9To8rpjwYgrdWk/28bMK3l+lXByH5o98yHamzB9swsl9/LqcjJfXhNfKXt+4 yOkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YYHx7x47; 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-120043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id hh1-20020a05622a618100b00431376a1eb4si7784302qtb.613.2024.03.26.15.30.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:30:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YYHx7x47; 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-120043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120043-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F03A81C34586 for ; Tue, 26 Mar 2024 22:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 485C313DDB3; Tue, 26 Mar 2024 22:30:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YYHx7x47" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 9894813D88B; Tue, 26 Mar 2024 22:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492201; cv=none; b=Xt8QN+WYcE1l5J6D1agZ3yYMjFdOoBd4JRJr3LcUWPD4p+H0wRVHOlaFKepEMOF+Ox0F4mfpgXWA4nOB8efkKmgXqwZLW9SL8Xz3ZQag3CXSqr/e/z3h4Equ99dFDuDBv9pasZtQY9a4R2vaHLuSSBXnfzam37noIf39JoB+wuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711492201; c=relaxed/simple; bh=lPe0mWWCvij0Z4wl+kHtggQQlU7f7OnUfy3p5nPzaGI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=RpBGpNqUuyQDWjS7wWqk24hjNPtZPlTtwCQUPngsiWRCNpvc0rJF110jv8PaPqJ/ZPXFPLgKxqrHB1wlk1JwB4c5HrwjP12wJTuCQ0Rstn9rYD5bU6loEsoAgAkB58wHIVDi+Ul6FFSJXPPmu7knuusQbCM7ZF9FkyT3uRuMSec= 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=YYHx7x47; arc=none smtp.client-ip=209.85.128.43 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-wm1-f43.google.com with SMTP id 5b1f17b1804b1-41494745775so104395e9.2; Tue, 26 Mar 2024 15:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711492198; x=1712096998; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vbPt5ntP/CxLfYWp8zy6p/zJwX6nqgrJF6QZz86Xn8g=; b=YYHx7x47+dL65xmY4gQ00aE6emBZxwhQAciua6O0F5QkylrhRVIXMfUR2WrupTlgzL 8mXS7AlFkNZzKY7yM6+Xqn1Xqrb4j0OEn7MEJNjRRPCPG8GxrehN7IbuHq62MroDBNS/ PtnSXg9FmTFbvdFPESLyZxj1J2UXQMfA4UnkiUvdAoPa36Hhrcw0cKaZyymiTMd1IlgX hcBvjPyhX5X2OK4UexRIFhjI9n/ctWw4IHXtLxDWKMPGUz4jma1yAFBtEJiqxDQXi2x7 DhsXQB3mIb2NYsgpZEcvjCMhlv8S7HAfrmFdFkaG+Yak0H/yZklwjBz6RKHy0NwuHQkn UJyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711492198; x=1712096998; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vbPt5ntP/CxLfYWp8zy6p/zJwX6nqgrJF6QZz86Xn8g=; b=HGgONfPRQjPuDYNTHuhbXerZcefzhyzdMZ5yIqBnflr9jDo2I+DKUecoZCqMTiwssV jWDbW6MYX7XY+BG5FL+P5atT95vBp3RsslZyBiufTWznU6X5Yuk4dpTj+YixsiAXZaMJ PhrD7PPtHCfrsuX/JLX6DNbbJRxEbbdnmezSAogW31CMaMMxp08nmwMOz9Z5pbqctaco pEBG+f8nkUH4lYbmFnXoz0ggNuZsE1iWjAViOsnNt7jjCoB7rlf9Ow88AM57PsIjM4Gi dPzd2ROedpcoXP7TTXrlVPDhAyXyjDQb1Jx694YBhyWKi+Fjob525MicZiPMZCr6W7a4 Jl6w== X-Forwarded-Encrypted: i=1; AJvYcCW9RUJuAkNK/jDeEe6Hxo4qjtXyZt7qKnuognBjNcM9n9vmMVZYYGjPi9p+zBVP9EI3U/KUYbQs1jeb/fSptQrhksz3g5t23xhUQ3rIEXhOL9efNt2KRChOE9dVSoz4q7YPlpSp2C49Ausea/48ao5mqoYOnmbk7Mpb2A57axgUwS91HLM= X-Gm-Message-State: AOJu0YwA7rNT89d/Qxk4+4GkPzJ8Z8xB79V+C6Csc0rpCgoFWtzJIBNX TZixqhOvOOS0pJHL5Hsj9K6pAB0rPPIdvtQ4p9pteurSNCVcdEOr X-Received: by 2002:a05:600c:4ec6:b0:414:8c04:23d7 with SMTP id g6-20020a05600c4ec600b004148c0423d7mr3924257wmq.12.1711492197753; Tue, 26 Mar 2024 15:29:57 -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.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:29:56 -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 00/13] Add PFC support for Renesas RZ/V2H(P) SoC Date: Tue, 26 Mar 2024 22:28:31 +0000 Message-Id: <20240326222844.1422948-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.34.1 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 Hi All, This patch series aims to add PFC (Pin Function Controller) support for Renesas RZ/V2H(P) SoC. The PFC block on RZ/V2H(P) is almost similar to one found on the RZ/G2L family with couple of differences. To able to re-use the use the existing driver for RZ/V2H(P) SoC function pointers are introduced based on the SoC changes. Sending this patch series as an RFC mainly as we are introducing a SoC specific 'renesas-rzv2h,output-impedance' property to configure the output impedance on the pins. Drive strength setting on RZ/V2H(P) depends on the different power rails which are coming out from the PMIC (connected via i2c). These power rails (required for drive strength) can be 1.2/1.8/3.3V. Pin are grouped into 4 groups, Group1: Impedance - 150/75/38/25 ohms (at 3.3 V) - 130/65/33/22 ohms (at 1.8 V) Group2: Impedance - 50/40/33/25 ohms (at 1.8 V) Group3: Impedance - 150/75/37.5/25 ohms (at 3.3 V) - 130/65/33/22 ohms (at 1.8 V) Group4: Impedance - 110/55/30/20 ohms (at 1.8 V) - 150/75/38/25 ohms (at 1.2 V) The existing property 'output-impedance-ohms' cannot be used to specify the output impedance setting on the pin mainly because, 1] The regulator information will not be available very earlier in boot process 2] The power rails info will be coming from the PMIC connected to I2C chip, as i2c will also require configuring the PFC there will be an interdependence of this two nodes. 3] We cannot use 'power-source' property for each pin as DTB's dont use up all the pins on SoC and when dumping the pinconf-pins from debugfs we wont be able to print the output-impedance of pins which are unused. Due to above cons 'renesas-rzv2h,output-impedance' property is introduced where it allows user to specify values [ x1 x2 x4 x6 ] which internally configures the IOLH bits to value [ 0 1 2 3 ] respectively, and does not depend on the actual voltage setting. Cheers, Prabhakar Lad Prabhakar (13): dt-bindings: pinctrl: renesas,rzg2l-pinctrl: Remove the check from the object dt-bindings: pinctrl: renesas: Document RZ/V2H(P) SoC pinctrl: renesas: pinctrl-rzg2l: Remove extra space in function parameter pinctrl: renesas: pinctrl-rzg2l: Allow more bits for pin configuration pinctrl: renesas: pinctrl-rzg2l: Allow parsing of variable configuration for all architectures pinctrl: renesas: pinctrl-rzg2l: Make cfg to u64 in struct rzg2l_variable_pin_cfg pinctrl: renesas: pinctrl-rzg2l: Validate power registers for SD and ETH pinctrl: renesas: pinctrl-rzg2l: Add function pointers for writing to PFC pinctrl: renesas: pinctrl-rzg2l: Add function pointer for writing to PMC register pinctrl: renesas: pinctrl-rzg2l: Add function pointers for reading/writing OEN register pinctrl: renesas: pinctrl-rzg2l: Pass pincontrol device pointer to pinconf_generic_parse_dt_config() pinctrl: renesas: pinctrl-rzg2l: Add support to pass custom params pinctrl: renesas: pinctrl-rzg2l: Add support for RZ/V2H SoC .../pinctrl/renesas,rzg2l-pinctrl.yaml | 37 +- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 566 +++++++++++++++++- 2 files changed, 560 insertions(+), 43 deletions(-) -- 2.34.1