Skip to content

Commit 3e4863d

Browse files
bijudasgeertu
authored andcommitted
dt-bindings: pinctrl: renesas: Add alpha-numerical port support for RZ/V2H
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 <biju.das.jz@bp.renesas.com> Acked-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20241216195325.164212-2-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 15bba65 commit 3e4863d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
/*
3+
* This header provides constants for Renesas RZ/V2H family pinctrl bindings.
4+
*
5+
* Copyright (C) 2024 Renesas Electronics Corp.
6+
*
7+
*/
8+
9+
#ifndef __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__
10+
#define __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__
11+
12+
#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
13+
14+
/* RZV2H_Px = Offset address of PFC_P_mn - 0x20 */
15+
#define RZV2H_P0 0
16+
#define RZV2H_P1 1
17+
#define RZV2H_P2 2
18+
#define RZV2H_P3 3
19+
#define RZV2H_P4 4
20+
#define RZV2H_P5 5
21+
#define RZV2H_P6 6
22+
#define RZV2H_P7 7
23+
#define RZV2H_P8 8
24+
#define RZV2H_P9 9
25+
#define RZV2H_PA 10
26+
#define RZV2H_PB 11
27+
28+
#define RZV2H_PORT_PINMUX(b, p, f) RZG2L_PORT_PINMUX(RZV2H_P##b, p, f)
29+
#define RZV2H_GPIO(port, pin) RZG2L_GPIO(RZV2H_P##port, pin)
30+
31+
#endif /* __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__ */

0 commit comments

Comments
 (0)