blob: 544d7964442fc4e414b7daf6d58c8fad83b52832 [file] [log] [blame]
Marek Vasut4dbc6532021-04-27 01:55:54 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * R8A779A0 processor support - PFC hardware block.
4 *
5 * Copyright (C) 2020 Renesas Electronics Corp.
6 *
7 * This file is based on the drivers/pinctrl/renesas/pfc-r8a7795.c
8 */
9
10#include <common.h>
11#include <dm.h>
12#include <errno.h>
13#include <dm/pinctrl.h>
14#include <linux/bitops.h>
15#include <linux/kernel.h>
16
17#include "sh_pfc.h"
18
19#define CFG_FLAGS (SH_PFC_PIN_CFG_DRIVE_STRENGTH | SH_PFC_PIN_CFG_PULL_UP_DOWN)
20
21#define CPU_ALL_GP(fn, sfx) \
22 PORT_GP_CFG_15(0, fn, sfx, CFG_FLAGS), \
23 PORT_GP_CFG_1(0, 15, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
24 PORT_GP_CFG_1(0, 16, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
25 PORT_GP_CFG_1(0, 17, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
26 PORT_GP_CFG_1(0, 18, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
27 PORT_GP_CFG_1(0, 19, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
28 PORT_GP_CFG_1(0, 20, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
29 PORT_GP_CFG_1(0, 21, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
30 PORT_GP_CFG_1(0, 22, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
31 PORT_GP_CFG_1(0, 23, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
32 PORT_GP_CFG_1(0, 24, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
33 PORT_GP_CFG_1(0, 25, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
34 PORT_GP_CFG_1(0, 26, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
35 PORT_GP_CFG_1(0, 27, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
36 PORT_GP_CFG_31(1, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
37 PORT_GP_CFG_2(2, fn, sfx, CFG_FLAGS), \
38 PORT_GP_CFG_1(2, 2, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
39 PORT_GP_CFG_1(2, 3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
40 PORT_GP_CFG_1(2, 4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
41 PORT_GP_CFG_1(2, 5, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
42 PORT_GP_CFG_1(2, 6, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
43 PORT_GP_CFG_1(2, 7, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
44 PORT_GP_CFG_1(2, 8, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
45 PORT_GP_CFG_1(2, 9, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
46 PORT_GP_CFG_1(2, 10, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
47 PORT_GP_CFG_1(2, 11, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
48 PORT_GP_CFG_1(2, 12, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
49 PORT_GP_CFG_1(2, 13, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
50 PORT_GP_CFG_1(2, 14, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
51 PORT_GP_CFG_1(2, 15, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
52 PORT_GP_CFG_1(2, 16, fn, sfx, CFG_FLAGS), \
53 PORT_GP_CFG_1(2, 17, fn, sfx, CFG_FLAGS), \
54 PORT_GP_CFG_1(2, 18, fn, sfx, CFG_FLAGS), \
55 PORT_GP_CFG_1(2, 19, fn, sfx, CFG_FLAGS), \
56 PORT_GP_CFG_1(2, 20, fn, sfx, CFG_FLAGS), \
57 PORT_GP_CFG_1(2, 21, fn, sfx, CFG_FLAGS), \
58 PORT_GP_CFG_1(2, 22, fn, sfx, CFG_FLAGS), \
59 PORT_GP_CFG_1(2, 23, fn, sfx, CFG_FLAGS), \
60 PORT_GP_CFG_1(2, 24, fn, sfx, CFG_FLAGS), \
61 PORT_GP_CFG_17(3, fn, sfx, CFG_FLAGS), \
62 PORT_GP_CFG_18(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\
63 PORT_GP_CFG_1(4, 18, fn, sfx, CFG_FLAGS), \
64 PORT_GP_CFG_1(4, 19, fn, sfx, CFG_FLAGS), \
65 PORT_GP_CFG_1(4, 20, fn, sfx, CFG_FLAGS), \
66 PORT_GP_CFG_1(4, 21, fn, sfx, CFG_FLAGS), \
67 PORT_GP_CFG_1(4, 22, fn, sfx, CFG_FLAGS), \
68 PORT_GP_CFG_1(4, 23, fn, sfx, CFG_FLAGS), \
69 PORT_GP_CFG_1(4, 24, fn, sfx, CFG_FLAGS), \
70 PORT_GP_CFG_1(4, 25, fn, sfx, CFG_FLAGS), \
71 PORT_GP_CFG_1(4, 26, fn, sfx, CFG_FLAGS), \
72 PORT_GP_CFG_18(5, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\
73 PORT_GP_CFG_1(5, 18, fn, sfx, CFG_FLAGS), \
74 PORT_GP_CFG_1(5, 19, fn, sfx, CFG_FLAGS), \
75 PORT_GP_CFG_1(5, 20, fn, sfx, CFG_FLAGS), \
76 PORT_GP_CFG_18(6, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\
77 PORT_GP_CFG_1(6, 18, fn, sfx, CFG_FLAGS), \
78 PORT_GP_CFG_1(6, 19, fn, sfx, CFG_FLAGS), \
79 PORT_GP_CFG_1(6, 20, fn, sfx, CFG_FLAGS), \
80 PORT_GP_CFG_18(7, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\
81 PORT_GP_CFG_1(7, 18, fn, sfx, CFG_FLAGS), \
82 PORT_GP_CFG_1(7, 19, fn, sfx, CFG_FLAGS), \
83 PORT_GP_CFG_1(7, 20, fn, sfx, CFG_FLAGS), \
84 PORT_GP_CFG_18(8, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\
85 PORT_GP_CFG_1(8, 18, fn, sfx, CFG_FLAGS), \
86 PORT_GP_CFG_1(8, 19, fn, sfx, CFG_FLAGS), \
87 PORT_GP_CFG_1(8, 20, fn, sfx, CFG_FLAGS), \
88 PORT_GP_CFG_18(9, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_25_33),\
89 PORT_GP_CFG_1(9, 18, fn, sfx, CFG_FLAGS), \
90 PORT_GP_CFG_1(9, 19, fn, sfx, CFG_FLAGS), \
91 PORT_GP_CFG_1(9, 20, fn, sfx, CFG_FLAGS)
92
93#define CPU_ALL_NOGP(fn) \
94 PIN_NOGP_CFG(PRESETOUT_N, "PRESETOUT#", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \
95 PIN_NOGP_CFG(EXTALR, "EXTALR", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \
96 PIN_NOGP_CFG(DCUTRST_N_LPDRST_N, "DCUTRST#_LPDRST#", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \
97 PIN_NOGP_CFG(DCUTCK_LPDCLK, "DCUTCK_LPDCLK", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \
98 PIN_NOGP_CFG(DCUTMS, "DCUTMS", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN), \
99 PIN_NOGP_CFG(DCUTDI_LPDI, "DCUTDI_LPDI", fn, SH_PFC_PIN_CFG_PULL_UP_DOWN)
100
101/*
102 * F_() : just information
103 * FM() : macro for FN_xxx / xxx_MARK
104 */
105
106/* GPSR0 */
107#define GPSR0_27 FM(MMC_D7)
108#define GPSR0_26 FM(MMC_D6)
109#define GPSR0_25 FM(MMC_D5)
110#define GPSR0_24 FM(MMC_D4)
111#define GPSR0_23 FM(MMC_SD_CLK)
112#define GPSR0_22 FM(MMC_SD_D3)
113#define GPSR0_21 FM(MMC_SD_D2)
114#define GPSR0_20 FM(MMC_SD_D1)
115#define GPSR0_19 FM(MMC_SD_D0)
116#define GPSR0_18 FM(MMC_SD_CMD)
117#define GPSR0_17 FM(MMC_DS)
118#define GPSR0_16 FM(SD_CD)
119#define GPSR0_15 FM(SD_WP)
120#define GPSR0_14 FM(RPC_INT_N)
121#define GPSR0_13 FM(RPC_WP_N)
122#define GPSR0_12 FM(RPC_RESET_N)
123#define GPSR0_11 FM(QSPI1_SSL)
124#define GPSR0_10 FM(QSPI1_IO3)
125#define GPSR0_9 FM(QSPI1_IO2)
126#define GPSR0_8 FM(QSPI1_MISO_IO1)
127#define GPSR0_7 FM(QSPI1_MOSI_IO0)
128#define GPSR0_6 FM(QSPI1_SPCLK)
129#define GPSR0_5 FM(QSPI0_SSL)
130#define GPSR0_4 FM(QSPI0_IO3)
131#define GPSR0_3 FM(QSPI0_IO2)
132#define GPSR0_2 FM(QSPI0_MISO_IO1)
133#define GPSR0_1 FM(QSPI0_MOSI_IO0)
134#define GPSR0_0 FM(QSPI0_SPCLK)
135
136/* GPSR1 */
137#define GPSR1_30 F_(GP1_30, IP3SR1_27_24)
138#define GPSR1_29 F_(GP1_29, IP3SR1_23_20)
139#define GPSR1_28 F_(GP1_28, IP3SR1_19_16)
140#define GPSR1_27 F_(IRQ3, IP3SR1_15_12)
141#define GPSR1_26 F_(IRQ2, IP3SR1_11_8)
142#define GPSR1_25 F_(IRQ1, IP3SR1_7_4)
143#define GPSR1_24 F_(IRQ0, IP3SR1_3_0)
144#define GPSR1_23 F_(MSIOF2_SS2, IP2SR1_31_28)
145#define GPSR1_22 F_(MSIOF2_SS1, IP2SR1_27_24)
146#define GPSR1_21 F_(MSIOF2_SYNC, IP2SR1_23_20)
147#define GPSR1_20 F_(MSIOF2_SCK, IP2SR1_19_16)
148#define GPSR1_19 F_(MSIOF2_TXD, IP2SR1_15_12)
149#define GPSR1_18 F_(MSIOF2_RXD, IP2SR1_11_8)
150#define GPSR1_17 F_(MSIOF1_SS2, IP2SR1_7_4)
151#define GPSR1_16 F_(MSIOF1_SS1, IP2SR1_3_0)
152#define GPSR1_15 F_(MSIOF1_SYNC, IP1SR1_31_28)
153#define GPSR1_14 F_(MSIOF1_SCK, IP1SR1_27_24)
154#define GPSR1_13 F_(MSIOF1_TXD, IP1SR1_23_20)
155#define GPSR1_12 F_(MSIOF1_RXD, IP1SR1_19_16)
156#define GPSR1_11 F_(MSIOF0_SS2, IP1SR1_15_12)
157#define GPSR1_10 F_(MSIOF0_SS1, IP1SR1_11_8)
158#define GPSR1_9 F_(MSIOF0_SYNC, IP1SR1_7_4)
159#define GPSR1_8 F_(MSIOF0_SCK, IP1SR1_3_0)
160#define GPSR1_7 F_(MSIOF0_TXD, IP0SR1_31_28)
161#define GPSR1_6 F_(MSIOF0_RXD, IP0SR1_27_24)
162#define GPSR1_5 F_(HTX0, IP0SR1_23_20)
163#define GPSR1_4 F_(HCTS0_N, IP0SR1_19_16)
164#define GPSR1_3 F_(HRTS0_N, IP0SR1_15_12)
165#define GPSR1_2 F_(HSCK0, IP0SR1_11_8)
166#define GPSR1_1 F_(HRX0, IP0SR1_7_4)
167#define GPSR1_0 F_(SCIF_CLK, IP0SR1_3_0)
168
169/* GPSR2 */
170#define GPSR2_24 FM(TCLK2_A)
171#define GPSR2_23 F_(TCLK1_A, IP2SR2_31_28)
172#define GPSR2_22 F_(TPU0TO1, IP2SR2_27_24)
173#define GPSR2_21 F_(TPU0TO0, IP2SR2_23_20)
174#define GPSR2_20 F_(CLK_EXTFXR, IP2SR2_19_16)
175#define GPSR2_19 F_(RXDB_EXTFXR, IP2SR2_15_12)
176#define GPSR2_18 F_(FXR_TXDB, IP2SR2_11_8)
177#define GPSR2_17 F_(RXDA_EXTFXR_A, IP2SR2_7_4)
178#define GPSR2_16 F_(FXR_TXDA_A, IP2SR2_3_0)
179#define GPSR2_15 F_(GP2_15, IP1SR2_31_28)
180#define GPSR2_14 F_(GP2_14, IP1SR2_27_24)
181#define GPSR2_13 F_(GP2_13, IP1SR2_23_20)
182#define GPSR2_12 F_(GP2_12, IP1SR2_19_16)
183#define GPSR2_11 F_(GP2_11, IP1SR2_15_12)
184#define GPSR2_10 F_(GP2_10, IP1SR2_11_8)
185#define GPSR2_9 F_(GP2_09, IP1SR2_7_4)
186#define GPSR2_8 F_(GP2_08, IP1SR2_3_0)
187#define GPSR2_7 F_(GP2_07, IP0SR2_31_28)
188#define GPSR2_6 F_(GP2_06, IP0SR2_27_24)
189#define GPSR2_5 F_(GP2_05, IP0SR2_23_20)
190#define GPSR2_4 F_(GP2_04, IP0SR2_19_16)
191#define GPSR2_3 F_(GP2_03, IP0SR2_15_12)
192#define GPSR2_2 F_(GP2_02, IP0SR2_11_8)
193#define GPSR2_1 F_(IPC_CLKOUT, IP0SR2_7_4)
194#define GPSR2_0 F_(IPC_CLKIN, IP0SR2_3_0)
195
196/* GPSR3 */
197#define GPSR3_16 FM(CANFD7_RX)
198#define GPSR3_15 FM(CANFD7_TX)
199#define GPSR3_14 FM(CANFD6_RX)
200#define GPSR3_13 F_(CANFD6_TX, IP1SR3_23_20)
201#define GPSR3_12 F_(CANFD5_RX, IP1SR3_19_16)
202#define GPSR3_11 F_(CANFD5_TX, IP1SR3_15_12)
203#define GPSR3_10 F_(CANFD4_RX, IP1SR3_11_8)
204#define GPSR3_9 F_(CANFD4_TX, IP1SR3_7_4)
205#define GPSR3_8 F_(CANFD3_RX, IP1SR3_3_0)
206#define GPSR3_7 F_(CANFD3_TX, IP0SR3_31_28)
207#define GPSR3_6 F_(CANFD2_RX, IP0SR3_27_24)
208#define GPSR3_5 F_(CANFD2_TX, IP0SR3_23_20)
209#define GPSR3_4 FM(CANFD1_RX)
210#define GPSR3_3 FM(CANFD1_TX)
211#define GPSR3_2 F_(CANFD0_RX, IP0SR3_11_8)
212#define GPSR3_1 F_(CANFD0_TX, IP0SR3_7_4)
213#define GPSR3_0 FM(CAN_CLK)
214
215/* GPSR4 */
216#define GPSR4_26 FM(AVS1)
217#define GPSR4_25 FM(AVS0)
218#define GPSR4_24 FM(PCIE3_CLKREQ_N)
219#define GPSR4_23 FM(PCIE2_CLKREQ_N)
220#define GPSR4_22 FM(PCIE1_CLKREQ_N)
221#define GPSR4_21 FM(PCIE0_CLKREQ_N)
222#define GPSR4_20 F_(AVB0_AVTP_PPS, IP2SR4_19_16)
223#define GPSR4_19 F_(AVB0_AVTP_CAPTURE, IP2SR4_15_12)
224#define GPSR4_18 F_(AVB0_AVTP_MATCH, IP2SR4_11_8)
225#define GPSR4_17 F_(AVB0_LINK, IP2SR4_7_4)
226#define GPSR4_16 FM(AVB0_PHY_INT)
227#define GPSR4_15 F_(AVB0_MAGIC, IP1SR4_31_28)
228#define GPSR4_14 F_(AVB0_MDC, IP1SR4_27_24)
229#define GPSR4_13 F_(AVB0_MDIO, IP1SR4_23_20)
230#define GPSR4_12 F_(AVB0_TXCREFCLK, IP1SR4_19_16)
231#define GPSR4_11 F_(AVB0_TD3, IP1SR4_15_12)
232#define GPSR4_10 F_(AVB0_TD2, IP1SR4_11_8)
233#define GPSR4_9 F_(AVB0_TD1, IP1SR4_7_4)
234#define GPSR4_8 F_(AVB0_TD0, IP1SR4_3_0)
235#define GPSR4_7 F_(AVB0_TXC, IP0SR4_31_28)
236#define GPSR4_6 F_(AVB0_TX_CTL, IP0SR4_27_24)
237#define GPSR4_5 F_(AVB0_RD3, IP0SR4_23_20)
238#define GPSR4_4 F_(AVB0_RD2, IP0SR4_19_16)
239#define GPSR4_3 F_(AVB0_RD1, IP0SR4_15_12)
240#define GPSR4_2 F_(AVB0_RD0, IP0SR4_11_8)
241#define GPSR4_1 F_(AVB0_RXC, IP0SR4_7_4)
242#define GPSR4_0 F_(AVB0_RX_CTL, IP0SR4_3_0)
243
244/* GPSR5 */
245#define GPSR5_20 F_(AVB1_AVTP_PPS, IP2SR5_19_16)
246#define GPSR5_19 F_(AVB1_AVTP_CAPTURE, IP2SR5_15_12)
247#define GPSR5_18 F_(AVB1_AVTP_MATCH, IP2SR5_11_8)
248#define GPSR5_17 F_(AVB1_LINK, IP2SR5_7_4)
249#define GPSR5_16 FM(AVB1_PHY_INT)
250#define GPSR5_15 F_(AVB1_MAGIC, IP1SR5_31_28)
251#define GPSR5_14 F_(AVB1_MDC, IP1SR5_27_24)
252#define GPSR5_13 F_(AVB1_MDIO, IP1SR5_23_20)
253#define GPSR5_12 F_(AVB1_TXCREFCLK, IP1SR5_19_16)
254#define GPSR5_11 F_(AVB1_TD3, IP1SR5_15_12)
255#define GPSR5_10 F_(AVB1_TD2, IP1SR5_11_8)
256#define GPSR5_9 F_(AVB1_TD1, IP1SR5_7_4)
257#define GPSR5_8 F_(AVB1_TD0, IP1SR5_3_0)
258#define GPSR5_7 F_(AVB1_TXC, IP0SR5_31_28)
259#define GPSR5_6 F_(AVB1_TX_CTL, IP0SR5_27_24)
260#define GPSR5_5 F_(AVB1_RD3, IP0SR5_23_20)
261#define GPSR5_4 F_(AVB1_RD2, IP0SR5_19_16)
262#define GPSR5_3 F_(AVB1_RD1, IP0SR5_15_12)
263#define GPSR5_2 F_(AVB1_RD0, IP0SR5_11_8)
264#define GPSR5_1 F_(AVB1_RXC, IP0SR5_7_4)
265#define GPSR5_0 F_(AVB1_RX_CTL, IP0SR5_3_0)
266
267/* GPSR6 */
268#define GPSR6_20 FM(AVB2_AVTP_PPS)
269#define GPSR6_19 FM(AVB2_AVTP_CAPTURE)
270#define GPSR6_18 FM(AVB2_AVTP_MATCH)
271#define GPSR6_17 FM(AVB2_LINK)
272#define GPSR6_16 FM(AVB2_PHY_INT)
273#define GPSR6_15 FM(AVB2_MAGIC)
274#define GPSR6_14 FM(AVB2_MDC)
275#define GPSR6_13 FM(AVB2_MDIO)
276#define GPSR6_12 FM(AVB2_TXCREFCLK)
277#define GPSR6_11 FM(AVB2_TD3)
278#define GPSR6_10 FM(AVB2_TD2)
279#define GPSR6_9 FM(AVB2_TD1)
280#define GPSR6_8 FM(AVB2_TD0)
281#define GPSR6_7 FM(AVB2_TXC)
282#define GPSR6_6 FM(AVB2_TX_CTL)
283#define GPSR6_5 FM(AVB2_RD3)
284#define GPSR6_4 FM(AVB2_RD2)
285#define GPSR6_3 FM(AVB2_RD1)
286#define GPSR6_2 FM(AVB2_RD0)
287#define GPSR6_1 FM(AVB2_RXC)
288#define GPSR6_0 FM(AVB2_RX_CTL)
289
290/* GPSR7 */
291#define GPSR7_20 FM(AVB3_AVTP_PPS)
292#define GPSR7_19 FM(AVB3_AVTP_CAPTURE)
293#define GPSR7_18 FM(AVB3_AVTP_MATCH)
294#define GPSR7_17 FM(AVB3_LINK)
295#define GPSR7_16 FM(AVB3_PHY_INT)
296#define GPSR7_15 FM(AVB3_MAGIC)
297#define GPSR7_14 FM(AVB3_MDC)
298#define GPSR7_13 FM(AVB3_MDIO)
299#define GPSR7_12 FM(AVB3_TXCREFCLK)
300#define GPSR7_11 FM(AVB3_TD3)
301#define GPSR7_10 FM(AVB3_TD2)
302#define GPSR7_9 FM(AVB3_TD1)
303#define GPSR7_8 FM(AVB3_TD0)
304#define GPSR7_7 FM(AVB3_TXC)
305#define GPSR7_6 FM(AVB3_TX_CTL)
306#define GPSR7_5 FM(AVB3_RD3)
307#define GPSR7_4 FM(AVB3_RD2)
308#define GPSR7_3 FM(AVB3_RD1)
309#define GPSR7_2 FM(AVB3_RD0)
310#define GPSR7_1 FM(AVB3_RXC)
311#define GPSR7_0 FM(AVB3_RX_CTL)
312
313/* GPSR8 */
314#define GPSR8_20 FM(AVB4_AVTP_PPS)
315#define GPSR8_19 FM(AVB4_AVTP_CAPTURE)
316#define GPSR8_18 FM(AVB4_AVTP_MATCH)
317#define GPSR8_17 FM(AVB4_LINK)
318#define GPSR8_16 FM(AVB4_PHY_INT)
319#define GPSR8_15 FM(AVB4_MAGIC)
320#define GPSR8_14 FM(AVB4_MDC)
321#define GPSR8_13 FM(AVB4_MDIO)
322#define GPSR8_12 FM(AVB4_TXCREFCLK)
323#define GPSR8_11 FM(AVB4_TD3)
324#define GPSR8_10 FM(AVB4_TD2)
325#define GPSR8_9 FM(AVB4_TD1)
326#define GPSR8_8 FM(AVB4_TD0)
327#define GPSR8_7 FM(AVB4_TXC)
328#define GPSR8_6 FM(AVB4_TX_CTL)
329#define GPSR8_5 FM(AVB4_RD3)
330#define GPSR8_4 FM(AVB4_RD2)
331#define GPSR8_3 FM(AVB4_RD1)
332#define GPSR8_2 FM(AVB4_RD0)
333#define GPSR8_1 FM(AVB4_RXC)
334#define GPSR8_0 FM(AVB4_RX_CTL)
335
336/* GPSR9 */
337#define GPSR9_20 FM(AVB5_AVTP_PPS)
338#define GPSR9_19 FM(AVB5_AVTP_CAPTURE)
339#define GPSR9_18 FM(AVB5_AVTP_MATCH)
340#define GPSR9_17 FM(AVB5_LINK)
341#define GPSR9_16 FM(AVB5_PHY_INT)
342#define GPSR9_15 FM(AVB5_MAGIC)
343#define GPSR9_14 FM(AVB5_MDC)
344#define GPSR9_13 FM(AVB5_MDIO)
345#define GPSR9_12 FM(AVB5_TXCREFCLK)
346#define GPSR9_11 FM(AVB5_TD3)
347#define GPSR9_10 FM(AVB5_TD2)
348#define GPSR9_9 FM(AVB5_TD1)
349#define GPSR9_8 FM(AVB5_TD0)
350#define GPSR9_7 FM(AVB5_TXC)
351#define GPSR9_6 FM(AVB5_TX_CTL)
352#define GPSR9_5 FM(AVB5_RD3)
353#define GPSR9_4 FM(AVB5_RD2)
354#define GPSR9_3 FM(AVB5_RD1)
355#define GPSR9_2 FM(AVB5_RD0)
356#define GPSR9_1 FM(AVB5_RXC)
357#define GPSR9_0 FM(AVB5_RX_CTL)
358
359/* IP0SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
360#define IP0SR1_3_0 FM(SCIF_CLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
361#define IP0SR1_7_4 FM(HRX0) FM(RX0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
362#define IP0SR1_11_8 FM(HSCK0) FM(SCK0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
363#define IP0SR1_15_12 FM(HRTS0_N) FM(RTS0_N) F_(0, 0) F_(0, 0) F_(0, 0) FM(A3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
364#define IP0SR1_19_16 FM(HCTS0_N) FM(CTS0_N) F_(0, 0) F_(0, 0) F_(0, 0) FM(A4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
365#define IP0SR1_23_20 FM(HTX0) FM(TX0) F_(0, 0) F_(0, 0) F_(0, 0) FM(A5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
366#define IP0SR1_27_24 FM(MSIOF0_RXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR2) FM(A6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
367#define IP0SR1_31_28 FM(MSIOF0_TXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR3) FM(A7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
368/* IP1SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
369#define IP1SR1_3_0 FM(MSIOF0_SCK) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR4) FM(A8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
370#define IP1SR1_7_4 FM(MSIOF0_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR5) FM(A9) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
371#define IP1SR1_11_8 FM(MSIOF0_SS1) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR6) FM(A10) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
372#define IP1SR1_15_12 FM(MSIOF0_SS2) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DR7) FM(A11) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
373#define IP1SR1_19_16 FM(MSIOF1_RXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DG2) FM(A12) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
374#define IP1SR1_23_20 FM(MSIOF1_TXD) FM(HRX3) FM(SCK3) F_(0, 0) FM(DU_DG3) FM(A13) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
375#define IP1SR1_27_24 FM(MSIOF1_SCK) FM(HSCK3) FM(CTS3_N) F_(0, 0) FM(DU_DG4) FM(A14) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
376#define IP1SR1_31_28 FM(MSIOF1_SYNC) FM(HRTS3_N) FM(RTS3_N) F_(0, 0) FM(DU_DG5) FM(A15) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
377/* IP2SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
378#define IP2SR1_3_0 FM(MSIOF1_SS1) FM(HCTS3_N) FM(RX3) F_(0, 0) FM(DU_DG6) FM(A16) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
379#define IP2SR1_7_4 FM(MSIOF1_SS2) FM(HTX3) FM(TX3) F_(0, 0) FM(DU_DG7) FM(A17) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
380#define IP2SR1_11_8 FM(MSIOF2_RXD) FM(HSCK1) FM(SCK1) F_(0, 0) FM(DU_DB2) FM(A18) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
381#define IP2SR1_15_12 FM(MSIOF2_TXD) FM(HCTS1_N) FM(CTS1_N) F_(0, 0) FM(DU_DB3) FM(A19) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
382#define IP2SR1_19_16 FM(MSIOF2_SCK) FM(HRTS1_N) FM(RTS1_N) F_(0, 0) FM(DU_DB4) FM(A20) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
383#define IP2SR1_23_20 FM(MSIOF2_SYNC) FM(HRX1) FM(RX1_A) F_(0, 0) FM(DU_DB5) FM(A21) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
384#define IP2SR1_27_24 FM(MSIOF2_SS1) FM(HTX1) FM(TX1_A) F_(0, 0) FM(DU_DB6) FM(A22) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
385#define IP2SR1_31_28 FM(MSIOF2_SS2) FM(TCLK1_B) F_(0, 0) F_(0, 0) FM(DU_DB7) FM(A23) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
386
387/* IP3SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
388#define IP3SR1_3_0 FM(IRQ0) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_DOTCLKOUT) FM(A24) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
389#define IP3SR1_7_4 FM(IRQ1) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_HSYNC) FM(A25) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
390#define IP3SR1_11_8 FM(IRQ2) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_VSYNC) FM(CS1_N_A26) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
391#define IP3SR1_15_12 FM(IRQ3) F_(0, 0) F_(0, 0) F_(0, 0) FM(DU_ODDF_DISP_CDE) FM(CS0_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
392#define IP3SR1_19_16 FM(GP1_28) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(D0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
393#define IP3SR1_23_20 FM(GP1_29) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(D1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
394#define IP3SR1_27_24 FM(GP1_30) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(D2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Marek Vasut4dbc6532021-04-27 01:55:54 +0200395
396/* IP0SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
397#define IP0SR2_3_0 FM(IPC_CLKIN) FM(IPC_CLKEN_IN) F_(0, 0) F_(0, 0) FM(DU_DOTCLKIN) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
398#define IP0SR2_7_4 FM(IPC_CLKOUT) FM(IPC_CLKEN_OUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
399#define IP0SR2_11_8 FM(GP2_02) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(D3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
400#define IP0SR2_15_12 FM(GP2_03) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(D4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
401#define IP0SR2_19_16 FM(GP2_04) F_(0, 0) FM(MSIOF4_RXD) F_(0, 0) F_(0, 0) FM(D5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
402#define IP0SR2_23_20 FM(GP2_05) FM(HSCK2) FM(MSIOF4_TXD) FM(SCK4) F_(0, 0) FM(D6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
403#define IP0SR2_27_24 FM(GP2_06) FM(HCTS2_N) FM(MSIOF4_SCK) FM(CTS4_N) F_(0, 0) FM(D7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
404#define IP0SR2_31_28 FM(GP2_07) FM(HRTS2_N) FM(MSIOF4_SYNC) FM(RTS4_N) F_(0, 0) FM(D8) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
405/* IP1SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
406#define IP1SR2_3_0 FM(GP2_08) FM(HRX2) FM(MSIOF4_SS1) FM(RX4) F_(0, 0) FM(D9) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
407#define IP1SR2_7_4 FM(GP2_09) FM(HTX2) FM(MSIOF4_SS2) FM(TX4) F_(0, 0) FM(D10) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
408#define IP1SR2_11_8 FM(GP2_10) FM(TCLK2_B) FM(MSIOF5_RXD) F_(0, 0) F_(0, 0) FM(D11) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
409#define IP1SR2_15_12 FM(GP2_11) FM(TCLK3) FM(MSIOF5_TXD) F_(0, 0) F_(0, 0) FM(D12) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
410#define IP1SR2_19_16 FM(GP2_12) FM(TCLK4) FM(MSIOF5_SCK) F_(0, 0) F_(0, 0) FM(D13) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
411#define IP1SR2_23_20 FM(GP2_13) F_(0, 0) FM(MSIOF5_SYNC) F_(0, 0) F_(0, 0) FM(D14) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
412#define IP1SR2_27_24 FM(GP2_14) FM(IRQ4) FM(MSIOF5_SS1) F_(0, 0) F_(0, 0) FM(D15) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
413#define IP1SR2_31_28 FM(GP2_15) FM(IRQ5) FM(MSIOF5_SS2) FM(CPG_CPCKOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
414/* IP2SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
415#define IP2SR2_3_0 FM(FXR_TXDA_A) FM(MSIOF3_SS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
416#define IP2SR2_7_4 FM(RXDA_EXTFXR_A) FM(MSIOF3_SS2) F_(0, 0) F_(0, 0) F_(0, 0) FM(BS_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
417#define IP2SR2_11_8 FM(FXR_TXDB) FM(MSIOF3_RXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(RD_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
418#define IP2SR2_15_12 FM(RXDB_EXTFXR) FM(MSIOF3_TXD) F_(0, 0) F_(0, 0) F_(0, 0) FM(WE0_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
419#define IP2SR2_19_16 FM(CLK_EXTFXR) FM(MSIOF3_SCK) F_(0, 0) F_(0, 0) F_(0, 0) FM(WE1_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
420#define IP2SR2_23_20 FM(TPU0TO0) FM(MSIOF3_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) FM(RD_WR_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
421#define IP2SR2_27_24 FM(TPU0TO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(CLKOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
422#define IP2SR2_31_28 FM(TCLK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(EX_WAIT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
423
424/* IP0SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
Marek Vasut4dbc6532021-04-27 01:55:54 +0200425#define IP0SR3_7_4 FM(CANFD0_TX) FM(FXR_TXDA_B) FM(TX1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
426#define IP0SR3_11_8 FM(CANFD0_RX) FM(RXDA_EXTFXR_B) FM(RX1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Marek Vasut4dbc6532021-04-27 01:55:54 +0200427#define IP0SR3_23_20 FM(CANFD2_TX) FM(TPU0TO2) FM(PWM0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
428#define IP0SR3_27_24 FM(CANFD2_RX) FM(TPU0TO3) FM(PWM1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
429#define IP0SR3_31_28 FM(CANFD3_TX) F_(0, 0) FM(PWM2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
430/* IP1SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
431#define IP1SR3_3_0 FM(CANFD3_RX) F_(0, 0) FM(PWM3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
432#define IP1SR3_7_4 FM(CANFD4_TX) F_(0, 0) FM(PWM4) FM(FXR_CLKOUT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
433#define IP1SR3_11_8 FM(CANFD4_RX) F_(0, 0) F_(0, 0) FM(FXR_CLKOUT2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
434#define IP1SR3_15_12 FM(CANFD5_TX) F_(0, 0) F_(0, 0) FM(FXR_TXENA_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
435#define IP1SR3_19_16 FM(CANFD5_RX) F_(0, 0) F_(0, 0) FM(FXR_TXENB_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
436#define IP1SR3_23_20 FM(CANFD6_TX) F_(0, 0) F_(0, 0) FM(STPWT_EXTFXR) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Marek Vasut4dbc6532021-04-27 01:55:54 +0200437
438/* IP0SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
439#define IP0SR4_3_0 FM(AVB0_RX_CTL) FM(AVB0_MII_RX_DV) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
440#define IP0SR4_7_4 FM(AVB0_RXC) FM(AVB0_MII_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
441#define IP0SR4_11_8 FM(AVB0_RD0) FM(AVB0_MII_RD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
442#define IP0SR4_15_12 FM(AVB0_RD1) FM(AVB0_MII_RD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
443#define IP0SR4_19_16 FM(AVB0_RD2) FM(AVB0_MII_RD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
444#define IP0SR4_23_20 FM(AVB0_RD3) FM(AVB0_MII_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
445#define IP0SR4_27_24 FM(AVB0_TX_CTL) FM(AVB0_MII_TX_EN) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
446#define IP0SR4_31_28 FM(AVB0_TXC) FM(AVB0_MII_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
447/* IP1SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
448#define IP1SR4_3_0 FM(AVB0_TD0) FM(AVB0_MII_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
449#define IP1SR4_7_4 FM(AVB0_TD1) FM(AVB0_MII_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
450#define IP1SR4_11_8 FM(AVB0_TD2) FM(AVB0_MII_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
451#define IP1SR4_15_12 FM(AVB0_TD3) FM(AVB0_MII_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
452#define IP1SR4_19_16 FM(AVB0_TXCREFCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
453#define IP1SR4_23_20 FM(AVB0_MDIO) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
454#define IP1SR4_27_24 FM(AVB0_MDC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
455#define IP1SR4_31_28 FM(AVB0_MAGIC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
456/* IP2SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
Marek Vasut4dbc6532021-04-27 01:55:54 +0200457#define IP2SR4_7_4 FM(AVB0_LINK) FM(AVB0_MII_TX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
458#define IP2SR4_11_8 FM(AVB0_AVTP_MATCH) FM(AVB0_MII_RX_ER) FM(CC5_OSCOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
459#define IP2SR4_15_12 FM(AVB0_AVTP_CAPTURE) FM(AVB0_MII_CRS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
460#define IP2SR4_19_16 FM(AVB0_AVTP_PPS) FM(AVB0_MII_COL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Marek Vasut4dbc6532021-04-27 01:55:54 +0200461
462/* IP0SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
463#define IP0SR5_3_0 FM(AVB1_RX_CTL) FM(AVB1_MII_RX_DV) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
464#define IP0SR5_7_4 FM(AVB1_RXC) FM(AVB1_MII_RXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
465#define IP0SR5_11_8 FM(AVB1_RD0) FM(AVB1_MII_RD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
466#define IP0SR5_15_12 FM(AVB1_RD1) FM(AVB1_MII_RD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
467#define IP0SR5_19_16 FM(AVB1_RD2) FM(AVB1_MII_RD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
468#define IP0SR5_23_20 FM(AVB1_RD3) FM(AVB1_MII_RD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
469#define IP0SR5_27_24 FM(AVB1_TX_CTL) FM(AVB1_MII_TX_EN) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
470#define IP0SR5_31_28 FM(AVB1_TXC) FM(AVB1_MII_TXC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
471/* IP1SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
472#define IP1SR5_3_0 FM(AVB1_TD0) FM(AVB1_MII_TD0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
473#define IP1SR5_7_4 FM(AVB1_TD1) FM(AVB1_MII_TD1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
474#define IP1SR5_11_8 FM(AVB1_TD2) FM(AVB1_MII_TD2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
475#define IP1SR5_15_12 FM(AVB1_TD3) FM(AVB1_MII_TD3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
476#define IP1SR5_19_16 FM(AVB1_TXCREFCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
477#define IP1SR5_23_20 FM(AVB1_MDIO) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
478#define IP1SR5_27_24 FM(AVB1_MDC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
479#define IP1SR5_31_28 FM(AVB1_MAGIC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
480/* IP2SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 - F */
Marek Vasut4dbc6532021-04-27 01:55:54 +0200481#define IP2SR5_7_4 FM(AVB1_LINK) FM(AVB1_MII_TX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
482#define IP2SR5_11_8 FM(AVB1_AVTP_MATCH) FM(AVB1_MII_RX_ER) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
483#define IP2SR5_15_12 FM(AVB1_AVTP_CAPTURE) FM(AVB1_MII_CRS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
484#define IP2SR5_19_16 FM(AVB1_AVTP_PPS) FM(AVB1_MII_COL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Marek Vasut4dbc6532021-04-27 01:55:54 +0200485
486#define PINMUX_GPSR \
487 \
488 GPSR1_30 \
489 GPSR1_29 \
490 GPSR1_28 \
491GPSR0_27 GPSR1_27 \
492GPSR0_26 GPSR1_26 GPSR4_26 \
493GPSR0_25 GPSR1_25 GPSR4_25 \
494GPSR0_24 GPSR1_24 GPSR2_24 GPSR4_24 \
495GPSR0_23 GPSR1_23 GPSR2_23 GPSR4_23 \
496GPSR0_22 GPSR1_22 GPSR2_22 GPSR4_22 \
497GPSR0_21 GPSR1_21 GPSR2_21 GPSR4_21 \
498GPSR0_20 GPSR1_20 GPSR2_20 GPSR4_20 GPSR5_20 GPSR6_20 GPSR7_20 GPSR8_20 GPSR9_20 \
499GPSR0_19 GPSR1_19 GPSR2_19 GPSR4_19 GPSR5_19 GPSR6_19 GPSR7_19 GPSR8_19 GPSR9_19 \
500GPSR0_18 GPSR1_18 GPSR2_18 GPSR4_18 GPSR5_18 GPSR6_18 GPSR7_18 GPSR8_18 GPSR9_18 \
501GPSR0_17 GPSR1_17 GPSR2_17 GPSR4_17 GPSR5_17 GPSR6_17 GPSR7_17 GPSR8_17 GPSR9_17 \
502GPSR0_16 GPSR1_16 GPSR2_16 GPSR3_16 GPSR4_16 GPSR5_16 GPSR6_16 GPSR7_16 GPSR8_16 GPSR9_16 \
503GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 GPSR7_15 GPSR8_15 GPSR9_15 \
504GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 GPSR7_14 GPSR8_14 GPSR9_14 \
505GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 GPSR7_13 GPSR8_13 GPSR9_13 \
506GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 GPSR7_12 GPSR8_12 GPSR9_12 \
507GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 GPSR7_11 GPSR8_11 GPSR9_11 \
508GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 GPSR7_10 GPSR8_10 GPSR9_10 \
509GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 GPSR7_9 GPSR8_9 GPSR9_9 \
510GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 GPSR7_8 GPSR8_8 GPSR9_8 \
511GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 GPSR7_7 GPSR8_7 GPSR9_7 \
512GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 GPSR7_6 GPSR8_6 GPSR9_6 \
513GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 GPSR7_5 GPSR8_5 GPSR9_5 \
514GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 GPSR7_4 GPSR8_4 GPSR9_4 \
515GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 GPSR8_3 GPSR9_3 \
516GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 GPSR8_2 GPSR9_2 \
517GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 GPSR8_1 GPSR9_1 \
518GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0 GPSR8_0 GPSR9_0
519
520#define PINMUX_IPSR \
521\
522FM(IP0SR1_3_0) IP0SR1_3_0 FM(IP1SR1_3_0) IP1SR1_3_0 FM(IP2SR1_3_0) IP2SR1_3_0 FM(IP3SR1_3_0) IP3SR1_3_0 \
523FM(IP0SR1_7_4) IP0SR1_7_4 FM(IP1SR1_7_4) IP1SR1_7_4 FM(IP2SR1_7_4) IP2SR1_7_4 FM(IP3SR1_7_4) IP3SR1_7_4 \
524FM(IP0SR1_11_8) IP0SR1_11_8 FM(IP1SR1_11_8) IP1SR1_11_8 FM(IP2SR1_11_8) IP2SR1_11_8 FM(IP3SR1_11_8) IP3SR1_11_8 \
525FM(IP0SR1_15_12) IP0SR1_15_12 FM(IP1SR1_15_12) IP1SR1_15_12 FM(IP2SR1_15_12) IP2SR1_15_12 FM(IP3SR1_15_12) IP3SR1_15_12 \
526FM(IP0SR1_19_16) IP0SR1_19_16 FM(IP1SR1_19_16) IP1SR1_19_16 FM(IP2SR1_19_16) IP2SR1_19_16 FM(IP3SR1_19_16) IP3SR1_19_16 \
527FM(IP0SR1_23_20) IP0SR1_23_20 FM(IP1SR1_23_20) IP1SR1_23_20 FM(IP2SR1_23_20) IP2SR1_23_20 FM(IP3SR1_23_20) IP3SR1_23_20 \
528FM(IP0SR1_27_24) IP0SR1_27_24 FM(IP1SR1_27_24) IP1SR1_27_24 FM(IP2SR1_27_24) IP2SR1_27_24 FM(IP3SR1_27_24) IP3SR1_27_24 \
Marek Vasut4ecc1832023-01-26 21:01:47 +0100529FM(IP0SR1_31_28) IP0SR1_31_28 FM(IP1SR1_31_28) IP1SR1_31_28 FM(IP2SR1_31_28) IP2SR1_31_28 \
Marek Vasut4dbc6532021-04-27 01:55:54 +0200530\
531FM(IP0SR2_3_0) IP0SR2_3_0 FM(IP1SR2_3_0) IP1SR2_3_0 FM(IP2SR2_3_0) IP2SR2_3_0 \
532FM(IP0SR2_7_4) IP0SR2_7_4 FM(IP1SR2_7_4) IP1SR2_7_4 FM(IP2SR2_7_4) IP2SR2_7_4 \
533FM(IP0SR2_11_8) IP0SR2_11_8 FM(IP1SR2_11_8) IP1SR2_11_8 FM(IP2SR2_11_8) IP2SR2_11_8 \
534FM(IP0SR2_15_12) IP0SR2_15_12 FM(IP1SR2_15_12) IP1SR2_15_12 FM(IP2SR2_15_12) IP2SR2_15_12 \
535FM(IP0SR2_19_16) IP0SR2_19_16 FM(IP1SR2_19_16) IP1SR2_19_16 FM(IP2SR2_19_16) IP2SR2_19_16 \
536FM(IP0SR2_23_20) IP0SR2_23_20 FM(IP1SR2_23_20) IP1SR2_23_20 FM(IP2SR2_23_20) IP2SR2_23_20 \
537FM(IP0SR2_27_24) IP0SR2_27_24 FM(IP1SR2_27_24) IP1SR2_27_24 FM(IP2SR2_27_24) IP2SR2_27_24 \
538FM(IP0SR2_31_28) IP0SR2_31_28 FM(IP1SR2_31_28) IP1SR2_31_28 FM(IP2SR2_31_28) IP2SR2_31_28 \
539\
Marek Vasut4ecc1832023-01-26 21:01:47 +0100540 FM(IP1SR3_3_0) IP1SR3_3_0 \
Marek Vasut4dbc6532021-04-27 01:55:54 +0200541FM(IP0SR3_7_4) IP0SR3_7_4 FM(IP1SR3_7_4) IP1SR3_7_4 \
542FM(IP0SR3_11_8) IP0SR3_11_8 FM(IP1SR3_11_8) IP1SR3_11_8 \
Marek Vasut4ecc1832023-01-26 21:01:47 +0100543 FM(IP1SR3_15_12) IP1SR3_15_12 \
544 FM(IP1SR3_19_16) IP1SR3_19_16 \
Marek Vasut4dbc6532021-04-27 01:55:54 +0200545FM(IP0SR3_23_20) IP0SR3_23_20 FM(IP1SR3_23_20) IP1SR3_23_20 \
Marek Vasut4ecc1832023-01-26 21:01:47 +0100546FM(IP0SR3_27_24) IP0SR3_27_24 \
547FM(IP0SR3_31_28) IP0SR3_31_28 \
Marek Vasut4dbc6532021-04-27 01:55:54 +0200548\
Marek Vasut4ecc1832023-01-26 21:01:47 +0100549FM(IP0SR4_3_0) IP0SR4_3_0 FM(IP1SR4_3_0) IP1SR4_3_0 \
Marek Vasut4dbc6532021-04-27 01:55:54 +0200550FM(IP0SR4_7_4) IP0SR4_7_4 FM(IP1SR4_7_4) IP1SR4_7_4 FM(IP2SR4_7_4) IP2SR4_7_4 \
551FM(IP0SR4_11_8) IP0SR4_11_8 FM(IP1SR4_11_8) IP1SR4_11_8 FM(IP2SR4_11_8) IP2SR4_11_8 \
552FM(IP0SR4_15_12) IP0SR4_15_12 FM(IP1SR4_15_12) IP1SR4_15_12 FM(IP2SR4_15_12) IP2SR4_15_12 \
553FM(IP0SR4_19_16) IP0SR4_19_16 FM(IP1SR4_19_16) IP1SR4_19_16 FM(IP2SR4_19_16) IP2SR4_19_16 \
Marek Vasut4ecc1832023-01-26 21:01:47 +0100554FM(IP0SR4_23_20) IP0SR4_23_20 FM(IP1SR4_23_20) IP1SR4_23_20 \
555FM(IP0SR4_27_24) IP0SR4_27_24 FM(IP1SR4_27_24) IP1SR4_27_24 \
556FM(IP0SR4_31_28) IP0SR4_31_28 FM(IP1SR4_31_28) IP1SR4_31_28 \
Marek Vasut4dbc6532021-04-27 01:55:54 +0200557\
Marek Vasut4ecc1832023-01-26 21:01:47 +0100558FM(IP0SR5_3_0) IP0SR5_3_0 FM(IP1SR5_3_0) IP1SR5_3_0 \
Marek Vasut4dbc6532021-04-27 01:55:54 +0200559FM(IP0SR5_7_4) IP0SR5_7_4 FM(IP1SR5_7_4) IP1SR5_7_4 FM(IP2SR5_7_4) IP2SR5_7_4 \
560FM(IP0SR5_11_8) IP0SR5_11_8 FM(IP1SR5_11_8) IP1SR5_11_8 FM(IP2SR5_11_8) IP2SR5_11_8 \
561FM(IP0SR5_15_12) IP0SR5_15_12 FM(IP1SR5_15_12) IP1SR5_15_12 FM(IP2SR5_15_12) IP2SR5_15_12 \
562FM(IP0SR5_19_16) IP0SR5_19_16 FM(IP1SR5_19_16) IP1SR5_19_16 FM(IP2SR5_19_16) IP2SR5_19_16 \
Marek Vasut4ecc1832023-01-26 21:01:47 +0100563FM(IP0SR5_23_20) IP0SR5_23_20 FM(IP1SR5_23_20) IP1SR5_23_20 \
564FM(IP0SR5_27_24) IP0SR5_27_24 FM(IP1SR5_27_24) IP1SR5_27_24 \
565FM(IP0SR5_31_28) IP0SR5_31_28 FM(IP1SR5_31_28) IP1SR5_31_28
Marek Vasut4dbc6532021-04-27 01:55:54 +0200566
567/* MOD_SEL2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */
Marek Vasut4ecc1832023-01-26 21:01:47 +0100568#define MOD_SEL2_15_14 FM(SEL_I2C6_0) F_(0, 0) F_(0, 0) FM(SEL_I2C6_3)
569#define MOD_SEL2_13_12 FM(SEL_I2C5_0) F_(0, 0) F_(0, 0) FM(SEL_I2C5_3)
570#define MOD_SEL2_11_10 FM(SEL_I2C4_0) F_(0, 0) F_(0, 0) FM(SEL_I2C4_3)
571#define MOD_SEL2_9_8 FM(SEL_I2C3_0) F_(0, 0) F_(0, 0) FM(SEL_I2C3_3)
572#define MOD_SEL2_7_6 FM(SEL_I2C2_0) F_(0, 0) F_(0, 0) FM(SEL_I2C2_3)
573#define MOD_SEL2_5_4 FM(SEL_I2C1_0) F_(0, 0) F_(0, 0) FM(SEL_I2C1_3)
574#define MOD_SEL2_3_2 FM(SEL_I2C0_0) F_(0, 0) F_(0, 0) FM(SEL_I2C0_3)
Marek Vasut4dbc6532021-04-27 01:55:54 +0200575
576#define PINMUX_MOD_SELS \
577\
Marek Vasut4ecc1832023-01-26 21:01:47 +0100578MOD_SEL2_15_14 \
579MOD_SEL2_13_12 \
580MOD_SEL2_11_10 \
581MOD_SEL2_9_8 \
582MOD_SEL2_7_6 \
583MOD_SEL2_5_4 \
584MOD_SEL2_3_2
Marek Vasut4dbc6532021-04-27 01:55:54 +0200585
586#define PINMUX_PHYS \
587 FM(SCL0) FM(SDA0) FM(SCL1) FM(SDA1) FM(SCL2) FM(SDA2) FM(SCL3) FM(SDA3) \
588 FM(SCL4) FM(SDA4) FM(SCL5) FM(SDA5) FM(SCL6) FM(SDA6)
589
590enum {
591 PINMUX_RESERVED = 0,
592
593 PINMUX_DATA_BEGIN,
594 GP_ALL(DATA),
595 PINMUX_DATA_END,
596
597#define F_(x, y)
598#define FM(x) FN_##x,
599 PINMUX_FUNCTION_BEGIN,
600 GP_ALL(FN),
601 PINMUX_GPSR
602 PINMUX_IPSR
603 PINMUX_MOD_SELS
604 PINMUX_FUNCTION_END,
605#undef F_
606#undef FM
607
608#define F_(x, y)
609#define FM(x) x##_MARK,
610 PINMUX_MARK_BEGIN,
611 PINMUX_GPSR
612 PINMUX_IPSR
613 PINMUX_MOD_SELS
614 PINMUX_PHYS
615 PINMUX_MARK_END,
616#undef F_
617#undef FM
618};
619
620static const u16 pinmux_data[] = {
Marek Vasut4ecc1832023-01-26 21:01:47 +0100621/* Using GP_2_[2-15] requires disabling I2C in MOD_SEL2 */
622#define GP_2_2_FN GP_2_2_FN, FN_SEL_I2C0_0
623#define GP_2_3_FN GP_2_3_FN, FN_SEL_I2C0_0
624#define GP_2_4_FN GP_2_4_FN, FN_SEL_I2C1_0
625#define GP_2_5_FN GP_2_5_FN, FN_SEL_I2C1_0
626#define GP_2_6_FN GP_2_6_FN, FN_SEL_I2C2_0
627#define GP_2_7_FN GP_2_7_FN, FN_SEL_I2C2_0
628#define GP_2_8_FN GP_2_8_FN, FN_SEL_I2C3_0
629#define GP_2_9_FN GP_2_9_FN, FN_SEL_I2C3_0
630#define GP_2_10_FN GP_2_10_FN, FN_SEL_I2C4_0
631#define GP_2_11_FN GP_2_11_FN, FN_SEL_I2C4_0
632#define GP_2_12_FN GP_2_12_FN, FN_SEL_I2C5_0
633#define GP_2_13_FN GP_2_13_FN, FN_SEL_I2C5_0
634#define GP_2_14_FN GP_2_14_FN, FN_SEL_I2C6_0
635#define GP_2_15_FN GP_2_15_FN, FN_SEL_I2C6_0
Marek Vasut4dbc6532021-04-27 01:55:54 +0200636 PINMUX_DATA_GP_ALL(),
Marek Vasut4ecc1832023-01-26 21:01:47 +0100637#undef GP_2_2_FN
638#undef GP_2_3_FN
639#undef GP_2_4_FN
640#undef GP_2_5_FN
641#undef GP_2_6_FN
642#undef GP_2_7_FN
643#undef GP_2_8_FN
644#undef GP_2_9_FN
645#undef GP_2_10_FN
646#undef GP_2_11_FN
647#undef GP_2_12_FN
648#undef GP_2_13_FN
649#undef GP_2_14_FN
650#undef GP_2_15_FN
Marek Vasut4dbc6532021-04-27 01:55:54 +0200651
652 PINMUX_SINGLE(MMC_D7),
653 PINMUX_SINGLE(MMC_D6),
654 PINMUX_SINGLE(MMC_D5),
655 PINMUX_SINGLE(MMC_D4),
656 PINMUX_SINGLE(MMC_SD_CLK),
657 PINMUX_SINGLE(MMC_SD_D3),
658 PINMUX_SINGLE(MMC_SD_D2),
659 PINMUX_SINGLE(MMC_SD_D1),
660 PINMUX_SINGLE(MMC_SD_D0),
661 PINMUX_SINGLE(MMC_SD_CMD),
662 PINMUX_SINGLE(MMC_DS),
663
664 PINMUX_SINGLE(SD_CD),
665 PINMUX_SINGLE(SD_WP),
666
667 PINMUX_SINGLE(RPC_INT_N),
668 PINMUX_SINGLE(RPC_WP_N),
669 PINMUX_SINGLE(RPC_RESET_N),
670
671 PINMUX_SINGLE(QSPI1_SSL),
672 PINMUX_SINGLE(QSPI1_IO3),
673 PINMUX_SINGLE(QSPI1_IO2),
674 PINMUX_SINGLE(QSPI1_MISO_IO1),
675 PINMUX_SINGLE(QSPI1_MOSI_IO0),
676 PINMUX_SINGLE(QSPI1_SPCLK),
677 PINMUX_SINGLE(QSPI0_SSL),
678 PINMUX_SINGLE(QSPI0_IO3),
679 PINMUX_SINGLE(QSPI0_IO2),
680 PINMUX_SINGLE(QSPI0_MISO_IO1),
681 PINMUX_SINGLE(QSPI0_MOSI_IO0),
682 PINMUX_SINGLE(QSPI0_SPCLK),
683
684 PINMUX_SINGLE(TCLK2_A),
685
686 PINMUX_SINGLE(CANFD7_RX),
687 PINMUX_SINGLE(CANFD7_TX),
688 PINMUX_SINGLE(CANFD6_RX),
689 PINMUX_SINGLE(CANFD1_RX),
690 PINMUX_SINGLE(CANFD1_TX),
691 PINMUX_SINGLE(CAN_CLK),
692
693 PINMUX_SINGLE(AVS1),
694 PINMUX_SINGLE(AVS0),
695
696 PINMUX_SINGLE(PCIE3_CLKREQ_N),
697 PINMUX_SINGLE(PCIE2_CLKREQ_N),
698 PINMUX_SINGLE(PCIE1_CLKREQ_N),
699 PINMUX_SINGLE(PCIE0_CLKREQ_N),
700
701 PINMUX_SINGLE(AVB0_PHY_INT),
702 PINMUX_SINGLE(AVB0_MAGIC),
703 PINMUX_SINGLE(AVB0_MDC),
704 PINMUX_SINGLE(AVB0_MDIO),
705 PINMUX_SINGLE(AVB0_TXCREFCLK),
706
707 PINMUX_SINGLE(AVB1_PHY_INT),
708 PINMUX_SINGLE(AVB1_MAGIC),
709 PINMUX_SINGLE(AVB1_MDC),
710 PINMUX_SINGLE(AVB1_MDIO),
711 PINMUX_SINGLE(AVB1_TXCREFCLK),
712
713 PINMUX_SINGLE(AVB2_AVTP_PPS),
714 PINMUX_SINGLE(AVB2_AVTP_CAPTURE),
715 PINMUX_SINGLE(AVB2_AVTP_MATCH),
716 PINMUX_SINGLE(AVB2_LINK),
717 PINMUX_SINGLE(AVB2_PHY_INT),
718 PINMUX_SINGLE(AVB2_MAGIC),
719 PINMUX_SINGLE(AVB2_MDC),
720 PINMUX_SINGLE(AVB2_MDIO),
721 PINMUX_SINGLE(AVB2_TXCREFCLK),
722 PINMUX_SINGLE(AVB2_TD3),
723 PINMUX_SINGLE(AVB2_TD2),
724 PINMUX_SINGLE(AVB2_TD1),
725 PINMUX_SINGLE(AVB2_TD0),
726 PINMUX_SINGLE(AVB2_TXC),
727 PINMUX_SINGLE(AVB2_TX_CTL),
728 PINMUX_SINGLE(AVB2_RD3),
729 PINMUX_SINGLE(AVB2_RD2),
730 PINMUX_SINGLE(AVB2_RD1),
731 PINMUX_SINGLE(AVB2_RD0),
732 PINMUX_SINGLE(AVB2_RXC),
733 PINMUX_SINGLE(AVB2_RX_CTL),
734
735 PINMUX_SINGLE(AVB3_AVTP_PPS),
736 PINMUX_SINGLE(AVB3_AVTP_CAPTURE),
737 PINMUX_SINGLE(AVB3_AVTP_MATCH),
738 PINMUX_SINGLE(AVB3_LINK),
739 PINMUX_SINGLE(AVB3_PHY_INT),
740 PINMUX_SINGLE(AVB3_MAGIC),
741 PINMUX_SINGLE(AVB3_MDC),
742 PINMUX_SINGLE(AVB3_MDIO),
743 PINMUX_SINGLE(AVB3_TXCREFCLK),
744 PINMUX_SINGLE(AVB3_TD3),
745 PINMUX_SINGLE(AVB3_TD2),
746 PINMUX_SINGLE(AVB3_TD1),
747 PINMUX_SINGLE(AVB3_TD0),
748 PINMUX_SINGLE(AVB3_TXC),
749 PINMUX_SINGLE(AVB3_TX_CTL),
750 PINMUX_SINGLE(AVB3_RD3),
751 PINMUX_SINGLE(AVB3_RD2),
752 PINMUX_SINGLE(AVB3_RD1),
753 PINMUX_SINGLE(AVB3_RD0),
754 PINMUX_SINGLE(AVB3_RXC),
755 PINMUX_SINGLE(AVB3_RX_CTL),
756
757 PINMUX_SINGLE(AVB4_AVTP_PPS),
758 PINMUX_SINGLE(AVB4_AVTP_CAPTURE),
759 PINMUX_SINGLE(AVB4_AVTP_MATCH),
760 PINMUX_SINGLE(AVB4_LINK),
761 PINMUX_SINGLE(AVB4_PHY_INT),
762 PINMUX_SINGLE(AVB4_MAGIC),
763 PINMUX_SINGLE(AVB4_MDC),
764 PINMUX_SINGLE(AVB4_MDIO),
765 PINMUX_SINGLE(AVB4_TXCREFCLK),
766 PINMUX_SINGLE(AVB4_TD3),
767 PINMUX_SINGLE(AVB4_TD2),
768 PINMUX_SINGLE(AVB4_TD1),
769 PINMUX_SINGLE(AVB4_TD0),
770 PINMUX_SINGLE(AVB4_TXC),
771 PINMUX_SINGLE(AVB4_TX_CTL),
772 PINMUX_SINGLE(AVB4_RD3),
773 PINMUX_SINGLE(AVB4_RD2),
774 PINMUX_SINGLE(AVB4_RD1),
775 PINMUX_SINGLE(AVB4_RD0),
776 PINMUX_SINGLE(AVB4_RXC),
777 PINMUX_SINGLE(AVB4_RX_CTL),
778
779 PINMUX_SINGLE(AVB5_AVTP_PPS),
780 PINMUX_SINGLE(AVB5_AVTP_CAPTURE),
781 PINMUX_SINGLE(AVB5_AVTP_MATCH),
782 PINMUX_SINGLE(AVB5_LINK),
783 PINMUX_SINGLE(AVB5_PHY_INT),
784 PINMUX_SINGLE(AVB5_MAGIC),
785 PINMUX_SINGLE(AVB5_MDC),
786 PINMUX_SINGLE(AVB5_MDIO),
787 PINMUX_SINGLE(AVB5_TXCREFCLK),
788 PINMUX_SINGLE(AVB5_TD3),
789 PINMUX_SINGLE(AVB5_TD2),
790 PINMUX_SINGLE(AVB5_TD1),
791 PINMUX_SINGLE(AVB5_TD0),
792 PINMUX_SINGLE(AVB5_TXC),
793 PINMUX_SINGLE(AVB5_TX_CTL),
794 PINMUX_SINGLE(AVB5_RD3),
795 PINMUX_SINGLE(AVB5_RD2),
796 PINMUX_SINGLE(AVB5_RD1),
797 PINMUX_SINGLE(AVB5_RD0),
798 PINMUX_SINGLE(AVB5_RXC),
799 PINMUX_SINGLE(AVB5_RX_CTL),
800
801 /* IP0SR1 */
802 PINMUX_IPSR_GPSR(IP0SR1_3_0, SCIF_CLK),
803 PINMUX_IPSR_GPSR(IP0SR1_3_0, A0),
804
805 PINMUX_IPSR_GPSR(IP0SR1_7_4, HRX0),
806 PINMUX_IPSR_GPSR(IP0SR1_7_4, RX0),
807 PINMUX_IPSR_GPSR(IP0SR1_7_4, A1),
808
809 PINMUX_IPSR_GPSR(IP0SR1_11_8, HSCK0),
810 PINMUX_IPSR_GPSR(IP0SR1_11_8, SCK0),
811 PINMUX_IPSR_GPSR(IP0SR1_11_8, A2),
812
813 PINMUX_IPSR_GPSR(IP0SR1_15_12, HRTS0_N),
814 PINMUX_IPSR_GPSR(IP0SR1_15_12, RTS0_N),
815 PINMUX_IPSR_GPSR(IP0SR1_15_12, A3),
816
817 PINMUX_IPSR_GPSR(IP0SR1_19_16, HCTS0_N),
818 PINMUX_IPSR_GPSR(IP0SR1_19_16, CTS0_N),
819 PINMUX_IPSR_GPSR(IP0SR1_19_16, A4),
820
821 PINMUX_IPSR_GPSR(IP0SR1_23_20, HTX0),
822 PINMUX_IPSR_GPSR(IP0SR1_23_20, TX0),
823 PINMUX_IPSR_GPSR(IP0SR1_23_20, A5),
824
825 PINMUX_IPSR_GPSR(IP0SR1_27_24, MSIOF0_RXD),
826 PINMUX_IPSR_GPSR(IP0SR1_27_24, DU_DR2),
827 PINMUX_IPSR_GPSR(IP0SR1_27_24, A6),
828
829 PINMUX_IPSR_GPSR(IP0SR1_31_28, MSIOF0_TXD),
830 PINMUX_IPSR_GPSR(IP0SR1_31_28, DU_DR3),
831 PINMUX_IPSR_GPSR(IP0SR1_31_28, A7),
832
833 /* IP1SR1 */
834 PINMUX_IPSR_GPSR(IP1SR1_3_0, MSIOF0_SCK),
835 PINMUX_IPSR_GPSR(IP1SR1_3_0, DU_DR4),
836 PINMUX_IPSR_GPSR(IP1SR1_3_0, A8),
837
838 PINMUX_IPSR_GPSR(IP1SR1_7_4, MSIOF0_SYNC),
839 PINMUX_IPSR_GPSR(IP1SR1_7_4, DU_DR5),
840 PINMUX_IPSR_GPSR(IP1SR1_7_4, A9),
841
842 PINMUX_IPSR_GPSR(IP1SR1_11_8, MSIOF0_SS1),
843 PINMUX_IPSR_GPSR(IP1SR1_11_8, DU_DR6),
844 PINMUX_IPSR_GPSR(IP1SR1_11_8, A10),
845
846 PINMUX_IPSR_GPSR(IP1SR1_15_12, MSIOF0_SS2),
847 PINMUX_IPSR_GPSR(IP1SR1_15_12, DU_DR7),
848 PINMUX_IPSR_GPSR(IP1SR1_15_12, A11),
849
850 PINMUX_IPSR_GPSR(IP1SR1_19_16, MSIOF1_RXD),
851 PINMUX_IPSR_GPSR(IP1SR1_19_16, DU_DG2),
852 PINMUX_IPSR_GPSR(IP1SR1_19_16, A12),
853
854 PINMUX_IPSR_GPSR(IP1SR1_23_20, MSIOF1_TXD),
855 PINMUX_IPSR_GPSR(IP1SR1_23_20, HRX3),
856 PINMUX_IPSR_GPSR(IP1SR1_23_20, SCK3),
857 PINMUX_IPSR_GPSR(IP1SR1_23_20, DU_DG3),
858 PINMUX_IPSR_GPSR(IP1SR1_23_20, A13),
859
860 PINMUX_IPSR_GPSR(IP1SR1_27_24, MSIOF1_SCK),
861 PINMUX_IPSR_GPSR(IP1SR1_27_24, HSCK3),
862 PINMUX_IPSR_GPSR(IP1SR1_27_24, CTS3_N),
863 PINMUX_IPSR_GPSR(IP1SR1_27_24, DU_DG4),
864 PINMUX_IPSR_GPSR(IP1SR1_27_24, A14),
865
866 PINMUX_IPSR_GPSR(IP1SR1_31_28, MSIOF1_SYNC),
867 PINMUX_IPSR_GPSR(IP1SR1_31_28, HRTS3_N),
868 PINMUX_IPSR_GPSR(IP1SR1_31_28, RTS3_N),
869 PINMUX_IPSR_GPSR(IP1SR1_31_28, DU_DG5),
870 PINMUX_IPSR_GPSR(IP1SR1_31_28, A15),
871
872 /* IP2SR1 */
873 PINMUX_IPSR_GPSR(IP2SR1_3_0, MSIOF1_SS1),
874 PINMUX_IPSR_GPSR(IP2SR1_3_0, HCTS3_N),
875 PINMUX_IPSR_GPSR(IP2SR1_3_0, RX3),
876 PINMUX_IPSR_GPSR(IP2SR1_3_0, DU_DG6),
877 PINMUX_IPSR_GPSR(IP2SR1_3_0, A16),
878
879 PINMUX_IPSR_GPSR(IP2SR1_7_4, MSIOF1_SS2),
880 PINMUX_IPSR_GPSR(IP2SR1_7_4, HTX3),
881 PINMUX_IPSR_GPSR(IP2SR1_7_4, TX3),
882 PINMUX_IPSR_GPSR(IP2SR1_7_4, DU_DG7),
883 PINMUX_IPSR_GPSR(IP2SR1_7_4, A17),
884
885 PINMUX_IPSR_GPSR(IP2SR1_11_8, MSIOF2_RXD),
886 PINMUX_IPSR_GPSR(IP2SR1_11_8, HSCK1),
887 PINMUX_IPSR_GPSR(IP2SR1_11_8, SCK1),
888 PINMUX_IPSR_GPSR(IP2SR1_11_8, DU_DB2),
889 PINMUX_IPSR_GPSR(IP2SR1_11_8, A18),
890
891 PINMUX_IPSR_GPSR(IP2SR1_15_12, MSIOF2_TXD),
892 PINMUX_IPSR_GPSR(IP2SR1_15_12, HCTS1_N),
893 PINMUX_IPSR_GPSR(IP2SR1_15_12, CTS1_N),
894 PINMUX_IPSR_GPSR(IP2SR1_15_12, DU_DB3),
895 PINMUX_IPSR_GPSR(IP2SR1_15_12, A19),
896
897 PINMUX_IPSR_GPSR(IP2SR1_19_16, MSIOF2_SCK),
898 PINMUX_IPSR_GPSR(IP2SR1_19_16, HRTS1_N),
899 PINMUX_IPSR_GPSR(IP2SR1_19_16, RTS1_N),
900 PINMUX_IPSR_GPSR(IP2SR1_19_16, DU_DB4),
901 PINMUX_IPSR_GPSR(IP2SR1_19_16, A20),
902
903 PINMUX_IPSR_GPSR(IP2SR1_23_20, MSIOF2_SYNC),
904 PINMUX_IPSR_GPSR(IP2SR1_23_20, HRX1),
905 PINMUX_IPSR_GPSR(IP2SR1_23_20, RX1_A),
906 PINMUX_IPSR_GPSR(IP2SR1_23_20, DU_DB5),
907 PINMUX_IPSR_GPSR(IP2SR1_23_20, A21),
908
909 PINMUX_IPSR_GPSR(IP2SR1_27_24, MSIOF2_SS1),
910 PINMUX_IPSR_GPSR(IP2SR1_27_24, HTX1),
911 PINMUX_IPSR_GPSR(IP2SR1_27_24, TX1_A),
912 PINMUX_IPSR_GPSR(IP2SR1_27_24, DU_DB6),
913 PINMUX_IPSR_GPSR(IP2SR1_27_24, A22),
914
915 PINMUX_IPSR_GPSR(IP2SR1_31_28, MSIOF2_SS2),
916 PINMUX_IPSR_GPSR(IP2SR1_31_28, TCLK1_B),
917 PINMUX_IPSR_GPSR(IP2SR1_31_28, DU_DB7),
918 PINMUX_IPSR_GPSR(IP2SR1_31_28, A23),
919
920 /* IP3SR1 */
921 PINMUX_IPSR_GPSR(IP3SR1_3_0, IRQ0),
922 PINMUX_IPSR_GPSR(IP3SR1_3_0, DU_DOTCLKOUT),
923 PINMUX_IPSR_GPSR(IP3SR1_3_0, A24),
924
925 PINMUX_IPSR_GPSR(IP3SR1_7_4, IRQ1),
926 PINMUX_IPSR_GPSR(IP3SR1_7_4, DU_HSYNC),
927 PINMUX_IPSR_GPSR(IP3SR1_7_4, A25),
928
929 PINMUX_IPSR_GPSR(IP3SR1_11_8, IRQ2),
930 PINMUX_IPSR_GPSR(IP3SR1_11_8, DU_VSYNC),
931 PINMUX_IPSR_GPSR(IP3SR1_11_8, CS1_N_A26),
932
933 PINMUX_IPSR_GPSR(IP3SR1_15_12, IRQ3),
934 PINMUX_IPSR_GPSR(IP3SR1_15_12, DU_ODDF_DISP_CDE),
935 PINMUX_IPSR_GPSR(IP3SR1_15_12, CS0_N),
936
937 PINMUX_IPSR_GPSR(IP3SR1_19_16, GP1_28),
938 PINMUX_IPSR_GPSR(IP3SR1_19_16, D0),
939
940 PINMUX_IPSR_GPSR(IP3SR1_23_20, GP1_29),
941 PINMUX_IPSR_GPSR(IP3SR1_23_20, D1),
942
943 PINMUX_IPSR_GPSR(IP3SR1_27_24, GP1_30),
944 PINMUX_IPSR_GPSR(IP3SR1_27_24, D2),
945
946 /* IP0SR2 */
947 PINMUX_IPSR_GPSR(IP0SR2_3_0, IPC_CLKIN),
948 PINMUX_IPSR_GPSR(IP0SR2_3_0, IPC_CLKEN_IN),
949 PINMUX_IPSR_GPSR(IP0SR2_3_0, DU_DOTCLKIN),
950
951 PINMUX_IPSR_GPSR(IP0SR2_7_4, IPC_CLKOUT),
952 PINMUX_IPSR_GPSR(IP0SR2_7_4, IPC_CLKEN_OUT),
953
954 /* GP2_02 = SCL0 */
955 PINMUX_IPSR_MSEL(IP0SR2_11_8, GP2_02, SEL_I2C0_0),
956 PINMUX_IPSR_MSEL(IP0SR2_11_8, D3, SEL_I2C0_0),
957 PINMUX_IPSR_PHYS(IP0SR2_11_8, SCL0, SEL_I2C0_3),
958
959 /* GP2_03 = SDA0 */
960 PINMUX_IPSR_MSEL(IP0SR2_15_12, GP2_03, SEL_I2C0_0),
961 PINMUX_IPSR_MSEL(IP0SR2_15_12, D4, SEL_I2C0_0),
962 PINMUX_IPSR_PHYS(IP0SR2_15_12, SDA0, SEL_I2C0_3),
963
964 /* GP2_04 = SCL1 */
965 PINMUX_IPSR_MSEL(IP0SR2_19_16, GP2_04, SEL_I2C1_0),
966 PINMUX_IPSR_MSEL(IP0SR2_19_16, MSIOF4_RXD, SEL_I2C1_0),
967 PINMUX_IPSR_MSEL(IP0SR2_19_16, D5, SEL_I2C1_0),
968 PINMUX_IPSR_PHYS(IP0SR2_19_16, SCL1, SEL_I2C1_3),
969
970 /* GP2_05 = SDA1 */
971 PINMUX_IPSR_MSEL(IP0SR2_23_20, GP2_05, SEL_I2C1_0),
972 PINMUX_IPSR_MSEL(IP0SR2_23_20, HSCK2, SEL_I2C1_0),
973 PINMUX_IPSR_MSEL(IP0SR2_23_20, MSIOF4_TXD, SEL_I2C1_0),
974 PINMUX_IPSR_MSEL(IP0SR2_23_20, SCK4, SEL_I2C1_0),
975 PINMUX_IPSR_MSEL(IP0SR2_23_20, D6, SEL_I2C1_0),
976 PINMUX_IPSR_PHYS(IP0SR2_23_20, SDA1, SEL_I2C1_3),
977
978 /* GP2_06 = SCL2 */
979 PINMUX_IPSR_MSEL(IP0SR2_27_24, GP2_06, SEL_I2C2_0),
980 PINMUX_IPSR_MSEL(IP0SR2_27_24, HCTS2_N, SEL_I2C2_0),
981 PINMUX_IPSR_MSEL(IP0SR2_27_24, MSIOF4_SCK, SEL_I2C2_0),
982 PINMUX_IPSR_MSEL(IP0SR2_27_24, CTS4_N, SEL_I2C2_0),
983 PINMUX_IPSR_MSEL(IP0SR2_27_24, D7, SEL_I2C2_0),
984 PINMUX_IPSR_PHYS(IP0SR2_27_24, SCL2, SEL_I2C2_3),
985
986 /* GP2_07 = SDA2 */
987 PINMUX_IPSR_MSEL(IP0SR2_31_28, GP2_07, SEL_I2C2_0),
988 PINMUX_IPSR_MSEL(IP0SR2_31_28, HRTS2_N, SEL_I2C2_0),
989 PINMUX_IPSR_MSEL(IP0SR2_31_28, MSIOF4_SYNC, SEL_I2C2_0),
990 PINMUX_IPSR_MSEL(IP0SR2_31_28, RTS4_N, SEL_I2C2_0),
991 PINMUX_IPSR_MSEL(IP0SR2_31_28, D8, SEL_I2C2_0),
992 PINMUX_IPSR_PHYS(IP0SR2_31_28, SDA2, SEL_I2C2_3),
993
994 /* GP2_08 = SCL3 */
995 PINMUX_IPSR_MSEL(IP1SR2_3_0, GP2_08, SEL_I2C3_0),
996 PINMUX_IPSR_MSEL(IP1SR2_3_0, HRX2, SEL_I2C3_0),
997 PINMUX_IPSR_MSEL(IP1SR2_3_0, MSIOF4_SS1, SEL_I2C3_0),
998 PINMUX_IPSR_MSEL(IP1SR2_3_0, RX4, SEL_I2C3_0),
999 PINMUX_IPSR_MSEL(IP1SR2_3_0, D9, SEL_I2C3_0),
1000 PINMUX_IPSR_PHYS(IP1SR2_3_0, SCL3, SEL_I2C3_3),
1001
1002 /* GP2_09 = SDA3 */
1003 PINMUX_IPSR_MSEL(IP1SR2_7_4, GP2_09, SEL_I2C3_0),
1004 PINMUX_IPSR_MSEL(IP1SR2_7_4, HTX2, SEL_I2C3_0),
1005 PINMUX_IPSR_MSEL(IP1SR2_7_4, MSIOF4_SS2, SEL_I2C3_0),
1006 PINMUX_IPSR_MSEL(IP1SR2_7_4, TX4, SEL_I2C3_0),
1007 PINMUX_IPSR_MSEL(IP1SR2_7_4, D10, SEL_I2C3_0),
1008 PINMUX_IPSR_PHYS(IP1SR2_7_4, SDA3, SEL_I2C3_3),
1009
1010 /* GP2_10 = SCL4 */
1011 PINMUX_IPSR_MSEL(IP1SR2_11_8, GP2_10, SEL_I2C4_0),
1012 PINMUX_IPSR_MSEL(IP1SR2_11_8, TCLK2_B, SEL_I2C4_0),
1013 PINMUX_IPSR_MSEL(IP1SR2_11_8, MSIOF5_RXD, SEL_I2C4_0),
1014 PINMUX_IPSR_MSEL(IP1SR2_11_8, D11, SEL_I2C4_0),
1015 PINMUX_IPSR_PHYS(IP1SR2_11_8, SCL4, SEL_I2C4_3),
1016
1017 /* GP2_11 = SDA4 */
1018 PINMUX_IPSR_MSEL(IP1SR2_15_12, GP2_11, SEL_I2C4_0),
1019 PINMUX_IPSR_MSEL(IP1SR2_15_12, TCLK3, SEL_I2C4_0),
1020 PINMUX_IPSR_MSEL(IP1SR2_15_12, MSIOF5_TXD, SEL_I2C4_0),
1021 PINMUX_IPSR_MSEL(IP1SR2_15_12, D12, SEL_I2C4_0),
1022 PINMUX_IPSR_PHYS(IP1SR2_15_12, SDA4, SEL_I2C4_3),
1023
1024 /* GP2_12 = SCL5 */
1025 PINMUX_IPSR_MSEL(IP1SR2_19_16, GP2_12, SEL_I2C5_0),
1026 PINMUX_IPSR_MSEL(IP1SR2_19_16, TCLK4, SEL_I2C5_0),
1027 PINMUX_IPSR_MSEL(IP1SR2_19_16, MSIOF5_SCK, SEL_I2C5_0),
1028 PINMUX_IPSR_MSEL(IP1SR2_19_16, D13, SEL_I2C5_0),
1029 PINMUX_IPSR_PHYS(IP1SR2_19_16, SCL5, SEL_I2C5_3),
1030
1031 /* GP2_13 = SDA5 */
1032 PINMUX_IPSR_MSEL(IP1SR2_23_20, GP2_13, SEL_I2C5_0),
1033 PINMUX_IPSR_MSEL(IP1SR2_23_20, MSIOF5_SYNC, SEL_I2C5_0),
1034 PINMUX_IPSR_MSEL(IP1SR2_23_20, D14, SEL_I2C5_0),
1035 PINMUX_IPSR_PHYS(IP1SR2_23_20, SDA5, SEL_I2C5_3),
1036
1037 /* GP2_14 = SCL6 */
1038 PINMUX_IPSR_MSEL(IP1SR2_27_24, GP2_14, SEL_I2C6_0),
1039 PINMUX_IPSR_MSEL(IP1SR2_27_24, IRQ4, SEL_I2C6_0),
1040 PINMUX_IPSR_MSEL(IP1SR2_27_24, MSIOF5_SS1, SEL_I2C6_0),
1041 PINMUX_IPSR_MSEL(IP1SR2_27_24, D15, SEL_I2C6_0),
1042 PINMUX_IPSR_PHYS(IP1SR2_27_24, SCL6, SEL_I2C6_3),
1043
1044 /* GP2_15 = SDA6 */
1045 PINMUX_IPSR_MSEL(IP1SR2_31_28, GP2_15, SEL_I2C6_0),
1046 PINMUX_IPSR_MSEL(IP1SR2_31_28, IRQ5, SEL_I2C6_0),
1047 PINMUX_IPSR_MSEL(IP1SR2_31_28, MSIOF5_SS2, SEL_I2C6_0),
1048 PINMUX_IPSR_MSEL(IP1SR2_31_28, CPG_CPCKOUT, SEL_I2C6_0),
1049 PINMUX_IPSR_PHYS(IP1SR2_31_28, SDA6, SEL_I2C6_3),
1050
1051 /* IP2SR2 */
1052 PINMUX_IPSR_GPSR(IP2SR2_3_0, FXR_TXDA_A),
1053 PINMUX_IPSR_GPSR(IP2SR2_3_0, MSIOF3_SS1),
1054
1055 PINMUX_IPSR_GPSR(IP2SR2_7_4, RXDA_EXTFXR_A),
1056 PINMUX_IPSR_GPSR(IP2SR2_7_4, MSIOF3_SS2),
1057 PINMUX_IPSR_GPSR(IP2SR2_7_4, BS_N),
1058
1059 PINMUX_IPSR_GPSR(IP2SR2_11_8, FXR_TXDB),
1060 PINMUX_IPSR_GPSR(IP2SR2_11_8, MSIOF3_RXD),
1061 PINMUX_IPSR_GPSR(IP2SR2_11_8, RD_N),
1062
1063 PINMUX_IPSR_GPSR(IP2SR2_15_12, RXDB_EXTFXR),
1064 PINMUX_IPSR_GPSR(IP2SR2_15_12, MSIOF3_TXD),
1065 PINMUX_IPSR_GPSR(IP2SR2_15_12, WE0_N),
1066
1067 PINMUX_IPSR_GPSR(IP2SR2_19_16, CLK_EXTFXR),
1068 PINMUX_IPSR_GPSR(IP2SR2_19_16, MSIOF3_SCK),
1069 PINMUX_IPSR_GPSR(IP2SR2_19_16, WE1_N),
1070
1071 PINMUX_IPSR_GPSR(IP2SR2_23_20, TPU0TO0),
1072 PINMUX_IPSR_GPSR(IP2SR2_23_20, MSIOF3_SYNC),
1073 PINMUX_IPSR_GPSR(IP2SR2_23_20, RD_WR_N),
1074
1075 PINMUX_IPSR_GPSR(IP2SR2_27_24, TPU0TO1),
1076 PINMUX_IPSR_GPSR(IP2SR2_27_24, CLKOUT),
1077
1078 PINMUX_IPSR_GPSR(IP2SR2_31_28, TCLK1_A),
1079 PINMUX_IPSR_GPSR(IP2SR2_31_28, EX_WAIT0),
1080
1081 /* IP0SR3 */
1082 PINMUX_IPSR_GPSR(IP0SR3_7_4, CANFD0_TX),
1083 PINMUX_IPSR_GPSR(IP0SR3_7_4, FXR_TXDA_B),
1084 PINMUX_IPSR_GPSR(IP0SR3_7_4, TX1_B),
1085
1086 PINMUX_IPSR_GPSR(IP0SR3_11_8, CANFD0_RX),
1087 PINMUX_IPSR_GPSR(IP0SR3_11_8, RXDA_EXTFXR_B),
1088 PINMUX_IPSR_GPSR(IP0SR3_11_8, RX1_B),
1089
1090 PINMUX_IPSR_GPSR(IP0SR3_23_20, CANFD2_TX),
1091 PINMUX_IPSR_GPSR(IP0SR3_23_20, TPU0TO2),
1092 PINMUX_IPSR_GPSR(IP0SR3_23_20, PWM0),
1093
1094 PINMUX_IPSR_GPSR(IP0SR3_27_24, CANFD2_RX),
1095 PINMUX_IPSR_GPSR(IP0SR3_27_24, TPU0TO3),
1096 PINMUX_IPSR_GPSR(IP0SR3_27_24, PWM1),
1097
1098 PINMUX_IPSR_GPSR(IP0SR3_31_28, CANFD3_TX),
1099 PINMUX_IPSR_GPSR(IP0SR3_31_28, PWM2),
1100
1101 /* IP1SR3 */
1102 PINMUX_IPSR_GPSR(IP1SR3_3_0, CANFD3_RX),
1103 PINMUX_IPSR_GPSR(IP1SR3_3_0, PWM3),
1104
1105 PINMUX_IPSR_GPSR(IP1SR3_7_4, CANFD4_TX),
1106 PINMUX_IPSR_GPSR(IP1SR3_7_4, PWM4),
1107 PINMUX_IPSR_GPSR(IP1SR3_7_4, FXR_CLKOUT1),
1108
1109 PINMUX_IPSR_GPSR(IP1SR3_11_8, CANFD4_RX),
1110 PINMUX_IPSR_GPSR(IP1SR3_11_8, FXR_CLKOUT2),
1111
1112 PINMUX_IPSR_GPSR(IP1SR3_15_12, CANFD5_TX),
1113 PINMUX_IPSR_GPSR(IP1SR3_15_12, FXR_TXENA_N),
1114
1115 PINMUX_IPSR_GPSR(IP1SR3_19_16, CANFD5_RX),
1116 PINMUX_IPSR_GPSR(IP1SR3_19_16, FXR_TXENB_N),
1117
1118 PINMUX_IPSR_GPSR(IP1SR3_23_20, CANFD6_TX),
1119 PINMUX_IPSR_GPSR(IP1SR3_23_20, STPWT_EXTFXR),
1120
1121 /* IP0SR4 */
1122 PINMUX_IPSR_GPSR(IP0SR4_3_0, AVB0_RX_CTL),
1123 PINMUX_IPSR_GPSR(IP0SR4_3_0, AVB0_MII_RX_DV),
1124
1125 PINMUX_IPSR_GPSR(IP0SR4_7_4, AVB0_RXC),
1126 PINMUX_IPSR_GPSR(IP0SR4_7_4, AVB0_MII_RXC),
1127
1128 PINMUX_IPSR_GPSR(IP0SR4_11_8, AVB0_RD0),
1129 PINMUX_IPSR_GPSR(IP0SR4_11_8, AVB0_MII_RD0),
1130
1131 PINMUX_IPSR_GPSR(IP0SR4_15_12, AVB0_RD1),
1132 PINMUX_IPSR_GPSR(IP0SR4_15_12, AVB0_MII_RD1),
1133
1134 PINMUX_IPSR_GPSR(IP0SR4_19_16, AVB0_RD2),
1135 PINMUX_IPSR_GPSR(IP0SR4_19_16, AVB0_MII_RD2),
1136
1137 PINMUX_IPSR_GPSR(IP0SR4_23_20, AVB0_RD3),
1138 PINMUX_IPSR_GPSR(IP0SR4_23_20, AVB0_MII_RD3),
1139
1140 PINMUX_IPSR_GPSR(IP0SR4_27_24, AVB0_TX_CTL),
1141 PINMUX_IPSR_GPSR(IP0SR4_27_24, AVB0_MII_TX_EN),
1142
1143 PINMUX_IPSR_GPSR(IP0SR4_31_28, AVB0_TXC),
1144 PINMUX_IPSR_GPSR(IP0SR4_31_28, AVB0_MII_TXC),
1145
1146 /* IP1SR4 */
1147 PINMUX_IPSR_GPSR(IP1SR4_3_0, AVB0_TD0),
1148 PINMUX_IPSR_GPSR(IP1SR4_3_0, AVB0_MII_TD0),
1149
1150 PINMUX_IPSR_GPSR(IP1SR4_7_4, AVB0_TD1),
1151 PINMUX_IPSR_GPSR(IP1SR4_7_4, AVB0_MII_TD1),
1152
1153 PINMUX_IPSR_GPSR(IP1SR4_11_8, AVB0_TD2),
1154 PINMUX_IPSR_GPSR(IP1SR4_11_8, AVB0_MII_TD2),
1155
1156 PINMUX_IPSR_GPSR(IP1SR4_15_12, AVB0_TD3),
1157 PINMUX_IPSR_GPSR(IP1SR4_15_12, AVB0_MII_TD3),
1158
1159 PINMUX_IPSR_GPSR(IP1SR4_19_16, AVB0_TXCREFCLK),
1160
1161 PINMUX_IPSR_GPSR(IP1SR4_23_20, AVB0_MDIO),
1162
1163 PINMUX_IPSR_GPSR(IP1SR4_27_24, AVB0_MDC),
1164
1165 PINMUX_IPSR_GPSR(IP1SR4_31_28, AVB0_MAGIC),
1166
1167 /* IP2SR4 */
1168 PINMUX_IPSR_GPSR(IP2SR4_7_4, AVB0_LINK),
1169 PINMUX_IPSR_GPSR(IP2SR4_7_4, AVB0_MII_TX_ER),
1170
1171 PINMUX_IPSR_GPSR(IP2SR4_11_8, AVB0_AVTP_MATCH),
1172 PINMUX_IPSR_GPSR(IP2SR4_11_8, AVB0_MII_RX_ER),
1173 PINMUX_IPSR_GPSR(IP2SR4_11_8, CC5_OSCOUT),
1174
1175 PINMUX_IPSR_GPSR(IP2SR4_15_12, AVB0_AVTP_CAPTURE),
1176 PINMUX_IPSR_GPSR(IP2SR4_15_12, AVB0_MII_CRS),
1177
1178 PINMUX_IPSR_GPSR(IP2SR4_19_16, AVB0_AVTP_PPS),
1179 PINMUX_IPSR_GPSR(IP2SR4_19_16, AVB0_MII_COL),
1180
1181 /* IP0SR5 */
1182 PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB1_RX_CTL),
1183 PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB1_MII_RX_DV),
1184
1185 PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB1_RXC),
1186 PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB1_MII_RXC),
1187
1188 PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB1_RD0),
1189 PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB1_MII_RD0),
1190
1191 PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB1_RD1),
1192 PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB1_MII_RD1),
1193
1194 PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB1_RD2),
1195 PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB1_MII_RD2),
1196
1197 PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB1_RD3),
1198 PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB1_MII_RD3),
1199
1200 PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB1_TX_CTL),
1201 PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB1_MII_TX_EN),
1202
1203 PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB1_TXC),
1204 PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB1_MII_TXC),
1205
1206 /* IP1SR5 */
1207 PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB1_TD0),
1208 PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB1_MII_TD0),
1209
1210 PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB1_TD1),
1211 PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB1_MII_TD1),
1212
1213 PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB1_TD2),
1214 PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB1_MII_TD2),
1215
1216 PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB1_TD3),
1217 PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB1_MII_TD3),
1218
1219 PINMUX_IPSR_GPSR(IP1SR5_19_16, AVB1_TXCREFCLK),
1220
1221 PINMUX_IPSR_GPSR(IP1SR5_23_20, AVB1_MDIO),
1222
1223 PINMUX_IPSR_GPSR(IP1SR5_27_24, AVB1_MDC),
1224
1225 PINMUX_IPSR_GPSR(IP1SR5_31_28, AVB1_MAGIC),
1226
1227 /* IP2SR5 */
1228 PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB1_LINK),
1229 PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB1_MII_TX_ER),
1230
1231 PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB1_AVTP_MATCH),
1232 PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB1_MII_RX_ER),
1233
1234 PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB1_AVTP_CAPTURE),
1235 PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB1_MII_CRS),
1236
1237 PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB1_AVTP_PPS),
1238 PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB1_MII_COL),
1239};
1240
1241/*
1242 * Pins not associated with a GPIO port.
1243 */
1244enum {
1245 GP_ASSIGN_LAST(),
1246 NOGP_ALL(),
1247};
1248
1249static const struct sh_pfc_pin pinmux_pins[] = {
1250 PINMUX_GPIO_GP_ALL(),
1251};
1252
1253/* - AVB0 ------------------------------------------------ */
1254static const unsigned int avb0_link_pins[] = {
1255 /* AVB0_LINK */
1256 RCAR_GP_PIN(4, 17),
1257};
1258static const unsigned int avb0_link_mux[] = {
1259 AVB0_LINK_MARK,
1260};
1261static const unsigned int avb0_magic_pins[] = {
1262 /* AVB0_MAGIC */
1263 RCAR_GP_PIN(4, 15),
1264};
1265static const unsigned int avb0_magic_mux[] = {
1266 AVB0_MAGIC_MARK,
1267};
1268static const unsigned int avb0_phy_int_pins[] = {
1269 /* AVB0_PHY_INT */
1270 RCAR_GP_PIN(4, 16),
1271};
1272static const unsigned int avb0_phy_int_mux[] = {
1273 AVB0_PHY_INT_MARK,
1274};
1275static const unsigned int avb0_mdio_pins[] = {
1276 /* AVB0_MDC, AVB0_MDIO */
1277 RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 13),
1278};
1279static const unsigned int avb0_mdio_mux[] = {
1280 AVB0_MDC_MARK, AVB0_MDIO_MARK,
1281};
1282static const unsigned int avb0_rgmii_pins[] = {
1283 /*
1284 * AVB0_TX_CTL, AVB0_TXC, AVB0_TD0, AVB0_TD1, AVB0_TD2, AVB0_TD3,
1285 * AVB0_RX_CTL, AVB0_RXC, AVB0_RD0, AVB0_RD1, AVB0_RD2, AVB0_RD3,
1286 */
1287 RCAR_GP_PIN(4, 6), RCAR_GP_PIN(4, 7),
1288 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
1289 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 11),
1290 RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1),
1291 RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
1292 RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
1293};
1294static const unsigned int avb0_rgmii_mux[] = {
1295 AVB0_TX_CTL_MARK, AVB0_TXC_MARK,
1296 AVB0_TD0_MARK, AVB0_TD1_MARK, AVB0_TD2_MARK, AVB0_TD3_MARK,
1297 AVB0_RX_CTL_MARK, AVB0_RXC_MARK,
1298 AVB0_RD0_MARK, AVB0_RD1_MARK, AVB0_RD2_MARK, AVB0_RD3_MARK,
1299};
1300static const unsigned int avb0_txcrefclk_pins[] = {
1301 /* AVB0_TXCREFCLK */
1302 RCAR_GP_PIN(4, 12),
1303};
1304static const unsigned int avb0_txcrefclk_mux[] = {
1305 AVB0_TXCREFCLK_MARK,
1306};
1307static const unsigned int avb0_avtp_pps_pins[] = {
1308 /* AVB0_AVTP_PPS */
1309 RCAR_GP_PIN(4, 20),
1310};
1311static const unsigned int avb0_avtp_pps_mux[] = {
1312 AVB0_AVTP_PPS_MARK,
1313};
1314static const unsigned int avb0_avtp_capture_pins[] = {
1315 /* AVB0_AVTP_CAPTURE */
1316 RCAR_GP_PIN(4, 19),
1317};
1318static const unsigned int avb0_avtp_capture_mux[] = {
1319 AVB0_AVTP_CAPTURE_MARK,
1320};
1321static const unsigned int avb0_avtp_match_pins[] = {
1322 /* AVB0_AVTP_MATCH */
1323 RCAR_GP_PIN(4, 18),
1324};
1325static const unsigned int avb0_avtp_match_mux[] = {
1326 AVB0_AVTP_MATCH_MARK,
1327};
1328
1329/* - AVB1 ------------------------------------------------ */
1330static const unsigned int avb1_link_pins[] = {
1331 /* AVB1_LINK */
1332 RCAR_GP_PIN(5, 17),
1333};
1334static const unsigned int avb1_link_mux[] = {
1335 AVB1_LINK_MARK,
1336};
1337static const unsigned int avb1_magic_pins[] = {
1338 /* AVB1_MAGIC */
1339 RCAR_GP_PIN(5, 15),
1340};
1341static const unsigned int avb1_magic_mux[] = {
1342 AVB1_MAGIC_MARK,
1343};
1344static const unsigned int avb1_phy_int_pins[] = {
1345 /* AVB1_PHY_INT */
1346 RCAR_GP_PIN(5, 16),
1347};
1348static const unsigned int avb1_phy_int_mux[] = {
1349 AVB1_PHY_INT_MARK,
1350};
1351static const unsigned int avb1_mdio_pins[] = {
1352 /* AVB1_MDC, AVB1_MDIO */
1353 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 13),
1354};
1355static const unsigned int avb1_mdio_mux[] = {
1356 AVB1_MDC_MARK, AVB1_MDIO_MARK,
1357};
1358static const unsigned int avb1_rgmii_pins[] = {
1359 /*
1360 * AVB1_TX_CTL, AVB1_TXC, AVB1_TD0, AVB1_TD1, AVB1_TD2, AVB1_TD3,
1361 * AVB1_RX_CTL, AVB1_RXC, AVB1_RD0, AVB1_RD1, AVB1_RD2, AVB1_RD3,
1362 */
1363 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7),
1364 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
1365 RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
1366 RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1),
1367 RCAR_GP_PIN(5, 2), RCAR_GP_PIN(5, 3),
1368 RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 5),
1369};
1370static const unsigned int avb1_rgmii_mux[] = {
1371 AVB1_TX_CTL_MARK, AVB1_TXC_MARK,
1372 AVB1_TD0_MARK, AVB1_TD1_MARK, AVB1_TD2_MARK, AVB1_TD3_MARK,
1373 AVB1_RX_CTL_MARK, AVB1_RXC_MARK,
1374 AVB1_RD0_MARK, AVB1_RD1_MARK, AVB1_RD2_MARK, AVB1_RD3_MARK,
1375};
1376static const unsigned int avb1_txcrefclk_pins[] = {
1377 /* AVB1_TXCREFCLK */
1378 RCAR_GP_PIN(5, 12),
1379};
1380static const unsigned int avb1_txcrefclk_mux[] = {
1381 AVB1_TXCREFCLK_MARK,
1382};
1383static const unsigned int avb1_avtp_pps_pins[] = {
1384 /* AVB1_AVTP_PPS */
1385 RCAR_GP_PIN(5, 20),
1386};
1387static const unsigned int avb1_avtp_pps_mux[] = {
1388 AVB1_AVTP_PPS_MARK,
1389};
1390static const unsigned int avb1_avtp_capture_pins[] = {
1391 /* AVB1_AVTP_CAPTURE */
1392 RCAR_GP_PIN(5, 19),
1393};
1394static const unsigned int avb1_avtp_capture_mux[] = {
1395 AVB1_AVTP_CAPTURE_MARK,
1396};
1397static const unsigned int avb1_avtp_match_pins[] = {
1398 /* AVB1_AVTP_MATCH */
1399 RCAR_GP_PIN(5, 18),
1400};
1401static const unsigned int avb1_avtp_match_mux[] = {
1402 AVB1_AVTP_MATCH_MARK,
1403};
1404
1405/* - AVB2 ------------------------------------------------ */
1406static const unsigned int avb2_link_pins[] = {
1407 /* AVB2_LINK */
1408 RCAR_GP_PIN(6, 17),
1409};
1410static const unsigned int avb2_link_mux[] = {
1411 AVB2_LINK_MARK,
1412};
1413static const unsigned int avb2_magic_pins[] = {
1414 /* AVB2_MAGIC */
1415 RCAR_GP_PIN(6, 15),
1416};
1417static const unsigned int avb2_magic_mux[] = {
1418 AVB2_MAGIC_MARK,
1419};
1420static const unsigned int avb2_phy_int_pins[] = {
1421 /* AVB2_PHY_INT */
1422 RCAR_GP_PIN(6, 16),
1423};
1424static const unsigned int avb2_phy_int_mux[] = {
1425 AVB2_PHY_INT_MARK,
1426};
1427static const unsigned int avb2_mdio_pins[] = {
1428 /* AVB2_MDC, AVB2_MDIO */
1429 RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 13),
1430};
1431static const unsigned int avb2_mdio_mux[] = {
1432 AVB2_MDC_MARK, AVB2_MDIO_MARK,
1433};
1434static const unsigned int avb2_rgmii_pins[] = {
1435 /*
1436 * AVB2_TX_CTL, AVB2_TXC, AVB2_TD0, AVB2_TD1, AVB2_TD2, AVB2_TD3,
1437 * AVB2_RX_CTL, AVB2_RXC, AVB2_RD0, AVB2_RD1, AVB2_RD2, AVB2_RD3,
1438 */
1439 RCAR_GP_PIN(6, 6), RCAR_GP_PIN(6, 7),
1440 RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
1441 RCAR_GP_PIN(6, 10), RCAR_GP_PIN(6, 11),
1442 RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
1443 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3),
1444 RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 5),
1445};
1446static const unsigned int avb2_rgmii_mux[] = {
1447 AVB2_TX_CTL_MARK, AVB2_TXC_MARK,
1448 AVB2_TD0_MARK, AVB2_TD1_MARK, AVB2_TD2_MARK, AVB2_TD3_MARK,
1449 AVB2_RX_CTL_MARK, AVB2_RXC_MARK,
1450 AVB2_RD0_MARK, AVB2_RD1_MARK, AVB2_RD2_MARK, AVB2_RD3_MARK,
1451};
1452static const unsigned int avb2_txcrefclk_pins[] = {
1453 /* AVB2_TXCREFCLK */
1454 RCAR_GP_PIN(6, 12),
1455};
1456static const unsigned int avb2_txcrefclk_mux[] = {
1457 AVB2_TXCREFCLK_MARK,
1458};
1459static const unsigned int avb2_avtp_pps_pins[] = {
1460 /* AVB2_AVTP_PPS */
1461 RCAR_GP_PIN(6, 20),
1462};
1463static const unsigned int avb2_avtp_pps_mux[] = {
1464 AVB2_AVTP_PPS_MARK,
1465};
1466static const unsigned int avb2_avtp_capture_pins[] = {
1467 /* AVB2_AVTP_CAPTURE */
1468 RCAR_GP_PIN(6, 19),
1469};
1470static const unsigned int avb2_avtp_capture_mux[] = {
1471 AVB2_AVTP_CAPTURE_MARK,
1472};
1473static const unsigned int avb2_avtp_match_pins[] = {
1474 /* AVB2_AVTP_MATCH */
1475 RCAR_GP_PIN(6, 18),
1476};
1477static const unsigned int avb2_avtp_match_mux[] = {
1478 AVB2_AVTP_MATCH_MARK,
1479};
1480
1481/* - AVB3 ------------------------------------------------ */
1482static const unsigned int avb3_link_pins[] = {
1483 /* AVB3_LINK */
1484 RCAR_GP_PIN(7, 17),
1485};
1486static const unsigned int avb3_link_mux[] = {
1487 AVB3_LINK_MARK,
1488};
1489static const unsigned int avb3_magic_pins[] = {
1490 /* AVB3_MAGIC */
1491 RCAR_GP_PIN(7, 15),
1492};
1493static const unsigned int avb3_magic_mux[] = {
1494 AVB3_MAGIC_MARK,
1495};
1496static const unsigned int avb3_phy_int_pins[] = {
1497 /* AVB3_PHY_INT */
1498 RCAR_GP_PIN(7, 16),
1499};
1500static const unsigned int avb3_phy_int_mux[] = {
1501 AVB3_PHY_INT_MARK,
1502};
1503static const unsigned int avb3_mdio_pins[] = {
1504 /* AVB3_MDC, AVB3_MDIO */
1505 RCAR_GP_PIN(7, 14), RCAR_GP_PIN(7, 13),
1506};
1507static const unsigned int avb3_mdio_mux[] = {
1508 AVB3_MDC_MARK, AVB3_MDIO_MARK,
1509};
1510static const unsigned int avb3_rgmii_pins[] = {
1511 /*
1512 * AVB3_TX_CTL, AVB3_TXC, AVB3_TD0, AVB3_TD1, AVB3_TD2, AVB3_TD3,
1513 * AVB3_RX_CTL, AVB3_RXC, AVB3_RD0, AVB3_RD1, AVB3_RD2, AVB3_RD3,
1514 */
1515 RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 7),
1516 RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9),
1517 RCAR_GP_PIN(7, 10), RCAR_GP_PIN(7, 11),
1518 RCAR_GP_PIN(7, 0), RCAR_GP_PIN(7, 1),
1519 RCAR_GP_PIN(7, 2), RCAR_GP_PIN(7, 3),
1520 RCAR_GP_PIN(7, 4), RCAR_GP_PIN(7, 5),
1521};
1522static const unsigned int avb3_rgmii_mux[] = {
1523 AVB3_TX_CTL_MARK, AVB3_TXC_MARK,
1524 AVB3_TD0_MARK, AVB3_TD1_MARK, AVB3_TD2_MARK, AVB3_TD3_MARK,
1525 AVB3_RX_CTL_MARK, AVB3_RXC_MARK,
1526 AVB3_RD0_MARK, AVB3_RD1_MARK, AVB3_RD2_MARK, AVB3_RD3_MARK,
1527};
1528static const unsigned int avb3_txcrefclk_pins[] = {
1529 /* AVB3_TXCREFCLK */
1530 RCAR_GP_PIN(7, 12),
1531};
1532static const unsigned int avb3_txcrefclk_mux[] = {
1533 AVB3_TXCREFCLK_MARK,
1534};
1535static const unsigned int avb3_avtp_pps_pins[] = {
1536 /* AVB3_AVTP_PPS */
1537 RCAR_GP_PIN(7, 20),
1538};
1539static const unsigned int avb3_avtp_pps_mux[] = {
1540 AVB3_AVTP_PPS_MARK,
1541};
1542static const unsigned int avb3_avtp_capture_pins[] = {
1543 /* AVB3_AVTP_CAPTURE */
1544 RCAR_GP_PIN(7, 19),
1545};
1546static const unsigned int avb3_avtp_capture_mux[] = {
1547 AVB3_AVTP_CAPTURE_MARK,
1548};
1549static const unsigned int avb3_avtp_match_pins[] = {
1550 /* AVB3_AVTP_MATCH */
1551 RCAR_GP_PIN(7, 18),
1552};
1553static const unsigned int avb3_avtp_match_mux[] = {
1554 AVB3_AVTP_MATCH_MARK,
1555};
1556
1557/* - AVB4 ------------------------------------------------ */
1558static const unsigned int avb4_link_pins[] = {
1559 /* AVB4_LINK */
1560 RCAR_GP_PIN(8, 17),
1561};
1562static const unsigned int avb4_link_mux[] = {
1563 AVB4_LINK_MARK,
1564};
1565static const unsigned int avb4_magic_pins[] = {
1566 /* AVB4_MAGIC */
1567 RCAR_GP_PIN(8, 15),
1568};
1569static const unsigned int avb4_magic_mux[] = {
1570 AVB4_MAGIC_MARK,
1571};
1572static const unsigned int avb4_phy_int_pins[] = {
1573 /* AVB4_PHY_INT */
1574 RCAR_GP_PIN(8, 16),
1575};
1576static const unsigned int avb4_phy_int_mux[] = {
1577 AVB4_PHY_INT_MARK,
1578};
1579static const unsigned int avb4_mdio_pins[] = {
1580 /* AVB4_MDC, AVB4_MDIO */
1581 RCAR_GP_PIN(8, 14), RCAR_GP_PIN(8, 13),
1582};
1583static const unsigned int avb4_mdio_mux[] = {
1584 AVB4_MDC_MARK, AVB4_MDIO_MARK,
1585};
1586static const unsigned int avb4_rgmii_pins[] = {
1587 /*
1588 * AVB4_TX_CTL, AVB4_TXC, AVB4_TD0, AVB4_TD1, AVB4_TD2, AVB4_TD3,
1589 * AVB4_RX_CTL, AVB4_RXC, AVB4_RD0, AVB4_RD1, AVB4_RD2, AVB4_RD3,
1590 */
1591 RCAR_GP_PIN(8, 6), RCAR_GP_PIN(8, 7),
1592 RCAR_GP_PIN(8, 8), RCAR_GP_PIN(8, 9),
1593 RCAR_GP_PIN(8, 10), RCAR_GP_PIN(8, 11),
1594 RCAR_GP_PIN(8, 0), RCAR_GP_PIN(8, 1),
1595 RCAR_GP_PIN(8, 2), RCAR_GP_PIN(8, 3),
1596 RCAR_GP_PIN(8, 4), RCAR_GP_PIN(8, 5),
1597};
1598static const unsigned int avb4_rgmii_mux[] = {
1599 AVB4_TX_CTL_MARK, AVB4_TXC_MARK,
1600 AVB4_TD0_MARK, AVB4_TD1_MARK, AVB4_TD2_MARK, AVB4_TD3_MARK,
1601 AVB4_RX_CTL_MARK, AVB4_RXC_MARK,
1602 AVB4_RD0_MARK, AVB4_RD1_MARK, AVB4_RD2_MARK, AVB4_RD3_MARK,
1603};
1604static const unsigned int avb4_txcrefclk_pins[] = {
1605 /* AVB4_TXCREFCLK */
1606 RCAR_GP_PIN(8, 12),
1607};
1608static const unsigned int avb4_txcrefclk_mux[] = {
1609 AVB4_TXCREFCLK_MARK,
1610};
1611static const unsigned int avb4_avtp_pps_pins[] = {
1612 /* AVB4_AVTP_PPS */
1613 RCAR_GP_PIN(8, 20),
1614};
1615static const unsigned int avb4_avtp_pps_mux[] = {
1616 AVB4_AVTP_PPS_MARK,
1617};
1618static const unsigned int avb4_avtp_capture_pins[] = {
1619 /* AVB4_AVTP_CAPTURE */
1620 RCAR_GP_PIN(8, 19),
1621};
1622static const unsigned int avb4_avtp_capture_mux[] = {
1623 AVB4_AVTP_CAPTURE_MARK,
1624};
1625static const unsigned int avb4_avtp_match_pins[] = {
1626 /* AVB4_AVTP_MATCH */
1627 RCAR_GP_PIN(8, 18),
1628};
1629static const unsigned int avb4_avtp_match_mux[] = {
1630 AVB4_AVTP_MATCH_MARK,
1631};
1632
1633/* - AVB5 ------------------------------------------------ */
1634static const unsigned int avb5_link_pins[] = {
1635 /* AVB5_LINK */
1636 RCAR_GP_PIN(9, 17),
1637};
1638static const unsigned int avb5_link_mux[] = {
1639 AVB5_LINK_MARK,
1640};
1641static const unsigned int avb5_magic_pins[] = {
1642 /* AVB5_MAGIC */
1643 RCAR_GP_PIN(9, 15),
1644};
1645static const unsigned int avb5_magic_mux[] = {
1646 AVB5_MAGIC_MARK,
1647};
1648static const unsigned int avb5_phy_int_pins[] = {
1649 /* AVB5_PHY_INT */
1650 RCAR_GP_PIN(9, 16),
1651};
1652static const unsigned int avb5_phy_int_mux[] = {
1653 AVB5_PHY_INT_MARK,
1654};
1655static const unsigned int avb5_mdio_pins[] = {
1656 /* AVB5_MDC, AVB5_MDIO */
1657 RCAR_GP_PIN(9, 14), RCAR_GP_PIN(9, 13),
1658};
1659static const unsigned int avb5_mdio_mux[] = {
1660 AVB5_MDC_MARK, AVB5_MDIO_MARK,
1661};
1662static const unsigned int avb5_rgmii_pins[] = {
1663 /*
1664 * AVB5_TX_CTL, AVB5_TXC, AVB5_TD0, AVB5_TD1, AVB5_TD2, AVB5_TD3,
1665 * AVB5_RX_CTL, AVB5_RXC, AVB5_RD0, AVB5_RD1, AVB5_RD2, AVB5_RD3,
1666 */
1667 RCAR_GP_PIN(9, 6), RCAR_GP_PIN(9, 7),
1668 RCAR_GP_PIN(9, 8), RCAR_GP_PIN(9, 9),
1669 RCAR_GP_PIN(9, 10), RCAR_GP_PIN(9, 11),
1670 RCAR_GP_PIN(9, 0), RCAR_GP_PIN(9, 1),
1671 RCAR_GP_PIN(9, 2), RCAR_GP_PIN(9, 3),
1672 RCAR_GP_PIN(9, 4), RCAR_GP_PIN(9, 5),
1673};
1674static const unsigned int avb5_rgmii_mux[] = {
1675 AVB5_TX_CTL_MARK, AVB5_TXC_MARK,
1676 AVB5_TD0_MARK, AVB5_TD1_MARK, AVB5_TD2_MARK, AVB5_TD3_MARK,
1677 AVB5_RX_CTL_MARK, AVB5_RXC_MARK,
1678 AVB5_RD0_MARK, AVB5_RD1_MARK, AVB5_RD2_MARK, AVB5_RD3_MARK,
1679};
1680static const unsigned int avb5_txcrefclk_pins[] = {
1681 /* AVB5_TXCREFCLK */
1682 RCAR_GP_PIN(9, 12),
1683};
1684static const unsigned int avb5_txcrefclk_mux[] = {
1685 AVB5_TXCREFCLK_MARK,
1686};
1687static const unsigned int avb5_avtp_pps_pins[] = {
1688 /* AVB5_AVTP_PPS */
1689 RCAR_GP_PIN(9, 20),
1690};
1691static const unsigned int avb5_avtp_pps_mux[] = {
1692 AVB5_AVTP_PPS_MARK,
1693};
1694static const unsigned int avb5_avtp_capture_pins[] = {
1695 /* AVB5_AVTP_CAPTURE */
1696 RCAR_GP_PIN(9, 19),
1697};
1698static const unsigned int avb5_avtp_capture_mux[] = {
1699 AVB5_AVTP_CAPTURE_MARK,
1700};
1701static const unsigned int avb5_avtp_match_pins[] = {
1702 /* AVB5_AVTP_MATCH */
1703 RCAR_GP_PIN(9, 18),
1704};
1705static const unsigned int avb5_avtp_match_mux[] = {
1706 AVB5_AVTP_MATCH_MARK,
1707};
1708
1709/* - CANFD0 ----------------------------------------------------------------- */
1710static const unsigned int canfd0_data_pins[] = {
1711 /* CANFD0_TX, CANFD0_RX */
1712 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2),
1713};
1714static const unsigned int canfd0_data_mux[] = {
1715 CANFD0_TX_MARK, CANFD0_RX_MARK,
1716};
1717
1718/* - CANFD1 ----------------------------------------------------------------- */
1719static const unsigned int canfd1_data_pins[] = {
1720 /* CANFD1_TX, CANFD1_RX */
1721 RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 4),
1722};
1723static const unsigned int canfd1_data_mux[] = {
1724 CANFD1_TX_MARK, CANFD1_RX_MARK,
1725};
1726
1727/* - CANFD2 ----------------------------------------------------------------- */
1728static const unsigned int canfd2_data_pins[] = {
1729 /* CANFD2_TX, CANFD2_RX */
1730 RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6),
1731};
1732static const unsigned int canfd2_data_mux[] = {
1733 CANFD2_TX_MARK, CANFD2_RX_MARK,
1734};
1735
1736/* - CANFD3 ----------------------------------------------------------------- */
1737static const unsigned int canfd3_data_pins[] = {
1738 /* CANFD3_TX, CANFD3_RX */
1739 RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 8),
1740};
1741static const unsigned int canfd3_data_mux[] = {
1742 CANFD3_TX_MARK, CANFD3_RX_MARK,
1743};
1744
1745/* - CANFD4 ----------------------------------------------------------------- */
1746static const unsigned int canfd4_data_pins[] = {
1747 /* CANFD4_TX, CANFD4_RX */
1748 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 10),
1749};
1750static const unsigned int canfd4_data_mux[] = {
1751 CANFD4_TX_MARK, CANFD4_RX_MARK,
1752};
1753
1754/* - CANFD5 ----------------------------------------------------------------- */
1755static const unsigned int canfd5_data_pins[] = {
1756 /* CANFD5_TX, CANFD5_RX */
1757 RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 12),
1758};
1759static const unsigned int canfd5_data_mux[] = {
1760 CANFD5_TX_MARK, CANFD5_RX_MARK,
1761};
1762
1763/* - CANFD6 ----------------------------------------------------------------- */
1764static const unsigned int canfd6_data_pins[] = {
1765 /* CANFD6_TX, CANFD6_RX */
1766 RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 14),
1767};
1768static const unsigned int canfd6_data_mux[] = {
1769 CANFD6_TX_MARK, CANFD6_RX_MARK,
1770};
1771
1772/* - CANFD7 ----------------------------------------------------------------- */
1773static const unsigned int canfd7_data_pins[] = {
1774 /* CANFD7_TX, CANFD7_RX */
1775 RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16),
1776};
1777static const unsigned int canfd7_data_mux[] = {
1778 CANFD7_TX_MARK, CANFD7_RX_MARK,
1779};
1780
1781/* - CANFD Clock ------------------------------------------------------------ */
1782static const unsigned int can_clk_pins[] = {
1783 /* CAN_CLK */
1784 RCAR_GP_PIN(3, 0),
1785};
1786static const unsigned int can_clk_mux[] = {
1787 CAN_CLK_MARK,
1788};
1789
1790/* - DU --------------------------------------------------------------------- */
1791static const unsigned int du_rgb888_pins[] = {
1792 /* DU_DR[7:2], DU_DG[7:2], DU_DB[7:2] */
1793 RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 9),
1794 RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
1795 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 15),
1796 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 12),
1797 RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21),
1798 RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
1799};
1800static const unsigned int du_rgb888_mux[] = {
1801 DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK,
1802 DU_DR4_MARK, DU_DR3_MARK, DU_DR2_MARK,
1803 DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK,
1804 DU_DG4_MARK, DU_DG3_MARK, DU_DG2_MARK,
1805 DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK,
1806 DU_DB4_MARK, DU_DB3_MARK, DU_DB2_MARK,
1807};
1808static const unsigned int du_clk_out_pins[] = {
1809 /* DU_DOTCLKOUT */
1810 RCAR_GP_PIN(1, 24),
1811};
1812static const unsigned int du_clk_out_mux[] = {
1813 DU_DOTCLKOUT_MARK,
1814};
1815static const unsigned int du_sync_pins[] = {
1816 /* DU_HSYNC, DU_VSYNC */
1817 RCAR_GP_PIN(1, 25), RCAR_GP_PIN(1, 26),
1818};
1819static const unsigned int du_sync_mux[] = {
1820 DU_HSYNC_MARK, DU_VSYNC_MARK,
1821};
1822static const unsigned int du_oddf_pins[] = {
1823 /* DU_EXODDF/DU_ODDF/DISP/CDE */
1824 RCAR_GP_PIN(1, 27),
1825};
1826static const unsigned int du_oddf_mux[] = {
1827 DU_ODDF_DISP_CDE_MARK,
1828};
1829
1830/* - HSCIF0 ----------------------------------------------------------------- */
1831static const unsigned int hscif0_data_pins[] = {
1832 /* HRX0, HTX0 */
1833 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 5),
1834};
1835static const unsigned int hscif0_data_mux[] = {
1836 HRX0_MARK, HTX0_MARK,
1837};
1838static const unsigned int hscif0_clk_pins[] = {
1839 /* HSCK0 */
1840 RCAR_GP_PIN(1, 2),
1841};
1842static const unsigned int hscif0_clk_mux[] = {
1843 HSCK0_MARK,
1844};
1845static const unsigned int hscif0_ctrl_pins[] = {
1846 /* HRTS0#, HCTS0# */
1847 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 4),
1848};
1849static const unsigned int hscif0_ctrl_mux[] = {
1850 HRTS0_N_MARK, HCTS0_N_MARK,
1851};
1852
1853/* - HSCIF1 ----------------------------------------------------------------- */
1854static const unsigned int hscif1_data_pins[] = {
1855 /* HRX1, HTX1 */
1856 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
1857};
1858static const unsigned int hscif1_data_mux[] = {
1859 HRX1_MARK, HTX1_MARK,
1860};
1861static const unsigned int hscif1_clk_pins[] = {
1862 /* HSCK1 */
1863 RCAR_GP_PIN(1, 18),
1864};
1865static const unsigned int hscif1_clk_mux[] = {
1866 HSCK1_MARK,
1867};
1868static const unsigned int hscif1_ctrl_pins[] = {
1869 /* HRTS1#, HCTS1# */
1870 RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19),
1871};
1872static const unsigned int hscif1_ctrl_mux[] = {
1873 HRTS1_N_MARK, HCTS1_N_MARK,
1874};
1875
1876/* - HSCIF2 ----------------------------------------------------------------- */
1877static const unsigned int hscif2_data_pins[] = {
1878 /* HRX2, HTX2 */
1879 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
1880};
1881static const unsigned int hscif2_data_mux[] = {
1882 HRX2_MARK, HTX2_MARK,
1883};
1884static const unsigned int hscif2_clk_pins[] = {
1885 /* HSCK2 */
1886 RCAR_GP_PIN(2, 5),
1887};
1888static const unsigned int hscif2_clk_mux[] = {
1889 HSCK2_MARK,
1890};
1891static const unsigned int hscif2_ctrl_pins[] = {
1892 /* HRTS2#, HCTS2# */
1893 RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 6),
1894};
1895static const unsigned int hscif2_ctrl_mux[] = {
1896 HRTS2_N_MARK, HCTS2_N_MARK,
1897};
1898
1899/* - HSCIF3 ----------------------------------------------------------------- */
1900static const unsigned int hscif3_data_pins[] = {
1901 /* HRX3, HTX3 */
1902 RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 17),
1903};
1904static const unsigned int hscif3_data_mux[] = {
1905 HRX3_MARK, HTX3_MARK,
1906};
1907static const unsigned int hscif3_clk_pins[] = {
1908 /* HSCK3 */
1909 RCAR_GP_PIN(1, 14),
1910};
1911static const unsigned int hscif3_clk_mux[] = {
1912 HSCK3_MARK,
1913};
1914static const unsigned int hscif3_ctrl_pins[] = {
1915 /* HRTS3#, HCTS3# */
1916 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 16),
1917};
1918static const unsigned int hscif3_ctrl_mux[] = {
1919 HRTS3_N_MARK, HCTS3_N_MARK,
1920};
1921
1922/* - I2C0 ------------------------------------------------------------------- */
1923static const unsigned int i2c0_pins[] = {
1924 /* SDA0, SCL0 */
1925 RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 2),
1926};
1927static const unsigned int i2c0_mux[] = {
1928 SDA0_MARK, SCL0_MARK,
1929};
1930
1931/* - I2C1 ------------------------------------------------------------------- */
1932static const unsigned int i2c1_pins[] = {
1933 /* SDA1, SCL1 */
1934 RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4),
1935};
1936static const unsigned int i2c1_mux[] = {
1937 SDA1_MARK, SCL1_MARK,
1938};
1939
1940/* - I2C2 ------------------------------------------------------------------- */
1941static const unsigned int i2c2_pins[] = {
1942 /* SDA2, SCL2 */
1943 RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 6),
1944};
1945static const unsigned int i2c2_mux[] = {
1946 SDA2_MARK, SCL2_MARK,
1947};
1948
1949/* - I2C3 ------------------------------------------------------------------- */
1950static const unsigned int i2c3_pins[] = {
1951 /* SDA3, SCL3 */
1952 RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 8),
1953};
1954static const unsigned int i2c3_mux[] = {
1955 SDA3_MARK, SCL3_MARK,
1956};
1957
1958/* - I2C4 ------------------------------------------------------------------- */
1959static const unsigned int i2c4_pins[] = {
1960 /* SDA4, SCL4 */
1961 RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 10),
1962};
1963static const unsigned int i2c4_mux[] = {
1964 SDA4_MARK, SCL4_MARK,
1965};
1966
1967/* - I2C5 ------------------------------------------------------------------- */
1968static const unsigned int i2c5_pins[] = {
1969 /* SDA5, SCL5 */
1970 RCAR_GP_PIN(2, 13), RCAR_GP_PIN(2, 12),
1971};
1972static const unsigned int i2c5_mux[] = {
1973 SDA5_MARK, SCL5_MARK,
1974};
1975
1976/* - I2C6 ------------------------------------------------------------------- */
1977static const unsigned int i2c6_pins[] = {
1978 /* SDA6, SCL6 */
1979 RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 14),
1980};
1981static const unsigned int i2c6_mux[] = {
1982 SDA6_MARK, SCL6_MARK,
1983};
1984
1985/* - INTC-EX ---------------------------------------------------------------- */
1986static const unsigned int intc_ex_irq0_pins[] = {
1987 /* IRQ0 */
1988 RCAR_GP_PIN(1, 24),
1989};
1990static const unsigned int intc_ex_irq0_mux[] = {
1991 IRQ0_MARK,
1992};
1993static const unsigned int intc_ex_irq1_pins[] = {
1994 /* IRQ1 */
1995 RCAR_GP_PIN(1, 25),
1996};
1997static const unsigned int intc_ex_irq1_mux[] = {
1998 IRQ1_MARK,
1999};
2000static const unsigned int intc_ex_irq2_pins[] = {
2001 /* IRQ2 */
2002 RCAR_GP_PIN(1, 26),
2003};
2004static const unsigned int intc_ex_irq2_mux[] = {
2005 IRQ2_MARK,
2006};
2007static const unsigned int intc_ex_irq3_pins[] = {
2008 /* IRQ3 */
2009 RCAR_GP_PIN(1, 27),
2010};
2011static const unsigned int intc_ex_irq3_mux[] = {
2012 IRQ3_MARK,
2013};
2014static const unsigned int intc_ex_irq4_pins[] = {
2015 /* IRQ4 */
2016 RCAR_GP_PIN(2, 14),
2017};
2018static const unsigned int intc_ex_irq4_mux[] = {
2019 IRQ4_MARK,
2020};
2021static const unsigned int intc_ex_irq5_pins[] = {
2022 /* IRQ5 */
2023 RCAR_GP_PIN(2, 15),
2024};
2025static const unsigned int intc_ex_irq5_mux[] = {
2026 IRQ5_MARK,
2027};
2028
2029/* - MMC -------------------------------------------------------------------- */
Marek Vasut4ecc1832023-01-26 21:01:47 +01002030static const unsigned int mmc_data_pins[] = {
Marek Vasut4dbc6532021-04-27 01:55:54 +02002031 /* MMC_SD_D[0:3], MMC_D[4:7] */
2032 RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20),
2033 RCAR_GP_PIN(0, 21), RCAR_GP_PIN(0, 22),
2034 RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
2035 RCAR_GP_PIN(0, 26), RCAR_GP_PIN(0, 27),
2036};
Marek Vasut4ecc1832023-01-26 21:01:47 +01002037static const unsigned int mmc_data_mux[] = {
Marek Vasut4dbc6532021-04-27 01:55:54 +02002038 MMC_SD_D0_MARK, MMC_SD_D1_MARK,
2039 MMC_SD_D2_MARK, MMC_SD_D3_MARK,
2040 MMC_D4_MARK, MMC_D5_MARK,
2041 MMC_D6_MARK, MMC_D7_MARK,
2042};
2043static const unsigned int mmc_ctrl_pins[] = {
2044 /* MMC_SD_CLK, MMC_SD_CMD */
2045 RCAR_GP_PIN(0, 23), RCAR_GP_PIN(0, 18),
2046};
2047static const unsigned int mmc_ctrl_mux[] = {
2048 MMC_SD_CLK_MARK, MMC_SD_CMD_MARK,
2049};
2050static const unsigned int mmc_cd_pins[] = {
2051 /* SD_CD */
2052 RCAR_GP_PIN(0, 16),
2053};
2054static const unsigned int mmc_cd_mux[] = {
2055 SD_CD_MARK,
2056};
2057static const unsigned int mmc_wp_pins[] = {
2058 /* SD_WP */
2059 RCAR_GP_PIN(0, 15),
2060};
2061static const unsigned int mmc_wp_mux[] = {
2062 SD_WP_MARK,
2063};
2064static const unsigned int mmc_ds_pins[] = {
2065 /* MMC_DS */
2066 RCAR_GP_PIN(0, 17),
2067};
2068static const unsigned int mmc_ds_mux[] = {
2069 MMC_DS_MARK,
2070};
2071
2072/* - MSIOF0 ----------------------------------------------------------------- */
2073static const unsigned int msiof0_clk_pins[] = {
2074 /* MSIOF0_SCK */
2075 RCAR_GP_PIN(1, 8),
2076};
2077static const unsigned int msiof0_clk_mux[] = {
2078 MSIOF0_SCK_MARK,
2079};
2080static const unsigned int msiof0_sync_pins[] = {
2081 /* MSIOF0_SYNC */
2082 RCAR_GP_PIN(1, 9),
2083};
2084static const unsigned int msiof0_sync_mux[] = {
2085 MSIOF0_SYNC_MARK,
2086};
2087static const unsigned int msiof0_ss1_pins[] = {
2088 /* MSIOF0_SS1 */
2089 RCAR_GP_PIN(1, 10),
2090};
2091static const unsigned int msiof0_ss1_mux[] = {
2092 MSIOF0_SS1_MARK,
2093};
2094static const unsigned int msiof0_ss2_pins[] = {
2095 /* MSIOF0_SS2 */
2096 RCAR_GP_PIN(1, 11),
2097};
2098static const unsigned int msiof0_ss2_mux[] = {
2099 MSIOF0_SS2_MARK,
2100};
2101static const unsigned int msiof0_txd_pins[] = {
2102 /* MSIOF0_TXD */
2103 RCAR_GP_PIN(1, 7),
2104};
2105static const unsigned int msiof0_txd_mux[] = {
2106 MSIOF0_TXD_MARK,
2107};
2108static const unsigned int msiof0_rxd_pins[] = {
2109 /* MSIOF0_RXD */
2110 RCAR_GP_PIN(1, 6),
2111};
2112static const unsigned int msiof0_rxd_mux[] = {
2113 MSIOF0_RXD_MARK,
2114};
2115
2116/* - MSIOF1 ----------------------------------------------------------------- */
2117static const unsigned int msiof1_clk_pins[] = {
2118 /* MSIOF1_SCK */
2119 RCAR_GP_PIN(1, 14),
2120};
2121static const unsigned int msiof1_clk_mux[] = {
2122 MSIOF1_SCK_MARK,
2123};
2124static const unsigned int msiof1_sync_pins[] = {
2125 /* MSIOF1_SYNC */
2126 RCAR_GP_PIN(1, 15),
2127};
2128static const unsigned int msiof1_sync_mux[] = {
2129 MSIOF1_SYNC_MARK,
2130};
2131static const unsigned int msiof1_ss1_pins[] = {
2132 /* MSIOF1_SS1 */
2133 RCAR_GP_PIN(1, 16),
2134};
2135static const unsigned int msiof1_ss1_mux[] = {
2136 MSIOF1_SS1_MARK,
2137};
2138static const unsigned int msiof1_ss2_pins[] = {
2139 /* MSIOF1_SS2 */
2140 RCAR_GP_PIN(1, 17),
2141};
2142static const unsigned int msiof1_ss2_mux[] = {
2143 MSIOF1_SS2_MARK,
2144};
2145static const unsigned int msiof1_txd_pins[] = {
2146 /* MSIOF1_TXD */
2147 RCAR_GP_PIN(1, 13),
2148};
2149static const unsigned int msiof1_txd_mux[] = {
2150 MSIOF1_TXD_MARK,
2151};
2152static const unsigned int msiof1_rxd_pins[] = {
2153 /* MSIOF1_RXD */
2154 RCAR_GP_PIN(1, 12),
2155};
2156static const unsigned int msiof1_rxd_mux[] = {
2157 MSIOF1_RXD_MARK,
2158};
2159
2160/* - MSIOF2 ----------------------------------------------------------------- */
2161static const unsigned int msiof2_clk_pins[] = {
2162 /* MSIOF2_SCK */
2163 RCAR_GP_PIN(1, 20),
2164};
2165static const unsigned int msiof2_clk_mux[] = {
2166 MSIOF2_SCK_MARK,
2167};
2168static const unsigned int msiof2_sync_pins[] = {
2169 /* MSIOF2_SYNC */
2170 RCAR_GP_PIN(1, 21),
2171};
2172static const unsigned int msiof2_sync_mux[] = {
2173 MSIOF2_SYNC_MARK,
2174};
2175static const unsigned int msiof2_ss1_pins[] = {
2176 /* MSIOF2_SS1 */
2177 RCAR_GP_PIN(1, 22),
2178};
2179static const unsigned int msiof2_ss1_mux[] = {
2180 MSIOF2_SS1_MARK,
2181};
2182static const unsigned int msiof2_ss2_pins[] = {
2183 /* MSIOF2_SS2 */
2184 RCAR_GP_PIN(1, 23),
2185};
2186static const unsigned int msiof2_ss2_mux[] = {
2187 MSIOF2_SS2_MARK,
2188};
2189static const unsigned int msiof2_txd_pins[] = {
2190 /* MSIOF2_TXD */
2191 RCAR_GP_PIN(1, 19),
2192};
2193static const unsigned int msiof2_txd_mux[] = {
2194 MSIOF2_TXD_MARK,
2195};
2196static const unsigned int msiof2_rxd_pins[] = {
2197 /* MSIOF2_RXD */
2198 RCAR_GP_PIN(1, 18),
2199};
2200static const unsigned int msiof2_rxd_mux[] = {
2201 MSIOF2_RXD_MARK,
2202};
2203
2204/* - MSIOF3 ----------------------------------------------------------------- */
2205static const unsigned int msiof3_clk_pins[] = {
2206 /* MSIOF3_SCK */
2207 RCAR_GP_PIN(2, 20),
2208};
2209static const unsigned int msiof3_clk_mux[] = {
2210 MSIOF3_SCK_MARK,
2211};
2212static const unsigned int msiof3_sync_pins[] = {
2213 /* MSIOF3_SYNC */
2214 RCAR_GP_PIN(2, 21),
2215};
2216static const unsigned int msiof3_sync_mux[] = {
2217 MSIOF3_SYNC_MARK,
2218};
2219static const unsigned int msiof3_ss1_pins[] = {
2220 /* MSIOF3_SS1 */
2221 RCAR_GP_PIN(2, 16),
2222};
2223static const unsigned int msiof3_ss1_mux[] = {
2224 MSIOF3_SS1_MARK,
2225};
2226static const unsigned int msiof3_ss2_pins[] = {
2227 /* MSIOF3_SS2 */
2228 RCAR_GP_PIN(2, 17),
2229};
2230static const unsigned int msiof3_ss2_mux[] = {
2231 MSIOF3_SS2_MARK,
2232};
2233static const unsigned int msiof3_txd_pins[] = {
2234 /* MSIOF3_TXD */
2235 RCAR_GP_PIN(2, 19),
2236};
2237static const unsigned int msiof3_txd_mux[] = {
2238 MSIOF3_TXD_MARK,
2239};
2240static const unsigned int msiof3_rxd_pins[] = {
2241 /* MSIOF3_RXD */
2242 RCAR_GP_PIN(2, 18),
2243};
2244static const unsigned int msiof3_rxd_mux[] = {
2245 MSIOF3_RXD_MARK,
2246};
2247
2248/* - MSIOF4 ----------------------------------------------------------------- */
2249static const unsigned int msiof4_clk_pins[] = {
2250 /* MSIOF4_SCK */
2251 RCAR_GP_PIN(2, 6),
2252};
2253static const unsigned int msiof4_clk_mux[] = {
2254 MSIOF4_SCK_MARK,
2255};
2256static const unsigned int msiof4_sync_pins[] = {
2257 /* MSIOF4_SYNC */
2258 RCAR_GP_PIN(2, 7),
2259};
2260static const unsigned int msiof4_sync_mux[] = {
2261 MSIOF4_SYNC_MARK,
2262};
2263static const unsigned int msiof4_ss1_pins[] = {
2264 /* MSIOF4_SS1 */
2265 RCAR_GP_PIN(2, 8),
2266};
2267static const unsigned int msiof4_ss1_mux[] = {
2268 MSIOF4_SS1_MARK,
2269};
2270static const unsigned int msiof4_ss2_pins[] = {
2271 /* MSIOF4_SS2 */
2272 RCAR_GP_PIN(2, 9),
2273};
2274static const unsigned int msiof4_ss2_mux[] = {
2275 MSIOF4_SS2_MARK,
2276};
2277static const unsigned int msiof4_txd_pins[] = {
2278 /* MSIOF4_TXD */
2279 RCAR_GP_PIN(2, 5),
2280};
2281static const unsigned int msiof4_txd_mux[] = {
2282 MSIOF4_TXD_MARK,
2283};
2284static const unsigned int msiof4_rxd_pins[] = {
2285 /* MSIOF4_RXD */
2286 RCAR_GP_PIN(2, 4),
2287};
2288static const unsigned int msiof4_rxd_mux[] = {
2289 MSIOF4_RXD_MARK,
2290};
2291
2292/* - MSIOF5 ----------------------------------------------------------------- */
2293static const unsigned int msiof5_clk_pins[] = {
2294 /* MSIOF5_SCK */
2295 RCAR_GP_PIN(2, 12),
2296};
2297static const unsigned int msiof5_clk_mux[] = {
2298 MSIOF5_SCK_MARK,
2299};
2300static const unsigned int msiof5_sync_pins[] = {
2301 /* MSIOF5_SYNC */
2302 RCAR_GP_PIN(2, 13),
2303};
2304static const unsigned int msiof5_sync_mux[] = {
2305 MSIOF5_SYNC_MARK,
2306};
2307static const unsigned int msiof5_ss1_pins[] = {
2308 /* MSIOF5_SS1 */
2309 RCAR_GP_PIN(2, 14),
2310};
2311static const unsigned int msiof5_ss1_mux[] = {
2312 MSIOF5_SS1_MARK,
2313};
2314static const unsigned int msiof5_ss2_pins[] = {
2315 /* MSIOF5_SS2 */
2316 RCAR_GP_PIN(2, 15),
2317};
2318static const unsigned int msiof5_ss2_mux[] = {
2319 MSIOF5_SS2_MARK,
2320};
2321static const unsigned int msiof5_txd_pins[] = {
2322 /* MSIOF5_TXD */
2323 RCAR_GP_PIN(2, 11),
2324};
2325static const unsigned int msiof5_txd_mux[] = {
2326 MSIOF5_TXD_MARK,
2327};
2328static const unsigned int msiof5_rxd_pins[] = {
2329 /* MSIOF5_RXD */
2330 RCAR_GP_PIN(2, 10),
2331};
2332static const unsigned int msiof5_rxd_mux[] = {
2333 MSIOF5_RXD_MARK,
2334};
2335
2336/* - PWM0 ------------------------------------------------------------------- */
2337static const unsigned int pwm0_pins[] = {
2338 /* PWM0 */
2339 RCAR_GP_PIN(3, 5),
2340};
2341static const unsigned int pwm0_mux[] = {
2342 PWM0_MARK,
2343};
2344
2345/* - PWM1 ------------------------------------------------------------------- */
2346static const unsigned int pwm1_pins[] = {
2347 /* PWM1 */
2348 RCAR_GP_PIN(3, 6),
2349};
2350static const unsigned int pwm1_mux[] = {
2351 PWM1_MARK,
2352};
2353
2354/* - PWM2 ------------------------------------------------------------------- */
2355static const unsigned int pwm2_pins[] = {
2356 /* PWM2 */
2357 RCAR_GP_PIN(3, 7),
2358};
2359static const unsigned int pwm2_mux[] = {
2360 PWM2_MARK,
2361};
2362
2363/* - PWM3 ------------------------------------------------------------------- */
2364static const unsigned int pwm3_pins[] = {
2365 /* PWM3 */
2366 RCAR_GP_PIN(3, 8),
2367};
2368static const unsigned int pwm3_mux[] = {
2369 PWM3_MARK,
2370};
2371
2372/* - PWM4 ------------------------------------------------------------------- */
2373static const unsigned int pwm4_pins[] = {
2374 /* PWM4 */
2375 RCAR_GP_PIN(3, 9),
2376};
2377static const unsigned int pwm4_mux[] = {
2378 PWM4_MARK,
2379};
2380
2381/* - QSPI0 ------------------------------------------------------------------ */
2382static const unsigned int qspi0_ctrl_pins[] = {
2383 /* SPCLK, SSL */
2384 RCAR_GP_PIN(0, 0), RCAR_GP_PIN(0, 5),
2385};
2386static const unsigned int qspi0_ctrl_mux[] = {
2387 QSPI0_SPCLK_MARK, QSPI0_SSL_MARK,
2388};
Marek Vasut4ecc1832023-01-26 21:01:47 +01002389static const unsigned int qspi0_data_pins[] = {
Marek Vasut4dbc6532021-04-27 01:55:54 +02002390 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2391 RCAR_GP_PIN(0, 1), RCAR_GP_PIN(0, 2),
2392 RCAR_GP_PIN(0, 3), RCAR_GP_PIN(0, 4),
2393};
Marek Vasut4ecc1832023-01-26 21:01:47 +01002394static const unsigned int qspi0_data_mux[] = {
Marek Vasut4dbc6532021-04-27 01:55:54 +02002395 QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
2396 QSPI0_IO2_MARK, QSPI0_IO3_MARK
2397};
2398
2399/* - QSPI1 ------------------------------------------------------------------ */
2400static const unsigned int qspi1_ctrl_pins[] = {
2401 /* SPCLK, SSL */
2402 RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 11),
2403};
2404static const unsigned int qspi1_ctrl_mux[] = {
2405 QSPI1_SPCLK_MARK, QSPI1_SSL_MARK,
2406};
Marek Vasut4ecc1832023-01-26 21:01:47 +01002407static const unsigned int qspi1_data_pins[] = {
Marek Vasut4dbc6532021-04-27 01:55:54 +02002408 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2409 RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 8),
2410 RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10),
2411};
Marek Vasut4ecc1832023-01-26 21:01:47 +01002412static const unsigned int qspi1_data_mux[] = {
Marek Vasut4dbc6532021-04-27 01:55:54 +02002413 QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
2414 QSPI1_IO2_MARK, QSPI1_IO3_MARK
2415};
2416
2417/* - SCIF0 ------------------------------------------------------------------ */
2418static const unsigned int scif0_data_pins[] = {
2419 /* RX0, TX0 */
2420 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 5),
2421};
2422static const unsigned int scif0_data_mux[] = {
2423 RX0_MARK, TX0_MARK,
2424};
2425static const unsigned int scif0_clk_pins[] = {
2426 /* SCK0 */
2427 RCAR_GP_PIN(1, 2),
2428};
2429static const unsigned int scif0_clk_mux[] = {
2430 SCK0_MARK,
2431};
2432static const unsigned int scif0_ctrl_pins[] = {
2433 /* RTS0#, CTS0# */
2434 RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 4),
2435};
2436static const unsigned int scif0_ctrl_mux[] = {
2437 RTS0_N_MARK, CTS0_N_MARK,
2438};
2439
2440/* - SCIF1 ------------------------------------------------------------------ */
2441static const unsigned int scif1_data_a_pins[] = {
2442 /* RX, TX */
2443 RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 22),
2444};
2445static const unsigned int scif1_data_a_mux[] = {
2446 RX1_A_MARK, TX1_A_MARK,
2447};
2448static const unsigned int scif1_data_b_pins[] = {
2449 /* RX, TX */
2450 RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 1),
2451};
2452static const unsigned int scif1_data_b_mux[] = {
2453 RX1_B_MARK, TX1_B_MARK,
2454};
2455static const unsigned int scif1_clk_pins[] = {
2456 /* SCK1 */
2457 RCAR_GP_PIN(1, 18),
2458};
2459static const unsigned int scif1_clk_mux[] = {
2460 SCK1_MARK,
2461};
2462static const unsigned int scif1_ctrl_pins[] = {
2463 /* RTS1#, CTS1# */
2464 RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19),
2465};
2466static const unsigned int scif1_ctrl_mux[] = {
2467 RTS1_N_MARK, CTS1_N_MARK,
2468};
2469
2470/* - SCIF3 ------------------------------------------------------------------ */
2471static const unsigned int scif3_data_pins[] = {
2472 /* RX3, TX3 */
2473 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 17),
2474};
2475static const unsigned int scif3_data_mux[] = {
2476 RX3_MARK, TX3_MARK,
2477};
2478static const unsigned int scif3_clk_pins[] = {
2479 /* SCK3 */
2480 RCAR_GP_PIN(1, 13),
2481};
2482static const unsigned int scif3_clk_mux[] = {
2483 SCK3_MARK,
2484};
2485static const unsigned int scif3_ctrl_pins[] = {
2486 /* RTS3#, CTS3# */
2487 RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14),
2488};
2489static const unsigned int scif3_ctrl_mux[] = {
2490 RTS3_N_MARK, CTS3_N_MARK,
2491};
2492
2493/* - SCIF4 ------------------------------------------------------------------ */
2494static const unsigned int scif4_data_pins[] = {
2495 /* RX4, TX4 */
2496 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
2497};
2498static const unsigned int scif4_data_mux[] = {
2499 RX4_MARK, TX4_MARK,
2500};
2501static const unsigned int scif4_clk_pins[] = {
2502 /* SCK4 */
2503 RCAR_GP_PIN(2, 5),
2504};
2505static const unsigned int scif4_clk_mux[] = {
2506 SCK4_MARK,
2507};
2508static const unsigned int scif4_ctrl_pins[] = {
2509 /* RTS4#, CTS4# */
2510 RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 6),
2511};
2512static const unsigned int scif4_ctrl_mux[] = {
2513 RTS4_N_MARK, CTS4_N_MARK,
2514};
2515
2516/* - SCIF Clock ------------------------------------------------------------- */
2517static const unsigned int scif_clk_pins[] = {
2518 /* SCIF_CLK */
2519 RCAR_GP_PIN(1, 0),
2520};
2521static const unsigned int scif_clk_mux[] = {
2522 SCIF_CLK_MARK,
2523};
2524
2525/* - TMU -------------------------------------------------------------------- */
2526static const unsigned int tmu_tclk1_a_pins[] = {
2527 /* TCLK1 */
2528 RCAR_GP_PIN(2, 23),
2529};
2530static const unsigned int tmu_tclk1_a_mux[] = {
2531 TCLK1_A_MARK,
2532};
2533static const unsigned int tmu_tclk1_b_pins[] = {
2534 /* TCLK1 */
2535 RCAR_GP_PIN(1, 23),
2536};
2537static const unsigned int tmu_tclk1_b_mux[] = {
2538 TCLK1_B_MARK,
2539};
2540
2541static const unsigned int tmu_tclk2_a_pins[] = {
2542 /* TCLK2 */
2543 RCAR_GP_PIN(2, 24),
2544};
2545static const unsigned int tmu_tclk2_a_mux[] = {
2546 TCLK2_A_MARK,
2547};
2548static const unsigned int tmu_tclk2_b_pins[] = {
2549 /* TCLK2 */
2550 RCAR_GP_PIN(2, 10),
2551};
2552static const unsigned int tmu_tclk2_b_mux[] = {
2553 TCLK2_B_MARK,
2554};
2555
2556static const unsigned int tmu_tclk3_pins[] = {
2557 /* TCLK3 */
2558 RCAR_GP_PIN(2, 11),
2559};
2560static const unsigned int tmu_tclk3_mux[] = {
2561 TCLK3_MARK,
2562};
2563
2564static const unsigned int tmu_tclk4_pins[] = {
2565 /* TCLK4 */
2566 RCAR_GP_PIN(2, 12),
2567};
2568static const unsigned int tmu_tclk4_mux[] = {
2569 TCLK4_MARK,
2570};
2571
2572/* - TPU ------------------------------------------------------------------- */
2573static const unsigned int tpu_to0_pins[] = {
2574 /* TPU0TO0 */
2575 RCAR_GP_PIN(2, 21),
2576};
2577static const unsigned int tpu_to0_mux[] = {
2578 TPU0TO0_MARK,
2579};
2580static const unsigned int tpu_to1_pins[] = {
2581 /* TPU0TO1 */
2582 RCAR_GP_PIN(2, 22),
2583};
2584static const unsigned int tpu_to1_mux[] = {
2585 TPU0TO1_MARK,
2586};
2587static const unsigned int tpu_to2_pins[] = {
2588 /* TPU0TO2 */
2589 RCAR_GP_PIN(3, 5),
2590};
2591static const unsigned int tpu_to2_mux[] = {
2592 TPU0TO2_MARK,
2593};
2594static const unsigned int tpu_to3_pins[] = {
2595 /* TPU0TO3 */
2596 RCAR_GP_PIN(3, 6),
2597};
2598static const unsigned int tpu_to3_mux[] = {
2599 TPU0TO3_MARK,
2600};
2601
2602static const struct sh_pfc_pin_group pinmux_groups[] = {
2603 SH_PFC_PIN_GROUP(avb0_link),
2604 SH_PFC_PIN_GROUP(avb0_magic),
2605 SH_PFC_PIN_GROUP(avb0_phy_int),
2606 SH_PFC_PIN_GROUP(avb0_mdio),
2607 SH_PFC_PIN_GROUP(avb0_rgmii),
2608 SH_PFC_PIN_GROUP(avb0_txcrefclk),
2609 SH_PFC_PIN_GROUP(avb0_avtp_pps),
2610 SH_PFC_PIN_GROUP(avb0_avtp_capture),
2611 SH_PFC_PIN_GROUP(avb0_avtp_match),
2612
2613 SH_PFC_PIN_GROUP(avb1_link),
2614 SH_PFC_PIN_GROUP(avb1_magic),
2615 SH_PFC_PIN_GROUP(avb1_phy_int),
2616 SH_PFC_PIN_GROUP(avb1_mdio),
2617 SH_PFC_PIN_GROUP(avb1_rgmii),
2618 SH_PFC_PIN_GROUP(avb1_txcrefclk),
2619 SH_PFC_PIN_GROUP(avb1_avtp_pps),
2620 SH_PFC_PIN_GROUP(avb1_avtp_capture),
2621 SH_PFC_PIN_GROUP(avb1_avtp_match),
2622
2623 SH_PFC_PIN_GROUP(avb2_link),
2624 SH_PFC_PIN_GROUP(avb2_magic),
2625 SH_PFC_PIN_GROUP(avb2_phy_int),
2626 SH_PFC_PIN_GROUP(avb2_mdio),
2627 SH_PFC_PIN_GROUP(avb2_rgmii),
2628 SH_PFC_PIN_GROUP(avb2_txcrefclk),
2629 SH_PFC_PIN_GROUP(avb2_avtp_pps),
2630 SH_PFC_PIN_GROUP(avb2_avtp_capture),
2631 SH_PFC_PIN_GROUP(avb2_avtp_match),
2632
2633 SH_PFC_PIN_GROUP(avb3_link),
2634 SH_PFC_PIN_GROUP(avb3_magic),
2635 SH_PFC_PIN_GROUP(avb3_phy_int),
2636 SH_PFC_PIN_GROUP(avb3_mdio),
2637 SH_PFC_PIN_GROUP(avb3_rgmii),
2638 SH_PFC_PIN_GROUP(avb3_txcrefclk),
2639 SH_PFC_PIN_GROUP(avb3_avtp_pps),
2640 SH_PFC_PIN_GROUP(avb3_avtp_capture),
2641 SH_PFC_PIN_GROUP(avb3_avtp_match),
2642
2643 SH_PFC_PIN_GROUP(avb4_link),
2644 SH_PFC_PIN_GROUP(avb4_magic),
2645 SH_PFC_PIN_GROUP(avb4_phy_int),
2646 SH_PFC_PIN_GROUP(avb4_mdio),
2647 SH_PFC_PIN_GROUP(avb4_rgmii),
2648 SH_PFC_PIN_GROUP(avb4_txcrefclk),
2649 SH_PFC_PIN_GROUP(avb4_avtp_pps),
2650 SH_PFC_PIN_GROUP(avb4_avtp_capture),
2651 SH_PFC_PIN_GROUP(avb4_avtp_match),
2652
2653 SH_PFC_PIN_GROUP(avb5_link),
2654 SH_PFC_PIN_GROUP(avb5_magic),
2655 SH_PFC_PIN_GROUP(avb5_phy_int),
2656 SH_PFC_PIN_GROUP(avb5_mdio),
2657 SH_PFC_PIN_GROUP(avb5_rgmii),
2658 SH_PFC_PIN_GROUP(avb5_txcrefclk),
2659 SH_PFC_PIN_GROUP(avb5_avtp_pps),
2660 SH_PFC_PIN_GROUP(avb5_avtp_capture),
2661 SH_PFC_PIN_GROUP(avb5_avtp_match),
2662
2663 SH_PFC_PIN_GROUP(canfd0_data),
2664 SH_PFC_PIN_GROUP(canfd1_data),
2665 SH_PFC_PIN_GROUP(canfd2_data),
2666 SH_PFC_PIN_GROUP(canfd3_data),
2667 SH_PFC_PIN_GROUP(canfd4_data),
2668 SH_PFC_PIN_GROUP(canfd5_data),
2669 SH_PFC_PIN_GROUP(canfd6_data),
2670 SH_PFC_PIN_GROUP(canfd7_data),
2671 SH_PFC_PIN_GROUP(can_clk),
2672
2673 SH_PFC_PIN_GROUP(du_rgb888),
2674 SH_PFC_PIN_GROUP(du_clk_out),
2675 SH_PFC_PIN_GROUP(du_sync),
2676 SH_PFC_PIN_GROUP(du_oddf),
2677
2678 SH_PFC_PIN_GROUP(hscif0_data),
2679 SH_PFC_PIN_GROUP(hscif0_clk),
2680 SH_PFC_PIN_GROUP(hscif0_ctrl),
2681 SH_PFC_PIN_GROUP(hscif1_data),
2682 SH_PFC_PIN_GROUP(hscif1_clk),
2683 SH_PFC_PIN_GROUP(hscif1_ctrl),
2684 SH_PFC_PIN_GROUP(hscif2_data),
2685 SH_PFC_PIN_GROUP(hscif2_clk),
2686 SH_PFC_PIN_GROUP(hscif2_ctrl),
2687 SH_PFC_PIN_GROUP(hscif3_data),
2688 SH_PFC_PIN_GROUP(hscif3_clk),
2689 SH_PFC_PIN_GROUP(hscif3_ctrl),
2690
2691 SH_PFC_PIN_GROUP(i2c0),
2692 SH_PFC_PIN_GROUP(i2c1),
2693 SH_PFC_PIN_GROUP(i2c2),
2694 SH_PFC_PIN_GROUP(i2c3),
2695 SH_PFC_PIN_GROUP(i2c4),
2696 SH_PFC_PIN_GROUP(i2c5),
2697 SH_PFC_PIN_GROUP(i2c6),
2698
2699 SH_PFC_PIN_GROUP(intc_ex_irq0),
2700 SH_PFC_PIN_GROUP(intc_ex_irq1),
2701 SH_PFC_PIN_GROUP(intc_ex_irq2),
2702 SH_PFC_PIN_GROUP(intc_ex_irq3),
2703 SH_PFC_PIN_GROUP(intc_ex_irq4),
2704 SH_PFC_PIN_GROUP(intc_ex_irq5),
2705
Marek Vasut4ecc1832023-01-26 21:01:47 +01002706 BUS_DATA_PIN_GROUP(mmc_data, 1),
2707 BUS_DATA_PIN_GROUP(mmc_data, 4),
2708 BUS_DATA_PIN_GROUP(mmc_data, 8),
Marek Vasut4dbc6532021-04-27 01:55:54 +02002709 SH_PFC_PIN_GROUP(mmc_ctrl),
2710 SH_PFC_PIN_GROUP(mmc_cd),
2711 SH_PFC_PIN_GROUP(mmc_wp),
2712 SH_PFC_PIN_GROUP(mmc_ds),
2713
2714 SH_PFC_PIN_GROUP(msiof0_clk),
2715 SH_PFC_PIN_GROUP(msiof0_sync),
2716 SH_PFC_PIN_GROUP(msiof0_ss1),
2717 SH_PFC_PIN_GROUP(msiof0_ss2),
2718 SH_PFC_PIN_GROUP(msiof0_txd),
2719 SH_PFC_PIN_GROUP(msiof0_rxd),
2720 SH_PFC_PIN_GROUP(msiof1_clk),
2721 SH_PFC_PIN_GROUP(msiof1_sync),
2722 SH_PFC_PIN_GROUP(msiof1_ss1),
2723 SH_PFC_PIN_GROUP(msiof1_ss2),
2724 SH_PFC_PIN_GROUP(msiof1_txd),
2725 SH_PFC_PIN_GROUP(msiof1_rxd),
2726 SH_PFC_PIN_GROUP(msiof2_clk),
2727 SH_PFC_PIN_GROUP(msiof2_sync),
2728 SH_PFC_PIN_GROUP(msiof2_ss1),
2729 SH_PFC_PIN_GROUP(msiof2_ss2),
2730 SH_PFC_PIN_GROUP(msiof2_txd),
2731 SH_PFC_PIN_GROUP(msiof2_rxd),
2732 SH_PFC_PIN_GROUP(msiof3_clk),
2733 SH_PFC_PIN_GROUP(msiof3_sync),
2734 SH_PFC_PIN_GROUP(msiof3_ss1),
2735 SH_PFC_PIN_GROUP(msiof3_ss2),
2736 SH_PFC_PIN_GROUP(msiof3_txd),
2737 SH_PFC_PIN_GROUP(msiof3_rxd),
2738 SH_PFC_PIN_GROUP(msiof4_clk),
2739 SH_PFC_PIN_GROUP(msiof4_sync),
2740 SH_PFC_PIN_GROUP(msiof4_ss1),
2741 SH_PFC_PIN_GROUP(msiof4_ss2),
2742 SH_PFC_PIN_GROUP(msiof4_txd),
2743 SH_PFC_PIN_GROUP(msiof4_rxd),
2744 SH_PFC_PIN_GROUP(msiof5_clk),
2745 SH_PFC_PIN_GROUP(msiof5_sync),
2746 SH_PFC_PIN_GROUP(msiof5_ss1),
2747 SH_PFC_PIN_GROUP(msiof5_ss2),
2748 SH_PFC_PIN_GROUP(msiof5_txd),
2749 SH_PFC_PIN_GROUP(msiof5_rxd),
2750
2751 SH_PFC_PIN_GROUP(pwm0),
2752 SH_PFC_PIN_GROUP(pwm1),
2753 SH_PFC_PIN_GROUP(pwm2),
2754 SH_PFC_PIN_GROUP(pwm3),
2755 SH_PFC_PIN_GROUP(pwm4),
2756
2757 SH_PFC_PIN_GROUP(qspi0_ctrl),
Marek Vasut4ecc1832023-01-26 21:01:47 +01002758 BUS_DATA_PIN_GROUP(qspi0_data, 2),
2759 BUS_DATA_PIN_GROUP(qspi0_data, 4),
Marek Vasut4dbc6532021-04-27 01:55:54 +02002760 SH_PFC_PIN_GROUP(qspi1_ctrl),
Marek Vasut4ecc1832023-01-26 21:01:47 +01002761 BUS_DATA_PIN_GROUP(qspi1_data, 2),
2762 BUS_DATA_PIN_GROUP(qspi1_data, 4),
Marek Vasut4dbc6532021-04-27 01:55:54 +02002763
2764 SH_PFC_PIN_GROUP(scif0_data),
2765 SH_PFC_PIN_GROUP(scif0_clk),
2766 SH_PFC_PIN_GROUP(scif0_ctrl),
2767 SH_PFC_PIN_GROUP(scif1_data_a),
2768 SH_PFC_PIN_GROUP(scif1_data_b),
2769 SH_PFC_PIN_GROUP(scif1_clk),
2770 SH_PFC_PIN_GROUP(scif1_ctrl),
2771 SH_PFC_PIN_GROUP(scif3_data),
2772 SH_PFC_PIN_GROUP(scif3_clk),
2773 SH_PFC_PIN_GROUP(scif3_ctrl),
2774 SH_PFC_PIN_GROUP(scif4_data),
2775 SH_PFC_PIN_GROUP(scif4_clk),
2776 SH_PFC_PIN_GROUP(scif4_ctrl),
2777 SH_PFC_PIN_GROUP(scif_clk),
2778
2779 SH_PFC_PIN_GROUP(tmu_tclk1_a),
2780 SH_PFC_PIN_GROUP(tmu_tclk1_b),
2781 SH_PFC_PIN_GROUP(tmu_tclk2_a),
2782 SH_PFC_PIN_GROUP(tmu_tclk2_b),
2783 SH_PFC_PIN_GROUP(tmu_tclk3),
2784 SH_PFC_PIN_GROUP(tmu_tclk4),
2785
2786 SH_PFC_PIN_GROUP(tpu_to0),
2787 SH_PFC_PIN_GROUP(tpu_to1),
2788 SH_PFC_PIN_GROUP(tpu_to2),
2789 SH_PFC_PIN_GROUP(tpu_to3),
2790};
2791
2792static const char * const avb0_groups[] = {
2793 "avb0_link",
2794 "avb0_magic",
2795 "avb0_phy_int",
2796 "avb0_mdio",
2797 "avb0_rgmii",
2798 "avb0_txcrefclk",
2799 "avb0_avtp_pps",
2800 "avb0_avtp_capture",
2801 "avb0_avtp_match",
2802};
2803
2804static const char * const avb1_groups[] = {
2805 "avb1_link",
2806 "avb1_magic",
2807 "avb1_phy_int",
2808 "avb1_mdio",
2809 "avb1_rgmii",
2810 "avb1_txcrefclk",
2811 "avb1_avtp_pps",
2812 "avb1_avtp_capture",
2813 "avb1_avtp_match",
2814};
2815
2816static const char * const avb2_groups[] = {
2817 "avb2_link",
2818 "avb2_magic",
2819 "avb2_phy_int",
2820 "avb2_mdio",
2821 "avb2_rgmii",
2822 "avb2_txcrefclk",
2823 "avb2_avtp_pps",
2824 "avb2_avtp_capture",
2825 "avb2_avtp_match",
2826};
2827
2828static const char * const avb3_groups[] = {
2829 "avb3_link",
2830 "avb3_magic",
2831 "avb3_phy_int",
2832 "avb3_mdio",
2833 "avb3_rgmii",
2834 "avb3_txcrefclk",
2835 "avb3_avtp_pps",
2836 "avb3_avtp_capture",
2837 "avb3_avtp_match",
2838};
2839
2840static const char * const avb4_groups[] = {
2841 "avb4_link",
2842 "avb4_magic",
2843 "avb4_phy_int",
2844 "avb4_mdio",
2845 "avb4_rgmii",
2846 "avb4_txcrefclk",
2847 "avb4_avtp_pps",
2848 "avb4_avtp_capture",
2849 "avb4_avtp_match",
2850};
2851
2852static const char * const avb5_groups[] = {
2853 "avb5_link",
2854 "avb5_magic",
2855 "avb5_phy_int",
2856 "avb5_mdio",
2857 "avb5_rgmii",
2858 "avb5_txcrefclk",
2859 "avb5_avtp_pps",
2860 "avb5_avtp_capture",
2861 "avb5_avtp_match",
2862};
2863
2864static const char * const canfd0_groups[] = {
2865 "canfd0_data",
2866};
2867
2868static const char * const canfd1_groups[] = {
2869 "canfd1_data",
2870};
2871
2872static const char * const canfd2_groups[] = {
2873 "canfd2_data",
2874};
2875
2876static const char * const canfd3_groups[] = {
2877 "canfd3_data",
2878};
2879
2880static const char * const canfd4_groups[] = {
2881 "canfd4_data",
2882};
2883
2884static const char * const canfd5_groups[] = {
2885 "canfd5_data",
2886};
2887
2888static const char * const canfd6_groups[] = {
2889 "canfd6_data",
2890};
2891
2892static const char * const canfd7_groups[] = {
2893 "canfd7_data",
2894};
2895
2896static const char * const can_clk_groups[] = {
2897 "can_clk",
2898};
2899
2900static const char * const du_groups[] = {
2901 "du_rgb888",
2902 "du_clk_out",
2903 "du_sync",
2904 "du_oddf",
2905};
2906
2907static const char * const hscif0_groups[] = {
2908 "hscif0_data",
2909 "hscif0_clk",
2910 "hscif0_ctrl",
2911};
2912
2913static const char * const hscif1_groups[] = {
2914 "hscif1_data",
2915 "hscif1_clk",
2916 "hscif1_ctrl",
2917};
2918
2919static const char * const hscif2_groups[] = {
2920 "hscif2_data",
2921 "hscif2_clk",
2922 "hscif2_ctrl",
2923};
2924
2925static const char * const hscif3_groups[] = {
2926 "hscif3_data",
2927 "hscif3_clk",
2928 "hscif3_ctrl",
2929};
2930
2931static const char * const i2c0_groups[] = {
2932 "i2c0",
2933};
2934
2935static const char * const i2c1_groups[] = {
2936 "i2c1",
2937};
2938
2939static const char * const i2c2_groups[] = {
2940 "i2c2",
2941};
2942
2943static const char * const i2c3_groups[] = {
2944 "i2c3",
2945};
2946
2947static const char * const i2c4_groups[] = {
2948 "i2c4",
2949};
2950
2951static const char * const i2c5_groups[] = {
2952 "i2c5",
2953};
2954
2955static const char * const i2c6_groups[] = {
2956 "i2c6",
2957};
2958
2959static const char * const intc_ex_groups[] = {
2960 "intc_ex_irq0",
2961 "intc_ex_irq1",
2962 "intc_ex_irq2",
2963 "intc_ex_irq3",
2964 "intc_ex_irq4",
2965 "intc_ex_irq5",
2966};
2967
2968static const char * const mmc_groups[] = {
2969 "mmc_data1",
2970 "mmc_data4",
2971 "mmc_data8",
2972 "mmc_ctrl",
2973 "mmc_cd",
2974 "mmc_wp",
2975 "mmc_ds",
2976};
2977
2978static const char * const msiof0_groups[] = {
2979 "msiof0_clk",
2980 "msiof0_sync",
2981 "msiof0_ss1",
2982 "msiof0_ss2",
2983 "msiof0_txd",
2984 "msiof0_rxd",
2985};
2986
2987static const char * const msiof1_groups[] = {
2988 "msiof1_clk",
2989 "msiof1_sync",
2990 "msiof1_ss1",
2991 "msiof1_ss2",
2992 "msiof1_txd",
2993 "msiof1_rxd",
2994};
2995
2996static const char * const msiof2_groups[] = {
2997 "msiof2_clk",
2998 "msiof2_sync",
2999 "msiof2_ss1",
3000 "msiof2_ss2",
3001 "msiof2_txd",
3002 "msiof2_rxd",
3003};
3004
3005static const char * const msiof3_groups[] = {
3006 "msiof3_clk",
3007 "msiof3_sync",
3008 "msiof3_ss1",
3009 "msiof3_ss2",
3010 "msiof3_txd",
3011 "msiof3_rxd",
3012};
3013
3014static const char * const msiof4_groups[] = {
3015 "msiof4_clk",
3016 "msiof4_sync",
3017 "msiof4_ss1",
3018 "msiof4_ss2",
3019 "msiof4_txd",
3020 "msiof4_rxd",
3021};
3022
3023static const char * const msiof5_groups[] = {
3024 "msiof5_clk",
3025 "msiof5_sync",
3026 "msiof5_ss1",
3027 "msiof5_ss2",
3028 "msiof5_txd",
3029 "msiof5_rxd",
3030};
3031
3032static const char * const pwm0_groups[] = {
3033 "pwm0",
3034};
3035
3036static const char * const pwm1_groups[] = {
3037 "pwm1",
3038};
3039
3040static const char * const pwm2_groups[] = {
3041 "pwm2",
3042};
3043
3044static const char * const pwm3_groups[] = {
3045 "pwm3",
3046};
3047
3048static const char * const pwm4_groups[] = {
3049 "pwm4",
3050};
3051
3052static const char * const qspi0_groups[] = {
3053 "qspi0_ctrl",
3054 "qspi0_data2",
3055 "qspi0_data4",
3056};
3057
3058static const char * const qspi1_groups[] = {
3059 "qspi1_ctrl",
3060 "qspi1_data2",
3061 "qspi1_data4",
3062};
3063
3064static const char * const scif0_groups[] = {
3065 "scif0_data",
3066 "scif0_clk",
3067 "scif0_ctrl",
3068};
3069
3070static const char * const scif1_groups[] = {
3071 "scif1_data_a",
3072 "scif1_data_b",
3073 "scif1_clk",
3074 "scif1_ctrl",
3075};
3076
3077static const char * const scif3_groups[] = {
3078 "scif3_data",
3079 "scif3_clk",
3080 "scif3_ctrl",
3081};
3082
3083static const char * const scif4_groups[] = {
3084 "scif4_data",
3085 "scif4_clk",
3086 "scif4_ctrl",
3087};
3088
3089static const char * const scif_clk_groups[] = {
3090 "scif_clk",
3091};
3092
3093static const char * const tmu_groups[] = {
3094 "tmu_tclk1_a",
3095 "tmu_tclk1_b",
3096 "tmu_tclk2_a",
3097 "tmu_tclk2_b",
3098 "tmu_tclk3",
3099 "tmu_tclk4",
3100};
3101
3102static const char * const tpu_groups[] = {
3103 "tpu_to0",
3104 "tpu_to1",
3105 "tpu_to2",
3106 "tpu_to3",
3107};
3108
3109static const struct sh_pfc_function pinmux_functions[] = {
3110 SH_PFC_FUNCTION(avb0),
3111 SH_PFC_FUNCTION(avb1),
3112 SH_PFC_FUNCTION(avb2),
3113 SH_PFC_FUNCTION(avb3),
3114 SH_PFC_FUNCTION(avb4),
3115 SH_PFC_FUNCTION(avb5),
3116
3117 SH_PFC_FUNCTION(canfd0),
3118 SH_PFC_FUNCTION(canfd1),
3119 SH_PFC_FUNCTION(canfd2),
3120 SH_PFC_FUNCTION(canfd3),
3121 SH_PFC_FUNCTION(canfd4),
3122 SH_PFC_FUNCTION(canfd5),
3123 SH_PFC_FUNCTION(canfd6),
3124 SH_PFC_FUNCTION(canfd7),
3125 SH_PFC_FUNCTION(can_clk),
3126
3127 SH_PFC_FUNCTION(du),
3128
3129 SH_PFC_FUNCTION(hscif0),
3130 SH_PFC_FUNCTION(hscif1),
3131 SH_PFC_FUNCTION(hscif2),
3132 SH_PFC_FUNCTION(hscif3),
3133
3134 SH_PFC_FUNCTION(i2c0),
3135 SH_PFC_FUNCTION(i2c1),
3136 SH_PFC_FUNCTION(i2c2),
3137 SH_PFC_FUNCTION(i2c3),
3138 SH_PFC_FUNCTION(i2c4),
3139 SH_PFC_FUNCTION(i2c5),
3140 SH_PFC_FUNCTION(i2c6),
3141
3142 SH_PFC_FUNCTION(intc_ex),
3143
3144 SH_PFC_FUNCTION(mmc),
3145
3146 SH_PFC_FUNCTION(msiof0),
3147 SH_PFC_FUNCTION(msiof1),
3148 SH_PFC_FUNCTION(msiof2),
3149 SH_PFC_FUNCTION(msiof3),
3150 SH_PFC_FUNCTION(msiof4),
3151 SH_PFC_FUNCTION(msiof5),
3152
3153 SH_PFC_FUNCTION(pwm0),
3154 SH_PFC_FUNCTION(pwm1),
3155 SH_PFC_FUNCTION(pwm2),
3156 SH_PFC_FUNCTION(pwm3),
3157 SH_PFC_FUNCTION(pwm4),
3158
3159 SH_PFC_FUNCTION(qspi0),
3160 SH_PFC_FUNCTION(qspi1),
3161
3162 SH_PFC_FUNCTION(scif0),
3163 SH_PFC_FUNCTION(scif1),
3164 SH_PFC_FUNCTION(scif3),
3165 SH_PFC_FUNCTION(scif4),
3166 SH_PFC_FUNCTION(scif_clk),
3167
3168 SH_PFC_FUNCTION(tmu),
3169
3170 SH_PFC_FUNCTION(tpu),
3171};
3172
3173static const struct pinmux_cfg_reg pinmux_config_regs[] = {
3174#define F_(x, y) FN_##y
3175#define FM(x) FN_##x
3176 { PINMUX_CFG_REG("GPSR0", 0xe6058040, 32, 1, GROUP(
3177 0, 0,
3178 0, 0,
3179 0, 0,
3180 0, 0,
3181 GP_0_27_FN, GPSR0_27,
3182 GP_0_26_FN, GPSR0_26,
3183 GP_0_25_FN, GPSR0_25,
3184 GP_0_24_FN, GPSR0_24,
3185 GP_0_23_FN, GPSR0_23,
3186 GP_0_22_FN, GPSR0_22,
3187 GP_0_21_FN, GPSR0_21,
3188 GP_0_20_FN, GPSR0_20,
3189 GP_0_19_FN, GPSR0_19,
3190 GP_0_18_FN, GPSR0_18,
3191 GP_0_17_FN, GPSR0_17,
3192 GP_0_16_FN, GPSR0_16,
3193 GP_0_15_FN, GPSR0_15,
3194 GP_0_14_FN, GPSR0_14,
3195 GP_0_13_FN, GPSR0_13,
3196 GP_0_12_FN, GPSR0_12,
3197 GP_0_11_FN, GPSR0_11,
3198 GP_0_10_FN, GPSR0_10,
3199 GP_0_9_FN, GPSR0_9,
3200 GP_0_8_FN, GPSR0_8,
3201 GP_0_7_FN, GPSR0_7,
3202 GP_0_6_FN, GPSR0_6,
3203 GP_0_5_FN, GPSR0_5,
3204 GP_0_4_FN, GPSR0_4,
3205 GP_0_3_FN, GPSR0_3,
3206 GP_0_2_FN, GPSR0_2,
3207 GP_0_1_FN, GPSR0_1,
3208 GP_0_0_FN, GPSR0_0, ))
3209 },
3210 { PINMUX_CFG_REG("GPSR1", 0xe6050040, 32, 1, GROUP(
3211 0, 0,
3212 GP_1_30_FN, GPSR1_30,
3213 GP_1_29_FN, GPSR1_29,
3214 GP_1_28_FN, GPSR1_28,
3215 GP_1_27_FN, GPSR1_27,
3216 GP_1_26_FN, GPSR1_26,
3217 GP_1_25_FN, GPSR1_25,
3218 GP_1_24_FN, GPSR1_24,
3219 GP_1_23_FN, GPSR1_23,
3220 GP_1_22_FN, GPSR1_22,
3221 GP_1_21_FN, GPSR1_21,
3222 GP_1_20_FN, GPSR1_20,
3223 GP_1_19_FN, GPSR1_19,
3224 GP_1_18_FN, GPSR1_18,
3225 GP_1_17_FN, GPSR1_17,
3226 GP_1_16_FN, GPSR1_16,
3227 GP_1_15_FN, GPSR1_15,
3228 GP_1_14_FN, GPSR1_14,
3229 GP_1_13_FN, GPSR1_13,
3230 GP_1_12_FN, GPSR1_12,
3231 GP_1_11_FN, GPSR1_11,
3232 GP_1_10_FN, GPSR1_10,
3233 GP_1_9_FN, GPSR1_9,
3234 GP_1_8_FN, GPSR1_8,
3235 GP_1_7_FN, GPSR1_7,
3236 GP_1_6_FN, GPSR1_6,
3237 GP_1_5_FN, GPSR1_5,
3238 GP_1_4_FN, GPSR1_4,
3239 GP_1_3_FN, GPSR1_3,
3240 GP_1_2_FN, GPSR1_2,
3241 GP_1_1_FN, GPSR1_1,
3242 GP_1_0_FN, GPSR1_0, ))
3243 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003244 { PINMUX_CFG_REG_VAR("GPSR2", 0xe6050840, 32,
3245 GROUP(-7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3246 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3247 GROUP(
3248 /* GP2_31_25 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003249 GP_2_24_FN, GPSR2_24,
3250 GP_2_23_FN, GPSR2_23,
3251 GP_2_22_FN, GPSR2_22,
3252 GP_2_21_FN, GPSR2_21,
3253 GP_2_20_FN, GPSR2_20,
3254 GP_2_19_FN, GPSR2_19,
3255 GP_2_18_FN, GPSR2_18,
3256 GP_2_17_FN, GPSR2_17,
3257 GP_2_16_FN, GPSR2_16,
3258 GP_2_15_FN, GPSR2_15,
3259 GP_2_14_FN, GPSR2_14,
3260 GP_2_13_FN, GPSR2_13,
3261 GP_2_12_FN, GPSR2_12,
3262 GP_2_11_FN, GPSR2_11,
3263 GP_2_10_FN, GPSR2_10,
3264 GP_2_9_FN, GPSR2_9,
3265 GP_2_8_FN, GPSR2_8,
3266 GP_2_7_FN, GPSR2_7,
3267 GP_2_6_FN, GPSR2_6,
3268 GP_2_5_FN, GPSR2_5,
3269 GP_2_4_FN, GPSR2_4,
3270 GP_2_3_FN, GPSR2_3,
3271 GP_2_2_FN, GPSR2_2,
3272 GP_2_1_FN, GPSR2_1,
3273 GP_2_0_FN, GPSR2_0, ))
3274 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003275 { PINMUX_CFG_REG_VAR("GPSR3", 0xe6058840, 32,
3276 GROUP(-15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3277 1, 1, 1, 1, 1, 1),
3278 GROUP(
3279 /* GP3_31_17 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003280 GP_3_16_FN, GPSR3_16,
3281 GP_3_15_FN, GPSR3_15,
3282 GP_3_14_FN, GPSR3_14,
3283 GP_3_13_FN, GPSR3_13,
3284 GP_3_12_FN, GPSR3_12,
3285 GP_3_11_FN, GPSR3_11,
3286 GP_3_10_FN, GPSR3_10,
3287 GP_3_9_FN, GPSR3_9,
3288 GP_3_8_FN, GPSR3_8,
3289 GP_3_7_FN, GPSR3_7,
3290 GP_3_6_FN, GPSR3_6,
3291 GP_3_5_FN, GPSR3_5,
3292 GP_3_4_FN, GPSR3_4,
3293 GP_3_3_FN, GPSR3_3,
3294 GP_3_2_FN, GPSR3_2,
3295 GP_3_1_FN, GPSR3_1,
3296 GP_3_0_FN, GPSR3_0, ))
3297 },
3298 { PINMUX_CFG_REG("GPSR4", 0xe6060040, 32, 1, GROUP(
3299 0, 0,
3300 0, 0,
3301 0, 0,
3302 0, 0,
3303 0, 0,
3304 GP_4_26_FN, GPSR4_26,
3305 GP_4_25_FN, GPSR4_25,
3306 GP_4_24_FN, GPSR4_24,
3307 GP_4_23_FN, GPSR4_23,
3308 GP_4_22_FN, GPSR4_22,
3309 GP_4_21_FN, GPSR4_21,
3310 GP_4_20_FN, GPSR4_20,
3311 GP_4_19_FN, GPSR4_19,
3312 GP_4_18_FN, GPSR4_18,
3313 GP_4_17_FN, GPSR4_17,
3314 GP_4_16_FN, GPSR4_16,
3315 GP_4_15_FN, GPSR4_15,
3316 GP_4_14_FN, GPSR4_14,
3317 GP_4_13_FN, GPSR4_13,
3318 GP_4_12_FN, GPSR4_12,
3319 GP_4_11_FN, GPSR4_11,
3320 GP_4_10_FN, GPSR4_10,
3321 GP_4_9_FN, GPSR4_9,
3322 GP_4_8_FN, GPSR4_8,
3323 GP_4_7_FN, GPSR4_7,
3324 GP_4_6_FN, GPSR4_6,
3325 GP_4_5_FN, GPSR4_5,
3326 GP_4_4_FN, GPSR4_4,
3327 GP_4_3_FN, GPSR4_3,
3328 GP_4_2_FN, GPSR4_2,
3329 GP_4_1_FN, GPSR4_1,
3330 GP_4_0_FN, GPSR4_0, ))
3331 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003332 { PINMUX_CFG_REG_VAR("GPSR5", 0xe6060840, 32,
3333 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3334 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3335 GROUP(
3336 /* GP5_31_21 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003337 GP_5_20_FN, GPSR5_20,
3338 GP_5_19_FN, GPSR5_19,
3339 GP_5_18_FN, GPSR5_18,
3340 GP_5_17_FN, GPSR5_17,
3341 GP_5_16_FN, GPSR5_16,
3342 GP_5_15_FN, GPSR5_15,
3343 GP_5_14_FN, GPSR5_14,
3344 GP_5_13_FN, GPSR5_13,
3345 GP_5_12_FN, GPSR5_12,
3346 GP_5_11_FN, GPSR5_11,
3347 GP_5_10_FN, GPSR5_10,
3348 GP_5_9_FN, GPSR5_9,
3349 GP_5_8_FN, GPSR5_8,
3350 GP_5_7_FN, GPSR5_7,
3351 GP_5_6_FN, GPSR5_6,
3352 GP_5_5_FN, GPSR5_5,
3353 GP_5_4_FN, GPSR5_4,
3354 GP_5_3_FN, GPSR5_3,
3355 GP_5_2_FN, GPSR5_2,
3356 GP_5_1_FN, GPSR5_1,
3357 GP_5_0_FN, GPSR5_0, ))
3358 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003359 { PINMUX_CFG_REG_VAR("GPSR6", 0xe6068040, 32,
3360 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3361 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3362 GROUP(
3363 /* GP6_31_21 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003364 GP_6_20_FN, GPSR6_20,
3365 GP_6_19_FN, GPSR6_19,
3366 GP_6_18_FN, GPSR6_18,
3367 GP_6_17_FN, GPSR6_17,
3368 GP_6_16_FN, GPSR6_16,
3369 GP_6_15_FN, GPSR6_15,
3370 GP_6_14_FN, GPSR6_14,
3371 GP_6_13_FN, GPSR6_13,
3372 GP_6_12_FN, GPSR6_12,
3373 GP_6_11_FN, GPSR6_11,
3374 GP_6_10_FN, GPSR6_10,
3375 GP_6_9_FN, GPSR6_9,
3376 GP_6_8_FN, GPSR6_8,
3377 GP_6_7_FN, GPSR6_7,
3378 GP_6_6_FN, GPSR6_6,
3379 GP_6_5_FN, GPSR6_5,
3380 GP_6_4_FN, GPSR6_4,
3381 GP_6_3_FN, GPSR6_3,
3382 GP_6_2_FN, GPSR6_2,
3383 GP_6_1_FN, GPSR6_1,
3384 GP_6_0_FN, GPSR6_0, ))
3385 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003386 { PINMUX_CFG_REG_VAR("GPSR7", 0xe6068840, 32,
3387 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3389 GROUP(
3390 /* GP7_31_21 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003391 GP_7_20_FN, GPSR7_20,
3392 GP_7_19_FN, GPSR7_19,
3393 GP_7_18_FN, GPSR7_18,
3394 GP_7_17_FN, GPSR7_17,
3395 GP_7_16_FN, GPSR7_16,
3396 GP_7_15_FN, GPSR7_15,
3397 GP_7_14_FN, GPSR7_14,
3398 GP_7_13_FN, GPSR7_13,
3399 GP_7_12_FN, GPSR7_12,
3400 GP_7_11_FN, GPSR7_11,
3401 GP_7_10_FN, GPSR7_10,
3402 GP_7_9_FN, GPSR7_9,
3403 GP_7_8_FN, GPSR7_8,
3404 GP_7_7_FN, GPSR7_7,
3405 GP_7_6_FN, GPSR7_6,
3406 GP_7_5_FN, GPSR7_5,
3407 GP_7_4_FN, GPSR7_4,
3408 GP_7_3_FN, GPSR7_3,
3409 GP_7_2_FN, GPSR7_2,
3410 GP_7_1_FN, GPSR7_1,
3411 GP_7_0_FN, GPSR7_0, ))
3412 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003413 { PINMUX_CFG_REG_VAR("GPSR8", 0xe6069040, 32,
3414 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3415 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3416 GROUP(
3417 /* GP8_31_21 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003418 GP_8_20_FN, GPSR8_20,
3419 GP_8_19_FN, GPSR8_19,
3420 GP_8_18_FN, GPSR8_18,
3421 GP_8_17_FN, GPSR8_17,
3422 GP_8_16_FN, GPSR8_16,
3423 GP_8_15_FN, GPSR8_15,
3424 GP_8_14_FN, GPSR8_14,
3425 GP_8_13_FN, GPSR8_13,
3426 GP_8_12_FN, GPSR8_12,
3427 GP_8_11_FN, GPSR8_11,
3428 GP_8_10_FN, GPSR8_10,
3429 GP_8_9_FN, GPSR8_9,
3430 GP_8_8_FN, GPSR8_8,
3431 GP_8_7_FN, GPSR8_7,
3432 GP_8_6_FN, GPSR8_6,
3433 GP_8_5_FN, GPSR8_5,
3434 GP_8_4_FN, GPSR8_4,
3435 GP_8_3_FN, GPSR8_3,
3436 GP_8_2_FN, GPSR8_2,
3437 GP_8_1_FN, GPSR8_1,
3438 GP_8_0_FN, GPSR8_0, ))
3439 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003440 { PINMUX_CFG_REG_VAR("GPSR9", 0xe6069840, 32,
3441 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3443 GROUP(
3444 /* GP9_31_21 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003445 GP_9_20_FN, GPSR9_20,
3446 GP_9_19_FN, GPSR9_19,
3447 GP_9_18_FN, GPSR9_18,
3448 GP_9_17_FN, GPSR9_17,
3449 GP_9_16_FN, GPSR9_16,
3450 GP_9_15_FN, GPSR9_15,
3451 GP_9_14_FN, GPSR9_14,
3452 GP_9_13_FN, GPSR9_13,
3453 GP_9_12_FN, GPSR9_12,
3454 GP_9_11_FN, GPSR9_11,
3455 GP_9_10_FN, GPSR9_10,
3456 GP_9_9_FN, GPSR9_9,
3457 GP_9_8_FN, GPSR9_8,
3458 GP_9_7_FN, GPSR9_7,
3459 GP_9_6_FN, GPSR9_6,
3460 GP_9_5_FN, GPSR9_5,
3461 GP_9_4_FN, GPSR9_4,
3462 GP_9_3_FN, GPSR9_3,
3463 GP_9_2_FN, GPSR9_2,
3464 GP_9_1_FN, GPSR9_1,
3465 GP_9_0_FN, GPSR9_0, ))
3466 },
3467#undef F_
3468#undef FM
3469
3470#define F_(x, y) x,
3471#define FM(x) FN_##x,
3472 { PINMUX_CFG_REG("IP0SR1", 0xe6050060, 32, 4, GROUP(
3473 IP0SR1_31_28
3474 IP0SR1_27_24
3475 IP0SR1_23_20
3476 IP0SR1_19_16
3477 IP0SR1_15_12
3478 IP0SR1_11_8
3479 IP0SR1_7_4
3480 IP0SR1_3_0))
3481 },
3482 { PINMUX_CFG_REG("IP1SR1", 0xe6050064, 32, 4, GROUP(
3483 IP1SR1_31_28
3484 IP1SR1_27_24
3485 IP1SR1_23_20
3486 IP1SR1_19_16
3487 IP1SR1_15_12
3488 IP1SR1_11_8
3489 IP1SR1_7_4
3490 IP1SR1_3_0))
3491 },
3492 { PINMUX_CFG_REG("IP2SR1", 0xe6050068, 32, 4, GROUP(
3493 IP2SR1_31_28
3494 IP2SR1_27_24
3495 IP2SR1_23_20
3496 IP2SR1_19_16
3497 IP2SR1_15_12
3498 IP2SR1_11_8
3499 IP2SR1_7_4
3500 IP2SR1_3_0))
3501 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003502 { PINMUX_CFG_REG_VAR("IP3SR1", 0xe605006c, 32,
3503 GROUP(-4, 4, 4, 4, 4, 4, 4, 4),
3504 GROUP(
3505 /* IP3SR1_31_28 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003506 IP3SR1_27_24
3507 IP3SR1_23_20
3508 IP3SR1_19_16
3509 IP3SR1_15_12
3510 IP3SR1_11_8
3511 IP3SR1_7_4
3512 IP3SR1_3_0))
3513 },
3514 { PINMUX_CFG_REG("IP0SR2", 0xe6050860, 32, 4, GROUP(
3515 IP0SR2_31_28
3516 IP0SR2_27_24
3517 IP0SR2_23_20
3518 IP0SR2_19_16
3519 IP0SR2_15_12
3520 IP0SR2_11_8
3521 IP0SR2_7_4
3522 IP0SR2_3_0))
3523 },
3524 { PINMUX_CFG_REG("IP1SR2", 0xe6050864, 32, 4, GROUP(
3525 IP1SR2_31_28
3526 IP1SR2_27_24
3527 IP1SR2_23_20
3528 IP1SR2_19_16
3529 IP1SR2_15_12
3530 IP1SR2_11_8
3531 IP1SR2_7_4
3532 IP1SR2_3_0))
3533 },
3534 { PINMUX_CFG_REG("IP2SR2", 0xe6050868, 32, 4, GROUP(
3535 IP2SR2_31_28
3536 IP2SR2_27_24
3537 IP2SR2_23_20
3538 IP2SR2_19_16
3539 IP2SR2_15_12
3540 IP2SR2_11_8
3541 IP2SR2_7_4
3542 IP2SR2_3_0))
3543 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003544 { PINMUX_CFG_REG_VAR("IP0SR3", 0xe6058860, 32,
3545 GROUP(4, 4, 4, -8, 4, 4, -4),
3546 GROUP(
Marek Vasut4dbc6532021-04-27 01:55:54 +02003547 IP0SR3_31_28
3548 IP0SR3_27_24
3549 IP0SR3_23_20
Marek Vasut4ecc1832023-01-26 21:01:47 +01003550 /* IP0SR3_19_12 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003551 IP0SR3_11_8
3552 IP0SR3_7_4
Marek Vasut4ecc1832023-01-26 21:01:47 +01003553 /* IP0SR3_3_0 RESERVED */ ))
Marek Vasut4dbc6532021-04-27 01:55:54 +02003554 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003555 { PINMUX_CFG_REG_VAR("IP1SR3", 0xe6058864, 32,
3556 GROUP(-8, 4, 4, 4, 4, 4, 4),
3557 GROUP(
3558 /* IP1SR3_31_24 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003559 IP1SR3_23_20
3560 IP1SR3_19_16
3561 IP1SR3_15_12
3562 IP1SR3_11_8
3563 IP1SR3_7_4
3564 IP1SR3_3_0))
3565 },
3566 { PINMUX_CFG_REG("IP0SR4", 0xe6060060, 32, 4, GROUP(
3567 IP0SR4_31_28
3568 IP0SR4_27_24
3569 IP0SR4_23_20
3570 IP0SR4_19_16
3571 IP0SR4_15_12
3572 IP0SR4_11_8
3573 IP0SR4_7_4
3574 IP0SR4_3_0))
3575 },
3576 { PINMUX_CFG_REG("IP1SR4", 0xe6060064, 32, 4, GROUP(
3577 IP1SR4_31_28
3578 IP1SR4_27_24
3579 IP1SR4_23_20
3580 IP1SR4_19_16
3581 IP1SR4_15_12
3582 IP1SR4_11_8
3583 IP1SR4_7_4
3584 IP1SR4_3_0))
3585 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003586 { PINMUX_CFG_REG_VAR("IP2SR4", 0xe6060068, 32,
3587 GROUP(-12, 4, 4, 4, 4, -4),
3588 GROUP(
3589 /* IP2SR4_31_20 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003590 IP2SR4_19_16
3591 IP2SR4_15_12
3592 IP2SR4_11_8
3593 IP2SR4_7_4
Marek Vasut4ecc1832023-01-26 21:01:47 +01003594 /* IP2SR4_3_0 RESERVED */ ))
Marek Vasut4dbc6532021-04-27 01:55:54 +02003595 },
3596 { PINMUX_CFG_REG("IP0SR5", 0xe6060860, 32, 4, GROUP(
3597 IP0SR5_31_28
3598 IP0SR5_27_24
3599 IP0SR5_23_20
3600 IP0SR5_19_16
3601 IP0SR5_15_12
3602 IP0SR5_11_8
3603 IP0SR5_7_4
3604 IP0SR5_3_0))
3605 },
3606 { PINMUX_CFG_REG("IP1SR5", 0xe6060864, 32, 4, GROUP(
3607 IP1SR5_31_28
3608 IP1SR5_27_24
3609 IP1SR5_23_20
3610 IP1SR5_19_16
3611 IP1SR5_15_12
3612 IP1SR5_11_8
3613 IP1SR5_7_4
3614 IP1SR5_3_0))
3615 },
Marek Vasut4ecc1832023-01-26 21:01:47 +01003616 { PINMUX_CFG_REG_VAR("IP2SR5", 0xe6060868, 32,
3617 GROUP(-12, 4, 4, 4, 4, -4),
3618 GROUP(
3619 /* IP2SR5_31_20 RESERVED */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003620 IP2SR5_19_16
3621 IP2SR5_15_12
3622 IP2SR5_11_8
3623 IP2SR5_7_4
Marek Vasut4ecc1832023-01-26 21:01:47 +01003624 /* IP2SR5_3_0 RESERVED */ ))
Marek Vasut4dbc6532021-04-27 01:55:54 +02003625 },
3626#undef F_
3627#undef FM
3628
3629#define F_(x, y) x,
3630#define FM(x) FN_##x,
3631 { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xe6050900, 32,
Marek Vasut4ecc1832023-01-26 21:01:47 +01003632 GROUP(-16, 2, 2, 2, 2, 2, 2, 2, -2),
Marek Vasut4dbc6532021-04-27 01:55:54 +02003633 GROUP(
Marek Vasut4ecc1832023-01-26 21:01:47 +01003634 /* RESERVED 31-16 */
3635 MOD_SEL2_15_14
3636 MOD_SEL2_13_12
3637 MOD_SEL2_11_10
3638 MOD_SEL2_9_8
3639 MOD_SEL2_7_6
3640 MOD_SEL2_5_4
3641 MOD_SEL2_3_2
3642 /* RESERVED 1-0 */ ))
Marek Vasut4dbc6532021-04-27 01:55:54 +02003643 },
3644 { },
3645};
3646
3647static const struct pinmux_drive_reg pinmux_drive_regs[] = {
3648 { PINMUX_DRIVE_REG("DRV0CTRL0", 0xe6058080) {
3649 { RCAR_GP_PIN(0, 7), 28, 2 }, /* QSPI1_MOSI_IO0 */
3650 { RCAR_GP_PIN(0, 6), 24, 2 }, /* QSPI1_SPCLK */
3651 { RCAR_GP_PIN(0, 5), 20, 2 }, /* QSPI0_SSL */
3652 { RCAR_GP_PIN(0, 4), 16, 2 }, /* QSPI0_IO3 */
3653 { RCAR_GP_PIN(0, 3), 12, 2 }, /* QSPI0_IO2 */
3654 { RCAR_GP_PIN(0, 2), 8, 2 }, /* QSPI0_MISO_IO1 */
3655 { RCAR_GP_PIN(0, 1), 4, 2 }, /* QSPI0_MOSI_IO0 */
3656 { RCAR_GP_PIN(0, 0), 0, 2 }, /* QSPI0_SPCLK */
3657 } },
3658 { PINMUX_DRIVE_REG("DRV1CTRL0", 0xe6058084) {
3659 { RCAR_GP_PIN(0, 15), 28, 3 }, /* SD_WP */
3660 { RCAR_GP_PIN(0, 14), 24, 2 }, /* RPC_INT_N */
3661 { RCAR_GP_PIN(0, 13), 20, 2 }, /* RPC_WP_N */
3662 { RCAR_GP_PIN(0, 12), 16, 2 }, /* RPC_RESET_N */
3663 { RCAR_GP_PIN(0, 11), 12, 2 }, /* QSPI1_SSL */
3664 { RCAR_GP_PIN(0, 10), 8, 2 }, /* QSPI1_IO3 */
3665 { RCAR_GP_PIN(0, 9), 4, 2 }, /* QSPI1_IO2 */
3666 { RCAR_GP_PIN(0, 8), 0, 2 }, /* QSPI1_MISO_IO1 */
3667 } },
3668 { PINMUX_DRIVE_REG("DRV2CTRL0", 0xe6058088) {
3669 { RCAR_GP_PIN(0, 23), 28, 3 }, /* MMC_SD_CLK */
3670 { RCAR_GP_PIN(0, 22), 24, 3 }, /* MMC_SD_D3 */
3671 { RCAR_GP_PIN(0, 21), 20, 3 }, /* MMC_SD_D2 */
3672 { RCAR_GP_PIN(0, 20), 16, 3 }, /* MMC_SD_D1 */
3673 { RCAR_GP_PIN(0, 19), 12, 3 }, /* MMC_SD_D0 */
3674 { RCAR_GP_PIN(0, 18), 8, 3 }, /* MMC_SD_CMD */
3675 { RCAR_GP_PIN(0, 17), 4, 3 }, /* MMC_DS */
3676 { RCAR_GP_PIN(0, 16), 0, 3 }, /* SD_CD */
3677 } },
3678 { PINMUX_DRIVE_REG("DRV3CTRL0", 0xe605808c) {
3679 { RCAR_GP_PIN(0, 27), 12, 3 }, /* MMC_D7 */
3680 { RCAR_GP_PIN(0, 26), 8, 3 }, /* MMC_D6 */
3681 { RCAR_GP_PIN(0, 25), 4, 3 }, /* MMC_D5 */
3682 { RCAR_GP_PIN(0, 24), 0, 3 }, /* MMC_D4 */
3683 } },
3684 { PINMUX_DRIVE_REG("DRV0CTRL1", 0xe6050080) {
3685 { RCAR_GP_PIN(1, 7), 28, 3 }, /* MSIOF0_TXD */
3686 { RCAR_GP_PIN(1, 6), 24, 3 }, /* MSIOF0_RXD */
3687 { RCAR_GP_PIN(1, 5), 20, 3 }, /* HTX0 */
3688 { RCAR_GP_PIN(1, 4), 16, 3 }, /* HCTS0_N */
3689 { RCAR_GP_PIN(1, 3), 12, 3 }, /* HRTS0_N */
3690 { RCAR_GP_PIN(1, 2), 8, 3 }, /* HSCK0 */
3691 { RCAR_GP_PIN(1, 1), 4, 3 }, /* HRX0 */
3692 { RCAR_GP_PIN(1, 0), 0, 3 }, /* SCIF_CLK */
3693 } },
3694 { PINMUX_DRIVE_REG("DRV1CTRL1", 0xe6050084) {
3695 { RCAR_GP_PIN(1, 15), 28, 3 }, /* MSIOF1_SYNC */
3696 { RCAR_GP_PIN(1, 14), 24, 3 }, /* MSIOF1_SCK */
3697 { RCAR_GP_PIN(1, 13), 20, 3 }, /* MSIOF1_TXD */
3698 { RCAR_GP_PIN(1, 12), 16, 3 }, /* MSIOF1_RXD */
3699 { RCAR_GP_PIN(1, 11), 12, 3 }, /* MSIOF0_SS2 */
3700 { RCAR_GP_PIN(1, 10), 8, 3 }, /* MSIOF0_SS1 */
3701 { RCAR_GP_PIN(1, 9), 4, 3 }, /* MSIOF0_SYNC */
3702 { RCAR_GP_PIN(1, 8), 0, 3 }, /* MSIOF0_SCK */
3703 } },
3704 { PINMUX_DRIVE_REG("DRV2CTRL1", 0xe6050088) {
3705 { RCAR_GP_PIN(1, 23), 28, 3 }, /* MSIOF2_SS2 */
3706 { RCAR_GP_PIN(1, 22), 24, 3 }, /* MSIOF2_SS1 */
3707 { RCAR_GP_PIN(1, 21), 20, 3 }, /* MSIOF2_SYNC */
3708 { RCAR_GP_PIN(1, 20), 16, 3 }, /* MSIOF2_SCK */
3709 { RCAR_GP_PIN(1, 19), 12, 3 }, /* MSIOF2_TXD */
3710 { RCAR_GP_PIN(1, 18), 8, 3 }, /* MSIOF2_RXD */
3711 { RCAR_GP_PIN(1, 17), 4, 3 }, /* MSIOF1_SS2 */
3712 { RCAR_GP_PIN(1, 16), 0, 3 }, /* MSIOF1_SS1 */
3713 } },
3714 { PINMUX_DRIVE_REG("DRV3CTRL1", 0xe605008c) {
3715 { RCAR_GP_PIN(1, 30), 24, 3 }, /* GP1_30 */
3716 { RCAR_GP_PIN(1, 29), 20, 3 }, /* GP1_29 */
3717 { RCAR_GP_PIN(1, 28), 16, 3 }, /* GP1_28 */
3718 { RCAR_GP_PIN(1, 27), 12, 3 }, /* IRQ3 */
3719 { RCAR_GP_PIN(1, 26), 8, 3 }, /* IRQ2 */
3720 { RCAR_GP_PIN(1, 25), 4, 3 }, /* IRQ1 */
3721 { RCAR_GP_PIN(1, 24), 0, 3 }, /* IRQ0 */
3722 } },
3723 { PINMUX_DRIVE_REG("DRV0CTRL2", 0xe6050880) {
3724 { RCAR_GP_PIN(2, 7), 28, 3 }, /* GP2_07 */
3725 { RCAR_GP_PIN(2, 6), 24, 3 }, /* GP2_06 */
3726 { RCAR_GP_PIN(2, 5), 20, 3 }, /* GP2_05 */
3727 { RCAR_GP_PIN(2, 4), 16, 3 }, /* GP2_04 */
3728 { RCAR_GP_PIN(2, 3), 12, 3 }, /* GP2_03 */
3729 { RCAR_GP_PIN(2, 2), 8, 3 }, /* GP2_02 */
3730 { RCAR_GP_PIN(2, 1), 4, 2 }, /* IPC_CLKOUT */
3731 { RCAR_GP_PIN(2, 0), 0, 2 }, /* IPC_CLKIN */
3732 } },
3733 { PINMUX_DRIVE_REG("DRV1CTRL2", 0xe6050884) {
3734 { RCAR_GP_PIN(2, 15), 28, 3 }, /* GP2_15 */
3735 { RCAR_GP_PIN(2, 14), 24, 3 }, /* GP2_14 */
3736 { RCAR_GP_PIN(2, 13), 20, 3 }, /* GP2_13 */
3737 { RCAR_GP_PIN(2, 12), 16, 3 }, /* GP2_12 */
3738 { RCAR_GP_PIN(2, 11), 12, 3 }, /* GP2_11 */
3739 { RCAR_GP_PIN(2, 10), 8, 3 }, /* GP2_10 */
3740 { RCAR_GP_PIN(2, 9), 4, 3 }, /* GP2_9 */
3741 { RCAR_GP_PIN(2, 8), 0, 3 }, /* GP2_8 */
3742 } },
3743 { PINMUX_DRIVE_REG("DRV2CTRL2", 0xe6050888) {
3744 { RCAR_GP_PIN(2, 23), 28, 3 }, /* TCLK1_A */
3745 { RCAR_GP_PIN(2, 22), 24, 3 }, /* TPU0TO1 */
3746 { RCAR_GP_PIN(2, 21), 20, 3 }, /* TPU0TO0 */
3747 { RCAR_GP_PIN(2, 20), 16, 3 }, /* CLK_EXTFXR */
3748 { RCAR_GP_PIN(2, 19), 12, 3 }, /* RXDB_EXTFXR */
3749 { RCAR_GP_PIN(2, 18), 8, 3 }, /* FXR_TXDB */
3750 { RCAR_GP_PIN(2, 17), 4, 3 }, /* RXDA_EXTFXR_A */
3751 { RCAR_GP_PIN(2, 16), 0, 3 }, /* FXR_TXDA_A */
3752 } },
3753 { PINMUX_DRIVE_REG("DRV3CTRL2", 0xe605088c) {
3754 { RCAR_GP_PIN(2, 24), 0, 3 }, /* TCLK2_A */
3755 } },
3756 { PINMUX_DRIVE_REG("DRV0CTRL3", 0xe6058880) {
3757 { RCAR_GP_PIN(3, 7), 28, 3 }, /* CANFD3_TX */
3758 { RCAR_GP_PIN(3, 6), 24, 3 }, /* CANFD2_RX */
3759 { RCAR_GP_PIN(3, 5), 20, 3 }, /* CANFD2_TX */
3760 { RCAR_GP_PIN(3, 4), 16, 3 }, /* CANFD1_RX */
3761 { RCAR_GP_PIN(3, 3), 12, 3 }, /* CANFD1_TX */
3762 { RCAR_GP_PIN(3, 2), 8, 3 }, /* CANFD0_RX */
3763 { RCAR_GP_PIN(3, 1), 4, 2 }, /* CANFD0_TX */
3764 { RCAR_GP_PIN(3, 0), 0, 2 }, /* CAN_CLK */
3765 } },
3766 { PINMUX_DRIVE_REG("DRV1CTRL3", 0xe6058884) {
3767 { RCAR_GP_PIN(3, 15), 28, 3 }, /* CANFD7_TX */
3768 { RCAR_GP_PIN(3, 14), 24, 3 }, /* CANFD6_RX */
3769 { RCAR_GP_PIN(3, 13), 20, 3 }, /* CANFD6_TX */
3770 { RCAR_GP_PIN(3, 12), 16, 3 }, /* CANFD5_RX */
3771 { RCAR_GP_PIN(3, 11), 12, 3 }, /* CANFD5_TX */
3772 { RCAR_GP_PIN(3, 10), 8, 3 }, /* CANFD4_RX */
Marek Vasut4ecc1832023-01-26 21:01:47 +01003773 { RCAR_GP_PIN(3, 9), 4, 3 }, /* CANFD4_TX */
Marek Vasut4dbc6532021-04-27 01:55:54 +02003774 { RCAR_GP_PIN(3, 8), 0, 3 }, /* CANFD3_RX */
3775 } },
3776 { PINMUX_DRIVE_REG("DRV2CTRL3", 0xe6058888) {
3777 { RCAR_GP_PIN(3, 16), 0, 3 }, /* CANFD7_RX */
3778 } },
3779 { PINMUX_DRIVE_REG("DRV0CTRL4", 0xe6060080) {
3780 { RCAR_GP_PIN(4, 7), 28, 3 }, /* AVB0_TXC */
3781 { RCAR_GP_PIN(4, 6), 24, 3 }, /* AVB0_TX_CTL */
3782 { RCAR_GP_PIN(4, 5), 20, 3 }, /* AVB0_RD3 */
3783 { RCAR_GP_PIN(4, 4), 16, 3 }, /* AVB0_RD2 */
3784 { RCAR_GP_PIN(4, 3), 12, 3 }, /* AVB0_RD1 */
3785 { RCAR_GP_PIN(4, 2), 8, 3 }, /* AVB0_RD0 */
3786 { RCAR_GP_PIN(4, 1), 4, 3 }, /* AVB0_RXC */
3787 { RCAR_GP_PIN(4, 0), 0, 3 }, /* AVB0_RX_CTL */
3788 } },
3789 { PINMUX_DRIVE_REG("DRV1CTRL4", 0xe6060084) {
3790 { RCAR_GP_PIN(4, 15), 28, 3 }, /* AVB0_MAGIC */
3791 { RCAR_GP_PIN(4, 14), 24, 3 }, /* AVB0_MDC */
3792 { RCAR_GP_PIN(4, 13), 20, 3 }, /* AVB0_MDIO */
3793 { RCAR_GP_PIN(4, 12), 16, 3 }, /* AVB0_TXCREFCLK */
3794 { RCAR_GP_PIN(4, 11), 12, 3 }, /* AVB0_TD3 */
3795 { RCAR_GP_PIN(4, 10), 8, 3 }, /* AVB0_TD2 */
3796 { RCAR_GP_PIN(4, 9), 4, 3 }, /* AVB0_TD1*/
3797 { RCAR_GP_PIN(4, 8), 0, 3 }, /* AVB0_TD0 */
3798 } },
3799 { PINMUX_DRIVE_REG("DRV2CTRL4", 0xe6060088) {
3800 { RCAR_GP_PIN(4, 23), 28, 3 }, /* PCIE2_CLKREQ_N */
3801 { RCAR_GP_PIN(4, 22), 24, 3 }, /* PCIE1_CLKREQ_N */
3802 { RCAR_GP_PIN(4, 21), 20, 3 }, /* PCIE0_CLKREQ_N */
3803 { RCAR_GP_PIN(4, 20), 16, 3 }, /* AVB0_AVTP_PPS */
3804 { RCAR_GP_PIN(4, 19), 12, 3 }, /* AVB0_AVTP_CAPTURE */
3805 { RCAR_GP_PIN(4, 18), 8, 3 }, /* AVB0_AVTP_MATCH */
3806 { RCAR_GP_PIN(4, 17), 4, 3 }, /* AVB0_LINK */
3807 { RCAR_GP_PIN(4, 16), 0, 3 }, /* AVB0_PHY_INT */
3808 } },
3809 { PINMUX_DRIVE_REG("DRV3CTRL4", 0xe606008c) {
3810 { RCAR_GP_PIN(4, 26), 8, 3 }, /* AVS1 */
3811 { RCAR_GP_PIN(4, 25), 4, 3 }, /* AVS0 */
3812 { RCAR_GP_PIN(4, 24), 0, 3 }, /* PCIE3_CLKREQ_N */
3813 } },
3814 { PINMUX_DRIVE_REG("DRV0CTRL5", 0xe6060880) {
3815 { RCAR_GP_PIN(5, 7), 28, 3 }, /* AVB1_TXC */
3816 { RCAR_GP_PIN(5, 6), 24, 3 }, /* AVB1_TX_CTL */
3817 { RCAR_GP_PIN(5, 5), 20, 3 }, /* AVB1_RD3 */
3818 { RCAR_GP_PIN(5, 4), 16, 3 }, /* AVB1_RD2 */
3819 { RCAR_GP_PIN(5, 3), 12, 3 }, /* AVB1_RD1 */
3820 { RCAR_GP_PIN(5, 2), 8, 3 }, /* AVB1_RD0 */
3821 { RCAR_GP_PIN(5, 1), 4, 3 }, /* AVB1_RXC */
3822 { RCAR_GP_PIN(5, 0), 0, 3 }, /* AVB1_RX_CTL */
3823 } },
3824 { PINMUX_DRIVE_REG("DRV1CTRL5", 0xe6060884) {
3825 { RCAR_GP_PIN(5, 15), 28, 3 }, /* AVB1_MAGIC */
3826 { RCAR_GP_PIN(5, 14), 24, 3 }, /* AVB1_MDC */
3827 { RCAR_GP_PIN(5, 13), 20, 3 }, /* AVB1_MDIO */
3828 { RCAR_GP_PIN(5, 12), 16, 3 }, /* AVB1_TXCREFCLK */
3829 { RCAR_GP_PIN(5, 11), 12, 3 }, /* AVB1_TD3 */
3830 { RCAR_GP_PIN(5, 10), 8, 3 }, /* AVB1_TD2 */
3831 { RCAR_GP_PIN(5, 9), 4, 3 }, /* AVB1_TD1*/
3832 { RCAR_GP_PIN(5, 8), 0, 3 }, /* AVB1_TD0 */
3833 } },
3834 { PINMUX_DRIVE_REG("DRV2CTRL5", 0xe6060888) {
3835 { RCAR_GP_PIN(5, 20), 16, 3 }, /* AVB1_AVTP_PPS */
3836 { RCAR_GP_PIN(5, 19), 12, 3 }, /* AVB1_AVTP_CAPTURE */
3837 { RCAR_GP_PIN(5, 18), 8, 3 }, /* AVB1_AVTP_MATCH */
3838 { RCAR_GP_PIN(5, 17), 4, 3 }, /* AVB1_LINK */
3839 { RCAR_GP_PIN(5, 16), 0, 3 }, /* AVB1_PHY_INT */
3840 } },
3841 { PINMUX_DRIVE_REG("DRV0CTRL6", 0xe6068080) {
3842 { RCAR_GP_PIN(6, 7), 28, 3 }, /* AVB2_TXC */
3843 { RCAR_GP_PIN(6, 6), 24, 3 }, /* AVB2_TX_CTL */
3844 { RCAR_GP_PIN(6, 5), 20, 3 }, /* AVB2_RD3 */
3845 { RCAR_GP_PIN(6, 4), 16, 3 }, /* AVB2_RD2 */
3846 { RCAR_GP_PIN(6, 3), 12, 3 }, /* AVB2_RD1 */
3847 { RCAR_GP_PIN(6, 2), 8, 3 }, /* AVB2_RD0 */
3848 { RCAR_GP_PIN(6, 1), 4, 3 }, /* AVB2_RXC */
3849 { RCAR_GP_PIN(6, 0), 0, 3 }, /* AVB2_RX_CTL */
3850 } },
3851 { PINMUX_DRIVE_REG("DRV1CTRL6", 0xe6068084) {
3852 { RCAR_GP_PIN(6, 15), 28, 3 }, /* AVB2_MAGIC */
3853 { RCAR_GP_PIN(6, 14), 24, 3 }, /* AVB2_MDC */
3854 { RCAR_GP_PIN(6, 13), 20, 3 }, /* AVB2_MDIO */
3855 { RCAR_GP_PIN(6, 12), 16, 3 }, /* AVB2_TXCREFCLK */
3856 { RCAR_GP_PIN(6, 11), 12, 3 }, /* AVB2_TD3 */
3857 { RCAR_GP_PIN(6, 10), 8, 3 }, /* AVB2_TD2 */
3858 { RCAR_GP_PIN(6, 9), 4, 3 }, /* AVB2_TD1*/
3859 { RCAR_GP_PIN(6, 8), 0, 3 }, /* AVB2_TD0 */
3860 } },
3861 { PINMUX_DRIVE_REG("DRV2CTRL6", 0xe6068088) {
3862 { RCAR_GP_PIN(6, 20), 16, 3 }, /* AVB2_AVTP_PPS */
3863 { RCAR_GP_PIN(6, 19), 12, 3 }, /* AVB2_AVTP_CAPTURE */
3864 { RCAR_GP_PIN(6, 18), 8, 3 }, /* AVB2_AVTP_MATCH */
3865 { RCAR_GP_PIN(6, 17), 4, 3 }, /* AVB2_LINK */
3866 { RCAR_GP_PIN(6, 16), 0, 3 }, /* AVB2_PHY_INT */
3867 } },
3868 { PINMUX_DRIVE_REG("DRV0CTRL7", 0xe6068880) {
3869 { RCAR_GP_PIN(7, 7), 28, 3 }, /* AVB3_TXC */
3870 { RCAR_GP_PIN(7, 6), 24, 3 }, /* AVB3_TX_CTL */
3871 { RCAR_GP_PIN(7, 5), 20, 3 }, /* AVB3_RD3 */
3872 { RCAR_GP_PIN(7, 4), 16, 3 }, /* AVB3_RD2 */
3873 { RCAR_GP_PIN(7, 3), 12, 3 }, /* AVB3_RD1 */
3874 { RCAR_GP_PIN(7, 2), 8, 3 }, /* AVB3_RD0 */
3875 { RCAR_GP_PIN(7, 1), 4, 3 }, /* AVB3_RXC */
3876 { RCAR_GP_PIN(7, 0), 0, 3 }, /* AVB3_RX_CTL */
3877 } },
3878 { PINMUX_DRIVE_REG("DRV1CTRL7", 0xe6068884) {
3879 { RCAR_GP_PIN(7, 15), 28, 3 }, /* AVB3_MAGIC */
3880 { RCAR_GP_PIN(7, 14), 24, 3 }, /* AVB3_MDC */
3881 { RCAR_GP_PIN(7, 13), 20, 3 }, /* AVB3_MDIO */
3882 { RCAR_GP_PIN(7, 12), 16, 3 }, /* AVB3_TXCREFCLK */
3883 { RCAR_GP_PIN(7, 11), 12, 3 }, /* AVB3_TD3 */
3884 { RCAR_GP_PIN(7, 10), 8, 3 }, /* AVB3_TD2 */
3885 { RCAR_GP_PIN(7, 9), 4, 3 }, /* AVB3_TD1*/
3886 { RCAR_GP_PIN(7, 8), 0, 3 }, /* AVB3_TD0 */
3887 } },
3888 { PINMUX_DRIVE_REG("DRV2CTRL7", 0xe6068888) {
3889 { RCAR_GP_PIN(7, 20), 16, 3 }, /* AVB3_AVTP_PPS */
3890 { RCAR_GP_PIN(7, 19), 12, 3 }, /* AVB3_AVTP_CAPTURE */
3891 { RCAR_GP_PIN(7, 18), 8, 3 }, /* AVB3_AVTP_MATCH */
3892 { RCAR_GP_PIN(7, 17), 4, 3 }, /* AVB3_LINK */
3893 { RCAR_GP_PIN(7, 16), 0, 3 }, /* AVB3_PHY_INT */
3894 } },
3895 { PINMUX_DRIVE_REG("DRV0CTRL8", 0xe6069080) {
3896 { RCAR_GP_PIN(8, 7), 28, 3 }, /* AVB4_TXC */
3897 { RCAR_GP_PIN(8, 6), 24, 3 }, /* AVB4_TX_CTL */
3898 { RCAR_GP_PIN(8, 5), 20, 3 }, /* AVB4_RD3 */
3899 { RCAR_GP_PIN(8, 4), 16, 3 }, /* AVB4_RD2 */
3900 { RCAR_GP_PIN(8, 3), 12, 3 }, /* AVB4_RD1 */
3901 { RCAR_GP_PIN(8, 2), 8, 3 }, /* AVB4_RD0 */
3902 { RCAR_GP_PIN(8, 1), 4, 3 }, /* AVB4_RXC */
3903 { RCAR_GP_PIN(8, 0), 0, 3 }, /* AVB4_RX_CTL */
3904 } },
3905 { PINMUX_DRIVE_REG("DRV1CTRL8", 0xe6069084) {
3906 { RCAR_GP_PIN(8, 15), 28, 3 }, /* AVB4_MAGIC */
3907 { RCAR_GP_PIN(8, 14), 24, 3 }, /* AVB4_MDC */
3908 { RCAR_GP_PIN(8, 13), 20, 3 }, /* AVB4_MDIO */
3909 { RCAR_GP_PIN(8, 12), 16, 3 }, /* AVB4_TXCREFCLK */
3910 { RCAR_GP_PIN(8, 11), 12, 3 }, /* AVB4_TD3 */
3911 { RCAR_GP_PIN(8, 10), 8, 3 }, /* AVB4_TD2 */
3912 { RCAR_GP_PIN(8, 9), 4, 3 }, /* AVB4_TD1*/
3913 { RCAR_GP_PIN(8, 8), 0, 3 }, /* AVB4_TD0 */
3914 } },
3915 { PINMUX_DRIVE_REG("DRV2CTRL8", 0xe6069088) {
3916 { RCAR_GP_PIN(8, 20), 16, 3 }, /* AVB4_AVTP_PPS */
3917 { RCAR_GP_PIN(8, 19), 12, 3 }, /* AVB4_AVTP_CAPTURE */
3918 { RCAR_GP_PIN(8, 18), 8, 3 }, /* AVB4_AVTP_MATCH */
3919 { RCAR_GP_PIN(8, 17), 4, 3 }, /* AVB4_LINK */
3920 { RCAR_GP_PIN(8, 16), 0, 3 }, /* AVB4_PHY_INT */
3921 } },
3922 { PINMUX_DRIVE_REG("DRV0CTRL9", 0xe6069880) {
3923 { RCAR_GP_PIN(9, 7), 28, 3 }, /* AVB5_TXC */
3924 { RCAR_GP_PIN(9, 6), 24, 3 }, /* AVB5_TX_CTL */
3925 { RCAR_GP_PIN(9, 5), 20, 3 }, /* AVB5_RD3 */
3926 { RCAR_GP_PIN(9, 4), 16, 3 }, /* AVB5_RD2 */
3927 { RCAR_GP_PIN(9, 3), 12, 3 }, /* AVB5_RD1 */
3928 { RCAR_GP_PIN(9, 2), 8, 3 }, /* AVB5_RD0 */
3929 { RCAR_GP_PIN(9, 1), 4, 3 }, /* AVB5_RXC */
3930 { RCAR_GP_PIN(9, 0), 0, 3 }, /* AVB5_RX_CTL */
3931 } },
3932 { PINMUX_DRIVE_REG("DRV1CTRL9", 0xe6069884) {
3933 { RCAR_GP_PIN(9, 15), 28, 3 }, /* AVB5_MAGIC */
3934 { RCAR_GP_PIN(9, 14), 24, 3 }, /* AVB5_MDC */
3935 { RCAR_GP_PIN(9, 13), 20, 3 }, /* AVB5_MDIO */
3936 { RCAR_GP_PIN(9, 12), 16, 3 }, /* AVB5_TXCREFCLK */
3937 { RCAR_GP_PIN(9, 11), 12, 3 }, /* AVB5_TD3 */
3938 { RCAR_GP_PIN(9, 10), 8, 3 }, /* AVB5_TD2 */
3939 { RCAR_GP_PIN(9, 9), 4, 3 }, /* AVB5_TD1*/
3940 { RCAR_GP_PIN(9, 8), 0, 3 }, /* AVB5_TD0 */
3941 } },
3942 { PINMUX_DRIVE_REG("DRV2CTRL9", 0xe6069888) {
3943 { RCAR_GP_PIN(9, 20), 16, 3 }, /* AVB5_AVTP_PPS */
3944 { RCAR_GP_PIN(9, 19), 12, 3 }, /* AVB5_AVTP_CAPTURE */
3945 { RCAR_GP_PIN(9, 18), 8, 3 }, /* AVB5_AVTP_MATCH */
3946 { RCAR_GP_PIN(9, 17), 4, 3 }, /* AVB5_LINK */
3947 { RCAR_GP_PIN(9, 16), 0, 3 }, /* AVB5_PHY_INT */
3948 } },
3949 { },
3950};
3951
3952enum ioctrl_regs {
3953 POC0,
3954 POC1,
3955 POC2,
3956 POC4,
3957 POC5,
3958 POC6,
3959 POC7,
3960 POC8,
3961 POC9,
3962 TD1SEL0,
3963};
3964
3965static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = {
3966 [POC0] = { 0xe60580a0, },
3967 [POC1] = { 0xe60500a0, },
3968 [POC2] = { 0xe60508a0, },
3969 [POC4] = { 0xe60600a0, },
3970 [POC5] = { 0xe60608a0, },
3971 [POC6] = { 0xe60680a0, },
3972 [POC7] = { 0xe60688a0, },
3973 [POC8] = { 0xe60690a0, },
3974 [POC9] = { 0xe60698a0, },
3975 [TD1SEL0] = { 0xe6058124, },
3976 { /* sentinel */ },
3977};
3978
Marek Vasut4ecc1832023-01-26 21:01:47 +01003979static int r8a779a0_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
Marek Vasut4dbc6532021-04-27 01:55:54 +02003980{
3981 int bit = pin & 0x1f;
3982
3983 *pocctrl = pinmux_ioctrl_regs[POC0].reg;
3984 if (pin >= RCAR_GP_PIN(0, 15) && pin <= RCAR_GP_PIN(0, 27))
3985 return bit;
3986
3987 *pocctrl = pinmux_ioctrl_regs[POC1].reg;
3988 if (pin >= RCAR_GP_PIN(1, 0) && pin <= RCAR_GP_PIN(1, 30))
3989 return bit;
3990
3991 *pocctrl = pinmux_ioctrl_regs[POC2].reg;
3992 if (pin >= RCAR_GP_PIN(2, 2) && pin <= RCAR_GP_PIN(2, 15))
3993 return bit;
3994
3995 *pocctrl = pinmux_ioctrl_regs[POC4].reg;
3996 if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17))
3997 return bit;
3998
3999 *pocctrl = pinmux_ioctrl_regs[POC5].reg;
4000 if (pin >= RCAR_GP_PIN(5, 0) && pin <= RCAR_GP_PIN(5, 17))
4001 return bit;
4002
4003 *pocctrl = pinmux_ioctrl_regs[POC6].reg;
4004 if (pin >= RCAR_GP_PIN(6, 0) && pin <= RCAR_GP_PIN(6, 17))
4005 return bit;
4006
4007 *pocctrl = pinmux_ioctrl_regs[POC7].reg;
4008 if (pin >= RCAR_GP_PIN(7, 0) && pin <= RCAR_GP_PIN(7, 17))
4009 return bit;
4010
4011 *pocctrl = pinmux_ioctrl_regs[POC8].reg;
4012 if (pin >= RCAR_GP_PIN(8, 0) && pin <= RCAR_GP_PIN(8, 17))
4013 return bit;
4014
4015 *pocctrl = pinmux_ioctrl_regs[POC9].reg;
4016 if (pin >= RCAR_GP_PIN(9, 0) && pin <= RCAR_GP_PIN(9, 17))
4017 return bit;
4018
4019 return -EINVAL;
4020}
4021
4022static const struct pinmux_bias_reg pinmux_bias_regs[] = {
4023 { PINMUX_BIAS_REG("PUEN0", 0xe60580c0, "PUD0", 0xe60580e0) {
4024 [ 0] = RCAR_GP_PIN(0, 0), /* QSPI0_SPCLK */
4025 [ 1] = RCAR_GP_PIN(0, 1), /* QSPI0_MOSI_IO0 */
4026 [ 2] = RCAR_GP_PIN(0, 2), /* QSPI0_MISO_IO1 */
4027 [ 3] = RCAR_GP_PIN(0, 3), /* QSPI0_IO2 */
4028 [ 4] = RCAR_GP_PIN(0, 4), /* QSPI0_IO3 */
4029 [ 5] = RCAR_GP_PIN(0, 5), /* QSPI0_SSL */
4030 [ 6] = RCAR_GP_PIN(0, 6), /* QSPI1_SPCLK */
4031 [ 7] = RCAR_GP_PIN(0, 7), /* QSPI1_MOSI_IO0 */
4032 [ 8] = RCAR_GP_PIN(0, 8), /* QSPI1_MISO_IO1 */
4033 [ 9] = RCAR_GP_PIN(0, 9), /* QSPI1_IO2 */
4034 [10] = RCAR_GP_PIN(0, 10), /* QSPI1_IO3 */
4035 [11] = RCAR_GP_PIN(0, 11), /* QSPI1_SSL */
4036 [12] = RCAR_GP_PIN(0, 12), /* RPC_RESET_N */
4037 [13] = RCAR_GP_PIN(0, 13), /* RPC_WP_N */
4038 [14] = RCAR_GP_PIN(0, 14), /* RPC_INT_N */
4039 [15] = RCAR_GP_PIN(0, 15), /* SD_WP */
4040 [16] = RCAR_GP_PIN(0, 16), /* SD_CD */
4041 [17] = RCAR_GP_PIN(0, 17), /* MMC_DS */
4042 [18] = RCAR_GP_PIN(0, 18), /* MMC_SD_CMD */
4043 [19] = RCAR_GP_PIN(0, 19), /* MMC_SD_D0 */
4044 [20] = RCAR_GP_PIN(0, 20), /* MMC_SD_D1 */
4045 [21] = RCAR_GP_PIN(0, 21), /* MMC_SD_D2 */
4046 [22] = RCAR_GP_PIN(0, 22), /* MMC_SD_D3 */
4047 [23] = RCAR_GP_PIN(0, 23), /* MMC_SD_CLK */
4048 [24] = RCAR_GP_PIN(0, 24), /* MMC_D4 */
4049 [25] = RCAR_GP_PIN(0, 25), /* MMC_D5 */
4050 [26] = RCAR_GP_PIN(0, 26), /* MMC_D6 */
4051 [27] = RCAR_GP_PIN(0, 27), /* MMC_D7 */
4052 [28] = SH_PFC_PIN_NONE,
4053 [29] = SH_PFC_PIN_NONE,
4054 [30] = SH_PFC_PIN_NONE,
4055 [31] = SH_PFC_PIN_NONE,
4056 } },
4057 { PINMUX_BIAS_REG("PUEN1", 0xe60500c0, "PUD1", 0xe60500e0) {
4058 [ 0] = RCAR_GP_PIN(1, 0), /* SCIF_CLK */
4059 [ 1] = RCAR_GP_PIN(1, 1), /* HRX0 */
4060 [ 2] = RCAR_GP_PIN(1, 2), /* HSCK0 */
4061 [ 3] = RCAR_GP_PIN(1, 3), /* HRTS0_N */
4062 [ 4] = RCAR_GP_PIN(1, 4), /* HCTS0_N */
4063 [ 5] = RCAR_GP_PIN(1, 5), /* HTX0 */
4064 [ 6] = RCAR_GP_PIN(1, 6), /* MSIOF0_RXD */
4065 [ 7] = RCAR_GP_PIN(1, 7), /* MSIOF0_TXD */
4066 [ 8] = RCAR_GP_PIN(1, 8), /* MSIOF0_SCK */
4067 [ 9] = RCAR_GP_PIN(1, 9), /* MSIOF0_SYNC */
4068 [10] = RCAR_GP_PIN(1, 10), /* MSIOF0_SS1 */
4069 [11] = RCAR_GP_PIN(1, 11), /* MSIOF0_SS2 */
4070 [12] = RCAR_GP_PIN(1, 12), /* MSIOF1_RXD */
4071 [13] = RCAR_GP_PIN(1, 13), /* MSIOF1_TXD */
4072 [14] = RCAR_GP_PIN(1, 14), /* MSIOF1_SCK */
4073 [15] = RCAR_GP_PIN(1, 15), /* MSIOF1_SYNC */
4074 [16] = RCAR_GP_PIN(1, 16), /* MSIOF1_SS1 */
4075 [17] = RCAR_GP_PIN(1, 17), /* MSIOF1_SS2 */
4076 [18] = RCAR_GP_PIN(1, 18), /* MSIOF2_RXD */
4077 [19] = RCAR_GP_PIN(1, 19), /* MSIOF2_TXD */
4078 [20] = RCAR_GP_PIN(1, 20), /* MSIOF2_SCK */
4079 [21] = RCAR_GP_PIN(1, 21), /* MSIOF2_SYNC */
4080 [22] = RCAR_GP_PIN(1, 22), /* MSIOF2_SS1 */
4081 [23] = RCAR_GP_PIN(1, 23), /* MSIOF2_SS2 */
4082 [24] = RCAR_GP_PIN(1, 24), /* IRQ0 */
4083 [25] = RCAR_GP_PIN(1, 25), /* IRQ1 */
4084 [26] = RCAR_GP_PIN(1, 26), /* IRQ2 */
4085 [27] = RCAR_GP_PIN(1, 27), /* IRQ3 */
4086 [28] = RCAR_GP_PIN(1, 28), /* GP1_28 */
4087 [29] = RCAR_GP_PIN(1, 29), /* GP1_29 */
4088 [30] = RCAR_GP_PIN(1, 30), /* GP1_30 */
4089 [31] = SH_PFC_PIN_NONE,
4090 } },
4091 { PINMUX_BIAS_REG("PUEN2", 0xe60508c0, "PUD2", 0xe60508e0) {
4092 [ 0] = RCAR_GP_PIN(2, 0), /* IPC_CLKIN */
4093 [ 1] = RCAR_GP_PIN(2, 1), /* IPC_CLKOUT */
4094 [ 2] = RCAR_GP_PIN(2, 2), /* GP2_02 */
4095 [ 3] = RCAR_GP_PIN(2, 3), /* GP2_03 */
4096 [ 4] = RCAR_GP_PIN(2, 4), /* GP2_04 */
4097 [ 5] = RCAR_GP_PIN(2, 5), /* GP2_05 */
4098 [ 6] = RCAR_GP_PIN(2, 6), /* GP2_06 */
4099 [ 7] = RCAR_GP_PIN(2, 7), /* GP2_07 */
4100 [ 8] = RCAR_GP_PIN(2, 8), /* GP2_08 */
4101 [ 9] = RCAR_GP_PIN(2, 9), /* GP2_09 */
4102 [10] = RCAR_GP_PIN(2, 10), /* GP2_10 */
4103 [11] = RCAR_GP_PIN(2, 11), /* GP2_11 */
4104 [12] = RCAR_GP_PIN(2, 12), /* GP2_12 */
4105 [13] = RCAR_GP_PIN(2, 13), /* GP2_13 */
4106 [14] = RCAR_GP_PIN(2, 14), /* GP2_14 */
4107 [15] = RCAR_GP_PIN(2, 15), /* GP2_15 */
4108 [16] = RCAR_GP_PIN(2, 16), /* FXR_TXDA_A */
4109 [17] = RCAR_GP_PIN(2, 17), /* RXDA_EXTFXR_A */
4110 [18] = RCAR_GP_PIN(2, 18), /* FXR_TXDB */
4111 [19] = RCAR_GP_PIN(2, 19), /* RXDB_EXTFXR */
4112 [20] = RCAR_GP_PIN(2, 20), /* CLK_EXTFXR */
4113 [21] = RCAR_GP_PIN(2, 21), /* TPU0TO0 */
4114 [22] = RCAR_GP_PIN(2, 22), /* TPU0TO1 */
4115 [23] = RCAR_GP_PIN(2, 23), /* TCLK1_A */
4116 [24] = RCAR_GP_PIN(2, 24), /* TCLK2_A */
4117 [25] = SH_PFC_PIN_NONE,
4118 [26] = SH_PFC_PIN_NONE,
4119 [27] = SH_PFC_PIN_NONE,
4120 [28] = SH_PFC_PIN_NONE,
4121 [29] = SH_PFC_PIN_NONE,
4122 [30] = SH_PFC_PIN_NONE,
4123 [31] = SH_PFC_PIN_NONE,
4124 } },
4125 { PINMUX_BIAS_REG("PUEN3", 0xe60588c0, "PUD3", 0xe60588e0) {
4126 [ 0] = RCAR_GP_PIN(3, 0), /* CAN_CLK */
4127 [ 1] = RCAR_GP_PIN(3, 1), /* CANFD0_TX */
4128 [ 2] = RCAR_GP_PIN(3, 2), /* CANFD0_RX */
4129 [ 3] = RCAR_GP_PIN(3, 3), /* CANFD1_TX */
4130 [ 4] = RCAR_GP_PIN(3, 4), /* CANFD1_RX */
4131 [ 5] = RCAR_GP_PIN(3, 5), /* CANFD2_TX */
4132 [ 6] = RCAR_GP_PIN(3, 6), /* CANFD2_RX */
4133 [ 7] = RCAR_GP_PIN(3, 7), /* CANFD3_TX */
4134 [ 8] = RCAR_GP_PIN(3, 8), /* CANFD3_RX */
4135 [ 9] = RCAR_GP_PIN(3, 9), /* CANFD4_TX */
4136 [10] = RCAR_GP_PIN(3, 10), /* CANFD4_RX */
4137 [11] = RCAR_GP_PIN(3, 11), /* CANFD5_TX */
4138 [12] = RCAR_GP_PIN(3, 12), /* CANFD5_RX */
4139 [13] = RCAR_GP_PIN(3, 13), /* CANFD6_TX */
4140 [14] = RCAR_GP_PIN(3, 14), /* CANFD6_RX */
4141 [15] = RCAR_GP_PIN(3, 15), /* CANFD7_TX */
4142 [16] = RCAR_GP_PIN(3, 16), /* CANFD7_RX */
4143 [17] = SH_PFC_PIN_NONE,
4144 [18] = SH_PFC_PIN_NONE,
4145 [19] = SH_PFC_PIN_NONE,
4146 [20] = SH_PFC_PIN_NONE,
4147 [21] = SH_PFC_PIN_NONE,
4148 [22] = SH_PFC_PIN_NONE,
4149 [23] = SH_PFC_PIN_NONE,
4150 [24] = SH_PFC_PIN_NONE,
4151 [25] = SH_PFC_PIN_NONE,
4152 [26] = SH_PFC_PIN_NONE,
4153 [27] = SH_PFC_PIN_NONE,
4154 [28] = SH_PFC_PIN_NONE,
4155 [29] = SH_PFC_PIN_NONE,
4156 [30] = SH_PFC_PIN_NONE,
4157 [31] = SH_PFC_PIN_NONE,
4158 } },
4159 { PINMUX_BIAS_REG("PUEN4", 0xe60600c0, "PUD4", 0xe60600e0) {
4160 [ 0] = RCAR_GP_PIN(4, 0), /* AVB0_RX_CTL */
4161 [ 1] = RCAR_GP_PIN(4, 1), /* AVB0_RXC */
4162 [ 2] = RCAR_GP_PIN(4, 2), /* AVB0_RD0 */
4163 [ 3] = RCAR_GP_PIN(4, 3), /* AVB0_RD1 */
4164 [ 4] = RCAR_GP_PIN(4, 4), /* AVB0_RD2 */
4165 [ 5] = RCAR_GP_PIN(4, 5), /* AVB0_RD3 */
4166 [ 6] = RCAR_GP_PIN(4, 6), /* AVB0_TX_CTL */
4167 [ 7] = RCAR_GP_PIN(4, 7), /* AVB0_TXC */
4168 [ 8] = RCAR_GP_PIN(4, 8), /* AVB0_TD0 */
4169 [ 9] = RCAR_GP_PIN(4, 9), /* AVB0_TD1 */
4170 [10] = RCAR_GP_PIN(4, 10), /* AVB0_TD2 */
4171 [11] = RCAR_GP_PIN(4, 11), /* AVB0_TD3 */
4172 [12] = RCAR_GP_PIN(4, 12), /* AVB0_TXREFCLK */
4173 [13] = RCAR_GP_PIN(4, 13), /* AVB0_MDIO */
4174 [14] = RCAR_GP_PIN(4, 14), /* AVB0_MDC */
4175 [15] = RCAR_GP_PIN(4, 15), /* AVB0_MAGIC */
4176 [16] = RCAR_GP_PIN(4, 16), /* AVB0_PHY_INT */
4177 [17] = RCAR_GP_PIN(4, 17), /* AVB0_LINK */
4178 [18] = RCAR_GP_PIN(4, 18), /* AVB0_AVTP_MATCH */
4179 [19] = RCAR_GP_PIN(4, 19), /* AVB0_AVTP_CAPTURE */
4180 [20] = RCAR_GP_PIN(4, 20), /* AVB0_AVTP_PPS */
4181 [21] = RCAR_GP_PIN(4, 21), /* PCIE0_CLKREQ_N */
4182 [22] = RCAR_GP_PIN(4, 22), /* PCIE1_CLKREQ_N */
4183 [23] = RCAR_GP_PIN(4, 23), /* PCIE2_CLKREQ_N */
4184 [24] = RCAR_GP_PIN(4, 24), /* PCIE3_CLKREQ_N */
4185 [25] = RCAR_GP_PIN(4, 25), /* AVS0 */
4186 [26] = RCAR_GP_PIN(4, 26), /* AVS1 */
4187 [27] = SH_PFC_PIN_NONE,
4188 [28] = SH_PFC_PIN_NONE,
4189 [29] = SH_PFC_PIN_NONE,
4190 [30] = SH_PFC_PIN_NONE,
4191 [31] = SH_PFC_PIN_NONE,
4192 } },
4193 { PINMUX_BIAS_REG("PUEN5", 0xe60608c0, "PUD5", 0xe60608e0) {
4194 [ 0] = RCAR_GP_PIN(5, 0), /* AVB1_RX_CTL */
4195 [ 1] = RCAR_GP_PIN(5, 1), /* AVB1_RXC */
4196 [ 2] = RCAR_GP_PIN(5, 2), /* AVB1_RD0 */
4197 [ 3] = RCAR_GP_PIN(5, 3), /* AVB1_RD1 */
4198 [ 4] = RCAR_GP_PIN(5, 4), /* AVB1_RD2 */
4199 [ 5] = RCAR_GP_PIN(5, 5), /* AVB1_RD3 */
4200 [ 6] = RCAR_GP_PIN(5, 6), /* AVB1_TX_CTL */
4201 [ 7] = RCAR_GP_PIN(5, 7), /* AVB1_TXC */
4202 [ 8] = RCAR_GP_PIN(5, 8), /* AVB1_TD0 */
4203 [ 9] = RCAR_GP_PIN(5, 9), /* AVB1_TD1 */
4204 [10] = RCAR_GP_PIN(5, 10), /* AVB1_TD2 */
4205 [11] = RCAR_GP_PIN(5, 11), /* AVB1_TD3 */
4206 [12] = RCAR_GP_PIN(5, 12), /* AVB1_TXCREFCLK */
4207 [13] = RCAR_GP_PIN(5, 13), /* AVB1_MDIO */
4208 [14] = RCAR_GP_PIN(5, 14), /* AVB1_MDC */
4209 [15] = RCAR_GP_PIN(5, 15), /* AVB1_MAGIC */
4210 [16] = RCAR_GP_PIN(5, 16), /* AVB1_PHY_INT */
4211 [17] = RCAR_GP_PIN(5, 17), /* AVB1_LINK */
4212 [18] = RCAR_GP_PIN(5, 18), /* AVB1_AVTP_MATCH */
4213 [19] = RCAR_GP_PIN(5, 19), /* AVB1_AVTP_CAPTURE */
4214 [20] = RCAR_GP_PIN(5, 20), /* AVB1_AVTP_PPS */
4215 [21] = SH_PFC_PIN_NONE,
4216 [22] = SH_PFC_PIN_NONE,
4217 [23] = SH_PFC_PIN_NONE,
4218 [24] = SH_PFC_PIN_NONE,
4219 [25] = SH_PFC_PIN_NONE,
4220 [26] = SH_PFC_PIN_NONE,
4221 [27] = SH_PFC_PIN_NONE,
4222 [28] = SH_PFC_PIN_NONE,
4223 [29] = SH_PFC_PIN_NONE,
4224 [30] = SH_PFC_PIN_NONE,
4225 [31] = SH_PFC_PIN_NONE,
4226 } },
4227 { PINMUX_BIAS_REG("PUEN6", 0xe60680c0, "PUD6", 0xe60680e0) {
4228 [ 0] = RCAR_GP_PIN(6, 0), /* AVB2_RX_CTL */
4229 [ 1] = RCAR_GP_PIN(6, 1), /* AVB2_RXC */
4230 [ 2] = RCAR_GP_PIN(6, 2), /* AVB2_RD0 */
4231 [ 3] = RCAR_GP_PIN(6, 3), /* AVB2_RD1 */
4232 [ 4] = RCAR_GP_PIN(6, 4), /* AVB2_RD2 */
4233 [ 5] = RCAR_GP_PIN(6, 5), /* AVB2_RD3 */
4234 [ 6] = RCAR_GP_PIN(6, 6), /* AVB2_TX_CTL */
4235 [ 7] = RCAR_GP_PIN(6, 7), /* AVB2_TXC */
4236 [ 8] = RCAR_GP_PIN(6, 8), /* AVB2_TD0 */
4237 [ 9] = RCAR_GP_PIN(6, 9), /* AVB2_TD1 */
4238 [10] = RCAR_GP_PIN(6, 10), /* AVB2_TD2 */
4239 [11] = RCAR_GP_PIN(6, 11), /* AVB2_TD3 */
4240 [12] = RCAR_GP_PIN(6, 12), /* AVB2_TXCREFCLK */
4241 [13] = RCAR_GP_PIN(6, 13), /* AVB2_MDIO */
Marek Vasut4ecc1832023-01-26 21:01:47 +01004242 [14] = RCAR_GP_PIN(6, 14), /* AVB2_MDC */
Marek Vasut4dbc6532021-04-27 01:55:54 +02004243 [15] = RCAR_GP_PIN(6, 15), /* AVB2_MAGIC */
4244 [16] = RCAR_GP_PIN(6, 16), /* AVB2_PHY_INT */
4245 [17] = RCAR_GP_PIN(6, 17), /* AVB2_LINK */
4246 [18] = RCAR_GP_PIN(6, 18), /* AVB2_AVTP_MATCH */
4247 [19] = RCAR_GP_PIN(6, 19), /* AVB2_AVTP_CAPTURE */
4248 [20] = RCAR_GP_PIN(6, 20), /* AVB2_AVTP_PPS */
4249 [21] = SH_PFC_PIN_NONE,
4250 [22] = SH_PFC_PIN_NONE,
4251 [23] = SH_PFC_PIN_NONE,
4252 [24] = SH_PFC_PIN_NONE,
4253 [25] = SH_PFC_PIN_NONE,
4254 [26] = SH_PFC_PIN_NONE,
4255 [27] = SH_PFC_PIN_NONE,
4256 [28] = SH_PFC_PIN_NONE,
4257 [29] = SH_PFC_PIN_NONE,
4258 [30] = SH_PFC_PIN_NONE,
4259 [31] = SH_PFC_PIN_NONE,
4260 } },
4261 { PINMUX_BIAS_REG("PUEN7", 0xe60688c0, "PUD7", 0xe60688e0) {
4262 [ 0] = RCAR_GP_PIN(7, 0), /* AVB3_RX_CTL */
4263 [ 1] = RCAR_GP_PIN(7, 1), /* AVB3_RXC */
4264 [ 2] = RCAR_GP_PIN(7, 2), /* AVB3_RD0 */
4265 [ 3] = RCAR_GP_PIN(7, 3), /* AVB3_RD1 */
4266 [ 4] = RCAR_GP_PIN(7, 4), /* AVB3_RD2 */
4267 [ 5] = RCAR_GP_PIN(7, 5), /* AVB3_RD3 */
4268 [ 6] = RCAR_GP_PIN(7, 6), /* AVB3_TX_CTL */
4269 [ 7] = RCAR_GP_PIN(7, 7), /* AVB3_TXC */
4270 [ 8] = RCAR_GP_PIN(7, 8), /* AVB3_TD0 */
4271 [ 9] = RCAR_GP_PIN(7, 9), /* AVB3_TD1 */
4272 [10] = RCAR_GP_PIN(7, 10), /* AVB3_TD2 */
4273 [11] = RCAR_GP_PIN(7, 11), /* AVB3_TD3 */
4274 [12] = RCAR_GP_PIN(7, 12), /* AVB3_TXCREFCLK */
4275 [13] = RCAR_GP_PIN(7, 13), /* AVB3_MDIO */
4276 [14] = RCAR_GP_PIN(7, 14), /* AVB3_MDC */
4277 [15] = RCAR_GP_PIN(7, 15), /* AVB3_MAGIC */
4278 [16] = RCAR_GP_PIN(7, 16), /* AVB3_PHY_INT */
4279 [17] = RCAR_GP_PIN(7, 17), /* AVB3_LINK */
4280 [18] = RCAR_GP_PIN(7, 18), /* AVB3_AVTP_MATCH */
4281 [19] = RCAR_GP_PIN(7, 19), /* AVB3_AVTP_CAPTURE */
4282 [20] = RCAR_GP_PIN(7, 20), /* AVB3_AVTP_PPS */
4283 [21] = SH_PFC_PIN_NONE,
4284 [22] = SH_PFC_PIN_NONE,
4285 [23] = SH_PFC_PIN_NONE,
4286 [24] = SH_PFC_PIN_NONE,
4287 [25] = SH_PFC_PIN_NONE,
4288 [26] = SH_PFC_PIN_NONE,
4289 [27] = SH_PFC_PIN_NONE,
4290 [28] = SH_PFC_PIN_NONE,
4291 [29] = SH_PFC_PIN_NONE,
4292 [30] = SH_PFC_PIN_NONE,
4293 [31] = SH_PFC_PIN_NONE,
4294 } },
4295 { PINMUX_BIAS_REG("PUEN8", 0xe60690c0, "PUD8", 0xe60690e0) {
4296 [ 0] = RCAR_GP_PIN(8, 0), /* AVB4_RX_CTL */
4297 [ 1] = RCAR_GP_PIN(8, 1), /* AVB4_RXC */
4298 [ 2] = RCAR_GP_PIN(8, 2), /* AVB4_RD0 */
4299 [ 3] = RCAR_GP_PIN(8, 3), /* AVB4_RD1 */
4300 [ 4] = RCAR_GP_PIN(8, 4), /* AVB4_RD2 */
4301 [ 5] = RCAR_GP_PIN(8, 5), /* AVB4_RD3 */
4302 [ 6] = RCAR_GP_PIN(8, 6), /* AVB4_TX_CTL */
4303 [ 7] = RCAR_GP_PIN(8, 7), /* AVB4_TXC */
4304 [ 8] = RCAR_GP_PIN(8, 8), /* AVB4_TD0 */
4305 [ 9] = RCAR_GP_PIN(8, 9), /* AVB4_TD1 */
4306 [10] = RCAR_GP_PIN(8, 10), /* AVB4_TD2 */
4307 [11] = RCAR_GP_PIN(8, 11), /* AVB4_TD3 */
4308 [12] = RCAR_GP_PIN(8, 12), /* AVB4_TXCREFCLK */
4309 [13] = RCAR_GP_PIN(8, 13), /* AVB4_MDIO */
4310 [14] = RCAR_GP_PIN(8, 14), /* AVB4_MDC */
4311 [15] = RCAR_GP_PIN(8, 15), /* AVB4_MAGIC */
4312 [16] = RCAR_GP_PIN(8, 16), /* AVB4_PHY_INT */
4313 [17] = RCAR_GP_PIN(8, 17), /* AVB4_LINK */
4314 [18] = RCAR_GP_PIN(8, 18), /* AVB4_AVTP_MATCH */
4315 [19] = RCAR_GP_PIN(8, 19), /* AVB4_AVTP_CAPTURE */
4316 [20] = RCAR_GP_PIN(8, 20), /* AVB4_AVTP_PPS */
4317 [21] = SH_PFC_PIN_NONE,
4318 [22] = SH_PFC_PIN_NONE,
4319 [23] = SH_PFC_PIN_NONE,
4320 [24] = SH_PFC_PIN_NONE,
4321 [25] = SH_PFC_PIN_NONE,
4322 [26] = SH_PFC_PIN_NONE,
4323 [27] = SH_PFC_PIN_NONE,
4324 [28] = SH_PFC_PIN_NONE,
4325 [29] = SH_PFC_PIN_NONE,
4326 [30] = SH_PFC_PIN_NONE,
4327 [31] = SH_PFC_PIN_NONE,
4328 } },
4329 { PINMUX_BIAS_REG("PUEN9", 0xe60698c0, "PUD9", 0xe60698e0) {
4330 [ 0] = RCAR_GP_PIN(9, 0), /* AVB5_RX_CTL */
4331 [ 1] = RCAR_GP_PIN(9, 1), /* AVB5_RXC */
4332 [ 2] = RCAR_GP_PIN(9, 2), /* AVB5_RD0 */
4333 [ 3] = RCAR_GP_PIN(9, 3), /* AVB5_RD1 */
4334 [ 4] = RCAR_GP_PIN(9, 4), /* AVB5_RD2 */
4335 [ 5] = RCAR_GP_PIN(9, 5), /* AVB5_RD3 */
4336 [ 6] = RCAR_GP_PIN(9, 6), /* AVB5_TX_CTL */
4337 [ 7] = RCAR_GP_PIN(9, 7), /* AVB5_TXC */
4338 [ 8] = RCAR_GP_PIN(9, 8), /* AVB5_TD0 */
4339 [ 9] = RCAR_GP_PIN(9, 9), /* AVB5_TD1 */
4340 [10] = RCAR_GP_PIN(9, 10), /* AVB5_TD2 */
4341 [11] = RCAR_GP_PIN(9, 11), /* AVB5_TD3 */
4342 [12] = RCAR_GP_PIN(9, 12), /* AVB5_TXCREFCLK */
4343 [13] = RCAR_GP_PIN(9, 13), /* AVB5_MDIO */
4344 [14] = RCAR_GP_PIN(9, 14), /* AVB5_MDC */
4345 [15] = RCAR_GP_PIN(9, 15), /* AVB5_MAGIC */
4346 [16] = RCAR_GP_PIN(9, 16), /* AVB5_PHY_INT */
4347 [17] = RCAR_GP_PIN(9, 17), /* AVB5_LINK */
4348 [18] = RCAR_GP_PIN(9, 18), /* AVB5_AVTP_MATCH */
4349 [19] = RCAR_GP_PIN(9, 19), /* AVB5_AVTP_CAPTURE */
4350 [20] = RCAR_GP_PIN(9, 20), /* AVB5_AVTP_PPS */
4351 [21] = SH_PFC_PIN_NONE,
4352 [22] = SH_PFC_PIN_NONE,
4353 [23] = SH_PFC_PIN_NONE,
4354 [24] = SH_PFC_PIN_NONE,
4355 [25] = SH_PFC_PIN_NONE,
4356 [26] = SH_PFC_PIN_NONE,
4357 [27] = SH_PFC_PIN_NONE,
4358 [28] = SH_PFC_PIN_NONE,
4359 [29] = SH_PFC_PIN_NONE,
4360 [30] = SH_PFC_PIN_NONE,
4361 [31] = SH_PFC_PIN_NONE,
4362 } },
4363 { /* sentinel */ },
4364};
4365
Marek Vasut4ecc1832023-01-26 21:01:47 +01004366static const struct sh_pfc_soc_operations r8a779a0_pfc_ops = {
Marek Vasut4dbc6532021-04-27 01:55:54 +02004367 .pin_to_pocctrl = r8a779a0_pin_to_pocctrl,
Marek Vasut4ecc1832023-01-26 21:01:47 +01004368 .get_bias = rcar_pinmux_get_bias,
4369 .set_bias = rcar_pinmux_set_bias,
Marek Vasut4dbc6532021-04-27 01:55:54 +02004370};
4371
4372const struct sh_pfc_soc_info r8a779a0_pinmux_info = {
4373 .name = "r8a779a0_pfc",
Marek Vasut4ecc1832023-01-26 21:01:47 +01004374 .ops = &r8a779a0_pfc_ops,
Marek Vasut4dbc6532021-04-27 01:55:54 +02004375 .unlock_reg = 0x1ff, /* PMMRn mask */
4376
4377 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
4378
4379 .pins = pinmux_pins,
4380 .nr_pins = ARRAY_SIZE(pinmux_pins),
4381 .groups = pinmux_groups,
4382 .nr_groups = ARRAY_SIZE(pinmux_groups),
4383 .functions = pinmux_functions,
4384 .nr_functions = ARRAY_SIZE(pinmux_functions),
4385
4386 .cfg_regs = pinmux_config_regs,
4387 .drive_regs = pinmux_drive_regs,
4388 .bias_regs = pinmux_bias_regs,
4389 .ioctrl_regs = pinmux_ioctrl_regs,
4390
4391 .pinmux_data = pinmux_data,
4392 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
4393};