treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / pinctrl / mediatek / pinctrl-mtk-mt8516.h
blobf7a4c6e4a0262c5a817ec03d8632c3529736f066
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2019 MediaTek Inc.
4 */
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[] = {
12 MTK_PIN(
13 PINCTRL_PIN(0, "EINT0"),
14 NULL, "mt8516",
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]")
23 MTK_PIN(
24 PINCTRL_PIN(1, "EINT1"),
25 NULL, "mt8516",
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]")
35 MTK_PIN(
36 PINCTRL_PIN(2, "EINT2"),
37 NULL, "mt8516",
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]")
47 MTK_PIN(
48 PINCTRL_PIN(3, "EINT3"),
49 NULL, "mt8516",
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]")
59 MTK_PIN(
60 PINCTRL_PIN(4, "EINT4"),
61 NULL, "mt8516",
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]")
71 MTK_PIN(
72 PINCTRL_PIN(5, "EINT5"),
73 NULL, "mt8516",
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]")
83 MTK_PIN(
84 PINCTRL_PIN(6, "EINT6"),
85 NULL, "mt8516",
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]")
94 MTK_PIN(
95 PINCTRL_PIN(7, "EINT7"),
96 NULL, "mt8516",
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]")
106 MTK_PIN(
107 PINCTRL_PIN(8, "EINT8"),
108 NULL, "mt8516",
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]")
118 MTK_PIN(
119 PINCTRL_PIN(9, "EINT9"),
120 NULL, "mt8516",
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]")
130 MTK_PIN(
131 PINCTRL_PIN(10, "EINT10"),
132 NULL, "mt8516",
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]")
142 MTK_PIN(
143 PINCTRL_PIN(11, "EINT11"),
144 NULL, "mt8516",
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]")
154 MTK_PIN(
155 PINCTRL_PIN(12, "EINT12"),
156 NULL, "mt8516",
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]")
166 MTK_PIN(
167 PINCTRL_PIN(13, "EINT13"),
168 NULL, "mt8516",
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]")
176 MTK_PIN(
177 PINCTRL_PIN(14, "EINT14"),
178 NULL, "mt8516",
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]")
188 MTK_PIN(
189 PINCTRL_PIN(15, "EINT15"),
190 NULL, "mt8516",
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]")
200 MTK_PIN(
201 PINCTRL_PIN(16, "EINT16"),
202 NULL, "mt8516",
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]")
212 MTK_PIN(
213 PINCTRL_PIN(17, "EINT17"),
214 NULL, "mt8516",
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]")
224 MTK_PIN(
225 PINCTRL_PIN(18, "EINT18"),
226 NULL, "mt8516",
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]")
236 MTK_PIN(
237 PINCTRL_PIN(19, "EINT19"),
238 NULL, "mt8516",
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]")
249 MTK_PIN(
250 PINCTRL_PIN(20, "EINT20"),
251 NULL, "mt8516",
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]")
261 MTK_PIN(
262 PINCTRL_PIN(21, "EINT21"),
263 NULL, "mt8516",
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]")
271 MTK_PIN(
272 PINCTRL_PIN(22, "EINT22"),
273 NULL, "mt8516",
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]")
283 MTK_PIN(
284 PINCTRL_PIN(23, "EINT23"),
285 NULL, "mt8516",
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]")
295 MTK_PIN(
296 PINCTRL_PIN(24, "EINT24"),
297 NULL, "mt8516",
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]")
306 MTK_PIN(
307 PINCTRL_PIN(25, "EINT25"),
308 NULL, "mt8516",
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]")
317 MTK_PIN(
318 PINCTRL_PIN(26, "PWRAP_SPI0_MI"),
319 NULL, "mt8516",
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")
325 MTK_PIN(
326 PINCTRL_PIN(27, "PWRAP_SPI0_MO"),
327 NULL, "mt8516",
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")
333 MTK_PIN(
334 PINCTRL_PIN(28, "PWRAP_INT"),
335 NULL, "mt8516",
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")
343 MTK_PIN(
344 PINCTRL_PIN(29, "PWRAP_SPI0_CK"),
345 NULL, "mt8516",
346 MTK_EINT_FUNCTION(0, 29),
347 MTK_FUNCTION(0, "GPIO29"),
348 MTK_FUNCTION(1, "PWRAP_SPI0_CK")
350 MTK_PIN(
351 PINCTRL_PIN(30, "PWRAP_SPI0_CSN"),
352 NULL, "mt8516",
353 MTK_EINT_FUNCTION(0, 30),
354 MTK_FUNCTION(0, "GPIO30"),
355 MTK_FUNCTION(1, "PWRAP_SPI0_CSN")
357 MTK_PIN(
358 PINCTRL_PIN(31, "RTC32K_CK"),
359 NULL, "mt8516",
360 MTK_EINT_FUNCTION(0, 31),
361 MTK_FUNCTION(0, "GPIO31"),
362 MTK_FUNCTION(1, "RTC32K_CK")
364 MTK_PIN(
365 PINCTRL_PIN(32, "WATCHDOG"),
366 NULL, "mt8516",
367 MTK_EINT_FUNCTION(0, 32),
368 MTK_FUNCTION(0, "GPIO32"),
369 MTK_FUNCTION(1, "WATCHDOG")
371 MTK_PIN(
372 PINCTRL_PIN(33, "SRCLKENA"),
373 NULL, "mt8516",
374 MTK_EINT_FUNCTION(0, 33),
375 MTK_FUNCTION(0, "GPIO33"),
376 MTK_FUNCTION(1, "SRCLKENA0")
378 MTK_PIN(
379 PINCTRL_PIN(34, "URXD2"),
380 NULL, "mt8516",
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]")
389 MTK_PIN(
390 PINCTRL_PIN(35, "UTXD2"),
391 NULL, "mt8516",
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]")
400 MTK_PIN(
401 PINCTRL_PIN(36, "MRG_CLK"),
402 NULL, "mt8516",
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]")
412 MTK_PIN(
413 PINCTRL_PIN(37, "MRG_SYNC"),
414 NULL, "mt8516",
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]")
424 MTK_PIN(
425 PINCTRL_PIN(38, "MRG_DI"),
426 NULL, "mt8516",
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]")
436 MTK_PIN(
437 PINCTRL_PIN(39, "MRG_DO"),
438 NULL, "mt8516",
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]")
448 MTK_PIN(
449 PINCTRL_PIN(40, "KPROW0"),
450 NULL, "mt8516",
451 MTK_EINT_FUNCTION(0, 40),
452 MTK_FUNCTION(0, "GPIO40"),
453 MTK_FUNCTION(1, "KPROW0"),
454 MTK_FUNCTION(7, "DBG_MON_B[4]")
456 MTK_PIN(
457 PINCTRL_PIN(41, "KPROW1"),
458 NULL, "mt8516",
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]")
466 MTK_PIN(
467 PINCTRL_PIN(42, "KPCOL0"),
468 NULL, "mt8516",
469 MTK_EINT_FUNCTION(0, 42),
470 MTK_FUNCTION(0, "GPIO42"),
471 MTK_FUNCTION(1, "KPCOL0"),
472 MTK_FUNCTION(7, "DBG_MON_B[6]")
474 MTK_PIN(
475 PINCTRL_PIN(43, "KPCOL1"),
476 NULL, "mt8516",
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]")
485 MTK_PIN(
486 PINCTRL_PIN(44, "JTMS"),
487 NULL, "mt8516",
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")
494 MTK_PIN(
495 PINCTRL_PIN(45, "JTCK"),
496 NULL, "mt8516",
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")
503 MTK_PIN(
504 PINCTRL_PIN(46, "JTDI"),
505 NULL, "mt8516",
506 MTK_EINT_FUNCTION(0, 46),
507 MTK_FUNCTION(0, "GPIO46"),
508 MTK_FUNCTION(1, "JTDI"),
509 MTK_FUNCTION(2, "CONN_MCU_TDI")
511 MTK_PIN(
512 PINCTRL_PIN(47, "JTDO"),
513 NULL, "mt8516",
514 MTK_EINT_FUNCTION(0, 47),
515 MTK_FUNCTION(0, "GPIO47"),
516 MTK_FUNCTION(1, "JTDO"),
517 MTK_FUNCTION(2, "CONN_MCU_TDO")
519 MTK_PIN(
520 PINCTRL_PIN(48, "SPI_CS"),
521 NULL, "mt8516",
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]")
529 MTK_PIN(
530 PINCTRL_PIN(49, "SPI_CK"),
531 NULL, "mt8516",
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]")
539 MTK_PIN(
540 PINCTRL_PIN(50, "SPI_MI"),
541 NULL, "mt8516",
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]")
550 MTK_PIN(
551 PINCTRL_PIN(51, "SPI_MO"),
552 NULL, "mt8516",
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]")
561 MTK_PIN(
562 PINCTRL_PIN(52, "SDA1"),
563 NULL, "mt8516",
564 MTK_EINT_FUNCTION(0, 52),
565 MTK_FUNCTION(0, "GPIO52"),
566 MTK_FUNCTION(1, "SDA1_0")
568 MTK_PIN(
569 PINCTRL_PIN(53, "SCL1"),
570 NULL, "mt8516",
571 MTK_EINT_FUNCTION(0, 53),
572 MTK_FUNCTION(0, "GPIO53"),
573 MTK_FUNCTION(1, "SCL1_0")
575 MTK_PIN(
576 PINCTRL_PIN(54, "GPIO54"),
577 NULL, "mt8516",
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]")
583 MTK_PIN(
584 PINCTRL_PIN(55, "I2S_DATA_IN"),
585 NULL, "mt8516",
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]")
596 MTK_PIN(
597 PINCTRL_PIN(56, "I2S_LRCK"),
598 NULL, "mt8516",
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]")
608 MTK_PIN(
609 PINCTRL_PIN(57, "I2S_BCK"),
610 NULL, "mt8516",
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]")
621 MTK_PIN(
622 PINCTRL_PIN(58, "SDA0"),
623 NULL, "mt8516",
624 MTK_EINT_FUNCTION(0, 58),
625 MTK_FUNCTION(0, "GPIO58"),
626 MTK_FUNCTION(1, "SDA0_0")
628 MTK_PIN(
629 PINCTRL_PIN(59, "SCL0"),
630 NULL, "mt8516",
631 MTK_EINT_FUNCTION(0, 59),
632 MTK_FUNCTION(0, "GPIO59"),
633 MTK_FUNCTION(1, "SCL0_0")
635 MTK_PIN(
636 PINCTRL_PIN(60, "SDA2"),
637 NULL, "mt8516",
638 MTK_EINT_FUNCTION(0, 60),
639 MTK_FUNCTION(0, "GPIO60"),
640 MTK_FUNCTION(1, "SDA2_0"),
641 MTK_FUNCTION(2, "PWM_B")
643 MTK_PIN(
644 PINCTRL_PIN(61, "SCL2"),
645 NULL, "mt8516",
646 MTK_EINT_FUNCTION(0, 61),
647 MTK_FUNCTION(0, "GPIO61"),
648 MTK_FUNCTION(1, "SCL2_0"),
649 MTK_FUNCTION(2, "PWM_C")
651 MTK_PIN(
652 PINCTRL_PIN(62, "URXD0"),
653 NULL, "mt8516",
654 MTK_EINT_FUNCTION(0, 62),
655 MTK_FUNCTION(0, "GPIO62"),
656 MTK_FUNCTION(1, "URXD0"),
657 MTK_FUNCTION(2, "UTXD0")
659 MTK_PIN(
660 PINCTRL_PIN(63, "UTXD0"),
661 NULL, "mt8516",
662 MTK_EINT_FUNCTION(0, 63),
663 MTK_FUNCTION(0, "GPIO63"),
664 MTK_FUNCTION(1, "UTXD0"),
665 MTK_FUNCTION(2, "URXD0")
667 MTK_PIN(
668 PINCTRL_PIN(64, "URXD1"),
669 NULL, "mt8516",
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]")
676 MTK_PIN(
677 PINCTRL_PIN(65, "UTXD1"),
678 NULL, "mt8516",
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]")
685 MTK_PIN(
686 PINCTRL_PIN(66, "LCM_RST"),
687 NULL, "mt8516",
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]")
694 MTK_PIN(
695 PINCTRL_PIN(67, "GPIO67"),
696 NULL, "mt8516",
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]")
702 MTK_PIN(
703 PINCTRL_PIN(68, "MSDC2_CMD"),
704 NULL, "mt8516",
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]")
714 MTK_PIN(
715 PINCTRL_PIN(69, "MSDC2_CLK"),
716 NULL, "mt8516",
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]")
726 MTK_PIN(
727 PINCTRL_PIN(70, "MSDC2_DAT0"),
728 NULL, "mt8516",
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]")
737 MTK_PIN(
738 PINCTRL_PIN(71, "MSDC2_DAT1"),
739 NULL, "mt8516",
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]")
750 MTK_PIN(
751 PINCTRL_PIN(72, "MSDC2_DAT2"),
752 NULL, "mt8516",
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]")
762 MTK_PIN(
763 PINCTRL_PIN(73, "MSDC2_DAT3"),
764 NULL, "mt8516",
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]")
775 MTK_PIN(
776 PINCTRL_PIN(74, "TDN3"),
777 NULL, "mt8516",
778 MTK_EINT_FUNCTION(0, 74),
779 MTK_FUNCTION(0, "GPIO74"),
780 MTK_FUNCTION(1, "TDN3")
782 MTK_PIN(
783 PINCTRL_PIN(75, "TDP3"),
784 NULL, "mt8516",
785 MTK_EINT_FUNCTION(0, 75),
786 MTK_FUNCTION(0, "GPIO75"),
787 MTK_FUNCTION(1, "TDP3")
789 MTK_PIN(
790 PINCTRL_PIN(76, "TDN2"),
791 NULL, "mt8516",
792 MTK_EINT_FUNCTION(0, 76),
793 MTK_FUNCTION(0, "GPIO76"),
794 MTK_FUNCTION(1, "TDN2")
796 MTK_PIN(
797 PINCTRL_PIN(77, "TDP2"),
798 NULL, "mt8516",
799 MTK_EINT_FUNCTION(0, 77),
800 MTK_FUNCTION(0, "GPIO77"),
801 MTK_FUNCTION(1, "TDP2")
803 MTK_PIN(
804 PINCTRL_PIN(78, "TCN"),
805 NULL, "mt8516",
806 MTK_EINT_FUNCTION(0, 78),
807 MTK_FUNCTION(0, "GPIO78"),
808 MTK_FUNCTION(1, "TCN")
810 MTK_PIN(
811 PINCTRL_PIN(79, "TCP"),
812 NULL, "mt8516",
813 MTK_EINT_FUNCTION(0, 79),
814 MTK_FUNCTION(0, "GPIO79"),
815 MTK_FUNCTION(1, "TCP")
817 MTK_PIN(
818 PINCTRL_PIN(80, "TDN1"),
819 NULL, "mt8516",
820 MTK_EINT_FUNCTION(0, 80),
821 MTK_FUNCTION(0, "GPIO80"),
822 MTK_FUNCTION(1, "TDN1")
824 MTK_PIN(
825 PINCTRL_PIN(81, "TDP1"),
826 NULL, "mt8516",
827 MTK_EINT_FUNCTION(0, 81),
828 MTK_FUNCTION(0, "GPIO81"),
829 MTK_FUNCTION(1, "TDP1")
831 MTK_PIN(
832 PINCTRL_PIN(82, "TDN0"),
833 NULL, "mt8516",
834 MTK_EINT_FUNCTION(0, 82),
835 MTK_FUNCTION(0, "GPIO82"),
836 MTK_FUNCTION(1, "TDN0")
838 MTK_PIN(
839 PINCTRL_PIN(83, "TDP0"),
840 NULL, "mt8516",
841 MTK_EINT_FUNCTION(0, 83),
842 MTK_FUNCTION(0, "GPIO83"),
843 MTK_FUNCTION(1, "TDP0")
845 MTK_PIN(
846 PINCTRL_PIN(84, "RDN0"),
847 NULL, "mt8516",
848 MTK_EINT_FUNCTION(0, 84),
849 MTK_FUNCTION(0, "GPIO84"),
850 MTK_FUNCTION(1, "RDN0")
852 MTK_PIN(
853 PINCTRL_PIN(85, "RDP0"),
854 NULL, "mt8516",
855 MTK_EINT_FUNCTION(0, 85),
856 MTK_FUNCTION(0, "GPIO85"),
857 MTK_FUNCTION(1, "RDP0")
859 MTK_PIN(
860 PINCTRL_PIN(86, "RDN1"),
861 NULL, "mt8516",
862 MTK_EINT_FUNCTION(0, 86),
863 MTK_FUNCTION(0, "GPIO86"),
864 MTK_FUNCTION(1, "RDN1")
866 MTK_PIN(
867 PINCTRL_PIN(87, "RDP1"),
868 NULL, "mt8516",
869 MTK_EINT_FUNCTION(0, 87),
870 MTK_FUNCTION(0, "GPIO87"),
871 MTK_FUNCTION(1, "RDP1")
873 MTK_PIN(
874 PINCTRL_PIN(88, "RCN"),
875 NULL, "mt8516",
876 MTK_EINT_FUNCTION(0, 88),
877 MTK_FUNCTION(0, "GPIO88"),
878 MTK_FUNCTION(1, "RCN")
880 MTK_PIN(
881 PINCTRL_PIN(89, "RCP"),
882 NULL, "mt8516",
883 MTK_EINT_FUNCTION(0, 89),
884 MTK_FUNCTION(0, "GPIO89"),
885 MTK_FUNCTION(1, "RCP")
887 MTK_PIN(
888 PINCTRL_PIN(90, "RDN2"),
889 NULL, "mt8516",
890 MTK_EINT_FUNCTION(0, 90),
891 MTK_FUNCTION(0, "GPIO90"),
892 MTK_FUNCTION(1, "RDN2"),
893 MTK_FUNCTION(2, "CMDAT8")
895 MTK_PIN(
896 PINCTRL_PIN(91, "RDP2"),
897 NULL, "mt8516",
898 MTK_EINT_FUNCTION(0, 91),
899 MTK_FUNCTION(0, "GPIO91"),
900 MTK_FUNCTION(1, "RDP2"),
901 MTK_FUNCTION(2, "CMDAT9")
903 MTK_PIN(
904 PINCTRL_PIN(92, "RDN3"),
905 NULL, "mt8516",
906 MTK_EINT_FUNCTION(0, 92),
907 MTK_FUNCTION(0, "GPIO92"),
908 MTK_FUNCTION(1, "RDN3"),
909 MTK_FUNCTION(2, "CMDAT4")
911 MTK_PIN(
912 PINCTRL_PIN(93, "RDP3"),
913 NULL, "mt8516",
914 MTK_EINT_FUNCTION(0, 93),
915 MTK_FUNCTION(0, "GPIO93"),
916 MTK_FUNCTION(1, "RDP3"),
917 MTK_FUNCTION(2, "CMDAT5")
919 MTK_PIN(
920 PINCTRL_PIN(94, "RCN_A"),
921 NULL, "mt8516",
922 MTK_EINT_FUNCTION(0, 94),
923 MTK_FUNCTION(0, "GPIO94"),
924 MTK_FUNCTION(1, "RCN_A"),
925 MTK_FUNCTION(2, "CMDAT6")
927 MTK_PIN(
928 PINCTRL_PIN(95, "RCP_A"),
929 NULL, "mt8516",
930 MTK_EINT_FUNCTION(0, 95),
931 MTK_FUNCTION(0, "GPIO95"),
932 MTK_FUNCTION(1, "RCP_A"),
933 MTK_FUNCTION(2, "CMDAT7")
935 MTK_PIN(
936 PINCTRL_PIN(96, "RDN1_A"),
937 NULL, "mt8516",
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")
944 MTK_PIN(
945 PINCTRL_PIN(97, "RDP1_A"),
946 NULL, "mt8516",
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")
953 MTK_PIN(
954 PINCTRL_PIN(98, "RDN0_A"),
955 NULL, "mt8516",
956 MTK_EINT_FUNCTION(0, 98),
957 MTK_FUNCTION(0, "GPIO98"),
958 MTK_FUNCTION(1, "RDN0_A"),
959 MTK_FUNCTION(2, "CMHSYNC")
961 MTK_PIN(
962 PINCTRL_PIN(99, "RDP0_A"),
963 NULL, "mt8516",
964 MTK_EINT_FUNCTION(0, 99),
965 MTK_FUNCTION(0, "GPIO99"),
966 MTK_FUNCTION(1, "RDP0_A"),
967 MTK_FUNCTION(2, "CMVSYNC")
969 MTK_PIN(
970 PINCTRL_PIN(100, "CMDAT0"),
971 NULL, "mt8516",
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]")
980 MTK_PIN(
981 PINCTRL_PIN(101, "CMDAT1"),
982 NULL, "mt8516",
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]")
992 MTK_PIN(
993 PINCTRL_PIN(102, "CMMCLK"),
994 NULL, "mt8516",
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]")
1002 MTK_PIN(
1003 PINCTRL_PIN(103, "CMPCLK"),
1004 NULL, "mt8516",
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]")
1013 MTK_PIN(
1014 PINCTRL_PIN(104, "MSDC1_CMD"),
1015 NULL, "mt8516",
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]")
1022 MTK_PIN(
1023 PINCTRL_PIN(105, "MSDC1_CLK"),
1024 NULL, "mt8516",
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]")
1031 MTK_PIN(
1032 PINCTRL_PIN(106, "MSDC1_DAT0"),
1033 NULL, "mt8516",
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]")
1040 MTK_PIN(
1041 PINCTRL_PIN(107, "MSDC1_DAT1"),
1042 NULL, "mt8516",
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]")
1049 MTK_PIN(
1050 PINCTRL_PIN(108, "MSDC1_DAT2"),
1051 NULL, "mt8516",
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]")
1058 MTK_PIN(
1059 PINCTRL_PIN(109, "MSDC1_DAT3"),
1060 NULL, "mt8516",
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]")
1067 MTK_PIN(
1068 PINCTRL_PIN(110, "MSDC0_DAT7"),
1069 NULL, "mt8516",
1070 MTK_EINT_FUNCTION(0, 110),
1071 MTK_FUNCTION(0, "GPIO110"),
1072 MTK_FUNCTION(1, "MSDC0_DAT7"),
1073 MTK_FUNCTION(4, "NLD7")
1075 MTK_PIN(
1076 PINCTRL_PIN(111, "MSDC0_DAT6"),
1077 NULL, "mt8516",
1078 MTK_EINT_FUNCTION(0, 111),
1079 MTK_FUNCTION(0, "GPIO111"),
1080 MTK_FUNCTION(1, "MSDC0_DAT6"),
1081 MTK_FUNCTION(4, "NLD6")
1083 MTK_PIN(
1084 PINCTRL_PIN(112, "MSDC0_DAT5"),
1085 NULL, "mt8516",
1086 MTK_EINT_FUNCTION(0, 112),
1087 MTK_FUNCTION(0, "GPIO112"),
1088 MTK_FUNCTION(1, "MSDC0_DAT5"),
1089 MTK_FUNCTION(4, "NLD4")
1091 MTK_PIN(
1092 PINCTRL_PIN(113, "MSDC0_DAT4"),
1093 NULL, "mt8516",
1094 MTK_EINT_FUNCTION(0, 113),
1095 MTK_FUNCTION(0, "GPIO113"),
1096 MTK_FUNCTION(1, "MSDC0_DAT4"),
1097 MTK_FUNCTION(4, "NLD3")
1099 MTK_PIN(
1100 PINCTRL_PIN(114, "MSDC0_RSTB"),
1101 NULL, "mt8516",
1102 MTK_EINT_FUNCTION(0, 114),
1103 MTK_FUNCTION(0, "GPIO114"),
1104 MTK_FUNCTION(1, "MSDC0_RSTB"),
1105 MTK_FUNCTION(4, "NLD0")
1107 MTK_PIN(
1108 PINCTRL_PIN(115, "MSDC0_CMD"),
1109 NULL, "mt8516",
1110 MTK_EINT_FUNCTION(0, 115),
1111 MTK_FUNCTION(0, "GPIO115"),
1112 MTK_FUNCTION(1, "MSDC0_CMD"),
1113 MTK_FUNCTION(4, "NALE")
1115 MTK_PIN(
1116 PINCTRL_PIN(116, "MSDC0_CLK"),
1117 NULL, "mt8516",
1118 MTK_EINT_FUNCTION(0, 116),
1119 MTK_FUNCTION(0, "GPIO116"),
1120 MTK_FUNCTION(1, "MSDC0_CLK"),
1121 MTK_FUNCTION(4, "NWEB")
1123 MTK_PIN(
1124 PINCTRL_PIN(117, "MSDC0_DAT3"),
1125 NULL, "mt8516",
1126 MTK_EINT_FUNCTION(0, 117),
1127 MTK_FUNCTION(0, "GPIO117"),
1128 MTK_FUNCTION(1, "MSDC0_DAT3"),
1129 MTK_FUNCTION(4, "NLD1")
1131 MTK_PIN(
1132 PINCTRL_PIN(118, "MSDC0_DAT2"),
1133 NULL, "mt8516",
1134 MTK_EINT_FUNCTION(0, 118),
1135 MTK_FUNCTION(0, "GPIO118"),
1136 MTK_FUNCTION(1, "MSDC0_DAT2"),
1137 MTK_FUNCTION(4, "NLD5")
1139 MTK_PIN(
1140 PINCTRL_PIN(119, "MSDC0_DAT1"),
1141 NULL, "mt8516",
1142 MTK_EINT_FUNCTION(0, 119),
1143 MTK_FUNCTION(0, "GPIO119"),
1144 MTK_FUNCTION(1, "MSDC0_DAT1"),
1145 MTK_FUNCTION(4, "NLD8")
1147 MTK_PIN(
1148 PINCTRL_PIN(120, "MSDC0_DAT0"),
1149 NULL, "mt8516",
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")
1156 MTK_PIN(
1157 PINCTRL_PIN(121, "GPIO121"),
1158 NULL, "mt8516",
1159 MTK_EINT_FUNCTION(0, 121),
1160 MTK_FUNCTION(0, "GPIO121")
1162 MTK_PIN(
1163 PINCTRL_PIN(122, "GPIO122"),
1164 NULL, "mt8516",
1165 MTK_EINT_FUNCTION(0, 122),
1166 MTK_FUNCTION(0, "GPIO122")
1168 MTK_PIN(
1169 PINCTRL_PIN(123, "GPIO123"),
1170 NULL, "mt8516",
1171 MTK_EINT_FUNCTION(0, 123),
1172 MTK_FUNCTION(0, "GPIO123")
1174 MTK_PIN(
1175 PINCTRL_PIN(124, "GPIO124"),
1176 NULL, "mt8516",
1177 MTK_EINT_FUNCTION(0, 124),
1178 MTK_FUNCTION(0, "GPIO124")
1182 #endif /* __PINCTRL_MTK_MT8516_H */