blob: bfabf0c379abbb3b20830cc2e89c388f478d978c [file] [log] [blame]
Hai Pham6c45a3c2024-01-28 16:52:03 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * R8A779H0 processor support - PFC hardware block.
4 *
5 * Copyright (C) 2023 Renesas Electronics Corp.
6 *
7 * This file is based on the drivers/pinctrl/renesas/pfc-r8a779a0.c
8 */
9
10#include <dm.h>
11#include <errno.h>
12#include <dm/pinctrl.h>
13#include <linux/bitops.h>
14#include <linux/kernel.h>
15
16#include "sh_pfc.h"
17
18#define CFG_FLAGS (SH_PFC_PIN_CFG_DRIVE_STRENGTH | SH_PFC_PIN_CFG_PULL_UP_DOWN)
19
20#define CPU_ALL_GP(fn, sfx) \
21 PORT_GP_CFG_19(0, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
22 PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
23 PORT_GP_CFG_1(1, 29, fn, sfx, CFG_FLAGS), \
24 PORT_GP_CFG_16(2, fn, sfx, CFG_FLAGS), \
25 PORT_GP_CFG_1(2, 17, fn, sfx, CFG_FLAGS), \
26 PORT_GP_CFG_1(2, 19, fn, sfx, CFG_FLAGS), \
27 PORT_GP_CFG_13(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
28 PORT_GP_CFG_1(3, 13, fn, sfx, CFG_FLAGS), \
29 PORT_GP_CFG_1(3, 14, fn, sfx, CFG_FLAGS), \
30 PORT_GP_CFG_1(3, 15, fn, sfx, CFG_FLAGS), \
31 PORT_GP_CFG_1(3, 16, fn, sfx, CFG_FLAGS), \
32 PORT_GP_CFG_1(3, 17, fn, sfx, CFG_FLAGS), \
33 PORT_GP_CFG_1(3, 18, fn, sfx, CFG_FLAGS), \
34 PORT_GP_CFG_1(3, 19, fn, sfx, CFG_FLAGS), \
35 PORT_GP_CFG_1(3, 20, fn, sfx, CFG_FLAGS), \
36 PORT_GP_CFG_1(3, 21, fn, sfx, CFG_FLAGS), \
37 PORT_GP_CFG_1(3, 22, fn, sfx, CFG_FLAGS), \
38 PORT_GP_CFG_1(3, 23, fn, sfx, CFG_FLAGS), \
39 PORT_GP_CFG_1(3, 24, fn, sfx, CFG_FLAGS), \
40 PORT_GP_CFG_1(3, 25, fn, sfx, CFG_FLAGS), \
41 PORT_GP_CFG_1(3, 26, fn, sfx, CFG_FLAGS), \
42 PORT_GP_CFG_1(3, 27, fn, sfx, CFG_FLAGS), \
43 PORT_GP_CFG_1(3, 28, fn, sfx, CFG_FLAGS), \
44 PORT_GP_CFG_1(3, 29, fn, sfx, CFG_FLAGS), \
45 PORT_GP_CFG_1(3, 30, fn, sfx, CFG_FLAGS), \
46 PORT_GP_CFG_1(3, 31, fn, sfx, CFG_FLAGS), \
47 PORT_GP_CFG_14(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE_18_33), \
48 PORT_GP_CFG_1(4, 14, fn, sfx, CFG_FLAGS), \
49 PORT_GP_CFG_1(4, 15, fn, sfx, CFG_FLAGS), \
50 PORT_GP_CFG_1(4, 21, fn, sfx, CFG_FLAGS), \
51 PORT_GP_CFG_1(4, 23, fn, sfx, CFG_FLAGS), \
52 PORT_GP_CFG_1(4, 24, fn, sfx, CFG_FLAGS), \
53 PORT_GP_CFG_21(5, fn, sfx, CFG_FLAGS), \
54 PORT_GP_CFG_21(6, fn, sfx, CFG_FLAGS), \
55 PORT_GP_CFG_21(7, fn, sfx, CFG_FLAGS)
56
57#define CPU_ALL_NOGP(fn) \
58 PIN_NOGP_CFG(VDDQ_AVB0, "VDDQ_AVB0", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
59 PIN_NOGP_CFG(VDDQ_AVB1, "VDDQ_AVB1", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25), \
60 PIN_NOGP_CFG(VDDQ_AVB2, "VDDQ_AVB2", fn, SH_PFC_PIN_CFG_IO_VOLTAGE_18_25)
61
62/*
63 * F_() : just information
64 * FM() : macro for FN_xxx / xxx_MARK
65 */
66
67/* GPSR0 */
68#define GPSR0_18 F_(MSIOF2_RXD, IP2SR0_11_8)
69#define GPSR0_17 F_(MSIOF2_SCK, IP2SR0_7_4)
70#define GPSR0_16 F_(MSIOF2_TXD, IP2SR0_3_0)
71#define GPSR0_15 F_(MSIOF2_SYNC, IP1SR0_31_28)
72#define GPSR0_14 F_(MSIOF2_SS1, IP1SR0_27_24)
73#define GPSR0_13 F_(MSIOF2_SS2, IP1SR0_23_20)
74#define GPSR0_12 F_(MSIOF5_RXD, IP1SR0_19_16)
75#define GPSR0_11 F_(MSIOF5_SCK, IP1SR0_15_12)
76#define GPSR0_10 F_(MSIOF5_TXD, IP1SR0_11_8)
77#define GPSR0_9 F_(MSIOF5_SYNC, IP1SR0_7_4)
78#define GPSR0_8 F_(MSIOF5_SS1, IP1SR0_3_0)
79#define GPSR0_7 F_(MSIOF5_SS2, IP0SR0_31_28)
Marek Vasut7c00fb32024-09-11 23:09:39 +020080#define GPSR0_6 F_(IRQ0_A, IP0SR0_27_24)
81#define GPSR0_5 F_(IRQ1_A, IP0SR0_23_20)
82#define GPSR0_4 F_(IRQ2_A, IP0SR0_19_16)
83#define GPSR0_3 F_(IRQ3_A, IP0SR0_15_12)
Hai Pham6c45a3c2024-01-28 16:52:03 +010084#define GPSR0_2 F_(GP0_02, IP0SR0_11_8)
85#define GPSR0_1 F_(GP0_01, IP0SR0_7_4)
86#define GPSR0_0 F_(GP0_00, IP0SR0_3_0)
87
88/* GPSR1 */
89#define GPSR1_29 F_(ERROROUTC_N_A, IP3SR1_23_20)
90#define GPSR1_28 F_(HTX3, IP3SR1_19_16)
91#define GPSR1_27 F_(HCTS3_N, IP3SR1_15_12)
92#define GPSR1_26 F_(HRTS3_N, IP3SR1_11_8)
93#define GPSR1_25 F_(HSCK3, IP3SR1_7_4)
94#define GPSR1_24 F_(HRX3, IP3SR1_3_0)
95#define GPSR1_23 F_(GP1_23, IP2SR1_31_28)
96#define GPSR1_22 F_(AUDIO_CLKIN, IP2SR1_27_24)
97#define GPSR1_21 F_(AUDIO_CLKOUT, IP2SR1_23_20)
98#define GPSR1_20 F_(SSI_SD, IP2SR1_19_16)
99#define GPSR1_19 F_(SSI_WS, IP2SR1_15_12)
100#define GPSR1_18 F_(SSI_SCK, IP2SR1_11_8)
101#define GPSR1_17 F_(SCIF_CLK, IP2SR1_7_4)
102#define GPSR1_16 F_(HRX0, IP2SR1_3_0)
103#define GPSR1_15 F_(HSCK0, IP1SR1_31_28)
104#define GPSR1_14 F_(HRTS0_N, IP1SR1_27_24)
105#define GPSR1_13 F_(HCTS0_N, IP1SR1_23_20)
106#define GPSR1_12 F_(HTX0, IP1SR1_19_16)
107#define GPSR1_11 F_(MSIOF0_RXD, IP1SR1_15_12)
108#define GPSR1_10 F_(MSIOF0_SCK, IP1SR1_11_8)
109#define GPSR1_9 F_(MSIOF0_TXD, IP1SR1_7_4)
110#define GPSR1_8 F_(MSIOF0_SYNC, IP1SR1_3_0)
111#define GPSR1_7 F_(MSIOF0_SS1, IP0SR1_31_28)
112#define GPSR1_6 F_(MSIOF0_SS2, IP0SR1_27_24)
113#define GPSR1_5 F_(MSIOF1_RXD, IP0SR1_23_20)
114#define GPSR1_4 F_(MSIOF1_TXD, IP0SR1_19_16)
115#define GPSR1_3 F_(MSIOF1_SCK, IP0SR1_15_12)
116#define GPSR1_2 F_(MSIOF1_SYNC, IP0SR1_11_8)
117#define GPSR1_1 F_(MSIOF1_SS1, IP0SR1_7_4)
118#define GPSR1_0 F_(MSIOF1_SS2, IP0SR1_3_0)
119
120/* GPSR2 */
121#define GPSR2_19 F_(CANFD1_RX, IP2SR2_15_12)
122#define GPSR2_17 F_(CANFD1_TX, IP2SR2_7_4)
123#define GPSR2_15 F_(CANFD3_RX, IP1SR2_31_28)
124#define GPSR2_14 F_(CANFD3_TX, IP1SR2_27_24)
125#define GPSR2_13 F_(CANFD2_RX, IP1SR2_23_20)
126#define GPSR2_12 F_(CANFD2_TX, IP1SR2_19_16)
127#define GPSR2_11 F_(CANFD0_RX, IP1SR2_15_12)
128#define GPSR2_10 F_(CANFD0_TX, IP1SR2_11_8)
129#define GPSR2_9 F_(CAN_CLK, IP1SR2_7_4)
130#define GPSR2_8 F_(TPU0TO0, IP1SR2_3_0)
131#define GPSR2_7 F_(TPU0TO1, IP0SR2_31_28)
132#define GPSR2_6 F_(FXR_TXDB, IP0SR2_27_24)
133#define GPSR2_5 F_(FXR_TXENB_N_A, IP0SR2_23_20)
134#define GPSR2_4 F_(RXDB_EXTFXR, IP0SR2_19_16)
135#define GPSR2_3 F_(CLK_EXTFXR, IP0SR2_15_12)
136#define GPSR2_2 F_(RXDA_EXTFXR, IP0SR2_11_8)
137#define GPSR2_1 F_(FXR_TXENA_N_A, IP0SR2_7_4)
138#define GPSR2_0 F_(FXR_TXDA, IP0SR2_3_0)
139
140/* GPSR3 */
141#define GPSR3_31 F_(TCLK4, IP3SR3_31_28)
142#define GPSR3_30 F_(TCLK3, IP3SR3_27_24)
143#define GPSR3_29 F_(RPC_INT_N, IP3SR3_23_20)
144#define GPSR3_28 F_(RPC_WP_N, IP3SR3_19_16)
145#define GPSR3_27 F_(RPC_RESET_N, IP3SR3_15_12)
146#define GPSR3_26 F_(QSPI1_IO3, IP3SR3_11_8)
147#define GPSR3_25 F_(QSPI1_SSL, IP3SR3_7_4)
148#define GPSR3_24 F_(QSPI1_IO2, IP3SR3_3_0)
149#define GPSR3_23 F_(QSPI1_MISO_IO1, IP2SR3_31_28)
150#define GPSR3_22 F_(QSPI1_SPCLK, IP2SR3_27_24)
151#define GPSR3_21 F_(QSPI1_MOSI_IO0, IP2SR3_23_20)
152#define GPSR3_20 F_(QSPI0_SPCLK, IP2SR3_19_16)
153#define GPSR3_19 F_(QSPI0_MOSI_IO0, IP2SR3_15_12)
154#define GPSR3_18 F_(QSPI0_MISO_IO1, IP2SR3_11_8)
155#define GPSR3_17 F_(QSPI0_IO2, IP2SR3_7_4)
156#define GPSR3_16 F_(QSPI0_IO3, IP2SR3_3_0)
157#define GPSR3_15 F_(QSPI0_SSL, IP1SR3_31_28)
158#define GPSR3_14 F_(PWM2, IP1SR3_27_24)
159#define GPSR3_13 F_(PWM1, IP1SR3_23_20)
160#define GPSR3_12 F_(SD_WP, IP1SR3_19_16)
161#define GPSR3_11 F_(SD_CD, IP1SR3_15_12)
162#define GPSR3_10 F_(MMC_SD_CMD, IP1SR3_11_8)
163#define GPSR3_9 F_(MMC_D6, IP1SR3_7_4)
164#define GPSR3_8 F_(MMC_D7, IP1SR3_3_0)
165#define GPSR3_7 F_(MMC_D4, IP0SR3_31_28)
166#define GPSR3_6 F_(MMC_D5, IP0SR3_27_24)
167#define GPSR3_5 F_(MMC_SD_D3, IP0SR3_23_20)
168#define GPSR3_4 F_(MMC_DS, IP0SR3_19_16)
169#define GPSR3_3 F_(MMC_SD_CLK, IP0SR3_15_12)
170#define GPSR3_2 F_(MMC_SD_D2, IP0SR3_11_8)
171#define GPSR3_1 F_(MMC_SD_D0, IP0SR3_7_4)
172#define GPSR3_0 F_(MMC_SD_D1, IP0SR3_3_0)
173
174/* GPSR4 */
175#define GPSR4_24 F_(AVS1, IP3SR4_3_0)
176#define GPSR4_23 F_(AVS0, IP2SR4_31_28)
177#define GPSR4_21 F_(PCIE0_CLKREQ_N, IP2SR4_23_20)
178#define GPSR4_15 F_(PWM4, IP1SR4_31_28)
179#define GPSR4_14 F_(PWM3, IP1SR4_27_24)
180#define GPSR4_13 F_(HSCK2, IP1SR4_23_20)
181#define GPSR4_12 F_(HCTS2_N, IP1SR4_19_16)
182#define GPSR4_11 F_(SCIF_CLK2, IP1SR4_15_12)
183#define GPSR4_10 F_(HRTS2_N, IP1SR4_11_8)
184#define GPSR4_9 F_(HTX2, IP1SR4_7_4)
185#define GPSR4_8 F_(HRX2, IP1SR4_3_0)
186#define GPSR4_7 F_(SDA3, IP0SR4_31_28)
187#define GPSR4_6 F_(SCL3, IP0SR4_27_24)
188#define GPSR4_5 F_(SDA2, IP0SR4_23_20)
189#define GPSR4_4 F_(SCL2, IP0SR4_19_16)
190#define GPSR4_3 F_(SDA1, IP0SR4_15_12)
191#define GPSR4_2 F_(SCL1, IP0SR4_11_8)
192#define GPSR4_1 F_(SDA0, IP0SR4_7_4)
193#define GPSR4_0 F_(SCL0, IP0SR4_3_0)
194
195/* GPSR 5 */
196#define GPSR5_20 F_(AVB2_RX_CTL, IP2SR5_19_16)
197#define GPSR5_19 F_(AVB2_TX_CTL, IP2SR5_15_12)
198#define GPSR5_18 F_(AVB2_RXC, IP2SR5_11_8)
199#define GPSR5_17 F_(AVB2_RD0, IP2SR5_7_4)
200#define GPSR5_16 F_(AVB2_TXC, IP2SR5_3_0)
201#define GPSR5_15 F_(AVB2_TD0, IP1SR5_31_28)
202#define GPSR5_14 F_(AVB2_RD1, IP1SR5_27_24)
203#define GPSR5_13 F_(AVB2_RD2, IP1SR5_23_20)
204#define GPSR5_12 F_(AVB2_TD1, IP1SR5_19_16)
205#define GPSR5_11 F_(AVB2_TD2, IP1SR5_15_12)
206#define GPSR5_10 F_(AVB2_MDIO, IP1SR5_11_8)
207#define GPSR5_9 F_(AVB2_RD3, IP1SR5_7_4)
208#define GPSR5_8 F_(AVB2_TD3, IP1SR5_3_0)
209#define GPSR5_7 F_(AVB2_TXCREFCLK, IP0SR5_31_28)
210#define GPSR5_6 F_(AVB2_MDC, IP0SR5_27_24)
211#define GPSR5_5 F_(AVB2_MAGIC, IP0SR5_23_20)
212#define GPSR5_4 F_(AVB2_PHY_INT, IP0SR5_19_16)
213#define GPSR5_3 F_(AVB2_LINK, IP0SR5_15_12)
214#define GPSR5_2 F_(AVB2_AVTP_MATCH, IP0SR5_11_8)
215#define GPSR5_1 F_(AVB2_AVTP_CAPTURE, IP0SR5_7_4)
216#define GPSR5_0 F_(AVB2_AVTP_PPS, IP0SR5_3_0)
217
218/* GPSR 6 */
219#define GPSR6_20 F_(AVB1_TXCREFCLK, IP2SR6_19_16)
220#define GPSR6_19 F_(AVB1_RD3, IP2SR6_15_12)
221#define GPSR6_18 F_(AVB1_TD3, IP2SR6_11_8)
222#define GPSR6_17 F_(AVB1_RD2, IP2SR6_7_4)
223#define GPSR6_16 F_(AVB1_TD2, IP2SR6_3_0)
224#define GPSR6_15 F_(AVB1_RD0, IP1SR6_31_28)
225#define GPSR6_14 F_(AVB1_RD1, IP1SR6_27_24)
226#define GPSR6_13 F_(AVB1_TD0, IP1SR6_23_20)
227#define GPSR6_12 F_(AVB1_TD1, IP1SR6_19_16)
228#define GPSR6_11 F_(AVB1_AVTP_CAPTURE, IP1SR6_15_12)
229#define GPSR6_10 F_(AVB1_AVTP_PPS, IP1SR6_11_8)
230#define GPSR6_9 F_(AVB1_RX_CTL, IP1SR6_7_4)
231#define GPSR6_8 F_(AVB1_RXC, IP1SR6_3_0)
232#define GPSR6_7 F_(AVB1_TX_CTL, IP0SR6_31_28)
233#define GPSR6_6 F_(AVB1_TXC, IP0SR6_27_24)
234#define GPSR6_5 F_(AVB1_AVTP_MATCH, IP0SR6_23_20)
235#define GPSR6_4 F_(AVB1_LINK, IP0SR6_19_16)
236#define GPSR6_3 F_(AVB1_PHY_INT, IP0SR6_15_12)
237#define GPSR6_2 F_(AVB1_MDC, IP0SR6_11_8)
238#define GPSR6_1 F_(AVB1_MAGIC, IP0SR6_7_4)
239#define GPSR6_0 F_(AVB1_MDIO, IP0SR6_3_0)
240
241/* GPSR7 */
242#define GPSR7_20 F_(AVB0_RX_CTL, IP2SR7_19_16)
243#define GPSR7_19 F_(AVB0_RXC, IP2SR7_15_12)
244#define GPSR7_18 F_(AVB0_RD0, IP2SR7_11_8)
245#define GPSR7_17 F_(AVB0_RD1, IP2SR7_7_4)
246#define GPSR7_16 F_(AVB0_TX_CTL, IP2SR7_3_0)
247#define GPSR7_15 F_(AVB0_TXC, IP1SR7_31_28)
248#define GPSR7_14 F_(AVB0_MDIO, IP1SR7_27_24)
249#define GPSR7_13 F_(AVB0_MDC, IP1SR7_23_20)
250#define GPSR7_12 F_(AVB0_RD2, IP1SR7_19_16)
251#define GPSR7_11 F_(AVB0_TD0, IP1SR7_15_12)
252#define GPSR7_10 F_(AVB0_MAGIC, IP1SR7_11_8)
253#define GPSR7_9 F_(AVB0_TXCREFCLK, IP1SR7_7_4)
254#define GPSR7_8 F_(AVB0_RD3, IP1SR7_3_0)
255#define GPSR7_7 F_(AVB0_TD1, IP0SR7_31_28)
256#define GPSR7_6 F_(AVB0_TD2, IP0SR7_27_24)
257#define GPSR7_5 F_(AVB0_PHY_INT, IP0SR7_23_20)
258#define GPSR7_4 F_(AVB0_LINK, IP0SR7_19_16)
259#define GPSR7_3 F_(AVB0_TD3, IP0SR7_15_12)
260#define GPSR7_2 F_(AVB0_AVTP_MATCH, IP0SR7_11_8)
261#define GPSR7_1 F_(AVB0_AVTP_CAPTURE, IP0SR7_7_4)
262#define GPSR7_0 F_(AVB0_AVTP_PPS, IP0SR7_3_0)
263
Marek Vasut7c00fb32024-09-11 23:09:39 +0200264
Hai Pham6c45a3c2024-01-28 16:52:03 +0100265/* SR0 */
266/* IP0SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
267#define IP0SR0_3_0 F_(0, 0) FM(ERROROUTC_N_B) FM(TCLK2_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)
268#define IP0SR0_7_4 F_(0, 0) 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)
269#define IP0SR0_11_8 F_(0, 0) FM(MSIOF3_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 Vasut7c00fb32024-09-11 23:09:39 +0200270#define IP0SR0_15_12 FM(IRQ3_A) FM(MSIOF3_SCK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
271#define IP0SR0_19_16 FM(IRQ2_A) FM(MSIOF3_TXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
272#define IP0SR0_23_20 FM(IRQ1_A) FM(MSIOF3_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
273#define IP0SR0_27_24 FM(IRQ0_A) FM(MSIOF3_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
Hai Pham6c45a3c2024-01-28 16:52:03 +0100274#define IP0SR0_31_28 FM(MSIOF5_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
275
276/* IP1SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
277#define IP1SR0_3_0 FM(MSIOF5_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) F_(0, 0)
278#define IP1SR0_7_4 FM(MSIOF5_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
279#define IP1SR0_11_8 FM(MSIOF5_TXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
280#define IP1SR0_15_12 FM(MSIOF5_SCK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
281#define IP1SR0_19_16 FM(MSIOF5_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
282#define IP1SR0_23_20 FM(MSIOF2_SS2) FM(TCLK1_A) FM(IRQ2_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)
283#define IP1SR0_27_24 FM(MSIOF2_SS1) FM(HTX1_A) FM(TX1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
284#define IP1SR0_31_28 FM(MSIOF2_SYNC) FM(HRX1_A) FM(RX1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
285
286/* IP2SR0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
287#define IP2SR0_3_0 FM(MSIOF2_TXD) FM(HCTS1_N_A) FM(CTS1_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
288#define IP2SR0_7_4 FM(MSIOF2_SCK) FM(HRTS1_N_A) FM(RTS1_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
289#define IP2SR0_11_8 FM(MSIOF2_RXD) FM(HSCK1_A) FM(SCK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
290
291/* SR1 */
292/* IP0SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
293#define IP0SR1_3_0 FM(MSIOF1_SS2) FM(HTX3_B) FM(TX3_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)
294#define IP0SR1_7_4 FM(MSIOF1_SS1) FM(HCTS3_N_B) FM(RX3_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)
295#define IP0SR1_11_8 FM(MSIOF1_SYNC) FM(HRTS3_N_B) FM(RTS3_N_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)
296#define IP0SR1_15_12 FM(MSIOF1_SCK) FM(HSCK3_B) FM(CTS3_N_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)
297#define IP0SR1_19_16 FM(MSIOF1_TXD) FM(HRX3_B) FM(SCK3_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)
298#define IP0SR1_23_20 FM(MSIOF1_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
299#define IP0SR1_27_24 FM(MSIOF0_SS2) FM(HTX1_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)
300#define IP0SR1_31_28 FM(MSIOF0_SS1) FM(HRX1_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)
301
302/* IP1SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
303#define IP1SR1_3_0 FM(MSIOF0_SYNC) FM(HCTS1_N_B) FM(CTS1_N_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)
304#define IP1SR1_7_4 FM(MSIOF0_TXD) FM(HRTS1_N_B) FM(RTS1_N_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)
305#define IP1SR1_11_8 FM(MSIOF0_SCK) FM(HSCK1_B) FM(SCK1_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)
306#define IP1SR1_15_12 FM(MSIOF0_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
307#define IP1SR1_19_16 FM(HTX0) FM(TX0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
308#define IP1SR1_23_20 FM(HCTS0_N) FM(CTS0_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) F_(0, 0) F_(0, 0)
309#define IP1SR1_27_24 FM(HRTS0_N) FM(RTS0_N) FM(PWM0_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)
310#define IP1SR1_31_28 FM(HSCK0) FM(SCK0) FM(PWM0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
311
312/* IP2SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
313#define IP2SR1_3_0 FM(HRX0) FM(RX0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
314#define IP2SR1_7_4 FM(SCIF_CLK) FM(IRQ4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
315#define IP2SR1_11_8 FM(SSI_SCK) FM(TCLK3_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) F_(0, 0)
316#define IP2SR1_15_12 FM(SSI_WS) FM(TCLK4_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) F_(0, 0)
317#define IP2SR1_19_16 FM(SSI_SD) FM(IRQ0_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) F_(0, 0)
318#define IP2SR1_23_20 FM(AUDIO_CLKOUT) FM(IRQ1_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) F_(0, 0)
319#define IP2SR1_27_24 FM(AUDIO_CLKIN) FM(PWM3_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
320#define IP2SR1_31_28 F_(0, 0) FM(TCLK2_A) FM(MSIOF4_SS1) FM(IRQ3_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)
321
322/* IP3SR1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
323#define IP3SR1_3_0 FM(HRX3_A) FM(SCK3_A) FM(MSIOF4_SS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
324#define IP3SR1_7_4 FM(HSCK3_A) FM(CTS3_N_A) FM(MSIOF4_SCK) FM(TPU0TO0_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)
325#define IP3SR1_11_8 FM(HRTS3_N_A) FM(RTS3_N_A) FM(MSIOF4_TXD) FM(TPU0TO1_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)
326#define IP3SR1_15_12 FM(HCTS3_N_A) FM(RX3_A) FM(MSIOF4_RXD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
327#define IP3SR1_19_16 FM(HTX3_A) FM(TX3_A) FM(MSIOF4_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
328#define IP3SR1_23_20 FM(ERROROUTC_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
329
330/* SR2 */
331/* IP0SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
332#define IP0SR2_3_0 FM(FXR_TXDA) F_(0, 0) FM(TPU0TO2_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)
333#define IP0SR2_7_4 FM(FXR_TXENA_N_A) F_(0, 0) FM(TPU0TO3_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)
334#define IP0SR2_11_8 FM(RXDA_EXTFXR) F_(0, 0) FM(IRQ5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
335#define IP0SR2_15_12 FM(CLK_EXTFXR) F_(0, 0) FM(IRQ4_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)
336#define IP0SR2_19_16 FM(RXDB_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) F_(0, 0) F_(0, 0) F_(0, 0)
337#define IP0SR2_23_20 FM(FXR_TXENB_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
338#define IP0SR2_27_24 FM(FXR_TXDB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
339#define IP0SR2_31_28 FM(TPU0TO1_A) F_(0, 0) F_(0, 0) FM(TCLK2_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
340
341/* IP1SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
342#define IP1SR2_3_0 FM(TPU0TO0_A) F_(0, 0) F_(0, 0) FM(TCLK1_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)
343#define IP1SR2_7_4 FM(CAN_CLK) FM(FXR_TXENA_N_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) F_(0, 0)
344#define IP1SR2_11_8 FM(CANFD0_TX) FM(FXR_TXENB_N_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) F_(0, 0)
345#define IP1SR2_15_12 FM(CANFD0_RX) 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) F_(0, 0) F_(0, 0)
346#define IP1SR2_19_16 FM(CANFD2_TX) FM(TPU0TO2_A) F_(0, 0) FM(TCLK3_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
347#define IP1SR2_23_20 FM(CANFD2_RX) FM(TPU0TO3_A) FM(PWM1_B) FM(TCLK4_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
348#define IP1SR2_27_24 FM(CANFD3_TX) F_(0, 0) FM(PWM2_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)
349#define IP1SR2_31_28 FM(CANFD3_RX) F_(0, 0) FM(PWM3_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)
350
351/* IP2SR2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
352#define IP2SR2_7_4 FM(CANFD1_TX) F_(0, 0) FM(PWM1_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
353#define IP2SR2_15_12 FM(CANFD1_RX) F_(0, 0) FM(PWM2_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
354
355/* SR3 */
356/* IP0SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
357#define IP0SR3_3_0 FM(MMC_SD_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
358#define IP0SR3_7_4 FM(MMC_SD_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
359#define IP0SR3_11_8 FM(MMC_SD_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
360#define IP0SR3_15_12 FM(MMC_SD_CLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR3_19_16 FM(MMC_DS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR3_23_20 FM(MMC_SD_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
363#define IP0SR3_27_24 FM(MMC_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
364#define IP0SR3_31_28 FM(MMC_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
365
366/* IP1SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
367#define IP1SR3_3_0 FM(MMC_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
368#define IP1SR3_7_4 FM(MMC_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) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
369#define IP1SR3_11_8 FM(MMC_SD_CMD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR3_15_12 FM(SD_CD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR3_19_16 FM(SD_WP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR3_23_20 FM(PWM1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR3_27_24 FM(PWM2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR3_31_28 FM(QSPI0_SSL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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
376/* IP2SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
377#define IP2SR3_3_0 FM(QSPI0_IO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
378#define IP2SR3_7_4 FM(QSPI0_IO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR3_11_8 FM(QSPI0_MISO_IO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR3_15_12 FM(QSPI0_MOSI_IO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR3_19_16 FM(QSPI0_SPCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR3_23_20 FM(QSPI1_MOSI_IO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR3_27_24 FM(QSPI1_SPCLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR3_31_28 FM(QSPI1_MISO_IO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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
386/* IP3SR3 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
387#define IP3SR3_3_0 FM(QSPI1_IO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
388#define IP3SR3_7_4 FM(QSPI1_SSL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP3SR3_11_8 FM(QSPI1_IO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP3SR3_15_12 FM(RPC_RESET_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) F_(0, 0) F_(0, 0) F_(0, 0)
391#define IP3SR3_19_16 FM(RPC_WP_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) F_(0, 0) F_(0, 0) F_(0, 0)
392#define IP3SR3_23_20 FM(RPC_INT_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) F_(0, 0) F_(0, 0) F_(0, 0)
393#define IP3SR3_27_24 FM(TCLK3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP3SR3_31_28 FM(TCLK4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
395
396/* SR4 */
397/* IP0SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
398#define IP0SR4_3_0 FM(SCL0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR4_7_4 FM(SDA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR4_11_8 FM(SCL1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR4_15_12 FM(SDA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR4_19_16 FM(SCL2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR4_23_20 FM(SDA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR4_27_24 FM(SCL3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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#define IP0SR4_31_28 FM(SDA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
406
407/* IP1SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
408#define IP1SR4_3_0 FM(HRX2) FM(SCK4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR4_7_4 FM(HTX2) FM(CTS4_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) F_(0, 0) F_(0, 0)
410#define IP1SR4_11_8 FM(HRTS2_N) FM(RTS4_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) F_(0, 0) F_(0, 0)
411#define IP1SR4_15_12 FM(SCIF_CLK2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR4_19_16 FM(HCTS2_N) FM(TX4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP1SR4_23_20 FM(HSCK2) FM(RX4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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#define IP1SR4_27_24 FM(PWM3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
415#define IP1SR4_31_28 FM(PWM4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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
417/* IP2SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
418#define IP2SR4_23_20 FM(PCIE0_CLKREQ_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) F_(0, 0) F_(0, 0) F_(0, 0)
419#define IP2SR4_31_28 FM(AVS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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
421/* IP3SR4 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
422#define IP3SR4_3_0 FM(AVS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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/* SR5 */
425/* IP0SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
426#define IP0SR5_3_0 FM(AVB2_AVTP_PPS) FM(Ether_GPTP_PPS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
427#define IP0SR5_7_4 FM(AVB2_AVTP_CAPTURE) FM(Ether_GPTP_CAPTURE) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR5_11_8 FM(AVB2_AVTP_MATCH) FM(Ether_GPTP_MATCH) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR5_15_12 FM(AVB2_LINK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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#define IP0SR5_19_16 FM(AVB2_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
431#define IP0SR5_23_20 FM(AVB2_MAGIC) FM(Ether_GPTP_PPS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR5_27_24 FM(AVB2_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)
433#define IP0SR5_31_28 FM(AVB2_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)
434
435/* IP1SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
436#define IP1SR5_3_0 FM(AVB2_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) F_(0, 0)
437#define IP1SR5_7_4 FM(AVB2_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) F_(0, 0)
438#define IP1SR5_11_8 FM(AVB2_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)
439#define IP1SR5_15_12 FM(AVB2_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) F_(0, 0)
440#define IP1SR5_19_16 FM(AVB2_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) F_(0, 0)
441#define IP1SR5_23_20 FM(AVB2_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) F_(0, 0)
442#define IP1SR5_27_24 FM(AVB2_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) F_(0, 0)
443#define IP1SR5_31_28 FM(AVB2_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) F_(0, 0)
444
445/* IP2SR5 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
446#define IP2SR5_3_0 FM(AVB2_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) F_(0, 0)
447#define IP2SR5_7_4 FM(AVB2_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) F_(0, 0)
448#define IP2SR5_11_8 FM(AVB2_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) F_(0, 0)
449#define IP2SR5_15_12 FM(AVB2_TX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP2SR5_19_16 FM(AVB2_RX_CTL) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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
452/* SR6 */
453/* IP0SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
454#define IP0SR6_3_0 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)
455#define IP0SR6_7_4 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)
456#define IP0SR6_11_8 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)
457#define IP0SR6_15_12 FM(AVB1_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) 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 IP0SR6_19_16 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)
459#define IP0SR6_23_20 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)
460#define IP0SR6_27_24 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)
461#define IP0SR6_31_28 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)
462
463/* IP1SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
464#define IP1SR6_3_0 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 IP1SR6_7_4 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)
466#define IP1SR6_11_8 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)
467#define IP1SR6_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)
468#define IP1SR6_19_16 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)
469#define IP1SR6_23_20 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)
470#define IP1SR6_27_24 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)
471#define IP1SR6_31_28 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)
472
473/* IP2SR6 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
474#define IP2SR6_3_0 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 IP2SR6_7_4 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)
476#define IP2SR6_11_8 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)
477#define IP2SR6_15_12 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)
478#define IP2SR6_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)
479
480/* SR7 */
481/* IP0SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
482#define IP0SR7_3_0 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)
483#define IP0SR7_7_4 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)
484#define IP0SR7_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)
485#define IP0SR7_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)
486#define IP0SR7_19_16 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)
487#define IP0SR7_23_20 FM(AVB0_PHY_INT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
488#define IP0SR7_27_24 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)
489#define IP0SR7_31_28 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)
490
491/* IP1SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
492#define IP1SR7_3_0 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)
493#define IP1SR7_7_4 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)
494#define IP1SR7_11_8 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)
495#define IP1SR7_15_12 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)
496#define IP1SR7_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)
497#define IP1SR7_23_20 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)
498#define IP1SR7_27_24 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)
499#define IP1SR7_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)
500
501/* IP2SR7 */ /* 0 */ /* 1 */ /* 2 */ /* 3 4 5 6 7 8 9 A B C D E F */
502#define IP2SR7_3_0 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)
503#define IP2SR7_7_4 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)
504#define IP2SR7_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)
505#define IP2SR7_15_12 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)
506#define IP2SR7_19_16 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)
507
508#define PINMUX_GPSR \
509 GPSR3_31 \
510 GPSR3_30 \
511 GPSR1_29 GPSR3_29 \
512 GPSR1_28 GPSR3_28 \
513 GPSR1_27 GPSR3_27 \
514 GPSR1_26 GPSR3_26 \
515 GPSR1_25 GPSR3_25 \
516 GPSR1_24 GPSR3_24 GPSR4_24 \
517 GPSR1_23 GPSR3_23 GPSR4_23 \
518 GPSR1_22 GPSR3_22 \
519 GPSR1_21 GPSR3_21 GPSR4_21 \
520 GPSR1_20 GPSR3_20 GPSR5_20 GPSR6_20 GPSR7_20 \
521 GPSR1_19 GPSR2_19 GPSR3_19 GPSR5_19 GPSR6_19 GPSR7_19 \
522GPSR0_18 GPSR1_18 GPSR3_18 GPSR5_18 GPSR6_18 GPSR7_18 \
523GPSR0_17 GPSR1_17 GPSR2_17 GPSR3_17 GPSR5_17 GPSR6_17 GPSR7_17 \
524GPSR0_16 GPSR1_16 GPSR3_16 GPSR5_16 GPSR6_16 GPSR7_16 \
525GPSR0_15 GPSR1_15 GPSR2_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 GPSR7_15 \
526GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 GPSR7_14 \
527GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 GPSR7_13 \
528GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 GPSR7_12 \
529GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 GPSR7_11 \
530GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 GPSR7_10 \
531GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 GPSR7_9 \
532GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 GPSR7_8 \
533GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 GPSR7_7 \
534GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 GPSR7_6 \
535GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 GPSR7_5 \
536GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 GPSR7_4 \
537GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 \
538GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 \
539GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 \
540GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0
541
542#define PINMUX_IPSR \
543\
544FM(IP0SR0_3_0) IP0SR0_3_0 FM(IP1SR0_3_0) IP1SR0_3_0 FM(IP2SR0_3_0) IP2SR0_3_0 \
545FM(IP0SR0_7_4) IP0SR0_7_4 FM(IP1SR0_7_4) IP1SR0_7_4 FM(IP2SR0_7_4) IP2SR0_7_4 \
546FM(IP0SR0_11_8) IP0SR0_11_8 FM(IP1SR0_11_8) IP1SR0_11_8 FM(IP2SR0_11_8) IP2SR0_11_8 \
547FM(IP0SR0_15_12) IP0SR0_15_12 FM(IP1SR0_15_12) IP1SR0_15_12 \
548FM(IP0SR0_19_16) IP0SR0_19_16 FM(IP1SR0_19_16) IP1SR0_19_16 \
549FM(IP0SR0_23_20) IP0SR0_23_20 FM(IP1SR0_23_20) IP1SR0_23_20 \
550FM(IP0SR0_27_24) IP0SR0_27_24 FM(IP1SR0_27_24) IP1SR0_27_24 \
551FM(IP0SR0_31_28) IP0SR0_31_28 FM(IP1SR0_31_28) IP1SR0_31_28 \
552\
553FM(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 \
554FM(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 \
555FM(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 \
556FM(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 \
557FM(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 \
558FM(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 \
559FM(IP0SR1_27_24) IP0SR1_27_24 FM(IP1SR1_27_24) IP1SR1_27_24 FM(IP2SR1_27_24) IP2SR1_27_24 \
560FM(IP0SR1_31_28) IP0SR1_31_28 FM(IP1SR1_31_28) IP1SR1_31_28 FM(IP2SR1_31_28) IP2SR1_31_28 \
561\
562FM(IP0SR2_3_0) IP0SR2_3_0 FM(IP1SR2_3_0) IP1SR2_3_0 \
563FM(IP0SR2_7_4) IP0SR2_7_4 FM(IP1SR2_7_4) IP1SR2_7_4 FM(IP2SR2_7_4) IP2SR2_7_4 \
564FM(IP0SR2_11_8) IP0SR2_11_8 FM(IP1SR2_11_8) IP1SR2_11_8 \
565FM(IP0SR2_15_12) IP0SR2_15_12 FM(IP1SR2_15_12) IP1SR2_15_12 FM(IP2SR2_15_12) IP2SR2_15_12 \
566FM(IP0SR2_19_16) IP0SR2_19_16 FM(IP1SR2_19_16) IP1SR2_19_16 \
567FM(IP0SR2_23_20) IP0SR2_23_20 FM(IP1SR2_23_20) IP1SR2_23_20 \
568FM(IP0SR2_27_24) IP0SR2_27_24 FM(IP1SR2_27_24) IP1SR2_27_24 \
569FM(IP0SR2_31_28) IP0SR2_31_28 FM(IP1SR2_31_28) IP1SR2_31_28 \
570\
571FM(IP0SR3_3_0) IP0SR3_3_0 FM(IP1SR3_3_0) IP1SR3_3_0 FM(IP2SR3_3_0) IP2SR3_3_0 FM(IP3SR3_3_0) IP3SR3_3_0 \
572FM(IP0SR3_7_4) IP0SR3_7_4 FM(IP1SR3_7_4) IP1SR3_7_4 FM(IP2SR3_7_4) IP2SR3_7_4 FM(IP3SR3_7_4) IP3SR3_7_4 \
573FM(IP0SR3_11_8) IP0SR3_11_8 FM(IP1SR3_11_8) IP1SR3_11_8 FM(IP2SR3_11_8) IP2SR3_11_8 FM(IP3SR3_11_8) IP3SR3_11_8 \
574FM(IP0SR3_15_12) IP0SR3_15_12 FM(IP1SR3_15_12) IP1SR3_15_12 FM(IP2SR3_15_12) IP2SR3_15_12 FM(IP3SR3_15_12) IP3SR3_15_12 \
575FM(IP0SR3_19_16) IP0SR3_19_16 FM(IP1SR3_19_16) IP1SR3_19_16 FM(IP2SR3_19_16) IP2SR3_19_16 FM(IP3SR3_19_16) IP3SR3_19_16 \
576FM(IP0SR3_23_20) IP0SR3_23_20 FM(IP1SR3_23_20) IP1SR3_23_20 FM(IP2SR3_23_20) IP2SR3_23_20 FM(IP3SR3_23_20) IP3SR3_23_20 \
577FM(IP0SR3_27_24) IP0SR3_27_24 FM(IP1SR3_27_24) IP1SR3_27_24 FM(IP2SR3_27_24) IP2SR3_27_24 FM(IP3SR3_27_24) IP3SR3_27_24 \
578FM(IP0SR3_31_28) IP0SR3_31_28 FM(IP1SR3_31_28) IP1SR3_31_28 FM(IP2SR3_31_28) IP2SR3_31_28 FM(IP3SR3_31_28) IP3SR3_31_28 \
579\
580FM(IP0SR4_3_0) IP0SR4_3_0 FM(IP1SR4_3_0) IP1SR4_3_0 FM(IP3SR4_3_0) IP3SR4_3_0 \
581FM(IP0SR4_7_4) IP0SR4_7_4 FM(IP1SR4_7_4) IP1SR4_7_4 \
582FM(IP0SR4_11_8) IP0SR4_11_8 FM(IP1SR4_11_8) IP1SR4_11_8 \
583FM(IP0SR4_15_12) IP0SR4_15_12 FM(IP1SR4_15_12) IP1SR4_15_12 \
584FM(IP0SR4_19_16) IP0SR4_19_16 FM(IP1SR4_19_16) IP1SR4_19_16 \
585FM(IP0SR4_23_20) IP0SR4_23_20 FM(IP1SR4_23_20) IP1SR4_23_20 FM(IP2SR4_23_20) IP2SR4_23_20 \
586FM(IP0SR4_27_24) IP0SR4_27_24 FM(IP1SR4_27_24) IP1SR4_27_24 \
587FM(IP0SR4_31_28) IP0SR4_31_28 FM(IP1SR4_31_28) IP1SR4_31_28 FM(IP2SR4_31_28) IP2SR4_31_28 \
588\
589FM(IP0SR5_3_0) IP0SR5_3_0 FM(IP1SR5_3_0) IP1SR5_3_0 FM(IP2SR5_3_0) IP2SR5_3_0 \
590FM(IP0SR5_7_4) IP0SR5_7_4 FM(IP1SR5_7_4) IP1SR5_7_4 FM(IP2SR5_7_4) IP2SR5_7_4 \
591FM(IP0SR5_11_8) IP0SR5_11_8 FM(IP1SR5_11_8) IP1SR5_11_8 FM(IP2SR5_11_8) IP2SR5_11_8 \
592FM(IP0SR5_15_12) IP0SR5_15_12 FM(IP1SR5_15_12) IP1SR5_15_12 FM(IP2SR5_15_12) IP2SR5_15_12 \
593FM(IP0SR5_19_16) IP0SR5_19_16 FM(IP1SR5_19_16) IP1SR5_19_16 FM(IP2SR5_19_16) IP2SR5_19_16 \
594FM(IP0SR5_23_20) IP0SR5_23_20 FM(IP1SR5_23_20) IP1SR5_23_20 \
595FM(IP0SR5_27_24) IP0SR5_27_24 FM(IP1SR5_27_24) IP1SR5_27_24 \
596FM(IP0SR5_31_28) IP0SR5_31_28 FM(IP1SR5_31_28) IP1SR5_31_28 \
597\
598FM(IP0SR6_3_0) IP0SR6_3_0 FM(IP1SR6_3_0) IP1SR6_3_0 FM(IP2SR6_3_0) IP2SR6_3_0 \
599FM(IP0SR6_7_4) IP0SR6_7_4 FM(IP1SR6_7_4) IP1SR6_7_4 FM(IP2SR6_7_4) IP2SR6_7_4 \
600FM(IP0SR6_11_8) IP0SR6_11_8 FM(IP1SR6_11_8) IP1SR6_11_8 FM(IP2SR6_11_8) IP2SR6_11_8 \
601FM(IP0SR6_15_12) IP0SR6_15_12 FM(IP1SR6_15_12) IP1SR6_15_12 FM(IP2SR6_15_12) IP2SR6_15_12 \
602FM(IP0SR6_19_16) IP0SR6_19_16 FM(IP1SR6_19_16) IP1SR6_19_16 FM(IP2SR6_19_16) IP2SR6_19_16 \
603FM(IP0SR6_23_20) IP0SR6_23_20 FM(IP1SR6_23_20) IP1SR6_23_20 \
604FM(IP0SR6_27_24) IP0SR6_27_24 FM(IP1SR6_27_24) IP1SR6_27_24 \
605FM(IP0SR6_31_28) IP0SR6_31_28 FM(IP1SR6_31_28) IP1SR6_31_28 \
606\
607FM(IP0SR7_3_0) IP0SR7_3_0 FM(IP1SR7_3_0) IP1SR7_3_0 FM(IP2SR7_3_0) IP2SR7_3_0 \
608FM(IP0SR7_7_4) IP0SR7_7_4 FM(IP1SR7_7_4) IP1SR7_7_4 FM(IP2SR7_7_4) IP2SR7_7_4 \
609FM(IP0SR7_11_8) IP0SR7_11_8 FM(IP1SR7_11_8) IP1SR7_11_8 FM(IP2SR7_11_8) IP2SR7_11_8 \
610FM(IP0SR7_15_12) IP0SR7_15_12 FM(IP1SR7_15_12) IP1SR7_15_12 FM(IP2SR7_15_12) IP2SR7_15_12 \
611FM(IP0SR7_19_16) IP0SR7_19_16 FM(IP1SR7_19_16) IP1SR7_19_16 FM(IP2SR7_19_16) IP2SR7_19_16 \
612FM(IP0SR7_23_20) IP0SR7_23_20 FM(IP1SR7_23_20) IP1SR7_23_20 \
613FM(IP0SR7_27_24) IP0SR7_27_24 FM(IP1SR7_27_24) IP1SR7_27_24 \
614FM(IP0SR7_31_28) IP0SR7_31_28 FM(IP1SR7_31_28) IP1SR7_31_28 \
615
616/* MOD_SEL4 */ /* 0 */ /* 1 */
617#define MOD_SEL4_7 FM(SEL_SDA3_0) FM(SEL_SDA3_1)
618#define MOD_SEL4_6 FM(SEL_SCL3_0) FM(SEL_SCL3_1)
619#define MOD_SEL4_5 FM(SEL_SDA2_0) FM(SEL_SDA2_1)
620#define MOD_SEL4_4 FM(SEL_SCL2_0) FM(SEL_SCL2_1)
621#define MOD_SEL4_3 FM(SEL_SDA1_0) FM(SEL_SDA1_1)
622#define MOD_SEL4_2 FM(SEL_SCL1_0) FM(SEL_SCL1_1)
623#define MOD_SEL4_1 FM(SEL_SDA0_0) FM(SEL_SDA0_1)
624#define MOD_SEL4_0 FM(SEL_SCL0_0) FM(SEL_SCL0_1)
625
626#define PINMUX_MOD_SELS \
627\
628MOD_SEL4_7 \
629MOD_SEL4_6 \
630MOD_SEL4_5 \
631MOD_SEL4_4 \
632MOD_SEL4_3 \
633MOD_SEL4_2 \
634MOD_SEL4_1 \
635MOD_SEL4_0
636
637enum {
638 PINMUX_RESERVED = 0,
639
640 PINMUX_DATA_BEGIN,
641 GP_ALL(DATA),
642 PINMUX_DATA_END,
643
644#define F_(x, y)
645#define FM(x) FN_##x,
646 PINMUX_FUNCTION_BEGIN,
647 GP_ALL(FN),
648 PINMUX_GPSR
649 PINMUX_IPSR
650 PINMUX_MOD_SELS
651 PINMUX_FUNCTION_END,
652#undef F_
653#undef FM
654
655#define F_(x, y)
656#define FM(x) x##_MARK,
657 PINMUX_MARK_BEGIN,
658 PINMUX_GPSR
659 PINMUX_IPSR
660 PINMUX_MOD_SELS
661 PINMUX_MARK_END,
662#undef F_
663#undef FM
664};
665
666static const u16 pinmux_data[] = {
667 PINMUX_DATA_GP_ALL(),
668
669 /* IP0SR0 */
670 PINMUX_IPSR_GPSR(IP0SR0_3_0, ERROROUTC_N_B),
671 PINMUX_IPSR_GPSR(IP0SR0_3_0, TCLK2_B),
672
673 PINMUX_IPSR_GPSR(IP0SR0_7_4, MSIOF3_SS1),
674
675 PINMUX_IPSR_GPSR(IP0SR0_11_8, MSIOF3_SS2),
676
Marek Vasut7c00fb32024-09-11 23:09:39 +0200677 PINMUX_IPSR_GPSR(IP0SR0_15_12, IRQ3_A),
Hai Pham6c45a3c2024-01-28 16:52:03 +0100678 PINMUX_IPSR_GPSR(IP0SR0_15_12, MSIOF3_SCK),
679
Marek Vasut7c00fb32024-09-11 23:09:39 +0200680 PINMUX_IPSR_GPSR(IP0SR0_19_16, IRQ2_A),
Hai Pham6c45a3c2024-01-28 16:52:03 +0100681 PINMUX_IPSR_GPSR(IP0SR0_19_16, MSIOF3_TXD),
682
Marek Vasut7c00fb32024-09-11 23:09:39 +0200683 PINMUX_IPSR_GPSR(IP0SR0_23_20, IRQ1_A),
Hai Pham6c45a3c2024-01-28 16:52:03 +0100684 PINMUX_IPSR_GPSR(IP0SR0_23_20, MSIOF3_RXD),
685
Marek Vasut7c00fb32024-09-11 23:09:39 +0200686 PINMUX_IPSR_GPSR(IP0SR0_27_24, IRQ0_A),
Hai Pham6c45a3c2024-01-28 16:52:03 +0100687 PINMUX_IPSR_GPSR(IP0SR0_27_24, MSIOF3_SYNC),
688
689 PINMUX_IPSR_GPSR(IP0SR0_31_28, MSIOF5_SS2),
690
691 /* IP1SR0 */
692 PINMUX_IPSR_GPSR(IP1SR0_3_0, MSIOF5_SS1),
693
694 PINMUX_IPSR_GPSR(IP1SR0_7_4, MSIOF5_SYNC),
695
696 PINMUX_IPSR_GPSR(IP1SR0_11_8, MSIOF5_TXD),
697
698 PINMUX_IPSR_GPSR(IP1SR0_15_12, MSIOF5_SCK),
699
700 PINMUX_IPSR_GPSR(IP1SR0_19_16, MSIOF5_RXD),
701
702 PINMUX_IPSR_GPSR(IP1SR0_23_20, MSIOF2_SS2),
703 PINMUX_IPSR_GPSR(IP1SR0_23_20, TCLK1_A),
704 PINMUX_IPSR_GPSR(IP1SR0_23_20, IRQ2_B),
705
706 PINMUX_IPSR_GPSR(IP1SR0_27_24, MSIOF2_SS1),
707 PINMUX_IPSR_GPSR(IP1SR0_27_24, HTX1_A),
708 PINMUX_IPSR_GPSR(IP1SR0_27_24, TX1_A),
709
710 PINMUX_IPSR_GPSR(IP1SR0_31_28, MSIOF2_SYNC),
711 PINMUX_IPSR_GPSR(IP1SR0_31_28, HRX1_A),
712 PINMUX_IPSR_GPSR(IP1SR0_31_28, RX1_A),
713
714 /* IP2SR0 */
715 PINMUX_IPSR_GPSR(IP2SR0_3_0, MSIOF2_TXD),
716 PINMUX_IPSR_GPSR(IP2SR0_3_0, HCTS1_N_A),
717 PINMUX_IPSR_GPSR(IP2SR0_3_0, CTS1_N_A),
718
719 PINMUX_IPSR_GPSR(IP2SR0_7_4, MSIOF2_SCK),
720 PINMUX_IPSR_GPSR(IP2SR0_7_4, HRTS1_N_A),
721 PINMUX_IPSR_GPSR(IP2SR0_7_4, RTS1_N_A),
722
723 PINMUX_IPSR_GPSR(IP2SR0_11_8, MSIOF2_RXD),
724 PINMUX_IPSR_GPSR(IP2SR0_11_8, HSCK1_A),
725 PINMUX_IPSR_GPSR(IP2SR0_11_8, SCK1_A),
726
727 /* IP0SR1 */
728 PINMUX_IPSR_GPSR(IP0SR1_3_0, MSIOF1_SS2),
729 PINMUX_IPSR_GPSR(IP0SR1_3_0, HTX3_B),
730 PINMUX_IPSR_GPSR(IP0SR1_3_0, TX3_B),
731
732 PINMUX_IPSR_GPSR(IP0SR1_7_4, MSIOF1_SS1),
733 PINMUX_IPSR_GPSR(IP0SR1_7_4, HCTS3_N_B),
734 PINMUX_IPSR_GPSR(IP0SR1_7_4, RX3_B),
735
736 PINMUX_IPSR_GPSR(IP0SR1_11_8, MSIOF1_SYNC),
737 PINMUX_IPSR_GPSR(IP0SR1_11_8, HRTS3_N_B),
738 PINMUX_IPSR_GPSR(IP0SR1_11_8, RTS3_N_B),
739
740 PINMUX_IPSR_GPSR(IP0SR1_15_12, MSIOF1_SCK),
741 PINMUX_IPSR_GPSR(IP0SR1_15_12, HSCK3_B),
742 PINMUX_IPSR_GPSR(IP0SR1_15_12, CTS3_N_B),
743
744 PINMUX_IPSR_GPSR(IP0SR1_19_16, MSIOF1_TXD),
745 PINMUX_IPSR_GPSR(IP0SR1_19_16, HRX3_B),
746 PINMUX_IPSR_GPSR(IP0SR1_19_16, SCK3_B),
747
748 PINMUX_IPSR_GPSR(IP0SR1_23_20, MSIOF1_RXD),
749
750 PINMUX_IPSR_GPSR(IP0SR1_27_24, MSIOF0_SS2),
751 PINMUX_IPSR_GPSR(IP0SR1_27_24, HTX1_B),
752 PINMUX_IPSR_GPSR(IP0SR1_27_24, TX1_B),
753
754 PINMUX_IPSR_GPSR(IP0SR1_31_28, MSIOF0_SS1),
755 PINMUX_IPSR_GPSR(IP0SR1_31_28, HRX1_B),
756 PINMUX_IPSR_GPSR(IP0SR1_31_28, RX1_B),
757
758 /* IP1SR1 */
759 PINMUX_IPSR_GPSR(IP1SR1_3_0, MSIOF0_SYNC),
760 PINMUX_IPSR_GPSR(IP1SR1_3_0, HCTS1_N_B),
761 PINMUX_IPSR_GPSR(IP1SR1_3_0, CTS1_N_B),
762
763 PINMUX_IPSR_GPSR(IP1SR1_7_4, MSIOF0_TXD),
764 PINMUX_IPSR_GPSR(IP1SR1_7_4, HRTS1_N_B),
765 PINMUX_IPSR_GPSR(IP1SR1_7_4, RTS1_N_B),
766
767 PINMUX_IPSR_GPSR(IP1SR1_11_8, MSIOF0_SCK),
768 PINMUX_IPSR_GPSR(IP1SR1_11_8, HSCK1_B),
769 PINMUX_IPSR_GPSR(IP1SR1_11_8, SCK1_B),
770
771 PINMUX_IPSR_GPSR(IP1SR1_15_12, MSIOF0_RXD),
772
773 PINMUX_IPSR_GPSR(IP1SR1_19_16, HTX0),
774 PINMUX_IPSR_GPSR(IP1SR1_19_16, TX0),
775
776 PINMUX_IPSR_GPSR(IP1SR1_23_20, HCTS0_N),
777 PINMUX_IPSR_GPSR(IP1SR1_23_20, CTS0_N),
778
779 PINMUX_IPSR_GPSR(IP1SR1_27_24, HRTS0_N),
780 PINMUX_IPSR_GPSR(IP1SR1_27_24, RTS0_N),
781 PINMUX_IPSR_GPSR(IP1SR1_27_24, PWM0_B),
782
783 PINMUX_IPSR_GPSR(IP1SR1_31_28, HSCK0),
784 PINMUX_IPSR_GPSR(IP1SR1_31_28, SCK0),
785 PINMUX_IPSR_GPSR(IP1SR1_31_28, PWM0_A),
786
787 /* IP2SR1 */
788 PINMUX_IPSR_GPSR(IP2SR1_3_0, HRX0),
789 PINMUX_IPSR_GPSR(IP2SR1_3_0, RX0),
790
791 PINMUX_IPSR_GPSR(IP2SR1_7_4, SCIF_CLK),
792 PINMUX_IPSR_GPSR(IP2SR1_7_4, IRQ4_A),
793
794 PINMUX_IPSR_GPSR(IP2SR1_11_8, SSI_SCK),
795 PINMUX_IPSR_GPSR(IP2SR1_11_8, TCLK3_B),
796
797 PINMUX_IPSR_GPSR(IP2SR1_15_12, SSI_WS),
798 PINMUX_IPSR_GPSR(IP2SR1_15_12, TCLK4_B),
799
800 PINMUX_IPSR_GPSR(IP2SR1_19_16, SSI_SD),
801 PINMUX_IPSR_GPSR(IP2SR1_19_16, IRQ0_B),
802
803 PINMUX_IPSR_GPSR(IP2SR1_23_20, AUDIO_CLKOUT),
804 PINMUX_IPSR_GPSR(IP2SR1_23_20, IRQ1_B),
805
806 PINMUX_IPSR_GPSR(IP2SR1_27_24, AUDIO_CLKIN),
807 PINMUX_IPSR_GPSR(IP2SR1_27_24, PWM3_C),
808
809 PINMUX_IPSR_GPSR(IP2SR1_31_28, TCLK2_A),
810 PINMUX_IPSR_GPSR(IP2SR1_31_28, MSIOF4_SS1),
811 PINMUX_IPSR_GPSR(IP2SR1_31_28, IRQ3_B),
812
813 /* IP3SR1 */
814 PINMUX_IPSR_GPSR(IP3SR1_3_0, HRX3_A),
815 PINMUX_IPSR_GPSR(IP3SR1_3_0, SCK3_A),
816 PINMUX_IPSR_GPSR(IP3SR1_3_0, MSIOF4_SS2),
817
818 PINMUX_IPSR_GPSR(IP3SR1_7_4, HSCK3_A),
819 PINMUX_IPSR_GPSR(IP3SR1_7_4, CTS3_N_A),
820 PINMUX_IPSR_GPSR(IP3SR1_7_4, MSIOF4_SCK),
821 PINMUX_IPSR_GPSR(IP3SR1_7_4, TPU0TO0_B),
822
823 PINMUX_IPSR_GPSR(IP3SR1_11_8, HRTS3_N_A),
824 PINMUX_IPSR_GPSR(IP3SR1_11_8, RTS3_N_A),
825 PINMUX_IPSR_GPSR(IP3SR1_11_8, MSIOF4_TXD),
826 PINMUX_IPSR_GPSR(IP3SR1_11_8, TPU0TO1_B),
827
828 PINMUX_IPSR_GPSR(IP3SR1_15_12, HCTS3_N_A),
829 PINMUX_IPSR_GPSR(IP3SR1_15_12, RX3_A),
830 PINMUX_IPSR_GPSR(IP3SR1_15_12, MSIOF4_RXD),
831
832 PINMUX_IPSR_GPSR(IP3SR1_19_16, HTX3_A),
833 PINMUX_IPSR_GPSR(IP3SR1_19_16, TX3_A),
834 PINMUX_IPSR_GPSR(IP3SR1_19_16, MSIOF4_SYNC),
835
836 PINMUX_IPSR_GPSR(IP3SR1_23_20, ERROROUTC_N_A),
837
838 /* IP0SR2 */
839 PINMUX_IPSR_GPSR(IP0SR2_3_0, FXR_TXDA),
840 PINMUX_IPSR_GPSR(IP0SR2_3_0, TPU0TO2_B),
841
842 PINMUX_IPSR_GPSR(IP0SR2_7_4, FXR_TXENA_N_A),
843 PINMUX_IPSR_GPSR(IP0SR2_7_4, TPU0TO3_B),
844
845 PINMUX_IPSR_GPSR(IP0SR2_11_8, RXDA_EXTFXR),
846 PINMUX_IPSR_GPSR(IP0SR2_11_8, IRQ5),
847
848 PINMUX_IPSR_GPSR(IP0SR2_15_12, CLK_EXTFXR),
849 PINMUX_IPSR_GPSR(IP0SR2_15_12, IRQ4_B),
850
851 PINMUX_IPSR_GPSR(IP0SR2_19_16, RXDB_EXTFXR),
852
853 PINMUX_IPSR_GPSR(IP0SR2_23_20, FXR_TXENB_N_A),
854
855 PINMUX_IPSR_GPSR(IP0SR2_27_24, FXR_TXDB),
856
857 PINMUX_IPSR_GPSR(IP0SR2_31_28, TPU0TO1_A),
858 PINMUX_IPSR_GPSR(IP0SR2_31_28, TCLK2_C),
859
860 /* IP1SR2 */
861 PINMUX_IPSR_GPSR(IP1SR2_3_0, TPU0TO0_A),
862 PINMUX_IPSR_GPSR(IP1SR2_3_0, TCLK1_B),
863
864 PINMUX_IPSR_GPSR(IP1SR2_7_4, CAN_CLK),
865 PINMUX_IPSR_GPSR(IP1SR2_7_4, FXR_TXENA_N_B),
866
867 PINMUX_IPSR_GPSR(IP1SR2_11_8, CANFD0_TX),
868 PINMUX_IPSR_GPSR(IP1SR2_11_8, FXR_TXENB_N_B),
869
870 PINMUX_IPSR_GPSR(IP1SR2_15_12, CANFD0_RX),
871 PINMUX_IPSR_GPSR(IP1SR2_15_12, STPWT_EXTFXR),
872
873 PINMUX_IPSR_GPSR(IP1SR2_19_16, CANFD2_TX),
874 PINMUX_IPSR_GPSR(IP1SR2_19_16, TPU0TO2_A),
875 PINMUX_IPSR_GPSR(IP1SR2_19_16, TCLK3_C),
876
877 PINMUX_IPSR_GPSR(IP1SR2_23_20, CANFD2_RX),
878 PINMUX_IPSR_GPSR(IP1SR2_23_20, TPU0TO3_A),
879 PINMUX_IPSR_GPSR(IP1SR2_23_20, PWM1_B),
880 PINMUX_IPSR_GPSR(IP1SR2_23_20, TCLK4_C),
881
882 PINMUX_IPSR_GPSR(IP1SR2_27_24, CANFD3_TX),
883 PINMUX_IPSR_GPSR(IP1SR2_27_24, PWM2_B),
884
885 PINMUX_IPSR_GPSR(IP1SR2_31_28, CANFD3_RX),
886 PINMUX_IPSR_GPSR(IP1SR2_31_28, PWM3_B),
887
888 /* IP2SR2 */
889 PINMUX_IPSR_GPSR(IP2SR2_7_4, CANFD1_TX),
890 PINMUX_IPSR_GPSR(IP2SR2_7_4, PWM1_C),
891
892 PINMUX_IPSR_GPSR(IP2SR2_15_12, CANFD1_RX),
893 PINMUX_IPSR_GPSR(IP2SR2_15_12, PWM2_C),
894
895 /* IP0SR3 */
896 PINMUX_IPSR_GPSR(IP0SR3_3_0, MMC_SD_D1),
897
898 PINMUX_IPSR_GPSR(IP0SR3_7_4, MMC_SD_D0),
899
900 PINMUX_IPSR_GPSR(IP0SR3_11_8, MMC_SD_D2),
901
902 PINMUX_IPSR_GPSR(IP0SR3_15_12, MMC_SD_CLK),
903
904 PINMUX_IPSR_GPSR(IP0SR3_19_16, MMC_DS),
905
906 PINMUX_IPSR_GPSR(IP0SR3_23_20, MMC_SD_D3),
907
908 PINMUX_IPSR_GPSR(IP0SR3_27_24, MMC_D5),
909
910 PINMUX_IPSR_GPSR(IP0SR3_31_28, MMC_D4),
911
912 /* IP1SR3 */
913 PINMUX_IPSR_GPSR(IP1SR3_3_0, MMC_D7),
914
915 PINMUX_IPSR_GPSR(IP1SR3_7_4, MMC_D6),
916
917 PINMUX_IPSR_GPSR(IP1SR3_11_8, MMC_SD_CMD),
918
919 PINMUX_IPSR_GPSR(IP1SR3_15_12, SD_CD),
920
921 PINMUX_IPSR_GPSR(IP1SR3_19_16, SD_WP),
922
923 PINMUX_IPSR_GPSR(IP1SR3_23_20, PWM1_A),
924
925 PINMUX_IPSR_GPSR(IP1SR3_27_24, PWM2_A),
926
927 PINMUX_IPSR_GPSR(IP1SR3_31_28, QSPI0_SSL),
928
929 /* IP2SR3 */
930 PINMUX_IPSR_GPSR(IP2SR3_3_0, QSPI0_IO3),
931
932 PINMUX_IPSR_GPSR(IP2SR3_7_4, QSPI0_IO2),
933
934 PINMUX_IPSR_GPSR(IP2SR3_11_8, QSPI0_MISO_IO1),
935
936 PINMUX_IPSR_GPSR(IP2SR3_15_12, QSPI0_MOSI_IO0),
937
938 PINMUX_IPSR_GPSR(IP2SR3_19_16, QSPI0_SPCLK),
939
940 PINMUX_IPSR_GPSR(IP2SR3_23_20, QSPI1_MOSI_IO0),
941
942 PINMUX_IPSR_GPSR(IP2SR3_27_24, QSPI1_SPCLK),
943
944 PINMUX_IPSR_GPSR(IP2SR3_31_28, QSPI1_MISO_IO1),
945
946 /* IP3SR3 */
947 PINMUX_IPSR_GPSR(IP3SR3_3_0, QSPI1_IO2),
948
949 PINMUX_IPSR_GPSR(IP3SR3_7_4, QSPI1_SSL),
950
951 PINMUX_IPSR_GPSR(IP3SR3_11_8, QSPI1_IO3),
952
953 PINMUX_IPSR_GPSR(IP3SR3_15_12, RPC_RESET_N),
954
955 PINMUX_IPSR_GPSR(IP3SR3_19_16, RPC_WP_N),
956
957 PINMUX_IPSR_GPSR(IP3SR3_23_20, RPC_INT_N),
958
959 PINMUX_IPSR_GPSR(IP3SR3_27_24, TCLK3_A),
960
961 PINMUX_IPSR_GPSR(IP3SR3_31_28, TCLK4_A),
962
963 /* IP0SR4 */
964 PINMUX_IPSR_MSEL(IP0SR4_3_0, SCL0, SEL_SCL0_0),
965
966 PINMUX_IPSR_MSEL(IP0SR4_7_4, SDA0, SEL_SDA0_0),
967
968 PINMUX_IPSR_MSEL(IP0SR4_11_8, SCL1, SEL_SCL1_0),
969
970 PINMUX_IPSR_MSEL(IP0SR4_15_12, SDA1, SEL_SDA1_0),
971
972 PINMUX_IPSR_MSEL(IP0SR4_19_16, SCL2, SEL_SCL2_0),
973
974 PINMUX_IPSR_MSEL(IP0SR4_23_20, SDA2, SEL_SDA2_0),
975
976 PINMUX_IPSR_MSEL(IP0SR4_27_24, SCL3, SEL_SCL3_0),
977
978 PINMUX_IPSR_MSEL(IP0SR4_31_28, SDA3, SEL_SDA3_0),
979
980 /* IP1SR4 */
981 PINMUX_IPSR_GPSR(IP1SR4_3_0, HRX2),
982 PINMUX_IPSR_GPSR(IP1SR4_3_0, SCK4),
983
984 PINMUX_IPSR_GPSR(IP1SR4_7_4, HTX2),
985 PINMUX_IPSR_GPSR(IP1SR4_7_4, CTS4_N),
986
987 PINMUX_IPSR_GPSR(IP1SR4_11_8, HRTS2_N),
988 PINMUX_IPSR_GPSR(IP1SR4_11_8, RTS4_N),
989
990 PINMUX_IPSR_GPSR(IP1SR4_15_12, SCIF_CLK2),
991
992 PINMUX_IPSR_GPSR(IP1SR4_19_16, HCTS2_N),
993 PINMUX_IPSR_GPSR(IP1SR4_19_16, TX4),
994
995 PINMUX_IPSR_GPSR(IP1SR4_23_20, HSCK2),
996 PINMUX_IPSR_GPSR(IP1SR4_23_20, RX4),
997
998 PINMUX_IPSR_GPSR(IP1SR4_27_24, PWM3_A),
999
1000 PINMUX_IPSR_GPSR(IP1SR4_31_28, PWM4),
1001
1002 /* IP2SR4 */
1003 PINMUX_IPSR_GPSR(IP2SR4_23_20, PCIE0_CLKREQ_N),
1004
1005 PINMUX_IPSR_GPSR(IP2SR4_31_28, AVS0),
1006
1007 /* IP3SR4 */
1008 PINMUX_IPSR_GPSR(IP3SR4_3_0, AVS1),
1009
1010 /* IP0SR5 */
1011 PINMUX_IPSR_GPSR(IP0SR5_3_0, AVB2_AVTP_PPS),
1012 PINMUX_IPSR_GPSR(IP0SR5_3_0, Ether_GPTP_PPS0),
1013
1014 PINMUX_IPSR_GPSR(IP0SR5_7_4, AVB2_AVTP_CAPTURE),
1015 PINMUX_IPSR_GPSR(IP0SR5_7_4, Ether_GPTP_CAPTURE),
1016
1017 PINMUX_IPSR_GPSR(IP0SR5_11_8, AVB2_AVTP_MATCH),
1018 PINMUX_IPSR_GPSR(IP0SR5_11_8, Ether_GPTP_MATCH),
1019
1020 PINMUX_IPSR_GPSR(IP0SR5_15_12, AVB2_LINK),
1021
1022 PINMUX_IPSR_GPSR(IP0SR5_19_16, AVB2_PHY_INT),
1023
1024 PINMUX_IPSR_GPSR(IP0SR5_23_20, AVB2_MAGIC),
1025 PINMUX_IPSR_GPSR(IP0SR5_23_20, Ether_GPTP_PPS1),
1026
1027 PINMUX_IPSR_GPSR(IP0SR5_27_24, AVB2_MDC),
1028
1029 PINMUX_IPSR_GPSR(IP0SR5_31_28, AVB2_TXCREFCLK),
1030
1031 /* IP1SR5 */
1032 PINMUX_IPSR_GPSR(IP1SR5_3_0, AVB2_TD3),
1033
1034 PINMUX_IPSR_GPSR(IP1SR5_7_4, AVB2_RD3),
1035
1036 PINMUX_IPSR_GPSR(IP1SR5_11_8, AVB2_MDIO),
1037
1038 PINMUX_IPSR_GPSR(IP1SR5_15_12, AVB2_TD2),
1039
1040 PINMUX_IPSR_GPSR(IP1SR5_19_16, AVB2_TD1),
1041
1042 PINMUX_IPSR_GPSR(IP1SR5_23_20, AVB2_RD2),
1043
1044 PINMUX_IPSR_GPSR(IP1SR5_27_24, AVB2_RD1),
1045
1046 PINMUX_IPSR_GPSR(IP1SR5_31_28, AVB2_TD0),
1047
1048 /* IP2SR5 */
1049 PINMUX_IPSR_GPSR(IP2SR5_3_0, AVB2_TXC),
1050
1051 PINMUX_IPSR_GPSR(IP2SR5_7_4, AVB2_RD0),
1052
1053 PINMUX_IPSR_GPSR(IP2SR5_11_8, AVB2_RXC),
1054
1055 PINMUX_IPSR_GPSR(IP2SR5_15_12, AVB2_TX_CTL),
1056
1057 PINMUX_IPSR_GPSR(IP2SR5_19_16, AVB2_RX_CTL),
1058
1059 /* IP0SR6 */
1060 PINMUX_IPSR_GPSR(IP0SR6_3_0, AVB1_MDIO),
1061
1062 PINMUX_IPSR_GPSR(IP0SR6_7_4, AVB1_MAGIC),
1063
1064 PINMUX_IPSR_GPSR(IP0SR6_11_8, AVB1_MDC),
1065
1066 PINMUX_IPSR_GPSR(IP0SR6_15_12, AVB1_PHY_INT),
1067
1068 PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_LINK),
1069 PINMUX_IPSR_GPSR(IP0SR6_19_16, AVB1_MII_TX_ER),
1070
1071 PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_AVTP_MATCH),
1072 PINMUX_IPSR_GPSR(IP0SR6_23_20, AVB1_MII_RX_ER),
1073
1074 PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_TXC),
1075 PINMUX_IPSR_GPSR(IP0SR6_27_24, AVB1_MII_TXC),
1076
1077 PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_TX_CTL),
1078 PINMUX_IPSR_GPSR(IP0SR6_31_28, AVB1_MII_TX_EN),
1079
1080 /* IP1SR6 */
1081 PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_RXC),
1082 PINMUX_IPSR_GPSR(IP1SR6_3_0, AVB1_MII_RXC),
1083
1084 PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_RX_CTL),
1085 PINMUX_IPSR_GPSR(IP1SR6_7_4, AVB1_MII_RX_DV),
1086
1087 PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_AVTP_PPS),
1088 PINMUX_IPSR_GPSR(IP1SR6_11_8, AVB1_MII_COL),
1089
1090 PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_AVTP_CAPTURE),
1091 PINMUX_IPSR_GPSR(IP1SR6_15_12, AVB1_MII_CRS),
1092
1093 PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_TD1),
1094 PINMUX_IPSR_GPSR(IP1SR6_19_16, AVB1_MII_TD1),
1095
1096 PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_TD0),
1097 PINMUX_IPSR_GPSR(IP1SR6_23_20, AVB1_MII_TD0),
1098
1099 PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_RD1),
1100 PINMUX_IPSR_GPSR(IP1SR6_27_24, AVB1_MII_RD1),
1101
1102 PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_RD0),
1103 PINMUX_IPSR_GPSR(IP1SR6_31_28, AVB1_MII_RD0),
1104
1105 /* IP2SR6 */
1106 PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_TD2),
1107 PINMUX_IPSR_GPSR(IP2SR6_3_0, AVB1_MII_TD2),
1108
1109 PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_RD2),
1110 PINMUX_IPSR_GPSR(IP2SR6_7_4, AVB1_MII_RD2),
1111
1112 PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_TD3),
1113 PINMUX_IPSR_GPSR(IP2SR6_11_8, AVB1_MII_TD3),
1114
1115 PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_RD3),
1116 PINMUX_IPSR_GPSR(IP2SR6_15_12, AVB1_MII_RD3),
1117
1118 PINMUX_IPSR_GPSR(IP2SR6_19_16, AVB1_TXCREFCLK),
1119
1120 /* IP0SR7 */
1121 PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_AVTP_PPS),
1122 PINMUX_IPSR_GPSR(IP0SR7_3_0, AVB0_MII_COL),
1123
1124 PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_AVTP_CAPTURE),
1125 PINMUX_IPSR_GPSR(IP0SR7_7_4, AVB0_MII_CRS),
1126
1127 PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_AVTP_MATCH),
1128 PINMUX_IPSR_GPSR(IP0SR7_11_8, AVB0_MII_RX_ER),
1129 PINMUX_IPSR_GPSR(IP0SR7_11_8, CC5_OSCOUT),
1130
1131 PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_TD3),
1132 PINMUX_IPSR_GPSR(IP0SR7_15_12, AVB0_MII_TD3),
1133
1134 PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_LINK),
1135 PINMUX_IPSR_GPSR(IP0SR7_19_16, AVB0_MII_TX_ER),
1136
1137 PINMUX_IPSR_GPSR(IP0SR7_23_20, AVB0_PHY_INT),
1138
1139 PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_TD2),
1140 PINMUX_IPSR_GPSR(IP0SR7_27_24, AVB0_MII_TD2),
1141
1142 PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_TD1),
1143 PINMUX_IPSR_GPSR(IP0SR7_31_28, AVB0_MII_TD1),
1144
1145 /* IP1SR7 */
1146 PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_RD3),
1147 PINMUX_IPSR_GPSR(IP1SR7_3_0, AVB0_MII_RD3),
1148
1149 PINMUX_IPSR_GPSR(IP1SR7_7_4, AVB0_TXCREFCLK),
1150
1151 PINMUX_IPSR_GPSR(IP1SR7_11_8, AVB0_MAGIC),
1152
1153 PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_TD0),
1154 PINMUX_IPSR_GPSR(IP1SR7_15_12, AVB0_MII_TD0),
1155
1156 PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_RD2),
1157 PINMUX_IPSR_GPSR(IP1SR7_19_16, AVB0_MII_RD2),
1158
1159 PINMUX_IPSR_GPSR(IP1SR7_23_20, AVB0_MDC),
1160
1161 PINMUX_IPSR_GPSR(IP1SR7_27_24, AVB0_MDIO),
1162
1163 PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_TXC),
1164 PINMUX_IPSR_GPSR(IP1SR7_31_28, AVB0_MII_TXC),
1165
1166 /* IP2SR7 */
1167 PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_TX_CTL),
1168 PINMUX_IPSR_GPSR(IP2SR7_3_0, AVB0_MII_TX_EN),
1169
1170 PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_RD1),
1171 PINMUX_IPSR_GPSR(IP2SR7_7_4, AVB0_MII_RD1),
1172
1173 PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_RD0),
1174 PINMUX_IPSR_GPSR(IP2SR7_11_8, AVB0_MII_RD0),
1175
1176 PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_RXC),
1177 PINMUX_IPSR_GPSR(IP2SR7_15_12, AVB0_MII_RXC),
1178
1179 PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_RX_CTL),
1180 PINMUX_IPSR_GPSR(IP2SR7_19_16, AVB0_MII_RX_DV),
1181};
1182
1183/*
1184 * Pins not associated with a GPIO port.
1185 */
1186enum {
1187 GP_ASSIGN_LAST(),
1188 NOGP_ALL(),
1189};
1190
1191static const struct sh_pfc_pin pinmux_pins[] = {
1192 PINMUX_GPIO_GP_ALL(),
1193 PINMUX_NOGP_ALL(),
1194};
1195
1196/* - AUDIO CLOCK ----------------------------------------- */
1197static const unsigned int audio_clkin_pins[] = {
1198 /* CLK IN */
1199 RCAR_GP_PIN(1, 22),
1200};
1201static const unsigned int audio_clkin_mux[] = {
1202 AUDIO_CLKIN_MARK,
1203};
1204static const unsigned int audio_clkout_pins[] = {
1205 /* CLK OUT */
1206 RCAR_GP_PIN(1, 21),
1207};
1208static const unsigned int audio_clkout_mux[] = {
1209 AUDIO_CLKOUT_MARK,
1210};
1211
1212/* - AVB0 ------------------------------------------------ */
1213static const unsigned int avb0_link_pins[] = {
1214 /* AVB0_LINK */
1215 RCAR_GP_PIN(7, 4),
1216};
1217static const unsigned int avb0_link_mux[] = {
1218 AVB0_LINK_MARK,
1219};
1220static const unsigned int avb0_magic_pins[] = {
1221 /* AVB0_MAGIC */
1222 RCAR_GP_PIN(7, 10),
1223};
1224static const unsigned int avb0_magic_mux[] = {
1225 AVB0_MAGIC_MARK,
1226};
1227static const unsigned int avb0_phy_int_pins[] = {
1228 /* AVB0_PHY_INT */
1229 RCAR_GP_PIN(7, 5),
1230};
1231static const unsigned int avb0_phy_int_mux[] = {
1232 AVB0_PHY_INT_MARK,
1233};
1234static const unsigned int avb0_mdio_pins[] = {
1235 /* AVB0_MDC, AVB0_MDIO */
1236 RCAR_GP_PIN(7, 13), RCAR_GP_PIN(7, 14),
1237};
1238static const unsigned int avb0_mdio_mux[] = {
1239 AVB0_MDC_MARK, AVB0_MDIO_MARK,
1240};
Marek Vasut7c00fb32024-09-11 23:09:39 +02001241static const unsigned int avb0_mii_pins[] = {
1242 /*
1243 * AVB0_MII_TD0, AVB0_MII_TD1, AVB0_MII_TD2,
1244 * AVB0_MII_TD3, AVB0_MII_RD0, AVB0_MII_RD1,
1245 * AVB0_MII_RD2, AVB0_MII_RD3, AVB0_MII_TXC,
1246 * AVB0_MII_TX_EN, AVB0_MII_TX_ER, AVB0_MII_RXC,
1247 * AVB0_MII_RX_DV, AVB0_MII_RX_ER, AVB0_MII_CRS,
1248 * AVB0_MII_COL
1249 */
1250 RCAR_GP_PIN(7, 11), RCAR_GP_PIN(7, 7), RCAR_GP_PIN(7, 6),
1251 RCAR_GP_PIN(7, 3), RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
1252 RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 15),
1253 RCAR_GP_PIN(7, 16), RCAR_GP_PIN(7, 4), RCAR_GP_PIN(7, 19),
1254 RCAR_GP_PIN(7, 20), RCAR_GP_PIN(7, 2), RCAR_GP_PIN(7, 1),
1255 RCAR_GP_PIN(7, 0),
1256};
1257static const unsigned int avb0_mii_mux[] = {
1258 AVB0_MII_TD0_MARK, AVB0_MII_TD1_MARK, AVB0_MII_TD2_MARK,
1259 AVB0_MII_TD3_MARK, AVB0_MII_RD0_MARK, AVB0_MII_RD1_MARK,
1260 AVB0_MII_RD2_MARK, AVB0_MII_RD3_MARK, AVB0_MII_TXC_MARK,
1261 AVB0_MII_TX_EN_MARK, AVB0_MII_TX_ER_MARK, AVB0_MII_RXC_MARK,
1262 AVB0_MII_RX_DV_MARK, AVB0_MII_RX_ER_MARK, AVB0_MII_CRS_MARK,
1263 AVB0_MII_COL_MARK,
1264};
Hai Pham6c45a3c2024-01-28 16:52:03 +01001265static const unsigned int avb0_rgmii_pins[] = {
1266 /*
1267 * AVB0_TX_CTL, AVB0_TXC, AVB0_TD0, AVB0_TD1, AVB0_TD2, AVB0_TD3,
1268 * AVB0_RX_CTL, AVB0_RXC, AVB0_RD0, AVB0_RD1, AVB0_RD2, AVB0_RD3,
1269 */
1270 RCAR_GP_PIN(7, 16), RCAR_GP_PIN(7, 15),
1271 RCAR_GP_PIN(7, 11), RCAR_GP_PIN(7, 7),
1272 RCAR_GP_PIN(7, 6), RCAR_GP_PIN(7, 3),
1273 RCAR_GP_PIN(7, 20), RCAR_GP_PIN(7, 19),
1274 RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
1275 RCAR_GP_PIN(7, 12), RCAR_GP_PIN(7, 8),
1276};
1277static const unsigned int avb0_rgmii_mux[] = {
1278 AVB0_TX_CTL_MARK, AVB0_TXC_MARK,
1279 AVB0_TD0_MARK, AVB0_TD1_MARK,
1280 AVB0_TD2_MARK, AVB0_TD3_MARK,
1281 AVB0_RX_CTL_MARK, AVB0_RXC_MARK,
1282 AVB0_RD0_MARK, AVB0_RD1_MARK,
1283 AVB0_RD2_MARK, AVB0_RD3_MARK,
1284};
1285static const unsigned int avb0_txcrefclk_pins[] = {
1286 /* AVB0_TXCREFCLK */
1287 RCAR_GP_PIN(7, 9),
1288};
1289static const unsigned int avb0_txcrefclk_mux[] = {
1290 AVB0_TXCREFCLK_MARK,
1291};
1292static const unsigned int avb0_avtp_pps_pins[] = {
1293 /* AVB0_AVTP_PPS */
1294 RCAR_GP_PIN(7, 0),
1295};
1296static const unsigned int avb0_avtp_pps_mux[] = {
1297 AVB0_AVTP_PPS_MARK,
1298};
1299static const unsigned int avb0_avtp_capture_pins[] = {
1300 /* AVB0_AVTP_CAPTURE */
1301 RCAR_GP_PIN(7, 1),
1302};
1303static const unsigned int avb0_avtp_capture_mux[] = {
1304 AVB0_AVTP_CAPTURE_MARK,
1305};
1306static const unsigned int avb0_avtp_match_pins[] = {
1307 /* AVB0_AVTP_MATCH */
1308 RCAR_GP_PIN(7, 2),
1309};
1310static const unsigned int avb0_avtp_match_mux[] = {
1311 AVB0_AVTP_MATCH_MARK,
1312};
1313
1314/* - AVB1 ------------------------------------------------ */
1315static const unsigned int avb1_link_pins[] = {
1316 /* AVB1_LINK */
1317 RCAR_GP_PIN(6, 4),
1318};
1319static const unsigned int avb1_link_mux[] = {
1320 AVB1_LINK_MARK,
1321};
1322static const unsigned int avb1_magic_pins[] = {
1323 /* AVB1_MAGIC */
1324 RCAR_GP_PIN(6, 1),
1325};
1326static const unsigned int avb1_magic_mux[] = {
1327 AVB1_MAGIC_MARK,
1328};
1329static const unsigned int avb1_phy_int_pins[] = {
1330 /* AVB1_PHY_INT */
1331 RCAR_GP_PIN(6, 3),
1332};
1333static const unsigned int avb1_phy_int_mux[] = {
1334 AVB1_PHY_INT_MARK,
1335};
1336static const unsigned int avb1_mdio_pins[] = {
1337 /* AVB1_MDC, AVB1_MDIO */
1338 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 0),
1339};
1340static const unsigned int avb1_mdio_mux[] = {
1341 AVB1_MDC_MARK, AVB1_MDIO_MARK,
1342};
Marek Vasut7c00fb32024-09-11 23:09:39 +02001343static const unsigned int avb1_mii_pins[] = {
1344 /*
1345 * AVB1_MII_TD0, AVB1_MII_TD1, AVB1_MII_TD2,
1346 * AVB1_MII_TD3, AVB1_MII_RD0, AVB1_MII_RD1,
1347 * AVB1_MII_RD2, AVB1_MII_RD3, AVB1_MII_TXC,
1348 * AVB1_MII_TX_EN, AVB1_MII_TX_ER, AVB1_MII_RXC,
1349 * AVB1_MII_RX_DV, AVB1_MII_RX_ER, AVB1_MII_CRS,
1350 * AVB1_MII_COL
1351 */
1352 RCAR_GP_PIN(6, 13), RCAR_GP_PIN(6, 12), RCAR_GP_PIN(6, 16),
1353 RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 14),
1354 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 19), RCAR_GP_PIN(6, 6),
1355 RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 8),
1356 RCAR_GP_PIN(6, 9), RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 11),
1357 RCAR_GP_PIN(6, 10),
1358};
1359static const unsigned int avb1_mii_mux[] = {
1360 AVB1_MII_TD0_MARK, AVB1_MII_TD1_MARK, AVB1_MII_TD2_MARK,
1361 AVB1_MII_TD3_MARK, AVB1_MII_RD0_MARK, AVB1_MII_RD1_MARK,
1362 AVB1_MII_RD2_MARK, AVB1_MII_RD3_MARK, AVB1_MII_TXC_MARK,
1363 AVB1_MII_TX_EN_MARK, AVB1_MII_TX_ER_MARK, AVB1_MII_RXC_MARK,
1364 AVB1_MII_RX_DV_MARK, AVB1_MII_RX_ER_MARK, AVB1_MII_CRS_MARK,
1365 AVB1_MII_COL_MARK,
1366};
Hai Pham6c45a3c2024-01-28 16:52:03 +01001367static const unsigned int avb1_rgmii_pins[] = {
1368 /*
1369 * AVB1_TX_CTL, AVB1_TXC, AVB1_TD0, AVB1_TD1, AVB1_TD2, AVB1_TD3,
1370 * AVB1_RX_CTL, AVB1_RXC, AVB1_RD0, AVB1_RD1, AVB1_RD2, AVB1_RD3,
1371 */
1372 RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
1373 RCAR_GP_PIN(6, 13), RCAR_GP_PIN(6, 12),
1374 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 18),
1375 RCAR_GP_PIN(6, 9), RCAR_GP_PIN(6, 8),
1376 RCAR_GP_PIN(6, 15), RCAR_GP_PIN(6, 14),
1377 RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 19),
1378};
1379static const unsigned int avb1_rgmii_mux[] = {
1380 AVB1_TX_CTL_MARK, AVB1_TXC_MARK,
1381 AVB1_TD0_MARK, AVB1_TD1_MARK,
1382 AVB1_TD2_MARK, AVB1_TD3_MARK,
1383 AVB1_RX_CTL_MARK, AVB1_RXC_MARK,
1384 AVB1_RD0_MARK, AVB1_RD1_MARK,
1385 AVB1_RD2_MARK, AVB1_RD3_MARK,
1386};
1387static const unsigned int avb1_txcrefclk_pins[] = {
1388 /* AVB1_TXCREFCLK */
1389 RCAR_GP_PIN(6, 20),
1390};
1391static const unsigned int avb1_txcrefclk_mux[] = {
1392 AVB1_TXCREFCLK_MARK,
1393};
1394static const unsigned int avb1_avtp_pps_pins[] = {
1395 /* AVB1_AVTP_PPS */
1396 RCAR_GP_PIN(6, 10),
1397};
1398static const unsigned int avb1_avtp_pps_mux[] = {
1399 AVB1_AVTP_PPS_MARK,
1400};
1401static const unsigned int avb1_avtp_capture_pins[] = {
1402 /* AVB1_AVTP_CAPTURE */
1403 RCAR_GP_PIN(6, 11),
1404};
1405static const unsigned int avb1_avtp_capture_mux[] = {
1406 AVB1_AVTP_CAPTURE_MARK,
1407};
1408static const unsigned int avb1_avtp_match_pins[] = {
1409 /* AVB1_AVTP_MATCH */
1410 RCAR_GP_PIN(6, 5),
1411};
1412static const unsigned int avb1_avtp_match_mux[] = {
1413 AVB1_AVTP_MATCH_MARK,
1414};
1415
1416/* - AVB2 ------------------------------------------------ */
1417static const unsigned int avb2_link_pins[] = {
1418 /* AVB2_LINK */
1419 RCAR_GP_PIN(5, 3),
1420};
1421static const unsigned int avb2_link_mux[] = {
1422 AVB2_LINK_MARK,
1423};
1424static const unsigned int avb2_magic_pins[] = {
1425 /* AVB2_MAGIC */
1426 RCAR_GP_PIN(5, 5),
1427};
1428static const unsigned int avb2_magic_mux[] = {
1429 AVB2_MAGIC_MARK,
1430};
1431static const unsigned int avb2_phy_int_pins[] = {
1432 /* AVB2_PHY_INT */
1433 RCAR_GP_PIN(5, 4),
1434};
1435static const unsigned int avb2_phy_int_mux[] = {
1436 AVB2_PHY_INT_MARK,
1437};
1438static const unsigned int avb2_mdio_pins[] = {
1439 /* AVB2_MDC, AVB2_MDIO */
1440 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 10),
1441};
1442static const unsigned int avb2_mdio_mux[] = {
1443 AVB2_MDC_MARK, AVB2_MDIO_MARK,
1444};
1445static const unsigned int avb2_rgmii_pins[] = {
1446 /*
1447 * AVB2_TX_CTL, AVB2_TXC, AVB2_TD0, AVB2_TD1, AVB2_TD2, AVB2_TD3,
1448 * AVB2_RX_CTL, AVB2_RXC, AVB2_RD0, AVB2_RD1, AVB2_RD2, AVB2_RD3,
1449 */
1450 RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 16),
1451 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 12),
1452 RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 8),
1453 RCAR_GP_PIN(5, 20), RCAR_GP_PIN(5, 18),
1454 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 14),
1455 RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 9),
1456};
1457static const unsigned int avb2_rgmii_mux[] = {
1458 AVB2_TX_CTL_MARK, AVB2_TXC_MARK,
1459 AVB2_TD0_MARK, AVB2_TD1_MARK,
1460 AVB2_TD2_MARK, AVB2_TD3_MARK,
1461 AVB2_RX_CTL_MARK, AVB2_RXC_MARK,
1462 AVB2_RD0_MARK, AVB2_RD1_MARK,
1463 AVB2_RD2_MARK, AVB2_RD3_MARK,
1464};
1465static const unsigned int avb2_txcrefclk_pins[] = {
1466 /* AVB2_TXCREFCLK */
1467 RCAR_GP_PIN(5, 7),
1468};
1469static const unsigned int avb2_txcrefclk_mux[] = {
1470 AVB2_TXCREFCLK_MARK,
1471};
1472static const unsigned int avb2_avtp_pps_pins[] = {
1473 /* AVB2_AVTP_PPS */
1474 RCAR_GP_PIN(5, 0),
1475};
1476static const unsigned int avb2_avtp_pps_mux[] = {
1477 AVB2_AVTP_PPS_MARK,
1478};
1479static const unsigned int avb2_avtp_capture_pins[] = {
1480 /* AVB2_AVTP_CAPTURE */
1481 RCAR_GP_PIN(5, 1),
1482};
1483static const unsigned int avb2_avtp_capture_mux[] = {
1484 AVB2_AVTP_CAPTURE_MARK,
1485};
1486static const unsigned int avb2_avtp_match_pins[] = {
1487 /* AVB2_AVTP_MATCH */
1488 RCAR_GP_PIN(5, 2),
1489};
1490static const unsigned int avb2_avtp_match_mux[] = {
1491 AVB2_AVTP_MATCH_MARK,
1492};
1493
1494/* - CANFD0 ----------------------------------------------------------------- */
1495static const unsigned int canfd0_data_pins[] = {
1496 /* CANFD0_TX, CANFD0_RX */
1497 RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
1498};
1499static const unsigned int canfd0_data_mux[] = {
1500 CANFD0_TX_MARK, CANFD0_RX_MARK,
1501};
1502
1503/* - CANFD1 ----------------------------------------------------------------- */
1504static const unsigned int canfd1_data_pins[] = {
1505 /* CANFD1_TX, CANFD1_RX */
1506 RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 19),
1507};
1508static const unsigned int canfd1_data_mux[] = {
1509 CANFD1_TX_MARK, CANFD1_RX_MARK,
1510};
1511
1512/* - CANFD2 ----------------------------------------------------------------- */
1513static const unsigned int canfd2_data_pins[] = {
1514 /* CANFD2_TX, CANFD2_RX */
1515 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
1516};
1517static const unsigned int canfd2_data_mux[] = {
1518 CANFD2_TX_MARK, CANFD2_RX_MARK,
1519};
1520
1521/* - CANFD3 ----------------------------------------------------------------- */
1522static const unsigned int canfd3_data_pins[] = {
1523 /* CANFD3_TX, CANFD3_RX */
1524 RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15),
1525};
1526static const unsigned int canfd3_data_mux[] = {
1527 CANFD3_TX_MARK, CANFD3_RX_MARK,
1528};
1529
1530/* - CANFD Clock ------------------------------------------------------------ */
1531static const unsigned int can_clk_pins[] = {
1532 /* CAN_CLK */
1533 RCAR_GP_PIN(2, 9),
1534};
1535static const unsigned int can_clk_mux[] = {
1536 CAN_CLK_MARK,
1537};
1538
1539/* - HSCIF0 ----------------------------------------------------------------- */
1540static const unsigned int hscif0_data_pins[] = {
1541 /* HRX0, HTX0 */
1542 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
1543};
1544static const unsigned int hscif0_data_mux[] = {
1545 HRX0_MARK, HTX0_MARK,
1546};
1547static const unsigned int hscif0_clk_pins[] = {
1548 /* HSCK0 */
1549 RCAR_GP_PIN(1, 15),
1550};
1551static const unsigned int hscif0_clk_mux[] = {
1552 HSCK0_MARK,
1553};
1554static const unsigned int hscif0_ctrl_pins[] = {
1555 /* HRTS0_N, HCTS0_N */
1556 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
1557};
1558static const unsigned int hscif0_ctrl_mux[] = {
1559 HRTS0_N_MARK, HCTS0_N_MARK,
1560};
1561
Marek Vasut7c00fb32024-09-11 23:09:39 +02001562/* - HSCIF1 ------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01001563static const unsigned int hscif1_data_a_pins[] = {
1564 /* HRX1_A, HTX1_A */
1565 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
1566};
1567static const unsigned int hscif1_data_a_mux[] = {
1568 HRX1_A_MARK, HTX1_A_MARK,
1569};
1570static const unsigned int hscif1_clk_a_pins[] = {
1571 /* HSCK1_A */
1572 RCAR_GP_PIN(0, 18),
1573};
1574static const unsigned int hscif1_clk_a_mux[] = {
1575 HSCK1_A_MARK,
1576};
1577static const unsigned int hscif1_ctrl_a_pins[] = {
1578 /* HRTS1_N_A, HCTS1_N_A */
1579 RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
1580};
1581static const unsigned int hscif1_ctrl_a_mux[] = {
1582 HRTS1_N_A_MARK, HCTS1_N_A_MARK,
1583};
1584
Hai Pham6c45a3c2024-01-28 16:52:03 +01001585static const unsigned int hscif1_data_b_pins[] = {
1586 /* HRX1_B, HTX1_B */
1587 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
1588};
1589static const unsigned int hscif1_data_b_mux[] = {
1590 HRX1_B_MARK, HTX1_B_MARK,
1591};
1592static const unsigned int hscif1_clk_b_pins[] = {
1593 /* HSCK1_B */
1594 RCAR_GP_PIN(1, 10),
1595};
1596static const unsigned int hscif1_clk_b_mux[] = {
1597 HSCK1_B_MARK,
1598};
1599static const unsigned int hscif1_ctrl_b_pins[] = {
1600 /* HRTS1_N_B, HCTS1_N_B */
1601 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
1602};
1603static const unsigned int hscif1_ctrl_b_mux[] = {
1604 HRTS1_N_B_MARK, HCTS1_N_B_MARK,
1605};
1606
1607/* - HSCIF2 ----------------------------------------------------------------- */
1608static const unsigned int hscif2_data_pins[] = {
1609 /* HRX2, HTX2 */
1610 RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
1611};
1612static const unsigned int hscif2_data_mux[] = {
1613 HRX2_MARK, HTX2_MARK,
1614};
1615static const unsigned int hscif2_clk_pins[] = {
1616 /* HSCK2 */
1617 RCAR_GP_PIN(4, 13),
1618};
1619static const unsigned int hscif2_clk_mux[] = {
1620 HSCK2_MARK,
1621};
1622static const unsigned int hscif2_ctrl_pins[] = {
1623 /* HRTS2_N, HCTS2_N */
1624 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 12),
1625};
1626static const unsigned int hscif2_ctrl_mux[] = {
1627 HRTS2_N_MARK, HCTS2_N_MARK,
1628};
1629
Marek Vasut7c00fb32024-09-11 23:09:39 +02001630/* - HSCIF3 ------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01001631static const unsigned int hscif3_data_a_pins[] = {
1632 /* HRX3_A, HTX3_A */
1633 RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 28),
1634};
1635static const unsigned int hscif3_data_a_mux[] = {
1636 HRX3_A_MARK, HTX3_A_MARK,
1637};
1638static const unsigned int hscif3_clk_a_pins[] = {
1639 /* HSCK3_A */
1640 RCAR_GP_PIN(1, 25),
1641};
1642static const unsigned int hscif3_clk_a_mux[] = {
1643 HSCK3_A_MARK,
1644};
1645static const unsigned int hscif3_ctrl_a_pins[] = {
1646 /* HRTS3_N_A, HCTS3_N_A */
1647 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 27),
1648};
1649static const unsigned int hscif3_ctrl_a_mux[] = {
1650 HRTS3_N_A_MARK, HCTS3_N_A_MARK,
1651};
1652
Hai Pham6c45a3c2024-01-28 16:52:03 +01001653static const unsigned int hscif3_data_b_pins[] = {
1654 /* HRX3_B, HTX3_B */
1655 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 0),
1656};
1657static const unsigned int hscif3_data_b_mux[] = {
1658 HRX3_B_MARK, HTX3_B_MARK,
1659};
1660static const unsigned int hscif3_clk_b_pins[] = {
1661 /* HSCK3_B */
1662 RCAR_GP_PIN(1, 3),
1663};
1664static const unsigned int hscif3_clk_b_mux[] = {
1665 HSCK3_B_MARK,
1666};
1667static const unsigned int hscif3_ctrl_b_pins[] = {
1668 /* HRTS3_N_B, HCTS3_N_B */
1669 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 1),
1670};
1671static const unsigned int hscif3_ctrl_b_mux[] = {
1672 HRTS3_N_B_MARK, HCTS3_N_B_MARK,
1673};
1674
1675/* - I2C0 ------------------------------------------------------------------- */
1676static const unsigned int i2c0_pins[] = {
1677 /* SDA0, SCL0 */
1678 RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 0),
1679};
1680static const unsigned int i2c0_mux[] = {
1681 SDA0_MARK, SCL0_MARK,
1682};
1683
1684/* - I2C1 ------------------------------------------------------------------- */
1685static const unsigned int i2c1_pins[] = {
1686 /* SDA1, SCL1 */
1687 RCAR_GP_PIN(4, 3), RCAR_GP_PIN(4, 2),
1688};
1689static const unsigned int i2c1_mux[] = {
1690 SDA1_MARK, SCL1_MARK,
1691};
1692
1693/* - I2C2 ------------------------------------------------------------------- */
1694static const unsigned int i2c2_pins[] = {
1695 /* SDA2, SCL2 */
1696 RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 4),
1697};
1698static const unsigned int i2c2_mux[] = {
1699 SDA2_MARK, SCL2_MARK,
1700};
1701
1702/* - I2C3 ------------------------------------------------------------------- */
1703static const unsigned int i2c3_pins[] = {
1704 /* SDA3, SCL3 */
1705 RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 6),
1706};
1707static const unsigned int i2c3_mux[] = {
1708 SDA3_MARK, SCL3_MARK,
1709};
1710
Marek Vasut7c00fb32024-09-11 23:09:39 +02001711/* - INTC-EX ---------------------------------------------------------------- */
1712static const unsigned int intc_ex_irq0_a_pins[] = {
1713 /* IRQ0_A */
1714 RCAR_GP_PIN(0, 6),
1715};
1716static const unsigned int intc_ex_irq0_a_mux[] = {
1717 IRQ0_A_MARK,
1718};
1719static const unsigned int intc_ex_irq0_b_pins[] = {
1720 /* IRQ0_B */
1721 RCAR_GP_PIN(1, 20),
1722};
1723static const unsigned int intc_ex_irq0_b_mux[] = {
1724 IRQ0_B_MARK,
1725};
1726
1727static const unsigned int intc_ex_irq1_a_pins[] = {
1728 /* IRQ1_A */
1729 RCAR_GP_PIN(0, 5),
1730};
1731static const unsigned int intc_ex_irq1_a_mux[] = {
1732 IRQ1_A_MARK,
1733};
1734static const unsigned int intc_ex_irq1_b_pins[] = {
1735 /* IRQ1_B */
1736 RCAR_GP_PIN(1, 21),
1737};
1738static const unsigned int intc_ex_irq1_b_mux[] = {
1739 IRQ1_B_MARK,
1740};
1741
1742static const unsigned int intc_ex_irq2_a_pins[] = {
1743 /* IRQ2_A */
1744 RCAR_GP_PIN(0, 4),
1745};
1746static const unsigned int intc_ex_irq2_a_mux[] = {
1747 IRQ2_A_MARK,
1748};
1749static const unsigned int intc_ex_irq2_b_pins[] = {
1750 /* IRQ2_B */
1751 RCAR_GP_PIN(0, 13),
1752};
1753static const unsigned int intc_ex_irq2_b_mux[] = {
1754 IRQ2_B_MARK,
1755};
1756
1757static const unsigned int intc_ex_irq3_a_pins[] = {
1758 /* IRQ3_A */
1759 RCAR_GP_PIN(0, 3),
1760};
1761static const unsigned int intc_ex_irq3_a_mux[] = {
1762 IRQ3_A_MARK,
1763};
1764static const unsigned int intc_ex_irq3_b_pins[] = {
1765 /* IRQ3_B */
1766 RCAR_GP_PIN(1, 23),
1767};
1768static const unsigned int intc_ex_irq3_b_mux[] = {
1769 IRQ3_B_MARK,
1770};
1771
1772static const unsigned int intc_ex_irq4_a_pins[] = {
1773 /* IRQ4_A */
1774 RCAR_GP_PIN(1, 17),
1775};
1776static const unsigned int intc_ex_irq4_a_mux[] = {
1777 IRQ4_A_MARK,
1778};
1779static const unsigned int intc_ex_irq4_b_pins[] = {
1780 /* IRQ4_B */
1781 RCAR_GP_PIN(2, 3),
1782};
1783static const unsigned int intc_ex_irq4_b_mux[] = {
1784 IRQ4_B_MARK,
1785};
1786
1787static const unsigned int intc_ex_irq5_pins[] = {
1788 /* IRQ5 */
1789 RCAR_GP_PIN(2, 2),
1790};
1791static const unsigned int intc_ex_irq5_mux[] = {
1792 IRQ5_MARK,
1793};
1794
Hai Pham6c45a3c2024-01-28 16:52:03 +01001795/* - MMC -------------------------------------------------------------------- */
1796static const unsigned int mmc_data_pins[] = {
1797 /* MMC_SD_D[0:3], MMC_D[4:7] */
1798 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
1799 RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 5),
1800 RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6),
1801 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
1802};
1803static const unsigned int mmc_data_mux[] = {
1804 MMC_SD_D0_MARK, MMC_SD_D1_MARK,
1805 MMC_SD_D2_MARK, MMC_SD_D3_MARK,
1806 MMC_D4_MARK, MMC_D5_MARK,
1807 MMC_D6_MARK, MMC_D7_MARK,
1808};
1809static const unsigned int mmc_ctrl_pins[] = {
1810 /* MMC_SD_CLK, MMC_SD_CMD */
1811 RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 10),
1812};
1813static const unsigned int mmc_ctrl_mux[] = {
1814 MMC_SD_CLK_MARK, MMC_SD_CMD_MARK,
1815};
1816static const unsigned int mmc_cd_pins[] = {
1817 /* SD_CD */
1818 RCAR_GP_PIN(3, 11),
1819};
1820static const unsigned int mmc_cd_mux[] = {
1821 SD_CD_MARK,
1822};
1823static const unsigned int mmc_wp_pins[] = {
1824 /* SD_WP */
1825 RCAR_GP_PIN(3, 12),
1826};
1827static const unsigned int mmc_wp_mux[] = {
1828 SD_WP_MARK,
1829};
1830static const unsigned int mmc_ds_pins[] = {
1831 /* MMC_DS */
1832 RCAR_GP_PIN(3, 4),
1833};
1834static const unsigned int mmc_ds_mux[] = {
1835 MMC_DS_MARK,
1836};
1837
1838/* - MSIOF0 ----------------------------------------------------------------- */
1839static const unsigned int msiof0_clk_pins[] = {
1840 /* MSIOF0_SCK */
1841 RCAR_GP_PIN(1, 10),
1842};
1843static const unsigned int msiof0_clk_mux[] = {
1844 MSIOF0_SCK_MARK,
1845};
1846static const unsigned int msiof0_sync_pins[] = {
1847 /* MSIOF0_SYNC */
1848 RCAR_GP_PIN(1, 8),
1849};
1850static const unsigned int msiof0_sync_mux[] = {
1851 MSIOF0_SYNC_MARK,
1852};
1853static const unsigned int msiof0_ss1_pins[] = {
1854 /* MSIOF0_SS1 */
1855 RCAR_GP_PIN(1, 7),
1856};
1857static const unsigned int msiof0_ss1_mux[] = {
1858 MSIOF0_SS1_MARK,
1859};
1860static const unsigned int msiof0_ss2_pins[] = {
1861 /* MSIOF0_SS2 */
1862 RCAR_GP_PIN(1, 6),
1863};
1864static const unsigned int msiof0_ss2_mux[] = {
1865 MSIOF0_SS2_MARK,
1866};
1867static const unsigned int msiof0_txd_pins[] = {
1868 /* MSIOF0_TXD */
1869 RCAR_GP_PIN(1, 9),
1870};
1871static const unsigned int msiof0_txd_mux[] = {
1872 MSIOF0_TXD_MARK,
1873};
1874static const unsigned int msiof0_rxd_pins[] = {
1875 /* MSIOF0_RXD */
1876 RCAR_GP_PIN(1, 11),
1877};
1878static const unsigned int msiof0_rxd_mux[] = {
1879 MSIOF0_RXD_MARK,
1880};
1881
1882/* - MSIOF1 ----------------------------------------------------------------- */
1883static const unsigned int msiof1_clk_pins[] = {
1884 /* MSIOF1_SCK */
1885 RCAR_GP_PIN(1, 3),
1886};
1887static const unsigned int msiof1_clk_mux[] = {
1888 MSIOF1_SCK_MARK,
1889};
1890static const unsigned int msiof1_sync_pins[] = {
1891 /* MSIOF1_SYNC */
1892 RCAR_GP_PIN(1, 2),
1893};
1894static const unsigned int msiof1_sync_mux[] = {
1895 MSIOF1_SYNC_MARK,
1896};
1897static const unsigned int msiof1_ss1_pins[] = {
1898 /* MSIOF1_SS1 */
1899 RCAR_GP_PIN(1, 1),
1900};
1901static const unsigned int msiof1_ss1_mux[] = {
1902 MSIOF1_SS1_MARK,
1903};
1904static const unsigned int msiof1_ss2_pins[] = {
1905 /* MSIOF1_SS2 */
1906 RCAR_GP_PIN(1, 0),
1907};
1908static const unsigned int msiof1_ss2_mux[] = {
1909 MSIOF1_SS2_MARK,
1910};
1911static const unsigned int msiof1_txd_pins[] = {
1912 /* MSIOF1_TXD */
1913 RCAR_GP_PIN(1, 4),
1914};
1915static const unsigned int msiof1_txd_mux[] = {
1916 MSIOF1_TXD_MARK,
1917};
1918static const unsigned int msiof1_rxd_pins[] = {
1919 /* MSIOF1_RXD */
1920 RCAR_GP_PIN(1, 5),
1921};
1922static const unsigned int msiof1_rxd_mux[] = {
1923 MSIOF1_RXD_MARK,
1924};
1925
1926/* - MSIOF2 ----------------------------------------------------------------- */
1927static const unsigned int msiof2_clk_pins[] = {
1928 /* MSIOF2_SCK */
1929 RCAR_GP_PIN(0, 17),
1930};
1931static const unsigned int msiof2_clk_mux[] = {
1932 MSIOF2_SCK_MARK,
1933};
1934static const unsigned int msiof2_sync_pins[] = {
1935 /* MSIOF2_SYNC */
1936 RCAR_GP_PIN(0, 15),
1937};
1938static const unsigned int msiof2_sync_mux[] = {
1939 MSIOF2_SYNC_MARK,
1940};
1941static const unsigned int msiof2_ss1_pins[] = {
1942 /* MSIOF2_SS1 */
1943 RCAR_GP_PIN(0, 14),
1944};
1945static const unsigned int msiof2_ss1_mux[] = {
1946 MSIOF2_SS1_MARK,
1947};
1948static const unsigned int msiof2_ss2_pins[] = {
1949 /* MSIOF2_SS2 */
1950 RCAR_GP_PIN(0, 13),
1951};
1952static const unsigned int msiof2_ss2_mux[] = {
1953 MSIOF2_SS2_MARK,
1954};
1955static const unsigned int msiof2_txd_pins[] = {
1956 /* MSIOF2_TXD */
1957 RCAR_GP_PIN(0, 16),
1958};
1959static const unsigned int msiof2_txd_mux[] = {
1960 MSIOF2_TXD_MARK,
1961};
1962static const unsigned int msiof2_rxd_pins[] = {
1963 /* MSIOF2_RXD */
1964 RCAR_GP_PIN(0, 18),
1965};
1966static const unsigned int msiof2_rxd_mux[] = {
1967 MSIOF2_RXD_MARK,
1968};
1969
1970/* - MSIOF3 ----------------------------------------------------------------- */
1971static const unsigned int msiof3_clk_pins[] = {
1972 /* MSIOF3_SCK */
1973 RCAR_GP_PIN(0, 3),
1974};
1975static const unsigned int msiof3_clk_mux[] = {
1976 MSIOF3_SCK_MARK,
1977};
1978static const unsigned int msiof3_sync_pins[] = {
1979 /* MSIOF3_SYNC */
1980 RCAR_GP_PIN(0, 6),
1981};
1982static const unsigned int msiof3_sync_mux[] = {
1983 MSIOF3_SYNC_MARK,
1984};
1985static const unsigned int msiof3_ss1_pins[] = {
1986 /* MSIOF3_SS1 */
1987 RCAR_GP_PIN(0, 1),
1988};
1989static const unsigned int msiof3_ss1_mux[] = {
1990 MSIOF3_SS1_MARK,
1991};
1992static const unsigned int msiof3_ss2_pins[] = {
1993 /* MSIOF3_SS2 */
1994 RCAR_GP_PIN(0, 2),
1995};
1996static const unsigned int msiof3_ss2_mux[] = {
1997 MSIOF3_SS2_MARK,
1998};
1999static const unsigned int msiof3_txd_pins[] = {
2000 /* MSIOF3_TXD */
2001 RCAR_GP_PIN(0, 4),
2002};
2003static const unsigned int msiof3_txd_mux[] = {
2004 MSIOF3_TXD_MARK,
2005};
2006static const unsigned int msiof3_rxd_pins[] = {
2007 /* MSIOF3_RXD */
2008 RCAR_GP_PIN(0, 5),
2009};
2010static const unsigned int msiof3_rxd_mux[] = {
2011 MSIOF3_RXD_MARK,
2012};
2013
2014/* - MSIOF4 ----------------------------------------------------------------- */
2015static const unsigned int msiof4_clk_pins[] = {
2016 /* MSIOF4_SCK */
2017 RCAR_GP_PIN(1, 25),
2018};
2019static const unsigned int msiof4_clk_mux[] = {
2020 MSIOF4_SCK_MARK,
2021};
2022static const unsigned int msiof4_sync_pins[] = {
2023 /* MSIOF4_SYNC */
2024 RCAR_GP_PIN(1, 28),
2025};
2026static const unsigned int msiof4_sync_mux[] = {
2027 MSIOF4_SYNC_MARK,
2028};
2029static const unsigned int msiof4_ss1_pins[] = {
2030 /* MSIOF4_SS1 */
2031 RCAR_GP_PIN(1, 23),
2032};
2033static const unsigned int msiof4_ss1_mux[] = {
2034 MSIOF4_SS1_MARK,
2035};
2036static const unsigned int msiof4_ss2_pins[] = {
2037 /* MSIOF4_SS2 */
2038 RCAR_GP_PIN(1, 24),
2039};
2040static const unsigned int msiof4_ss2_mux[] = {
2041 MSIOF4_SS2_MARK,
2042};
2043static const unsigned int msiof4_txd_pins[] = {
2044 /* MSIOF4_TXD */
2045 RCAR_GP_PIN(1, 26),
2046};
2047static const unsigned int msiof4_txd_mux[] = {
2048 MSIOF4_TXD_MARK,
2049};
2050static const unsigned int msiof4_rxd_pins[] = {
2051 /* MSIOF4_RXD */
2052 RCAR_GP_PIN(1, 27),
2053};
2054static const unsigned int msiof4_rxd_mux[] = {
2055 MSIOF4_RXD_MARK,
2056};
2057
2058/* - MSIOF5 ----------------------------------------------------------------- */
2059static const unsigned int msiof5_clk_pins[] = {
2060 /* MSIOF5_SCK */
2061 RCAR_GP_PIN(0, 11),
2062};
2063static const unsigned int msiof5_clk_mux[] = {
2064 MSIOF5_SCK_MARK,
2065};
2066static const unsigned int msiof5_sync_pins[] = {
2067 /* MSIOF5_SYNC */
2068 RCAR_GP_PIN(0, 9),
2069};
2070static const unsigned int msiof5_sync_mux[] = {
2071 MSIOF5_SYNC_MARK,
2072};
2073static const unsigned int msiof5_ss1_pins[] = {
2074 /* MSIOF5_SS1 */
2075 RCAR_GP_PIN(0, 8),
2076};
2077static const unsigned int msiof5_ss1_mux[] = {
2078 MSIOF5_SS1_MARK,
2079};
2080static const unsigned int msiof5_ss2_pins[] = {
2081 /* MSIOF5_SS2 */
2082 RCAR_GP_PIN(0, 7),
2083};
2084static const unsigned int msiof5_ss2_mux[] = {
2085 MSIOF5_SS2_MARK,
2086};
2087static const unsigned int msiof5_txd_pins[] = {
2088 /* MSIOF5_TXD */
2089 RCAR_GP_PIN(0, 10),
2090};
2091static const unsigned int msiof5_txd_mux[] = {
2092 MSIOF5_TXD_MARK,
2093};
2094static const unsigned int msiof5_rxd_pins[] = {
2095 /* MSIOF5_RXD */
2096 RCAR_GP_PIN(0, 12),
2097};
2098static const unsigned int msiof5_rxd_mux[] = {
2099 MSIOF5_RXD_MARK,
2100};
2101
2102/* - PCIE ------------------------------------------------------------------- */
2103static const unsigned int pcie0_clkreq_n_pins[] = {
2104 /* PCIE0_CLKREQ_N */
2105 RCAR_GP_PIN(4, 21),
2106};
2107
2108static const unsigned int pcie0_clkreq_n_mux[] = {
2109 PCIE0_CLKREQ_N_MARK,
2110};
2111
Marek Vasut7c00fb32024-09-11 23:09:39 +02002112/* - PWM0 --------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01002113static const unsigned int pwm0_a_pins[] = {
2114 /* PWM0_A */
2115 RCAR_GP_PIN(1, 15),
2116};
2117static const unsigned int pwm0_a_mux[] = {
2118 PWM0_A_MARK,
2119};
2120
Hai Pham6c45a3c2024-01-28 16:52:03 +01002121static const unsigned int pwm0_b_pins[] = {
2122 /* PWM0_B */
2123 RCAR_GP_PIN(1, 14),
2124};
2125static const unsigned int pwm0_b_mux[] = {
2126 PWM0_B_MARK,
2127};
2128
Marek Vasut7c00fb32024-09-11 23:09:39 +02002129/* - PWM1 --------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01002130static const unsigned int pwm1_a_pins[] = {
2131 /* PWM1_A */
2132 RCAR_GP_PIN(3, 13),
2133};
2134static const unsigned int pwm1_a_mux[] = {
2135 PWM1_A_MARK,
2136};
2137
Hai Pham6c45a3c2024-01-28 16:52:03 +01002138static const unsigned int pwm1_b_pins[] = {
2139 /* PWM1_B */
2140 RCAR_GP_PIN(2, 13),
2141};
2142static const unsigned int pwm1_b_mux[] = {
2143 PWM1_B_MARK,
2144};
2145
Hai Pham6c45a3c2024-01-28 16:52:03 +01002146static const unsigned int pwm1_c_pins[] = {
2147 /* PWM1_C */
2148 RCAR_GP_PIN(2, 17),
2149};
2150static const unsigned int pwm1_c_mux[] = {
2151 PWM1_C_MARK,
2152};
2153
Marek Vasut7c00fb32024-09-11 23:09:39 +02002154/* - PWM2 --------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01002155static const unsigned int pwm2_a_pins[] = {
2156 /* PWM2_A */
2157 RCAR_GP_PIN(3, 14),
2158};
2159static const unsigned int pwm2_a_mux[] = {
2160 PWM2_A_MARK,
2161};
2162
Hai Pham6c45a3c2024-01-28 16:52:03 +01002163static const unsigned int pwm2_b_pins[] = {
2164 /* PWM2_B */
2165 RCAR_GP_PIN(2, 14),
2166};
2167static const unsigned int pwm2_b_mux[] = {
2168 PWM2_B_MARK,
2169};
2170
Hai Pham6c45a3c2024-01-28 16:52:03 +01002171static const unsigned int pwm2_c_pins[] = {
2172 /* PWM2_C */
2173 RCAR_GP_PIN(2, 19),
2174};
2175static const unsigned int pwm2_c_mux[] = {
2176 PWM2_C_MARK,
2177};
2178
Marek Vasut7c00fb32024-09-11 23:09:39 +02002179/* - PWM3 --------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01002180static const unsigned int pwm3_a_pins[] = {
2181 /* PWM3_A */
2182 RCAR_GP_PIN(4, 14),
2183};
2184static const unsigned int pwm3_a_mux[] = {
2185 PWM3_A_MARK,
2186};
2187
Hai Pham6c45a3c2024-01-28 16:52:03 +01002188static const unsigned int pwm3_b_pins[] = {
2189 /* PWM3_B */
2190 RCAR_GP_PIN(2, 15),
2191};
2192static const unsigned int pwm3_b_mux[] = {
2193 PWM3_B_MARK,
2194};
2195
Hai Pham6c45a3c2024-01-28 16:52:03 +01002196static const unsigned int pwm3_c_pins[] = {
2197 /* PWM3_C */
2198 RCAR_GP_PIN(1, 22),
2199};
2200static const unsigned int pwm3_c_mux[] = {
2201 PWM3_C_MARK,
2202};
2203
2204/* - PWM4 ------------------------------------------------------------------- */
2205static const unsigned int pwm4_pins[] = {
2206 /* PWM4 */
2207 RCAR_GP_PIN(4, 15),
2208};
2209static const unsigned int pwm4_mux[] = {
2210 PWM4_MARK,
2211};
2212
2213/* - QSPI0 ------------------------------------------------------------------ */
2214static const unsigned int qspi0_ctrl_pins[] = {
2215 /* SPCLK, SSL */
2216 RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 15),
2217};
2218static const unsigned int qspi0_ctrl_mux[] = {
2219 QSPI0_SPCLK_MARK, QSPI0_SSL_MARK,
2220};
2221static const unsigned int qspi0_data_pins[] = {
2222 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2223 RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
2224 RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
2225};
2226static const unsigned int qspi0_data_mux[] = {
2227 QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
2228 QSPI0_IO2_MARK, QSPI0_IO3_MARK
2229};
2230
2231/* - QSPI1 ------------------------------------------------------------------ */
2232static const unsigned int qspi1_ctrl_pins[] = {
2233 /* SPCLK, SSL */
2234 RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 25),
2235};
2236static const unsigned int qspi1_ctrl_mux[] = {
2237 QSPI1_SPCLK_MARK, QSPI1_SSL_MARK,
2238};
2239static const unsigned int qspi1_data_pins[] = {
2240 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
2241 RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 23),
2242 RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 26),
2243};
2244static const unsigned int qspi1_data_mux[] = {
2245 QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
2246 QSPI1_IO2_MARK, QSPI1_IO3_MARK
2247};
2248
2249/* - SCIF0 ------------------------------------------------------------------ */
2250static const unsigned int scif0_data_pins[] = {
2251 /* RX0, TX0 */
2252 RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 12),
2253};
2254static const unsigned int scif0_data_mux[] = {
2255 RX0_MARK, TX0_MARK,
2256};
2257static const unsigned int scif0_clk_pins[] = {
2258 /* SCK0 */
2259 RCAR_GP_PIN(1, 15),
2260};
2261static const unsigned int scif0_clk_mux[] = {
2262 SCK0_MARK,
2263};
2264static const unsigned int scif0_ctrl_pins[] = {
2265 /* RTS0_N, CTS0_N */
2266 RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
2267};
2268static const unsigned int scif0_ctrl_mux[] = {
2269 RTS0_N_MARK, CTS0_N_MARK,
2270};
2271
Marek Vasut7c00fb32024-09-11 23:09:39 +02002272/* - SCIF1 -------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01002273static const unsigned int scif1_data_a_pins[] = {
2274 /* RX1_A, TX1_A */
2275 RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
2276};
2277static const unsigned int scif1_data_a_mux[] = {
2278 RX1_A_MARK, TX1_A_MARK,
2279};
2280static const unsigned int scif1_clk_a_pins[] = {
2281 /* SCK1_A */
2282 RCAR_GP_PIN(0, 18),
2283};
2284static const unsigned int scif1_clk_a_mux[] = {
2285 SCK1_A_MARK,
2286};
2287static const unsigned int scif1_ctrl_a_pins[] = {
2288 /* RTS1_N_A, CTS1_N_A */
2289 RCAR_GP_PIN(0, 17), RCAR_GP_PIN(0, 16),
2290};
2291static const unsigned int scif1_ctrl_a_mux[] = {
2292 RTS1_N_A_MARK, CTS1_N_A_MARK,
2293};
2294
Hai Pham6c45a3c2024-01-28 16:52:03 +01002295static const unsigned int scif1_data_b_pins[] = {
2296 /* RX1_B, TX1_B */
2297 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
2298};
2299static const unsigned int scif1_data_b_mux[] = {
2300 RX1_B_MARK, TX1_B_MARK,
2301};
2302static const unsigned int scif1_clk_b_pins[] = {
2303 /* SCK1_B */
2304 RCAR_GP_PIN(1, 10),
2305};
2306static const unsigned int scif1_clk_b_mux[] = {
2307 SCK1_B_MARK,
2308};
2309static const unsigned int scif1_ctrl_b_pins[] = {
2310 /* RTS1_N_B, CTS1_N_B */
2311 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
2312};
2313static const unsigned int scif1_ctrl_b_mux[] = {
2314 RTS1_N_B_MARK, CTS1_N_B_MARK,
2315};
2316
Marek Vasut7c00fb32024-09-11 23:09:39 +02002317/* - SCIF3 -------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01002318static const unsigned int scif3_data_a_pins[] = {
2319 /* RX3_A, TX3_A */
2320 RCAR_GP_PIN(1, 27), RCAR_GP_PIN(1, 28),
2321};
2322static const unsigned int scif3_data_a_mux[] = {
2323 RX3_A_MARK, TX3_A_MARK,
2324};
2325static const unsigned int scif3_clk_a_pins[] = {
2326 /* SCK3_A */
2327 RCAR_GP_PIN(1, 24),
2328};
2329static const unsigned int scif3_clk_a_mux[] = {
2330 SCK3_A_MARK,
2331};
2332static const unsigned int scif3_ctrl_a_pins[] = {
2333 /* RTS3_N_A, CTS3_N_A */
2334 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
2335};
2336static const unsigned int scif3_ctrl_a_mux[] = {
2337 RTS3_N_A_MARK, CTS3_N_A_MARK,
2338};
2339
Hai Pham6c45a3c2024-01-28 16:52:03 +01002340static const unsigned int scif3_data_b_pins[] = {
2341 /* RX3_B, TX3_B */
2342 RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0),
2343};
2344static const unsigned int scif3_data_b_mux[] = {
2345 RX3_B_MARK, TX3_B_MARK,
2346};
2347static const unsigned int scif3_clk_b_pins[] = {
2348 /* SCK3_B */
2349 RCAR_GP_PIN(1, 4),
2350};
2351static const unsigned int scif3_clk_b_mux[] = {
2352 SCK3_B_MARK,
2353};
2354static const unsigned int scif3_ctrl_b_pins[] = {
2355 /* RTS3_N_B, CTS3_N_B */
2356 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
2357};
2358static const unsigned int scif3_ctrl_b_mux[] = {
2359 RTS3_N_B_MARK, CTS3_N_B_MARK,
2360};
2361
2362/* - SCIF4 ------------------------------------------------------------------ */
2363static const unsigned int scif4_data_pins[] = {
2364 /* RX4, TX4 */
2365 RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 12),
2366};
2367static const unsigned int scif4_data_mux[] = {
2368 RX4_MARK, TX4_MARK,
2369};
2370static const unsigned int scif4_clk_pins[] = {
2371 /* SCK4 */
2372 RCAR_GP_PIN(4, 8),
2373};
2374static const unsigned int scif4_clk_mux[] = {
2375 SCK4_MARK,
2376};
2377static const unsigned int scif4_ctrl_pins[] = {
2378 /* RTS4_N, CTS4_N */
2379 RCAR_GP_PIN(4, 10), RCAR_GP_PIN(4, 9),
2380};
2381static const unsigned int scif4_ctrl_mux[] = {
2382 RTS4_N_MARK, CTS4_N_MARK,
2383};
2384
2385/* - SCIF Clock ------------------------------------------------------------- */
2386static const unsigned int scif_clk_pins[] = {
2387 /* SCIF_CLK */
2388 RCAR_GP_PIN(1, 17),
2389};
2390static const unsigned int scif_clk_mux[] = {
2391 SCIF_CLK_MARK,
2392};
2393
2394static const unsigned int scif_clk2_pins[] = {
2395 /* SCIF_CLK2 */
2396 RCAR_GP_PIN(4, 11),
2397};
2398static const unsigned int scif_clk2_mux[] = {
2399 SCIF_CLK2_MARK,
2400};
2401
2402/* - SSI ------------------------------------------------- */
2403static const unsigned int ssi_data_pins[] = {
2404 /* SSI_SD */
2405 RCAR_GP_PIN(1, 20),
2406};
2407static const unsigned int ssi_data_mux[] = {
2408 SSI_SD_MARK,
2409};
2410static const unsigned int ssi_ctrl_pins[] = {
2411 /* SSI_SCK, SSI_WS */
2412 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
2413};
2414static const unsigned int ssi_ctrl_mux[] = {
2415 SSI_SCK_MARK, SSI_WS_MARK,
2416};
2417
Marek Vasut7c00fb32024-09-11 23:09:39 +02002418/* - TPU --------------------------------------------------------------------- */
Hai Pham6c45a3c2024-01-28 16:52:03 +01002419static const unsigned int tpu_to0_a_pins[] = {
2420 /* TPU0TO0_A */
2421 RCAR_GP_PIN(2, 8),
2422};
2423static const unsigned int tpu_to0_a_mux[] = {
2424 TPU0TO0_A_MARK,
2425};
2426static const unsigned int tpu_to1_a_pins[] = {
2427 /* TPU0TO1_A */
2428 RCAR_GP_PIN(2, 7),
2429};
2430static const unsigned int tpu_to1_a_mux[] = {
2431 TPU0TO1_A_MARK,
2432};
2433static const unsigned int tpu_to2_a_pins[] = {
2434 /* TPU0TO2_A */
2435 RCAR_GP_PIN(2, 12),
2436};
2437static const unsigned int tpu_to2_a_mux[] = {
2438 TPU0TO2_A_MARK,
2439};
2440static const unsigned int tpu_to3_a_pins[] = {
2441 /* TPU0TO3_A */
2442 RCAR_GP_PIN(2, 13),
2443};
2444static const unsigned int tpu_to3_a_mux[] = {
2445 TPU0TO3_A_MARK,
2446};
2447
Hai Pham6c45a3c2024-01-28 16:52:03 +01002448static const unsigned int tpu_to0_b_pins[] = {
2449 /* TPU0TO0_B */
2450 RCAR_GP_PIN(1, 25),
2451};
2452static const unsigned int tpu_to0_b_mux[] = {
2453 TPU0TO0_B_MARK,
2454};
2455static const unsigned int tpu_to1_b_pins[] = {
2456 /* TPU0TO1_B */
2457 RCAR_GP_PIN(1, 26),
2458};
2459static const unsigned int tpu_to1_b_mux[] = {
2460 TPU0TO1_B_MARK,
2461};
2462static const unsigned int tpu_to2_b_pins[] = {
2463 /* TPU0TO2_B */
2464 RCAR_GP_PIN(2, 0),
2465};
2466static const unsigned int tpu_to2_b_mux[] = {
2467 TPU0TO2_B_MARK,
2468};
2469static const unsigned int tpu_to3_b_pins[] = {
2470 /* TPU0TO3_B */
2471 RCAR_GP_PIN(2, 1),
2472};
2473static const unsigned int tpu_to3_b_mux[] = {
2474 TPU0TO3_B_MARK,
2475};
2476
2477static const struct sh_pfc_pin_group pinmux_groups[] = {
2478 SH_PFC_PIN_GROUP(audio_clkin),
2479 SH_PFC_PIN_GROUP(audio_clkout),
2480
2481 SH_PFC_PIN_GROUP(avb0_link),
2482 SH_PFC_PIN_GROUP(avb0_magic),
2483 SH_PFC_PIN_GROUP(avb0_phy_int),
2484 SH_PFC_PIN_GROUP(avb0_mdio),
Marek Vasut7c00fb32024-09-11 23:09:39 +02002485 SH_PFC_PIN_GROUP(avb0_mii),
Hai Pham6c45a3c2024-01-28 16:52:03 +01002486 SH_PFC_PIN_GROUP(avb0_rgmii),
2487 SH_PFC_PIN_GROUP(avb0_txcrefclk),
2488 SH_PFC_PIN_GROUP(avb0_avtp_pps),
2489 SH_PFC_PIN_GROUP(avb0_avtp_capture),
2490 SH_PFC_PIN_GROUP(avb0_avtp_match),
2491
2492 SH_PFC_PIN_GROUP(avb1_link),
2493 SH_PFC_PIN_GROUP(avb1_magic),
2494 SH_PFC_PIN_GROUP(avb1_phy_int),
2495 SH_PFC_PIN_GROUP(avb1_mdio),
Marek Vasut7c00fb32024-09-11 23:09:39 +02002496 SH_PFC_PIN_GROUP(avb1_mii),
Hai Pham6c45a3c2024-01-28 16:52:03 +01002497 SH_PFC_PIN_GROUP(avb1_rgmii),
2498 SH_PFC_PIN_GROUP(avb1_txcrefclk),
2499 SH_PFC_PIN_GROUP(avb1_avtp_pps),
2500 SH_PFC_PIN_GROUP(avb1_avtp_capture),
2501 SH_PFC_PIN_GROUP(avb1_avtp_match),
2502
2503 SH_PFC_PIN_GROUP(avb2_link),
2504 SH_PFC_PIN_GROUP(avb2_magic),
2505 SH_PFC_PIN_GROUP(avb2_phy_int),
2506 SH_PFC_PIN_GROUP(avb2_mdio),
2507 SH_PFC_PIN_GROUP(avb2_rgmii),
2508 SH_PFC_PIN_GROUP(avb2_txcrefclk),
2509 SH_PFC_PIN_GROUP(avb2_avtp_pps),
2510 SH_PFC_PIN_GROUP(avb2_avtp_capture),
2511 SH_PFC_PIN_GROUP(avb2_avtp_match),
2512
2513 SH_PFC_PIN_GROUP(canfd0_data),
2514 SH_PFC_PIN_GROUP(canfd1_data),
2515 SH_PFC_PIN_GROUP(canfd2_data),
2516 SH_PFC_PIN_GROUP(canfd3_data),
2517 SH_PFC_PIN_GROUP(can_clk),
2518
2519 SH_PFC_PIN_GROUP(hscif0_data),
2520 SH_PFC_PIN_GROUP(hscif0_clk),
2521 SH_PFC_PIN_GROUP(hscif0_ctrl),
2522 SH_PFC_PIN_GROUP(hscif1_data_a),
2523 SH_PFC_PIN_GROUP(hscif1_clk_a),
2524 SH_PFC_PIN_GROUP(hscif1_ctrl_a),
2525 SH_PFC_PIN_GROUP(hscif1_data_b),
2526 SH_PFC_PIN_GROUP(hscif1_clk_b),
2527 SH_PFC_PIN_GROUP(hscif1_ctrl_b),
2528 SH_PFC_PIN_GROUP(hscif2_data),
2529 SH_PFC_PIN_GROUP(hscif2_clk),
2530 SH_PFC_PIN_GROUP(hscif2_ctrl),
2531 SH_PFC_PIN_GROUP(hscif3_data_a),
2532 SH_PFC_PIN_GROUP(hscif3_clk_a),
2533 SH_PFC_PIN_GROUP(hscif3_ctrl_a),
2534 SH_PFC_PIN_GROUP(hscif3_data_b),
2535 SH_PFC_PIN_GROUP(hscif3_clk_b),
2536 SH_PFC_PIN_GROUP(hscif3_ctrl_b),
2537
2538 SH_PFC_PIN_GROUP(i2c0),
2539 SH_PFC_PIN_GROUP(i2c1),
2540 SH_PFC_PIN_GROUP(i2c2),
2541 SH_PFC_PIN_GROUP(i2c3),
2542
Marek Vasut7c00fb32024-09-11 23:09:39 +02002543 SH_PFC_PIN_GROUP(intc_ex_irq0_a),
2544 SH_PFC_PIN_GROUP(intc_ex_irq0_b),
2545 SH_PFC_PIN_GROUP(intc_ex_irq1_a),
2546 SH_PFC_PIN_GROUP(intc_ex_irq1_b),
2547 SH_PFC_PIN_GROUP(intc_ex_irq2_a),
2548 SH_PFC_PIN_GROUP(intc_ex_irq2_b),
2549 SH_PFC_PIN_GROUP(intc_ex_irq3_a),
2550 SH_PFC_PIN_GROUP(intc_ex_irq3_b),
2551 SH_PFC_PIN_GROUP(intc_ex_irq4_a),
2552 SH_PFC_PIN_GROUP(intc_ex_irq4_b),
2553 SH_PFC_PIN_GROUP(intc_ex_irq5),
2554
Hai Pham6c45a3c2024-01-28 16:52:03 +01002555 BUS_DATA_PIN_GROUP(mmc_data, 1),
2556 BUS_DATA_PIN_GROUP(mmc_data, 4),
2557 BUS_DATA_PIN_GROUP(mmc_data, 8),
2558 SH_PFC_PIN_GROUP(mmc_ctrl),
2559 SH_PFC_PIN_GROUP(mmc_cd),
2560 SH_PFC_PIN_GROUP(mmc_wp),
2561 SH_PFC_PIN_GROUP(mmc_ds),
2562
2563 SH_PFC_PIN_GROUP(msiof0_clk),
2564 SH_PFC_PIN_GROUP(msiof0_sync),
2565 SH_PFC_PIN_GROUP(msiof0_ss1),
2566 SH_PFC_PIN_GROUP(msiof0_ss2),
2567 SH_PFC_PIN_GROUP(msiof0_txd),
2568 SH_PFC_PIN_GROUP(msiof0_rxd),
2569
2570 SH_PFC_PIN_GROUP(msiof1_clk),
2571 SH_PFC_PIN_GROUP(msiof1_sync),
2572 SH_PFC_PIN_GROUP(msiof1_ss1),
2573 SH_PFC_PIN_GROUP(msiof1_ss2),
2574 SH_PFC_PIN_GROUP(msiof1_txd),
2575 SH_PFC_PIN_GROUP(msiof1_rxd),
2576
2577 SH_PFC_PIN_GROUP(msiof2_clk),
2578 SH_PFC_PIN_GROUP(msiof2_sync),
2579 SH_PFC_PIN_GROUP(msiof2_ss1),
2580 SH_PFC_PIN_GROUP(msiof2_ss2),
2581 SH_PFC_PIN_GROUP(msiof2_txd),
2582 SH_PFC_PIN_GROUP(msiof2_rxd),
2583
2584 SH_PFC_PIN_GROUP(msiof3_clk),
2585 SH_PFC_PIN_GROUP(msiof3_sync),
2586 SH_PFC_PIN_GROUP(msiof3_ss1),
2587 SH_PFC_PIN_GROUP(msiof3_ss2),
2588 SH_PFC_PIN_GROUP(msiof3_txd),
2589 SH_PFC_PIN_GROUP(msiof3_rxd),
2590
2591 SH_PFC_PIN_GROUP(msiof4_clk),
2592 SH_PFC_PIN_GROUP(msiof4_sync),
2593 SH_PFC_PIN_GROUP(msiof4_ss1),
2594 SH_PFC_PIN_GROUP(msiof4_ss2),
2595 SH_PFC_PIN_GROUP(msiof4_txd),
2596 SH_PFC_PIN_GROUP(msiof4_rxd),
2597
2598 SH_PFC_PIN_GROUP(msiof5_clk),
2599 SH_PFC_PIN_GROUP(msiof5_sync),
2600 SH_PFC_PIN_GROUP(msiof5_ss1),
2601 SH_PFC_PIN_GROUP(msiof5_ss2),
2602 SH_PFC_PIN_GROUP(msiof5_txd),
2603 SH_PFC_PIN_GROUP(msiof5_rxd),
2604
2605 SH_PFC_PIN_GROUP(pcie0_clkreq_n),
2606
2607 SH_PFC_PIN_GROUP(pwm0_a),
2608 SH_PFC_PIN_GROUP(pwm0_b),
2609 SH_PFC_PIN_GROUP(pwm1_a),
2610 SH_PFC_PIN_GROUP(pwm1_b),
2611 SH_PFC_PIN_GROUP(pwm1_c),
2612 SH_PFC_PIN_GROUP(pwm2_a),
2613 SH_PFC_PIN_GROUP(pwm2_b),
2614 SH_PFC_PIN_GROUP(pwm2_c),
2615 SH_PFC_PIN_GROUP(pwm3_a),
2616 SH_PFC_PIN_GROUP(pwm3_b),
2617 SH_PFC_PIN_GROUP(pwm3_c),
2618 SH_PFC_PIN_GROUP(pwm4),
2619
2620 SH_PFC_PIN_GROUP(qspi0_ctrl),
2621 BUS_DATA_PIN_GROUP(qspi0_data, 2),
2622 BUS_DATA_PIN_GROUP(qspi0_data, 4),
2623 SH_PFC_PIN_GROUP(qspi1_ctrl),
2624 BUS_DATA_PIN_GROUP(qspi1_data, 2),
2625 BUS_DATA_PIN_GROUP(qspi1_data, 4),
2626
2627 SH_PFC_PIN_GROUP(scif0_data),
2628 SH_PFC_PIN_GROUP(scif0_clk),
2629 SH_PFC_PIN_GROUP(scif0_ctrl),
2630 SH_PFC_PIN_GROUP(scif1_data_a),
2631 SH_PFC_PIN_GROUP(scif1_clk_a),
2632 SH_PFC_PIN_GROUP(scif1_ctrl_a),
2633 SH_PFC_PIN_GROUP(scif1_data_b),
2634 SH_PFC_PIN_GROUP(scif1_clk_b),
2635 SH_PFC_PIN_GROUP(scif1_ctrl_b),
2636 SH_PFC_PIN_GROUP(scif3_data_a),
2637 SH_PFC_PIN_GROUP(scif3_clk_a),
2638 SH_PFC_PIN_GROUP(scif3_ctrl_a),
2639 SH_PFC_PIN_GROUP(scif3_data_b),
2640 SH_PFC_PIN_GROUP(scif3_clk_b),
2641 SH_PFC_PIN_GROUP(scif3_ctrl_b),
2642 SH_PFC_PIN_GROUP(scif4_data),
2643 SH_PFC_PIN_GROUP(scif4_clk),
2644 SH_PFC_PIN_GROUP(scif4_ctrl),
2645 SH_PFC_PIN_GROUP(scif_clk),
2646 SH_PFC_PIN_GROUP(scif_clk2),
2647
2648 SH_PFC_PIN_GROUP(ssi_data),
2649 SH_PFC_PIN_GROUP(ssi_ctrl),
2650
2651 SH_PFC_PIN_GROUP(tpu_to0_a),
2652 SH_PFC_PIN_GROUP(tpu_to0_b),
2653 SH_PFC_PIN_GROUP(tpu_to1_a),
2654 SH_PFC_PIN_GROUP(tpu_to1_b),
2655 SH_PFC_PIN_GROUP(tpu_to2_a),
2656 SH_PFC_PIN_GROUP(tpu_to2_b),
2657 SH_PFC_PIN_GROUP(tpu_to3_a),
2658 SH_PFC_PIN_GROUP(tpu_to3_b),
2659};
2660
2661static const char * const audio_clk_groups[] = {
2662 "audio_clkin",
2663 "audio_clkout",
2664};
2665
2666static const char * const avb0_groups[] = {
2667 "avb0_link",
2668 "avb0_magic",
2669 "avb0_phy_int",
2670 "avb0_mdio",
Marek Vasut7c00fb32024-09-11 23:09:39 +02002671 "avb0_mii",
Hai Pham6c45a3c2024-01-28 16:52:03 +01002672 "avb0_rgmii",
2673 "avb0_txcrefclk",
2674 "avb0_avtp_pps",
2675 "avb0_avtp_capture",
2676 "avb0_avtp_match",
2677};
2678
2679static const char * const avb1_groups[] = {
2680 "avb1_link",
2681 "avb1_magic",
2682 "avb1_phy_int",
2683 "avb1_mdio",
Marek Vasut7c00fb32024-09-11 23:09:39 +02002684 "avb1_mii",
Hai Pham6c45a3c2024-01-28 16:52:03 +01002685 "avb1_rgmii",
2686 "avb1_txcrefclk",
2687 "avb1_avtp_pps",
2688 "avb1_avtp_capture",
2689 "avb1_avtp_match",
2690};
2691
2692static const char * const avb2_groups[] = {
2693 "avb2_link",
2694 "avb2_magic",
2695 "avb2_phy_int",
2696 "avb2_mdio",
2697 "avb2_rgmii",
2698 "avb2_txcrefclk",
2699 "avb2_avtp_pps",
2700 "avb2_avtp_capture",
2701 "avb2_avtp_match",
2702};
2703
2704static const char * const canfd0_groups[] = {
2705 "canfd0_data",
2706};
2707
2708static const char * const canfd1_groups[] = {
2709 "canfd1_data",
2710};
2711
2712static const char * const canfd2_groups[] = {
2713 "canfd2_data",
2714};
2715
2716static const char * const canfd3_groups[] = {
2717 "canfd3_data",
2718};
2719
2720static const char * const can_clk_groups[] = {
2721 "can_clk",
2722};
2723
2724static const char * const hscif0_groups[] = {
2725 "hscif0_data",
2726 "hscif0_clk",
2727 "hscif0_ctrl",
2728};
2729
2730static const char * const hscif1_groups[] = {
2731 "hscif1_data_a",
2732 "hscif1_clk_a",
2733 "hscif1_ctrl_a",
2734 "hscif1_data_b",
2735 "hscif1_clk_b",
2736 "hscif1_ctrl_b",
2737};
2738
2739static const char * const hscif2_groups[] = {
2740 "hscif2_data",
2741 "hscif2_clk",
2742 "hscif2_ctrl",
2743};
2744
2745static const char * const hscif3_groups[] = {
2746 "hscif3_data_a",
2747 "hscif3_clk_a",
2748 "hscif3_ctrl_a",
2749 "hscif3_data_b",
2750 "hscif3_clk_b",
2751 "hscif3_ctrl_b",
2752};
2753
2754static const char * const i2c0_groups[] = {
2755 "i2c0",
2756};
2757
2758static const char * const i2c1_groups[] = {
2759 "i2c1",
2760};
2761
2762static const char * const i2c2_groups[] = {
2763 "i2c2",
2764};
2765
2766static const char * const i2c3_groups[] = {
2767 "i2c3",
2768};
2769
Marek Vasut7c00fb32024-09-11 23:09:39 +02002770static const char * const intc_ex_groups[] = {
2771 "intc_ex_irq0_a",
2772 "intc_ex_irq0_b",
2773 "intc_ex_irq1_a",
2774 "intc_ex_irq1_b",
2775 "intc_ex_irq2_a",
2776 "intc_ex_irq2_b",
2777 "intc_ex_irq3_a",
2778 "intc_ex_irq3_b",
2779 "intc_ex_irq4_a",
2780 "intc_ex_irq4_b",
2781 "intc_ex_irq5",
2782};
2783
Hai Pham6c45a3c2024-01-28 16:52:03 +01002784static const char * const mmc_groups[] = {
2785 "mmc_data1",
2786 "mmc_data4",
2787 "mmc_data8",
2788 "mmc_ctrl",
2789 "mmc_cd",
2790 "mmc_wp",
2791 "mmc_ds",
2792};
2793
2794static const char * const msiof0_groups[] = {
2795 "msiof0_clk",
2796 "msiof0_sync",
2797 "msiof0_ss1",
2798 "msiof0_ss2",
2799 "msiof0_txd",
2800 "msiof0_rxd",
2801};
2802
2803static const char * const msiof1_groups[] = {
2804 "msiof1_clk",
2805 "msiof1_sync",
2806 "msiof1_ss1",
2807 "msiof1_ss2",
2808 "msiof1_txd",
2809 "msiof1_rxd",
2810};
2811
2812static const char * const msiof2_groups[] = {
2813 "msiof2_clk",
2814 "msiof2_sync",
2815 "msiof2_ss1",
2816 "msiof2_ss2",
2817 "msiof2_txd",
2818 "msiof2_rxd",
2819};
2820
2821static const char * const msiof3_groups[] = {
2822 "msiof3_clk",
2823 "msiof3_sync",
2824 "msiof3_ss1",
2825 "msiof3_ss2",
2826 "msiof3_txd",
2827 "msiof3_rxd",
2828};
2829
2830static const char * const msiof4_groups[] = {
2831 "msiof4_clk",
2832 "msiof4_sync",
2833 "msiof4_ss1",
2834 "msiof4_ss2",
2835 "msiof4_txd",
2836 "msiof4_rxd",
2837};
2838
2839static const char * const msiof5_groups[] = {
2840 "msiof5_clk",
2841 "msiof5_sync",
2842 "msiof5_ss1",
2843 "msiof5_ss2",
2844 "msiof5_txd",
2845 "msiof5_rxd",
2846};
2847
2848static const char * const pcie_groups[] = {
2849 "pcie0_clkreq_n",
2850};
2851
2852static const char * const pwm0_groups[] = {
2853 "pwm0_a",
2854 "pwm0_b",
2855};
2856
2857static const char * const pwm1_groups[] = {
2858 "pwm1_a",
2859 "pwm1_b",
2860 "pwm1_c",
2861};
2862
2863static const char * const pwm2_groups[] = {
2864 "pwm2_a",
2865 "pwm2_b",
2866 "pwm2_c",
2867};
2868
2869static const char * const pwm3_groups[] = {
2870 "pwm3_a",
2871 "pwm3_b",
2872 "pwm3_c",
2873};
2874
2875static const char * const pwm4_groups[] = {
2876 "pwm4",
2877};
2878
2879static const char * const qspi0_groups[] = {
2880 "qspi0_ctrl",
2881 "qspi0_data2",
2882 "qspi0_data4",
2883};
2884
2885static const char * const qspi1_groups[] = {
2886 "qspi1_ctrl",
2887 "qspi1_data2",
2888 "qspi1_data4",
2889};
2890
2891static const char * const scif0_groups[] = {
2892 "scif0_data",
2893 "scif0_clk",
2894 "scif0_ctrl",
2895};
2896
2897static const char * const scif1_groups[] = {
2898 "scif1_data_a",
2899 "scif1_clk_a",
2900 "scif1_ctrl_a",
2901 "scif1_data_b",
2902 "scif1_clk_b",
2903 "scif1_ctrl_b",
2904};
2905
2906static const char * const scif3_groups[] = {
2907 "scif3_data_a",
2908 "scif3_clk_a",
2909 "scif3_ctrl_a",
2910 "scif3_data_b",
2911 "scif3_clk_b",
2912 "scif3_ctrl_b",
2913};
2914
2915static const char * const scif4_groups[] = {
2916 "scif4_data",
2917 "scif4_clk",
2918 "scif4_ctrl",
2919};
2920
2921static const char * const scif_clk_groups[] = {
2922 "scif_clk",
2923};
2924
2925static const char * const scif_clk2_groups[] = {
2926 "scif_clk2",
2927};
2928
2929static const char * const ssi_groups[] = {
2930 "ssi_data",
2931 "ssi_ctrl",
2932};
2933
2934static const char * const tpu_groups[] = {
2935 "tpu_to0_a",
2936 "tpu_to0_b",
2937 "tpu_to1_a",
2938 "tpu_to1_b",
2939 "tpu_to2_a",
2940 "tpu_to2_b",
2941 "tpu_to3_a",
2942 "tpu_to3_b",
2943};
2944
2945static const struct sh_pfc_function pinmux_functions[] = {
2946 SH_PFC_FUNCTION(audio_clk),
2947
2948 SH_PFC_FUNCTION(avb0),
2949 SH_PFC_FUNCTION(avb1),
2950 SH_PFC_FUNCTION(avb2),
2951
2952 SH_PFC_FUNCTION(canfd0),
2953 SH_PFC_FUNCTION(canfd1),
2954 SH_PFC_FUNCTION(canfd2),
2955 SH_PFC_FUNCTION(canfd3),
2956 SH_PFC_FUNCTION(can_clk),
2957
2958 SH_PFC_FUNCTION(hscif0),
2959 SH_PFC_FUNCTION(hscif1),
2960 SH_PFC_FUNCTION(hscif2),
2961 SH_PFC_FUNCTION(hscif3),
2962
2963 SH_PFC_FUNCTION(i2c0),
2964 SH_PFC_FUNCTION(i2c1),
2965 SH_PFC_FUNCTION(i2c2),
2966 SH_PFC_FUNCTION(i2c3),
2967
Marek Vasut7c00fb32024-09-11 23:09:39 +02002968 SH_PFC_FUNCTION(intc_ex),
2969
Hai Pham6c45a3c2024-01-28 16:52:03 +01002970 SH_PFC_FUNCTION(mmc),
2971
2972 SH_PFC_FUNCTION(msiof0),
2973 SH_PFC_FUNCTION(msiof1),
2974 SH_PFC_FUNCTION(msiof2),
2975 SH_PFC_FUNCTION(msiof3),
2976 SH_PFC_FUNCTION(msiof4),
2977 SH_PFC_FUNCTION(msiof5),
2978
2979 SH_PFC_FUNCTION(pcie),
2980
2981 SH_PFC_FUNCTION(pwm0),
2982 SH_PFC_FUNCTION(pwm1),
2983 SH_PFC_FUNCTION(pwm2),
2984 SH_PFC_FUNCTION(pwm3),
2985 SH_PFC_FUNCTION(pwm4),
2986
2987 SH_PFC_FUNCTION(qspi0),
2988 SH_PFC_FUNCTION(qspi1),
2989
2990 SH_PFC_FUNCTION(scif0),
2991 SH_PFC_FUNCTION(scif1),
2992 SH_PFC_FUNCTION(scif3),
2993 SH_PFC_FUNCTION(scif4),
2994 SH_PFC_FUNCTION(scif_clk),
2995 SH_PFC_FUNCTION(scif_clk2),
2996
2997 SH_PFC_FUNCTION(ssi),
2998
2999 SH_PFC_FUNCTION(tpu),
3000};
3001
3002static const struct pinmux_cfg_reg pinmux_config_regs[] = {
3003#define F_(x, y) FN_##y
3004#define FM(x) FN_##x
3005 { PINMUX_CFG_REG_VAR("GPSR0", 0xE6050040, 32,
3006 GROUP(-13, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3007 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3008 GROUP(
3009 /* GP0_31_19 RESERVED */
3010 GP_0_18_FN, GPSR0_18,
3011 GP_0_17_FN, GPSR0_17,
3012 GP_0_16_FN, GPSR0_16,
3013 GP_0_15_FN, GPSR0_15,
3014 GP_0_14_FN, GPSR0_14,
3015 GP_0_13_FN, GPSR0_13,
3016 GP_0_12_FN, GPSR0_12,
3017 GP_0_11_FN, GPSR0_11,
3018 GP_0_10_FN, GPSR0_10,
3019 GP_0_9_FN, GPSR0_9,
3020 GP_0_8_FN, GPSR0_8,
3021 GP_0_7_FN, GPSR0_7,
3022 GP_0_6_FN, GPSR0_6,
3023 GP_0_5_FN, GPSR0_5,
3024 GP_0_4_FN, GPSR0_4,
3025 GP_0_3_FN, GPSR0_3,
3026 GP_0_2_FN, GPSR0_2,
3027 GP_0_1_FN, GPSR0_1,
3028 GP_0_0_FN, GPSR0_0, ))
3029 },
3030 { PINMUX_CFG_REG("GPSR1", 0xE6050840, 32, 1, GROUP(
3031 0, 0,
3032 0, 0,
3033 GP_1_29_FN, GPSR1_29,
3034 GP_1_28_FN, GPSR1_28,
3035 GP_1_27_FN, GPSR1_27,
3036 GP_1_26_FN, GPSR1_26,
3037 GP_1_25_FN, GPSR1_25,
3038 GP_1_24_FN, GPSR1_24,
3039 GP_1_23_FN, GPSR1_23,
3040 GP_1_22_FN, GPSR1_22,
3041 GP_1_21_FN, GPSR1_21,
3042 GP_1_20_FN, GPSR1_20,
3043 GP_1_19_FN, GPSR1_19,
3044 GP_1_18_FN, GPSR1_18,
3045 GP_1_17_FN, GPSR1_17,
3046 GP_1_16_FN, GPSR1_16,
3047 GP_1_15_FN, GPSR1_15,
3048 GP_1_14_FN, GPSR1_14,
3049 GP_1_13_FN, GPSR1_13,
3050 GP_1_12_FN, GPSR1_12,
3051 GP_1_11_FN, GPSR1_11,
3052 GP_1_10_FN, GPSR1_10,
3053 GP_1_9_FN, GPSR1_9,
3054 GP_1_8_FN, GPSR1_8,
3055 GP_1_7_FN, GPSR1_7,
3056 GP_1_6_FN, GPSR1_6,
3057 GP_1_5_FN, GPSR1_5,
3058 GP_1_4_FN, GPSR1_4,
3059 GP_1_3_FN, GPSR1_3,
3060 GP_1_2_FN, GPSR1_2,
3061 GP_1_1_FN, GPSR1_1,
3062 GP_1_0_FN, GPSR1_0, ))
3063 },
3064 { PINMUX_CFG_REG_VAR("GPSR2", 0xE6058040, 32,
3065 GROUP(-12, 1, -1, 1, -1, 1, 1, 1, 1, 1, 1,
3066 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3067 GROUP(
3068 /* GP2_31_20 RESERVED */
3069 GP_2_19_FN, GPSR2_19,
3070 /* GP2_18 RESERVED */
3071 GP_2_17_FN, GPSR2_17,
3072 /* GP2_16 RESERVED */
3073 GP_2_15_FN, GPSR2_15,
3074 GP_2_14_FN, GPSR2_14,
3075 GP_2_13_FN, GPSR2_13,
3076 GP_2_12_FN, GPSR2_12,
3077 GP_2_11_FN, GPSR2_11,
3078 GP_2_10_FN, GPSR2_10,
3079 GP_2_9_FN, GPSR2_9,
3080 GP_2_8_FN, GPSR2_8,
3081 GP_2_7_FN, GPSR2_7,
3082 GP_2_6_FN, GPSR2_6,
3083 GP_2_5_FN, GPSR2_5,
3084 GP_2_4_FN, GPSR2_4,
3085 GP_2_3_FN, GPSR2_3,
3086 GP_2_2_FN, GPSR2_2,
3087 GP_2_1_FN, GPSR2_1,
3088 GP_2_0_FN, GPSR2_0, ))
3089 },
3090 { PINMUX_CFG_REG("GPSR3", 0xE6058840, 32, 1, GROUP(
3091 GP_3_31_FN, GPSR3_31,
3092 GP_3_30_FN, GPSR3_30,
3093 GP_3_29_FN, GPSR3_29,
3094 GP_3_28_FN, GPSR3_28,
3095 GP_3_27_FN, GPSR3_27,
3096 GP_3_26_FN, GPSR3_26,
3097 GP_3_25_FN, GPSR3_25,
3098 GP_3_24_FN, GPSR3_24,
3099 GP_3_23_FN, GPSR3_23,
3100 GP_3_22_FN, GPSR3_22,
3101 GP_3_21_FN, GPSR3_21,
3102 GP_3_20_FN, GPSR3_20,
3103 GP_3_19_FN, GPSR3_19,
3104 GP_3_18_FN, GPSR3_18,
3105 GP_3_17_FN, GPSR3_17,
3106 GP_3_16_FN, GPSR3_16,
3107 GP_3_15_FN, GPSR3_15,
3108 GP_3_14_FN, GPSR3_14,
3109 GP_3_13_FN, GPSR3_13,
3110 GP_3_12_FN, GPSR3_12,
3111 GP_3_11_FN, GPSR3_11,
3112 GP_3_10_FN, GPSR3_10,
3113 GP_3_9_FN, GPSR3_9,
3114 GP_3_8_FN, GPSR3_8,
3115 GP_3_7_FN, GPSR3_7,
3116 GP_3_6_FN, GPSR3_6,
3117 GP_3_5_FN, GPSR3_5,
3118 GP_3_4_FN, GPSR3_4,
3119 GP_3_3_FN, GPSR3_3,
3120 GP_3_2_FN, GPSR3_2,
3121 GP_3_1_FN, GPSR3_1,
3122 GP_3_0_FN, GPSR3_0, ))
3123 },
3124 { PINMUX_CFG_REG_VAR("GPSR4", 0xE6060040, 32,
3125 GROUP(-7, 1, 1, -1, 1, -5, 1, 1, 1, 1, 1,
3126 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3127 GROUP(
3128 /* GP4_31_25 RESERVED */
3129 GP_4_24_FN, GPSR4_24,
3130 GP_4_23_FN, GPSR4_23,
3131 /* GP4_22 RESERVED */
3132 GP_4_21_FN, GPSR4_21,
3133 /* GP4_20_16 RESERVED */
3134 GP_4_15_FN, GPSR4_15,
3135 GP_4_14_FN, GPSR4_14,
3136 GP_4_13_FN, GPSR4_13,
3137 GP_4_12_FN, GPSR4_12,
3138 GP_4_11_FN, GPSR4_11,
3139 GP_4_10_FN, GPSR4_10,
3140 GP_4_9_FN, GPSR4_9,
3141 GP_4_8_FN, GPSR4_8,
3142 GP_4_7_FN, GPSR4_7,
3143 GP_4_6_FN, GPSR4_6,
3144 GP_4_5_FN, GPSR4_5,
3145 GP_4_4_FN, GPSR4_4,
3146 GP_4_3_FN, GPSR4_3,
3147 GP_4_2_FN, GPSR4_2,
3148 GP_4_1_FN, GPSR4_1,
3149 GP_4_0_FN, GPSR4_0, ))
3150 },
3151 { PINMUX_CFG_REG_VAR("GPSR5", 0xE6060840, 32,
3152 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3153 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3154 GROUP(
3155 /* GP5_31_21 RESERVED */
3156 GP_5_20_FN, GPSR5_20,
3157 GP_5_19_FN, GPSR5_19,
3158 GP_5_18_FN, GPSR5_18,
3159 GP_5_17_FN, GPSR5_17,
3160 GP_5_16_FN, GPSR5_16,
3161 GP_5_15_FN, GPSR5_15,
3162 GP_5_14_FN, GPSR5_14,
3163 GP_5_13_FN, GPSR5_13,
3164 GP_5_12_FN, GPSR5_12,
3165 GP_5_11_FN, GPSR5_11,
3166 GP_5_10_FN, GPSR5_10,
3167 GP_5_9_FN, GPSR5_9,
3168 GP_5_8_FN, GPSR5_8,
3169 GP_5_7_FN, GPSR5_7,
3170 GP_5_6_FN, GPSR5_6,
3171 GP_5_5_FN, GPSR5_5,
3172 GP_5_4_FN, GPSR5_4,
3173 GP_5_3_FN, GPSR5_3,
3174 GP_5_2_FN, GPSR5_2,
3175 GP_5_1_FN, GPSR5_1,
3176 GP_5_0_FN, GPSR5_0, ))
3177 },
3178 { PINMUX_CFG_REG_VAR("GPSR6", 0xE6061040, 32,
3179 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3180 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3181 GROUP(
3182 /* GP6_31_21 RESERVED */
3183 GP_6_20_FN, GPSR6_20,
3184 GP_6_19_FN, GPSR6_19,
3185 GP_6_18_FN, GPSR6_18,
3186 GP_6_17_FN, GPSR6_17,
3187 GP_6_16_FN, GPSR6_16,
3188 GP_6_15_FN, GPSR6_15,
3189 GP_6_14_FN, GPSR6_14,
3190 GP_6_13_FN, GPSR6_13,
3191 GP_6_12_FN, GPSR6_12,
3192 GP_6_11_FN, GPSR6_11,
3193 GP_6_10_FN, GPSR6_10,
3194 GP_6_9_FN, GPSR6_9,
3195 GP_6_8_FN, GPSR6_8,
3196 GP_6_7_FN, GPSR6_7,
3197 GP_6_6_FN, GPSR6_6,
3198 GP_6_5_FN, GPSR6_5,
3199 GP_6_4_FN, GPSR6_4,
3200 GP_6_3_FN, GPSR6_3,
3201 GP_6_2_FN, GPSR6_2,
3202 GP_6_1_FN, GPSR6_1,
3203 GP_6_0_FN, GPSR6_0, ))
3204 },
3205 { PINMUX_CFG_REG_VAR("GPSR7", 0xE6061840, 32,
3206 GROUP(-11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3207 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
3208 GROUP(
3209 /* GP7_31_21 RESERVED */
3210 GP_7_20_FN, GPSR7_20,
3211 GP_7_19_FN, GPSR7_19,
3212 GP_7_18_FN, GPSR7_18,
3213 GP_7_17_FN, GPSR7_17,
3214 GP_7_16_FN, GPSR7_16,
3215 GP_7_15_FN, GPSR7_15,
3216 GP_7_14_FN, GPSR7_14,
3217 GP_7_13_FN, GPSR7_13,
3218 GP_7_12_FN, GPSR7_12,
3219 GP_7_11_FN, GPSR7_11,
3220 GP_7_10_FN, GPSR7_10,
3221 GP_7_9_FN, GPSR7_9,
3222 GP_7_8_FN, GPSR7_8,
3223 GP_7_7_FN, GPSR7_7,
3224 GP_7_6_FN, GPSR7_6,
3225 GP_7_5_FN, GPSR7_5,
3226 GP_7_4_FN, GPSR7_4,
3227 GP_7_3_FN, GPSR7_3,
3228 GP_7_2_FN, GPSR7_2,
3229 GP_7_1_FN, GPSR7_1,
3230 GP_7_0_FN, GPSR7_0, ))
3231 },
3232#undef F_
3233#undef FM
3234
3235#define F_(x, y) x,
3236#define FM(x) FN_##x,
3237 { PINMUX_CFG_REG("IP0SR0", 0xE6050060, 32, 4, GROUP(
3238 IP0SR0_31_28
3239 IP0SR0_27_24
3240 IP0SR0_23_20
3241 IP0SR0_19_16
3242 IP0SR0_15_12
3243 IP0SR0_11_8
3244 IP0SR0_7_4
3245 IP0SR0_3_0))
3246 },
3247 { PINMUX_CFG_REG("IP1SR0", 0xE6050064, 32, 4, GROUP(
3248 IP1SR0_31_28
3249 IP1SR0_27_24
3250 IP1SR0_23_20
3251 IP1SR0_19_16
3252 IP1SR0_15_12
3253 IP1SR0_11_8
3254 IP1SR0_7_4
3255 IP1SR0_3_0))
3256 },
3257 { PINMUX_CFG_REG_VAR("IP2SR0", 0xE6050068, 32,
3258 GROUP(-20, 4, 4, 4),
3259 GROUP(
3260 /* IP2SR0_31_12 RESERVED */
3261 IP2SR0_11_8
3262 IP2SR0_7_4
3263 IP2SR0_3_0))
3264 },
3265 { PINMUX_CFG_REG("IP0SR1", 0xE6050860, 32, 4, GROUP(
3266 IP0SR1_31_28
3267 IP0SR1_27_24
3268 IP0SR1_23_20
3269 IP0SR1_19_16
3270 IP0SR1_15_12
3271 IP0SR1_11_8
3272 IP0SR1_7_4
3273 IP0SR1_3_0))
3274 },
3275 { PINMUX_CFG_REG("IP1SR1", 0xE6050864, 32, 4, GROUP(
3276 IP1SR1_31_28
3277 IP1SR1_27_24
3278 IP1SR1_23_20
3279 IP1SR1_19_16
3280 IP1SR1_15_12
3281 IP1SR1_11_8
3282 IP1SR1_7_4
3283 IP1SR1_3_0))
3284 },
3285 { PINMUX_CFG_REG("IP2SR1", 0xE6050868, 32, 4, GROUP(
3286 IP2SR1_31_28
3287 IP2SR1_27_24
3288 IP2SR1_23_20
3289 IP2SR1_19_16
3290 IP2SR1_15_12
3291 IP2SR1_11_8
3292 IP2SR1_7_4
3293 IP2SR1_3_0))
3294 },
3295 { PINMUX_CFG_REG_VAR("IP3SR1", 0xE605086C, 32,
3296 GROUP(-8, 4, 4, 4, 4, 4, 4),
3297 GROUP(
3298 /* IP3SR1_31_24 RESERVED */
3299 IP3SR1_23_20
3300 IP3SR1_19_16
3301 IP3SR1_15_12
3302 IP3SR1_11_8
3303 IP3SR1_7_4
3304 IP3SR1_3_0))
3305 },
3306 { PINMUX_CFG_REG("IP0SR2", 0xE6058060, 32, 4, GROUP(
3307 IP0SR2_31_28
3308 IP0SR2_27_24
3309 IP0SR2_23_20
3310 IP0SR2_19_16
3311 IP0SR2_15_12
3312 IP0SR2_11_8
3313 IP0SR2_7_4
3314 IP0SR2_3_0))
3315 },
3316 { PINMUX_CFG_REG("IP1SR2", 0xE6058064, 32, 4, GROUP(
3317 IP1SR2_31_28
3318 IP1SR2_27_24
3319 IP1SR2_23_20
3320 IP1SR2_19_16
3321 IP1SR2_15_12
3322 IP1SR2_11_8
3323 IP1SR2_7_4
3324 IP1SR2_3_0))
3325 },
3326 { PINMUX_CFG_REG_VAR("IP2SR2", 0xE6058068, 32,
3327 GROUP(-16, 4, -4, 4, -4),
3328 GROUP(
3329 /* IP2SR2_31_16 RESERVED */
3330 IP2SR2_15_12
3331 /* IP2SR2_11_8 RESERVED */
3332 IP2SR2_7_4
3333 /* IP2SR2_3_0 RESERVED */))
3334 },
3335 { PINMUX_CFG_REG("IP0SR3", 0xE6058860, 32, 4, GROUP(
3336 IP0SR3_31_28
3337 IP0SR3_27_24
3338 IP0SR3_23_20
3339 IP0SR3_19_16
3340 IP0SR3_15_12
3341 IP0SR3_11_8
3342 IP0SR3_7_4
3343 IP0SR3_3_0))
3344 },
3345 { PINMUX_CFG_REG("IP1SR3", 0xE6058864, 32, 4, GROUP(
3346 IP1SR3_31_28
3347 IP1SR3_27_24
3348 IP1SR3_23_20
3349 IP1SR3_19_16
3350 IP1SR3_15_12
3351 IP1SR3_11_8
3352 IP1SR3_7_4
3353 IP1SR3_3_0))
3354 },
3355 { PINMUX_CFG_REG("IP2SR3", 0xE6058868, 32, 4, GROUP(
3356 IP2SR3_31_28
3357 IP2SR3_27_24
3358 IP2SR3_23_20
3359 IP2SR3_19_16
3360 IP2SR3_15_12
3361 IP2SR3_11_8
3362 IP2SR3_7_4
3363 IP2SR3_3_0))
3364 },
3365 { PINMUX_CFG_REG("IP3SR3", 0xE605886C, 32, 4, GROUP(
3366 IP3SR3_31_28
3367 IP3SR3_27_24
3368 IP3SR3_23_20
3369 IP3SR3_19_16
3370 IP3SR3_15_12
3371 IP3SR3_11_8
3372 IP3SR3_7_4
3373 IP3SR3_3_0))
3374 },
3375 { PINMUX_CFG_REG("IP0SR4", 0xE6060060, 32, 4, GROUP(
3376 IP0SR4_31_28
3377 IP0SR4_27_24
3378 IP0SR4_23_20
3379 IP0SR4_19_16
3380 IP0SR4_15_12
3381 IP0SR4_11_8
3382 IP0SR4_7_4
3383 IP0SR4_3_0))
3384 },
3385 { PINMUX_CFG_REG("IP1SR4", 0xE6060064, 32, 4, GROUP(
3386 IP1SR4_31_28
3387 IP1SR4_27_24
3388 IP1SR4_23_20
3389 IP1SR4_19_16
3390 IP1SR4_15_12
3391 IP1SR4_11_8
3392 IP1SR4_7_4
3393 IP1SR4_3_0))
3394 },
3395 { PINMUX_CFG_REG_VAR("IP2SR4", 0xE6060068, 32,
3396 GROUP(4, -4, 4, -20),
3397 GROUP(
3398 IP2SR4_31_28
3399 /* IP2SR4_27_24 RESERVED */
3400 IP2SR4_23_20
3401 /* IP2SR4_19_0 RESERVED */))
3402 },
3403 { PINMUX_CFG_REG_VAR("IP3SR4", 0xE606006C, 32,
3404 GROUP(-28, 4),
3405 GROUP(
3406 /* IP3SR4_31_4 RESERVED */
3407 IP3SR4_3_0))
3408 },
3409 { PINMUX_CFG_REG("IP0SR5", 0xE6060860, 32, 4, GROUP(
3410 IP0SR5_31_28
3411 IP0SR5_27_24
3412 IP0SR5_23_20
3413 IP0SR5_19_16
3414 IP0SR5_15_12
3415 IP0SR5_11_8
3416 IP0SR5_7_4
3417 IP0SR5_3_0))
3418 },
3419 { PINMUX_CFG_REG("IP1SR5", 0xE6060864, 32, 4, GROUP(
3420 IP1SR5_31_28
3421 IP1SR5_27_24
3422 IP1SR5_23_20
3423 IP1SR5_19_16
3424 IP1SR5_15_12
3425 IP1SR5_11_8
3426 IP1SR5_7_4
3427 IP1SR5_3_0))
3428 },
3429 { PINMUX_CFG_REG_VAR("IP2SR5", 0xE6060868, 32,
3430 GROUP(-12, 4, 4, 4, 4, 4),
3431 GROUP(
3432 /* IP2SR5_31_20 RESERVED */
3433 IP2SR5_19_16
3434 IP2SR5_15_12
3435 IP2SR5_11_8
3436 IP2SR5_7_4
3437 IP2SR5_3_0))
3438 },
3439 { PINMUX_CFG_REG("IP0SR6", 0xE6061060, 32, 4, GROUP(
3440 IP0SR6_31_28
3441 IP0SR6_27_24
3442 IP0SR6_23_20
3443 IP0SR6_19_16
3444 IP0SR6_15_12
3445 IP0SR6_11_8
3446 IP0SR6_7_4
3447 IP0SR6_3_0))
3448 },
3449 { PINMUX_CFG_REG("IP1SR6", 0xE6061064, 32, 4, GROUP(
3450 IP1SR6_31_28
3451 IP1SR6_27_24
3452 IP1SR6_23_20
3453 IP1SR6_19_16
3454 IP1SR6_15_12
3455 IP1SR6_11_8
3456 IP1SR6_7_4
3457 IP1SR6_3_0))
3458 },
3459 { PINMUX_CFG_REG_VAR("IP2SR6", 0xE6061068, 32,
3460 GROUP(-12, 4, 4, 4, 4, 4),
3461 GROUP(
3462 /* IP2SR6_31_20 RESERVED */
3463 IP2SR6_19_16
3464 IP2SR6_15_12
3465 IP2SR6_11_8
3466 IP2SR6_7_4
3467 IP2SR6_3_0))
3468 },
3469 { PINMUX_CFG_REG("IP0SR7", 0xE6061860, 32, 4, GROUP(
3470 IP0SR7_31_28
3471 IP0SR7_27_24
3472 IP0SR7_23_20
3473 IP0SR7_19_16
3474 IP0SR7_15_12
3475 IP0SR7_11_8
3476 IP0SR7_7_4
3477 IP0SR7_3_0))
3478 },
3479 { PINMUX_CFG_REG("IP1SR7", 0xE6061864, 32, 4, GROUP(
3480 IP1SR7_31_28
3481 IP1SR7_27_24
3482 IP1SR7_23_20
3483 IP1SR7_19_16
3484 IP1SR7_15_12
3485 IP1SR7_11_8
3486 IP1SR7_7_4
3487 IP1SR7_3_0))
3488 },
3489 { PINMUX_CFG_REG_VAR("IP2SR7", 0xE6061868, 32,
3490 GROUP(-12, 4, 4, 4, 4, 4),
3491 GROUP(
3492 /* IP2SR7_31_20 RESERVED */
3493 IP2SR7_19_16
3494 IP2SR7_15_12
3495 IP2SR7_11_8
3496 IP2SR7_7_4
3497 IP2SR7_3_0))
3498 },
3499#undef F_
3500#undef FM
3501
3502#define F_(x, y) x,
3503#define FM(x) FN_##x,
3504 { PINMUX_CFG_REG_VAR("MOD_SEL4", 0xE6060100, 32,
3505 GROUP(-24, 1, 1, 1, 1, 1, 1, 1, 1),
3506 GROUP(
3507 /* RESERVED 31-8 */
3508 MOD_SEL4_7
3509 MOD_SEL4_6
3510 MOD_SEL4_5
3511 MOD_SEL4_4
3512 MOD_SEL4_3
3513 MOD_SEL4_2
3514 MOD_SEL4_1
3515 MOD_SEL4_0))
3516 },
3517 { },
3518};
3519
3520static const struct pinmux_drive_reg pinmux_drive_regs[] = {
3521 { PINMUX_DRIVE_REG("DRV0CTRL0", 0xE6050080) {
3522 { RCAR_GP_PIN(0, 7), 28, 3 }, /* MSIOF5_SS2 */
3523 { RCAR_GP_PIN(0, 6), 24, 3 }, /* IRQ0 */
3524 { RCAR_GP_PIN(0, 5), 20, 3 }, /* IRQ1 */
3525 { RCAR_GP_PIN(0, 4), 16, 3 }, /* IRQ2 */
3526 { RCAR_GP_PIN(0, 3), 12, 3 }, /* IRQ3 */
3527 { RCAR_GP_PIN(0, 2), 8, 3 }, /* GP0_02 */
3528 { RCAR_GP_PIN(0, 1), 4, 3 }, /* GP0_01 */
3529 { RCAR_GP_PIN(0, 0), 0, 3 }, /* GP0_00 */
3530 } },
3531 { PINMUX_DRIVE_REG("DRV1CTRL0", 0xE6050084) {
3532 { RCAR_GP_PIN(0, 15), 28, 3 }, /* MSIOF2_SYNC */
3533 { RCAR_GP_PIN(0, 14), 24, 3 }, /* MSIOF2_SS1 */
3534 { RCAR_GP_PIN(0, 13), 20, 3 }, /* MSIOF2_SS2 */
3535 { RCAR_GP_PIN(0, 12), 16, 3 }, /* MSIOF5_RXD */
3536 { RCAR_GP_PIN(0, 11), 12, 3 }, /* MSIOF5_SCK */
3537 { RCAR_GP_PIN(0, 10), 8, 3 }, /* MSIOF5_TXD */
3538 { RCAR_GP_PIN(0, 9), 4, 3 }, /* MSIOF5_SYNC */
3539 { RCAR_GP_PIN(0, 8), 0, 3 }, /* MSIOF5_SS1 */
3540 } },
3541 { PINMUX_DRIVE_REG("DRV2CTRL0", 0xE6050088) {
3542 { RCAR_GP_PIN(0, 18), 8, 3 }, /* MSIOF2_RXD */
3543 { RCAR_GP_PIN(0, 17), 4, 3 }, /* MSIOF2_SCK */
3544 { RCAR_GP_PIN(0, 16), 0, 3 }, /* MSIOF2_TXD */
3545 } },
3546 { PINMUX_DRIVE_REG("DRV0CTRL1", 0xE6050880) {
3547 { RCAR_GP_PIN(1, 7), 28, 3 }, /* MSIOF0_SS1 */
3548 { RCAR_GP_PIN(1, 6), 24, 3 }, /* MSIOF0_SS2 */
3549 { RCAR_GP_PIN(1, 5), 20, 3 }, /* MSIOF1_RXD */
3550 { RCAR_GP_PIN(1, 4), 16, 3 }, /* MSIOF1_TXD */
3551 { RCAR_GP_PIN(1, 3), 12, 3 }, /* MSIOF1_SCK */
3552 { RCAR_GP_PIN(1, 2), 8, 3 }, /* MSIOF1_SYNC */
3553 { RCAR_GP_PIN(1, 1), 4, 3 }, /* MSIOF1_SS1 */
3554 { RCAR_GP_PIN(1, 0), 0, 3 }, /* MSIOF1_SS2 */
3555 } },
3556 { PINMUX_DRIVE_REG("DRV1CTRL1", 0xE6050884) {
3557 { RCAR_GP_PIN(1, 15), 28, 3 }, /* HSCK0 */
3558 { RCAR_GP_PIN(1, 14), 24, 3 }, /* HRTS0_N */
3559 { RCAR_GP_PIN(1, 13), 20, 3 }, /* HCTS0_N */
3560 { RCAR_GP_PIN(1, 12), 16, 3 }, /* HTX0 */
3561 { RCAR_GP_PIN(1, 11), 12, 3 }, /* MSIOF0_RXD */
3562 { RCAR_GP_PIN(1, 10), 8, 3 }, /* MSIOF0_SCK */
3563 { RCAR_GP_PIN(1, 9), 4, 3 }, /* MSIOF0_TXD */
3564 { RCAR_GP_PIN(1, 8), 0, 3 }, /* MSIOF0_SYNC */
3565 } },
3566 { PINMUX_DRIVE_REG("DRV2CTRL1", 0xE6050888) {
3567 { RCAR_GP_PIN(1, 23), 28, 3 }, /* GP1_23 */
3568 { RCAR_GP_PIN(1, 22), 24, 3 }, /* AUDIO_CLKIN */
3569 { RCAR_GP_PIN(1, 21), 20, 3 }, /* AUDIO_CLKOUT */
3570 { RCAR_GP_PIN(1, 20), 16, 3 }, /* SSI_SD */
3571 { RCAR_GP_PIN(1, 19), 12, 3 }, /* SSI_WS */
3572 { RCAR_GP_PIN(1, 18), 8, 3 }, /* SSI_SCK */
3573 { RCAR_GP_PIN(1, 17), 4, 3 }, /* SCIF_CLK */
3574 { RCAR_GP_PIN(1, 16), 0, 3 }, /* HRX0 */
3575 } },
3576 { PINMUX_DRIVE_REG("DRV3CTRL1", 0xE605088C) {
3577 { RCAR_GP_PIN(1, 29), 20, 2 }, /* ERROROUTC_N */
3578 { RCAR_GP_PIN(1, 28), 16, 3 }, /* HTX3 */
3579 { RCAR_GP_PIN(1, 27), 12, 3 }, /* HCTS3_N */
3580 { RCAR_GP_PIN(1, 26), 8, 3 }, /* HRTS3_N */
3581 { RCAR_GP_PIN(1, 25), 4, 3 }, /* HSCK3 */
3582 { RCAR_GP_PIN(1, 24), 0, 3 }, /* HRX3 */
3583 } },
3584 { PINMUX_DRIVE_REG("DRV0CTRL2", 0xE6058080) {
3585 { RCAR_GP_PIN(2, 7), 28, 3 }, /* TPU0TO1 */
3586 { RCAR_GP_PIN(2, 6), 24, 3 }, /* FXR_TXDB */
3587 { RCAR_GP_PIN(2, 5), 20, 3 }, /* FXR_TXENB_N */
3588 { RCAR_GP_PIN(2, 4), 16, 3 }, /* RXDB_EXTFXR */
3589 { RCAR_GP_PIN(2, 3), 12, 3 }, /* CLK_EXTFXR */
3590 { RCAR_GP_PIN(2, 2), 8, 3 }, /* RXDA_EXTFXR */
3591 { RCAR_GP_PIN(2, 1), 4, 3 }, /* FXR_TXENA_N */
3592 { RCAR_GP_PIN(2, 0), 0, 3 }, /* FXR_TXDA */
3593 } },
3594 { PINMUX_DRIVE_REG("DRV1CTRL2", 0xE6058084) {
3595 { RCAR_GP_PIN(2, 15), 28, 3 }, /* CANFD3_RX */
3596 { RCAR_GP_PIN(2, 14), 24, 3 }, /* CANFD3_TX */
3597 { RCAR_GP_PIN(2, 13), 20, 3 }, /* CANFD2_RX */
3598 { RCAR_GP_PIN(2, 12), 16, 3 }, /* CANFD2_TX */
3599 { RCAR_GP_PIN(2, 11), 12, 3 }, /* CANFD0_RX */
3600 { RCAR_GP_PIN(2, 10), 8, 3 }, /* CANFD0_TX */
3601 { RCAR_GP_PIN(2, 9), 4, 3 }, /* CAN_CLK */
3602 { RCAR_GP_PIN(2, 8), 0, 3 }, /* TPU0TO0 */
3603 } },
3604 { PINMUX_DRIVE_REG("DRV2CTRL2", 0xE6058088) {
3605 { RCAR_GP_PIN(2, 19), 12, 3 }, /* CANFD1_RX */
3606 { RCAR_GP_PIN(2, 17), 4, 3 }, /* CANFD1_TX */
3607 } },
3608 { PINMUX_DRIVE_REG("DRV0CTRL3", 0xE6058880) {
3609 { RCAR_GP_PIN(3, 7), 28, 3 }, /* MMC_D4 */
3610 { RCAR_GP_PIN(3, 6), 24, 3 }, /* MMC_D5 */
3611 { RCAR_GP_PIN(3, 5), 20, 3 }, /* MMC_SD_D3 */
3612 { RCAR_GP_PIN(3, 4), 16, 3 }, /* MMC_DS */
3613 { RCAR_GP_PIN(3, 3), 12, 3 }, /* MMC_SD_CLK */
3614 { RCAR_GP_PIN(3, 2), 8, 3 }, /* MMC_SD_D2 */
3615 { RCAR_GP_PIN(3, 1), 4, 3 }, /* MMC_SD_D0 */
3616 { RCAR_GP_PIN(3, 0), 0, 3 }, /* MMC_SD_D1 */
3617 } },
3618 { PINMUX_DRIVE_REG("DRV1CTRL3", 0xE6058884) {
3619 { RCAR_GP_PIN(3, 15), 28, 2 }, /* QSPI0_SSL */
3620 { RCAR_GP_PIN(3, 14), 24, 2 }, /* PWM2 */
3621 { RCAR_GP_PIN(3, 13), 20, 2 }, /* PWM1 */
3622 { RCAR_GP_PIN(3, 12), 16, 3 }, /* SD_WP */
3623 { RCAR_GP_PIN(3, 11), 12, 3 }, /* SD_CD */
3624 { RCAR_GP_PIN(3, 10), 8, 3 }, /* MMC_SD_CMD */
3625 { RCAR_GP_PIN(3, 9), 4, 3 }, /* MMC_D6*/
3626 { RCAR_GP_PIN(3, 8), 0, 3 }, /* MMC_D7 */
3627 } },
3628 { PINMUX_DRIVE_REG("DRV2CTRL3", 0xE6058888) {
3629 { RCAR_GP_PIN(3, 23), 28, 2 }, /* QSPI1_MISO_IO1 */
3630 { RCAR_GP_PIN(3, 22), 24, 2 }, /* QSPI1_SPCLK */
3631 { RCAR_GP_PIN(3, 21), 20, 2 }, /* QSPI1_MOSI_IO0 */
3632 { RCAR_GP_PIN(3, 20), 16, 2 }, /* QSPI0_SPCLK */
3633 { RCAR_GP_PIN(3, 19), 12, 2 }, /* QSPI0_MOSI_IO0 */
3634 { RCAR_GP_PIN(3, 18), 8, 2 }, /* QSPI0_MISO_IO1 */
3635 { RCAR_GP_PIN(3, 17), 4, 2 }, /* QSPI0_IO2 */
3636 { RCAR_GP_PIN(3, 16), 0, 2 }, /* QSPI0_IO3 */
3637 } },
3638 { PINMUX_DRIVE_REG("DRV3CTRL3", 0xE605888C) {
3639 { RCAR_GP_PIN(3, 31), 28, 2 }, /* TCLK4 */
3640 { RCAR_GP_PIN(3, 30), 24, 2 }, /* TCLK3 */
3641 { RCAR_GP_PIN(3, 29), 20, 2 }, /* RPC_INT_N */
3642 { RCAR_GP_PIN(3, 28), 16, 2 }, /* RPC_WP_N */
3643 { RCAR_GP_PIN(3, 27), 12, 2 }, /* RPC_RESET_N */
3644 { RCAR_GP_PIN(3, 26), 8, 2 }, /* QSPI1_IO3 */
3645 { RCAR_GP_PIN(3, 25), 4, 2 }, /* QSPI1_SSL */
3646 { RCAR_GP_PIN(3, 24), 0, 2 }, /* QSPI1_IO2 */
3647 } },
3648 { PINMUX_DRIVE_REG("DRV0CTRL4", 0xE6060080) {
3649 { RCAR_GP_PIN(4, 7), 28, 3 }, /* SDA3 */
3650 { RCAR_GP_PIN(4, 6), 24, 3 }, /* SCL3 */
3651 { RCAR_GP_PIN(4, 5), 20, 3 }, /* SDA2 */
3652 { RCAR_GP_PIN(4, 4), 16, 3 }, /* SCL2 */
3653 { RCAR_GP_PIN(4, 3), 12, 3 }, /* SDA1 */
3654 { RCAR_GP_PIN(4, 2), 8, 3 }, /* SCL1 */
3655 { RCAR_GP_PIN(4, 1), 4, 3 }, /* SDA0 */
3656 { RCAR_GP_PIN(4, 0), 0, 3 }, /* SCL0 */
3657 } },
3658 { PINMUX_DRIVE_REG("DRV1CTRL4", 0xE6060084) {
3659 { RCAR_GP_PIN(4, 15), 28, 3 }, /* PWM4 */
3660 { RCAR_GP_PIN(4, 14), 24, 3 }, /* PWM3 */
3661 { RCAR_GP_PIN(4, 13), 20, 3 }, /* HSCK2 */
3662 { RCAR_GP_PIN(4, 12), 16, 3 }, /* HCTS2_N */
3663 { RCAR_GP_PIN(4, 11), 12, 3 }, /* SCIF_CLK2 */
3664 { RCAR_GP_PIN(4, 10), 8, 3 }, /* HRTS2_N */
3665 { RCAR_GP_PIN(4, 9), 4, 3 }, /* HTX2 */
3666 { RCAR_GP_PIN(4, 8), 0, 3 }, /* HRX2 */
3667 } },
3668 { PINMUX_DRIVE_REG("DRV2CTRL4", 0xE6060088) {
3669 { RCAR_GP_PIN(4, 23), 28, 3 }, /* AVS0 */
3670 { RCAR_GP_PIN(4, 21), 20, 3 }, /* PCIE0_CLKREQ_N */
3671 } },
3672 { PINMUX_DRIVE_REG("DRV3CTRL4", 0xE606008C) {
3673 { RCAR_GP_PIN(4, 24), 0, 3 }, /* AVS1 */
3674 } },
3675 { PINMUX_DRIVE_REG("DRV0CTRL5", 0xE6060880) {
3676 { RCAR_GP_PIN(5, 7), 28, 3 }, /* AVB2_TXCREFCLK */
3677 { RCAR_GP_PIN(5, 6), 24, 3 }, /* AVB2_MDC */
3678 { RCAR_GP_PIN(5, 5), 20, 3 }, /* AVB2_MAGIC */
3679 { RCAR_GP_PIN(5, 4), 16, 3 }, /* AVB2_PHY_INT */
3680 { RCAR_GP_PIN(5, 3), 12, 3 }, /* AVB2_LINK */
3681 { RCAR_GP_PIN(5, 2), 8, 3 }, /* AVB2_AVTP_MATCH */
3682 { RCAR_GP_PIN(5, 1), 4, 3 }, /* AVB2_AVTP_CAPTURE */
3683 { RCAR_GP_PIN(5, 0), 0, 3 }, /* AVB2_AVTP_PPS */
3684 } },
3685 { PINMUX_DRIVE_REG("DRV1CTRL5", 0xE6060884) {
3686 { RCAR_GP_PIN(5, 15), 28, 3 }, /* AVB2_TD0 */
3687 { RCAR_GP_PIN(5, 14), 24, 3 }, /* AVB2_RD1 */
3688 { RCAR_GP_PIN(5, 13), 20, 3 }, /* AVB2_RD2 */
3689 { RCAR_GP_PIN(5, 12), 16, 3 }, /* AVB2_TD1 */
3690 { RCAR_GP_PIN(5, 11), 12, 3 }, /* AVB2_TD2 */
3691 { RCAR_GP_PIN(5, 10), 8, 3 }, /* AVB2_MDIO */
3692 { RCAR_GP_PIN(5, 9), 4, 3 }, /* AVB2_RD3 */
3693 { RCAR_GP_PIN(5, 8), 0, 3 }, /* AVB2_TD3 */
3694 } },
3695 { PINMUX_DRIVE_REG("DRV2CTRL5", 0xE6060888) {
3696 { RCAR_GP_PIN(5, 20), 16, 3 }, /* AVB2_RX_CTL */
3697 { RCAR_GP_PIN(5, 19), 12, 3 }, /* AVB2_TX_CTL */
3698 { RCAR_GP_PIN(5, 18), 8, 3 }, /* AVB2_RXC */
3699 { RCAR_GP_PIN(5, 17), 4, 3 }, /* AVB2_RD0 */
3700 { RCAR_GP_PIN(5, 16), 0, 3 }, /* AVB2_TXC */
3701 } },
3702 { PINMUX_DRIVE_REG("DRV0CTRL6", 0xE6061080) {
3703 { RCAR_GP_PIN(6, 7), 28, 3 }, /* AVB1_TX_CTL */
3704 { RCAR_GP_PIN(6, 6), 24, 3 }, /* AVB1_TXC */
3705 { RCAR_GP_PIN(6, 5), 20, 3 }, /* AVB1_AVTP_MATCH */
3706 { RCAR_GP_PIN(6, 4), 16, 3 }, /* AVB1_LINK */
3707 { RCAR_GP_PIN(6, 3), 12, 3 }, /* AVB1_PHY_INT */
3708 { RCAR_GP_PIN(6, 2), 8, 3 }, /* AVB1_MDC */
3709 { RCAR_GP_PIN(6, 1), 4, 3 }, /* AVB1_MAGIC */
3710 { RCAR_GP_PIN(6, 0), 0, 3 }, /* AVB1_MDIO */
3711 } },
3712 { PINMUX_DRIVE_REG("DRV1CTRL6", 0xE6061084) {
3713 { RCAR_GP_PIN(6, 15), 28, 3 }, /* AVB1_RD0 */
3714 { RCAR_GP_PIN(6, 14), 24, 3 }, /* AVB1_RD1 */
3715 { RCAR_GP_PIN(6, 13), 20, 3 }, /* AVB1_TD0 */
3716 { RCAR_GP_PIN(6, 12), 16, 3 }, /* AVB1_TD1 */
3717 { RCAR_GP_PIN(6, 11), 12, 3 }, /* AVB1_AVTP_CAPTURE */
3718 { RCAR_GP_PIN(6, 10), 8, 3 }, /* AVB1_AVTP_PPS */
3719 { RCAR_GP_PIN(6, 9), 4, 3 }, /* AVB1_RX_CTL */
3720 { RCAR_GP_PIN(6, 8), 0, 3 }, /* AVB1_RXC */
3721 } },
3722 { PINMUX_DRIVE_REG("DRV2CTRL6", 0xE6061088) {
3723 { RCAR_GP_PIN(6, 20), 16, 3 }, /* AVB1_TXCREFCLK */
3724 { RCAR_GP_PIN(6, 19), 12, 3 }, /* AVB1_RD3 */
3725 { RCAR_GP_PIN(6, 18), 8, 3 }, /* AVB1_TD3 */
3726 { RCAR_GP_PIN(6, 17), 4, 3 }, /* AVB1_RD2 */
3727 { RCAR_GP_PIN(6, 16), 0, 3 }, /* AVB1_TD2 */
3728 } },
3729 { PINMUX_DRIVE_REG("DRV0CTRL7", 0xE6061880) {
3730 { RCAR_GP_PIN(7, 7), 28, 3 }, /* AVB0_TD1 */
3731 { RCAR_GP_PIN(7, 6), 24, 3 }, /* AVB0_TD2 */
3732 { RCAR_GP_PIN(7, 5), 20, 3 }, /* AVB0_PHY_INT */
3733 { RCAR_GP_PIN(7, 4), 16, 3 }, /* AVB0_LINK */
3734 { RCAR_GP_PIN(7, 3), 12, 3 }, /* AVB0_TD3 */
3735 { RCAR_GP_PIN(7, 2), 8, 3 }, /* AVB0_AVTP_MATCH */
3736 { RCAR_GP_PIN(7, 1), 4, 3 }, /* AVB0_AVTP_CAPTURE */
3737 { RCAR_GP_PIN(7, 0), 0, 3 }, /* AVB0_AVTP_PPS */
3738 } },
3739 { PINMUX_DRIVE_REG("DRV1CTRL7", 0xE6061884) {
3740 { RCAR_GP_PIN(7, 15), 28, 3 }, /* AVB0_TXC */
3741 { RCAR_GP_PIN(7, 14), 24, 3 }, /* AVB0_MDIO */
3742 { RCAR_GP_PIN(7, 13), 20, 3 }, /* AVB0_MDC */
3743 { RCAR_GP_PIN(7, 12), 16, 3 }, /* AVB0_RD2 */
3744 { RCAR_GP_PIN(7, 11), 12, 3 }, /* AVB0_TD0 */
3745 { RCAR_GP_PIN(7, 10), 8, 3 }, /* AVB0_MAGIC */
3746 { RCAR_GP_PIN(7, 9), 4, 3 }, /* AVB0_TXCREFCLK */
3747 { RCAR_GP_PIN(7, 8), 0, 3 }, /* AVB0_RD3 */
3748 } },
3749 { PINMUX_DRIVE_REG("DRV2CTRL7", 0xE6061888) {
3750 { RCAR_GP_PIN(7, 20), 16, 3 }, /* AVB0_RX_CTL */
3751 { RCAR_GP_PIN(7, 19), 12, 3 }, /* AVB0_RXC */
3752 { RCAR_GP_PIN(7, 18), 8, 3 }, /* AVB0_RD0 */
3753 { RCAR_GP_PIN(7, 17), 4, 3 }, /* AVB0_RD1 */
3754 { RCAR_GP_PIN(7, 16), 0, 3 }, /* AVB0_TX_CTL */
3755 } },
3756 { },
3757};
3758
3759enum ioctrl_regs {
3760 POC0,
3761 POC1,
3762 POC3,
3763 POC4,
3764 POC5,
3765 POC6,
3766 POC7,
3767};
3768
3769static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] = {
3770 [POC0] = { 0xE60500A0, },
3771 [POC1] = { 0xE60508A0, },
3772 [POC3] = { 0xE60588A0, },
3773 [POC4] = { 0xE60600A0, },
3774 [POC5] = { 0xE60608A0, },
3775 [POC6] = { 0xE60610A0, },
3776 [POC7] = { 0xE60618A0, },
3777 { /* sentinel */ },
3778};
3779
3780static int r8a779h0_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
3781{
3782 int bit = pin & 0x1f;
3783
3784 switch (pin) {
3785 case RCAR_GP_PIN(0, 0) ... RCAR_GP_PIN(0, 18):
3786 *pocctrl = pinmux_ioctrl_regs[POC0].reg;
3787 return bit;
3788
3789 case RCAR_GP_PIN(1, 0) ... RCAR_GP_PIN(1, 28):
3790 *pocctrl = pinmux_ioctrl_regs[POC1].reg;
3791 return bit;
3792
3793 case RCAR_GP_PIN(3, 0) ... RCAR_GP_PIN(3, 12):
3794 *pocctrl = pinmux_ioctrl_regs[POC3].reg;
3795 return bit;
3796
3797 case RCAR_GP_PIN(4, 0) ... RCAR_GP_PIN(4, 13):
3798 *pocctrl = pinmux_ioctrl_regs[POC4].reg;
3799 return bit;
3800
3801 case PIN_VDDQ_AVB2:
3802 *pocctrl = pinmux_ioctrl_regs[POC5].reg;
3803 return 0;
3804
3805 case PIN_VDDQ_AVB1:
3806 *pocctrl = pinmux_ioctrl_regs[POC6].reg;
3807 return 0;
3808
3809 case PIN_VDDQ_AVB0:
3810 *pocctrl = pinmux_ioctrl_regs[POC7].reg;
3811 return 0;
3812
3813 default:
3814 return -EINVAL;
3815 }
3816}
3817
3818static const struct pinmux_bias_reg pinmux_bias_regs[] = {
3819 { PINMUX_BIAS_REG("PUEN0", 0xE60500C0, "PUD0", 0xE60500E0) {
3820 [ 0] = RCAR_GP_PIN(0, 0), /* GP0_00 */
3821 [ 1] = RCAR_GP_PIN(0, 1), /* GP0_01 */
3822 [ 2] = RCAR_GP_PIN(0, 2), /* GP0_02 */
3823 [ 3] = RCAR_GP_PIN(0, 3), /* IRQ3 */
3824 [ 4] = RCAR_GP_PIN(0, 4), /* IRQ2 */
3825 [ 5] = RCAR_GP_PIN(0, 5), /* IRQ1 */
3826 [ 6] = RCAR_GP_PIN(0, 6), /* IRQ0 */
3827 [ 7] = RCAR_GP_PIN(0, 7), /* MSIOF5_SS2 */
3828 [ 8] = RCAR_GP_PIN(0, 8), /* MSIOF5_SS1 */
3829 [ 9] = RCAR_GP_PIN(0, 9), /* MSIOF5_SYNC */
3830 [10] = RCAR_GP_PIN(0, 10), /* MSIOF5_TXD */
3831 [11] = RCAR_GP_PIN(0, 11), /* MSIOF5_SCK */
3832 [12] = RCAR_GP_PIN(0, 12), /* MSIOF5_RXD */
3833 [13] = RCAR_GP_PIN(0, 13), /* MSIOF2_SS2 */
3834 [14] = RCAR_GP_PIN(0, 14), /* MSIOF2_SS1 */
3835 [15] = RCAR_GP_PIN(0, 15), /* MSIOF2_SYNC */
3836 [16] = RCAR_GP_PIN(0, 16), /* MSIOF2_TXD */
3837 [17] = RCAR_GP_PIN(0, 17), /* MSIOF2_SCK */
3838 [18] = RCAR_GP_PIN(0, 18), /* MSIOF2_RXD */
3839 [19] = SH_PFC_PIN_NONE,
3840 [20] = SH_PFC_PIN_NONE,
3841 [21] = SH_PFC_PIN_NONE,
3842 [22] = SH_PFC_PIN_NONE,
3843 [23] = SH_PFC_PIN_NONE,
3844 [24] = SH_PFC_PIN_NONE,
3845 [25] = SH_PFC_PIN_NONE,
3846 [26] = SH_PFC_PIN_NONE,
3847 [27] = SH_PFC_PIN_NONE,
3848 [28] = SH_PFC_PIN_NONE,
3849 [29] = SH_PFC_PIN_NONE,
3850 [30] = SH_PFC_PIN_NONE,
3851 [31] = SH_PFC_PIN_NONE,
3852 } },
3853 { PINMUX_BIAS_REG("PUEN1", 0xE60508C0, "PUD1", 0xE60508E0) {
3854 [ 0] = RCAR_GP_PIN(1, 0), /* MSIOF1_SS2 */
3855 [ 1] = RCAR_GP_PIN(1, 1), /* MSIOF1_SS1 */
3856 [ 2] = RCAR_GP_PIN(1, 2), /* MSIOF1_SYNC */
3857 [ 3] = RCAR_GP_PIN(1, 3), /* MSIOF1_SCK */
3858 [ 4] = RCAR_GP_PIN(1, 4), /* MSIOF1_TXD */
3859 [ 5] = RCAR_GP_PIN(1, 5), /* MSIOF1_RXD */
3860 [ 6] = RCAR_GP_PIN(1, 6), /* MSIOF0_SS2 */
3861 [ 7] = RCAR_GP_PIN(1, 7), /* MSIOF0_SS1 */
3862 [ 8] = RCAR_GP_PIN(1, 8), /* MSIOF0_SYNC */
3863 [ 9] = RCAR_GP_PIN(1, 9), /* MSIOF0_TXD */
3864 [10] = RCAR_GP_PIN(1, 10), /* MSIOF0_SCK */
3865 [11] = RCAR_GP_PIN(1, 11), /* MSIOF0_RXD */
3866 [12] = RCAR_GP_PIN(1, 12), /* HTX0 */
3867 [13] = RCAR_GP_PIN(1, 13), /* HCTS0_N */
3868 [14] = RCAR_GP_PIN(1, 14), /* HRTS0_N */
3869 [15] = RCAR_GP_PIN(1, 15), /* HSCK0 */
3870 [16] = RCAR_GP_PIN(1, 16), /* HRX0 */
3871 [17] = RCAR_GP_PIN(1, 17), /* SCIF_CLK */
3872 [18] = RCAR_GP_PIN(1, 18), /* SSI_SCK */
3873 [19] = RCAR_GP_PIN(1, 19), /* SSI_WS */
3874 [20] = RCAR_GP_PIN(1, 20), /* SSI_SD */
3875 [21] = RCAR_GP_PIN(1, 21), /* AUDIO_CLKOUT */
3876 [22] = RCAR_GP_PIN(1, 22), /* AUDIO_CLKIN */
3877 [23] = RCAR_GP_PIN(1, 23), /* GP1_23 */
3878 [24] = RCAR_GP_PIN(1, 24), /* HRX3 */
3879 [25] = RCAR_GP_PIN(1, 25), /* HSCK3 */
3880 [26] = RCAR_GP_PIN(1, 26), /* HRTS3_N */
3881 [27] = RCAR_GP_PIN(1, 27), /* HCTS3_N */
3882 [28] = RCAR_GP_PIN(1, 28), /* HTX3 */
3883 [29] = RCAR_GP_PIN(1, 29), /* ERROROUTC_N */
3884 [30] = SH_PFC_PIN_NONE,
3885 [31] = SH_PFC_PIN_NONE,
3886 } },
3887 { PINMUX_BIAS_REG("PUEN2", 0xE60580C0, "PUD2", 0xE60580E0) {
3888 [ 0] = RCAR_GP_PIN(2, 0), /* FXR_TXDA */
3889 [ 1] = RCAR_GP_PIN(2, 1), /* FXR_TXENA_N */
3890 [ 2] = RCAR_GP_PIN(2, 2), /* RXDA_EXTFXR */
3891 [ 3] = RCAR_GP_PIN(2, 3), /* CLK_EXTFXR */
3892 [ 4] = RCAR_GP_PIN(2, 4), /* RXDB_EXTFXR */
3893 [ 5] = RCAR_GP_PIN(2, 5), /* FXR_TXENB_N */
3894 [ 6] = RCAR_GP_PIN(2, 6), /* FXR_TXDB */
3895 [ 7] = RCAR_GP_PIN(2, 7), /* TPU0TO1 */
3896 [ 8] = RCAR_GP_PIN(2, 8), /* TPU0TO0 */
3897 [ 9] = RCAR_GP_PIN(2, 9), /* CAN_CLK */
3898 [10] = RCAR_GP_PIN(2, 10), /* CANFD0_TX */
3899 [11] = RCAR_GP_PIN(2, 11), /* CANFD0_RX */
3900 [12] = RCAR_GP_PIN(2, 12), /* CANFD2_TX */
3901 [13] = RCAR_GP_PIN(2, 13), /* CANFD2_RX */
3902 [14] = RCAR_GP_PIN(2, 14), /* CANFD3_TX */
3903 [15] = RCAR_GP_PIN(2, 15), /* CANFD3_RX */
3904 [16] = SH_PFC_PIN_NONE,
3905 [17] = RCAR_GP_PIN(2, 17), /* CANFD1_TX */
3906 [18] = SH_PFC_PIN_NONE,
3907 [19] = RCAR_GP_PIN(2, 19), /* CANFD1_RX */
3908 [20] = SH_PFC_PIN_NONE,
3909 [21] = SH_PFC_PIN_NONE,
3910 [22] = SH_PFC_PIN_NONE,
3911 [23] = SH_PFC_PIN_NONE,
3912 [24] = SH_PFC_PIN_NONE,
3913 [25] = SH_PFC_PIN_NONE,
3914 [26] = SH_PFC_PIN_NONE,
3915 [27] = SH_PFC_PIN_NONE,
3916 [28] = SH_PFC_PIN_NONE,
3917 [29] = SH_PFC_PIN_NONE,
3918 [30] = SH_PFC_PIN_NONE,
3919 [31] = SH_PFC_PIN_NONE,
3920 } },
3921 { PINMUX_BIAS_REG("PUEN3", 0xE60588C0, "PUD3", 0xE60588E0) {
3922 [ 0] = RCAR_GP_PIN(3, 0), /* MMC_SD_D1 */
3923 [ 1] = RCAR_GP_PIN(3, 1), /* MMC_SD_D0 */
3924 [ 2] = RCAR_GP_PIN(3, 2), /* MMC_SD_D2 */
3925 [ 3] = RCAR_GP_PIN(3, 3), /* MMC_SD_CLK */
3926 [ 4] = RCAR_GP_PIN(3, 4), /* MMC_DS */
3927 [ 5] = RCAR_GP_PIN(3, 5), /* MMC_SD_D3 */
3928 [ 6] = RCAR_GP_PIN(3, 6), /* MMC_D5 */
3929 [ 7] = RCAR_GP_PIN(3, 7), /* MMC_D4 */
3930 [ 8] = RCAR_GP_PIN(3, 8), /* MMC_D7 */
3931 [ 9] = RCAR_GP_PIN(3, 9), /* MMC_D6 */
3932 [10] = RCAR_GP_PIN(3, 10), /* MMC_SD_CMD */
3933 [11] = RCAR_GP_PIN(3, 11), /* SD_CD */
3934 [12] = RCAR_GP_PIN(3, 12), /* SD_WP */
3935 [13] = RCAR_GP_PIN(3, 13), /* PWM1 */
3936 [14] = RCAR_GP_PIN(3, 14), /* PWM2 */
3937 [15] = RCAR_GP_PIN(3, 15), /* QSPI0_SSL */
3938 [16] = RCAR_GP_PIN(3, 16), /* QSPI0_IO3 */
3939 [17] = RCAR_GP_PIN(3, 17), /* QSPI0_IO2 */
3940 [18] = RCAR_GP_PIN(3, 18), /* QSPI0_MISO_IO1 */
3941 [19] = RCAR_GP_PIN(3, 19), /* QSPI0_MOSI_IO0 */
3942 [20] = RCAR_GP_PIN(3, 20), /* QSPI0_SPCLK */
3943 [21] = RCAR_GP_PIN(3, 21), /* QSPI1_MOSI_IO0 */
3944 [22] = RCAR_GP_PIN(3, 22), /* QSPI1_SPCLK */
3945 [23] = RCAR_GP_PIN(3, 23), /* QSPI1_MISO_IO1 */
3946 [24] = RCAR_GP_PIN(3, 24), /* QSPI1_IO2 */
3947 [25] = RCAR_GP_PIN(3, 25), /* QSPI1_SSL */
3948 [26] = RCAR_GP_PIN(3, 26), /* QSPI1_IO3 */
3949 [27] = RCAR_GP_PIN(3, 27), /* RPC_RESET_N */
3950 [28] = RCAR_GP_PIN(3, 28), /* RPC_WP_N */
3951 [29] = RCAR_GP_PIN(3, 29), /* RPC_INT_N */
3952 [30] = RCAR_GP_PIN(3, 30), /* TCLK3 */
3953 [31] = RCAR_GP_PIN(3, 31), /* TCLK4 */
3954 } },
3955 { PINMUX_BIAS_REG("PUEN4", 0xE60600C0, "PUD4", 0xE60600E0) {
3956 [ 0] = RCAR_GP_PIN(4, 0), /* SCL0 */
3957 [ 1] = RCAR_GP_PIN(4, 1), /* SDA0 */
3958 [ 2] = RCAR_GP_PIN(4, 2), /* SCL1 */
3959 [ 3] = RCAR_GP_PIN(4, 3), /* SDA1 */
3960 [ 4] = RCAR_GP_PIN(4, 4), /* SCL2 */
3961 [ 5] = RCAR_GP_PIN(4, 5), /* SDA2 */
3962 [ 6] = RCAR_GP_PIN(4, 6), /* SCL3 */
3963 [ 7] = RCAR_GP_PIN(4, 7), /* SDA3 */
3964 [ 8] = RCAR_GP_PIN(4, 8), /* HRX2 */
3965 [ 9] = RCAR_GP_PIN(4, 9), /* HTX2 */
3966 [10] = RCAR_GP_PIN(4, 10), /* HRTS2_N */
3967 [11] = RCAR_GP_PIN(4, 11), /* SCIF_CLK2 */
3968 [12] = RCAR_GP_PIN(4, 12), /* HCTS2_N */
3969 [13] = RCAR_GP_PIN(4, 13), /* HSCK2 */
3970 [14] = RCAR_GP_PIN(4, 14), /* PWM3 */
3971 [15] = RCAR_GP_PIN(4, 15), /* PWM4 */
3972 [16] = SH_PFC_PIN_NONE,
3973 [17] = SH_PFC_PIN_NONE,
3974 [18] = SH_PFC_PIN_NONE,
3975 [19] = SH_PFC_PIN_NONE,
3976 [20] = SH_PFC_PIN_NONE,
3977 [21] = RCAR_GP_PIN(4, 21), /* PCIE0_CLKREQ_N */
3978 [22] = SH_PFC_PIN_NONE,
3979 [23] = RCAR_GP_PIN(4, 23), /* AVS0 */
3980 [24] = RCAR_GP_PIN(4, 24), /* AVS1 */
3981 [25] = SH_PFC_PIN_NONE,
3982 [26] = SH_PFC_PIN_NONE,
3983 [27] = SH_PFC_PIN_NONE,
3984 [28] = SH_PFC_PIN_NONE,
3985 [29] = SH_PFC_PIN_NONE,
3986 [30] = SH_PFC_PIN_NONE,
3987 [31] = SH_PFC_PIN_NONE,
3988 } },
3989 { PINMUX_BIAS_REG("PUEN5", 0xE60608C0, "PUD5", 0xE60608E0) {
3990 [ 0] = RCAR_GP_PIN(5, 0), /* AVB2_AVTP_PPS */
3991 [ 1] = RCAR_GP_PIN(5, 1), /* AVB0_AVTP_CAPTURE */
3992 [ 2] = RCAR_GP_PIN(5, 2), /* AVB2_AVTP_MATCH */
3993 [ 3] = RCAR_GP_PIN(5, 3), /* AVB2_LINK */
3994 [ 4] = RCAR_GP_PIN(5, 4), /* AVB2_PHY_INT */
3995 [ 5] = RCAR_GP_PIN(5, 5), /* AVB2_MAGIC */
3996 [ 6] = RCAR_GP_PIN(5, 6), /* AVB2_MDC */
3997 [ 7] = RCAR_GP_PIN(5, 7), /* AVB2_TXCREFCLK */
3998 [ 8] = RCAR_GP_PIN(5, 8), /* AVB2_TD3 */
3999 [ 9] = RCAR_GP_PIN(5, 9), /* AVB2_RD3 */
4000 [10] = RCAR_GP_PIN(5, 10), /* AVB2_MDIO */
4001 [11] = RCAR_GP_PIN(5, 11), /* AVB2_TD2 */
4002 [12] = RCAR_GP_PIN(5, 12), /* AVB2_TD1 */
4003 [13] = RCAR_GP_PIN(5, 13), /* AVB2_RD2 */
4004 [14] = RCAR_GP_PIN(5, 14), /* AVB2_RD1 */
4005 [15] = RCAR_GP_PIN(5, 15), /* AVB2_TD0 */
4006 [16] = RCAR_GP_PIN(5, 16), /* AVB2_TXC */
4007 [17] = RCAR_GP_PIN(5, 17), /* AVB2_RD0 */
4008 [18] = RCAR_GP_PIN(5, 18), /* AVB2_RXC */
4009 [19] = RCAR_GP_PIN(5, 19), /* AVB2_TX_CTL */
4010 [20] = RCAR_GP_PIN(5, 20), /* AVB2_RX_CTL */
4011 [21] = SH_PFC_PIN_NONE,
4012 [22] = SH_PFC_PIN_NONE,
4013 [23] = SH_PFC_PIN_NONE,
4014 [24] = SH_PFC_PIN_NONE,
4015 [25] = SH_PFC_PIN_NONE,
4016 [26] = SH_PFC_PIN_NONE,
4017 [27] = SH_PFC_PIN_NONE,
4018 [28] = SH_PFC_PIN_NONE,
4019 [29] = SH_PFC_PIN_NONE,
4020 [30] = SH_PFC_PIN_NONE,
4021 [31] = SH_PFC_PIN_NONE,
4022 } },
4023 { PINMUX_BIAS_REG("PUEN6", 0xE60610C0, "PUD6", 0xE60610E0) {
4024 [ 0] = RCAR_GP_PIN(6, 0), /* AVB1_MDIO */
4025 [ 1] = RCAR_GP_PIN(6, 1), /* AVB1_MAGIC */
4026 [ 2] = RCAR_GP_PIN(6, 2), /* AVB1_MDC */
4027 [ 3] = RCAR_GP_PIN(6, 3), /* AVB1_PHY_INT */
4028 [ 4] = RCAR_GP_PIN(6, 4), /* AVB1_LINK */
4029 [ 5] = RCAR_GP_PIN(6, 5), /* AVB1_AVTP_MATCH */
4030 [ 6] = RCAR_GP_PIN(6, 6), /* AVB1_TXC */
4031 [ 7] = RCAR_GP_PIN(6, 7), /* AVB1_TX_CTL */
4032 [ 8] = RCAR_GP_PIN(6, 8), /* AVB1_RXC */
4033 [ 9] = RCAR_GP_PIN(6, 9), /* AVB1_RX_CTL */
4034 [10] = RCAR_GP_PIN(6, 10), /* AVB1_AVTP_PPS */
4035 [11] = RCAR_GP_PIN(6, 11), /* AVB1_AVTP_CAPTURE */
4036 [12] = RCAR_GP_PIN(6, 12), /* AVB1_TD1 */
4037 [13] = RCAR_GP_PIN(6, 13), /* AVB1_TD0 */
4038 [14] = RCAR_GP_PIN(6, 14), /* AVB1_RD1*/
4039 [15] = RCAR_GP_PIN(6, 15), /* AVB1_RD0 */
4040 [16] = RCAR_GP_PIN(6, 16), /* AVB1_TD2 */
4041 [17] = RCAR_GP_PIN(6, 17), /* AVB1_RD2 */
4042 [18] = RCAR_GP_PIN(6, 18), /* AVB1_TD3 */
4043 [19] = RCAR_GP_PIN(6, 19), /* AVB1_RD3 */
4044 [20] = RCAR_GP_PIN(6, 20), /* AVB1_TXCREFCLK */
4045 [21] = SH_PFC_PIN_NONE,
4046 [22] = SH_PFC_PIN_NONE,
4047 [23] = SH_PFC_PIN_NONE,
4048 [24] = SH_PFC_PIN_NONE,
4049 [25] = SH_PFC_PIN_NONE,
4050 [26] = SH_PFC_PIN_NONE,
4051 [27] = SH_PFC_PIN_NONE,
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("PUEN7", 0xE60618C0, "PUD7", 0xE60618E0) {
4058 [ 0] = RCAR_GP_PIN(7, 0), /* AVB0_AVTP_PPS */
4059 [ 1] = RCAR_GP_PIN(7, 1), /* AVB0_AVTP_CAPTURE */
4060 [ 2] = RCAR_GP_PIN(7, 2), /* AVB0_AVTP_MATCH */
4061 [ 3] = RCAR_GP_PIN(7, 3), /* AVB0_TD3 */
4062 [ 4] = RCAR_GP_PIN(7, 4), /* AVB0_LINK */
4063 [ 5] = RCAR_GP_PIN(7, 5), /* AVB0_PHY_INT */
4064 [ 6] = RCAR_GP_PIN(7, 6), /* AVB0_TD2 */
4065 [ 7] = RCAR_GP_PIN(7, 7), /* AVB0_TD1 */
4066 [ 8] = RCAR_GP_PIN(7, 8), /* AVB0_RD3 */
4067 [ 9] = RCAR_GP_PIN(7, 9), /* AVB0_TXCREFCLK */
4068 [10] = RCAR_GP_PIN(7, 10), /* AVB0_MAGIC */
4069 [11] = RCAR_GP_PIN(7, 11), /* AVB0_TD0 */
4070 [12] = RCAR_GP_PIN(7, 12), /* AVB0_RD2 */
4071 [13] = RCAR_GP_PIN(7, 13), /* AVB0_MDC */
4072 [14] = RCAR_GP_PIN(7, 14), /* AVB0_MDIO */
4073 [15] = RCAR_GP_PIN(7, 15), /* AVB0_TXC */
4074 [16] = RCAR_GP_PIN(7, 16), /* AVB0_TX_CTL */
4075 [17] = RCAR_GP_PIN(7, 17), /* AVB0_RD1 */
4076 [18] = RCAR_GP_PIN(7, 18), /* AVB0_RD0 */
4077 [19] = RCAR_GP_PIN(7, 19), /* AVB0_RXC */
4078 [20] = RCAR_GP_PIN(7, 20), /* AVB0_RX_CTL */
4079 [21] = SH_PFC_PIN_NONE,
4080 [22] = SH_PFC_PIN_NONE,
4081 [23] = SH_PFC_PIN_NONE,
4082 [24] = SH_PFC_PIN_NONE,
4083 [25] = SH_PFC_PIN_NONE,
4084 [26] = SH_PFC_PIN_NONE,
4085 [27] = SH_PFC_PIN_NONE,
4086 [28] = SH_PFC_PIN_NONE,
4087 [29] = SH_PFC_PIN_NONE,
4088 [30] = SH_PFC_PIN_NONE,
4089 [31] = SH_PFC_PIN_NONE,
4090 } },
4091 { /* sentinel */ },
4092};
4093
4094static const struct sh_pfc_soc_operations r8a779h0_pin_ops = {
4095 .pin_to_pocctrl = r8a779h0_pin_to_pocctrl,
4096 .get_bias = rcar_pinmux_get_bias,
4097 .set_bias = rcar_pinmux_set_bias,
4098};
4099
4100const struct sh_pfc_soc_info r8a779h0_pinmux_info = {
4101 .name = "r8a779h0_pfc",
4102 .ops = &r8a779h0_pin_ops,
4103 .unlock_reg = 0x1ff, /* PMMRn mask */
4104
4105 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
4106
4107 .pins = pinmux_pins,
4108 .nr_pins = ARRAY_SIZE(pinmux_pins),
4109 .groups = pinmux_groups,
4110 .nr_groups = ARRAY_SIZE(pinmux_groups),
4111 .functions = pinmux_functions,
4112 .nr_functions = ARRAY_SIZE(pinmux_functions),
4113
4114 .cfg_regs = pinmux_config_regs,
4115 .drive_regs = pinmux_drive_regs,
4116 .bias_regs = pinmux_bias_regs,
4117 .ioctrl_regs = pinmux_ioctrl_regs,
4118
4119 .pinmux_data = pinmux_data,
4120 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
4121};