2 * Copyright (c) 2014 MediaTek Inc.
3 * Author: Hongzhou.Yang <hongzhou.yang@mediatek.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __PINCTRL_MTK_MT8135_H
16 #define __PINCTRL_MTK_MT8135_H
18 #include <linux/pinctrl/pinctrl.h>
19 #include "pinctrl-mtk-common.h"
21 static const struct mtk_desc_pin mtk_pins_mt8135
[] = {
22 MTK_PIN(PINCTRL_PIN(0, "MSDC0_DAT7"),
24 MTK_EINT_FUNCTION(2, 49),
25 MTK_FUNCTION(0, "GPIO0"),
26 MTK_FUNCTION(1, "MSDC0_DAT7"),
27 MTK_FUNCTION(2, "EINT49"),
28 MTK_FUNCTION(3, "I2SOUT_DAT"),
29 MTK_FUNCTION(4, "DAC_DAT_OUT"),
30 MTK_FUNCTION(5, "PCM1_DO"),
31 MTK_FUNCTION(6, "SPI1_MO"),
32 MTK_FUNCTION(7, "NALE")
34 MTK_PIN(PINCTRL_PIN(1, "MSDC0_DAT6"),
36 MTK_EINT_FUNCTION(2, 48),
37 MTK_FUNCTION(0, "GPIO1"),
38 MTK_FUNCTION(1, "MSDC0_DAT6"),
39 MTK_FUNCTION(2, "EINT48"),
40 MTK_FUNCTION(3, "I2SIN_WS"),
41 MTK_FUNCTION(4, "DAC_WS"),
42 MTK_FUNCTION(5, "PCM1_WS"),
43 MTK_FUNCTION(6, "SPI1_CSN"),
44 MTK_FUNCTION(7, "NCLE")
46 MTK_PIN(PINCTRL_PIN(2, "MSDC0_DAT5"),
48 MTK_EINT_FUNCTION(2, 47),
49 MTK_FUNCTION(0, "GPIO2"),
50 MTK_FUNCTION(1, "MSDC0_DAT5"),
51 MTK_FUNCTION(2, "EINT47"),
52 MTK_FUNCTION(3, "I2SIN_CK"),
53 MTK_FUNCTION(4, "DAC_CK"),
54 MTK_FUNCTION(5, "PCM1_CK"),
55 MTK_FUNCTION(6, "SPI1_CLK"),
56 MTK_FUNCTION(7, "NLD4")
58 MTK_PIN(PINCTRL_PIN(3, "MSDC0_DAT4"),
60 MTK_EINT_FUNCTION(2, 46),
61 MTK_FUNCTION(0, "GPIO3"),
62 MTK_FUNCTION(1, "MSDC0_DAT4"),
63 MTK_FUNCTION(2, "EINT46"),
64 MTK_FUNCTION(3, "A_FUNC_CK"),
65 MTK_FUNCTION(6, "LSCE1B_2X"),
66 MTK_FUNCTION(7, "NLD5")
68 MTK_PIN(PINCTRL_PIN(4, "MSDC0_CMD"),
70 MTK_EINT_FUNCTION(2, 41),
71 MTK_FUNCTION(0, "GPIO4"),
72 MTK_FUNCTION(1, "MSDC0_CMD"),
73 MTK_FUNCTION(2, "EINT41"),
74 MTK_FUNCTION(3, "A_FUNC_DOUT[0]"),
75 MTK_FUNCTION(5, "USB_TEST_IO[0]"),
76 MTK_FUNCTION(6, "LRSTB_2X"),
77 MTK_FUNCTION(7, "NRNB")
79 MTK_PIN(PINCTRL_PIN(5, "MSDC0_CLK"),
81 MTK_EINT_FUNCTION(2, 40),
82 MTK_FUNCTION(0, "GPIO5"),
83 MTK_FUNCTION(1, "MSDC0_CLK"),
84 MTK_FUNCTION(2, "EINT40"),
85 MTK_FUNCTION(3, "A_FUNC_DOUT[1]"),
86 MTK_FUNCTION(5, "USB_TEST_IO[1]"),
87 MTK_FUNCTION(6, "LPTE"),
88 MTK_FUNCTION(7, "NREB")
90 MTK_PIN(PINCTRL_PIN(6, "MSDC0_DAT3"),
92 MTK_EINT_FUNCTION(2, 45),
93 MTK_FUNCTION(0, "GPIO6"),
94 MTK_FUNCTION(1, "MSDC0_DAT3"),
95 MTK_FUNCTION(2, "EINT45"),
96 MTK_FUNCTION(3, "A_FUNC_DOUT[2]"),
97 MTK_FUNCTION(5, "USB_TEST_IO[2]"),
98 MTK_FUNCTION(6, "LSCE0B_2X"),
99 MTK_FUNCTION(7, "NLD7")
101 MTK_PIN(PINCTRL_PIN(7, "MSDC0_DAT2"),
103 MTK_EINT_FUNCTION(2, 44),
104 MTK_FUNCTION(0, "GPIO7"),
105 MTK_FUNCTION(1, "MSDC0_DAT2"),
106 MTK_FUNCTION(2, "EINT44"),
107 MTK_FUNCTION(3, "A_FUNC_DOUT[3]"),
108 MTK_FUNCTION(5, "USB_TEST_IO[3]"),
109 MTK_FUNCTION(6, "LSA0_2X"),
110 MTK_FUNCTION(7, "NLD14")
112 MTK_PIN(PINCTRL_PIN(8, "MSDC0_DAT1"),
114 MTK_EINT_FUNCTION(2, 43),
115 MTK_FUNCTION(0, "GPIO8"),
116 MTK_FUNCTION(1, "MSDC0_DAT1"),
117 MTK_FUNCTION(2, "EINT43"),
118 MTK_FUNCTION(5, "USB_TEST_IO[4]"),
119 MTK_FUNCTION(6, "LSCK_2X"),
120 MTK_FUNCTION(7, "NLD11")
122 MTK_PIN(PINCTRL_PIN(9, "MSDC0_DAT0"),
124 MTK_EINT_FUNCTION(2, 42),
125 MTK_FUNCTION(0, "GPIO9"),
126 MTK_FUNCTION(1, "MSDC0_DAT0"),
127 MTK_FUNCTION(2, "EINT42"),
128 MTK_FUNCTION(5, "USB_TEST_IO[5]"),
129 MTK_FUNCTION(6, "LSDA_2X")
131 MTK_PIN(PINCTRL_PIN(10, "NCEB0"),
133 MTK_EINT_FUNCTION(2, 139),
134 MTK_FUNCTION(0, "GPIO10"),
135 MTK_FUNCTION(1, "NCEB0"),
136 MTK_FUNCTION(2, "EINT139"),
137 MTK_FUNCTION(7, "TESTA_OUT4")
139 MTK_PIN(PINCTRL_PIN(11, "NCEB1"),
141 MTK_EINT_FUNCTION(2, 140),
142 MTK_FUNCTION(0, "GPIO11"),
143 MTK_FUNCTION(1, "NCEB1"),
144 MTK_FUNCTION(2, "EINT140"),
145 MTK_FUNCTION(6, "USB_DRVVBUS"),
146 MTK_FUNCTION(7, "TESTA_OUT5")
148 MTK_PIN(PINCTRL_PIN(12, "NRNB"),
150 MTK_EINT_FUNCTION(2, 141),
151 MTK_FUNCTION(0, "GPIO12"),
152 MTK_FUNCTION(1, "NRNB"),
153 MTK_FUNCTION(2, "EINT141"),
154 MTK_FUNCTION(3, "A_FUNC_DOUT[4]"),
155 MTK_FUNCTION(7, "TESTA_OUT6")
157 MTK_PIN(PINCTRL_PIN(13, "NCLE"),
159 MTK_EINT_FUNCTION(2, 142),
160 MTK_FUNCTION(0, "GPIO13"),
161 MTK_FUNCTION(1, "NCLE"),
162 MTK_FUNCTION(2, "EINT142"),
163 MTK_FUNCTION(3, "A_FUNC_DOUT[5]"),
164 MTK_FUNCTION(4, "CM2PDN_1X"),
165 MTK_FUNCTION(6, "NALE"),
166 MTK_FUNCTION(7, "TESTA_OUT7")
168 MTK_PIN(PINCTRL_PIN(14, "NALE"),
170 MTK_EINT_FUNCTION(2, 143),
171 MTK_FUNCTION(0, "GPIO14"),
172 MTK_FUNCTION(1, "NALE"),
173 MTK_FUNCTION(2, "EINT143"),
174 MTK_FUNCTION(3, "A_FUNC_DOUT[6]"),
175 MTK_FUNCTION(4, "CM2MCLK_1X"),
176 MTK_FUNCTION(5, "IRDA_RXD"),
177 MTK_FUNCTION(6, "NCLE"),
178 MTK_FUNCTION(7, "TESTA_OUT8")
180 MTK_PIN(PINCTRL_PIN(15, "NREB"),
182 MTK_EINT_FUNCTION(2, 144),
183 MTK_FUNCTION(0, "GPIO15"),
184 MTK_FUNCTION(1, "NREB"),
185 MTK_FUNCTION(2, "EINT144"),
186 MTK_FUNCTION(3, "A_FUNC_DOUT[7]"),
187 MTK_FUNCTION(4, "CM2RST_1X"),
188 MTK_FUNCTION(5, "IRDA_TXD"),
189 MTK_FUNCTION(7, "TESTA_OUT9")
191 MTK_PIN(PINCTRL_PIN(16, "NWEB"),
193 MTK_EINT_FUNCTION(2, 145),
194 MTK_FUNCTION(0, "GPIO16"),
195 MTK_FUNCTION(1, "NWEB"),
196 MTK_FUNCTION(2, "EINT145"),
197 MTK_FUNCTION(3, "A_FUNC_DIN[0]"),
198 MTK_FUNCTION(4, "CM2PCLK_1X"),
199 MTK_FUNCTION(5, "IRDA_PDN"),
200 MTK_FUNCTION(7, "TESTA_OUT10")
202 MTK_PIN(PINCTRL_PIN(17, "NLD0"),
204 MTK_EINT_FUNCTION(2, 146),
205 MTK_FUNCTION(0, "GPIO17"),
206 MTK_FUNCTION(1, "NLD0"),
207 MTK_FUNCTION(2, "EINT146"),
208 MTK_FUNCTION(3, "A_FUNC_DIN[1]"),
209 MTK_FUNCTION(4, "CM2DAT_1X[0]"),
210 MTK_FUNCTION(5, "I2SIN_CK"),
211 MTK_FUNCTION(6, "DAC_CK"),
212 MTK_FUNCTION(7, "TESTA_OUT11")
214 MTK_PIN(PINCTRL_PIN(18, "NLD1"),
216 MTK_EINT_FUNCTION(2, 147),
217 MTK_FUNCTION(0, "GPIO18"),
218 MTK_FUNCTION(1, "NLD1"),
219 MTK_FUNCTION(2, "EINT147"),
220 MTK_FUNCTION(3, "A_FUNC_DIN[2]"),
221 MTK_FUNCTION(4, "CM2DAT_1X[1]"),
222 MTK_FUNCTION(5, "I2SIN_WS"),
223 MTK_FUNCTION(6, "DAC_WS"),
224 MTK_FUNCTION(7, "TESTA_OUT12")
226 MTK_PIN(PINCTRL_PIN(19, "NLD2"),
228 MTK_EINT_FUNCTION(2, 148),
229 MTK_FUNCTION(0, "GPIO19"),
230 MTK_FUNCTION(1, "NLD2"),
231 MTK_FUNCTION(2, "EINT148"),
232 MTK_FUNCTION(3, "A_FUNC_DIN[3]"),
233 MTK_FUNCTION(4, "CM2DAT_1X[2]"),
234 MTK_FUNCTION(5, "I2SOUT_DAT"),
235 MTK_FUNCTION(6, "DAC_DAT_OUT"),
236 MTK_FUNCTION(7, "TESTA_OUT13")
238 MTK_PIN(PINCTRL_PIN(20, "NLD3"),
240 MTK_EINT_FUNCTION(2, 149),
241 MTK_FUNCTION(0, "GPIO20"),
242 MTK_FUNCTION(1, "NLD3"),
243 MTK_FUNCTION(2, "EINT149"),
244 MTK_FUNCTION(3, "A_FUNC_DIN[4]"),
245 MTK_FUNCTION(4, "CM2DAT_1X[3]"),
246 MTK_FUNCTION(7, "TESTA_OUT14")
248 MTK_PIN(PINCTRL_PIN(21, "NLD4"),
250 MTK_EINT_FUNCTION(2, 150),
251 MTK_FUNCTION(0, "GPIO21"),
252 MTK_FUNCTION(1, "NLD4"),
253 MTK_FUNCTION(2, "EINT150"),
254 MTK_FUNCTION(3, "A_FUNC_DIN[5]"),
255 MTK_FUNCTION(4, "CM2DAT_1X[4]"),
256 MTK_FUNCTION(7, "TESTA_OUT15")
258 MTK_PIN(PINCTRL_PIN(22, "NLD5"),
260 MTK_EINT_FUNCTION(2, 151),
261 MTK_FUNCTION(0, "GPIO22"),
262 MTK_FUNCTION(1, "NLD5"),
263 MTK_FUNCTION(2, "EINT151"),
264 MTK_FUNCTION(3, "A_FUNC_DIN[6]"),
265 MTK_FUNCTION(4, "CM2DAT_1X[5]"),
266 MTK_FUNCTION(7, "TESTA_OUT16")
268 MTK_PIN(PINCTRL_PIN(23, "NLD6"),
270 MTK_EINT_FUNCTION(2, 152),
271 MTK_FUNCTION(0, "GPIO23"),
272 MTK_FUNCTION(1, "NLD6"),
273 MTK_FUNCTION(2, "EINT152"),
274 MTK_FUNCTION(3, "A_FUNC_DIN[7]"),
275 MTK_FUNCTION(4, "CM2DAT_1X[6]"),
276 MTK_FUNCTION(7, "TESTA_OUT17")
278 MTK_PIN(PINCTRL_PIN(24, "NLD7"),
280 MTK_EINT_FUNCTION(2, 153),
281 MTK_FUNCTION(0, "GPIO24"),
282 MTK_FUNCTION(1, "NLD7"),
283 MTK_FUNCTION(2, "EINT153"),
284 MTK_FUNCTION(3, "A_FUNC_DIN[8]"),
285 MTK_FUNCTION(4, "CM2DAT_1X[7]"),
286 MTK_FUNCTION(7, "TESTA_OUT18")
288 MTK_PIN(PINCTRL_PIN(25, "NLD8"),
290 MTK_EINT_FUNCTION(2, 154),
291 MTK_FUNCTION(0, "GPIO25"),
292 MTK_FUNCTION(1, "NLD8"),
293 MTK_FUNCTION(2, "EINT154"),
294 MTK_FUNCTION(4, "CM2DAT_1X[8]")
296 MTK_PIN(PINCTRL_PIN(26, "NLD9"),
298 MTK_EINT_FUNCTION(2, 155),
299 MTK_FUNCTION(0, "GPIO26"),
300 MTK_FUNCTION(1, "NLD9"),
301 MTK_FUNCTION(2, "EINT155"),
302 MTK_FUNCTION(4, "CM2DAT_1X[9]"),
303 MTK_FUNCTION(5, "PWM1")
305 MTK_PIN(PINCTRL_PIN(27, "NLD10"),
307 MTK_EINT_FUNCTION(2, 156),
308 MTK_FUNCTION(0, "GPIO27"),
309 MTK_FUNCTION(1, "NLD10"),
310 MTK_FUNCTION(2, "EINT156"),
311 MTK_FUNCTION(4, "CM2VSYNC_1X"),
312 MTK_FUNCTION(5, "PWM2")
314 MTK_PIN(PINCTRL_PIN(28, "NLD11"),
316 MTK_EINT_FUNCTION(2, 157),
317 MTK_FUNCTION(0, "GPIO28"),
318 MTK_FUNCTION(1, "NLD11"),
319 MTK_FUNCTION(2, "EINT157"),
320 MTK_FUNCTION(4, "CM2HSYNC_1X"),
321 MTK_FUNCTION(5, "PWM3")
323 MTK_PIN(PINCTRL_PIN(29, "NLD12"),
325 MTK_EINT_FUNCTION(2, 158),
326 MTK_FUNCTION(0, "GPIO29"),
327 MTK_FUNCTION(1, "NLD12"),
328 MTK_FUNCTION(2, "EINT158"),
329 MTK_FUNCTION(3, "I2SIN_CK"),
330 MTK_FUNCTION(4, "DAC_CK"),
331 MTK_FUNCTION(5, "PCM1_CK")
333 MTK_PIN(PINCTRL_PIN(30, "NLD13"),
335 MTK_EINT_FUNCTION(2, 159),
336 MTK_FUNCTION(0, "GPIO30"),
337 MTK_FUNCTION(1, "NLD13"),
338 MTK_FUNCTION(2, "EINT159"),
339 MTK_FUNCTION(3, "I2SIN_WS"),
340 MTK_FUNCTION(4, "DAC_WS"),
341 MTK_FUNCTION(5, "PCM1_WS")
343 MTK_PIN(PINCTRL_PIN(31, "NLD14"),
345 MTK_EINT_FUNCTION(2, 160),
346 MTK_FUNCTION(0, "GPIO31"),
347 MTK_FUNCTION(1, "NLD14"),
348 MTK_FUNCTION(2, "EINT160"),
349 MTK_FUNCTION(3, "I2SOUT_DAT"),
350 MTK_FUNCTION(4, "DAC_DAT_OUT"),
351 MTK_FUNCTION(5, "PCM1_DO")
353 MTK_PIN(PINCTRL_PIN(32, "NLD15"),
355 MTK_EINT_FUNCTION(2, 161),
356 MTK_FUNCTION(0, "GPIO32"),
357 MTK_FUNCTION(1, "NLD15"),
358 MTK_FUNCTION(2, "EINT161"),
359 MTK_FUNCTION(3, "DISP_PWM"),
360 MTK_FUNCTION(4, "PWM4"),
361 MTK_FUNCTION(5, "PCM1_DI")
363 MTK_PIN(PINCTRL_PIN(33, "MSDC0_RSTB"),
365 MTK_EINT_FUNCTION(2, 50),
366 MTK_FUNCTION(0, "GPIO33"),
367 MTK_FUNCTION(1, "MSDC0_RSTB"),
368 MTK_FUNCTION(2, "EINT50"),
369 MTK_FUNCTION(3, "I2SIN_DAT"),
370 MTK_FUNCTION(5, "PCM1_DI"),
371 MTK_FUNCTION(6, "SPI1_MI"),
372 MTK_FUNCTION(7, "NLD10")
374 MTK_PIN(PINCTRL_PIN(34, "IDDIG"),
376 MTK_EINT_FUNCTION(2, 34),
377 MTK_FUNCTION(0, "GPIO34"),
378 MTK_FUNCTION(1, "IDDIG"),
379 MTK_FUNCTION(2, "EINT34")
381 MTK_PIN(PINCTRL_PIN(35, "SCL3"),
383 MTK_EINT_FUNCTION(2, 96),
384 MTK_FUNCTION(0, "GPIO35"),
385 MTK_FUNCTION(1, "SCL3"),
386 MTK_FUNCTION(2, "EINT96"),
387 MTK_FUNCTION(3, "CLKM6"),
388 MTK_FUNCTION(4, "PWM6")
390 MTK_PIN(PINCTRL_PIN(36, "SDA3"),
392 MTK_EINT_FUNCTION(2, 97),
393 MTK_FUNCTION(0, "GPIO36"),
394 MTK_FUNCTION(1, "SDA3"),
395 MTK_FUNCTION(2, "EINT97")
397 MTK_PIN(PINCTRL_PIN(37, "AUD_CLK_MOSI"),
399 MTK_EINT_FUNCTION(4, 19),
400 MTK_FUNCTION(0, "GPIO37"),
401 MTK_FUNCTION(1, "AUD_CLK"),
402 MTK_FUNCTION(2, "ADC_CK"),
403 MTK_FUNCTION(3, " HDMI_SDATA0"),
404 MTK_FUNCTION(4, "EINT19"),
405 MTK_FUNCTION(5, "USB_TEST_IO[6]"),
406 MTK_FUNCTION(7, "TESTA_OUT19")
408 MTK_PIN(PINCTRL_PIN(38, "AUD_DAT_MOSI"),
410 MTK_EINT_FUNCTION(4, 21),
411 MTK_FUNCTION(0, "GPIO38"),
412 MTK_FUNCTION(1, "AUD_DAT_MOSI"),
413 MTK_FUNCTION(2, "ADC_WS"),
414 MTK_FUNCTION(3, "AUD_DAT_MISO"),
415 MTK_FUNCTION(4, "EINT21"),
416 MTK_FUNCTION(5, "USB_TEST_IO[7]"),
417 MTK_FUNCTION(7, "TESTA_OUT20")
419 MTK_PIN(PINCTRL_PIN(39, "AUD_DAT_MISO"),
421 MTK_EINT_FUNCTION(4, 20),
422 MTK_FUNCTION(0, "GPIO39"),
423 MTK_FUNCTION(1, "AUD_DAT_MISO"),
424 MTK_FUNCTION(2, "ADC_DAT_IN"),
425 MTK_FUNCTION(3, "AUD_DAT_MOSI"),
426 MTK_FUNCTION(4, "EINT20"),
427 MTK_FUNCTION(5, "USB_TEST_IO[8]"),
428 MTK_FUNCTION(7, "TESTA_OUT21")
430 MTK_PIN(PINCTRL_PIN(40, "DAC_CLK"),
432 MTK_EINT_FUNCTION(2, 22),
433 MTK_FUNCTION(0, "GPIO40"),
434 MTK_FUNCTION(1, "DAC_CK"),
435 MTK_FUNCTION(2, "EINT22"),
436 MTK_FUNCTION(3, " HDMI_SDATA1"),
437 MTK_FUNCTION(5, "USB_TEST_IO[9]"),
438 MTK_FUNCTION(7, "TESTA_OUT22")
440 MTK_PIN(PINCTRL_PIN(41, "DAC_WS"),
442 MTK_EINT_FUNCTION(2, 24),
443 MTK_FUNCTION(0, "GPIO41"),
444 MTK_FUNCTION(1, "DAC_WS"),
445 MTK_FUNCTION(2, "EINT24"),
446 MTK_FUNCTION(3, " HDMI_SDATA2"),
447 MTK_FUNCTION(5, "USB_TEST_IO[10]"),
448 MTK_FUNCTION(7, "TESTA_OUT23")
450 MTK_PIN(PINCTRL_PIN(42, "DAC_DAT_OUT"),
452 MTK_EINT_FUNCTION(2, 23),
453 MTK_FUNCTION(0, "GPIO42"),
454 MTK_FUNCTION(1, "DAC_DAT_OUT"),
455 MTK_FUNCTION(2, "EINT23"),
456 MTK_FUNCTION(3, " HDMI_SDATA3"),
457 MTK_FUNCTION(5, "USB_TEST_IO[11]"),
458 MTK_FUNCTION(7, "TESTA_OUT24")
460 MTK_PIN(PINCTRL_PIN(43, "PWRAP_SPI0_MO"),
462 MTK_EINT_FUNCTION(2, 29),
463 MTK_FUNCTION(0, "GPIO43"),
464 MTK_FUNCTION(1, "PWRAP_SPIDI"),
465 MTK_FUNCTION(2, "EINT29")
467 MTK_PIN(PINCTRL_PIN(44, "PWRAP_SPI0_MI"),
469 MTK_EINT_FUNCTION(2, 28),
470 MTK_FUNCTION(0, "GPIO44"),
471 MTK_FUNCTION(1, "PWRAP_SPIDO"),
472 MTK_FUNCTION(2, "EINT28")
474 MTK_PIN(PINCTRL_PIN(45, "PWRAP_SPI0_CSN"),
476 MTK_EINT_FUNCTION(2, 27),
477 MTK_FUNCTION(0, "GPIO45"),
478 MTK_FUNCTION(1, "PWRAP_SPICS_B_I"),
479 MTK_FUNCTION(2, "EINT27")
481 MTK_PIN(PINCTRL_PIN(46, "PWRAP_SPI0_CLK"),
483 MTK_EINT_FUNCTION(2, 26),
484 MTK_FUNCTION(0, "GPIO46"),
485 MTK_FUNCTION(1, "PWRAP_SPICK_I"),
486 MTK_FUNCTION(2, "EINT26")
488 MTK_PIN(PINCTRL_PIN(47, "PWRAP_EVENT"),
490 MTK_EINT_FUNCTION(2, 25),
491 MTK_FUNCTION(0, "GPIO47"),
492 MTK_FUNCTION(1, "PWRAP_EVENT_IN"),
493 MTK_FUNCTION(2, "EINT25"),
494 MTK_FUNCTION(7, "TESTA_OUT2")
496 MTK_PIN(PINCTRL_PIN(48, "RTC32K_CK"),
498 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
499 MTK_FUNCTION(0, "GPIO48"),
500 MTK_FUNCTION(1, "RTC32K_CK")
502 MTK_PIN(PINCTRL_PIN(49, "WATCHDOG"),
504 MTK_EINT_FUNCTION(2, 36),
505 MTK_FUNCTION(0, "GPIO49"),
506 MTK_FUNCTION(1, "WATCHDOG"),
507 MTK_FUNCTION(2, "EINT36")
509 MTK_PIN(PINCTRL_PIN(50, "SRCLKENA"),
511 MTK_EINT_FUNCTION(2, 38),
512 MTK_FUNCTION(0, "GPIO50"),
513 MTK_FUNCTION(1, "SRCLKENA"),
514 MTK_FUNCTION(2, "EINT38")
516 MTK_PIN(PINCTRL_PIN(51, "SRCVOLTEN"),
518 MTK_EINT_FUNCTION(2, 37),
519 MTK_FUNCTION(0, "GPIO51"),
520 MTK_FUNCTION(1, "SRCVOLTEN"),
521 MTK_FUNCTION(2, "EINT37")
523 MTK_PIN(PINCTRL_PIN(52, "EINT0"),
525 MTK_EINT_FUNCTION(1, 0),
526 MTK_FUNCTION(0, "GPIO52"),
527 MTK_FUNCTION(1, "EINT0"),
528 MTK_FUNCTION(2, "PWM1"),
529 MTK_FUNCTION(3, "CLKM0"),
530 MTK_FUNCTION(4, " SPDIF_OUT"),
531 MTK_FUNCTION(5, "USB_TEST_IO[12]"),
532 MTK_FUNCTION(7, "USB_SCL")
534 MTK_PIN(PINCTRL_PIN(53, "URXD2"),
536 MTK_EINT_FUNCTION(2, 83),
537 MTK_FUNCTION(0, "GPIO53"),
538 MTK_FUNCTION(1, "URXD2"),
539 MTK_FUNCTION(2, "EINT83"),
540 MTK_FUNCTION(4, " HDMI_LRCK"),
541 MTK_FUNCTION(5, "CLKM3"),
542 MTK_FUNCTION(7, "UTXD2")
544 MTK_PIN(PINCTRL_PIN(54, "UTXD2"),
546 MTK_EINT_FUNCTION(2, 82),
547 MTK_FUNCTION(0, "GPIO54"),
548 MTK_FUNCTION(1, "UTXD2"),
549 MTK_FUNCTION(2, "EINT82"),
550 MTK_FUNCTION(4, " HDMI_BCK_OUT"),
551 MTK_FUNCTION(5, "CLKM2"),
552 MTK_FUNCTION(7, "URXD2")
554 MTK_PIN(PINCTRL_PIN(55, "UCTS2"),
556 MTK_EINT_FUNCTION(2, 84),
557 MTK_FUNCTION(0, "GPIO55"),
558 MTK_FUNCTION(1, "UCTS2"),
559 MTK_FUNCTION(2, "EINT84"),
560 MTK_FUNCTION(5, "PWM1"),
561 MTK_FUNCTION(7, "URTS2")
563 MTK_PIN(PINCTRL_PIN(56, "URTS2"),
565 MTK_EINT_FUNCTION(2, 85),
566 MTK_FUNCTION(0, "GPIO56"),
567 MTK_FUNCTION(1, "URTS2"),
568 MTK_FUNCTION(2, "EINT85"),
569 MTK_FUNCTION(5, "PWM2"),
570 MTK_FUNCTION(7, "UCTS2")
572 MTK_PIN(PINCTRL_PIN(57, "JTCK"),
574 MTK_EINT_FUNCTION(2, 188),
575 MTK_FUNCTION(0, "GPIO57"),
576 MTK_FUNCTION(1, "JTCK"),
577 MTK_FUNCTION(2, "EINT188"),
578 MTK_FUNCTION(3, "DSP1_ICK")
580 MTK_PIN(PINCTRL_PIN(58, "JTDO"),
582 MTK_EINT_FUNCTION(2, 190),
583 MTK_FUNCTION(0, "GPIO58"),
584 MTK_FUNCTION(1, "JTDO"),
585 MTK_FUNCTION(2, "EINT190"),
586 MTK_FUNCTION(3, "DSP2_IMS")
588 MTK_PIN(PINCTRL_PIN(59, "JTRST_B"),
590 MTK_EINT_FUNCTION(2, 0),
591 MTK_FUNCTION(0, "GPIO59"),
592 MTK_FUNCTION(1, "JTRST_B"),
593 MTK_FUNCTION(2, "EINT0"),
594 MTK_FUNCTION(3, "DSP2_ICK")
596 MTK_PIN(PINCTRL_PIN(60, "JTDI"),
598 MTK_EINT_FUNCTION(2, 189),
599 MTK_FUNCTION(0, "GPIO60"),
600 MTK_FUNCTION(1, "JTDI"),
601 MTK_FUNCTION(2, "EINT189"),
602 MTK_FUNCTION(3, "DSP1_IMS")
604 MTK_PIN(PINCTRL_PIN(61, "JRTCK"),
606 MTK_EINT_FUNCTION(2, 187),
607 MTK_FUNCTION(0, "GPIO61"),
608 MTK_FUNCTION(1, "JRTCK"),
609 MTK_FUNCTION(2, "EINT187"),
610 MTK_FUNCTION(3, "DSP1_ID")
612 MTK_PIN(PINCTRL_PIN(62, "JTMS"),
614 MTK_EINT_FUNCTION(2, 191),
615 MTK_FUNCTION(0, "GPIO62"),
616 MTK_FUNCTION(1, "JTMS"),
617 MTK_FUNCTION(2, "EINT191"),
618 MTK_FUNCTION(3, "DSP2_ID")
620 MTK_PIN(PINCTRL_PIN(63, "MSDC1_INSI"),
622 MTK_EINT_FUNCTION(1, 15),
623 MTK_FUNCTION(0, "GPIO63"),
624 MTK_FUNCTION(1, "MSDC1_INSI"),
625 MTK_FUNCTION(3, "SCL5"),
626 MTK_FUNCTION(4, "PWM6"),
627 MTK_FUNCTION(5, "CLKM5"),
628 MTK_FUNCTION(7, "TESTB_OUT6")
630 MTK_PIN(PINCTRL_PIN(64, "MSDC1_SDWPI"),
632 MTK_EINT_FUNCTION(2, 58),
633 MTK_FUNCTION(0, "GPIO64"),
634 MTK_FUNCTION(1, "MSDC1_SDWPI"),
635 MTK_FUNCTION(2, "EINT58"),
636 MTK_FUNCTION(3, "SDA5"),
637 MTK_FUNCTION(4, "PWM7"),
638 MTK_FUNCTION(5, "CLKM6"),
639 MTK_FUNCTION(7, "TESTB_OUT7")
641 MTK_PIN(PINCTRL_PIN(65, "MSDC2_INSI"),
643 MTK_EINT_FUNCTION(1, 14),
644 MTK_FUNCTION(0, "GPIO65"),
645 MTK_FUNCTION(1, "MSDC2_INSI"),
646 MTK_FUNCTION(5, "USB_TEST_IO[27]"),
647 MTK_FUNCTION(7, "TESTA_OUT3")
649 MTK_PIN(PINCTRL_PIN(66, "MSDC2_SDWPI"),
651 MTK_EINT_FUNCTION(2, 66),
652 MTK_FUNCTION(0, "GPIO66"),
653 MTK_FUNCTION(1, "MSDC2_SDWPI"),
654 MTK_FUNCTION(2, "EINT66"),
655 MTK_FUNCTION(5, "USB_TEST_IO[28]")
657 MTK_PIN(PINCTRL_PIN(67, "URXD4"),
659 MTK_EINT_FUNCTION(2, 89),
660 MTK_FUNCTION(0, "GPIO67"),
661 MTK_FUNCTION(1, "URXD4"),
662 MTK_FUNCTION(2, "EINT89"),
663 MTK_FUNCTION(3, "URXD1"),
664 MTK_FUNCTION(6, "UTXD4"),
665 MTK_FUNCTION(7, "TESTB_OUT10")
667 MTK_PIN(PINCTRL_PIN(68, "UTXD4"),
669 MTK_EINT_FUNCTION(2, 88),
670 MTK_FUNCTION(0, "GPIO68"),
671 MTK_FUNCTION(1, "UTXD4"),
672 MTK_FUNCTION(2, "EINT88"),
673 MTK_FUNCTION(3, "UTXD1"),
674 MTK_FUNCTION(6, "URXD4"),
675 MTK_FUNCTION(7, "TESTB_OUT11")
677 MTK_PIN(PINCTRL_PIN(69, "URXD1"),
679 MTK_EINT_FUNCTION(2, 79),
680 MTK_FUNCTION(0, "GPIO69"),
681 MTK_FUNCTION(1, "URXD1"),
682 MTK_FUNCTION(2, "EINT79"),
683 MTK_FUNCTION(3, "URXD4"),
684 MTK_FUNCTION(6, "UTXD1"),
685 MTK_FUNCTION(7, "TESTB_OUT24")
687 MTK_PIN(PINCTRL_PIN(70, "UTXD1"),
689 MTK_EINT_FUNCTION(2, 78),
690 MTK_FUNCTION(0, "GPIO70"),
691 MTK_FUNCTION(1, "UTXD1"),
692 MTK_FUNCTION(2, "EINT78"),
693 MTK_FUNCTION(3, "UTXD4"),
694 MTK_FUNCTION(6, "URXD1"),
695 MTK_FUNCTION(7, "TESTB_OUT25")
697 MTK_PIN(PINCTRL_PIN(71, "UCTS1"),
699 MTK_EINT_FUNCTION(2, 80),
700 MTK_FUNCTION(0, "GPIO71"),
701 MTK_FUNCTION(1, "UCTS1"),
702 MTK_FUNCTION(2, "EINT80"),
703 MTK_FUNCTION(5, "CLKM0"),
704 MTK_FUNCTION(6, "URTS1"),
705 MTK_FUNCTION(7, "TESTB_OUT31")
707 MTK_PIN(PINCTRL_PIN(72, "URTS1"),
709 MTK_EINT_FUNCTION(2, 81),
710 MTK_FUNCTION(0, "GPIO72"),
711 MTK_FUNCTION(1, "URTS1"),
712 MTK_FUNCTION(2, "EINT81"),
713 MTK_FUNCTION(5, "CLKM1"),
714 MTK_FUNCTION(6, "UCTS1"),
715 MTK_FUNCTION(7, "TESTB_OUT21")
717 MTK_PIN(PINCTRL_PIN(73, "PWM1"),
719 MTK_EINT_FUNCTION(2, 73),
720 MTK_FUNCTION(0, "GPIO73"),
721 MTK_FUNCTION(1, "PWM1"),
722 MTK_FUNCTION(2, "EINT73"),
723 MTK_FUNCTION(5, "USB_DRVVBUS"),
724 MTK_FUNCTION(6, "DISP_PWM"),
725 MTK_FUNCTION(7, "TESTB_OUT8")
727 MTK_PIN(PINCTRL_PIN(74, "PWM2"),
729 MTK_EINT_FUNCTION(2, 74),
730 MTK_FUNCTION(0, "GPIO74"),
731 MTK_FUNCTION(1, "PWM2"),
732 MTK_FUNCTION(2, "EINT74"),
733 MTK_FUNCTION(3, "DPI33_CK"),
734 MTK_FUNCTION(4, "PWM5"),
735 MTK_FUNCTION(5, "URXD2"),
736 MTK_FUNCTION(6, "DISP_PWM"),
737 MTK_FUNCTION(7, "TESTB_OUT9")
739 MTK_PIN(PINCTRL_PIN(75, "PWM3"),
741 MTK_EINT_FUNCTION(2, 75),
742 MTK_FUNCTION(0, "GPIO75"),
743 MTK_FUNCTION(1, "PWM3"),
744 MTK_FUNCTION(2, "EINT75"),
745 MTK_FUNCTION(3, "DPI33_D0"),
746 MTK_FUNCTION(4, "PWM6"),
747 MTK_FUNCTION(5, "UTXD2"),
748 MTK_FUNCTION(6, "DISP_PWM"),
749 MTK_FUNCTION(7, "TESTB_OUT12")
751 MTK_PIN(PINCTRL_PIN(76, "PWM4"),
753 MTK_EINT_FUNCTION(2, 76),
754 MTK_FUNCTION(0, "GPIO76"),
755 MTK_FUNCTION(1, "PWM4"),
756 MTK_FUNCTION(2, "EINT76"),
757 MTK_FUNCTION(3, "DPI33_D1"),
758 MTK_FUNCTION(4, "PWM7"),
759 MTK_FUNCTION(6, "DISP_PWM"),
760 MTK_FUNCTION(7, "TESTB_OUT13")
762 MTK_PIN(PINCTRL_PIN(77, "MSDC2_DAT2"),
764 MTK_EINT_FUNCTION(2, 63),
765 MTK_FUNCTION(0, "GPIO77"),
766 MTK_FUNCTION(1, "MSDC2_DAT2"),
767 MTK_FUNCTION(2, "EINT63"),
768 MTK_FUNCTION(4, "DSP2_IMS"),
769 MTK_FUNCTION(6, "DPI33_D6"),
770 MTK_FUNCTION(7, "TESTA_OUT25")
772 MTK_PIN(PINCTRL_PIN(78, "MSDC2_DAT3"),
774 MTK_EINT_FUNCTION(2, 64),
775 MTK_FUNCTION(0, "GPIO78"),
776 MTK_FUNCTION(1, "MSDC2_DAT3"),
777 MTK_FUNCTION(2, "EINT64"),
778 MTK_FUNCTION(4, "DSP2_ID"),
779 MTK_FUNCTION(6, "DPI33_D7"),
780 MTK_FUNCTION(7, "TESTA_OUT26")
782 MTK_PIN(PINCTRL_PIN(79, "MSDC2_CMD"),
784 MTK_EINT_FUNCTION(2, 60),
785 MTK_FUNCTION(0, "GPIO79"),
786 MTK_FUNCTION(1, "MSDC2_CMD"),
787 MTK_FUNCTION(2, "EINT60"),
788 MTK_FUNCTION(4, "DSP1_IMS"),
789 MTK_FUNCTION(5, "PCM1_WS"),
790 MTK_FUNCTION(6, "DPI33_D3"),
791 MTK_FUNCTION(7, "TESTA_OUT0")
793 MTK_PIN(PINCTRL_PIN(80, "MSDC2_CLK"),
795 MTK_EINT_FUNCTION(2, 59),
796 MTK_FUNCTION(0, "GPIO80"),
797 MTK_FUNCTION(1, "MSDC2_CLK"),
798 MTK_FUNCTION(2, "EINT59"),
799 MTK_FUNCTION(4, "DSP1_ICK"),
800 MTK_FUNCTION(5, "PCM1_CK"),
801 MTK_FUNCTION(6, "DPI33_D2"),
802 MTK_FUNCTION(7, "TESTA_OUT1")
804 MTK_PIN(PINCTRL_PIN(81, "MSDC2_DAT1"),
806 MTK_EINT_FUNCTION(2, 62),
807 MTK_FUNCTION(0, "GPIO81"),
808 MTK_FUNCTION(1, "MSDC2_DAT1"),
809 MTK_FUNCTION(2, "EINT62"),
810 MTK_FUNCTION(4, "DSP2_ICK"),
811 MTK_FUNCTION(5, "PCM1_DO"),
812 MTK_FUNCTION(6, "DPI33_D5")
814 MTK_PIN(PINCTRL_PIN(82, "MSDC2_DAT0"),
816 MTK_EINT_FUNCTION(2, 61),
817 MTK_FUNCTION(0, "GPIO82"),
818 MTK_FUNCTION(1, "MSDC2_DAT0"),
819 MTK_FUNCTION(2, "EINT61"),
820 MTK_FUNCTION(4, "DSP1_ID"),
821 MTK_FUNCTION(5, "PCM1_DI"),
822 MTK_FUNCTION(6, "DPI33_D4")
824 MTK_PIN(PINCTRL_PIN(83, "MSDC1_DAT0"),
826 MTK_EINT_FUNCTION(2, 53),
827 MTK_FUNCTION(0, "GPIO83"),
828 MTK_FUNCTION(1, "MSDC1_DAT0"),
829 MTK_FUNCTION(2, "EINT53"),
830 MTK_FUNCTION(3, "SCL1"),
831 MTK_FUNCTION(4, "PWM2"),
832 MTK_FUNCTION(5, "CLKM1"),
833 MTK_FUNCTION(7, "TESTB_OUT2")
835 MTK_PIN(PINCTRL_PIN(84, "MSDC1_DAT1"),
837 MTK_EINT_FUNCTION(2, 54),
838 MTK_FUNCTION(0, "GPIO84"),
839 MTK_FUNCTION(1, "MSDC1_DAT1"),
840 MTK_FUNCTION(2, "EINT54"),
841 MTK_FUNCTION(3, "SDA1"),
842 MTK_FUNCTION(4, "PWM3"),
843 MTK_FUNCTION(5, "CLKM2"),
844 MTK_FUNCTION(7, "TESTB_OUT3")
846 MTK_PIN(PINCTRL_PIN(85, "MSDC1_CMD"),
848 MTK_EINT_FUNCTION(2, 52),
849 MTK_FUNCTION(0, "GPIO85"),
850 MTK_FUNCTION(1, "MSDC1_CMD"),
851 MTK_FUNCTION(2, "EINT52"),
852 MTK_FUNCTION(3, "SDA0"),
853 MTK_FUNCTION(4, "PWM1"),
854 MTK_FUNCTION(5, "CLKM0"),
855 MTK_FUNCTION(7, "TESTB_OUT1")
857 MTK_PIN(PINCTRL_PIN(86, "MSDC1_CLK"),
859 MTK_EINT_FUNCTION(2, 51),
860 MTK_FUNCTION(0, "GPIO86"),
861 MTK_FUNCTION(1, "MSDC1_CLK"),
862 MTK_FUNCTION(2, "EINT51"),
863 MTK_FUNCTION(3, "SCL0"),
864 MTK_FUNCTION(4, "DISP_PWM"),
865 MTK_FUNCTION(7, "TESTB_OUT0")
867 MTK_PIN(PINCTRL_PIN(87, "MSDC1_DAT2"),
869 MTK_EINT_FUNCTION(2, 55),
870 MTK_FUNCTION(0, "GPIO87"),
871 MTK_FUNCTION(1, "MSDC1_DAT2"),
872 MTK_FUNCTION(2, "EINT55"),
873 MTK_FUNCTION(3, "SCL4"),
874 MTK_FUNCTION(4, "PWM4"),
875 MTK_FUNCTION(5, "CLKM3"),
876 MTK_FUNCTION(7, "TESTB_OUT4")
878 MTK_PIN(PINCTRL_PIN(88, "MSDC1_DAT3"),
880 MTK_EINT_FUNCTION(2, 56),
881 MTK_FUNCTION(0, "GPIO88"),
882 MTK_FUNCTION(1, "MSDC1_DAT3"),
883 MTK_FUNCTION(2, "EINT56"),
884 MTK_FUNCTION(3, "SDA4"),
885 MTK_FUNCTION(4, "PWM5"),
886 MTK_FUNCTION(5, "CLKM4"),
887 MTK_FUNCTION(7, "TESTB_OUT5")
889 MTK_PIN(PINCTRL_PIN(89, "MSDC4_DAT0"),
891 MTK_EINT_FUNCTION(2, 133),
892 MTK_FUNCTION(0, "GPIO89"),
893 MTK_FUNCTION(1, "MSDC4_DAT0"),
894 MTK_FUNCTION(2, "EINT133"),
895 MTK_FUNCTION(4, "EXT_FRAME_SYNC"),
896 MTK_FUNCTION(5, "USB_DRVVBUS"),
897 MTK_FUNCTION(6, "A_FUNC_DIN[9]"),
898 MTK_FUNCTION(7, "LPTE")
900 MTK_PIN(PINCTRL_PIN(90, "MSDC4_DAT1"),
902 MTK_EINT_FUNCTION(2, 134),
903 MTK_FUNCTION(0, "GPIO90"),
904 MTK_FUNCTION(1, "MSDC4_DAT1"),
905 MTK_FUNCTION(2, "EINT134"),
906 MTK_FUNCTION(6, "A_FUNC_DIN[10]"),
907 MTK_FUNCTION(7, "LRSTB_1X")
909 MTK_PIN(PINCTRL_PIN(91, "MSDC4_DAT5"),
911 MTK_EINT_FUNCTION(2, 136),
912 MTK_FUNCTION(0, "GPIO91"),
913 MTK_FUNCTION(1, "MSDC4_DAT5"),
914 MTK_FUNCTION(2, "EINT136"),
915 MTK_FUNCTION(3, "I2SIN_WS"),
916 MTK_FUNCTION(4, "DAC_WS"),
917 MTK_FUNCTION(5, "PCM1_WS"),
918 MTK_FUNCTION(6, "A_FUNC_DIN[11]"),
919 MTK_FUNCTION(7, "SPI1_CSN")
921 MTK_PIN(PINCTRL_PIN(92, "MSDC4_DAT6"),
923 MTK_EINT_FUNCTION(2, 137),
924 MTK_FUNCTION(0, "GPIO92"),
925 MTK_FUNCTION(1, "MSDC4_DAT6"),
926 MTK_FUNCTION(2, "EINT137"),
927 MTK_FUNCTION(3, "I2SOUT_DAT"),
928 MTK_FUNCTION(4, "DAC_DAT_OUT"),
929 MTK_FUNCTION(5, "PCM1_DO"),
930 MTK_FUNCTION(6, "A_FUNC_DIN[12]"),
931 MTK_FUNCTION(7, "SPI1_MO")
933 MTK_PIN(PINCTRL_PIN(93, "MSDC4_DAT7"),
935 MTK_EINT_FUNCTION(2, 138),
936 MTK_FUNCTION(0, "GPIO93"),
937 MTK_FUNCTION(1, "MSDC4_DAT7"),
938 MTK_FUNCTION(2, "EINT138"),
939 MTK_FUNCTION(3, "I2SIN_DAT"),
940 MTK_FUNCTION(5, "PCM1_DI"),
941 MTK_FUNCTION(6, "A_FUNC_DIN[13]"),
942 MTK_FUNCTION(7, "SPI1_MI")
944 MTK_PIN(PINCTRL_PIN(94, "MSDC4_DAT4"),
946 MTK_EINT_FUNCTION(2, 135),
947 MTK_FUNCTION(0, "GPIO94"),
948 MTK_FUNCTION(1, "MSDC4_DAT4"),
949 MTK_FUNCTION(2, "EINT135"),
950 MTK_FUNCTION(3, "I2SIN_CK"),
951 MTK_FUNCTION(4, "DAC_CK"),
952 MTK_FUNCTION(5, "PCM1_CK"),
953 MTK_FUNCTION(6, "A_FUNC_DIN[14]"),
954 MTK_FUNCTION(7, "SPI1_CLK")
956 MTK_PIN(PINCTRL_PIN(95, "MSDC4_DAT2"),
958 MTK_EINT_FUNCTION(2, 131),
959 MTK_FUNCTION(0, "GPIO95"),
960 MTK_FUNCTION(1, "MSDC4_DAT2"),
961 MTK_FUNCTION(2, "EINT131"),
962 MTK_FUNCTION(3, "I2SIN_WS"),
963 MTK_FUNCTION(4, "CM2PDN_2X"),
964 MTK_FUNCTION(5, "DAC_WS"),
965 MTK_FUNCTION(6, "PCM1_WS"),
966 MTK_FUNCTION(7, "LSCE0B_1X")
968 MTK_PIN(PINCTRL_PIN(96, "MSDC4_CLK"),
970 MTK_EINT_FUNCTION(2, 129),
971 MTK_FUNCTION(0, "GPIO96"),
972 MTK_FUNCTION(1, "MSDC4_CLK"),
973 MTK_FUNCTION(2, "EINT129"),
974 MTK_FUNCTION(3, "DPI1_CK_2X"),
975 MTK_FUNCTION(4, "CM2PCLK_2X"),
976 MTK_FUNCTION(5, "PWM4"),
977 MTK_FUNCTION(6, "PCM1_DI"),
978 MTK_FUNCTION(7, "LSCK_1X")
980 MTK_PIN(PINCTRL_PIN(97, "MSDC4_DAT3"),
982 MTK_EINT_FUNCTION(2, 132),
983 MTK_FUNCTION(0, "GPIO97"),
984 MTK_FUNCTION(1, "MSDC4_DAT3"),
985 MTK_FUNCTION(2, "EINT132"),
986 MTK_FUNCTION(3, "I2SOUT_DAT"),
987 MTK_FUNCTION(4, "CM2RST_2X"),
988 MTK_FUNCTION(5, "DAC_DAT_OUT"),
989 MTK_FUNCTION(6, "PCM1_DO"),
990 MTK_FUNCTION(7, "LSCE1B_1X")
992 MTK_PIN(PINCTRL_PIN(98, "MSDC4_CMD"),
994 MTK_EINT_FUNCTION(2, 128),
995 MTK_FUNCTION(0, "GPIO98"),
996 MTK_FUNCTION(1, "MSDC4_CMD"),
997 MTK_FUNCTION(2, "EINT128"),
998 MTK_FUNCTION(3, "DPI1_DE_2X"),
999 MTK_FUNCTION(5, "PWM3"),
1000 MTK_FUNCTION(7, "LSDA_1X")
1002 MTK_PIN(PINCTRL_PIN(99, "MSDC4_RSTB"),
1004 MTK_EINT_FUNCTION(2, 130),
1005 MTK_FUNCTION(0, "GPIO99"),
1006 MTK_FUNCTION(1, "MSDC4_RSTB"),
1007 MTK_FUNCTION(2, "EINT130"),
1008 MTK_FUNCTION(3, "I2SIN_CK"),
1009 MTK_FUNCTION(4, "CM2MCLK_2X"),
1010 MTK_FUNCTION(5, "DAC_CK"),
1011 MTK_FUNCTION(6, "PCM1_CK"),
1012 MTK_FUNCTION(7, "LSA0_1X")
1014 MTK_PIN(PINCTRL_PIN(100, "SDA0"),
1016 MTK_EINT_FUNCTION(2, 91),
1017 MTK_FUNCTION(0, "GPIO100"),
1018 MTK_FUNCTION(1, "SDA0"),
1019 MTK_FUNCTION(2, "EINT91"),
1020 MTK_FUNCTION(3, "CLKM1"),
1021 MTK_FUNCTION(4, "PWM1"),
1022 MTK_FUNCTION(7, "A_FUNC_DIN[15]")
1024 MTK_PIN(PINCTRL_PIN(101, "SCL0"),
1026 MTK_EINT_FUNCTION(2, 90),
1027 MTK_FUNCTION(0, "GPIO101"),
1028 MTK_FUNCTION(1, "SCL0"),
1029 MTK_FUNCTION(2, "EINT90"),
1030 MTK_FUNCTION(3, "CLKM0"),
1031 MTK_FUNCTION(4, "DISP_PWM"),
1032 MTK_FUNCTION(7, "A_FUNC_DIN[16]")
1034 MTK_PIN(PINCTRL_PIN(102, "EINT10_AUXIN2"),
1036 MTK_EINT_FUNCTION(1, 10),
1037 MTK_FUNCTION(0, "GPIO102"),
1038 MTK_FUNCTION(1, "EINT10"),
1039 MTK_FUNCTION(5, "USB_TEST_IO[16]"),
1040 MTK_FUNCTION(6, "TESTB_OUT16"),
1041 MTK_FUNCTION(7, "A_FUNC_DIN[17]")
1043 MTK_PIN(PINCTRL_PIN(103, "EINT11_AUXIN3"),
1045 MTK_EINT_FUNCTION(1, 11),
1046 MTK_FUNCTION(0, "GPIO103"),
1047 MTK_FUNCTION(1, "EINT11"),
1048 MTK_FUNCTION(5, "USB_TEST_IO[17]"),
1049 MTK_FUNCTION(6, "TESTB_OUT17"),
1050 MTK_FUNCTION(7, "A_FUNC_DIN[18]")
1052 MTK_PIN(PINCTRL_PIN(104, "EINT16_AUXIN4"),
1054 MTK_EINT_FUNCTION(1, 16),
1055 MTK_FUNCTION(0, "GPIO104"),
1056 MTK_FUNCTION(1, "EINT16"),
1057 MTK_FUNCTION(5, "USB_TEST_IO[18]"),
1058 MTK_FUNCTION(6, "TESTB_OUT18"),
1059 MTK_FUNCTION(7, "A_FUNC_DIN[19]")
1061 MTK_PIN(PINCTRL_PIN(105, "I2S_CLK"),
1063 MTK_EINT_FUNCTION(2, 10),
1064 MTK_FUNCTION(0, "GPIO105"),
1065 MTK_FUNCTION(1, "I2SIN_CK"),
1066 MTK_FUNCTION(2, "EINT10"),
1067 MTK_FUNCTION(3, "DAC_CK"),
1068 MTK_FUNCTION(4, "PCM1_CK"),
1069 MTK_FUNCTION(5, "USB_TEST_IO[19]"),
1070 MTK_FUNCTION(6, "TESTB_OUT19"),
1071 MTK_FUNCTION(7, "A_FUNC_DIN[20]")
1073 MTK_PIN(PINCTRL_PIN(106, "I2S_WS"),
1075 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1076 MTK_FUNCTION(0, "GPIO106"),
1077 MTK_FUNCTION(1, "I2SIN_WS"),
1078 MTK_FUNCTION(3, "DAC_WS"),
1079 MTK_FUNCTION(4, "PCM1_WS"),
1080 MTK_FUNCTION(5, "USB_TEST_IO[20]"),
1081 MTK_FUNCTION(6, "TESTB_OUT20"),
1082 MTK_FUNCTION(7, "A_FUNC_DIN[21]")
1084 MTK_PIN(PINCTRL_PIN(107, "I2S_DATA_IN"),
1086 MTK_EINT_FUNCTION(2, 11),
1087 MTK_FUNCTION(0, "GPIO107"),
1088 MTK_FUNCTION(1, "I2SIN_DAT"),
1089 MTK_FUNCTION(2, "EINT11"),
1090 MTK_FUNCTION(4, "PCM1_DI"),
1091 MTK_FUNCTION(5, "USB_TEST_IO[21]"),
1092 MTK_FUNCTION(6, "TESTB_OUT22"),
1093 MTK_FUNCTION(7, "A_FUNC_DIN[22]")
1095 MTK_PIN(PINCTRL_PIN(108, "I2S_DATA_OUT"),
1097 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1098 MTK_FUNCTION(0, "GPIO108"),
1099 MTK_FUNCTION(1, "I2SOUT_DAT"),
1100 MTK_FUNCTION(3, "DAC_DAT_OUT"),
1101 MTK_FUNCTION(4, "PCM1_DO"),
1102 MTK_FUNCTION(5, "USB_TEST_IO[22]"),
1103 MTK_FUNCTION(6, "TESTB_OUT23"),
1104 MTK_FUNCTION(7, "A_FUNC_DIN[23]")
1106 MTK_PIN(PINCTRL_PIN(109, "EINT5"),
1108 MTK_EINT_FUNCTION(1, 5),
1109 MTK_FUNCTION(0, "GPIO109"),
1110 MTK_FUNCTION(1, "EINT5"),
1111 MTK_FUNCTION(2, "PWM5"),
1112 MTK_FUNCTION(3, "CLKM3"),
1113 MTK_FUNCTION(4, "GPU_JTRSTB"),
1114 MTK_FUNCTION(5, "USB_TEST_IO[23]"),
1115 MTK_FUNCTION(6, "TESTB_OUT26"),
1116 MTK_FUNCTION(7, "A_FUNC_DIN[24]")
1118 MTK_PIN(PINCTRL_PIN(110, "EINT6"),
1120 MTK_EINT_FUNCTION(1, 6),
1121 MTK_FUNCTION(0, "GPIO110"),
1122 MTK_FUNCTION(1, "EINT6"),
1123 MTK_FUNCTION(2, "PWM6"),
1124 MTK_FUNCTION(3, "CLKM4"),
1125 MTK_FUNCTION(4, "GPU_JTMS"),
1126 MTK_FUNCTION(5, "USB_TEST_IO[24]"),
1127 MTK_FUNCTION(6, "TESTB_OUT27"),
1128 MTK_FUNCTION(7, "A_FUNC_DIN[25]")
1130 MTK_PIN(PINCTRL_PIN(111, "EINT7"),
1132 MTK_EINT_FUNCTION(1, 7),
1133 MTK_FUNCTION(0, "GPIO111"),
1134 MTK_FUNCTION(1, "EINT7"),
1135 MTK_FUNCTION(2, "PWM7"),
1136 MTK_FUNCTION(3, "CLKM5"),
1137 MTK_FUNCTION(4, "GPU_JTDO"),
1138 MTK_FUNCTION(5, "USB_TEST_IO[25]"),
1139 MTK_FUNCTION(6, "TESTB_OUT28"),
1140 MTK_FUNCTION(7, "A_FUNC_DIN[26]")
1142 MTK_PIN(PINCTRL_PIN(112, "EINT8"),
1144 MTK_EINT_FUNCTION(1, 8),
1145 MTK_FUNCTION(0, "GPIO112"),
1146 MTK_FUNCTION(1, "EINT8"),
1147 MTK_FUNCTION(2, "DISP_PWM"),
1148 MTK_FUNCTION(3, "CLKM6"),
1149 MTK_FUNCTION(4, "GPU_JTDI"),
1150 MTK_FUNCTION(5, "USB_TEST_IO[26]"),
1151 MTK_FUNCTION(6, "TESTB_OUT29"),
1152 MTK_FUNCTION(7, "EXT_FRAME_SYNC")
1154 MTK_PIN(PINCTRL_PIN(113, "EINT9"),
1156 MTK_EINT_FUNCTION(1, 9),
1157 MTK_FUNCTION(0, "GPIO113"),
1158 MTK_FUNCTION(1, "EINT9"),
1159 MTK_FUNCTION(4, "GPU_JTCK"),
1160 MTK_FUNCTION(5, "USB_DRVVBUS"),
1161 MTK_FUNCTION(6, "TESTB_OUT30"),
1162 MTK_FUNCTION(7, "A_FUNC_DIN[27]")
1164 MTK_PIN(PINCTRL_PIN(114, "LPCE1B"),
1166 MTK_EINT_FUNCTION(2, 127),
1167 MTK_FUNCTION(0, "GPIO114"),
1168 MTK_FUNCTION(1, "LPCE1B"),
1169 MTK_FUNCTION(2, "EINT127"),
1170 MTK_FUNCTION(5, "PWM2"),
1171 MTK_FUNCTION(6, "TESTB_OUT14"),
1172 MTK_FUNCTION(7, "A_FUNC_DIN[28]")
1174 MTK_PIN(PINCTRL_PIN(115, "LPCE0B"),
1176 MTK_EINT_FUNCTION(2, 126),
1177 MTK_FUNCTION(0, "GPIO115"),
1178 MTK_FUNCTION(1, "LPCE0B"),
1179 MTK_FUNCTION(2, "EINT126"),
1180 MTK_FUNCTION(5, "PWM1"),
1181 MTK_FUNCTION(6, "TESTB_OUT15"),
1182 MTK_FUNCTION(7, "A_FUNC_DIN[29]")
1184 MTK_PIN(PINCTRL_PIN(116, "DISP_PWM"),
1186 MTK_EINT_FUNCTION(2, 77),
1187 MTK_FUNCTION(0, "GPIO116"),
1188 MTK_FUNCTION(1, "DISP_PWM"),
1189 MTK_FUNCTION(2, "EINT77"),
1190 MTK_FUNCTION(3, "LSDI"),
1191 MTK_FUNCTION(4, "PWM1"),
1192 MTK_FUNCTION(5, "PWM2"),
1193 MTK_FUNCTION(7, "PWM3")
1195 MTK_PIN(PINCTRL_PIN(117, "EINT1"),
1197 MTK_EINT_FUNCTION(1, 1),
1198 MTK_FUNCTION(0, "GPIO117"),
1199 MTK_FUNCTION(1, "EINT1"),
1200 MTK_FUNCTION(2, "PWM2"),
1201 MTK_FUNCTION(3, "CLKM1"),
1202 MTK_FUNCTION(5, "USB_TEST_IO[13]"),
1203 MTK_FUNCTION(7, "USB_SDA")
1205 MTK_PIN(PINCTRL_PIN(118, "EINT2"),
1207 MTK_EINT_FUNCTION(1, 2),
1208 MTK_FUNCTION(0, "GPIO118"),
1209 MTK_FUNCTION(1, "EINT2"),
1210 MTK_FUNCTION(2, "PWM3"),
1211 MTK_FUNCTION(3, "CLKM2"),
1212 MTK_FUNCTION(5, "USB_TEST_IO[14]"),
1213 MTK_FUNCTION(6, "SRCLKENAI2"),
1214 MTK_FUNCTION(7, "A_FUNC_DIN[30]")
1216 MTK_PIN(PINCTRL_PIN(119, "EINT3"),
1218 MTK_EINT_FUNCTION(1, 3),
1219 MTK_FUNCTION(0, "GPIO119"),
1220 MTK_FUNCTION(1, "EINT3"),
1221 MTK_FUNCTION(5, "USB_TEST_IO[15]"),
1222 MTK_FUNCTION(6, "SRCLKENAI1"),
1223 MTK_FUNCTION(7, "EXT_26M_CK")
1225 MTK_PIN(PINCTRL_PIN(120, "EINT4"),
1227 MTK_EINT_FUNCTION(1, 4),
1228 MTK_FUNCTION(0, "GPIO120"),
1229 MTK_FUNCTION(1, "EINT4"),
1230 MTK_FUNCTION(2, "PWM4"),
1231 MTK_FUNCTION(5, "USB_DRVVBUS"),
1232 MTK_FUNCTION(7, "A_FUNC_DIN[31]")
1234 MTK_PIN(PINCTRL_PIN(121, "DPIDE"),
1236 MTK_EINT_FUNCTION(2, 100),
1237 MTK_FUNCTION(0, "GPIO121"),
1238 MTK_FUNCTION(1, "DPI0_DE"),
1239 MTK_FUNCTION(2, "EINT100"),
1240 MTK_FUNCTION(3, "I2SOUT_DAT"),
1241 MTK_FUNCTION(4, "DAC_DAT_OUT"),
1242 MTK_FUNCTION(5, "PCM1_DO"),
1243 MTK_FUNCTION(6, "IRDA_TXD")
1245 MTK_PIN(PINCTRL_PIN(122, "DPICK"),
1247 MTK_EINT_FUNCTION(2, 101),
1248 MTK_FUNCTION(0, "GPIO122"),
1249 MTK_FUNCTION(1, "DPI0_CK"),
1250 MTK_FUNCTION(2, "EINT101"),
1251 MTK_FUNCTION(3, "I2SIN_DAT"),
1252 MTK_FUNCTION(5, "PCM1_DI"),
1253 MTK_FUNCTION(6, "IRDA_PDN")
1255 MTK_PIN(PINCTRL_PIN(123, "DPIG4"),
1257 MTK_EINT_FUNCTION(2, 114),
1258 MTK_FUNCTION(0, "GPIO123"),
1259 MTK_FUNCTION(1, "DPI0_G4"),
1260 MTK_FUNCTION(2, "EINT114"),
1261 MTK_FUNCTION(4, "CM2DAT_2X[0]"),
1262 MTK_FUNCTION(5, "DSP2_ID")
1264 MTK_PIN(PINCTRL_PIN(124, "DPIG5"),
1266 MTK_EINT_FUNCTION(2, 115),
1267 MTK_FUNCTION(0, "GPIO124"),
1268 MTK_FUNCTION(1, "DPI0_G5"),
1269 MTK_FUNCTION(2, "EINT115"),
1270 MTK_FUNCTION(4, "CM2DAT_2X[1]"),
1271 MTK_FUNCTION(5, "DSP2_ICK")
1273 MTK_PIN(PINCTRL_PIN(125, "DPIR3"),
1275 MTK_EINT_FUNCTION(2, 121),
1276 MTK_FUNCTION(0, "GPIO125"),
1277 MTK_FUNCTION(1, "DPI0_R3"),
1278 MTK_FUNCTION(2, "EINT121"),
1279 MTK_FUNCTION(4, "CM2DAT_2X[7]")
1281 MTK_PIN(PINCTRL_PIN(126, "DPIG1"),
1283 MTK_EINT_FUNCTION(2, 111),
1284 MTK_FUNCTION(0, "GPIO126"),
1285 MTK_FUNCTION(1, "DPI0_G1"),
1286 MTK_FUNCTION(2, "EINT111"),
1287 MTK_FUNCTION(5, "DSP1_ICK")
1289 MTK_PIN(PINCTRL_PIN(127, "DPIVSYNC"),
1291 MTK_EINT_FUNCTION(2, 98),
1292 MTK_FUNCTION(0, "GPIO127"),
1293 MTK_FUNCTION(1, "DPI0_VSYNC"),
1294 MTK_FUNCTION(2, "EINT98"),
1295 MTK_FUNCTION(3, "I2SIN_CK"),
1296 MTK_FUNCTION(4, "DAC_CK"),
1297 MTK_FUNCTION(5, "PCM1_CK")
1299 MTK_PIN(PINCTRL_PIN(128, "DPIHSYNC"),
1301 MTK_EINT_FUNCTION(2, 99),
1302 MTK_FUNCTION(0, "GPIO128"),
1303 MTK_FUNCTION(1, "DPI0_HSYNC"),
1304 MTK_FUNCTION(2, "EINT99"),
1305 MTK_FUNCTION(3, "I2SIN_WS"),
1306 MTK_FUNCTION(4, "DAC_WS"),
1307 MTK_FUNCTION(5, "PCM1_WS"),
1308 MTK_FUNCTION(6, "IRDA_RXD")
1310 MTK_PIN(PINCTRL_PIN(129, "DPIB0"),
1312 MTK_EINT_FUNCTION(2, 102),
1313 MTK_FUNCTION(0, "GPIO129"),
1314 MTK_FUNCTION(1, "DPI0_B0"),
1315 MTK_FUNCTION(2, "EINT102"),
1316 MTK_FUNCTION(4, "SCL0"),
1317 MTK_FUNCTION(5, "DISP_PWM")
1319 MTK_PIN(PINCTRL_PIN(130, "DPIB1"),
1321 MTK_EINT_FUNCTION(2, 103),
1322 MTK_FUNCTION(0, "GPIO130"),
1323 MTK_FUNCTION(1, "DPI0_B1"),
1324 MTK_FUNCTION(2, "EINT103"),
1325 MTK_FUNCTION(3, "CLKM0"),
1326 MTK_FUNCTION(4, "SDA0"),
1327 MTK_FUNCTION(5, "PWM1")
1329 MTK_PIN(PINCTRL_PIN(131, "DPIB2"),
1331 MTK_EINT_FUNCTION(2, 104),
1332 MTK_FUNCTION(0, "GPIO131"),
1333 MTK_FUNCTION(1, "DPI0_B2"),
1334 MTK_FUNCTION(2, "EINT104"),
1335 MTK_FUNCTION(3, "CLKM1"),
1336 MTK_FUNCTION(4, "SCL1"),
1337 MTK_FUNCTION(5, "PWM2")
1339 MTK_PIN(PINCTRL_PIN(132, "DPIB3"),
1341 MTK_EINT_FUNCTION(2, 105),
1342 MTK_FUNCTION(0, "GPIO132"),
1343 MTK_FUNCTION(1, "DPI0_B3"),
1344 MTK_FUNCTION(2, "EINT105"),
1345 MTK_FUNCTION(3, "CLKM2"),
1346 MTK_FUNCTION(4, "SDA1"),
1347 MTK_FUNCTION(5, "PWM3")
1349 MTK_PIN(PINCTRL_PIN(133, "DPIB4"),
1351 MTK_EINT_FUNCTION(2, 106),
1352 MTK_FUNCTION(0, "GPIO133"),
1353 MTK_FUNCTION(1, "DPI0_B4"),
1354 MTK_FUNCTION(2, "EINT106"),
1355 MTK_FUNCTION(3, "CLKM3"),
1356 MTK_FUNCTION(4, "SCL2"),
1357 MTK_FUNCTION(5, "PWM4")
1359 MTK_PIN(PINCTRL_PIN(134, "DPIB5"),
1361 MTK_EINT_FUNCTION(2, 107),
1362 MTK_FUNCTION(0, "GPIO134"),
1363 MTK_FUNCTION(1, "DPI0_B5"),
1364 MTK_FUNCTION(2, "EINT107"),
1365 MTK_FUNCTION(3, "CLKM4"),
1366 MTK_FUNCTION(4, "SDA2"),
1367 MTK_FUNCTION(5, "PWM5")
1369 MTK_PIN(PINCTRL_PIN(135, "DPIB6"),
1371 MTK_EINT_FUNCTION(2, 108),
1372 MTK_FUNCTION(0, "GPIO135"),
1373 MTK_FUNCTION(1, "DPI0_B6"),
1374 MTK_FUNCTION(2, "EINT108"),
1375 MTK_FUNCTION(3, "CLKM5"),
1376 MTK_FUNCTION(4, "SCL3"),
1377 MTK_FUNCTION(5, "PWM6")
1379 MTK_PIN(PINCTRL_PIN(136, "DPIB7"),
1381 MTK_EINT_FUNCTION(2, 109),
1382 MTK_FUNCTION(0, "GPIO136"),
1383 MTK_FUNCTION(1, "DPI0_B7"),
1384 MTK_FUNCTION(2, "EINT109"),
1385 MTK_FUNCTION(3, "CLKM6"),
1386 MTK_FUNCTION(4, "SDA3"),
1387 MTK_FUNCTION(5, "PWM7")
1389 MTK_PIN(PINCTRL_PIN(137, "DPIG0"),
1391 MTK_EINT_FUNCTION(2, 110),
1392 MTK_FUNCTION(0, "GPIO137"),
1393 MTK_FUNCTION(1, "DPI0_G0"),
1394 MTK_FUNCTION(2, "EINT110"),
1395 MTK_FUNCTION(5, "DSP1_ID")
1397 MTK_PIN(PINCTRL_PIN(138, "DPIG2"),
1399 MTK_EINT_FUNCTION(2, 112),
1400 MTK_FUNCTION(0, "GPIO138"),
1401 MTK_FUNCTION(1, "DPI0_G2"),
1402 MTK_FUNCTION(2, "EINT112"),
1403 MTK_FUNCTION(5, "DSP1_IMS")
1405 MTK_PIN(PINCTRL_PIN(139, "DPIG3"),
1407 MTK_EINT_FUNCTION(2, 113),
1408 MTK_FUNCTION(0, "GPIO139"),
1409 MTK_FUNCTION(1, "DPI0_G3"),
1410 MTK_FUNCTION(2, "EINT113"),
1411 MTK_FUNCTION(5, "DSP2_IMS")
1413 MTK_PIN(PINCTRL_PIN(140, "DPIG6"),
1415 MTK_EINT_FUNCTION(2, 116),
1416 MTK_FUNCTION(0, "GPIO140"),
1417 MTK_FUNCTION(1, "DPI0_G6"),
1418 MTK_FUNCTION(2, "EINT116"),
1419 MTK_FUNCTION(4, "CM2DAT_2X[2]")
1421 MTK_PIN(PINCTRL_PIN(141, "DPIG7"),
1423 MTK_EINT_FUNCTION(2, 117),
1424 MTK_FUNCTION(0, "GPIO141"),
1425 MTK_FUNCTION(1, "DPI0_G7"),
1426 MTK_FUNCTION(2, "EINT117"),
1427 MTK_FUNCTION(4, "CM2DAT_2X[3]")
1429 MTK_PIN(PINCTRL_PIN(142, "DPIR0"),
1431 MTK_EINT_FUNCTION(2, 118),
1432 MTK_FUNCTION(0, "GPIO142"),
1433 MTK_FUNCTION(1, "DPI0_R0"),
1434 MTK_FUNCTION(2, "EINT118"),
1435 MTK_FUNCTION(4, "CM2DAT_2X[4]")
1437 MTK_PIN(PINCTRL_PIN(143, "DPIR1"),
1439 MTK_EINT_FUNCTION(2, 119),
1440 MTK_FUNCTION(0, "GPIO143"),
1441 MTK_FUNCTION(1, "DPI0_R1"),
1442 MTK_FUNCTION(2, "EINT119"),
1443 MTK_FUNCTION(4, "CM2DAT_2X[5]")
1445 MTK_PIN(PINCTRL_PIN(144, "DPIR2"),
1447 MTK_EINT_FUNCTION(2, 120),
1448 MTK_FUNCTION(0, "GPIO144"),
1449 MTK_FUNCTION(1, "DPI0_R2"),
1450 MTK_FUNCTION(2, "EINT120"),
1451 MTK_FUNCTION(4, "CM2DAT_2X[6]")
1453 MTK_PIN(PINCTRL_PIN(145, "DPIR4"),
1455 MTK_EINT_FUNCTION(2, 122),
1456 MTK_FUNCTION(0, "GPIO145"),
1457 MTK_FUNCTION(1, "DPI0_R4"),
1458 MTK_FUNCTION(2, "EINT122"),
1459 MTK_FUNCTION(4, "CM2DAT_2X[8]")
1461 MTK_PIN(PINCTRL_PIN(146, "DPIR5"),
1463 MTK_EINT_FUNCTION(2, 123),
1464 MTK_FUNCTION(0, "GPIO146"),
1465 MTK_FUNCTION(1, "DPI0_R5"),
1466 MTK_FUNCTION(2, "EINT123"),
1467 MTK_FUNCTION(4, "CM2DAT_2X[9]")
1469 MTK_PIN(PINCTRL_PIN(147, "DPIR6"),
1471 MTK_EINT_FUNCTION(2, 124),
1472 MTK_FUNCTION(0, "GPIO147"),
1473 MTK_FUNCTION(1, "DPI0_R6"),
1474 MTK_FUNCTION(2, "EINT124"),
1475 MTK_FUNCTION(4, "CM2VSYNC_2X")
1477 MTK_PIN(PINCTRL_PIN(148, "DPIR7"),
1479 MTK_EINT_FUNCTION(2, 125),
1480 MTK_FUNCTION(0, "GPIO148"),
1481 MTK_FUNCTION(1, "DPI0_R7"),
1482 MTK_FUNCTION(2, "EINT125"),
1483 MTK_FUNCTION(4, "CM2HSYNC_2X")
1485 MTK_PIN(PINCTRL_PIN(149, "TDN3/LVDS(TDN3)"),
1487 MTK_EINT_FUNCTION(2, 36),
1488 MTK_FUNCTION(0, "GPIO149"),
1489 MTK_FUNCTION(2, "EINT36")
1491 MTK_PIN(PINCTRL_PIN(150, "TDP3/LVDS(TDP3)"),
1493 MTK_EINT_FUNCTION(2, 35),
1494 MTK_FUNCTION(0, "GPIO150"),
1495 MTK_FUNCTION(2, "EINT35")
1497 MTK_PIN(PINCTRL_PIN(151, "TDN2/LVDS(TCN)"),
1499 MTK_EINT_FUNCTION(2, 169),
1500 MTK_FUNCTION(0, "GPIO151"),
1501 MTK_FUNCTION(2, "EINT169")
1503 MTK_PIN(PINCTRL_PIN(152, "TDP2/LVDS(TCP)"),
1505 MTK_EINT_FUNCTION(2, 168),
1506 MTK_FUNCTION(0, "GPIO152"),
1507 MTK_FUNCTION(2, "EINT168")
1509 MTK_PIN(PINCTRL_PIN(153, "TCN/LVDS(TDN2)"),
1511 MTK_EINT_FUNCTION(2, 163),
1512 MTK_FUNCTION(0, "GPIO153"),
1513 MTK_FUNCTION(2, "EINT163")
1515 MTK_PIN(PINCTRL_PIN(154, "TCP/LVDS(TDP2)"),
1517 MTK_EINT_FUNCTION(2, 162),
1518 MTK_FUNCTION(0, "GPIO154"),
1519 MTK_FUNCTION(2, "EINT162")
1521 MTK_PIN(PINCTRL_PIN(155, "TDN1/LVDS(TDN1)"),
1523 MTK_EINT_FUNCTION(2, 167),
1524 MTK_FUNCTION(0, "GPIO155"),
1525 MTK_FUNCTION(2, "EINT167")
1527 MTK_PIN(PINCTRL_PIN(156, "TDP1/LVDS(TDP1)"),
1529 MTK_EINT_FUNCTION(2, 166),
1530 MTK_FUNCTION(0, "GPIO156"),
1531 MTK_FUNCTION(2, "EINT166")
1533 MTK_PIN(PINCTRL_PIN(157, "TDN0/LVDS(TDN0)"),
1535 MTK_EINT_FUNCTION(2, 165),
1536 MTK_FUNCTION(0, "GPIO157"),
1537 MTK_FUNCTION(2, "EINT165")
1539 MTK_PIN(PINCTRL_PIN(158, "TDP0/LVDS(TDP0)"),
1541 MTK_EINT_FUNCTION(2, 164),
1542 MTK_FUNCTION(0, "GPIO158"),
1543 MTK_FUNCTION(2, "EINT164")
1545 MTK_PIN(PINCTRL_PIN(159, "RDN3"),
1547 MTK_EINT_FUNCTION(2, 18),
1548 MTK_FUNCTION(0, "GPIO159"),
1549 MTK_FUNCTION(2, "EINT18")
1551 MTK_PIN(PINCTRL_PIN(160, "RDP3"),
1553 MTK_EINT_FUNCTION(2, 30),
1554 MTK_FUNCTION(0, "GPIO160"),
1555 MTK_FUNCTION(2, "EINT30")
1557 MTK_PIN(PINCTRL_PIN(161, "RDN2"),
1559 MTK_EINT_FUNCTION(2, 31),
1560 MTK_FUNCTION(0, "GPIO161"),
1561 MTK_FUNCTION(2, "EINT31")
1563 MTK_PIN(PINCTRL_PIN(162, "RDP2"),
1565 MTK_EINT_FUNCTION(2, 32),
1566 MTK_FUNCTION(0, "GPIO162"),
1567 MTK_FUNCTION(2, "EINT32")
1569 MTK_PIN(PINCTRL_PIN(163, "RCN"),
1571 MTK_EINT_FUNCTION(2, 33),
1572 MTK_FUNCTION(0, "GPIO163"),
1573 MTK_FUNCTION(2, "EINT33")
1575 MTK_PIN(PINCTRL_PIN(164, "RCP"),
1577 MTK_EINT_FUNCTION(2, 39),
1578 MTK_FUNCTION(0, "GPIO164"),
1579 MTK_FUNCTION(2, "EINT39")
1581 MTK_PIN(PINCTRL_PIN(165, "RDN1"),
1583 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1584 MTK_FUNCTION(0, "GPIO165")
1586 MTK_PIN(PINCTRL_PIN(166, "RDP1"),
1588 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1589 MTK_FUNCTION(0, "GPIO166")
1591 MTK_PIN(PINCTRL_PIN(167, "RDN0"),
1593 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1594 MTK_FUNCTION(0, "GPIO167")
1596 MTK_PIN(PINCTRL_PIN(168, "RDP0"),
1598 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1599 MTK_FUNCTION(0, "GPIO168")
1601 MTK_PIN(PINCTRL_PIN(169, "RDN1_A"),
1603 MTK_EINT_FUNCTION(2, 175),
1604 MTK_FUNCTION(0, "GPIO169"),
1605 MTK_FUNCTION(1, "CMDAT6"),
1606 MTK_FUNCTION(2, "EINT175")
1608 MTK_PIN(PINCTRL_PIN(170, "RDP1_A"),
1610 MTK_EINT_FUNCTION(2, 174),
1611 MTK_FUNCTION(0, "GPIO170"),
1612 MTK_FUNCTION(1, "CMDAT7"),
1613 MTK_FUNCTION(2, "EINT174")
1615 MTK_PIN(PINCTRL_PIN(171, "RCN_A"),
1617 MTK_EINT_FUNCTION(2, 171),
1618 MTK_FUNCTION(0, "GPIO171"),
1619 MTK_FUNCTION(1, "CMDAT8"),
1620 MTK_FUNCTION(2, "EINT171")
1622 MTK_PIN(PINCTRL_PIN(172, "RCP_A"),
1624 MTK_EINT_FUNCTION(2, 170),
1625 MTK_FUNCTION(0, "GPIO172"),
1626 MTK_FUNCTION(1, "CMDAT9"),
1627 MTK_FUNCTION(2, "EINT170")
1629 MTK_PIN(PINCTRL_PIN(173, "RDN0_A"),
1631 MTK_EINT_FUNCTION(2, 173),
1632 MTK_FUNCTION(0, "GPIO173"),
1633 MTK_FUNCTION(1, "CMHSYNC"),
1634 MTK_FUNCTION(2, "EINT173")
1636 MTK_PIN(PINCTRL_PIN(174, "RDP0_A"),
1638 MTK_EINT_FUNCTION(2, 172),
1639 MTK_FUNCTION(0, "GPIO174"),
1640 MTK_FUNCTION(1, "CMVSYNC"),
1641 MTK_FUNCTION(2, "EINT172")
1643 MTK_PIN(PINCTRL_PIN(175, "RDN1_B"),
1645 MTK_EINT_FUNCTION(2, 181),
1646 MTK_FUNCTION(0, "GPIO175"),
1647 MTK_FUNCTION(1, "CMDAT2"),
1648 MTK_FUNCTION(2, "EINT181"),
1649 MTK_FUNCTION(3, "CMCSD2")
1651 MTK_PIN(PINCTRL_PIN(176, "RDP1_B"),
1653 MTK_EINT_FUNCTION(2, 180),
1654 MTK_FUNCTION(0, "GPIO176"),
1655 MTK_FUNCTION(1, "CMDAT3"),
1656 MTK_FUNCTION(2, "EINT180"),
1657 MTK_FUNCTION(3, "CMCSD3")
1659 MTK_PIN(PINCTRL_PIN(177, "RCN_B"),
1661 MTK_EINT_FUNCTION(2, 177),
1662 MTK_FUNCTION(0, "GPIO177"),
1663 MTK_FUNCTION(1, "CMDAT4"),
1664 MTK_FUNCTION(2, "EINT177")
1666 MTK_PIN(PINCTRL_PIN(178, "RCP_B"),
1668 MTK_EINT_FUNCTION(2, 176),
1669 MTK_FUNCTION(0, "GPIO178"),
1670 MTK_FUNCTION(1, "CMDAT5"),
1671 MTK_FUNCTION(2, "EINT176")
1673 MTK_PIN(PINCTRL_PIN(179, "RDN0_B"),
1675 MTK_EINT_FUNCTION(2, 179),
1676 MTK_FUNCTION(0, "GPIO179"),
1677 MTK_FUNCTION(1, "CMDAT0"),
1678 MTK_FUNCTION(2, "EINT179"),
1679 MTK_FUNCTION(3, "CMCSD0")
1681 MTK_PIN(PINCTRL_PIN(180, "RDP0_B"),
1683 MTK_EINT_FUNCTION(2, 178),
1684 MTK_FUNCTION(0, "GPIO180"),
1685 MTK_FUNCTION(1, "CMDAT1"),
1686 MTK_FUNCTION(2, "EINT178"),
1687 MTK_FUNCTION(3, "CMCSD1")
1689 MTK_PIN(PINCTRL_PIN(181, "CMPCLK"),
1691 MTK_EINT_FUNCTION(2, 182),
1692 MTK_FUNCTION(0, "GPIO181"),
1693 MTK_FUNCTION(1, "CMPCLK"),
1694 MTK_FUNCTION(2, "EINT182"),
1695 MTK_FUNCTION(3, "CMCSK"),
1696 MTK_FUNCTION(4, "CM2MCLK_4X"),
1697 MTK_FUNCTION(5, "TS_AUXADC_SEL[3]"),
1698 MTK_FUNCTION(6, "VENC_TEST_CK"),
1699 MTK_FUNCTION(7, "TESTA_OUT27")
1701 MTK_PIN(PINCTRL_PIN(182, "CMMCLK"),
1703 MTK_EINT_FUNCTION(2, 183),
1704 MTK_FUNCTION(0, "GPIO182"),
1705 MTK_FUNCTION(1, "CMMCLK"),
1706 MTK_FUNCTION(2, "EINT183"),
1707 MTK_FUNCTION(5, "TS_AUXADC_SEL[2]"),
1708 MTK_FUNCTION(7, "TESTA_OUT28")
1710 MTK_PIN(PINCTRL_PIN(183, "CMRST"),
1712 MTK_EINT_FUNCTION(2, 185),
1713 MTK_FUNCTION(0, "GPIO183"),
1714 MTK_FUNCTION(1, "CMRST"),
1715 MTK_FUNCTION(2, "EINT185"),
1716 MTK_FUNCTION(5, "TS_AUXADC_SEL[1]"),
1717 MTK_FUNCTION(7, "TESTA_OUT30")
1719 MTK_PIN(PINCTRL_PIN(184, "CMPDN"),
1721 MTK_EINT_FUNCTION(2, 184),
1722 MTK_FUNCTION(0, "GPIO184"),
1723 MTK_FUNCTION(1, "CMPDN"),
1724 MTK_FUNCTION(2, "EINT184"),
1725 MTK_FUNCTION(5, "TS_AUXADC_SEL[0]"),
1726 MTK_FUNCTION(7, "TESTA_OUT29")
1728 MTK_PIN(PINCTRL_PIN(185, "CMFLASH"),
1730 MTK_EINT_FUNCTION(2, 186),
1731 MTK_FUNCTION(0, "GPIO185"),
1732 MTK_FUNCTION(1, "CMFLASH"),
1733 MTK_FUNCTION(2, "EINT186"),
1734 MTK_FUNCTION(3, "CM2MCLK_3X"),
1735 MTK_FUNCTION(6, "MFG_TEST_CK_1"),
1736 MTK_FUNCTION(7, "TESTA_OUT31")
1738 MTK_PIN(PINCTRL_PIN(186, "MRG_I2S_PCM_CLK"),
1740 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1741 MTK_FUNCTION(0, "GPIO186"),
1742 MTK_FUNCTION(1, "MRG_I2S_PCM_CLK"),
1743 MTK_FUNCTION(3, "I2SIN_CK"),
1744 MTK_FUNCTION(4, "PCM0_CK"),
1745 MTK_FUNCTION(5, "DSP2_ICK"),
1746 MTK_FUNCTION(6, "IMG_TEST_CK"),
1747 MTK_FUNCTION(7, "USB_SCL")
1749 MTK_PIN(PINCTRL_PIN(187, "MRG_I2S_PCM_SYNC"),
1751 MTK_EINT_FUNCTION(2, 16),
1752 MTK_FUNCTION(0, "GPIO187"),
1753 MTK_FUNCTION(1, "MRG_I2S_PCM_SYNC"),
1754 MTK_FUNCTION(2, "EINT16"),
1755 MTK_FUNCTION(3, "I2SIN_WS"),
1756 MTK_FUNCTION(4, "PCM0_WS"),
1757 MTK_FUNCTION(6, "DISP_TEST_CK")
1759 MTK_PIN(PINCTRL_PIN(188, "MRG_I2S_PCM_RX"),
1761 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1762 MTK_FUNCTION(0, "GPIO188"),
1763 MTK_FUNCTION(1, "MRG_I2S_PCM_RX"),
1764 MTK_FUNCTION(3, "I2SIN_DAT"),
1765 MTK_FUNCTION(4, "PCM0_DI"),
1766 MTK_FUNCTION(5, "DSP2_ID"),
1767 MTK_FUNCTION(6, "MFG_TEST_CK"),
1768 MTK_FUNCTION(7, "USB_SDA")
1770 MTK_PIN(PINCTRL_PIN(189, "MRG_I2S_PCM_TX"),
1772 MTK_EINT_FUNCTION(2, 17),
1773 MTK_FUNCTION(0, "GPIO189"),
1774 MTK_FUNCTION(1, "MRG_I2S_PCM_TX"),
1775 MTK_FUNCTION(2, "EINT17"),
1776 MTK_FUNCTION(3, "I2SOUT_DAT"),
1777 MTK_FUNCTION(4, "PCM0_DO"),
1778 MTK_FUNCTION(6, "VDEC_TEST_CK")
1780 MTK_PIN(PINCTRL_PIN(190, "SRCLKENAI"),
1782 MTK_EINT_FUNCTION(NO_EINT_SUPPORT
, NO_EINT_SUPPORT
),
1783 MTK_FUNCTION(0, "GPIO190"),
1784 MTK_FUNCTION(1, "SRCLKENAI")
1786 MTK_PIN(PINCTRL_PIN(191, "URXD3"),
1788 MTK_EINT_FUNCTION(2, 87),
1789 MTK_FUNCTION(0, "GPIO191"),
1790 MTK_FUNCTION(1, "URXD3"),
1791 MTK_FUNCTION(2, "EINT87"),
1792 MTK_FUNCTION(3, "UTXD3"),
1793 MTK_FUNCTION(5, "TS_AUX_ST"),
1794 MTK_FUNCTION(6, "PWM4")
1796 MTK_PIN(PINCTRL_PIN(192, "UTXD3"),
1798 MTK_EINT_FUNCTION(2, 86),
1799 MTK_FUNCTION(0, "GPIO192"),
1800 MTK_FUNCTION(1, "UTXD3"),
1801 MTK_FUNCTION(2, "EINT86"),
1802 MTK_FUNCTION(3, "URXD3"),
1803 MTK_FUNCTION(5, "TS_AUX_CS_B"),
1804 MTK_FUNCTION(6, "PWM3")
1806 MTK_PIN(PINCTRL_PIN(193, "SDA2"),
1808 MTK_EINT_FUNCTION(2, 95),
1809 MTK_FUNCTION(0, "GPIO193"),
1810 MTK_FUNCTION(1, "SDA2"),
1811 MTK_FUNCTION(2, "EINT95"),
1812 MTK_FUNCTION(3, "CLKM5"),
1813 MTK_FUNCTION(4, "PWM5"),
1814 MTK_FUNCTION(5, "TS_AUX_PWDB")
1816 MTK_PIN(PINCTRL_PIN(194, "SCL2"),
1818 MTK_EINT_FUNCTION(2, 94),
1819 MTK_FUNCTION(0, "GPIO194"),
1820 MTK_FUNCTION(1, "SCL2"),
1821 MTK_FUNCTION(2, "EINT94"),
1822 MTK_FUNCTION(3, "CLKM4"),
1823 MTK_FUNCTION(4, "PWM4"),
1824 MTK_FUNCTION(5, "TS_AUXADC_TEST_CK")
1826 MTK_PIN(PINCTRL_PIN(195, "SDA1"),
1828 MTK_EINT_FUNCTION(2, 93),
1829 MTK_FUNCTION(0, "GPIO195"),
1830 MTK_FUNCTION(1, "SDA1"),
1831 MTK_FUNCTION(2, "EINT93"),
1832 MTK_FUNCTION(3, "CLKM3"),
1833 MTK_FUNCTION(4, "PWM3"),
1834 MTK_FUNCTION(5, "TS_AUX_SCLK_PWDB")
1836 MTK_PIN(PINCTRL_PIN(196, "SCL1"),
1838 MTK_EINT_FUNCTION(2, 92),
1839 MTK_FUNCTION(0, "GPIO196"),
1840 MTK_FUNCTION(1, "SCL1"),
1841 MTK_FUNCTION(2, "EINT92"),
1842 MTK_FUNCTION(3, "CLKM2"),
1843 MTK_FUNCTION(4, "PWM2"),
1844 MTK_FUNCTION(5, "TS_AUX_DIN")
1846 MTK_PIN(PINCTRL_PIN(197, "MSDC3_DAT2"),
1848 MTK_EINT_FUNCTION(2, 71),
1849 MTK_FUNCTION(0, "GPIO197"),
1850 MTK_FUNCTION(1, "MSDC3_DAT2"),
1851 MTK_FUNCTION(2, "EINT71"),
1852 MTK_FUNCTION(3, "SCL6"),
1853 MTK_FUNCTION(4, "PWM5"),
1854 MTK_FUNCTION(5, "CLKM4"),
1855 MTK_FUNCTION(6, "MFG_TEST_CK_2")
1857 MTK_PIN(PINCTRL_PIN(198, "MSDC3_DAT3"),
1859 MTK_EINT_FUNCTION(2, 72),
1860 MTK_FUNCTION(0, "GPIO198"),
1861 MTK_FUNCTION(1, "MSDC3_DAT3"),
1862 MTK_FUNCTION(2, "EINT72"),
1863 MTK_FUNCTION(3, "SDA6"),
1864 MTK_FUNCTION(4, "PWM6"),
1865 MTK_FUNCTION(5, "CLKM5"),
1866 MTK_FUNCTION(6, "MFG_TEST_CK_3")
1868 MTK_PIN(PINCTRL_PIN(199, "MSDC3_CMD"),
1870 MTK_EINT_FUNCTION(2, 68),
1871 MTK_FUNCTION(0, "GPIO199"),
1872 MTK_FUNCTION(1, "MSDC3_CMD"),
1873 MTK_FUNCTION(2, "EINT68"),
1874 MTK_FUNCTION(3, "SDA2"),
1875 MTK_FUNCTION(4, "PWM2"),
1876 MTK_FUNCTION(5, "CLKM1"),
1877 MTK_FUNCTION(6, "MFG_TEST_CK_4")
1879 MTK_PIN(PINCTRL_PIN(200, "MSDC3_CLK"),
1881 MTK_EINT_FUNCTION(2, 67),
1882 MTK_FUNCTION(0, "GPIO200"),
1883 MTK_FUNCTION(1, "MSDC3_CLK"),
1884 MTK_FUNCTION(2, "EINT67"),
1885 MTK_FUNCTION(3, "SCL2"),
1886 MTK_FUNCTION(4, "PWM1"),
1887 MTK_FUNCTION(5, "CLKM0")
1889 MTK_PIN(PINCTRL_PIN(201, "MSDC3_DAT1"),
1891 MTK_EINT_FUNCTION(2, 70),
1892 MTK_FUNCTION(0, "GPIO201"),
1893 MTK_FUNCTION(1, "MSDC3_DAT1"),
1894 MTK_FUNCTION(2, "EINT70"),
1895 MTK_FUNCTION(3, "SDA3"),
1896 MTK_FUNCTION(4, "PWM4"),
1897 MTK_FUNCTION(5, "CLKM3")
1899 MTK_PIN(PINCTRL_PIN(202, "MSDC3_DAT0"),
1901 MTK_EINT_FUNCTION(2, 69),
1902 MTK_FUNCTION(0, "GPIO202"),
1903 MTK_FUNCTION(1, "MSDC3_DAT0"),
1904 MTK_FUNCTION(2, "EINT69"),
1905 MTK_FUNCTION(3, "SCL3"),
1906 MTK_FUNCTION(4, "PWM3"),
1907 MTK_FUNCTION(5, "CLKM2")
1911 #endif /* __PINCTRL_MTK_MT8135_H */