1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 MediaTek Inc.
4 * Author: Zhiyong Tao <zhiyong.tao@mediatek.com>
8 #ifndef __PINCTRL_MTK_MT8365_H
9 #define __PINCTRL_MTK_MT8365_H
11 #include <linux/pinctrl/pinctrl.h>
12 #include "pinctrl-mtk-common.h"
14 static const struct mtk_desc_pin mtk_pins_mt8365
[] = {
16 PINCTRL_PIN(0, "GPIO0"),
18 MTK_EINT_FUNCTION(0, 0),
19 MTK_FUNCTION(0, "GPIO0"),
20 MTK_FUNCTION(1, "DPI_D0"),
21 MTK_FUNCTION(2, "PWM_A"),
22 MTK_FUNCTION(3, "I2S2_BCK"),
23 MTK_FUNCTION(4, "EXT_TXD0"),
24 MTK_FUNCTION(5, "CONN_MCU_TDO"),
25 MTK_FUNCTION(7, "DBG_MON_A0")
28 PINCTRL_PIN(1, "GPIO1"),
30 MTK_EINT_FUNCTION(0, 1),
31 MTK_FUNCTION(0, "GPIO1"),
32 MTK_FUNCTION(1, "DPI_D1"),
33 MTK_FUNCTION(2, "PWM_B"),
34 MTK_FUNCTION(3, "I2S2_LRCK"),
35 MTK_FUNCTION(4, "EXT_TXD1"),
36 MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
37 MTK_FUNCTION(7, "DBG_MON_A1")
40 PINCTRL_PIN(2, "GPIO2"),
42 MTK_EINT_FUNCTION(0, 2),
43 MTK_FUNCTION(0, "GPIO2"),
44 MTK_FUNCTION(1, "DPI_D2"),
45 MTK_FUNCTION(2, "PWM_C"),
46 MTK_FUNCTION(3, "I2S2_MCK"),
47 MTK_FUNCTION(4, "EXT_TXD2"),
48 MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
49 MTK_FUNCTION(7, "DBG_MON_A2")
52 PINCTRL_PIN(3, "GPIO3"),
54 MTK_EINT_FUNCTION(0, 3),
55 MTK_FUNCTION(0, "GPIO3"),
56 MTK_FUNCTION(1, "DPI_D3"),
57 MTK_FUNCTION(2, "CLKM0"),
58 MTK_FUNCTION(3, "I2S2_DI"),
59 MTK_FUNCTION(4, "EXT_TXD3"),
60 MTK_FUNCTION(5, "CONN_MCU_TCK"),
61 MTK_FUNCTION(6, "CONN_MCU_AICE_TCKC"),
62 MTK_FUNCTION(7, "DBG_MON_A3")
65 PINCTRL_PIN(4, "GPIO4"),
67 MTK_EINT_FUNCTION(0, 4),
68 MTK_FUNCTION(0, "GPIO4"),
69 MTK_FUNCTION(1, "DPI_D4"),
70 MTK_FUNCTION(2, "CLKM1"),
71 MTK_FUNCTION(3, "I2S1_BCK"),
72 MTK_FUNCTION(4, "EXT_TXC"),
73 MTK_FUNCTION(5, "CONN_MCU_TDI"),
74 MTK_FUNCTION(6, "VDEC_TEST_CK"),
75 MTK_FUNCTION(7, "DBG_MON_A4")
78 PINCTRL_PIN(5, "GPIO5"),
80 MTK_EINT_FUNCTION(0, 5),
81 MTK_FUNCTION(0, "GPIO5"),
82 MTK_FUNCTION(1, "DPI_D5"),
83 MTK_FUNCTION(2, "CLKM2"),
84 MTK_FUNCTION(3, "I2S1_LRCK"),
85 MTK_FUNCTION(4, "EXT_RXER"),
86 MTK_FUNCTION(5, "CONN_MCU_TRST_B"),
87 MTK_FUNCTION(6, "MM_TEST_CK"),
88 MTK_FUNCTION(7, "DBG_MON_A5")
91 PINCTRL_PIN(6, "GPIO6"),
93 MTK_EINT_FUNCTION(0, 6),
94 MTK_FUNCTION(0, "GPIO6"),
95 MTK_FUNCTION(1, "DPI_D6"),
96 MTK_FUNCTION(2, "CLKM3"),
97 MTK_FUNCTION(3, "I2S1_MCK"),
98 MTK_FUNCTION(4, "EXT_RXC"),
99 MTK_FUNCTION(5, "CONN_MCU_TMS"),
100 MTK_FUNCTION(6, "CONN_MCU_AICE_TMSC"),
101 MTK_FUNCTION(7, "DBG_MON_A6")
104 PINCTRL_PIN(7, "GPIO7"),
106 MTK_EINT_FUNCTION(0, 7),
107 MTK_FUNCTION(0, "GPIO7"),
108 MTK_FUNCTION(1, "DPI_D7"),
109 MTK_FUNCTION(3, "I2S1_DO"),
110 MTK_FUNCTION(4, "EXT_RXDV"),
111 MTK_FUNCTION(5, "CONN_DSP_JCK"),
112 MTK_FUNCTION(7, "DBG_MON_A7")
115 PINCTRL_PIN(8, "GPIO8"),
117 MTK_EINT_FUNCTION(0, 8),
118 MTK_FUNCTION(0, "GPIO8"),
119 MTK_FUNCTION(1, "DPI_D8"),
120 MTK_FUNCTION(2, "SPI_CLK"),
121 MTK_FUNCTION(3, "I2S0_BCK"),
122 MTK_FUNCTION(4, "EXT_RXD0"),
123 MTK_FUNCTION(5, "CONN_DSP_JINTP"),
124 MTK_FUNCTION(7, "DBG_MON_A8")
127 PINCTRL_PIN(9, "GPIO9"),
129 MTK_EINT_FUNCTION(0, 9),
130 MTK_FUNCTION(0, "GPIO9"),
131 MTK_FUNCTION(1, "DPI_D9"),
132 MTK_FUNCTION(2, "SPI_CSB"),
133 MTK_FUNCTION(3, "I2S0_LRCK"),
134 MTK_FUNCTION(4, "EXT_RXD1"),
135 MTK_FUNCTION(5, "CONN_DSP_JDI"),
136 MTK_FUNCTION(7, "DBG_MON_A9")
139 PINCTRL_PIN(10, "GPIO10"),
141 MTK_EINT_FUNCTION(0, 10),
142 MTK_FUNCTION(0, "GPIO10"),
143 MTK_FUNCTION(1, "DPI_D10"),
144 MTK_FUNCTION(2, "SPI_MI"),
145 MTK_FUNCTION(3, "I2S0_MCK"),
146 MTK_FUNCTION(4, "EXT_RXD2"),
147 MTK_FUNCTION(5, "CONN_DSP_JMS"),
148 MTK_FUNCTION(7, "DBG_MON_A10")
151 PINCTRL_PIN(11, "GPIO11"),
153 MTK_EINT_FUNCTION(0, 11),
154 MTK_FUNCTION(0, "GPIO11"),
155 MTK_FUNCTION(1, "DPI_D11"),
156 MTK_FUNCTION(2, "SPI_MO"),
157 MTK_FUNCTION(3, "I2S0_DI"),
158 MTK_FUNCTION(4, "EXT_RXD3"),
159 MTK_FUNCTION(5, "CONN_DSP_JDO"),
160 MTK_FUNCTION(7, "DBG_MON_A11")
163 PINCTRL_PIN(12, "GPIO12"),
165 MTK_EINT_FUNCTION(0, 12),
166 MTK_FUNCTION(0, "GPIO12"),
167 MTK_FUNCTION(1, "DPI_DE"),
168 MTK_FUNCTION(2, "UCTS1"),
169 MTK_FUNCTION(3, "I2S3_BCK"),
170 MTK_FUNCTION(4, "EXT_TXEN"),
171 MTK_FUNCTION(5, "O_WIFI_TXD"),
172 MTK_FUNCTION(7, "DBG_MON_A12")
175 PINCTRL_PIN(13, "GPIO13"),
177 MTK_EINT_FUNCTION(0, 13),
178 MTK_FUNCTION(0, "GPIO13"),
179 MTK_FUNCTION(1, "DPI_VSYNC"),
180 MTK_FUNCTION(2, "URTS1"),
181 MTK_FUNCTION(3, "I2S3_LRCK"),
182 MTK_FUNCTION(4, "EXT_COL"),
183 MTK_FUNCTION(5, "SPDIF_IN"),
184 MTK_FUNCTION(7, "DBG_MON_A13")
187 PINCTRL_PIN(14, "GPIO14"),
189 MTK_EINT_FUNCTION(0, 14),
190 MTK_FUNCTION(0, "GPIO14"),
191 MTK_FUNCTION(1, "DPI_CK"),
192 MTK_FUNCTION(2, "UCTS2"),
193 MTK_FUNCTION(3, "I2S3_MCK"),
194 MTK_FUNCTION(4, "EXT_MDIO"),
195 MTK_FUNCTION(5, "SPDIF_OUT"),
196 MTK_FUNCTION(6, "DVFSRC_EXT_REQ"),
197 MTK_FUNCTION(7, "DBG_MON_A14")
200 PINCTRL_PIN(15, "GPIO15"),
202 MTK_EINT_FUNCTION(0, 15),
203 MTK_FUNCTION(0, "GPIO15"),
204 MTK_FUNCTION(1, "DPI_HSYNC"),
205 MTK_FUNCTION(2, "URTS2"),
206 MTK_FUNCTION(3, "I2S3_DO"),
207 MTK_FUNCTION(4, "EXT_MDC"),
208 MTK_FUNCTION(5, "IRRX"),
209 MTK_FUNCTION(6, "EXT_FRAME_SYNC"),
210 MTK_FUNCTION(7, "DBG_MON_A15")
213 PINCTRL_PIN(16, "GPIO16"),
215 MTK_EINT_FUNCTION(0, 16),
216 MTK_FUNCTION(0, "GPIO16"),
217 MTK_FUNCTION(1, "DPI_D12"),
218 MTK_FUNCTION(2, "USB_DRVVBUS"),
219 MTK_FUNCTION(3, "PWM_A"),
220 MTK_FUNCTION(4, "CLKM0"),
221 MTK_FUNCTION(5, "ANT_SEL0"),
222 MTK_FUNCTION(6, "TSF_IN"),
223 MTK_FUNCTION(7, "DBG_MON_A16")
226 PINCTRL_PIN(17, "GPIO17"),
228 MTK_EINT_FUNCTION(0, 17),
229 MTK_FUNCTION(0, "GPIO17"),
230 MTK_FUNCTION(1, "DPI_D13"),
231 MTK_FUNCTION(2, "IDDIG"),
232 MTK_FUNCTION(3, "PWM_B"),
233 MTK_FUNCTION(4, "CLKM1"),
234 MTK_FUNCTION(5, "ANT_SEL1"),
235 MTK_FUNCTION(6, "DVFSRC_EXT_REQ"),
236 MTK_FUNCTION(7, "DBG_MON_A17")
239 PINCTRL_PIN(18, "GPIO18"),
241 MTK_EINT_FUNCTION(0, 18),
242 MTK_FUNCTION(0, "GPIO18"),
243 MTK_FUNCTION(1, "DPI_D14"),
244 MTK_FUNCTION(2, "EXT_FRAME_SYNC"),
245 MTK_FUNCTION(3, "PWM_C"),
246 MTK_FUNCTION(4, "CLKM2"),
247 MTK_FUNCTION(5, "ANT_SEL2"),
248 MTK_FUNCTION(6, "MFG_TEST_CK"),
249 MTK_FUNCTION(7, "DBG_MON_A18")
252 PINCTRL_PIN(19, "DISP_PWM"),
254 MTK_EINT_FUNCTION(0, 19),
255 MTK_FUNCTION(0, "GPIO19"),
256 MTK_FUNCTION(1, "DISP_PWM"),
257 MTK_FUNCTION(2, "PWM_A"),
258 MTK_FUNCTION(7, "DBG_MON_A19")
261 PINCTRL_PIN(20, "LCM_RST"),
263 MTK_EINT_FUNCTION(0, 20),
264 MTK_FUNCTION(0, "GPIO20"),
265 MTK_FUNCTION(1, "LCM_RST"),
266 MTK_FUNCTION(2, "PWM_B"),
267 MTK_FUNCTION(7, "DBG_MON_A20")
270 PINCTRL_PIN(21, "DSI_TE"),
272 MTK_EINT_FUNCTION(0, 21),
273 MTK_FUNCTION(0, "GPIO21"),
274 MTK_FUNCTION(1, "DSI_TE"),
275 MTK_FUNCTION(2, "PWM_C"),
276 MTK_FUNCTION(3, "ANT_SEL0"),
277 MTK_FUNCTION(4, "DVFSRC_EXT_REQ"),
278 MTK_FUNCTION(7, "DBG_MON_A21")
281 PINCTRL_PIN(22, "KPROW0"),
283 MTK_EINT_FUNCTION(0, 22),
284 MTK_FUNCTION(0, "GPIO22"),
285 MTK_FUNCTION(1, "KPROW0"),
286 MTK_FUNCTION(7, "DBG_MON_A22")
289 PINCTRL_PIN(23, "KPROW1"),
291 MTK_EINT_FUNCTION(0, 23),
292 MTK_FUNCTION(0, "GPIO23"),
293 MTK_FUNCTION(1, "KPROW1"),
294 MTK_FUNCTION(2, "IDDIG"),
295 MTK_FUNCTION(3, "WIFI_TXD"),
296 MTK_FUNCTION(4, "CLKM3"),
297 MTK_FUNCTION(5, "ANT_SEL1"),
298 MTK_FUNCTION(6, "EXT_FRAME_SYNC"),
299 MTK_FUNCTION(7, "DBG_MON_B0")
302 PINCTRL_PIN(24, "KPCOL0"),
304 MTK_EINT_FUNCTION(0, 24),
305 MTK_FUNCTION(0, "GPIO24"),
306 MTK_FUNCTION(1, "KPCOL0"),
307 MTK_FUNCTION(7, "DBG_MON_A23")
310 PINCTRL_PIN(25, "KPCOL1"),
312 MTK_EINT_FUNCTION(0, 25),
313 MTK_FUNCTION(0, "GPIO25"),
314 MTK_FUNCTION(1, "KPCOL1"),
315 MTK_FUNCTION(2, "USB_DRVVBUS"),
316 MTK_FUNCTION(3, "APU_JTAG_TRST"),
317 MTK_FUNCTION(4, "UDI_NTRST_XI"),
318 MTK_FUNCTION(5, "DFD_NTRST_XI"),
319 MTK_FUNCTION(6, "CONN_TEST_CK"),
320 MTK_FUNCTION(7, "DBG_MON_B1")
323 PINCTRL_PIN(26, "SPI_CS"),
325 MTK_EINT_FUNCTION(0, 26),
326 MTK_FUNCTION(0, "GPIO26"),
327 MTK_FUNCTION(1, "SPI_CSB"),
328 MTK_FUNCTION(3, "APU_JTAG_TMS"),
329 MTK_FUNCTION(4, "UDI_TMS_XI"),
330 MTK_FUNCTION(5, "DFD_TMS_XI"),
331 MTK_FUNCTION(6, "CONN_TEST_CK"),
332 MTK_FUNCTION(7, "DBG_MON_A24")
335 PINCTRL_PIN(27, "SPI_CK"),
337 MTK_EINT_FUNCTION(0, 27),
338 MTK_FUNCTION(0, "GPIO27"),
339 MTK_FUNCTION(1, "SPI_CLK"),
340 MTK_FUNCTION(3, "APU_JTAG_TCK"),
341 MTK_FUNCTION(4, "UDI_TCK_XI"),
342 MTK_FUNCTION(5, "DFD_TCK_XI"),
343 MTK_FUNCTION(6, "APU_TEST_CK"),
344 MTK_FUNCTION(7, "DBG_MON_A25")
347 PINCTRL_PIN(28, "SPI_MI"),
349 MTK_EINT_FUNCTION(0, 28),
350 MTK_FUNCTION(0, "GPIO28"),
351 MTK_FUNCTION(1, "SPI_MI"),
352 MTK_FUNCTION(2, "SPI_MO"),
353 MTK_FUNCTION(3, "APU_JTAG_TDI"),
354 MTK_FUNCTION(4, "UDI_TDI_XI"),
355 MTK_FUNCTION(5, "DFD_TDI_XI"),
356 MTK_FUNCTION(6, "DSP_TEST_CK"),
357 MTK_FUNCTION(7, "DBG_MON_A26")
360 PINCTRL_PIN(29, "SPI_MO"),
362 MTK_EINT_FUNCTION(0, 29),
363 MTK_FUNCTION(0, "GPIO29"),
364 MTK_FUNCTION(1, "SPI_MO"),
365 MTK_FUNCTION(2, "SPI_MI"),
366 MTK_FUNCTION(3, "APU_JTAG_TDO"),
367 MTK_FUNCTION(4, "UDI_TDO"),
368 MTK_FUNCTION(5, "DFD_TDO"),
369 MTK_FUNCTION(6, "DVFSRC_EXT_REQ"),
370 MTK_FUNCTION(7, "DBG_MON_A27")
373 PINCTRL_PIN(30, "JTMS"),
375 MTK_EINT_FUNCTION(0, 30),
376 MTK_FUNCTION(0, "GPIO30"),
377 MTK_FUNCTION(1, "JTMS"),
378 MTK_FUNCTION(2, "DFD_TMS_XI"),
379 MTK_FUNCTION(3, "UDI_TMS_XI"),
380 MTK_FUNCTION(4, "MCU_SPM_TMS"),
381 MTK_FUNCTION(5, "CONN_MCU_TMS"),
382 MTK_FUNCTION(6, "CONN_MCU_AICE_TMSC")
385 PINCTRL_PIN(31, "JTCK"),
387 MTK_EINT_FUNCTION(0, 31),
388 MTK_FUNCTION(0, "GPIO31"),
389 MTK_FUNCTION(1, "JTCK"),
390 MTK_FUNCTION(2, "DFD_TCK_XI"),
391 MTK_FUNCTION(3, "UDI_TCK_XI"),
392 MTK_FUNCTION(4, "MCU_SPM_TCK"),
393 MTK_FUNCTION(5, "CONN_MCU_TCK"),
394 MTK_FUNCTION(6, "CONN_MCU_AICE_TCKC")
397 PINCTRL_PIN(32, "JTDI"),
399 MTK_EINT_FUNCTION(0, 32),
400 MTK_FUNCTION(0, "GPIO32"),
401 MTK_FUNCTION(1, "JTDI"),
402 MTK_FUNCTION(2, "DFD_TDI_XI"),
403 MTK_FUNCTION(3, "UDI_TDI_XI"),
404 MTK_FUNCTION(4, "MCU_SPM_TDI"),
405 MTK_FUNCTION(5, "CONN_MCU_TDI")
408 PINCTRL_PIN(33, "JTDO"),
410 MTK_EINT_FUNCTION(0, 33),
411 MTK_FUNCTION(0, "GPIO33"),
412 MTK_FUNCTION(1, "JTDO"),
413 MTK_FUNCTION(2, "DFD_TDO"),
414 MTK_FUNCTION(3, "UDI_TDO"),
415 MTK_FUNCTION(4, "MCU_SPM_TDO"),
416 MTK_FUNCTION(5, "CONN_MCU_TDO")
419 PINCTRL_PIN(34, "JTRST"),
421 MTK_EINT_FUNCTION(0, 34),
422 MTK_FUNCTION(0, "GPIO34"),
423 MTK_FUNCTION(1, "JTRST"),
424 MTK_FUNCTION(2, "DFD_NTRST_XI"),
425 MTK_FUNCTION(3, "UDI_NTRST_XI"),
426 MTK_FUNCTION(4, "MCU_SPM_NTRST"),
427 MTK_FUNCTION(5, "CONN_MCU_TRST_B")
430 PINCTRL_PIN(35, "URXD0"),
432 MTK_EINT_FUNCTION(0, 35),
433 MTK_FUNCTION(0, "GPIO35"),
434 MTK_FUNCTION(1, "URXD0"),
435 MTK_FUNCTION(2, "UTXD0"),
436 MTK_FUNCTION(7, "DSP_URXD0")
439 PINCTRL_PIN(36, "UTXD0"),
441 MTK_EINT_FUNCTION(0, 36),
442 MTK_FUNCTION(0, "GPIO36"),
443 MTK_FUNCTION(1, "UTXD0"),
444 MTK_FUNCTION(2, "URXD0"),
445 MTK_FUNCTION(7, "DSP_UTXD0")
448 PINCTRL_PIN(37, "URXD1"),
450 MTK_EINT_FUNCTION(0, 37),
451 MTK_FUNCTION(0, "GPIO37"),
452 MTK_FUNCTION(1, "URXD1"),
453 MTK_FUNCTION(2, "UTXD1"),
454 MTK_FUNCTION(3, "UCTS2"),
455 MTK_FUNCTION(4, "DVFSRC_EXT_REQ"),
456 MTK_FUNCTION(5, "CONN_UART0_RXD"),
457 MTK_FUNCTION(6, "I2S0_MCK"),
458 MTK_FUNCTION(7, "DSP_URXD0")
461 PINCTRL_PIN(38, "UTXD1"),
463 MTK_EINT_FUNCTION(0, 38),
464 MTK_FUNCTION(0, "GPIO38"),
465 MTK_FUNCTION(1, "UTXD1"),
466 MTK_FUNCTION(2, "URXD1"),
467 MTK_FUNCTION(3, "URTS2"),
468 MTK_FUNCTION(4, "ANT_SEL2"),
469 MTK_FUNCTION(5, "CONN_UART0_TXD"),
470 MTK_FUNCTION(6, "I2S1_MCK"),
471 MTK_FUNCTION(7, "DSP_UTXD0")
474 PINCTRL_PIN(39, "URXD2"),
476 MTK_EINT_FUNCTION(0, 39),
477 MTK_FUNCTION(0, "GPIO39"),
478 MTK_FUNCTION(1, "URXD2"),
479 MTK_FUNCTION(2, "UTXD2"),
480 MTK_FUNCTION(3, "UCTS1"),
481 MTK_FUNCTION(4, "IDDIG"),
482 MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
483 MTK_FUNCTION(6, "I2S2_MCK"),
484 MTK_FUNCTION(7, "DSP_URXD0")
487 PINCTRL_PIN(40, "UTXD2"),
489 MTK_EINT_FUNCTION(0, 40),
490 MTK_FUNCTION(0, "GPIO40"),
491 MTK_FUNCTION(1, "UTXD2"),
492 MTK_FUNCTION(2, "URXD2"),
493 MTK_FUNCTION(3, "URTS1"),
494 MTK_FUNCTION(4, "USB_DRVVBUS"),
495 MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
496 MTK_FUNCTION(6, "I2S3_MCK"),
497 MTK_FUNCTION(7, "DSP_UTXD0")
500 PINCTRL_PIN(41, "PWRAP_SPI0_MI"),
502 MTK_EINT_FUNCTION(0, 41),
503 MTK_FUNCTION(0, "GPIO41"),
504 MTK_FUNCTION(1, "PWRAP_SPI0_MI"),
505 MTK_FUNCTION(2, "PWRAP_SPI0_MO")
508 PINCTRL_PIN(42, "PWRAP_SPI0_MO"),
510 MTK_EINT_FUNCTION(0, 42),
511 MTK_FUNCTION(0, "GPIO42"),
512 MTK_FUNCTION(1, "PWRAP_SPI0_MO"),
513 MTK_FUNCTION(2, "PWRAP_SPI0_MI")
516 PINCTRL_PIN(43, "PWRAP_SPI0_CK"),
518 MTK_EINT_FUNCTION(0, 43),
519 MTK_FUNCTION(0, "GPIO43"),
520 MTK_FUNCTION(1, "PWRAP_SPI0_CK")
523 PINCTRL_PIN(44, "PWRAP_SPI0_CSN"),
525 MTK_EINT_FUNCTION(0, 44),
526 MTK_FUNCTION(0, "GPIO44"),
527 MTK_FUNCTION(1, "PWRAP_SPI0_CSN")
530 PINCTRL_PIN(45, "RTC32K_CK"),
532 MTK_EINT_FUNCTION(0, 45),
533 MTK_FUNCTION(0, "GPIO45"),
534 MTK_FUNCTION(1, "RTC32K_CK")
537 PINCTRL_PIN(46, "WATCHDOG"),
539 MTK_EINT_FUNCTION(0, 46),
540 MTK_FUNCTION(0, "GPIO46"),
541 MTK_FUNCTION(1, "WATCHDOG")
544 PINCTRL_PIN(47, "SRCLKENA0"),
546 MTK_EINT_FUNCTION(0, 47),
547 MTK_FUNCTION(0, "GPIO47"),
548 MTK_FUNCTION(1, "SRCLKENA0"),
549 MTK_FUNCTION(2, "SRCLKENA1")
552 PINCTRL_PIN(48, "SRCLKENA1"),
554 MTK_EINT_FUNCTION(0, 48),
555 MTK_FUNCTION(0, "GPIO48"),
556 MTK_FUNCTION(1, "SRCLKENA1")
559 PINCTRL_PIN(49, "AUD_CLK_MOSI"),
561 MTK_EINT_FUNCTION(0, 49),
562 MTK_FUNCTION(0, "GPIO49"),
563 MTK_FUNCTION(1, "AUD_CLK_MOSI"),
564 MTK_FUNCTION(2, "AUD_CLK_MISO"),
565 MTK_FUNCTION(3, "I2S1_MCK")
568 PINCTRL_PIN(50, "AUD_SYNC_MOSI"),
570 MTK_EINT_FUNCTION(0, 50),
571 MTK_FUNCTION(0, "GPIO50"),
572 MTK_FUNCTION(1, "AUD_SYNC_MOSI"),
573 MTK_FUNCTION(2, "AUD_SYNC_MISO"),
574 MTK_FUNCTION(3, "I2S1_BCK")
577 PINCTRL_PIN(51, "AUD_DAT_MOSI0"),
579 MTK_EINT_FUNCTION(0, 51),
580 MTK_FUNCTION(0, "GPIO51"),
581 MTK_FUNCTION(1, "AUD_DAT_MOSI0"),
582 MTK_FUNCTION(2, "AUD_DAT_MISO0"),
583 MTK_FUNCTION(3, "I2S1_LRCK")
586 PINCTRL_PIN(52, "AUD_DAT_MOSI1"),
588 MTK_EINT_FUNCTION(0, 52),
589 MTK_FUNCTION(0, "GPIO52"),
590 MTK_FUNCTION(1, "AUD_DAT_MOSI1"),
591 MTK_FUNCTION(2, "AUD_DAT_MISO1"),
592 MTK_FUNCTION(3, "I2S1_DO")
595 PINCTRL_PIN(53, "AUD_CLK_MISO"),
597 MTK_EINT_FUNCTION(0, 53),
598 MTK_FUNCTION(0, "GPIO53"),
599 MTK_FUNCTION(1, "AUD_CLK_MISO"),
600 MTK_FUNCTION(2, "AUD_CLK_MOSI"),
601 MTK_FUNCTION(3, "I2S2_MCK")
604 PINCTRL_PIN(54, "AUD_SYNC_MISO"),
606 MTK_EINT_FUNCTION(0, 54),
607 MTK_FUNCTION(0, "GPIO54"),
608 MTK_FUNCTION(1, "AUD_SYNC_MISO"),
609 MTK_FUNCTION(2, "AUD_SYNC_MOSI"),
610 MTK_FUNCTION(3, "I2S2_BCK")
613 PINCTRL_PIN(55, "AUD_DAT_MISO0"),
615 MTK_EINT_FUNCTION(0, 55),
616 MTK_FUNCTION(0, "GPIO55"),
617 MTK_FUNCTION(1, "AUD_DAT_MISO0"),
618 MTK_FUNCTION(2, "AUD_DAT_MOSI0"),
619 MTK_FUNCTION(3, "I2S2_LRCK")
622 PINCTRL_PIN(56, "AUD_DAT_MISO1"),
624 MTK_EINT_FUNCTION(0, 56),
625 MTK_FUNCTION(0, "GPIO56"),
626 MTK_FUNCTION(1, "AUD_DAT_MISO1"),
627 MTK_FUNCTION(2, "AUD_DAT_MOSI1"),
628 MTK_FUNCTION(3, "I2S2_DI")
631 PINCTRL_PIN(57, "SDA0"),
633 MTK_EINT_FUNCTION(0, 57),
634 MTK_FUNCTION(0, "GPIO57"),
635 MTK_FUNCTION(1, "SDA0_0")
638 PINCTRL_PIN(58, "SCL0"),
640 MTK_EINT_FUNCTION(0, 58),
641 MTK_FUNCTION(0, "GPIO58"),
642 MTK_FUNCTION(1, "SCL0_0")
645 PINCTRL_PIN(59, "SDA1"),
647 MTK_EINT_FUNCTION(0, 59),
648 MTK_FUNCTION(0, "GPIO59"),
649 MTK_FUNCTION(1, "SDA1_0"),
650 MTK_FUNCTION(6, "USB_SDA"),
651 MTK_FUNCTION(7, "DBG_SDA")
654 PINCTRL_PIN(60, "SCL1"),
656 MTK_EINT_FUNCTION(0, 60),
657 MTK_FUNCTION(0, "GPIO60"),
658 MTK_FUNCTION(1, "SCL1_0"),
659 MTK_FUNCTION(6, "USB_SCL"),
660 MTK_FUNCTION(7, "DBG_SCL")
663 PINCTRL_PIN(61, "SDA2"),
665 MTK_EINT_FUNCTION(0, 61),
666 MTK_FUNCTION(0, "GPIO61"),
667 MTK_FUNCTION(1, "SDA2_0")
670 PINCTRL_PIN(62, "SCL2"),
672 MTK_EINT_FUNCTION(0, 62),
673 MTK_FUNCTION(0, "GPIO62"),
674 MTK_FUNCTION(1, "SCL2_0")
677 PINCTRL_PIN(63, "SDA3"),
679 MTK_EINT_FUNCTION(0, 63),
680 MTK_FUNCTION(0, "GPIO63"),
681 MTK_FUNCTION(1, "SDA3_0")
684 PINCTRL_PIN(64, "SCL3"),
686 MTK_EINT_FUNCTION(0, 64),
687 MTK_FUNCTION(0, "GPIO64"),
688 MTK_FUNCTION(1, "SCL3_0")
691 PINCTRL_PIN(65, "CMMCLK0"),
693 MTK_EINT_FUNCTION(0, 65),
694 MTK_FUNCTION(0, "GPIO65"),
695 MTK_FUNCTION(1, "CMMCLK0"),
696 MTK_FUNCTION(2, "CMMCLK1"),
697 MTK_FUNCTION(7, "DBG_MON_A28")
700 PINCTRL_PIN(66, "CMMCLK1"),
702 MTK_EINT_FUNCTION(0, 66),
703 MTK_FUNCTION(0, "GPIO66"),
704 MTK_FUNCTION(1, "CMMCLK1"),
705 MTK_FUNCTION(2, "CMMCLK0"),
706 MTK_FUNCTION(7, "DBG_MON_B2")
709 PINCTRL_PIN(67, "CMPCLK"),
711 MTK_EINT_FUNCTION(0, 67),
712 MTK_FUNCTION(0, "GPIO67"),
713 MTK_FUNCTION(1, "CMPCLK"),
714 MTK_FUNCTION(2, "ANT_SEL0"),
715 MTK_FUNCTION(4, "TDM_RX_BCK"),
716 MTK_FUNCTION(5, "I2S0_BCK"),
717 MTK_FUNCTION(7, "DBG_MON_B3")
720 PINCTRL_PIN(68, "CMDAT0"),
722 MTK_EINT_FUNCTION(0, 68),
723 MTK_FUNCTION(0, "GPIO68"),
724 MTK_FUNCTION(1, "CMDAT0"),
725 MTK_FUNCTION(2, "ANT_SEL1"),
726 MTK_FUNCTION(4, "TDM_RX_LRCK"),
727 MTK_FUNCTION(5, "I2S0_LRCK"),
728 MTK_FUNCTION(7, "DBG_MON_B4")
731 PINCTRL_PIN(69, "CMDAT1"),
733 MTK_EINT_FUNCTION(0, 69),
734 MTK_FUNCTION(0, "GPIO69"),
735 MTK_FUNCTION(1, "CMDAT1"),
736 MTK_FUNCTION(2, "ANT_SEL2"),
737 MTK_FUNCTION(3, "DVFSRC_EXT_REQ"),
738 MTK_FUNCTION(4, "TDM_RX_MCK"),
739 MTK_FUNCTION(5, "I2S0_MCK"),
740 MTK_FUNCTION(7, "DBG_MON_B5")
743 PINCTRL_PIN(70, "CMDAT2"),
745 MTK_EINT_FUNCTION(0, 70),
746 MTK_FUNCTION(0, "GPIO70"),
747 MTK_FUNCTION(1, "CMDAT2"),
748 MTK_FUNCTION(2, "ANT_SEL3"),
749 MTK_FUNCTION(4, "TDM_RX_DI"),
750 MTK_FUNCTION(5, "I2S0_DI"),
751 MTK_FUNCTION(7, "DBG_MON_B6")
754 PINCTRL_PIN(71, "CMDAT3"),
756 MTK_EINT_FUNCTION(0, 71),
757 MTK_FUNCTION(0, "GPIO71"),
758 MTK_FUNCTION(1, "CMDAT3"),
759 MTK_FUNCTION(2, "ANT_SEL4"),
760 MTK_FUNCTION(7, "DBG_MON_B7")
763 PINCTRL_PIN(72, "CMDAT4"),
765 MTK_EINT_FUNCTION(0, 72),
766 MTK_FUNCTION(0, "GPIO72"),
767 MTK_FUNCTION(1, "CMDAT4"),
768 MTK_FUNCTION(2, "ANT_SEL5"),
769 MTK_FUNCTION(5, "I2S3_BCK"),
770 MTK_FUNCTION(7, "DBG_MON_B8")
773 PINCTRL_PIN(73, "CMDAT5"),
775 MTK_EINT_FUNCTION(0, 73),
776 MTK_FUNCTION(0, "GPIO73"),
777 MTK_FUNCTION(1, "CMDAT5"),
778 MTK_FUNCTION(2, "ANT_SEL6"),
779 MTK_FUNCTION(5, "I2S3_LRCK"),
780 MTK_FUNCTION(7, "DBG_MON_B9")
783 PINCTRL_PIN(74, "CMDAT6"),
785 MTK_EINT_FUNCTION(0, 74),
786 MTK_FUNCTION(0, "GPIO74"),
787 MTK_FUNCTION(1, "CMDAT6"),
788 MTK_FUNCTION(2, "ANT_SEL7"),
789 MTK_FUNCTION(5, "I2S3_MCK"),
790 MTK_FUNCTION(7, "DBG_MON_B10")
793 PINCTRL_PIN(75, "CMDAT7"),
795 MTK_EINT_FUNCTION(0, 75),
796 MTK_FUNCTION(0, "GPIO75"),
797 MTK_FUNCTION(1, "CMDAT7"),
798 MTK_FUNCTION(5, "I2S3_DO"),
799 MTK_FUNCTION(7, "DBG_MON_B11")
802 PINCTRL_PIN(76, "CMDAT8"),
804 MTK_EINT_FUNCTION(0, 76),
805 MTK_FUNCTION(0, "GPIO76"),
806 MTK_FUNCTION(1, "CMDAT8"),
807 MTK_FUNCTION(5, "PCM_CLK"),
808 MTK_FUNCTION(7, "DBG_MON_A29")
811 PINCTRL_PIN(77, "CMDAT9"),
813 MTK_EINT_FUNCTION(0, 77),
814 MTK_FUNCTION(0, "GPIO77"),
815 MTK_FUNCTION(1, "CMDAT9"),
816 MTK_FUNCTION(5, "PCM_SYNC"),
817 MTK_FUNCTION(7, "DBG_MON_A30")
820 PINCTRL_PIN(78, "CMHSYNC"),
822 MTK_EINT_FUNCTION(0, 78),
823 MTK_FUNCTION(0, "GPIO78"),
824 MTK_FUNCTION(1, "CMHSYNC"),
825 MTK_FUNCTION(5, "PCM_RX"),
826 MTK_FUNCTION(7, "DBG_MON_A31")
829 PINCTRL_PIN(79, "CMVSYNC"),
831 MTK_EINT_FUNCTION(0, 79),
832 MTK_FUNCTION(0, "GPIO79"),
833 MTK_FUNCTION(1, "CMVSYNC"),
834 MTK_FUNCTION(5, "PCM_TX"),
835 MTK_FUNCTION(7, "DBG_MON_A32")
838 PINCTRL_PIN(80, "MSDC2_CMD"),
840 MTK_EINT_FUNCTION(0, 80),
841 MTK_FUNCTION(0, "GPIO80"),
842 MTK_FUNCTION(1, "MSDC2_CMD"),
843 MTK_FUNCTION(2, "TDM_TX_LRCK"),
844 MTK_FUNCTION(3, "UTXD1"),
845 MTK_FUNCTION(4, "DPI_D19"),
846 MTK_FUNCTION(5, "UDI_TMS_XI"),
847 MTK_FUNCTION(6, "ADSP_JTAG_TMS")
850 PINCTRL_PIN(81, "MSDC2_CLK"),
852 MTK_EINT_FUNCTION(0, 81),
853 MTK_FUNCTION(0, "GPIO81"),
854 MTK_FUNCTION(1, "MSDC2_CLK"),
855 MTK_FUNCTION(2, "TDM_TX_BCK"),
856 MTK_FUNCTION(3, "URXD1"),
857 MTK_FUNCTION(4, "DPI_D20"),
858 MTK_FUNCTION(5, "UDI_TCK_XI"),
859 MTK_FUNCTION(6, "ADSP_JTAG_TCK")
862 PINCTRL_PIN(82, "MSDC2_DAT0"),
864 MTK_EINT_FUNCTION(0, 82),
865 MTK_FUNCTION(0, "GPIO82"),
866 MTK_FUNCTION(1, "MSDC2_DAT0"),
867 MTK_FUNCTION(2, "TDM_TX_DATA0"),
868 MTK_FUNCTION(3, "UTXD2"),
869 MTK_FUNCTION(4, "DPI_D21"),
870 MTK_FUNCTION(5, "UDI_TDI_XI"),
871 MTK_FUNCTION(6, "ADSP_JTAG_TDI")
874 PINCTRL_PIN(83, "MSDC2_DAT1"),
876 MTK_EINT_FUNCTION(0, 83),
877 MTK_FUNCTION(0, "GPIO83"),
878 MTK_FUNCTION(1, "MSDC2_DAT1"),
879 MTK_FUNCTION(2, "TDM_TX_DATA1"),
880 MTK_FUNCTION(3, "URXD2"),
881 MTK_FUNCTION(4, "DPI_D22"),
882 MTK_FUNCTION(5, "UDI_TDO"),
883 MTK_FUNCTION(6, "ADSP_JTAG_TDO")
886 PINCTRL_PIN(84, "MSDC2_DAT2"),
888 MTK_EINT_FUNCTION(0, 84),
889 MTK_FUNCTION(0, "GPIO84"),
890 MTK_FUNCTION(1, "MSDC2_DAT2"),
891 MTK_FUNCTION(2, "TDM_TX_DATA2"),
892 MTK_FUNCTION(3, "PWM_A"),
893 MTK_FUNCTION(4, "DPI_D23"),
894 MTK_FUNCTION(5, "UDI_NTRST_XI"),
895 MTK_FUNCTION(6, "ADSP_JTAG_TRST")
898 PINCTRL_PIN(85, "MSDC2_DAT3"),
900 MTK_EINT_FUNCTION(0, 85),
901 MTK_FUNCTION(0, "GPIO85"),
902 MTK_FUNCTION(1, "MSDC2_DAT3"),
903 MTK_FUNCTION(2, "TDM_TX_DATA3"),
904 MTK_FUNCTION(3, "PWM_B"),
905 MTK_FUNCTION(5, "EXT_FRAME_SYNC")
908 PINCTRL_PIN(86, "MSDC2_DSL"),
910 MTK_EINT_FUNCTION(0, 86),
911 MTK_FUNCTION(0, "GPIO86"),
912 MTK_FUNCTION(1, "MSDC2_DSL"),
913 MTK_FUNCTION(2, "TDM_TX_MCK"),
914 MTK_FUNCTION(3, "PWM_C")
917 PINCTRL_PIN(87, "MSDC1_CMD"),
919 MTK_EINT_FUNCTION(0, 87),
920 MTK_FUNCTION(0, "GPIO87"),
921 MTK_FUNCTION(1, "MSDC1_CMD"),
922 MTK_FUNCTION(2, "CONN_MCU_AICE_TMSC"),
923 MTK_FUNCTION(3, "DFD_TMS_XI"),
924 MTK_FUNCTION(4, "APU_JTAG_TMS"),
925 MTK_FUNCTION(5, "MCU_SPM_TMS"),
926 MTK_FUNCTION(6, "CONN_DSP_JMS"),
927 MTK_FUNCTION(7, "ADSP_JTAG_TMS")
930 PINCTRL_PIN(88, "MSDC1_CLK"),
932 MTK_EINT_FUNCTION(0, 88),
933 MTK_FUNCTION(0, "GPIO88"),
934 MTK_FUNCTION(1, "MSDC1_CLK"),
935 MTK_FUNCTION(2, "CONN_MCU_AICE_TCKC"),
936 MTK_FUNCTION(3, "DFD_TCK_XI"),
937 MTK_FUNCTION(4, "APU_JTAG_TCK"),
938 MTK_FUNCTION(5, "MCU_SPM_TCK"),
939 MTK_FUNCTION(6, "CONN_DSP_JCK"),
940 MTK_FUNCTION(7, "ADSP_JTAG_TCK")
943 PINCTRL_PIN(89, "MSDC1_DAT0"),
945 MTK_EINT_FUNCTION(0, 89),
946 MTK_FUNCTION(0, "GPIO89"),
947 MTK_FUNCTION(1, "MSDC1_DAT0"),
948 MTK_FUNCTION(2, "PWM_C"),
949 MTK_FUNCTION(3, "DFD_TDI_XI"),
950 MTK_FUNCTION(4, "APU_JTAG_TDI"),
951 MTK_FUNCTION(5, "MCU_SPM_TDI"),
952 MTK_FUNCTION(6, "CONN_DSP_JDI"),
953 MTK_FUNCTION(7, "ADSP_JTAG_TDI")
956 PINCTRL_PIN(90, "MSDC1_DAT1"),
958 MTK_EINT_FUNCTION(0, 90),
959 MTK_FUNCTION(0, "GPIO90"),
960 MTK_FUNCTION(1, "MSDC1_DAT1"),
961 MTK_FUNCTION(2, "SPDIF_IN"),
962 MTK_FUNCTION(3, "DFD_TDO"),
963 MTK_FUNCTION(4, "APU_JTAG_TDO"),
964 MTK_FUNCTION(5, "MCU_SPM_TDO"),
965 MTK_FUNCTION(6, "CONN_DSP_JDO"),
966 MTK_FUNCTION(7, "ADSP_JTAG_TDO")
969 PINCTRL_PIN(91, "MSDC1_DAT2"),
971 MTK_EINT_FUNCTION(0, 91),
972 MTK_FUNCTION(0, "GPIO91"),
973 MTK_FUNCTION(1, "MSDC1_DAT2"),
974 MTK_FUNCTION(2, "SPDIF_OUT"),
975 MTK_FUNCTION(3, "DFD_NTRST_XI"),
976 MTK_FUNCTION(4, "APU_JTAG_TRST"),
977 MTK_FUNCTION(5, "MCU_SPM_NTRST"),
978 MTK_FUNCTION(6, "CONN_DSP_JINTP"),
979 MTK_FUNCTION(7, "ADSP_JTAG_TRST")
982 PINCTRL_PIN(92, "MSDC1_DAT3"),
984 MTK_EINT_FUNCTION(0, 92),
985 MTK_FUNCTION(0, "GPIO92"),
986 MTK_FUNCTION(1, "MSDC1_DAT3"),
987 MTK_FUNCTION(2, "IRRX"),
988 MTK_FUNCTION(3, "PWM_A")
991 PINCTRL_PIN(93, "MSDC0_DAT7"),
993 MTK_EINT_FUNCTION(0, 93),
994 MTK_FUNCTION(0, "GPIO93"),
995 MTK_FUNCTION(1, "MSDC0_DAT7"),
996 MTK_FUNCTION(2, "NLD7")
999 PINCTRL_PIN(94, "MSDC0_DAT6"),
1001 MTK_EINT_FUNCTION(0, 94),
1002 MTK_FUNCTION(0, "GPIO94"),
1003 MTK_FUNCTION(1, "MSDC0_DAT6"),
1004 MTK_FUNCTION(2, "NLD6")
1007 PINCTRL_PIN(95, "MSDC0_DAT5"),
1009 MTK_EINT_FUNCTION(0, 95),
1010 MTK_FUNCTION(0, "GPIO95"),
1011 MTK_FUNCTION(1, "MSDC0_DAT5"),
1012 MTK_FUNCTION(2, "NLD4")
1015 PINCTRL_PIN(96, "MSDC0_DAT4"),
1017 MTK_EINT_FUNCTION(0, 96),
1018 MTK_FUNCTION(0, "GPIO96"),
1019 MTK_FUNCTION(1, "MSDC0_DAT4"),
1020 MTK_FUNCTION(2, "NLD3")
1023 PINCTRL_PIN(97, "MSDC0_RSTB"),
1025 MTK_EINT_FUNCTION(0, 97),
1026 MTK_FUNCTION(0, "GPIO97"),
1027 MTK_FUNCTION(1, "MSDC0_RSTB"),
1028 MTK_FUNCTION(2, "NLD0")
1031 PINCTRL_PIN(98, "MSDC0_CMD"),
1033 MTK_EINT_FUNCTION(0, 98),
1034 MTK_FUNCTION(0, "GPIO98"),
1035 MTK_FUNCTION(1, "MSDC0_CMD"),
1036 MTK_FUNCTION(2, "NALE")
1039 PINCTRL_PIN(99, "MSDC0_CLK"),
1041 MTK_EINT_FUNCTION(0, 99),
1042 MTK_FUNCTION(0, "GPIO99"),
1043 MTK_FUNCTION(1, "MSDC0_CLK"),
1044 MTK_FUNCTION(2, "NWEB")
1047 PINCTRL_PIN(100, "MSDC0_DAT3"),
1049 MTK_EINT_FUNCTION(0, 100),
1050 MTK_FUNCTION(0, "GPIO100"),
1051 MTK_FUNCTION(1, "MSDC0_DAT3"),
1052 MTK_FUNCTION(2, "NLD1")
1055 PINCTRL_PIN(101, "MSDC0_DAT2"),
1057 MTK_EINT_FUNCTION(0, 101),
1058 MTK_FUNCTION(0, "GPIO101"),
1059 MTK_FUNCTION(1, "MSDC0_DAT2"),
1060 MTK_FUNCTION(2, "NLD5")
1063 PINCTRL_PIN(102, "MSDC0_DAT1"),
1065 MTK_EINT_FUNCTION(0, 102),
1066 MTK_FUNCTION(0, "GPIO102"),
1067 MTK_FUNCTION(1, "MSDC0_DAT1"),
1068 MTK_FUNCTION(2, "NDQS")
1071 PINCTRL_PIN(103, "MSDC0_DAT0"),
1073 MTK_EINT_FUNCTION(0, 103),
1074 MTK_FUNCTION(0, "GPIO103"),
1075 MTK_FUNCTION(1, "MSDC0_DAT0"),
1076 MTK_FUNCTION(2, "NLD2")
1079 PINCTRL_PIN(104, "MSDC0_DSL"),
1081 MTK_EINT_FUNCTION(0, 104),
1082 MTK_FUNCTION(0, "GPIO104"),
1083 MTK_FUNCTION(1, "MSDC0_DSL")
1086 PINCTRL_PIN(105, "NCLE"),
1088 MTK_EINT_FUNCTION(0, 105),
1089 MTK_FUNCTION(0, "GPIO105"),
1090 MTK_FUNCTION(1, "NCLE"),
1091 MTK_FUNCTION(2, "TDM_RX_MCK"),
1092 MTK_FUNCTION(7, "DBG_MON_B12")
1095 PINCTRL_PIN(106, "NCEB1"),
1097 MTK_EINT_FUNCTION(0, 106),
1098 MTK_FUNCTION(0, "GPIO106"),
1099 MTK_FUNCTION(1, "NCEB1"),
1100 MTK_FUNCTION(2, "TDM_RX_BCK"),
1101 MTK_FUNCTION(7, "DBG_MON_B13")
1104 PINCTRL_PIN(107, "NCEB0"),
1106 MTK_EINT_FUNCTION(0, 107),
1107 MTK_FUNCTION(0, "GPIO107"),
1108 MTK_FUNCTION(1, "NCEB0"),
1109 MTK_FUNCTION(2, "TDM_RX_LRCK"),
1110 MTK_FUNCTION(7, "DBG_MON_B14")
1113 PINCTRL_PIN(108, "NREB"),
1115 MTK_EINT_FUNCTION(0, 108),
1116 MTK_FUNCTION(0, "GPIO108"),
1117 MTK_FUNCTION(1, "NREB"),
1118 MTK_FUNCTION(2, "TDM_RX_DI"),
1119 MTK_FUNCTION(7, "DBG_MON_B15")
1122 PINCTRL_PIN(109, "NRNB"),
1124 MTK_EINT_FUNCTION(0, 109),
1125 MTK_FUNCTION(0, "GPIO109"),
1126 MTK_FUNCTION(1, "NRNB"),
1127 MTK_FUNCTION(2, "TSF_IN"),
1128 MTK_FUNCTION(7, "DBG_MON_B16")
1131 PINCTRL_PIN(110, "PCM_CLK"),
1133 MTK_EINT_FUNCTION(0, 110),
1134 MTK_FUNCTION(0, "GPIO110"),
1135 MTK_FUNCTION(1, "PCM_CLK"),
1136 MTK_FUNCTION(2, "I2S0_BCK"),
1137 MTK_FUNCTION(3, "I2S3_BCK"),
1138 MTK_FUNCTION(4, "SPDIF_IN"),
1139 MTK_FUNCTION(5, "DPI_D15")
1142 PINCTRL_PIN(111, "PCM_SYNC"),
1144 MTK_EINT_FUNCTION(0, 111),
1145 MTK_FUNCTION(0, "GPIO111"),
1146 MTK_FUNCTION(1, "PCM_SYNC"),
1147 MTK_FUNCTION(2, "I2S0_LRCK"),
1148 MTK_FUNCTION(3, "I2S3_LRCK"),
1149 MTK_FUNCTION(4, "SPDIF_OUT"),
1150 MTK_FUNCTION(5, "DPI_D16")
1153 PINCTRL_PIN(112, "PCM_RX"),
1155 MTK_EINT_FUNCTION(0, 112),
1156 MTK_FUNCTION(0, "GPIO112"),
1157 MTK_FUNCTION(1, "PCM_RX"),
1158 MTK_FUNCTION(2, "I2S0_DI"),
1159 MTK_FUNCTION(3, "I2S3_MCK"),
1160 MTK_FUNCTION(4, "IRRX"),
1161 MTK_FUNCTION(5, "DPI_D17")
1164 PINCTRL_PIN(113, "PCM_TX"),
1166 MTK_EINT_FUNCTION(0, 113),
1167 MTK_FUNCTION(0, "GPIO113"),
1168 MTK_FUNCTION(1, "PCM_TX"),
1169 MTK_FUNCTION(2, "I2S0_MCK"),
1170 MTK_FUNCTION(3, "I2S3_DO"),
1171 MTK_FUNCTION(4, "PWM_B"),
1172 MTK_FUNCTION(5, "DPI_D18")
1175 PINCTRL_PIN(114, "I2S_DATA_IN"),
1177 MTK_EINT_FUNCTION(0, 114),
1178 MTK_FUNCTION(0, "GPIO114"),
1179 MTK_FUNCTION(1, "I2S0_DI"),
1180 MTK_FUNCTION(2, "I2S1_DO"),
1181 MTK_FUNCTION(3, "I2S2_DI"),
1182 MTK_FUNCTION(4, "I2S3_DO"),
1183 MTK_FUNCTION(5, "PWM_A"),
1184 MTK_FUNCTION(6, "SPDIF_IN"),
1185 MTK_FUNCTION(7, "DBG_MON_B17")
1188 PINCTRL_PIN(115, "I2S_LRCK"),
1190 MTK_EINT_FUNCTION(0, 115),
1191 MTK_FUNCTION(0, "GPIO115"),
1192 MTK_FUNCTION(1, "I2S0_LRCK"),
1193 MTK_FUNCTION(2, "I2S1_LRCK"),
1194 MTK_FUNCTION(3, "I2S2_LRCK"),
1195 MTK_FUNCTION(4, "I2S3_LRCK"),
1196 MTK_FUNCTION(5, "PWM_B"),
1197 MTK_FUNCTION(6, "SPDIF_OUT"),
1198 MTK_FUNCTION(7, "DBG_MON_B18")
1201 PINCTRL_PIN(116, "I2S_BCK"),
1203 MTK_EINT_FUNCTION(0, 116),
1204 MTK_FUNCTION(0, "GPIO116"),
1205 MTK_FUNCTION(1, "I2S0_BCK"),
1206 MTK_FUNCTION(2, "I2S1_BCK"),
1207 MTK_FUNCTION(3, "I2S2_BCK"),
1208 MTK_FUNCTION(4, "I2S3_BCK"),
1209 MTK_FUNCTION(5, "PWM_C"),
1210 MTK_FUNCTION(6, "IRRX"),
1211 MTK_FUNCTION(7, "DBG_MON_B19")
1214 PINCTRL_PIN(117, "DMIC0_CLK"),
1216 MTK_EINT_FUNCTION(0, 117),
1217 MTK_FUNCTION(0, "GPIO117"),
1218 MTK_FUNCTION(1, "DMIC0_CLK"),
1219 MTK_FUNCTION(2, "I2S2_BCK"),
1220 MTK_FUNCTION(7, "DBG_MON_B20")
1223 PINCTRL_PIN(118, "DMIC0_DAT0"),
1225 MTK_EINT_FUNCTION(0, 118),
1226 MTK_FUNCTION(0, "GPIO118"),
1227 MTK_FUNCTION(1, "DMIC0_DAT0"),
1228 MTK_FUNCTION(2, "I2S2_DI"),
1229 MTK_FUNCTION(7, "DBG_MON_B21")
1232 PINCTRL_PIN(119, "DMIC0_DAT1"),
1234 MTK_EINT_FUNCTION(0, 119),
1235 MTK_FUNCTION(0, "GPIO119"),
1236 MTK_FUNCTION(1, "DMIC0_DAT1"),
1237 MTK_FUNCTION(2, "I2S2_LRCK"),
1238 MTK_FUNCTION(7, "DBG_MON_B22")
1241 PINCTRL_PIN(120, "DMIC1_CLK"),
1243 MTK_EINT_FUNCTION(0, 120),
1244 MTK_FUNCTION(0, "GPIO120"),
1245 MTK_FUNCTION(1, "DMIC1_CLK"),
1246 MTK_FUNCTION(2, "I2S2_MCK"),
1247 MTK_FUNCTION(7, "DBG_MON_B23")
1250 PINCTRL_PIN(121, "DMIC1_DAT0"),
1252 MTK_EINT_FUNCTION(0, 121),
1253 MTK_FUNCTION(0, "GPIO121"),
1254 MTK_FUNCTION(1, "DMIC1_DAT0"),
1255 MTK_FUNCTION(2, "I2S1_BCK"),
1256 MTK_FUNCTION(7, "DBG_MON_B24")
1259 PINCTRL_PIN(122, "DMIC1_DAT1"),
1261 MTK_EINT_FUNCTION(0, 122),
1262 MTK_FUNCTION(0, "GPIO122"),
1263 MTK_FUNCTION(1, "DMIC1_DAT1"),
1264 MTK_FUNCTION(2, "I2S1_LRCK"),
1265 MTK_FUNCTION(7, "DBG_MON_B25")
1268 PINCTRL_PIN(123, "DMIC2_CLK"),
1270 MTK_EINT_FUNCTION(0, 123),
1271 MTK_FUNCTION(0, "GPIO123"),
1272 MTK_FUNCTION(1, "DMIC2_CLK"),
1273 MTK_FUNCTION(2, "I2S1_MCK"),
1274 MTK_FUNCTION(7, "DBG_MON_B26")
1277 PINCTRL_PIN(124, "DMIC2_DAT0"),
1279 MTK_EINT_FUNCTION(0, 124),
1280 MTK_FUNCTION(0, "GPIO124"),
1281 MTK_FUNCTION(1, "DMIC2_DAT0"),
1282 MTK_FUNCTION(2, "I2S1_DO"),
1283 MTK_FUNCTION(7, "DBG_MON_B27")
1286 PINCTRL_PIN(125, "DMIC2_DAT1"),
1288 MTK_EINT_FUNCTION(0, 125),
1289 MTK_FUNCTION(0, "GPIO125"),
1290 MTK_FUNCTION(1, "DMIC2_DAT1"),
1291 MTK_FUNCTION(2, "TDM_RX_BCK"),
1292 MTK_FUNCTION(7, "DBG_MON_B28")
1295 PINCTRL_PIN(126, "DMIC3_CLK"),
1297 MTK_EINT_FUNCTION(0, 126),
1298 MTK_FUNCTION(0, "GPIO126"),
1299 MTK_FUNCTION(1, "DMIC3_CLK"),
1300 MTK_FUNCTION(2, "TDM_RX_LRCK")
1303 PINCTRL_PIN(127, "DMIC3_DAT0"),
1305 MTK_EINT_FUNCTION(0, 127),
1306 MTK_FUNCTION(0, "GPIO127"),
1307 MTK_FUNCTION(1, "DMIC3_DAT0"),
1308 MTK_FUNCTION(2, "TDM_RX_DI")
1311 PINCTRL_PIN(128, "DMIC3_DAT1"),
1313 MTK_EINT_FUNCTION(0, 128),
1314 MTK_FUNCTION(0, "GPIO128"),
1315 MTK_FUNCTION(1, "DMIC3_DAT1"),
1316 MTK_FUNCTION(2, "TDM_RX_MCK"),
1317 MTK_FUNCTION(3, "VAD_CLK")
1320 PINCTRL_PIN(129, "TDM_TX_BCK"),
1322 MTK_EINT_FUNCTION(0, 129),
1323 MTK_FUNCTION(0, "GPIO129"),
1324 MTK_FUNCTION(1, "TDM_TX_BCK"),
1325 MTK_FUNCTION(2, "I2S3_BCK"),
1326 MTK_FUNCTION(3, "ckmon1_ck")
1329 PINCTRL_PIN(130, "TDM_TX_LRCK"),
1331 MTK_EINT_FUNCTION(0, 130),
1332 MTK_FUNCTION(0, "GPIO130"),
1333 MTK_FUNCTION(1, "TDM_TX_LRCK"),
1334 MTK_FUNCTION(2, "I2S3_LRCK"),
1335 MTK_FUNCTION(3, "ckmon2_ck")
1338 PINCTRL_PIN(131, "TDM_TX_MCK"),
1340 MTK_EINT_FUNCTION(0, 131),
1341 MTK_FUNCTION(0, "GPIO131"),
1342 MTK_FUNCTION(1, "TDM_TX_MCK"),
1343 MTK_FUNCTION(2, "I2S3_MCK"),
1344 MTK_FUNCTION(3, "ckmon3_ck")
1347 PINCTRL_PIN(132, "TDM_TX_DATA0"),
1349 MTK_EINT_FUNCTION(0, 132),
1350 MTK_FUNCTION(0, "GPIO132"),
1351 MTK_FUNCTION(1, "TDM_TX_DATA0"),
1352 MTK_FUNCTION(2, "I2S3_DO"),
1353 MTK_FUNCTION(3, "ckmon4_ck"),
1354 MTK_FUNCTION(7, "DBG_MON_B29")
1357 PINCTRL_PIN(133, "TDM_TX_DATA1"),
1359 MTK_EINT_FUNCTION(0, 133),
1360 MTK_FUNCTION(0, "GPIO133"),
1361 MTK_FUNCTION(1, "TDM_TX_DATA1"),
1362 MTK_FUNCTION(7, "DBG_MON_B30")
1365 PINCTRL_PIN(134, "TDM_TX_DATA2"),
1367 MTK_EINT_FUNCTION(0, 134),
1368 MTK_FUNCTION(0, "GPIO134"),
1369 MTK_FUNCTION(1, "TDM_TX_DATA2"),
1370 MTK_FUNCTION(7, "DBG_MON_B31")
1373 PINCTRL_PIN(135, "TDM_TX_DATA3"),
1375 MTK_EINT_FUNCTION(0, 135),
1376 MTK_FUNCTION(0, "GPIO135"),
1377 MTK_FUNCTION(1, "TDM_TX_DATA3"),
1378 MTK_FUNCTION(7, "DBG_MON_B32")
1381 PINCTRL_PIN(136, "CONN_TOP_CLK"),
1383 MTK_EINT_FUNCTION(0, 136),
1384 MTK_FUNCTION(0, "GPIO136"),
1385 MTK_FUNCTION(1, "CONN_TOP_CLK")
1388 PINCTRL_PIN(137, "CONN_TOP_DATA"),
1390 MTK_EINT_FUNCTION(0, 137),
1391 MTK_FUNCTION(0, "GPIO137"),
1392 MTK_FUNCTION(1, "CONN_TOP_DATA")
1395 PINCTRL_PIN(138, "CONN_HRST_B"),
1397 MTK_EINT_FUNCTION(0, 138),
1398 MTK_FUNCTION(0, "GPIO138"),
1399 MTK_FUNCTION(1, "CONN_HRST_B")
1402 PINCTRL_PIN(139, "CONN_WB_PTA"),
1404 MTK_EINT_FUNCTION(0, 139),
1405 MTK_FUNCTION(0, "GPIO139"),
1406 MTK_FUNCTION(1, "CONN_WB_PTA")
1409 PINCTRL_PIN(140, "CONN_BT_CLK"),
1411 MTK_EINT_FUNCTION(0, 140),
1412 MTK_FUNCTION(0, "GPIO140"),
1413 MTK_FUNCTION(1, "CONN_BT_CLK")
1416 PINCTRL_PIN(141, "CONN_BT_DATA"),
1418 MTK_EINT_FUNCTION(0, 141),
1419 MTK_FUNCTION(0, "GPIO141"),
1420 MTK_FUNCTION(1, "CONN_BT_DATA")
1423 PINCTRL_PIN(142, "CONN_WF_CTRL0"),
1425 MTK_EINT_FUNCTION(0, 142),
1426 MTK_FUNCTION(0, "GPIO142"),
1427 MTK_FUNCTION(1, "CONN_WF_CTRL0")
1430 PINCTRL_PIN(143, "CONN_WF_CTRL1"),
1432 MTK_EINT_FUNCTION(0, 143),
1433 MTK_FUNCTION(0, "GPIO143"),
1434 MTK_FUNCTION(1, "CONN_WF_CTRL1")
1437 PINCTRL_PIN(144, "CONN_WF_CTRL2"),
1439 MTK_EINT_FUNCTION(0, 144),
1440 MTK_FUNCTION(0, "GPIO144"),
1441 MTK_FUNCTION(1, "CONN_WF_CTRL2")
1444 PINCTRL_PIN(145, "TESTMODE"),
1446 MTK_EINT_FUNCTION(0, 145),
1447 MTK_FUNCTION(0, "GPIO145")
1450 PINCTRL_PIN(146, "SYSRSTB"),
1452 MTK_EINT_FUNCTION(0, 146),
1453 MTK_FUNCTION(0, "GPIO146")
1456 PINCTRL_PIN(147, "BIAS_MSDC0"),
1458 MTK_EINT_FUNCTION(0, 147),
1459 MTK_FUNCTION(0, "GPIO147")
1462 PINCTRL_PIN(148, "BIAS_IO0"),
1464 MTK_EINT_FUNCTION(0, 148),
1465 MTK_FUNCTION(0, "GPIO148")
1468 PINCTRL_PIN(149, "BIAS1_IO1"),
1470 MTK_EINT_FUNCTION(0, 149),
1471 MTK_FUNCTION(0, "GPIO149")
1474 PINCTRL_PIN(150, "BIAS2_IO1"),
1476 MTK_EINT_FUNCTION(0, 150),
1477 MTK_FUNCTION(0, "GPIO150")
1480 PINCTRL_PIN(151, "BIAS_DPI"),
1482 MTK_EINT_FUNCTION(0, 151),
1483 MTK_FUNCTION(0, "GPIO151")
1486 PINCTRL_PIN(152, "BIAS_MSDC2"),
1488 MTK_EINT_FUNCTION(0, 152),
1489 MTK_FUNCTION(0, "GPIO152")
1492 PINCTRL_PIN(153, "BIAS_IO2"),
1494 MTK_EINT_FUNCTION(0, 153),
1495 MTK_FUNCTION(0, "GPIO153")
1498 PINCTRL_PIN(154, "BIAS_IO3"),
1500 MTK_EINT_FUNCTION(0, 154),
1501 MTK_FUNCTION(0, "GPIO154")
1504 PINCTRL_PIN(155, "BIAS1_MSDC1"),
1506 MTK_EINT_FUNCTION(0, 155),
1507 MTK_FUNCTION(0, "GPIO155")
1511 #endif /* __PINCTRL_MTK_MT8365_H */