blob: fa94a51e5e70f2b31a20db2f72f98036063b82cc [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Marek Vasut06ef9e82018-01-17 17:14:45 +01002/*
3 * r8a7791/r8a7743 processor support - PFC hardware block.
4 *
5 * Copyright (C) 2013 Renesas Electronics Corporation
6 * Copyright (C) 2014-2017 Cogent Embedded, Inc.
Marek Vasut06ef9e82018-01-17 17:14:45 +01007 */
8
Marek Vasut06ef9e82018-01-17 17:14:45 +01009#include <dm.h>
10#include <errno.h>
11#include <dm/pinctrl.h>
12#include <linux/kernel.h>
13
14#include "sh_pfc.h"
15
16/*
17 * Pins 0-23 assigned to GPIO bank 6 can be used for SD interfaces in
18 * which case they support both 3.3V and 1.8V signalling.
19 */
Marek Vasut0e8e9892021-04-26 22:04:11 +020020#define CPU_ALL_GP(fn, sfx) \
Marek Vasut0b9053d2023-01-26 21:01:37 +010021 PORT_GP_CFG_32(0, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
22 PORT_GP_CFG_26(1, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
23 PORT_GP_CFG_32(2, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
24 PORT_GP_CFG_32(3, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
25 PORT_GP_CFG_32(4, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
26 PORT_GP_CFG_32(5, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
Marek Vasut3ccfcea2023-09-17 16:08:37 +020027 PORT_GP_CFG_24(6, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE_18_33 | SH_PFC_PIN_CFG_PULL_UP), \
Marek Vasut0b9053d2023-01-26 21:01:37 +010028 PORT_GP_CFG_1(6, 24, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
29 PORT_GP_CFG_1(6, 25, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
30 PORT_GP_CFG_1(6, 26, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
31 PORT_GP_CFG_1(6, 27, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
32 PORT_GP_CFG_1(6, 28, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
33 PORT_GP_CFG_1(6, 29, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
34 PORT_GP_CFG_1(6, 30, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
35 PORT_GP_CFG_1(6, 31, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
36 PORT_GP_CFG_7(7, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
37 PORT_GP_1(7, 7, fn, sfx), \
38 PORT_GP_1(7, 8, fn, sfx), \
39 PORT_GP_1(7, 9, fn, sfx), \
40 PORT_GP_CFG_1(7, 10, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
41 PORT_GP_CFG_1(7, 11, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
42 PORT_GP_CFG_1(7, 12, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
43 PORT_GP_CFG_1(7, 13, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
44 PORT_GP_CFG_1(7, 14, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
45 PORT_GP_CFG_1(7, 15, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
46 PORT_GP_CFG_1(7, 16, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
47 PORT_GP_CFG_1(7, 17, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
48 PORT_GP_CFG_1(7, 18, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
49 PORT_GP_CFG_1(7, 19, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
50 PORT_GP_CFG_1(7, 20, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
51 PORT_GP_CFG_1(7, 21, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
52 PORT_GP_CFG_1(7, 22, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
53 PORT_GP_CFG_1(7, 23, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
54 PORT_GP_CFG_1(7, 24, fn, sfx, SH_PFC_PIN_CFG_PULL_UP), \
55 PORT_GP_CFG_1(7, 25, fn, sfx, SH_PFC_PIN_CFG_PULL_UP)
56
57#define CPU_ALL_NOGP(fn) \
58 PIN_NOGP_CFG(ASEBRK_N_ACK, "ASEBRK#/ACK", fn, SH_PFC_PIN_CFG_PULL_DOWN), \
59 PIN_NOGP_CFG(AVS1, "AVS1", fn, SH_PFC_PIN_CFG_PULL_UP), \
60 PIN_NOGP_CFG(AVS2, "AVS2", fn, SH_PFC_PIN_CFG_PULL_UP), \
61 PIN_NOGP_CFG(TCK, "TCK", fn, SH_PFC_PIN_CFG_PULL_UP), \
62 PIN_NOGP_CFG(TDI, "TDI", fn, SH_PFC_PIN_CFG_PULL_UP), \
63 PIN_NOGP_CFG(TMS, "TMS", fn, SH_PFC_PIN_CFG_PULL_UP), \
64 PIN_NOGP_CFG(TRST_N, "TRST#", fn, SH_PFC_PIN_CFG_PULL_UP)
Marek Vasut06ef9e82018-01-17 17:14:45 +010065
66enum {
67 PINMUX_RESERVED = 0,
68
69 PINMUX_DATA_BEGIN,
70 GP_ALL(DATA),
71 PINMUX_DATA_END,
72
73 PINMUX_FUNCTION_BEGIN,
74 GP_ALL(FN),
75
76 /* GPSR0 */
77 FN_IP0_0, FN_IP0_1, FN_IP0_2, FN_IP0_3, FN_IP0_4, FN_IP0_5,
78 FN_IP0_6, FN_IP0_7, FN_IP0_8, FN_IP0_9, FN_IP0_10, FN_IP0_11,
79 FN_IP0_12, FN_IP0_13, FN_IP0_14, FN_IP0_15, FN_IP0_18_16, FN_IP0_20_19,
80 FN_IP0_22_21, FN_IP0_24_23, FN_IP0_26_25, FN_IP0_28_27, FN_IP0_30_29,
81 FN_IP1_1_0, FN_IP1_3_2, FN_IP1_5_4, FN_IP1_7_6, FN_IP1_10_8,
82 FN_IP1_13_11, FN_IP1_16_14, FN_IP1_19_17, FN_IP1_22_20,
83
84 /* GPSR1 */
85 FN_IP1_25_23, FN_IP1_28_26, FN_IP1_31_29, FN_IP2_2_0, FN_IP2_4_3,
86 FN_IP2_6_5, FN_IP2_9_7, FN_IP2_12_10, FN_IP2_15_13, FN_IP2_18_16,
87 FN_IP2_20_19, FN_IP2_22_21, FN_EX_CS0_N, FN_IP2_24_23, FN_IP2_26_25,
88 FN_IP2_29_27, FN_IP3_2_0, FN_IP3_5_3, FN_IP3_8_6, FN_RD_N,
89 FN_IP3_11_9, FN_IP3_13_12, FN_IP3_15_14 , FN_IP3_17_16 , FN_IP3_19_18,
90 FN_IP3_21_20,
91
92 /* GPSR2 */
93 FN_IP3_27_25, FN_IP3_30_28, FN_IP4_1_0, FN_IP4_4_2, FN_IP4_7_5,
94 FN_IP4_9_8, FN_IP4_12_10, FN_IP4_15_13, FN_IP4_18_16, FN_IP4_19,
95 FN_IP4_20, FN_IP4_21, FN_IP4_23_22, FN_IP4_25_24, FN_IP4_27_26,
96 FN_IP4_30_28, FN_IP5_2_0, FN_IP5_5_3, FN_IP5_8_6, FN_IP5_11_9,
97 FN_IP5_14_12, FN_IP5_16_15, FN_IP5_19_17, FN_IP5_21_20, FN_IP5_23_22,
98 FN_IP5_25_24, FN_IP5_28_26, FN_IP5_31_29, FN_AUDIO_CLKA, FN_IP6_2_0,
99 FN_IP6_5_3, FN_IP6_7_6,
100
101 /* GPSR3 */
102 FN_IP7_5_3, FN_IP7_8_6, FN_IP7_10_9, FN_IP7_12_11, FN_IP7_14_13,
103 FN_IP7_16_15, FN_IP7_18_17, FN_IP7_20_19, FN_IP7_23_21, FN_IP7_26_24,
104 FN_IP7_29_27, FN_IP8_2_0, FN_IP8_5_3, FN_IP8_8_6, FN_IP8_11_9,
105 FN_IP8_14_12, FN_IP8_17_15, FN_IP8_20_18, FN_IP8_23_21, FN_IP8_25_24,
106 FN_IP8_27_26, FN_IP8_30_28, FN_IP9_2_0, FN_IP9_5_3, FN_IP9_6, FN_IP9_7,
107 FN_IP9_10_8, FN_IP9_11, FN_IP9_12, FN_IP9_15_13, FN_IP9_16,
108 FN_IP9_18_17,
109
110 /* GPSR4 */
111 FN_VI0_CLK, FN_IP9_20_19, FN_IP9_22_21, FN_IP9_24_23, FN_IP9_26_25,
112 FN_VI0_DATA0_VI0_B0, FN_VI0_DATA1_VI0_B1, FN_VI0_DATA2_VI0_B2,
113 FN_IP9_28_27, FN_VI0_DATA4_VI0_B4, FN_VI0_DATA5_VI0_B5,
114 FN_VI0_DATA6_VI0_B6, FN_VI0_DATA7_VI0_B7, FN_IP9_31_29, FN_IP10_2_0,
115 FN_IP10_5_3, FN_IP10_8_6, FN_IP10_11_9, FN_IP10_14_12, FN_IP10_16_15,
116 FN_IP10_18_17, FN_IP10_21_19, FN_IP10_24_22, FN_IP10_26_25,
117 FN_IP10_28_27, FN_IP10_31_29, FN_IP11_2_0, FN_IP11_5_3, FN_IP11_8_6,
118 FN_IP15_1_0, FN_IP15_3_2, FN_IP15_5_4,
119
120 /* GPSR5 */
121 FN_IP11_11_9, FN_IP11_14_12, FN_IP11_16_15, FN_IP11_18_17, FN_IP11_19,
122 FN_IP11_20, FN_IP11_21, FN_IP11_22, FN_IP11_23, FN_IP11_24,
123 FN_IP11_25, FN_IP11_26, FN_IP11_27, FN_IP11_29_28, FN_IP11_31_30,
124 FN_IP12_1_0, FN_IP12_3_2, FN_IP12_6_4, FN_IP12_9_7, FN_IP12_12_10,
125 FN_IP12_15_13, FN_IP12_17_16, FN_IP12_19_18, FN_IP12_21_20,
126 FN_IP12_23_22, FN_IP12_26_24, FN_IP12_29_27, FN_IP13_2_0, FN_IP13_4_3,
127 FN_IP13_6_5, FN_IP13_9_7, FN_IP3_24_22,
128
129 /* GPSR6 */
130 FN_IP13_10, FN_IP13_11, FN_IP13_12, FN_IP13_13, FN_IP13_14,
131 FN_IP13_15, FN_IP13_18_16, FN_IP13_21_19,
132 FN_IP13_22, FN_IP13_24_23, FN_SD1_CLK,
133 FN_IP13_25, FN_IP13_26, FN_IP13_27, FN_IP13_30_28, FN_IP14_1_0,
134 FN_IP14_2, FN_IP14_3, FN_IP14_4, FN_IP14_5, FN_IP14_6, FN_IP14_7,
135 FN_IP14_10_8, FN_IP14_13_11, FN_IP14_16_14, FN_IP14_19_17,
136 FN_IP14_22_20, FN_IP14_25_23, FN_IP14_28_26, FN_IP14_31_29,
137 FN_USB1_OVC, FN_DU0_DOTCLKIN,
138
139 /* GPSR7 */
140 FN_IP15_17_15, FN_IP15_20_18, FN_IP15_23_21, FN_IP15_26_24,
141 FN_IP15_29_27, FN_IP16_2_0, FN_IP16_5_3, FN_IP16_7_6, FN_IP16_9_8,
142 FN_IP16_11_10, FN_IP6_9_8, FN_IP6_11_10, FN_IP6_13_12, FN_IP6_15_14,
143 FN_IP6_18_16, FN_IP6_20_19, FN_IP6_23_21, FN_IP6_26_24, FN_IP6_29_27,
144 FN_IP7_2_0, FN_IP15_8_6, FN_IP15_11_9, FN_IP15_14_12,
145 FN_USB0_PWEN, FN_USB0_OVC, FN_USB1_PWEN,
146
147 /* IPSR0 */
148 FN_D0, FN_D1, FN_D2, FN_D3, FN_D4, FN_D5, FN_D6, FN_D7, FN_D8,
149 FN_D9, FN_D10, FN_D11, FN_D12, FN_D13, FN_D14, FN_D15,
150 FN_A0, FN_ATAWR0_N_C, FN_MSIOF0_SCK_B, FN_I2C0_SCL_C, FN_PWM2_B,
151 FN_A1, FN_MSIOF0_SYNC_B, FN_A2, FN_MSIOF0_SS1_B,
152 FN_A3, FN_MSIOF0_SS2_B, FN_A4, FN_MSIOF0_TXD_B,
153 FN_A5, FN_MSIOF0_RXD_B, FN_A6, FN_MSIOF1_SCK,
154
155 /* IPSR1 */
156 FN_A7, FN_MSIOF1_SYNC, FN_A8, FN_MSIOF1_SS1, FN_I2C0_SCL,
157 FN_A9, FN_MSIOF1_SS2, FN_I2C0_SDA,
158 FN_A10, FN_MSIOF1_TXD, FN_MSIOF1_TXD_D,
159 FN_A11, FN_MSIOF1_RXD, FN_I2C3_SCL_D, FN_MSIOF1_RXD_D,
160 FN_A12, FN_FMCLK, FN_I2C3_SDA_D, FN_MSIOF1_SCK_D,
161 FN_A13, FN_ATAG0_N_C, FN_BPFCLK, FN_MSIOF1_SS1_D,
162 FN_A14, FN_ATADIR0_N_C, FN_FMIN, FN_FMIN_C, FN_MSIOF1_SYNC_D,
163 FN_A15, FN_BPFCLK_C,
164 FN_A16, FN_DREQ2_B, FN_FMCLK_C, FN_SCIFA1_SCK_B,
165 FN_A17, FN_DACK2_B, FN_I2C0_SDA_C,
166 FN_A18, FN_DREQ1, FN_SCIFA1_RXD_C, FN_SCIFB1_RXD_C,
167
168 /* IPSR2 */
169 FN_A19, FN_DACK1, FN_SCIFA1_TXD_C, FN_SCIFB1_TXD_C, FN_SCIFB1_SCK_B,
170 FN_A20, FN_SPCLK,
171 FN_A21, FN_ATAWR0_N_B, FN_MOSI_IO0,
172 FN_A22, FN_MISO_IO1, FN_FMCLK_B, FN_TX0, FN_SCIFA0_TXD,
173 FN_A23, FN_IO2, FN_BPFCLK_B, FN_RX0, FN_SCIFA0_RXD,
174 FN_A24, FN_DREQ2, FN_IO3, FN_TX1, FN_SCIFA1_TXD,
175 FN_A25, FN_DACK2, FN_SSL, FN_DREQ1_C, FN_RX1, FN_SCIFA1_RXD,
176 FN_CS0_N, FN_ATAG0_N_B, FN_I2C1_SCL,
177 FN_CS1_N_A26, FN_ATADIR0_N_B, FN_I2C1_SDA,
178 FN_EX_CS1_N, FN_MSIOF2_SCK,
179 FN_EX_CS2_N, FN_ATAWR0_N, FN_MSIOF2_SYNC,
180 FN_EX_CS3_N, FN_ATADIR0_N, FN_MSIOF2_TXD, FN_ATAG0_N, FN_EX_WAIT1,
181
182 /* IPSR3 */
183 FN_EX_CS4_N, FN_ATARD0_N, FN_MSIOF2_RXD, FN_EX_WAIT2,
184 FN_EX_CS5_N, FN_ATACS00_N, FN_MSIOF2_SS1, FN_HRX1_B,
185 FN_SCIFB1_RXD_B, FN_PWM1, FN_TPU_TO1,
186 FN_BS_N, FN_ATACS10_N, FN_MSIOF2_SS2, FN_HTX1_B,
187 FN_SCIFB1_TXD_B, FN_PWM2, FN_TPU_TO2,
188 FN_RD_WR_N, FN_HRX2_B, FN_FMIN_B, FN_SCIFB0_RXD_B, FN_DREQ1_D,
189 FN_WE0_N, FN_HCTS2_N_B, FN_SCIFB0_TXD_B,
190 FN_WE1_N, FN_ATARD0_N_B, FN_HTX2_B, FN_SCIFB0_RTS_N_B,
191 FN_EX_WAIT0, FN_HRTS2_N_B, FN_SCIFB0_CTS_N_B,
192 FN_DREQ0, FN_PWM3, FN_TPU_TO3,
193 FN_DACK0, FN_DRACK0, FN_REMOCON,
194 FN_SPEEDIN, FN_HSCK0_C, FN_HSCK2_C, FN_SCIFB0_SCK_B,
195 FN_SCIFB2_SCK_B, FN_DREQ2_C, FN_HTX2_D,
196 FN_SSI_SCK0129, FN_HRX0_C, FN_HRX2_C, FN_SCIFB0_RXD_C, FN_SCIFB2_RXD_C,
197 FN_SSI_WS0129, FN_HTX0_C, FN_HTX2_C, FN_SCIFB0_TXD_C, FN_SCIFB2_TXD_C,
198
199 /* IPSR4 */
200 FN_SSI_SDATA0, FN_I2C0_SCL_B, FN_IIC0_SCL_B, FN_MSIOF2_SCK_C,
201 FN_SSI_SCK1, FN_I2C0_SDA_B, FN_IIC0_SDA_B, FN_MSIOF2_SYNC_C,
202 FN_GLO_I0_D,
203 FN_SSI_WS1, FN_I2C1_SCL_B, FN_IIC1_SCL_B, FN_MSIOF2_TXD_C, FN_GLO_I1_D,
204 FN_SSI_SDATA1, FN_I2C1_SDA_B, FN_IIC1_SDA_B, FN_MSIOF2_RXD_C,
205 FN_SSI_SCK2, FN_I2C2_SCL, FN_GPS_CLK_B, FN_GLO_Q0_D, FN_HSCK1_E,
206 FN_SSI_WS2, FN_I2C2_SDA, FN_GPS_SIGN_B, FN_RX2_E,
207 FN_GLO_Q1_D, FN_HCTS1_N_E,
208 FN_SSI_SDATA2, FN_GPS_MAG_B, FN_TX2_E, FN_HRTS1_N_E,
209 FN_SSI_SCK34, FN_SSI_WS34, FN_SSI_SDATA3,
210 FN_SSI_SCK4, FN_GLO_SS_D,
211 FN_SSI_WS4, FN_GLO_RFON_D,
212 FN_SSI_SDATA4, FN_MSIOF2_SCK_D,
213 FN_SSI_SCK5, FN_MSIOF1_SCK_C, FN_TS_SDATA0, FN_GLO_I0,
214 FN_MSIOF2_SYNC_D, FN_VI1_R2_B,
215
216 /* IPSR5 */
217 FN_SSI_WS5, FN_MSIOF1_SYNC_C, FN_TS_SCK0, FN_GLO_I1,
218 FN_MSIOF2_TXD_D, FN_VI1_R3_B,
219 FN_SSI_SDATA5, FN_MSIOF1_TXD_C, FN_TS_SDEN0, FN_GLO_Q0,
220 FN_MSIOF2_SS1_D, FN_VI1_R4_B,
221 FN_SSI_SCK6, FN_MSIOF1_RXD_C, FN_TS_SPSYNC0, FN_GLO_Q1,
222 FN_MSIOF2_RXD_D, FN_VI1_R5_B,
223 FN_SSI_WS6, FN_GLO_SCLK, FN_MSIOF2_SS2_D, FN_VI1_R6_B,
224 FN_SSI_SDATA6, FN_STP_IVCXO27_0_B, FN_GLO_SDATA, FN_VI1_R7_B,
225 FN_SSI_SCK78, FN_STP_ISCLK_0_B, FN_GLO_SS,
226 FN_SSI_WS78, FN_TX0_D, FN_STP_ISD_0_B, FN_GLO_RFON,
227 FN_SSI_SDATA7, FN_RX0_D, FN_STP_ISEN_0_B,
228 FN_SSI_SDATA8, FN_TX1_D, FN_STP_ISSYNC_0_B,
229 FN_SSI_SCK9, FN_RX1_D, FN_GLO_SCLK_D,
230 FN_SSI_WS9, FN_TX3_D, FN_CAN0_TX_D, FN_GLO_SDATA_D,
231 FN_SSI_SDATA9, FN_RX3_D, FN_CAN0_RX_D,
232
233 /* IPSR6 */
234 FN_AUDIO_CLKB, FN_STP_OPWM_0_B, FN_MSIOF1_SCK_B,
235 FN_SCIF_CLK, FN_DVC_MUTE, FN_BPFCLK_E,
236 FN_AUDIO_CLKC, FN_SCIFB0_SCK_C, FN_MSIOF1_SYNC_B, FN_RX2,
237 FN_SCIFA2_RXD, FN_FMIN_E,
238 FN_AUDIO_CLKOUT, FN_MSIOF1_SS1_B, FN_TX2, FN_SCIFA2_TXD,
Marek Vasut0b9053d2023-01-26 21:01:37 +0100239 FN_IRQ0, FN_SCIFB1_RXD_D,
240 FN_IRQ1, FN_SCIFB1_SCK_C,
241 FN_IRQ2, FN_SCIFB1_TXD_D,
242 FN_IRQ3, FN_I2C4_SCL_C, FN_MSIOF2_TXD_E,
243 FN_IRQ4, FN_HRX1_C, FN_I2C4_SDA_C, FN_MSIOF2_RXD_E,
Marek Vasut06ef9e82018-01-17 17:14:45 +0100244 FN_IRQ5, FN_HTX1_C, FN_I2C1_SCL_E, FN_MSIOF2_SCK_E,
245 FN_IRQ6, FN_HSCK1_C, FN_MSIOF1_SS2_B, FN_I2C1_SDA_E, FN_MSIOF2_SYNC_E,
246 FN_IRQ7, FN_HCTS1_N_C, FN_MSIOF1_TXD_B, FN_GPS_CLK_C, FN_GPS_CLK_D,
247 FN_IRQ8, FN_HRTS1_N_C, FN_MSIOF1_RXD_B, FN_GPS_SIGN_C, FN_GPS_SIGN_D,
248
249 /* IPSR7 */
250 FN_IRQ9, FN_DU1_DOTCLKIN_B, FN_CAN_CLK_D, FN_GPS_MAG_C,
251 FN_SCIF_CLK_B, FN_GPS_MAG_D,
252 FN_DU1_DR0, FN_LCDOUT0, FN_VI1_DATA0_B, FN_TX0_B,
253 FN_SCIFA0_TXD_B, FN_MSIOF2_SCK_B,
254 FN_DU1_DR1, FN_LCDOUT1, FN_VI1_DATA1_B, FN_RX0_B,
255 FN_SCIFA0_RXD_B, FN_MSIOF2_SYNC_B,
256 FN_DU1_DR2, FN_LCDOUT2, FN_SSI_SCK0129_B,
257 FN_DU1_DR3, FN_LCDOUT3, FN_SSI_WS0129_B,
258 FN_DU1_DR4, FN_LCDOUT4, FN_SSI_SDATA0_B,
259 FN_DU1_DR5, FN_LCDOUT5, FN_SSI_SCK1_B,
260 FN_DU1_DR6, FN_LCDOUT6, FN_SSI_WS1_B,
261 FN_DU1_DR7, FN_LCDOUT7, FN_SSI_SDATA1_B,
262 FN_DU1_DG0, FN_LCDOUT8, FN_VI1_DATA2_B, FN_TX1_B,
263 FN_SCIFA1_TXD_B, FN_MSIOF2_SS1_B,
264 FN_DU1_DG1, FN_LCDOUT9, FN_VI1_DATA3_B, FN_RX1_B,
265 FN_SCIFA1_RXD_B, FN_MSIOF2_SS2_B,
266 FN_DU1_DG2, FN_LCDOUT10, FN_VI1_DATA4_B, FN_SCIF1_SCK_B,
267 FN_SCIFA1_SCK, FN_SSI_SCK78_B,
268
269 /* IPSR8 */
270 FN_DU1_DG3, FN_LCDOUT11, FN_VI1_DATA5_B, FN_SSI_WS78_B,
271 FN_DU1_DG4, FN_LCDOUT12, FN_VI1_DATA6_B, FN_HRX0_B,
272 FN_SCIFB2_RXD_B, FN_SSI_SDATA7_B,
273 FN_DU1_DG5, FN_LCDOUT13, FN_VI1_DATA7_B, FN_HCTS0_N_B,
274 FN_SCIFB2_TXD_B, FN_SSI_SDATA8_B,
275 FN_DU1_DG6, FN_LCDOUT14, FN_HRTS0_N_B,
276 FN_SCIFB2_CTS_N_B, FN_SSI_SCK9_B,
277 FN_DU1_DG7, FN_LCDOUT15, FN_HTX0_B, FN_SCIFB2_RTS_N_B, FN_SSI_WS9_B,
278 FN_DU1_DB0, FN_LCDOUT16, FN_VI1_CLK_B, FN_TX2_B,
279 FN_SCIFA2_TXD_B, FN_MSIOF2_TXD_B,
280 FN_DU1_DB1, FN_LCDOUT17, FN_VI1_HSYNC_N_B, FN_RX2_B,
281 FN_SCIFA2_RXD_B, FN_MSIOF2_RXD_B,
282 FN_DU1_DB2, FN_LCDOUT18, FN_VI1_VSYNC_N_B, FN_SCIF2_SCK_B,
283 FN_SCIFA2_SCK, FN_SSI_SDATA9_B,
284 FN_DU1_DB3, FN_LCDOUT19, FN_VI1_CLKENB_B,
285 FN_DU1_DB4, FN_LCDOUT20, FN_VI1_FIELD_B, FN_CAN1_RX,
286 FN_DU1_DB5, FN_LCDOUT21, FN_TX3, FN_SCIFA3_TXD, FN_CAN1_TX,
287
288 /* IPSR9 */
289 FN_DU1_DB6, FN_LCDOUT22, FN_I2C3_SCL_C, FN_RX3, FN_SCIFA3_RXD,
290 FN_DU1_DB7, FN_LCDOUT23, FN_I2C3_SDA_C, FN_SCIF3_SCK, FN_SCIFA3_SCK,
291 FN_DU1_DOTCLKIN, FN_QSTVA_QVS,
292 FN_DU1_DOTCLKOUT0, FN_QCLK,
293 FN_DU1_DOTCLKOUT1, FN_QSTVB_QVE, FN_CAN0_TX,
294 FN_TX3_B, FN_I2C2_SCL_B, FN_PWM4,
295 FN_DU1_EXHSYNC_DU1_HSYNC, FN_QSTH_QHS,
296 FN_DU1_EXVSYNC_DU1_VSYNC, FN_QSTB_QHE,
297 FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_QCPV_QDE,
298 FN_CAN0_RX, FN_RX3_B, FN_I2C2_SDA_B,
299 FN_DU1_DISP, FN_QPOLA,
300 FN_DU1_CDE, FN_QPOLB, FN_PWM4_B,
301 FN_VI0_CLKENB, FN_TX4, FN_SCIFA4_TXD, FN_TS_SDATA0_D,
302 FN_VI0_FIELD, FN_RX4, FN_SCIFA4_RXD, FN_TS_SCK0_D,
303 FN_VI0_HSYNC_N, FN_TX5, FN_SCIFA5_TXD, FN_TS_SDEN0_D,
304 FN_VI0_VSYNC_N, FN_RX5, FN_SCIFA5_RXD, FN_TS_SPSYNC0_D,
305 FN_VI0_DATA3_VI0_B3, FN_SCIF3_SCK_B, FN_SCIFA3_SCK_B,
306 FN_VI0_G0, FN_IIC1_SCL, FN_STP_IVCXO27_0_C, FN_I2C4_SCL,
307 FN_HCTS2_N, FN_SCIFB2_CTS_N, FN_ATAWR1_N,
308
309 /* IPSR10 */
310 FN_VI0_G1, FN_IIC1_SDA, FN_STP_ISCLK_0_C, FN_I2C4_SDA,
311 FN_HRTS2_N, FN_SCIFB2_RTS_N, FN_ATADIR1_N,
312 FN_VI0_G2, FN_VI2_HSYNC_N, FN_STP_ISD_0_C, FN_I2C3_SCL_B,
313 FN_HSCK2, FN_SCIFB2_SCK, FN_ATARD1_N,
314 FN_VI0_G3, FN_VI2_VSYNC_N, FN_STP_ISEN_0_C, FN_I2C3_SDA_B,
315 FN_HRX2, FN_SCIFB2_RXD, FN_ATACS01_N,
316 FN_VI0_G4, FN_VI2_CLKENB, FN_STP_ISSYNC_0_C,
317 FN_HTX2, FN_SCIFB2_TXD, FN_SCIFB0_SCK_D,
318 FN_VI0_G5, FN_VI2_FIELD, FN_STP_OPWM_0_C, FN_FMCLK_D,
319 FN_CAN0_TX_E, FN_HTX1_D, FN_SCIFB0_TXD_D,
320 FN_VI0_G6, FN_VI2_CLK, FN_BPFCLK_D,
321 FN_VI0_G7, FN_VI2_DATA0, FN_FMIN_D,
322 FN_VI0_R0, FN_VI2_DATA1, FN_GLO_I0_B,
323 FN_TS_SDATA0_C, FN_ATACS11_N,
324 FN_VI0_R1, FN_VI2_DATA2, FN_GLO_I1_B,
325 FN_TS_SCK0_C, FN_ATAG1_N,
326 FN_VI0_R2, FN_VI2_DATA3, FN_GLO_Q0_B, FN_TS_SDEN0_C,
327 FN_VI0_R3, FN_VI2_DATA4, FN_GLO_Q1_B, FN_TS_SPSYNC0_C,
328 FN_VI0_R4, FN_VI2_DATA5, FN_GLO_SCLK_B, FN_TX0_C, FN_I2C1_SCL_D,
329
330 /* IPSR11 */
331 FN_VI0_R5, FN_VI2_DATA6, FN_GLO_SDATA_B, FN_RX0_C, FN_I2C1_SDA_D,
332 FN_VI0_R6, FN_VI2_DATA7, FN_GLO_SS_B, FN_TX1_C, FN_I2C4_SCL_B,
333 FN_VI0_R7, FN_GLO_RFON_B, FN_RX1_C, FN_CAN0_RX_E,
334 FN_I2C4_SDA_B, FN_HRX1_D, FN_SCIFB0_RXD_D,
335 FN_VI1_HSYNC_N, FN_AVB_RXD0, FN_TS_SDATA0_B, FN_TX4_B, FN_SCIFA4_TXD_B,
336 FN_VI1_VSYNC_N, FN_AVB_RXD1, FN_TS_SCK0_B, FN_RX4_B, FN_SCIFA4_RXD_B,
337 FN_VI1_CLKENB, FN_AVB_RXD2, FN_TS_SDEN0_B,
338 FN_VI1_FIELD, FN_AVB_RXD3, FN_TS_SPSYNC0_B,
339 FN_VI1_CLK, FN_AVB_RXD4, FN_VI1_DATA0, FN_AVB_RXD5,
340 FN_VI1_DATA1, FN_AVB_RXD6, FN_VI1_DATA2, FN_AVB_RXD7,
341 FN_VI1_DATA3, FN_AVB_RX_ER, FN_VI1_DATA4, FN_AVB_MDIO,
342 FN_VI1_DATA5, FN_AVB_RX_DV, FN_VI1_DATA6, FN_AVB_MAGIC,
343 FN_VI1_DATA7, FN_AVB_MDC,
344 FN_ETH_MDIO, FN_AVB_RX_CLK, FN_I2C2_SCL_C,
345 FN_ETH_CRS_DV, FN_AVB_LINK, FN_I2C2_SDA_C,
346
347 /* IPSR12 */
348 FN_ETH_RX_ER, FN_AVB_CRS, FN_I2C3_SCL, FN_IIC0_SCL,
349 FN_ETH_RXD0, FN_AVB_PHY_INT, FN_I2C3_SDA, FN_IIC0_SDA,
350 FN_ETH_RXD1, FN_AVB_GTXREFCLK, FN_CAN0_TX_C,
351 FN_I2C2_SCL_D, FN_MSIOF1_RXD_E,
352 FN_ETH_LINK, FN_AVB_TXD0, FN_CAN0_RX_C, FN_I2C2_SDA_D, FN_MSIOF1_SCK_E,
353 FN_ETH_REFCLK, FN_AVB_TXD1, FN_SCIFA3_RXD_B,
354 FN_CAN1_RX_C, FN_MSIOF1_SYNC_E,
355 FN_ETH_TXD1, FN_AVB_TXD2, FN_SCIFA3_TXD_B,
356 FN_CAN1_TX_C, FN_MSIOF1_TXD_E,
357 FN_ETH_TX_EN, FN_AVB_TXD3, FN_TCLK1_B, FN_CAN_CLK_B,
358 FN_ETH_MAGIC, FN_AVB_TXD4, FN_IETX_C,
359 FN_ETH_TXD0, FN_AVB_TXD5, FN_IECLK_C,
360 FN_ETH_MDC, FN_AVB_TXD6, FN_IERX_C,
361 FN_STP_IVCXO27_0, FN_AVB_TXD7, FN_SCIFB2_TXD_D,
362 FN_ADIDATA_B, FN_MSIOF0_SYNC_C,
363 FN_STP_ISCLK_0, FN_AVB_TX_EN, FN_SCIFB2_RXD_D,
364 FN_ADICS_SAMP_B, FN_MSIOF0_SCK_C,
365
366 /* IPSR13 */
367 FN_STP_ISD_0, FN_AVB_TX_ER, FN_SCIFB2_SCK_C,
368 FN_ADICLK_B, FN_MSIOF0_SS1_C,
369 FN_STP_ISEN_0, FN_AVB_TX_CLK, FN_ADICHS0_B, FN_MSIOF0_SS2_C,
370 FN_STP_ISSYNC_0, FN_AVB_COL, FN_ADICHS1_B, FN_MSIOF0_RXD_C,
371 FN_STP_OPWM_0, FN_AVB_GTX_CLK, FN_PWM0_B,
372 FN_ADICHS2_B, FN_MSIOF0_TXD_C,
373 FN_SD0_CLK, FN_SPCLK_B, FN_SD0_CMD, FN_MOSI_IO0_B,
374 FN_SD0_DATA0, FN_MISO_IO1_B, FN_SD0_DATA1, FN_IO2_B,
375 FN_SD0_DATA2, FN_IO3_B, FN_SD0_DATA3, FN_SSL_B,
376 FN_SD0_CD, FN_MMC_D6_B, FN_SIM0_RST_B, FN_CAN0_RX_F,
377 FN_SCIFA5_TXD_B, FN_TX3_C,
378 FN_SD0_WP, FN_MMC_D7_B, FN_SIM0_D_B, FN_CAN0_TX_F,
379 FN_SCIFA5_RXD_B, FN_RX3_C,
380 FN_SD1_CMD, FN_REMOCON_B, FN_SD1_DATA0, FN_SPEEDIN_B,
381 FN_SD1_DATA1, FN_IETX_B, FN_SD1_DATA2, FN_IECLK_B,
382 FN_SD1_DATA3, FN_IERX_B,
383 FN_SD1_CD, FN_PWM0, FN_TPU_TO0, FN_I2C1_SCL_C,
384
385 /* IPSR14 */
386 FN_SD1_WP, FN_PWM1_B, FN_I2C1_SDA_C,
387 FN_SD2_CLK, FN_MMC_CLK, FN_SD2_CMD, FN_MMC_CMD,
388 FN_SD2_DATA0, FN_MMC_D0, FN_SD2_DATA1, FN_MMC_D1,
389 FN_SD2_DATA2, FN_MMC_D2, FN_SD2_DATA3, FN_MMC_D3,
390 FN_SD2_CD, FN_MMC_D4, FN_IIC1_SCL_C, FN_TX5_B, FN_SCIFA5_TXD_C,
391 FN_SD2_WP, FN_MMC_D5, FN_IIC1_SDA_C, FN_RX5_B, FN_SCIFA5_RXD_C,
392 FN_MSIOF0_SCK, FN_RX2_C, FN_ADIDATA, FN_VI1_CLK_C, FN_VI1_G0_B,
393 FN_MSIOF0_SYNC, FN_TX2_C, FN_ADICS_SAMP, FN_VI1_CLKENB_C, FN_VI1_G1_B,
394 FN_MSIOF0_TXD, FN_ADICLK, FN_VI1_FIELD_C, FN_VI1_G2_B,
395 FN_MSIOF0_RXD, FN_ADICHS0, FN_VI1_DATA0_C, FN_VI1_G3_B,
396 FN_MSIOF0_SS1, FN_MMC_D6, FN_ADICHS1, FN_TX0_E,
397 FN_VI1_HSYNC_N_C, FN_IIC0_SCL_C, FN_VI1_G4_B,
398 FN_MSIOF0_SS2, FN_MMC_D7, FN_ADICHS2, FN_RX0_E,
399 FN_VI1_VSYNC_N_C, FN_IIC0_SDA_C, FN_VI1_G5_B,
400
401 /* IPSR15 */
402 FN_SIM0_RST, FN_IETX, FN_CAN1_TX_D,
403 FN_SIM0_CLK, FN_IECLK, FN_CAN_CLK_C,
404 FN_SIM0_D, FN_IERX, FN_CAN1_RX_D,
405 FN_GPS_CLK, FN_DU1_DOTCLKIN_C, FN_AUDIO_CLKB_B,
406 FN_PWM5_B, FN_SCIFA3_TXD_C,
407 FN_GPS_SIGN, FN_TX4_C, FN_SCIFA4_TXD_C, FN_PWM5,
408 FN_VI1_G6_B, FN_SCIFA3_RXD_C,
409 FN_GPS_MAG, FN_RX4_C, FN_SCIFA4_RXD_C, FN_PWM6,
410 FN_VI1_G7_B, FN_SCIFA3_SCK_C,
411 FN_HCTS0_N, FN_SCIFB0_CTS_N, FN_GLO_I0_C, FN_TCLK1, FN_VI1_DATA1_C,
412 FN_HRTS0_N, FN_SCIFB0_RTS_N, FN_GLO_I1_C, FN_VI1_DATA2_C,
413 FN_HSCK0, FN_SCIFB0_SCK, FN_GLO_Q0_C, FN_CAN_CLK,
414 FN_TCLK2, FN_VI1_DATA3_C,
415 FN_HRX0, FN_SCIFB0_RXD, FN_GLO_Q1_C, FN_CAN0_RX_B, FN_VI1_DATA4_C,
416 FN_HTX0, FN_SCIFB0_TXD, FN_GLO_SCLK_C, FN_CAN0_TX_B, FN_VI1_DATA5_C,
417
418 /* IPSR16 */
419 FN_HRX1, FN_SCIFB1_RXD, FN_VI1_R0_B, FN_GLO_SDATA_C, FN_VI1_DATA6_C,
420 FN_HTX1, FN_SCIFB1_TXD, FN_VI1_R1_B, FN_GLO_SS_C, FN_VI1_DATA7_C,
421 FN_HSCK1, FN_SCIFB1_SCK, FN_MLB_CLK, FN_GLO_RFON_C,
422 FN_HCTS1_N, FN_SCIFB1_CTS_N, FN_MLB_SIG, FN_CAN1_TX_B,
423 FN_HRTS1_N, FN_SCIFB1_RTS_N, FN_MLB_DAT, FN_CAN1_RX_B,
424
425 /* MOD_SEL */
426 FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3,
427 FN_SEL_SCIFB_0, FN_SEL_SCIFB_1, FN_SEL_SCIFB_2, FN_SEL_SCIFB_3,
428 FN_SEL_SCIFB2_0, FN_SEL_SCIFB2_1, FN_SEL_SCIFB2_2, FN_SEL_SCIFB2_3,
429 FN_SEL_SCIFB1_0, FN_SEL_SCIFB1_1, FN_SEL_SCIFB1_2, FN_SEL_SCIFB1_3,
430 FN_SEL_SCIFA1_0, FN_SEL_SCIFA1_1, FN_SEL_SCIFA1_2,
431 FN_SEL_SSI9_0, FN_SEL_SSI9_1,
432 FN_SEL_SCFA_0, FN_SEL_SCFA_1,
433 FN_SEL_QSP_0, FN_SEL_QSP_1,
434 FN_SEL_SSI7_0, FN_SEL_SSI7_1,
435 FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1, FN_SEL_HSCIF1_2, FN_SEL_HSCIF1_3,
436 FN_SEL_HSCIF1_4,
437 FN_SEL_VI1_0, FN_SEL_VI1_1, FN_SEL_VI1_2,
438 FN_SEL_TMU1_0, FN_SEL_TMU1_1,
439 FN_SEL_LBS_0, FN_SEL_LBS_1, FN_SEL_LBS_2, FN_SEL_LBS_3,
440 FN_SEL_TSIF0_0, FN_SEL_TSIF0_1, FN_SEL_TSIF0_2, FN_SEL_TSIF0_3,
441 FN_SEL_SOF0_0, FN_SEL_SOF0_1, FN_SEL_SOF0_2,
442
443 /* MOD_SEL2 */
444 FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
445 FN_SEL_SCIF0_4,
446 FN_SEL_SCIF_0, FN_SEL_SCIF_1,
447 FN_SEL_CAN0_0, FN_SEL_CAN0_1, FN_SEL_CAN0_2, FN_SEL_CAN0_3,
448 FN_SEL_CAN0_4, FN_SEL_CAN0_5,
449 FN_SEL_CAN1_0, FN_SEL_CAN1_1, FN_SEL_CAN1_2, FN_SEL_CAN1_3,
450 FN_SEL_SCIFA2_0, FN_SEL_SCIFA2_1,
451 FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2,
452 FN_SEL_ADG_0, FN_SEL_ADG_1,
453 FN_SEL_FM_0, FN_SEL_FM_1, FN_SEL_FM_2, FN_SEL_FM_3, FN_SEL_FM_4,
454 FN_SEL_SCIFA5_0, FN_SEL_SCIFA5_1, FN_SEL_SCIFA5_2,
455 FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
456 FN_SEL_SCIFA4_0, FN_SEL_SCIFA4_1, FN_SEL_SCIFA4_2,
457 FN_SEL_SCIFA3_0, FN_SEL_SCIFA3_1, FN_SEL_SCIFA3_2,
458 FN_SEL_SIM_0, FN_SEL_SIM_1,
459 FN_SEL_SSI8_0, FN_SEL_SSI8_1,
460
461 /* MOD_SEL3 */
462 FN_SEL_HSCIF2_0, FN_SEL_HSCIF2_1, FN_SEL_HSCIF2_2, FN_SEL_HSCIF2_3,
463 FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2, FN_SEL_CANCLK_3,
464 FN_SEL_IIC1_0, FN_SEL_IIC1_1, FN_SEL_IIC1_2,
465 FN_SEL_IIC0_0, FN_SEL_IIC0_1, FN_SEL_IIC0_2,
466 FN_SEL_I2C4_0, FN_SEL_I2C4_1, FN_SEL_I2C4_2,
467 FN_SEL_I2C3_0, FN_SEL_I2C3_1, FN_SEL_I2C3_2, FN_SEL_I2C3_3,
468 FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3,
469 FN_SEL_IEB_0, FN_SEL_IEB_1, FN_SEL_IEB_2,
470 FN_SEL_MMC_0, FN_SEL_MMC_1,
471 FN_SEL_SCIF5_0, FN_SEL_SCIF5_1,
472 FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
473 FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3,
474 FN_SEL_I2C1_4,
475 FN_SEL_I2C0_0, FN_SEL_I2C0_1, FN_SEL_I2C0_2,
476
477 /* MOD_SEL4 */
478 FN_SEL_SOF1_0, FN_SEL_SOF1_1, FN_SEL_SOF1_2, FN_SEL_SOF1_3,
479 FN_SEL_SOF1_4,
480 FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1, FN_SEL_HSCIF0_2,
481 FN_SEL_DIS_0, FN_SEL_DIS_1, FN_SEL_DIS_2,
482 FN_SEL_RAD_0, FN_SEL_RAD_1,
483 FN_SEL_RCN_0, FN_SEL_RCN_1,
484 FN_SEL_RSP_0, FN_SEL_RSP_1,
485 FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, FN_SEL_SCIF2_3,
486 FN_SEL_SCIF2_4,
487 FN_SEL_SOF2_0, FN_SEL_SOF2_1, FN_SEL_SOF2_2, FN_SEL_SOF2_3,
488 FN_SEL_SOF2_4,
489 FN_SEL_SSI1_0, FN_SEL_SSI1_1,
490 FN_SEL_SSI0_0, FN_SEL_SSI0_1,
491 FN_SEL_SSP_0, FN_SEL_SSP_1, FN_SEL_SSP_2,
492 PINMUX_FUNCTION_END,
493
494 PINMUX_MARK_BEGIN,
495
496 EX_CS0_N_MARK, RD_N_MARK,
497
498 AUDIO_CLKA_MARK,
499
500 VI0_CLK_MARK, VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK,
501 VI0_DATA2_VI0_B2_MARK, VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
502 VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
503
504 SD1_CLK_MARK,
505
506 USB0_PWEN_MARK, USB0_OVC_MARK, USB1_PWEN_MARK, USB1_OVC_MARK,
507 DU0_DOTCLKIN_MARK,
508
509 /* IPSR0 */
510 D0_MARK, D1_MARK, D2_MARK, D3_MARK, D4_MARK, D5_MARK,
511 D6_MARK, D7_MARK, D8_MARK,
512 D9_MARK, D10_MARK, D11_MARK, D12_MARK, D13_MARK, D14_MARK, D15_MARK,
513 A0_MARK, ATAWR0_N_C_MARK, MSIOF0_SCK_B_MARK, I2C0_SCL_C_MARK,
514 PWM2_B_MARK,
515 A1_MARK, MSIOF0_SYNC_B_MARK, A2_MARK, MSIOF0_SS1_B_MARK,
516 A3_MARK, MSIOF0_SS2_B_MARK, A4_MARK, MSIOF0_TXD_B_MARK,
517 A5_MARK, MSIOF0_RXD_B_MARK, A6_MARK, MSIOF1_SCK_MARK,
518
519 /* IPSR1 */
520 A7_MARK, MSIOF1_SYNC_MARK, A8_MARK, MSIOF1_SS1_MARK, I2C0_SCL_MARK,
521 A9_MARK, MSIOF1_SS2_MARK, I2C0_SDA_MARK,
522 A10_MARK, MSIOF1_TXD_MARK, MSIOF1_TXD_D_MARK,
523 A11_MARK, MSIOF1_RXD_MARK, I2C3_SCL_D_MARK, MSIOF1_RXD_D_MARK,
524 A12_MARK, FMCLK_MARK, I2C3_SDA_D_MARK, MSIOF1_SCK_D_MARK,
525 A13_MARK, ATAG0_N_C_MARK, BPFCLK_MARK, MSIOF1_SS1_D_MARK,
526 A14_MARK, ATADIR0_N_C_MARK, FMIN_MARK, FMIN_C_MARK, MSIOF1_SYNC_D_MARK,
527 A15_MARK, BPFCLK_C_MARK,
528 A16_MARK, DREQ2_B_MARK, FMCLK_C_MARK, SCIFA1_SCK_B_MARK,
529 A17_MARK, DACK2_B_MARK, I2C0_SDA_C_MARK,
530 A18_MARK, DREQ1_MARK, SCIFA1_RXD_C_MARK, SCIFB1_RXD_C_MARK,
531
532 /* IPSR2 */
533 A19_MARK, DACK1_MARK, SCIFA1_TXD_C_MARK,
534 SCIFB1_TXD_C_MARK, SCIFB1_SCK_B_MARK,
535 A20_MARK, SPCLK_MARK,
536 A21_MARK, ATAWR0_N_B_MARK, MOSI_IO0_MARK,
537 A22_MARK, MISO_IO1_MARK, FMCLK_B_MARK, TX0_MARK, SCIFA0_TXD_MARK,
538 A23_MARK, IO2_MARK, BPFCLK_B_MARK, RX0_MARK, SCIFA0_RXD_MARK,
539 A24_MARK, DREQ2_MARK, IO3_MARK, TX1_MARK, SCIFA1_TXD_MARK,
540 A25_MARK, DACK2_MARK, SSL_MARK, DREQ1_C_MARK,
541 RX1_MARK, SCIFA1_RXD_MARK,
542 CS0_N_MARK, ATAG0_N_B_MARK, I2C1_SCL_MARK,
543 CS1_N_A26_MARK, ATADIR0_N_B_MARK, I2C1_SDA_MARK,
544 EX_CS1_N_MARK, MSIOF2_SCK_MARK,
545 EX_CS2_N_MARK, ATAWR0_N_MARK, MSIOF2_SYNC_MARK,
546 EX_CS3_N_MARK, ATADIR0_N_MARK, MSIOF2_TXD_MARK,
547 ATAG0_N_MARK, EX_WAIT1_MARK,
548
549 /* IPSR3 */
550 EX_CS4_N_MARK, ATARD0_N_MARK, MSIOF2_RXD_MARK, EX_WAIT2_MARK,
551 EX_CS5_N_MARK, ATACS00_N_MARK, MSIOF2_SS1_MARK, HRX1_B_MARK,
552 SCIFB1_RXD_B_MARK, PWM1_MARK, TPU_TO1_MARK,
553 BS_N_MARK, ATACS10_N_MARK, MSIOF2_SS2_MARK, HTX1_B_MARK,
554 SCIFB1_TXD_B_MARK, PWM2_MARK, TPU_TO2_MARK,
555 RD_WR_N_MARK, HRX2_B_MARK, FMIN_B_MARK,
556 SCIFB0_RXD_B_MARK, DREQ1_D_MARK,
557 WE0_N_MARK, HCTS2_N_B_MARK, SCIFB0_TXD_B_MARK,
558 WE1_N_MARK, ATARD0_N_B_MARK, HTX2_B_MARK, SCIFB0_RTS_N_B_MARK,
559 EX_WAIT0_MARK, HRTS2_N_B_MARK, SCIFB0_CTS_N_B_MARK,
560 DREQ0_MARK, PWM3_MARK, TPU_TO3_MARK,
561 DACK0_MARK, DRACK0_MARK, REMOCON_MARK,
562 SPEEDIN_MARK, HSCK0_C_MARK, HSCK2_C_MARK, SCIFB0_SCK_B_MARK,
563 SCIFB2_SCK_B_MARK, DREQ2_C_MARK, HTX2_D_MARK,
564 SSI_SCK0129_MARK, HRX0_C_MARK, HRX2_C_MARK,
565 SCIFB0_RXD_C_MARK, SCIFB2_RXD_C_MARK,
566 SSI_WS0129_MARK, HTX0_C_MARK, HTX2_C_MARK,
567 SCIFB0_TXD_C_MARK, SCIFB2_TXD_C_MARK,
568
569 /* IPSR4 */
570 SSI_SDATA0_MARK, I2C0_SCL_B_MARK, IIC0_SCL_B_MARK, MSIOF2_SCK_C_MARK,
571 SSI_SCK1_MARK, I2C0_SDA_B_MARK, IIC0_SDA_B_MARK,
572 MSIOF2_SYNC_C_MARK, GLO_I0_D_MARK,
573 SSI_WS1_MARK, I2C1_SCL_B_MARK, IIC1_SCL_B_MARK,
574 MSIOF2_TXD_C_MARK, GLO_I1_D_MARK,
575 SSI_SDATA1_MARK, I2C1_SDA_B_MARK, IIC1_SDA_B_MARK, MSIOF2_RXD_C_MARK,
576 SSI_SCK2_MARK, I2C2_SCL_MARK, GPS_CLK_B_MARK, GLO_Q0_D_MARK,
577 HSCK1_E_MARK,
578 SSI_WS2_MARK, I2C2_SDA_MARK, GPS_SIGN_B_MARK, RX2_E_MARK,
579 GLO_Q1_D_MARK, HCTS1_N_E_MARK,
580 SSI_SDATA2_MARK, GPS_MAG_B_MARK, TX2_E_MARK, HRTS1_N_E_MARK,
581 SSI_SCK34_MARK, SSI_WS34_MARK, SSI_SDATA3_MARK,
582 SSI_SCK4_MARK, GLO_SS_D_MARK,
583 SSI_WS4_MARK, GLO_RFON_D_MARK,
584 SSI_SDATA4_MARK, MSIOF2_SCK_D_MARK,
585 SSI_SCK5_MARK, MSIOF1_SCK_C_MARK, TS_SDATA0_MARK, GLO_I0_MARK,
586 MSIOF2_SYNC_D_MARK, VI1_R2_B_MARK,
587
588 /* IPSR5 */
589 SSI_WS5_MARK, MSIOF1_SYNC_C_MARK, TS_SCK0_MARK, GLO_I1_MARK,
590 MSIOF2_TXD_D_MARK, VI1_R3_B_MARK,
591 SSI_SDATA5_MARK, MSIOF1_TXD_C_MARK, TS_SDEN0_MARK, GLO_Q0_MARK,
592 MSIOF2_SS1_D_MARK, VI1_R4_B_MARK,
593 SSI_SCK6_MARK, MSIOF1_RXD_C_MARK, TS_SPSYNC0_MARK, GLO_Q1_MARK,
594 MSIOF2_RXD_D_MARK, VI1_R5_B_MARK,
595 SSI_WS6_MARK, GLO_SCLK_MARK, MSIOF2_SS2_D_MARK, VI1_R6_B_MARK,
596 SSI_SDATA6_MARK, STP_IVCXO27_0_B_MARK, GLO_SDATA_MARK, VI1_R7_B_MARK,
597 SSI_SCK78_MARK, STP_ISCLK_0_B_MARK, GLO_SS_MARK,
598 SSI_WS78_MARK, TX0_D_MARK, STP_ISD_0_B_MARK, GLO_RFON_MARK,
599 SSI_SDATA7_MARK, RX0_D_MARK, STP_ISEN_0_B_MARK,
600 SSI_SDATA8_MARK, TX1_D_MARK, STP_ISSYNC_0_B_MARK,
601 SSI_SCK9_MARK, RX1_D_MARK, GLO_SCLK_D_MARK,
602 SSI_WS9_MARK, TX3_D_MARK, CAN0_TX_D_MARK, GLO_SDATA_D_MARK,
603 SSI_SDATA9_MARK, RX3_D_MARK, CAN0_RX_D_MARK,
604
605 /* IPSR6 */
606 AUDIO_CLKB_MARK, STP_OPWM_0_B_MARK, MSIOF1_SCK_B_MARK,
607 SCIF_CLK_MARK, DVC_MUTE_MARK, BPFCLK_E_MARK,
608 AUDIO_CLKC_MARK, SCIFB0_SCK_C_MARK, MSIOF1_SYNC_B_MARK, RX2_MARK,
609 SCIFA2_RXD_MARK, FMIN_E_MARK,
610 AUDIO_CLKOUT_MARK, MSIOF1_SS1_B_MARK, TX2_MARK, SCIFA2_TXD_MARK,
Marek Vasut0b9053d2023-01-26 21:01:37 +0100611 IRQ0_MARK, SCIFB1_RXD_D_MARK,
612 IRQ1_MARK, SCIFB1_SCK_C_MARK,
613 IRQ2_MARK, SCIFB1_TXD_D_MARK,
614 IRQ3_MARK, I2C4_SCL_C_MARK, MSIOF2_TXD_E_MARK,
Marek Vasut06ef9e82018-01-17 17:14:45 +0100615 IRQ4_MARK, HRX1_C_MARK, I2C4_SDA_C_MARK,
Marek Vasut0b9053d2023-01-26 21:01:37 +0100616 MSIOF2_RXD_E_MARK,
Marek Vasut06ef9e82018-01-17 17:14:45 +0100617 IRQ5_MARK, HTX1_C_MARK, I2C1_SCL_E_MARK, MSIOF2_SCK_E_MARK,
618 IRQ6_MARK, HSCK1_C_MARK, MSIOF1_SS2_B_MARK,
619 I2C1_SDA_E_MARK, MSIOF2_SYNC_E_MARK,
620 IRQ7_MARK, HCTS1_N_C_MARK, MSIOF1_TXD_B_MARK,
621 GPS_CLK_C_MARK, GPS_CLK_D_MARK,
622 IRQ8_MARK, HRTS1_N_C_MARK, MSIOF1_RXD_B_MARK,
623 GPS_SIGN_C_MARK, GPS_SIGN_D_MARK,
624
625 /* IPSR7 */
626 IRQ9_MARK, DU1_DOTCLKIN_B_MARK, CAN_CLK_D_MARK, GPS_MAG_C_MARK,
627 SCIF_CLK_B_MARK, GPS_MAG_D_MARK,
628 DU1_DR0_MARK, LCDOUT0_MARK, VI1_DATA0_B_MARK, TX0_B_MARK,
629 SCIFA0_TXD_B_MARK, MSIOF2_SCK_B_MARK,
630 DU1_DR1_MARK, LCDOUT1_MARK, VI1_DATA1_B_MARK, RX0_B_MARK,
631 SCIFA0_RXD_B_MARK, MSIOF2_SYNC_B_MARK,
632 DU1_DR2_MARK, LCDOUT2_MARK, SSI_SCK0129_B_MARK,
633 DU1_DR3_MARK, LCDOUT3_MARK, SSI_WS0129_B_MARK,
634 DU1_DR4_MARK, LCDOUT4_MARK, SSI_SDATA0_B_MARK,
635 DU1_DR5_MARK, LCDOUT5_MARK, SSI_SCK1_B_MARK,
636 DU1_DR6_MARK, LCDOUT6_MARK, SSI_WS1_B_MARK,
637 DU1_DR7_MARK, LCDOUT7_MARK, SSI_SDATA1_B_MARK,
638 DU1_DG0_MARK, LCDOUT8_MARK, VI1_DATA2_B_MARK, TX1_B_MARK,
639 SCIFA1_TXD_B_MARK, MSIOF2_SS1_B_MARK,
640 DU1_DG1_MARK, LCDOUT9_MARK, VI1_DATA3_B_MARK, RX1_B_MARK,
641 SCIFA1_RXD_B_MARK, MSIOF2_SS2_B_MARK,
642 DU1_DG2_MARK, LCDOUT10_MARK, VI1_DATA4_B_MARK, SCIF1_SCK_B_MARK,
643 SCIFA1_SCK_MARK, SSI_SCK78_B_MARK,
644
645 /* IPSR8 */
646 DU1_DG3_MARK, LCDOUT11_MARK, VI1_DATA5_B_MARK, SSI_WS78_B_MARK,
647 DU1_DG4_MARK, LCDOUT12_MARK, VI1_DATA6_B_MARK, HRX0_B_MARK,
648 SCIFB2_RXD_B_MARK, SSI_SDATA7_B_MARK,
649 DU1_DG5_MARK, LCDOUT13_MARK, VI1_DATA7_B_MARK, HCTS0_N_B_MARK,
650 SCIFB2_TXD_B_MARK, SSI_SDATA8_B_MARK,
651 DU1_DG6_MARK, LCDOUT14_MARK, HRTS0_N_B_MARK,
652 SCIFB2_CTS_N_B_MARK, SSI_SCK9_B_MARK,
653 DU1_DG7_MARK, LCDOUT15_MARK, HTX0_B_MARK,
654 SCIFB2_RTS_N_B_MARK, SSI_WS9_B_MARK,
655 DU1_DB0_MARK, LCDOUT16_MARK, VI1_CLK_B_MARK, TX2_B_MARK,
656 SCIFA2_TXD_B_MARK, MSIOF2_TXD_B_MARK,
657 DU1_DB1_MARK, LCDOUT17_MARK, VI1_HSYNC_N_B_MARK, RX2_B_MARK,
658 SCIFA2_RXD_B_MARK, MSIOF2_RXD_B_MARK,
659 DU1_DB2_MARK, LCDOUT18_MARK, VI1_VSYNC_N_B_MARK, SCIF2_SCK_B_MARK,
660 SCIFA2_SCK_MARK, SSI_SDATA9_B_MARK,
661 DU1_DB3_MARK, LCDOUT19_MARK, VI1_CLKENB_B_MARK,
662 DU1_DB4_MARK, LCDOUT20_MARK, VI1_FIELD_B_MARK, CAN1_RX_MARK,
663 DU1_DB5_MARK, LCDOUT21_MARK, TX3_MARK, SCIFA3_TXD_MARK, CAN1_TX_MARK,
664
665 /* IPSR9 */
666 DU1_DB6_MARK, LCDOUT22_MARK, I2C3_SCL_C_MARK, RX3_MARK, SCIFA3_RXD_MARK,
667 DU1_DB7_MARK, LCDOUT23_MARK, I2C3_SDA_C_MARK,
668 SCIF3_SCK_MARK, SCIFA3_SCK_MARK,
669 DU1_DOTCLKIN_MARK, QSTVA_QVS_MARK,
670 DU1_DOTCLKOUT0_MARK, QCLK_MARK,
671 DU1_DOTCLKOUT1_MARK, QSTVB_QVE_MARK, CAN0_TX_MARK,
672 TX3_B_MARK, I2C2_SCL_B_MARK, PWM4_MARK,
673 DU1_EXHSYNC_DU1_HSYNC_MARK, QSTH_QHS_MARK,
674 DU1_EXVSYNC_DU1_VSYNC_MARK, QSTB_QHE_MARK,
675 DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, QCPV_QDE_MARK,
676 CAN0_RX_MARK, RX3_B_MARK, I2C2_SDA_B_MARK,
677 DU1_DISP_MARK, QPOLA_MARK,
678 DU1_CDE_MARK, QPOLB_MARK, PWM4_B_MARK,
679 VI0_CLKENB_MARK, TX4_MARK, SCIFA4_TXD_MARK, TS_SDATA0_D_MARK,
680 VI0_FIELD_MARK, RX4_MARK, SCIFA4_RXD_MARK, TS_SCK0_D_MARK,
681 VI0_HSYNC_N_MARK, TX5_MARK, SCIFA5_TXD_MARK, TS_SDEN0_D_MARK,
682 VI0_VSYNC_N_MARK, RX5_MARK, SCIFA5_RXD_MARK, TS_SPSYNC0_D_MARK,
683 VI0_DATA3_VI0_B3_MARK, SCIF3_SCK_B_MARK, SCIFA3_SCK_B_MARK,
684 VI0_G0_MARK, IIC1_SCL_MARK, STP_IVCXO27_0_C_MARK, I2C4_SCL_MARK,
685 HCTS2_N_MARK, SCIFB2_CTS_N_MARK, ATAWR1_N_MARK,
686
687 /* IPSR10 */
688 VI0_G1_MARK, IIC1_SDA_MARK, STP_ISCLK_0_C_MARK, I2C4_SDA_MARK,
689 HRTS2_N_MARK, SCIFB2_RTS_N_MARK, ATADIR1_N_MARK,
690 VI0_G2_MARK, VI2_HSYNC_N_MARK, STP_ISD_0_C_MARK, I2C3_SCL_B_MARK,
691 HSCK2_MARK, SCIFB2_SCK_MARK, ATARD1_N_MARK,
692 VI0_G3_MARK, VI2_VSYNC_N_MARK, STP_ISEN_0_C_MARK, I2C3_SDA_B_MARK,
693 HRX2_MARK, SCIFB2_RXD_MARK, ATACS01_N_MARK,
694 VI0_G4_MARK, VI2_CLKENB_MARK, STP_ISSYNC_0_C_MARK,
695 HTX2_MARK, SCIFB2_TXD_MARK, SCIFB0_SCK_D_MARK,
696 VI0_G5_MARK, VI2_FIELD_MARK, STP_OPWM_0_C_MARK, FMCLK_D_MARK,
697 CAN0_TX_E_MARK, HTX1_D_MARK, SCIFB0_TXD_D_MARK,
698 VI0_G6_MARK, VI2_CLK_MARK, BPFCLK_D_MARK,
699 VI0_G7_MARK, VI2_DATA0_MARK, FMIN_D_MARK,
700 VI0_R0_MARK, VI2_DATA1_MARK, GLO_I0_B_MARK,
701 TS_SDATA0_C_MARK, ATACS11_N_MARK,
702 VI0_R1_MARK, VI2_DATA2_MARK, GLO_I1_B_MARK,
703 TS_SCK0_C_MARK, ATAG1_N_MARK,
704 VI0_R2_MARK, VI2_DATA3_MARK, GLO_Q0_B_MARK, TS_SDEN0_C_MARK,
705 VI0_R3_MARK, VI2_DATA4_MARK, GLO_Q1_B_MARK, TS_SPSYNC0_C_MARK,
706 VI0_R4_MARK, VI2_DATA5_MARK, GLO_SCLK_B_MARK, TX0_C_MARK,
707 I2C1_SCL_D_MARK,
708
709 /* IPSR11 */
710 VI0_R5_MARK, VI2_DATA6_MARK, GLO_SDATA_B_MARK, RX0_C_MARK,
711 I2C1_SDA_D_MARK,
712 VI0_R6_MARK, VI2_DATA7_MARK, GLO_SS_B_MARK, TX1_C_MARK, I2C4_SCL_B_MARK,
713 VI0_R7_MARK, GLO_RFON_B_MARK, RX1_C_MARK, CAN0_RX_E_MARK,
714 I2C4_SDA_B_MARK, HRX1_D_MARK, SCIFB0_RXD_D_MARK,
715 VI1_HSYNC_N_MARK, AVB_RXD0_MARK, TS_SDATA0_B_MARK,
716 TX4_B_MARK, SCIFA4_TXD_B_MARK,
717 VI1_VSYNC_N_MARK, AVB_RXD1_MARK, TS_SCK0_B_MARK,
718 RX4_B_MARK, SCIFA4_RXD_B_MARK,
719 VI1_CLKENB_MARK, AVB_RXD2_MARK, TS_SDEN0_B_MARK,
720 VI1_FIELD_MARK, AVB_RXD3_MARK, TS_SPSYNC0_B_MARK,
721 VI1_CLK_MARK, AVB_RXD4_MARK, VI1_DATA0_MARK, AVB_RXD5_MARK,
722 VI1_DATA1_MARK, AVB_RXD6_MARK, VI1_DATA2_MARK, AVB_RXD7_MARK,
723 VI1_DATA3_MARK, AVB_RX_ER_MARK, VI1_DATA4_MARK, AVB_MDIO_MARK,
724 VI1_DATA5_MARK, AVB_RX_DV_MARK, VI1_DATA6_MARK, AVB_MAGIC_MARK,
725 VI1_DATA7_MARK, AVB_MDC_MARK,
726 ETH_MDIO_MARK, AVB_RX_CLK_MARK, I2C2_SCL_C_MARK,
727 ETH_CRS_DV_MARK, AVB_LINK_MARK, I2C2_SDA_C_MARK,
728
729 /* IPSR12 */
730 ETH_RX_ER_MARK, AVB_CRS_MARK, I2C3_SCL_MARK, IIC0_SCL_MARK,
731 ETH_RXD0_MARK, AVB_PHY_INT_MARK, I2C3_SDA_MARK, IIC0_SDA_MARK,
732 ETH_RXD1_MARK, AVB_GTXREFCLK_MARK, CAN0_TX_C_MARK,
733 I2C2_SCL_D_MARK, MSIOF1_RXD_E_MARK,
734 ETH_LINK_MARK, AVB_TXD0_MARK, CAN0_RX_C_MARK,
735 I2C2_SDA_D_MARK, MSIOF1_SCK_E_MARK,
736 ETH_REFCLK_MARK, AVB_TXD1_MARK, SCIFA3_RXD_B_MARK,
737 CAN1_RX_C_MARK, MSIOF1_SYNC_E_MARK,
738 ETH_TXD1_MARK, AVB_TXD2_MARK, SCIFA3_TXD_B_MARK,
739 CAN1_TX_C_MARK, MSIOF1_TXD_E_MARK,
740 ETH_TX_EN_MARK, AVB_TXD3_MARK, TCLK1_B_MARK, CAN_CLK_B_MARK,
741 ETH_MAGIC_MARK, AVB_TXD4_MARK, IETX_C_MARK,
742 ETH_TXD0_MARK, AVB_TXD5_MARK, IECLK_C_MARK,
743 ETH_MDC_MARK, AVB_TXD6_MARK, IERX_C_MARK,
744 STP_IVCXO27_0_MARK, AVB_TXD7_MARK, SCIFB2_TXD_D_MARK,
745 ADIDATA_B_MARK, MSIOF0_SYNC_C_MARK,
746 STP_ISCLK_0_MARK, AVB_TX_EN_MARK, SCIFB2_RXD_D_MARK,
747 ADICS_SAMP_B_MARK, MSIOF0_SCK_C_MARK,
748
749 /* IPSR13 */
750 STP_ISD_0_MARK, AVB_TX_ER_MARK, SCIFB2_SCK_C_MARK,
751 ADICLK_B_MARK, MSIOF0_SS1_C_MARK,
752 STP_ISEN_0_MARK, AVB_TX_CLK_MARK, ADICHS0_B_MARK, MSIOF0_SS2_C_MARK,
753 STP_ISSYNC_0_MARK, AVB_COL_MARK, ADICHS1_B_MARK, MSIOF0_RXD_C_MARK,
754 STP_OPWM_0_MARK, AVB_GTX_CLK_MARK, PWM0_B_MARK,
755 ADICHS2_B_MARK, MSIOF0_TXD_C_MARK,
756 SD0_CLK_MARK, SPCLK_B_MARK, SD0_CMD_MARK, MOSI_IO0_B_MARK,
757 SD0_DATA0_MARK, MISO_IO1_B_MARK, SD0_DATA1_MARK, IO2_B_MARK,
758 SD0_DATA2_MARK, IO3_B_MARK, SD0_DATA3_MARK, SSL_B_MARK,
759 SD0_CD_MARK, MMC_D6_B_MARK, SIM0_RST_B_MARK, CAN0_RX_F_MARK,
760 SCIFA5_TXD_B_MARK, TX3_C_MARK,
761 SD0_WP_MARK, MMC_D7_B_MARK, SIM0_D_B_MARK, CAN0_TX_F_MARK,
762 SCIFA5_RXD_B_MARK, RX3_C_MARK,
763 SD1_CMD_MARK, REMOCON_B_MARK, SD1_DATA0_MARK, SPEEDIN_B_MARK,
764 SD1_DATA1_MARK, IETX_B_MARK, SD1_DATA2_MARK, IECLK_B_MARK,
765 SD1_DATA3_MARK, IERX_B_MARK,
766 SD1_CD_MARK, PWM0_MARK, TPU_TO0_MARK, I2C1_SCL_C_MARK,
767
768 /* IPSR14 */
769 SD1_WP_MARK, PWM1_B_MARK, I2C1_SDA_C_MARK,
770 SD2_CLK_MARK, MMC_CLK_MARK, SD2_CMD_MARK, MMC_CMD_MARK,
771 SD2_DATA0_MARK, MMC_D0_MARK, SD2_DATA1_MARK, MMC_D1_MARK,
772 SD2_DATA2_MARK, MMC_D2_MARK, SD2_DATA3_MARK, MMC_D3_MARK,
773 SD2_CD_MARK, MMC_D4_MARK, IIC1_SCL_C_MARK, TX5_B_MARK,
774 SCIFA5_TXD_C_MARK,
775 SD2_WP_MARK, MMC_D5_MARK, IIC1_SDA_C_MARK, RX5_B_MARK,
776 SCIFA5_RXD_C_MARK,
777 MSIOF0_SCK_MARK, RX2_C_MARK, ADIDATA_MARK,
778 VI1_CLK_C_MARK, VI1_G0_B_MARK,
779 MSIOF0_SYNC_MARK, TX2_C_MARK, ADICS_SAMP_MARK,
780 VI1_CLKENB_C_MARK, VI1_G1_B_MARK,
781 MSIOF0_TXD_MARK, ADICLK_MARK, VI1_FIELD_C_MARK, VI1_G2_B_MARK,
782 MSIOF0_RXD_MARK, ADICHS0_MARK, VI1_DATA0_C_MARK, VI1_G3_B_MARK,
783 MSIOF0_SS1_MARK, MMC_D6_MARK, ADICHS1_MARK, TX0_E_MARK,
784 VI1_HSYNC_N_C_MARK, IIC0_SCL_C_MARK, VI1_G4_B_MARK,
785 MSIOF0_SS2_MARK, MMC_D7_MARK, ADICHS2_MARK, RX0_E_MARK,
786 VI1_VSYNC_N_C_MARK, IIC0_SDA_C_MARK, VI1_G5_B_MARK,
787
788 /* IPSR15 */
789 SIM0_RST_MARK, IETX_MARK, CAN1_TX_D_MARK,
790 SIM0_CLK_MARK, IECLK_MARK, CAN_CLK_C_MARK,
791 SIM0_D_MARK, IERX_MARK, CAN1_RX_D_MARK,
792 GPS_CLK_MARK, DU1_DOTCLKIN_C_MARK, AUDIO_CLKB_B_MARK,
793 PWM5_B_MARK, SCIFA3_TXD_C_MARK,
794 GPS_SIGN_MARK, TX4_C_MARK, SCIFA4_TXD_C_MARK, PWM5_MARK,
795 VI1_G6_B_MARK, SCIFA3_RXD_C_MARK,
796 GPS_MAG_MARK, RX4_C_MARK, SCIFA4_RXD_C_MARK, PWM6_MARK,
797 VI1_G7_B_MARK, SCIFA3_SCK_C_MARK,
798 HCTS0_N_MARK, SCIFB0_CTS_N_MARK, GLO_I0_C_MARK,
799 TCLK1_MARK, VI1_DATA1_C_MARK,
800 HRTS0_N_MARK, SCIFB0_RTS_N_MARK, GLO_I1_C_MARK, VI1_DATA2_C_MARK,
801 HSCK0_MARK, SCIFB0_SCK_MARK, GLO_Q0_C_MARK, CAN_CLK_MARK,
802 TCLK2_MARK, VI1_DATA3_C_MARK,
803 HRX0_MARK, SCIFB0_RXD_MARK, GLO_Q1_C_MARK,
804 CAN0_RX_B_MARK, VI1_DATA4_C_MARK,
805 HTX0_MARK, SCIFB0_TXD_MARK, GLO_SCLK_C_MARK,
806 CAN0_TX_B_MARK, VI1_DATA5_C_MARK,
807
808 /* IPSR16 */
809 HRX1_MARK, SCIFB1_RXD_MARK, VI1_R0_B_MARK,
810 GLO_SDATA_C_MARK, VI1_DATA6_C_MARK,
811 HTX1_MARK, SCIFB1_TXD_MARK, VI1_R1_B_MARK,
812 GLO_SS_C_MARK, VI1_DATA7_C_MARK,
813 HSCK1_MARK, SCIFB1_SCK_MARK, MLB_CLK_MARK, GLO_RFON_C_MARK,
814 HCTS1_N_MARK, SCIFB1_CTS_N_MARK, MLB_SIG_MARK, CAN1_TX_B_MARK,
815 HRTS1_N_MARK, SCIFB1_RTS_N_MARK, MLB_DAT_MARK, CAN1_RX_B_MARK,
816 PINMUX_MARK_END,
817};
818
819static const u16 pinmux_data[] = {
820 PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
821
822 PINMUX_SINGLE(EX_CS0_N),
823 PINMUX_SINGLE(RD_N),
824 PINMUX_SINGLE(AUDIO_CLKA),
825 PINMUX_SINGLE(VI0_CLK),
826 PINMUX_SINGLE(VI0_DATA0_VI0_B0),
827 PINMUX_SINGLE(VI0_DATA1_VI0_B1),
828 PINMUX_SINGLE(VI0_DATA2_VI0_B2),
829 PINMUX_SINGLE(VI0_DATA4_VI0_B4),
830 PINMUX_SINGLE(VI0_DATA5_VI0_B5),
831 PINMUX_SINGLE(VI0_DATA6_VI0_B6),
832 PINMUX_SINGLE(VI0_DATA7_VI0_B7),
833 PINMUX_SINGLE(USB0_PWEN),
834 PINMUX_SINGLE(USB0_OVC),
835 PINMUX_SINGLE(USB1_PWEN),
836 PINMUX_SINGLE(USB1_OVC),
837 PINMUX_SINGLE(DU0_DOTCLKIN),
838 PINMUX_SINGLE(SD1_CLK),
839
840 /* IPSR0 */
841 PINMUX_IPSR_GPSR(IP0_0, D0),
842 PINMUX_IPSR_GPSR(IP0_1, D1),
843 PINMUX_IPSR_GPSR(IP0_2, D2),
844 PINMUX_IPSR_GPSR(IP0_3, D3),
845 PINMUX_IPSR_GPSR(IP0_4, D4),
846 PINMUX_IPSR_GPSR(IP0_5, D5),
847 PINMUX_IPSR_GPSR(IP0_6, D6),
848 PINMUX_IPSR_GPSR(IP0_7, D7),
849 PINMUX_IPSR_GPSR(IP0_8, D8),
850 PINMUX_IPSR_GPSR(IP0_9, D9),
851 PINMUX_IPSR_GPSR(IP0_10, D10),
852 PINMUX_IPSR_GPSR(IP0_11, D11),
853 PINMUX_IPSR_GPSR(IP0_12, D12),
854 PINMUX_IPSR_GPSR(IP0_13, D13),
855 PINMUX_IPSR_GPSR(IP0_14, D14),
856 PINMUX_IPSR_GPSR(IP0_15, D15),
857 PINMUX_IPSR_GPSR(IP0_18_16, A0),
858 PINMUX_IPSR_MSEL(IP0_18_16, ATAWR0_N_C, SEL_LBS_2),
859 PINMUX_IPSR_MSEL(IP0_18_16, MSIOF0_SCK_B, SEL_SOF0_1),
860 PINMUX_IPSR_MSEL(IP0_18_16, I2C0_SCL_C, SEL_I2C0_2),
861 PINMUX_IPSR_GPSR(IP0_18_16, PWM2_B),
862 PINMUX_IPSR_GPSR(IP0_20_19, A1),
863 PINMUX_IPSR_MSEL(IP0_20_19, MSIOF0_SYNC_B, SEL_SOF0_1),
864 PINMUX_IPSR_GPSR(IP0_22_21, A2),
865 PINMUX_IPSR_MSEL(IP0_22_21, MSIOF0_SS1_B, SEL_SOF0_1),
866 PINMUX_IPSR_GPSR(IP0_24_23, A3),
867 PINMUX_IPSR_MSEL(IP0_24_23, MSIOF0_SS2_B, SEL_SOF0_1),
868 PINMUX_IPSR_GPSR(IP0_26_25, A4),
869 PINMUX_IPSR_MSEL(IP0_26_25, MSIOF0_TXD_B, SEL_SOF0_1),
870 PINMUX_IPSR_GPSR(IP0_28_27, A5),
871 PINMUX_IPSR_MSEL(IP0_28_27, MSIOF0_RXD_B, SEL_SOF0_1),
872 PINMUX_IPSR_GPSR(IP0_30_29, A6),
873 PINMUX_IPSR_MSEL(IP0_30_29, MSIOF1_SCK, SEL_SOF1_0),
874
875 /* IPSR1 */
876 PINMUX_IPSR_GPSR(IP1_1_0, A7),
877 PINMUX_IPSR_MSEL(IP1_1_0, MSIOF1_SYNC, SEL_SOF1_0),
878 PINMUX_IPSR_GPSR(IP1_3_2, A8),
879 PINMUX_IPSR_MSEL(IP1_3_2, MSIOF1_SS1, SEL_SOF1_0),
880 PINMUX_IPSR_MSEL(IP1_3_2, I2C0_SCL, SEL_I2C0_0),
881 PINMUX_IPSR_GPSR(IP1_5_4, A9),
882 PINMUX_IPSR_MSEL(IP1_5_4, MSIOF1_SS2, SEL_SOF1_0),
883 PINMUX_IPSR_MSEL(IP1_5_4, I2C0_SDA, SEL_I2C0_0),
884 PINMUX_IPSR_GPSR(IP1_7_6, A10),
885 PINMUX_IPSR_MSEL(IP1_7_6, MSIOF1_TXD, SEL_SOF1_0),
886 PINMUX_IPSR_MSEL(IP1_7_6, MSIOF1_TXD_D, SEL_SOF1_3),
887 PINMUX_IPSR_GPSR(IP1_10_8, A11),
888 PINMUX_IPSR_MSEL(IP1_10_8, MSIOF1_RXD, SEL_SOF1_0),
889 PINMUX_IPSR_MSEL(IP1_10_8, I2C3_SCL_D, SEL_I2C3_3),
890 PINMUX_IPSR_MSEL(IP1_10_8, MSIOF1_RXD_D, SEL_SOF1_3),
891 PINMUX_IPSR_GPSR(IP1_13_11, A12),
892 PINMUX_IPSR_MSEL(IP1_13_11, FMCLK, SEL_FM_0),
893 PINMUX_IPSR_MSEL(IP1_13_11, I2C3_SDA_D, SEL_I2C3_3),
894 PINMUX_IPSR_MSEL(IP1_13_11, MSIOF1_SCK_D, SEL_SOF1_3),
895 PINMUX_IPSR_GPSR(IP1_16_14, A13),
896 PINMUX_IPSR_MSEL(IP1_16_14, ATAG0_N_C, SEL_LBS_2),
897 PINMUX_IPSR_MSEL(IP1_16_14, BPFCLK, SEL_FM_0),
898 PINMUX_IPSR_MSEL(IP1_16_14, MSIOF1_SS1_D, SEL_SOF1_3),
899 PINMUX_IPSR_GPSR(IP1_19_17, A14),
900 PINMUX_IPSR_MSEL(IP1_19_17, ATADIR0_N_C, SEL_LBS_2),
901 PINMUX_IPSR_MSEL(IP1_19_17, FMIN, SEL_FM_0),
902 PINMUX_IPSR_MSEL(IP1_19_17, FMIN_C, SEL_FM_2),
903 PINMUX_IPSR_MSEL(IP1_19_17, MSIOF1_SYNC_D, SEL_SOF1_3),
904 PINMUX_IPSR_GPSR(IP1_22_20, A15),
905 PINMUX_IPSR_MSEL(IP1_22_20, BPFCLK_C, SEL_FM_2),
906 PINMUX_IPSR_GPSR(IP1_25_23, A16),
907 PINMUX_IPSR_MSEL(IP1_25_23, DREQ2_B, SEL_LBS_1),
908 PINMUX_IPSR_MSEL(IP1_25_23, FMCLK_C, SEL_FM_2),
909 PINMUX_IPSR_MSEL(IP1_25_23, SCIFA1_SCK_B, SEL_SCIFA1_1),
910 PINMUX_IPSR_GPSR(IP1_28_26, A17),
911 PINMUX_IPSR_MSEL(IP1_28_26, DACK2_B, SEL_LBS_1),
912 PINMUX_IPSR_MSEL(IP1_28_26, I2C0_SDA_C, SEL_I2C0_2),
913 PINMUX_IPSR_GPSR(IP1_31_29, A18),
914 PINMUX_IPSR_MSEL(IP1_31_29, DREQ1, SEL_LBS_0),
915 PINMUX_IPSR_MSEL(IP1_31_29, SCIFA1_RXD_C, SEL_SCIFA1_2),
916 PINMUX_IPSR_MSEL(IP1_31_29, SCIFB1_RXD_C, SEL_SCIFB1_2),
917
918 /* IPSR2 */
919 PINMUX_IPSR_GPSR(IP2_2_0, A19),
920 PINMUX_IPSR_GPSR(IP2_2_0, DACK1),
921 PINMUX_IPSR_MSEL(IP2_2_0, SCIFA1_TXD_C, SEL_SCIFA1_2),
922 PINMUX_IPSR_MSEL(IP2_2_0, SCIFB1_TXD_C, SEL_SCIFB1_2),
923 PINMUX_IPSR_MSEL(IP2_2_0, SCIFB1_SCK_B, SEL_SCIFB1_1),
924 PINMUX_IPSR_GPSR(IP2_2_0, A20),
925 PINMUX_IPSR_MSEL(IP2_4_3, SPCLK, SEL_QSP_0),
926 PINMUX_IPSR_GPSR(IP2_6_5, A21),
927 PINMUX_IPSR_MSEL(IP2_6_5, ATAWR0_N_B, SEL_LBS_1),
928 PINMUX_IPSR_MSEL(IP2_6_5, MOSI_IO0, SEL_QSP_0),
929 PINMUX_IPSR_GPSR(IP2_9_7, A22),
930 PINMUX_IPSR_MSEL(IP2_9_7, MISO_IO1, SEL_QSP_0),
931 PINMUX_IPSR_MSEL(IP2_9_7, FMCLK_B, SEL_FM_1),
932 PINMUX_IPSR_MSEL(IP2_9_7, TX0, SEL_SCIF0_0),
933 PINMUX_IPSR_MSEL(IP2_9_7, SCIFA0_TXD, SEL_SCFA_0),
934 PINMUX_IPSR_GPSR(IP2_12_10, A23),
935 PINMUX_IPSR_MSEL(IP2_12_10, IO2, SEL_QSP_0),
936 PINMUX_IPSR_MSEL(IP2_12_10, BPFCLK_B, SEL_FM_1),
937 PINMUX_IPSR_MSEL(IP2_12_10, RX0, SEL_SCIF0_0),
938 PINMUX_IPSR_MSEL(IP2_12_10, SCIFA0_RXD, SEL_SCFA_0),
939 PINMUX_IPSR_GPSR(IP2_15_13, A24),
940 PINMUX_IPSR_MSEL(IP2_15_13, DREQ2, SEL_LBS_0),
941 PINMUX_IPSR_MSEL(IP2_15_13, IO3, SEL_QSP_0),
942 PINMUX_IPSR_MSEL(IP2_15_13, TX1, SEL_SCIF1_0),
943 PINMUX_IPSR_MSEL(IP2_15_13, SCIFA1_TXD, SEL_SCIFA1_0),
944 PINMUX_IPSR_GPSR(IP2_18_16, A25),
945 PINMUX_IPSR_MSEL(IP2_18_16, DACK2, SEL_LBS_0),
946 PINMUX_IPSR_MSEL(IP2_18_16, SSL, SEL_QSP_0),
947 PINMUX_IPSR_MSEL(IP2_18_16, DREQ1_C, SEL_LBS_2),
948 PINMUX_IPSR_MSEL(IP2_18_16, RX1, SEL_SCIF1_0),
949 PINMUX_IPSR_MSEL(IP2_18_16, SCIFA1_RXD, SEL_SCIFA1_0),
950 PINMUX_IPSR_GPSR(IP2_20_19, CS0_N),
951 PINMUX_IPSR_MSEL(IP2_20_19, ATAG0_N_B, SEL_LBS_1),
952 PINMUX_IPSR_MSEL(IP2_20_19, I2C1_SCL, SEL_I2C1_0),
953 PINMUX_IPSR_GPSR(IP2_22_21, CS1_N_A26),
954 PINMUX_IPSR_MSEL(IP2_22_21, ATADIR0_N_B, SEL_LBS_1),
955 PINMUX_IPSR_MSEL(IP2_22_21, I2C1_SDA, SEL_I2C1_0),
956 PINMUX_IPSR_GPSR(IP2_24_23, EX_CS1_N),
957 PINMUX_IPSR_MSEL(IP2_24_23, MSIOF2_SCK, SEL_SOF2_0),
958 PINMUX_IPSR_GPSR(IP2_26_25, EX_CS2_N),
959 PINMUX_IPSR_MSEL(IP2_26_25, ATAWR0_N, SEL_LBS_0),
960 PINMUX_IPSR_MSEL(IP2_26_25, MSIOF2_SYNC, SEL_SOF2_0),
961 PINMUX_IPSR_GPSR(IP2_29_27, EX_CS3_N),
962 PINMUX_IPSR_MSEL(IP2_29_27, ATADIR0_N, SEL_LBS_0),
963 PINMUX_IPSR_MSEL(IP2_29_27, MSIOF2_TXD, SEL_SOF2_0),
964 PINMUX_IPSR_MSEL(IP2_29_27, ATAG0_N, SEL_LBS_0),
965 PINMUX_IPSR_GPSR(IP2_29_27, EX_WAIT1),
966
967 /* IPSR3 */
968 PINMUX_IPSR_GPSR(IP3_2_0, EX_CS4_N),
969 PINMUX_IPSR_MSEL(IP3_2_0, ATARD0_N, SEL_LBS_0),
970 PINMUX_IPSR_MSEL(IP3_2_0, MSIOF2_RXD, SEL_SOF2_0),
971 PINMUX_IPSR_GPSR(IP3_2_0, EX_WAIT2),
972 PINMUX_IPSR_GPSR(IP3_5_3, EX_CS5_N),
973 PINMUX_IPSR_GPSR(IP3_5_3, ATACS00_N),
974 PINMUX_IPSR_MSEL(IP3_5_3, MSIOF2_SS1, SEL_SOF2_0),
975 PINMUX_IPSR_MSEL(IP3_5_3, HRX1_B, SEL_HSCIF1_1),
976 PINMUX_IPSR_MSEL(IP3_5_3, SCIFB1_RXD_B, SEL_SCIFB1_1),
977 PINMUX_IPSR_GPSR(IP3_5_3, PWM1),
978 PINMUX_IPSR_GPSR(IP3_5_3, TPU_TO1),
979 PINMUX_IPSR_GPSR(IP3_8_6, BS_N),
980 PINMUX_IPSR_GPSR(IP3_8_6, ATACS10_N),
981 PINMUX_IPSR_MSEL(IP3_8_6, MSIOF2_SS2, SEL_SOF2_0),
982 PINMUX_IPSR_MSEL(IP3_8_6, HTX1_B, SEL_HSCIF1_1),
983 PINMUX_IPSR_MSEL(IP3_8_6, SCIFB1_TXD_B, SEL_SCIFB1_1),
984 PINMUX_IPSR_GPSR(IP3_8_6, PWM2),
985 PINMUX_IPSR_GPSR(IP3_8_6, TPU_TO2),
986 PINMUX_IPSR_GPSR(IP3_11_9, RD_WR_N),
987 PINMUX_IPSR_MSEL(IP3_11_9, HRX2_B, SEL_HSCIF2_1),
988 PINMUX_IPSR_MSEL(IP3_11_9, FMIN_B, SEL_FM_1),
989 PINMUX_IPSR_MSEL(IP3_11_9, SCIFB0_RXD_B, SEL_SCIFB_1),
990 PINMUX_IPSR_MSEL(IP3_11_9, DREQ1_D, SEL_LBS_1),
991 PINMUX_IPSR_GPSR(IP3_13_12, WE0_N),
992 PINMUX_IPSR_MSEL(IP3_13_12, HCTS2_N_B, SEL_HSCIF2_1),
993 PINMUX_IPSR_MSEL(IP3_13_12, SCIFB0_TXD_B, SEL_SCIFB_1),
994 PINMUX_IPSR_GPSR(IP3_15_14, WE1_N),
995 PINMUX_IPSR_MSEL(IP3_15_14, ATARD0_N_B, SEL_LBS_1),
996 PINMUX_IPSR_MSEL(IP3_15_14, HTX2_B, SEL_HSCIF2_1),
997 PINMUX_IPSR_MSEL(IP3_15_14, SCIFB0_RTS_N_B, SEL_SCIFB_1),
998 PINMUX_IPSR_GPSR(IP3_17_16, EX_WAIT0),
999 PINMUX_IPSR_MSEL(IP3_17_16, HRTS2_N_B, SEL_HSCIF2_1),
1000 PINMUX_IPSR_MSEL(IP3_17_16, SCIFB0_CTS_N_B, SEL_SCIFB_1),
1001 PINMUX_IPSR_GPSR(IP3_19_18, DREQ0),
1002 PINMUX_IPSR_GPSR(IP3_19_18, PWM3),
1003 PINMUX_IPSR_GPSR(IP3_19_18, TPU_TO3),
1004 PINMUX_IPSR_GPSR(IP3_21_20, DACK0),
1005 PINMUX_IPSR_GPSR(IP3_21_20, DRACK0),
1006 PINMUX_IPSR_MSEL(IP3_21_20, REMOCON, SEL_RCN_0),
1007 PINMUX_IPSR_MSEL(IP3_24_22, SPEEDIN, SEL_RSP_0),
1008 PINMUX_IPSR_MSEL(IP3_24_22, HSCK0_C, SEL_HSCIF0_2),
1009 PINMUX_IPSR_MSEL(IP3_24_22, HSCK2_C, SEL_HSCIF2_2),
1010 PINMUX_IPSR_MSEL(IP3_24_22, SCIFB0_SCK_B, SEL_SCIFB_1),
1011 PINMUX_IPSR_MSEL(IP3_24_22, SCIFB2_SCK_B, SEL_SCIFB2_1),
1012 PINMUX_IPSR_MSEL(IP3_24_22, DREQ2_C, SEL_LBS_2),
1013 PINMUX_IPSR_MSEL(IP3_30_28, HTX2_C, SEL_HSCIF2_2),
1014 PINMUX_IPSR_MSEL(IP3_27_25, SSI_SCK0129, SEL_SSI0_0),
1015 PINMUX_IPSR_MSEL(IP3_27_25, HRX0_C, SEL_HSCIF0_2),
1016 PINMUX_IPSR_MSEL(IP3_27_25, HRX2_C, SEL_HSCIF2_2),
1017 PINMUX_IPSR_MSEL(IP3_27_25, SCIFB0_RXD_C, SEL_SCIFB_2),
1018 PINMUX_IPSR_MSEL(IP3_27_25, SCIFB2_RXD_C, SEL_SCIFB2_2),
1019 PINMUX_IPSR_MSEL(IP3_30_28, SSI_WS0129, SEL_SSI0_0),
1020 PINMUX_IPSR_MSEL(IP3_30_28, HTX0_C, SEL_HSCIF0_2),
1021 PINMUX_IPSR_MSEL(IP3_30_28, HTX2_C, SEL_HSCIF2_2),
1022 PINMUX_IPSR_MSEL(IP3_30_28, SCIFB0_TXD_C, SEL_SCIFB_2),
1023 PINMUX_IPSR_MSEL(IP3_30_28, SCIFB2_TXD_C, SEL_SCIFB2_2),
1024
1025 /* IPSR4 */
1026 PINMUX_IPSR_MSEL(IP4_1_0, SSI_SDATA0, SEL_SSI0_0),
1027 PINMUX_IPSR_MSEL(IP4_1_0, I2C0_SCL_B, SEL_I2C0_1),
1028 PINMUX_IPSR_MSEL(IP4_1_0, IIC0_SCL_B, SEL_IIC0_1),
1029 PINMUX_IPSR_MSEL(IP4_1_0, MSIOF2_SCK_C, SEL_SOF2_2),
1030 PINMUX_IPSR_MSEL(IP4_4_2, SSI_SCK1, SEL_SSI1_0),
1031 PINMUX_IPSR_MSEL(IP4_4_2, I2C0_SDA_B, SEL_I2C0_1),
1032 PINMUX_IPSR_MSEL(IP4_4_2, IIC0_SDA_B, SEL_IIC0_1),
1033 PINMUX_IPSR_MSEL(IP4_4_2, MSIOF2_SYNC_C, SEL_SOF2_2),
1034 PINMUX_IPSR_MSEL(IP4_4_2, GLO_I0_D, SEL_GPS_3),
1035 PINMUX_IPSR_MSEL(IP4_7_5, SSI_WS1, SEL_SSI1_0),
1036 PINMUX_IPSR_MSEL(IP4_7_5, I2C1_SCL_B, SEL_I2C1_1),
1037 PINMUX_IPSR_MSEL(IP4_7_5, IIC1_SCL_B, SEL_IIC1_1),
1038 PINMUX_IPSR_MSEL(IP4_7_5, MSIOF2_TXD_C, SEL_SOF2_2),
1039 PINMUX_IPSR_MSEL(IP4_7_5, GLO_I1_D, SEL_GPS_3),
1040 PINMUX_IPSR_MSEL(IP4_9_8, SSI_SDATA1, SEL_SSI1_0),
1041 PINMUX_IPSR_MSEL(IP4_9_8, I2C1_SDA_B, SEL_I2C1_1),
1042 PINMUX_IPSR_MSEL(IP4_9_8, IIC1_SDA_B, SEL_IIC1_1),
1043 PINMUX_IPSR_MSEL(IP4_9_8, MSIOF2_RXD_C, SEL_SOF2_2),
1044 PINMUX_IPSR_GPSR(IP4_12_10, SSI_SCK2),
1045 PINMUX_IPSR_MSEL(IP4_12_10, I2C2_SCL, SEL_I2C2_0),
1046 PINMUX_IPSR_MSEL(IP4_12_10, GPS_CLK_B, SEL_GPS_1),
1047 PINMUX_IPSR_MSEL(IP4_12_10, GLO_Q0_D, SEL_GPS_3),
1048 PINMUX_IPSR_MSEL(IP4_12_10, HSCK1_E, SEL_HSCIF1_4),
1049 PINMUX_IPSR_GPSR(IP4_15_13, SSI_WS2),
1050 PINMUX_IPSR_MSEL(IP4_15_13, I2C2_SDA, SEL_I2C2_0),
1051 PINMUX_IPSR_MSEL(IP4_15_13, GPS_SIGN_B, SEL_GPS_1),
1052 PINMUX_IPSR_MSEL(IP4_15_13, RX2_E, SEL_SCIF2_4),
1053 PINMUX_IPSR_MSEL(IP4_15_13, GLO_Q1_D, SEL_GPS_3),
1054 PINMUX_IPSR_MSEL(IP4_15_13, HCTS1_N_E, SEL_HSCIF1_4),
1055 PINMUX_IPSR_GPSR(IP4_18_16, SSI_SDATA2),
1056 PINMUX_IPSR_MSEL(IP4_18_16, GPS_MAG_B, SEL_GPS_1),
1057 PINMUX_IPSR_MSEL(IP4_18_16, TX2_E, SEL_SCIF2_4),
1058 PINMUX_IPSR_MSEL(IP4_18_16, HRTS1_N_E, SEL_HSCIF1_4),
1059 PINMUX_IPSR_GPSR(IP4_19, SSI_SCK34),
1060 PINMUX_IPSR_GPSR(IP4_20, SSI_WS34),
1061 PINMUX_IPSR_GPSR(IP4_21, SSI_SDATA3),
1062 PINMUX_IPSR_GPSR(IP4_23_22, SSI_SCK4),
1063 PINMUX_IPSR_MSEL(IP4_23_22, GLO_SS_D, SEL_GPS_3),
1064 PINMUX_IPSR_GPSR(IP4_25_24, SSI_WS4),
1065 PINMUX_IPSR_MSEL(IP4_25_24, GLO_RFON_D, SEL_GPS_3),
1066 PINMUX_IPSR_GPSR(IP4_27_26, SSI_SDATA4),
1067 PINMUX_IPSR_MSEL(IP4_27_26, MSIOF2_SCK_D, SEL_SOF2_3),
1068 PINMUX_IPSR_GPSR(IP4_30_28, SSI_SCK5),
1069 PINMUX_IPSR_MSEL(IP4_30_28, MSIOF1_SCK_C, SEL_SOF1_2),
1070 PINMUX_IPSR_MSEL(IP4_30_28, TS_SDATA0, SEL_TSIF0_0),
1071 PINMUX_IPSR_MSEL(IP4_30_28, GLO_I0, SEL_GPS_0),
1072 PINMUX_IPSR_MSEL(IP4_30_28, MSIOF2_SYNC_D, SEL_SOF2_3),
1073 PINMUX_IPSR_GPSR(IP4_30_28, VI1_R2_B),
1074
1075 /* IPSR5 */
1076 PINMUX_IPSR_GPSR(IP5_2_0, SSI_WS5),
1077 PINMUX_IPSR_MSEL(IP5_2_0, MSIOF1_SYNC_C, SEL_SOF1_2),
1078 PINMUX_IPSR_MSEL(IP5_2_0, TS_SCK0, SEL_TSIF0_0),
1079 PINMUX_IPSR_MSEL(IP5_2_0, GLO_I1, SEL_GPS_0),
1080 PINMUX_IPSR_MSEL(IP5_2_0, MSIOF2_TXD_D, SEL_SOF2_3),
1081 PINMUX_IPSR_GPSR(IP5_2_0, VI1_R3_B),
1082 PINMUX_IPSR_GPSR(IP5_5_3, SSI_SDATA5),
1083 PINMUX_IPSR_MSEL(IP5_5_3, MSIOF1_TXD_C, SEL_SOF1_2),
1084 PINMUX_IPSR_MSEL(IP5_5_3, TS_SDEN0, SEL_TSIF0_0),
1085 PINMUX_IPSR_MSEL(IP5_5_3, GLO_Q0, SEL_GPS_0),
1086 PINMUX_IPSR_MSEL(IP5_5_3, MSIOF2_SS1_D, SEL_SOF2_3),
1087 PINMUX_IPSR_GPSR(IP5_5_3, VI1_R4_B),
1088 PINMUX_IPSR_GPSR(IP5_8_6, SSI_SCK6),
1089 PINMUX_IPSR_MSEL(IP5_8_6, MSIOF1_RXD_C, SEL_SOF1_2),
1090 PINMUX_IPSR_MSEL(IP5_8_6, TS_SPSYNC0, SEL_TSIF0_0),
1091 PINMUX_IPSR_MSEL(IP5_8_6, GLO_Q1, SEL_GPS_0),
1092 PINMUX_IPSR_MSEL(IP5_8_6, MSIOF2_RXD_D, SEL_SOF2_3),
1093 PINMUX_IPSR_GPSR(IP5_8_6, VI1_R5_B),
1094 PINMUX_IPSR_GPSR(IP5_11_9, SSI_WS6),
1095 PINMUX_IPSR_MSEL(IP5_11_9, GLO_SCLK, SEL_GPS_0),
1096 PINMUX_IPSR_MSEL(IP5_11_9, MSIOF2_SS2_D, SEL_SOF2_3),
1097 PINMUX_IPSR_GPSR(IP5_11_9, VI1_R6_B),
1098 PINMUX_IPSR_GPSR(IP5_14_12, SSI_SDATA6),
1099 PINMUX_IPSR_MSEL(IP5_14_12, STP_IVCXO27_0_B, SEL_SSP_1),
1100 PINMUX_IPSR_MSEL(IP5_14_12, GLO_SDATA, SEL_GPS_0),
1101 PINMUX_IPSR_GPSR(IP5_14_12, VI1_R7_B),
1102 PINMUX_IPSR_MSEL(IP5_16_15, SSI_SCK78, SEL_SSI7_0),
1103 PINMUX_IPSR_MSEL(IP5_16_15, STP_ISCLK_0_B, SEL_SSP_1),
1104 PINMUX_IPSR_MSEL(IP5_16_15, GLO_SS, SEL_GPS_0),
1105 PINMUX_IPSR_MSEL(IP5_19_17, SSI_WS78, SEL_SSI7_0),
1106 PINMUX_IPSR_MSEL(IP5_19_17, TX0_D, SEL_SCIF0_3),
1107 PINMUX_IPSR_MSEL(IP5_19_17, STP_ISD_0_B, SEL_SSP_1),
1108 PINMUX_IPSR_MSEL(IP5_19_17, GLO_RFON, SEL_GPS_0),
1109 PINMUX_IPSR_MSEL(IP5_21_20, SSI_SDATA7, SEL_SSI7_0),
1110 PINMUX_IPSR_MSEL(IP5_21_20, RX0_D, SEL_SCIF0_3),
1111 PINMUX_IPSR_MSEL(IP5_21_20, STP_ISEN_0_B, SEL_SSP_1),
1112 PINMUX_IPSR_MSEL(IP5_23_22, SSI_SDATA8, SEL_SSI8_0),
1113 PINMUX_IPSR_MSEL(IP5_23_22, TX1_D, SEL_SCIF1_3),
1114 PINMUX_IPSR_MSEL(IP5_23_22, STP_ISSYNC_0_B, SEL_SSP_1),
1115 PINMUX_IPSR_MSEL(IP5_25_24, SSI_SCK9, SEL_SSI9_0),
1116 PINMUX_IPSR_MSEL(IP5_25_24, RX1_D, SEL_SCIF1_3),
1117 PINMUX_IPSR_MSEL(IP5_25_24, GLO_SCLK_D, SEL_GPS_3),
1118 PINMUX_IPSR_MSEL(IP5_28_26, SSI_WS9, SEL_SSI9_0),
1119 PINMUX_IPSR_MSEL(IP5_28_26, TX3_D, SEL_SCIF3_3),
1120 PINMUX_IPSR_MSEL(IP5_28_26, CAN0_TX_D, SEL_CAN0_3),
1121 PINMUX_IPSR_MSEL(IP5_28_26, GLO_SDATA_D, SEL_GPS_3),
1122 PINMUX_IPSR_MSEL(IP5_31_29, SSI_SDATA9, SEL_SSI9_0),
1123 PINMUX_IPSR_MSEL(IP5_31_29, RX3_D, SEL_SCIF3_3),
1124 PINMUX_IPSR_MSEL(IP5_31_29, CAN0_RX_D, SEL_CAN0_3),
1125
1126 /* IPSR6 */
1127 PINMUX_IPSR_MSEL(IP6_2_0, AUDIO_CLKB, SEL_ADG_0),
1128 PINMUX_IPSR_MSEL(IP6_2_0, STP_OPWM_0_B, SEL_SSP_1),
1129 PINMUX_IPSR_MSEL(IP6_2_0, MSIOF1_SCK_B, SEL_SOF1_1),
1130 PINMUX_IPSR_MSEL(IP6_2_0, SCIF_CLK, SEL_SCIF_0),
1131 PINMUX_IPSR_GPSR(IP6_2_0, DVC_MUTE),
1132 PINMUX_IPSR_MSEL(IP6_2_0, BPFCLK_E, SEL_FM_4),
1133 PINMUX_IPSR_GPSR(IP6_5_3, AUDIO_CLKC),
1134 PINMUX_IPSR_MSEL(IP6_5_3, SCIFB0_SCK_C, SEL_SCIFB_2),
1135 PINMUX_IPSR_MSEL(IP6_5_3, MSIOF1_SYNC_B, SEL_SOF1_1),
1136 PINMUX_IPSR_MSEL(IP6_5_3, RX2, SEL_SCIF2_0),
1137 PINMUX_IPSR_MSEL(IP6_5_3, SCIFA2_RXD, SEL_SCIFA2_0),
1138 PINMUX_IPSR_MSEL(IP6_5_3, FMIN_E, SEL_FM_4),
1139 PINMUX_IPSR_GPSR(IP6_7_6, AUDIO_CLKOUT),
1140 PINMUX_IPSR_MSEL(IP6_7_6, MSIOF1_SS1_B, SEL_SOF1_1),
1141 PINMUX_IPSR_MSEL(IP6_7_6, TX2, SEL_SCIF2_0),
1142 PINMUX_IPSR_MSEL(IP6_7_6, SCIFA2_TXD, SEL_SCIFA2_0),
1143 PINMUX_IPSR_GPSR(IP6_9_8, IRQ0),
1144 PINMUX_IPSR_MSEL(IP6_9_8, SCIFB1_RXD_D, SEL_SCIFB1_3),
Marek Vasut06ef9e82018-01-17 17:14:45 +01001145 PINMUX_IPSR_GPSR(IP6_11_10, IRQ1),
1146 PINMUX_IPSR_MSEL(IP6_11_10, SCIFB1_SCK_C, SEL_SCIFB1_2),
Marek Vasut06ef9e82018-01-17 17:14:45 +01001147 PINMUX_IPSR_GPSR(IP6_13_12, IRQ2),
1148 PINMUX_IPSR_MSEL(IP6_13_12, SCIFB1_TXD_D, SEL_SCIFB1_3),
Marek Vasut06ef9e82018-01-17 17:14:45 +01001149 PINMUX_IPSR_GPSR(IP6_15_14, IRQ3),
1150 PINMUX_IPSR_MSEL(IP6_15_14, I2C4_SCL_C, SEL_I2C4_2),
1151 PINMUX_IPSR_MSEL(IP6_15_14, MSIOF2_TXD_E, SEL_SOF2_4),
Marek Vasut06ef9e82018-01-17 17:14:45 +01001152 PINMUX_IPSR_GPSR(IP6_18_16, IRQ4),
1153 PINMUX_IPSR_MSEL(IP6_18_16, HRX1_C, SEL_HSCIF1_2),
1154 PINMUX_IPSR_MSEL(IP6_18_16, I2C4_SDA_C, SEL_I2C4_2),
1155 PINMUX_IPSR_MSEL(IP6_18_16, MSIOF2_RXD_E, SEL_SOF2_4),
Marek Vasut06ef9e82018-01-17 17:14:45 +01001156 PINMUX_IPSR_GPSR(IP6_20_19, IRQ5),
1157 PINMUX_IPSR_MSEL(IP6_20_19, HTX1_C, SEL_HSCIF1_2),
1158 PINMUX_IPSR_MSEL(IP6_20_19, I2C1_SCL_E, SEL_I2C1_4),
1159 PINMUX_IPSR_MSEL(IP6_20_19, MSIOF2_SCK_E, SEL_SOF2_4),
1160 PINMUX_IPSR_GPSR(IP6_23_21, IRQ6),
1161 PINMUX_IPSR_MSEL(IP6_23_21, HSCK1_C, SEL_HSCIF1_2),
1162 PINMUX_IPSR_MSEL(IP6_23_21, MSIOF1_SS2_B, SEL_SOF1_1),
1163 PINMUX_IPSR_MSEL(IP6_23_21, I2C1_SDA_E, SEL_I2C1_4),
1164 PINMUX_IPSR_MSEL(IP6_23_21, MSIOF2_SYNC_E, SEL_SOF2_4),
1165 PINMUX_IPSR_GPSR(IP6_26_24, IRQ7),
1166 PINMUX_IPSR_MSEL(IP6_26_24, HCTS1_N_C, SEL_HSCIF1_2),
1167 PINMUX_IPSR_MSEL(IP6_26_24, MSIOF1_TXD_B, SEL_SOF1_1),
1168 PINMUX_IPSR_MSEL(IP6_26_24, GPS_CLK_C, SEL_GPS_2),
1169 PINMUX_IPSR_MSEL(IP6_26_24, GPS_CLK_D, SEL_GPS_3),
1170 PINMUX_IPSR_GPSR(IP6_29_27, IRQ8),
1171 PINMUX_IPSR_MSEL(IP6_29_27, HRTS1_N_C, SEL_HSCIF1_2),
1172 PINMUX_IPSR_MSEL(IP6_29_27, MSIOF1_RXD_B, SEL_SOF1_1),
1173 PINMUX_IPSR_MSEL(IP6_29_27, GPS_SIGN_C, SEL_GPS_2),
1174 PINMUX_IPSR_MSEL(IP6_29_27, GPS_SIGN_D, SEL_GPS_3),
1175
1176 /* IPSR7 */
1177 PINMUX_IPSR_GPSR(IP7_2_0, IRQ9),
1178 PINMUX_IPSR_MSEL(IP7_2_0, DU1_DOTCLKIN_B, SEL_DIS_1),
1179 PINMUX_IPSR_MSEL(IP7_2_0, CAN_CLK_D, SEL_CANCLK_3),
1180 PINMUX_IPSR_MSEL(IP7_2_0, GPS_MAG_C, SEL_GPS_2),
1181 PINMUX_IPSR_MSEL(IP7_2_0, SCIF_CLK_B, SEL_SCIF_1),
1182 PINMUX_IPSR_MSEL(IP7_2_0, GPS_MAG_D, SEL_GPS_3),
1183 PINMUX_IPSR_GPSR(IP7_5_3, DU1_DR0),
1184 PINMUX_IPSR_GPSR(IP7_5_3, LCDOUT0),
1185 PINMUX_IPSR_MSEL(IP7_5_3, VI1_DATA0_B, SEL_VI1_1),
1186 PINMUX_IPSR_MSEL(IP7_5_3, TX0_B, SEL_SCIF0_1),
1187 PINMUX_IPSR_MSEL(IP7_5_3, SCIFA0_TXD_B, SEL_SCFA_1),
1188 PINMUX_IPSR_MSEL(IP7_5_3, MSIOF2_SCK_B, SEL_SOF2_1),
1189 PINMUX_IPSR_GPSR(IP7_8_6, DU1_DR1),
1190 PINMUX_IPSR_GPSR(IP7_8_6, LCDOUT1),
1191 PINMUX_IPSR_MSEL(IP7_8_6, VI1_DATA1_B, SEL_VI1_1),
1192 PINMUX_IPSR_MSEL(IP7_8_6, RX0_B, SEL_SCIF0_1),
1193 PINMUX_IPSR_MSEL(IP7_8_6, SCIFA0_RXD_B, SEL_SCFA_1),
1194 PINMUX_IPSR_MSEL(IP7_8_6, MSIOF2_SYNC_B, SEL_SOF2_1),
1195 PINMUX_IPSR_GPSR(IP7_10_9, DU1_DR2),
1196 PINMUX_IPSR_GPSR(IP7_10_9, LCDOUT2),
1197 PINMUX_IPSR_MSEL(IP7_10_9, SSI_SCK0129_B, SEL_SSI0_1),
1198 PINMUX_IPSR_GPSR(IP7_12_11, DU1_DR3),
1199 PINMUX_IPSR_GPSR(IP7_12_11, LCDOUT3),
1200 PINMUX_IPSR_MSEL(IP7_12_11, SSI_WS0129_B, SEL_SSI0_1),
1201 PINMUX_IPSR_GPSR(IP7_14_13, DU1_DR4),
1202 PINMUX_IPSR_GPSR(IP7_14_13, LCDOUT4),
1203 PINMUX_IPSR_MSEL(IP7_14_13, SSI_SDATA0_B, SEL_SSI0_1),
1204 PINMUX_IPSR_GPSR(IP7_16_15, DU1_DR5),
1205 PINMUX_IPSR_GPSR(IP7_16_15, LCDOUT5),
1206 PINMUX_IPSR_MSEL(IP7_16_15, SSI_SCK1_B, SEL_SSI1_1),
1207 PINMUX_IPSR_GPSR(IP7_18_17, DU1_DR6),
1208 PINMUX_IPSR_GPSR(IP7_18_17, LCDOUT6),
1209 PINMUX_IPSR_MSEL(IP7_18_17, SSI_WS1_B, SEL_SSI1_1),
1210 PINMUX_IPSR_GPSR(IP7_20_19, DU1_DR7),
1211 PINMUX_IPSR_GPSR(IP7_20_19, LCDOUT7),
1212 PINMUX_IPSR_MSEL(IP7_20_19, SSI_SDATA1_B, SEL_SSI1_1),
1213 PINMUX_IPSR_GPSR(IP7_23_21, DU1_DG0),
1214 PINMUX_IPSR_GPSR(IP7_23_21, LCDOUT8),
1215 PINMUX_IPSR_MSEL(IP7_23_21, VI1_DATA2_B, SEL_VI1_1),
1216 PINMUX_IPSR_MSEL(IP7_23_21, TX1_B, SEL_SCIF1_1),
1217 PINMUX_IPSR_MSEL(IP7_23_21, SCIFA1_TXD_B, SEL_SCIFA1_1),
1218 PINMUX_IPSR_MSEL(IP7_23_21, MSIOF2_SS1_B, SEL_SOF2_1),
1219 PINMUX_IPSR_GPSR(IP7_26_24, DU1_DG1),
1220 PINMUX_IPSR_GPSR(IP7_26_24, LCDOUT9),
1221 PINMUX_IPSR_MSEL(IP7_26_24, VI1_DATA3_B, SEL_VI1_1),
1222 PINMUX_IPSR_MSEL(IP7_26_24, RX1_B, SEL_SCIF1_1),
1223 PINMUX_IPSR_MSEL(IP7_26_24, SCIFA1_RXD_B, SEL_SCIFA1_1),
1224 PINMUX_IPSR_MSEL(IP7_26_24, MSIOF2_SS2_B, SEL_SOF2_1),
1225 PINMUX_IPSR_GPSR(IP7_29_27, DU1_DG2),
1226 PINMUX_IPSR_GPSR(IP7_29_27, LCDOUT10),
1227 PINMUX_IPSR_MSEL(IP7_29_27, VI1_DATA4_B, SEL_VI1_1),
1228 PINMUX_IPSR_GPSR(IP7_29_27, SCIF1_SCK_B),
1229 PINMUX_IPSR_MSEL(IP7_29_27, SCIFA1_SCK, SEL_SCIFA1_0),
1230 PINMUX_IPSR_MSEL(IP7_29_27, SSI_SCK78_B, SEL_SSI7_1),
1231
1232 /* IPSR8 */
1233 PINMUX_IPSR_GPSR(IP8_2_0, DU1_DG3),
1234 PINMUX_IPSR_GPSR(IP8_2_0, LCDOUT11),
1235 PINMUX_IPSR_MSEL(IP8_2_0, VI1_DATA5_B, SEL_VI1_1),
1236 PINMUX_IPSR_MSEL(IP8_2_0, SSI_WS78_B, SEL_SSI7_1),
1237 PINMUX_IPSR_GPSR(IP8_5_3, DU1_DG4),
1238 PINMUX_IPSR_GPSR(IP8_5_3, LCDOUT12),
1239 PINMUX_IPSR_MSEL(IP8_5_3, VI1_DATA6_B, SEL_VI1_1),
1240 PINMUX_IPSR_MSEL(IP8_5_3, HRX0_B, SEL_HSCIF0_1),
1241 PINMUX_IPSR_MSEL(IP8_5_3, SCIFB2_RXD_B, SEL_SCIFB2_1),
1242 PINMUX_IPSR_MSEL(IP8_5_3, SSI_SDATA7_B, SEL_SSI7_1),
1243 PINMUX_IPSR_GPSR(IP8_8_6, DU1_DG5),
1244 PINMUX_IPSR_GPSR(IP8_8_6, LCDOUT13),
1245 PINMUX_IPSR_MSEL(IP8_8_6, VI1_DATA7_B, SEL_VI1_1),
1246 PINMUX_IPSR_MSEL(IP8_8_6, HCTS0_N_B, SEL_HSCIF0_1),
1247 PINMUX_IPSR_MSEL(IP8_8_6, SCIFB2_TXD_B, SEL_SCIFB2_1),
1248 PINMUX_IPSR_MSEL(IP8_8_6, SSI_SDATA8_B, SEL_SSI8_1),
1249 PINMUX_IPSR_GPSR(IP8_11_9, DU1_DG6),
1250 PINMUX_IPSR_GPSR(IP8_11_9, LCDOUT14),
1251 PINMUX_IPSR_MSEL(IP8_11_9, HRTS0_N_B, SEL_HSCIF0_1),
1252 PINMUX_IPSR_MSEL(IP8_11_9, SCIFB2_CTS_N_B, SEL_SCIFB2_1),
1253 PINMUX_IPSR_MSEL(IP8_11_9, SSI_SCK9_B, SEL_SSI9_1),
1254 PINMUX_IPSR_GPSR(IP8_14_12, DU1_DG7),
1255 PINMUX_IPSR_GPSR(IP8_14_12, LCDOUT15),
1256 PINMUX_IPSR_MSEL(IP8_14_12, HTX0_B, SEL_HSCIF0_1),
1257 PINMUX_IPSR_MSEL(IP8_14_12, SCIFB2_RTS_N_B, SEL_SCIFB2_1),
1258 PINMUX_IPSR_MSEL(IP8_14_12, SSI_WS9_B, SEL_SSI9_1),
1259 PINMUX_IPSR_GPSR(IP8_17_15, DU1_DB0),
1260 PINMUX_IPSR_GPSR(IP8_17_15, LCDOUT16),
1261 PINMUX_IPSR_MSEL(IP8_17_15, VI1_CLK_B, SEL_VI1_1),
1262 PINMUX_IPSR_MSEL(IP8_17_15, TX2_B, SEL_SCIF2_1),
1263 PINMUX_IPSR_MSEL(IP8_17_15, SCIFA2_TXD_B, SEL_SCIFA2_1),
1264 PINMUX_IPSR_MSEL(IP8_17_15, MSIOF2_TXD_B, SEL_SOF2_1),
1265 PINMUX_IPSR_GPSR(IP8_20_18, DU1_DB1),
1266 PINMUX_IPSR_GPSR(IP8_20_18, LCDOUT17),
1267 PINMUX_IPSR_MSEL(IP8_20_18, VI1_HSYNC_N_B, SEL_VI1_1),
1268 PINMUX_IPSR_MSEL(IP8_20_18, RX2_B, SEL_SCIF2_1),
1269 PINMUX_IPSR_MSEL(IP8_20_18, SCIFA2_RXD_B, SEL_SCIFA2_1),
1270 PINMUX_IPSR_MSEL(IP8_20_18, MSIOF2_RXD_B, SEL_SOF2_1),
1271 PINMUX_IPSR_GPSR(IP8_23_21, DU1_DB2),
1272 PINMUX_IPSR_GPSR(IP8_23_21, LCDOUT18),
1273 PINMUX_IPSR_MSEL(IP8_23_21, VI1_VSYNC_N_B, SEL_VI1_1),
1274 PINMUX_IPSR_GPSR(IP8_23_21, SCIF2_SCK_B),
1275 PINMUX_IPSR_MSEL(IP8_23_21, SCIFA2_SCK, SEL_SCIFA2_1),
1276 PINMUX_IPSR_MSEL(IP8_23_21, SSI_SDATA9_B, SEL_SSI9_1),
1277 PINMUX_IPSR_GPSR(IP8_25_24, DU1_DB3),
1278 PINMUX_IPSR_GPSR(IP8_25_24, LCDOUT19),
1279 PINMUX_IPSR_MSEL(IP8_25_24, VI1_CLKENB_B, SEL_VI1_1),
1280 PINMUX_IPSR_GPSR(IP8_27_26, DU1_DB4),
1281 PINMUX_IPSR_GPSR(IP8_27_26, LCDOUT20),
1282 PINMUX_IPSR_MSEL(IP8_27_26, VI1_FIELD_B, SEL_VI1_1),
1283 PINMUX_IPSR_MSEL(IP8_27_26, CAN1_RX, SEL_CAN1_0),
1284 PINMUX_IPSR_GPSR(IP8_30_28, DU1_DB5),
1285 PINMUX_IPSR_GPSR(IP8_30_28, LCDOUT21),
1286 PINMUX_IPSR_MSEL(IP8_30_28, TX3, SEL_SCIF3_0),
1287 PINMUX_IPSR_MSEL(IP8_30_28, SCIFA3_TXD, SEL_SCIFA3_0),
1288 PINMUX_IPSR_MSEL(IP8_30_28, CAN1_TX, SEL_CAN1_0),
1289
1290 /* IPSR9 */
1291 PINMUX_IPSR_GPSR(IP9_2_0, DU1_DB6),
1292 PINMUX_IPSR_GPSR(IP9_2_0, LCDOUT22),
1293 PINMUX_IPSR_MSEL(IP9_2_0, I2C3_SCL_C, SEL_I2C3_2),
1294 PINMUX_IPSR_MSEL(IP9_2_0, RX3, SEL_SCIF3_0),
1295 PINMUX_IPSR_MSEL(IP9_2_0, SCIFA3_RXD, SEL_SCIFA3_0),
1296 PINMUX_IPSR_GPSR(IP9_5_3, DU1_DB7),
1297 PINMUX_IPSR_GPSR(IP9_5_3, LCDOUT23),
1298 PINMUX_IPSR_MSEL(IP9_5_3, I2C3_SDA_C, SEL_I2C3_2),
1299 PINMUX_IPSR_MSEL(IP9_5_3, SCIF3_SCK, SEL_SCIF3_0),
1300 PINMUX_IPSR_MSEL(IP9_5_3, SCIFA3_SCK, SEL_SCIFA3_0),
1301 PINMUX_IPSR_MSEL(IP9_6, DU1_DOTCLKIN, SEL_DIS_0),
1302 PINMUX_IPSR_GPSR(IP9_6, QSTVA_QVS),
1303 PINMUX_IPSR_GPSR(IP9_7, DU1_DOTCLKOUT0),
1304 PINMUX_IPSR_GPSR(IP9_7, QCLK),
1305 PINMUX_IPSR_GPSR(IP9_10_8, DU1_DOTCLKOUT1),
1306 PINMUX_IPSR_GPSR(IP9_10_8, QSTVB_QVE),
1307 PINMUX_IPSR_MSEL(IP9_10_8, CAN0_TX, SEL_CAN0_0),
1308 PINMUX_IPSR_MSEL(IP9_10_8, TX3_B, SEL_SCIF3_1),
1309 PINMUX_IPSR_MSEL(IP9_10_8, I2C2_SCL_B, SEL_I2C2_1),
1310 PINMUX_IPSR_GPSR(IP9_10_8, PWM4),
1311 PINMUX_IPSR_GPSR(IP9_11, DU1_EXHSYNC_DU1_HSYNC),
1312 PINMUX_IPSR_GPSR(IP9_11, QSTH_QHS),
1313 PINMUX_IPSR_GPSR(IP9_12, DU1_EXVSYNC_DU1_VSYNC),
1314 PINMUX_IPSR_GPSR(IP9_12, QSTB_QHE),
1315 PINMUX_IPSR_GPSR(IP9_15_13, DU1_EXODDF_DU1_ODDF_DISP_CDE),
1316 PINMUX_IPSR_GPSR(IP9_15_13, QCPV_QDE),
1317 PINMUX_IPSR_MSEL(IP9_15_13, CAN0_RX, SEL_CAN0_0),
1318 PINMUX_IPSR_MSEL(IP9_15_13, RX3_B, SEL_SCIF3_1),
1319 PINMUX_IPSR_MSEL(IP9_15_13, I2C2_SDA_B, SEL_I2C2_1),
1320 PINMUX_IPSR_GPSR(IP9_16, DU1_DISP),
1321 PINMUX_IPSR_GPSR(IP9_16, QPOLA),
1322 PINMUX_IPSR_GPSR(IP9_18_17, DU1_CDE),
1323 PINMUX_IPSR_GPSR(IP9_18_17, QPOLB),
1324 PINMUX_IPSR_GPSR(IP9_18_17, PWM4_B),
1325 PINMUX_IPSR_GPSR(IP9_20_19, VI0_CLKENB),
1326 PINMUX_IPSR_MSEL(IP9_20_19, TX4, SEL_SCIF4_0),
1327 PINMUX_IPSR_MSEL(IP9_20_19, SCIFA4_TXD, SEL_SCIFA4_0),
1328 PINMUX_IPSR_MSEL(IP9_20_19, TS_SDATA0_D, SEL_TSIF0_3),
1329 PINMUX_IPSR_GPSR(IP9_22_21, VI0_FIELD),
1330 PINMUX_IPSR_MSEL(IP9_22_21, RX4, SEL_SCIF4_0),
1331 PINMUX_IPSR_MSEL(IP9_22_21, SCIFA4_RXD, SEL_SCIFA4_0),
1332 PINMUX_IPSR_MSEL(IP9_22_21, TS_SCK0_D, SEL_TSIF0_3),
1333 PINMUX_IPSR_GPSR(IP9_24_23, VI0_HSYNC_N),
1334 PINMUX_IPSR_MSEL(IP9_24_23, TX5, SEL_SCIF5_0),
1335 PINMUX_IPSR_MSEL(IP9_24_23, SCIFA5_TXD, SEL_SCIFA5_0),
1336 PINMUX_IPSR_MSEL(IP9_24_23, TS_SDEN0_D, SEL_TSIF0_3),
1337 PINMUX_IPSR_GPSR(IP9_26_25, VI0_VSYNC_N),
1338 PINMUX_IPSR_MSEL(IP9_26_25, RX5, SEL_SCIF5_0),
1339 PINMUX_IPSR_MSEL(IP9_26_25, SCIFA5_RXD, SEL_SCIFA5_0),
1340 PINMUX_IPSR_MSEL(IP9_26_25, TS_SPSYNC0_D, SEL_TSIF0_3),
1341 PINMUX_IPSR_GPSR(IP9_28_27, VI0_DATA3_VI0_B3),
1342 PINMUX_IPSR_MSEL(IP9_28_27, SCIF3_SCK_B, SEL_SCIF3_1),
1343 PINMUX_IPSR_MSEL(IP9_28_27, SCIFA3_SCK_B, SEL_SCIFA3_1),
1344 PINMUX_IPSR_GPSR(IP9_31_29, VI0_G0),
1345 PINMUX_IPSR_MSEL(IP9_31_29, IIC1_SCL, SEL_IIC1_0),
1346 PINMUX_IPSR_MSEL(IP9_31_29, STP_IVCXO27_0_C, SEL_SSP_2),
1347 PINMUX_IPSR_MSEL(IP9_31_29, I2C4_SCL, SEL_I2C4_0),
1348 PINMUX_IPSR_MSEL(IP9_31_29, HCTS2_N, SEL_HSCIF2_0),
1349 PINMUX_IPSR_MSEL(IP9_31_29, SCIFB2_CTS_N, SEL_SCIFB2_0),
1350 PINMUX_IPSR_GPSR(IP9_31_29, ATAWR1_N),
1351
1352 /* IPSR10 */
1353 PINMUX_IPSR_GPSR(IP10_2_0, VI0_G1),
1354 PINMUX_IPSR_MSEL(IP10_2_0, IIC1_SDA, SEL_IIC1_0),
1355 PINMUX_IPSR_MSEL(IP10_2_0, STP_ISCLK_0_C, SEL_SSP_2),
1356 PINMUX_IPSR_MSEL(IP10_2_0, I2C4_SDA, SEL_I2C4_0),
1357 PINMUX_IPSR_MSEL(IP10_2_0, HRTS2_N, SEL_HSCIF2_0),
1358 PINMUX_IPSR_MSEL(IP10_2_0, SCIFB2_RTS_N, SEL_SCIFB2_0),
1359 PINMUX_IPSR_GPSR(IP10_2_0, ATADIR1_N),
1360 PINMUX_IPSR_GPSR(IP10_5_3, VI0_G2),
1361 PINMUX_IPSR_GPSR(IP10_5_3, VI2_HSYNC_N),
1362 PINMUX_IPSR_MSEL(IP10_5_3, STP_ISD_0_C, SEL_SSP_2),
1363 PINMUX_IPSR_MSEL(IP10_5_3, I2C3_SCL_B, SEL_I2C3_1),
1364 PINMUX_IPSR_MSEL(IP10_5_3, HSCK2, SEL_HSCIF2_0),
1365 PINMUX_IPSR_MSEL(IP10_5_3, SCIFB2_SCK, SEL_SCIFB2_0),
1366 PINMUX_IPSR_GPSR(IP10_5_3, ATARD1_N),
1367 PINMUX_IPSR_GPSR(IP10_8_6, VI0_G3),
1368 PINMUX_IPSR_GPSR(IP10_8_6, VI2_VSYNC_N),
1369 PINMUX_IPSR_MSEL(IP10_8_6, STP_ISEN_0_C, SEL_SSP_2),
1370 PINMUX_IPSR_MSEL(IP10_8_6, I2C3_SDA_B, SEL_I2C3_1),
1371 PINMUX_IPSR_MSEL(IP10_8_6, HRX2, SEL_HSCIF2_0),
1372 PINMUX_IPSR_MSEL(IP10_8_6, SCIFB2_RXD, SEL_SCIFB2_0),
1373 PINMUX_IPSR_GPSR(IP10_8_6, ATACS01_N),
1374 PINMUX_IPSR_GPSR(IP10_11_9, VI0_G4),
1375 PINMUX_IPSR_GPSR(IP10_11_9, VI2_CLKENB),
1376 PINMUX_IPSR_MSEL(IP10_11_9, STP_ISSYNC_0_C, SEL_SSP_2),
1377 PINMUX_IPSR_MSEL(IP10_11_9, HTX2, SEL_HSCIF2_0),
1378 PINMUX_IPSR_MSEL(IP10_11_9, SCIFB2_TXD, SEL_SCIFB2_0),
1379 PINMUX_IPSR_MSEL(IP10_11_9, SCIFB0_SCK_D, SEL_SCIFB_3),
1380 PINMUX_IPSR_GPSR(IP10_14_12, VI0_G5),
1381 PINMUX_IPSR_GPSR(IP10_14_12, VI2_FIELD),
1382 PINMUX_IPSR_MSEL(IP10_14_12, STP_OPWM_0_C, SEL_SSP_2),
1383 PINMUX_IPSR_MSEL(IP10_14_12, FMCLK_D, SEL_FM_3),
1384 PINMUX_IPSR_MSEL(IP10_14_12, CAN0_TX_E, SEL_CAN0_4),
1385 PINMUX_IPSR_MSEL(IP10_14_12, HTX1_D, SEL_HSCIF1_3),
1386 PINMUX_IPSR_MSEL(IP10_14_12, SCIFB0_TXD_D, SEL_SCIFB_3),
1387 PINMUX_IPSR_GPSR(IP10_16_15, VI0_G6),
1388 PINMUX_IPSR_GPSR(IP10_16_15, VI2_CLK),
1389 PINMUX_IPSR_MSEL(IP10_16_15, BPFCLK_D, SEL_FM_3),
1390 PINMUX_IPSR_GPSR(IP10_18_17, VI0_G7),
1391 PINMUX_IPSR_GPSR(IP10_18_17, VI2_DATA0),
1392 PINMUX_IPSR_MSEL(IP10_18_17, FMIN_D, SEL_FM_3),
1393 PINMUX_IPSR_GPSR(IP10_21_19, VI0_R0),
1394 PINMUX_IPSR_GPSR(IP10_21_19, VI2_DATA1),
1395 PINMUX_IPSR_MSEL(IP10_21_19, GLO_I0_B, SEL_GPS_1),
1396 PINMUX_IPSR_MSEL(IP10_21_19, TS_SDATA0_C, SEL_TSIF0_2),
1397 PINMUX_IPSR_GPSR(IP10_21_19, ATACS11_N),
1398 PINMUX_IPSR_GPSR(IP10_24_22, VI0_R1),
1399 PINMUX_IPSR_GPSR(IP10_24_22, VI2_DATA2),
1400 PINMUX_IPSR_MSEL(IP10_24_22, GLO_I1_B, SEL_GPS_1),
1401 PINMUX_IPSR_MSEL(IP10_24_22, TS_SCK0_C, SEL_TSIF0_2),
1402 PINMUX_IPSR_GPSR(IP10_24_22, ATAG1_N),
1403 PINMUX_IPSR_GPSR(IP10_26_25, VI0_R2),
1404 PINMUX_IPSR_GPSR(IP10_26_25, VI2_DATA3),
1405 PINMUX_IPSR_MSEL(IP10_26_25, GLO_Q0_B, SEL_GPS_1),
1406 PINMUX_IPSR_MSEL(IP10_26_25, TS_SDEN0_C, SEL_TSIF0_2),
1407 PINMUX_IPSR_GPSR(IP10_28_27, VI0_R3),
1408 PINMUX_IPSR_GPSR(IP10_28_27, VI2_DATA4),
1409 PINMUX_IPSR_MSEL(IP10_28_27, GLO_Q1_B, SEL_GPS_1),
1410 PINMUX_IPSR_MSEL(IP10_28_27, TS_SPSYNC0_C, SEL_TSIF0_2),
1411 PINMUX_IPSR_GPSR(IP10_31_29, VI0_R4),
1412 PINMUX_IPSR_GPSR(IP10_31_29, VI2_DATA5),
1413 PINMUX_IPSR_MSEL(IP10_31_29, GLO_SCLK_B, SEL_GPS_1),
1414 PINMUX_IPSR_MSEL(IP10_31_29, TX0_C, SEL_SCIF0_2),
1415 PINMUX_IPSR_MSEL(IP10_31_29, I2C1_SCL_D, SEL_I2C1_3),
1416
1417 /* IPSR11 */
1418 PINMUX_IPSR_GPSR(IP11_2_0, VI0_R5),
1419 PINMUX_IPSR_GPSR(IP11_2_0, VI2_DATA6),
1420 PINMUX_IPSR_MSEL(IP11_2_0, GLO_SDATA_B, SEL_GPS_1),
1421 PINMUX_IPSR_MSEL(IP11_2_0, RX0_C, SEL_SCIF0_2),
1422 PINMUX_IPSR_MSEL(IP11_2_0, I2C1_SDA_D, SEL_I2C1_3),
1423 PINMUX_IPSR_GPSR(IP11_5_3, VI0_R6),
1424 PINMUX_IPSR_GPSR(IP11_5_3, VI2_DATA7),
1425 PINMUX_IPSR_MSEL(IP11_5_3, GLO_SS_B, SEL_GPS_1),
1426 PINMUX_IPSR_MSEL(IP11_5_3, TX1_C, SEL_SCIF1_2),
1427 PINMUX_IPSR_MSEL(IP11_5_3, I2C4_SCL_B, SEL_I2C4_1),
1428 PINMUX_IPSR_GPSR(IP11_8_6, VI0_R7),
1429 PINMUX_IPSR_MSEL(IP11_8_6, GLO_RFON_B, SEL_GPS_1),
1430 PINMUX_IPSR_MSEL(IP11_8_6, RX1_C, SEL_SCIF1_2),
1431 PINMUX_IPSR_MSEL(IP11_8_6, CAN0_RX_E, SEL_CAN0_4),
1432 PINMUX_IPSR_MSEL(IP11_8_6, I2C4_SDA_B, SEL_I2C4_1),
1433 PINMUX_IPSR_MSEL(IP11_8_6, HRX1_D, SEL_HSCIF1_3),
1434 PINMUX_IPSR_MSEL(IP11_8_6, SCIFB0_RXD_D, SEL_SCIFB_3),
1435 PINMUX_IPSR_MSEL(IP11_11_9, VI1_HSYNC_N, SEL_VI1_0),
1436 PINMUX_IPSR_GPSR(IP11_11_9, AVB_RXD0),
1437 PINMUX_IPSR_MSEL(IP11_11_9, TS_SDATA0_B, SEL_TSIF0_1),
1438 PINMUX_IPSR_MSEL(IP11_11_9, TX4_B, SEL_SCIF4_1),
1439 PINMUX_IPSR_MSEL(IP11_11_9, SCIFA4_TXD_B, SEL_SCIFA4_1),
1440 PINMUX_IPSR_MSEL(IP11_14_12, VI1_VSYNC_N, SEL_VI1_0),
1441 PINMUX_IPSR_GPSR(IP11_14_12, AVB_RXD1),
1442 PINMUX_IPSR_MSEL(IP11_14_12, TS_SCK0_B, SEL_TSIF0_1),
1443 PINMUX_IPSR_MSEL(IP11_14_12, RX4_B, SEL_SCIF4_1),
1444 PINMUX_IPSR_MSEL(IP11_14_12, SCIFA4_RXD_B, SEL_SCIFA4_1),
1445 PINMUX_IPSR_MSEL(IP11_16_15, VI1_CLKENB, SEL_VI1_0),
1446 PINMUX_IPSR_GPSR(IP11_16_15, AVB_RXD2),
1447 PINMUX_IPSR_MSEL(IP11_16_15, TS_SDEN0_B, SEL_TSIF0_1),
1448 PINMUX_IPSR_MSEL(IP11_18_17, VI1_FIELD, SEL_VI1_0),
1449 PINMUX_IPSR_GPSR(IP11_18_17, AVB_RXD3),
1450 PINMUX_IPSR_MSEL(IP11_18_17, TS_SPSYNC0_B, SEL_TSIF0_1),
1451 PINMUX_IPSR_MSEL(IP11_19, VI1_CLK, SEL_VI1_0),
1452 PINMUX_IPSR_GPSR(IP11_19, AVB_RXD4),
1453 PINMUX_IPSR_MSEL(IP11_20, VI1_DATA0, SEL_VI1_0),
1454 PINMUX_IPSR_GPSR(IP11_20, AVB_RXD5),
1455 PINMUX_IPSR_MSEL(IP11_21, VI1_DATA1, SEL_VI1_0),
1456 PINMUX_IPSR_GPSR(IP11_21, AVB_RXD6),
1457 PINMUX_IPSR_MSEL(IP11_22, VI1_DATA2, SEL_VI1_0),
1458 PINMUX_IPSR_GPSR(IP11_22, AVB_RXD7),
1459 PINMUX_IPSR_MSEL(IP11_23, VI1_DATA3, SEL_VI1_0),
1460 PINMUX_IPSR_GPSR(IP11_23, AVB_RX_ER),
1461 PINMUX_IPSR_MSEL(IP11_24, VI1_DATA4, SEL_VI1_0),
1462 PINMUX_IPSR_GPSR(IP11_24, AVB_MDIO),
1463 PINMUX_IPSR_MSEL(IP11_25, VI1_DATA5, SEL_VI1_0),
1464 PINMUX_IPSR_GPSR(IP11_25, AVB_RX_DV),
1465 PINMUX_IPSR_MSEL(IP11_26, VI1_DATA6, SEL_VI1_0),
1466 PINMUX_IPSR_GPSR(IP11_26, AVB_MAGIC),
1467 PINMUX_IPSR_MSEL(IP11_27, VI1_DATA7, SEL_VI1_0),
1468 PINMUX_IPSR_GPSR(IP11_27, AVB_MDC),
1469 PINMUX_IPSR_GPSR(IP11_29_28, ETH_MDIO),
1470 PINMUX_IPSR_GPSR(IP11_29_28, AVB_RX_CLK),
1471 PINMUX_IPSR_MSEL(IP11_29_28, I2C2_SCL_C, SEL_I2C2_2),
1472 PINMUX_IPSR_GPSR(IP11_31_30, ETH_CRS_DV),
1473 PINMUX_IPSR_GPSR(IP11_31_30, AVB_LINK),
1474 PINMUX_IPSR_MSEL(IP11_31_30, I2C2_SDA_C, SEL_I2C2_2),
1475
1476 /* IPSR12 */
1477 PINMUX_IPSR_GPSR(IP12_1_0, ETH_RX_ER),
1478 PINMUX_IPSR_GPSR(IP12_1_0, AVB_CRS),
1479 PINMUX_IPSR_MSEL(IP12_1_0, I2C3_SCL, SEL_I2C3_0),
1480 PINMUX_IPSR_MSEL(IP12_1_0, IIC0_SCL, SEL_IIC0_0),
1481 PINMUX_IPSR_GPSR(IP12_3_2, ETH_RXD0),
1482 PINMUX_IPSR_GPSR(IP12_3_2, AVB_PHY_INT),
1483 PINMUX_IPSR_MSEL(IP12_3_2, I2C3_SDA, SEL_I2C3_0),
1484 PINMUX_IPSR_MSEL(IP12_3_2, IIC0_SDA, SEL_IIC0_0),
1485 PINMUX_IPSR_GPSR(IP12_6_4, ETH_RXD1),
1486 PINMUX_IPSR_GPSR(IP12_6_4, AVB_GTXREFCLK),
1487 PINMUX_IPSR_MSEL(IP12_6_4, CAN0_TX_C, SEL_CAN0_2),
1488 PINMUX_IPSR_MSEL(IP12_6_4, I2C2_SCL_D, SEL_I2C2_3),
1489 PINMUX_IPSR_MSEL(IP12_6_4, MSIOF1_RXD_E, SEL_SOF1_4),
1490 PINMUX_IPSR_GPSR(IP12_9_7, ETH_LINK),
1491 PINMUX_IPSR_GPSR(IP12_9_7, AVB_TXD0),
1492 PINMUX_IPSR_MSEL(IP12_9_7, CAN0_RX_C, SEL_CAN0_2),
1493 PINMUX_IPSR_MSEL(IP12_9_7, I2C2_SDA_D, SEL_I2C2_3),
1494 PINMUX_IPSR_MSEL(IP12_9_7, MSIOF1_SCK_E, SEL_SOF1_4),
1495 PINMUX_IPSR_GPSR(IP12_12_10, ETH_REFCLK),
1496 PINMUX_IPSR_GPSR(IP12_12_10, AVB_TXD1),
1497 PINMUX_IPSR_MSEL(IP12_12_10, SCIFA3_RXD_B, SEL_SCIFA3_1),
1498 PINMUX_IPSR_MSEL(IP12_12_10, CAN1_RX_C, SEL_CAN1_2),
1499 PINMUX_IPSR_MSEL(IP12_12_10, MSIOF1_SYNC_E, SEL_SOF1_4),
1500 PINMUX_IPSR_GPSR(IP12_15_13, ETH_TXD1),
1501 PINMUX_IPSR_GPSR(IP12_15_13, AVB_TXD2),
1502 PINMUX_IPSR_MSEL(IP12_15_13, SCIFA3_TXD_B, SEL_SCIFA3_1),
1503 PINMUX_IPSR_MSEL(IP12_15_13, CAN1_TX_C, SEL_CAN1_2),
1504 PINMUX_IPSR_MSEL(IP12_15_13, MSIOF1_TXD_E, SEL_SOF1_4),
1505 PINMUX_IPSR_GPSR(IP12_17_16, ETH_TX_EN),
1506 PINMUX_IPSR_GPSR(IP12_17_16, AVB_TXD3),
1507 PINMUX_IPSR_MSEL(IP12_17_16, TCLK1_B, SEL_TMU1_0),
1508 PINMUX_IPSR_MSEL(IP12_17_16, CAN_CLK_B, SEL_CANCLK_1),
1509 PINMUX_IPSR_GPSR(IP12_19_18, ETH_MAGIC),
1510 PINMUX_IPSR_GPSR(IP12_19_18, AVB_TXD4),
1511 PINMUX_IPSR_MSEL(IP12_19_18, IETX_C, SEL_IEB_2),
1512 PINMUX_IPSR_GPSR(IP12_21_20, ETH_TXD0),
1513 PINMUX_IPSR_GPSR(IP12_21_20, AVB_TXD5),
1514 PINMUX_IPSR_MSEL(IP12_21_20, IECLK_C, SEL_IEB_2),
1515 PINMUX_IPSR_GPSR(IP12_23_22, ETH_MDC),
1516 PINMUX_IPSR_GPSR(IP12_23_22, AVB_TXD6),
1517 PINMUX_IPSR_MSEL(IP12_23_22, IERX_C, SEL_IEB_2),
1518 PINMUX_IPSR_MSEL(IP12_26_24, STP_IVCXO27_0, SEL_SSP_0),
1519 PINMUX_IPSR_GPSR(IP12_26_24, AVB_TXD7),
1520 PINMUX_IPSR_MSEL(IP12_26_24, SCIFB2_TXD_D, SEL_SCIFB2_3),
1521 PINMUX_IPSR_MSEL(IP12_26_24, ADIDATA_B, SEL_RAD_1),
1522 PINMUX_IPSR_MSEL(IP12_26_24, MSIOF0_SYNC_C, SEL_SOF0_2),
1523 PINMUX_IPSR_MSEL(IP12_29_27, STP_ISCLK_0, SEL_SSP_0),
1524 PINMUX_IPSR_GPSR(IP12_29_27, AVB_TX_EN),
1525 PINMUX_IPSR_MSEL(IP12_29_27, SCIFB2_RXD_D, SEL_SCIFB2_3),
1526 PINMUX_IPSR_MSEL(IP12_29_27, ADICS_SAMP_B, SEL_RAD_1),
1527 PINMUX_IPSR_MSEL(IP12_29_27, MSIOF0_SCK_C, SEL_SOF0_2),
1528
1529 /* IPSR13 */
1530 PINMUX_IPSR_MSEL(IP13_2_0, STP_ISD_0, SEL_SSP_0),
1531 PINMUX_IPSR_GPSR(IP13_2_0, AVB_TX_ER),
1532 PINMUX_IPSR_MSEL(IP13_2_0, SCIFB2_SCK_C, SEL_SCIFB2_2),
1533 PINMUX_IPSR_MSEL(IP13_2_0, ADICLK_B, SEL_RAD_1),
1534 PINMUX_IPSR_MSEL(IP13_2_0, MSIOF0_SS1_C, SEL_SOF0_2),
1535 PINMUX_IPSR_MSEL(IP13_4_3, STP_ISEN_0, SEL_SSP_0),
1536 PINMUX_IPSR_GPSR(IP13_4_3, AVB_TX_CLK),
1537 PINMUX_IPSR_MSEL(IP13_4_3, ADICHS0_B, SEL_RAD_1),
1538 PINMUX_IPSR_MSEL(IP13_4_3, MSIOF0_SS2_C, SEL_SOF0_2),
1539 PINMUX_IPSR_MSEL(IP13_6_5, STP_ISSYNC_0, SEL_SSP_0),
1540 PINMUX_IPSR_GPSR(IP13_6_5, AVB_COL),
1541 PINMUX_IPSR_MSEL(IP13_6_5, ADICHS1_B, SEL_RAD_1),
1542 PINMUX_IPSR_MSEL(IP13_6_5, MSIOF0_RXD_C, SEL_SOF0_2),
1543 PINMUX_IPSR_MSEL(IP13_9_7, STP_OPWM_0, SEL_SSP_0),
1544 PINMUX_IPSR_GPSR(IP13_9_7, AVB_GTX_CLK),
1545 PINMUX_IPSR_GPSR(IP13_9_7, PWM0_B),
1546 PINMUX_IPSR_MSEL(IP13_9_7, ADICHS2_B, SEL_RAD_1),
1547 PINMUX_IPSR_MSEL(IP13_9_7, MSIOF0_TXD_C, SEL_SOF0_2),
1548 PINMUX_IPSR_GPSR(IP13_10, SD0_CLK),
1549 PINMUX_IPSR_MSEL(IP13_10, SPCLK_B, SEL_QSP_1),
1550 PINMUX_IPSR_GPSR(IP13_11, SD0_CMD),
1551 PINMUX_IPSR_MSEL(IP13_11, MOSI_IO0_B, SEL_QSP_1),
1552 PINMUX_IPSR_GPSR(IP13_12, SD0_DATA0),
1553 PINMUX_IPSR_MSEL(IP13_12, MISO_IO1_B, SEL_QSP_1),
1554 PINMUX_IPSR_GPSR(IP13_13, SD0_DATA1),
1555 PINMUX_IPSR_MSEL(IP13_13, IO2_B, SEL_QSP_1),
1556 PINMUX_IPSR_GPSR(IP13_14, SD0_DATA2),
1557 PINMUX_IPSR_MSEL(IP13_14, IO3_B, SEL_QSP_1),
1558 PINMUX_IPSR_GPSR(IP13_15, SD0_DATA3),
1559 PINMUX_IPSR_MSEL(IP13_15, SSL_B, SEL_QSP_1),
1560 PINMUX_IPSR_GPSR(IP13_18_16, SD0_CD),
1561 PINMUX_IPSR_MSEL(IP13_18_16, MMC_D6_B, SEL_MMC_1),
1562 PINMUX_IPSR_MSEL(IP13_18_16, SIM0_RST_B, SEL_SIM_1),
1563 PINMUX_IPSR_MSEL(IP13_18_16, CAN0_RX_F, SEL_CAN0_5),
1564 PINMUX_IPSR_MSEL(IP13_18_16, SCIFA5_TXD_B, SEL_SCIFA5_1),
1565 PINMUX_IPSR_MSEL(IP13_18_16, TX3_C, SEL_SCIF3_2),
1566 PINMUX_IPSR_GPSR(IP13_21_19, SD0_WP),
1567 PINMUX_IPSR_MSEL(IP13_21_19, MMC_D7_B, SEL_MMC_1),
1568 PINMUX_IPSR_MSEL(IP13_21_19, SIM0_D_B, SEL_SIM_1),
1569 PINMUX_IPSR_MSEL(IP13_21_19, CAN0_TX_F, SEL_CAN0_5),
1570 PINMUX_IPSR_MSEL(IP13_21_19, SCIFA5_RXD_B, SEL_SCIFA5_1),
1571 PINMUX_IPSR_MSEL(IP13_21_19, RX3_C, SEL_SCIF3_2),
1572 PINMUX_IPSR_GPSR(IP13_22, SD1_CMD),
1573 PINMUX_IPSR_MSEL(IP13_22, REMOCON_B, SEL_RCN_1),
1574 PINMUX_IPSR_GPSR(IP13_24_23, SD1_DATA0),
1575 PINMUX_IPSR_MSEL(IP13_24_23, SPEEDIN_B, SEL_RSP_1),
1576 PINMUX_IPSR_GPSR(IP13_25, SD1_DATA1),
1577 PINMUX_IPSR_MSEL(IP13_25, IETX_B, SEL_IEB_1),
1578 PINMUX_IPSR_GPSR(IP13_26, SD1_DATA2),
1579 PINMUX_IPSR_MSEL(IP13_26, IECLK_B, SEL_IEB_1),
1580 PINMUX_IPSR_GPSR(IP13_27, SD1_DATA3),
1581 PINMUX_IPSR_MSEL(IP13_27, IERX_B, SEL_IEB_1),
1582 PINMUX_IPSR_GPSR(IP13_30_28, SD1_CD),
1583 PINMUX_IPSR_GPSR(IP13_30_28, PWM0),
1584 PINMUX_IPSR_GPSR(IP13_30_28, TPU_TO0),
1585 PINMUX_IPSR_MSEL(IP13_30_28, I2C1_SCL_C, SEL_I2C1_2),
1586
1587 /* IPSR14 */
1588 PINMUX_IPSR_GPSR(IP14_1_0, SD1_WP),
1589 PINMUX_IPSR_GPSR(IP14_1_0, PWM1_B),
1590 PINMUX_IPSR_MSEL(IP14_1_0, I2C1_SDA_C, SEL_I2C1_2),
1591 PINMUX_IPSR_GPSR(IP14_2, SD2_CLK),
1592 PINMUX_IPSR_GPSR(IP14_2, MMC_CLK),
1593 PINMUX_IPSR_GPSR(IP14_3, SD2_CMD),
1594 PINMUX_IPSR_GPSR(IP14_3, MMC_CMD),
1595 PINMUX_IPSR_GPSR(IP14_4, SD2_DATA0),
1596 PINMUX_IPSR_GPSR(IP14_4, MMC_D0),
1597 PINMUX_IPSR_GPSR(IP14_5, SD2_DATA1),
1598 PINMUX_IPSR_GPSR(IP14_5, MMC_D1),
1599 PINMUX_IPSR_GPSR(IP14_6, SD2_DATA2),
1600 PINMUX_IPSR_GPSR(IP14_6, MMC_D2),
1601 PINMUX_IPSR_GPSR(IP14_7, SD2_DATA3),
1602 PINMUX_IPSR_GPSR(IP14_7, MMC_D3),
1603 PINMUX_IPSR_GPSR(IP14_10_8, SD2_CD),
1604 PINMUX_IPSR_GPSR(IP14_10_8, MMC_D4),
1605 PINMUX_IPSR_MSEL(IP14_10_8, IIC1_SCL_C, SEL_IIC1_2),
1606 PINMUX_IPSR_MSEL(IP14_10_8, TX5_B, SEL_SCIF5_1),
1607 PINMUX_IPSR_MSEL(IP14_10_8, SCIFA5_TXD_C, SEL_SCIFA5_2),
1608 PINMUX_IPSR_GPSR(IP14_13_11, SD2_WP),
1609 PINMUX_IPSR_GPSR(IP14_13_11, MMC_D5),
1610 PINMUX_IPSR_MSEL(IP14_13_11, IIC1_SDA_C, SEL_IIC1_2),
1611 PINMUX_IPSR_MSEL(IP14_13_11, RX5_B, SEL_SCIF5_1),
1612 PINMUX_IPSR_MSEL(IP14_13_11, SCIFA5_RXD_C, SEL_SCIFA5_2),
1613 PINMUX_IPSR_MSEL(IP14_16_14, MSIOF0_SCK, SEL_SOF0_0),
1614 PINMUX_IPSR_MSEL(IP14_16_14, RX2_C, SEL_SCIF2_2),
1615 PINMUX_IPSR_MSEL(IP14_16_14, ADIDATA, SEL_RAD_0),
1616 PINMUX_IPSR_MSEL(IP14_16_14, VI1_CLK_C, SEL_VI1_2),
1617 PINMUX_IPSR_GPSR(IP14_16_14, VI1_G0_B),
1618 PINMUX_IPSR_MSEL(IP14_19_17, MSIOF0_SYNC, SEL_SOF0_0),
1619 PINMUX_IPSR_MSEL(IP14_19_17, TX2_C, SEL_SCIF2_2),
1620 PINMUX_IPSR_MSEL(IP14_19_17, ADICS_SAMP, SEL_RAD_0),
1621 PINMUX_IPSR_MSEL(IP14_19_17, VI1_CLKENB_C, SEL_VI1_2),
1622 PINMUX_IPSR_GPSR(IP14_19_17, VI1_G1_B),
1623 PINMUX_IPSR_MSEL(IP14_22_20, MSIOF0_TXD, SEL_SOF0_0),
1624 PINMUX_IPSR_MSEL(IP14_22_20, ADICLK, SEL_RAD_0),
1625 PINMUX_IPSR_MSEL(IP14_22_20, VI1_FIELD_C, SEL_VI1_2),
1626 PINMUX_IPSR_GPSR(IP14_22_20, VI1_G2_B),
1627 PINMUX_IPSR_MSEL(IP14_25_23, MSIOF0_RXD, SEL_SOF0_0),
1628 PINMUX_IPSR_MSEL(IP14_25_23, ADICHS0, SEL_RAD_0),
1629 PINMUX_IPSR_MSEL(IP14_25_23, VI1_DATA0_C, SEL_VI1_2),
1630 PINMUX_IPSR_GPSR(IP14_25_23, VI1_G3_B),
1631 PINMUX_IPSR_MSEL(IP14_28_26, MSIOF0_SS1, SEL_SOF0_0),
1632 PINMUX_IPSR_MSEL(IP14_28_26, MMC_D6, SEL_MMC_0),
1633 PINMUX_IPSR_MSEL(IP14_28_26, ADICHS1, SEL_RAD_0),
1634 PINMUX_IPSR_MSEL(IP14_28_26, TX0_E, SEL_SCIF0_4),
1635 PINMUX_IPSR_MSEL(IP14_28_26, VI1_HSYNC_N_C, SEL_VI1_2),
1636 PINMUX_IPSR_MSEL(IP14_28_26, IIC0_SCL_C, SEL_IIC0_2),
1637 PINMUX_IPSR_GPSR(IP14_28_26, VI1_G4_B),
1638 PINMUX_IPSR_MSEL(IP14_31_29, MSIOF0_SS2, SEL_SOF0_0),
1639 PINMUX_IPSR_MSEL(IP14_31_29, MMC_D7, SEL_MMC_0),
1640 PINMUX_IPSR_MSEL(IP14_31_29, ADICHS2, SEL_RAD_0),
1641 PINMUX_IPSR_MSEL(IP14_31_29, RX0_E, SEL_SCIF0_4),
1642 PINMUX_IPSR_MSEL(IP14_31_29, VI1_VSYNC_N_C, SEL_VI1_2),
1643 PINMUX_IPSR_MSEL(IP14_31_29, IIC0_SDA_C, SEL_IIC0_2),
1644 PINMUX_IPSR_GPSR(IP14_31_29, VI1_G5_B),
1645
1646 /* IPSR15 */
1647 PINMUX_IPSR_MSEL(IP15_1_0, SIM0_RST, SEL_SIM_0),
1648 PINMUX_IPSR_MSEL(IP15_1_0, IETX, SEL_IEB_0),
1649 PINMUX_IPSR_MSEL(IP15_1_0, CAN1_TX_D, SEL_CAN1_3),
1650 PINMUX_IPSR_GPSR(IP15_3_2, SIM0_CLK),
1651 PINMUX_IPSR_MSEL(IP15_3_2, IECLK, SEL_IEB_0),
1652 PINMUX_IPSR_MSEL(IP15_3_2, CAN_CLK_C, SEL_CANCLK_2),
1653 PINMUX_IPSR_MSEL(IP15_5_4, SIM0_D, SEL_SIM_0),
1654 PINMUX_IPSR_MSEL(IP15_5_4, IERX, SEL_IEB_0),
1655 PINMUX_IPSR_MSEL(IP15_5_4, CAN1_RX_D, SEL_CAN1_3),
1656 PINMUX_IPSR_MSEL(IP15_8_6, GPS_CLK, SEL_GPS_0),
1657 PINMUX_IPSR_MSEL(IP15_8_6, DU1_DOTCLKIN_C, SEL_DIS_2),
1658 PINMUX_IPSR_MSEL(IP15_8_6, AUDIO_CLKB_B, SEL_ADG_1),
1659 PINMUX_IPSR_GPSR(IP15_8_6, PWM5_B),
1660 PINMUX_IPSR_MSEL(IP15_8_6, SCIFA3_TXD_C, SEL_SCIFA3_2),
1661 PINMUX_IPSR_MSEL(IP15_11_9, GPS_SIGN, SEL_GPS_0),
1662 PINMUX_IPSR_MSEL(IP15_11_9, TX4_C, SEL_SCIF4_2),
1663 PINMUX_IPSR_MSEL(IP15_11_9, SCIFA4_TXD_C, SEL_SCIFA4_2),
1664 PINMUX_IPSR_GPSR(IP15_11_9, PWM5),
1665 PINMUX_IPSR_GPSR(IP15_11_9, VI1_G6_B),
1666 PINMUX_IPSR_MSEL(IP15_11_9, SCIFA3_RXD_C, SEL_SCIFA3_2),
1667 PINMUX_IPSR_MSEL(IP15_14_12, GPS_MAG, SEL_GPS_0),
1668 PINMUX_IPSR_MSEL(IP15_14_12, RX4_C, SEL_SCIF4_2),
1669 PINMUX_IPSR_MSEL(IP15_14_12, SCIFA4_RXD_C, SEL_SCIFA4_2),
1670 PINMUX_IPSR_GPSR(IP15_14_12, PWM6),
1671 PINMUX_IPSR_GPSR(IP15_14_12, VI1_G7_B),
1672 PINMUX_IPSR_MSEL(IP15_14_12, SCIFA3_SCK_C, SEL_SCIFA3_2),
1673 PINMUX_IPSR_MSEL(IP15_17_15, HCTS0_N, SEL_HSCIF0_0),
1674 PINMUX_IPSR_MSEL(IP15_17_15, SCIFB0_CTS_N, SEL_SCIFB_0),
1675 PINMUX_IPSR_MSEL(IP15_17_15, GLO_I0_C, SEL_GPS_2),
1676 PINMUX_IPSR_MSEL(IP15_17_15, TCLK1, SEL_TMU1_0),
1677 PINMUX_IPSR_MSEL(IP15_17_15, VI1_DATA1_C, SEL_VI1_2),
1678 PINMUX_IPSR_MSEL(IP15_20_18, HRTS0_N, SEL_HSCIF0_0),
1679 PINMUX_IPSR_MSEL(IP15_20_18, SCIFB0_RTS_N, SEL_SCIFB_0),
1680 PINMUX_IPSR_MSEL(IP15_20_18, GLO_I1_C, SEL_GPS_2),
1681 PINMUX_IPSR_MSEL(IP15_20_18, VI1_DATA2_C, SEL_VI1_2),
1682 PINMUX_IPSR_MSEL(IP15_23_21, HSCK0, SEL_HSCIF0_0),
1683 PINMUX_IPSR_MSEL(IP15_23_21, SCIFB0_SCK, SEL_SCIFB_0),
1684 PINMUX_IPSR_MSEL(IP15_23_21, GLO_Q0_C, SEL_GPS_2),
1685 PINMUX_IPSR_MSEL(IP15_23_21, CAN_CLK, SEL_CANCLK_0),
1686 PINMUX_IPSR_GPSR(IP15_23_21, TCLK2),
1687 PINMUX_IPSR_MSEL(IP15_23_21, VI1_DATA3_C, SEL_VI1_2),
1688 PINMUX_IPSR_MSEL(IP15_26_24, HRX0, SEL_HSCIF0_0),
1689 PINMUX_IPSR_MSEL(IP15_26_24, SCIFB0_RXD, SEL_SCIFB_0),
1690 PINMUX_IPSR_MSEL(IP15_26_24, GLO_Q1_C, SEL_GPS_2),
1691 PINMUX_IPSR_MSEL(IP15_26_24, CAN0_RX_B, SEL_CAN0_1),
1692 PINMUX_IPSR_MSEL(IP15_26_24, VI1_DATA4_C, SEL_VI1_2),
1693 PINMUX_IPSR_MSEL(IP15_29_27, HTX0, SEL_HSCIF0_0),
1694 PINMUX_IPSR_MSEL(IP15_29_27, SCIFB0_TXD, SEL_SCIFB_0),
1695 PINMUX_IPSR_MSEL(IP15_29_27, GLO_SCLK_C, SEL_GPS_2),
1696 PINMUX_IPSR_MSEL(IP15_29_27, CAN0_TX_B, SEL_CAN0_1),
1697 PINMUX_IPSR_MSEL(IP15_29_27, VI1_DATA5_C, SEL_VI1_2),
1698
1699 /* IPSR16 */
1700 PINMUX_IPSR_MSEL(IP16_2_0, HRX1, SEL_HSCIF1_0),
1701 PINMUX_IPSR_MSEL(IP16_2_0, SCIFB1_RXD, SEL_SCIFB1_0),
1702 PINMUX_IPSR_GPSR(IP16_2_0, VI1_R0_B),
1703 PINMUX_IPSR_MSEL(IP16_2_0, GLO_SDATA_C, SEL_GPS_2),
1704 PINMUX_IPSR_MSEL(IP16_2_0, VI1_DATA6_C, SEL_VI1_2),
1705 PINMUX_IPSR_MSEL(IP16_5_3, HTX1, SEL_HSCIF1_0),
1706 PINMUX_IPSR_MSEL(IP16_5_3, SCIFB1_TXD, SEL_SCIFB1_0),
1707 PINMUX_IPSR_GPSR(IP16_5_3, VI1_R1_B),
1708 PINMUX_IPSR_MSEL(IP16_5_3, GLO_SS_C, SEL_GPS_2),
1709 PINMUX_IPSR_MSEL(IP16_5_3, VI1_DATA7_C, SEL_VI1_2),
1710 PINMUX_IPSR_MSEL(IP16_7_6, HSCK1, SEL_HSCIF1_0),
1711 PINMUX_IPSR_MSEL(IP16_7_6, SCIFB1_SCK, SEL_SCIFB1_0),
1712 PINMUX_IPSR_GPSR(IP16_7_6, MLB_CLK),
1713 PINMUX_IPSR_MSEL(IP16_7_6, GLO_RFON_C, SEL_GPS_2),
1714 PINMUX_IPSR_MSEL(IP16_9_8, HCTS1_N, SEL_HSCIF1_0),
1715 PINMUX_IPSR_GPSR(IP16_9_8, SCIFB1_CTS_N),
1716 PINMUX_IPSR_GPSR(IP16_9_8, MLB_SIG),
1717 PINMUX_IPSR_MSEL(IP16_9_8, CAN1_TX_B, SEL_CAN1_1),
1718 PINMUX_IPSR_MSEL(IP16_11_10, HRTS1_N, SEL_HSCIF1_0),
1719 PINMUX_IPSR_GPSR(IP16_11_10, SCIFB1_RTS_N),
1720 PINMUX_IPSR_GPSR(IP16_11_10, MLB_DAT),
1721 PINMUX_IPSR_MSEL(IP16_11_10, CAN1_RX_B, SEL_CAN1_1),
1722};
1723
Marek Vasut0b9053d2023-01-26 21:01:37 +01001724/*
1725 * Pins not associated with a GPIO port.
1726 */
1727enum {
1728 GP_ASSIGN_LAST(),
1729 NOGP_ALL(),
1730};
1731
Marek Vasut06ef9e82018-01-17 17:14:45 +01001732static const struct sh_pfc_pin pinmux_pins[] = {
1733 PINMUX_GPIO_GP_ALL(),
Marek Vasut0b9053d2023-01-26 21:01:37 +01001734 PINMUX_NOGP_ALL(),
Marek Vasut06ef9e82018-01-17 17:14:45 +01001735};
1736
Marek Vasut0e8e9892021-04-26 22:04:11 +02001737#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut06ef9e82018-01-17 17:14:45 +01001738/* - ADI -------------------------------------------------------------------- */
1739static const unsigned int adi_common_pins[] = {
1740 /* ADIDATA, ADICS/SAMP, ADICLK */
1741 RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25), RCAR_GP_PIN(6, 26),
1742};
1743static const unsigned int adi_common_mux[] = {
1744 /* ADIDATA, ADICS/SAMP, ADICLK */
1745 ADIDATA_MARK, ADICS_SAMP_MARK, ADICLK_MARK,
1746};
1747static const unsigned int adi_chsel0_pins[] = {
1748 /* ADICHS 0 */
1749 RCAR_GP_PIN(6, 27),
1750};
1751static const unsigned int adi_chsel0_mux[] = {
1752 /* ADICHS 0 */
1753 ADICHS0_MARK,
1754};
1755static const unsigned int adi_chsel1_pins[] = {
1756 /* ADICHS 1 */
1757 RCAR_GP_PIN(6, 28),
1758};
1759static const unsigned int adi_chsel1_mux[] = {
1760 /* ADICHS 1 */
1761 ADICHS1_MARK,
1762};
1763static const unsigned int adi_chsel2_pins[] = {
1764 /* ADICHS 2 */
1765 RCAR_GP_PIN(6, 29),
1766};
1767static const unsigned int adi_chsel2_mux[] = {
1768 /* ADICHS 2 */
1769 ADICHS2_MARK,
1770};
1771static const unsigned int adi_common_b_pins[] = {
1772 /* ADIDATA B, ADICS/SAMP B, ADICLK B */
1773 RCAR_GP_PIN(5, 25), RCAR_GP_PIN(5, 26), RCAR_GP_PIN(5, 27),
1774};
1775static const unsigned int adi_common_b_mux[] = {
1776 /* ADIDATA B, ADICS/SAMP B, ADICLK B */
1777 ADIDATA_B_MARK, ADICS_SAMP_B_MARK, ADICLK_B_MARK,
1778};
1779static const unsigned int adi_chsel0_b_pins[] = {
1780 /* ADICHS B 0 */
1781 RCAR_GP_PIN(5, 28),
1782};
1783static const unsigned int adi_chsel0_b_mux[] = {
1784 /* ADICHS B 0 */
1785 ADICHS0_B_MARK,
1786};
1787static const unsigned int adi_chsel1_b_pins[] = {
1788 /* ADICHS B 1 */
1789 RCAR_GP_PIN(5, 29),
1790};
1791static const unsigned int adi_chsel1_b_mux[] = {
1792 /* ADICHS B 1 */
1793 ADICHS1_B_MARK,
1794};
1795static const unsigned int adi_chsel2_b_pins[] = {
1796 /* ADICHS B 2 */
1797 RCAR_GP_PIN(5, 30),
1798};
1799static const unsigned int adi_chsel2_b_mux[] = {
1800 /* ADICHS B 2 */
1801 ADICHS2_B_MARK,
1802};
Marek Vasut0e8e9892021-04-26 22:04:11 +02001803#endif /* CONFIG_PINCTRL_PFC_R8A7791 || CONFIG_PINCTRL_PFC_R8A7793 */
Marek Vasut06ef9e82018-01-17 17:14:45 +01001804
1805/* - Audio Clock ------------------------------------------------------------ */
1806static const unsigned int audio_clk_a_pins[] = {
1807 /* CLK */
1808 RCAR_GP_PIN(2, 28),
1809};
1810
1811static const unsigned int audio_clk_a_mux[] = {
1812 AUDIO_CLKA_MARK,
1813};
1814
1815static const unsigned int audio_clk_b_pins[] = {
1816 /* CLK */
1817 RCAR_GP_PIN(2, 29),
1818};
1819
1820static const unsigned int audio_clk_b_mux[] = {
1821 AUDIO_CLKB_MARK,
1822};
1823
1824static const unsigned int audio_clk_b_b_pins[] = {
1825 /* CLK */
1826 RCAR_GP_PIN(7, 20),
1827};
1828
1829static const unsigned int audio_clk_b_b_mux[] = {
1830 AUDIO_CLKB_B_MARK,
1831};
1832
1833static const unsigned int audio_clk_c_pins[] = {
1834 /* CLK */
1835 RCAR_GP_PIN(2, 30),
1836};
1837
1838static const unsigned int audio_clk_c_mux[] = {
1839 AUDIO_CLKC_MARK,
1840};
1841
1842static const unsigned int audio_clkout_pins[] = {
1843 /* CLK */
1844 RCAR_GP_PIN(2, 31),
1845};
1846
1847static const unsigned int audio_clkout_mux[] = {
1848 AUDIO_CLKOUT_MARK,
1849};
1850
1851/* - AVB -------------------------------------------------------------------- */
1852static const unsigned int avb_link_pins[] = {
1853 RCAR_GP_PIN(5, 14),
1854};
1855static const unsigned int avb_link_mux[] = {
1856 AVB_LINK_MARK,
1857};
1858static const unsigned int avb_magic_pins[] = {
1859 RCAR_GP_PIN(5, 11),
1860};
1861static const unsigned int avb_magic_mux[] = {
1862 AVB_MAGIC_MARK,
1863};
1864static const unsigned int avb_phy_int_pins[] = {
1865 RCAR_GP_PIN(5, 16),
1866};
1867static const unsigned int avb_phy_int_mux[] = {
1868 AVB_PHY_INT_MARK,
1869};
1870static const unsigned int avb_mdio_pins[] = {
1871 RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 9),
1872};
1873static const unsigned int avb_mdio_mux[] = {
1874 AVB_MDC_MARK, AVB_MDIO_MARK,
1875};
1876static const unsigned int avb_mii_pins[] = {
1877 RCAR_GP_PIN(5, 18), RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 20),
1878 RCAR_GP_PIN(5, 21),
1879
1880 RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
1881 RCAR_GP_PIN(5, 3),
1882
1883 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 10),
1884 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 26), RCAR_GP_PIN(5, 27),
1885 RCAR_GP_PIN(5, 28), RCAR_GP_PIN(5, 29),
1886};
1887static const unsigned int avb_mii_mux[] = {
1888 AVB_TXD0_MARK, AVB_TXD1_MARK, AVB_TXD2_MARK,
1889 AVB_TXD3_MARK,
1890
1891 AVB_RXD0_MARK, AVB_RXD1_MARK, AVB_RXD2_MARK,
1892 AVB_RXD3_MARK,
1893
1894 AVB_RX_ER_MARK, AVB_RX_CLK_MARK, AVB_RX_DV_MARK,
1895 AVB_CRS_MARK, AVB_TX_EN_MARK, AVB_TX_ER_MARK,
1896 AVB_TX_CLK_MARK, AVB_COL_MARK,
1897};
1898static const unsigned int avb_gmii_pins[] = {
1899 RCAR_GP_PIN(5, 18), RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 20),
1900 RCAR_GP_PIN(5, 21), RCAR_GP_PIN(5, 22), RCAR_GP_PIN(5, 23),
1901 RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25),
1902
1903 RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
1904 RCAR_GP_PIN(5, 3), RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 5),
1905 RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7),
1906
1907 RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 10),
1908 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 30), RCAR_GP_PIN(5, 17),
1909 RCAR_GP_PIN(5, 26), RCAR_GP_PIN(5, 27), RCAR_GP_PIN(5, 28),
1910 RCAR_GP_PIN(5, 29),
1911};
1912static const unsigned int avb_gmii_mux[] = {
1913 AVB_TXD0_MARK, AVB_TXD1_MARK, AVB_TXD2_MARK,
1914 AVB_TXD3_MARK, AVB_TXD4_MARK, AVB_TXD5_MARK,
1915 AVB_TXD6_MARK, AVB_TXD7_MARK,
1916
1917 AVB_RXD0_MARK, AVB_RXD1_MARK, AVB_RXD2_MARK,
1918 AVB_RXD3_MARK, AVB_RXD4_MARK, AVB_RXD5_MARK,
1919 AVB_RXD6_MARK, AVB_RXD7_MARK,
1920
1921 AVB_RX_ER_MARK, AVB_RX_CLK_MARK, AVB_RX_DV_MARK,
1922 AVB_CRS_MARK, AVB_GTX_CLK_MARK, AVB_GTXREFCLK_MARK,
1923 AVB_TX_EN_MARK, AVB_TX_ER_MARK, AVB_TX_CLK_MARK,
1924 AVB_COL_MARK,
1925};
1926
1927/* - CAN -------------------------------------------------------------------- */
1928
1929static const unsigned int can0_data_pins[] = {
1930 /* TX, RX */
1931 RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 29),
1932};
1933
1934static const unsigned int can0_data_mux[] = {
1935 CAN0_TX_MARK, CAN0_RX_MARK,
1936};
1937
1938static const unsigned int can0_data_b_pins[] = {
1939 /* TX, RX */
1940 RCAR_GP_PIN(7, 4), RCAR_GP_PIN(7, 3),
1941};
1942
1943static const unsigned int can0_data_b_mux[] = {
1944 CAN0_TX_B_MARK, CAN0_RX_B_MARK,
1945};
1946
1947static const unsigned int can0_data_c_pins[] = {
1948 /* TX, RX */
1949 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 18),
1950};
1951
1952static const unsigned int can0_data_c_mux[] = {
1953 CAN0_TX_C_MARK, CAN0_RX_C_MARK,
1954};
1955
1956static const unsigned int can0_data_d_pins[] = {
1957 /* TX, RX */
1958 RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 27),
1959};
1960
1961static const unsigned int can0_data_d_mux[] = {
1962 CAN0_TX_D_MARK, CAN0_RX_D_MARK,
1963};
1964
1965static const unsigned int can0_data_e_pins[] = {
1966 /* TX, RX */
1967 RCAR_GP_PIN(4, 18), RCAR_GP_PIN(4, 28),
1968};
1969
1970static const unsigned int can0_data_e_mux[] = {
1971 CAN0_TX_E_MARK, CAN0_RX_E_MARK,
1972};
1973
1974static const unsigned int can0_data_f_pins[] = {
1975 /* TX, RX */
1976 RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
1977};
1978
1979static const unsigned int can0_data_f_mux[] = {
1980 CAN0_TX_F_MARK, CAN0_RX_F_MARK,
1981};
1982
1983static const unsigned int can1_data_pins[] = {
1984 /* TX, RX */
1985 RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 20),
1986};
1987
1988static const unsigned int can1_data_mux[] = {
1989 CAN1_TX_MARK, CAN1_RX_MARK,
1990};
1991
1992static const unsigned int can1_data_b_pins[] = {
1993 /* TX, RX */
1994 RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9),
1995};
1996
1997static const unsigned int can1_data_b_mux[] = {
1998 CAN1_TX_B_MARK, CAN1_RX_B_MARK,
1999};
2000
2001static const unsigned int can1_data_c_pins[] = {
2002 /* TX, RX */
2003 RCAR_GP_PIN(5, 20), RCAR_GP_PIN(5, 19),
2004};
2005
2006static const unsigned int can1_data_c_mux[] = {
2007 CAN1_TX_C_MARK, CAN1_RX_C_MARK,
2008};
2009
2010static const unsigned int can1_data_d_pins[] = {
2011 /* TX, RX */
2012 RCAR_GP_PIN(4, 29), RCAR_GP_PIN(4, 31),
2013};
2014
2015static const unsigned int can1_data_d_mux[] = {
2016 CAN1_TX_D_MARK, CAN1_RX_D_MARK,
2017};
2018
2019static const unsigned int can_clk_pins[] = {
2020 /* CLK */
2021 RCAR_GP_PIN(7, 2),
2022};
2023
2024static const unsigned int can_clk_mux[] = {
2025 CAN_CLK_MARK,
2026};
2027
2028static const unsigned int can_clk_b_pins[] = {
2029 /* CLK */
2030 RCAR_GP_PIN(5, 21),
2031};
2032
2033static const unsigned int can_clk_b_mux[] = {
2034 CAN_CLK_B_MARK,
2035};
2036
2037static const unsigned int can_clk_c_pins[] = {
2038 /* CLK */
2039 RCAR_GP_PIN(4, 30),
2040};
2041
2042static const unsigned int can_clk_c_mux[] = {
2043 CAN_CLK_C_MARK,
2044};
2045
2046static const unsigned int can_clk_d_pins[] = {
2047 /* CLK */
2048 RCAR_GP_PIN(7, 19),
2049};
2050
2051static const unsigned int can_clk_d_mux[] = {
2052 CAN_CLK_D_MARK,
2053};
2054
2055/* - DU --------------------------------------------------------------------- */
2056static const unsigned int du_rgb666_pins[] = {
2057 /* R[7:2], G[7:2], B[7:2] */
2058 RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 5),
2059 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 2),
2060 RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 13),
2061 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 10),
2062 RCAR_GP_PIN(3, 23), RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
2063 RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
2064};
2065static const unsigned int du_rgb666_mux[] = {
2066 DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
2067 DU1_DR3_MARK, DU1_DR2_MARK,
2068 DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
2069 DU1_DG3_MARK, DU1_DG2_MARK,
2070 DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
2071 DU1_DB3_MARK, DU1_DB2_MARK,
2072};
2073static const unsigned int du_rgb888_pins[] = {
2074 /* R[7:0], G[7:0], B[7:0] */
2075 RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 5),
2076 RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 2),
2077 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
2078 RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 13),
2079 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 10),
2080 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
2081 RCAR_GP_PIN(3, 23), RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
2082 RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
2083 RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
2084};
2085static const unsigned int du_rgb888_mux[] = {
2086 DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
2087 DU1_DR3_MARK, DU1_DR2_MARK, DU1_DR1_MARK, DU1_DR0_MARK,
2088 DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
2089 DU1_DG3_MARK, DU1_DG2_MARK, DU1_DG1_MARK, DU1_DG0_MARK,
2090 DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
2091 DU1_DB3_MARK, DU1_DB2_MARK, DU1_DB1_MARK, DU1_DB0_MARK,
2092};
2093static const unsigned int du_clk_out_0_pins[] = {
2094 /* CLKOUT */
2095 RCAR_GP_PIN(3, 25),
2096};
2097static const unsigned int du_clk_out_0_mux[] = {
2098 DU1_DOTCLKOUT0_MARK
2099};
2100static const unsigned int du_clk_out_1_pins[] = {
2101 /* CLKOUT */
2102 RCAR_GP_PIN(3, 26),
2103};
2104static const unsigned int du_clk_out_1_mux[] = {
2105 DU1_DOTCLKOUT1_MARK
2106};
2107static const unsigned int du_sync_pins[] = {
2108 /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */
2109 RCAR_GP_PIN(3, 28), RCAR_GP_PIN(3, 27),
2110};
2111static const unsigned int du_sync_mux[] = {
2112 DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK
2113};
2114static const unsigned int du_oddf_pins[] = {
2115 /* EXDISP/EXODDF/EXCDE */
2116 RCAR_GP_PIN(3, 29),
2117};
2118static const unsigned int du_oddf_mux[] = {
2119 DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK,
2120};
2121static const unsigned int du_cde_pins[] = {
2122 /* CDE */
2123 RCAR_GP_PIN(3, 31),
2124};
2125static const unsigned int du_cde_mux[] = {
2126 DU1_CDE_MARK,
2127};
2128static const unsigned int du_disp_pins[] = {
2129 /* DISP */
2130 RCAR_GP_PIN(3, 30),
2131};
2132static const unsigned int du_disp_mux[] = {
2133 DU1_DISP_MARK,
2134};
2135static const unsigned int du0_clk_in_pins[] = {
2136 /* CLKIN */
2137 RCAR_GP_PIN(6, 31),
2138};
2139static const unsigned int du0_clk_in_mux[] = {
2140 DU0_DOTCLKIN_MARK
2141};
2142static const unsigned int du1_clk_in_pins[] = {
2143 /* CLKIN */
2144 RCAR_GP_PIN(3, 24),
2145};
2146static const unsigned int du1_clk_in_mux[] = {
2147 DU1_DOTCLKIN_MARK
2148};
2149static const unsigned int du1_clk_in_b_pins[] = {
2150 /* CLKIN */
2151 RCAR_GP_PIN(7, 19),
2152};
2153static const unsigned int du1_clk_in_b_mux[] = {
2154 DU1_DOTCLKIN_B_MARK,
2155};
2156static const unsigned int du1_clk_in_c_pins[] = {
2157 /* CLKIN */
2158 RCAR_GP_PIN(7, 20),
2159};
2160static const unsigned int du1_clk_in_c_mux[] = {
2161 DU1_DOTCLKIN_C_MARK,
2162};
2163/* - ETH -------------------------------------------------------------------- */
2164static const unsigned int eth_link_pins[] = {
2165 /* LINK */
2166 RCAR_GP_PIN(5, 18),
2167};
2168static const unsigned int eth_link_mux[] = {
2169 ETH_LINK_MARK,
2170};
2171static const unsigned int eth_magic_pins[] = {
2172 /* MAGIC */
2173 RCAR_GP_PIN(5, 22),
2174};
2175static const unsigned int eth_magic_mux[] = {
2176 ETH_MAGIC_MARK,
2177};
2178static const unsigned int eth_mdio_pins[] = {
2179 /* MDC, MDIO */
2180 RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 13),
2181};
2182static const unsigned int eth_mdio_mux[] = {
2183 ETH_MDC_MARK, ETH_MDIO_MARK,
2184};
2185static const unsigned int eth_rmii_pins[] = {
2186 /* RXD[0:1], RX_ER, CRS_DV, TXD[0:1], TX_EN, REF_CLK */
2187 RCAR_GP_PIN(5, 16), RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 15),
2188 RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 23), RCAR_GP_PIN(5, 20),
2189 RCAR_GP_PIN(5, 21), RCAR_GP_PIN(5, 19),
2190};
2191static const unsigned int eth_rmii_mux[] = {
2192 ETH_RXD0_MARK, ETH_RXD1_MARK, ETH_RX_ER_MARK, ETH_CRS_DV_MARK,
2193 ETH_TXD0_MARK, ETH_TXD1_MARK, ETH_TX_EN_MARK, ETH_REFCLK_MARK,
2194};
2195
2196/* - HSCIF0 ----------------------------------------------------------------- */
2197static const unsigned int hscif0_data_pins[] = {
2198 /* RX, TX */
2199 RCAR_GP_PIN(7, 3), RCAR_GP_PIN(7, 4),
2200};
2201static const unsigned int hscif0_data_mux[] = {
2202 HRX0_MARK, HTX0_MARK,
2203};
2204static const unsigned int hscif0_clk_pins[] = {
2205 /* SCK */
2206 RCAR_GP_PIN(7, 2),
2207};
2208static const unsigned int hscif0_clk_mux[] = {
2209 HSCK0_MARK,
2210};
2211static const unsigned int hscif0_ctrl_pins[] = {
2212 /* RTS, CTS */
2213 RCAR_GP_PIN(7, 1), RCAR_GP_PIN(7, 0),
2214};
2215static const unsigned int hscif0_ctrl_mux[] = {
2216 HRTS0_N_MARK, HCTS0_N_MARK,
2217};
2218static const unsigned int hscif0_data_b_pins[] = {
2219 /* RX, TX */
2220 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 15),
2221};
2222static const unsigned int hscif0_data_b_mux[] = {
2223 HRX0_B_MARK, HTX0_B_MARK,
2224};
2225static const unsigned int hscif0_ctrl_b_pins[] = {
2226 /* RTS, CTS */
2227 RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 13),
2228};
2229static const unsigned int hscif0_ctrl_b_mux[] = {
2230 HRTS0_N_B_MARK, HCTS0_N_B_MARK,
2231};
2232static const unsigned int hscif0_data_c_pins[] = {
2233 /* RX, TX */
2234 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
2235};
2236static const unsigned int hscif0_data_c_mux[] = {
2237 HRX0_C_MARK, HTX0_C_MARK,
2238};
2239static const unsigned int hscif0_clk_c_pins[] = {
2240 /* SCK */
2241 RCAR_GP_PIN(5, 31),
2242};
2243static const unsigned int hscif0_clk_c_mux[] = {
2244 HSCK0_C_MARK,
2245};
2246/* - HSCIF1 ----------------------------------------------------------------- */
2247static const unsigned int hscif1_data_pins[] = {
2248 /* RX, TX */
2249 RCAR_GP_PIN(7, 5), RCAR_GP_PIN(7, 6),
2250};
2251static const unsigned int hscif1_data_mux[] = {
2252 HRX1_MARK, HTX1_MARK,
2253};
2254static const unsigned int hscif1_clk_pins[] = {
2255 /* SCK */
2256 RCAR_GP_PIN(7, 7),
2257};
2258static const unsigned int hscif1_clk_mux[] = {
2259 HSCK1_MARK,
2260};
2261static const unsigned int hscif1_ctrl_pins[] = {
2262 /* RTS, CTS */
2263 RCAR_GP_PIN(7, 9), RCAR_GP_PIN(7, 8),
2264};
2265static const unsigned int hscif1_ctrl_mux[] = {
2266 HRTS1_N_MARK, HCTS1_N_MARK,
2267};
2268static const unsigned int hscif1_data_b_pins[] = {
2269 /* RX, TX */
2270 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
2271};
2272static const unsigned int hscif1_data_b_mux[] = {
2273 HRX1_B_MARK, HTX1_B_MARK,
2274};
2275static const unsigned int hscif1_data_c_pins[] = {
2276 /* RX, TX */
2277 RCAR_GP_PIN(7, 14), RCAR_GP_PIN(7, 15),
2278};
2279static const unsigned int hscif1_data_c_mux[] = {
2280 HRX1_C_MARK, HTX1_C_MARK,
2281};
2282static const unsigned int hscif1_clk_c_pins[] = {
2283 /* SCK */
2284 RCAR_GP_PIN(7, 16),
2285};
2286static const unsigned int hscif1_clk_c_mux[] = {
2287 HSCK1_C_MARK,
2288};
2289static const unsigned int hscif1_ctrl_c_pins[] = {
2290 /* RTS, CTS */
2291 RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
2292};
2293static const unsigned int hscif1_ctrl_c_mux[] = {
2294 HRTS1_N_C_MARK, HCTS1_N_C_MARK,
2295};
2296static const unsigned int hscif1_data_d_pins[] = {
2297 /* RX, TX */
2298 RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 18),
2299};
2300static const unsigned int hscif1_data_d_mux[] = {
2301 HRX1_D_MARK, HTX1_D_MARK,
2302};
Marek Vasut06ef9e82018-01-17 17:14:45 +01002303static const unsigned int hscif1_clk_e_pins[] = {
2304 /* SCK */
2305 RCAR_GP_PIN(2, 6),
2306};
2307static const unsigned int hscif1_clk_e_mux[] = {
2308 HSCK1_E_MARK,
2309};
2310static const unsigned int hscif1_ctrl_e_pins[] = {
2311 /* RTS, CTS */
2312 RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 7),
2313};
2314static const unsigned int hscif1_ctrl_e_mux[] = {
2315 HRTS1_N_E_MARK, HCTS1_N_E_MARK,
2316};
2317/* - HSCIF2 ----------------------------------------------------------------- */
2318static const unsigned int hscif2_data_pins[] = {
2319 /* RX, TX */
2320 RCAR_GP_PIN(4, 16), RCAR_GP_PIN(4, 17),
2321};
2322static const unsigned int hscif2_data_mux[] = {
2323 HRX2_MARK, HTX2_MARK,
2324};
2325static const unsigned int hscif2_clk_pins[] = {
2326 /* SCK */
2327 RCAR_GP_PIN(4, 15),
2328};
2329static const unsigned int hscif2_clk_mux[] = {
2330 HSCK2_MARK,
2331};
2332static const unsigned int hscif2_ctrl_pins[] = {
2333 /* RTS, CTS */
2334 RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 13),
2335};
2336static const unsigned int hscif2_ctrl_mux[] = {
2337 HRTS2_N_MARK, HCTS2_N_MARK,
2338};
2339static const unsigned int hscif2_data_b_pins[] = {
2340 /* RX, TX */
2341 RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 22),
2342};
2343static const unsigned int hscif2_data_b_mux[] = {
2344 HRX2_B_MARK, HTX2_B_MARK,
2345};
2346static const unsigned int hscif2_ctrl_b_pins[] = {
2347 /* RTS, CTS */
2348 RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 21),
2349};
2350static const unsigned int hscif2_ctrl_b_mux[] = {
2351 HRTS2_N_B_MARK, HCTS2_N_B_MARK,
2352};
2353static const unsigned int hscif2_data_c_pins[] = {
2354 /* RX, TX */
2355 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
2356};
2357static const unsigned int hscif2_data_c_mux[] = {
2358 HRX2_C_MARK, HTX2_C_MARK,
2359};
2360static const unsigned int hscif2_clk_c_pins[] = {
2361 /* SCK */
2362 RCAR_GP_PIN(5, 31),
2363};
2364static const unsigned int hscif2_clk_c_mux[] = {
2365 HSCK2_C_MARK,
2366};
2367static const unsigned int hscif2_data_d_pins[] = {
2368 /* RX, TX */
2369 RCAR_GP_PIN(1, 20), RCAR_GP_PIN(5, 31),
2370};
2371static const unsigned int hscif2_data_d_mux[] = {
2372 HRX2_B_MARK, HTX2_D_MARK,
2373};
2374/* - I2C0 ------------------------------------------------------------------- */
2375static const unsigned int i2c0_pins[] = {
2376 /* SCL, SDA */
2377 RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
2378};
2379static const unsigned int i2c0_mux[] = {
2380 I2C0_SCL_MARK, I2C0_SDA_MARK,
2381};
2382static const unsigned int i2c0_b_pins[] = {
2383 /* SCL, SDA */
2384 RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3),
2385};
2386static const unsigned int i2c0_b_mux[] = {
2387 I2C0_SCL_B_MARK, I2C0_SDA_B_MARK,
2388};
2389static const unsigned int i2c0_c_pins[] = {
2390 /* SCL, SDA */
2391 RCAR_GP_PIN(0, 16), RCAR_GP_PIN(1, 1),
2392};
2393static const unsigned int i2c0_c_mux[] = {
2394 I2C0_SCL_C_MARK, I2C0_SDA_C_MARK,
2395};
2396/* - I2C1 ------------------------------------------------------------------- */
2397static const unsigned int i2c1_pins[] = {
2398 /* SCL, SDA */
2399 RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 11),
2400};
2401static const unsigned int i2c1_mux[] = {
2402 I2C1_SCL_MARK, I2C1_SDA_MARK,
2403};
2404static const unsigned int i2c1_b_pins[] = {
2405 /* SCL, SDA */
2406 RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5),
2407};
2408static const unsigned int i2c1_b_mux[] = {
2409 I2C1_SCL_B_MARK, I2C1_SDA_B_MARK,
2410};
2411static const unsigned int i2c1_c_pins[] = {
2412 /* SCL, SDA */
2413 RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
2414};
2415static const unsigned int i2c1_c_mux[] = {
2416 I2C1_SCL_C_MARK, I2C1_SDA_C_MARK,
2417};
2418static const unsigned int i2c1_d_pins[] = {
2419 /* SCL, SDA */
2420 RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 26),
2421};
2422static const unsigned int i2c1_d_mux[] = {
2423 I2C1_SCL_D_MARK, I2C1_SDA_D_MARK,
2424};
2425static const unsigned int i2c1_e_pins[] = {
2426 /* SCL, SDA */
2427 RCAR_GP_PIN(7, 15), RCAR_GP_PIN(7, 16),
2428};
2429static const unsigned int i2c1_e_mux[] = {
2430 I2C1_SCL_E_MARK, I2C1_SDA_E_MARK,
2431};
2432/* - I2C2 ------------------------------------------------------------------- */
2433static const unsigned int i2c2_pins[] = {
2434 /* SCL, SDA */
2435 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
2436};
2437static const unsigned int i2c2_mux[] = {
2438 I2C2_SCL_MARK, I2C2_SDA_MARK,
2439};
2440static const unsigned int i2c2_b_pins[] = {
2441 /* SCL, SDA */
2442 RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 29),
2443};
2444static const unsigned int i2c2_b_mux[] = {
2445 I2C2_SCL_B_MARK, I2C2_SDA_B_MARK,
2446};
2447static const unsigned int i2c2_c_pins[] = {
2448 /* SCL, SDA */
2449 RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 14),
2450};
2451static const unsigned int i2c2_c_mux[] = {
2452 I2C2_SCL_C_MARK, I2C2_SDA_C_MARK,
2453};
2454static const unsigned int i2c2_d_pins[] = {
2455 /* SCL, SDA */
2456 RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 18),
2457};
2458static const unsigned int i2c2_d_mux[] = {
2459 I2C2_SCL_D_MARK, I2C2_SDA_D_MARK,
2460};
2461/* - I2C3 ------------------------------------------------------------------- */
2462static const unsigned int i2c3_pins[] = {
2463 /* SCL, SDA */
2464 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
2465};
2466static const unsigned int i2c3_mux[] = {
2467 I2C3_SCL_MARK, I2C3_SDA_MARK,
2468};
2469static const unsigned int i2c3_b_pins[] = {
2470 /* SCL, SDA */
2471 RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
2472};
2473static const unsigned int i2c3_b_mux[] = {
2474 I2C3_SCL_B_MARK, I2C3_SDA_B_MARK,
2475};
2476static const unsigned int i2c3_c_pins[] = {
2477 /* SCL, SDA */
2478 RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 23),
2479};
2480static const unsigned int i2c3_c_mux[] = {
2481 I2C3_SCL_C_MARK, I2C3_SDA_C_MARK,
2482};
2483static const unsigned int i2c3_d_pins[] = {
2484 /* SCL, SDA */
2485 RCAR_GP_PIN(0, 27), RCAR_GP_PIN(0, 28),
2486};
2487static const unsigned int i2c3_d_mux[] = {
2488 I2C3_SCL_D_MARK, I2C3_SDA_D_MARK,
2489};
2490/* - I2C4 ------------------------------------------------------------------- */
2491static const unsigned int i2c4_pins[] = {
2492 /* SCL, SDA */
2493 RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
2494};
2495static const unsigned int i2c4_mux[] = {
2496 I2C4_SCL_MARK, I2C4_SDA_MARK,
2497};
2498static const unsigned int i2c4_b_pins[] = {
2499 /* SCL, SDA */
2500 RCAR_GP_PIN(4, 27), RCAR_GP_PIN(4, 28),
2501};
2502static const unsigned int i2c4_b_mux[] = {
2503 I2C4_SCL_B_MARK, I2C4_SDA_B_MARK,
2504};
2505static const unsigned int i2c4_c_pins[] = {
2506 /* SCL, SDA */
2507 RCAR_GP_PIN(7, 13), RCAR_GP_PIN(7, 14),
2508};
2509static const unsigned int i2c4_c_mux[] = {
2510 I2C4_SCL_C_MARK, I2C4_SDA_C_MARK,
2511};
2512/* - I2C7 ------------------------------------------------------------------- */
2513static const unsigned int i2c7_pins[] = {
2514 /* SCL, SDA */
2515 RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
2516};
2517static const unsigned int i2c7_mux[] = {
2518 IIC0_SCL_MARK, IIC0_SDA_MARK,
2519};
2520static const unsigned int i2c7_b_pins[] = {
2521 /* SCL, SDA */
2522 RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3),
2523};
2524static const unsigned int i2c7_b_mux[] = {
2525 IIC0_SCL_B_MARK, IIC0_SDA_B_MARK,
2526};
2527static const unsigned int i2c7_c_pins[] = {
2528 /* SCL, SDA */
2529 RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
2530};
2531static const unsigned int i2c7_c_mux[] = {
2532 IIC0_SCL_C_MARK, IIC0_SDA_C_MARK,
2533};
2534/* - I2C8 ------------------------------------------------------------------- */
2535static const unsigned int i2c8_pins[] = {
2536 /* SCL, SDA */
2537 RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
2538};
2539static const unsigned int i2c8_mux[] = {
2540 IIC1_SCL_MARK, IIC1_SDA_MARK,
2541};
2542static const unsigned int i2c8_b_pins[] = {
2543 /* SCL, SDA */
2544 RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5),
2545};
2546static const unsigned int i2c8_b_mux[] = {
2547 IIC1_SCL_B_MARK, IIC1_SDA_B_MARK,
2548};
2549static const unsigned int i2c8_c_pins[] = {
2550 /* SCL, SDA */
2551 RCAR_GP_PIN(6, 22), RCAR_GP_PIN(6, 23),
2552};
2553static const unsigned int i2c8_c_mux[] = {
2554 IIC1_SCL_C_MARK, IIC1_SDA_C_MARK,
2555};
2556/* - INTC ------------------------------------------------------------------- */
2557static const unsigned int intc_irq0_pins[] = {
2558 /* IRQ */
2559 RCAR_GP_PIN(7, 10),
2560};
2561static const unsigned int intc_irq0_mux[] = {
2562 IRQ0_MARK,
2563};
2564static const unsigned int intc_irq1_pins[] = {
2565 /* IRQ */
2566 RCAR_GP_PIN(7, 11),
2567};
2568static const unsigned int intc_irq1_mux[] = {
2569 IRQ1_MARK,
2570};
2571static const unsigned int intc_irq2_pins[] = {
2572 /* IRQ */
2573 RCAR_GP_PIN(7, 12),
2574};
2575static const unsigned int intc_irq2_mux[] = {
2576 IRQ2_MARK,
2577};
2578static const unsigned int intc_irq3_pins[] = {
2579 /* IRQ */
2580 RCAR_GP_PIN(7, 13),
2581};
2582static const unsigned int intc_irq3_mux[] = {
2583 IRQ3_MARK,
2584};
Marek Vasut0e8e9892021-04-26 22:04:11 +02002585
2586#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut06ef9e82018-01-17 17:14:45 +01002587/* - MLB+ ------------------------------------------------------------------- */
2588static const unsigned int mlb_3pin_pins[] = {
2589 RCAR_GP_PIN(7, 7), RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9),
2590};
2591static const unsigned int mlb_3pin_mux[] = {
2592 MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK,
2593};
Marek Vasut0e8e9892021-04-26 22:04:11 +02002594#endif /* CONFIG_PINCTRL_PFC_R8A7791 || CONFIG_PINCTRL_PFC_R8A7793 */
2595
Marek Vasut06ef9e82018-01-17 17:14:45 +01002596/* - MMCIF ------------------------------------------------------------------ */
Marek Vasut0b9053d2023-01-26 21:01:37 +01002597static const unsigned int mmc_data_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01002598 /* D[0:7] */
2599 RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 19),
2600 RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 21),
2601 RCAR_GP_PIN(6, 22), RCAR_GP_PIN(6, 23),
2602 RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
2603};
Marek Vasut0b9053d2023-01-26 21:01:37 +01002604static const unsigned int mmc_data_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01002605 MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK,
2606 MMC_D4_MARK, MMC_D5_MARK, MMC_D6_MARK, MMC_D7_MARK,
2607};
Marek Vasut0b9053d2023-01-26 21:01:37 +01002608static const unsigned int mmc_data_b_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01002609 /* D[0:7] */
2610 RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 19),
2611 RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 21),
2612 RCAR_GP_PIN(6, 22), RCAR_GP_PIN(6, 23),
2613 RCAR_GP_PIN(6, 6), RCAR_GP_PIN(6, 7),
2614};
Marek Vasut0b9053d2023-01-26 21:01:37 +01002615static const unsigned int mmc_data_b_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01002616 MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK,
2617 MMC_D4_MARK, MMC_D5_MARK, MMC_D6_B_MARK, MMC_D7_B_MARK,
2618};
2619static const unsigned int mmc_ctrl_pins[] = {
2620 /* CLK, CMD */
2621 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 17),
2622};
2623static const unsigned int mmc_ctrl_mux[] = {
2624 MMC_CLK_MARK, MMC_CMD_MARK,
2625};
2626/* - MSIOF0 ----------------------------------------------------------------- */
2627static const unsigned int msiof0_clk_pins[] = {
2628 /* SCK */
2629 RCAR_GP_PIN(6, 24),
2630};
2631static const unsigned int msiof0_clk_mux[] = {
2632 MSIOF0_SCK_MARK,
2633};
2634static const unsigned int msiof0_sync_pins[] = {
2635 /* SYNC */
2636 RCAR_GP_PIN(6, 25),
2637};
2638static const unsigned int msiof0_sync_mux[] = {
2639 MSIOF0_SYNC_MARK,
2640};
2641static const unsigned int msiof0_ss1_pins[] = {
2642 /* SS1 */
2643 RCAR_GP_PIN(6, 28),
2644};
2645static const unsigned int msiof0_ss1_mux[] = {
2646 MSIOF0_SS1_MARK,
2647};
2648static const unsigned int msiof0_ss2_pins[] = {
2649 /* SS2 */
2650 RCAR_GP_PIN(6, 29),
2651};
2652static const unsigned int msiof0_ss2_mux[] = {
2653 MSIOF0_SS2_MARK,
2654};
2655static const unsigned int msiof0_rx_pins[] = {
2656 /* RXD */
2657 RCAR_GP_PIN(6, 27),
2658};
2659static const unsigned int msiof0_rx_mux[] = {
2660 MSIOF0_RXD_MARK,
2661};
2662static const unsigned int msiof0_tx_pins[] = {
2663 /* TXD */
2664 RCAR_GP_PIN(6, 26),
2665};
2666static const unsigned int msiof0_tx_mux[] = {
2667 MSIOF0_TXD_MARK,
2668};
2669
2670static const unsigned int msiof0_clk_b_pins[] = {
2671 /* SCK */
2672 RCAR_GP_PIN(0, 16),
2673};
2674static const unsigned int msiof0_clk_b_mux[] = {
2675 MSIOF0_SCK_B_MARK,
2676};
2677static const unsigned int msiof0_sync_b_pins[] = {
2678 /* SYNC */
2679 RCAR_GP_PIN(0, 17),
2680};
2681static const unsigned int msiof0_sync_b_mux[] = {
2682 MSIOF0_SYNC_B_MARK,
2683};
2684static const unsigned int msiof0_ss1_b_pins[] = {
2685 /* SS1 */
2686 RCAR_GP_PIN(0, 18),
2687};
2688static const unsigned int msiof0_ss1_b_mux[] = {
2689 MSIOF0_SS1_B_MARK,
2690};
2691static const unsigned int msiof0_ss2_b_pins[] = {
2692 /* SS2 */
2693 RCAR_GP_PIN(0, 19),
2694};
2695static const unsigned int msiof0_ss2_b_mux[] = {
2696 MSIOF0_SS2_B_MARK,
2697};
2698static const unsigned int msiof0_rx_b_pins[] = {
2699 /* RXD */
2700 RCAR_GP_PIN(0, 21),
2701};
2702static const unsigned int msiof0_rx_b_mux[] = {
2703 MSIOF0_RXD_B_MARK,
2704};
2705static const unsigned int msiof0_tx_b_pins[] = {
2706 /* TXD */
2707 RCAR_GP_PIN(0, 20),
2708};
2709static const unsigned int msiof0_tx_b_mux[] = {
2710 MSIOF0_TXD_B_MARK,
2711};
2712
2713static const unsigned int msiof0_clk_c_pins[] = {
2714 /* SCK */
2715 RCAR_GP_PIN(5, 26),
2716};
2717static const unsigned int msiof0_clk_c_mux[] = {
2718 MSIOF0_SCK_C_MARK,
2719};
2720static const unsigned int msiof0_sync_c_pins[] = {
2721 /* SYNC */
2722 RCAR_GP_PIN(5, 25),
2723};
2724static const unsigned int msiof0_sync_c_mux[] = {
2725 MSIOF0_SYNC_C_MARK,
2726};
2727static const unsigned int msiof0_ss1_c_pins[] = {
2728 /* SS1 */
2729 RCAR_GP_PIN(5, 27),
2730};
2731static const unsigned int msiof0_ss1_c_mux[] = {
2732 MSIOF0_SS1_C_MARK,
2733};
2734static const unsigned int msiof0_ss2_c_pins[] = {
2735 /* SS2 */
2736 RCAR_GP_PIN(5, 28),
2737};
2738static const unsigned int msiof0_ss2_c_mux[] = {
2739 MSIOF0_SS2_C_MARK,
2740};
2741static const unsigned int msiof0_rx_c_pins[] = {
2742 /* RXD */
2743 RCAR_GP_PIN(5, 29),
2744};
2745static const unsigned int msiof0_rx_c_mux[] = {
2746 MSIOF0_RXD_C_MARK,
2747};
2748static const unsigned int msiof0_tx_c_pins[] = {
2749 /* TXD */
2750 RCAR_GP_PIN(5, 30),
2751};
2752static const unsigned int msiof0_tx_c_mux[] = {
2753 MSIOF0_TXD_C_MARK,
2754};
2755/* - MSIOF1 ----------------------------------------------------------------- */
2756static const unsigned int msiof1_clk_pins[] = {
2757 /* SCK */
2758 RCAR_GP_PIN(0, 22),
2759};
2760static const unsigned int msiof1_clk_mux[] = {
2761 MSIOF1_SCK_MARK,
2762};
2763static const unsigned int msiof1_sync_pins[] = {
2764 /* SYNC */
2765 RCAR_GP_PIN(0, 23),
2766};
2767static const unsigned int msiof1_sync_mux[] = {
2768 MSIOF1_SYNC_MARK,
2769};
2770static const unsigned int msiof1_ss1_pins[] = {
2771 /* SS1 */
2772 RCAR_GP_PIN(0, 24),
2773};
2774static const unsigned int msiof1_ss1_mux[] = {
2775 MSIOF1_SS1_MARK,
2776};
2777static const unsigned int msiof1_ss2_pins[] = {
2778 /* SS2 */
2779 RCAR_GP_PIN(0, 25),
2780};
2781static const unsigned int msiof1_ss2_mux[] = {
2782 MSIOF1_SS2_MARK,
2783};
2784static const unsigned int msiof1_rx_pins[] = {
2785 /* RXD */
2786 RCAR_GP_PIN(0, 27),
2787};
2788static const unsigned int msiof1_rx_mux[] = {
2789 MSIOF1_RXD_MARK,
2790};
2791static const unsigned int msiof1_tx_pins[] = {
2792 /* TXD */
2793 RCAR_GP_PIN(0, 26),
2794};
2795static const unsigned int msiof1_tx_mux[] = {
2796 MSIOF1_TXD_MARK,
2797};
2798
2799static const unsigned int msiof1_clk_b_pins[] = {
2800 /* SCK */
2801 RCAR_GP_PIN(2, 29),
2802};
2803static const unsigned int msiof1_clk_b_mux[] = {
2804 MSIOF1_SCK_B_MARK,
2805};
2806static const unsigned int msiof1_sync_b_pins[] = {
2807 /* SYNC */
2808 RCAR_GP_PIN(2, 30),
2809};
2810static const unsigned int msiof1_sync_b_mux[] = {
2811 MSIOF1_SYNC_B_MARK,
2812};
2813static const unsigned int msiof1_ss1_b_pins[] = {
2814 /* SS1 */
2815 RCAR_GP_PIN(2, 31),
2816};
2817static const unsigned int msiof1_ss1_b_mux[] = {
2818 MSIOF1_SS1_B_MARK,
2819};
2820static const unsigned int msiof1_ss2_b_pins[] = {
2821 /* SS2 */
2822 RCAR_GP_PIN(7, 16),
2823};
2824static const unsigned int msiof1_ss2_b_mux[] = {
2825 MSIOF1_SS2_B_MARK,
2826};
2827static const unsigned int msiof1_rx_b_pins[] = {
2828 /* RXD */
2829 RCAR_GP_PIN(7, 18),
2830};
2831static const unsigned int msiof1_rx_b_mux[] = {
2832 MSIOF1_RXD_B_MARK,
2833};
2834static const unsigned int msiof1_tx_b_pins[] = {
2835 /* TXD */
2836 RCAR_GP_PIN(7, 17),
2837};
2838static const unsigned int msiof1_tx_b_mux[] = {
2839 MSIOF1_TXD_B_MARK,
2840};
2841
2842static const unsigned int msiof1_clk_c_pins[] = {
2843 /* SCK */
2844 RCAR_GP_PIN(2, 15),
2845};
2846static const unsigned int msiof1_clk_c_mux[] = {
2847 MSIOF1_SCK_C_MARK,
2848};
2849static const unsigned int msiof1_sync_c_pins[] = {
2850 /* SYNC */
2851 RCAR_GP_PIN(2, 16),
2852};
2853static const unsigned int msiof1_sync_c_mux[] = {
2854 MSIOF1_SYNC_C_MARK,
2855};
2856static const unsigned int msiof1_rx_c_pins[] = {
2857 /* RXD */
2858 RCAR_GP_PIN(2, 18),
2859};
2860static const unsigned int msiof1_rx_c_mux[] = {
2861 MSIOF1_RXD_C_MARK,
2862};
2863static const unsigned int msiof1_tx_c_pins[] = {
2864 /* TXD */
2865 RCAR_GP_PIN(2, 17),
2866};
2867static const unsigned int msiof1_tx_c_mux[] = {
2868 MSIOF1_TXD_C_MARK,
2869};
2870
2871static const unsigned int msiof1_clk_d_pins[] = {
2872 /* SCK */
2873 RCAR_GP_PIN(0, 28),
2874};
2875static const unsigned int msiof1_clk_d_mux[] = {
2876 MSIOF1_SCK_D_MARK,
2877};
2878static const unsigned int msiof1_sync_d_pins[] = {
2879 /* SYNC */
2880 RCAR_GP_PIN(0, 30),
2881};
2882static const unsigned int msiof1_sync_d_mux[] = {
2883 MSIOF1_SYNC_D_MARK,
2884};
2885static const unsigned int msiof1_ss1_d_pins[] = {
2886 /* SS1 */
2887 RCAR_GP_PIN(0, 29),
2888};
2889static const unsigned int msiof1_ss1_d_mux[] = {
2890 MSIOF1_SS1_D_MARK,
2891};
2892static const unsigned int msiof1_rx_d_pins[] = {
2893 /* RXD */
2894 RCAR_GP_PIN(0, 27),
2895};
2896static const unsigned int msiof1_rx_d_mux[] = {
2897 MSIOF1_RXD_D_MARK,
2898};
2899static const unsigned int msiof1_tx_d_pins[] = {
2900 /* TXD */
2901 RCAR_GP_PIN(0, 26),
2902};
2903static const unsigned int msiof1_tx_d_mux[] = {
2904 MSIOF1_TXD_D_MARK,
2905};
2906
2907static const unsigned int msiof1_clk_e_pins[] = {
2908 /* SCK */
2909 RCAR_GP_PIN(5, 18),
2910};
2911static const unsigned int msiof1_clk_e_mux[] = {
2912 MSIOF1_SCK_E_MARK,
2913};
2914static const unsigned int msiof1_sync_e_pins[] = {
2915 /* SYNC */
2916 RCAR_GP_PIN(5, 19),
2917};
2918static const unsigned int msiof1_sync_e_mux[] = {
2919 MSIOF1_SYNC_E_MARK,
2920};
2921static const unsigned int msiof1_rx_e_pins[] = {
2922 /* RXD */
2923 RCAR_GP_PIN(5, 17),
2924};
2925static const unsigned int msiof1_rx_e_mux[] = {
2926 MSIOF1_RXD_E_MARK,
2927};
2928static const unsigned int msiof1_tx_e_pins[] = {
2929 /* TXD */
2930 RCAR_GP_PIN(5, 20),
2931};
2932static const unsigned int msiof1_tx_e_mux[] = {
2933 MSIOF1_TXD_E_MARK,
2934};
2935/* - MSIOF2 ----------------------------------------------------------------- */
2936static const unsigned int msiof2_clk_pins[] = {
2937 /* SCK */
2938 RCAR_GP_PIN(1, 13),
2939};
2940static const unsigned int msiof2_clk_mux[] = {
2941 MSIOF2_SCK_MARK,
2942};
2943static const unsigned int msiof2_sync_pins[] = {
2944 /* SYNC */
2945 RCAR_GP_PIN(1, 14),
2946};
2947static const unsigned int msiof2_sync_mux[] = {
2948 MSIOF2_SYNC_MARK,
2949};
2950static const unsigned int msiof2_ss1_pins[] = {
2951 /* SS1 */
2952 RCAR_GP_PIN(1, 17),
2953};
2954static const unsigned int msiof2_ss1_mux[] = {
2955 MSIOF2_SS1_MARK,
2956};
2957static const unsigned int msiof2_ss2_pins[] = {
2958 /* SS2 */
2959 RCAR_GP_PIN(1, 18),
2960};
2961static const unsigned int msiof2_ss2_mux[] = {
2962 MSIOF2_SS2_MARK,
2963};
2964static const unsigned int msiof2_rx_pins[] = {
2965 /* RXD */
2966 RCAR_GP_PIN(1, 16),
2967};
2968static const unsigned int msiof2_rx_mux[] = {
2969 MSIOF2_RXD_MARK,
2970};
2971static const unsigned int msiof2_tx_pins[] = {
2972 /* TXD */
2973 RCAR_GP_PIN(1, 15),
2974};
2975static const unsigned int msiof2_tx_mux[] = {
2976 MSIOF2_TXD_MARK,
2977};
2978
2979static const unsigned int msiof2_clk_b_pins[] = {
2980 /* SCK */
2981 RCAR_GP_PIN(3, 0),
2982};
2983static const unsigned int msiof2_clk_b_mux[] = {
2984 MSIOF2_SCK_B_MARK,
2985};
2986static const unsigned int msiof2_sync_b_pins[] = {
2987 /* SYNC */
2988 RCAR_GP_PIN(3, 1),
2989};
2990static const unsigned int msiof2_sync_b_mux[] = {
2991 MSIOF2_SYNC_B_MARK,
2992};
2993static const unsigned int msiof2_ss1_b_pins[] = {
2994 /* SS1 */
2995 RCAR_GP_PIN(3, 8),
2996};
2997static const unsigned int msiof2_ss1_b_mux[] = {
2998 MSIOF2_SS1_B_MARK,
2999};
3000static const unsigned int msiof2_ss2_b_pins[] = {
3001 /* SS2 */
3002 RCAR_GP_PIN(3, 9),
3003};
3004static const unsigned int msiof2_ss2_b_mux[] = {
3005 MSIOF2_SS2_B_MARK,
3006};
3007static const unsigned int msiof2_rx_b_pins[] = {
3008 /* RXD */
3009 RCAR_GP_PIN(3, 17),
3010};
3011static const unsigned int msiof2_rx_b_mux[] = {
3012 MSIOF2_RXD_B_MARK,
3013};
3014static const unsigned int msiof2_tx_b_pins[] = {
3015 /* TXD */
3016 RCAR_GP_PIN(3, 16),
3017};
3018static const unsigned int msiof2_tx_b_mux[] = {
3019 MSIOF2_TXD_B_MARK,
3020};
3021
3022static const unsigned int msiof2_clk_c_pins[] = {
3023 /* SCK */
3024 RCAR_GP_PIN(2, 2),
3025};
3026static const unsigned int msiof2_clk_c_mux[] = {
3027 MSIOF2_SCK_C_MARK,
3028};
3029static const unsigned int msiof2_sync_c_pins[] = {
3030 /* SYNC */
3031 RCAR_GP_PIN(2, 3),
3032};
3033static const unsigned int msiof2_sync_c_mux[] = {
3034 MSIOF2_SYNC_C_MARK,
3035};
3036static const unsigned int msiof2_rx_c_pins[] = {
3037 /* RXD */
3038 RCAR_GP_PIN(2, 5),
3039};
3040static const unsigned int msiof2_rx_c_mux[] = {
3041 MSIOF2_RXD_C_MARK,
3042};
3043static const unsigned int msiof2_tx_c_pins[] = {
3044 /* TXD */
3045 RCAR_GP_PIN(2, 4),
3046};
3047static const unsigned int msiof2_tx_c_mux[] = {
3048 MSIOF2_TXD_C_MARK,
3049};
3050
3051static const unsigned int msiof2_clk_d_pins[] = {
3052 /* SCK */
3053 RCAR_GP_PIN(2, 14),
3054};
3055static const unsigned int msiof2_clk_d_mux[] = {
3056 MSIOF2_SCK_D_MARK,
3057};
3058static const unsigned int msiof2_sync_d_pins[] = {
3059 /* SYNC */
3060 RCAR_GP_PIN(2, 15),
3061};
3062static const unsigned int msiof2_sync_d_mux[] = {
3063 MSIOF2_SYNC_D_MARK,
3064};
3065static const unsigned int msiof2_ss1_d_pins[] = {
3066 /* SS1 */
3067 RCAR_GP_PIN(2, 17),
3068};
3069static const unsigned int msiof2_ss1_d_mux[] = {
3070 MSIOF2_SS1_D_MARK,
3071};
3072static const unsigned int msiof2_ss2_d_pins[] = {
3073 /* SS2 */
3074 RCAR_GP_PIN(2, 19),
3075};
3076static const unsigned int msiof2_ss2_d_mux[] = {
3077 MSIOF2_SS2_D_MARK,
3078};
3079static const unsigned int msiof2_rx_d_pins[] = {
3080 /* RXD */
3081 RCAR_GP_PIN(2, 18),
3082};
3083static const unsigned int msiof2_rx_d_mux[] = {
3084 MSIOF2_RXD_D_MARK,
3085};
3086static const unsigned int msiof2_tx_d_pins[] = {
3087 /* TXD */
3088 RCAR_GP_PIN(2, 16),
3089};
3090static const unsigned int msiof2_tx_d_mux[] = {
3091 MSIOF2_TXD_D_MARK,
3092};
3093
3094static const unsigned int msiof2_clk_e_pins[] = {
3095 /* SCK */
3096 RCAR_GP_PIN(7, 15),
3097};
3098static const unsigned int msiof2_clk_e_mux[] = {
3099 MSIOF2_SCK_E_MARK,
3100};
3101static const unsigned int msiof2_sync_e_pins[] = {
3102 /* SYNC */
3103 RCAR_GP_PIN(7, 16),
3104};
3105static const unsigned int msiof2_sync_e_mux[] = {
3106 MSIOF2_SYNC_E_MARK,
3107};
3108static const unsigned int msiof2_rx_e_pins[] = {
3109 /* RXD */
3110 RCAR_GP_PIN(7, 14),
3111};
3112static const unsigned int msiof2_rx_e_mux[] = {
3113 MSIOF2_RXD_E_MARK,
3114};
3115static const unsigned int msiof2_tx_e_pins[] = {
3116 /* TXD */
3117 RCAR_GP_PIN(7, 13),
3118};
3119static const unsigned int msiof2_tx_e_mux[] = {
3120 MSIOF2_TXD_E_MARK,
3121};
3122/* - PWM -------------------------------------------------------------------- */
3123static const unsigned int pwm0_pins[] = {
3124 RCAR_GP_PIN(6, 14),
3125};
3126static const unsigned int pwm0_mux[] = {
3127 PWM0_MARK,
3128};
3129static const unsigned int pwm0_b_pins[] = {
3130 RCAR_GP_PIN(5, 30),
3131};
3132static const unsigned int pwm0_b_mux[] = {
3133 PWM0_B_MARK,
3134};
3135static const unsigned int pwm1_pins[] = {
3136 RCAR_GP_PIN(1, 17),
3137};
3138static const unsigned int pwm1_mux[] = {
3139 PWM1_MARK,
3140};
3141static const unsigned int pwm1_b_pins[] = {
3142 RCAR_GP_PIN(6, 15),
3143};
3144static const unsigned int pwm1_b_mux[] = {
3145 PWM1_B_MARK,
3146};
3147static const unsigned int pwm2_pins[] = {
3148 RCAR_GP_PIN(1, 18),
3149};
3150static const unsigned int pwm2_mux[] = {
3151 PWM2_MARK,
3152};
3153static const unsigned int pwm2_b_pins[] = {
3154 RCAR_GP_PIN(0, 16),
3155};
3156static const unsigned int pwm2_b_mux[] = {
3157 PWM2_B_MARK,
3158};
3159static const unsigned int pwm3_pins[] = {
3160 RCAR_GP_PIN(1, 24),
3161};
3162static const unsigned int pwm3_mux[] = {
3163 PWM3_MARK,
3164};
3165static const unsigned int pwm4_pins[] = {
3166 RCAR_GP_PIN(3, 26),
3167};
3168static const unsigned int pwm4_mux[] = {
3169 PWM4_MARK,
3170};
3171static const unsigned int pwm4_b_pins[] = {
3172 RCAR_GP_PIN(3, 31),
3173};
3174static const unsigned int pwm4_b_mux[] = {
3175 PWM4_B_MARK,
3176};
3177static const unsigned int pwm5_pins[] = {
3178 RCAR_GP_PIN(7, 21),
3179};
3180static const unsigned int pwm5_mux[] = {
3181 PWM5_MARK,
3182};
3183static const unsigned int pwm5_b_pins[] = {
3184 RCAR_GP_PIN(7, 20),
3185};
3186static const unsigned int pwm5_b_mux[] = {
3187 PWM5_B_MARK,
3188};
3189static const unsigned int pwm6_pins[] = {
3190 RCAR_GP_PIN(7, 22),
3191};
3192static const unsigned int pwm6_mux[] = {
3193 PWM6_MARK,
3194};
3195/* - QSPI ------------------------------------------------------------------- */
3196static const unsigned int qspi_ctrl_pins[] = {
3197 /* SPCLK, SSL */
3198 RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 9),
3199};
3200static const unsigned int qspi_ctrl_mux[] = {
3201 SPCLK_MARK, SSL_MARK,
3202};
Marek Vasut0b9053d2023-01-26 21:01:37 +01003203static const unsigned int qspi_data_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003204 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
3205 RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
3206 RCAR_GP_PIN(1, 8),
3207};
Marek Vasut0b9053d2023-01-26 21:01:37 +01003208static const unsigned int qspi_data_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003209 MOSI_IO0_MARK, MISO_IO1_MARK, IO2_MARK, IO3_MARK,
3210};
3211
3212static const unsigned int qspi_ctrl_b_pins[] = {
3213 /* SPCLK, SSL */
3214 RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 5),
3215};
3216static const unsigned int qspi_ctrl_b_mux[] = {
3217 SPCLK_B_MARK, SSL_B_MARK,
3218};
Marek Vasut0b9053d2023-01-26 21:01:37 +01003219static const unsigned int qspi_data_b_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003220 /* MOSI_IO0, MISO_IO1, IO2, IO3 */
3221 RCAR_GP_PIN(6, 1), RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3),
3222 RCAR_GP_PIN(6, 4),
3223};
Marek Vasut0b9053d2023-01-26 21:01:37 +01003224static const unsigned int qspi_data_b_mux[] = {
Marek Vasut0913c7a2019-03-04 22:26:28 +01003225 MOSI_IO0_B_MARK, MISO_IO1_B_MARK, IO2_B_MARK, IO3_B_MARK,
Marek Vasut06ef9e82018-01-17 17:14:45 +01003226};
3227/* - SCIF0 ------------------------------------------------------------------ */
3228static const unsigned int scif0_data_pins[] = {
3229 /* RX, TX */
3230 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
3231};
3232static const unsigned int scif0_data_mux[] = {
3233 RX0_MARK, TX0_MARK,
3234};
3235static const unsigned int scif0_data_b_pins[] = {
3236 /* RX, TX */
3237 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
3238};
3239static const unsigned int scif0_data_b_mux[] = {
3240 RX0_B_MARK, TX0_B_MARK,
3241};
3242static const unsigned int scif0_data_c_pins[] = {
3243 /* RX, TX */
3244 RCAR_GP_PIN(4, 26), RCAR_GP_PIN(4, 25),
3245};
3246static const unsigned int scif0_data_c_mux[] = {
3247 RX0_C_MARK, TX0_C_MARK,
3248};
3249static const unsigned int scif0_data_d_pins[] = {
3250 /* RX, TX */
3251 RCAR_GP_PIN(2, 23), RCAR_GP_PIN(2, 22),
3252};
3253static const unsigned int scif0_data_d_mux[] = {
3254 RX0_D_MARK, TX0_D_MARK,
3255};
3256static const unsigned int scif0_data_e_pins[] = {
3257 /* RX, TX */
3258 RCAR_GP_PIN(6, 29), RCAR_GP_PIN(6, 28),
3259};
3260static const unsigned int scif0_data_e_mux[] = {
3261 RX0_E_MARK, TX0_E_MARK,
3262};
3263/* - SCIF1 ------------------------------------------------------------------ */
3264static const unsigned int scif1_data_pins[] = {
3265 /* RX, TX */
3266 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
3267};
3268static const unsigned int scif1_data_mux[] = {
3269 RX1_MARK, TX1_MARK,
3270};
3271static const unsigned int scif1_data_b_pins[] = {
3272 /* RX, TX */
3273 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
3274};
3275static const unsigned int scif1_data_b_mux[] = {
3276 RX1_B_MARK, TX1_B_MARK,
3277};
3278static const unsigned int scif1_clk_b_pins[] = {
3279 /* SCK */
3280 RCAR_GP_PIN(3, 10),
3281};
3282static const unsigned int scif1_clk_b_mux[] = {
3283 SCIF1_SCK_B_MARK,
3284};
3285static const unsigned int scif1_data_c_pins[] = {
3286 /* RX, TX */
3287 RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 27),
3288};
3289static const unsigned int scif1_data_c_mux[] = {
3290 RX1_C_MARK, TX1_C_MARK,
3291};
3292static const unsigned int scif1_data_d_pins[] = {
3293 /* RX, TX */
3294 RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 24),
3295};
3296static const unsigned int scif1_data_d_mux[] = {
3297 RX1_D_MARK, TX1_D_MARK,
3298};
3299/* - SCIF2 ------------------------------------------------------------------ */
3300static const unsigned int scif2_data_pins[] = {
3301 /* RX, TX */
3302 RCAR_GP_PIN(2, 30), RCAR_GP_PIN(2, 31),
3303};
3304static const unsigned int scif2_data_mux[] = {
3305 RX2_MARK, TX2_MARK,
3306};
3307static const unsigned int scif2_data_b_pins[] = {
3308 /* RX, TX */
3309 RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
3310};
3311static const unsigned int scif2_data_b_mux[] = {
3312 RX2_B_MARK, TX2_B_MARK,
3313};
3314static const unsigned int scif2_clk_b_pins[] = {
3315 /* SCK */
3316 RCAR_GP_PIN(3, 18),
3317};
3318static const unsigned int scif2_clk_b_mux[] = {
3319 SCIF2_SCK_B_MARK,
3320};
3321static const unsigned int scif2_data_c_pins[] = {
3322 /* RX, TX */
3323 RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25),
3324};
3325static const unsigned int scif2_data_c_mux[] = {
3326 RX2_C_MARK, TX2_C_MARK,
3327};
3328static const unsigned int scif2_data_e_pins[] = {
3329 /* RX, TX */
3330 RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
3331};
3332static const unsigned int scif2_data_e_mux[] = {
3333 RX2_E_MARK, TX2_E_MARK,
3334};
3335/* - SCIF3 ------------------------------------------------------------------ */
3336static const unsigned int scif3_data_pins[] = {
3337 /* RX, TX */
3338 RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
3339};
3340static const unsigned int scif3_data_mux[] = {
3341 RX3_MARK, TX3_MARK,
3342};
3343static const unsigned int scif3_clk_pins[] = {
3344 /* SCK */
3345 RCAR_GP_PIN(3, 23),
3346};
3347static const unsigned int scif3_clk_mux[] = {
3348 SCIF3_SCK_MARK,
3349};
3350static const unsigned int scif3_data_b_pins[] = {
3351 /* RX, TX */
3352 RCAR_GP_PIN(3, 29), RCAR_GP_PIN(3, 26),
3353};
3354static const unsigned int scif3_data_b_mux[] = {
3355 RX3_B_MARK, TX3_B_MARK,
3356};
3357static const unsigned int scif3_clk_b_pins[] = {
3358 /* SCK */
3359 RCAR_GP_PIN(4, 8),
3360};
3361static const unsigned int scif3_clk_b_mux[] = {
3362 SCIF3_SCK_B_MARK,
3363};
3364static const unsigned int scif3_data_c_pins[] = {
3365 /* RX, TX */
3366 RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
3367};
3368static const unsigned int scif3_data_c_mux[] = {
3369 RX3_C_MARK, TX3_C_MARK,
3370};
3371static const unsigned int scif3_data_d_pins[] = {
3372 /* RX, TX */
3373 RCAR_GP_PIN(2, 27), RCAR_GP_PIN(2, 26),
3374};
3375static const unsigned int scif3_data_d_mux[] = {
3376 RX3_D_MARK, TX3_D_MARK,
3377};
3378/* - SCIF4 ------------------------------------------------------------------ */
3379static const unsigned int scif4_data_pins[] = {
3380 /* RX, TX */
3381 RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 1),
3382};
3383static const unsigned int scif4_data_mux[] = {
3384 RX4_MARK, TX4_MARK,
3385};
3386static const unsigned int scif4_data_b_pins[] = {
3387 /* RX, TX */
3388 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 0),
3389};
3390static const unsigned int scif4_data_b_mux[] = {
3391 RX4_B_MARK, TX4_B_MARK,
3392};
3393static const unsigned int scif4_data_c_pins[] = {
3394 /* RX, TX */
3395 RCAR_GP_PIN(7, 22), RCAR_GP_PIN(7, 21),
3396};
3397static const unsigned int scif4_data_c_mux[] = {
3398 RX4_C_MARK, TX4_C_MARK,
3399};
3400/* - SCIF5 ------------------------------------------------------------------ */
3401static const unsigned int scif5_data_pins[] = {
3402 /* RX, TX */
3403 RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 3),
3404};
3405static const unsigned int scif5_data_mux[] = {
3406 RX5_MARK, TX5_MARK,
3407};
3408static const unsigned int scif5_data_b_pins[] = {
3409 /* RX, TX */
3410 RCAR_GP_PIN(6, 23), RCAR_GP_PIN(6, 22),
3411};
3412static const unsigned int scif5_data_b_mux[] = {
3413 RX5_B_MARK, TX5_B_MARK,
3414};
3415/* - SCIFA0 ----------------------------------------------------------------- */
3416static const unsigned int scifa0_data_pins[] = {
3417 /* RXD, TXD */
3418 RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
3419};
3420static const unsigned int scifa0_data_mux[] = {
3421 SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
3422};
3423static const unsigned int scifa0_data_b_pins[] = {
3424 /* RXD, TXD */
3425 RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
3426};
3427static const unsigned int scifa0_data_b_mux[] = {
3428 SCIFA0_RXD_B_MARK, SCIFA0_TXD_B_MARK
3429};
3430/* - SCIFA1 ----------------------------------------------------------------- */
3431static const unsigned int scifa1_data_pins[] = {
3432 /* RXD, TXD */
3433 RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
3434};
3435static const unsigned int scifa1_data_mux[] = {
3436 SCIFA1_RXD_MARK, SCIFA1_TXD_MARK,
3437};
3438static const unsigned int scifa1_clk_pins[] = {
3439 /* SCK */
3440 RCAR_GP_PIN(3, 10),
3441};
3442static const unsigned int scifa1_clk_mux[] = {
3443 SCIFA1_SCK_MARK,
3444};
3445static const unsigned int scifa1_data_b_pins[] = {
3446 /* RXD, TXD */
3447 RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
3448};
3449static const unsigned int scifa1_data_b_mux[] = {
3450 SCIFA1_RXD_B_MARK, SCIFA1_TXD_B_MARK,
3451};
3452static const unsigned int scifa1_clk_b_pins[] = {
3453 /* SCK */
3454 RCAR_GP_PIN(1, 0),
3455};
3456static const unsigned int scifa1_clk_b_mux[] = {
3457 SCIFA1_SCK_B_MARK,
3458};
3459static const unsigned int scifa1_data_c_pins[] = {
3460 /* RXD, TXD */
3461 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
3462};
3463static const unsigned int scifa1_data_c_mux[] = {
3464 SCIFA1_RXD_C_MARK, SCIFA1_TXD_C_MARK,
3465};
3466/* - SCIFA2 ----------------------------------------------------------------- */
3467static const unsigned int scifa2_data_pins[] = {
3468 /* RXD, TXD */
3469 RCAR_GP_PIN(2, 30), RCAR_GP_PIN(2, 31),
3470};
3471static const unsigned int scifa2_data_mux[] = {
3472 SCIFA2_RXD_MARK, SCIFA2_TXD_MARK,
3473};
3474static const unsigned int scifa2_clk_pins[] = {
3475 /* SCK */
3476 RCAR_GP_PIN(3, 18),
3477};
3478static const unsigned int scifa2_clk_mux[] = {
3479 SCIFA2_SCK_MARK,
3480};
3481static const unsigned int scifa2_data_b_pins[] = {
3482 /* RXD, TXD */
3483 RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
3484};
3485static const unsigned int scifa2_data_b_mux[] = {
3486 SCIFA2_RXD_B_MARK, SCIFA2_TXD_B_MARK,
3487};
3488/* - SCIFA3 ----------------------------------------------------------------- */
3489static const unsigned int scifa3_data_pins[] = {
3490 /* RXD, TXD */
3491 RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
3492};
3493static const unsigned int scifa3_data_mux[] = {
3494 SCIFA3_RXD_MARK, SCIFA3_TXD_MARK,
3495};
3496static const unsigned int scifa3_clk_pins[] = {
3497 /* SCK */
3498 RCAR_GP_PIN(3, 23),
3499};
3500static const unsigned int scifa3_clk_mux[] = {
3501 SCIFA3_SCK_MARK,
3502};
3503static const unsigned int scifa3_data_b_pins[] = {
3504 /* RXD, TXD */
3505 RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 20),
3506};
3507static const unsigned int scifa3_data_b_mux[] = {
3508 SCIFA3_RXD_B_MARK, SCIFA3_TXD_B_MARK,
3509};
3510static const unsigned int scifa3_clk_b_pins[] = {
3511 /* SCK */
3512 RCAR_GP_PIN(4, 8),
3513};
3514static const unsigned int scifa3_clk_b_mux[] = {
3515 SCIFA3_SCK_B_MARK,
3516};
3517static const unsigned int scifa3_data_c_pins[] = {
3518 /* RXD, TXD */
3519 RCAR_GP_PIN(7, 21), RCAR_GP_PIN(7, 20),
3520};
3521static const unsigned int scifa3_data_c_mux[] = {
3522 SCIFA3_RXD_C_MARK, SCIFA3_TXD_C_MARK,
3523};
3524static const unsigned int scifa3_clk_c_pins[] = {
3525 /* SCK */
3526 RCAR_GP_PIN(7, 22),
3527};
3528static const unsigned int scifa3_clk_c_mux[] = {
3529 SCIFA3_SCK_C_MARK,
3530};
3531/* - SCIFA4 ----------------------------------------------------------------- */
3532static const unsigned int scifa4_data_pins[] = {
3533 /* RXD, TXD */
3534 RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 1),
3535};
3536static const unsigned int scifa4_data_mux[] = {
3537 SCIFA4_RXD_MARK, SCIFA4_TXD_MARK,
3538};
3539static const unsigned int scifa4_data_b_pins[] = {
3540 /* RXD, TXD */
3541 RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 0),
3542};
3543static const unsigned int scifa4_data_b_mux[] = {
3544 SCIFA4_RXD_B_MARK, SCIFA4_TXD_B_MARK,
3545};
3546static const unsigned int scifa4_data_c_pins[] = {
3547 /* RXD, TXD */
3548 RCAR_GP_PIN(7, 22), RCAR_GP_PIN(7, 21),
3549};
3550static const unsigned int scifa4_data_c_mux[] = {
3551 SCIFA4_RXD_C_MARK, SCIFA4_TXD_C_MARK,
3552};
3553/* - SCIFA5 ----------------------------------------------------------------- */
3554static const unsigned int scifa5_data_pins[] = {
3555 /* RXD, TXD */
3556 RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 3),
3557};
3558static const unsigned int scifa5_data_mux[] = {
3559 SCIFA5_RXD_MARK, SCIFA5_TXD_MARK,
3560};
3561static const unsigned int scifa5_data_b_pins[] = {
3562 /* RXD, TXD */
3563 RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
3564};
3565static const unsigned int scifa5_data_b_mux[] = {
3566 SCIFA5_RXD_B_MARK, SCIFA5_TXD_B_MARK,
3567};
3568static const unsigned int scifa5_data_c_pins[] = {
3569 /* RXD, TXD */
3570 RCAR_GP_PIN(6, 23), RCAR_GP_PIN(6, 22),
3571};
3572static const unsigned int scifa5_data_c_mux[] = {
3573 SCIFA5_RXD_C_MARK, SCIFA5_TXD_C_MARK,
3574};
3575/* - SCIFB0 ----------------------------------------------------------------- */
3576static const unsigned int scifb0_data_pins[] = {
3577 /* RXD, TXD */
3578 RCAR_GP_PIN(7, 3), RCAR_GP_PIN(7, 4),
3579};
3580static const unsigned int scifb0_data_mux[] = {
3581 SCIFB0_RXD_MARK, SCIFB0_TXD_MARK,
3582};
3583static const unsigned int scifb0_clk_pins[] = {
3584 /* SCK */
3585 RCAR_GP_PIN(7, 2),
3586};
3587static const unsigned int scifb0_clk_mux[] = {
3588 SCIFB0_SCK_MARK,
3589};
3590static const unsigned int scifb0_ctrl_pins[] = {
3591 /* RTS, CTS */
3592 RCAR_GP_PIN(7, 1), RCAR_GP_PIN(7, 0),
3593};
3594static const unsigned int scifb0_ctrl_mux[] = {
3595 SCIFB0_RTS_N_MARK, SCIFB0_CTS_N_MARK,
3596};
3597static const unsigned int scifb0_data_b_pins[] = {
3598 /* RXD, TXD */
3599 RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 21),
3600};
3601static const unsigned int scifb0_data_b_mux[] = {
3602 SCIFB0_RXD_B_MARK, SCIFB0_TXD_B_MARK,
3603};
3604static const unsigned int scifb0_clk_b_pins[] = {
3605 /* SCK */
3606 RCAR_GP_PIN(5, 31),
3607};
3608static const unsigned int scifb0_clk_b_mux[] = {
3609 SCIFB0_SCK_B_MARK,
3610};
3611static const unsigned int scifb0_ctrl_b_pins[] = {
3612 /* RTS, CTS */
3613 RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 23),
3614};
3615static const unsigned int scifb0_ctrl_b_mux[] = {
3616 SCIFB0_RTS_N_B_MARK, SCIFB0_CTS_N_B_MARK,
3617};
3618static const unsigned int scifb0_data_c_pins[] = {
3619 /* RXD, TXD */
3620 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
3621};
3622static const unsigned int scifb0_data_c_mux[] = {
3623 SCIFB0_RXD_C_MARK, SCIFB0_TXD_C_MARK,
3624};
3625static const unsigned int scifb0_clk_c_pins[] = {
3626 /* SCK */
3627 RCAR_GP_PIN(2, 30),
3628};
3629static const unsigned int scifb0_clk_c_mux[] = {
3630 SCIFB0_SCK_C_MARK,
3631};
3632static const unsigned int scifb0_data_d_pins[] = {
3633 /* RXD, TXD */
3634 RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 18),
3635};
3636static const unsigned int scifb0_data_d_mux[] = {
3637 SCIFB0_RXD_D_MARK, SCIFB0_TXD_D_MARK,
3638};
3639static const unsigned int scifb0_clk_d_pins[] = {
3640 /* SCK */
3641 RCAR_GP_PIN(4, 17),
3642};
3643static const unsigned int scifb0_clk_d_mux[] = {
3644 SCIFB0_SCK_D_MARK,
3645};
3646/* - SCIFB1 ----------------------------------------------------------------- */
3647static const unsigned int scifb1_data_pins[] = {
3648 /* RXD, TXD */
3649 RCAR_GP_PIN(7, 5), RCAR_GP_PIN(7, 6),
3650};
3651static const unsigned int scifb1_data_mux[] = {
3652 SCIFB1_RXD_MARK, SCIFB1_TXD_MARK,
3653};
3654static const unsigned int scifb1_clk_pins[] = {
3655 /* SCK */
3656 RCAR_GP_PIN(7, 7),
3657};
3658static const unsigned int scifb1_clk_mux[] = {
3659 SCIFB1_SCK_MARK,
3660};
3661static const unsigned int scifb1_ctrl_pins[] = {
3662 /* RTS, CTS */
3663 RCAR_GP_PIN(7, 9), RCAR_GP_PIN(7, 8),
3664};
3665static const unsigned int scifb1_ctrl_mux[] = {
3666 SCIFB1_RTS_N_MARK, SCIFB1_CTS_N_MARK,
3667};
3668static const unsigned int scifb1_data_b_pins[] = {
3669 /* RXD, TXD */
3670 RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
3671};
3672static const unsigned int scifb1_data_b_mux[] = {
3673 SCIFB1_RXD_B_MARK, SCIFB1_TXD_B_MARK,
3674};
3675static const unsigned int scifb1_clk_b_pins[] = {
3676 /* SCK */
3677 RCAR_GP_PIN(1, 3),
3678};
3679static const unsigned int scifb1_clk_b_mux[] = {
3680 SCIFB1_SCK_B_MARK,
3681};
3682static const unsigned int scifb1_data_c_pins[] = {
3683 /* RXD, TXD */
3684 RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
3685};
3686static const unsigned int scifb1_data_c_mux[] = {
3687 SCIFB1_RXD_C_MARK, SCIFB1_TXD_C_MARK,
3688};
3689static const unsigned int scifb1_clk_c_pins[] = {
3690 /* SCK */
3691 RCAR_GP_PIN(7, 11),
3692};
3693static const unsigned int scifb1_clk_c_mux[] = {
3694 SCIFB1_SCK_C_MARK,
3695};
3696static const unsigned int scifb1_data_d_pins[] = {
3697 /* RXD, TXD */
3698 RCAR_GP_PIN(7, 10), RCAR_GP_PIN(7, 12),
3699};
3700static const unsigned int scifb1_data_d_mux[] = {
3701 SCIFB1_RXD_D_MARK, SCIFB1_TXD_D_MARK,
3702};
3703/* - SCIFB2 ----------------------------------------------------------------- */
3704static const unsigned int scifb2_data_pins[] = {
3705 /* RXD, TXD */
3706 RCAR_GP_PIN(4, 16), RCAR_GP_PIN(4, 17),
3707};
3708static const unsigned int scifb2_data_mux[] = {
3709 SCIFB2_RXD_MARK, SCIFB2_TXD_MARK,
3710};
3711static const unsigned int scifb2_clk_pins[] = {
3712 /* SCK */
3713 RCAR_GP_PIN(4, 15),
3714};
3715static const unsigned int scifb2_clk_mux[] = {
3716 SCIFB2_SCK_MARK,
3717};
3718static const unsigned int scifb2_ctrl_pins[] = {
3719 /* RTS, CTS */
3720 RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 13),
3721};
3722static const unsigned int scifb2_ctrl_mux[] = {
3723 SCIFB2_RTS_N_MARK, SCIFB2_CTS_N_MARK,
3724};
3725static const unsigned int scifb2_data_b_pins[] = {
3726 /* RXD, TXD */
3727 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
3728};
3729static const unsigned int scifb2_data_b_mux[] = {
3730 SCIFB2_RXD_B_MARK, SCIFB2_TXD_B_MARK,
3731};
3732static const unsigned int scifb2_clk_b_pins[] = {
3733 /* SCK */
3734 RCAR_GP_PIN(5, 31),
3735};
3736static const unsigned int scifb2_clk_b_mux[] = {
3737 SCIFB2_SCK_B_MARK,
3738};
3739static const unsigned int scifb2_ctrl_b_pins[] = {
3740 /* RTS, CTS */
3741 RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14),
3742};
3743static const unsigned int scifb2_ctrl_b_mux[] = {
3744 SCIFB2_RTS_N_B_MARK, SCIFB2_CTS_N_B_MARK,
3745};
3746static const unsigned int scifb2_data_c_pins[] = {
3747 /* RXD, TXD */
3748 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
3749};
3750static const unsigned int scifb2_data_c_mux[] = {
3751 SCIFB2_RXD_C_MARK, SCIFB2_TXD_C_MARK,
3752};
3753static const unsigned int scifb2_clk_c_pins[] = {
3754 /* SCK */
3755 RCAR_GP_PIN(5, 27),
3756};
3757static const unsigned int scifb2_clk_c_mux[] = {
3758 SCIFB2_SCK_C_MARK,
3759};
3760static const unsigned int scifb2_data_d_pins[] = {
3761 /* RXD, TXD */
3762 RCAR_GP_PIN(5, 26), RCAR_GP_PIN(5, 25),
3763};
3764static const unsigned int scifb2_data_d_mux[] = {
3765 SCIFB2_RXD_D_MARK, SCIFB2_TXD_D_MARK,
3766};
3767
3768/* - SCIF Clock ------------------------------------------------------------- */
3769static const unsigned int scif_clk_pins[] = {
3770 /* SCIF_CLK */
3771 RCAR_GP_PIN(2, 29),
3772};
3773static const unsigned int scif_clk_mux[] = {
3774 SCIF_CLK_MARK,
3775};
3776static const unsigned int scif_clk_b_pins[] = {
3777 /* SCIF_CLK */
3778 RCAR_GP_PIN(7, 19),
3779};
3780static const unsigned int scif_clk_b_mux[] = {
3781 SCIF_CLK_B_MARK,
3782};
3783
3784/* - SDHI0 ------------------------------------------------------------------ */
Marek Vasut0b9053d2023-01-26 21:01:37 +01003785static const unsigned int sdhi0_data_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003786 /* D[0:3] */
3787 RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3),
3788 RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 5),
3789};
Marek Vasut0b9053d2023-01-26 21:01:37 +01003790static const unsigned int sdhi0_data_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003791 SD0_DATA0_MARK, SD0_DATA1_MARK, SD0_DATA2_MARK, SD0_DATA3_MARK,
3792};
3793static const unsigned int sdhi0_ctrl_pins[] = {
3794 /* CLK, CMD */
3795 RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
3796};
3797static const unsigned int sdhi0_ctrl_mux[] = {
3798 SD0_CLK_MARK, SD0_CMD_MARK,
3799};
3800static const unsigned int sdhi0_cd_pins[] = {
3801 /* CD */
3802 RCAR_GP_PIN(6, 6),
3803};
3804static const unsigned int sdhi0_cd_mux[] = {
3805 SD0_CD_MARK,
3806};
3807static const unsigned int sdhi0_wp_pins[] = {
3808 /* WP */
3809 RCAR_GP_PIN(6, 7),
3810};
3811static const unsigned int sdhi0_wp_mux[] = {
3812 SD0_WP_MARK,
3813};
3814/* - SDHI1 ------------------------------------------------------------------ */
Marek Vasut0b9053d2023-01-26 21:01:37 +01003815static const unsigned int sdhi1_data_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003816 /* D[0:3] */
3817 RCAR_GP_PIN(6, 10), RCAR_GP_PIN(6, 11),
3818 RCAR_GP_PIN(6, 12), RCAR_GP_PIN(6, 13),
3819};
Marek Vasut0b9053d2023-01-26 21:01:37 +01003820static const unsigned int sdhi1_data_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003821 SD1_DATA0_MARK, SD1_DATA1_MARK, SD1_DATA2_MARK, SD1_DATA3_MARK,
3822};
3823static const unsigned int sdhi1_ctrl_pins[] = {
3824 /* CLK, CMD */
3825 RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
3826};
3827static const unsigned int sdhi1_ctrl_mux[] = {
3828 SD1_CLK_MARK, SD1_CMD_MARK,
3829};
3830static const unsigned int sdhi1_cd_pins[] = {
3831 /* CD */
3832 RCAR_GP_PIN(6, 14),
3833};
3834static const unsigned int sdhi1_cd_mux[] = {
3835 SD1_CD_MARK,
3836};
3837static const unsigned int sdhi1_wp_pins[] = {
3838 /* WP */
3839 RCAR_GP_PIN(6, 15),
3840};
3841static const unsigned int sdhi1_wp_mux[] = {
3842 SD1_WP_MARK,
3843};
3844/* - SDHI2 ------------------------------------------------------------------ */
Marek Vasut0b9053d2023-01-26 21:01:37 +01003845static const unsigned int sdhi2_data_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003846 /* D[0:3] */
3847 RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 19),
3848 RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 21),
3849};
Marek Vasut0b9053d2023-01-26 21:01:37 +01003850static const unsigned int sdhi2_data_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01003851 SD2_DATA0_MARK, SD2_DATA1_MARK, SD2_DATA2_MARK, SD2_DATA3_MARK,
3852};
3853static const unsigned int sdhi2_ctrl_pins[] = {
3854 /* CLK, CMD */
3855 RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 17),
3856};
3857static const unsigned int sdhi2_ctrl_mux[] = {
3858 SD2_CLK_MARK, SD2_CMD_MARK,
3859};
3860static const unsigned int sdhi2_cd_pins[] = {
3861 /* CD */
3862 RCAR_GP_PIN(6, 22),
3863};
3864static const unsigned int sdhi2_cd_mux[] = {
3865 SD2_CD_MARK,
3866};
3867static const unsigned int sdhi2_wp_pins[] = {
3868 /* WP */
3869 RCAR_GP_PIN(6, 23),
3870};
3871static const unsigned int sdhi2_wp_mux[] = {
3872 SD2_WP_MARK,
3873};
3874
3875/* - SSI -------------------------------------------------------------------- */
3876static const unsigned int ssi0_data_pins[] = {
3877 /* SDATA */
3878 RCAR_GP_PIN(2, 2),
3879};
3880
3881static const unsigned int ssi0_data_mux[] = {
3882 SSI_SDATA0_MARK,
3883};
3884
3885static const unsigned int ssi0_data_b_pins[] = {
3886 /* SDATA */
3887 RCAR_GP_PIN(3, 4),
3888};
3889
3890static const unsigned int ssi0_data_b_mux[] = {
3891 SSI_SDATA0_B_MARK,
3892};
3893
3894static const unsigned int ssi0129_ctrl_pins[] = {
3895 /* SCK, WS */
3896 RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
3897};
3898
3899static const unsigned int ssi0129_ctrl_mux[] = {
3900 SSI_SCK0129_MARK, SSI_WS0129_MARK,
3901};
3902
3903static const unsigned int ssi0129_ctrl_b_pins[] = {
3904 /* SCK, WS */
3905 RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
3906};
3907
3908static const unsigned int ssi0129_ctrl_b_mux[] = {
3909 SSI_SCK0129_B_MARK, SSI_WS0129_B_MARK,
3910};
3911
3912static const unsigned int ssi1_data_pins[] = {
3913 /* SDATA */
3914 RCAR_GP_PIN(2, 5),
3915};
3916
3917static const unsigned int ssi1_data_mux[] = {
3918 SSI_SDATA1_MARK,
3919};
3920
3921static const unsigned int ssi1_data_b_pins[] = {
3922 /* SDATA */
3923 RCAR_GP_PIN(3, 7),
3924};
3925
3926static const unsigned int ssi1_data_b_mux[] = {
3927 SSI_SDATA1_B_MARK,
3928};
3929
3930static const unsigned int ssi1_ctrl_pins[] = {
3931 /* SCK, WS */
3932 RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
3933};
3934
3935static const unsigned int ssi1_ctrl_mux[] = {
3936 SSI_SCK1_MARK, SSI_WS1_MARK,
3937};
3938
3939static const unsigned int ssi1_ctrl_b_pins[] = {
3940 /* SCK, WS */
3941 RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6),
3942};
3943
3944static const unsigned int ssi1_ctrl_b_mux[] = {
3945 SSI_SCK1_B_MARK, SSI_WS1_B_MARK,
3946};
3947
3948static const unsigned int ssi2_data_pins[] = {
3949 /* SDATA */
3950 RCAR_GP_PIN(2, 8),
3951};
3952
3953static const unsigned int ssi2_data_mux[] = {
3954 SSI_SDATA2_MARK,
3955};
3956
3957static const unsigned int ssi2_ctrl_pins[] = {
3958 /* SCK, WS */
3959 RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
3960};
3961
3962static const unsigned int ssi2_ctrl_mux[] = {
3963 SSI_SCK2_MARK, SSI_WS2_MARK,
3964};
3965
3966static const unsigned int ssi3_data_pins[] = {
3967 /* SDATA */
3968 RCAR_GP_PIN(2, 11),
3969};
3970
3971static const unsigned int ssi3_data_mux[] = {
3972 SSI_SDATA3_MARK,
3973};
3974
3975static const unsigned int ssi34_ctrl_pins[] = {
3976 /* SCK, WS */
3977 RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
3978};
3979
3980static const unsigned int ssi34_ctrl_mux[] = {
3981 SSI_SCK34_MARK, SSI_WS34_MARK,
3982};
3983
3984static const unsigned int ssi4_data_pins[] = {
3985 /* SDATA */
3986 RCAR_GP_PIN(2, 14),
3987};
3988
3989static const unsigned int ssi4_data_mux[] = {
3990 SSI_SDATA4_MARK,
3991};
3992
3993static const unsigned int ssi4_ctrl_pins[] = {
3994 /* SCK, WS */
3995 RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
3996};
3997
3998static const unsigned int ssi4_ctrl_mux[] = {
3999 SSI_SCK4_MARK, SSI_WS4_MARK,
4000};
4001
4002static const unsigned int ssi5_data_pins[] = {
4003 /* SDATA */
4004 RCAR_GP_PIN(2, 17),
4005};
4006
4007static const unsigned int ssi5_data_mux[] = {
4008 SSI_SDATA5_MARK,
4009};
4010
4011static const unsigned int ssi5_ctrl_pins[] = {
4012 /* SCK, WS */
4013 RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
4014};
4015
4016static const unsigned int ssi5_ctrl_mux[] = {
4017 SSI_SCK5_MARK, SSI_WS5_MARK,
4018};
4019
4020static const unsigned int ssi6_data_pins[] = {
4021 /* SDATA */
4022 RCAR_GP_PIN(2, 20),
4023};
4024
4025static const unsigned int ssi6_data_mux[] = {
4026 SSI_SDATA6_MARK,
4027};
4028
4029static const unsigned int ssi6_ctrl_pins[] = {
4030 /* SCK, WS */
4031 RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 19),
4032};
4033
4034static const unsigned int ssi6_ctrl_mux[] = {
4035 SSI_SCK6_MARK, SSI_WS6_MARK,
4036};
4037
4038static const unsigned int ssi7_data_pins[] = {
4039 /* SDATA */
4040 RCAR_GP_PIN(2, 23),
4041};
4042
4043static const unsigned int ssi7_data_mux[] = {
4044 SSI_SDATA7_MARK,
4045};
4046
4047static const unsigned int ssi7_data_b_pins[] = {
4048 /* SDATA */
4049 RCAR_GP_PIN(3, 12),
4050};
4051
4052static const unsigned int ssi7_data_b_mux[] = {
4053 SSI_SDATA7_B_MARK,
4054};
4055
4056static const unsigned int ssi78_ctrl_pins[] = {
4057 /* SCK, WS */
4058 RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 22),
4059};
4060
4061static const unsigned int ssi78_ctrl_mux[] = {
4062 SSI_SCK78_MARK, SSI_WS78_MARK,
4063};
4064
4065static const unsigned int ssi78_ctrl_b_pins[] = {
4066 /* SCK, WS */
4067 RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
4068};
4069
4070static const unsigned int ssi78_ctrl_b_mux[] = {
4071 SSI_SCK78_B_MARK, SSI_WS78_B_MARK,
4072};
4073
4074static const unsigned int ssi8_data_pins[] = {
4075 /* SDATA */
4076 RCAR_GP_PIN(2, 24),
4077};
4078
4079static const unsigned int ssi8_data_mux[] = {
4080 SSI_SDATA8_MARK,
4081};
4082
4083static const unsigned int ssi8_data_b_pins[] = {
4084 /* SDATA */
4085 RCAR_GP_PIN(3, 13),
4086};
4087
4088static const unsigned int ssi8_data_b_mux[] = {
4089 SSI_SDATA8_B_MARK,
4090};
4091
4092static const unsigned int ssi9_data_pins[] = {
4093 /* SDATA */
4094 RCAR_GP_PIN(2, 27),
4095};
4096
4097static const unsigned int ssi9_data_mux[] = {
4098 SSI_SDATA9_MARK,
4099};
4100
4101static const unsigned int ssi9_data_b_pins[] = {
4102 /* SDATA */
4103 RCAR_GP_PIN(3, 18),
4104};
4105
4106static const unsigned int ssi9_data_b_mux[] = {
4107 SSI_SDATA9_B_MARK,
4108};
4109
4110static const unsigned int ssi9_ctrl_pins[] = {
4111 /* SCK, WS */
4112 RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 26),
4113};
4114
4115static const unsigned int ssi9_ctrl_mux[] = {
4116 SSI_SCK9_MARK, SSI_WS9_MARK,
4117};
4118
4119static const unsigned int ssi9_ctrl_b_pins[] = {
4120 /* SCK, WS */
4121 RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 15),
4122};
4123
4124static const unsigned int ssi9_ctrl_b_mux[] = {
4125 SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
4126};
4127
Marek Vasuteb900d12018-06-10 16:05:18 +02004128/* - TPU -------------------------------------------------------------------- */
4129static const unsigned int tpu_to0_pins[] = {
4130 RCAR_GP_PIN(6, 14),
4131};
4132static const unsigned int tpu_to0_mux[] = {
4133 TPU_TO0_MARK,
4134};
4135static const unsigned int tpu_to1_pins[] = {
4136 RCAR_GP_PIN(1, 17),
4137};
4138static const unsigned int tpu_to1_mux[] = {
4139 TPU_TO1_MARK,
4140};
4141static const unsigned int tpu_to2_pins[] = {
4142 RCAR_GP_PIN(1, 18),
4143};
4144static const unsigned int tpu_to2_mux[] = {
4145 TPU_TO2_MARK,
4146};
4147static const unsigned int tpu_to3_pins[] = {
4148 RCAR_GP_PIN(1, 24),
4149};
4150static const unsigned int tpu_to3_mux[] = {
4151 TPU_TO3_MARK,
4152};
4153
Marek Vasut06ef9e82018-01-17 17:14:45 +01004154/* - USB0 ------------------------------------------------------------------- */
4155static const unsigned int usb0_pins[] = {
4156 RCAR_GP_PIN(7, 23), /* PWEN */
4157 RCAR_GP_PIN(7, 24), /* OVC */
4158};
4159static const unsigned int usb0_mux[] = {
4160 USB0_PWEN_MARK,
4161 USB0_OVC_MARK,
4162};
4163/* - USB1 ------------------------------------------------------------------- */
4164static const unsigned int usb1_pins[] = {
4165 RCAR_GP_PIN(7, 25), /* PWEN */
4166 RCAR_GP_PIN(6, 30), /* OVC */
4167};
4168static const unsigned int usb1_mux[] = {
4169 USB1_PWEN_MARK,
4170 USB1_OVC_MARK,
4171};
4172/* - VIN0 ------------------------------------------------------------------- */
Marek Vasut0b9053d2023-01-26 21:01:37 +01004173static const unsigned int vin0_data_pins[] = {
4174 /* B */
4175 RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 6),
4176 RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8),
4177 RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
4178 RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
4179 /* G */
4180 RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
4181 RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
4182 RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 18),
4183 RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 20),
4184 /* R */
4185 RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 22),
4186 RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 24),
4187 RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 26),
4188 RCAR_GP_PIN(4, 27), RCAR_GP_PIN(4, 28),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004189};
Marek Vasut0b9053d2023-01-26 21:01:37 +01004190static const unsigned int vin0_data_mux[] = {
4191 /* B */
4192 VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK,
4193 VI0_DATA2_VI0_B2_MARK, VI0_DATA3_VI0_B3_MARK,
4194 VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
4195 VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
4196 /* G */
4197 VI0_G0_MARK, VI0_G1_MARK,
4198 VI0_G2_MARK, VI0_G3_MARK,
4199 VI0_G4_MARK, VI0_G5_MARK,
4200 VI0_G6_MARK, VI0_G7_MARK,
4201 /* R */
4202 VI0_R0_MARK, VI0_R1_MARK,
4203 VI0_R2_MARK, VI0_R3_MARK,
4204 VI0_R4_MARK, VI0_R5_MARK,
4205 VI0_R6_MARK, VI0_R7_MARK,
Marek Vasut06ef9e82018-01-17 17:14:45 +01004206};
4207static const unsigned int vin0_data18_pins[] = {
4208 /* B */
4209 RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8),
4210 RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
4211 RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
4212 /* G */
4213 RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
4214 RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 18),
4215 RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 20),
4216 /* R */
4217 RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 24),
4218 RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 26),
4219 RCAR_GP_PIN(4, 27), RCAR_GP_PIN(4, 28),
4220};
4221static const unsigned int vin0_data18_mux[] = {
4222 /* B */
4223 VI0_DATA2_VI0_B2_MARK, VI0_DATA3_VI0_B3_MARK,
4224 VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
4225 VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
4226 /* G */
4227 VI0_G2_MARK, VI0_G3_MARK,
4228 VI0_G4_MARK, VI0_G5_MARK,
4229 VI0_G6_MARK, VI0_G7_MARK,
4230 /* R */
4231 VI0_R2_MARK, VI0_R3_MARK,
4232 VI0_R4_MARK, VI0_R5_MARK,
4233 VI0_R6_MARK, VI0_R7_MARK,
4234};
4235static const unsigned int vin0_sync_pins[] = {
4236 RCAR_GP_PIN(4, 3), /* HSYNC */
4237 RCAR_GP_PIN(4, 4), /* VSYNC */
4238};
4239static const unsigned int vin0_sync_mux[] = {
4240 VI0_HSYNC_N_MARK,
4241 VI0_VSYNC_N_MARK,
4242};
4243static const unsigned int vin0_field_pins[] = {
4244 RCAR_GP_PIN(4, 2),
4245};
4246static const unsigned int vin0_field_mux[] = {
4247 VI0_FIELD_MARK,
4248};
4249static const unsigned int vin0_clkenb_pins[] = {
4250 RCAR_GP_PIN(4, 1),
4251};
4252static const unsigned int vin0_clkenb_mux[] = {
4253 VI0_CLKENB_MARK,
4254};
4255static const unsigned int vin0_clk_pins[] = {
4256 RCAR_GP_PIN(4, 0),
4257};
4258static const unsigned int vin0_clk_mux[] = {
4259 VI0_CLK_MARK,
4260};
4261/* - VIN1 ----------------------------------------------------------------- */
4262static const unsigned int vin1_data8_pins[] = {
4263 RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
4264 RCAR_GP_PIN(5, 7), RCAR_GP_PIN(5, 8),
4265 RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 10),
4266 RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 12),
4267};
4268static const unsigned int vin1_data8_mux[] = {
4269 VI1_DATA0_MARK, VI1_DATA1_MARK,
4270 VI1_DATA2_MARK, VI1_DATA3_MARK,
4271 VI1_DATA4_MARK, VI1_DATA5_MARK,
4272 VI1_DATA6_MARK, VI1_DATA7_MARK,
4273};
4274static const unsigned int vin1_sync_pins[] = {
4275 RCAR_GP_PIN(5, 0), /* HSYNC */
4276 RCAR_GP_PIN(5, 1), /* VSYNC */
4277};
4278static const unsigned int vin1_sync_mux[] = {
4279 VI1_HSYNC_N_MARK,
4280 VI1_VSYNC_N_MARK,
4281};
4282static const unsigned int vin1_field_pins[] = {
4283 RCAR_GP_PIN(5, 3),
4284};
4285static const unsigned int vin1_field_mux[] = {
4286 VI1_FIELD_MARK,
4287};
4288static const unsigned int vin1_clkenb_pins[] = {
4289 RCAR_GP_PIN(5, 2),
4290};
4291static const unsigned int vin1_clkenb_mux[] = {
4292 VI1_CLKENB_MARK,
4293};
4294static const unsigned int vin1_clk_pins[] = {
4295 RCAR_GP_PIN(5, 4),
4296};
4297static const unsigned int vin1_clk_mux[] = {
4298 VI1_CLK_MARK,
4299};
Marek Vasut0b9053d2023-01-26 21:01:37 +01004300static const unsigned int vin1_data_b_pins[] = {
4301 /* B */
4302 RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 1),
4303 RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
4304 RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
4305 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
4306 /* G */
4307 RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25),
4308 RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
4309 RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
4310 RCAR_GP_PIN(7, 21), RCAR_GP_PIN(7, 22),
4311 /* R */
4312 RCAR_GP_PIN(7, 5), RCAR_GP_PIN(7, 6),
4313 RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
4314 RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 18),
4315 RCAR_GP_PIN(2, 19), RCAR_GP_PIN(2, 20),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004316};
Marek Vasut0b9053d2023-01-26 21:01:37 +01004317static const unsigned int vin1_data_b_mux[] = {
4318 /* B */
4319 VI1_DATA0_B_MARK, VI1_DATA1_B_MARK,
4320 VI1_DATA2_B_MARK, VI1_DATA3_B_MARK,
4321 VI1_DATA4_B_MARK, VI1_DATA5_B_MARK,
4322 VI1_DATA6_B_MARK, VI1_DATA7_B_MARK,
4323 /* G */
4324 VI1_G0_B_MARK, VI1_G1_B_MARK,
4325 VI1_G2_B_MARK, VI1_G3_B_MARK,
4326 VI1_G4_B_MARK, VI1_G5_B_MARK,
4327 VI1_G6_B_MARK, VI1_G7_B_MARK,
4328 /* R */
4329 VI1_R0_B_MARK, VI1_R1_B_MARK,
4330 VI1_R2_B_MARK, VI1_R3_B_MARK,
4331 VI1_R4_B_MARK, VI1_R5_B_MARK,
4332 VI1_R6_B_MARK, VI1_R7_B_MARK,
Marek Vasut06ef9e82018-01-17 17:14:45 +01004333};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004334static const unsigned int vin1_data18_b_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004335 /* B */
4336 RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
4337 RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
4338 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
4339 /* G */
4340 RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
4341 RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
4342 RCAR_GP_PIN(7, 21), RCAR_GP_PIN(7, 22),
4343 /* R */
4344 RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
4345 RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 18),
4346 RCAR_GP_PIN(2, 19), RCAR_GP_PIN(2, 20),
4347};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004348static const unsigned int vin1_data18_b_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004349 /* B */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004350 VI1_DATA2_B_MARK, VI1_DATA3_B_MARK,
4351 VI1_DATA4_B_MARK, VI1_DATA5_B_MARK,
4352 VI1_DATA6_B_MARK, VI1_DATA7_B_MARK,
4353 /* G */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004354 VI1_G2_B_MARK, VI1_G3_B_MARK,
4355 VI1_G4_B_MARK, VI1_G5_B_MARK,
4356 VI1_G6_B_MARK, VI1_G7_B_MARK,
4357 /* R */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004358 VI1_R2_B_MARK, VI1_R3_B_MARK,
4359 VI1_R4_B_MARK, VI1_R5_B_MARK,
4360 VI1_R6_B_MARK, VI1_R7_B_MARK,
4361};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004362static const unsigned int vin1_sync_b_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004363 RCAR_GP_PIN(3, 17), /* HSYNC */
4364 RCAR_GP_PIN(3, 18), /* VSYNC */
4365};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004366static const unsigned int vin1_sync_b_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004367 VI1_HSYNC_N_B_MARK,
4368 VI1_VSYNC_N_B_MARK,
4369};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004370static const unsigned int vin1_field_b_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004371 RCAR_GP_PIN(3, 20),
4372};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004373static const unsigned int vin1_field_b_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004374 VI1_FIELD_B_MARK,
4375};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004376static const unsigned int vin1_clkenb_b_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004377 RCAR_GP_PIN(3, 19),
4378};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004379static const unsigned int vin1_clkenb_b_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004380 VI1_CLKENB_B_MARK,
4381};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004382static const unsigned int vin1_clk_b_pins[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004383 RCAR_GP_PIN(3, 16),
4384};
Marek Vasut0913c7a2019-03-04 22:26:28 +01004385static const unsigned int vin1_clk_b_mux[] = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004386 VI1_CLK_B_MARK,
4387};
4388/* - VIN2 ----------------------------------------------------------------- */
4389static const unsigned int vin2_data8_pins[] = {
4390 RCAR_GP_PIN(4, 20), RCAR_GP_PIN(4, 21),
4391 RCAR_GP_PIN(4, 22), RCAR_GP_PIN(4, 23),
4392 RCAR_GP_PIN(4, 24), RCAR_GP_PIN(4, 25),
4393 RCAR_GP_PIN(4, 26), RCAR_GP_PIN(4, 27),
4394};
4395static const unsigned int vin2_data8_mux[] = {
4396 VI2_DATA0_MARK, VI2_DATA1_MARK,
4397 VI2_DATA2_MARK, VI2_DATA3_MARK,
4398 VI2_DATA4_MARK, VI2_DATA5_MARK,
4399 VI2_DATA6_MARK, VI2_DATA7_MARK,
4400};
4401static const unsigned int vin2_sync_pins[] = {
4402 RCAR_GP_PIN(4, 15), /* HSYNC */
4403 RCAR_GP_PIN(4, 16), /* VSYNC */
4404};
4405static const unsigned int vin2_sync_mux[] = {
4406 VI2_HSYNC_N_MARK,
4407 VI2_VSYNC_N_MARK,
4408};
4409static const unsigned int vin2_field_pins[] = {
4410 RCAR_GP_PIN(4, 18),
4411};
4412static const unsigned int vin2_field_mux[] = {
4413 VI2_FIELD_MARK,
4414};
4415static const unsigned int vin2_clkenb_pins[] = {
4416 RCAR_GP_PIN(4, 17),
4417};
4418static const unsigned int vin2_clkenb_mux[] = {
4419 VI2_CLKENB_MARK,
4420};
4421static const unsigned int vin2_clk_pins[] = {
4422 RCAR_GP_PIN(4, 19),
4423};
4424static const unsigned int vin2_clk_mux[] = {
4425 VI2_CLK_MARK,
4426};
4427
4428static const struct {
Marek Vasuteb900d12018-06-10 16:05:18 +02004429 struct sh_pfc_pin_group common[346];
Marek Vasut0e8e9892021-04-26 22:04:11 +02004430#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut0913c7a2019-03-04 22:26:28 +01004431 struct sh_pfc_pin_group automotive[9];
Marek Vasut0e8e9892021-04-26 22:04:11 +02004432#endif
Marek Vasut06ef9e82018-01-17 17:14:45 +01004433} pinmux_groups = {
4434 .common = {
4435 SH_PFC_PIN_GROUP(audio_clk_a),
4436 SH_PFC_PIN_GROUP(audio_clk_b),
4437 SH_PFC_PIN_GROUP(audio_clk_b_b),
4438 SH_PFC_PIN_GROUP(audio_clk_c),
4439 SH_PFC_PIN_GROUP(audio_clkout),
4440 SH_PFC_PIN_GROUP(avb_link),
4441 SH_PFC_PIN_GROUP(avb_magic),
4442 SH_PFC_PIN_GROUP(avb_phy_int),
4443 SH_PFC_PIN_GROUP(avb_mdio),
4444 SH_PFC_PIN_GROUP(avb_mii),
4445 SH_PFC_PIN_GROUP(avb_gmii),
4446 SH_PFC_PIN_GROUP(can0_data),
4447 SH_PFC_PIN_GROUP(can0_data_b),
4448 SH_PFC_PIN_GROUP(can0_data_c),
4449 SH_PFC_PIN_GROUP(can0_data_d),
4450 SH_PFC_PIN_GROUP(can0_data_e),
4451 SH_PFC_PIN_GROUP(can0_data_f),
4452 SH_PFC_PIN_GROUP(can1_data),
4453 SH_PFC_PIN_GROUP(can1_data_b),
4454 SH_PFC_PIN_GROUP(can1_data_c),
4455 SH_PFC_PIN_GROUP(can1_data_d),
4456 SH_PFC_PIN_GROUP(can_clk),
4457 SH_PFC_PIN_GROUP(can_clk_b),
4458 SH_PFC_PIN_GROUP(can_clk_c),
4459 SH_PFC_PIN_GROUP(can_clk_d),
4460 SH_PFC_PIN_GROUP(du_rgb666),
4461 SH_PFC_PIN_GROUP(du_rgb888),
4462 SH_PFC_PIN_GROUP(du_clk_out_0),
4463 SH_PFC_PIN_GROUP(du_clk_out_1),
4464 SH_PFC_PIN_GROUP(du_sync),
4465 SH_PFC_PIN_GROUP(du_oddf),
4466 SH_PFC_PIN_GROUP(du_cde),
4467 SH_PFC_PIN_GROUP(du_disp),
4468 SH_PFC_PIN_GROUP(du0_clk_in),
4469 SH_PFC_PIN_GROUP(du1_clk_in),
4470 SH_PFC_PIN_GROUP(du1_clk_in_b),
4471 SH_PFC_PIN_GROUP(du1_clk_in_c),
4472 SH_PFC_PIN_GROUP(eth_link),
4473 SH_PFC_PIN_GROUP(eth_magic),
4474 SH_PFC_PIN_GROUP(eth_mdio),
4475 SH_PFC_PIN_GROUP(eth_rmii),
4476 SH_PFC_PIN_GROUP(hscif0_data),
4477 SH_PFC_PIN_GROUP(hscif0_clk),
4478 SH_PFC_PIN_GROUP(hscif0_ctrl),
4479 SH_PFC_PIN_GROUP(hscif0_data_b),
4480 SH_PFC_PIN_GROUP(hscif0_ctrl_b),
4481 SH_PFC_PIN_GROUP(hscif0_data_c),
4482 SH_PFC_PIN_GROUP(hscif0_clk_c),
4483 SH_PFC_PIN_GROUP(hscif1_data),
4484 SH_PFC_PIN_GROUP(hscif1_clk),
4485 SH_PFC_PIN_GROUP(hscif1_ctrl),
4486 SH_PFC_PIN_GROUP(hscif1_data_b),
4487 SH_PFC_PIN_GROUP(hscif1_data_c),
4488 SH_PFC_PIN_GROUP(hscif1_clk_c),
4489 SH_PFC_PIN_GROUP(hscif1_ctrl_c),
4490 SH_PFC_PIN_GROUP(hscif1_data_d),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004491 SH_PFC_PIN_GROUP_ALIAS(hscif1_data_e, hscif1_data_c),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004492 SH_PFC_PIN_GROUP(hscif1_clk_e),
4493 SH_PFC_PIN_GROUP(hscif1_ctrl_e),
4494 SH_PFC_PIN_GROUP(hscif2_data),
4495 SH_PFC_PIN_GROUP(hscif2_clk),
4496 SH_PFC_PIN_GROUP(hscif2_ctrl),
4497 SH_PFC_PIN_GROUP(hscif2_data_b),
4498 SH_PFC_PIN_GROUP(hscif2_ctrl_b),
4499 SH_PFC_PIN_GROUP(hscif2_data_c),
4500 SH_PFC_PIN_GROUP(hscif2_clk_c),
4501 SH_PFC_PIN_GROUP(hscif2_data_d),
4502 SH_PFC_PIN_GROUP(i2c0),
4503 SH_PFC_PIN_GROUP(i2c0_b),
4504 SH_PFC_PIN_GROUP(i2c0_c),
4505 SH_PFC_PIN_GROUP(i2c1),
4506 SH_PFC_PIN_GROUP(i2c1_b),
4507 SH_PFC_PIN_GROUP(i2c1_c),
4508 SH_PFC_PIN_GROUP(i2c1_d),
4509 SH_PFC_PIN_GROUP(i2c1_e),
4510 SH_PFC_PIN_GROUP(i2c2),
4511 SH_PFC_PIN_GROUP(i2c2_b),
4512 SH_PFC_PIN_GROUP(i2c2_c),
4513 SH_PFC_PIN_GROUP(i2c2_d),
4514 SH_PFC_PIN_GROUP(i2c3),
4515 SH_PFC_PIN_GROUP(i2c3_b),
4516 SH_PFC_PIN_GROUP(i2c3_c),
4517 SH_PFC_PIN_GROUP(i2c3_d),
4518 SH_PFC_PIN_GROUP(i2c4),
4519 SH_PFC_PIN_GROUP(i2c4_b),
4520 SH_PFC_PIN_GROUP(i2c4_c),
4521 SH_PFC_PIN_GROUP(i2c7),
4522 SH_PFC_PIN_GROUP(i2c7_b),
4523 SH_PFC_PIN_GROUP(i2c7_c),
4524 SH_PFC_PIN_GROUP(i2c8),
4525 SH_PFC_PIN_GROUP(i2c8_b),
4526 SH_PFC_PIN_GROUP(i2c8_c),
4527 SH_PFC_PIN_GROUP(intc_irq0),
4528 SH_PFC_PIN_GROUP(intc_irq1),
4529 SH_PFC_PIN_GROUP(intc_irq2),
4530 SH_PFC_PIN_GROUP(intc_irq3),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004531 BUS_DATA_PIN_GROUP(mmc_data, 1),
4532 BUS_DATA_PIN_GROUP(mmc_data, 4),
4533 BUS_DATA_PIN_GROUP(mmc_data, 8),
4534 BUS_DATA_PIN_GROUP(mmc_data, 8, _b),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004535 SH_PFC_PIN_GROUP(mmc_ctrl),
4536 SH_PFC_PIN_GROUP(msiof0_clk),
4537 SH_PFC_PIN_GROUP(msiof0_sync),
4538 SH_PFC_PIN_GROUP(msiof0_ss1),
4539 SH_PFC_PIN_GROUP(msiof0_ss2),
4540 SH_PFC_PIN_GROUP(msiof0_rx),
4541 SH_PFC_PIN_GROUP(msiof0_tx),
4542 SH_PFC_PIN_GROUP(msiof0_clk_b),
4543 SH_PFC_PIN_GROUP(msiof0_sync_b),
4544 SH_PFC_PIN_GROUP(msiof0_ss1_b),
4545 SH_PFC_PIN_GROUP(msiof0_ss2_b),
4546 SH_PFC_PIN_GROUP(msiof0_rx_b),
4547 SH_PFC_PIN_GROUP(msiof0_tx_b),
4548 SH_PFC_PIN_GROUP(msiof0_clk_c),
4549 SH_PFC_PIN_GROUP(msiof0_sync_c),
4550 SH_PFC_PIN_GROUP(msiof0_ss1_c),
4551 SH_PFC_PIN_GROUP(msiof0_ss2_c),
4552 SH_PFC_PIN_GROUP(msiof0_rx_c),
4553 SH_PFC_PIN_GROUP(msiof0_tx_c),
4554 SH_PFC_PIN_GROUP(msiof1_clk),
4555 SH_PFC_PIN_GROUP(msiof1_sync),
4556 SH_PFC_PIN_GROUP(msiof1_ss1),
4557 SH_PFC_PIN_GROUP(msiof1_ss2),
4558 SH_PFC_PIN_GROUP(msiof1_rx),
4559 SH_PFC_PIN_GROUP(msiof1_tx),
4560 SH_PFC_PIN_GROUP(msiof1_clk_b),
4561 SH_PFC_PIN_GROUP(msiof1_sync_b),
4562 SH_PFC_PIN_GROUP(msiof1_ss1_b),
4563 SH_PFC_PIN_GROUP(msiof1_ss2_b),
4564 SH_PFC_PIN_GROUP(msiof1_rx_b),
4565 SH_PFC_PIN_GROUP(msiof1_tx_b),
4566 SH_PFC_PIN_GROUP(msiof1_clk_c),
4567 SH_PFC_PIN_GROUP(msiof1_sync_c),
4568 SH_PFC_PIN_GROUP(msiof1_rx_c),
4569 SH_PFC_PIN_GROUP(msiof1_tx_c),
4570 SH_PFC_PIN_GROUP(msiof1_clk_d),
4571 SH_PFC_PIN_GROUP(msiof1_sync_d),
4572 SH_PFC_PIN_GROUP(msiof1_ss1_d),
4573 SH_PFC_PIN_GROUP(msiof1_rx_d),
4574 SH_PFC_PIN_GROUP(msiof1_tx_d),
4575 SH_PFC_PIN_GROUP(msiof1_clk_e),
4576 SH_PFC_PIN_GROUP(msiof1_sync_e),
4577 SH_PFC_PIN_GROUP(msiof1_rx_e),
4578 SH_PFC_PIN_GROUP(msiof1_tx_e),
4579 SH_PFC_PIN_GROUP(msiof2_clk),
4580 SH_PFC_PIN_GROUP(msiof2_sync),
4581 SH_PFC_PIN_GROUP(msiof2_ss1),
4582 SH_PFC_PIN_GROUP(msiof2_ss2),
4583 SH_PFC_PIN_GROUP(msiof2_rx),
4584 SH_PFC_PIN_GROUP(msiof2_tx),
4585 SH_PFC_PIN_GROUP(msiof2_clk_b),
4586 SH_PFC_PIN_GROUP(msiof2_sync_b),
4587 SH_PFC_PIN_GROUP(msiof2_ss1_b),
4588 SH_PFC_PIN_GROUP(msiof2_ss2_b),
4589 SH_PFC_PIN_GROUP(msiof2_rx_b),
4590 SH_PFC_PIN_GROUP(msiof2_tx_b),
4591 SH_PFC_PIN_GROUP(msiof2_clk_c),
4592 SH_PFC_PIN_GROUP(msiof2_sync_c),
4593 SH_PFC_PIN_GROUP(msiof2_rx_c),
4594 SH_PFC_PIN_GROUP(msiof2_tx_c),
4595 SH_PFC_PIN_GROUP(msiof2_clk_d),
4596 SH_PFC_PIN_GROUP(msiof2_sync_d),
4597 SH_PFC_PIN_GROUP(msiof2_ss1_d),
4598 SH_PFC_PIN_GROUP(msiof2_ss2_d),
4599 SH_PFC_PIN_GROUP(msiof2_rx_d),
4600 SH_PFC_PIN_GROUP(msiof2_tx_d),
4601 SH_PFC_PIN_GROUP(msiof2_clk_e),
4602 SH_PFC_PIN_GROUP(msiof2_sync_e),
4603 SH_PFC_PIN_GROUP(msiof2_rx_e),
4604 SH_PFC_PIN_GROUP(msiof2_tx_e),
4605 SH_PFC_PIN_GROUP(pwm0),
4606 SH_PFC_PIN_GROUP(pwm0_b),
4607 SH_PFC_PIN_GROUP(pwm1),
4608 SH_PFC_PIN_GROUP(pwm1_b),
4609 SH_PFC_PIN_GROUP(pwm2),
4610 SH_PFC_PIN_GROUP(pwm2_b),
4611 SH_PFC_PIN_GROUP(pwm3),
4612 SH_PFC_PIN_GROUP(pwm4),
4613 SH_PFC_PIN_GROUP(pwm4_b),
4614 SH_PFC_PIN_GROUP(pwm5),
4615 SH_PFC_PIN_GROUP(pwm5_b),
4616 SH_PFC_PIN_GROUP(pwm6),
4617 SH_PFC_PIN_GROUP(qspi_ctrl),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004618 BUS_DATA_PIN_GROUP(qspi_data, 2),
4619 BUS_DATA_PIN_GROUP(qspi_data, 4),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004620 SH_PFC_PIN_GROUP(qspi_ctrl_b),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004621 BUS_DATA_PIN_GROUP(qspi_data, 2, _b),
4622 BUS_DATA_PIN_GROUP(qspi_data, 4, _b),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004623 SH_PFC_PIN_GROUP(scif0_data),
4624 SH_PFC_PIN_GROUP(scif0_data_b),
4625 SH_PFC_PIN_GROUP(scif0_data_c),
4626 SH_PFC_PIN_GROUP(scif0_data_d),
4627 SH_PFC_PIN_GROUP(scif0_data_e),
4628 SH_PFC_PIN_GROUP(scif1_data),
4629 SH_PFC_PIN_GROUP(scif1_data_b),
4630 SH_PFC_PIN_GROUP(scif1_clk_b),
4631 SH_PFC_PIN_GROUP(scif1_data_c),
4632 SH_PFC_PIN_GROUP(scif1_data_d),
4633 SH_PFC_PIN_GROUP(scif2_data),
4634 SH_PFC_PIN_GROUP(scif2_data_b),
4635 SH_PFC_PIN_GROUP(scif2_clk_b),
4636 SH_PFC_PIN_GROUP(scif2_data_c),
4637 SH_PFC_PIN_GROUP(scif2_data_e),
4638 SH_PFC_PIN_GROUP(scif3_data),
4639 SH_PFC_PIN_GROUP(scif3_clk),
4640 SH_PFC_PIN_GROUP(scif3_data_b),
4641 SH_PFC_PIN_GROUP(scif3_clk_b),
4642 SH_PFC_PIN_GROUP(scif3_data_c),
4643 SH_PFC_PIN_GROUP(scif3_data_d),
4644 SH_PFC_PIN_GROUP(scif4_data),
4645 SH_PFC_PIN_GROUP(scif4_data_b),
4646 SH_PFC_PIN_GROUP(scif4_data_c),
4647 SH_PFC_PIN_GROUP(scif5_data),
4648 SH_PFC_PIN_GROUP(scif5_data_b),
4649 SH_PFC_PIN_GROUP(scifa0_data),
4650 SH_PFC_PIN_GROUP(scifa0_data_b),
4651 SH_PFC_PIN_GROUP(scifa1_data),
4652 SH_PFC_PIN_GROUP(scifa1_clk),
4653 SH_PFC_PIN_GROUP(scifa1_data_b),
4654 SH_PFC_PIN_GROUP(scifa1_clk_b),
4655 SH_PFC_PIN_GROUP(scifa1_data_c),
4656 SH_PFC_PIN_GROUP(scifa2_data),
4657 SH_PFC_PIN_GROUP(scifa2_clk),
4658 SH_PFC_PIN_GROUP(scifa2_data_b),
4659 SH_PFC_PIN_GROUP(scifa3_data),
4660 SH_PFC_PIN_GROUP(scifa3_clk),
4661 SH_PFC_PIN_GROUP(scifa3_data_b),
4662 SH_PFC_PIN_GROUP(scifa3_clk_b),
4663 SH_PFC_PIN_GROUP(scifa3_data_c),
4664 SH_PFC_PIN_GROUP(scifa3_clk_c),
4665 SH_PFC_PIN_GROUP(scifa4_data),
4666 SH_PFC_PIN_GROUP(scifa4_data_b),
4667 SH_PFC_PIN_GROUP(scifa4_data_c),
4668 SH_PFC_PIN_GROUP(scifa5_data),
4669 SH_PFC_PIN_GROUP(scifa5_data_b),
4670 SH_PFC_PIN_GROUP(scifa5_data_c),
4671 SH_PFC_PIN_GROUP(scifb0_data),
4672 SH_PFC_PIN_GROUP(scifb0_clk),
4673 SH_PFC_PIN_GROUP(scifb0_ctrl),
4674 SH_PFC_PIN_GROUP(scifb0_data_b),
4675 SH_PFC_PIN_GROUP(scifb0_clk_b),
4676 SH_PFC_PIN_GROUP(scifb0_ctrl_b),
4677 SH_PFC_PIN_GROUP(scifb0_data_c),
4678 SH_PFC_PIN_GROUP(scifb0_clk_c),
4679 SH_PFC_PIN_GROUP(scifb0_data_d),
4680 SH_PFC_PIN_GROUP(scifb0_clk_d),
4681 SH_PFC_PIN_GROUP(scifb1_data),
4682 SH_PFC_PIN_GROUP(scifb1_clk),
4683 SH_PFC_PIN_GROUP(scifb1_ctrl),
4684 SH_PFC_PIN_GROUP(scifb1_data_b),
4685 SH_PFC_PIN_GROUP(scifb1_clk_b),
4686 SH_PFC_PIN_GROUP(scifb1_data_c),
4687 SH_PFC_PIN_GROUP(scifb1_clk_c),
4688 SH_PFC_PIN_GROUP(scifb1_data_d),
4689 SH_PFC_PIN_GROUP(scifb2_data),
4690 SH_PFC_PIN_GROUP(scifb2_clk),
4691 SH_PFC_PIN_GROUP(scifb2_ctrl),
4692 SH_PFC_PIN_GROUP(scifb2_data_b),
4693 SH_PFC_PIN_GROUP(scifb2_clk_b),
4694 SH_PFC_PIN_GROUP(scifb2_ctrl_b),
4695 SH_PFC_PIN_GROUP(scifb2_data_c),
4696 SH_PFC_PIN_GROUP(scifb2_clk_c),
4697 SH_PFC_PIN_GROUP(scifb2_data_d),
4698 SH_PFC_PIN_GROUP(scif_clk),
4699 SH_PFC_PIN_GROUP(scif_clk_b),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004700 BUS_DATA_PIN_GROUP(sdhi0_data, 1),
4701 BUS_DATA_PIN_GROUP(sdhi0_data, 4),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004702 SH_PFC_PIN_GROUP(sdhi0_ctrl),
4703 SH_PFC_PIN_GROUP(sdhi0_cd),
4704 SH_PFC_PIN_GROUP(sdhi0_wp),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004705 BUS_DATA_PIN_GROUP(sdhi1_data, 1),
4706 BUS_DATA_PIN_GROUP(sdhi1_data, 4),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004707 SH_PFC_PIN_GROUP(sdhi1_ctrl),
4708 SH_PFC_PIN_GROUP(sdhi1_cd),
4709 SH_PFC_PIN_GROUP(sdhi1_wp),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004710 BUS_DATA_PIN_GROUP(sdhi2_data, 1),
4711 BUS_DATA_PIN_GROUP(sdhi2_data, 4),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004712 SH_PFC_PIN_GROUP(sdhi2_ctrl),
4713 SH_PFC_PIN_GROUP(sdhi2_cd),
4714 SH_PFC_PIN_GROUP(sdhi2_wp),
4715 SH_PFC_PIN_GROUP(ssi0_data),
4716 SH_PFC_PIN_GROUP(ssi0_data_b),
4717 SH_PFC_PIN_GROUP(ssi0129_ctrl),
4718 SH_PFC_PIN_GROUP(ssi0129_ctrl_b),
4719 SH_PFC_PIN_GROUP(ssi1_data),
4720 SH_PFC_PIN_GROUP(ssi1_data_b),
4721 SH_PFC_PIN_GROUP(ssi1_ctrl),
4722 SH_PFC_PIN_GROUP(ssi1_ctrl_b),
4723 SH_PFC_PIN_GROUP(ssi2_data),
4724 SH_PFC_PIN_GROUP(ssi2_ctrl),
4725 SH_PFC_PIN_GROUP(ssi3_data),
4726 SH_PFC_PIN_GROUP(ssi34_ctrl),
4727 SH_PFC_PIN_GROUP(ssi4_data),
4728 SH_PFC_PIN_GROUP(ssi4_ctrl),
4729 SH_PFC_PIN_GROUP(ssi5_data),
4730 SH_PFC_PIN_GROUP(ssi5_ctrl),
4731 SH_PFC_PIN_GROUP(ssi6_data),
4732 SH_PFC_PIN_GROUP(ssi6_ctrl),
4733 SH_PFC_PIN_GROUP(ssi7_data),
4734 SH_PFC_PIN_GROUP(ssi7_data_b),
4735 SH_PFC_PIN_GROUP(ssi78_ctrl),
4736 SH_PFC_PIN_GROUP(ssi78_ctrl_b),
4737 SH_PFC_PIN_GROUP(ssi8_data),
4738 SH_PFC_PIN_GROUP(ssi8_data_b),
4739 SH_PFC_PIN_GROUP(ssi9_data),
4740 SH_PFC_PIN_GROUP(ssi9_data_b),
4741 SH_PFC_PIN_GROUP(ssi9_ctrl),
4742 SH_PFC_PIN_GROUP(ssi9_ctrl_b),
Marek Vasuteb900d12018-06-10 16:05:18 +02004743 SH_PFC_PIN_GROUP(tpu_to0),
4744 SH_PFC_PIN_GROUP(tpu_to1),
4745 SH_PFC_PIN_GROUP(tpu_to2),
4746 SH_PFC_PIN_GROUP(tpu_to3),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004747 SH_PFC_PIN_GROUP(usb0),
4748 SH_PFC_PIN_GROUP(usb1),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004749 BUS_DATA_PIN_GROUP(vin0_data, 24),
4750 BUS_DATA_PIN_GROUP(vin0_data, 20),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004751 SH_PFC_PIN_GROUP(vin0_data18),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004752 BUS_DATA_PIN_GROUP(vin0_data, 16),
4753 BUS_DATA_PIN_GROUP(vin0_data, 12),
4754 BUS_DATA_PIN_GROUP(vin0_data, 10),
4755 BUS_DATA_PIN_GROUP(vin0_data, 8),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004756 SH_PFC_PIN_GROUP(vin0_sync),
4757 SH_PFC_PIN_GROUP(vin0_field),
4758 SH_PFC_PIN_GROUP(vin0_clkenb),
4759 SH_PFC_PIN_GROUP(vin0_clk),
4760 SH_PFC_PIN_GROUP(vin1_data8),
4761 SH_PFC_PIN_GROUP(vin1_sync),
4762 SH_PFC_PIN_GROUP(vin1_field),
4763 SH_PFC_PIN_GROUP(vin1_clkenb),
4764 SH_PFC_PIN_GROUP(vin1_clk),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004765 BUS_DATA_PIN_GROUP(vin1_data, 24, _b),
4766 BUS_DATA_PIN_GROUP(vin1_data, 20, _b),
Marek Vasut0913c7a2019-03-04 22:26:28 +01004767 SH_PFC_PIN_GROUP(vin1_data18_b),
Marek Vasut0b9053d2023-01-26 21:01:37 +01004768 BUS_DATA_PIN_GROUP(vin1_data, 16, _b),
4769 BUS_DATA_PIN_GROUP(vin1_data, 12, _b),
4770 BUS_DATA_PIN_GROUP(vin1_data, 10, _b),
4771 BUS_DATA_PIN_GROUP(vin1_data, 8, _b),
Marek Vasut0913c7a2019-03-04 22:26:28 +01004772 SH_PFC_PIN_GROUP(vin1_sync_b),
4773 SH_PFC_PIN_GROUP(vin1_field_b),
4774 SH_PFC_PIN_GROUP(vin1_clkenb_b),
4775 SH_PFC_PIN_GROUP(vin1_clk_b),
Marek Vasut06ef9e82018-01-17 17:14:45 +01004776 SH_PFC_PIN_GROUP(vin2_data8),
4777 SH_PFC_PIN_GROUP(vin2_sync),
4778 SH_PFC_PIN_GROUP(vin2_field),
4779 SH_PFC_PIN_GROUP(vin2_clkenb),
4780 SH_PFC_PIN_GROUP(vin2_clk),
4781 },
Marek Vasut0e8e9892021-04-26 22:04:11 +02004782#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut0913c7a2019-03-04 22:26:28 +01004783 .automotive = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01004784 SH_PFC_PIN_GROUP(adi_common),
4785 SH_PFC_PIN_GROUP(adi_chsel0),
4786 SH_PFC_PIN_GROUP(adi_chsel1),
4787 SH_PFC_PIN_GROUP(adi_chsel2),
4788 SH_PFC_PIN_GROUP(adi_common_b),
4789 SH_PFC_PIN_GROUP(adi_chsel0_b),
4790 SH_PFC_PIN_GROUP(adi_chsel1_b),
4791 SH_PFC_PIN_GROUP(adi_chsel2_b),
4792 SH_PFC_PIN_GROUP(mlb_3pin),
4793 }
Marek Vasut0e8e9892021-04-26 22:04:11 +02004794#endif /* CONFIG_PINCTRL_PFC_R8A7791 || CONFIG_PINCTRL_PFC_R8A7793 */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004795};
4796
Marek Vasut0e8e9892021-04-26 22:04:11 +02004797#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut06ef9e82018-01-17 17:14:45 +01004798static const char * const adi_groups[] = {
4799 "adi_common",
4800 "adi_chsel0",
4801 "adi_chsel1",
4802 "adi_chsel2",
4803 "adi_common_b",
4804 "adi_chsel0_b",
4805 "adi_chsel1_b",
4806 "adi_chsel2_b",
4807};
Marek Vasut0e8e9892021-04-26 22:04:11 +02004808#endif /* CONFIG_PINCTRL_PFC_R8A7791 || CONFIG_PINCTRL_PFC_R8A7793 */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004809
4810static const char * const audio_clk_groups[] = {
4811 "audio_clk_a",
4812 "audio_clk_b",
4813 "audio_clk_b_b",
4814 "audio_clk_c",
4815 "audio_clkout",
4816};
4817
4818static const char * const avb_groups[] = {
4819 "avb_link",
4820 "avb_magic",
4821 "avb_phy_int",
4822 "avb_mdio",
4823 "avb_mii",
4824 "avb_gmii",
4825};
4826
4827static const char * const can0_groups[] = {
4828 "can0_data",
4829 "can0_data_b",
4830 "can0_data_c",
4831 "can0_data_d",
4832 "can0_data_e",
4833 "can0_data_f",
Marek Vasuteb900d12018-06-10 16:05:18 +02004834 /*
4835 * Retained for backwards compatibility, use can_clk_groups in new
4836 * designs.
4837 */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004838 "can_clk",
4839 "can_clk_b",
4840 "can_clk_c",
4841 "can_clk_d",
4842};
4843
4844static const char * const can1_groups[] = {
4845 "can1_data",
4846 "can1_data_b",
4847 "can1_data_c",
4848 "can1_data_d",
Marek Vasuteb900d12018-06-10 16:05:18 +02004849 /*
4850 * Retained for backwards compatibility, use can_clk_groups in new
4851 * designs.
4852 */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004853 "can_clk",
4854 "can_clk_b",
4855 "can_clk_c",
4856 "can_clk_d",
4857};
4858
Marek Vasuteb900d12018-06-10 16:05:18 +02004859/*
4860 * can_clk_groups allows for independent configuration, use can_clk function
4861 * in new designs.
4862 */
4863static const char * const can_clk_groups[] = {
4864 "can_clk",
4865 "can_clk_b",
4866 "can_clk_c",
4867 "can_clk_d",
4868};
4869
Marek Vasut06ef9e82018-01-17 17:14:45 +01004870static const char * const du_groups[] = {
4871 "du_rgb666",
4872 "du_rgb888",
4873 "du_clk_out_0",
4874 "du_clk_out_1",
4875 "du_sync",
4876 "du_oddf",
4877 "du_cde",
4878 "du_disp",
4879};
4880
4881static const char * const du0_groups[] = {
4882 "du0_clk_in",
4883};
4884
4885static const char * const du1_groups[] = {
4886 "du1_clk_in",
4887 "du1_clk_in_b",
4888 "du1_clk_in_c",
4889};
4890
4891static const char * const eth_groups[] = {
4892 "eth_link",
4893 "eth_magic",
4894 "eth_mdio",
4895 "eth_rmii",
4896};
4897
4898static const char * const hscif0_groups[] = {
4899 "hscif0_data",
4900 "hscif0_clk",
4901 "hscif0_ctrl",
4902 "hscif0_data_b",
4903 "hscif0_ctrl_b",
4904 "hscif0_data_c",
4905 "hscif0_clk_c",
4906};
4907
4908static const char * const hscif1_groups[] = {
4909 "hscif1_data",
4910 "hscif1_clk",
4911 "hscif1_ctrl",
4912 "hscif1_data_b",
4913 "hscif1_data_c",
4914 "hscif1_clk_c",
4915 "hscif1_ctrl_c",
4916 "hscif1_data_d",
4917 "hscif1_data_e",
4918 "hscif1_clk_e",
4919 "hscif1_ctrl_e",
4920};
4921
4922static const char * const hscif2_groups[] = {
4923 "hscif2_data",
4924 "hscif2_clk",
4925 "hscif2_ctrl",
4926 "hscif2_data_b",
4927 "hscif2_ctrl_b",
4928 "hscif2_data_c",
4929 "hscif2_clk_c",
4930 "hscif2_data_d",
4931};
4932
4933static const char * const i2c0_groups[] = {
4934 "i2c0",
4935 "i2c0_b",
4936 "i2c0_c",
4937};
4938
4939static const char * const i2c1_groups[] = {
4940 "i2c1",
4941 "i2c1_b",
4942 "i2c1_c",
4943 "i2c1_d",
4944 "i2c1_e",
4945};
4946
4947static const char * const i2c2_groups[] = {
4948 "i2c2",
4949 "i2c2_b",
4950 "i2c2_c",
4951 "i2c2_d",
4952};
4953
4954static const char * const i2c3_groups[] = {
4955 "i2c3",
4956 "i2c3_b",
4957 "i2c3_c",
4958 "i2c3_d",
4959};
4960
4961static const char * const i2c4_groups[] = {
4962 "i2c4",
4963 "i2c4_b",
4964 "i2c4_c",
4965};
4966
4967static const char * const i2c7_groups[] = {
4968 "i2c7",
4969 "i2c7_b",
4970 "i2c7_c",
4971};
4972
4973static const char * const i2c8_groups[] = {
4974 "i2c8",
4975 "i2c8_b",
4976 "i2c8_c",
4977};
4978
4979static const char * const intc_groups[] = {
4980 "intc_irq0",
4981 "intc_irq1",
4982 "intc_irq2",
4983 "intc_irq3",
4984};
4985
Marek Vasut0e8e9892021-04-26 22:04:11 +02004986#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut06ef9e82018-01-17 17:14:45 +01004987static const char * const mlb_groups[] = {
4988 "mlb_3pin",
4989};
Marek Vasut0e8e9892021-04-26 22:04:11 +02004990#endif /* CONFIG_PINCTRL_PFC_R8A7791 || CONFIG_PINCTRL_PFC_R8A7793 */
Marek Vasut06ef9e82018-01-17 17:14:45 +01004991
4992static const char * const mmc_groups[] = {
4993 "mmc_data1",
4994 "mmc_data4",
4995 "mmc_data8",
4996 "mmc_data8_b",
4997 "mmc_ctrl",
4998};
4999
5000static const char * const msiof0_groups[] = {
5001 "msiof0_clk",
5002 "msiof0_sync",
5003 "msiof0_ss1",
5004 "msiof0_ss2",
5005 "msiof0_rx",
5006 "msiof0_tx",
5007 "msiof0_clk_b",
5008 "msiof0_sync_b",
5009 "msiof0_ss1_b",
5010 "msiof0_ss2_b",
5011 "msiof0_rx_b",
5012 "msiof0_tx_b",
5013 "msiof0_clk_c",
5014 "msiof0_sync_c",
5015 "msiof0_ss1_c",
5016 "msiof0_ss2_c",
5017 "msiof0_rx_c",
5018 "msiof0_tx_c",
5019};
5020
5021static const char * const msiof1_groups[] = {
5022 "msiof1_clk",
5023 "msiof1_sync",
5024 "msiof1_ss1",
5025 "msiof1_ss2",
5026 "msiof1_rx",
5027 "msiof1_tx",
5028 "msiof1_clk_b",
5029 "msiof1_sync_b",
5030 "msiof1_ss1_b",
5031 "msiof1_ss2_b",
5032 "msiof1_rx_b",
5033 "msiof1_tx_b",
5034 "msiof1_clk_c",
5035 "msiof1_sync_c",
5036 "msiof1_rx_c",
5037 "msiof1_tx_c",
5038 "msiof1_clk_d",
5039 "msiof1_sync_d",
5040 "msiof1_ss1_d",
5041 "msiof1_rx_d",
5042 "msiof1_tx_d",
5043 "msiof1_clk_e",
5044 "msiof1_sync_e",
5045 "msiof1_rx_e",
5046 "msiof1_tx_e",
5047};
5048
5049static const char * const msiof2_groups[] = {
5050 "msiof2_clk",
5051 "msiof2_sync",
5052 "msiof2_ss1",
5053 "msiof2_ss2",
5054 "msiof2_rx",
5055 "msiof2_tx",
5056 "msiof2_clk_b",
5057 "msiof2_sync_b",
5058 "msiof2_ss1_b",
5059 "msiof2_ss2_b",
5060 "msiof2_rx_b",
5061 "msiof2_tx_b",
5062 "msiof2_clk_c",
5063 "msiof2_sync_c",
5064 "msiof2_rx_c",
5065 "msiof2_tx_c",
5066 "msiof2_clk_d",
5067 "msiof2_sync_d",
5068 "msiof2_ss1_d",
5069 "msiof2_ss2_d",
5070 "msiof2_rx_d",
5071 "msiof2_tx_d",
5072 "msiof2_clk_e",
5073 "msiof2_sync_e",
5074 "msiof2_rx_e",
5075 "msiof2_tx_e",
5076};
5077
5078static const char * const pwm0_groups[] = {
5079 "pwm0",
5080 "pwm0_b",
5081};
5082
5083static const char * const pwm1_groups[] = {
5084 "pwm1",
5085 "pwm1_b",
5086};
5087
5088static const char * const pwm2_groups[] = {
5089 "pwm2",
5090 "pwm2_b",
5091};
5092
5093static const char * const pwm3_groups[] = {
5094 "pwm3",
5095};
5096
5097static const char * const pwm4_groups[] = {
5098 "pwm4",
5099 "pwm4_b",
5100};
5101
5102static const char * const pwm5_groups[] = {
5103 "pwm5",
5104 "pwm5_b",
5105};
5106
5107static const char * const pwm6_groups[] = {
5108 "pwm6",
5109};
5110
5111static const char * const qspi_groups[] = {
5112 "qspi_ctrl",
5113 "qspi_data2",
5114 "qspi_data4",
5115 "qspi_ctrl_b",
5116 "qspi_data2_b",
5117 "qspi_data4_b",
5118};
5119
5120static const char * const scif0_groups[] = {
5121 "scif0_data",
5122 "scif0_data_b",
5123 "scif0_data_c",
5124 "scif0_data_d",
5125 "scif0_data_e",
5126};
5127
5128static const char * const scif1_groups[] = {
5129 "scif1_data",
5130 "scif1_data_b",
5131 "scif1_clk_b",
5132 "scif1_data_c",
5133 "scif1_data_d",
5134};
5135
5136static const char * const scif2_groups[] = {
5137 "scif2_data",
5138 "scif2_data_b",
5139 "scif2_clk_b",
5140 "scif2_data_c",
5141 "scif2_data_e",
5142};
5143static const char * const scif3_groups[] = {
5144 "scif3_data",
5145 "scif3_clk",
5146 "scif3_data_b",
5147 "scif3_clk_b",
5148 "scif3_data_c",
5149 "scif3_data_d",
5150};
5151static const char * const scif4_groups[] = {
5152 "scif4_data",
5153 "scif4_data_b",
5154 "scif4_data_c",
5155};
5156static const char * const scif5_groups[] = {
5157 "scif5_data",
5158 "scif5_data_b",
5159};
5160static const char * const scifa0_groups[] = {
5161 "scifa0_data",
5162 "scifa0_data_b",
5163};
5164static const char * const scifa1_groups[] = {
5165 "scifa1_data",
5166 "scifa1_clk",
5167 "scifa1_data_b",
5168 "scifa1_clk_b",
5169 "scifa1_data_c",
5170};
5171static const char * const scifa2_groups[] = {
5172 "scifa2_data",
5173 "scifa2_clk",
5174 "scifa2_data_b",
5175};
5176static const char * const scifa3_groups[] = {
5177 "scifa3_data",
5178 "scifa3_clk",
5179 "scifa3_data_b",
5180 "scifa3_clk_b",
5181 "scifa3_data_c",
5182 "scifa3_clk_c",
5183};
5184static const char * const scifa4_groups[] = {
5185 "scifa4_data",
5186 "scifa4_data_b",
5187 "scifa4_data_c",
5188};
5189static const char * const scifa5_groups[] = {
5190 "scifa5_data",
5191 "scifa5_data_b",
5192 "scifa5_data_c",
5193};
5194static const char * const scifb0_groups[] = {
5195 "scifb0_data",
5196 "scifb0_clk",
5197 "scifb0_ctrl",
5198 "scifb0_data_b",
5199 "scifb0_clk_b",
5200 "scifb0_ctrl_b",
5201 "scifb0_data_c",
5202 "scifb0_clk_c",
5203 "scifb0_data_d",
5204 "scifb0_clk_d",
5205};
5206static const char * const scifb1_groups[] = {
5207 "scifb1_data",
5208 "scifb1_clk",
5209 "scifb1_ctrl",
5210 "scifb1_data_b",
5211 "scifb1_clk_b",
5212 "scifb1_data_c",
5213 "scifb1_clk_c",
5214 "scifb1_data_d",
5215};
5216static const char * const scifb2_groups[] = {
5217 "scifb2_data",
5218 "scifb2_clk",
5219 "scifb2_ctrl",
5220 "scifb2_data_b",
5221 "scifb2_clk_b",
5222 "scifb2_ctrl_b",
Marek Vasut0913c7a2019-03-04 22:26:28 +01005223 "scifb2_data_c",
Marek Vasut06ef9e82018-01-17 17:14:45 +01005224 "scifb2_clk_c",
5225 "scifb2_data_d",
5226};
5227
5228static const char * const scif_clk_groups[] = {
5229 "scif_clk",
5230 "scif_clk_b",
5231};
5232
5233static const char * const sdhi0_groups[] = {
5234 "sdhi0_data1",
5235 "sdhi0_data4",
5236 "sdhi0_ctrl",
5237 "sdhi0_cd",
5238 "sdhi0_wp",
5239};
5240
5241static const char * const sdhi1_groups[] = {
5242 "sdhi1_data1",
5243 "sdhi1_data4",
5244 "sdhi1_ctrl",
5245 "sdhi1_cd",
5246 "sdhi1_wp",
5247};
5248
5249static const char * const sdhi2_groups[] = {
5250 "sdhi2_data1",
5251 "sdhi2_data4",
5252 "sdhi2_ctrl",
5253 "sdhi2_cd",
5254 "sdhi2_wp",
5255};
5256
5257static const char * const ssi_groups[] = {
5258 "ssi0_data",
5259 "ssi0_data_b",
5260 "ssi0129_ctrl",
5261 "ssi0129_ctrl_b",
5262 "ssi1_data",
5263 "ssi1_data_b",
5264 "ssi1_ctrl",
5265 "ssi1_ctrl_b",
5266 "ssi2_data",
5267 "ssi2_ctrl",
5268 "ssi3_data",
5269 "ssi34_ctrl",
5270 "ssi4_data",
5271 "ssi4_ctrl",
5272 "ssi5_data",
5273 "ssi5_ctrl",
5274 "ssi6_data",
5275 "ssi6_ctrl",
5276 "ssi7_data",
5277 "ssi7_data_b",
5278 "ssi78_ctrl",
5279 "ssi78_ctrl_b",
5280 "ssi8_data",
5281 "ssi8_data_b",
5282 "ssi9_data",
5283 "ssi9_data_b",
5284 "ssi9_ctrl",
5285 "ssi9_ctrl_b",
5286};
5287
Marek Vasuteb900d12018-06-10 16:05:18 +02005288static const char * const tpu_groups[] = {
5289 "tpu_to0",
5290 "tpu_to1",
5291 "tpu_to2",
5292 "tpu_to3",
5293};
5294
Marek Vasut06ef9e82018-01-17 17:14:45 +01005295static const char * const usb0_groups[] = {
5296 "usb0",
5297};
5298static const char * const usb1_groups[] = {
5299 "usb1",
5300};
5301
5302static const char * const vin0_groups[] = {
5303 "vin0_data24",
5304 "vin0_data20",
5305 "vin0_data18",
5306 "vin0_data16",
5307 "vin0_data12",
5308 "vin0_data10",
5309 "vin0_data8",
5310 "vin0_sync",
5311 "vin0_field",
5312 "vin0_clkenb",
5313 "vin0_clk",
5314};
5315
5316static const char * const vin1_groups[] = {
5317 "vin1_data8",
5318 "vin1_sync",
5319 "vin1_field",
5320 "vin1_clkenb",
5321 "vin1_clk",
Marek Vasut0913c7a2019-03-04 22:26:28 +01005322 "vin1_data24_b",
5323 "vin1_data20_b",
5324 "vin1_data18_b",
5325 "vin1_data16_b",
5326 "vin1_data12_b",
5327 "vin1_data10_b",
5328 "vin1_data8_b",
5329 "vin1_sync_b",
5330 "vin1_field_b",
5331 "vin1_clkenb_b",
5332 "vin1_clk_b",
Marek Vasut06ef9e82018-01-17 17:14:45 +01005333};
5334
5335static const char * const vin2_groups[] = {
5336 "vin2_data8",
5337 "vin2_sync",
5338 "vin2_field",
5339 "vin2_clkenb",
5340 "vin2_clk",
5341};
5342
5343static const struct {
Marek Vasuteb900d12018-06-10 16:05:18 +02005344 struct sh_pfc_function common[58];
Marek Vasut0e8e9892021-04-26 22:04:11 +02005345#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut0913c7a2019-03-04 22:26:28 +01005346 struct sh_pfc_function automotive[2];
Marek Vasut0e8e9892021-04-26 22:04:11 +02005347#endif
Marek Vasut06ef9e82018-01-17 17:14:45 +01005348} pinmux_functions = {
5349 .common = {
5350 SH_PFC_FUNCTION(audio_clk),
5351 SH_PFC_FUNCTION(avb),
5352 SH_PFC_FUNCTION(can0),
5353 SH_PFC_FUNCTION(can1),
Marek Vasuteb900d12018-06-10 16:05:18 +02005354 SH_PFC_FUNCTION(can_clk),
Marek Vasut06ef9e82018-01-17 17:14:45 +01005355 SH_PFC_FUNCTION(du),
5356 SH_PFC_FUNCTION(du0),
5357 SH_PFC_FUNCTION(du1),
5358 SH_PFC_FUNCTION(eth),
5359 SH_PFC_FUNCTION(hscif0),
5360 SH_PFC_FUNCTION(hscif1),
5361 SH_PFC_FUNCTION(hscif2),
5362 SH_PFC_FUNCTION(i2c0),
5363 SH_PFC_FUNCTION(i2c1),
5364 SH_PFC_FUNCTION(i2c2),
5365 SH_PFC_FUNCTION(i2c3),
5366 SH_PFC_FUNCTION(i2c4),
5367 SH_PFC_FUNCTION(i2c7),
5368 SH_PFC_FUNCTION(i2c8),
5369 SH_PFC_FUNCTION(intc),
5370 SH_PFC_FUNCTION(mmc),
5371 SH_PFC_FUNCTION(msiof0),
5372 SH_PFC_FUNCTION(msiof1),
5373 SH_PFC_FUNCTION(msiof2),
5374 SH_PFC_FUNCTION(pwm0),
5375 SH_PFC_FUNCTION(pwm1),
5376 SH_PFC_FUNCTION(pwm2),
5377 SH_PFC_FUNCTION(pwm3),
5378 SH_PFC_FUNCTION(pwm4),
5379 SH_PFC_FUNCTION(pwm5),
5380 SH_PFC_FUNCTION(pwm6),
5381 SH_PFC_FUNCTION(qspi),
5382 SH_PFC_FUNCTION(scif0),
5383 SH_PFC_FUNCTION(scif1),
5384 SH_PFC_FUNCTION(scif2),
5385 SH_PFC_FUNCTION(scif3),
5386 SH_PFC_FUNCTION(scif4),
5387 SH_PFC_FUNCTION(scif5),
5388 SH_PFC_FUNCTION(scifa0),
5389 SH_PFC_FUNCTION(scifa1),
5390 SH_PFC_FUNCTION(scifa2),
5391 SH_PFC_FUNCTION(scifa3),
5392 SH_PFC_FUNCTION(scifa4),
5393 SH_PFC_FUNCTION(scifa5),
5394 SH_PFC_FUNCTION(scifb0),
5395 SH_PFC_FUNCTION(scifb1),
5396 SH_PFC_FUNCTION(scifb2),
5397 SH_PFC_FUNCTION(scif_clk),
5398 SH_PFC_FUNCTION(sdhi0),
5399 SH_PFC_FUNCTION(sdhi1),
5400 SH_PFC_FUNCTION(sdhi2),
5401 SH_PFC_FUNCTION(ssi),
Marek Vasuteb900d12018-06-10 16:05:18 +02005402 SH_PFC_FUNCTION(tpu),
Marek Vasut06ef9e82018-01-17 17:14:45 +01005403 SH_PFC_FUNCTION(usb0),
5404 SH_PFC_FUNCTION(usb1),
5405 SH_PFC_FUNCTION(vin0),
5406 SH_PFC_FUNCTION(vin1),
5407 SH_PFC_FUNCTION(vin2),
5408 },
Marek Vasut0e8e9892021-04-26 22:04:11 +02005409#if defined(CONFIG_PINCTRL_PFC_R8A7791) || defined(CONFIG_PINCTRL_PFC_R8A7793)
Marek Vasut0913c7a2019-03-04 22:26:28 +01005410 .automotive = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01005411 SH_PFC_FUNCTION(adi),
5412 SH_PFC_FUNCTION(mlb),
5413 }
Marek Vasut0e8e9892021-04-26 22:04:11 +02005414#endif /* CONFIG_PINCTRL_PFC_R8A7791 || CONFIG_PINCTRL_PFC_R8A7793 */
Marek Vasut06ef9e82018-01-17 17:14:45 +01005415};
5416
5417static const struct pinmux_cfg_reg pinmux_config_regs[] = {
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005418 { PINMUX_CFG_REG("GPSR0", 0xE6060004, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005419 GP_0_31_FN, FN_IP1_22_20,
5420 GP_0_30_FN, FN_IP1_19_17,
5421 GP_0_29_FN, FN_IP1_16_14,
5422 GP_0_28_FN, FN_IP1_13_11,
5423 GP_0_27_FN, FN_IP1_10_8,
5424 GP_0_26_FN, FN_IP1_7_6,
5425 GP_0_25_FN, FN_IP1_5_4,
5426 GP_0_24_FN, FN_IP1_3_2,
5427 GP_0_23_FN, FN_IP1_1_0,
5428 GP_0_22_FN, FN_IP0_30_29,
5429 GP_0_21_FN, FN_IP0_28_27,
5430 GP_0_20_FN, FN_IP0_26_25,
5431 GP_0_19_FN, FN_IP0_24_23,
5432 GP_0_18_FN, FN_IP0_22_21,
5433 GP_0_17_FN, FN_IP0_20_19,
5434 GP_0_16_FN, FN_IP0_18_16,
5435 GP_0_15_FN, FN_IP0_15,
5436 GP_0_14_FN, FN_IP0_14,
5437 GP_0_13_FN, FN_IP0_13,
5438 GP_0_12_FN, FN_IP0_12,
5439 GP_0_11_FN, FN_IP0_11,
5440 GP_0_10_FN, FN_IP0_10,
5441 GP_0_9_FN, FN_IP0_9,
5442 GP_0_8_FN, FN_IP0_8,
5443 GP_0_7_FN, FN_IP0_7,
5444 GP_0_6_FN, FN_IP0_6,
5445 GP_0_5_FN, FN_IP0_5,
5446 GP_0_4_FN, FN_IP0_4,
5447 GP_0_3_FN, FN_IP0_3,
5448 GP_0_2_FN, FN_IP0_2,
5449 GP_0_1_FN, FN_IP0_1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005450 GP_0_0_FN, FN_IP0_0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005451 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005452 { PINMUX_CFG_REG("GPSR1", 0xE6060008, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005453 0, 0,
5454 0, 0,
5455 0, 0,
5456 0, 0,
5457 0, 0,
5458 0, 0,
5459 GP_1_25_FN, FN_IP3_21_20,
5460 GP_1_24_FN, FN_IP3_19_18,
5461 GP_1_23_FN, FN_IP3_17_16,
5462 GP_1_22_FN, FN_IP3_15_14,
5463 GP_1_21_FN, FN_IP3_13_12,
5464 GP_1_20_FN, FN_IP3_11_9,
5465 GP_1_19_FN, FN_RD_N,
5466 GP_1_18_FN, FN_IP3_8_6,
5467 GP_1_17_FN, FN_IP3_5_3,
5468 GP_1_16_FN, FN_IP3_2_0,
5469 GP_1_15_FN, FN_IP2_29_27,
5470 GP_1_14_FN, FN_IP2_26_25,
5471 GP_1_13_FN, FN_IP2_24_23,
5472 GP_1_12_FN, FN_EX_CS0_N,
5473 GP_1_11_FN, FN_IP2_22_21,
5474 GP_1_10_FN, FN_IP2_20_19,
5475 GP_1_9_FN, FN_IP2_18_16,
5476 GP_1_8_FN, FN_IP2_15_13,
5477 GP_1_7_FN, FN_IP2_12_10,
5478 GP_1_6_FN, FN_IP2_9_7,
5479 GP_1_5_FN, FN_IP2_6_5,
5480 GP_1_4_FN, FN_IP2_4_3,
5481 GP_1_3_FN, FN_IP2_2_0,
5482 GP_1_2_FN, FN_IP1_31_29,
5483 GP_1_1_FN, FN_IP1_28_26,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005484 GP_1_0_FN, FN_IP1_25_23, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005485 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005486 { PINMUX_CFG_REG("GPSR2", 0xE606000C, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005487 GP_2_31_FN, FN_IP6_7_6,
5488 GP_2_30_FN, FN_IP6_5_3,
5489 GP_2_29_FN, FN_IP6_2_0,
5490 GP_2_28_FN, FN_AUDIO_CLKA,
5491 GP_2_27_FN, FN_IP5_31_29,
5492 GP_2_26_FN, FN_IP5_28_26,
5493 GP_2_25_FN, FN_IP5_25_24,
5494 GP_2_24_FN, FN_IP5_23_22,
5495 GP_2_23_FN, FN_IP5_21_20,
5496 GP_2_22_FN, FN_IP5_19_17,
5497 GP_2_21_FN, FN_IP5_16_15,
5498 GP_2_20_FN, FN_IP5_14_12,
5499 GP_2_19_FN, FN_IP5_11_9,
5500 GP_2_18_FN, FN_IP5_8_6,
5501 GP_2_17_FN, FN_IP5_5_3,
5502 GP_2_16_FN, FN_IP5_2_0,
5503 GP_2_15_FN, FN_IP4_30_28,
5504 GP_2_14_FN, FN_IP4_27_26,
5505 GP_2_13_FN, FN_IP4_25_24,
5506 GP_2_12_FN, FN_IP4_23_22,
5507 GP_2_11_FN, FN_IP4_21,
5508 GP_2_10_FN, FN_IP4_20,
5509 GP_2_9_FN, FN_IP4_19,
5510 GP_2_8_FN, FN_IP4_18_16,
5511 GP_2_7_FN, FN_IP4_15_13,
5512 GP_2_6_FN, FN_IP4_12_10,
5513 GP_2_5_FN, FN_IP4_9_8,
5514 GP_2_4_FN, FN_IP4_7_5,
5515 GP_2_3_FN, FN_IP4_4_2,
5516 GP_2_2_FN, FN_IP4_1_0,
5517 GP_2_1_FN, FN_IP3_30_28,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005518 GP_2_0_FN, FN_IP3_27_25 ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005519 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005520 { PINMUX_CFG_REG("GPSR3", 0xE6060010, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005521 GP_3_31_FN, FN_IP9_18_17,
5522 GP_3_30_FN, FN_IP9_16,
5523 GP_3_29_FN, FN_IP9_15_13,
5524 GP_3_28_FN, FN_IP9_12,
5525 GP_3_27_FN, FN_IP9_11,
5526 GP_3_26_FN, FN_IP9_10_8,
5527 GP_3_25_FN, FN_IP9_7,
5528 GP_3_24_FN, FN_IP9_6,
5529 GP_3_23_FN, FN_IP9_5_3,
5530 GP_3_22_FN, FN_IP9_2_0,
5531 GP_3_21_FN, FN_IP8_30_28,
5532 GP_3_20_FN, FN_IP8_27_26,
5533 GP_3_19_FN, FN_IP8_25_24,
5534 GP_3_18_FN, FN_IP8_23_21,
5535 GP_3_17_FN, FN_IP8_20_18,
5536 GP_3_16_FN, FN_IP8_17_15,
5537 GP_3_15_FN, FN_IP8_14_12,
5538 GP_3_14_FN, FN_IP8_11_9,
5539 GP_3_13_FN, FN_IP8_8_6,
5540 GP_3_12_FN, FN_IP8_5_3,
5541 GP_3_11_FN, FN_IP8_2_0,
5542 GP_3_10_FN, FN_IP7_29_27,
5543 GP_3_9_FN, FN_IP7_26_24,
5544 GP_3_8_FN, FN_IP7_23_21,
5545 GP_3_7_FN, FN_IP7_20_19,
5546 GP_3_6_FN, FN_IP7_18_17,
5547 GP_3_5_FN, FN_IP7_16_15,
5548 GP_3_4_FN, FN_IP7_14_13,
5549 GP_3_3_FN, FN_IP7_12_11,
5550 GP_3_2_FN, FN_IP7_10_9,
5551 GP_3_1_FN, FN_IP7_8_6,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005552 GP_3_0_FN, FN_IP7_5_3 ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005553 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005554 { PINMUX_CFG_REG("GPSR4", 0xE6060014, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005555 GP_4_31_FN, FN_IP15_5_4,
5556 GP_4_30_FN, FN_IP15_3_2,
5557 GP_4_29_FN, FN_IP15_1_0,
5558 GP_4_28_FN, FN_IP11_8_6,
5559 GP_4_27_FN, FN_IP11_5_3,
5560 GP_4_26_FN, FN_IP11_2_0,
5561 GP_4_25_FN, FN_IP10_31_29,
5562 GP_4_24_FN, FN_IP10_28_27,
5563 GP_4_23_FN, FN_IP10_26_25,
5564 GP_4_22_FN, FN_IP10_24_22,
5565 GP_4_21_FN, FN_IP10_21_19,
5566 GP_4_20_FN, FN_IP10_18_17,
5567 GP_4_19_FN, FN_IP10_16_15,
5568 GP_4_18_FN, FN_IP10_14_12,
5569 GP_4_17_FN, FN_IP10_11_9,
5570 GP_4_16_FN, FN_IP10_8_6,
5571 GP_4_15_FN, FN_IP10_5_3,
5572 GP_4_14_FN, FN_IP10_2_0,
5573 GP_4_13_FN, FN_IP9_31_29,
5574 GP_4_12_FN, FN_VI0_DATA7_VI0_B7,
5575 GP_4_11_FN, FN_VI0_DATA6_VI0_B6,
5576 GP_4_10_FN, FN_VI0_DATA5_VI0_B5,
5577 GP_4_9_FN, FN_VI0_DATA4_VI0_B4,
5578 GP_4_8_FN, FN_IP9_28_27,
5579 GP_4_7_FN, FN_VI0_DATA2_VI0_B2,
5580 GP_4_6_FN, FN_VI0_DATA1_VI0_B1,
5581 GP_4_5_FN, FN_VI0_DATA0_VI0_B0,
5582 GP_4_4_FN, FN_IP9_26_25,
5583 GP_4_3_FN, FN_IP9_24_23,
5584 GP_4_2_FN, FN_IP9_22_21,
5585 GP_4_1_FN, FN_IP9_20_19,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005586 GP_4_0_FN, FN_VI0_CLK ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005587 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005588 { PINMUX_CFG_REG("GPSR5", 0xE6060018, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005589 GP_5_31_FN, FN_IP3_24_22,
5590 GP_5_30_FN, FN_IP13_9_7,
5591 GP_5_29_FN, FN_IP13_6_5,
5592 GP_5_28_FN, FN_IP13_4_3,
5593 GP_5_27_FN, FN_IP13_2_0,
5594 GP_5_26_FN, FN_IP12_29_27,
5595 GP_5_25_FN, FN_IP12_26_24,
5596 GP_5_24_FN, FN_IP12_23_22,
5597 GP_5_23_FN, FN_IP12_21_20,
5598 GP_5_22_FN, FN_IP12_19_18,
5599 GP_5_21_FN, FN_IP12_17_16,
5600 GP_5_20_FN, FN_IP12_15_13,
5601 GP_5_19_FN, FN_IP12_12_10,
5602 GP_5_18_FN, FN_IP12_9_7,
5603 GP_5_17_FN, FN_IP12_6_4,
5604 GP_5_16_FN, FN_IP12_3_2,
5605 GP_5_15_FN, FN_IP12_1_0,
5606 GP_5_14_FN, FN_IP11_31_30,
5607 GP_5_13_FN, FN_IP11_29_28,
5608 GP_5_12_FN, FN_IP11_27,
5609 GP_5_11_FN, FN_IP11_26,
5610 GP_5_10_FN, FN_IP11_25,
5611 GP_5_9_FN, FN_IP11_24,
5612 GP_5_8_FN, FN_IP11_23,
5613 GP_5_7_FN, FN_IP11_22,
5614 GP_5_6_FN, FN_IP11_21,
5615 GP_5_5_FN, FN_IP11_20,
5616 GP_5_4_FN, FN_IP11_19,
5617 GP_5_3_FN, FN_IP11_18_17,
5618 GP_5_2_FN, FN_IP11_16_15,
5619 GP_5_1_FN, FN_IP11_14_12,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005620 GP_5_0_FN, FN_IP11_11_9 ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005621 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005622 { PINMUX_CFG_REG("GPSR6", 0xE606001C, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005623 GP_6_31_FN, FN_DU0_DOTCLKIN,
5624 GP_6_30_FN, FN_USB1_OVC,
5625 GP_6_29_FN, FN_IP14_31_29,
5626 GP_6_28_FN, FN_IP14_28_26,
5627 GP_6_27_FN, FN_IP14_25_23,
5628 GP_6_26_FN, FN_IP14_22_20,
5629 GP_6_25_FN, FN_IP14_19_17,
5630 GP_6_24_FN, FN_IP14_16_14,
5631 GP_6_23_FN, FN_IP14_13_11,
5632 GP_6_22_FN, FN_IP14_10_8,
5633 GP_6_21_FN, FN_IP14_7,
5634 GP_6_20_FN, FN_IP14_6,
5635 GP_6_19_FN, FN_IP14_5,
5636 GP_6_18_FN, FN_IP14_4,
5637 GP_6_17_FN, FN_IP14_3,
5638 GP_6_16_FN, FN_IP14_2,
5639 GP_6_15_FN, FN_IP14_1_0,
5640 GP_6_14_FN, FN_IP13_30_28,
5641 GP_6_13_FN, FN_IP13_27,
5642 GP_6_12_FN, FN_IP13_26,
5643 GP_6_11_FN, FN_IP13_25,
5644 GP_6_10_FN, FN_IP13_24_23,
5645 GP_6_9_FN, FN_IP13_22,
5646 GP_6_8_FN, FN_SD1_CLK,
5647 GP_6_7_FN, FN_IP13_21_19,
5648 GP_6_6_FN, FN_IP13_18_16,
5649 GP_6_5_FN, FN_IP13_15,
5650 GP_6_4_FN, FN_IP13_14,
5651 GP_6_3_FN, FN_IP13_13,
5652 GP_6_2_FN, FN_IP13_12,
5653 GP_6_1_FN, FN_IP13_11,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005654 GP_6_0_FN, FN_IP13_10 ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005655 },
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005656 { PINMUX_CFG_REG("GPSR7", 0xE6060074, 32, 1, GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005657 0, 0,
5658 0, 0,
5659 0, 0,
5660 0, 0,
5661 0, 0,
5662 0, 0,
5663 GP_7_25_FN, FN_USB1_PWEN,
5664 GP_7_24_FN, FN_USB0_OVC,
5665 GP_7_23_FN, FN_USB0_PWEN,
5666 GP_7_22_FN, FN_IP15_14_12,
5667 GP_7_21_FN, FN_IP15_11_9,
5668 GP_7_20_FN, FN_IP15_8_6,
5669 GP_7_19_FN, FN_IP7_2_0,
5670 GP_7_18_FN, FN_IP6_29_27,
5671 GP_7_17_FN, FN_IP6_26_24,
5672 GP_7_16_FN, FN_IP6_23_21,
5673 GP_7_15_FN, FN_IP6_20_19,
5674 GP_7_14_FN, FN_IP6_18_16,
5675 GP_7_13_FN, FN_IP6_15_14,
5676 GP_7_12_FN, FN_IP6_13_12,
5677 GP_7_11_FN, FN_IP6_11_10,
5678 GP_7_10_FN, FN_IP6_9_8,
5679 GP_7_9_FN, FN_IP16_11_10,
5680 GP_7_8_FN, FN_IP16_9_8,
5681 GP_7_7_FN, FN_IP16_7_6,
5682 GP_7_6_FN, FN_IP16_5_3,
5683 GP_7_5_FN, FN_IP16_2_0,
5684 GP_7_4_FN, FN_IP15_29_27,
5685 GP_7_3_FN, FN_IP15_26_24,
5686 GP_7_2_FN, FN_IP15_23_21,
5687 GP_7_1_FN, FN_IP15_20_18,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005688 GP_7_0_FN, FN_IP15_17_15 ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005689 },
5690 { PINMUX_CFG_REG_VAR("IPSR0", 0xE6060020, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01005691 GROUP(-1, 2, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005692 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
5693 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01005694 /* IP0_31 [1] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01005695 /* IP0_30_29 [2] */
5696 FN_A6, FN_MSIOF1_SCK,
5697 0, 0,
5698 /* IP0_28_27 [2] */
5699 FN_A5, FN_MSIOF0_RXD_B,
5700 0, 0,
5701 /* IP0_26_25 [2] */
5702 FN_A4, FN_MSIOF0_TXD_B,
5703 0, 0,
5704 /* IP0_24_23 [2] */
5705 FN_A3, FN_MSIOF0_SS2_B,
5706 0, 0,
5707 /* IP0_22_21 [2] */
5708 FN_A2, FN_MSIOF0_SS1_B,
5709 0, 0,
5710 /* IP0_20_19 [2] */
5711 FN_A1, FN_MSIOF0_SYNC_B,
5712 0, 0,
5713 /* IP0_18_16 [3] */
5714 FN_A0, FN_ATAWR0_N_C, FN_MSIOF0_SCK_B, FN_I2C0_SCL_C, FN_PWM2_B,
5715 0, 0, 0,
5716 /* IP0_15 [1] */
5717 FN_D15, 0,
5718 /* IP0_14 [1] */
5719 FN_D14, 0,
5720 /* IP0_13 [1] */
5721 FN_D13, 0,
5722 /* IP0_12 [1] */
5723 FN_D12, 0,
5724 /* IP0_11 [1] */
5725 FN_D11, 0,
5726 /* IP0_10 [1] */
5727 FN_D10, 0,
5728 /* IP0_9 [1] */
5729 FN_D9, 0,
5730 /* IP0_8 [1] */
5731 FN_D8, 0,
5732 /* IP0_7 [1] */
5733 FN_D7, 0,
5734 /* IP0_6 [1] */
5735 FN_D6, 0,
5736 /* IP0_5 [1] */
5737 FN_D5, 0,
5738 /* IP0_4 [1] */
5739 FN_D4, 0,
5740 /* IP0_3 [1] */
5741 FN_D3, 0,
5742 /* IP0_2 [1] */
5743 FN_D2, 0,
5744 /* IP0_1 [1] */
5745 FN_D1, 0,
5746 /* IP0_0 [1] */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005747 FN_D0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005748 },
5749 { PINMUX_CFG_REG_VAR("IPSR1", 0xE6060024, 32,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005750 GROUP(3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2),
5751 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005752 /* IP1_31_29 [3] */
5753 FN_A18, FN_DREQ1, FN_SCIFA1_RXD_C, 0, FN_SCIFB1_RXD_C,
5754 0, 0, 0,
5755 /* IP1_28_26 [3] */
5756 FN_A17, FN_DACK2_B, 0, FN_I2C0_SDA_C,
5757 0, 0, 0, 0,
5758 /* IP1_25_23 [3] */
5759 FN_A16, FN_DREQ2_B, FN_FMCLK_C, 0, FN_SCIFA1_SCK_B,
5760 0, 0, 0,
5761 /* IP1_22_20 [3] */
5762 FN_A15, FN_BPFCLK_C,
5763 0, 0, 0, 0, 0, 0,
5764 /* IP1_19_17 [3] */
5765 FN_A14, FN_ATADIR0_N_C, FN_FMIN, FN_FMIN_C, FN_MSIOF1_SYNC_D,
5766 0, 0, 0,
5767 /* IP1_16_14 [3] */
5768 FN_A13, FN_ATAG0_N_C, FN_BPFCLK, FN_MSIOF1_SS1_D,
5769 0, 0, 0, 0,
5770 /* IP1_13_11 [3] */
5771 FN_A12, FN_FMCLK, FN_I2C3_SDA_D, FN_MSIOF1_SCK_D,
5772 0, 0, 0, 0,
5773 /* IP1_10_8 [3] */
5774 FN_A11, FN_MSIOF1_RXD, FN_I2C3_SCL_D, FN_MSIOF1_RXD_D,
5775 0, 0, 0, 0,
5776 /* IP1_7_6 [2] */
5777 FN_A10, FN_MSIOF1_TXD, 0, FN_MSIOF1_TXD_D,
5778 /* IP1_5_4 [2] */
5779 FN_A9, FN_MSIOF1_SS2, FN_I2C0_SDA, 0,
5780 /* IP1_3_2 [2] */
5781 FN_A8, FN_MSIOF1_SS1, FN_I2C0_SCL, 0,
5782 /* IP1_1_0 [2] */
5783 FN_A7, FN_MSIOF1_SYNC,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005784 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005785 },
5786 { PINMUX_CFG_REG_VAR("IPSR2", 0xE6060028, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01005787 GROUP(-2, 3, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 3),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005788 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01005789 /* IP2_31_30 [2] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01005790 /* IP2_29_27 [3] */
5791 FN_EX_CS3_N, FN_ATADIR0_N, FN_MSIOF2_TXD,
5792 FN_ATAG0_N, 0, FN_EX_WAIT1,
5793 0, 0,
5794 /* IP2_26_25 [2] */
5795 FN_EX_CS2_N, FN_ATAWR0_N, FN_MSIOF2_SYNC, 0,
5796 /* IP2_24_23 [2] */
5797 FN_EX_CS1_N, FN_MSIOF2_SCK, 0, 0,
5798 /* IP2_22_21 [2] */
5799 FN_CS1_N_A26, FN_ATADIR0_N_B, FN_I2C1_SDA, 0,
5800 /* IP2_20_19 [2] */
5801 FN_CS0_N, FN_ATAG0_N_B, FN_I2C1_SCL, 0,
5802 /* IP2_18_16 [3] */
5803 FN_A25, FN_DACK2, FN_SSL, FN_DREQ1_C, FN_RX1, FN_SCIFA1_RXD,
5804 0, 0,
5805 /* IP2_15_13 [3] */
5806 FN_A24, FN_DREQ2, FN_IO3, FN_TX1, FN_SCIFA1_TXD,
5807 0, 0, 0,
5808 /* IP2_12_10 [3] */
5809 FN_A23, FN_IO2, FN_BPFCLK_B, FN_RX0, FN_SCIFA0_RXD,
5810 0, 0, 0,
5811 /* IP2_9_7 [3] */
5812 FN_A22, FN_MISO_IO1, FN_FMCLK_B, FN_TX0, FN_SCIFA0_TXD,
5813 0, 0, 0,
5814 /* IP2_6_5 [2] */
5815 FN_A21, FN_ATAWR0_N_B, FN_MOSI_IO0, 0,
5816 /* IP2_4_3 [2] */
5817 FN_A20, FN_SPCLK, 0, 0,
5818 /* IP2_2_0 [3] */
5819 FN_A19, FN_DACK1, FN_SCIFA1_TXD_C, 0,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005820 FN_SCIFB1_TXD_C, 0, FN_SCIFB1_SCK_B, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005821 },
5822 { PINMUX_CFG_REG_VAR("IPSR3", 0xE606002C, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01005823 GROUP(-1, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005824 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01005825 /* IP3_31 [1] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01005826 /* IP3_30_28 [3] */
5827 FN_SSI_WS0129, FN_HTX0_C, FN_HTX2_C,
5828 FN_SCIFB0_TXD_C, FN_SCIFB2_TXD_C,
5829 0, 0, 0,
5830 /* IP3_27_25 [3] */
5831 FN_SSI_SCK0129, FN_HRX0_C, FN_HRX2_C,
5832 FN_SCIFB0_RXD_C, FN_SCIFB2_RXD_C,
5833 0, 0, 0,
5834 /* IP3_24_22 [3] */
5835 FN_SPEEDIN, 0, FN_HSCK0_C, FN_HSCK2_C, FN_SCIFB0_SCK_B,
5836 FN_SCIFB2_SCK_B, FN_DREQ2_C, FN_HTX2_D,
5837 /* IP3_21_20 [2] */
5838 FN_DACK0, FN_DRACK0, FN_REMOCON, 0,
5839 /* IP3_19_18 [2] */
5840 FN_DREQ0, FN_PWM3, FN_TPU_TO3, 0,
5841 /* IP3_17_16 [2] */
5842 FN_EX_WAIT0, FN_HRTS2_N_B, FN_SCIFB0_CTS_N_B, 0,
5843 /* IP3_15_14 [2] */
5844 FN_WE1_N, FN_ATARD0_N_B, FN_HTX2_B, FN_SCIFB0_RTS_N_B,
5845 /* IP3_13_12 [2] */
5846 FN_WE0_N, FN_HCTS2_N_B, FN_SCIFB0_TXD_B, 0,
5847 /* IP3_11_9 [3] */
5848 FN_RD_WR_N, FN_HRX2_B, FN_FMIN_B, FN_SCIFB0_RXD_B, FN_DREQ1_D,
5849 0, 0, 0,
5850 /* IP3_8_6 [3] */
5851 FN_BS_N, FN_ATACS10_N, FN_MSIOF2_SS2, FN_HTX1_B,
5852 FN_SCIFB1_TXD_B, FN_PWM2, FN_TPU_TO2, 0,
5853 /* IP3_5_3 [3] */
5854 FN_EX_CS5_N, FN_ATACS00_N, FN_MSIOF2_SS1, FN_HRX1_B,
5855 FN_SCIFB1_RXD_B, FN_PWM1, FN_TPU_TO1, 0,
5856 /* IP3_2_0 [3] */
5857 FN_EX_CS4_N, FN_ATARD0_N, FN_MSIOF2_RXD, 0, FN_EX_WAIT2,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005858 0, 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005859 },
5860 { PINMUX_CFG_REG_VAR("IPSR4", 0xE6060030, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01005861 GROUP(-1, 3, 2, 2, 2, 1, 1, 1, 3, 3, 3, 2,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005862 3, 3, 2),
5863 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01005864 /* IP4_31 [1] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01005865 /* IP4_30_28 [3] */
5866 FN_SSI_SCK5, FN_MSIOF1_SCK_C, FN_TS_SDATA0, FN_GLO_I0,
5867 FN_MSIOF2_SYNC_D, FN_VI1_R2_B,
5868 0, 0,
5869 /* IP4_27_26 [2] */
5870 FN_SSI_SDATA4, FN_MSIOF2_SCK_D, 0, 0,
5871 /* IP4_25_24 [2] */
5872 FN_SSI_WS4, FN_GLO_RFON_D, 0, 0,
5873 /* IP4_23_22 [2] */
5874 FN_SSI_SCK4, FN_GLO_SS_D, 0, 0,
5875 /* IP4_21 [1] */
5876 FN_SSI_SDATA3, 0,
5877 /* IP4_20 [1] */
5878 FN_SSI_WS34, 0,
5879 /* IP4_19 [1] */
5880 FN_SSI_SCK34, 0,
5881 /* IP4_18_16 [3] */
5882 FN_SSI_SDATA2, FN_GPS_MAG_B, FN_TX2_E, FN_HRTS1_N_E,
5883 0, 0, 0, 0,
5884 /* IP4_15_13 [3] */
5885 FN_SSI_WS2, FN_I2C2_SDA, FN_GPS_SIGN_B, FN_RX2_E,
5886 FN_GLO_Q1_D, FN_HCTS1_N_E,
5887 0, 0,
5888 /* IP4_12_10 [3] */
5889 FN_SSI_SCK2, FN_I2C2_SCL, FN_GPS_CLK_B, FN_GLO_Q0_D, FN_HSCK1_E,
5890 0, 0, 0,
5891 /* IP4_9_8 [2] */
5892 FN_SSI_SDATA1, FN_I2C1_SDA_B, FN_IIC1_SDA_B, FN_MSIOF2_RXD_C,
5893 /* IP4_7_5 [3] */
5894 FN_SSI_WS1, FN_I2C1_SCL_B, FN_IIC1_SCL_B, FN_MSIOF2_TXD_C,
5895 FN_GLO_I1_D, 0, 0, 0,
5896 /* IP4_4_2 [3] */
5897 FN_SSI_SCK1, FN_I2C0_SDA_B, FN_IIC0_SDA_B,
5898 FN_MSIOF2_SYNC_C, FN_GLO_I0_D,
5899 0, 0, 0,
5900 /* IP4_1_0 [2] */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005901 FN_SSI_SDATA0, FN_I2C0_SCL_B, FN_IIC0_SCL_B, FN_MSIOF2_SCK_C,
5902 ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005903 },
5904 { PINMUX_CFG_REG_VAR("IPSR5", 0xE6060034, 32,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005905 GROUP(3, 3, 2, 2, 2, 3, 2, 3, 3, 3, 3, 3),
5906 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01005907 /* IP5_31_29 [3] */
5908 FN_SSI_SDATA9, FN_RX3_D, FN_CAN0_RX_D,
5909 0, 0, 0, 0, 0,
5910 /* IP5_28_26 [3] */
5911 FN_SSI_WS9, FN_TX3_D, FN_CAN0_TX_D, FN_GLO_SDATA_D,
5912 0, 0, 0, 0,
5913 /* IP5_25_24 [2] */
5914 FN_SSI_SCK9, FN_RX1_D, FN_GLO_SCLK_D, 0,
5915 /* IP5_23_22 [2] */
5916 FN_SSI_SDATA8, FN_TX1_D, FN_STP_ISSYNC_0_B, 0,
5917 /* IP5_21_20 [2] */
5918 FN_SSI_SDATA7, FN_RX0_D, FN_STP_ISEN_0_B, 0,
5919 /* IP5_19_17 [3] */
5920 FN_SSI_WS78, FN_TX0_D, FN_STP_ISD_0_B, FN_GLO_RFON,
5921 0, 0, 0, 0,
5922 /* IP5_16_15 [2] */
5923 FN_SSI_SCK78, FN_STP_ISCLK_0_B, FN_GLO_SS, 0,
5924 /* IP5_14_12 [3] */
5925 FN_SSI_SDATA6, FN_STP_IVCXO27_0_B, FN_GLO_SDATA, FN_VI1_R7_B,
5926 0, 0, 0, 0,
5927 /* IP5_11_9 [3] */
5928 FN_SSI_WS6, FN_GLO_SCLK, FN_MSIOF2_SS2_D, FN_VI1_R6_B,
5929 0, 0, 0, 0,
5930 /* IP5_8_6 [3] */
5931 FN_SSI_SCK6, FN_MSIOF1_RXD_C, FN_TS_SPSYNC0, FN_GLO_Q1,
5932 FN_MSIOF2_RXD_D, FN_VI1_R5_B,
5933 0, 0,
5934 /* IP5_5_3 [3] */
5935 FN_SSI_SDATA5, FN_MSIOF1_TXD_C, FN_TS_SDEN0, FN_GLO_Q0,
5936 FN_MSIOF2_SS1_D, FN_VI1_R4_B,
5937 0, 0,
5938 /* IP5_2_0 [3] */
5939 FN_SSI_WS5, FN_MSIOF1_SYNC_C, FN_TS_SCK0, FN_GLO_I1,
5940 FN_MSIOF2_TXD_D, FN_VI1_R3_B,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005941 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005942 },
5943 { PINMUX_CFG_REG_VAR("IPSR6", 0xE6060038, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01005944 GROUP(-2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 2, 3, 3),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005945 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01005946 /* IP6_31_30 [2] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01005947 /* IP6_29_27 [3] */
5948 FN_IRQ8, FN_HRTS1_N_C, FN_MSIOF1_RXD_B,
5949 FN_GPS_SIGN_C, FN_GPS_SIGN_D,
5950 0, 0, 0,
5951 /* IP6_26_24 [3] */
5952 FN_IRQ7, FN_HCTS1_N_C, FN_MSIOF1_TXD_B,
5953 FN_GPS_CLK_C, FN_GPS_CLK_D,
5954 0, 0, 0,
5955 /* IP6_23_21 [3] */
5956 FN_IRQ6, FN_HSCK1_C, FN_MSIOF1_SS2_B,
5957 FN_I2C1_SDA_E, FN_MSIOF2_SYNC_E,
5958 0, 0, 0,
5959 /* IP6_20_19 [2] */
5960 FN_IRQ5, FN_HTX1_C, FN_I2C1_SCL_E, FN_MSIOF2_SCK_E,
5961 /* IP6_18_16 [3] */
5962 FN_IRQ4, FN_HRX1_C, FN_I2C4_SDA_C, FN_MSIOF2_RXD_E,
Marek Vasut0b9053d2023-01-26 21:01:37 +01005963 0, 0, 0, 0,
Marek Vasut06ef9e82018-01-17 17:14:45 +01005964 /* IP6_15_14 [2] */
Marek Vasut0b9053d2023-01-26 21:01:37 +01005965 FN_IRQ3, FN_I2C4_SCL_C, FN_MSIOF2_TXD_E, 0,
Marek Vasut06ef9e82018-01-17 17:14:45 +01005966 /* IP6_13_12 [2] */
Marek Vasut0b9053d2023-01-26 21:01:37 +01005967 FN_IRQ2, FN_SCIFB1_TXD_D, 0, 0,
Marek Vasut06ef9e82018-01-17 17:14:45 +01005968 /* IP6_11_10 [2] */
Marek Vasut0b9053d2023-01-26 21:01:37 +01005969 FN_IRQ1, FN_SCIFB1_SCK_C, 0, 0,
Marek Vasut06ef9e82018-01-17 17:14:45 +01005970 /* IP6_9_8 [2] */
Marek Vasut0b9053d2023-01-26 21:01:37 +01005971 FN_IRQ0, FN_SCIFB1_RXD_D, 0, 0,
Marek Vasut06ef9e82018-01-17 17:14:45 +01005972 /* IP6_7_6 [2] */
5973 FN_AUDIO_CLKOUT, FN_MSIOF1_SS1_B, FN_TX2, FN_SCIFA2_TXD,
5974 /* IP6_5_3 [3] */
5975 FN_AUDIO_CLKC, FN_SCIFB0_SCK_C, FN_MSIOF1_SYNC_B, FN_RX2,
5976 FN_SCIFA2_RXD, FN_FMIN_E,
5977 0, 0,
5978 /* IP6_2_0 [3] */
5979 FN_AUDIO_CLKB, FN_STP_OPWM_0_B, FN_MSIOF1_SCK_B,
5980 FN_SCIF_CLK, FN_DVC_MUTE, FN_BPFCLK_E,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005981 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01005982 },
5983 { PINMUX_CFG_REG_VAR("IPSR7", 0xE606003C, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01005984 GROUP(-2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02005985 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01005986 /* IP7_31_30 [2] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01005987 /* IP7_29_27 [3] */
5988 FN_DU1_DG2, FN_LCDOUT10, FN_VI1_DATA4_B, FN_SCIF1_SCK_B,
5989 FN_SCIFA1_SCK, FN_SSI_SCK78_B,
5990 0, 0,
5991 /* IP7_26_24 [3] */
5992 FN_DU1_DG1, FN_LCDOUT9, FN_VI1_DATA3_B, FN_RX1_B,
5993 FN_SCIFA1_RXD_B, FN_MSIOF2_SS2_B,
5994 0, 0,
5995 /* IP7_23_21 [3] */
5996 FN_DU1_DG0, FN_LCDOUT8, FN_VI1_DATA2_B, FN_TX1_B,
5997 FN_SCIFA1_TXD_B, FN_MSIOF2_SS1_B,
5998 0, 0,
5999 /* IP7_20_19 [2] */
6000 FN_DU1_DR7, FN_LCDOUT7, FN_SSI_SDATA1_B, 0,
6001 /* IP7_18_17 [2] */
6002 FN_DU1_DR6, FN_LCDOUT6, FN_SSI_WS1_B, 0,
6003 /* IP7_16_15 [2] */
6004 FN_DU1_DR5, FN_LCDOUT5, FN_SSI_SCK1_B, 0,
6005 /* IP7_14_13 [2] */
6006 FN_DU1_DR4, FN_LCDOUT4, FN_SSI_SDATA0_B, 0,
6007 /* IP7_12_11 [2] */
6008 FN_DU1_DR3, FN_LCDOUT3, FN_SSI_WS0129_B, 0,
6009 /* IP7_10_9 [2] */
6010 FN_DU1_DR2, FN_LCDOUT2, FN_SSI_SCK0129_B, 0,
6011 /* IP7_8_6 [3] */
6012 FN_DU1_DR1, FN_LCDOUT1, FN_VI1_DATA1_B, FN_RX0_B,
6013 FN_SCIFA0_RXD_B, FN_MSIOF2_SYNC_B,
6014 0, 0,
6015 /* IP7_5_3 [3] */
6016 FN_DU1_DR0, FN_LCDOUT0, FN_VI1_DATA0_B, FN_TX0_B,
6017 FN_SCIFA0_TXD_B, FN_MSIOF2_SCK_B,
6018 0, 0,
6019 /* IP7_2_0 [3] */
6020 FN_IRQ9, FN_DU1_DOTCLKIN_B, FN_CAN_CLK_D, FN_GPS_MAG_C,
6021 FN_SCIF_CLK_B, FN_GPS_MAG_D,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006022 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006023 },
6024 { PINMUX_CFG_REG_VAR("IPSR8", 0xE6060040, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006025 GROUP(-1, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006026 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01006027 /* IP8_31 [1] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006028 /* IP8_30_28 [3] */
6029 FN_DU1_DB5, FN_LCDOUT21, FN_TX3, FN_SCIFA3_TXD, FN_CAN1_TX,
6030 0, 0, 0,
6031 /* IP8_27_26 [2] */
6032 FN_DU1_DB4, FN_LCDOUT20, FN_VI1_FIELD_B, FN_CAN1_RX,
6033 /* IP8_25_24 [2] */
6034 FN_DU1_DB3, FN_LCDOUT19, FN_VI1_CLKENB_B, 0,
6035 /* IP8_23_21 [3] */
6036 FN_DU1_DB2, FN_LCDOUT18, FN_VI1_VSYNC_N_B, FN_SCIF2_SCK_B,
6037 FN_SCIFA2_SCK, FN_SSI_SDATA9_B,
6038 0, 0,
6039 /* IP8_20_18 [3] */
6040 FN_DU1_DB1, FN_LCDOUT17, FN_VI1_HSYNC_N_B, FN_RX2_B,
6041 FN_SCIFA2_RXD_B, FN_MSIOF2_RXD_B,
6042 0, 0,
6043 /* IP8_17_15 [3] */
6044 FN_DU1_DB0, FN_LCDOUT16, FN_VI1_CLK_B, FN_TX2_B,
6045 FN_SCIFA2_TXD_B, FN_MSIOF2_TXD_B,
6046 0, 0,
6047 /* IP8_14_12 [3] */
6048 FN_DU1_DG7, FN_LCDOUT15, FN_HTX0_B,
6049 FN_SCIFB2_RTS_N_B, FN_SSI_WS9_B,
6050 0, 0, 0,
6051 /* IP8_11_9 [3] */
6052 FN_DU1_DG6, FN_LCDOUT14, FN_HRTS0_N_B,
6053 FN_SCIFB2_CTS_N_B, FN_SSI_SCK9_B,
6054 0, 0, 0,
6055 /* IP8_8_6 [3] */
6056 FN_DU1_DG5, FN_LCDOUT13, FN_VI1_DATA7_B, FN_HCTS0_N_B,
6057 FN_SCIFB2_TXD_B, FN_SSI_SDATA8_B,
6058 0, 0,
6059 /* IP8_5_3 [3] */
6060 FN_DU1_DG4, FN_LCDOUT12, FN_VI1_DATA6_B, FN_HRX0_B,
6061 FN_SCIFB2_RXD_B, FN_SSI_SDATA7_B,
6062 0, 0,
6063 /* IP8_2_0 [3] */
6064 FN_DU1_DG3, FN_LCDOUT11, FN_VI1_DATA5_B, 0, FN_SSI_WS78_B,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006065 0, 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006066 },
6067 { PINMUX_CFG_REG_VAR("IPSR9", 0xE6060044, 32,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006068 GROUP(3, 2, 2, 2, 2, 2, 2, 1, 3, 1, 1, 3,
6069 1, 1, 3, 3),
6070 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006071 /* IP9_31_29 [3] */
6072 FN_VI0_G0, FN_IIC1_SCL, FN_STP_IVCXO27_0_C, FN_I2C4_SCL,
6073 FN_HCTS2_N, FN_SCIFB2_CTS_N, FN_ATAWR1_N, 0,
6074 /* IP9_28_27 [2] */
6075 FN_VI0_DATA3_VI0_B3, FN_SCIF3_SCK_B, FN_SCIFA3_SCK_B, 0,
6076 /* IP9_26_25 [2] */
6077 FN_VI0_VSYNC_N, FN_RX5, FN_SCIFA5_RXD, FN_TS_SPSYNC0_D,
6078 /* IP9_24_23 [2] */
6079 FN_VI0_HSYNC_N, FN_TX5, FN_SCIFA5_TXD, FN_TS_SDEN0_D,
6080 /* IP9_22_21 [2] */
6081 FN_VI0_FIELD, FN_RX4, FN_SCIFA4_RXD, FN_TS_SCK0_D,
6082 /* IP9_20_19 [2] */
6083 FN_VI0_CLKENB, FN_TX4, FN_SCIFA4_TXD, FN_TS_SDATA0_D,
6084 /* IP9_18_17 [2] */
6085 FN_DU1_CDE, FN_QPOLB, FN_PWM4_B, 0,
6086 /* IP9_16 [1] */
6087 FN_DU1_DISP, FN_QPOLA,
6088 /* IP9_15_13 [3] */
6089 FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_QCPV_QDE,
6090 FN_CAN0_RX, FN_RX3_B, FN_I2C2_SDA_B,
6091 0, 0, 0,
6092 /* IP9_12 [1] */
6093 FN_DU1_EXVSYNC_DU1_VSYNC, FN_QSTB_QHE,
6094 /* IP9_11 [1] */
6095 FN_DU1_EXHSYNC_DU1_HSYNC, FN_QSTH_QHS,
6096 /* IP9_10_8 [3] */
6097 FN_DU1_DOTCLKOUT1, FN_QSTVB_QVE, FN_CAN0_TX,
6098 FN_TX3_B, FN_I2C2_SCL_B, FN_PWM4,
6099 0, 0,
6100 /* IP9_7 [1] */
6101 FN_DU1_DOTCLKOUT0, FN_QCLK,
6102 /* IP9_6 [1] */
6103 FN_DU1_DOTCLKIN, FN_QSTVA_QVS,
6104 /* IP9_5_3 [3] */
6105 FN_DU1_DB7, FN_LCDOUT23, FN_I2C3_SDA_C,
6106 FN_SCIF3_SCK, FN_SCIFA3_SCK,
6107 0, 0, 0,
6108 /* IP9_2_0 [3] */
6109 FN_DU1_DB6, FN_LCDOUT22, FN_I2C3_SCL_C, FN_RX3, FN_SCIFA3_RXD,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006110 0, 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006111 },
6112 { PINMUX_CFG_REG_VAR("IPSR10", 0xE6060048, 32,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006113 GROUP(3, 2, 2, 3, 3, 2, 2, 3, 3, 3, 3, 3),
6114 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006115 /* IP10_31_29 [3] */
6116 FN_VI0_R4, FN_VI2_DATA5, FN_GLO_SCLK_B, FN_TX0_C, FN_I2C1_SCL_D,
6117 0, 0, 0,
6118 /* IP10_28_27 [2] */
6119 FN_VI0_R3, FN_VI2_DATA4, FN_GLO_Q1_B, FN_TS_SPSYNC0_C,
6120 /* IP10_26_25 [2] */
6121 FN_VI0_R2, FN_VI2_DATA3, FN_GLO_Q0_B, FN_TS_SDEN0_C,
6122 /* IP10_24_22 [3] */
6123 FN_VI0_R1, FN_VI2_DATA2, FN_GLO_I1_B, FN_TS_SCK0_C, FN_ATAG1_N,
6124 0, 0, 0,
6125 /* IP10_21_19 [3] */
6126 FN_VI0_R0, FN_VI2_DATA1, FN_GLO_I0_B,
6127 FN_TS_SDATA0_C, FN_ATACS11_N,
6128 0, 0, 0,
6129 /* IP10_18_17 [2] */
6130 FN_VI0_G7, FN_VI2_DATA0, FN_FMIN_D, 0,
6131 /* IP10_16_15 [2] */
6132 FN_VI0_G6, FN_VI2_CLK, FN_BPFCLK_D, 0,
6133 /* IP10_14_12 [3] */
6134 FN_VI0_G5, FN_VI2_FIELD, FN_STP_OPWM_0_C, FN_FMCLK_D,
6135 FN_CAN0_TX_E, FN_HTX1_D, FN_SCIFB0_TXD_D, 0,
6136 /* IP10_11_9 [3] */
6137 FN_VI0_G4, FN_VI2_CLKENB, FN_STP_ISSYNC_0_C,
6138 FN_HTX2, FN_SCIFB2_TXD, FN_SCIFB0_SCK_D,
6139 0, 0,
6140 /* IP10_8_6 [3] */
6141 FN_VI0_G3, FN_VI2_VSYNC_N, FN_STP_ISEN_0_C, FN_I2C3_SDA_B,
6142 FN_HRX2, FN_SCIFB2_RXD, FN_ATACS01_N, 0,
6143 /* IP10_5_3 [3] */
6144 FN_VI0_G2, FN_VI2_HSYNC_N, FN_STP_ISD_0_C, FN_I2C3_SCL_B,
6145 FN_HSCK2, FN_SCIFB2_SCK, FN_ATARD1_N, 0,
6146 /* IP10_2_0 [3] */
6147 FN_VI0_G1, FN_IIC1_SDA, FN_STP_ISCLK_0_C, FN_I2C4_SDA,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006148 FN_HRTS2_N, FN_SCIFB2_RTS_N, FN_ATADIR1_N, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006149 },
6150 { PINMUX_CFG_REG_VAR("IPSR11", 0xE606004C, 32,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006151 GROUP(2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
6152 2, 3, 3, 3, 3, 3),
6153 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006154 /* IP11_31_30 [2] */
6155 FN_ETH_CRS_DV, FN_AVB_LINK, FN_I2C2_SDA_C, 0,
6156 /* IP11_29_28 [2] */
6157 FN_ETH_MDIO, FN_AVB_RX_CLK, FN_I2C2_SCL_C, 0,
6158 /* IP11_27 [1] */
6159 FN_VI1_DATA7, FN_AVB_MDC,
6160 /* IP11_26 [1] */
6161 FN_VI1_DATA6, FN_AVB_MAGIC,
6162 /* IP11_25 [1] */
6163 FN_VI1_DATA5, FN_AVB_RX_DV,
6164 /* IP11_24 [1] */
6165 FN_VI1_DATA4, FN_AVB_MDIO,
6166 /* IP11_23 [1] */
6167 FN_VI1_DATA3, FN_AVB_RX_ER,
6168 /* IP11_22 [1] */
6169 FN_VI1_DATA2, FN_AVB_RXD7,
6170 /* IP11_21 [1] */
6171 FN_VI1_DATA1, FN_AVB_RXD6,
6172 /* IP11_20 [1] */
6173 FN_VI1_DATA0, FN_AVB_RXD5,
6174 /* IP11_19 [1] */
6175 FN_VI1_CLK, FN_AVB_RXD4,
6176 /* IP11_18_17 [2] */
6177 FN_VI1_FIELD, FN_AVB_RXD3, FN_TS_SPSYNC0_B, 0,
6178 /* IP11_16_15 [2] */
6179 FN_VI1_CLKENB, FN_AVB_RXD2, FN_TS_SDEN0_B, 0,
6180 /* IP11_14_12 [3] */
6181 FN_VI1_VSYNC_N, FN_AVB_RXD1, FN_TS_SCK0_B,
6182 FN_RX4_B, FN_SCIFA4_RXD_B,
6183 0, 0, 0,
6184 /* IP11_11_9 [3] */
6185 FN_VI1_HSYNC_N, FN_AVB_RXD0, FN_TS_SDATA0_B,
6186 FN_TX4_B, FN_SCIFA4_TXD_B,
6187 0, 0, 0,
6188 /* IP11_8_6 [3] */
6189 FN_VI0_R7, FN_GLO_RFON_B, FN_RX1_C, FN_CAN0_RX_E,
6190 FN_I2C4_SDA_B, FN_HRX1_D, FN_SCIFB0_RXD_D, 0,
6191 /* IP11_5_3 [3] */
6192 FN_VI0_R6, FN_VI2_DATA7, FN_GLO_SS_B, FN_TX1_C, FN_I2C4_SCL_B,
6193 0, 0, 0,
6194 /* IP11_2_0 [3] */
6195 FN_VI0_R5, FN_VI2_DATA6, FN_GLO_SDATA_B, FN_RX0_C,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006196 FN_I2C1_SDA_D, 0, 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006197 },
6198 { PINMUX_CFG_REG_VAR("IPSR12", 0xE6060050, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006199 GROUP(-2, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006200 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01006201 /* IP12_31_30 [2] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006202 /* IP12_29_27 [3] */
6203 FN_STP_ISCLK_0, FN_AVB_TX_EN, FN_SCIFB2_RXD_D,
6204 FN_ADICS_SAMP_B, FN_MSIOF0_SCK_C,
6205 0, 0, 0,
6206 /* IP12_26_24 [3] */
6207 FN_STP_IVCXO27_0, FN_AVB_TXD7, FN_SCIFB2_TXD_D,
6208 FN_ADIDATA_B, FN_MSIOF0_SYNC_C,
6209 0, 0, 0,
6210 /* IP12_23_22 [2] */
6211 FN_ETH_MDC, FN_AVB_TXD6, FN_IERX_C, 0,
6212 /* IP12_21_20 [2] */
6213 FN_ETH_TXD0, FN_AVB_TXD5, FN_IECLK_C, 0,
6214 /* IP12_19_18 [2] */
6215 FN_ETH_MAGIC, FN_AVB_TXD4, FN_IETX_C, 0,
6216 /* IP12_17_16 [2] */
6217 FN_ETH_TX_EN, FN_AVB_TXD3, FN_TCLK1_B, FN_CAN_CLK_B,
6218 /* IP12_15_13 [3] */
6219 FN_ETH_TXD1, FN_AVB_TXD2, FN_SCIFA3_TXD_B,
6220 FN_CAN1_TX_C, FN_MSIOF1_TXD_E,
6221 0, 0, 0,
6222 /* IP12_12_10 [3] */
6223 FN_ETH_REFCLK, FN_AVB_TXD1, FN_SCIFA3_RXD_B,
6224 FN_CAN1_RX_C, FN_MSIOF1_SYNC_E,
6225 0, 0, 0,
6226 /* IP12_9_7 [3] */
6227 FN_ETH_LINK, FN_AVB_TXD0, FN_CAN0_RX_C,
6228 FN_I2C2_SDA_D, FN_MSIOF1_SCK_E,
6229 0, 0, 0,
6230 /* IP12_6_4 [3] */
6231 FN_ETH_RXD1, FN_AVB_GTXREFCLK, FN_CAN0_TX_C,
6232 FN_I2C2_SCL_D, FN_MSIOF1_RXD_E,
6233 0, 0, 0,
6234 /* IP12_3_2 [2] */
6235 FN_ETH_RXD0, FN_AVB_PHY_INT, FN_I2C3_SDA, FN_IIC0_SDA,
6236 /* IP12_1_0 [2] */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006237 FN_ETH_RX_ER, FN_AVB_CRS, FN_I2C3_SCL, FN_IIC0_SCL, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006238 },
6239 { PINMUX_CFG_REG_VAR("IPSR13", 0xE6060054, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006240 GROUP(-1, 3, 1, 1, 1, 2, 1, 3, 3, 1, 1, 1,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006241 1, 1, 1, 3, 2, 2, 3),
6242 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01006243 /* IP13_31 [1] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006244 /* IP13_30_28 [3] */
6245 FN_SD1_CD, FN_PWM0, FN_TPU_TO0, FN_I2C1_SCL_C,
6246 0, 0, 0, 0,
6247 /* IP13_27 [1] */
6248 FN_SD1_DATA3, FN_IERX_B,
6249 /* IP13_26 [1] */
6250 FN_SD1_DATA2, FN_IECLK_B,
6251 /* IP13_25 [1] */
6252 FN_SD1_DATA1, FN_IETX_B,
6253 /* IP13_24_23 [2] */
6254 FN_SD1_DATA0, FN_SPEEDIN_B, 0, 0,
6255 /* IP13_22 [1] */
6256 FN_SD1_CMD, FN_REMOCON_B,
6257 /* IP13_21_19 [3] */
6258 FN_SD0_WP, FN_MMC_D7_B, FN_SIM0_D_B, FN_CAN0_TX_F,
6259 FN_SCIFA5_RXD_B, FN_RX3_C,
6260 0, 0,
6261 /* IP13_18_16 [3] */
6262 FN_SD0_CD, FN_MMC_D6_B, FN_SIM0_RST_B, FN_CAN0_RX_F,
6263 FN_SCIFA5_TXD_B, FN_TX3_C,
6264 0, 0,
6265 /* IP13_15 [1] */
6266 FN_SD0_DATA3, FN_SSL_B,
6267 /* IP13_14 [1] */
6268 FN_SD0_DATA2, FN_IO3_B,
6269 /* IP13_13 [1] */
6270 FN_SD0_DATA1, FN_IO2_B,
6271 /* IP13_12 [1] */
6272 FN_SD0_DATA0, FN_MISO_IO1_B,
6273 /* IP13_11 [1] */
6274 FN_SD0_CMD, FN_MOSI_IO0_B,
6275 /* IP13_10 [1] */
6276 FN_SD0_CLK, FN_SPCLK_B,
6277 /* IP13_9_7 [3] */
6278 FN_STP_OPWM_0, FN_AVB_GTX_CLK, FN_PWM0_B,
6279 FN_ADICHS2_B, FN_MSIOF0_TXD_C,
6280 0, 0, 0,
6281 /* IP13_6_5 [2] */
6282 FN_STP_ISSYNC_0, FN_AVB_COL, FN_ADICHS1_B, FN_MSIOF0_RXD_C,
6283 /* IP13_4_3 [2] */
6284 FN_STP_ISEN_0, FN_AVB_TX_CLK, FN_ADICHS0_B, FN_MSIOF0_SS2_C,
6285 /* IP13_2_0 [3] */
6286 FN_STP_ISD_0, FN_AVB_TX_ER, FN_SCIFB2_SCK_C,
6287 FN_ADICLK_B, FN_MSIOF0_SS1_C,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006288 0, 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006289 },
6290 { PINMUX_CFG_REG_VAR("IPSR14", 0xE6060058, 32,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006291 GROUP(3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1,
6292 1, 1, 2),
6293 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006294 /* IP14_31_29 [3] */
6295 FN_MSIOF0_SS2, FN_MMC_D7, FN_ADICHS2, FN_RX0_E,
6296 FN_VI1_VSYNC_N_C, FN_IIC0_SDA_C, FN_VI1_G5_B, 0,
6297 /* IP14_28_26 [3] */
6298 FN_MSIOF0_SS1, FN_MMC_D6, FN_ADICHS1, FN_TX0_E,
6299 FN_VI1_HSYNC_N_C, FN_IIC0_SCL_C, FN_VI1_G4_B, 0,
6300 /* IP14_25_23 [3] */
6301 FN_MSIOF0_RXD, FN_ADICHS0, 0, FN_VI1_DATA0_C, FN_VI1_G3_B,
6302 0, 0, 0,
6303 /* IP14_22_20 [3] */
6304 FN_MSIOF0_TXD, FN_ADICLK, 0, FN_VI1_FIELD_C, FN_VI1_G2_B,
6305 0, 0, 0,
6306 /* IP14_19_17 [3] */
6307 FN_MSIOF0_SYNC, FN_TX2_C, FN_ADICS_SAMP, 0,
6308 FN_VI1_CLKENB_C, FN_VI1_G1_B,
6309 0, 0,
6310 /* IP14_16_14 [3] */
6311 FN_MSIOF0_SCK, FN_RX2_C, FN_ADIDATA, 0,
6312 FN_VI1_CLK_C, FN_VI1_G0_B,
6313 0, 0,
6314 /* IP14_13_11 [3] */
6315 FN_SD2_WP, FN_MMC_D5, FN_IIC1_SDA_C, FN_RX5_B, FN_SCIFA5_RXD_C,
6316 0, 0, 0,
6317 /* IP14_10_8 [3] */
6318 FN_SD2_CD, FN_MMC_D4, FN_IIC1_SCL_C, FN_TX5_B, FN_SCIFA5_TXD_C,
6319 0, 0, 0,
6320 /* IP14_7 [1] */
6321 FN_SD2_DATA3, FN_MMC_D3,
6322 /* IP14_6 [1] */
6323 FN_SD2_DATA2, FN_MMC_D2,
6324 /* IP14_5 [1] */
6325 FN_SD2_DATA1, FN_MMC_D1,
6326 /* IP14_4 [1] */
6327 FN_SD2_DATA0, FN_MMC_D0,
6328 /* IP14_3 [1] */
6329 FN_SD2_CMD, FN_MMC_CMD,
6330 /* IP14_2 [1] */
6331 FN_SD2_CLK, FN_MMC_CLK,
6332 /* IP14_1_0 [2] */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006333 FN_SD1_WP, FN_PWM1_B, FN_I2C1_SDA_C, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006334 },
6335 { PINMUX_CFG_REG_VAR("IPSR15", 0xE606005C, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006336 GROUP(-2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006337 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01006338 /* IP15_31_30 [2] RESERVED */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006339 /* IP15_29_27 [3] */
6340 FN_HTX0, FN_SCIFB0_TXD, 0, FN_GLO_SCLK_C,
6341 FN_CAN0_TX_B, FN_VI1_DATA5_C,
6342 0, 0,
6343 /* IP15_26_24 [3] */
6344 FN_HRX0, FN_SCIFB0_RXD, 0, FN_GLO_Q1_C,
6345 FN_CAN0_RX_B, FN_VI1_DATA4_C,
6346 0, 0,
6347 /* IP15_23_21 [3] */
6348 FN_HSCK0, FN_SCIFB0_SCK, 0, FN_GLO_Q0_C, FN_CAN_CLK,
6349 FN_TCLK2, FN_VI1_DATA3_C, 0,
6350 /* IP15_20_18 [3] */
6351 FN_HRTS0_N, FN_SCIFB0_RTS_N, 0, FN_GLO_I1_C, FN_VI1_DATA2_C,
6352 0, 0, 0,
6353 /* IP15_17_15 [3] */
6354 FN_HCTS0_N, FN_SCIFB0_CTS_N, 0, FN_GLO_I0_C,
6355 FN_TCLK1, FN_VI1_DATA1_C,
6356 0, 0,
6357 /* IP15_14_12 [3] */
6358 FN_GPS_MAG, FN_RX4_C, FN_SCIFA4_RXD_C, FN_PWM6,
6359 FN_VI1_G7_B, FN_SCIFA3_SCK_C,
6360 0, 0,
6361 /* IP15_11_9 [3] */
6362 FN_GPS_SIGN, FN_TX4_C, FN_SCIFA4_TXD_C, FN_PWM5,
6363 FN_VI1_G6_B, FN_SCIFA3_RXD_C,
6364 0, 0,
6365 /* IP15_8_6 [3] */
6366 FN_GPS_CLK, FN_DU1_DOTCLKIN_C, FN_AUDIO_CLKB_B,
6367 FN_PWM5_B, FN_SCIFA3_TXD_C,
6368 0, 0, 0,
6369 /* IP15_5_4 [2] */
6370 FN_SIM0_D, FN_IERX, FN_CAN1_RX_D, 0,
6371 /* IP15_3_2 [2] */
6372 FN_SIM0_CLK, FN_IECLK, FN_CAN_CLK_C, 0,
6373 /* IP15_1_0 [2] */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006374 FN_SIM0_RST, FN_IETX, FN_CAN1_TX_D, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006375 },
6376 { PINMUX_CFG_REG_VAR("IPSR16", 0xE6060160, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006377 GROUP(-20, 2, 2, 2, 3, 3),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006378 GROUP(
Marek Vasut0b9053d2023-01-26 21:01:37 +01006379 /* RESERVED [20] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006380 /* IP16_11_10 [2] */
6381 FN_HRTS1_N, FN_SCIFB1_RTS_N, FN_MLB_DAT, FN_CAN1_RX_B,
6382 /* IP16_9_8 [2] */
6383 FN_HCTS1_N, FN_SCIFB1_CTS_N, FN_MLB_SIG, FN_CAN1_TX_B,
6384 /* IP16_7_6 [2] */
6385 FN_HSCK1, FN_SCIFB1_SCK, FN_MLB_CLK, FN_GLO_RFON_C,
6386 /* IP16_5_3 [3] */
6387 FN_HTX1, FN_SCIFB1_TXD, FN_VI1_R1_B,
6388 FN_GLO_SS_C, FN_VI1_DATA7_C,
6389 0, 0, 0,
6390 /* IP16_2_0 [3] */
6391 FN_HRX1, FN_SCIFB1_RXD, FN_VI1_R0_B,
6392 FN_GLO_SDATA_C, FN_VI1_DATA6_C,
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006393 0, 0, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006394 },
6395 { PINMUX_CFG_REG_VAR("MOD_SEL", 0xE6060090, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006396 GROUP(-1, 2, 2, 2, 3, 2, 1, 1, 1, 1, 3, -2,
6397 2, -2, 1, 2, 2, 2),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006398 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006399 /* RESERVED [1] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006400 /* SEL_SCIF1 [2] */
6401 FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3,
6402 /* SEL_SCIFB [2] */
6403 FN_SEL_SCIFB_0, FN_SEL_SCIFB_1, FN_SEL_SCIFB_2, FN_SEL_SCIFB_3,
6404 /* SEL_SCIFB2 [2] */
6405 FN_SEL_SCIFB2_0, FN_SEL_SCIFB2_1,
6406 FN_SEL_SCIFB2_2, FN_SEL_SCIFB2_3,
6407 /* SEL_SCIFB1 [3] */
6408 FN_SEL_SCIFB1_0, FN_SEL_SCIFB1_1,
6409 FN_SEL_SCIFB1_2, FN_SEL_SCIFB1_3,
6410 0, 0, 0, 0,
6411 /* SEL_SCIFA1 [2] */
6412 FN_SEL_SCIFA1_0, FN_SEL_SCIFA1_1, FN_SEL_SCIFA1_2, 0,
6413 /* SEL_SSI9 [1] */
6414 FN_SEL_SSI9_0, FN_SEL_SSI9_1,
6415 /* SEL_SCFA [1] */
6416 FN_SEL_SCFA_0, FN_SEL_SCFA_1,
6417 /* SEL_QSP [1] */
6418 FN_SEL_QSP_0, FN_SEL_QSP_1,
6419 /* SEL_SSI7 [1] */
6420 FN_SEL_SSI7_0, FN_SEL_SSI7_1,
6421 /* SEL_HSCIF1 [3] */
6422 FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1, FN_SEL_HSCIF1_2,
6423 FN_SEL_HSCIF1_3, FN_SEL_HSCIF1_4,
6424 0, 0, 0,
6425 /* RESERVED [2] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006426 /* SEL_VI1 [2] */
6427 FN_SEL_VI1_0, FN_SEL_VI1_1, FN_SEL_VI1_2, 0,
6428 /* RESERVED [2] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006429 /* SEL_TMU [1] */
6430 FN_SEL_TMU1_0, FN_SEL_TMU1_1,
6431 /* SEL_LBS [2] */
6432 FN_SEL_LBS_0, FN_SEL_LBS_1, FN_SEL_LBS_2, FN_SEL_LBS_3,
6433 /* SEL_TSIF0 [2] */
6434 FN_SEL_TSIF0_0, FN_SEL_TSIF0_1, FN_SEL_TSIF0_2, FN_SEL_TSIF0_3,
6435 /* SEL_SOF0 [2] */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006436 FN_SEL_SOF0_0, FN_SEL_SOF0_1, FN_SEL_SOF0_2, 0, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006437 },
6438 { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xE6060094, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006439 GROUP(3, -1, 1, 3, 2, -1, 1, 2, -2, 1, 3, 2,
6440 -1, 2, 2, 2, 1, -1, 1),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006441 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006442 /* SEL_SCIF0 [3] */
6443 FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2,
6444 FN_SEL_SCIF0_3, FN_SEL_SCIF0_4,
6445 0, 0, 0,
6446 /* RESERVED [1] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006447 /* SEL_SCIF [1] */
6448 FN_SEL_SCIF_0, FN_SEL_SCIF_1,
6449 /* SEL_CAN0 [3] */
6450 FN_SEL_CAN0_0, FN_SEL_CAN0_1, FN_SEL_CAN0_2, FN_SEL_CAN0_3,
6451 FN_SEL_CAN0_4, FN_SEL_CAN0_5,
6452 0, 0,
6453 /* SEL_CAN1 [2] */
6454 FN_SEL_CAN1_0, FN_SEL_CAN1_1, FN_SEL_CAN1_2, FN_SEL_CAN1_3,
6455 /* RESERVED [1] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006456 /* SEL_SCIFA2 [1] */
6457 FN_SEL_SCIFA2_0, FN_SEL_SCIFA2_1,
6458 /* SEL_SCIF4 [2] */
6459 FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, 0,
6460 /* RESERVED [2] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006461 /* SEL_ADG [1] */
6462 FN_SEL_ADG_0, FN_SEL_ADG_1,
6463 /* SEL_FM [3] */
6464 FN_SEL_FM_0, FN_SEL_FM_1, FN_SEL_FM_2,
6465 FN_SEL_FM_3, FN_SEL_FM_4,
6466 0, 0, 0,
6467 /* SEL_SCIFA5 [2] */
6468 FN_SEL_SCIFA5_0, FN_SEL_SCIFA5_1, FN_SEL_SCIFA5_2, 0,
6469 /* RESERVED [1] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006470 /* SEL_GPS [2] */
6471 FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
6472 /* SEL_SCIFA4 [2] */
6473 FN_SEL_SCIFA4_0, FN_SEL_SCIFA4_1, FN_SEL_SCIFA4_2, 0,
6474 /* SEL_SCIFA3 [2] */
6475 FN_SEL_SCIFA3_0, FN_SEL_SCIFA3_1, FN_SEL_SCIFA3_2, 0,
6476 /* SEL_SIM [1] */
6477 FN_SEL_SIM_0, FN_SEL_SIM_1,
6478 /* RESERVED [1] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006479 /* SEL_SSI8 [1] */
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006480 FN_SEL_SSI8_0, FN_SEL_SSI8_1, ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006481 },
6482 { PINMUX_CFG_REG_VAR("MOD_SEL3", 0xE6060098, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006483 GROUP(2, 2, 2, 2, 2, 2, 2, 2, 1, 1, -2, 2,
6484 3, 2, -5),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006485 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006486 /* SEL_HSCIF2 [2] */
6487 FN_SEL_HSCIF2_0, FN_SEL_HSCIF2_1,
6488 FN_SEL_HSCIF2_2, FN_SEL_HSCIF2_3,
6489 /* SEL_CANCLK [2] */
6490 FN_SEL_CANCLK_0, FN_SEL_CANCLK_1,
6491 FN_SEL_CANCLK_2, FN_SEL_CANCLK_3,
6492 /* SEL_IIC1 [2] */
6493 FN_SEL_IIC1_0, FN_SEL_IIC1_1, FN_SEL_IIC1_2, 0,
6494 /* SEL_IIC0 [2] */
6495 FN_SEL_IIC0_0, FN_SEL_IIC0_1, FN_SEL_IIC0_2, 0,
6496 /* SEL_I2C4 [2] */
6497 FN_SEL_I2C4_0, FN_SEL_I2C4_1, FN_SEL_I2C4_2, 0,
6498 /* SEL_I2C3 [2] */
6499 FN_SEL_I2C3_0, FN_SEL_I2C3_1, FN_SEL_I2C3_2, FN_SEL_I2C3_3,
6500 /* SEL_SCIF3 [2] */
6501 FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3,
6502 /* SEL_IEB [2] */
6503 FN_SEL_IEB_0, FN_SEL_IEB_1, FN_SEL_IEB_2, 0,
6504 /* SEL_MMC [1] */
6505 FN_SEL_MMC_0, FN_SEL_MMC_1,
6506 /* SEL_SCIF5 [1] */
6507 FN_SEL_SCIF5_0, FN_SEL_SCIF5_1,
6508 /* RESERVED [2] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006509 /* SEL_I2C2 [2] */
6510 FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
6511 /* SEL_I2C1 [3] */
6512 FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3,
6513 FN_SEL_I2C1_4,
6514 0, 0, 0,
6515 /* SEL_I2C0 [2] */
6516 FN_SEL_I2C0_0, FN_SEL_I2C0_1, FN_SEL_I2C0_2, 0,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006517 /* RESERVED [5] */ ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006518 },
6519 { PINMUX_CFG_REG_VAR("MOD_SEL4", 0xE606009C, 32,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006520 GROUP(3, 2, 2, -1, 1, 1, 1, 3, -4, 3, -1,
6521 1, 1, 2, -6),
Eugeniu Roscaf0066b02019-07-09 18:27:11 +02006522 GROUP(
Marek Vasut06ef9e82018-01-17 17:14:45 +01006523 /* SEL_SOF1 [3] */
6524 FN_SEL_SOF1_0, FN_SEL_SOF1_1, FN_SEL_SOF1_2, FN_SEL_SOF1_3,
6525 FN_SEL_SOF1_4,
6526 0, 0, 0,
6527 /* SEL_HSCIF0 [2] */
6528 FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1, FN_SEL_HSCIF0_2, 0,
6529 /* SEL_DIS [2] */
6530 FN_SEL_DIS_0, FN_SEL_DIS_1, FN_SEL_DIS_2, 0,
6531 /* RESERVED [1] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006532 /* SEL_RAD [1] */
6533 FN_SEL_RAD_0, FN_SEL_RAD_1,
6534 /* SEL_RCN [1] */
6535 FN_SEL_RCN_0, FN_SEL_RCN_1,
6536 /* SEL_RSP [1] */
6537 FN_SEL_RSP_0, FN_SEL_RSP_1,
6538 /* SEL_SCIF2 [3] */
6539 FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2,
6540 FN_SEL_SCIF2_3, FN_SEL_SCIF2_4,
6541 0, 0, 0,
6542 /* RESERVED [2] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006543 /* RESERVED [2] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006544 /* SEL_SOF2 [3] */
6545 FN_SEL_SOF2_0, FN_SEL_SOF2_1, FN_SEL_SOF2_2,
6546 FN_SEL_SOF2_3, FN_SEL_SOF2_4,
6547 0, 0, 0,
6548 /* RESERVED [1] */
Marek Vasut06ef9e82018-01-17 17:14:45 +01006549 /* SEL_SSI1 [1] */
6550 FN_SEL_SSI1_0, FN_SEL_SSI1_1,
6551 /* SEL_SSI0 [1] */
6552 FN_SEL_SSI0_0, FN_SEL_SSI0_1,
6553 /* SEL_SSP [2] */
6554 FN_SEL_SSP_0, FN_SEL_SSP_1, FN_SEL_SSP_2, 0,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006555 /* RESERVED [6] */ ))
Marek Vasut06ef9e82018-01-17 17:14:45 +01006556 },
Marek Vasut3ccfcea2023-09-17 16:08:37 +02006557 { /* sentinel */ }
Marek Vasut06ef9e82018-01-17 17:14:45 +01006558};
6559
Marek Vasut0b9053d2023-01-26 21:01:37 +01006560static int r8a7791_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
Marek Vasut06ef9e82018-01-17 17:14:45 +01006561{
6562 if (pin < RCAR_GP_PIN(6, 0) || pin > RCAR_GP_PIN(6, 23))
6563 return -EINVAL;
6564
6565 *pocctrl = 0xe606008c;
6566
6567 return 31 - (pin & 0x1f);
6568}
6569
Marek Vasut0b9053d2023-01-26 21:01:37 +01006570static const struct pinmux_bias_reg pinmux_bias_regs[] = {
6571 { PINMUX_BIAS_REG("PUPR0", 0xe6060100, "N/A", 0) {
6572 [ 0] = RCAR_GP_PIN(1, 4), /* A20 */
6573 [ 1] = RCAR_GP_PIN(1, 5), /* A21 */
6574 [ 2] = RCAR_GP_PIN(1, 6), /* A22 */
6575 [ 3] = RCAR_GP_PIN(1, 7), /* A23 */
6576 [ 4] = RCAR_GP_PIN(1, 8), /* A24 */
6577 [ 5] = RCAR_GP_PIN(6, 31), /* DU0_DOTCLKIN */
6578 [ 6] = RCAR_GP_PIN(0, 0), /* D0 */
6579 [ 7] = RCAR_GP_PIN(0, 1), /* D1 */
6580 [ 8] = RCAR_GP_PIN(0, 2), /* D2 */
6581 [ 9] = RCAR_GP_PIN(0, 3), /* D3 */
6582 [10] = RCAR_GP_PIN(0, 4), /* D4 */
6583 [11] = RCAR_GP_PIN(0, 5), /* D5 */
6584 [12] = RCAR_GP_PIN(0, 6), /* D6 */
6585 [13] = RCAR_GP_PIN(0, 7), /* D7 */
6586 [14] = RCAR_GP_PIN(0, 8), /* D8 */
6587 [15] = RCAR_GP_PIN(0, 9), /* D9 */
6588 [16] = RCAR_GP_PIN(0, 10), /* D10 */
6589 [17] = RCAR_GP_PIN(0, 11), /* D11 */
6590 [18] = RCAR_GP_PIN(0, 12), /* D12 */
6591 [19] = RCAR_GP_PIN(0, 13), /* D13 */
6592 [20] = RCAR_GP_PIN(0, 14), /* D14 */
6593 [21] = RCAR_GP_PIN(0, 15), /* D15 */
6594 [22] = RCAR_GP_PIN(0, 16), /* A0 */
6595 [23] = RCAR_GP_PIN(0, 17), /* A1 */
6596 [24] = RCAR_GP_PIN(0, 18), /* A2 */
6597 [25] = RCAR_GP_PIN(0, 19), /* A3 */
6598 [26] = RCAR_GP_PIN(0, 20), /* A4 */
6599 [27] = RCAR_GP_PIN(0, 21), /* A5 */
6600 [28] = RCAR_GP_PIN(0, 22), /* A6 */
6601 [29] = RCAR_GP_PIN(0, 23), /* A7 */
6602 [30] = RCAR_GP_PIN(0, 24), /* A8 */
6603 [31] = RCAR_GP_PIN(0, 25), /* A9 */
6604 } },
6605 { PINMUX_BIAS_REG("PUPR1", 0xe6060104, "N/A", 0) {
6606 [ 0] = RCAR_GP_PIN(0, 26), /* A10 */
6607 [ 1] = RCAR_GP_PIN(0, 27), /* A11 */
6608 [ 2] = RCAR_GP_PIN(0, 28), /* A12 */
6609 [ 3] = RCAR_GP_PIN(0, 29), /* A13 */
6610 [ 4] = RCAR_GP_PIN(0, 30), /* A14 */
6611 [ 5] = RCAR_GP_PIN(0, 31), /* A15 */
6612 [ 6] = RCAR_GP_PIN(1, 0), /* A16 */
6613 [ 7] = RCAR_GP_PIN(1, 1), /* A17 */
6614 [ 8] = RCAR_GP_PIN(1, 2), /* A18 */
6615 [ 9] = RCAR_GP_PIN(1, 3), /* A19 */
6616 [10] = PIN_TRST_N, /* TRST# */
6617 [11] = PIN_TCK, /* TCK */
6618 [12] = PIN_TMS, /* TMS */
6619 [13] = PIN_TDI, /* TDI */
6620 [14] = RCAR_GP_PIN(1, 11), /* CS1#/A26 */
6621 [15] = RCAR_GP_PIN(1, 12), /* EX_CS0# */
6622 [16] = RCAR_GP_PIN(1, 13), /* EX_CS1# */
6623 [17] = RCAR_GP_PIN(1, 14), /* EX_CS2# */
6624 [18] = RCAR_GP_PIN(1, 15), /* EX_CS3# */
6625 [19] = RCAR_GP_PIN(1, 16), /* EX_CS4# */
6626 [20] = RCAR_GP_PIN(1, 17), /* EX_CS5# */
6627 [21] = RCAR_GP_PIN(1, 18), /* BS# */
6628 [22] = RCAR_GP_PIN(1, 19), /* RD# */
6629 [23] = RCAR_GP_PIN(1, 20), /* RD/WR# */
6630 [24] = RCAR_GP_PIN(1, 21), /* WE0# */
6631 [25] = RCAR_GP_PIN(1, 22), /* WE1# */
6632 [26] = RCAR_GP_PIN(1, 23), /* EX_WAIT0 */
6633 [27] = RCAR_GP_PIN(1, 24), /* DREQ0 */
6634 [28] = RCAR_GP_PIN(1, 25), /* DACK0 */
6635 [29] = RCAR_GP_PIN(5, 31), /* SPEEDIN */
6636 [30] = RCAR_GP_PIN(2, 0), /* SSI_SCK0129 */
6637 [31] = RCAR_GP_PIN(2, 1), /* SSI_WS0129 */
6638 } },
6639 { PINMUX_BIAS_REG("PUPR2", 0xe6060108, "N/A", 0) {
6640 [ 0] = RCAR_GP_PIN(2, 2), /* SSI_SDATA0 */
6641 [ 1] = RCAR_GP_PIN(2, 3), /* SSI_SCK1 */
6642 [ 2] = RCAR_GP_PIN(2, 4), /* SSI_WS1 */
6643 [ 3] = RCAR_GP_PIN(2, 5), /* SSI_SDATA1 */
6644 [ 4] = RCAR_GP_PIN(2, 6), /* SSI_SCK2 */
6645 [ 5] = RCAR_GP_PIN(2, 7), /* SSI_WS2 */
6646 [ 6] = RCAR_GP_PIN(2, 8), /* SSI_SDATA2 */
6647 [ 7] = RCAR_GP_PIN(2, 9), /* SSI_SCK34 */
6648 [ 8] = RCAR_GP_PIN(2, 10), /* SSI_WS34 */
6649 [ 9] = RCAR_GP_PIN(2, 11), /* SSI_SDATA3 */
6650 [10] = RCAR_GP_PIN(2, 12), /* SSI_SCK4 */
6651 [11] = RCAR_GP_PIN(2, 13), /* SSI_WS4 */
6652 [12] = RCAR_GP_PIN(2, 14), /* SSI_SDATA4 */
6653 [13] = RCAR_GP_PIN(2, 15), /* SSI_SCK5 */
6654 [14] = RCAR_GP_PIN(2, 16), /* SSI_WS5 */
6655 [15] = RCAR_GP_PIN(2, 17), /* SSI_SDATA5 */
6656 [16] = RCAR_GP_PIN(2, 18), /* SSI_SCK6 */
6657 [17] = RCAR_GP_PIN(2, 19), /* SSI_WS6 */
6658 [18] = RCAR_GP_PIN(2, 20), /* SSI_SDATA6 */
6659 [19] = RCAR_GP_PIN(2, 21), /* SSI_SCK78 */
6660 [20] = RCAR_GP_PIN(2, 22), /* SSI_WS78 */
6661 [21] = RCAR_GP_PIN(2, 23), /* SSI_SDATA7 */
6662 [22] = RCAR_GP_PIN(2, 24), /* SSI_SDATA8 */
6663 [23] = RCAR_GP_PIN(2, 25), /* SSI_SCK9 */
6664 [24] = RCAR_GP_PIN(2, 26), /* SSI_WS9 */
6665 [25] = RCAR_GP_PIN(2, 27), /* SSI_SDATA9 */
6666 [26] = RCAR_GP_PIN(2, 28), /* AUDIO_CLKA */
6667 [27] = RCAR_GP_PIN(2, 29), /* AUDIO_CLKB */
6668 [28] = RCAR_GP_PIN(2, 30), /* AUDIO_CLKC */
6669 [29] = RCAR_GP_PIN(2, 31), /* AUDIO_CLKOUT */
6670 [30] = RCAR_GP_PIN(7, 10), /* IRQ0 */
6671 [31] = RCAR_GP_PIN(7, 11), /* IRQ1 */
6672 } },
6673 { PINMUX_BIAS_REG("PUPR3", 0xe606010c, "N/A", 0) {
6674 [ 0] = RCAR_GP_PIN(7, 12), /* IRQ2 */
6675 [ 1] = RCAR_GP_PIN(7, 13), /* IRQ3 */
6676 [ 2] = RCAR_GP_PIN(7, 14), /* IRQ4 */
6677 [ 3] = RCAR_GP_PIN(7, 15), /* IRQ5 */
6678 [ 4] = RCAR_GP_PIN(7, 16), /* IRQ6 */
6679 [ 5] = RCAR_GP_PIN(7, 17), /* IRQ7 */
6680 [ 6] = RCAR_GP_PIN(7, 18), /* IRQ8 */
6681 [ 7] = RCAR_GP_PIN(7, 19), /* IRQ9 */
6682 [ 8] = RCAR_GP_PIN(3, 0), /* DU1_DR0 */
6683 [ 9] = RCAR_GP_PIN(3, 1), /* DU1_DR1 */
6684 [10] = RCAR_GP_PIN(3, 2), /* DU1_DR2 */
6685 [11] = RCAR_GP_PIN(3, 3), /* DU1_DR3 */
6686 [12] = RCAR_GP_PIN(3, 4), /* DU1_DR4 */
6687 [13] = RCAR_GP_PIN(3, 5), /* DU1_DR5 */
6688 [14] = RCAR_GP_PIN(3, 6), /* DU1_DR6 */
6689 [15] = RCAR_GP_PIN(3, 7), /* DU1_DR7 */
6690 [16] = RCAR_GP_PIN(3, 8), /* DU1_DG0 */
6691 [17] = RCAR_GP_PIN(3, 9), /* DU1_DG1 */
6692 [18] = RCAR_GP_PIN(3, 10), /* DU1_DG2 */
6693 [19] = RCAR_GP_PIN(3, 11), /* DU1_DG3 */
6694 [20] = RCAR_GP_PIN(3, 12), /* DU1_DG4 */
6695 [21] = RCAR_GP_PIN(3, 13), /* DU1_DG5 */
6696 [22] = RCAR_GP_PIN(3, 14), /* DU1_DG6 */
6697 [23] = RCAR_GP_PIN(3, 15), /* DU1_DG7 */
6698 [24] = RCAR_GP_PIN(3, 16), /* DU1_DB0 */
6699 [25] = RCAR_GP_PIN(3, 17), /* DU1_DB1 */
6700 [26] = RCAR_GP_PIN(3, 18), /* DU1_DB2 */
6701 [27] = RCAR_GP_PIN(3, 19), /* DU1_DB3 */
6702 [28] = RCAR_GP_PIN(3, 20), /* DU1_DB4 */
6703 [29] = RCAR_GP_PIN(3, 21), /* DU1_DB5 */
6704 [30] = RCAR_GP_PIN(3, 22), /* DU1_DB6 */
6705 [31] = RCAR_GP_PIN(3, 23), /* DU1_DB7 */
6706 } },
6707 { PINMUX_BIAS_REG("PUPR4", 0xe6060110, "N/A", 0) {
6708 [ 0] = RCAR_GP_PIN(3, 24), /* DU1_DOTCLKIN */
6709 [ 1] = RCAR_GP_PIN(3, 25), /* DU1_DOTCLKOUT0 */
6710 [ 2] = RCAR_GP_PIN(3, 26), /* DU1_DOTCLKOUT1 */
6711 [ 3] = RCAR_GP_PIN(3, 27), /* DU1_EXHSYNC_DU1_HSYNC */
6712 [ 4] = RCAR_GP_PIN(3, 28), /* DU1_EXVSYNC_DU1_VSYNC */
6713 [ 5] = RCAR_GP_PIN(3, 29), /* DU1_EXODDF_DU1_ODDF_DISP_CDE */
6714 [ 6] = RCAR_GP_PIN(3, 30), /* DU1_DISP */
6715 [ 7] = RCAR_GP_PIN(3, 31), /* DU1_CDE */
6716 [ 8] = RCAR_GP_PIN(4, 0), /* VI0_CLK */
6717 [ 9] = RCAR_GP_PIN(4, 1), /* VI0_CLKENB */
6718 [10] = RCAR_GP_PIN(4, 2), /* VI0_FIELD */
6719 [11] = RCAR_GP_PIN(4, 3), /* VI0_HSYNC# */
6720 [12] = RCAR_GP_PIN(4, 4), /* VI0_VSYNC# */
6721 [13] = RCAR_GP_PIN(4, 5), /* VI0_DATA0_VI0_B0 */
6722 [14] = RCAR_GP_PIN(4, 6), /* VI0_DATA1_VI0_B1 */
6723 [15] = RCAR_GP_PIN(4, 7), /* VI0_DATA2_VI0_B2 */
6724 [16] = RCAR_GP_PIN(4, 8), /* VI0_DATA3_VI0_B3 */
6725 [17] = RCAR_GP_PIN(4, 9), /* VI0_DATA4_VI0_B4 */
6726 [18] = RCAR_GP_PIN(4, 10), /* VI0_DATA5_VI0_B5 */
6727 [19] = RCAR_GP_PIN(4, 11), /* VI0_DATA6_VI0_B6 */
6728 [20] = RCAR_GP_PIN(4, 12), /* VI0_DATA7_VI0_B7 */
6729 [21] = RCAR_GP_PIN(4, 13), /* VI0_G0 */
6730 [22] = RCAR_GP_PIN(4, 14), /* VI0_G1 */
6731 [23] = RCAR_GP_PIN(4, 15), /* VI0_G2 */
6732 [24] = RCAR_GP_PIN(4, 16), /* VI0_G3 */
6733 [25] = RCAR_GP_PIN(4, 17), /* VI0_G4 */
6734 [26] = RCAR_GP_PIN(4, 18), /* VI0_G5 */
6735 [27] = RCAR_GP_PIN(4, 19), /* VI0_G6 */
6736 [28] = RCAR_GP_PIN(4, 20), /* VI0_G7 */
6737 [29] = RCAR_GP_PIN(4, 21), /* VI0_R0 */
6738 [30] = RCAR_GP_PIN(4, 22), /* VI0_R1 */
6739 [31] = RCAR_GP_PIN(4, 23), /* VI0_R2 */
6740 } },
6741 { PINMUX_BIAS_REG("PUPR5", 0xe6060114, "N/A", 0) {
6742 [ 0] = RCAR_GP_PIN(4, 24), /* VI0_R3 */
6743 [ 1] = RCAR_GP_PIN(4, 25), /* VI0_R4 */
6744 [ 2] = RCAR_GP_PIN(4, 26), /* VI0_R5 */
6745 [ 3] = RCAR_GP_PIN(4, 27), /* VI0_R6 */
6746 [ 4] = RCAR_GP_PIN(4, 28), /* VI0_R7 */
6747 [ 5] = RCAR_GP_PIN(5, 0), /* VI1_HSYNC# */
6748 [ 6] = RCAR_GP_PIN(5, 1), /* VI1_VSYNC# */
6749 [ 7] = RCAR_GP_PIN(5, 2), /* VI1_CLKENB */
6750 [ 8] = RCAR_GP_PIN(5, 3), /* VI1_FIELD */
6751 [ 9] = RCAR_GP_PIN(5, 4), /* VI1_CLK */
6752 [10] = RCAR_GP_PIN(5, 5), /* VI1_DATA0 */
6753 [11] = RCAR_GP_PIN(5, 6), /* VI1_DATA1 */
6754 [12] = RCAR_GP_PIN(5, 7), /* VI1_DATA2 */
6755 [13] = RCAR_GP_PIN(5, 8), /* VI1_DATA3 */
6756 [14] = RCAR_GP_PIN(5, 9), /* VI1_DATA4 */
6757 [15] = RCAR_GP_PIN(5, 10), /* VI1_DATA5 */
6758 [16] = RCAR_GP_PIN(5, 11), /* VI1_DATA6 */
6759 [17] = RCAR_GP_PIN(5, 12), /* VI1_DATA7 */
6760 [18] = RCAR_GP_PIN(5, 13), /* ETH_MDIO */
6761 [19] = RCAR_GP_PIN(5, 14), /* ETH_CRS_DV */
6762 [20] = RCAR_GP_PIN(5, 15), /* ETH_RX_ER */
6763 [21] = RCAR_GP_PIN(5, 16), /* ETH_RXD0 */
6764 [22] = RCAR_GP_PIN(5, 17), /* ETH_RXD1 */
6765 [23] = RCAR_GP_PIN(5, 18), /* ETH_LINK */
6766 [24] = RCAR_GP_PIN(5, 19), /* ETH_REFCLK */
6767 [25] = RCAR_GP_PIN(5, 20), /* ETH_TXD1 */
6768 [26] = RCAR_GP_PIN(5, 21), /* ETH_TX_EN */
6769 [27] = RCAR_GP_PIN(5, 22), /* ETH_MAGIC */
6770 [28] = RCAR_GP_PIN(5, 23), /* ETH_TXD0 */
6771 [29] = RCAR_GP_PIN(5, 24), /* ETH_MDC */
6772 [30] = RCAR_GP_PIN(5, 25), /* STP_IVCXO27_0 */
6773 [31] = RCAR_GP_PIN(5, 26), /* STP_ISCLK_0 */
6774 } },
6775 { PINMUX_BIAS_REG("PUPR6", 0xe6060118, "N/A", 0) {
6776 [ 0] = RCAR_GP_PIN(5, 27), /* STP_ISD_0 */
6777 [ 1] = RCAR_GP_PIN(5, 28), /* STP_ISEN_0 */
6778 [ 2] = RCAR_GP_PIN(5, 29), /* STP_ISSYNC_0 */
6779 [ 3] = RCAR_GP_PIN(5, 30), /* STP_OPWM_0 */
6780 [ 4] = RCAR_GP_PIN(6, 0), /* SD0_CLK */
6781 [ 5] = RCAR_GP_PIN(6, 1), /* SD0_CMD */
6782 [ 6] = RCAR_GP_PIN(6, 2), /* SD0_DATA0 */
6783 [ 7] = RCAR_GP_PIN(6, 3), /* SD0_DATA1 */
6784 [ 8] = RCAR_GP_PIN(6, 4), /* SD0_DATA2 */
6785 [ 9] = RCAR_GP_PIN(6, 5), /* SD0_DATA3 */
6786 [10] = RCAR_GP_PIN(6, 6), /* SD0_CD */
6787 [11] = RCAR_GP_PIN(6, 7), /* SD0_WP */
6788 [12] = RCAR_GP_PIN(6, 8), /* SD2_CLK */
6789 [13] = RCAR_GP_PIN(6, 9), /* SD2_CMD */
6790 [14] = RCAR_GP_PIN(6, 10), /* SD2_DATA0 */
6791 [15] = RCAR_GP_PIN(6, 11), /* SD2_DATA1 */
6792 [16] = RCAR_GP_PIN(6, 12), /* SD2_DATA2 */
6793 [17] = RCAR_GP_PIN(6, 13), /* SD2_DATA3 */
6794 [18] = RCAR_GP_PIN(6, 14), /* SD2_CD */
6795 [19] = RCAR_GP_PIN(6, 15), /* SD2_WP */
6796 [20] = RCAR_GP_PIN(6, 16), /* SD3_CLK */
6797 [21] = RCAR_GP_PIN(6, 17), /* SD3_CMD */
6798 [22] = RCAR_GP_PIN(6, 18), /* SD3_DATA0 */
6799 [23] = RCAR_GP_PIN(6, 19), /* SD3_DATA1 */
6800 [24] = RCAR_GP_PIN(6, 20), /* SD3_DATA2 */
6801 [25] = RCAR_GP_PIN(6, 21), /* SD3_DATA3 */
6802 [26] = RCAR_GP_PIN(6, 22), /* SD3_CD */
6803 [27] = RCAR_GP_PIN(6, 23), /* SD3_WP */
6804 [28] = RCAR_GP_PIN(6, 24), /* MSIOF0_SCK */
6805 [29] = RCAR_GP_PIN(6, 25), /* MSIOF0_SYNC */
6806 [30] = RCAR_GP_PIN(6, 26), /* MSIOF0_TXD */
6807 [31] = RCAR_GP_PIN(6, 27), /* MSIOF0_RXD */
6808 } },
6809 { PINMUX_BIAS_REG("PUPR7", 0xe606011c, "N/A", 0) {
6810 /* PUPR7 pull-up pins */
6811 [ 0] = RCAR_GP_PIN(6, 28), /* MSIOF0_SS1 */
6812 [ 1] = RCAR_GP_PIN(6, 29), /* MSIOF0_SS2 */
6813 [ 2] = RCAR_GP_PIN(4, 29), /* SIM0_RST */
6814 [ 3] = RCAR_GP_PIN(4, 30), /* SIM0_CLK */
6815 [ 4] = RCAR_GP_PIN(4, 31), /* SIM0_D */
6816 [ 5] = RCAR_GP_PIN(7, 20), /* GPS_CLK */
6817 [ 6] = RCAR_GP_PIN(7, 21), /* GPS_SIGN */
6818 [ 7] = RCAR_GP_PIN(7, 22), /* GPS_MAG */
6819 [ 8] = RCAR_GP_PIN(7, 0), /* HCTS0# */
6820 [ 9] = RCAR_GP_PIN(7, 1), /* HRTS0# */
6821 [10] = RCAR_GP_PIN(7, 2), /* HSCK0 */
6822 [11] = RCAR_GP_PIN(7, 3), /* HRX0 */
6823 [12] = RCAR_GP_PIN(7, 4), /* HTX0 */
6824 [13] = RCAR_GP_PIN(7, 5), /* HRX1 */
6825 [14] = RCAR_GP_PIN(7, 6), /* HTX1 */
6826 [15] = SH_PFC_PIN_NONE,
6827 [16] = SH_PFC_PIN_NONE,
6828 [17] = SH_PFC_PIN_NONE,
6829 [18] = RCAR_GP_PIN(1, 9), /* A25 */
6830 [19] = SH_PFC_PIN_NONE,
6831 [20] = RCAR_GP_PIN(1, 10), /* CS0# */
6832 [21] = RCAR_GP_PIN(7, 23), /* USB0_PWEN */
6833 [22] = RCAR_GP_PIN(7, 24), /* USB0_OVC */
6834 [23] = RCAR_GP_PIN(7, 25), /* USB1_PWEN */
6835 [24] = RCAR_GP_PIN(6, 30), /* USB1_OVC */
6836 [25] = PIN_AVS1, /* AVS1 */
6837 [26] = PIN_AVS2, /* AVS2 */
6838 [27] = SH_PFC_PIN_NONE,
6839 [28] = SH_PFC_PIN_NONE,
6840 [29] = SH_PFC_PIN_NONE,
6841 [30] = SH_PFC_PIN_NONE,
6842 [31] = SH_PFC_PIN_NONE,
6843 } },
6844 { PINMUX_BIAS_REG("N/A", 0, "PUPR7", 0xe606011c) {
6845 /* PUPR7 pull-down pins */
6846 [ 0] = SH_PFC_PIN_NONE,
6847 [ 1] = SH_PFC_PIN_NONE,
6848 [ 2] = SH_PFC_PIN_NONE,
6849 [ 3] = SH_PFC_PIN_NONE,
6850 [ 4] = SH_PFC_PIN_NONE,
6851 [ 5] = SH_PFC_PIN_NONE,
6852 [ 6] = SH_PFC_PIN_NONE,
6853 [ 7] = SH_PFC_PIN_NONE,
6854 [ 8] = SH_PFC_PIN_NONE,
6855 [ 9] = SH_PFC_PIN_NONE,
6856 [10] = SH_PFC_PIN_NONE,
6857 [11] = SH_PFC_PIN_NONE,
6858 [12] = SH_PFC_PIN_NONE,
6859 [13] = SH_PFC_PIN_NONE,
6860 [14] = SH_PFC_PIN_NONE,
6861 [15] = SH_PFC_PIN_NONE,
6862 [16] = SH_PFC_PIN_NONE,
6863 [17] = SH_PFC_PIN_NONE,
6864 [18] = SH_PFC_PIN_NONE,
6865 [19] = PIN_ASEBRK_N_ACK, /* ASEBRK#/ACK */
6866 [20] = SH_PFC_PIN_NONE,
6867 [21] = SH_PFC_PIN_NONE,
6868 [22] = SH_PFC_PIN_NONE,
6869 [23] = SH_PFC_PIN_NONE,
6870 [24] = SH_PFC_PIN_NONE,
6871 [25] = SH_PFC_PIN_NONE,
6872 [26] = SH_PFC_PIN_NONE,
6873 [27] = SH_PFC_PIN_NONE,
6874 [28] = SH_PFC_PIN_NONE,
6875 [29] = SH_PFC_PIN_NONE,
6876 [30] = SH_PFC_PIN_NONE,
6877 [31] = SH_PFC_PIN_NONE,
6878 } },
Marek Vasut3ccfcea2023-09-17 16:08:37 +02006879 { /* sentinel */ }
Marek Vasut0b9053d2023-01-26 21:01:37 +01006880};
6881
6882static const struct sh_pfc_soc_operations r8a7791_pfc_ops = {
Marek Vasut06ef9e82018-01-17 17:14:45 +01006883 .pin_to_pocctrl = r8a7791_pin_to_pocctrl,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006884 .get_bias = rcar_pinmux_get_bias,
6885 .set_bias = rcar_pinmux_set_bias,
Marek Vasut06ef9e82018-01-17 17:14:45 +01006886};
Marek Vasuteb900d12018-06-10 16:05:18 +02006887
6888#ifdef CONFIG_PINCTRL_PFC_R8A7743
6889const struct sh_pfc_soc_info r8a7743_pinmux_info = {
6890 .name = "r8a77430_pfc",
Marek Vasut0b9053d2023-01-26 21:01:37 +01006891 .ops = &r8a7791_pfc_ops,
Marek Vasuteb900d12018-06-10 16:05:18 +02006892 .unlock_reg = 0xe6060000, /* PMMR */
6893
6894 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
6895
6896 .pins = pinmux_pins,
6897 .nr_pins = ARRAY_SIZE(pinmux_pins),
6898 .groups = pinmux_groups.common,
6899 .nr_groups = ARRAY_SIZE(pinmux_groups.common),
6900 .functions = pinmux_functions.common,
6901 .nr_functions = ARRAY_SIZE(pinmux_functions.common),
6902
6903 .cfg_regs = pinmux_config_regs,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006904 .bias_regs = pinmux_bias_regs,
Marek Vasuteb900d12018-06-10 16:05:18 +02006905
6906 .pinmux_data = pinmux_data,
6907 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
6908};
6909#endif
Marek Vasut06ef9e82018-01-17 17:14:45 +01006910
Marek Vasut0913c7a2019-03-04 22:26:28 +01006911#ifdef CONFIG_PINCTRL_PFC_R8A7744
6912const struct sh_pfc_soc_info r8a7744_pinmux_info = {
6913 .name = "r8a77440_pfc",
Marek Vasut0b9053d2023-01-26 21:01:37 +01006914 .ops = &r8a7791_pfc_ops,
Marek Vasut0913c7a2019-03-04 22:26:28 +01006915 .unlock_reg = 0xe6060000, /* PMMR */
6916
6917 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
6918
6919 .pins = pinmux_pins,
6920 .nr_pins = ARRAY_SIZE(pinmux_pins),
6921 .groups = pinmux_groups.common,
6922 .nr_groups = ARRAY_SIZE(pinmux_groups.common),
6923 .functions = pinmux_functions.common,
6924 .nr_functions = ARRAY_SIZE(pinmux_functions.common),
6925
6926 .cfg_regs = pinmux_config_regs,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006927 .bias_regs = pinmux_bias_regs,
Marek Vasut0913c7a2019-03-04 22:26:28 +01006928
6929 .pinmux_data = pinmux_data,
6930 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
6931};
6932#endif
6933
Marek Vasut06ef9e82018-01-17 17:14:45 +01006934#ifdef CONFIG_PINCTRL_PFC_R8A7791
6935const struct sh_pfc_soc_info r8a7791_pinmux_info = {
6936 .name = "r8a77910_pfc",
Marek Vasut0b9053d2023-01-26 21:01:37 +01006937 .ops = &r8a7791_pfc_ops,
Marek Vasut06ef9e82018-01-17 17:14:45 +01006938 .unlock_reg = 0xe6060000, /* PMMR */
6939
6940 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
6941
6942 .pins = pinmux_pins,
6943 .nr_pins = ARRAY_SIZE(pinmux_pins),
6944 .groups = pinmux_groups.common,
6945 .nr_groups = ARRAY_SIZE(pinmux_groups.common) +
Marek Vasut0913c7a2019-03-04 22:26:28 +01006946 ARRAY_SIZE(pinmux_groups.automotive),
Marek Vasut06ef9e82018-01-17 17:14:45 +01006947 .functions = pinmux_functions.common,
6948 .nr_functions = ARRAY_SIZE(pinmux_functions.common) +
Marek Vasut0913c7a2019-03-04 22:26:28 +01006949 ARRAY_SIZE(pinmux_functions.automotive),
Marek Vasut06ef9e82018-01-17 17:14:45 +01006950
6951 .cfg_regs = pinmux_config_regs,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006952 .bias_regs = pinmux_bias_regs,
Marek Vasut06ef9e82018-01-17 17:14:45 +01006953
6954 .pinmux_data = pinmux_data,
6955 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
6956};
6957#endif
6958
6959#ifdef CONFIG_PINCTRL_PFC_R8A7793
6960const struct sh_pfc_soc_info r8a7793_pinmux_info = {
6961 .name = "r8a77930_pfc",
Marek Vasut0b9053d2023-01-26 21:01:37 +01006962 .ops = &r8a7791_pfc_ops,
Marek Vasut06ef9e82018-01-17 17:14:45 +01006963 .unlock_reg = 0xe6060000, /* PMMR */
6964
6965 .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
6966
6967 .pins = pinmux_pins,
6968 .nr_pins = ARRAY_SIZE(pinmux_pins),
6969 .groups = pinmux_groups.common,
6970 .nr_groups = ARRAY_SIZE(pinmux_groups.common) +
Marek Vasut0913c7a2019-03-04 22:26:28 +01006971 ARRAY_SIZE(pinmux_groups.automotive),
Marek Vasut06ef9e82018-01-17 17:14:45 +01006972 .functions = pinmux_functions.common,
6973 .nr_functions = ARRAY_SIZE(pinmux_functions.common) +
Marek Vasut0913c7a2019-03-04 22:26:28 +01006974 ARRAY_SIZE(pinmux_functions.automotive),
Marek Vasut06ef9e82018-01-17 17:14:45 +01006975
6976 .cfg_regs = pinmux_config_regs,
Marek Vasut0b9053d2023-01-26 21:01:37 +01006977 .bias_regs = pinmux_bias_regs,
Marek Vasut06ef9e82018-01-17 17:14:45 +01006978
6979 .pinmux_data = pinmux_data,
6980 .pinmux_data_size = ARRAY_SIZE(pinmux_data),
6981};
6982#endif