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__ */
32