xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/pinctrl/renesas,r9a09g047-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/G3E 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_R9A09G047_PINCTRL_H__
10*2846c905SEmmanuel Vadot #define __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__
11*2846c905SEmmanuel Vadot 
12*2846c905SEmmanuel Vadot #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
13*2846c905SEmmanuel Vadot 
14*2846c905SEmmanuel Vadot /* RZG3E_Px = Offset address of PFC_P_mn  - 0x20 */
15*2846c905SEmmanuel Vadot #define RZG3E_P0	0
16*2846c905SEmmanuel Vadot #define RZG3E_P1	1
17*2846c905SEmmanuel Vadot #define RZG3E_P2	2
18*2846c905SEmmanuel Vadot #define RZG3E_P3	3
19*2846c905SEmmanuel Vadot #define RZG3E_P4	4
20*2846c905SEmmanuel Vadot #define RZG3E_P5	5
21*2846c905SEmmanuel Vadot #define RZG3E_P6	6
22*2846c905SEmmanuel Vadot #define RZG3E_P7	7
23*2846c905SEmmanuel Vadot #define RZG3E_P8	8
24*2846c905SEmmanuel Vadot #define RZG3E_PA	10
25*2846c905SEmmanuel Vadot #define RZG3E_PB	11
26*2846c905SEmmanuel Vadot #define RZG3E_PC	12
27*2846c905SEmmanuel Vadot #define RZG3E_PD	13
28*2846c905SEmmanuel Vadot #define RZG3E_PE	14
29*2846c905SEmmanuel Vadot #define RZG3E_PF	15
30*2846c905SEmmanuel Vadot #define RZG3E_PG	16
31*2846c905SEmmanuel Vadot #define RZG3E_PH	17
32*2846c905SEmmanuel Vadot #define RZG3E_PJ	19
33*2846c905SEmmanuel Vadot #define RZG3E_PK	20
34*2846c905SEmmanuel Vadot #define RZG3E_PL	21
35*2846c905SEmmanuel Vadot #define RZG3E_PM	22
36*2846c905SEmmanuel Vadot #define RZG3E_PS	28
37*2846c905SEmmanuel Vadot 
38*2846c905SEmmanuel Vadot #define RZG3E_PORT_PINMUX(b, p, f)	RZG2L_PORT_PINMUX(RZG3E_P##b, p, f)
39*2846c905SEmmanuel Vadot #define RZG3E_GPIO(port, pin)		RZG2L_GPIO(RZG3E_P##port, pin)
40*2846c905SEmmanuel Vadot 
41*2846c905SEmmanuel Vadot #endif /* __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__ */
42