From patchwork Mon Mar 31 10:44:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 14033446 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 7BE46C3600C for ; Mon, 31 Mar 2025 10:46:01 +0000 (UTC) Received: from OS0P286CU011.outbound.protection.outlook.com (OS0P286CU011.outbound.protection.outlook.com [52.101.228.25]) by mx.groups.io with SMTP id smtpd.web11.48795.1743417952516858295 for ; Mon, 31 Mar 2025 03:45:53 -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=Oh2q8wY7; spf=pass (domain: bp.renesas.com, ip: 52.101.228.25, mailfrom: tommaso.merciai.xr@bp.renesas.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QU5wN0WJfHGr4vZ2Lb7og4QnKO0hS1sJGeg6B8ESJeJ9EEhTHchrf6penWH/AZ6XJuHLfu/85kQKpe2rFxfc1YEJku0r+vqsadJ7wcJNMgyagbX+5ZM/G6NmZaZZCiNe7fCL283w/xuZ1k7ejc/ZgPzAKEfPV32uSiEgElaQWeWSBJ1A/Cja63m3SV63Y5opqQMAE+LckcPdunGpsQ9o0b0OSytBsD9mA0yK3bnfNeB7+sfDlUB01OlB/1JZnh45wkHDTQQMfDz/eBh/QsrtTv9cxL9e5eWNGwnzTcTg5CXtz5FO9eAw+YKFglBbbCUULEhJyj9PNW66OmUo136Wbw== 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=Wl4K0H2q/sFCpH2VFd21odQ+H69S7/PnjAZrK8rZgdY=; b=yjcTI6ShieI+5riTCvkL6QJYLpEwPlhPjGumoZGWQ6uT51H4RCxrCydkaqKQNWldk+gocQSJ2FjJoLbjHFErqkDqlG8o7zIyoYpPH3pdfBjH6VxNs0qLZ/1oH02X4MELlL0AQwDNmalDagqVnLZTI9SVqOvZZVjO3KBBA8Xgq0pDUm+gKx6QNEtW5dlV+k9mC8gtit20NVW5rBXGIkd2NIA6TO/tyulZgEFQEvJjng8pqHxLC0V3d6UxiP47wUPOV0P9lnpMmG5AUzw1+0M3QeaycGpsJ7ufzJbz1P3gmpz/0Ve1tOqWgBl+ll7WEUJESoW2DdVkbn0LNB22cD4/PQ== 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=Wl4K0H2q/sFCpH2VFd21odQ+H69S7/PnjAZrK8rZgdY=; b=Oh2q8wY7Rr/aVLvhN3eeXKDi164ZE0YaXGYcVlWjnXpjCilUR0SgPhr3h+983Hg48Q2ObbqAfIwjFigBtMRrxb4qsCDxD8CcQpVweRBADBMdk7GFcL5Zk/raEhTHn5/ro6MOZlob45XMWGQA4KkbTphXpDQrbTWhf9CGt0hfDIc= 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 TYCPR01MB9796.jpnprd01.prod.outlook.com (2603:1096:400:20a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Mon, 31 Mar 2025 10:45:49 +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 10:45:49 +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.1.y-cip 06/43] dt-bindings: pinctrl: renesas: Document RZ/G3E SoC Date: Mon, 31 Mar 2025 12:44:37 +0200 Message-ID: <20250331104514.79090-7-tommaso.merciai.xr@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250331104514.79090-1-tommaso.merciai.xr@bp.renesas.com> References: <20250331104514.79090-1-tommaso.merciai.xr@bp.renesas.com> X-ClientProxiedBy: FR4P281CA0148.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b8::13) To OS9PR01MB13950.jpnprd01.prod.outlook.com (2603:1096:604:35e::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS9PR01MB13950:EE_|TYCPR01MB9796:EE_ X-MS-Office365-Filtering-Correlation-Id: d7421fa6-6467-4d35-4274-08dd70413338 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|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: kjpBLvGcn0qg5zcpiK8EMC3CKxbhcNYdXGn0HbovqSA0icfheRq0BLsbI1FNv5QOuZx72rRquRqEyoqb4Q2cM2mw8OIKkRHUijMPCuK3PVKErPHjL5paEiPa7QpLdL9kEEoIIW1ATlbOkxEmGMGZi01b7cXGEnoUQhJbCAfrol6IGa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tFnnup0+zpcosunxDHpwA3ByoxWAXIVBSwOHXfnhFuKL0cFvur6nWO0Os+woakMOzRS91W+nikCJ3Wl5a97Z835otFIQMdF5wuFmFlpwERnfpZ2CWOOccuA7dM3bTYF2rrNN3u4CnBJgy/TIBfIq2315aufZVMbMwl3ksx8Xt8AFyQqBi6d7zb91dsDkr52DzjuydxFtQflArx7seKMGeSD9wIOutTa08 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)(366016)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r/N7OmBfRINpK29rwatI6O2irJhldWv/6yfSXeB8xatTwCEzrVm0Kp60cm8/gCE5PpPEJ8jMnBEVDCYD8Iz0I6FEkRIY+2REHXaN4obxy7j4bS44nvqs0hH5/i21i1oRuvyOEHBEprGT0zS0koDTSzOEdUf2Ovb5B73Z6qEBwKV3jd8JNtqd08vWD5S40Ul4cIO5Vbktqd70bELvehIxOAhrzfpz/p/nwI/R/zI9/hqVLxN63LpapF4qrVFy36s5SKfcMi4z9SElKdmOaYSsfBZRQZaZLA7EUDJTfNaXntN2FFnDu5Trc97qWxrb5mXcpXqWXHzRtOODOFaEFugsjQexPblGbpyoMzeyigGnPWcDdevP1rcKNm25LuXW/4OCtSI/ZfezYIf8C/p0q6QUrLXJDOB6H15VWC1KpGOv/qnGoPnIisNtW4KKc4pzy+02lhiJ7JRaZZY0d1VIm30y/XjhfZhG+0CY/Lc14SdE3RhlK1lPVW5v5Lza8b0K0OYLcoYhtG9gkEXrjt6FRWIrwwXdmcEUOChzRECTNNd7g3NtwhVYazK+MbdTbSV6jGHzauPoFv2E2Jh5ju0WpxCPZjm2OSb9raYYcEH2mhNbTkRWK6YmiU+UnQTHNrhBY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413338 X-MS-Exchange-CrossTenant-AuthSource: OS9PR01MB13950.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2025 10:45:49.2088 (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: eGIbJogkBzCCnKQ5A0DSogfP7hwc8Tu3zj3bOG2kZt42lZiVKAyFMSeqZjMd0T4pQJNteQg90pkJAyckDcRL95yVyy7/aNDtfnHeaXUHEVQ3oOINlKTgTkW/KknbZ+Hr X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB9796 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 10:46:01 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/18394 From: Biju Das commit 5c7fb203d0dbfbfeed51991a4f98499b245634a7 upstream. Add documentation for the pin controller found on the Renesas RZ/G3E (R9A09G047) SoC. The RZ/G3E PFC is similar to the RZ/V2H SoC but has more pins(P00-PS3). Acked-by: Conor Dooley Signed-off-by: Biju Das Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/20241216195325.164212-3-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Tommaso Merciai --- .../pinctrl/renesas,rzg2l-pinctrl.yaml | 7 +++- .../pinctrl/renesas,r9a09g047-pinctrl.h | 41 +++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 include/dt-bindings/pinctrl/renesas,r9a09g047-pinctrl.h diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml index 1a16fc06c96a7..716df90d5c09e 100644 --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml @@ -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,r9a09g047-pinctrl # RZ/G3E - renesas,r9a09g057-pinctrl # RZ/V2H(P) - items: @@ -125,7 +126,7 @@ additionalProperties: drive-push-pull: true renesas,output-impedance: description: - Output impedance for pins on the RZ/V2H(P) SoC. The value provided by this + Output impedance for pins on the RZ/{G3E,V2H(P)} SoC. The value provided by this property corresponds to register bit values that can be set in the PFC_IOLH_mn register, which adjusts the drive strength value and is pin-dependent. $ref: /schemas/types.yaml#/definitions/uint32 @@ -145,7 +146,9 @@ allOf: properties: compatible: contains: - const: renesas,r9a09g057-pinctrl + enum: + - renesas,r9a09g047-pinctrl + - renesas,r9a09g057-pinctrl then: properties: resets: diff --git a/include/dt-bindings/pinctrl/renesas,r9a09g047-pinctrl.h b/include/dt-bindings/pinctrl/renesas,r9a09g047-pinctrl.h new file mode 100644 index 0000000000000..5917096720bd2 --- /dev/null +++ b/include/dt-bindings/pinctrl/renesas,r9a09g047-pinctrl.h @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * This header provides constants for Renesas RZ/G3E family pinctrl bindings. + * + * Copyright (C) 2024 Renesas Electronics Corp. + * + */ + +#ifndef __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__ +#define __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__ + +#include + +/* RZG3E_Px = Offset address of PFC_P_mn - 0x20 */ +#define RZG3E_P0 0 +#define RZG3E_P1 1 +#define RZG3E_P2 2 +#define RZG3E_P3 3 +#define RZG3E_P4 4 +#define RZG3E_P5 5 +#define RZG3E_P6 6 +#define RZG3E_P7 7 +#define RZG3E_P8 8 +#define RZG3E_PA 10 +#define RZG3E_PB 11 +#define RZG3E_PC 12 +#define RZG3E_PD 13 +#define RZG3E_PE 14 +#define RZG3E_PF 15 +#define RZG3E_PG 16 +#define RZG3E_PH 17 +#define RZG3E_PJ 19 +#define RZG3E_PK 20 +#define RZG3E_PL 21 +#define RZG3E_PM 22 +#define RZG3E_PS 28 + +#define RZG3E_PORT_PINMUX(b, p, f) RZG2L_PORT_PINMUX(RZG3E_P##b, p, f) +#define RZG3E_GPIO(port, pin) RZG2L_GPIO(RZG3E_P##port, pin) + +#endif /* __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__ */