Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp189143lqr; Wed, 5 Jun 2024 03:07:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXG1JNyXfsvvkCTm/q5D9KljdhUAl9g17Py7g3WcLcU9DUhk2s0Un0AiYHKchYipl1gLmhZB2/ybZe/jo3Bo6mSnhGxAH42zfIZbUnjpQ== X-Google-Smtp-Source: AGHT+IGDZOS3oCJKBf4MpSnRDtZyDXkv2W5Wxn4SqWlPdhP3wvI0eH5QqmcTaSi6AK+fTfEmAgcj X-Received: by 2002:a05:6358:419d:b0:199:2f99:135d with SMTP id e5c5f4694b2df-19c6c68ae83mr224026855d.12.1717582035143; Wed, 05 Jun 2024 03:07:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717582035; cv=pass; d=google.com; s=arc-20160816; b=yDdFT2GVoEzGt3tyZmtnHb6SLvigq2j+ED4uO8KDcLE56CEJHveypSyK/tIM62tHQo ejFRWOG1N/xhHS+O4aixSKCP6dpJRTpMO1X3C/OKoT2AFXZOFOlQyKlriAnIRhUuiAhl GN48lxpCJC2aNwjnOcOJ5HpsfBEObs2MTJ9qtg5SXrS8g/ubOV232SsbcJZxQEdqqubM UzFx9zKo01MFeQhJP2VneoAcKe9kt0546wXAohJshSP0yaCYH5kX8CQk04Iee5UbnXDP os6xeYqoa+dB726SXgcCnZwU8dZU4WmtcGy7Xvw94Rma/X9DNRUUWZIN32Nqc6YA1laV 1qPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=puyOGqVsp6EcirumspQfyKcZNWl80Nyr2MnUIFboX5E=; fh=zTk9DmqS6X3BmGuO5gy4QJJvYDxlcVz545OSb28eMwI=; b=faz8uaUUChWWyA5CI3V4CwmNF0lxyp56oeQEvnxAFOM7Nqx3N13hjlCsk0Ju9R9+se n8Ggi4IRzAUh5/Aq4JjG6Oqw1x++gBO9xpt/cr/Qe1UeoPKqZ7hZtVQj6b8WlcxIcYM4 CF/wDYfa8OlHkfUCt+Dn/kW40nMr31rNSBcFk0oNfb+T9Th+hrvDklOZ7ZJ9wnInjLRa 0IDZBV/6t/VLanMlxjTQ1dqVufyrV/E2/7BgZVlXo95SW+VM1/TDJCtXgMu01Vctd8hR 9mNJNDikWeb6OGC31wCsL7z8jSNYos0cvtCUbHM+NTQvfB8aZkQX+oE9P0cfAMMfqN1u zVfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mFkzOiC+; 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-202130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202130-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 41be03b00d2f7-6c35b40c212si2307733a12.562.2024.06.05.03.07.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:07:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202130-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=mFkzOiC+; 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-202130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202130-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 44D8AB2961F for ; Wed, 5 Jun 2024 09:41:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 989EF14B093; Wed, 5 Jun 2024 09:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mFkzOiC+" Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) (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 0E00C18FC92; Wed, 5 Jun 2024 09:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717580376; cv=none; b=MOAODEvNu42J001Ff/40sBDWTw/ZwWeikhv7xsZBdrXqH+54L9PEkbPXY6rC7wd7+hFIP1fAjCXdnsfX5CAhlVz4YajGdhLA5VGWsGUudWqZkSN2weZPazNAlSTdckEDW2fYUH9HiSMtQNURnt72PYpivQTXgBFcY76OnKjcxkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717580376; c=relaxed/simple; bh=nD56f68PCLOYxyLOXE35qjDHSDWC7yB5yTQqIGFjuZU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Xd95/ZaapMbqw4sxvioUI9G9UET0Ns92F2oAf/VpKODBuE7C6KusyXj+Ju1dVG+a/1pSpfT7Ia4z99GrcMs/WAqfDTFT19WYPm4cLJ0Tt1xFV4JUWh3DKlUj6YCTi1KqKDrfi3ihrfFrA6A40YjqPyteWJD91zpR7dKUBREPsHk= 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=mFkzOiC+; arc=none smtp.client-ip=209.85.221.174 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-vk1-f174.google.com with SMTP id 71dfb90a1353d-4eb076bec24so838950e0c.1; Wed, 05 Jun 2024 02:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717580374; x=1718185174; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=puyOGqVsp6EcirumspQfyKcZNWl80Nyr2MnUIFboX5E=; b=mFkzOiC+mJs0Zm8AknXO9mgrN3/wDBoOAOpzVGbwd7/TkG/0NLoD7xb5ht3Sxy0vBw xZPy6OLDmkIHi/6i2REo9ix2bVLco4KCs1N0bq9btuCHZf05fcZZQKLv98h8211QankG ZQHDeKDCvysEvTQasYhworvySuiPvPTMHE27Jiz2+s6nB7iGTX1/0G8/orcwbtusUjsi V6phKjQkl1TIEq3nLFMdo2avxA4oU7eCzPb7v5CXX1oQwHRLz3XQJTdU3nQblbfEBAaa LEJYGKg7RPNg04mJUAMvwNKO2LA9plg1IzmBXL8SLvxop/MBkMGQMz2QoHwb/VhJwY3U Z8jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717580374; x=1718185174; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=puyOGqVsp6EcirumspQfyKcZNWl80Nyr2MnUIFboX5E=; b=BdznCRQlwGJW88tp5tzw+ITQbrqsooY1yQn5oGioYDADOWVutPBxEwwRp7YPlW7E49 BLfxWwtjgDSK9xJoc63guOGvaKXXu1/iQTy6pM19iMsOllWel42oY0hb0fT5ftuJ2tdk P4ySpZlbL23TkQ12jgF0me7JnVSsr+uuWEPUAVTbqC03dgTrC/ATDUnqb0oqTfMtfUev wzC6FroOe15n2m8mXpR0KSrOGoAGWCGpyTsIDueNOcRZMHfijMRAfsh4ALzX4Ty33WOD Osp/c4IY+urh8BjZL1rbnlza3Sho2iz7aO82GEWcpFoW17qBtMPKGL7r669nfUmok5CJ Tq9g== X-Forwarded-Encrypted: i=1; AJvYcCWLZIgFpJT2rCHT4a7Is+C+WLzHLX9NakuSR3irKKgtNO4nQNZjsGhblaXu7MYRxAAns81m3yK/FyGAKmJSj47mjZFQFTxunkfLX+LB2NohVofKEGRJDbBx/AMGGq1aiUppGM7nXMOAWRulJdxglQUOhnvKUHzz8hc7vVo4CLakgj78Ur0jQzClLWCFOZ9troHHMcsN38+z5W5uvz/QRKspioR0MtIlBA== X-Gm-Message-State: AOJu0YxHFph+2WHb+uSb2z56DKeTykiaowNkq2EkYeUSR/br+GEOnAwW TCes0sEswGFhK1jdzZ9fUyBuGeeilUtJsJPAM2DFQ2YACai994EjC2BDyszGdSgWiJbOAcbyBvq T2eoE4Kte2GBmgtJF7Tdc1qYCpJs= X-Received: by 2002:a05:6122:328e:b0:4e9:7df0:dc7d with SMTP id 71dfb90a1353d-4eb3a4fe15cmr2216061e0c.15.1717580373635; Wed, 05 Jun 2024 02:39:33 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240530173857.164073-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240530173857.164073-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240604153612.GA839371-robh@kernel.org> In-Reply-To: <20240604153612.GA839371-robh@kernel.org> From: "Lad, Prabhakar" Date: Wed, 5 Jun 2024 10:39:07 +0100 Message-ID: Subject: Re: [PATCH v3 01/15] dt-bindings: pinctrl: renesas: Document RZ/V2H(P) SoC To: Rob Herring Cc: Geert Uytterhoeven , Linus Walleij , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Claudiu Beznea , Fabrizio Castro , Paul Barker , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Rob, Thank you for the review. On Tue, Jun 4, 2024 at 4:36=E2=80=AFPM Rob Herring wrote: > > On Thu, May 30, 2024 at 06:38:43PM +0100, Prabhakar wrote: > > From: Lad Prabhakar > > > > Add documentation for the pin controller found on the Renesas RZ/V2H(P) > > (R9A09G057) SoC. The RZ/V2H PFC varies slightly compared to the RZ/G2L > > family: > > - Additional bits need to be set during pinmuxing. > > - The GPIO pin count is different. > > > > Hence, a SoC-specific compatible string, 'renesas,r9a09g057-pinctrl', i= s > > added for the RZ/V2H(P) SoC. > > > > Also, add the 'renesas,output-impedance' property. The drive strength > > setting on RZ/V2H(P) depends on the different power rails coming out fr= om > > the PMIC (connected via I2C). These power rails (required for drive > > strength) can be 1.2V, 1.8V, or 3.3V. > > > > Pins are grouped into 4 groups: > > > > Group 1: Impedance > > - 150/75/38/25 ohms (at 3.3V) > > - 130/65/33/22 ohms (at 1.8V) > > > > Group 2: Impedance > > - 50/40/33/25 ohms (at 1.8V) > > > > Group 3: Impedance > > - 150/75/37.5/25 ohms (at 3.3V) > > - 130/65/33/22 ohms (at 1.8V) > > > > Group 4: Impedance > > - 110/55/30/20 ohms (at 1.8V) > > - 150/75/38/25 ohms (at 1.2V) > > > > The 'renesas,output-impedance' property, as documented, can be > > [0, 1, 2, 3], these correspond to register bit values that can > > be set in the PFC_IOLH_mn register, which adjusts the drive > > strength value and is pin-dependent. > > > > As power rail information may not be available very early in the boot > > process, the 'renesas,output-impedance' property is added instead of > > reusing the 'output-impedance-ohms' property. > > > > Also, allow bias-disable, bias-pull-down and bias-pull-up properties > > as these can be used to configure the pins. > > > > Signed-off-by: Lad Prabhakar > > --- > > v2->v3 > > - Updated description for renesas,output-impedance property > > - Updated commit description > > > > RFC->v2 > > - Renamed renesas-rzv2h,output-impedance -> renesas,output-impedance > > - Updated values for renesas,output-impedance > > - Added bias properties > > --- > > .../pinctrl/renesas,rzg2l-pinctrl.yaml | 23 +++++++++++++++---- > > 1 file changed, 19 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pi= nctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctr= l.yaml > > index 881e992adca3..957b9f7e7de5 100644 > > --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.y= aml > > +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.y= aml > > @@ -26,6 +26,7 @@ properties: > > - renesas,r9a07g043-pinctrl # RZ/G2UL{Type-1,Type-2} and= RZ/Five > > - renesas,r9a07g044-pinctrl # RZ/G2{L,LC} > > - renesas,r9a08g045-pinctrl # RZ/G3S > > + - renesas,r9a09g057-pinctrl # RZ/V2H(P) > > > > - items: > > - enum: > > @@ -66,10 +67,14 @@ properties: > > maxItems: 1 > > > > resets: > > - items: > > - - description: GPIO_RSTN signal > > - - description: GPIO_PORT_RESETN signal > > - - description: GPIO_SPARE_RESETN signal > > + oneOf: > > + - items: > > + - description: GPIO_RSTN signal > > + - description: GPIO_PORT_RESETN signal > > + - description: GPIO_SPARE_RESETN signal > > + - items: > > + - description: PFC main reset > > + - description: Reset for the control register related to WDT= UDFCA and WDTUDFFCM pins > > You need a conditional schema for ensuring the length is 2 for RZ/V2H > and 3 otherwise. > Ok, I will add a conditional schema. > > > > additionalProperties: > > anyOf: > > @@ -111,6 +116,16 @@ additionalProperties: > > output-high: true > > output-low: true > > line-name: true > > + bias-disable: true > > + bias-pull-down: true > > + bias-pull-up: true > > + renesas,output-impedance: > > + description: | > > Don't need '|'. > Agreed, I will drop it. > > + Output impedance for pins on the RZ/V2H(P) SoC. Values 0, = 1, 2, and 3 > > Don't repeat values in free form text. > OK, I will fix the above and send a v6 series. Cheers, Prabhakar