From patchwork Mon Mar 31 11:06:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 14033487 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D52A9C36010 for ; Mon, 31 Mar 2025 11:07:31 +0000 (UTC) Received: from TYVP286CU001.outbound.protection.outlook.com (TYVP286CU001.outbound.protection.outlook.com [52.101.125.57]) by mx.groups.io with SMTP id smtpd.web11.49164.1743419245820480194 for ; Mon, 31 Mar 2025 04:07:27 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bp.renesas.com header.s=selector1 header.b=V0dB8IrA; spf=pass (domain: bp.renesas.com, ip: 52.101.125.57, mailfrom: tommaso.merciai.xr@bp.renesas.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aB30zV/F7OjOQ30l1rYqtwDfdWqEs799ZN4ZMVrfxpg68gn02Hrq0mC/6UxO1VJgOpacB6AYyvWxgSUR8c3w9xO2SSq6R8tUGSd8KL7mJ7BRGB3/M4cafQd2f/C2m+LGReLztJyW59dec8B4KHrTxYsJuchdyQlc6jwYJX3B0JMu3+eGqRHGCnOm9y4ZjDHdmfzzerbMAeKC5MAd7QBa2RLjw/iWgxqp++eG6czT07b6Jr9BttIpN55jBWvnU2nSrANovYg6FIK/2sjqZ+2La/z9YhFr6CXZFbiVeuQA6FQ7Qpg27jcVA7AVlL0HAkuv09PoYo7B5koBGs6Tav7H+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3UtfBw1ldZWjUZim3JPRsZwRNeoBxmlWgZkHGqiTF6s=; b=N4+HnKFzMPxv7Jqxx917KzF7Ptcthuun5Hkh16snnq12RCChiZHdTEV2r06/1qZ434ZdACqIJFwtfOVobakjKgGXuGbjubwPppyuHXsmv94M64NOeYcYvpbCFwPKosmAESulcCgg4+444u+24lEu0jDA16Ch7LOvVjjvLywRmrZVr+4Xde5ofb1rycAtCVvPzqYFWHbY7TkQVoScWeME7g5jHRUI5QfbIz8A+VvGi1Nqs6oEL8eXTcwiFMvf1S8ZyEJHHzZdVBiyiSl0ycegns1y601lOXx7LzhBQuFeDcT1o73NmIln6PYB4dnhKO37RyO+OWTiBmiDUxBYv/Zq6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bp.renesas.com; dmarc=pass action=none header.from=bp.renesas.com; dkim=pass header.d=bp.renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bp.renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3UtfBw1ldZWjUZim3JPRsZwRNeoBxmlWgZkHGqiTF6s=; b=V0dB8IrAZn9J0ImXPgw28a0EfVdDV8m6YlXwthSRGLnWwFXGHxfQsz6tGIFBSPhdgMdevfXsP4zsAKNQfnjKvM5/y0e3q0KxrUEpdCJT71ZqiNErVSZ8sObRa1s3q1JidcWE2ezS6A5NgbAreOtBNcm7lI+y0Y1Cde/gttTQb6E= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=bp.renesas.com; Received: from OS9PR01MB13950.jpnprd01.prod.outlook.com (2603:1096:604:35e::5) by OS7PR01MB15065.jpnprd01.prod.outlook.com (2603:1096:604:370::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8583.38; Mon, 31 Mar 2025 11:07:26 +0000 Received: from OS9PR01MB13950.jpnprd01.prod.outlook.com ([fe80::244d:8815:7064:a9f3]) by OS9PR01MB13950.jpnprd01.prod.outlook.com ([fe80::244d:8815:7064:a9f3%5]) with mapi id 15.20.8583.036; Mon, 31 Mar 2025 11:07:26 +0000 From: Tommaso Merciai To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek CC: Biju Das , Lad Prabhakar , tomm.merciai@gmail.com Subject: [PATCH 6.12.y-cip 02/13] dt-bindings: pinctrl: renesas: Document RZ/V2H(P) SoC Date: Mon, 31 Mar 2025 13:06:48 +0200 Message-ID: <20250331110659.252237-3-tommaso.merciai.xr@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250331110659.252237-1-tommaso.merciai.xr@bp.renesas.com> References: <20250331110659.252237-1-tommaso.merciai.xr@bp.renesas.com> X-ClientProxiedBy: FR4P281CA0165.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ba::20) To OS9PR01MB13950.jpnprd01.prod.outlook.com (2603:1096:604:35e::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS9PR01MB13950:EE_|OS7PR01MB15065:EE_ X-MS-Office365-Filtering-Correlation-Id: 87ccc874-4723-49ea-3bdf-08dd70443831 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: bUuXQ4iWsL2+uBEJvvbeKuSBLsYiIK8tJm1WCuXnFV3qTtZNPg5lOyxoMStcpJpC5A0TS7a/CJu19Z3s/xhWV0iyM4MVsGjEfrdxUQfOcthldf4ZiVdMS7IAWWi++T9tlcyWJgs0cTX36KZTXqBdFsbrYXzMq8Py9TEmpTvSEV9aCupP1tSQM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46NgCZSiyXecIikBRPxEMbl00vfn/Jf4LscE7BSH+UtiHCQUQUR9wmC4O4EFDT9Fr/IleoQFslxNmmHpT/oBbyB92XjE1QaT7fWIeONRgbBt5zr7WbV5bLlYvbWYj7ff/nq0+u/qffU1vb3JW+sBsy8QzZOKnmzFWIE9TcC+XS9ZDhAMun/K+LCp2kON1bzRWldGeiw9YTvzPqE7v5meYFoS9iFjNV9x X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS9PR01MB13950.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: n8bbJdWFgYvHUbrK/IqFJB6cK1omGJzQy9Zdcbm+6nJBPw3mEwrEiF6l+NdlvApDGR+io/b+6fhybMQahUhi+HHEdMMRoyNw2bmzipriFuWyhLySjBk3MgOKTmd7MGpSTY5ikWPnR3GyP5Q9+Wc7sIR3dSl2bFmMkstJkWOL0bkDSUTx6Kcg6SLcOc5qcv+Tekbnn4YlpOpRs1YXK66xZzWsS64byei2Zc4Ewqt1jpzB2idZUGrn0kfM89trxppMP/3e59bat9R6IlgaczV9ZGuaORJxt4sSt61U24QLCLfqMA9C8kfjxgpeH5Ri/j5nu3DD5WEVr3N7iMtEwU5vApC1oBJL+/XSqE3AP+YVuy72ADJyQmqJcuM3/LWNolr9m/t3dfFnPiMAPgVGgHruewUXGa6QfmE3dxKwMyODywbAEBeyxMNH2Qt2O5Mujf1wv0/qM8F3nenZe61j+t0HFdeWIz/BkKtwMoJGAhIwv71UE4a47bugJgh93OsJL2HGQkMImKj7UsufevWM7TBp4l7SND82n8efVz1OeijWoYtgivXUehanKBkoGq/wowuEV0ve6TclDfztJheqpx+gOGyVTGvkXDGkFg2ukvce7H6hdhqowVDMzwexaf+09f/Wt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change-CrossTenant-AuthSource: OS9PR01MB13950.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2025 11:07:26.2546 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rTIo/cg+pqouutGvfm795xY6IOB/YjjOMvznthkstziIsSvp5e1HoGygqnhiBftKDqZF0SCwTXt+FHp0+Lno+V3tXwwAlM4RwrEtA89lpD9++U0CiS/TaoXkPPeduzZR X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS7PR01MB15065 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 31 Mar 2025 11:07:31 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/18434 From: Lad Prabhakar commit fb73d663b31398aea8528fb231e660c4958b29ff upstream. 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', is added for the RZ/V2H(P) SoC. Also, add the 'renesas,output-impedance' property. The drive strength settings on RZ/V2H(P) depend on the different power rails coming out from 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 Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring (Arm) Link: https://lore.kernel.org/r/20240606085133.632307-1-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Tommaso Merciai --- .../bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml index 56d90c8e1fa3f..dda91d0a5cb9f 100644 --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml @@ -148,6 +148,20 @@ allOf: resets: minItems: 3 + - if: + properties: + compatible: + contains: + const: renesas,r9a09g057-pinctrl + then: + properties: + resets: + maxItems: 2 + else: + properties: + resets: + minItems: 3 + required: - compatible - reg