From patchwork Mon Mar 31 11:06:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 14033485 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 D6C42C36014 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=DOxsg3B7; 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=g7l5tMjRtIEM0pkIlxwKtFnL/vQnnpWCBuL32y24rx9FoZvNKwdZ/AJGH5YIAURX58wtmssvryBLchmL23w4Y46a9FLWQASmLNuuZ5nxLVHCX4UfhR6F22eLDVTRGLrvBYI/G1t84tNo6eH9eUPs0WWXP+CLdNm3gyjXj9DbYjTR5AlbojxEfB6RgTQPgETl4llR+AMAX7qXG0oyIAAK28/aQRx2uNfKoJIyVqBv8WvrW2eGI/IP6n+Klar/jsQJsNDXfuahMWBbi2g2EnrTlENRSKmluJ0y808P3q5HM+OoBDm6Uv+GzbCR11WeVRoDZT13lfWRd4MZ4NIBnpucZg== 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=YxHWdbHZE4dIMkhOG1bTj8tY2Xycq1+ZxkHLDkuV/Uk=; b=nkowulCWZ37NoBG+t/AizkpITja4qPfyRpbzaZK5jBOwd4Z0pCZ0aaSqRqVFGUoYsNCynxNHAiNCCwpQO1A0dZS/GnE39XfQl4RBYBgMPYjxa4zc/sIvd8Yvk5Y66dINMmgzbO/76gJUJStW8I2PDMe29Dfd15Uh8HAVVRUGugS/tCsOFr/40GF7fLRb/WgoOauw6bXFYXd7EjEMAmt4vJ/32o8U4mnSmDLTQizjSqMmxWU33xwam+okZWmGzZlvYZOt0xvRdKxUHVa+4vIgiYIQ4GgJqzVZX+2vaLkAEFVF/XYHmdSjA9EGnu3LsryIZi7hdr/sQTvbAUZjFEN/hA== 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=YxHWdbHZE4dIMkhOG1bTj8tY2Xycq1+ZxkHLDkuV/Uk=; b=DOxsg3B7yI6X+GFGVL0giFVIZqk44k1Rr05GiEbx+voZTNhzQSQ6tUcXG5MhL0nPOkSqTt/SJtokvDbLNXsSj/dEqI5QpZ++yY9d5qL3bYsh+nL7gi4FCb1xST9YXhH/a7POMsH2OPSbHQcIeGQfxA/1EXr7DhYC64krYXlNdyk= 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:23 +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:23 +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 01/13] dt-bindings: pinctrl: renesas: Add alpha-numerical port support for RZ/V2H Date: Mon, 31 Mar 2025 13:06:47 +0200 Message-ID: <20250331110659.252237-2-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: b23c8fa6-918c-4407-7f9e-08dd70443673 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: Hp4OaJ++ztY88jjPwEHPyWFxVjgG6LCHESDc5w41wVqcgOzq4aU+ivP4x1wJbkiGRNuTdc0vtuncSpjh51/c6WE1zm2H2/FpxsDT/M48f+4UEsiiD8MyO/sg4Owfa7mVlH4Pn6Fb+OlN5cBgoUUl+GgAwL+DYUtxfgk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pyDbuV2g60Afwye+zcaG6Jxqtc25XeexFe96nUEfb/abq21eJIReEh9fRn5Y3FVcZa5Gi8E3mUGvIBPEhAJXtSL9110Xy0q/4MldgBmMNW5I42huuIyGon40RQluveNG3psf/P/SWvb0FCtWH9a9XF+cSYSe0utoN40cTrQZLc6HK88ffwP29J/sNdz+5DXucFX0IGdW+CbtiA8/PID5DcOEOPB 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: ctioP1/ICGYr95ikGLR4sttLhKRd0Oc7I8pWdMJtNCazrMi/nY4g6lkCJsTnTdUZlvuiRZr1k00PpQwZ+kciO1ADf3QAogRikj/nrC2O5xtwi7rk1Rk3qQL7vXv0t/6WqN9pfJkrArEuAmBEXH5gjtBEWKzpDv+yLQ6Z96Xbk2RFiuwMfKsnqg3PTrXc5Qj+29oipiAbqhau4bTPaADoC8L1GOQzy9LT6Uy1vcSig+phhikgNiaXZbi1132uSVvcMcVcqezqNeOcAi5o4SWkyy2SGHnFgnWs2B0rjlzhh/lLcaKCjG6+Nwbc2MCMQjxrYTvHAGTzDl2eOyfZSdRMF9V3wzQbctIWi1CCsgQirZnZ3UztVeTPAzqeUuNNpHZ39n0htfNBsJfoEUZWbf6u45l9WLLgzaXove1otJCumd58YDPzLIGVnrAlvBeKf/H66BI2KwOLmP6B7nhvCJbS8zC9H4KseRmdeR8laxiMR5hJ4k9zLQXO1dwpG6mL8HaI1f7Vmn2X1KXRFf593n1XdkH3ERrB+oGgdo503iQ2Lidt7yjvjJy3h+EfcsAfobQNExbgE2uITFNEXOfVj4wyD3emLG16zztgF3kNlJULJUKaQd8wP+XVfo21vcLz9pvgq6o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Exchange-CrossTenant-AuthSource: OS9PR01MB13950.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2025 11:07:23.3319 (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: wXXqI30VIj+bG1SKHUskISnwIGr5sPf1icItW+i4+4mMM18OEuQafwMKojECTLoP9nApEtmIYsKyknLSrgzPChxWlQCq0lQmTvhVteuIVpXSlSwVYPaf6s5pianSUPRp 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/18433 From: Biju Das commit 3e4863d24818a41db42b4f2680715f204657839e upstream. RZ/V2H has ports P0-P9 and PA-PB. Add support for defining alpha-numerical ports in DT using RZV2H_* macros. Signed-off-by: Biju Das Acked-by: Rob Herring (Arm) Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/20241216195325.164212-2-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Tommaso Merciai --- .../pinctrl/renesas,r9a09g057-pinctrl.h | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h diff --git a/include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h b/include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h new file mode 100644 index 0000000000000..2e83bf43160b9 --- /dev/null +++ b/include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * This header provides constants for Renesas RZ/V2H family pinctrl bindings. + * + * Copyright (C) 2024 Renesas Electronics Corp. + * + */ + +#ifndef __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__ +#define __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__ + +#include + +/* RZV2H_Px = Offset address of PFC_P_mn - 0x20 */ +#define RZV2H_P0 0 +#define RZV2H_P1 1 +#define RZV2H_P2 2 +#define RZV2H_P3 3 +#define RZV2H_P4 4 +#define RZV2H_P5 5 +#define RZV2H_P6 6 +#define RZV2H_P7 7 +#define RZV2H_P8 8 +#define RZV2H_P9 9 +#define RZV2H_PA 10 +#define RZV2H_PB 11 + +#define RZV2H_PORT_PINMUX(b, p, f) RZG2L_PORT_PINMUX(RZV2H_P##b, p, f) +#define RZV2H_GPIO(port, pin) RZG2L_GPIO(RZV2H_P##port, pin) + +#endif /* __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__ */