Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl-r8a78000.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 BayLibre, SAS
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_R8A78000_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_R8A78000_H_
9
14
15#include "pinctrl-rcar-common.h"
16
18
19#define PIN_NONE -1
20
21/* GP0 pins */
22#define PIN_GP0_00 RCAR_GP_PIN(0, 0)
23#define PIN_GP0_01 RCAR_GP_PIN(0, 1)
24#define PIN_GP0_02 RCAR_GP_PIN(0, 2)
25#define PIN_STPWT_EXTFXR RCAR_GP_PIN(0, 3)
26#define PIN_FXR_CLKOUT1 RCAR_GP_PIN(0, 4)
27#define PIN_FXR_CLKOUT2 RCAR_GP_PIN(0, 5)
28#define PIN_CLK_EXTFXR RCAR_GP_PIN(0, 6)
29#define PIN_FXR_TXDA RCAR_GP_PIN(0, 7)
30#define PIN_FXR_TXENA RCAR_GP_PIN(0, 8)
31#define PIN_RXDA_EXTFXR RCAR_GP_PIN(0, 9)
32#define PIN_FXR_TXDB RCAR_GP_PIN(0, 10)
33#define PIN_FXR_TXENB RCAR_GP_PIN(0, 11)
34#define PIN_RXDB_EXTFXR RCAR_GP_PIN(0, 12)
35#define PIN_MSIOF0_SCK RCAR_GP_PIN(0, 13)
36#define PIN_MSIOF0_TXD RCAR_GP_PIN(0, 14)
37#define PIN_MSIOF0_RXD RCAR_GP_PIN(0, 15)
38#define PIN_MSIOF0_SYNC RCAR_GP_PIN(0, 16)
39#define PIN_MSIOF0_SS1 RCAR_GP_PIN(0, 17)
40#define PIN_MSIOF0_SS2 RCAR_GP_PIN(0, 18)
41#define PIN_MSIOF1_SCK RCAR_GP_PIN(0, 19)
42#define PIN_MSIOF1_TXD RCAR_GP_PIN(0, 20)
43#define PIN_MSIOF1_RXD RCAR_GP_PIN(0, 21)
44#define PIN_MSIOF1_SYNC RCAR_GP_PIN(0, 22)
45#define PIN_MSIOF1_SS1 RCAR_GP_PIN(0, 23)
46#define PIN_MSIOF1_SS2 RCAR_GP_PIN(0, 24)
47#define PIN_DP0_HOTPLUG RCAR_GP_PIN(0, 25)
48#define PIN_DP1_HOTPLUG RCAR_GP_PIN(0, 26)
49#define PIN_DP2_HOTPLUG RCAR_GP_PIN(0, 27)
50
51/* GP1 pins */
52#define PIN_CAN0RX_INTP0 RCAR_GP_PIN(1, 0)
53#define PIN_CAN0TX RCAR_GP_PIN(1, 1)
54#define PIN_CAN1RX_INTP1 RCAR_GP_PIN(1, 2)
55#define PIN_CAN1TX RCAR_GP_PIN(1, 3)
56#define PIN_CAN2RX_INTP2 RCAR_GP_PIN(1, 4)
57#define PIN_CAN2TX RCAR_GP_PIN(1, 5)
58#define PIN_CAN3RX_INTP3 RCAR_GP_PIN(1, 6)
59#define PIN_CAN3TX RCAR_GP_PIN(1, 7)
60#define PIN_CAN4RX_INTP4 RCAR_GP_PIN(1, 8)
61#define PIN_CAN4TX RCAR_GP_PIN(1, 9)
62#define PIN_CAN5RX_INTP5 RCAR_GP_PIN(1, 10)
63#define PIN_CAN5TX RCAR_GP_PIN(1, 11)
64#define PIN_CAN6RX_INTP6 RCAR_GP_PIN(1, 12)
65#define PIN_CAN6TX RCAR_GP_PIN(1, 13)
66#define PIN_RLIN30RX_INTP16 RCAR_GP_PIN(1, 14)
67#define PIN_RLIN30TX RCAR_GP_PIN(1, 15)
68#define PIN_RLIN31RX_INTP17 RCAR_GP_PIN(1, 16)
69#define PIN_RLIN31TX RCAR_GP_PIN(1, 17)
70#define PIN_RLIN32RX_INTP18 RCAR_GP_PIN(1, 18)
71#define PIN_RLIN32TX RCAR_GP_PIN(1, 19)
72#define PIN_RLIN33RX_INTP19 RCAR_GP_PIN(1, 20)
73#define PIN_RLIN33TX RCAR_GP_PIN(1, 21)
74
75/* GP2 pins */
76#define PIN_RLIN34RX_INTP20 RCAR_GP_PIN(2, 0)
77#define PIN_RLIN34TX RCAR_GP_PIN(2, 1)
78#define PIN_RLIN35RX_INTP21 RCAR_GP_PIN(2, 2)
79#define PIN_RLIN35TX RCAR_GP_PIN(2, 3)
80#define PIN_RLIN36RX_INTP22 RCAR_GP_PIN(2, 4)
81#define PIN_RLIN36TX RCAR_GP_PIN(2, 5)
82#define PIN_RLIN37RX_INTP23 RCAR_GP_PIN(2, 6)
83#define PIN_RLIN37TX RCAR_GP_PIN(2, 7)
84#define PIN_CAN12RX_INTP12 RCAR_GP_PIN(2, 8)
85#define PIN_CAN12TX RCAR_GP_PIN(2, 9)
86#define PIN_CAN13RX_INTP13 RCAR_GP_PIN(2, 10)
87#define PIN_CAN13TX RCAR_GP_PIN(2, 11)
88#define PIN_CAN14RX_INTP14 RCAR_GP_PIN(2, 12)
89#define PIN_CAN14TX RCAR_GP_PIN(2, 13)
90#define PIN_CAN15RX_INTP15 RCAR_GP_PIN(2, 14)
91#define PIN_CAN15TX RCAR_GP_PIN(2, 15)
92#define PIN_CAN_CLK RCAR_GP_PIN(2, 16)
93#define PIN_INTP32 RCAR_GP_PIN(2, 17)
94#define PIN_INTP33 RCAR_GP_PIN(2, 18)
95#define PIN_SCL0 RCAR_GP_PIN(2, 19)
96#define PIN_SDA0 RCAR_GP_PIN(2, 20)
97#define PIN_AVS0 RCAR_GP_PIN(2, 21)
98#define PIN_AVS1 RCAR_GP_PIN(2, 22)
99#define PIN_EXTCLK0O RCAR_GP_PIN(2, 23)
100#define PIN_TAUD1O0 RCAR_GP_PIN(2, 24)
101#define PIN_TAUD1O1 RCAR_GP_PIN(2, 25)
102#define PIN_TAUD1O2 RCAR_GP_PIN(2, 26)
103#define PIN_TAUD1O3 RCAR_GP_PIN(2, 27)
104#define PIN_INTP34 RCAR_GP_PIN(2, 28)
105
106/* GP3 pins */
107#define PIN_QSPI0_SPCLK RCAR_GP_PIN(3, 0)
108#define PIN_QSPI0_MOSI_IO0 RCAR_GP_PIN(3, 1)
109#define PIN_QSPI0_MISO_IO1 RCAR_GP_PIN(3, 2)
110#define PIN_QSPI0_IO2 RCAR_GP_PIN(3, 3)
111#define PIN_QSPI0_IO3 RCAR_GP_PIN(3, 4)
112#define PIN_QSPI0_SSL RCAR_GP_PIN(3, 5)
113#define PIN_RPC_RESET RCAR_GP_PIN(3, 6)
114#define PIN_RPC_WP RCAR_GP_PIN(3, 7)
115#define PIN_RPC_INT RCAR_GP_PIN(3, 8)
116#define PIN_QSPI1_SPCLK RCAR_GP_PIN(3, 9)
117#define PIN_QSPI1_MOSI_IO0 RCAR_GP_PIN(3, 10)
118#define PIN_QSPI1_MISO_IO1 RCAR_GP_PIN(3, 11)
119#define PIN_QSPI1_IO2 RCAR_GP_PIN(3, 12)
120#define PIN_QSPI1_IO3 RCAR_GP_PIN(3, 13)
121#define PIN_QSPI1_SSL RCAR_GP_PIN(3, 14)
122#define PIN_ERROROUT RCAR_GP_PIN(3, 15)
123#define PIN_ERRORIN0 RCAR_GP_PIN(3, 16)
124
125/* GP4 pins */
126#define PIN_MMC0_SD_CLK RCAR_GP_PIN(4, 0)
127#define PIN_MMC0_SD_CMD RCAR_GP_PIN(4, 1)
128#define PIN_MMC0_SD_D0 RCAR_GP_PIN(4, 2)
129#define PIN_MMC0_SD_D1 RCAR_GP_PIN(4, 3)
130#define PIN_MMC0_SD_D2 RCAR_GP_PIN(4, 4)
131#define PIN_MMC0_SD_D3 RCAR_GP_PIN(4, 5)
132#define PIN_MMC0_D4 RCAR_GP_PIN(4, 6)
133#define PIN_MMC0_D5 RCAR_GP_PIN(4, 7)
134#define PIN_MMC0_D6 RCAR_GP_PIN(4, 8)
135#define PIN_MMC0_D7 RCAR_GP_PIN(4, 9)
136#define PIN_MMC0_DS RCAR_GP_PIN(4, 10)
137#define PIN_SD0_WP RCAR_GP_PIN(4, 11)
138#define PIN_SD0_CD RCAR_GP_PIN(4, 12)
139#define PIN_ERRORIN1 RCAR_GP_PIN(4, 13)
140#define PIN_PCIE60_CLKREQ RCAR_GP_PIN(4, 14)
141#define PIN_PCIE61_CLKREQ RCAR_GP_PIN(4, 15)
142
143/* GP5 pins */
144#define PIN_HTX0 RCAR_GP_PIN(5, 0)
145#define PIN_HRX0 RCAR_GP_PIN(5, 1)
146#define PIN_HRTS0 RCAR_GP_PIN(5, 2)
147#define PIN_HCTS0 RCAR_GP_PIN(5, 3)
148#define PIN_HSCK0 RCAR_GP_PIN(5, 4)
149#define PIN_SCIF_CLK RCAR_GP_PIN(5, 5)
150#define PIN_HTX1 RCAR_GP_PIN(5, 6)
151#define PIN_HRX1 RCAR_GP_PIN(5, 7)
152#define PIN_HRTS1 RCAR_GP_PIN(5, 8)
153#define PIN_HCTS1 RCAR_GP_PIN(5, 9)
154#define PIN_HSCK1 RCAR_GP_PIN(5, 10)
155#define PIN_IRQ0 RCAR_GP_PIN(5, 11)
156#define PIN_IRQ1 RCAR_GP_PIN(5, 12)
157#define PIN_IRQ2 RCAR_GP_PIN(5, 13)
158#define PIN_IRQ3 RCAR_GP_PIN(5, 14)
159#define PIN_TCLK1 RCAR_GP_PIN(5, 15)
160#define PIN_TCLK2 RCAR_GP_PIN(5, 16)
161#define PIN_TCLK3 RCAR_GP_PIN(5, 17)
162#define PIN_TCLK4 RCAR_GP_PIN(5, 18)
163#define PIN_TPU0TO0 RCAR_GP_PIN(5, 19)
164#define PIN_TPU0TO1 RCAR_GP_PIN(5, 20)
165#define PIN_TPU0TO2 RCAR_GP_PIN(5, 21)
166#define PIN_TPU0TO3 RCAR_GP_PIN(5, 22)
167
168/* GP6 pins */
169#define PIN_RIF6_D0 RCAR_GP_PIN(6, 0)
170#define PIN_RIF6_D1 RCAR_GP_PIN(6, 1)
171#define PIN_RIF6_SYNC RCAR_GP_PIN(6, 2)
172#define PIN_RIF6_CLK RCAR_GP_PIN(6, 3)
173#define PIN_MSIOF7_SCK RCAR_GP_PIN(6, 4)
174#define PIN_MSIOF7_TXD RCAR_GP_PIN(6, 5)
175#define PIN_MSIOF7_RXD RCAR_GP_PIN(6, 6)
176#define PIN_MSIOF7_SYNC RCAR_GP_PIN(6, 7)
177#define PIN_MSIOF7_SS1 RCAR_GP_PIN(6, 8)
178#define PIN_MSIOF7_SS2 RCAR_GP_PIN(6, 9)
179#define PIN_MSIOF4_SCK RCAR_GP_PIN(6, 10)
180#define PIN_MSIOF4_TXD RCAR_GP_PIN(6, 11)
181#define PIN_MSIOF4_RXD RCAR_GP_PIN(6, 12)
182#define PIN_MSIOF4_SYNC RCAR_GP_PIN(6, 13)
183#define PIN_MSIOF4_SS1 RCAR_GP_PIN(6, 14)
184#define PIN_MSIOF4_SS2 RCAR_GP_PIN(6, 15)
185#define PIN_SSI0_SCK RCAR_GP_PIN(6, 16)
186#define PIN_SSI0_WS RCAR_GP_PIN(6, 17)
187#define PIN_SSI0_SD RCAR_GP_PIN(6, 18)
188#define PIN_AUDIO0_CLKOUT0 RCAR_GP_PIN(6, 19)
189#define PIN_AUDIO0_CLKOUT1 RCAR_GP_PIN(6, 20)
190#define PIN_SSI1_SCK RCAR_GP_PIN(6, 21)
191#define PIN_SSI1_WS RCAR_GP_PIN(6, 22)
192#define PIN_SSI1_SD RCAR_GP_PIN(6, 23)
193#define PIN_AUDIO0_CLKOUT2 RCAR_GP_PIN(6, 24)
194#define PIN_AUDIO0_CLKOUT3 RCAR_GP_PIN(6, 25)
195#define PIN_SSI2_SCK RCAR_GP_PIN(6, 26)
196#define PIN_SSI2_WS RCAR_GP_PIN(6, 27)
197#define PIN_SSI2_SD RCAR_GP_PIN(6, 28)
198#define PIN_AUDIO1_CLKOUT0 RCAR_GP_PIN(6, 29)
199#define PIN_AUDIO1_CLKOUT1 RCAR_GP_PIN(6, 30)
200
201/* GP7 pins */
202#define PIN_SSI3_SCK RCAR_GP_PIN(7, 0)
203#define PIN_SSI3_WS RCAR_GP_PIN(7, 1)
204#define PIN_SSI3_SD RCAR_GP_PIN(7, 2)
205#define PIN_AUDIO1_CLKOUT2 RCAR_GP_PIN(7, 3)
206#define PIN_AUDIO1_CLKOUT3 RCAR_GP_PIN(7, 4)
207#define PIN_SSI4_SCK RCAR_GP_PIN(7, 5)
208#define PIN_SSI4_WS RCAR_GP_PIN(7, 6)
209#define PIN_SSI4_SD RCAR_GP_PIN(7, 7)
210#define PIN_AUDIO_CLKA RCAR_GP_PIN(7, 8)
211#define PIN_SSI5_SCK RCAR_GP_PIN(7, 9)
212#define PIN_SSI5_WS RCAR_GP_PIN(7, 10)
213#define PIN_SSI5_SD RCAR_GP_PIN(7, 11)
214#define PIN_AUDIO_CLKB RCAR_GP_PIN(7, 12)
215#define PIN_SSI6_SCK RCAR_GP_PIN(7, 13)
216#define PIN_SSI6_WS RCAR_GP_PIN(7, 14)
217#define PIN_SSI6_SD RCAR_GP_PIN(7, 15)
218#define PIN_AUDIO_CLKC RCAR_GP_PIN(7, 16)
219#define PIN_MSIOF5_SCK RCAR_GP_PIN(7, 17)
220#define PIN_GP07_18 RCAR_GP_PIN(7, 18)
221#define PIN_GP07_19 RCAR_GP_PIN(7, 19)
222#define PIN_MSIOF5_TXD RCAR_GP_PIN(7, 20)
223#define PIN_MSIOF5_RXD RCAR_GP_PIN(7, 21)
224#define PIN_MSIOF5_SYNC RCAR_GP_PIN(7, 22)
225#define PIN_MSIOF5_SS1 RCAR_GP_PIN(7, 23)
226#define PIN_MSIOF5_SS2 RCAR_GP_PIN(7, 24)
227#define PIN_MSIOF6_SCK RCAR_GP_PIN(7, 25)
228#define PIN_MSIOF6_TXD RCAR_GP_PIN(7, 26)
229#define PIN_MSIOF6_RXD RCAR_GP_PIN(7, 27)
230#define PIN_MSIOF6_SYNC RCAR_GP_PIN(7, 28)
231#define PIN_MSIOF6_SS1 RCAR_GP_PIN(7, 29)
232#define PIN_MSIOF6_SS2 RCAR_GP_PIN(7, 30)
233
234/* GP8 pins */
235#define PIN_SCL1 RCAR_GP_PIN(8, 0)
236#define PIN_SDA1 RCAR_GP_PIN(8, 1)
237#define PIN_SCL2 RCAR_GP_PIN(8, 2)
238#define PIN_SDA2 RCAR_GP_PIN(8, 3)
239#define PIN_SCL3 RCAR_GP_PIN(8, 4)
240#define PIN_SDA3 RCAR_GP_PIN(8, 5)
241#define PIN_SCL4 RCAR_GP_PIN(8, 6)
242#define PIN_SDA4 RCAR_GP_PIN(8, 7)
243#define PIN_SCL5 RCAR_GP_PIN(8, 8)
244#define PIN_SDA5 RCAR_GP_PIN(8, 9)
245#define PIN_SCL6 RCAR_GP_PIN(8, 10)
246#define PIN_SDA6 RCAR_GP_PIN(8, 11)
247#define PIN_SCL7 RCAR_GP_PIN(8, 12)
248#define PIN_SDA7 RCAR_GP_PIN(8, 13)
249#define PIN_SCL8 RCAR_GP_PIN(8, 14)
250#define PIN_SDA8 RCAR_GP_PIN(8, 15)
251#define PIN_S3CL0 RCAR_GP_PIN(8, 26)
252#define PIN_S3DA0 RCAR_GP_PIN(8, 27)
253#define PIN_S3CL1 RCAR_GP_PIN(8, 28)
254#define PIN_S3DA1 RCAR_GP_PIN(8, 29)
255#define PIN_S3CL2 RCAR_GP_PIN(8, 30)
256#define PIN_S3DA2 RCAR_GP_PIN(8, 31)
257
258/* GP9 pins */
259#define PIN_ETHES0_PPS RCAR_GP_PIN(9, 0)
260#define PIN_ETHES0_CAPTURE RCAR_GP_PIN(9, 1)
261#define PIN_ETHES0_MATCH RCAR_GP_PIN(9, 2)
262#define PIN_ETHES4_PPS RCAR_GP_PIN(9, 3)
263#define PIN_ETHES4_CAPTURE RCAR_GP_PIN(9, 4)
264#define PIN_ETHES4_MATCH RCAR_GP_PIN(9, 5)
265#define PIN_ETH25G0_MDIO RCAR_GP_PIN(9, 6)
266#define PIN_ETH25G0_MDC RCAR_GP_PIN(9, 7)
267#define PIN_ETH25G0_LINK RCAR_GP_PIN(9, 8)
268#define PIN_ETH25G0_PHYINT RCAR_GP_PIN(9, 9)
269#define PIN_ETH10G0_MDIO RCAR_GP_PIN(9, 10)
270#define PIN_ETH10G0_MDC RCAR_GP_PIN(9, 11)
271#define PIN_ETH10G0_LINK RCAR_GP_PIN(9, 12)
272#define PIN_ETH10G0_PHYINT RCAR_GP_PIN(9, 13)
273#define PIN_RSW3_PPS RCAR_GP_PIN(9, 14)
274#define PIN_RSW3_CAPTURE RCAR_GP_PIN(9, 15)
275#define PIN_RSW3_MATCH RCAR_GP_PIN(9, 16)
276
277/* GP10 pins */
278#define PIN_USB0_PWEN RCAR_GP_PIN(10, 0)
279#define PIN_USB0_OVC RCAR_GP_PIN(10, 1)
280#define PIN_USB0_VBUS_VALID RCAR_GP_PIN(10, 2)
281#define PIN_USB1_PWEN RCAR_GP_PIN(10, 3)
282#define PIN_USB1_OVC RCAR_GP_PIN(10, 4)
283#define PIN_USB1_VBUS_VALID RCAR_GP_PIN(10, 5)
284#define PIN_USB2_PWEN RCAR_GP_PIN(10, 6)
285#define PIN_USB2_OVC RCAR_GP_PIN(10, 7)
286#define PIN_USB2_VBUS_VALID RCAR_GP_PIN(10, 8)
287#define PIN_USB3_PWEN RCAR_GP_PIN(10, 9)
288#define PIN_USB3_OVC RCAR_GP_PIN(10, 10)
289#define PIN_USB3_VBUS_VALID RCAR_GP_PIN(10, 11)
290#define PIN_PCIE40_CLKREQ RCAR_GP_PIN(10, 12)
291#define PIN_PCIE41_CLKREQ RCAR_GP_PIN(10, 13)
292
293/* GP0 ALTSEL function 0 */
294#define FUNC_DP2_HOTPLUG RCAR_ALTSEL_FUNC(0, 27, 0)
295#define FUNC_DP1_HOTPLUG RCAR_ALTSEL_FUNC(0, 26, 0)
296#define FUNC_DP0_HOTPLUG RCAR_ALTSEL_FUNC(0, 25, 0)
297#define FUNC_MSIOF1_SS2_A RCAR_ALTSEL_FUNC(0, 24, 0)
298#define FUNC_MSIOF1_SS1_A RCAR_ALTSEL_FUNC(0, 23, 0)
299#define FUNC_MSIOF1_SYNC_A RCAR_ALTSEL_FUNC(0, 22, 0)
300#define FUNC_MSIOF1_RXD_A RCAR_ALTSEL_FUNC(0, 21, 0)
301#define FUNC_MSIOF1_TXD_A RCAR_ALTSEL_FUNC(0, 20, 0)
302#define FUNC_MSIOF1_SCK_A RCAR_ALTSEL_FUNC(0, 19, 0)
303#define FUNC_MSIOF0_SS2 RCAR_ALTSEL_FUNC(0, 18, 0)
304#define FUNC_MSIOF0_SS1 RCAR_ALTSEL_FUNC(0, 17, 0)
305#define FUNC_MSIOF0_SYNC RCAR_ALTSEL_FUNC(0, 16, 0)
306#define FUNC_MSIOF0_RXD RCAR_ALTSEL_FUNC(0, 15, 0)
307#define FUNC_MSIOF0_TXD RCAR_ALTSEL_FUNC(0, 14, 0)
308#define FUNC_MSIOF0_SCK RCAR_ALTSEL_FUNC(0, 13, 0)
309#define FUNC_RXDB_EXTFXR_A RCAR_ALTSEL_FUNC(0, 12, 0)
310#define FUNC_FXR_TXENB_N_A RCAR_ALTSEL_FUNC(0, 11, 0)
311#define FUNC_FXR_TXDB_A RCAR_ALTSEL_FUNC(0, 10, 0)
312#define FUNC_RXDA_EXTFXR_A RCAR_ALTSEL_FUNC(0, 9, 0)
313#define FUNC_FXR_TXENA_N_A RCAR_ALTSEL_FUNC(0, 8, 0)
314#define FUNC_FXR_TXDA_A RCAR_ALTSEL_FUNC(0, 7, 0)
315#define FUNC_CLK_EXTFXR_A RCAR_ALTSEL_FUNC(0, 6, 0)
316#define FUNC_FXR_CLKOUT2_A RCAR_ALTSEL_FUNC(0, 5, 0)
317#define FUNC_FXR_CLKOUT1_A RCAR_ALTSEL_FUNC(0, 4, 0)
318#define FUNC_STPWT_EXTFXR_A RCAR_ALTSEL_FUNC(0, 3, 0)
319
320/* GP0 ALTSEL function 1 */
321#define FUNC_TAUD0O13 RCAR_ALTSEL_FUNC(0, 24, 1)
322#define FUNC_TAUD0O12 RCAR_ALTSEL_FUNC(0, 23, 1)
323#define FUNC_TAUD0O11 RCAR_ALTSEL_FUNC(0, 22, 1)
324#define FUNC_TAUD0O10 RCAR_ALTSEL_FUNC(0, 21, 1)
325#define FUNC_TAUD0O9 RCAR_ALTSEL_FUNC(0, 20, 1)
326#define FUNC_TAUD0O8 RCAR_ALTSEL_FUNC(0, 19, 1)
327#define FUNC_TAUD0O7 RCAR_ALTSEL_FUNC(0, 18, 1)
328#define FUNC_TAUD0O6 RCAR_ALTSEL_FUNC(0, 17, 1)
329#define FUNC_TAUD0O5 RCAR_ALTSEL_FUNC(0, 16, 1)
330#define FUNC_TAUD0O4 RCAR_ALTSEL_FUNC(0, 15, 1)
331#define FUNC_TAUD0O3 RCAR_ALTSEL_FUNC(0, 14, 1)
332#define FUNC_TAUD0O2 RCAR_ALTSEL_FUNC(0, 13, 1)
333#define FUNC_CAN11TX RCAR_ALTSEL_FUNC(0, 12, 1)
334#define FUNC_CAN11RX_INTP11 RCAR_ALTSEL_FUNC(0, 11, 1)
335#define FUNC_CAN10TX RCAR_ALTSEL_FUNC(0, 10, 1)
336#define FUNC_CAN10RX_INTP10 RCAR_ALTSEL_FUNC(0, 9, 1)
337#define FUNC_CAN9TX RCAR_ALTSEL_FUNC(0, 8, 1)
338#define FUNC_CAN9RX_INTP9 RCAR_ALTSEL_FUNC(0, 7, 1)
339#define FUNC_CAN8TX RCAR_ALTSEL_FUNC(0, 6, 1)
340#define FUNC_CAN8RX_INTP8 RCAR_ALTSEL_FUNC(0, 5, 1)
341#define FUNC_CAN7TX RCAR_ALTSEL_FUNC(0, 4, 1)
342#define FUNC_CAN7RX_INTP7 RCAR_ALTSEL_FUNC(0, 3, 1)
343
344/* GP0 ALTSEL function 2 */
345#define FUNC_RLIN311TX RCAR_ALTSEL_FUNC(0, 12, 2)
346#define FUNC_RLIN311RX_INTP27 RCAR_ALTSEL_FUNC(0, 11, 2)
347#define FUNC_RLIN310TX RCAR_ALTSEL_FUNC(0, 10, 2)
348#define FUNC_RLIN310RX_INTP26 RCAR_ALTSEL_FUNC(0, 9, 2)
349#define FUNC_RLIN39TX RCAR_ALTSEL_FUNC(0, 8, 2)
350#define FUNC_RLIN39RX_INTP25 RCAR_ALTSEL_FUNC(0, 7, 2)
351#define FUNC_RLIN38TX RCAR_ALTSEL_FUNC(0, 6, 2)
352#define FUNC_RLIN38RX_INTP24 RCAR_ALTSEL_FUNC(0, 5, 2)
353#define FUNC_RLIN315TX_A RCAR_ALTSEL_FUNC(0, 4, 2)
354#define FUNC_RLIN315RX_INTP31_A RCAR_ALTSEL_FUNC(0, 3, 2)
355
356/* GP0 ALTSEL function 3 */
357#define FUNC_RTCA0OUT_A RCAR_ALTSEL_FUNC(0, 12, 3)
358#define FUNC_EXTCLK0O_A RCAR_ALTSEL_FUNC(0, 11, 3)
359#define FUNC_TAUD1O15 RCAR_ALTSEL_FUNC(0, 8, 3)
360#define FUNC_TAUD1O14 RCAR_ALTSEL_FUNC(0, 7, 3)
361#define FUNC_TAUD1O13 RCAR_ALTSEL_FUNC(0, 6, 3)
362#define FUNC_TAUD1O12 RCAR_ALTSEL_FUNC(0, 5, 3)
363#define FUNC_TAUD1O11 RCAR_ALTSEL_FUNC(0, 4, 3)
364#define FUNC_TAUD1O10 RCAR_ALTSEL_FUNC(0, 3, 3)
365
366/* GP1 ALTSEL function 0 */
367#define FUNC_RLIN33TX RCAR_ALTSEL_FUNC(1, 21, 0)
368#define FUNC_RLIN33RX_INTP19 RCAR_ALTSEL_FUNC(1, 20, 0)
369#define FUNC_RLIN32TX RCAR_ALTSEL_FUNC(1, 19, 0)
370#define FUNC_RLIN32RX_INTP18 RCAR_ALTSEL_FUNC(1, 18, 0)
371#define FUNC_RLIN31TX RCAR_ALTSEL_FUNC(1, 17, 0)
372#define FUNC_RLIN31RX_INTP17 RCAR_ALTSEL_FUNC(1, 16, 0)
373#define FUNC_RLIN30TX RCAR_ALTSEL_FUNC(1, 15, 0)
374#define FUNC_RLIN30RX_INTP16 RCAR_ALTSEL_FUNC(1, 14, 0)
375#define FUNC_CAN6TX RCAR_ALTSEL_FUNC(1, 13, 0)
376#define FUNC_CAN6RX_INTP6 RCAR_ALTSEL_FUNC(1, 12, 0)
377#define FUNC_CAN5TX RCAR_ALTSEL_FUNC(1, 11, 0)
378#define FUNC_CAN5RX_INTP5 RCAR_ALTSEL_FUNC(1, 10, 0)
379#define FUNC_CAN4TX RCAR_ALTSEL_FUNC(1, 9, 0)
380#define FUNC_CAN4RX_INTP4 RCAR_ALTSEL_FUNC(1, 8, 0)
381#define FUNC_CAN3TX RCAR_ALTSEL_FUNC(1, 7, 0)
382#define FUNC_CAN3RX_INTP3 RCAR_ALTSEL_FUNC(1, 6, 0)
383#define FUNC_CAN2TX RCAR_ALTSEL_FUNC(1, 5, 0)
384#define FUNC_CAN2RX_INTP2 RCAR_ALTSEL_FUNC(1, 4, 0)
385#define FUNC_CAN1TX RCAR_ALTSEL_FUNC(1, 3, 0)
386#define FUNC_CAN1RX_INTP1 RCAR_ALTSEL_FUNC(1, 2, 0)
387#define FUNC_CAN0TX RCAR_ALTSEL_FUNC(1, 1, 0)
388#define FUNC_CAN0RX_INTP0 RCAR_ALTSEL_FUNC(1, 0, 0)
389
390/* GP1 ALTSEL function 1 */
391#define FUNC_TAUJ1I3_TAUJ1O3 RCAR_ALTSEL_FUNC(1, 21, 1)
392#define FUNC_TAUJ1I2_TAUJ1O2 RCAR_ALTSEL_FUNC(1, 20, 1)
393#define FUNC_TAUJ1I1_TAUJ1O1 RCAR_ALTSEL_FUNC(1, 19, 1)
394#define FUNC_TAUJ1I0_TAUJ1O0 RCAR_ALTSEL_FUNC(1, 18, 1)
395#define FUNC_TAUJ3I3_TAUJ3O3 RCAR_ALTSEL_FUNC(1, 17, 1)
396#define FUNC_TAUJ3I2_TAUJ3O2 RCAR_ALTSEL_FUNC(1, 16, 1)
397#define FUNC_TAUJ3I1_TAUJ3O1 RCAR_ALTSEL_FUNC(1, 15, 1)
398#define FUNC_TAUJ3I0_TAUJ3O0 RCAR_ALTSEL_FUNC(1, 14, 1)
399#define FUNC_RLIN314TX_A RCAR_ALTSEL_FUNC(1, 13, 1)
400#define FUNC_RLIN314RX_INTP30_A RCAR_ALTSEL_FUNC(1, 12, 1)
401#define FUNC_RLIN313TX_A RCAR_ALTSEL_FUNC(1, 11, 1)
402#define FUNC_RLIN313RX_INTP29_A RCAR_ALTSEL_FUNC(1, 10, 1)
403#define FUNC_RLIN312TX_A RCAR_ALTSEL_FUNC(1, 9, 1)
404#define FUNC_RLIN312RX_INTP28_A RCAR_ALTSEL_FUNC(1, 8, 1)
405#define FUNC_RLIN37TX_A RCAR_ALTSEL_FUNC(1, 7, 1)
406#define FUNC_RLIN37RX_INTP23_A RCAR_ALTSEL_FUNC(1, 6, 1)
407#define FUNC_RLIN36TX_A RCAR_ALTSEL_FUNC(1, 5, 1)
408#define FUNC_RLIN36RX_INTP22_A RCAR_ALTSEL_FUNC(1, 4, 1)
409#define FUNC_RLIN35TX_A RCAR_ALTSEL_FUNC(1, 3, 1)
410#define FUNC_RLIN35RX_INTP21_A RCAR_ALTSEL_FUNC(1, 2, 1)
411#define FUNC_RLIN34TX_A RCAR_ALTSEL_FUNC(1, 1, 1)
412#define FUNC_RLIN34RX_INTP20_A RCAR_ALTSEL_FUNC(1, 0, 1)
413
414/* GP1 ALTSEL function 2 */
415#define FUNC_CAN15TX_A RCAR_ALTSEL_FUNC(1, 21, 2)
416#define FUNC_CAN15RX_INTP15_A RCAR_ALTSEL_FUNC(1, 20, 2)
417#define FUNC_CAN14TX_A RCAR_ALTSEL_FUNC(1, 19, 2)
418#define FUNC_CAN14RX_INTP14_A RCAR_ALTSEL_FUNC(1, 18, 2)
419#define FUNC_CAN13TX_A RCAR_ALTSEL_FUNC(1, 17, 2)
420#define FUNC_CAN13RX_INTP13_A RCAR_ALTSEL_FUNC(1, 16, 2)
421#define FUNC_CAN12TX_A RCAR_ALTSEL_FUNC(1, 15, 2)
422#define FUNC_CAN12RX_INTP12_A RCAR_ALTSEL_FUNC(1, 14, 2)
423#define FUNC_TAUD1O9 RCAR_ALTSEL_FUNC(1, 13, 2)
424#define FUNC_TAUD1O8 RCAR_ALTSEL_FUNC(1, 12, 2)
425#define FUNC_MSIOF3_SS2 RCAR_ALTSEL_FUNC(1, 11, 2)
426#define FUNC_MSIOF3_SS1 RCAR_ALTSEL_FUNC(1, 10, 2)
427#define FUNC_MSIOF3_SYNC RCAR_ALTSEL_FUNC(1, 9, 2)
428#define FUNC_MSIOF3_RXD RCAR_ALTSEL_FUNC(1, 8, 2)
429#define FUNC_MSIOF3_TXD RCAR_ALTSEL_FUNC(1, 7, 2)
430#define FUNC_MSIOF3_SCK RCAR_ALTSEL_FUNC(1, 6, 2)
431#define FUNC_MSIOF2_SS2 RCAR_ALTSEL_FUNC(1, 5, 2)
432#define FUNC_MSIOF2_SS1 RCAR_ALTSEL_FUNC(1, 4, 2)
433#define FUNC_MSIOF2_SYNC RCAR_ALTSEL_FUNC(1, 3, 2)
434#define FUNC_MSIOF2_RXD RCAR_ALTSEL_FUNC(1, 2, 2)
435#define FUNC_MSIOF2_TXD RCAR_ALTSEL_FUNC(1, 1, 2)
436#define FUNC_MSIOF2_SCK RCAR_ALTSEL_FUNC(1, 0, 2)
437
438/* GP1 ALTSEL function 3 */
439#define FUNC_NMI1_A RCAR_ALTSEL_FUNC(1, 19, 3)
440#define FUNC_INTP34_A RCAR_ALTSEL_FUNC(1, 18, 3)
441#define FUNC_INTP33_A RCAR_ALTSEL_FUNC(1, 17, 3)
442#define FUNC_INTP32_A RCAR_ALTSEL_FUNC(1, 16, 3)
443#define FUNC_RXDB_EXTFXR_B RCAR_ALTSEL_FUNC(1, 11, 3)
444#define FUNC_FXR_TXENB_N_B RCAR_ALTSEL_FUNC(1, 10, 3)
445#define FUNC_FXR_TXDB_B RCAR_ALTSEL_FUNC(1, 9, 3)
446#define FUNC_RXDA_EXTFXR_B RCAR_ALTSEL_FUNC(1, 8, 3)
447#define FUNC_FXR_TXENA_N_B RCAR_ALTSEL_FUNC(1, 7, 3)
448#define FUNC_FXR_TXDA_B RCAR_ALTSEL_FUNC(1, 6, 3)
449#define FUNC_CLK_EXTFXR_B RCAR_ALTSEL_FUNC(1, 5, 3)
450#define FUNC_FXR_CLKOUT2_B RCAR_ALTSEL_FUNC(1, 4, 3)
451#define FUNC_FXR_CLKOUT1_B RCAR_ALTSEL_FUNC(1, 3, 3)
452#define FUNC_STPWT_EXTFXR_B RCAR_ALTSEL_FUNC(1, 2, 3)
453
454/* GP2 ALTSEL function 0 */
455#define FUNC_INTP34_B RCAR_ALTSEL_FUNC(2, 28, 0)
456#define FUNC_TAUD1O3 RCAR_ALTSEL_FUNC(2, 27, 0)
457#define FUNC_TAUD1O2 RCAR_ALTSEL_FUNC(2, 26, 0)
458#define FUNC_TAUD1O1 RCAR_ALTSEL_FUNC(2, 25, 0)
459#define FUNC_TAUD1O0 RCAR_ALTSEL_FUNC(2, 24, 0)
460#define FUNC_EXTCLK0O_B RCAR_ALTSEL_FUNC(2, 23, 0)
461#define FUNC_AVS1 RCAR_ALTSEL_FUNC(2, 22, 0)
462#define FUNC_AVS0 RCAR_ALTSEL_FUNC(2, 21, 0)
463#define FUNC_SDA0 RCAR_ALTSEL_FUNC(2, 20, 0)
464#define FUNC_SCL0 RCAR_ALTSEL_FUNC(2, 19, 0)
465#define FUNC_INTP33_B RCAR_ALTSEL_FUNC(2, 18, 0)
466#define FUNC_INTP32_B RCAR_ALTSEL_FUNC(2, 17, 0)
467#define FUNC_CAN_CLK RCAR_ALTSEL_FUNC(2, 16, 0)
468#define FUNC_CAN15TX_B RCAR_ALTSEL_FUNC(2, 15, 0)
469#define FUNC_CAN15RX_INTP15_B RCAR_ALTSEL_FUNC(2, 14, 0)
470#define FUNC_CAN14TX_B RCAR_ALTSEL_FUNC(2, 13, 0)
471#define FUNC_CAN14RX_INTP14_B RCAR_ALTSEL_FUNC(2, 12, 0)
472#define FUNC_CAN13TX_B RCAR_ALTSEL_FUNC(2, 11, 0)
473#define FUNC_CAN13RX_INTP13_B RCAR_ALTSEL_FUNC(2, 10, 0)
474#define FUNC_CAN12TX_B RCAR_ALTSEL_FUNC(2, 9, 0)
475#define FUNC_CAN12RX_INTP12_B RCAR_ALTSEL_FUNC(2, 8, 0)
476#define FUNC_RLIN37TX_B RCAR_ALTSEL_FUNC(2, 7, 0)
477#define FUNC_RLIN37RX_INTP23_B RCAR_ALTSEL_FUNC(2, 6, 0)
478#define FUNC_RLIN36TX_B RCAR_ALTSEL_FUNC(2, 5, 0)
479#define FUNC_RLIN36RX_INTP22_B RCAR_ALTSEL_FUNC(2, 4, 0)
480#define FUNC_RLIN35TX_B RCAR_ALTSEL_FUNC(2, 3, 0)
481#define FUNC_RLIN35RX_INTP21_B RCAR_ALTSEL_FUNC(2, 2, 0)
482#define FUNC_RLIN34TX_B RCAR_ALTSEL_FUNC(2, 1, 0)
483#define FUNC_RLIN34RX_INTP20_B RCAR_ALTSEL_FUNC(2, 0, 0)
484
485/* GP2 ALTSEL function 1 */
486#define FUNC_TAUD0O1 RCAR_ALTSEL_FUNC(2, 18, 1)
487#define FUNC_TAUD0O0 RCAR_ALTSEL_FUNC(2, 17, 1)
488#define FUNC_RLIN315TX_B RCAR_ALTSEL_FUNC(2, 15, 1)
489#define FUNC_RLIN315RX_INTP31_B RCAR_ALTSEL_FUNC(2, 14, 1)
490#define FUNC_RLIN314TX_B RCAR_ALTSEL_FUNC(2, 13, 1)
491#define FUNC_RLIN314RX_INTP30_B RCAR_ALTSEL_FUNC(2, 12, 1)
492#define FUNC_RLIN313TX RCAR_ALTSEL_FUNC(2, 11, 1)
493#define FUNC_RLIN313RX_INTP29_B RCAR_ALTSEL_FUNC(2, 10, 1)
494#define FUNC_RLIN312TX RCAR_ALTSEL_FUNC(2, 9, 1)
495#define FUNC_RLIN312RX_INTP28_B RCAR_ALTSEL_FUNC(2, 8, 1)
496#define FUNC_RTCA0OUT_B RCAR_ALTSEL_FUNC(2, 7, 1)
497#define FUNC_MSIOF1_SS2_B RCAR_ALTSEL_FUNC(2, 5, 1)
498#define FUNC_MSIOF1_SS1_B RCAR_ALTSEL_FUNC(2, 4, 1)
499#define FUNC_MSIOF1_SYN_B RCAR_ALTSEL_FUNC(2, 3, 1)
500#define FUNC_MSIOF1_RXD_B RCAR_ALTSEL_FUNC(2, 2, 1)
501#define FUNC_MSIOF1_TXD_B RCAR_ALTSEL_FUNC(2, 1, 1)
502#define FUNC_MSIOF1_SCK_B RCAR_ALTSEL_FUNC(2, 0, 1)
503
504/* GP2 ALTSEL function 2 */
505#define FUNC_TAUD1O7 RCAR_ALTSEL_FUNC(2, 9, 2)
506#define FUNC_TAUD1O6 RCAR_ALTSEL_FUNC(2, 8, 2)
507#define FUNC_TAUD1O5 RCAR_ALTSEL_FUNC(2, 7, 2)
508#define FUNC_TAUD1O4 RCAR_ALTSEL_FUNC(2, 6, 2)
509#define FUNC_TAUD0O15 RCAR_ALTSEL_FUNC(2, 1, 2)
510#define FUNC_TAUD0O14 RCAR_ALTSEL_FUNC(2, 0, 2)
511
512/* GP2 ALTSEL function 3 */
513#define FUNC_CANXL1_TX RCAR_ALTSEL_FUNC(2, 11, 3)
514#define FUNC_CANXL1_RX RCAR_ALTSEL_FUNC(2, 10, 3)
515#define FUNC_CANXL0_TX RCAR_ALTSEL_FUNC(2, 9, 3)
516#define FUNC_CANXL0_RX RCAR_ALTSEL_FUNC(2, 8, 3)
517#define FUNC_CTIACK RCAR_ALTSEL_FUNC(2, 4, 3)
518#define FUNC_CTIREQ RCAR_ALTSEL_FUNC(2, 3, 3)
519
520/* GP3 ALTSEL function 0 */
521#define FUNC_ERRORIN0_N RCAR_ALTSEL_FUNC(3, 16, 0)
522#define FUNC_ERROROUT_N RCAR_ALTSEL_FUNC(3, 15, 0)
523#define FUNC_QSPI1_SSL RCAR_ALTSEL_FUNC(3, 14, 0)
524#define FUNC_QSPI1_IO3 RCAR_ALTSEL_FUNC(3, 13, 0)
525#define FUNC_QSPI1_IO2 RCAR_ALTSEL_FUNC(3, 12, 0)
526#define FUNC_QSPI1_MISO_IO1 RCAR_ALTSEL_FUNC(3, 11, 0)
527#define FUNC_QSPI1_MOSI_IO0 RCAR_ALTSEL_FUNC(3, 10, 0)
528#define FUNC_QSPI1_SPCLK RCAR_ALTSEL_FUNC(3, 9, 0)
529#define FUNC_RPC_INT_N RCAR_ALTSEL_FUNC(3, 8, 0)
530#define FUNC_RPC_WP_N RCAR_ALTSEL_FUNC(3, 7, 0)
531#define FUNC_RPC_RESET_N RCAR_ALTSEL_FUNC(3, 6, 0)
532#define FUNC_QSPI0_SSL RCAR_ALTSEL_FUNC(3, 5, 0)
533#define FUNC_QSPI0_IO3 RCAR_ALTSEL_FUNC(3, 4, 0)
534#define FUNC_QSPI0_IO2 RCAR_ALTSEL_FUNC(3, 3, 0)
535#define FUNC_QSPI0_MISO_IO1 RCAR_ALTSEL_FUNC(3, 2, 0)
536#define FUNC_QSPI0_MOSI_IO0 RCAR_ALTSEL_FUNC(3, 1, 0)
537#define FUNC_QSPI0_SPCLK RCAR_ALTSEL_FUNC(3, 0, 0)
538
539/* GP4 ALTSEL function 0 */
540#define FUNC_PCIE61_CLKREQ_N RCAR_ALTSEL_FUNC(4, 15, 0)
541#define FUNC_PCIE60_CLKREQ_N RCAR_ALTSEL_FUNC(4, 14, 0)
542#define FUNC_ERRORIN1_N RCAR_ALTSEL_FUNC(4, 13, 0)
543#define FUNC_SD0_CD RCAR_ALTSEL_FUNC(4, 12, 0)
544#define FUNC_SD0_WP RCAR_ALTSEL_FUNC(4, 11, 0)
545#define FUNC_MMC0_DS RCAR_ALTSEL_FUNC(4, 10, 0)
546#define FUNC_MMC0_D7 RCAR_ALTSEL_FUNC(4, 9, 0)
547#define FUNC_MMC0_D6 RCAR_ALTSEL_FUNC(4, 8, 0)
548#define FUNC_MMC0_D5 RCAR_ALTSEL_FUNC(4, 7, 0)
549#define FUNC_MMC0_D4 RCAR_ALTSEL_FUNC(4, 6, 0)
550#define FUNC_MMC0_SD_D3 RCAR_ALTSEL_FUNC(4, 5, 0)
551#define FUNC_MMC0_SD_D2 RCAR_ALTSEL_FUNC(4, 4, 0)
552#define FUNC_MMC0_SD_D1 RCAR_ALTSEL_FUNC(4, 3, 0)
553#define FUNC_MMC0_SD_D0 RCAR_ALTSEL_FUNC(4, 2, 0)
554#define FUNC_MMC0_SD_CMD RCAR_ALTSEL_FUNC(4, 1, 0)
555#define FUNC_MMC0_SD_CLK RCAR_ALTSEL_FUNC(4, 0, 0)
556
557/* GP5 ALTSEL function 0 */
558#define FUNC_TPU0TO3 RCAR_ALTSEL_FUNC(5, 22, 0)
559#define FUNC_TPU0TO2 RCAR_ALTSEL_FUNC(5, 21, 0)
560#define FUNC_TPU0TO1 RCAR_ALTSEL_FUNC(5, 20, 0)
561#define FUNC_TPU0TO0 RCAR_ALTSEL_FUNC(5, 19, 0)
562#define FUNC_TCLK4 RCAR_ALTSEL_FUNC(5, 18, 0)
563#define FUNC_TCLK3 RCAR_ALTSEL_FUNC(5, 17, 0)
564#define FUNC_TCLK2 RCAR_ALTSEL_FUNC(5, 16, 0)
565#define FUNC_TCLK1 RCAR_ALTSEL_FUNC(5, 15, 0)
566#define FUNC_IRQ3_A RCAR_ALTSEL_FUNC(5, 14, 0)
567#define FUNC_IRQ2_A RCAR_ALTSEL_FUNC(5, 13, 0)
568#define FUNC_IRQ1_A RCAR_ALTSEL_FUNC(5, 12, 0)
569#define FUNC_IRQ0_A RCAR_ALTSEL_FUNC(5, 11, 0)
570#define FUNC_HSCK1 RCAR_ALTSEL_FUNC(5, 10, 0)
571#define FUNC_HCTS1_N RCAR_ALTSEL_FUNC(5, 9, 0)
572#define FUNC_HRTS1_N RCAR_ALTSEL_FUNC(5, 8, 0)
573#define FUNC_HRX1 RCAR_ALTSEL_FUNC(5, 7, 0)
574#define FUNC_HTX1 RCAR_ALTSEL_FUNC(5, 6, 0)
575#define FUNC_SCIF_CLK RCAR_ALTSEL_FUNC(5, 5, 0)
576#define FUNC_HSCK0 RCAR_ALTSEL_FUNC(5, 4, 0)
577#define FUNC_HCTS0_N RCAR_ALTSEL_FUNC(5, 3, 0)
578#define FUNC_HRTS0_N RCAR_ALTSEL_FUNC(5, 2, 0)
579#define FUNC_HRX0 RCAR_ALTSEL_FUNC(5, 1, 0)
580#define FUNC_HTX0 RCAR_ALTSEL_FUNC(5, 0, 0)
581
582/* GP5 ALTSEL function 1 */
583#define FUNC_SSI9_WS RCAR_ALTSEL_FUNC(5, 22, 1)
584#define FUNC_SSI9_SCK RCAR_ALTSEL_FUNC(5, 21, 1)
585#define FUNC_PWM5 RCAR_ALTSEL_FUNC(5, 20, 1)
586#define FUNC_PWM4 RCAR_ALTSEL_FUNC(5, 19, 1)
587#define FUNC_PWM3 RCAR_ALTSEL_FUNC(5, 18, 1)
588#define FUNC_PWM2 RCAR_ALTSEL_FUNC(5, 17, 1)
589#define FUNC_PWM1 RCAR_ALTSEL_FUNC(5, 16, 1)
590#define FUNC_PWM0_A RCAR_ALTSEL_FUNC(5, 15, 1)
591#define FUNC_SSI17_SD RCAR_ALTSEL_FUNC(5, 13, 1)
592#define FUNC_SSI17_WS RCAR_ALTSEL_FUNC(5, 12, 1)
593#define FUNC_SSI17_SCK RCAR_ALTSEL_FUNC(5, 11, 1)
594#define FUNC_SCK1 RCAR_ALTSEL_FUNC(5, 10, 1)
595#define FUNC_CTS1_N RCAR_ALTSEL_FUNC(5, 9, 1)
596#define FUNC_RTS1_N RCAR_ALTSEL_FUNC(5, 8, 1)
597#define FUNC_RX1 RCAR_ALTSEL_FUNC(5, 7, 1)
598#define FUNC_TX1 RCAR_ALTSEL_FUNC(5, 6, 1)
599#define FUNC_SCK0 RCAR_ALTSEL_FUNC(5, 4, 1)
600#define FUNC_CTS0_N RCAR_ALTSEL_FUNC(5, 3, 1)
601#define FUNC_RTS0_N RCAR_ALTSEL_FUNC(5, 2, 1)
602#define FUNC_RX0 RCAR_ALTSEL_FUNC(5, 1, 1)
603#define FUNC_TX0 RCAR_ALTSEL_FUNC(5, 0, 1)
604
605/* GP5 ALTSEL function 2 */
606#define FUNC_SSI19_SD RCAR_ALTSEL_FUNC(5, 18, 2)
607#define FUNC_SSI19_WS RCAR_ALTSEL_FUNC(5, 17, 2)
608#define FUNC_SSI19_SCK RCAR_ALTSEL_FUNC(5, 16, 2)
609#define FUNC_SSI18_SD RCAR_ALTSEL_FUNC(5, 15, 2)
610#define FUNC_SSI13_SCK RCAR_ALTSEL_FUNC(5, 10, 2)
611#define FUNC_RIF0_SYNC_B RCAR_ALTSEL_FUNC(5, 8, 2)
612#define FUNC_IRQ1_B RCAR_ALTSEL_FUNC(5, 3, 2)
613#define FUNC_IRQ0_B RCAR_ALTSEL_FUNC(5, 2, 2)
614#define FUNC_SSI13_SD RCAR_ALTSEL_FUNC(5, 1, 2)
615#define FUNC_SSI13_WS RCAR_ALTSEL_FUNC(5, 0, 2)
616
617/* GP5 ALTSEL function 3*/
618#define FUNC_RIF7_D1 RCAR_ALTSEL_FUNC(5, 14, 3)
619#define FUNC_RIF7_D0 RCAR_ALTSEL_FUNC(5, 13, 3)
620#define FUNC_RIF7_SYNC RCAR_ALTSEL_FUNC(5, 12, 3)
621#define FUNC_RIF7_CLK RCAR_ALTSEL_FUNC(5, 11, 3)
622#define FUNC_RIF0_CLK_B RCAR_ALTSEL_FUNC(5, 10, 3)
623#define FUNC_SSI16_SD RCAR_ALTSEL_FUNC(5, 8, 3)
624#define FUNC_SSI16_WS RCAR_ALTSEL_FUNC(5, 7, 3)
625#define FUNC_SSI16_SCK RCAR_ALTSEL_FUNC(5, 6, 3)
626#define FUNC_SSI15_SD RCAR_ALTSEL_FUNC(5, 4, 3)
627#define FUNC_SSI15_WS RCAR_ALTSEL_FUNC(5, 3, 3)
628#define FUNC_SSI15_SCK RCAR_ALTSEL_FUNC(5, 2, 3)
629#define FUNC_RIF0_D1_B RCAR_ALTSEL_FUNC(5, 1, 3)
630#define FUNC_RIF0_D0_B RCAR_ALTSEL_FUNC(5, 0, 3)
631
632/* GP6 ALTSEL function 0 */
633#define FUNC_AUDIO1_CLKOUT1 RCAR_ALTSEL_FUNC(6, 30, 0)
634#define FUNC_AUDIO1_CLKOUT0 RCAR_ALTSEL_FUNC(6, 29, 0)
635#define FUNC_SSI2_SD RCAR_ALTSEL_FUNC(6, 28, 0)
636#define FUNC_SSI2_WS RCAR_ALTSEL_FUNC(6, 27, 0)
637#define FUNC_SSI2_SCK RCAR_ALTSEL_FUNC(6, 26, 0)
638#define FUNC_AUDIO0_CLKOUT3 RCAR_ALTSEL_FUNC(6, 25, 0)
639#define FUNC_AUDIO0_CLKOUT2 RCAR_ALTSEL_FUNC(6, 24, 0)
640#define FUNC_SSI1_SD RCAR_ALTSEL_FUNC(6, 23, 0)
641#define FUNC_SSI1_WS RCAR_ALTSEL_FUNC(6, 22, 0)
642#define FUNC_SSI1_SCK RCAR_ALTSEL_FUNC(6, 21, 0)
643#define FUNC_AUDIO0_CLKOUT1 RCAR_ALTSEL_FUNC(6, 20, 0)
644#define FUNC_AUDIO0_CLKOUT0 RCAR_ALTSEL_FUNC(6, 19, 0)
645#define FUNC_SSI0_SD RCAR_ALTSEL_FUNC(6, 18, 0)
646#define FUNC_SSI0_WS RCAR_ALTSEL_FUNC(6, 17, 0)
647#define FUNC_SSI0_SCK RCAR_ALTSEL_FUNC(6, 16, 0)
648#define FUNC_MSIOF4_SS2_B RCAR_ALTSEL_FUNC(6, 15, 0)
649#define FUNC_MSIOF4_SS1_B RCAR_ALTSEL_FUNC(6, 14, 0)
650#define FUNC_MSIOF4_SYNC_B RCAR_ALTSEL_FUNC(6, 13, 0)
651#define FUNC_MSIOF4_RXD_B RCAR_ALTSEL_FUNC(6, 12, 0)
652#define FUNC_MSIOF4_TXD_B RCAR_ALTSEL_FUNC(6, 11, 0)
653#define FUNC_MSIOF4_SCK_B RCAR_ALTSEL_FUNC(6, 10, 0)
654#define FUNC_MSIOF7_SS2_A RCAR_ALTSEL_FUNC(6, 9, 0)
655#define FUNC_MSIOF7_SS1_A RCAR_ALTSEL_FUNC(6, 8, 0)
656#define FUNC_MSIOF7_SYNC_A RCAR_ALTSEL_FUNC(6, 7, 0)
657#define FUNC_MSIOF7_RXD_A RCAR_ALTSEL_FUNC(6, 6, 0)
658#define FUNC_MSIOF7_TXD_A RCAR_ALTSEL_FUNC(6, 5, 0)
659#define FUNC_MSIOF7_SCK_A RCAR_ALTSEL_FUNC(6, 4, 0)
660#define FUNC_RIF6_CLK RCAR_ALTSEL_FUNC(6, 3, 0)
661#define FUNC_RIF6_SYNC RCAR_ALTSEL_FUNC(6, 2, 0)
662#define FUNC_RIF6_D1 RCAR_ALTSEL_FUNC(6, 1, 0)
663#define FUNC_RIF6_D0 RCAR_ALTSEL_FUNC(6, 0, 0)
664
665/* GP6 ALTSEL function 1 */
666#define FUNC_MSIOF7_RXD_B RCAR_ALTSEL_FUNC(6, 30, 1)
667#define FUNC_MSIOF7_TXD_B RCAR_ALTSEL_FUNC(6, 29, 1)
668#define FUNC_MSIOF7_SCK_B RCAR_ALTSEL_FUNC(6, 28, 1)
669#define FUNC_MSIOF4_SS2_A RCAR_ALTSEL_FUNC(6, 21, 1)
670#define FUNC_MSIOF4_SS1_A RCAR_ALTSEL_FUNC(6, 20, 1)
671#define FUNC_MSIOF4_SYNC_A RCAR_ALTSEL_FUNC(6, 19, 1)
672#define FUNC_MSIOF4_RXD_A RCAR_ALTSEL_FUNC(6, 18, 1)
673#define FUNC_MSIOF4_TXD_A RCAR_ALTSEL_FUNC(6, 17, 1)
674#define FUNC_MSIOF4_SCK_A RCAR_ALTSEL_FUNC(6, 16, 1)
675#define FUNC_SSI14_SD RCAR_ALTSEL_FUNC(6, 15, 1)
676#define FUNC_SSI12_SD RCAR_ALTSEL_FUNC(6, 14, 1)
677#define FUNC_SSI12_WS RCAR_ALTSEL_FUNC(6, 13, 1)
678#define FUNC_SSI12_SCK RCAR_ALTSEL_FUNC(6, 11, 1)
679#define FUNC_SSI14_WS RCAR_ALTSEL_FUNC(6, 9, 1)
680#define FUNC_SSI14_SCK RCAR_ALTSEL_FUNC(6, 8, 1)
681#define FUNC_RIF1_D1_B RCAR_ALTSEL_FUNC(6, 7, 1)
682#define FUNC_RIF1_D0_B RCAR_ALTSEL_FUNC(6, 6, 1)
683#define FUNC_RIF1_SYNC_B RCAR_ALTSEL_FUNC(6, 5, 1)
684#define FUNC_RIF1_CLK_B RCAR_ALTSEL_FUNC(6, 4, 1)
685#define FUNC_SSI10_SD RCAR_ALTSEL_FUNC(6, 3, 1)
686#define FUNC_SSI10_WS RCAR_ALTSEL_FUNC(6, 2, 1)
687#define FUNC_SSI10_SCK RCAR_ALTSEL_FUNC(6, 1, 1)
688#define FUNC_SSI9_SD RCAR_ALTSEL_FUNC(6, 0, 1)
689
690/* GP6 ALTSEL function 2 */
691#define FUNC_RIF5_CLK RCAR_ALTSEL_FUNC(6, 30, 2)
692#define FUNC_RIF5_SYNC RCAR_ALTSEL_FUNC(6, 28, 2)
693#define FUNC_RIF1_D1_A RCAR_ALTSEL_FUNC(6, 27, 2)
694#define FUNC_RIF1_D0_A RCAR_ALTSEL_FUNC(6, 26, 2)
695#define FUNC_RIF1_CLK_A RCAR_ALTSEL_FUNC(6, 25, 2)
696#define FUNC_RIF2_D1 RCAR_ALTSEL_FUNC(6, 24, 2)
697#define FUNC_HCTS3_N RCAR_ALTSEL_FUNC(6, 23, 2)
698#define FUNC_HRTS3_N RCAR_ALTSEL_FUNC(6, 22, 2)
699#define FUNC_HSCK3 RCAR_ALTSEL_FUNC(6, 21, 2)
700#define FUNC_RIF2_D0 RCAR_ALTSEL_FUNC(6, 20, 2)
701#define FUNC_RIF2_SYNC RCAR_ALTSEL_FUNC(6, 19, 2)
702#define FUNC_HRX3 RCAR_ALTSEL_FUNC(6, 18, 2)
703#define FUNC_HTX3 RCAR_ALTSEL_FUNC(6, 17, 2)
704#define FUNC_AUDIO_CLKC_B RCAR_ALTSEL_FUNC(6, 12, 2)
705#define FUNC_AUDIO_CLKB_B RCAR_ALTSEL_FUNC(6, 10, 2)
706#define FUNC_SSI11_SD RCAR_ALTSEL_FUNC(6, 7, 2)
707#define FUNC_SSI11_WS RCAR_ALTSEL_FUNC(6, 6, 2)
708#define FUNC_SSI11_SCK RCAR_ALTSEL_FUNC(6, 5, 2)
709#define FUNC_AUDIO_CLKA_B RCAR_ALTSEL_FUNC(6, 4, 2)
710
711/* GP6 ALTSEL function 3 */
712#define FUNC_CTS3_N RCAR_ALTSEL_FUNC(6, 23, 3)
713#define FUNC_RTS3_N RCAR_ALTSEL_FUNC(6, 22, 3)
714#define FUNC_SCK3 RCAR_ALTSEL_FUNC(6, 21, 3)
715#define FUNC_RX3 RCAR_ALTSEL_FUNC(6, 18, 3)
716#define FUNC_TX3 RCAR_ALTSEL_FUNC(6, 17, 3)
717#define FUNC_RIF1_SYNC_A RCAR_ALTSEL_FUNC(6, 11, 3)
718
719/* GP7 ALTSEL function 0 */
720#define FUNC_MSIOF6_SS2_B RCAR_ALTSEL_FUNC(7, 30, 0)
721#define FUNC_MSIOF6_SS1_B RCAR_ALTSEL_FUNC(7, 29, 0)
722#define FUNC_MSIOF6_SYNC_B RCAR_ALTSEL_FUNC(7, 28, 0)
723#define FUNC_MSIOF6_RXD_B RCAR_ALTSEL_FUNC(7, 27, 0)
724#define FUNC_MSIOF6_TXD_B RCAR_ALTSEL_FUNC(7, 26, 0)
725#define FUNC_MSIOF6_SCK_B RCAR_ALTSEL_FUNC(7, 25, 0)
726#define FUNC_MSIOF5_SS2 RCAR_ALTSEL_FUNC(7, 24, 0)
727#define FUNC_MSIOF5_SS1 RCAR_ALTSEL_FUNC(7, 23, 0)
728#define FUNC_MSIOF5_SYNC RCAR_ALTSEL_FUNC(7, 22, 0)
729#define FUNC_MSIOF5_RXD RCAR_ALTSEL_FUNC(7, 21, 0)
730#define FUNC_MSIOF5_TXD RCAR_ALTSEL_FUNC(7, 20, 0)
731#define FUNC_MSIOF5_SCK RCAR_ALTSEL_FUNC(7, 17, 0)
732#define FUNC_AUDIO_CLKC_A RCAR_ALTSEL_FUNC(7, 16, 0)
733#define FUNC_SSI6_SD RCAR_ALTSEL_FUNC(7, 15, 0)
734#define FUNC_SSI6_WS RCAR_ALTSEL_FUNC(7, 14, 0)
735#define FUNC_SSI6_SCK RCAR_ALTSEL_FUNC(7, 13, 0)
736#define FUNC_AUDIO_CLKB_A RCAR_ALTSEL_FUNC(7, 12, 0)
737#define FUNC_SSI5_SD RCAR_ALTSEL_FUNC(7, 11, 0)
738#define FUNC_SSI5_WS RCAR_ALTSEL_FUNC(7, 10, 0)
739#define FUNC_SSI5_SCK RCAR_ALTSEL_FUNC(7, 9, 0)
740#define FUNC_AUDIO_CLKA_A RCAR_ALTSEL_FUNC(7, 8, 0)
741#define FUNC_SSI4_SD RCAR_ALTSEL_FUNC(7, 7, 0)
742#define FUNC_SSI4_WS RCAR_ALTSEL_FUNC(7, 6, 0)
743#define FUNC_SSI4_SCK RCAR_ALTSEL_FUNC(7, 5, 0)
744#define FUNC_AUDIO1_CLKOUT3 RCAR_ALTSEL_FUNC(7, 4, 0)
745#define FUNC_AUDIO1_CLKOUT2 RCAR_ALTSEL_FUNC(7, 3, 0)
746#define FUNC_SSI3_SD RCAR_ALTSEL_FUNC(7, 2, 0)
747#define FUNC_SSI3_WS RCAR_ALTSEL_FUNC(7, 1, 0)
748#define FUNC_SSI3_SCK RCAR_ALTSEL_FUNC(7, 0, 0)
749
750/* GP7 ALTSEL function 1 */
751#define FUNC_HRX2_B RCAR_ALTSEL_FUNC(7, 30, 1)
752#define FUNC_SSI7_SD RCAR_ALTSEL_FUNC(7, 29, 1)
753#define FUNC_SSI7_WS RCAR_ALTSEL_FUNC(7, 28, 1)
754#define FUNC_SSI7_SCK RCAR_ALTSEL_FUNC(7, 27, 1)
755#define FUNC_HTX2_B RCAR_ALTSEL_FUNC(7, 26, 1)
756#define FUNC_SSI8_SD RCAR_ALTSEL_FUNC(7, 25, 1)
757#define FUNC_HCTS2_N_B RCAR_ALTSEL_FUNC(7, 24, 1)
758#define FUNC_RIF0_SYNC_A RCAR_ALTSEL_FUNC(7, 23, 1)
759#define FUNC_HRTS2_N_B RCAR_ALTSEL_FUNC(7, 22, 1)
760#define FUNC_RIF0_D1_A RCAR_ALTSEL_FUNC(7, 21, 1)
761#define FUNC_HSCK2_B RCAR_ALTSEL_FUNC(7, 20, 1)
762#define FUNC_MSIOF6_SS2_A RCAR_ALTSEL_FUNC(7, 19, 1)
763#define FUNC_MSIOF6_SS1_A RCAR_ALTSEL_FUNC(7, 18, 1)
764#define FUNC_MSIOF6_RXD_A RCAR_ALTSEL_FUNC(7, 15, 1)
765#define FUNC_MSIOF6_TXD_A RCAR_ALTSEL_FUNC(7, 14, 1)
766#define FUNC_MSIOF6_SCK_A RCAR_ALTSEL_FUNC(7, 13, 1)
767#define FUNC_MSIOF6_SYNC_A RCAR_ALTSEL_FUNC(7, 11, 1)
768#define FUNC_RIF3_SYNC RCAR_ALTSEL_FUNC(7, 10, 1)
769#define FUNC_RIF3_CLK RCAR_ALTSEL_FUNC(7, 9, 1)
770#define FUNC_RIF3_D1 RCAR_ALTSEL_FUNC(7, 7, 1)
771#define FUNC_RIF3_D0 RCAR_ALTSEL_FUNC(7, 6, 1)
772#define FUNC_RIF2_CLK RCAR_ALTSEL_FUNC(7, 5, 1)
773#define FUNC_RIF0_D0_A RCAR_ALTSEL_FUNC(7, 4, 1)
774#define FUNC_RIF0_CLK_A RCAR_ALTSEL_FUNC(7, 3, 1)
775#define FUNC_MSIOF7_SS2_B RCAR_ALTSEL_FUNC(7, 2, 1)
776#define FUNC_MSIOF7_SS1_B RCAR_ALTSEL_FUNC(7, 1, 1)
777#define FUNC_MSIOF7_SYNC_B RCAR_ALTSEL_FUNC(7, 0, 1)
778
779/* GP7 ALTSEL function 2 */
780#define FUNC_RX4_B RCAR_ALTSEL_FUNC(7, 30, 2)
781#define FUNC_TX4_B RCAR_ALTSEL_FUNC(7, 26, 2)
782#define FUNC_CTS4_N_B RCAR_ALTSEL_FUNC(7, 24, 2)
783#define FUNC_RTS4_N_B RCAR_ALTSEL_FUNC(7, 22, 2)
784#define FUNC_SCK4_B RCAR_ALTSEL_FUNC(7, 20, 2)
785#define FUNC_RIF4_D1 RCAR_ALTSEL_FUNC(7, 15, 2)
786#define FUNC_RIF4_D0 RCAR_ALTSEL_FUNC(7, 14, 2)
787#define FUNC_RIF4_SYNC RCAR_ALTSEL_FUNC(7, 13, 2)
788#define FUNC_RIF4_CLK RCAR_ALTSEL_FUNC(7, 11, 2)
789#define FUNC_RIF5_D1 RCAR_ALTSEL_FUNC(7, 1, 2)
790#define FUNC_RIF5_D0 RCAR_ALTSEL_FUNC(7, 0, 2)
791
792/* GP8 ALTSEL function 0 */
793#define FUNC_S3DA2 RCAR_ALTSEL_FUNC(8, 31, 0)
794#define FUNC_S3CL2 RCAR_ALTSEL_FUNC(8, 30, 0)
795#define FUNC_S3DA1 RCAR_ALTSEL_FUNC(8, 29, 0)
796#define FUNC_S3CL1 RCAR_ALTSEL_FUNC(8, 28, 0)
797#define FUNC_S3DA0 RCAR_ALTSEL_FUNC(8, 27, 0)
798#define FUNC_S3CL0 RCAR_ALTSEL_FUNC(8, 26, 0)
799#define FUNC_SDA8 RCAR_ALTSEL_FUNC(8, 15, 0)
800#define FUNC_SCL8 RCAR_ALTSEL_FUNC(8, 14, 0)
801#define FUNC_SDA7 RCAR_ALTSEL_FUNC(8, 13, 0)
802#define FUNC_SCL7 RCAR_ALTSEL_FUNC(8, 12, 0)
803#define FUNC_SDA6 RCAR_ALTSEL_FUNC(8, 11, 0)
804#define FUNC_SCL6 RCAR_ALTSEL_FUNC(8, 10, 0)
805#define FUNC_SDA5 RCAR_ALTSEL_FUNC(8, 9, 0)
806#define FUNC_SCL5 RCAR_ALTSEL_FUNC(8, 8, 0)
807#define FUNC_SDA4 RCAR_ALTSEL_FUNC(8, 7, 0)
808#define FUNC_SCL4 RCAR_ALTSEL_FUNC(8, 6, 0)
809#define FUNC_SDA3 RCAR_ALTSEL_FUNC(8, 5, 0)
810#define FUNC_SCL3 RCAR_ALTSEL_FUNC(8, 4, 0)
811#define FUNC_SDA2 RCAR_ALTSEL_FUNC(8, 3, 0)
812#define FUNC_SCL2 RCAR_ALTSEL_FUNC(8, 2, 0)
813#define FUNC_SDA1 RCAR_ALTSEL_FUNC(8, 1, 0)
814#define FUNC_SCL1 RCAR_ALTSEL_FUNC(8, 0, 0)
815
816/* GP8 ALTSEL function 1 */
817#define FUNC_HCTS2_N_A RCAR_ALTSEL_FUNC(8, 7, 1)
818#define FUNC_HRTS2_N_A RCAR_ALTSEL_FUNC(8, 6, 1)
819#define FUNC_HRX2_A RCAR_ALTSEL_FUNC(8, 5, 1)
820#define FUNC_HTX2_A RCAR_ALTSEL_FUNC(8, 4, 1)
821#define FUNC_HSCK2_A RCAR_ALTSEL_FUNC(8, 3, 1)
822#define FUNC_PWM0_B RCAR_ALTSEL_FUNC(8, 2, 1)
823
824/* GP8 ALTSEL function 2 */
825#define FUNC_CTS4_N_A RCAR_ALTSEL_FUNC(8, 7, 2)
826#define FUNC_RTS4_N_A RCAR_ALTSEL_FUNC(8, 6, 2)
827#define FUNC_RX4_A RCAR_ALTSEL_FUNC(8, 5, 2)
828#define FUNC_TX4_A RCAR_ALTSEL_FUNC(8, 4, 2)
829#define FUNC_SCK4_A RCAR_ALTSEL_FUNC(8, 3, 2)
830
831/* GP8 ALTSEL function 3 */
832#define FUNC_PWM7_B RCAR_ALTSEL_FUNC(8, 7, 3)
833#define FUNC_PWM9_B RCAR_ALTSEL_FUNC(8, 6, 3)
834#define FUNC_PWM8_B RCAR_ALTSEL_FUNC(8, 5, 3)
835#define FUNC_PWM6_B RCAR_ALTSEL_FUNC(8, 4, 3)
836
837/* GP9 ALTSEL function 0 */
838#define FUNC_RSW3_MATCH RCAR_ALTSEL_FUNC(9, 16, 0)
839#define FUNC_RSW3_CAPTURE RCAR_ALTSEL_FUNC(9, 15, 0)
840#define FUNC_RSW3_PPS RCAR_ALTSEL_FUNC(9, 14, 0)
841#define FUNC_ETH10G0_PHYINT RCAR_ALTSEL_FUNC(9, 13, 0)
842#define FUNC_ETH10G0_LINK RCAR_ALTSEL_FUNC(9, 12, 0)
843#define FUNC_ETH10G0_MDC RCAR_ALTSEL_FUNC(9, 11, 0)
844#define FUNC_ETH10G0_MDIO RCAR_ALTSEL_FUNC(9, 10, 0)
845#define FUNC_ETH25G0_PHYINT RCAR_ALTSEL_FUNC(9, 9, 0)
846#define FUNC_ETH25G0_LINK RCAR_ALTSEL_FUNC(9, 8, 0)
847#define FUNC_ETH25G0_MDC RCAR_ALTSEL_FUNC(9, 7, 0)
848#define FUNC_ETH25G0_MDIO RCAR_ALTSEL_FUNC(9, 6, 0)
849#define FUNC_ETHES4_MATCH RCAR_ALTSEL_FUNC(9, 5, 0)
850#define FUNC_ETHES4_CAPTURE RCAR_ALTSEL_FUNC(9, 4, 0)
851#define FUNC_ETHES4_PPS RCAR_ALTSEL_FUNC(9, 3, 0)
852#define FUNC_ETHES0_MATCH RCAR_ALTSEL_FUNC(9, 2, 0)
853#define FUNC_ETHES0_CAPTURE RCAR_ALTSEL_FUNC(9, 1, 0)
854#define FUNC_ETHES0_PPS RCAR_ALTSEL_FUNC(9, 0, 0)
855
856/* GP9 ALTSEL function 1 */
857#define FUNC_ETH10G1_PHYINT RCAR_ALTSEL_FUNC(9, 13, 1)
858#define FUNC_ETH10G1_LINK RCAR_ALTSEL_FUNC(9, 12, 1)
859#define FUNC_ETH10G1_MDC RCAR_ALTSEL_FUNC(9, 11, 1)
860#define FUNC_ETH10G1_MDIO RCAR_ALTSEL_FUNC(9, 10, 1)
861#define FUNC_ETH25G1_PHYINT RCAR_ALTSEL_FUNC(9, 9, 1)
862#define FUNC_ETH25G1_LINK RCAR_ALTSEL_FUNC(9, 8, 1)
863#define FUNC_ETH25G1_MDC RCAR_ALTSEL_FUNC(9, 7, 1)
864#define FUNC_ETH25G1_MDIO RCAR_ALTSEL_FUNC(9, 6, 1)
865#define FUNC_ETHES5_MATCH RCAR_ALTSEL_FUNC(9, 5, 1)
866#define FUNC_ETHES5_CAPTURE RCAR_ALTSEL_FUNC(9, 4, 1)
867#define FUNC_ETHES5_PPS RCAR_ALTSEL_FUNC(9, 3, 1)
868#define FUNC_ETHES1_MATCH RCAR_ALTSEL_FUNC(9, 2, 1)
869#define FUNC_ETHES1_CAPTURE RCAR_ALTSEL_FUNC(9, 1, 1)
870#define FUNC_ETHES1_PPS RCAR_ALTSEL_FUNC(9, 0, 1)
871
872/* GP9 ALTSEL function 2 */
873#define FUNC_ETH25G2_PHYINT RCAR_ALTSEL_FUNC(9, 9, 2)
874#define FUNC_ETH25G2_LINK RCAR_ALTSEL_FUNC(9, 8, 2)
875#define FUNC_ETH25G2_MDC RCAR_ALTSEL_FUNC(9, 7, 2)
876#define FUNC_ETH25G2_MDIO RCAR_ALTSEL_FUNC(9, 6, 2)
877#define FUNC_ETHES6_MATCH RCAR_ALTSEL_FUNC(9, 5, 2)
878#define FUNC_ETHES6_CAPTURE RCAR_ALTSEL_FUNC(9, 4, 2)
879#define FUNC_ETHES6_PPS RCAR_ALTSEL_FUNC(9, 3, 2)
880#define FUNC_ETHES2_MATCH RCAR_ALTSEL_FUNC(9, 2, 2)
881#define FUNC_ETHES2_CAPTURE RCAR_ALTSEL_FUNC(9, 1, 2)
882#define FUNC_ETHES2_PPS RCAR_ALTSEL_FUNC(9, 0, 2)
883
884/* GP9 ALTSEL function 3 */
885#define FUNC_PWM9_A RCAR_ALTSEL_FUNC(9, 16, 3)
886#define FUNC_PWM8_A RCAR_ALTSEL_FUNC(9, 15, 3)
887#define FUNC_PWM7_A RCAR_ALTSEL_FUNC(9, 12, 3)
888#define FUNC_IRQ3_B RCAR_ALTSEL_FUNC(9, 11, 3)
889#define FUNC_IRQ2_B RCAR_ALTSEL_FUNC(9, 10, 3)
890#define FUNC_PWM6_A RCAR_ALTSEL_FUNC(9, 8, 3)
891#define FUNC_ETHES7_MATCH RCAR_ALTSEL_FUNC(9, 5, 3)
892#define FUNC_ETHES7_CAPTURE RCAR_ALTSEL_FUNC(9, 4, 3)
893#define FUNC_ETHES7_PPS RCAR_ALTSEL_FUNC(9, 3, 3)
894#define FUNC_ETHES3_MATCH RCAR_ALTSEL_FUNC(9, 2, 3)
895#define FUNC_ETHES3_CAPTURE RCAR_ALTSEL_FUNC(9, 1, 3)
896#define FUNC_ETHES3_PPS RCAR_ALTSEL_FUNC(9, 0, 3)
897
898/* GP10 ALTSEL function 0 */
899#define FUNC_PCIE41_CLKREQ_N RCAR_ALTSEL_FUNC(10, 13, 0)
900#define FUNC_PCIE40_CLKREQ_N RCAR_ALTSEL_FUNC(10, 12, 0)
901#define FUNC_USB3_VBUS_VALID RCAR_ALTSEL_FUNC(10, 11, 0)
902#define FUNC_USB3_OVC RCAR_ALTSEL_FUNC(10, 10, 0)
903#define FUNC_USB3_PWEN RCAR_ALTSEL_FUNC(10, 9, 0)
904#define FUNC_USB2_VBUS_VALID RCAR_ALTSEL_FUNC(10, 8, 0)
905#define FUNC_USB2_OVC RCAR_ALTSEL_FUNC(10, 7, 0)
906#define FUNC_USB2_PWEN RCAR_ALTSEL_FUNC(10, 6, 0)
907#define FUNC_USB1_VBUS_VALID RCAR_ALTSEL_FUNC(10, 5, 0)
908#define FUNC_USB1_OVC RCAR_ALTSEL_FUNC(10, 4, 0)
909#define FUNC_USB1_PWEN RCAR_ALTSEL_FUNC(10, 3, 0)
910#define FUNC_USB0_VBUS_VALID RCAR_ALTSEL_FUNC(10, 2, 0)
911#define FUNC_USB0_OVC RCAR_ALTSEL_FUNC(10, 1, 0)
912#define FUNC_USB0_PWEN RCAR_ALTSEL_FUNC(10, 0, 0)
913
915
916#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_R8A78000_H_ */
Utility macro definitions to encode GPIO pin function for Renesas R-Car Gen4 SoC.