treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / pinctrl / mediatek / pinctrl-mtk-mt8183.h
blob79adf5b8a18611ff35b1ec23c29df6fda2144523
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2018 MediaTek Inc.
5 * Author: Zhiyong Tao <zhiyong.tao@mediatek.com>
7 */
9 #ifndef __PINCTRL_MTK_MT8183_H
10 #define __PINCTRL_MTK_MT8183_H
12 #include "pinctrl-paris.h"
14 static struct mtk_pin_desc mtk_pins_mt8183[] = {
15 MTK_PIN(
16 0, "GPIO0",
17 MTK_EINT_FUNCTION(0, 0),
18 DRV_GRP4,
19 MTK_FUNCTION(0, "GPIO0"),
20 MTK_FUNCTION(1, "MRG_SYNC"),
21 MTK_FUNCTION(2, "PCM0_SYNC"),
22 MTK_FUNCTION(3, "TP_GPIO0_AO"),
23 MTK_FUNCTION(4, "SRCLKENAI0"),
24 MTK_FUNCTION(5, "SCP_SPI2_CS"),
25 MTK_FUNCTION(6, "I2S3_MCK"),
26 MTK_FUNCTION(7, "SPI2_CSB")
28 MTK_PIN(
29 1, "GPIO1",
30 MTK_EINT_FUNCTION(0, 1),
31 DRV_GRP4,
32 MTK_FUNCTION(0, "GPIO1"),
33 MTK_FUNCTION(1, "MRG_CLK"),
34 MTK_FUNCTION(2, "PCM0_CLK"),
35 MTK_FUNCTION(3, "TP_GPIO1_AO"),
36 MTK_FUNCTION(4, "CLKM3"),
37 MTK_FUNCTION(5, "SCP_SPI2_MO"),
38 MTK_FUNCTION(6, "I2S3_BCK"),
39 MTK_FUNCTION(7, "SPI2_MO")
41 MTK_PIN(
42 2, "GPIO2",
43 MTK_EINT_FUNCTION(0, 2),
44 DRV_GRP4,
45 MTK_FUNCTION(0, "GPIO2"),
46 MTK_FUNCTION(1, "MRG_DO"),
47 MTK_FUNCTION(2, "PCM0_DO"),
48 MTK_FUNCTION(3, "TP_GPIO2_AO"),
49 MTK_FUNCTION(4, "SCL6"),
50 MTK_FUNCTION(5, "SCP_SPI2_CK"),
51 MTK_FUNCTION(6, "I2S3_LRCK"),
52 MTK_FUNCTION(7, "SPI2_CLK")
54 MTK_PIN(
55 3, "GPIO3",
56 MTK_EINT_FUNCTION(0, 3),
57 DRV_GRP4,
58 MTK_FUNCTION(0, "GPIO3"),
59 MTK_FUNCTION(1, "MRG_DI"),
60 MTK_FUNCTION(2, "PCM0_DI"),
61 MTK_FUNCTION(3, "TP_GPIO3_AO"),
62 MTK_FUNCTION(4, "SDA6"),
63 MTK_FUNCTION(5, "TDM_MCK"),
64 MTK_FUNCTION(6, "I2S3_DO"),
65 MTK_FUNCTION(7, "SCP_VREQ_VAO")
67 MTK_PIN(
68 4, "GPIO4",
69 MTK_EINT_FUNCTION(0, 4),
70 DRV_GRP4,
71 MTK_FUNCTION(0, "GPIO4"),
72 MTK_FUNCTION(1, "PWM_B"),
73 MTK_FUNCTION(2, "I2S0_MCK"),
74 MTK_FUNCTION(3, "SSPM_UTXD_AO"),
75 MTK_FUNCTION(4, "MD_URXD1"),
76 MTK_FUNCTION(5, "TDM_BCK"),
77 MTK_FUNCTION(6, "TP_GPIO4_AO"),
78 MTK_FUNCTION(7, "DAP_MD32_SWD")
80 MTK_PIN(
81 5, "GPIO5",
82 MTK_EINT_FUNCTION(0, 5),
83 DRV_GRP4,
84 MTK_FUNCTION(0, "GPIO5"),
85 MTK_FUNCTION(1, "PWM_C"),
86 MTK_FUNCTION(2, "I2S0_BCK"),
87 MTK_FUNCTION(3, "SSPM_URXD_AO"),
88 MTK_FUNCTION(4, "MD_UTXD1"),
89 MTK_FUNCTION(5, "TDM_LRCK"),
90 MTK_FUNCTION(6, "TP_GPIO5_AO"),
91 MTK_FUNCTION(7, "DAP_MD32_SWCK")
93 MTK_PIN(
94 6, "GPIO6",
95 MTK_EINT_FUNCTION(0, 6),
96 DRV_GRP4,
97 MTK_FUNCTION(0, "GPIO6"),
98 MTK_FUNCTION(1, "PWM_A"),
99 MTK_FUNCTION(2, "I2S0_LRCK"),
100 MTK_FUNCTION(3, "IDDIG"),
101 MTK_FUNCTION(4, "MD_URXD0"),
102 MTK_FUNCTION(5, "TDM_DATA0"),
103 MTK_FUNCTION(6, "TP_GPIO6_AO"),
104 MTK_FUNCTION(7, "CMFLASH")
106 MTK_PIN(
107 7, "GPIO7",
108 MTK_EINT_FUNCTION(0, 7),
109 DRV_GRP4,
110 MTK_FUNCTION(0, "GPIO7"),
111 MTK_FUNCTION(1, "SPI1_B_MI"),
112 MTK_FUNCTION(2, "I2S0_DI"),
113 MTK_FUNCTION(3, "USB_DRVVBUS"),
114 MTK_FUNCTION(4, "MD_UTXD0"),
115 MTK_FUNCTION(5, "TDM_DATA1"),
116 MTK_FUNCTION(6, "TP_GPIO7_AO"),
117 MTK_FUNCTION(7, "DVFSRC_EXT_REQ")
119 MTK_PIN(
120 8, "GPIO8",
121 MTK_EINT_FUNCTION(0, 8),
122 DRV_GRP4,
123 MTK_FUNCTION(0, "GPIO8"),
124 MTK_FUNCTION(1, "SPI1_B_CSB"),
125 MTK_FUNCTION(2, "ANT_SEL3"),
126 MTK_FUNCTION(3, "SCL7"),
127 MTK_FUNCTION(4, "CONN_MCU_TRST_B"),
128 MTK_FUNCTION(5, "TDM_DATA2"),
129 MTK_FUNCTION(6, "MD_INT0"),
130 MTK_FUNCTION(7, "JTRSTN_SEL1")
132 MTK_PIN(
133 9, "GPIO9",
134 MTK_EINT_FUNCTION(0, 9),
135 DRV_GRP4,
136 MTK_FUNCTION(0, "GPIO9"),
137 MTK_FUNCTION(1, "SPI1_B_MO"),
138 MTK_FUNCTION(2, "ANT_SEL4"),
139 MTK_FUNCTION(3, "CMMCLK2"),
140 MTK_FUNCTION(4, "CONN_MCU_DBGACK_N"),
141 MTK_FUNCTION(5, "SSPM_JTAG_TRSTN"),
142 MTK_FUNCTION(6, "IO_JTAG_TRSTN"),
143 MTK_FUNCTION(7, "DBG_MON_B10")
145 MTK_PIN(
146 10, "GPIO10",
147 MTK_EINT_FUNCTION(0, 10),
148 DRV_GRP4,
149 MTK_FUNCTION(0, "GPIO10"),
150 MTK_FUNCTION(1, "SPI1_B_CLK"),
151 MTK_FUNCTION(2, "ANT_SEL5"),
152 MTK_FUNCTION(3, "CMMCLK3"),
153 MTK_FUNCTION(4, "CONN_MCU_DBGI_N"),
154 MTK_FUNCTION(5, "TDM_DATA3"),
155 MTK_FUNCTION(6, "EXT_FRAME_SYNC"),
156 MTK_FUNCTION(7, "DBG_MON_B11")
158 MTK_PIN(
159 11, "GPIO11",
160 MTK_EINT_FUNCTION(0, 11),
161 DRV_GRP4,
162 MTK_FUNCTION(0, "GPIO11"),
163 MTK_FUNCTION(1, "TP_URXD1_AO"),
164 MTK_FUNCTION(2, "IDDIG"),
165 MTK_FUNCTION(3, "SCL6"),
166 MTK_FUNCTION(4, "UCTS1"),
167 MTK_FUNCTION(5, "UCTS0"),
168 MTK_FUNCTION(6, "SRCLKENAI1"),
169 MTK_FUNCTION(7, "I2S5_MCK")
171 MTK_PIN(
172 12, "GPIO12",
173 MTK_EINT_FUNCTION(0, 12),
174 DRV_GRP4,
175 MTK_FUNCTION(0, "GPIO12"),
176 MTK_FUNCTION(1, "TP_UTXD1_AO"),
177 MTK_FUNCTION(2, "USB_DRVVBUS"),
178 MTK_FUNCTION(3, "SDA6"),
179 MTK_FUNCTION(4, "URTS1"),
180 MTK_FUNCTION(5, "URTS0"),
181 MTK_FUNCTION(6, "I2S2_DI2"),
182 MTK_FUNCTION(7, "I2S5_BCK")
184 MTK_PIN(
185 13, "GPIO13",
186 MTK_EINT_FUNCTION(0, 13),
187 DRV_GRP4,
188 MTK_FUNCTION(0, "GPIO13"),
189 MTK_FUNCTION(1, "DBPI_D0"),
190 MTK_FUNCTION(2, "SPI5_MI"),
191 MTK_FUNCTION(3, "PCM0_SYNC"),
192 MTK_FUNCTION(4, "MD_URXD0"),
193 MTK_FUNCTION(5, "ANT_SEL3"),
194 MTK_FUNCTION(6, "I2S0_MCK"),
195 MTK_FUNCTION(7, "DBG_MON_B15")
197 MTK_PIN(
198 14, "GPIO14",
199 MTK_EINT_FUNCTION(0, 14),
200 DRV_GRP4,
201 MTK_FUNCTION(0, "GPIO14"),
202 MTK_FUNCTION(1, "DBPI_D1"),
203 MTK_FUNCTION(2, "SPI5_CSB"),
204 MTK_FUNCTION(3, "PCM0_CLK"),
205 MTK_FUNCTION(4, "MD_UTXD0"),
206 MTK_FUNCTION(5, "ANT_SEL4"),
207 MTK_FUNCTION(6, "I2S0_BCK"),
208 MTK_FUNCTION(7, "DBG_MON_B16")
210 MTK_PIN(
211 15, "GPIO15",
212 MTK_EINT_FUNCTION(0, 15),
213 DRV_GRP4,
214 MTK_FUNCTION(0, "GPIO15"),
215 MTK_FUNCTION(1, "DBPI_D2"),
216 MTK_FUNCTION(2, "SPI5_MO"),
217 MTK_FUNCTION(3, "PCM0_DO"),
218 MTK_FUNCTION(4, "MD_URXD1"),
219 MTK_FUNCTION(5, "ANT_SEL5"),
220 MTK_FUNCTION(6, "I2S0_LRCK"),
221 MTK_FUNCTION(7, "DBG_MON_B17")
223 MTK_PIN(
224 16, "GPIO16",
225 MTK_EINT_FUNCTION(0, 16),
226 DRV_GRP4,
227 MTK_FUNCTION(0, "GPIO16"),
228 MTK_FUNCTION(1, "DBPI_D3"),
229 MTK_FUNCTION(2, "SPI5_CLK"),
230 MTK_FUNCTION(3, "PCM0_DI"),
231 MTK_FUNCTION(4, "MD_UTXD1"),
232 MTK_FUNCTION(5, "ANT_SEL6"),
233 MTK_FUNCTION(6, "I2S0_DI"),
234 MTK_FUNCTION(7, "DBG_MON_B23")
236 MTK_PIN(
237 17, "GPIO17",
238 MTK_EINT_FUNCTION(0, 17),
239 DRV_GRP4,
240 MTK_FUNCTION(0, "GPIO17"),
241 MTK_FUNCTION(1, "DBPI_D4"),
242 MTK_FUNCTION(2, "SPI4_MI"),
243 MTK_FUNCTION(3, "CONN_MCU_TRST_B"),
244 MTK_FUNCTION(4, "MD_INT0"),
245 MTK_FUNCTION(5, "ANT_SEL7"),
246 MTK_FUNCTION(6, "I2S3_MCK"),
247 MTK_FUNCTION(7, "DBG_MON_A1")
249 MTK_PIN(
250 18, "GPIO18",
251 MTK_EINT_FUNCTION(0, 18),
252 DRV_GRP4,
253 MTK_FUNCTION(0, "GPIO18"),
254 MTK_FUNCTION(1, "DBPI_D5"),
255 MTK_FUNCTION(2, "SPI4_CSB"),
256 MTK_FUNCTION(3, "CONN_MCU_DBGI_N"),
257 MTK_FUNCTION(4, "MD_INT0"),
258 MTK_FUNCTION(5, "SCP_VREQ_VAO"),
259 MTK_FUNCTION(6, "I2S3_BCK"),
260 MTK_FUNCTION(7, "DBG_MON_A2")
262 MTK_PIN(
263 19, "GPIO19",
264 MTK_EINT_FUNCTION(0, 19),
265 DRV_GRP4,
266 MTK_FUNCTION(0, "GPIO19"),
267 MTK_FUNCTION(1, "DBPI_D6"),
268 MTK_FUNCTION(2, "SPI4_MO"),
269 MTK_FUNCTION(3, "CONN_MCU_TDO"),
270 MTK_FUNCTION(4, "MD_INT2_C2K_UIM1_HOT_PLUG"),
271 MTK_FUNCTION(5, "URXD1"),
272 MTK_FUNCTION(6, "I2S3_LRCK"),
273 MTK_FUNCTION(7, "DBG_MON_A3")
275 MTK_PIN(
276 20, "GPIO20",
277 MTK_EINT_FUNCTION(0, 20),
278 DRV_GRP4,
279 MTK_FUNCTION(0, "GPIO20"),
280 MTK_FUNCTION(1, "DBPI_D7"),
281 MTK_FUNCTION(2, "SPI4_CLK"),
282 MTK_FUNCTION(3, "CONN_MCU_DBGACK_N"),
283 MTK_FUNCTION(4, "MD_INT1_C2K_UIM0_HOT_PLUG"),
284 MTK_FUNCTION(5, "UTXD1"),
285 MTK_FUNCTION(6, "I2S3_DO"),
286 MTK_FUNCTION(7, "DBG_MON_A19")
288 MTK_PIN(
289 21, "GPIO21",
290 MTK_EINT_FUNCTION(0, 21),
291 DRV_GRP4,
292 MTK_FUNCTION(0, "GPIO21"),
293 MTK_FUNCTION(1, "DBPI_D8"),
294 MTK_FUNCTION(2, "SPI3_MI"),
295 MTK_FUNCTION(3, "CONN_MCU_TMS"),
296 MTK_FUNCTION(4, "DAP_MD32_SWD"),
297 MTK_FUNCTION(5, "CONN_MCU_AICE_TMSC"),
298 MTK_FUNCTION(6, "I2S2_MCK"),
299 MTK_FUNCTION(7, "DBG_MON_B5")
301 MTK_PIN(
302 22, "GPIO22",
303 MTK_EINT_FUNCTION(0, 22),
304 DRV_GRP4,
305 MTK_FUNCTION(0, "GPIO22"),
306 MTK_FUNCTION(1, "DBPI_D9"),
307 MTK_FUNCTION(2, "SPI3_CSB"),
308 MTK_FUNCTION(3, "CONN_MCU_TCK"),
309 MTK_FUNCTION(4, "DAP_MD32_SWCK"),
310 MTK_FUNCTION(5, "CONN_MCU_AICE_TCKC"),
311 MTK_FUNCTION(6, "I2S2_BCK"),
312 MTK_FUNCTION(7, "DBG_MON_B6")
314 MTK_PIN(
315 23, "GPIO23",
316 MTK_EINT_FUNCTION(0, 23),
317 DRV_GRP4,
318 MTK_FUNCTION(0, "GPIO23"),
319 MTK_FUNCTION(1, "DBPI_D10"),
320 MTK_FUNCTION(2, "SPI3_MO"),
321 MTK_FUNCTION(3, "CONN_MCU_TDI"),
322 MTK_FUNCTION(4, "UCTS1"),
323 MTK_FUNCTION(5, "EXT_FRAME_SYNC"),
324 MTK_FUNCTION(6, "I2S2_LRCK"),
325 MTK_FUNCTION(7, "DBG_MON_B7")
327 MTK_PIN(
328 24, "GPIO24",
329 MTK_EINT_FUNCTION(0, 24),
330 DRV_GRP4,
331 MTK_FUNCTION(0, "GPIO24"),
332 MTK_FUNCTION(1, "DBPI_D11"),
333 MTK_FUNCTION(2, "SPI3_CLK"),
334 MTK_FUNCTION(3, "SRCLKENAI0"),
335 MTK_FUNCTION(4, "URTS1"),
336 MTK_FUNCTION(5, "IO_JTAG_TCK"),
337 MTK_FUNCTION(6, "I2S2_DI"),
338 MTK_FUNCTION(7, "DBG_MON_B31")
340 MTK_PIN(
341 25, "GPIO25",
342 MTK_EINT_FUNCTION(0, 25),
343 DRV_GRP4,
344 MTK_FUNCTION(0, "GPIO25"),
345 MTK_FUNCTION(1, "DBPI_HSYNC"),
346 MTK_FUNCTION(2, "ANT_SEL0"),
347 MTK_FUNCTION(3, "SCL6"),
348 MTK_FUNCTION(4, "KPCOL2"),
349 MTK_FUNCTION(5, "IO_JTAG_TMS"),
350 MTK_FUNCTION(6, "I2S1_MCK"),
351 MTK_FUNCTION(7, "DBG_MON_B0")
353 MTK_PIN(
354 26, "GPIO26",
355 MTK_EINT_FUNCTION(0, 26),
356 DRV_GRP4,
357 MTK_FUNCTION(0, "GPIO26"),
358 MTK_FUNCTION(1, "DBPI_VSYNC"),
359 MTK_FUNCTION(2, "ANT_SEL1"),
360 MTK_FUNCTION(3, "SDA6"),
361 MTK_FUNCTION(4, "KPROW2"),
362 MTK_FUNCTION(5, "IO_JTAG_TDI"),
363 MTK_FUNCTION(6, "I2S1_BCK"),
364 MTK_FUNCTION(7, "DBG_MON_B1")
366 MTK_PIN(
367 27, "GPIO27",
368 MTK_EINT_FUNCTION(0, 27),
369 DRV_GRP4,
370 MTK_FUNCTION(0, "GPIO27"),
371 MTK_FUNCTION(1, "DBPI_DE"),
372 MTK_FUNCTION(2, "ANT_SEL2"),
373 MTK_FUNCTION(3, "SCL7"),
374 MTK_FUNCTION(4, "DMIC_CLK"),
375 MTK_FUNCTION(5, "IO_JTAG_TDO"),
376 MTK_FUNCTION(6, "I2S1_LRCK"),
377 MTK_FUNCTION(7, "DBG_MON_B9")
379 MTK_PIN(
380 28, "GPIO28",
381 MTK_EINT_FUNCTION(0, 28),
382 DRV_GRP4,
383 MTK_FUNCTION(0, "GPIO28"),
384 MTK_FUNCTION(1, "DBPI_CK"),
385 MTK_FUNCTION(2, "DVFSRC_EXT_REQ"),
386 MTK_FUNCTION(3, "SDA7"),
387 MTK_FUNCTION(4, "DMIC_DAT"),
388 MTK_FUNCTION(5, "IO_JTAG_TRSTN"),
389 MTK_FUNCTION(6, "I2S1_DO"),
390 MTK_FUNCTION(7, "DBG_MON_B32")
392 MTK_PIN(
393 29, "GPIO29",
394 MTK_EINT_FUNCTION(0, 29),
395 DRV_GRP4,
396 MTK_FUNCTION(0, "GPIO29"),
397 MTK_FUNCTION(1, "MSDC1_CLK"),
398 MTK_FUNCTION(2, "IO_JTAG_TCK"),
399 MTK_FUNCTION(3, "UDI_TCK"),
400 MTK_FUNCTION(4, "CONN_DSP_JCK"),
401 MTK_FUNCTION(5, "SSPM_JTAG_TCK"),
402 MTK_FUNCTION(6, "PCM1_CLK"),
403 MTK_FUNCTION(7, "DBG_MON_A6")
405 MTK_PIN(
406 30, "GPIO30",
407 MTK_EINT_FUNCTION(0, 30),
408 DRV_GRP4,
409 MTK_FUNCTION(0, "GPIO30"),
410 MTK_FUNCTION(1, "MSDC1_DAT3"),
411 MTK_FUNCTION(2, "DAP_MD32_SWD"),
412 MTK_FUNCTION(3, "CONN_MCU_AICE_TMSC"),
413 MTK_FUNCTION(4, "CONN_DSP_JINTP"),
414 MTK_FUNCTION(5, "SSPM_JTAG_TRSTN"),
415 MTK_FUNCTION(6, "PCM1_DI"),
416 MTK_FUNCTION(7, "DBG_MON_A7")
418 MTK_PIN(
419 31, "GPIO31",
420 MTK_EINT_FUNCTION(0, 31),
421 DRV_GRP4,
422 MTK_FUNCTION(0, "GPIO31"),
423 MTK_FUNCTION(1, "MSDC1_CMD"),
424 MTK_FUNCTION(2, "IO_JTAG_TMS"),
425 MTK_FUNCTION(3, "UDI_TMS"),
426 MTK_FUNCTION(4, "CONN_DSP_JMS"),
427 MTK_FUNCTION(5, "SSPM_JTAG_TMS"),
428 MTK_FUNCTION(6, "PCM1_SYNC"),
429 MTK_FUNCTION(7, "DBG_MON_A8")
431 MTK_PIN(
432 32, "GPIO32",
433 MTK_EINT_FUNCTION(0, 32),
434 DRV_GRP4,
435 MTK_FUNCTION(0, "GPIO32"),
436 MTK_FUNCTION(1, "MSDC1_DAT0"),
437 MTK_FUNCTION(2, "IO_JTAG_TDI"),
438 MTK_FUNCTION(3, "UDI_TDI"),
439 MTK_FUNCTION(4, "CONN_DSP_JDI"),
440 MTK_FUNCTION(5, "SSPM_JTAG_TDI"),
441 MTK_FUNCTION(6, "PCM1_DO0"),
442 MTK_FUNCTION(7, "DBG_MON_A9")
444 MTK_PIN(
445 33, "GPIO33",
446 MTK_EINT_FUNCTION(0, 33),
447 DRV_GRP4,
448 MTK_FUNCTION(0, "GPIO33"),
449 MTK_FUNCTION(1, "MSDC1_DAT2"),
450 MTK_FUNCTION(2, "IO_JTAG_TRSTN"),
451 MTK_FUNCTION(3, "UDI_NTRST"),
452 MTK_FUNCTION(4, "DAP_MD32_SWCK"),
453 MTK_FUNCTION(5, "CONN_MCU_AICE_TCKC"),
454 MTK_FUNCTION(6, "PCM1_DO2"),
455 MTK_FUNCTION(7, "DBG_MON_A10")
457 MTK_PIN(
458 34, "GPIO34",
459 MTK_EINT_FUNCTION(0, 34),
460 DRV_GRP4,
461 MTK_FUNCTION(0, "GPIO34"),
462 MTK_FUNCTION(1, "MSDC1_DAT1"),
463 MTK_FUNCTION(2, "IO_JTAG_TDO"),
464 MTK_FUNCTION(3, "UDI_TDO"),
465 MTK_FUNCTION(4, "CONN_DSP_JDO"),
466 MTK_FUNCTION(5, "SSPM_JTAG_TDO"),
467 MTK_FUNCTION(6, "PCM1_DO1"),
468 MTK_FUNCTION(7, "DBG_MON_A11")
470 MTK_PIN(
471 35, "GPIO35",
472 MTK_EINT_FUNCTION(0, 35),
473 DRV_GRP4,
474 MTK_FUNCTION(0, "GPIO35"),
475 MTK_FUNCTION(1, "MD1_SIM2_SIO"),
476 MTK_FUNCTION(2, "CCU_JTAG_TDO"),
477 MTK_FUNCTION(3, "MD1_SIM1_SIO"),
478 MTK_FUNCTION(5, "SCP_JTAG_TDO"),
479 MTK_FUNCTION(6, "CONN_DSP_JMS"),
480 MTK_FUNCTION(7, "DBG_MON_A28")
482 MTK_PIN(
483 36, "GPIO36",
484 MTK_EINT_FUNCTION(0, 36),
485 DRV_GRP4,
486 MTK_FUNCTION(0, "GPIO36"),
487 MTK_FUNCTION(1, "MD1_SIM2_SRST"),
488 MTK_FUNCTION(2, "CCU_JTAG_TMS"),
489 MTK_FUNCTION(3, "MD1_SIM1_SRST"),
490 MTK_FUNCTION(4, "CONN_MCU_AICE_TMSC"),
491 MTK_FUNCTION(5, "SCP_JTAG_TMS"),
492 MTK_FUNCTION(6, "CONN_DSP_JINTP"),
493 MTK_FUNCTION(7, "DBG_MON_A29")
495 MTK_PIN(
496 37, "GPIO37",
497 MTK_EINT_FUNCTION(0, 37),
498 DRV_GRP4,
499 MTK_FUNCTION(0, "GPIO37"),
500 MTK_FUNCTION(1, "MD1_SIM2_SCLK"),
501 MTK_FUNCTION(2, "CCU_JTAG_TDI"),
502 MTK_FUNCTION(3, "MD1_SIM1_SCLK"),
503 MTK_FUNCTION(5, "SCP_JTAG_TDI"),
504 MTK_FUNCTION(6, "CONN_DSP_JDO"),
505 MTK_FUNCTION(7, "DBG_MON_A30")
507 MTK_PIN(
508 38, "GPIO38",
509 MTK_EINT_FUNCTION(0, 38),
510 DRV_GRP4,
511 MTK_FUNCTION(0, "GPIO38"),
512 MTK_FUNCTION(1, "MD1_SIM1_SCLK"),
513 MTK_FUNCTION(3, "MD1_SIM2_SCLK"),
514 MTK_FUNCTION(4, "CONN_MCU_AICE_TCKC"),
515 MTK_FUNCTION(7, "DBG_MON_A20")
517 MTK_PIN(
518 39, "GPIO39",
519 MTK_EINT_FUNCTION(0, 39),
520 DRV_GRP4,
521 MTK_FUNCTION(0, "GPIO39"),
522 MTK_FUNCTION(1, "MD1_SIM1_SRST"),
523 MTK_FUNCTION(2, "CCU_JTAG_TCK"),
524 MTK_FUNCTION(3, "MD1_SIM2_SRST"),
525 MTK_FUNCTION(5, "SCP_JTAG_TCK"),
526 MTK_FUNCTION(6, "CONN_DSP_JCK"),
527 MTK_FUNCTION(7, "DBG_MON_A31")
529 MTK_PIN(
530 40, "GPIO40",
531 MTK_EINT_FUNCTION(0, 40),
532 DRV_GRP4,
533 MTK_FUNCTION(0, "GPIO40"),
534 MTK_FUNCTION(1, "MD1_SIM1_SIO"),
535 MTK_FUNCTION(2, "CCU_JTAG_TRST"),
536 MTK_FUNCTION(3, "MD1_SIM2_SIO"),
537 MTK_FUNCTION(5, "SCP_JTAG_TRSTN"),
538 MTK_FUNCTION(6, "CONN_DSP_JDI"),
539 MTK_FUNCTION(7, "DBG_MON_A32")
541 MTK_PIN(
542 41, "GPIO41",
543 MTK_EINT_FUNCTION(0, 41),
544 DRV_GRP4,
545 MTK_FUNCTION(0, "GPIO41"),
546 MTK_FUNCTION(1, "IDDIG"),
547 MTK_FUNCTION(2, "URXD1"),
548 MTK_FUNCTION(3, "UCTS0"),
549 MTK_FUNCTION(4, "SSPM_UTXD_AO"),
550 MTK_FUNCTION(5, "EXT_FRAME_SYNC"),
551 MTK_FUNCTION(6, "DMIC_CLK")
553 MTK_PIN(
554 42, "GPIO42",
555 MTK_EINT_FUNCTION(0, 42),
556 DRV_GRP4,
557 MTK_FUNCTION(0, "GPIO42"),
558 MTK_FUNCTION(1, "USB_DRVVBUS"),
559 MTK_FUNCTION(2, "UTXD1"),
560 MTK_FUNCTION(3, "URTS0"),
561 MTK_FUNCTION(4, "SSPM_URXD_AO"),
562 MTK_FUNCTION(5, "EXT_FRAME_SYNC"),
563 MTK_FUNCTION(6, "DMIC_DAT")
565 MTK_PIN(
566 43, "GPIO43",
567 MTK_EINT_FUNCTION(0, 43),
568 DRV_GRP4,
569 MTK_FUNCTION(0, "GPIO43"),
570 MTK_FUNCTION(1, "DISP_PWM")
572 MTK_PIN(
573 44, "GPIO44",
574 MTK_EINT_FUNCTION(0, 44),
575 DRV_GRP4,
576 MTK_FUNCTION(0, "GPIO44"),
577 MTK_FUNCTION(1, "DSI_TE")
579 MTK_PIN(
580 45, "GPIO45",
581 MTK_EINT_FUNCTION(0, 45),
582 DRV_GRP4,
583 MTK_FUNCTION(0, "GPIO45"),
584 MTK_FUNCTION(1, "LCM_RST")
586 MTK_PIN(
587 46, "GPIO46",
588 MTK_EINT_FUNCTION(0, 46),
589 DRV_GRP4,
590 MTK_FUNCTION(0, "GPIO46"),
591 MTK_FUNCTION(1, "MD_INT2_C2K_UIM1_HOT_PLUG"),
592 MTK_FUNCTION(2, "URXD1"),
593 MTK_FUNCTION(3, "UCTS1"),
594 MTK_FUNCTION(4, "CCU_UTXD_AO"),
595 MTK_FUNCTION(5, "TP_UCTS1_AO"),
596 MTK_FUNCTION(6, "IDDIG"),
597 MTK_FUNCTION(7, "I2S5_LRCK")
599 MTK_PIN(
600 47, "GPIO47",
601 MTK_EINT_FUNCTION(0, 47),
602 DRV_GRP4,
603 MTK_FUNCTION(0, "GPIO47"),
604 MTK_FUNCTION(1, "MD_INT1_C2K_UIM0_HOT_PLUG"),
605 MTK_FUNCTION(2, "UTXD1"),
606 MTK_FUNCTION(3, "URTS1"),
607 MTK_FUNCTION(4, "CCU_URXD_AO"),
608 MTK_FUNCTION(5, "TP_URTS1_AO"),
609 MTK_FUNCTION(6, "USB_DRVVBUS"),
610 MTK_FUNCTION(7, "I2S5_DO")
612 MTK_PIN(
613 48, "GPIO48",
614 MTK_EINT_FUNCTION(0, 48),
615 DRV_GRP4,
616 MTK_FUNCTION(0, "GPIO48"),
617 MTK_FUNCTION(1, "SCL5")
619 MTK_PIN(
620 49, "GPIO49",
621 MTK_EINT_FUNCTION(0, 49),
622 DRV_GRP4,
623 MTK_FUNCTION(0, "GPIO49"),
624 MTK_FUNCTION(1, "SDA5")
626 MTK_PIN(
627 50, "GPIO50",
628 MTK_EINT_FUNCTION(0, 50),
629 DRV_GRP4,
630 MTK_FUNCTION(0, "GPIO50"),
631 MTK_FUNCTION(1, "SCL3")
633 MTK_PIN(
634 51, "GPIO51",
635 MTK_EINT_FUNCTION(0, 51),
636 DRV_GRP4,
637 MTK_FUNCTION(0, "GPIO51"),
638 MTK_FUNCTION(1, "SDA3")
640 MTK_PIN(
641 52, "GPIO52",
642 MTK_EINT_FUNCTION(0, 52),
643 DRV_GRP4,
644 MTK_FUNCTION(0, "GPIO52"),
645 MTK_FUNCTION(1, "BPI_ANT2")
647 MTK_PIN(
648 53, "GPIO53",
649 MTK_EINT_FUNCTION(0, 53),
650 DRV_GRP4,
651 MTK_FUNCTION(0, "GPIO53"),
652 MTK_FUNCTION(1, "BPI_ANT0")
654 MTK_PIN(
655 54, "GPIO54",
656 MTK_EINT_FUNCTION(0, 54),
657 DRV_GRP4,
658 MTK_FUNCTION(0, "GPIO54"),
659 MTK_FUNCTION(1, "BPI_OLAT1")
661 MTK_PIN(
662 55, "GPIO55",
663 MTK_EINT_FUNCTION(0, 55),
664 DRV_GRP4,
665 MTK_FUNCTION(0, "GPIO55"),
666 MTK_FUNCTION(1, "BPI_BUS8")
668 MTK_PIN(
669 56, "GPIO56",
670 MTK_EINT_FUNCTION(0, 56),
671 DRV_GRP4,
672 MTK_FUNCTION(0, "GPIO56"),
673 MTK_FUNCTION(1, "BPI_BUS9"),
674 MTK_FUNCTION(2, "SCL_6306")
676 MTK_PIN(
677 57, "GPIO57",
678 MTK_EINT_FUNCTION(0, 57),
679 DRV_GRP4,
680 MTK_FUNCTION(0, "GPIO57"),
681 MTK_FUNCTION(1, "BPI_BUS10"),
682 MTK_FUNCTION(2, "SDA_6306")
684 MTK_PIN(
685 58, "GPIO58",
686 MTK_EINT_FUNCTION(0, 58),
687 DRV_GRP4,
688 MTK_FUNCTION(0, "GPIO58"),
689 MTK_FUNCTION(1, "RFIC0_BSI_D2"),
690 MTK_FUNCTION(2, "SPM_BSI_D2"),
691 MTK_FUNCTION(3, "PWM_B")
693 MTK_PIN(
694 59, "GPIO59",
695 MTK_EINT_FUNCTION(0, 59),
696 DRV_GRP4,
697 MTK_FUNCTION(0, "GPIO59"),
698 MTK_FUNCTION(1, "RFIC0_BSI_D1"),
699 MTK_FUNCTION(2, "SPM_BSI_D1")
701 MTK_PIN(
702 60, "GPIO60",
703 MTK_EINT_FUNCTION(0, 60),
704 DRV_GRP4,
705 MTK_FUNCTION(0, "GPIO60"),
706 MTK_FUNCTION(1, "RFIC0_BSI_D0"),
707 MTK_FUNCTION(2, "SPM_BSI_D0")
709 MTK_PIN(
710 61, "GPIO61",
711 MTK_EINT_FUNCTION(0, 61),
712 DRV_GRP4,
713 MTK_FUNCTION(0, "GPIO61"),
714 MTK_FUNCTION(1, "MIPI1_SDATA")
716 MTK_PIN(
717 62, "GPIO62",
718 MTK_EINT_FUNCTION(0, 62),
719 DRV_GRP4,
720 MTK_FUNCTION(0, "GPIO62"),
721 MTK_FUNCTION(1, "MIPI1_SCLK")
723 MTK_PIN(
724 63, "GPIO63",
725 MTK_EINT_FUNCTION(0, 63),
726 DRV_GRP4,
727 MTK_FUNCTION(0, "GPIO63"),
728 MTK_FUNCTION(1, "MIPI0_SDATA")
730 MTK_PIN(
731 64, "GPIO64",
732 MTK_EINT_FUNCTION(0, 64),
733 DRV_GRP4,
734 MTK_FUNCTION(0, "GPIO64"),
735 MTK_FUNCTION(1, "MIPI0_SCLK")
737 MTK_PIN(
738 65, "GPIO65",
739 MTK_EINT_FUNCTION(0, 65),
740 DRV_GRP4,
741 MTK_FUNCTION(0, "GPIO65"),
742 MTK_FUNCTION(1, "MIPI3_SDATA"),
743 MTK_FUNCTION(2, "BPI_OLAT2")
745 MTK_PIN(
746 66, "GPIO66",
747 MTK_EINT_FUNCTION(0, 66),
748 DRV_GRP4,
749 MTK_FUNCTION(0, "GPIO66"),
750 MTK_FUNCTION(1, "MIPI3_SCLK"),
751 MTK_FUNCTION(2, "BPI_OLAT3")
753 MTK_PIN(
754 67, "GPIO67",
755 MTK_EINT_FUNCTION(0, 67),
756 DRV_GRP4,
757 MTK_FUNCTION(0, "GPIO67"),
758 MTK_FUNCTION(1, "MIPI2_SDATA")
760 MTK_PIN(
761 68, "GPIO68",
762 MTK_EINT_FUNCTION(0, 68),
763 DRV_GRP4,
764 MTK_FUNCTION(0, "GPIO68"),
765 MTK_FUNCTION(1, "MIPI2_SCLK")
767 MTK_PIN(
768 69, "GPIO69",
769 MTK_EINT_FUNCTION(0, 69),
770 DRV_GRP4,
771 MTK_FUNCTION(0, "GPIO69"),
772 MTK_FUNCTION(1, "BPI_BUS7")
774 MTK_PIN(
775 70, "GPIO70",
776 MTK_EINT_FUNCTION(0, 70),
777 DRV_GRP4,
778 MTK_FUNCTION(0, "GPIO70"),
779 MTK_FUNCTION(1, "BPI_BUS6")
781 MTK_PIN(
782 71, "GPIO71",
783 MTK_EINT_FUNCTION(0, 71),
784 DRV_GRP4,
785 MTK_FUNCTION(0, "GPIO71"),
786 MTK_FUNCTION(1, "BPI_BUS5")
788 MTK_PIN(
789 72, "GPIO72",
790 MTK_EINT_FUNCTION(0, 72),
791 DRV_GRP4,
792 MTK_FUNCTION(0, "GPIO72"),
793 MTK_FUNCTION(1, "BPI_BUS4")
795 MTK_PIN(
796 73, "GPIO73",
797 MTK_EINT_FUNCTION(0, 73),
798 DRV_GRP4,
799 MTK_FUNCTION(0, "GPIO73"),
800 MTK_FUNCTION(1, "BPI_BUS3")
802 MTK_PIN(
803 74, "GPIO74",
804 MTK_EINT_FUNCTION(0, 74),
805 DRV_GRP4,
806 MTK_FUNCTION(0, "GPIO74"),
807 MTK_FUNCTION(1, "BPI_BUS2")
809 MTK_PIN(
810 75, "GPIO75",
811 MTK_EINT_FUNCTION(0, 75),
812 DRV_GRP4,
813 MTK_FUNCTION(0, "GPIO75"),
814 MTK_FUNCTION(1, "BPI_BUS1")
816 MTK_PIN(
817 76, "GPIO76",
818 MTK_EINT_FUNCTION(0, 76),
819 DRV_GRP4,
820 MTK_FUNCTION(0, "GPIO76"),
821 MTK_FUNCTION(1, "BPI_BUS0")
823 MTK_PIN(
824 77, "GPIO77",
825 MTK_EINT_FUNCTION(0, 77),
826 DRV_GRP4,
827 MTK_FUNCTION(0, "GPIO77"),
828 MTK_FUNCTION(1, "BPI_ANT1")
830 MTK_PIN(
831 78, "GPIO78",
832 MTK_EINT_FUNCTION(0, 78),
833 DRV_GRP4,
834 MTK_FUNCTION(0, "GPIO78"),
835 MTK_FUNCTION(1, "BPI_OLAT0")
837 MTK_PIN(
838 79, "GPIO79",
839 MTK_EINT_FUNCTION(0, 79),
840 DRV_GRP4,
841 MTK_FUNCTION(0, "GPIO79"),
842 MTK_FUNCTION(1, "BPI_PA_VM1"),
843 MTK_FUNCTION(2, "MIPI4_SDATA")
845 MTK_PIN(
846 80, "GPIO80",
847 MTK_EINT_FUNCTION(0, 80),
848 DRV_GRP4,
849 MTK_FUNCTION(0, "GPIO80"),
850 MTK_FUNCTION(1, "BPI_PA_VM0"),
851 MTK_FUNCTION(2, "MIPI4_SCLK")
853 MTK_PIN(
854 81, "GPIO81",
855 MTK_EINT_FUNCTION(0, 81),
856 DRV_GRP4,
857 MTK_FUNCTION(0, "GPIO81"),
858 MTK_FUNCTION(1, "SDA1")
860 MTK_PIN(
861 82, "GPIO82",
862 MTK_EINT_FUNCTION(0, 82),
863 DRV_GRP4,
864 MTK_FUNCTION(0, "GPIO82"),
865 MTK_FUNCTION(1, "SDA0")
867 MTK_PIN(
868 83, "GPIO83",
869 MTK_EINT_FUNCTION(0, 83),
870 DRV_GRP4,
871 MTK_FUNCTION(0, "GPIO83"),
872 MTK_FUNCTION(1, "SCL0")
874 MTK_PIN(
875 84, "GPIO84",
876 MTK_EINT_FUNCTION(0, 84),
877 DRV_GRP4,
878 MTK_FUNCTION(0, "GPIO84"),
879 MTK_FUNCTION(1, "SCL1")
881 MTK_PIN(
882 85, "GPIO85",
883 MTK_EINT_FUNCTION(0, 85),
884 DRV_GRP4,
885 MTK_FUNCTION(0, "GPIO85"),
886 MTK_FUNCTION(1, "SPI0_MI"),
887 MTK_FUNCTION(2, "SCP_SPI0_MI"),
888 MTK_FUNCTION(3, "CLKM3"),
889 MTK_FUNCTION(4, "I2S1_BCK"),
890 MTK_FUNCTION(5, "MFG_DFD_JTAG_TDO"),
891 MTK_FUNCTION(6, "DFD_TDO"),
892 MTK_FUNCTION(7, "JTDO_SEL1")
894 MTK_PIN(
895 86, "GPIO86",
896 MTK_EINT_FUNCTION(0, 86),
897 DRV_GRP4,
898 MTK_FUNCTION(0, "GPIO86"),
899 MTK_FUNCTION(1, "SPI0_CSB"),
900 MTK_FUNCTION(2, "SCP_SPI0_CS"),
901 MTK_FUNCTION(3, "CLKM0"),
902 MTK_FUNCTION(4, "I2S1_LRCK"),
903 MTK_FUNCTION(5, "MFG_DFD_JTAG_TMS"),
904 MTK_FUNCTION(6, "DFD_TMS"),
905 MTK_FUNCTION(7, "JTMS_SEL1")
907 MTK_PIN(
908 87, "GPIO87",
909 MTK_EINT_FUNCTION(0, 87),
910 DRV_GRP4,
911 MTK_FUNCTION(0, "GPIO87"),
912 MTK_FUNCTION(1, "SPI0_MO"),
913 MTK_FUNCTION(2, "SCP_SPI0_MO"),
914 MTK_FUNCTION(3, "SDA1"),
915 MTK_FUNCTION(4, "I2S1_DO"),
916 MTK_FUNCTION(5, "MFG_DFD_JTAG_TDI"),
917 MTK_FUNCTION(6, "DFD_TDI"),
918 MTK_FUNCTION(7, "JTDI_SEL1")
920 MTK_PIN(
921 88, "GPIO88",
922 MTK_EINT_FUNCTION(0, 88),
923 DRV_GRP4,
924 MTK_FUNCTION(0, "GPIO88"),
925 MTK_FUNCTION(1, "SPI0_CLK"),
926 MTK_FUNCTION(2, "SCP_SPI0_CK"),
927 MTK_FUNCTION(3, "SCL1"),
928 MTK_FUNCTION(4, "I2S1_MCK"),
929 MTK_FUNCTION(5, "MFG_DFD_JTAG_TCK"),
930 MTK_FUNCTION(6, "DFD_TCK_XI"),
931 MTK_FUNCTION(7, "JTCK_SEL1")
933 MTK_PIN(
934 89, "GPIO89",
935 MTK_EINT_FUNCTION(0, 89),
936 DRV_GRP4,
937 MTK_FUNCTION(0, "GPIO89"),
938 MTK_FUNCTION(1, "SRCLKENAI0"),
939 MTK_FUNCTION(2, "PWM_C"),
940 MTK_FUNCTION(3, "I2S5_BCK"),
941 MTK_FUNCTION(4, "ANT_SEL6"),
942 MTK_FUNCTION(5, "SDA8"),
943 MTK_FUNCTION(6, "CMVREF0"),
944 MTK_FUNCTION(7, "DBG_MON_A21")
946 MTK_PIN(
947 90, "GPIO90",
948 MTK_EINT_FUNCTION(0, 90),
949 DRV_GRP4,
950 MTK_FUNCTION(0, "GPIO90"),
951 MTK_FUNCTION(1, "PWM_A"),
952 MTK_FUNCTION(2, "CMMCLK2"),
953 MTK_FUNCTION(3, "I2S5_LRCK"),
954 MTK_FUNCTION(4, "SCP_VREQ_VAO"),
955 MTK_FUNCTION(5, "SCL8"),
956 MTK_FUNCTION(6, "PTA_RXD"),
957 MTK_FUNCTION(7, "DBG_MON_A22")
959 MTK_PIN(
960 91, "GPIO91",
961 MTK_EINT_FUNCTION(0, 91),
962 DRV_GRP4,
963 MTK_FUNCTION(0, "GPIO91"),
964 MTK_FUNCTION(1, "KPROW1"),
965 MTK_FUNCTION(2, "PWM_B"),
966 MTK_FUNCTION(3, "I2S5_DO"),
967 MTK_FUNCTION(4, "ANT_SEL7"),
968 MTK_FUNCTION(5, "CMMCLK3"),
969 MTK_FUNCTION(6, "PTA_TXD")
971 MTK_PIN(
972 92, "GPIO92",
973 MTK_EINT_FUNCTION(0, 92),
974 DRV_GRP4,
975 MTK_FUNCTION(0, "GPIO92"),
976 MTK_FUNCTION(1, "KPROW0")
978 MTK_PIN(
979 93, "GPIO93",
980 MTK_EINT_FUNCTION(0, 93),
981 DRV_GRP4,
982 MTK_FUNCTION(0, "GPIO93"),
983 MTK_FUNCTION(1, "KPCOL0"),
984 MTK_FUNCTION(7, "DBG_MON_B27")
986 MTK_PIN(
987 94, "GPIO94",
988 MTK_EINT_FUNCTION(0, 94),
989 DRV_GRP4,
990 MTK_FUNCTION(0, "GPIO94"),
991 MTK_FUNCTION(1, "KPCOL1"),
992 MTK_FUNCTION(2, "I2S2_DI2"),
993 MTK_FUNCTION(3, "I2S5_MCK"),
994 MTK_FUNCTION(4, "CMMCLK2"),
995 MTK_FUNCTION(5, "SCP_SPI2_MI"),
996 MTK_FUNCTION(6, "SRCLKENAI1"),
997 MTK_FUNCTION(7, "SPI2_MI")
999 MTK_PIN(
1000 95, "GPIO95",
1001 MTK_EINT_FUNCTION(0, 95),
1002 DRV_GRP4,
1003 MTK_FUNCTION(0, "GPIO95"),
1004 MTK_FUNCTION(1, "URXD0"),
1005 MTK_FUNCTION(2, "UTXD0"),
1006 MTK_FUNCTION(3, "MD_URXD0"),
1007 MTK_FUNCTION(4, "MD_URXD1"),
1008 MTK_FUNCTION(5, "SSPM_URXD_AO"),
1009 MTK_FUNCTION(6, "CCU_URXD_AO")
1011 MTK_PIN(
1012 96, "GPIO96",
1013 MTK_EINT_FUNCTION(0, 96),
1014 DRV_GRP4,
1015 MTK_FUNCTION(0, "GPIO96"),
1016 MTK_FUNCTION(1, "UTXD0"),
1017 MTK_FUNCTION(2, "URXD0"),
1018 MTK_FUNCTION(3, "MD_UTXD0"),
1019 MTK_FUNCTION(4, "MD_UTXD1"),
1020 MTK_FUNCTION(5, "SSPM_UTXD_AO"),
1021 MTK_FUNCTION(6, "CCU_UTXD_AO"),
1022 MTK_FUNCTION(7, "DBG_MON_B2")
1024 MTK_PIN(
1025 97, "GPIO97",
1026 MTK_EINT_FUNCTION(0, 97),
1027 DRV_GRP4,
1028 MTK_FUNCTION(0, "GPIO97"),
1029 MTK_FUNCTION(1, "UCTS0"),
1030 MTK_FUNCTION(2, "I2S2_MCK"),
1031 MTK_FUNCTION(3, "IDDIG"),
1032 MTK_FUNCTION(4, "CONN_MCU_TDO"),
1033 MTK_FUNCTION(5, "SSPM_JTAG_TDO"),
1034 MTK_FUNCTION(6, "IO_JTAG_TDO"),
1035 MTK_FUNCTION(7, "DBG_MON_B3")
1037 MTK_PIN(
1038 98, "GPIO98",
1039 MTK_EINT_FUNCTION(0, 98),
1040 DRV_GRP4,
1041 MTK_FUNCTION(0, "GPIO98"),
1042 MTK_FUNCTION(1, "URTS0"),
1043 MTK_FUNCTION(2, "I2S2_BCK"),
1044 MTK_FUNCTION(3, "USB_DRVVBUS"),
1045 MTK_FUNCTION(4, "CONN_MCU_TMS"),
1046 MTK_FUNCTION(5, "SSPM_JTAG_TMS"),
1047 MTK_FUNCTION(6, "IO_JTAG_TMS"),
1048 MTK_FUNCTION(7, "DBG_MON_B4")
1050 MTK_PIN(
1051 99, "GPIO99",
1052 MTK_EINT_FUNCTION(0, 99),
1053 DRV_GRP4,
1054 MTK_FUNCTION(0, "GPIO99"),
1055 MTK_FUNCTION(1, "CMMCLK0"),
1056 MTK_FUNCTION(4, "CONN_MCU_AICE_TMSC"),
1057 MTK_FUNCTION(7, "DBG_MON_B28")
1059 MTK_PIN(
1060 100, "GPIO100",
1061 MTK_EINT_FUNCTION(0, 100),
1062 DRV_GRP4,
1063 MTK_FUNCTION(0, "GPIO100"),
1064 MTK_FUNCTION(1, "CMMCLK1"),
1065 MTK_FUNCTION(2, "PWM_C"),
1066 MTK_FUNCTION(3, "MD_INT1_C2K_UIM0_HOT_PLUG"),
1067 MTK_FUNCTION(4, "CONN_MCU_AICE_TCKC"),
1068 MTK_FUNCTION(7, "DBG_MON_B29")
1070 MTK_PIN(
1071 101, "GPIO101",
1072 MTK_EINT_FUNCTION(0, 101),
1073 DRV_GRP4,
1074 MTK_FUNCTION(0, "GPIO101"),
1075 MTK_FUNCTION(1, "CLKM2"),
1076 MTK_FUNCTION(2, "I2S2_LRCK"),
1077 MTK_FUNCTION(3, "CMVREF1"),
1078 MTK_FUNCTION(4, "CONN_MCU_TCK"),
1079 MTK_FUNCTION(5, "SSPM_JTAG_TCK"),
1080 MTK_FUNCTION(6, "IO_JTAG_TCK")
1082 MTK_PIN(
1083 102, "GPIO102",
1084 MTK_EINT_FUNCTION(0, 102),
1085 DRV_GRP4,
1086 MTK_FUNCTION(0, "GPIO102"),
1087 MTK_FUNCTION(1, "CLKM1"),
1088 MTK_FUNCTION(2, "I2S2_DI"),
1089 MTK_FUNCTION(3, "DVFSRC_EXT_REQ"),
1090 MTK_FUNCTION(4, "CONN_MCU_TDI"),
1091 MTK_FUNCTION(5, "SSPM_JTAG_TDI"),
1092 MTK_FUNCTION(6, "IO_JTAG_TDI"),
1093 MTK_FUNCTION(7, "DBG_MON_B8")
1095 MTK_PIN(
1096 103, "GPIO103",
1097 MTK_EINT_FUNCTION(0, 103),
1098 DRV_GRP4,
1099 MTK_FUNCTION(0, "GPIO103"),
1100 MTK_FUNCTION(1, "SCL2")
1102 MTK_PIN(
1103 104, "GPIO104",
1104 MTK_EINT_FUNCTION(0, 104),
1105 DRV_GRP4,
1106 MTK_FUNCTION(0, "GPIO104"),
1107 MTK_FUNCTION(1, "SDA2")
1109 MTK_PIN(
1110 105, "GPIO105",
1111 MTK_EINT_FUNCTION(0, 105),
1112 DRV_GRP4,
1113 MTK_FUNCTION(0, "GPIO105"),
1114 MTK_FUNCTION(1, "SCL4")
1116 MTK_PIN(
1117 106, "GPIO106",
1118 MTK_EINT_FUNCTION(0, 106),
1119 DRV_GRP4,
1120 MTK_FUNCTION(0, "GPIO106"),
1121 MTK_FUNCTION(1, "SDA4")
1123 MTK_PIN(
1124 107, "GPIO107",
1125 MTK_EINT_FUNCTION(0, 107),
1126 DRV_GRP4,
1127 MTK_FUNCTION(0, "GPIO107"),
1128 MTK_FUNCTION(1, "DMIC_CLK"),
1129 MTK_FUNCTION(2, "ANT_SEL0"),
1130 MTK_FUNCTION(3, "CLKM0"),
1131 MTK_FUNCTION(4, "SDA7"),
1132 MTK_FUNCTION(5, "EXT_FRAME_SYNC"),
1133 MTK_FUNCTION(6, "PWM_A"),
1134 MTK_FUNCTION(7, "DBG_MON_B12")
1136 MTK_PIN(
1137 108, "GPIO108",
1138 MTK_EINT_FUNCTION(0, 108),
1139 DRV_GRP4,
1140 MTK_FUNCTION(0, "GPIO108"),
1141 MTK_FUNCTION(1, "CMMCLK2"),
1142 MTK_FUNCTION(2, "ANT_SEL1"),
1143 MTK_FUNCTION(3, "CLKM1"),
1144 MTK_FUNCTION(4, "SCL8"),
1145 MTK_FUNCTION(5, "DAP_MD32_SWD"),
1146 MTK_FUNCTION(6, "PWM_B"),
1147 MTK_FUNCTION(7, "DBG_MON_B13")
1149 MTK_PIN(
1150 109, "GPIO109",
1151 MTK_EINT_FUNCTION(0, 109),
1152 DRV_GRP4,
1153 MTK_FUNCTION(0, "GPIO109"),
1154 MTK_FUNCTION(1, "DMIC_DAT"),
1155 MTK_FUNCTION(2, "ANT_SEL2"),
1156 MTK_FUNCTION(3, "CLKM2"),
1157 MTK_FUNCTION(4, "SDA8"),
1158 MTK_FUNCTION(5, "DAP_MD32_SWCK"),
1159 MTK_FUNCTION(6, "PWM_C"),
1160 MTK_FUNCTION(7, "DBG_MON_B14")
1162 MTK_PIN(
1163 110, "GPIO110",
1164 MTK_EINT_FUNCTION(0, 110),
1165 DRV_GRP4,
1166 MTK_FUNCTION(0, "GPIO110"),
1167 MTK_FUNCTION(1, "SCL7"),
1168 MTK_FUNCTION(2, "ANT_SEL0"),
1169 MTK_FUNCTION(3, "TP_URXD1_AO"),
1170 MTK_FUNCTION(4, "USB_DRVVBUS"),
1171 MTK_FUNCTION(5, "SRCLKENAI1"),
1172 MTK_FUNCTION(6, "KPCOL2"),
1173 MTK_FUNCTION(7, "URXD1")
1175 MTK_PIN(
1176 111, "GPIO111",
1177 MTK_EINT_FUNCTION(0, 111),
1178 DRV_GRP4,
1179 MTK_FUNCTION(0, "GPIO111"),
1180 MTK_FUNCTION(1, "CMMCLK3"),
1181 MTK_FUNCTION(2, "ANT_SEL1"),
1182 MTK_FUNCTION(3, "SRCLKENAI0"),
1183 MTK_FUNCTION(4, "SCP_VREQ_VAO"),
1184 MTK_FUNCTION(5, "MD_INT2_C2K_UIM1_HOT_PLUG"),
1185 MTK_FUNCTION(7, "DVFSRC_EXT_REQ")
1187 MTK_PIN(
1188 112, "GPIO112",
1189 MTK_EINT_FUNCTION(0, 112),
1190 DRV_GRP4,
1191 MTK_FUNCTION(0, "GPIO112"),
1192 MTK_FUNCTION(1, "SDA7"),
1193 MTK_FUNCTION(2, "ANT_SEL2"),
1194 MTK_FUNCTION(3, "TP_UTXD1_AO"),
1195 MTK_FUNCTION(4, "IDDIG"),
1196 MTK_FUNCTION(5, "AGPS_SYNC"),
1197 MTK_FUNCTION(6, "KPROW2"),
1198 MTK_FUNCTION(7, "UTXD1")
1200 MTK_PIN(
1201 113, "GPIO113",
1202 MTK_EINT_FUNCTION(0, 113),
1203 DRV_GRP4,
1204 MTK_FUNCTION(0, "GPIO113"),
1205 MTK_FUNCTION(1, "CONN_TOP_CLK"),
1206 MTK_FUNCTION(3, "SCL6"),
1207 MTK_FUNCTION(4, "AUXIF_CLK0"),
1208 MTK_FUNCTION(6, "TP_UCTS1_AO")
1210 MTK_PIN(
1211 114, "GPIO114",
1212 MTK_EINT_FUNCTION(0, 114),
1213 DRV_GRP4,
1214 MTK_FUNCTION(0, "GPIO114"),
1215 MTK_FUNCTION(1, "CONN_TOP_DATA"),
1216 MTK_FUNCTION(3, "SDA6"),
1217 MTK_FUNCTION(4, "AUXIF_ST0"),
1218 MTK_FUNCTION(6, "TP_URTS1_AO")
1220 MTK_PIN(
1221 115, "GPIO115",
1222 MTK_EINT_FUNCTION(0, 115),
1223 DRV_GRP4,
1224 MTK_FUNCTION(0, "GPIO115"),
1225 MTK_FUNCTION(1, "CONN_BT_CLK"),
1226 MTK_FUNCTION(2, "UTXD1"),
1227 MTK_FUNCTION(3, "PTA_TXD"),
1228 MTK_FUNCTION(4, "AUXIF_CLK1"),
1229 MTK_FUNCTION(5, "DAP_MD32_SWD"),
1230 MTK_FUNCTION(6, "TP_UTXD1_AO")
1232 MTK_PIN(
1233 116, "GPIO116",
1234 MTK_EINT_FUNCTION(0, 116),
1235 DRV_GRP4,
1236 MTK_FUNCTION(0, "GPIO116"),
1237 MTK_FUNCTION(1, "CONN_BT_DATA"),
1238 MTK_FUNCTION(2, "IPU_JTAG_TRST"),
1239 MTK_FUNCTION(4, "AUXIF_ST1"),
1240 MTK_FUNCTION(5, "DAP_MD32_SWCK"),
1241 MTK_FUNCTION(6, "TP_URXD2_AO"),
1242 MTK_FUNCTION(7, "DBG_MON_A0")
1244 MTK_PIN(
1245 117, "GPIO117",
1246 MTK_EINT_FUNCTION(0, 117),
1247 DRV_GRP4,
1248 MTK_FUNCTION(0, "GPIO117"),
1249 MTK_FUNCTION(1, "CONN_WF_HB0"),
1250 MTK_FUNCTION(2, "IPU_JTAG_TDO"),
1251 MTK_FUNCTION(6, "TP_UTXD2_AO"),
1252 MTK_FUNCTION(7, "DBG_MON_A4")
1254 MTK_PIN(
1255 118, "GPIO118",
1256 MTK_EINT_FUNCTION(0, 118),
1257 DRV_GRP4,
1258 MTK_FUNCTION(0, "GPIO118"),
1259 MTK_FUNCTION(1, "CONN_WF_HB1"),
1260 MTK_FUNCTION(2, "IPU_JTAG_TDI"),
1261 MTK_FUNCTION(5, "SSPM_URXD_AO"),
1262 MTK_FUNCTION(6, "TP_UCTS2_AO"),
1263 MTK_FUNCTION(7, "DBG_MON_A5")
1265 MTK_PIN(
1266 119, "GPIO119",
1267 MTK_EINT_FUNCTION(0, 119),
1268 DRV_GRP4,
1269 MTK_FUNCTION(0, "GPIO119"),
1270 MTK_FUNCTION(1, "CONN_WF_HB2"),
1271 MTK_FUNCTION(2, "IPU_JTAG_TCK"),
1272 MTK_FUNCTION(5, "SSPM_UTXD_AO"),
1273 MTK_FUNCTION(6, "TP_URTS2_AO")
1275 MTK_PIN(
1276 120, "GPIO120",
1277 MTK_EINT_FUNCTION(0, 120),
1278 DRV_GRP4,
1279 MTK_FUNCTION(0, "GPIO120"),
1280 MTK_FUNCTION(1, "CONN_WB_PTA"),
1281 MTK_FUNCTION(2, "IPU_JTAG_TMS"),
1282 MTK_FUNCTION(5, "CCU_URXD_AO")
1284 MTK_PIN(
1285 121, "GPIO121",
1286 MTK_EINT_FUNCTION(0, 121),
1287 DRV_GRP4,
1288 MTK_FUNCTION(0, "GPIO121"),
1289 MTK_FUNCTION(1, "CONN_HRST_B"),
1290 MTK_FUNCTION(2, "URXD1"),
1291 MTK_FUNCTION(3, "PTA_RXD"),
1292 MTK_FUNCTION(5, "CCU_UTXD_AO"),
1293 MTK_FUNCTION(6, "TP_URXD1_AO")
1295 MTK_PIN(
1296 122, "GPIO122",
1297 MTK_EINT_FUNCTION(0, 122),
1298 DRV_GRP4,
1299 MTK_FUNCTION(0, "GPIO122"),
1300 MTK_FUNCTION(1, "MSDC0_CMD"),
1301 MTK_FUNCTION(2, "SSPM_URXD2_AO"),
1302 MTK_FUNCTION(3, "ANT_SEL1"),
1303 MTK_FUNCTION(7, "DBG_MON_A12")
1305 MTK_PIN(
1306 123, "GPIO123",
1307 MTK_EINT_FUNCTION(0, 123),
1308 DRV_GRP4,
1309 MTK_FUNCTION(0, "GPIO123"),
1310 MTK_FUNCTION(1, "MSDC0_DAT0"),
1311 MTK_FUNCTION(3, "ANT_SEL0"),
1312 MTK_FUNCTION(7, "DBG_MON_A13")
1314 MTK_PIN(
1315 124, "GPIO124",
1316 MTK_EINT_FUNCTION(0, 124),
1317 DRV_GRP4,
1318 MTK_FUNCTION(0, "GPIO124"),
1319 MTK_FUNCTION(1, "MSDC0_CLK"),
1320 MTK_FUNCTION(7, "DBG_MON_A14")
1322 MTK_PIN(
1323 125, "GPIO125",
1324 MTK_EINT_FUNCTION(0, 125),
1325 DRV_GRP4,
1326 MTK_FUNCTION(0, "GPIO125"),
1327 MTK_FUNCTION(1, "MSDC0_DAT2"),
1328 MTK_FUNCTION(3, "MRG_CLK"),
1329 MTK_FUNCTION(7, "DBG_MON_A15")
1331 MTK_PIN(
1332 126, "GPIO126",
1333 MTK_EINT_FUNCTION(0, 126),
1334 DRV_GRP4,
1335 MTK_FUNCTION(0, "GPIO126"),
1336 MTK_FUNCTION(1, "MSDC0_DAT4"),
1337 MTK_FUNCTION(3, "ANT_SEL5"),
1338 MTK_FUNCTION(6, "UFS_MPHY_SCL"),
1339 MTK_FUNCTION(7, "DBG_MON_A16")
1341 MTK_PIN(
1342 127, "GPIO127",
1343 MTK_EINT_FUNCTION(0, 127),
1344 DRV_GRP4,
1345 MTK_FUNCTION(0, "GPIO127"),
1346 MTK_FUNCTION(1, "MSDC0_DAT6"),
1347 MTK_FUNCTION(3, "ANT_SEL4"),
1348 MTK_FUNCTION(6, "UFS_MPHY_SDA"),
1349 MTK_FUNCTION(7, "DBG_MON_A17")
1351 MTK_PIN(
1352 128, "GPIO128",
1353 MTK_EINT_FUNCTION(0, 128),
1354 DRV_GRP4,
1355 MTK_FUNCTION(0, "GPIO128"),
1356 MTK_FUNCTION(1, "MSDC0_DAT1"),
1357 MTK_FUNCTION(3, "ANT_SEL2"),
1358 MTK_FUNCTION(6, "UFS_UNIPRO_SDA"),
1359 MTK_FUNCTION(7, "DBG_MON_A18")
1361 MTK_PIN(
1362 129, "GPIO129",
1363 MTK_EINT_FUNCTION(0, 129),
1364 DRV_GRP4,
1365 MTK_FUNCTION(0, "GPIO129"),
1366 MTK_FUNCTION(1, "MSDC0_DAT5"),
1367 MTK_FUNCTION(3, "ANT_SEL3"),
1368 MTK_FUNCTION(6, "UFS_UNIPRO_SCL"),
1369 MTK_FUNCTION(7, "DBG_MON_A23")
1371 MTK_PIN(
1372 130, "GPIO130",
1373 MTK_EINT_FUNCTION(0, 130),
1374 DRV_GRP4,
1375 MTK_FUNCTION(0, "GPIO130"),
1376 MTK_FUNCTION(1, "MSDC0_DAT7"),
1377 MTK_FUNCTION(3, "MRG_DO"),
1378 MTK_FUNCTION(7, "DBG_MON_A24")
1380 MTK_PIN(
1381 131, "GPIO131",
1382 MTK_EINT_FUNCTION(0, 131),
1383 DRV_GRP4,
1384 MTK_FUNCTION(0, "GPIO131"),
1385 MTK_FUNCTION(1, "MSDC0_DSL"),
1386 MTK_FUNCTION(3, "MRG_SYNC"),
1387 MTK_FUNCTION(7, "DBG_MON_A25")
1389 MTK_PIN(
1390 132, "GPIO132",
1391 MTK_EINT_FUNCTION(0, 132),
1392 DRV_GRP4,
1393 MTK_FUNCTION(0, "GPIO132"),
1394 MTK_FUNCTION(1, "MSDC0_DAT3"),
1395 MTK_FUNCTION(3, "MRG_DI"),
1396 MTK_FUNCTION(7, "DBG_MON_A26")
1398 MTK_PIN(
1399 133, "GPIO133",
1400 MTK_EINT_FUNCTION(0, 133),
1401 DRV_GRP4,
1402 MTK_FUNCTION(0, "GPIO133"),
1403 MTK_FUNCTION(1, "MSDC0_RSTB"),
1404 MTK_FUNCTION(3, "AGPS_SYNC"),
1405 MTK_FUNCTION(7, "DBG_MON_A27")
1407 MTK_PIN(
1408 134, "GPIO134",
1409 MTK_EINT_FUNCTION(0, 134),
1410 DRV_GRP4,
1411 MTK_FUNCTION(0, "GPIO134"),
1412 MTK_FUNCTION(1, "RTC32K_CK")
1414 MTK_PIN(
1415 135, "GPIO135",
1416 MTK_EINT_FUNCTION(0, 135),
1417 DRV_GRP4,
1418 MTK_FUNCTION(0, "GPIO135"),
1419 MTK_FUNCTION(1, "WATCHDOG")
1421 MTK_PIN(
1422 136, "GPIO136",
1423 MTK_EINT_FUNCTION(0, 136),
1424 DRV_GRP4,
1425 MTK_FUNCTION(0, "GPIO136"),
1426 MTK_FUNCTION(1, "AUD_CLK_MOSI"),
1427 MTK_FUNCTION(2, "AUD_CLK_MISO"),
1428 MTK_FUNCTION(3, "I2S1_MCK"),
1429 MTK_FUNCTION(6, "UFS_UNIPRO_SCL")
1431 MTK_PIN(
1432 137, "GPIO137",
1433 MTK_EINT_FUNCTION(0, 137),
1434 DRV_GRP4,
1435 MTK_FUNCTION(0, "GPIO137"),
1436 MTK_FUNCTION(1, "AUD_SYNC_MOSI"),
1437 MTK_FUNCTION(2, "AUD_SYNC_MISO"),
1438 MTK_FUNCTION(3, "I2S1_BCK")
1440 MTK_PIN(
1441 138, "GPIO138",
1442 MTK_EINT_FUNCTION(0, 138),
1443 DRV_GRP4,
1444 MTK_FUNCTION(0, "GPIO138"),
1445 MTK_FUNCTION(1, "AUD_DAT_MOSI0"),
1446 MTK_FUNCTION(2, "AUD_DAT_MISO0"),
1447 MTK_FUNCTION(3, "I2S1_LRCK"),
1448 MTK_FUNCTION(7, "DBG_MON_B24")
1450 MTK_PIN(
1451 139, "GPIO139",
1452 MTK_EINT_FUNCTION(0, 139),
1453 DRV_GRP4,
1454 MTK_FUNCTION(0, "GPIO139"),
1455 MTK_FUNCTION(1, "AUD_DAT_MOSI1"),
1456 MTK_FUNCTION(2, "AUD_DAT_MISO1"),
1457 MTK_FUNCTION(3, "I2S1_DO"),
1458 MTK_FUNCTION(6, "UFS_MPHY_SDA")
1460 MTK_PIN(
1461 140, "GPIO140",
1462 MTK_EINT_FUNCTION(0, 140),
1463 DRV_GRP4,
1464 MTK_FUNCTION(0, "GPIO140"),
1465 MTK_FUNCTION(1, "AUD_CLK_MISO"),
1466 MTK_FUNCTION(2, "AUD_CLK_MOSI"),
1467 MTK_FUNCTION(3, "I2S0_MCK"),
1468 MTK_FUNCTION(6, "UFS_UNIPRO_SDA")
1470 MTK_PIN(
1471 141, "GPIO141",
1472 MTK_EINT_FUNCTION(0, 141),
1473 DRV_GRP4,
1474 MTK_FUNCTION(0, "GPIO141"),
1475 MTK_FUNCTION(1, "AUD_SYNC_MISO"),
1476 MTK_FUNCTION(2, "AUD_SYNC_MOSI"),
1477 MTK_FUNCTION(3, "I2S0_BCK")
1479 MTK_PIN(
1480 142, "GPIO142",
1481 MTK_EINT_FUNCTION(0, 142),
1482 DRV_GRP4,
1483 MTK_FUNCTION(0, "GPIO142"),
1484 MTK_FUNCTION(1, "AUD_DAT_MISO0"),
1485 MTK_FUNCTION(2, "AUD_DAT_MOSI0"),
1486 MTK_FUNCTION(3, "I2S0_LRCK"),
1487 MTK_FUNCTION(4, "VOW_DAT_MISO"),
1488 MTK_FUNCTION(7, "DBG_MON_B25")
1490 MTK_PIN(
1491 143, "GPIO143",
1492 MTK_EINT_FUNCTION(0, 143),
1493 DRV_GRP4,
1494 MTK_FUNCTION(0, "GPIO143"),
1495 MTK_FUNCTION(1, "AUD_DAT_MISO1"),
1496 MTK_FUNCTION(2, "AUD_DAT_MOSI1"),
1497 MTK_FUNCTION(3, "I2S0_DI"),
1498 MTK_FUNCTION(4, "VOW_CLK_MISO"),
1499 MTK_FUNCTION(6, "UFS_MPHY_SCL"),
1500 MTK_FUNCTION(7, "DBG_MON_B26")
1502 MTK_PIN(
1503 144, "GPIO144",
1504 MTK_EINT_FUNCTION(0, 144),
1505 DRV_GRP4,
1506 MTK_FUNCTION(0, "GPIO144"),
1507 MTK_FUNCTION(1, "PWRAP_SPI0_MI"),
1508 MTK_FUNCTION(2, "PWRAP_SPI0_MO")
1510 MTK_PIN(
1511 145, "GPIO145",
1512 MTK_EINT_FUNCTION(0, 145),
1513 DRV_GRP4,
1514 MTK_FUNCTION(0, "GPIO145"),
1515 MTK_FUNCTION(1, "PWRAP_SPI0_CSN")
1517 MTK_PIN(
1518 146, "GPIO146",
1519 MTK_EINT_FUNCTION(0, 146),
1520 DRV_GRP4,
1521 MTK_FUNCTION(0, "GPIO146"),
1522 MTK_FUNCTION(1, "PWRAP_SPI0_MO"),
1523 MTK_FUNCTION(2, "PWRAP_SPI0_MI")
1525 MTK_PIN(
1526 147, "GPIO147",
1527 MTK_EINT_FUNCTION(0, 147),
1528 DRV_GRP4,
1529 MTK_FUNCTION(0, "GPIO147"),
1530 MTK_FUNCTION(1, "PWRAP_SPI0_CK")
1532 MTK_PIN(
1533 148, "GPIO148",
1534 MTK_EINT_FUNCTION(0, 148),
1535 DRV_GRP4,
1536 MTK_FUNCTION(0, "GPIO148"),
1537 MTK_FUNCTION(1, "SRCLKENA0")
1539 MTK_PIN(
1540 149, "GPIO149",
1541 MTK_EINT_FUNCTION(0, 149),
1542 DRV_GRP4,
1543 MTK_FUNCTION(0, "GPIO149"),
1544 MTK_FUNCTION(1, "SRCLKENA1")
1546 MTK_PIN(
1547 150, "GPIO150",
1548 MTK_EINT_FUNCTION(0, 150),
1549 DRV_GRP4,
1550 MTK_FUNCTION(0, "GPIO150"),
1551 MTK_FUNCTION(1, "PWM_A"),
1552 MTK_FUNCTION(2, "CMFLASH"),
1553 MTK_FUNCTION(3, "CLKM0"),
1554 MTK_FUNCTION(7, "DBG_MON_B30")
1556 MTK_PIN(
1557 151, "GPIO151",
1558 MTK_EINT_FUNCTION(0, 151),
1559 DRV_GRP4,
1560 MTK_FUNCTION(0, "GPIO151"),
1561 MTK_FUNCTION(1, "PWM_B"),
1562 MTK_FUNCTION(2, "CMVREF0"),
1563 MTK_FUNCTION(3, "CLKM1"),
1564 MTK_FUNCTION(7, "DBG_MON_B20")
1566 MTK_PIN(
1567 152, "GPIO152",
1568 MTK_EINT_FUNCTION(0, 152),
1569 DRV_GRP4,
1570 MTK_FUNCTION(0, "GPIO152"),
1571 MTK_FUNCTION(1, "PWM_C"),
1572 MTK_FUNCTION(2, "CMFLASH"),
1573 MTK_FUNCTION(3, "CLKM2"),
1574 MTK_FUNCTION(7, "DBG_MON_B21")
1576 MTK_PIN(
1577 153, "GPIO153",
1578 MTK_EINT_FUNCTION(0, 153),
1579 DRV_GRP4,
1580 MTK_FUNCTION(0, "GPIO153"),
1581 MTK_FUNCTION(1, "PWM_A"),
1582 MTK_FUNCTION(2, "CMVREF0"),
1583 MTK_FUNCTION(3, "CLKM3"),
1584 MTK_FUNCTION(7, "DBG_MON_B22")
1586 MTK_PIN(
1587 154, "GPIO154",
1588 MTK_EINT_FUNCTION(0, 154),
1589 DRV_GRP4,
1590 MTK_FUNCTION(0, "GPIO154"),
1591 MTK_FUNCTION(1, "SCP_VREQ_VAO"),
1592 MTK_FUNCTION(2, "DVFSRC_EXT_REQ"),
1593 MTK_FUNCTION(7, "DBG_MON_B18")
1595 MTK_PIN(
1596 155, "GPIO155",
1597 MTK_EINT_FUNCTION(0, 155),
1598 DRV_GRP4,
1599 MTK_FUNCTION(0, "GPIO155"),
1600 MTK_FUNCTION(1, "ANT_SEL0"),
1601 MTK_FUNCTION(2, "DVFSRC_EXT_REQ"),
1602 MTK_FUNCTION(3, "CMVREF1"),
1603 MTK_FUNCTION(7, "SCP_JTAG_TDI")
1605 MTK_PIN(
1606 156, "GPIO156",
1607 MTK_EINT_FUNCTION(0, 156),
1608 DRV_GRP4,
1609 MTK_FUNCTION(0, "GPIO156"),
1610 MTK_FUNCTION(1, "ANT_SEL1"),
1611 MTK_FUNCTION(2, "SRCLKENAI0"),
1612 MTK_FUNCTION(3, "SCL6"),
1613 MTK_FUNCTION(4, "KPCOL2"),
1614 MTK_FUNCTION(5, "IDDIG"),
1615 MTK_FUNCTION(7, "SCP_JTAG_TCK")
1617 MTK_PIN(
1618 157, "GPIO157",
1619 MTK_EINT_FUNCTION(0, 157),
1620 DRV_GRP4,
1621 MTK_FUNCTION(0, "GPIO157"),
1622 MTK_FUNCTION(1, "ANT_SEL2"),
1623 MTK_FUNCTION(2, "SRCLKENAI1"),
1624 MTK_FUNCTION(3, "SDA6"),
1625 MTK_FUNCTION(4, "KPROW2"),
1626 MTK_FUNCTION(5, "USB_DRVVBUS"),
1627 MTK_FUNCTION(7, "SCP_JTAG_TRSTN")
1629 MTK_PIN(
1630 158, "GPIO158",
1631 MTK_EINT_FUNCTION(0, 158),
1632 DRV_GRP4,
1633 MTK_FUNCTION(0, "GPIO158"),
1634 MTK_FUNCTION(1, "ANT_SEL3")
1636 MTK_PIN(
1637 159, "GPIO159",
1638 MTK_EINT_FUNCTION(0, 159),
1639 DRV_GRP4,
1640 MTK_FUNCTION(0, "GPIO159"),
1641 MTK_FUNCTION(1, "ANT_SEL4")
1643 MTK_PIN(
1644 160, "GPIO160",
1645 MTK_EINT_FUNCTION(0, 160),
1646 DRV_GRP4,
1647 MTK_FUNCTION(0, "GPIO160"),
1648 MTK_FUNCTION(1, "ANT_SEL5")
1650 MTK_PIN(
1651 161, "GPIO161",
1652 MTK_EINT_FUNCTION(0, 161),
1653 DRV_GRP4,
1654 MTK_FUNCTION(0, "GPIO161"),
1655 MTK_FUNCTION(1, "SPI1_A_MI"),
1656 MTK_FUNCTION(2, "SCP_SPI1_MI"),
1657 MTK_FUNCTION(3, "IDDIG"),
1658 MTK_FUNCTION(4, "ANT_SEL6"),
1659 MTK_FUNCTION(5, "KPCOL2"),
1660 MTK_FUNCTION(6, "PTA_RXD"),
1661 MTK_FUNCTION(7, "DBG_MON_B19")
1663 MTK_PIN(
1664 162, "GPIO162",
1665 MTK_EINT_FUNCTION(0, 162),
1666 DRV_GRP4,
1667 MTK_FUNCTION(0, "GPIO162"),
1668 MTK_FUNCTION(1, "SPI1_A_CSB"),
1669 MTK_FUNCTION(2, "SCP_SPI1_CS"),
1670 MTK_FUNCTION(3, "USB_DRVVBUS"),
1671 MTK_FUNCTION(4, "ANT_SEL5"),
1672 MTK_FUNCTION(5, "KPROW2"),
1673 MTK_FUNCTION(6, "PTA_TXD")
1675 MTK_PIN(
1676 163, "GPIO163",
1677 MTK_EINT_FUNCTION(0, 163),
1678 DRV_GRP4,
1679 MTK_FUNCTION(0, "GPIO163"),
1680 MTK_FUNCTION(1, "SPI1_A_MO"),
1681 MTK_FUNCTION(2, "SCP_SPI1_MO"),
1682 MTK_FUNCTION(3, "SDA1"),
1683 MTK_FUNCTION(4, "ANT_SEL4"),
1684 MTK_FUNCTION(5, "CMMCLK2"),
1685 MTK_FUNCTION(6, "DMIC_CLK")
1687 MTK_PIN(
1688 164, "GPIO164",
1689 MTK_EINT_FUNCTION(0, 164),
1690 DRV_GRP4,
1691 MTK_FUNCTION(0, "GPIO164"),
1692 MTK_FUNCTION(1, "SPI1_A_CLK"),
1693 MTK_FUNCTION(2, "SCP_SPI1_CK"),
1694 MTK_FUNCTION(3, "SCL1"),
1695 MTK_FUNCTION(4, "ANT_SEL3"),
1696 MTK_FUNCTION(5, "CMMCLK3"),
1697 MTK_FUNCTION(6, "DMIC_DAT")
1699 MTK_PIN(
1700 165, "GPIO165",
1701 MTK_EINT_FUNCTION(0, 165),
1702 DRV_GRP4,
1703 MTK_FUNCTION(0, "GPIO165"),
1704 MTK_FUNCTION(1, "PWM_B"),
1705 MTK_FUNCTION(2, "CMMCLK2"),
1706 MTK_FUNCTION(3, "SCP_VREQ_VAO"),
1707 MTK_FUNCTION(6, "TDM_MCK_2ND"),
1708 MTK_FUNCTION(7, "SCP_JTAG_TDO")
1710 MTK_PIN(
1711 166, "GPIO166",
1712 MTK_EINT_FUNCTION(0, 166),
1713 DRV_GRP4,
1714 MTK_FUNCTION(0, "GPIO166"),
1715 MTK_FUNCTION(1, "ANT_SEL6")
1717 MTK_PIN(
1718 167, "GPIO167",
1719 MTK_EINT_FUNCTION(0, 167),
1720 DRV_GRP4,
1721 MTK_FUNCTION(0, "GPIO167"),
1722 MTK_FUNCTION(1, "RFIC0_BSI_EN"),
1723 MTK_FUNCTION(2, "SPM_BSI_EN")
1725 MTK_PIN(
1726 168, "GPIO168",
1727 MTK_EINT_FUNCTION(0, 168),
1728 DRV_GRP4,
1729 MTK_FUNCTION(0, "GPIO168"),
1730 MTK_FUNCTION(1, "RFIC0_BSI_CK"),
1731 MTK_FUNCTION(2, "SPM_BSI_CK")
1733 MTK_PIN(
1734 169, "GPIO169",
1735 MTK_EINT_FUNCTION(0, 169),
1736 DRV_GRP4,
1737 MTK_FUNCTION(0, "GPIO169"),
1738 MTK_FUNCTION(1, "PWM_C"),
1739 MTK_FUNCTION(2, "CMMCLK3"),
1740 MTK_FUNCTION(3, "CMVREF1"),
1741 MTK_FUNCTION(4, "ANT_SEL7"),
1742 MTK_FUNCTION(5, "AGPS_SYNC"),
1743 MTK_FUNCTION(6, "TDM_BCK_2ND"),
1744 MTK_FUNCTION(7, "SCP_JTAG_TMS")
1746 MTK_PIN(
1747 170, "GPIO170",
1748 MTK_EINT_FUNCTION(0, 170),
1749 DRV_GRP4,
1750 MTK_FUNCTION(0, "GPIO170"),
1751 MTK_FUNCTION(1, "I2S1_BCK"),
1752 MTK_FUNCTION(2, "I2S3_BCK"),
1753 MTK_FUNCTION(3, "SCL7"),
1754 MTK_FUNCTION(4, "I2S5_BCK"),
1755 MTK_FUNCTION(5, "EXT_FRAME_SYNC"),
1756 MTK_FUNCTION(6, "TDM_LRCK_2ND"),
1757 MTK_FUNCTION(7, "ANT_SEL3")
1759 MTK_PIN(
1760 171, "GPIO171",
1761 MTK_EINT_FUNCTION(0, 184),
1762 DRV_GRP4,
1763 MTK_FUNCTION(0, "GPIO171"),
1764 MTK_FUNCTION(1, "I2S1_LRCK"),
1765 MTK_FUNCTION(2, "I2S3_LRCK"),
1766 MTK_FUNCTION(3, "SDA7"),
1767 MTK_FUNCTION(4, "I2S5_LRCK"),
1768 MTK_FUNCTION(5, "URXD1"),
1769 MTK_FUNCTION(6, "TDM_DATA0_2ND"),
1770 MTK_FUNCTION(7, "ANT_SEL4")
1772 MTK_PIN(
1773 172, "GPIO172",
1774 MTK_EINT_FUNCTION(0, 185),
1775 DRV_GRP4,
1776 MTK_FUNCTION(0, "GPIO172"),
1777 MTK_FUNCTION(1, "I2S1_DO"),
1778 MTK_FUNCTION(2, "I2S3_DO"),
1779 MTK_FUNCTION(3, "SCL8"),
1780 MTK_FUNCTION(4, "I2S5_DO"),
1781 MTK_FUNCTION(5, "UTXD1"),
1782 MTK_FUNCTION(6, "TDM_DATA1_2ND"),
1783 MTK_FUNCTION(7, "ANT_SEL5")
1785 MTK_PIN(
1786 173, "GPIO173",
1787 MTK_EINT_FUNCTION(0, 186),
1788 DRV_GRP4,
1789 MTK_FUNCTION(0, "GPIO173"),
1790 MTK_FUNCTION(1, "I2S1_MCK"),
1791 MTK_FUNCTION(2, "I2S3_MCK"),
1792 MTK_FUNCTION(3, "SDA8"),
1793 MTK_FUNCTION(4, "I2S5_MCK"),
1794 MTK_FUNCTION(5, "UCTS0"),
1795 MTK_FUNCTION(6, "TDM_DATA2_2ND"),
1796 MTK_FUNCTION(7, "ANT_SEL6")
1798 MTK_PIN(
1799 174, "GPIO174",
1800 MTK_EINT_FUNCTION(0, 187),
1801 DRV_GRP4,
1802 MTK_FUNCTION(0, "GPIO174"),
1803 MTK_FUNCTION(1, "I2S2_DI"),
1804 MTK_FUNCTION(2, "I2S0_DI"),
1805 MTK_FUNCTION(3, "DVFSRC_EXT_REQ"),
1806 MTK_FUNCTION(4, "I2S2_DI2"),
1807 MTK_FUNCTION(5, "URTS0"),
1808 MTK_FUNCTION(6, "TDM_DATA3_2ND"),
1809 MTK_FUNCTION(7, "ANT_SEL7")
1811 MTK_PIN(
1812 175, "GPIO175",
1813 MTK_EINT_FUNCTION(0, 188),
1814 DRV_GRP4,
1815 MTK_FUNCTION(0, "GPIO175"),
1816 MTK_FUNCTION(1, "ANT_SEL7")
1818 MTK_PIN(
1819 176, "GPIO176",
1820 MTK_EINT_FUNCTION(0, 189),
1821 DRV_GRP4,
1822 MTK_FUNCTION(0, "GPIO176")
1824 MTK_PIN(
1825 177, "GPIO177",
1826 MTK_EINT_FUNCTION(0, 190),
1827 DRV_GRP4,
1828 MTK_FUNCTION(0, "GPIO177")
1830 MTK_PIN(
1831 178, "GPIO178",
1832 MTK_EINT_FUNCTION(0, 191),
1833 DRV_GRP4,
1834 MTK_FUNCTION(0, "GPIO178")
1836 MTK_PIN(
1837 179, "GPIO179",
1838 MTK_EINT_FUNCTION(0, 192),
1839 DRV_GRP4,
1840 MTK_FUNCTION(0, "GPIO179")
1842 MTK_PIN(
1843 180, "GPIO180",
1844 MTK_EINT_FUNCTION(0, 171),
1845 DRV_GRP4,
1846 MTK_FUNCTION(0, "GPIO180")
1848 MTK_PIN(
1849 181, "GPIO181",
1850 MTK_EINT_FUNCTION(0, 172),
1851 DRV_GRP4,
1852 MTK_FUNCTION(0, "GPIO181")
1854 MTK_PIN(
1855 182, "GPIO182",
1856 MTK_EINT_FUNCTION(0, 173),
1857 DRV_GRP4,
1858 MTK_FUNCTION(0, "GPIO182")
1860 MTK_PIN(
1861 183, "GPIO183",
1862 MTK_EINT_FUNCTION(0, 174),
1863 DRV_GRP4,
1864 MTK_FUNCTION(0, "GPIO183")
1866 MTK_PIN(
1867 184, "GPIO184",
1868 MTK_EINT_FUNCTION(0, 175),
1869 DRV_GRP4,
1870 MTK_FUNCTION(0, "GPIO184")
1872 MTK_PIN(
1873 185, "GPIO185",
1874 MTK_EINT_FUNCTION(0, 177),
1875 DRV_GRP4,
1876 MTK_FUNCTION(0, "GPIO185")
1878 MTK_PIN(
1879 186, "GPIO186",
1880 MTK_EINT_FUNCTION(0, 178),
1881 DRV_GRP4,
1882 MTK_FUNCTION(0, "GPIO186")
1884 MTK_PIN(
1885 187, "GPIO187",
1886 MTK_EINT_FUNCTION(0, 179),
1887 DRV_GRP4,
1888 MTK_FUNCTION(0, "GPIO187")
1890 MTK_PIN(
1891 188, "GPIO188",
1892 MTK_EINT_FUNCTION(0, 180),
1893 DRV_GRP4,
1894 MTK_FUNCTION(0, "GPIO188")
1896 MTK_PIN(
1897 189, "GPIO189",
1898 MTK_EINT_FUNCTION(0, 181),
1899 DRV_GRP4,
1900 MTK_FUNCTION(0, "GPIO189")
1902 MTK_PIN(
1903 190, "GPIO190",
1904 MTK_EINT_FUNCTION(0, 182),
1905 DRV_GRP4,
1906 MTK_FUNCTION(0, "GPIO190")
1908 MTK_PIN(
1909 191, "GPIO191",
1910 MTK_EINT_FUNCTION(0, 183),
1911 DRV_GRP4,
1912 MTK_FUNCTION(0, "GPIO191")
1916 #endif /* __PINCTRL_MTK_MT8183_H */