xref: /linux/drivers/pinctrl/mediatek/pinctrl-mtk-mt8127.h (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1 #ifndef __PINCTRL_MTK_MT8127_H
2 #define __PINCTRL_MTK_MT8127_H
3 
4 #include <linux/pinctrl/pinctrl.h>
5 #include "pinctrl-mtk-common.h"
6 
7 static const struct mtk_desc_pin mtk_pins_mt8127[] = {
8 	MTK_PIN(
9 		PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
10 		"P22", "mt8127",
11 		MTK_EINT_FUNCTION(0, 22),
12 		MTK_FUNCTION(0, "GPIO0"),
13 		MTK_FUNCTION(1, "PWRAP_SPIDO"),
14 		MTK_FUNCTION(2, "PWRAP_SPIDI")
15 	),
16 	MTK_PIN(
17 		PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
18 		"M22", "mt8127",
19 		MTK_EINT_FUNCTION(0, 23),
20 		MTK_FUNCTION(0, "GPIO1"),
21 		MTK_FUNCTION(1, "PWRAP_SPIDI"),
22 		MTK_FUNCTION(2, "PWRAP_SPIDO")
23 	),
24 	MTK_PIN(
25 		PINCTRL_PIN(2, "PWRAP_INT"),
26 		"L23", "mt8127",
27 		MTK_EINT_FUNCTION(0, 24),
28 		MTK_FUNCTION(0, "GPIO2")
29 	),
30 	MTK_PIN(
31 		PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
32 		"N23", "mt8127",
33 		MTK_EINT_FUNCTION(0, 25),
34 		MTK_FUNCTION(0, "GPIO3"),
35 		MTK_FUNCTION(1, "PWRAP_SPICK_I")
36 	),
37 	MTK_PIN(
38 		PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
39 		"N22", "mt8127",
40 		MTK_EINT_FUNCTION(0, 26),
41 		MTK_FUNCTION(0, "GPIO4"),
42 		MTK_FUNCTION(1, "PWRAP_SPICS_B_I")
43 	),
44 	MTK_PIN(
45 		PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
46 		"L19", "mt8127",
47 		MTK_EINT_FUNCTION(0, 27),
48 		MTK_FUNCTION(0, "GPIO5"),
49 		MTK_FUNCTION(1, "PWRAP_SPICK2_I"),
50 		MTK_FUNCTION(2, "ANT_SEL1"),
51 		MTK_FUNCTION(3, "VDEC_TEST_CK"),
52 		MTK_FUNCTION(7, "DBG_MON_B[0]")
53 	),
54 	MTK_PIN(
55 		PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
56 		"M23", "mt8127",
57 		MTK_EINT_FUNCTION(0, 28),
58 		MTK_FUNCTION(0, "GPIO6"),
59 		MTK_FUNCTION(1, "PWRAP_SPICS2_B_I"),
60 		MTK_FUNCTION(2, "ANT_SEL0"),
61 		MTK_FUNCTION(3, "MM_TEST_CK"),
62 		MTK_FUNCTION(7, "DBG_MON_B[1]")
63 	),
64 	MTK_PIN(
65 		PINCTRL_PIN(7, "AUD_CLK_MOSI"),
66 		"K23", "mt8127",
67 		MTK_EINT_FUNCTION(0, 29),
68 		MTK_FUNCTION(0, "GPIO7"),
69 		MTK_FUNCTION(1, "AUD_CLK"),
70 		MTK_FUNCTION(2, "ADC_CK")
71 	),
72 	MTK_PIN(
73 		PINCTRL_PIN(8, "AUD_DAT_MISO"),
74 		"K24", "mt8127",
75 		MTK_EINT_FUNCTION(0, 30),
76 		MTK_FUNCTION(0, "GPIO8"),
77 		MTK_FUNCTION(1, "AUD_MISO"),
78 		MTK_FUNCTION(2, "ADC_DAT_IN"),
79 		MTK_FUNCTION(3, "AUD_MOSI")
80 	),
81 	MTK_PIN(
82 		PINCTRL_PIN(9, "AUD_DAT_MOSI"),
83 		"K22", "mt8127",
84 		MTK_EINT_FUNCTION(0, 31),
85 		MTK_FUNCTION(0, "GPIO9"),
86 		MTK_FUNCTION(1, "AUD_MOSI"),
87 		MTK_FUNCTION(2, "ADC_WS"),
88 		MTK_FUNCTION(3, "AUD_MISO")
89 	),
90 	MTK_PIN(
91 		PINCTRL_PIN(10, "RTC32K_CK"),
92 		"R21", "mt8127",
93 		MTK_EINT_FUNCTION(0, 32),
94 		MTK_FUNCTION(0, "GPIO10"),
95 		MTK_FUNCTION(1, "RTC32K_CK")
96 	),
97 	MTK_PIN(
98 		PINCTRL_PIN(11, "WATCHDOG"),
99 		"P24", "mt8127",
100 		MTK_EINT_FUNCTION(0, 33),
101 		MTK_FUNCTION(0, "GPIO11"),
102 		MTK_FUNCTION(1, "WATCHDOG")
103 	),
104 	MTK_PIN(
105 		PINCTRL_PIN(12, "SRCLKENA"),
106 		"R22", "mt8127",
107 		MTK_EINT_FUNCTION(0, 34),
108 		MTK_FUNCTION(0, "GPIO12"),
109 		MTK_FUNCTION(1, "SRCLKENA")
110 	),
111 	MTK_PIN(
112 		PINCTRL_PIN(13, "SRCLKENAI"),
113 		"P23", "mt8127",
114 		MTK_EINT_FUNCTION(0, 35),
115 		MTK_FUNCTION(0, "GPIO13"),
116 		MTK_FUNCTION(1, "SRCLKENAI")
117 	),
118 	MTK_PIN(
119 		PINCTRL_PIN(14, "URXD2"),
120 		"U19", "mt8127",
121 		MTK_EINT_FUNCTION(0, 36),
122 		MTK_FUNCTION(0, "GPIO14"),
123 		MTK_FUNCTION(1, "URXD2"),
124 		MTK_FUNCTION(2, "DPI_D5"),
125 		MTK_FUNCTION(3, "UTXD2"),
126 		MTK_FUNCTION(5, "SRCCLKENAI2"),
127 		MTK_FUNCTION(6, "KROW4")
128 	),
129 	MTK_PIN(
130 		PINCTRL_PIN(15, "UTXD2"),
131 		"U20", "mt8127",
132 		MTK_EINT_FUNCTION(0, 37),
133 		MTK_FUNCTION(0, "GPIO15"),
134 		MTK_FUNCTION(1, "UTXD2"),
135 		MTK_FUNCTION(2, "DPI_HSYNC"),
136 		MTK_FUNCTION(3, "URXD2"),
137 		MTK_FUNCTION(6, "KROW5")
138 	),
139 	MTK_PIN(
140 		PINCTRL_PIN(16, "URXD3"),
141 		"U18", "mt8127",
142 		MTK_EINT_FUNCTION(0, 38),
143 		MTK_FUNCTION(0, "GPIO16"),
144 		MTK_FUNCTION(1, "URXD3"),
145 		MTK_FUNCTION(2, "DPI_DE"),
146 		MTK_FUNCTION(3, "UTXD3"),
147 		MTK_FUNCTION(4, "UCTS2"),
148 		MTK_FUNCTION(5, "PWM3"),
149 		MTK_FUNCTION(6, "KROW6")
150 	),
151 	MTK_PIN(
152 		PINCTRL_PIN(17, "UTXD3"),
153 		"R18", "mt8127",
154 		MTK_EINT_FUNCTION(0, 39),
155 		MTK_FUNCTION(0, "GPIO17"),
156 		MTK_FUNCTION(1, "UTXD3"),
157 		MTK_FUNCTION(2, "DPI_VSYNC"),
158 		MTK_FUNCTION(3, "URXD3"),
159 		MTK_FUNCTION(4, "URTS2"),
160 		MTK_FUNCTION(5, "PWM4"),
161 		MTK_FUNCTION(6, "KROW7")
162 	),
163 	MTK_PIN(
164 		PINCTRL_PIN(18, "PCM_CLK"),
165 		"U22", "mt8127",
166 		MTK_EINT_FUNCTION(0, 40),
167 		MTK_FUNCTION(0, "GPIO18"),
168 		MTK_FUNCTION(1, "PCM_CLK0"),
169 		MTK_FUNCTION(2, "DPI_D4"),
170 		MTK_FUNCTION(3, "I2SIN1_BCK0"),
171 		MTK_FUNCTION(4, "I2SOUT_BCK"),
172 		MTK_FUNCTION(5, "CONN_DSP_JCK"),
173 		MTK_FUNCTION(6, "IR"),
174 		MTK_FUNCTION(7, "DBG_MON_A[0]")
175 	),
176 	MTK_PIN(
177 		PINCTRL_PIN(19, "PCM_SYNC"),
178 		"U23", "mt8127",
179 		MTK_EINT_FUNCTION(0, 41),
180 		MTK_FUNCTION(0, "GPIO19"),
181 		MTK_FUNCTION(1, "PCM_SYNC"),
182 		MTK_FUNCTION(2, "DPI_D3"),
183 		MTK_FUNCTION(3, "I2SIN1_LRCK"),
184 		MTK_FUNCTION(4, "I2SOUT_LRCK"),
185 		MTK_FUNCTION(5, "CONN_DSP_JINTP"),
186 		MTK_FUNCTION(6, "EXT_COL"),
187 		MTK_FUNCTION(7, "DBG_MON_A[1]")
188 	),
189 	MTK_PIN(
190 		PINCTRL_PIN(20, "PCM_RX"),
191 		"V22", "mt8127",
192 		MTK_EINT_FUNCTION(0, 42),
193 		MTK_FUNCTION(0, "GPIO20"),
194 		MTK_FUNCTION(1, "PCM_RX"),
195 		MTK_FUNCTION(2, "DPI_D1"),
196 		MTK_FUNCTION(3, "I2SIN1_DATA_IN"),
197 		MTK_FUNCTION(4, "PCM_TX"),
198 		MTK_FUNCTION(5, "CONN_DSP_JDI"),
199 		MTK_FUNCTION(6, "EXT_MDIO"),
200 		MTK_FUNCTION(7, "DBG_MON_A[2]")
201 	),
202 	MTK_PIN(
203 		PINCTRL_PIN(21, "PCM_TX"),
204 		"U21", "mt8127",
205 		MTK_EINT_FUNCTION(0, 43),
206 		MTK_FUNCTION(0, "GPIO21"),
207 		MTK_FUNCTION(1, "PCM_TX"),
208 		MTK_FUNCTION(2, "DPI_D2"),
209 		MTK_FUNCTION(3, "I2SOUT_DATA_OUT"),
210 		MTK_FUNCTION(4, "PCM_RX"),
211 		MTK_FUNCTION(5, "CONN_DSP_JMS"),
212 		MTK_FUNCTION(6, "EXT_MDC"),
213 		MTK_FUNCTION(7, "DBG_MON_A[3]")
214 	),
215 	MTK_PIN(
216 		PINCTRL_PIN(22, "EINT0"),
217 		"AB19", "mt8127",
218 		MTK_EINT_FUNCTION(0, 0),
219 		MTK_FUNCTION(0, "GPIO22"),
220 		MTK_FUNCTION(1, "PWM1"),
221 		MTK_FUNCTION(2, "DPI_CK"),
222 		MTK_FUNCTION(4, "EXT_TXD0"),
223 		MTK_FUNCTION(5, "CONN_DSP_JDO"),
224 		MTK_FUNCTION(7, "DBG_MON_A[4]")
225 	),
226 	MTK_PIN(
227 		PINCTRL_PIN(23, "EINT1"),
228 		"AA21", "mt8127",
229 		MTK_EINT_FUNCTION(0, 1),
230 		MTK_FUNCTION(0, "GPIO23"),
231 		MTK_FUNCTION(1, "PWM2"),
232 		MTK_FUNCTION(2, "DPI_D12"),
233 		MTK_FUNCTION(4, "EXT_TXD1"),
234 		MTK_FUNCTION(5, "CONN_MCU_TDO"),
235 		MTK_FUNCTION(7, "DBG_MON_A[5]")
236 	),
237 	MTK_PIN(
238 		PINCTRL_PIN(24, "EINT2"),
239 		"AA19", "mt8127",
240 		MTK_EINT_FUNCTION(0, 2),
241 		MTK_FUNCTION(0, "GPIO24"),
242 		MTK_FUNCTION(1, "CLKM0"),
243 		MTK_FUNCTION(2, "DPI_D13"),
244 		MTK_FUNCTION(4, "EXT_TXD2"),
245 		MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
246 		MTK_FUNCTION(6, "KCOL4"),
247 		MTK_FUNCTION(7, "DBG_MON_A[6]")
248 	),
249 	MTK_PIN(
250 		PINCTRL_PIN(25, "EINT3"),
251 		"Y19", "mt8127",
252 		MTK_EINT_FUNCTION(0, 3),
253 		MTK_FUNCTION(0, "GPIO25"),
254 		MTK_FUNCTION(1, "CLKM1"),
255 		MTK_FUNCTION(2, "DPI_D14"),
256 		MTK_FUNCTION(3, "SPI_MI"),
257 		MTK_FUNCTION(4, "EXT_TXD3"),
258 		MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
259 		MTK_FUNCTION(6, "KCOL5"),
260 		MTK_FUNCTION(7, "DBG_MON_A[7]")
261 	),
262 	MTK_PIN(
263 		PINCTRL_PIN(26, "EINT4"),
264 		"V21", "mt8127",
265 		MTK_EINT_FUNCTION(0, 4),
266 		MTK_FUNCTION(0, "GPIO26"),
267 		MTK_FUNCTION(1, "CLKM2"),
268 		MTK_FUNCTION(2, "DPI_D15"),
269 		MTK_FUNCTION(3, "SPI_MO"),
270 		MTK_FUNCTION(4, "EXT_TXC"),
271 		MTK_FUNCTION(5, "CONN_MCU_TCK0"),
272 		MTK_FUNCTION(6, "CONN_MCU_AICE_JCKC"),
273 		MTK_FUNCTION(7, "DBG_MON_A[8]")
274 	),
275 	MTK_PIN(
276 		PINCTRL_PIN(27, "EINT5"),
277 		"AB22", "mt8127",
278 		MTK_EINT_FUNCTION(0, 5),
279 		MTK_FUNCTION(0, "GPIO27"),
280 		MTK_FUNCTION(1, "UCTS2"),
281 		MTK_FUNCTION(2, "DPI_D16"),
282 		MTK_FUNCTION(3, "SPI_CS"),
283 		MTK_FUNCTION(4, "EXT_RXER"),
284 		MTK_FUNCTION(5, "CONN_MCU_TDI"),
285 		MTK_FUNCTION(6, "KCOL6"),
286 		MTK_FUNCTION(7, "DBG_MON_A[9]")
287 	),
288 	MTK_PIN(
289 		PINCTRL_PIN(28, "EINT6"),
290 		"AA23", "mt8127",
291 		MTK_EINT_FUNCTION(0, 6),
292 		MTK_FUNCTION(0, "GPIO28"),
293 		MTK_FUNCTION(1, "URTS2"),
294 		MTK_FUNCTION(2, "DPI_D17"),
295 		MTK_FUNCTION(3, "SPI_CK"),
296 		MTK_FUNCTION(4, "EXT_RXC"),
297 		MTK_FUNCTION(5, "CONN_MCU_TRST_B"),
298 		MTK_FUNCTION(6, "KCOL7"),
299 		MTK_FUNCTION(7, "DBG_MON_A[10]")
300 	),
301 	MTK_PIN(
302 		PINCTRL_PIN(29, "EINT7"),
303 		"Y23", "mt8127",
304 		MTK_EINT_FUNCTION(0, 7),
305 		MTK_FUNCTION(0, "GPIO29"),
306 		MTK_FUNCTION(1, "UCTS3"),
307 		MTK_FUNCTION(2, "DPI_D6"),
308 		MTK_FUNCTION(3, "SDA1"),
309 		MTK_FUNCTION(4, "EXT_RXDV"),
310 		MTK_FUNCTION(5, "CONN_MCU_TMS"),
311 		MTK_FUNCTION(6, "CONN_MCU_AICE_JMSC"),
312 		MTK_FUNCTION(7, "DBG_MON_A[11]")
313 	),
314 	MTK_PIN(
315 		PINCTRL_PIN(30, "EINT8"),
316 		"Y24", "mt8127",
317 		MTK_EINT_FUNCTION(0, 8),
318 		MTK_FUNCTION(0, "GPIO30"),
319 		MTK_FUNCTION(1, "URTS3"),
320 		MTK_FUNCTION(2, "CLKM3"),
321 		MTK_FUNCTION(3, "SCL1"),
322 		MTK_FUNCTION(4, "EXT_RXD0"),
323 		MTK_FUNCTION(5, "ANT_SEL0"),
324 		MTK_FUNCTION(6, "DPI_D7"),
325 		MTK_FUNCTION(7, "DBG_MON_B[2]")
326 	),
327 	MTK_PIN(
328 		PINCTRL_PIN(31, "EINT9"),
329 		"W23", "mt8127",
330 		MTK_EINT_FUNCTION(0, 9),
331 		MTK_FUNCTION(0, "GPIO31"),
332 		MTK_FUNCTION(1, "CLKM4"),
333 		MTK_FUNCTION(2, "SDA2"),
334 		MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
335 		MTK_FUNCTION(4, "EXT_RXD1"),
336 		MTK_FUNCTION(5, "ANT_SEL1"),
337 		MTK_FUNCTION(6, "DPI_D8"),
338 		MTK_FUNCTION(7, "DBG_MON_B[3]")
339 	),
340 	MTK_PIN(
341 		PINCTRL_PIN(32, "EINT10"),
342 		"W24", "mt8127",
343 		MTK_EINT_FUNCTION(0, 10),
344 		MTK_FUNCTION(0, "GPIO32"),
345 		MTK_FUNCTION(1, "CLKM5"),
346 		MTK_FUNCTION(2, "SCL2"),
347 		MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
348 		MTK_FUNCTION(4, "EXT_RXD2"),
349 		MTK_FUNCTION(5, "ANT_SEL2"),
350 		MTK_FUNCTION(6, "DPI_D9"),
351 		MTK_FUNCTION(7, "DBG_MON_B[4]")
352 	),
353 	MTK_PIN(
354 		PINCTRL_PIN(33, "KPROW0"),
355 		"AB24", "mt8127",
356 		MTK_EINT_FUNCTION(0, 44),
357 		MTK_FUNCTION(0, "GPIO33"),
358 		MTK_FUNCTION(1, "KROW0"),
359 		MTK_FUNCTION(4, "IMG_TEST_CK"),
360 		MTK_FUNCTION(7, "DBG_MON_A[12]")
361 	),
362 	MTK_PIN(
363 		PINCTRL_PIN(34, "KPROW1"),
364 		"AC24", "mt8127",
365 		MTK_EINT_FUNCTION(0, 45),
366 		MTK_FUNCTION(0, "GPIO34"),
367 		MTK_FUNCTION(1, "KROW1"),
368 		MTK_FUNCTION(2, "IDDIG"),
369 		MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
370 		MTK_FUNCTION(4, "MFG_TEST_CK"),
371 		MTK_FUNCTION(7, "DBG_MON_B[5]")
372 	),
373 	MTK_PIN(
374 		PINCTRL_PIN(35, "KPROW2"),
375 		"AD24", "mt8127",
376 		MTK_EINT_FUNCTION(0, 46),
377 		MTK_FUNCTION(0, "GPIO35"),
378 		MTK_FUNCTION(1, "KROW2"),
379 		MTK_FUNCTION(2, "DRV_VBUS"),
380 		MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
381 		MTK_FUNCTION(4, "CONN_TEST_CK"),
382 		MTK_FUNCTION(7, "DBG_MON_B[6]")
383 	),
384 	MTK_PIN(
385 		PINCTRL_PIN(36, "KPCOL0"),
386 		"AB23", "mt8127",
387 		MTK_EINT_FUNCTION(0, 47),
388 		MTK_FUNCTION(0, "GPIO36"),
389 		MTK_FUNCTION(1, "KCOL0"),
390 		MTK_FUNCTION(7, "DBG_MON_A[13]")
391 	),
392 	MTK_PIN(
393 		PINCTRL_PIN(37, "KPCOL1"),
394 		"AC22", "mt8127",
395 		MTK_EINT_FUNCTION(0, 48),
396 		MTK_FUNCTION(0, "GPIO37"),
397 		MTK_FUNCTION(1, "KCOL1"),
398 		MTK_FUNCTION(7, "DBG_MON_B[7]")
399 	),
400 	MTK_PIN(
401 		PINCTRL_PIN(38, "KPCOL2"),
402 		"AC23", "mt8127",
403 		MTK_EINT_FUNCTION(0, 49),
404 		MTK_FUNCTION(0, "GPIO38"),
405 		MTK_FUNCTION(1, "KCOL2"),
406 		MTK_FUNCTION(2, "IDDIG"),
407 		MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
408 		MTK_FUNCTION(7, "DBG_MON_B[8]")
409 	),
410 	MTK_PIN(
411 		PINCTRL_PIN(39, "JTMS"),
412 		"V18", "mt8127",
413 		MTK_EINT_FUNCTION(0, 50),
414 		MTK_FUNCTION(0, "GPIO39"),
415 		MTK_FUNCTION(1, "JTMS"),
416 		MTK_FUNCTION(2, "CONN_MCU_TMS"),
417 		MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC")
418 	),
419 	MTK_PIN(
420 		PINCTRL_PIN(40, "JTCK"),
421 		"AA18", "mt8127",
422 		MTK_EINT_FUNCTION(0, 51),
423 		MTK_FUNCTION(0, "GPIO40"),
424 		MTK_FUNCTION(1, "JTCK"),
425 		MTK_FUNCTION(2, "CONN_MCU_TCK1"),
426 		MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC")
427 	),
428 	MTK_PIN(
429 		PINCTRL_PIN(41, "JTDI"),
430 		"W18", "mt8127",
431 		MTK_EINT_FUNCTION(0, 52),
432 		MTK_FUNCTION(0, "GPIO41"),
433 		MTK_FUNCTION(1, "JTDI"),
434 		MTK_FUNCTION(2, "CONN_MCU_TDI")
435 	),
436 	MTK_PIN(
437 		PINCTRL_PIN(42, "JTDO"),
438 		"Y18", "mt8127",
439 		MTK_EINT_FUNCTION(0, 53),
440 		MTK_FUNCTION(0, "GPIO42"),
441 		MTK_FUNCTION(1, "JTDO"),
442 		MTK_FUNCTION(2, "CONN_MCU_TDO")
443 	),
444 	MTK_PIN(
445 		PINCTRL_PIN(43, "EINT11"),
446 		"W22", "mt8127",
447 		MTK_EINT_FUNCTION(0, 11),
448 		MTK_FUNCTION(0, "GPIO43"),
449 		MTK_FUNCTION(1, "CLKM4"),
450 		MTK_FUNCTION(2, "PWM2"),
451 		MTK_FUNCTION(3, "KROW3"),
452 		MTK_FUNCTION(4, "ANT_SEL3"),
453 		MTK_FUNCTION(5, "DPI_D10"),
454 		MTK_FUNCTION(6, "EXT_RXD3"),
455 		MTK_FUNCTION(7, "DBG_MON_B[9]")
456 	),
457 	MTK_PIN(
458 		PINCTRL_PIN(44, "EINT12"),
459 		"V23", "mt8127",
460 		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
461 		MTK_FUNCTION(0, "GPIO44"),
462 		MTK_FUNCTION(1, "CLKM5"),
463 		MTK_FUNCTION(2, "PWM0"),
464 		MTK_FUNCTION(3, "KCOL3"),
465 		MTK_FUNCTION(4, "ANT_SEL4"),
466 		MTK_FUNCTION(5, "DPI_D11"),
467 		MTK_FUNCTION(6, "EXT_TXEN"),
468 		MTK_FUNCTION(7, "DBG_MON_B[10]")
469 	),
470 	MTK_PIN(
471 		PINCTRL_PIN(45, "EINT13"),
472 		"Y21", "mt8127",
473 		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
474 		MTK_FUNCTION(0, "GPIO45"),
475 		MTK_FUNCTION(4, "ANT_SEL5"),
476 		MTK_FUNCTION(5, "DPI_D0"),
477 		MTK_FUNCTION(6, "SPDIF"),
478 		MTK_FUNCTION(7, "DBG_MON_B[11]")
479 	),
480 	MTK_PIN(
481 		PINCTRL_PIN(46, "EINT14"),
482 		"F23", "mt8127",
483 		MTK_EINT_FUNCTION(0, 14),
484 		MTK_FUNCTION(0, "GPIO46"),
485 		MTK_FUNCTION(2, "DAC_DAT_OUT"),
486 		MTK_FUNCTION(4, "ANT_SEL1"),
487 		MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
488 		MTK_FUNCTION(6, "NCLE"),
489 		MTK_FUNCTION(7, "DBG_MON_A[14]")
490 	),
491 	MTK_PIN(
492 		PINCTRL_PIN(47, "EINT15"),
493 		"G23", "mt8127",
494 		MTK_EINT_FUNCTION(0, 15),
495 		MTK_FUNCTION(0, "GPIO47"),
496 		MTK_FUNCTION(2, "DAC_WS"),
497 		MTK_FUNCTION(4, "ANT_SEL2"),
498 		MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
499 		MTK_FUNCTION(6, "NCEB1"),
500 		MTK_FUNCTION(7, "DBG_MON_A[15]")
501 	),
502 	MTK_PIN(
503 		PINCTRL_PIN(48, "EINT16"),
504 		"H23", "mt8127",
505 		MTK_EINT_FUNCTION(0, 16),
506 		MTK_FUNCTION(0, "GPIO48"),
507 		MTK_FUNCTION(2, "DAC_CK"),
508 		MTK_FUNCTION(4, "ANT_SEL3"),
509 		MTK_FUNCTION(5, "CONN_MCU_TRST_B"),
510 		MTK_FUNCTION(6, "NCEB0"),
511 		MTK_FUNCTION(7, "DBG_MON_A[16]")
512 	),
513 	MTK_PIN(
514 		PINCTRL_PIN(49, "EINT17"),
515 		"J22", "mt8127",
516 		MTK_EINT_FUNCTION(0, 17),
517 		MTK_FUNCTION(0, "GPIO49"),
518 		MTK_FUNCTION(1, "UCTS0"),
519 		MTK_FUNCTION(3, "CLKM0"),
520 		MTK_FUNCTION(4, "IDDIG"),
521 		MTK_FUNCTION(5, "ANT_SEL4"),
522 		MTK_FUNCTION(6, "NREB"),
523 		MTK_FUNCTION(7, "DBG_MON_A[17]")
524 	),
525 	MTK_PIN(
526 		PINCTRL_PIN(50, "EINT18"),
527 		"AD20", "mt8127",
528 		MTK_EINT_FUNCTION(0, 18),
529 		MTK_FUNCTION(0, "GPIO50"),
530 		MTK_FUNCTION(1, "URTS0"),
531 		MTK_FUNCTION(2, "CLKM3"),
532 		MTK_FUNCTION(3, "I2SOUT_LRCK"),
533 		MTK_FUNCTION(4, "DRV_VBUS"),
534 		MTK_FUNCTION(5, "ANT_SEL3"),
535 		MTK_FUNCTION(6, "ADC_CK"),
536 		MTK_FUNCTION(7, "DBG_MON_B[12]")
537 	),
538 	MTK_PIN(
539 		PINCTRL_PIN(51, "EINT19"),
540 		"AC21", "mt8127",
541 		MTK_EINT_FUNCTION(0, 19),
542 		MTK_FUNCTION(0, "GPIO51"),
543 		MTK_FUNCTION(1, "UCTS1"),
544 		MTK_FUNCTION(3, "I2SOUT_BCK"),
545 		MTK_FUNCTION(4, "CLKM1"),
546 		MTK_FUNCTION(5, "ANT_SEL4"),
547 		MTK_FUNCTION(6, "ADC_DAT_IN"),
548 		MTK_FUNCTION(7, "DBG_MON_B[13]")
549 	),
550 	MTK_PIN(
551 		PINCTRL_PIN(52, "EINT20"),
552 		"V20", "mt8127",
553 		MTK_EINT_FUNCTION(0, 20),
554 		MTK_FUNCTION(0, "GPIO52"),
555 		MTK_FUNCTION(1, "URTS1"),
556 		MTK_FUNCTION(2, "PCM_TX"),
557 		MTK_FUNCTION(3, "I2SOUT_DATA_OUT"),
558 		MTK_FUNCTION(4, "CLKM2"),
559 		MTK_FUNCTION(5, "ANT_SEL5"),
560 		MTK_FUNCTION(6, "ADC_WS"),
561 		MTK_FUNCTION(7, "DBG_MON_B[14]")
562 	),
563 	MTK_PIN(
564 		PINCTRL_PIN(53, "SPI_CS"),
565 		"AD19", "mt8127",
566 		MTK_EINT_FUNCTION(0, 54),
567 		MTK_FUNCTION(0, "GPIO53"),
568 		MTK_FUNCTION(1, "SPI_CS"),
569 		MTK_FUNCTION(3, "I2SIN1_DATA_IN"),
570 		MTK_FUNCTION(4, "ADC_CK"),
571 		MTK_FUNCTION(7, "DBG_MON_B[15]")
572 	),
573 	MTK_PIN(
574 		PINCTRL_PIN(54, "SPI_CK"),
575 		"AC18", "mt8127",
576 		MTK_EINT_FUNCTION(0, 55),
577 		MTK_FUNCTION(0, "GPIO54"),
578 		MTK_FUNCTION(1, "SPI_CK"),
579 		MTK_FUNCTION(3, "I2SIN1_LRCK"),
580 		MTK_FUNCTION(4, "ADC_DAT_IN"),
581 		MTK_FUNCTION(7, "DBG_MON_B[16]")
582 	),
583 	MTK_PIN(
584 		PINCTRL_PIN(55, "SPI_MI"),
585 		"AC19", "mt8127",
586 		MTK_EINT_FUNCTION(0, 56),
587 		MTK_FUNCTION(0, "GPIO55"),
588 		MTK_FUNCTION(1, "SPI_MI"),
589 		MTK_FUNCTION(2, "SPI_MO"),
590 		MTK_FUNCTION(3, "I2SIN1_BCK1"),
591 		MTK_FUNCTION(4, "ADC_WS"),
592 		MTK_FUNCTION(7, "DBG_MON_B[17]")
593 	),
594 	MTK_PIN(
595 		PINCTRL_PIN(56, "SPI_MO"),
596 		"AD18", "mt8127",
597 		MTK_EINT_FUNCTION(0, 57),
598 		MTK_FUNCTION(0, "GPIO56"),
599 		MTK_FUNCTION(1, "SPI_MO"),
600 		MTK_FUNCTION(2, "SPI_MI"),
601 		MTK_FUNCTION(7, "DBG_MON_B[18]")
602 	),
603 	MTK_PIN(
604 		PINCTRL_PIN(57, "SDA1"),
605 		"AE23", "mt8127",
606 		MTK_EINT_FUNCTION(0, 58),
607 		MTK_FUNCTION(0, "GPIO57"),
608 		MTK_FUNCTION(1, "SDA1")
609 	),
610 	MTK_PIN(
611 		PINCTRL_PIN(58, "SCL1"),
612 		"AD23", "mt8127",
613 		MTK_EINT_FUNCTION(0, 59),
614 		MTK_FUNCTION(0, "GPIO58"),
615 		MTK_FUNCTION(1, "SCL1")
616 	),
617 	MTK_PIN(
618 		PINCTRL_PIN(59, "DISP_PWM"),
619 		"AC20", "mt8127",
620 		MTK_EINT_FUNCTION(0, 60),
621 		MTK_FUNCTION(0, "GPIO59"),
622 		MTK_FUNCTION(1, "DISP_PWM"),
623 		MTK_FUNCTION(2, "PWM1"),
624 		MTK_FUNCTION(7, "DBG_MON_A[18]")
625 	),
626 	MTK_PIN(
627 		PINCTRL_PIN(60, "WB_RSTB"),
628 		"AD7", "mt8127",
629 		MTK_EINT_FUNCTION(0, 61),
630 		MTK_FUNCTION(0, "GPIO60"),
631 		MTK_FUNCTION(1, "WB_RSTB"),
632 		MTK_FUNCTION(7, "DBG_MON_A[19]")
633 	),
634 	MTK_PIN(
635 		PINCTRL_PIN(61, "F2W_DATA"),
636 		"Y10", "mt8127",
637 		MTK_EINT_FUNCTION(0, 62),
638 		MTK_FUNCTION(0, "GPIO61"),
639 		MTK_FUNCTION(1, "F2W_DATA"),
640 		MTK_FUNCTION(7, "DBG_MON_A[20]")
641 	),
642 	MTK_PIN(
643 		PINCTRL_PIN(62, "F2W_CLK"),
644 		"W10", "mt8127",
645 		MTK_EINT_FUNCTION(0, 63),
646 		MTK_FUNCTION(0, "GPIO62"),
647 		MTK_FUNCTION(1, "F2W_CK"),
648 		MTK_FUNCTION(7, "DBG_MON_A[21]")
649 	),
650 	MTK_PIN(
651 		PINCTRL_PIN(63, "WB_SCLK"),
652 		"AB7", "mt8127",
653 		MTK_EINT_FUNCTION(0, 64),
654 		MTK_FUNCTION(0, "GPIO63"),
655 		MTK_FUNCTION(1, "WB_SCLK"),
656 		MTK_FUNCTION(7, "DBG_MON_A[22]")
657 	),
658 	MTK_PIN(
659 		PINCTRL_PIN(64, "WB_SDATA"),
660 		"AA7", "mt8127",
661 		MTK_EINT_FUNCTION(0, 65),
662 		MTK_FUNCTION(0, "GPIO64"),
663 		MTK_FUNCTION(1, "WB_SDATA"),
664 		MTK_FUNCTION(7, "DBG_MON_A[23]")
665 	),
666 	MTK_PIN(
667 		PINCTRL_PIN(65, "WB_SEN"),
668 		"Y7", "mt8127",
669 		MTK_EINT_FUNCTION(0, 66),
670 		MTK_FUNCTION(0, "GPIO65"),
671 		MTK_FUNCTION(1, "WB_SEN"),
672 		MTK_FUNCTION(7, "DBG_MON_A[24]")
673 	),
674 	MTK_PIN(
675 		PINCTRL_PIN(66, "WB_CRTL0"),
676 		"AA1", "mt8127",
677 		MTK_EINT_FUNCTION(0, 67),
678 		MTK_FUNCTION(0, "GPIO66"),
679 		MTK_FUNCTION(1, "WB_CRTL0"),
680 		MTK_FUNCTION(2, "DFD_NTRST_XI"),
681 		MTK_FUNCTION(7, "DBG_MON_A[25]")
682 	),
683 	MTK_PIN(
684 		PINCTRL_PIN(67, "WB_CRTL1"),
685 		"AA2", "mt8127",
686 		MTK_EINT_FUNCTION(0, 68),
687 		MTK_FUNCTION(0, "GPIO67"),
688 		MTK_FUNCTION(1, "WB_CRTL1"),
689 		MTK_FUNCTION(2, "DFD_TMS_XI"),
690 		MTK_FUNCTION(7, "DBG_MON_A[26]")
691 	),
692 	MTK_PIN(
693 		PINCTRL_PIN(68, "WB_CRTL2"),
694 		"Y1", "mt8127",
695 		MTK_EINT_FUNCTION(0, 69),
696 		MTK_FUNCTION(0, "GPIO68"),
697 		MTK_FUNCTION(1, "WB_CRTL2"),
698 		MTK_FUNCTION(2, "DFD_TCK_XI"),
699 		MTK_FUNCTION(7, "DBG_MON_A[27]")
700 	),
701 	MTK_PIN(
702 		PINCTRL_PIN(69, "WB_CRTL3"),
703 		"Y2", "mt8127",
704 		MTK_EINT_FUNCTION(0, 70),
705 		MTK_FUNCTION(0, "GPIO69"),
706 		MTK_FUNCTION(1, "WB_CRTL3"),
707 		MTK_FUNCTION(2, "DFD_TDI_XI"),
708 		MTK_FUNCTION(7, "DBG_MON_A[28]")
709 	),
710 	MTK_PIN(
711 		PINCTRL_PIN(70, "WB_CRTL4"),
712 		"Y3", "mt8127",
713 		MTK_EINT_FUNCTION(0, 71),
714 		MTK_FUNCTION(0, "GPIO70"),
715 		MTK_FUNCTION(1, "WB_CRTL4"),
716 		MTK_FUNCTION(2, "DFD_TDO"),
717 		MTK_FUNCTION(7, "DBG_MON_A[29]")
718 	),
719 	MTK_PIN(
720 		PINCTRL_PIN(71, "WB_CRTL5"),
721 		"Y4", "mt8127",
722 		MTK_EINT_FUNCTION(0, 72),
723 		MTK_FUNCTION(0, "GPIO71"),
724 		MTK_FUNCTION(1, "WB_CRTL5"),
725 		MTK_FUNCTION(7, "DBG_MON_A[30]")
726 	),
727 	MTK_PIN(
728 		PINCTRL_PIN(72, "I2S_DATA_IN"),
729 		"K21", "mt8127",
730 		MTK_EINT_FUNCTION(0, 73),
731 		MTK_FUNCTION(0, "GPIO72"),
732 		MTK_FUNCTION(1, "I2SIN1_DATA_IN"),
733 		MTK_FUNCTION(2, "PCM_RX"),
734 		MTK_FUNCTION(3, "I2SOUT_DATA_OUT"),
735 		MTK_FUNCTION(4, "DAC_DAT_OUT"),
736 		MTK_FUNCTION(5, "PWM0"),
737 		MTK_FUNCTION(6, "ADC_CK"),
738 		MTK_FUNCTION(7, "DBG_MON_B[19]")
739 	),
740 	MTK_PIN(
741 		PINCTRL_PIN(73, "I2S_LRCK"),
742 		"L21", "mt8127",
743 		MTK_EINT_FUNCTION(0, 74),
744 		MTK_FUNCTION(0, "GPIO73"),
745 		MTK_FUNCTION(1, "I2SIN1_LRCK"),
746 		MTK_FUNCTION(2, "PCM_SYNC"),
747 		MTK_FUNCTION(3, "I2SOUT_LRCK"),
748 		MTK_FUNCTION(4, "DAC_WS"),
749 		MTK_FUNCTION(5, "PWM3"),
750 		MTK_FUNCTION(6, "ADC_DAT_IN"),
751 		MTK_FUNCTION(7, "DBG_MON_B[20]")
752 	),
753 	MTK_PIN(
754 		PINCTRL_PIN(74, "I2S_BCK"),
755 		"L20", "mt8127",
756 		MTK_EINT_FUNCTION(0, 75),
757 		MTK_FUNCTION(0, "GPIO74"),
758 		MTK_FUNCTION(1, "I2SIN1_BCK2"),
759 		MTK_FUNCTION(2, "PCM_CLK1"),
760 		MTK_FUNCTION(3, "I2SOUT_BCK"),
761 		MTK_FUNCTION(4, "DAC_CK"),
762 		MTK_FUNCTION(5, "PWM4"),
763 		MTK_FUNCTION(6, "ADC_WS"),
764 		MTK_FUNCTION(7, "DBG_MON_B[21]")
765 	),
766 	MTK_PIN(
767 		PINCTRL_PIN(75, "SDA0"),
768 		"W3", "mt8127",
769 		MTK_EINT_FUNCTION(0, 76),
770 		MTK_FUNCTION(0, "GPIO75"),
771 		MTK_FUNCTION(1, "SDA0")
772 	),
773 	MTK_PIN(
774 		PINCTRL_PIN(76, "SCL0"),
775 		"W4", "mt8127",
776 		MTK_EINT_FUNCTION(0, 77),
777 		MTK_FUNCTION(0, "GPIO76"),
778 		MTK_FUNCTION(1, "SCL0")
779 	),
780 	MTK_PIN(
781 		PINCTRL_PIN(77, "SDA2"),
782 		"K19", "mt8127",
783 		MTK_EINT_FUNCTION(0, 78),
784 		MTK_FUNCTION(0, "GPIO77"),
785 		MTK_FUNCTION(1, "SDA2"),
786 		MTK_FUNCTION(2, "PWM1")
787 	),
788 	MTK_PIN(
789 		PINCTRL_PIN(78, "SCL2"),
790 		"K20", "mt8127",
791 		MTK_EINT_FUNCTION(0, 79),
792 		MTK_FUNCTION(0, "GPIO78"),
793 		MTK_FUNCTION(1, "SCL2"),
794 		MTK_FUNCTION(2, "PWM2")
795 	),
796 	MTK_PIN(
797 		PINCTRL_PIN(79, "URXD0"),
798 		"K18", "mt8127",
799 		MTK_EINT_FUNCTION(0, 80),
800 		MTK_FUNCTION(0, "GPIO79"),
801 		MTK_FUNCTION(1, "URXD0"),
802 		MTK_FUNCTION(2, "UTXD0")
803 	),
804 	MTK_PIN(
805 		PINCTRL_PIN(80, "UTXD0"),
806 		"K17", "mt8127",
807 		MTK_EINT_FUNCTION(0, 81),
808 		MTK_FUNCTION(0, "GPIO80"),
809 		MTK_FUNCTION(1, "UTXD0"),
810 		MTK_FUNCTION(2, "URXD0")
811 	),
812 	MTK_PIN(
813 		PINCTRL_PIN(81, "URXD1"),
814 		"L17", "mt8127",
815 		MTK_EINT_FUNCTION(0, 82),
816 		MTK_FUNCTION(0, "GPIO81"),
817 		MTK_FUNCTION(1, "URXD1"),
818 		MTK_FUNCTION(2, "UTXD1")
819 	),
820 	MTK_PIN(
821 		PINCTRL_PIN(82, "UTXD1"),
822 		"L18", "mt8127",
823 		MTK_EINT_FUNCTION(0, 83),
824 		MTK_FUNCTION(0, "GPIO82"),
825 		MTK_FUNCTION(1, "UTXD1"),
826 		MTK_FUNCTION(2, "URXD1")
827 	),
828 	MTK_PIN(
829 		PINCTRL_PIN(83, "LCM_RST"),
830 		"W5", "mt8127",
831 		MTK_EINT_FUNCTION(0, 84),
832 		MTK_FUNCTION(0, "GPIO83"),
833 		MTK_FUNCTION(1, "LCM_RST"),
834 		MTK_FUNCTION(2, "VDAC_CK_XI"),
835 		MTK_FUNCTION(7, "DBG_MON_A[31]")
836 	),
837 	MTK_PIN(
838 		PINCTRL_PIN(84, "DSI_TE"),
839 		"W6", "mt8127",
840 		MTK_EINT_FUNCTION(0, 85),
841 		MTK_FUNCTION(0, "GPIO84"),
842 		MTK_FUNCTION(1, "DSI_TE"),
843 		MTK_FUNCTION(7, "DBG_MON_A[32]")
844 	),
845 	MTK_PIN(
846 		PINCTRL_PIN(85, "MSDC2_CMD"),
847 		"U7", "mt8127",
848 		MTK_EINT_FUNCTION(0, 86),
849 		MTK_FUNCTION(0, "GPIO85"),
850 		MTK_FUNCTION(1, "MSDC2_CMD"),
851 		MTK_FUNCTION(2, "ANT_SEL0"),
852 		MTK_FUNCTION(3, "SDA1"),
853 		MTK_FUNCTION(6, "I2SOUT_BCK"),
854 		MTK_FUNCTION(7, "DBG_MON_B[22]")
855 	),
856 	MTK_PIN(
857 		PINCTRL_PIN(86, "MSDC2_CLK"),
858 		"T8", "mt8127",
859 		MTK_EINT_FUNCTION(0, 87),
860 		MTK_FUNCTION(0, "GPIO86"),
861 		MTK_FUNCTION(1, "MSDC2_CLK"),
862 		MTK_FUNCTION(2, "ANT_SEL1"),
863 		MTK_FUNCTION(3, "SCL1"),
864 		MTK_FUNCTION(6, "I2SOUT_LRCK"),
865 		MTK_FUNCTION(7, "DBG_MON_B[23]")
866 	),
867 	MTK_PIN(
868 		PINCTRL_PIN(87, "MSDC2_DAT0"),
869 		"V3", "mt8127",
870 		MTK_EINT_FUNCTION(0, 88),
871 		MTK_FUNCTION(0, "GPIO87"),
872 		MTK_FUNCTION(1, "MSDC2_DAT0"),
873 		MTK_FUNCTION(2, "ANT_SEL2"),
874 		MTK_FUNCTION(5, "UTXD0"),
875 		MTK_FUNCTION(6, "I2SOUT_DATA_OUT"),
876 		MTK_FUNCTION(7, "DBG_MON_B[24]")
877 	),
878 	MTK_PIN(
879 		PINCTRL_PIN(88, "MSDC2_DAT1"),
880 		"V4", "mt8127",
881 		MTK_EINT_FUNCTION(0, 89),
882 		MTK_FUNCTION(0, "GPIO88"),
883 		MTK_FUNCTION(1, "MSDC2_DAT1"),
884 		MTK_FUNCTION(2, "ANT_SEL3"),
885 		MTK_FUNCTION(3, "PWM0"),
886 		MTK_FUNCTION(5, "URXD0"),
887 		MTK_FUNCTION(6, "PWM1"),
888 		MTK_FUNCTION(7, "DBG_MON_B[25]")
889 	),
890 	MTK_PIN(
891 		PINCTRL_PIN(89, "MSDC2_DAT2"),
892 		"U5", "mt8127",
893 		MTK_EINT_FUNCTION(0, 90),
894 		MTK_FUNCTION(0, "GPIO89"),
895 		MTK_FUNCTION(1, "MSDC2_DAT2"),
896 		MTK_FUNCTION(2, "ANT_SEL4"),
897 		MTK_FUNCTION(3, "SDA2"),
898 		MTK_FUNCTION(5, "UTXD1"),
899 		MTK_FUNCTION(6, "PWM2"),
900 		MTK_FUNCTION(7, "DBG_MON_B[26]")
901 	),
902 	MTK_PIN(
903 		PINCTRL_PIN(90, "MSDC2_DAT3"),
904 		"U6", "mt8127",
905 		MTK_EINT_FUNCTION(0, 91),
906 		MTK_FUNCTION(0, "GPIO90"),
907 		MTK_FUNCTION(1, "MSDC2_DAT3"),
908 		MTK_FUNCTION(2, "ANT_SEL5"),
909 		MTK_FUNCTION(3, "SCL2"),
910 		MTK_FUNCTION(4, "EXT_FRAME_SYNC"),
911 		MTK_FUNCTION(5, "URXD1"),
912 		MTK_FUNCTION(6, "PWM3"),
913 		MTK_FUNCTION(7, "DBG_MON_B[27]")
914 	),
915 	MTK_PIN(
916 		PINCTRL_PIN(91, "TDN3"),
917 		"U2", "mt8127",
918 		MTK_EINT_FUNCTION(0, 92),
919 		MTK_FUNCTION(0, "GPI91"),
920 		MTK_FUNCTION(1, "TDN3")
921 	),
922 	MTK_PIN(
923 		PINCTRL_PIN(92, "TDP3"),
924 		"U1", "mt8127",
925 		MTK_EINT_FUNCTION(0, 93),
926 		MTK_FUNCTION(0, "GPI92"),
927 		MTK_FUNCTION(1, "TDP3")
928 	),
929 	MTK_PIN(
930 		PINCTRL_PIN(93, "TDN2"),
931 		"T2", "mt8127",
932 		MTK_EINT_FUNCTION(0, 94),
933 		MTK_FUNCTION(0, "GPI93"),
934 		MTK_FUNCTION(1, "TDN2")
935 	),
936 	MTK_PIN(
937 		PINCTRL_PIN(94, "TDP2"),
938 		"T1", "mt8127",
939 		MTK_EINT_FUNCTION(0, 95),
940 		MTK_FUNCTION(0, "GPI94"),
941 		MTK_FUNCTION(1, "TDP2")
942 	),
943 	MTK_PIN(
944 		PINCTRL_PIN(95, "TCN"),
945 		"R5", "mt8127",
946 		MTK_EINT_FUNCTION(0, 96),
947 		MTK_FUNCTION(0, "GPI95"),
948 		MTK_FUNCTION(1, "TCN")
949 	),
950 	MTK_PIN(
951 		PINCTRL_PIN(96, "TCP"),
952 		"R4", "mt8127",
953 		MTK_EINT_FUNCTION(0, 97),
954 		MTK_FUNCTION(0, "GPI96"),
955 		MTK_FUNCTION(1, "TCP")
956 	),
957 	MTK_PIN(
958 		PINCTRL_PIN(97, "TDN1"),
959 		"R3", "mt8127",
960 		MTK_EINT_FUNCTION(0, 98),
961 		MTK_FUNCTION(0, "GPI97"),
962 		MTK_FUNCTION(1, "TDN1")
963 	),
964 	MTK_PIN(
965 		PINCTRL_PIN(98, "TDP1"),
966 		"R2", "mt8127",
967 		MTK_EINT_FUNCTION(0, 99),
968 		MTK_FUNCTION(0, "GPI98"),
969 		MTK_FUNCTION(1, "TDP1")
970 	),
971 	MTK_PIN(
972 		PINCTRL_PIN(99, "TDN0"),
973 		"P3", "mt8127",
974 		MTK_EINT_FUNCTION(0, 100),
975 		MTK_FUNCTION(0, "GPI99"),
976 		MTK_FUNCTION(1, "TDN0")
977 	),
978 	MTK_PIN(
979 		PINCTRL_PIN(100, "TDP0"),
980 		"P2", "mt8127",
981 		MTK_EINT_FUNCTION(0, 101),
982 		MTK_FUNCTION(0, "GPI100"),
983 		MTK_FUNCTION(1, "TDP0")
984 	),
985 	MTK_PIN(
986 		PINCTRL_PIN(101, "RDN0"),
987 		"K1", "mt8127",
988 		MTK_EINT_FUNCTION(0, 102),
989 		MTK_FUNCTION(0, "GPI101"),
990 		MTK_FUNCTION(1, "RDN0")
991 	),
992 	MTK_PIN(
993 		PINCTRL_PIN(102, "RDP0"),
994 		"K2", "mt8127",
995 		MTK_EINT_FUNCTION(0, 103),
996 		MTK_FUNCTION(0, "GPI102"),
997 		MTK_FUNCTION(1, "RDP0")
998 	),
999 	MTK_PIN(
1000 		PINCTRL_PIN(103, "RDN1"),
1001 		"L2", "mt8127",
1002 		MTK_EINT_FUNCTION(0, 104),
1003 		MTK_FUNCTION(0, "GPI103"),
1004 		MTK_FUNCTION(1, "RDN1")
1005 	),
1006 	MTK_PIN(
1007 		PINCTRL_PIN(104, "RDP1"),
1008 		"L3", "mt8127",
1009 		MTK_EINT_FUNCTION(0, 105),
1010 		MTK_FUNCTION(0, "GPI104"),
1011 		MTK_FUNCTION(1, "RDP1")
1012 	),
1013 	MTK_PIN(
1014 		PINCTRL_PIN(105, "RCN"),
1015 		"M4", "mt8127",
1016 		MTK_EINT_FUNCTION(0, 106),
1017 		MTK_FUNCTION(0, "GPI105"),
1018 		MTK_FUNCTION(1, "RCN")
1019 	),
1020 	MTK_PIN(
1021 		PINCTRL_PIN(106, "RCP"),
1022 		"M5", "mt8127",
1023 		MTK_EINT_FUNCTION(0, 107),
1024 		MTK_FUNCTION(0, "GPI106"),
1025 		MTK_FUNCTION(1, "RCP")
1026 	),
1027 	MTK_PIN(
1028 		PINCTRL_PIN(107, "RDN2"),
1029 		"M2", "mt8127",
1030 		MTK_EINT_FUNCTION(0, 108),
1031 		MTK_FUNCTION(0, "GPI107"),
1032 		MTK_FUNCTION(1, "RDN2"),
1033 		MTK_FUNCTION(2, "CMDAT8")
1034 	),
1035 	MTK_PIN(
1036 		PINCTRL_PIN(108, "RDP2"),
1037 		"M3", "mt8127",
1038 		MTK_EINT_FUNCTION(0, 109),
1039 		MTK_FUNCTION(0, "GPI108"),
1040 		MTK_FUNCTION(1, "RDP2"),
1041 		MTK_FUNCTION(2, "CMDAT9")
1042 	),
1043 	MTK_PIN(
1044 		PINCTRL_PIN(109, "RDN3"),
1045 		"N2", "mt8127",
1046 		MTK_EINT_FUNCTION(0, 110),
1047 		MTK_FUNCTION(0, "GPI109"),
1048 		MTK_FUNCTION(1, "RDN3"),
1049 		MTK_FUNCTION(2, "CMDAT4")
1050 	),
1051 	MTK_PIN(
1052 		PINCTRL_PIN(110, "RDP3"),
1053 		"N3", "mt8127",
1054 		MTK_EINT_FUNCTION(0, 111),
1055 		MTK_FUNCTION(0, "GPI110"),
1056 		MTK_FUNCTION(1, "RDP3"),
1057 		MTK_FUNCTION(2, "CMDAT5")
1058 	),
1059 	MTK_PIN(
1060 		PINCTRL_PIN(111, "RCN_A"),
1061 		"J5", "mt8127",
1062 		MTK_EINT_FUNCTION(0, 112),
1063 		MTK_FUNCTION(0, "GPI111"),
1064 		MTK_FUNCTION(1, "RCN_A"),
1065 		MTK_FUNCTION(2, "CMDAT6")
1066 	),
1067 	MTK_PIN(
1068 		PINCTRL_PIN(112, "RCP_A"),
1069 		"J4", "mt8127",
1070 		MTK_EINT_FUNCTION(0, 113),
1071 		MTK_FUNCTION(0, "GPI112"),
1072 		MTK_FUNCTION(1, "RCP_A"),
1073 		MTK_FUNCTION(2, "CMDAT7")
1074 	),
1075 	MTK_PIN(
1076 		PINCTRL_PIN(113, "RDN1_A"),
1077 		"J2", "mt8127",
1078 		MTK_EINT_FUNCTION(0, 114),
1079 		MTK_FUNCTION(0, "GPI113"),
1080 		MTK_FUNCTION(1, "RDN1_A"),
1081 		MTK_FUNCTION(2, "CMDAT2"),
1082 		MTK_FUNCTION(3, "CMCSD2")
1083 	),
1084 	MTK_PIN(
1085 		PINCTRL_PIN(114, "RDP1_A"),
1086 		"J3", "mt8127",
1087 		MTK_EINT_FUNCTION(0, 115),
1088 		MTK_FUNCTION(0, "GPI114"),
1089 		MTK_FUNCTION(1, "RDP1_A"),
1090 		MTK_FUNCTION(2, "CMDAT3"),
1091 		MTK_FUNCTION(3, "CMCSD3")
1092 	),
1093 	MTK_PIN(
1094 		PINCTRL_PIN(115, "RDN0_A"),
1095 		"H2", "mt8127",
1096 		MTK_EINT_FUNCTION(0, 116),
1097 		MTK_FUNCTION(0, "GPI115"),
1098 		MTK_FUNCTION(1, "RDN0_A"),
1099 		MTK_FUNCTION(2, "CMHSYNC")
1100 	),
1101 	MTK_PIN(
1102 		PINCTRL_PIN(116, "RDP0_A"),
1103 		"H3", "mt8127",
1104 		MTK_EINT_FUNCTION(0, 117),
1105 		MTK_FUNCTION(0, "GPI116"),
1106 		MTK_FUNCTION(1, "RDP0_A"),
1107 		MTK_FUNCTION(2, "CMVSYNC")
1108 	),
1109 	MTK_PIN(
1110 		PINCTRL_PIN(117, "CMDAT0"),
1111 		"G5", "mt8127",
1112 		MTK_EINT_FUNCTION(0, 118),
1113 		MTK_FUNCTION(0, "GPIO117"),
1114 		MTK_FUNCTION(1, "CMDAT0"),
1115 		MTK_FUNCTION(2, "CMCSD0"),
1116 		MTK_FUNCTION(3, "ANT_SEL2"),
1117 		MTK_FUNCTION(7, "DBG_MON_B[28]")
1118 	),
1119 	MTK_PIN(
1120 		PINCTRL_PIN(118, "CMDAT1"),
1121 		"G4", "mt8127",
1122 		MTK_EINT_FUNCTION(0, 119),
1123 		MTK_FUNCTION(0, "GPIO118"),
1124 		MTK_FUNCTION(1, "CMDAT1"),
1125 		MTK_FUNCTION(2, "CMCSD1"),
1126 		MTK_FUNCTION(3, "ANT_SEL3"),
1127 		MTK_FUNCTION(7, "DBG_MON_B[29]")
1128 	),
1129 	MTK_PIN(
1130 		PINCTRL_PIN(119, "CMMCLK"),
1131 		"F3", "mt8127",
1132 		MTK_EINT_FUNCTION(0, 120),
1133 		MTK_FUNCTION(0, "GPIO119"),
1134 		MTK_FUNCTION(1, "CMMCLK"),
1135 		MTK_FUNCTION(3, "ANT_SEL4"),
1136 		MTK_FUNCTION(7, "DBG_MON_B[30]")
1137 	),
1138 	MTK_PIN(
1139 		PINCTRL_PIN(120, "CMPCLK"),
1140 		"G6", "mt8127",
1141 		MTK_EINT_FUNCTION(0, 121),
1142 		MTK_FUNCTION(0, "GPIO120"),
1143 		MTK_FUNCTION(1, "CMPCLK"),
1144 		MTK_FUNCTION(2, "CMCSK"),
1145 		MTK_FUNCTION(3, "ANT_SEL5"),
1146 		MTK_FUNCTION(7, "DBG_MON_B[31]")
1147 	),
1148 	MTK_PIN(
1149 		PINCTRL_PIN(121, "MSDC1_CMD"),
1150 		"E3", "mt8127",
1151 		MTK_EINT_FUNCTION(0, 122),
1152 		MTK_FUNCTION(0, "GPIO121"),
1153 		MTK_FUNCTION(1, "MSDC1_CMD")
1154 	),
1155 	MTK_PIN(
1156 		PINCTRL_PIN(122, "MSDC1_CLK"),
1157 		"D1", "mt8127",
1158 		MTK_EINT_FUNCTION(0, 123),
1159 		MTK_FUNCTION(0, "GPIO122"),
1160 		MTK_FUNCTION(1, "MSDC1_CLK")
1161 	),
1162 	MTK_PIN(
1163 		PINCTRL_PIN(123, "MSDC1_DAT0"),
1164 		"D2", "mt8127",
1165 		MTK_EINT_FUNCTION(0, 124),
1166 		MTK_FUNCTION(0, "GPIO123"),
1167 		MTK_FUNCTION(1, "MSDC1_DAT0")
1168 	),
1169 	MTK_PIN(
1170 		PINCTRL_PIN(124, "MSDC1_DAT1"),
1171 		"D3", "mt8127",
1172 		MTK_EINT_FUNCTION(0, 125),
1173 		MTK_FUNCTION(0, "GPIO124"),
1174 		MTK_FUNCTION(1, "MSDC1_DAT1")
1175 	),
1176 	MTK_PIN(
1177 		PINCTRL_PIN(125, "MSDC1_DAT2"),
1178 		"F2", "mt8127",
1179 		MTK_EINT_FUNCTION(0, 126),
1180 		MTK_FUNCTION(0, "GPIO125"),
1181 		MTK_FUNCTION(1, "MSDC1_DAT2")
1182 	),
1183 	MTK_PIN(
1184 		PINCTRL_PIN(126, "MSDC1_DAT3"),
1185 		"E2", "mt8127",
1186 		MTK_EINT_FUNCTION(0, 127),
1187 		MTK_FUNCTION(0, "GPIO126"),
1188 		MTK_FUNCTION(1, "MSDC1_DAT3")
1189 	),
1190 	MTK_PIN(
1191 		PINCTRL_PIN(127, "MSDC0_DAT7"),
1192 		"C23", "mt8127",
1193 		MTK_EINT_FUNCTION(0, 128),
1194 		MTK_FUNCTION(0, "GPIO127"),
1195 		MTK_FUNCTION(1, "MSDC0_DAT7"),
1196 		MTK_FUNCTION(4, "NLD7")
1197 	),
1198 	MTK_PIN(
1199 		PINCTRL_PIN(128, "MSDC0_DAT6"),
1200 		"C24", "mt8127",
1201 		MTK_EINT_FUNCTION(0, 129),
1202 		MTK_FUNCTION(0, "GPIO128"),
1203 		MTK_FUNCTION(1, "MSDC0_DAT6"),
1204 		MTK_FUNCTION(4, "NLD6")
1205 	),
1206 	MTK_PIN(
1207 		PINCTRL_PIN(129, "MSDC0_DAT5"),
1208 		"D22", "mt8127",
1209 		MTK_EINT_FUNCTION(0, 130),
1210 		MTK_FUNCTION(0, "GPIO129"),
1211 		MTK_FUNCTION(1, "MSDC0_DAT5"),
1212 		MTK_FUNCTION(4, "NLD4")
1213 	),
1214 	MTK_PIN(
1215 		PINCTRL_PIN(130, "MSDC0_DAT4"),
1216 		"D24", "mt8127",
1217 		MTK_EINT_FUNCTION(0, 131),
1218 		MTK_FUNCTION(0, "GPIO130"),
1219 		MTK_FUNCTION(1, "MSDC0_DAT4"),
1220 		MTK_FUNCTION(4, "NLD3")
1221 	),
1222 	MTK_PIN(
1223 		PINCTRL_PIN(131, "MSDC0_RSTB"),
1224 		"F24", "mt8127",
1225 		MTK_EINT_FUNCTION(0, 132),
1226 		MTK_FUNCTION(0, "GPIO131"),
1227 		MTK_FUNCTION(1, "MSDC0_RSTB"),
1228 		MTK_FUNCTION(4, "NLD0")
1229 	),
1230 	MTK_PIN(
1231 		PINCTRL_PIN(132, "MSDC0_CMD"),
1232 		"G20", "mt8127",
1233 		MTK_EINT_FUNCTION(0, 133),
1234 		MTK_FUNCTION(0, "GPIO132"),
1235 		MTK_FUNCTION(1, "MSDC0_CMD"),
1236 		MTK_FUNCTION(4, "NALE")
1237 	),
1238 	MTK_PIN(
1239 		PINCTRL_PIN(133, "MSDC0_CLK"),
1240 		"G21", "mt8127",
1241 		MTK_EINT_FUNCTION(0, 134),
1242 		MTK_FUNCTION(0, "GPIO133"),
1243 		MTK_FUNCTION(1, "MSDC0_CLK"),
1244 		MTK_FUNCTION(4, "NWEB")
1245 	),
1246 	MTK_PIN(
1247 		PINCTRL_PIN(134, "MSDC0_DAT3"),
1248 		"D23", "mt8127",
1249 		MTK_EINT_FUNCTION(0, 135),
1250 		MTK_FUNCTION(0, "GPIO134"),
1251 		MTK_FUNCTION(1, "MSDC0_DAT3"),
1252 		MTK_FUNCTION(4, "NLD1")
1253 	),
1254 	MTK_PIN(
1255 		PINCTRL_PIN(135, "MSDC0_DAT2"),
1256 		"E22", "mt8127",
1257 		MTK_EINT_FUNCTION(0, 136),
1258 		MTK_FUNCTION(0, "GPIO135"),
1259 		MTK_FUNCTION(1, "MSDC0_DAT2"),
1260 		MTK_FUNCTION(4, "NLD5")
1261 	),
1262 	MTK_PIN(
1263 		PINCTRL_PIN(136, "MSDC0_DAT1"),
1264 		"E23", "mt8127",
1265 		MTK_EINT_FUNCTION(0, 137),
1266 		MTK_FUNCTION(0, "GPIO136"),
1267 		MTK_FUNCTION(1, "MSDC0_DAT1"),
1268 		MTK_FUNCTION(4, "NLD8")
1269 	),
1270 	MTK_PIN(
1271 		PINCTRL_PIN(137, "MSDC0_DAT0"),
1272 		"F22", "mt8127",
1273 		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1274 		MTK_FUNCTION(0, "GPIO137"),
1275 		MTK_FUNCTION(1, "MSDC0_DAT0"),
1276 		MTK_FUNCTION(4, "WATCHDOG"),
1277 		MTK_FUNCTION(5, "NLD2")
1278 	),
1279 	MTK_PIN(
1280 		PINCTRL_PIN(138, "CEC"),
1281 		"AE21", "mt8127",
1282 		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1283 		MTK_FUNCTION(0, "GPIO138"),
1284 		MTK_FUNCTION(1, "CEC")
1285 	),
1286 	MTK_PIN(
1287 		PINCTRL_PIN(139, "HTPLG"),
1288 		"AD21", "mt8127",
1289 		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1290 		MTK_FUNCTION(0, "GPIO139"),
1291 		MTK_FUNCTION(1, "HTPLG")
1292 	),
1293 	MTK_PIN(
1294 		PINCTRL_PIN(140, "HDMISCK"),
1295 		"AE22", "mt8127",
1296 		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1297 		MTK_FUNCTION(0, "GPIO140"),
1298 		MTK_FUNCTION(1, "HDMISCK")
1299 	),
1300 	MTK_PIN(
1301 		PINCTRL_PIN(141, "HDMISD"),
1302 		"AD22", "mt8127",
1303 		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1304 		MTK_FUNCTION(0, "GPIO141"),
1305 		MTK_FUNCTION(1, "HDMISD")
1306 	),
1307 	MTK_PIN(
1308 		PINCTRL_PIN(142, "EINT21"),
1309 		"J23", "mt8127",
1310 		MTK_EINT_FUNCTION(0, 21),
1311 		MTK_FUNCTION(0, "GPIO142"),
1312 		MTK_FUNCTION(1, "NRNB"),
1313 		MTK_FUNCTION(2, "ANT_SEL0"),
1314 		MTK_FUNCTION(7, "DBG_MON_B[32]")
1315 	),
1316 };
1317 
1318 #endif /* __PINCTRL_MTK_MT8127_H */
1319