xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h (revision 2846c90520eb4cc74e24d586a0ea0f4a0006bc73)
1*2846c905SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*2846c905SEmmanuel Vadot /*
3*2846c905SEmmanuel Vadot  * This header provides constants for Renesas RZ/V2H family pinctrl bindings.
4*2846c905SEmmanuel Vadot  *
5*2846c905SEmmanuel Vadot  * Copyright (C) 2024 Renesas Electronics Corp.
6*2846c905SEmmanuel Vadot  *
7*2846c905SEmmanuel Vadot  */
8*2846c905SEmmanuel Vadot 
9*2846c905SEmmanuel Vadot #ifndef __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__
10*2846c905SEmmanuel Vadot #define __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__
11*2846c905SEmmanuel Vadot 
12*2846c905SEmmanuel Vadot #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
13*2846c905SEmmanuel Vadot 
14*2846c905SEmmanuel Vadot /* RZV2H_Px = Offset address of PFC_P_mn  - 0x20 */
15*2846c905SEmmanuel Vadot #define RZV2H_P0	0
16*2846c905SEmmanuel Vadot #define RZV2H_P1	1
17*2846c905SEmmanuel Vadot #define RZV2H_P2	2
18*2846c905SEmmanuel Vadot #define RZV2H_P3	3
19*2846c905SEmmanuel Vadot #define RZV2H_P4	4
20*2846c905SEmmanuel Vadot #define RZV2H_P5	5
21*2846c905SEmmanuel Vadot #define RZV2H_P6	6
22*2846c905SEmmanuel Vadot #define RZV2H_P7	7
23*2846c905SEmmanuel Vadot #define RZV2H_P8	8
24*2846c905SEmmanuel Vadot #define RZV2H_P9	9
25*2846c905SEmmanuel Vadot #define RZV2H_PA	10
26*2846c905SEmmanuel Vadot #define RZV2H_PB	11
27*2846c905SEmmanuel Vadot 
28*2846c905SEmmanuel Vadot #define RZV2H_PORT_PINMUX(b, p, f)	RZG2L_PORT_PINMUX(RZV2H_P##b, p, f)
29*2846c905SEmmanuel Vadot #define RZV2H_GPIO(port, pin)		RZG2L_GPIO(RZV2H_P##port, pin)
30*2846c905SEmmanuel Vadot 
31*2846c905SEmmanuel Vadot #endif /* __DT_BINDINGS_PINCTRL_RENESAS_R9A09G057_PINCTRL_H__ */
32