1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2019 MediaTek Inc.
5 #ifndef __PINCTRL_MTK_MT8516_H
6 #define __PINCTRL_MTK_MT8516_H
8 #include <linux/pinctrl/pinctrl.h>
9 #include "pinctrl-mtk-common.h"
11 static const struct mtk_desc_pin mtk_pins_mt8516
[] = {
13 PINCTRL_PIN(0, "EINT0"),
15 MTK_EINT_FUNCTION(0, 0),
16 MTK_FUNCTION(0, "GPIO0"),
17 MTK_FUNCTION(1, "PWM_B"),
18 MTK_FUNCTION(3, "I2S2_BCK"),
19 MTK_FUNCTION(4, "EXT_TXD0"),
20 MTK_FUNCTION(6, "SQICS"),
21 MTK_FUNCTION(7, "DBG_MON_A[6]")
24 PINCTRL_PIN(1, "EINT1"),
26 MTK_EINT_FUNCTION(0, 1),
27 MTK_FUNCTION(0, "GPIO1"),
28 MTK_FUNCTION(1, "PWM_C"),
29 MTK_FUNCTION(3, "I2S2_DI"),
30 MTK_FUNCTION(4, "EXT_TXD1"),
31 MTK_FUNCTION(5, "CONN_MCU_TDO"),
32 MTK_FUNCTION(6, "SQISO"),
33 MTK_FUNCTION(7, "DBG_MON_A[7]")
36 PINCTRL_PIN(2, "EINT2"),
38 MTK_EINT_FUNCTION(0, 2),
39 MTK_FUNCTION(0, "GPIO2"),
40 MTK_FUNCTION(1, "CLKM0"),
41 MTK_FUNCTION(3, "I2S2_LRCK"),
42 MTK_FUNCTION(4, "EXT_TXD2"),
43 MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
44 MTK_FUNCTION(6, "SQISI"),
45 MTK_FUNCTION(7, "DBG_MON_A[8]")
48 PINCTRL_PIN(3, "EINT3"),
50 MTK_EINT_FUNCTION(0, 3),
51 MTK_FUNCTION(0, "GPIO3"),
52 MTK_FUNCTION(1, "CLKM1"),
53 MTK_FUNCTION(3, "SPI_MI"),
54 MTK_FUNCTION(4, "EXT_TXD3"),
55 MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
56 MTK_FUNCTION(6, "SQIWP"),
57 MTK_FUNCTION(7, "DBG_MON_A[9]")
60 PINCTRL_PIN(4, "EINT4"),
62 MTK_EINT_FUNCTION(0, 4),
63 MTK_FUNCTION(0, "GPIO4"),
64 MTK_FUNCTION(1, "CLKM2"),
65 MTK_FUNCTION(3, "SPI_MO"),
66 MTK_FUNCTION(4, "EXT_TXC"),
67 MTK_FUNCTION(5, "CONN_MCU_TCK"),
68 MTK_FUNCTION(6, "CONN_MCU_AICE_JCKC"),
69 MTK_FUNCTION(7, "DBG_MON_A[10]")
72 PINCTRL_PIN(5, "EINT5"),
74 MTK_EINT_FUNCTION(0, 5),
75 MTK_FUNCTION(0, "GPIO5"),
76 MTK_FUNCTION(1, "UCTS2"),
77 MTK_FUNCTION(3, "SPI_CSB"),
78 MTK_FUNCTION(4, "EXT_RXER"),
79 MTK_FUNCTION(5, "CONN_MCU_TDI"),
80 MTK_FUNCTION(6, "CONN_TEST_CK"),
81 MTK_FUNCTION(7, "DBG_MON_A[11]")
84 PINCTRL_PIN(6, "EINT6"),
86 MTK_EINT_FUNCTION(0, 6),
87 MTK_FUNCTION(0, "GPIO6"),
88 MTK_FUNCTION(1, "URTS2"),
89 MTK_FUNCTION(3, "SPI_CLK"),
90 MTK_FUNCTION(4, "EXT_RXC"),
91 MTK_FUNCTION(5, "CONN_MCU_TRST_B"),
92 MTK_FUNCTION(7, "DBG_MON_A[12]")
95 PINCTRL_PIN(7, "EINT7"),
97 MTK_EINT_FUNCTION(0, 7),
98 MTK_FUNCTION(0, "GPIO7"),
99 MTK_FUNCTION(1, "SQIRST"),
100 MTK_FUNCTION(3, "SDA1_0"),
101 MTK_FUNCTION(4, "EXT_RXDV"),
102 MTK_FUNCTION(5, "CONN_MCU_TMS"),
103 MTK_FUNCTION(6, "CONN_MCU_AICE_JMSC"),
104 MTK_FUNCTION(7, "DBG_MON_A[13]")
107 PINCTRL_PIN(8, "EINT8"),
109 MTK_EINT_FUNCTION(0, 8),
110 MTK_FUNCTION(0, "GPIO8"),
111 MTK_FUNCTION(1, "SQICK"),
112 MTK_FUNCTION(2, "CLKM3"),
113 MTK_FUNCTION(3, "SCL1_0"),
114 MTK_FUNCTION(4, "EXT_RXD0"),
115 MTK_FUNCTION(5, "ANT_SEL0"),
116 MTK_FUNCTION(7, "DBG_MON_A[14]")
119 PINCTRL_PIN(9, "EINT9"),
121 MTK_EINT_FUNCTION(0, 9),
122 MTK_FUNCTION(0, "GPIO9"),
123 MTK_FUNCTION(1, "CLKM4"),
124 MTK_FUNCTION(2, "SDA2_0"),
125 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
126 MTK_FUNCTION(4, "EXT_RXD1"),
127 MTK_FUNCTION(5, "ANT_SEL1"),
128 MTK_FUNCTION(7, "DBG_MON_A[15]")
131 PINCTRL_PIN(10, "EINT10"),
133 MTK_EINT_FUNCTION(0, 10),
134 MTK_FUNCTION(0, "GPIO10"),
135 MTK_FUNCTION(1, "CLKM5"),
136 MTK_FUNCTION(2, "SCL2_0"),
137 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
138 MTK_FUNCTION(4, "EXT_RXD2"),
139 MTK_FUNCTION(5, "ANT_SEL2"),
140 MTK_FUNCTION(7, "DBG_MON_A[16]")
143 PINCTRL_PIN(11, "EINT11"),
145 MTK_EINT_FUNCTION(0, 11),
146 MTK_FUNCTION(0, "GPIO11"),
147 MTK_FUNCTION(1, "CLKM4"),
148 MTK_FUNCTION(2, "PWM_C"),
149 MTK_FUNCTION(3, "CONN_TEST_CK"),
150 MTK_FUNCTION(4, "ANT_SEL3"),
151 MTK_FUNCTION(6, "EXT_RXD3"),
152 MTK_FUNCTION(7, "DBG_MON_A[17]")
155 PINCTRL_PIN(12, "EINT12"),
157 MTK_EINT_FUNCTION(0, 12),
158 MTK_FUNCTION(0, "GPIO12"),
159 MTK_FUNCTION(1, "CLKM5"),
160 MTK_FUNCTION(2, "PWM_A"),
161 MTK_FUNCTION(3, "SPDIF_OUT"),
162 MTK_FUNCTION(4, "ANT_SEL4"),
163 MTK_FUNCTION(6, "EXT_TXEN"),
164 MTK_FUNCTION(7, "DBG_MON_A[18]")
167 PINCTRL_PIN(13, "EINT13"),
169 MTK_EINT_FUNCTION(0, 13),
170 MTK_FUNCTION(0, "GPIO13"),
171 MTK_FUNCTION(3, "TSF_IN"),
172 MTK_FUNCTION(4, "ANT_SEL5"),
173 MTK_FUNCTION(6, "SPDIF_IN"),
174 MTK_FUNCTION(7, "DBG_MON_A[19]")
177 PINCTRL_PIN(14, "EINT14"),
179 MTK_EINT_FUNCTION(0, 14),
180 MTK_FUNCTION(0, "GPIO14"),
181 MTK_FUNCTION(2, "I2S_8CH_DO1"),
182 MTK_FUNCTION(3, "TDM_RX_MCK"),
183 MTK_FUNCTION(4, "ANT_SEL1"),
184 MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
185 MTK_FUNCTION(6, "NCLE"),
186 MTK_FUNCTION(7, "DBG_MON_B[8]")
189 PINCTRL_PIN(15, "EINT15"),
191 MTK_EINT_FUNCTION(0, 15),
192 MTK_FUNCTION(0, "GPIO15"),
193 MTK_FUNCTION(2, "I2S_8CH_LRCK"),
194 MTK_FUNCTION(3, "TDM_RX_BCK"),
195 MTK_FUNCTION(4, "ANT_SEL2"),
196 MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
197 MTK_FUNCTION(6, "NCEB1"),
198 MTK_FUNCTION(7, "DBG_MON_B[9]")
201 PINCTRL_PIN(16, "EINT16"),
203 MTK_EINT_FUNCTION(0, 16),
204 MTK_FUNCTION(0, "GPIO16"),
205 MTK_FUNCTION(2, "I2S_8CH_BCK"),
206 MTK_FUNCTION(3, "TDM_RX_LRCK"),
207 MTK_FUNCTION(4, "ANT_SEL3"),
208 MTK_FUNCTION(5, "CONN_MCU_TRST_B"),
209 MTK_FUNCTION(6, "NCEB0"),
210 MTK_FUNCTION(7, "DBG_MON_B[10]")
213 PINCTRL_PIN(17, "EINT17"),
215 MTK_EINT_FUNCTION(0, 17),
216 MTK_FUNCTION(0, "GPIO17"),
217 MTK_FUNCTION(2, "I2S_8CH_MCK"),
218 MTK_FUNCTION(3, "TDM_RX_DI"),
219 MTK_FUNCTION(4, "IDDIG"),
220 MTK_FUNCTION(5, "ANT_SEL4"),
221 MTK_FUNCTION(6, "NREB"),
222 MTK_FUNCTION(7, "DBG_MON_B[11]")
225 PINCTRL_PIN(18, "EINT18"),
227 MTK_EINT_FUNCTION(0, 18),
228 MTK_FUNCTION(0, "GPIO18"),
229 MTK_FUNCTION(2, "USB_DRVVBUS"),
230 MTK_FUNCTION(3, "I2S3_LRCK"),
231 MTK_FUNCTION(4, "CLKM1"),
232 MTK_FUNCTION(5, "ANT_SEL3"),
233 MTK_FUNCTION(6, "I2S2_BCK"),
234 MTK_FUNCTION(7, "DBG_MON_A[20]")
237 PINCTRL_PIN(19, "EINT19"),
239 MTK_EINT_FUNCTION(0, 19),
240 MTK_FUNCTION(0, "GPIO19"),
241 MTK_FUNCTION(1, "UCTS1"),
242 MTK_FUNCTION(2, "IDDIG"),
243 MTK_FUNCTION(3, "I2S3_BCK"),
244 MTK_FUNCTION(4, "CLKM2"),
245 MTK_FUNCTION(5, "ANT_SEL4"),
246 MTK_FUNCTION(6, "I2S2_DI"),
247 MTK_FUNCTION(7, "DBG_MON_A[21]")
250 PINCTRL_PIN(20, "EINT20"),
252 MTK_EINT_FUNCTION(0, 20),
253 MTK_FUNCTION(0, "GPIO20"),
254 MTK_FUNCTION(1, "URTS1"),
255 MTK_FUNCTION(3, "I2S3_DO"),
256 MTK_FUNCTION(4, "CLKM3"),
257 MTK_FUNCTION(5, "ANT_SEL5"),
258 MTK_FUNCTION(6, "I2S2_LRCK"),
259 MTK_FUNCTION(7, "DBG_MON_A[22]")
262 PINCTRL_PIN(21, "EINT21"),
264 MTK_EINT_FUNCTION(0, 21),
265 MTK_FUNCTION(0, "GPIO21"),
266 MTK_FUNCTION(1, "NRNB"),
267 MTK_FUNCTION(2, "ANT_SEL0"),
268 MTK_FUNCTION(3, "I2S_8CH_DO4"),
269 MTK_FUNCTION(7, "DBG_MON_B[31]")
272 PINCTRL_PIN(22, "EINT22"),
274 MTK_EINT_FUNCTION(0, 22),
275 MTK_FUNCTION(0, "GPIO22"),
276 MTK_FUNCTION(2, "I2S_8CH_DO2"),
277 MTK_FUNCTION(3, "TSF_IN"),
278 MTK_FUNCTION(4, "USB_DRVVBUS"),
279 MTK_FUNCTION(5, "SPDIF_OUT"),
280 MTK_FUNCTION(6, "NRE_C"),
281 MTK_FUNCTION(7, "DBG_MON_B[12]")
284 PINCTRL_PIN(23, "EINT23"),
286 MTK_EINT_FUNCTION(0, 23),
287 MTK_FUNCTION(0, "GPIO23"),
288 MTK_FUNCTION(2, "I2S_8CH_DO3"),
289 MTK_FUNCTION(3, "CLKM0"),
290 MTK_FUNCTION(4, "IR"),
291 MTK_FUNCTION(5, "SPDIF_IN"),
292 MTK_FUNCTION(6, "NDQS_C"),
293 MTK_FUNCTION(7, "DBG_MON_B[13]")
296 PINCTRL_PIN(24, "EINT24"),
298 MTK_EINT_FUNCTION(0, 24),
299 MTK_FUNCTION(0, "GPIO24"),
300 MTK_FUNCTION(3, "ANT_SEL1"),
301 MTK_FUNCTION(4, "UCTS2"),
302 MTK_FUNCTION(5, "PWM_A"),
303 MTK_FUNCTION(6, "I2S0_MCK"),
304 MTK_FUNCTION(7, "DBG_MON_A[0]")
307 PINCTRL_PIN(25, "EINT25"),
309 MTK_EINT_FUNCTION(0, 25),
310 MTK_FUNCTION(0, "GPIO25"),
311 MTK_FUNCTION(3, "ANT_SEL0"),
312 MTK_FUNCTION(4, "URTS2"),
313 MTK_FUNCTION(5, "PWM_B"),
314 MTK_FUNCTION(6, "I2S_8CH_MCK"),
315 MTK_FUNCTION(7, "DBG_MON_A[1]")
318 PINCTRL_PIN(26, "PWRAP_SPI0_MI"),
320 MTK_EINT_FUNCTION(0, 26),
321 MTK_FUNCTION(0, "GPIO26"),
322 MTK_FUNCTION(1, "PWRAP_SPI0_MO"),
323 MTK_FUNCTION(2, "PWRAP_SPI0_MI")
326 PINCTRL_PIN(27, "PWRAP_SPI0_MO"),
328 MTK_EINT_FUNCTION(0, 27),
329 MTK_FUNCTION(0, "GPIO27"),
330 MTK_FUNCTION(1, "PWRAP_SPI0_MI"),
331 MTK_FUNCTION(2, "PWRAP_SPI0_MO")
334 PINCTRL_PIN(28, "PWRAP_INT"),
336 MTK_EINT_FUNCTION(0, 28),
337 MTK_FUNCTION(0, "GPIO28"),
338 MTK_FUNCTION(1, "I2S0_MCK"),
339 MTK_FUNCTION(4, "I2S_8CH_MCK"),
340 MTK_FUNCTION(5, "I2S2_MCK"),
341 MTK_FUNCTION(6, "I2S3_MCK")
344 PINCTRL_PIN(29, "PWRAP_SPI0_CK"),
346 MTK_EINT_FUNCTION(0, 29),
347 MTK_FUNCTION(0, "GPIO29"),
348 MTK_FUNCTION(1, "PWRAP_SPI0_CK")
351 PINCTRL_PIN(30, "PWRAP_SPI0_CSN"),
353 MTK_EINT_FUNCTION(0, 30),
354 MTK_FUNCTION(0, "GPIO30"),
355 MTK_FUNCTION(1, "PWRAP_SPI0_CSN")
358 PINCTRL_PIN(31, "RTC32K_CK"),
360 MTK_EINT_FUNCTION(0, 31),
361 MTK_FUNCTION(0, "GPIO31"),
362 MTK_FUNCTION(1, "RTC32K_CK")
365 PINCTRL_PIN(32, "WATCHDOG"),
367 MTK_EINT_FUNCTION(0, 32),
368 MTK_FUNCTION(0, "GPIO32"),
369 MTK_FUNCTION(1, "WATCHDOG")
372 PINCTRL_PIN(33, "SRCLKENA"),
374 MTK_EINT_FUNCTION(0, 33),
375 MTK_FUNCTION(0, "GPIO33"),
376 MTK_FUNCTION(1, "SRCLKENA0")
379 PINCTRL_PIN(34, "URXD2"),
381 MTK_EINT_FUNCTION(0, 34),
382 MTK_FUNCTION(0, "GPIO34"),
383 MTK_FUNCTION(1, "URXD2"),
384 MTK_FUNCTION(3, "UTXD2"),
385 MTK_FUNCTION(4, "DBG_SCL"),
386 MTK_FUNCTION(6, "I2S2_MCK"),
387 MTK_FUNCTION(7, "DBG_MON_B[0]")
390 PINCTRL_PIN(35, "UTXD2"),
392 MTK_EINT_FUNCTION(0, 35),
393 MTK_FUNCTION(0, "GPIO35"),
394 MTK_FUNCTION(1, "UTXD2"),
395 MTK_FUNCTION(3, "URXD2"),
396 MTK_FUNCTION(4, "DBG_SDA"),
397 MTK_FUNCTION(6, "I2S3_MCK"),
398 MTK_FUNCTION(7, "DBG_MON_B[1]")
401 PINCTRL_PIN(36, "MRG_CLK"),
403 MTK_EINT_FUNCTION(0, 36),
404 MTK_FUNCTION(0, "GPIO36"),
405 MTK_FUNCTION(1, "MRG_CLK"),
406 MTK_FUNCTION(3, "I2S0_BCK"),
407 MTK_FUNCTION(4, "I2S3_BCK"),
408 MTK_FUNCTION(5, "PCM0_CLK"),
409 MTK_FUNCTION(6, "IR"),
410 MTK_FUNCTION(7, "DBG_MON_A[2]")
413 PINCTRL_PIN(37, "MRG_SYNC"),
415 MTK_EINT_FUNCTION(0, 37),
416 MTK_FUNCTION(0, "GPIO37"),
417 MTK_FUNCTION(1, "MRG_SYNC"),
418 MTK_FUNCTION(3, "I2S0_LRCK"),
419 MTK_FUNCTION(4, "I2S3_LRCK"),
420 MTK_FUNCTION(5, "PCM0_SYNC"),
421 MTK_FUNCTION(6, "EXT_COL"),
422 MTK_FUNCTION(7, "DBG_MON_A[3]")
425 PINCTRL_PIN(38, "MRG_DI"),
427 MTK_EINT_FUNCTION(0, 38),
428 MTK_FUNCTION(0, "GPIO38"),
429 MTK_FUNCTION(1, "MRG_DI"),
430 MTK_FUNCTION(3, "I2S0_DI"),
431 MTK_FUNCTION(4, "I2S3_DO"),
432 MTK_FUNCTION(5, "PCM0_DI"),
433 MTK_FUNCTION(6, "EXT_MDIO"),
434 MTK_FUNCTION(7, "DBG_MON_A[4]")
437 PINCTRL_PIN(39, "MRG_DO"),
439 MTK_EINT_FUNCTION(0, 39),
440 MTK_FUNCTION(0, "GPIO39"),
441 MTK_FUNCTION(1, "MRG_DO"),
442 MTK_FUNCTION(3, "I2S0_MCK"),
443 MTK_FUNCTION(4, "I2S3_MCK"),
444 MTK_FUNCTION(5, "PCM0_DO"),
445 MTK_FUNCTION(6, "EXT_MDC"),
446 MTK_FUNCTION(7, "DBG_MON_A[5]")
449 PINCTRL_PIN(40, "KPROW0"),
451 MTK_EINT_FUNCTION(0, 40),
452 MTK_FUNCTION(0, "GPIO40"),
453 MTK_FUNCTION(1, "KPROW0"),
454 MTK_FUNCTION(7, "DBG_MON_B[4]")
457 PINCTRL_PIN(41, "KPROW1"),
459 MTK_EINT_FUNCTION(0, 41),
460 MTK_FUNCTION(0, "GPIO41"),
461 MTK_FUNCTION(1, "KPROW1"),
462 MTK_FUNCTION(2, "IDDIG"),
463 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
464 MTK_FUNCTION(7, "DBG_MON_B[5]")
467 PINCTRL_PIN(42, "KPCOL0"),
469 MTK_EINT_FUNCTION(0, 42),
470 MTK_FUNCTION(0, "GPIO42"),
471 MTK_FUNCTION(1, "KPCOL0"),
472 MTK_FUNCTION(7, "DBG_MON_B[6]")
475 PINCTRL_PIN(43, "KPCOL1"),
477 MTK_EINT_FUNCTION(0, 43),
478 MTK_FUNCTION(0, "GPIO43"),
479 MTK_FUNCTION(1, "KPCOL1"),
480 MTK_FUNCTION(2, "USB_DRVVBUS"),
481 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
482 MTK_FUNCTION(4, "TSF_IN"),
483 MTK_FUNCTION(7, "DBG_MON_B[7]")
486 PINCTRL_PIN(44, "JTMS"),
488 MTK_EINT_FUNCTION(0, 44),
489 MTK_FUNCTION(0, "GPIO44"),
490 MTK_FUNCTION(1, "JTMS"),
491 MTK_FUNCTION(2, "CONN_MCU_TMS"),
492 MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC")
495 PINCTRL_PIN(45, "JTCK"),
497 MTK_EINT_FUNCTION(0, 45),
498 MTK_FUNCTION(0, "GPIO45"),
499 MTK_FUNCTION(1, "JTCK"),
500 MTK_FUNCTION(2, "CONN_MCU_TCK"),
501 MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC")
504 PINCTRL_PIN(46, "JTDI"),
506 MTK_EINT_FUNCTION(0, 46),
507 MTK_FUNCTION(0, "GPIO46"),
508 MTK_FUNCTION(1, "JTDI"),
509 MTK_FUNCTION(2, "CONN_MCU_TDI")
512 PINCTRL_PIN(47, "JTDO"),
514 MTK_EINT_FUNCTION(0, 47),
515 MTK_FUNCTION(0, "GPIO47"),
516 MTK_FUNCTION(1, "JTDO"),
517 MTK_FUNCTION(2, "CONN_MCU_TDO")
520 PINCTRL_PIN(48, "SPI_CS"),
522 MTK_EINT_FUNCTION(0, 48),
523 MTK_FUNCTION(0, "GPIO48"),
524 MTK_FUNCTION(1, "SPI_CSB"),
525 MTK_FUNCTION(3, "I2S0_DI"),
526 MTK_FUNCTION(4, "I2S2_BCK"),
527 MTK_FUNCTION(7, "DBG_MON_A[23]")
530 PINCTRL_PIN(49, "SPI_CK"),
532 MTK_EINT_FUNCTION(0, 49),
533 MTK_FUNCTION(0, "GPIO49"),
534 MTK_FUNCTION(1, "SPI_CLK"),
535 MTK_FUNCTION(3, "I2S0_LRCK"),
536 MTK_FUNCTION(4, "I2S2_DI"),
537 MTK_FUNCTION(7, "DBG_MON_A[24]")
540 PINCTRL_PIN(50, "SPI_MI"),
542 MTK_EINT_FUNCTION(0, 50),
543 MTK_FUNCTION(0, "GPIO50"),
544 MTK_FUNCTION(1, "SPI_MI"),
545 MTK_FUNCTION(2, "SPI_MO"),
546 MTK_FUNCTION(3, "I2S0_BCK"),
547 MTK_FUNCTION(4, "I2S2_LRCK"),
548 MTK_FUNCTION(7, "DBG_MON_A[25]")
551 PINCTRL_PIN(51, "SPI_MO"),
553 MTK_EINT_FUNCTION(0, 51),
554 MTK_FUNCTION(0, "GPIO51"),
555 MTK_FUNCTION(1, "SPI_MO"),
556 MTK_FUNCTION(2, "SPI_MI"),
557 MTK_FUNCTION(3, "I2S0_MCK"),
558 MTK_FUNCTION(4, "I2S2_MCK"),
559 MTK_FUNCTION(7, "DBG_MON_A[26]")
562 PINCTRL_PIN(52, "SDA1"),
564 MTK_EINT_FUNCTION(0, 52),
565 MTK_FUNCTION(0, "GPIO52"),
566 MTK_FUNCTION(1, "SDA1_0")
569 PINCTRL_PIN(53, "SCL1"),
571 MTK_EINT_FUNCTION(0, 53),
572 MTK_FUNCTION(0, "GPIO53"),
573 MTK_FUNCTION(1, "SCL1_0")
576 PINCTRL_PIN(54, "GPIO54"),
578 MTK_EINT_FUNCTION(0, 54),
579 MTK_FUNCTION(0, "GPIO54"),
580 MTK_FUNCTION(2, "PWM_B"),
581 MTK_FUNCTION(7, "DBG_MON_B[2]")
584 PINCTRL_PIN(55, "I2S_DATA_IN"),
586 MTK_EINT_FUNCTION(0, 55),
587 MTK_FUNCTION(0, "GPIO55"),
588 MTK_FUNCTION(1, "I2S0_DI"),
589 MTK_FUNCTION(2, "UCTS0"),
590 MTK_FUNCTION(3, "I2S3_DO"),
591 MTK_FUNCTION(4, "I2S_8CH_DO1"),
592 MTK_FUNCTION(5, "PWM_A"),
593 MTK_FUNCTION(6, "I2S2_BCK"),
594 MTK_FUNCTION(7, "DBG_MON_A[28]")
597 PINCTRL_PIN(56, "I2S_LRCK"),
599 MTK_EINT_FUNCTION(0, 56),
600 MTK_FUNCTION(0, "GPIO56"),
601 MTK_FUNCTION(1, "I2S0_LRCK"),
602 MTK_FUNCTION(3, "I2S3_LRCK"),
603 MTK_FUNCTION(4, "I2S_8CH_LRCK"),
604 MTK_FUNCTION(5, "PWM_B"),
605 MTK_FUNCTION(6, "I2S2_DI"),
606 MTK_FUNCTION(7, "DBG_MON_A[29]")
609 PINCTRL_PIN(57, "I2S_BCK"),
611 MTK_EINT_FUNCTION(0, 57),
612 MTK_FUNCTION(0, "GPIO57"),
613 MTK_FUNCTION(1, "I2S0_BCK"),
614 MTK_FUNCTION(2, "URTS0"),
615 MTK_FUNCTION(3, "I2S3_BCK"),
616 MTK_FUNCTION(4, "I2S_8CH_BCK"),
617 MTK_FUNCTION(5, "PWM_C"),
618 MTK_FUNCTION(6, "I2S2_LRCK"),
619 MTK_FUNCTION(7, "DBG_MON_A[30]")
622 PINCTRL_PIN(58, "SDA0"),
624 MTK_EINT_FUNCTION(0, 58),
625 MTK_FUNCTION(0, "GPIO58"),
626 MTK_FUNCTION(1, "SDA0_0")
629 PINCTRL_PIN(59, "SCL0"),
631 MTK_EINT_FUNCTION(0, 59),
632 MTK_FUNCTION(0, "GPIO59"),
633 MTK_FUNCTION(1, "SCL0_0")
636 PINCTRL_PIN(60, "SDA2"),
638 MTK_EINT_FUNCTION(0, 60),
639 MTK_FUNCTION(0, "GPIO60"),
640 MTK_FUNCTION(1, "SDA2_0"),
641 MTK_FUNCTION(2, "PWM_B")
644 PINCTRL_PIN(61, "SCL2"),
646 MTK_EINT_FUNCTION(0, 61),
647 MTK_FUNCTION(0, "GPIO61"),
648 MTK_FUNCTION(1, "SCL2_0"),
649 MTK_FUNCTION(2, "PWM_C")
652 PINCTRL_PIN(62, "URXD0"),
654 MTK_EINT_FUNCTION(0, 62),
655 MTK_FUNCTION(0, "GPIO62"),
656 MTK_FUNCTION(1, "URXD0"),
657 MTK_FUNCTION(2, "UTXD0")
660 PINCTRL_PIN(63, "UTXD0"),
662 MTK_EINT_FUNCTION(0, 63),
663 MTK_FUNCTION(0, "GPIO63"),
664 MTK_FUNCTION(1, "UTXD0"),
665 MTK_FUNCTION(2, "URXD0")
668 PINCTRL_PIN(64, "URXD1"),
670 MTK_EINT_FUNCTION(0, 64),
671 MTK_FUNCTION(0, "GPIO64"),
672 MTK_FUNCTION(1, "URXD1"),
673 MTK_FUNCTION(2, "UTXD1"),
674 MTK_FUNCTION(7, "DBG_MON_A[27]")
677 PINCTRL_PIN(65, "UTXD1"),
679 MTK_EINT_FUNCTION(0, 65),
680 MTK_FUNCTION(0, "GPIO65"),
681 MTK_FUNCTION(1, "UTXD1"),
682 MTK_FUNCTION(2, "URXD1"),
683 MTK_FUNCTION(7, "DBG_MON_A[31]")
686 PINCTRL_PIN(66, "LCM_RST"),
688 MTK_EINT_FUNCTION(0, 66),
689 MTK_FUNCTION(0, "GPIO66"),
690 MTK_FUNCTION(1, "LCM_RST"),
691 MTK_FUNCTION(3, "I2S0_MCK"),
692 MTK_FUNCTION(7, "DBG_MON_B[3]")
695 PINCTRL_PIN(67, "GPIO67"),
697 MTK_EINT_FUNCTION(0, 67),
698 MTK_FUNCTION(0, "GPIO67"),
699 MTK_FUNCTION(3, "I2S_8CH_MCK"),
700 MTK_FUNCTION(7, "DBG_MON_B[14]")
703 PINCTRL_PIN(68, "MSDC2_CMD"),
705 MTK_EINT_FUNCTION(0, 68),
706 MTK_FUNCTION(0, "GPIO68"),
707 MTK_FUNCTION(1, "MSDC2_CMD"),
708 MTK_FUNCTION(2, "I2S_8CH_DO4"),
709 MTK_FUNCTION(3, "SDA1_0"),
710 MTK_FUNCTION(5, "USB_SDA"),
711 MTK_FUNCTION(6, "I2S3_BCK"),
712 MTK_FUNCTION(7, "DBG_MON_B[15]")
715 PINCTRL_PIN(69, "MSDC2_CLK"),
717 MTK_EINT_FUNCTION(0, 69),
718 MTK_FUNCTION(0, "GPIO69"),
719 MTK_FUNCTION(1, "MSDC2_CLK"),
720 MTK_FUNCTION(2, "I2S_8CH_DO3"),
721 MTK_FUNCTION(3, "SCL1_0"),
722 MTK_FUNCTION(5, "USB_SCL"),
723 MTK_FUNCTION(6, "I2S3_LRCK"),
724 MTK_FUNCTION(7, "DBG_MON_B[16]")
727 PINCTRL_PIN(70, "MSDC2_DAT0"),
729 MTK_EINT_FUNCTION(0, 70),
730 MTK_FUNCTION(0, "GPIO70"),
731 MTK_FUNCTION(1, "MSDC2_DAT0"),
732 MTK_FUNCTION(2, "I2S_8CH_DO2"),
733 MTK_FUNCTION(5, "UTXD0"),
734 MTK_FUNCTION(6, "I2S3_DO"),
735 MTK_FUNCTION(7, "DBG_MON_B[17]")
738 PINCTRL_PIN(71, "MSDC2_DAT1"),
740 MTK_EINT_FUNCTION(0, 71),
741 MTK_FUNCTION(0, "GPIO71"),
742 MTK_FUNCTION(1, "MSDC2_DAT1"),
743 MTK_FUNCTION(2, "I2S_8CH_DO1"),
744 MTK_FUNCTION(3, "PWM_A"),
745 MTK_FUNCTION(4, "I2S3_MCK"),
746 MTK_FUNCTION(5, "URXD0"),
747 MTK_FUNCTION(6, "PWM_B"),
748 MTK_FUNCTION(7, "DBG_MON_B[18]")
751 PINCTRL_PIN(72, "MSDC2_DAT2"),
753 MTK_EINT_FUNCTION(0, 72),
754 MTK_FUNCTION(0, "GPIO72"),
755 MTK_FUNCTION(1, "MSDC2_DAT2"),
756 MTK_FUNCTION(2, "I2S_8CH_LRCK"),
757 MTK_FUNCTION(3, "SDA2_0"),
758 MTK_FUNCTION(5, "UTXD1"),
759 MTK_FUNCTION(6, "PWM_C"),
760 MTK_FUNCTION(7, "DBG_MON_B[19]")
763 PINCTRL_PIN(73, "MSDC2_DAT3"),
765 MTK_EINT_FUNCTION(0, 73),
766 MTK_FUNCTION(0, "GPIO73"),
767 MTK_FUNCTION(1, "MSDC2_DAT3"),
768 MTK_FUNCTION(2, "I2S_8CH_BCK"),
769 MTK_FUNCTION(3, "SCL2_0"),
770 MTK_FUNCTION(4, "EXT_FRAME_SYNC"),
771 MTK_FUNCTION(5, "URXD1"),
772 MTK_FUNCTION(6, "PWM_A"),
773 MTK_FUNCTION(7, "DBG_MON_B[20]")
776 PINCTRL_PIN(74, "TDN3"),
778 MTK_EINT_FUNCTION(0, 74),
779 MTK_FUNCTION(0, "GPIO74"),
780 MTK_FUNCTION(1, "TDN3")
783 PINCTRL_PIN(75, "TDP3"),
785 MTK_EINT_FUNCTION(0, 75),
786 MTK_FUNCTION(0, "GPIO75"),
787 MTK_FUNCTION(1, "TDP3")
790 PINCTRL_PIN(76, "TDN2"),
792 MTK_EINT_FUNCTION(0, 76),
793 MTK_FUNCTION(0, "GPIO76"),
794 MTK_FUNCTION(1, "TDN2")
797 PINCTRL_PIN(77, "TDP2"),
799 MTK_EINT_FUNCTION(0, 77),
800 MTK_FUNCTION(0, "GPIO77"),
801 MTK_FUNCTION(1, "TDP2")
804 PINCTRL_PIN(78, "TCN"),
806 MTK_EINT_FUNCTION(0, 78),
807 MTK_FUNCTION(0, "GPIO78"),
808 MTK_FUNCTION(1, "TCN")
811 PINCTRL_PIN(79, "TCP"),
813 MTK_EINT_FUNCTION(0, 79),
814 MTK_FUNCTION(0, "GPIO79"),
815 MTK_FUNCTION(1, "TCP")
818 PINCTRL_PIN(80, "TDN1"),
820 MTK_EINT_FUNCTION(0, 80),
821 MTK_FUNCTION(0, "GPIO80"),
822 MTK_FUNCTION(1, "TDN1")
825 PINCTRL_PIN(81, "TDP1"),
827 MTK_EINT_FUNCTION(0, 81),
828 MTK_FUNCTION(0, "GPIO81"),
829 MTK_FUNCTION(1, "TDP1")
832 PINCTRL_PIN(82, "TDN0"),
834 MTK_EINT_FUNCTION(0, 82),
835 MTK_FUNCTION(0, "GPIO82"),
836 MTK_FUNCTION(1, "TDN0")
839 PINCTRL_PIN(83, "TDP0"),
841 MTK_EINT_FUNCTION(0, 83),
842 MTK_FUNCTION(0, "GPIO83"),
843 MTK_FUNCTION(1, "TDP0")
846 PINCTRL_PIN(84, "RDN0"),
848 MTK_EINT_FUNCTION(0, 84),
849 MTK_FUNCTION(0, "GPIO84"),
850 MTK_FUNCTION(1, "RDN0")
853 PINCTRL_PIN(85, "RDP0"),
855 MTK_EINT_FUNCTION(0, 85),
856 MTK_FUNCTION(0, "GPIO85"),
857 MTK_FUNCTION(1, "RDP0")
860 PINCTRL_PIN(86, "RDN1"),
862 MTK_EINT_FUNCTION(0, 86),
863 MTK_FUNCTION(0, "GPIO86"),
864 MTK_FUNCTION(1, "RDN1")
867 PINCTRL_PIN(87, "RDP1"),
869 MTK_EINT_FUNCTION(0, 87),
870 MTK_FUNCTION(0, "GPIO87"),
871 MTK_FUNCTION(1, "RDP1")
874 PINCTRL_PIN(88, "RCN"),
876 MTK_EINT_FUNCTION(0, 88),
877 MTK_FUNCTION(0, "GPIO88"),
878 MTK_FUNCTION(1, "RCN")
881 PINCTRL_PIN(89, "RCP"),
883 MTK_EINT_FUNCTION(0, 89),
884 MTK_FUNCTION(0, "GPIO89"),
885 MTK_FUNCTION(1, "RCP")
888 PINCTRL_PIN(90, "RDN2"),
890 MTK_EINT_FUNCTION(0, 90),
891 MTK_FUNCTION(0, "GPIO90"),
892 MTK_FUNCTION(1, "RDN2"),
893 MTK_FUNCTION(2, "CMDAT8")
896 PINCTRL_PIN(91, "RDP2"),
898 MTK_EINT_FUNCTION(0, 91),
899 MTK_FUNCTION(0, "GPIO91"),
900 MTK_FUNCTION(1, "RDP2"),
901 MTK_FUNCTION(2, "CMDAT9")
904 PINCTRL_PIN(92, "RDN3"),
906 MTK_EINT_FUNCTION(0, 92),
907 MTK_FUNCTION(0, "GPIO92"),
908 MTK_FUNCTION(1, "RDN3"),
909 MTK_FUNCTION(2, "CMDAT4")
912 PINCTRL_PIN(93, "RDP3"),
914 MTK_EINT_FUNCTION(0, 93),
915 MTK_FUNCTION(0, "GPIO93"),
916 MTK_FUNCTION(1, "RDP3"),
917 MTK_FUNCTION(2, "CMDAT5")
920 PINCTRL_PIN(94, "RCN_A"),
922 MTK_EINT_FUNCTION(0, 94),
923 MTK_FUNCTION(0, "GPIO94"),
924 MTK_FUNCTION(1, "RCN_A"),
925 MTK_FUNCTION(2, "CMDAT6")
928 PINCTRL_PIN(95, "RCP_A"),
930 MTK_EINT_FUNCTION(0, 95),
931 MTK_FUNCTION(0, "GPIO95"),
932 MTK_FUNCTION(1, "RCP_A"),
933 MTK_FUNCTION(2, "CMDAT7")
936 PINCTRL_PIN(96, "RDN1_A"),
938 MTK_EINT_FUNCTION(0, 96),
939 MTK_FUNCTION(0, "GPIO96"),
940 MTK_FUNCTION(1, "RDN1_A"),
941 MTK_FUNCTION(2, "CMDAT2"),
942 MTK_FUNCTION(3, "CMCSD2")
945 PINCTRL_PIN(97, "RDP1_A"),
947 MTK_EINT_FUNCTION(0, 97),
948 MTK_FUNCTION(0, "GPIO97"),
949 MTK_FUNCTION(1, "RDP1_A"),
950 MTK_FUNCTION(2, "CMDAT3"),
951 MTK_FUNCTION(3, "CMCSD3")
954 PINCTRL_PIN(98, "RDN0_A"),
956 MTK_EINT_FUNCTION(0, 98),
957 MTK_FUNCTION(0, "GPIO98"),
958 MTK_FUNCTION(1, "RDN0_A"),
959 MTK_FUNCTION(2, "CMHSYNC")
962 PINCTRL_PIN(99, "RDP0_A"),
964 MTK_EINT_FUNCTION(0, 99),
965 MTK_FUNCTION(0, "GPIO99"),
966 MTK_FUNCTION(1, "RDP0_A"),
967 MTK_FUNCTION(2, "CMVSYNC")
970 PINCTRL_PIN(100, "CMDAT0"),
972 MTK_EINT_FUNCTION(0, 100),
973 MTK_FUNCTION(0, "GPIO100"),
974 MTK_FUNCTION(1, "CMDAT0"),
975 MTK_FUNCTION(2, "CMCSD0"),
976 MTK_FUNCTION(3, "ANT_SEL2"),
977 MTK_FUNCTION(5, "TDM_RX_MCK"),
978 MTK_FUNCTION(7, "DBG_MON_B[21]")
981 PINCTRL_PIN(101, "CMDAT1"),
983 MTK_EINT_FUNCTION(0, 101),
984 MTK_FUNCTION(0, "GPIO101"),
985 MTK_FUNCTION(1, "CMDAT1"),
986 MTK_FUNCTION(2, "CMCSD1"),
987 MTK_FUNCTION(3, "ANT_SEL3"),
988 MTK_FUNCTION(4, "CMFLASH"),
989 MTK_FUNCTION(5, "TDM_RX_BCK"),
990 MTK_FUNCTION(7, "DBG_MON_B[22]")
993 PINCTRL_PIN(102, "CMMCLK"),
995 MTK_EINT_FUNCTION(0, 102),
996 MTK_FUNCTION(0, "GPIO102"),
997 MTK_FUNCTION(1, "CMMCLK"),
998 MTK_FUNCTION(3, "ANT_SEL4"),
999 MTK_FUNCTION(5, "TDM_RX_LRCK"),
1000 MTK_FUNCTION(7, "DBG_MON_B[23]")
1003 PINCTRL_PIN(103, "CMPCLK"),
1005 MTK_EINT_FUNCTION(0, 103),
1006 MTK_FUNCTION(0, "GPIO103"),
1007 MTK_FUNCTION(1, "CMPCLK"),
1008 MTK_FUNCTION(2, "CMCSK"),
1009 MTK_FUNCTION(3, "ANT_SEL5"),
1010 MTK_FUNCTION(5, " TDM_RX_DI"),
1011 MTK_FUNCTION(7, "DBG_MON_B[24]")
1014 PINCTRL_PIN(104, "MSDC1_CMD"),
1016 MTK_EINT_FUNCTION(0, 104),
1017 MTK_FUNCTION(0, "GPIO104"),
1018 MTK_FUNCTION(1, "MSDC1_CMD"),
1019 MTK_FUNCTION(4, "SQICS"),
1020 MTK_FUNCTION(7, "DBG_MON_B[25]")
1023 PINCTRL_PIN(105, "MSDC1_CLK"),
1025 MTK_EINT_FUNCTION(0, 105),
1026 MTK_FUNCTION(0, "GPIO105"),
1027 MTK_FUNCTION(1, "MSDC1_CLK"),
1028 MTK_FUNCTION(4, "SQISO"),
1029 MTK_FUNCTION(7, "DBG_MON_B[26]")
1032 PINCTRL_PIN(106, "MSDC1_DAT0"),
1034 MTK_EINT_FUNCTION(0, 106),
1035 MTK_FUNCTION(0, "GPIO106"),
1036 MTK_FUNCTION(1, "MSDC1_DAT0"),
1037 MTK_FUNCTION(4, "SQISI"),
1038 MTK_FUNCTION(7, "DBG_MON_B[27]")
1041 PINCTRL_PIN(107, "MSDC1_DAT1"),
1043 MTK_EINT_FUNCTION(0, 107),
1044 MTK_FUNCTION(0, "GPIO107"),
1045 MTK_FUNCTION(1, "MSDC1_DAT1"),
1046 MTK_FUNCTION(4, "SQIWP"),
1047 MTK_FUNCTION(7, "DBG_MON_B[28]")
1050 PINCTRL_PIN(108, "MSDC1_DAT2"),
1052 MTK_EINT_FUNCTION(0, 108),
1053 MTK_FUNCTION(0, "GPIO108"),
1054 MTK_FUNCTION(1, "MSDC1_DAT2"),
1055 MTK_FUNCTION(4, "SQIRST"),
1056 MTK_FUNCTION(7, "DBG_MON_B[29]")
1059 PINCTRL_PIN(109, "MSDC1_DAT3"),
1061 MTK_EINT_FUNCTION(0, 109),
1062 MTK_FUNCTION(0, "GPIO109"),
1063 MTK_FUNCTION(1, "MSDC1_DAT3"),
1064 MTK_FUNCTION(4, "SQICK"), /* WIP */
1065 MTK_FUNCTION(7, "DBG_MON_B[30]")
1068 PINCTRL_PIN(110, "MSDC0_DAT7"),
1070 MTK_EINT_FUNCTION(0, 110),
1071 MTK_FUNCTION(0, "GPIO110"),
1072 MTK_FUNCTION(1, "MSDC0_DAT7"),
1073 MTK_FUNCTION(4, "NLD7")
1076 PINCTRL_PIN(111, "MSDC0_DAT6"),
1078 MTK_EINT_FUNCTION(0, 111),
1079 MTK_FUNCTION(0, "GPIO111"),
1080 MTK_FUNCTION(1, "MSDC0_DAT6"),
1081 MTK_FUNCTION(4, "NLD6")
1084 PINCTRL_PIN(112, "MSDC0_DAT5"),
1086 MTK_EINT_FUNCTION(0, 112),
1087 MTK_FUNCTION(0, "GPIO112"),
1088 MTK_FUNCTION(1, "MSDC0_DAT5"),
1089 MTK_FUNCTION(4, "NLD4")
1092 PINCTRL_PIN(113, "MSDC0_DAT4"),
1094 MTK_EINT_FUNCTION(0, 113),
1095 MTK_FUNCTION(0, "GPIO113"),
1096 MTK_FUNCTION(1, "MSDC0_DAT4"),
1097 MTK_FUNCTION(4, "NLD3")
1100 PINCTRL_PIN(114, "MSDC0_RSTB"),
1102 MTK_EINT_FUNCTION(0, 114),
1103 MTK_FUNCTION(0, "GPIO114"),
1104 MTK_FUNCTION(1, "MSDC0_RSTB"),
1105 MTK_FUNCTION(4, "NLD0")
1108 PINCTRL_PIN(115, "MSDC0_CMD"),
1110 MTK_EINT_FUNCTION(0, 115),
1111 MTK_FUNCTION(0, "GPIO115"),
1112 MTK_FUNCTION(1, "MSDC0_CMD"),
1113 MTK_FUNCTION(4, "NALE")
1116 PINCTRL_PIN(116, "MSDC0_CLK"),
1118 MTK_EINT_FUNCTION(0, 116),
1119 MTK_FUNCTION(0, "GPIO116"),
1120 MTK_FUNCTION(1, "MSDC0_CLK"),
1121 MTK_FUNCTION(4, "NWEB")
1124 PINCTRL_PIN(117, "MSDC0_DAT3"),
1126 MTK_EINT_FUNCTION(0, 117),
1127 MTK_FUNCTION(0, "GPIO117"),
1128 MTK_FUNCTION(1, "MSDC0_DAT3"),
1129 MTK_FUNCTION(4, "NLD1")
1132 PINCTRL_PIN(118, "MSDC0_DAT2"),
1134 MTK_EINT_FUNCTION(0, 118),
1135 MTK_FUNCTION(0, "GPIO118"),
1136 MTK_FUNCTION(1, "MSDC0_DAT2"),
1137 MTK_FUNCTION(4, "NLD5")
1140 PINCTRL_PIN(119, "MSDC0_DAT1"),
1142 MTK_EINT_FUNCTION(0, 119),
1143 MTK_FUNCTION(0, "GPIO119"),
1144 MTK_FUNCTION(1, "MSDC0_DAT1"),
1145 MTK_FUNCTION(4, "NLD8")
1148 PINCTRL_PIN(120, "MSDC0_DAT0"),
1150 MTK_EINT_FUNCTION(0, 120),
1151 MTK_FUNCTION(0, "GPIO120"),
1152 MTK_FUNCTION(1, "MSDC0_DAT0"),
1153 MTK_FUNCTION(4, "WATCHDOG"),
1154 MTK_FUNCTION(5, "NLD2")
1157 PINCTRL_PIN(121, "GPIO121"),
1159 MTK_EINT_FUNCTION(0, 121),
1160 MTK_FUNCTION(0, "GPIO121")
1163 PINCTRL_PIN(122, "GPIO122"),
1165 MTK_EINT_FUNCTION(0, 122),
1166 MTK_FUNCTION(0, "GPIO122")
1169 PINCTRL_PIN(123, "GPIO123"),
1171 MTK_EINT_FUNCTION(0, 123),
1172 MTK_FUNCTION(0, "GPIO123")
1175 PINCTRL_PIN(124, "GPIO124"),
1177 MTK_EINT_FUNCTION(0, 124),
1178 MTK_FUNCTION(0, "GPIO124")
1182 #endif /* __PINCTRL_MTK_MT8516_H */