Linux 5.1.15
[linux/fpc-iii.git] / drivers / pinctrl / mediatek / pinctrl-mtk-mt8127.h
blob0a1254f96e95fb9b8c9e47dbe1cb03f505e3348e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PINCTRL_MTK_MT8127_H
3 #define __PINCTRL_MTK_MT8127_H
5 #include <linux/pinctrl/pinctrl.h>
6 #include "pinctrl-mtk-common.h"
8 static const struct mtk_desc_pin mtk_pins_mt8127[] = {
9 MTK_PIN(PINCTRL_PIN(0, "PWRAP_SPI0_MI"),
10 "P22", "mt8127",
11 MTK_EINT_FUNCTION(0, 22),
12 MTK_FUNCTION(0, "GPIO0"),
13 MTK_FUNCTION(1, "PWRAP_SPIDO"),
14 MTK_FUNCTION(2, "PWRAP_SPIDI")
16 MTK_PIN(PINCTRL_PIN(1, "PWRAP_SPI0_MO"),
17 "M22", "mt8127",
18 MTK_EINT_FUNCTION(0, 23),
19 MTK_FUNCTION(0, "GPIO1"),
20 MTK_FUNCTION(1, "PWRAP_SPIDI"),
21 MTK_FUNCTION(2, "PWRAP_SPIDO")
23 MTK_PIN(PINCTRL_PIN(2, "PWRAP_INT"),
24 "L23", "mt8127",
25 MTK_EINT_FUNCTION(0, 24),
26 MTK_FUNCTION(0, "GPIO2")
28 MTK_PIN(PINCTRL_PIN(3, "PWRAP_SPI0_CK"),
29 "N23", "mt8127",
30 MTK_EINT_FUNCTION(0, 25),
31 MTK_FUNCTION(0, "GPIO3"),
32 MTK_FUNCTION(1, "PWRAP_SPICK_I")
34 MTK_PIN(PINCTRL_PIN(4, "PWRAP_SPI0_CSN"),
35 "N22", "mt8127",
36 MTK_EINT_FUNCTION(0, 26),
37 MTK_FUNCTION(0, "GPIO4"),
38 MTK_FUNCTION(1, "PWRAP_SPICS_B_I")
40 MTK_PIN(PINCTRL_PIN(5, "PWRAP_SPI0_CK2"),
41 "L19", "mt8127",
42 MTK_EINT_FUNCTION(0, 27),
43 MTK_FUNCTION(0, "GPIO5"),
44 MTK_FUNCTION(1, "PWRAP_SPICK2_I"),
45 MTK_FUNCTION(2, "ANT_SEL1"),
46 MTK_FUNCTION(3, "VDEC_TEST_CK"),
47 MTK_FUNCTION(7, "DBG_MON_B[0]")
49 MTK_PIN(PINCTRL_PIN(6, "PWRAP_SPI0_CSN2"),
50 "M23", "mt8127",
51 MTK_EINT_FUNCTION(0, 28),
52 MTK_FUNCTION(0, "GPIO6"),
53 MTK_FUNCTION(1, "PWRAP_SPICS2_B_I"),
54 MTK_FUNCTION(2, "ANT_SEL0"),
55 MTK_FUNCTION(3, "MM_TEST_CK"),
56 MTK_FUNCTION(7, "DBG_MON_B[1]")
58 MTK_PIN(PINCTRL_PIN(7, "AUD_CLK_MOSI"),
59 "K23", "mt8127",
60 MTK_EINT_FUNCTION(0, 29),
61 MTK_FUNCTION(0, "GPIO7"),
62 MTK_FUNCTION(1, "AUD_CLK"),
63 MTK_FUNCTION(2, "ADC_CK")
65 MTK_PIN(PINCTRL_PIN(8, "AUD_DAT_MISO"),
66 "K24", "mt8127",
67 MTK_EINT_FUNCTION(0, 30),
68 MTK_FUNCTION(0, "GPIO8"),
69 MTK_FUNCTION(1, "AUD_MISO"),
70 MTK_FUNCTION(2, "ADC_DAT_IN"),
71 MTK_FUNCTION(3, "AUD_MOSI")
73 MTK_PIN(PINCTRL_PIN(9, "AUD_DAT_MOSI"),
74 "K22", "mt8127",
75 MTK_EINT_FUNCTION(0, 31),
76 MTK_FUNCTION(0, "GPIO9"),
77 MTK_FUNCTION(1, "AUD_MOSI"),
78 MTK_FUNCTION(2, "ADC_WS"),
79 MTK_FUNCTION(3, "AUD_MISO")
81 MTK_PIN(PINCTRL_PIN(10, "RTC32K_CK"),
82 "R21", "mt8127",
83 MTK_EINT_FUNCTION(0, 32),
84 MTK_FUNCTION(0, "GPIO10"),
85 MTK_FUNCTION(1, "RTC32K_CK")
87 MTK_PIN(PINCTRL_PIN(11, "WATCHDOG"),
88 "P24", "mt8127",
89 MTK_EINT_FUNCTION(0, 33),
90 MTK_FUNCTION(0, "GPIO11"),
91 MTK_FUNCTION(1, "WATCHDOG")
93 MTK_PIN(PINCTRL_PIN(12, "SRCLKENA"),
94 "R22", "mt8127",
95 MTK_EINT_FUNCTION(0, 34),
96 MTK_FUNCTION(0, "GPIO12"),
97 MTK_FUNCTION(1, "SRCLKENA")
99 MTK_PIN(PINCTRL_PIN(13, "SRCLKENAI"),
100 "P23", "mt8127",
101 MTK_EINT_FUNCTION(0, 35),
102 MTK_FUNCTION(0, "GPIO13"),
103 MTK_FUNCTION(1, "SRCLKENAI")
105 MTK_PIN(PINCTRL_PIN(14, "URXD2"),
106 "U19", "mt8127",
107 MTK_EINT_FUNCTION(0, 36),
108 MTK_FUNCTION(0, "GPIO14"),
109 MTK_FUNCTION(1, "URXD2"),
110 MTK_FUNCTION(2, "DPI_D5"),
111 MTK_FUNCTION(3, "UTXD2"),
112 MTK_FUNCTION(5, "SRCCLKENAI2"),
113 MTK_FUNCTION(6, "KROW4")
115 MTK_PIN(PINCTRL_PIN(15, "UTXD2"),
116 "U20", "mt8127",
117 MTK_EINT_FUNCTION(0, 37),
118 MTK_FUNCTION(0, "GPIO15"),
119 MTK_FUNCTION(1, "UTXD2"),
120 MTK_FUNCTION(2, "DPI_HSYNC"),
121 MTK_FUNCTION(3, "URXD2"),
122 MTK_FUNCTION(6, "KROW5")
124 MTK_PIN(PINCTRL_PIN(16, "URXD3"),
125 "U18", "mt8127",
126 MTK_EINT_FUNCTION(0, 38),
127 MTK_FUNCTION(0, "GPIO16"),
128 MTK_FUNCTION(1, "URXD3"),
129 MTK_FUNCTION(2, "DPI_DE"),
130 MTK_FUNCTION(3, "UTXD3"),
131 MTK_FUNCTION(4, "UCTS2"),
132 MTK_FUNCTION(5, "PWM3"),
133 MTK_FUNCTION(6, "KROW6")
135 MTK_PIN(PINCTRL_PIN(17, "UTXD3"),
136 "R18", "mt8127",
137 MTK_EINT_FUNCTION(0, 39),
138 MTK_FUNCTION(0, "GPIO17"),
139 MTK_FUNCTION(1, "UTXD3"),
140 MTK_FUNCTION(2, "DPI_VSYNC"),
141 MTK_FUNCTION(3, "URXD3"),
142 MTK_FUNCTION(4, "URTS2"),
143 MTK_FUNCTION(5, "PWM4"),
144 MTK_FUNCTION(6, "KROW7")
146 MTK_PIN(PINCTRL_PIN(18, "PCM_CLK"),
147 "U22", "mt8127",
148 MTK_EINT_FUNCTION(0, 40),
149 MTK_FUNCTION(0, "GPIO18"),
150 MTK_FUNCTION(1, "PCM_CLK0"),
151 MTK_FUNCTION(2, "DPI_D4"),
152 MTK_FUNCTION(3, "I2SIN1_BCK0"),
153 MTK_FUNCTION(4, "I2SOUT_BCK"),
154 MTK_FUNCTION(5, "CONN_DSP_JCK"),
155 MTK_FUNCTION(6, "IR"),
156 MTK_FUNCTION(7, "DBG_MON_A[0]")
158 MTK_PIN(PINCTRL_PIN(19, "PCM_SYNC"),
159 "U23", "mt8127",
160 MTK_EINT_FUNCTION(0, 41),
161 MTK_FUNCTION(0, "GPIO19"),
162 MTK_FUNCTION(1, "PCM_SYNC"),
163 MTK_FUNCTION(2, "DPI_D3"),
164 MTK_FUNCTION(3, "I2SIN1_LRCK"),
165 MTK_FUNCTION(4, "I2SOUT_LRCK"),
166 MTK_FUNCTION(5, "CONN_DSP_JINTP"),
167 MTK_FUNCTION(6, "EXT_COL"),
168 MTK_FUNCTION(7, "DBG_MON_A[1]")
170 MTK_PIN(PINCTRL_PIN(20, "PCM_RX"),
171 "V22", "mt8127",
172 MTK_EINT_FUNCTION(0, 42),
173 MTK_FUNCTION(0, "GPIO20"),
174 MTK_FUNCTION(1, "PCM_RX"),
175 MTK_FUNCTION(2, "DPI_D1"),
176 MTK_FUNCTION(3, "I2SIN1_DATA_IN"),
177 MTK_FUNCTION(4, "PCM_TX"),
178 MTK_FUNCTION(5, "CONN_DSP_JDI"),
179 MTK_FUNCTION(6, "EXT_MDIO"),
180 MTK_FUNCTION(7, "DBG_MON_A[2]")
182 MTK_PIN(PINCTRL_PIN(21, "PCM_TX"),
183 "U21", "mt8127",
184 MTK_EINT_FUNCTION(0, 43),
185 MTK_FUNCTION(0, "GPIO21"),
186 MTK_FUNCTION(1, "PCM_TX"),
187 MTK_FUNCTION(2, "DPI_D2"),
188 MTK_FUNCTION(3, "I2SOUT_DATA_OUT"),
189 MTK_FUNCTION(4, "PCM_RX"),
190 MTK_FUNCTION(5, "CONN_DSP_JMS"),
191 MTK_FUNCTION(6, "EXT_MDC"),
192 MTK_FUNCTION(7, "DBG_MON_A[3]")
194 MTK_PIN(PINCTRL_PIN(22, "EINT0"),
195 "AB19", "mt8127",
196 MTK_EINT_FUNCTION(0, 0),
197 MTK_FUNCTION(0, "GPIO22"),
198 MTK_FUNCTION(1, "PWM1"),
199 MTK_FUNCTION(2, "DPI_CK"),
200 MTK_FUNCTION(4, "EXT_TXD0"),
201 MTK_FUNCTION(5, "CONN_DSP_JDO"),
202 MTK_FUNCTION(7, "DBG_MON_A[4]")
204 MTK_PIN(PINCTRL_PIN(23, "EINT1"),
205 "AA21", "mt8127",
206 MTK_EINT_FUNCTION(0, 1),
207 MTK_FUNCTION(0, "GPIO23"),
208 MTK_FUNCTION(1, "PWM2"),
209 MTK_FUNCTION(2, "DPI_D12"),
210 MTK_FUNCTION(4, "EXT_TXD1"),
211 MTK_FUNCTION(5, "CONN_MCU_TDO"),
212 MTK_FUNCTION(7, "DBG_MON_A[5]")
214 MTK_PIN(PINCTRL_PIN(24, "EINT2"),
215 "AA19", "mt8127",
216 MTK_EINT_FUNCTION(0, 2),
217 MTK_FUNCTION(0, "GPIO24"),
218 MTK_FUNCTION(1, "CLKM0"),
219 MTK_FUNCTION(2, "DPI_D13"),
220 MTK_FUNCTION(4, "EXT_TXD2"),
221 MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
222 MTK_FUNCTION(6, "KCOL4"),
223 MTK_FUNCTION(7, "DBG_MON_A[6]")
225 MTK_PIN(PINCTRL_PIN(25, "EINT3"),
226 "Y19", "mt8127",
227 MTK_EINT_FUNCTION(0, 3),
228 MTK_FUNCTION(0, "GPIO25"),
229 MTK_FUNCTION(1, "CLKM1"),
230 MTK_FUNCTION(2, "DPI_D14"),
231 MTK_FUNCTION(3, "SPI_MI"),
232 MTK_FUNCTION(4, "EXT_TXD3"),
233 MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
234 MTK_FUNCTION(6, "KCOL5"),
235 MTK_FUNCTION(7, "DBG_MON_A[7]")
237 MTK_PIN(PINCTRL_PIN(26, "EINT4"),
238 "V21", "mt8127",
239 MTK_EINT_FUNCTION(0, 4),
240 MTK_FUNCTION(0, "GPIO26"),
241 MTK_FUNCTION(1, "CLKM2"),
242 MTK_FUNCTION(2, "DPI_D15"),
243 MTK_FUNCTION(3, "SPI_MO"),
244 MTK_FUNCTION(4, "EXT_TXC"),
245 MTK_FUNCTION(5, "CONN_MCU_TCK0"),
246 MTK_FUNCTION(6, "CONN_MCU_AICE_JCKC"),
247 MTK_FUNCTION(7, "DBG_MON_A[8]")
249 MTK_PIN(PINCTRL_PIN(27, "EINT5"),
250 "AB22", "mt8127",
251 MTK_EINT_FUNCTION(0, 5),
252 MTK_FUNCTION(0, "GPIO27"),
253 MTK_FUNCTION(1, "UCTS2"),
254 MTK_FUNCTION(2, "DPI_D16"),
255 MTK_FUNCTION(3, "SPI_CS"),
256 MTK_FUNCTION(4, "EXT_RXER"),
257 MTK_FUNCTION(5, "CONN_MCU_TDI"),
258 MTK_FUNCTION(6, "KCOL6"),
259 MTK_FUNCTION(7, "DBG_MON_A[9]")
261 MTK_PIN(PINCTRL_PIN(28, "EINT6"),
262 "AA23", "mt8127",
263 MTK_EINT_FUNCTION(0, 6),
264 MTK_FUNCTION(0, "GPIO28"),
265 MTK_FUNCTION(1, "URTS2"),
266 MTK_FUNCTION(2, "DPI_D17"),
267 MTK_FUNCTION(3, "SPI_CK"),
268 MTK_FUNCTION(4, "EXT_RXC"),
269 MTK_FUNCTION(5, "CONN_MCU_TRST_B"),
270 MTK_FUNCTION(6, "KCOL7"),
271 MTK_FUNCTION(7, "DBG_MON_A[10]")
273 MTK_PIN(PINCTRL_PIN(29, "EINT7"),
274 "Y23", "mt8127",
275 MTK_EINT_FUNCTION(0, 7),
276 MTK_FUNCTION(0, "GPIO29"),
277 MTK_FUNCTION(1, "UCTS3"),
278 MTK_FUNCTION(2, "DPI_D6"),
279 MTK_FUNCTION(3, "SDA1"),
280 MTK_FUNCTION(4, "EXT_RXDV"),
281 MTK_FUNCTION(5, "CONN_MCU_TMS"),
282 MTK_FUNCTION(6, "CONN_MCU_AICE_JMSC"),
283 MTK_FUNCTION(7, "DBG_MON_A[11]")
285 MTK_PIN(PINCTRL_PIN(30, "EINT8"),
286 "Y24", "mt8127",
287 MTK_EINT_FUNCTION(0, 8),
288 MTK_FUNCTION(0, "GPIO30"),
289 MTK_FUNCTION(1, "URTS3"),
290 MTK_FUNCTION(2, "CLKM3"),
291 MTK_FUNCTION(3, "SCL1"),
292 MTK_FUNCTION(4, "EXT_RXD0"),
293 MTK_FUNCTION(5, "ANT_SEL0"),
294 MTK_FUNCTION(6, "DPI_D7"),
295 MTK_FUNCTION(7, "DBG_MON_B[2]")
297 MTK_PIN(PINCTRL_PIN(31, "EINT9"),
298 "W23", "mt8127",
299 MTK_EINT_FUNCTION(0, 9),
300 MTK_FUNCTION(0, "GPIO31"),
301 MTK_FUNCTION(1, "CLKM4"),
302 MTK_FUNCTION(2, "SDA2"),
303 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
304 MTK_FUNCTION(4, "EXT_RXD1"),
305 MTK_FUNCTION(5, "ANT_SEL1"),
306 MTK_FUNCTION(6, "DPI_D8"),
307 MTK_FUNCTION(7, "DBG_MON_B[3]")
309 MTK_PIN(PINCTRL_PIN(32, "EINT10"),
310 "W24", "mt8127",
311 MTK_EINT_FUNCTION(0, 10),
312 MTK_FUNCTION(0, "GPIO32"),
313 MTK_FUNCTION(1, "CLKM5"),
314 MTK_FUNCTION(2, "SCL2"),
315 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
316 MTK_FUNCTION(4, "EXT_RXD2"),
317 MTK_FUNCTION(5, "ANT_SEL2"),
318 MTK_FUNCTION(6, "DPI_D9"),
319 MTK_FUNCTION(7, "DBG_MON_B[4]")
321 MTK_PIN(PINCTRL_PIN(33, "KPROW0"),
322 "AB24", "mt8127",
323 MTK_EINT_FUNCTION(0, 44),
324 MTK_FUNCTION(0, "GPIO33"),
325 MTK_FUNCTION(1, "KROW0"),
326 MTK_FUNCTION(4, "IMG_TEST_CK"),
327 MTK_FUNCTION(7, "DBG_MON_A[12]")
329 MTK_PIN(PINCTRL_PIN(34, "KPROW1"),
330 "AC24", "mt8127",
331 MTK_EINT_FUNCTION(0, 45),
332 MTK_FUNCTION(0, "GPIO34"),
333 MTK_FUNCTION(1, "KROW1"),
334 MTK_FUNCTION(2, "IDDIG"),
335 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
336 MTK_FUNCTION(4, "MFG_TEST_CK"),
337 MTK_FUNCTION(7, "DBG_MON_B[5]")
339 MTK_PIN(PINCTRL_PIN(35, "KPROW2"),
340 "AD24", "mt8127",
341 MTK_EINT_FUNCTION(0, 46),
342 MTK_FUNCTION(0, "GPIO35"),
343 MTK_FUNCTION(1, "KROW2"),
344 MTK_FUNCTION(2, "DRV_VBUS"),
345 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
346 MTK_FUNCTION(4, "CONN_TEST_CK"),
347 MTK_FUNCTION(7, "DBG_MON_B[6]")
349 MTK_PIN(PINCTRL_PIN(36, "KPCOL0"),
350 "AB23", "mt8127",
351 MTK_EINT_FUNCTION(0, 47),
352 MTK_FUNCTION(0, "GPIO36"),
353 MTK_FUNCTION(1, "KCOL0"),
354 MTK_FUNCTION(7, "DBG_MON_A[13]")
356 MTK_PIN(PINCTRL_PIN(37, "KPCOL1"),
357 "AC22", "mt8127",
358 MTK_EINT_FUNCTION(0, 48),
359 MTK_FUNCTION(0, "GPIO37"),
360 MTK_FUNCTION(1, "KCOL1"),
361 MTK_FUNCTION(7, "DBG_MON_B[7]")
363 MTK_PIN(PINCTRL_PIN(38, "KPCOL2"),
364 "AC23", "mt8127",
365 MTK_EINT_FUNCTION(0, 49),
366 MTK_FUNCTION(0, "GPIO38"),
367 MTK_FUNCTION(1, "KCOL2"),
368 MTK_FUNCTION(2, "IDDIG"),
369 MTK_FUNCTION(3, "EXT_FRAME_SYNC"),
370 MTK_FUNCTION(7, "DBG_MON_B[8]")
372 MTK_PIN(PINCTRL_PIN(39, "JTMS"),
373 "V18", "mt8127",
374 MTK_EINT_FUNCTION(0, 50),
375 MTK_FUNCTION(0, "GPIO39"),
376 MTK_FUNCTION(1, "JTMS"),
377 MTK_FUNCTION(2, "CONN_MCU_TMS"),
378 MTK_FUNCTION(3, "CONN_MCU_AICE_JMSC")
380 MTK_PIN(PINCTRL_PIN(40, "JTCK"),
381 "AA18", "mt8127",
382 MTK_EINT_FUNCTION(0, 51),
383 MTK_FUNCTION(0, "GPIO40"),
384 MTK_FUNCTION(1, "JTCK"),
385 MTK_FUNCTION(2, "CONN_MCU_TCK1"),
386 MTK_FUNCTION(3, "CONN_MCU_AICE_JCKC")
388 MTK_PIN(PINCTRL_PIN(41, "JTDI"),
389 "W18", "mt8127",
390 MTK_EINT_FUNCTION(0, 52),
391 MTK_FUNCTION(0, "GPIO41"),
392 MTK_FUNCTION(1, "JTDI"),
393 MTK_FUNCTION(2, "CONN_MCU_TDI")
395 MTK_PIN(PINCTRL_PIN(42, "JTDO"),
396 "Y18", "mt8127",
397 MTK_EINT_FUNCTION(0, 53),
398 MTK_FUNCTION(0, "GPIO42"),
399 MTK_FUNCTION(1, "JTDO"),
400 MTK_FUNCTION(2, "CONN_MCU_TDO")
402 MTK_PIN(PINCTRL_PIN(43, "EINT11"),
403 "W22", "mt8127",
404 MTK_EINT_FUNCTION(0, 11),
405 MTK_FUNCTION(0, "GPIO43"),
406 MTK_FUNCTION(1, "CLKM4"),
407 MTK_FUNCTION(2, "PWM2"),
408 MTK_FUNCTION(3, "KROW3"),
409 MTK_FUNCTION(4, "ANT_SEL3"),
410 MTK_FUNCTION(5, "DPI_D10"),
411 MTK_FUNCTION(6, "EXT_RXD3"),
412 MTK_FUNCTION(7, "DBG_MON_B[9]")
414 MTK_PIN(PINCTRL_PIN(44, "EINT12"),
415 "V23", "mt8127",
416 MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
417 MTK_FUNCTION(0, "GPIO44"),
418 MTK_FUNCTION(1, "CLKM5"),
419 MTK_FUNCTION(2, "PWM0"),
420 MTK_FUNCTION(3, "KCOL3"),
421 MTK_FUNCTION(4, "ANT_SEL4"),
422 MTK_FUNCTION(5, "DPI_D11"),
423 MTK_FUNCTION(6, "EXT_TXEN"),
424 MTK_FUNCTION(7, "DBG_MON_B[10]")
426 MTK_PIN(PINCTRL_PIN(45, "EINT13"),
427 "Y21", "mt8127",
428 MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
429 MTK_FUNCTION(0, "GPIO45"),
430 MTK_FUNCTION(4, "ANT_SEL5"),
431 MTK_FUNCTION(5, "DPI_D0"),
432 MTK_FUNCTION(6, "SPDIF"),
433 MTK_FUNCTION(7, "DBG_MON_B[11]")
435 MTK_PIN(PINCTRL_PIN(46, "EINT14"),
436 "F23", "mt8127",
437 MTK_EINT_FUNCTION(0, 14),
438 MTK_FUNCTION(0, "GPIO46"),
439 MTK_FUNCTION(2, "DAC_DAT_OUT"),
440 MTK_FUNCTION(4, "ANT_SEL1"),
441 MTK_FUNCTION(5, "CONN_MCU_DBGACK_N"),
442 MTK_FUNCTION(6, "NCLE"),
443 MTK_FUNCTION(7, "DBG_MON_A[14]")
445 MTK_PIN(PINCTRL_PIN(47, "EINT15"),
446 "G23", "mt8127",
447 MTK_EINT_FUNCTION(0, 15),
448 MTK_FUNCTION(0, "GPIO47"),
449 MTK_FUNCTION(2, "DAC_WS"),
450 MTK_FUNCTION(4, "ANT_SEL2"),
451 MTK_FUNCTION(5, "CONN_MCU_DBGI_N"),
452 MTK_FUNCTION(6, "NCEB1"),
453 MTK_FUNCTION(7, "DBG_MON_A[15]")
455 MTK_PIN(PINCTRL_PIN(48, "EINT16"),
456 "H23", "mt8127",
457 MTK_EINT_FUNCTION(0, 16),
458 MTK_FUNCTION(0, "GPIO48"),
459 MTK_FUNCTION(2, "DAC_CK"),
460 MTK_FUNCTION(4, "ANT_SEL3"),
461 MTK_FUNCTION(5, "CONN_MCU_TRST_B"),
462 MTK_FUNCTION(6, "NCEB0"),
463 MTK_FUNCTION(7, "DBG_MON_A[16]")
465 MTK_PIN(PINCTRL_PIN(49, "EINT17"),
466 "J22", "mt8127",
467 MTK_EINT_FUNCTION(0, 17),
468 MTK_FUNCTION(0, "GPIO49"),
469 MTK_FUNCTION(1, "UCTS0"),
470 MTK_FUNCTION(3, "CLKM0"),
471 MTK_FUNCTION(4, "IDDIG"),
472 MTK_FUNCTION(5, "ANT_SEL4"),
473 MTK_FUNCTION(6, "NREB"),
474 MTK_FUNCTION(7, "DBG_MON_A[17]")
476 MTK_PIN(PINCTRL_PIN(50, "EINT18"),
477 "AD20", "mt8127",
478 MTK_EINT_FUNCTION(0, 18),
479 MTK_FUNCTION(0, "GPIO50"),
480 MTK_FUNCTION(1, "URTS0"),
481 MTK_FUNCTION(2, "CLKM3"),
482 MTK_FUNCTION(3, "I2SOUT_LRCK"),
483 MTK_FUNCTION(4, "DRV_VBUS"),
484 MTK_FUNCTION(5, "ANT_SEL3"),
485 MTK_FUNCTION(6, "ADC_CK"),
486 MTK_FUNCTION(7, "DBG_MON_B[12]")
488 MTK_PIN(PINCTRL_PIN(51, "EINT19"),
489 "AC21", "mt8127",
490 MTK_EINT_FUNCTION(0, 19),
491 MTK_FUNCTION(0, "GPIO51"),
492 MTK_FUNCTION(1, "UCTS1"),
493 MTK_FUNCTION(3, "I2SOUT_BCK"),
494 MTK_FUNCTION(4, "CLKM1"),
495 MTK_FUNCTION(5, "ANT_SEL4"),
496 MTK_FUNCTION(6, "ADC_DAT_IN"),
497 MTK_FUNCTION(7, "DBG_MON_B[13]")
499 MTK_PIN(PINCTRL_PIN(52, "EINT20"),
500 "V20", "mt8127",
501 MTK_EINT_FUNCTION(0, 20),
502 MTK_FUNCTION(0, "GPIO52"),
503 MTK_FUNCTION(1, "URTS1"),
504 MTK_FUNCTION(2, "PCM_TX"),
505 MTK_FUNCTION(3, "I2SOUT_DATA_OUT"),
506 MTK_FUNCTION(4, "CLKM2"),
507 MTK_FUNCTION(5, "ANT_SEL5"),
508 MTK_FUNCTION(6, "ADC_WS"),
509 MTK_FUNCTION(7, "DBG_MON_B[14]")
511 MTK_PIN(PINCTRL_PIN(53, "SPI_CS"),
512 "AD19", "mt8127",
513 MTK_EINT_FUNCTION(0, 54),
514 MTK_FUNCTION(0, "GPIO53"),
515 MTK_FUNCTION(1, "SPI_CS"),
516 MTK_FUNCTION(3, "I2SIN1_DATA_IN"),
517 MTK_FUNCTION(4, "ADC_CK"),
518 MTK_FUNCTION(7, "DBG_MON_B[15]")
520 MTK_PIN(PINCTRL_PIN(54, "SPI_CK"),
521 "AC18", "mt8127",
522 MTK_EINT_FUNCTION(0, 55),
523 MTK_FUNCTION(0, "GPIO54"),
524 MTK_FUNCTION(1, "SPI_CK"),
525 MTK_FUNCTION(3, "I2SIN1_LRCK"),
526 MTK_FUNCTION(4, "ADC_DAT_IN"),
527 MTK_FUNCTION(7, "DBG_MON_B[16]")
529 MTK_PIN(PINCTRL_PIN(55, "SPI_MI"),
530 "AC19", "mt8127",
531 MTK_EINT_FUNCTION(0, 56),
532 MTK_FUNCTION(0, "GPIO55"),
533 MTK_FUNCTION(1, "SPI_MI"),
534 MTK_FUNCTION(2, "SPI_MO"),
535 MTK_FUNCTION(3, "I2SIN1_BCK1"),
536 MTK_FUNCTION(4, "ADC_WS"),
537 MTK_FUNCTION(7, "DBG_MON_B[17]")
539 MTK_PIN(PINCTRL_PIN(56, "SPI_MO"),
540 "AD18", "mt8127",
541 MTK_EINT_FUNCTION(0, 57),
542 MTK_FUNCTION(0, "GPIO56"),
543 MTK_FUNCTION(1, "SPI_MO"),
544 MTK_FUNCTION(2, "SPI_MI"),
545 MTK_FUNCTION(7, "DBG_MON_B[18]")
547 MTK_PIN(PINCTRL_PIN(57, "SDA1"),
548 "AE23", "mt8127",
549 MTK_EINT_FUNCTION(0, 58),
550 MTK_FUNCTION(0, "GPIO57"),
551 MTK_FUNCTION(1, "SDA1")
553 MTK_PIN(PINCTRL_PIN(58, "SCL1"),
554 "AD23", "mt8127",
555 MTK_EINT_FUNCTION(0, 59),
556 MTK_FUNCTION(0, "GPIO58"),
557 MTK_FUNCTION(1, "SCL1")
559 MTK_PIN(PINCTRL_PIN(59, "DISP_PWM"),
560 "AC20", "mt8127",
561 MTK_EINT_FUNCTION(0, 60),
562 MTK_FUNCTION(0, "GPIO59"),
563 MTK_FUNCTION(1, "DISP_PWM"),
564 MTK_FUNCTION(2, "PWM1"),
565 MTK_FUNCTION(7, "DBG_MON_A[18]")
567 MTK_PIN(PINCTRL_PIN(60, "WB_RSTB"),
568 "AD7", "mt8127",
569 MTK_EINT_FUNCTION(0, 61),
570 MTK_FUNCTION(0, "GPIO60"),
571 MTK_FUNCTION(1, "WB_RSTB"),
572 MTK_FUNCTION(7, "DBG_MON_A[19]")
574 MTK_PIN(PINCTRL_PIN(61, "F2W_DATA"),
575 "Y10", "mt8127",
576 MTK_EINT_FUNCTION(0, 62),
577 MTK_FUNCTION(0, "GPIO61"),
578 MTK_FUNCTION(1, "F2W_DATA"),
579 MTK_FUNCTION(7, "DBG_MON_A[20]")
581 MTK_PIN(PINCTRL_PIN(62, "F2W_CLK"),
582 "W10", "mt8127",
583 MTK_EINT_FUNCTION(0, 63),
584 MTK_FUNCTION(0, "GPIO62"),
585 MTK_FUNCTION(1, "F2W_CK"),
586 MTK_FUNCTION(7, "DBG_MON_A[21]")
588 MTK_PIN(PINCTRL_PIN(63, "WB_SCLK"),
589 "AB7", "mt8127",
590 MTK_EINT_FUNCTION(0, 64),
591 MTK_FUNCTION(0, "GPIO63"),
592 MTK_FUNCTION(1, "WB_SCLK"),
593 MTK_FUNCTION(7, "DBG_MON_A[22]")
595 MTK_PIN(PINCTRL_PIN(64, "WB_SDATA"),
596 "AA7", "mt8127",
597 MTK_EINT_FUNCTION(0, 65),
598 MTK_FUNCTION(0, "GPIO64"),
599 MTK_FUNCTION(1, "WB_SDATA"),
600 MTK_FUNCTION(7, "DBG_MON_A[23]")
602 MTK_PIN(PINCTRL_PIN(65, "WB_SEN"),
603 "Y7", "mt8127",
604 MTK_EINT_FUNCTION(0, 66),
605 MTK_FUNCTION(0, "GPIO65"),
606 MTK_FUNCTION(1, "WB_SEN"),
607 MTK_FUNCTION(7, "DBG_MON_A[24]")
609 MTK_PIN(PINCTRL_PIN(66, "WB_CRTL0"),
610 "AA1", "mt8127",
611 MTK_EINT_FUNCTION(0, 67),
612 MTK_FUNCTION(0, "GPIO66"),
613 MTK_FUNCTION(1, "WB_CRTL0"),
614 MTK_FUNCTION(2, "DFD_NTRST_XI"),
615 MTK_FUNCTION(7, "DBG_MON_A[25]")
617 MTK_PIN(PINCTRL_PIN(67, "WB_CRTL1"),
618 "AA2", "mt8127",
619 MTK_EINT_FUNCTION(0, 68),
620 MTK_FUNCTION(0, "GPIO67"),
621 MTK_FUNCTION(1, "WB_CRTL1"),
622 MTK_FUNCTION(2, "DFD_TMS_XI"),
623 MTK_FUNCTION(7, "DBG_MON_A[26]")
625 MTK_PIN(PINCTRL_PIN(68, "WB_CRTL2"),
626 "Y1", "mt8127",
627 MTK_EINT_FUNCTION(0, 69),
628 MTK_FUNCTION(0, "GPIO68"),
629 MTK_FUNCTION(1, "WB_CRTL2"),
630 MTK_FUNCTION(2, "DFD_TCK_XI"),
631 MTK_FUNCTION(7, "DBG_MON_A[27]")
633 MTK_PIN(PINCTRL_PIN(69, "WB_CRTL3"),
634 "Y2", "mt8127",
635 MTK_EINT_FUNCTION(0, 70),
636 MTK_FUNCTION(0, "GPIO69"),
637 MTK_FUNCTION(1, "WB_CRTL3"),
638 MTK_FUNCTION(2, "DFD_TDI_XI"),
639 MTK_FUNCTION(7, "DBG_MON_A[28]")
641 MTK_PIN(PINCTRL_PIN(70, "WB_CRTL4"),
642 "Y3", "mt8127",
643 MTK_EINT_FUNCTION(0, 71),
644 MTK_FUNCTION(0, "GPIO70"),
645 MTK_FUNCTION(1, "WB_CRTL4"),
646 MTK_FUNCTION(2, "DFD_TDO"),
647 MTK_FUNCTION(7, "DBG_MON_A[29]")
649 MTK_PIN(PINCTRL_PIN(71, "WB_CRTL5"),
650 "Y4", "mt8127",
651 MTK_EINT_FUNCTION(0, 72),
652 MTK_FUNCTION(0, "GPIO71"),
653 MTK_FUNCTION(1, "WB_CRTL5"),
654 MTK_FUNCTION(7, "DBG_MON_A[30]")
656 MTK_PIN(PINCTRL_PIN(72, "I2S_DATA_IN"),
657 "K21", "mt8127",
658 MTK_EINT_FUNCTION(0, 73),
659 MTK_FUNCTION(0, "GPIO72"),
660 MTK_FUNCTION(1, "I2SIN1_DATA_IN"),
661 MTK_FUNCTION(2, "PCM_RX"),
662 MTK_FUNCTION(3, "I2SOUT_DATA_OUT"),
663 MTK_FUNCTION(4, "DAC_DAT_OUT"),
664 MTK_FUNCTION(5, "PWM0"),
665 MTK_FUNCTION(6, "ADC_CK"),
666 MTK_FUNCTION(7, "DBG_MON_B[19]")
668 MTK_PIN(PINCTRL_PIN(73, "I2S_LRCK"),
669 "L21", "mt8127",
670 MTK_EINT_FUNCTION(0, 74),
671 MTK_FUNCTION(0, "GPIO73"),
672 MTK_FUNCTION(1, "I2SIN1_LRCK"),
673 MTK_FUNCTION(2, "PCM_SYNC"),
674 MTK_FUNCTION(3, "I2SOUT_LRCK"),
675 MTK_FUNCTION(4, "DAC_WS"),
676 MTK_FUNCTION(5, "PWM3"),
677 MTK_FUNCTION(6, "ADC_DAT_IN"),
678 MTK_FUNCTION(7, "DBG_MON_B[20]")
680 MTK_PIN(PINCTRL_PIN(74, "I2S_BCK"),
681 "L20", "mt8127",
682 MTK_EINT_FUNCTION(0, 75),
683 MTK_FUNCTION(0, "GPIO74"),
684 MTK_FUNCTION(1, "I2SIN1_BCK2"),
685 MTK_FUNCTION(2, "PCM_CLK1"),
686 MTK_FUNCTION(3, "I2SOUT_BCK"),
687 MTK_FUNCTION(4, "DAC_CK"),
688 MTK_FUNCTION(5, "PWM4"),
689 MTK_FUNCTION(6, "ADC_WS"),
690 MTK_FUNCTION(7, "DBG_MON_B[21]")
692 MTK_PIN(PINCTRL_PIN(75, "SDA0"),
693 "W3", "mt8127",
694 MTK_EINT_FUNCTION(0, 76),
695 MTK_FUNCTION(0, "GPIO75"),
696 MTK_FUNCTION(1, "SDA0")
698 MTK_PIN(PINCTRL_PIN(76, "SCL0"),
699 "W4", "mt8127",
700 MTK_EINT_FUNCTION(0, 77),
701 MTK_FUNCTION(0, "GPIO76"),
702 MTK_FUNCTION(1, "SCL0")
704 MTK_PIN(PINCTRL_PIN(77, "SDA2"),
705 "K19", "mt8127",
706 MTK_EINT_FUNCTION(0, 78),
707 MTK_FUNCTION(0, "GPIO77"),
708 MTK_FUNCTION(1, "SDA2"),
709 MTK_FUNCTION(2, "PWM1")
711 MTK_PIN(PINCTRL_PIN(78, "SCL2"),
712 "K20", "mt8127",
713 MTK_EINT_FUNCTION(0, 79),
714 MTK_FUNCTION(0, "GPIO78"),
715 MTK_FUNCTION(1, "SCL2"),
716 MTK_FUNCTION(2, "PWM2")
718 MTK_PIN(PINCTRL_PIN(79, "URXD0"),
719 "K18", "mt8127",
720 MTK_EINT_FUNCTION(0, 80),
721 MTK_FUNCTION(0, "GPIO79"),
722 MTK_FUNCTION(1, "URXD0"),
723 MTK_FUNCTION(2, "UTXD0")
725 MTK_PIN(PINCTRL_PIN(80, "UTXD0"),
726 "K17", "mt8127",
727 MTK_EINT_FUNCTION(0, 81),
728 MTK_FUNCTION(0, "GPIO80"),
729 MTK_FUNCTION(1, "UTXD0"),
730 MTK_FUNCTION(2, "URXD0")
732 MTK_PIN(PINCTRL_PIN(81, "URXD1"),
733 "L17", "mt8127",
734 MTK_EINT_FUNCTION(0, 82),
735 MTK_FUNCTION(0, "GPIO81"),
736 MTK_FUNCTION(1, "URXD1"),
737 MTK_FUNCTION(2, "UTXD1")
739 MTK_PIN(PINCTRL_PIN(82, "UTXD1"),
740 "L18", "mt8127",
741 MTK_EINT_FUNCTION(0, 83),
742 MTK_FUNCTION(0, "GPIO82"),
743 MTK_FUNCTION(1, "UTXD1"),
744 MTK_FUNCTION(2, "URXD1")
746 MTK_PIN(PINCTRL_PIN(83, "LCM_RST"),
747 "W5", "mt8127",
748 MTK_EINT_FUNCTION(0, 84),
749 MTK_FUNCTION(0, "GPIO83"),
750 MTK_FUNCTION(1, "LCM_RST"),
751 MTK_FUNCTION(2, "VDAC_CK_XI"),
752 MTK_FUNCTION(7, "DBG_MON_A[31]")
754 MTK_PIN(PINCTRL_PIN(84, "DSI_TE"),
755 "W6", "mt8127",
756 MTK_EINT_FUNCTION(0, 85),
757 MTK_FUNCTION(0, "GPIO84"),
758 MTK_FUNCTION(1, "DSI_TE"),
759 MTK_FUNCTION(7, "DBG_MON_A[32]")
761 MTK_PIN(PINCTRL_PIN(85, "MSDC2_CMD"),
762 "U7", "mt8127",
763 MTK_EINT_FUNCTION(0, 86),
764 MTK_FUNCTION(0, "GPIO85"),
765 MTK_FUNCTION(1, "MSDC2_CMD"),
766 MTK_FUNCTION(2, "ANT_SEL0"),
767 MTK_FUNCTION(3, "SDA1"),
768 MTK_FUNCTION(6, "I2SOUT_BCK"),
769 MTK_FUNCTION(7, "DBG_MON_B[22]")
771 MTK_PIN(PINCTRL_PIN(86, "MSDC2_CLK"),
772 "T8", "mt8127",
773 MTK_EINT_FUNCTION(0, 87),
774 MTK_FUNCTION(0, "GPIO86"),
775 MTK_FUNCTION(1, "MSDC2_CLK"),
776 MTK_FUNCTION(2, "ANT_SEL1"),
777 MTK_FUNCTION(3, "SCL1"),
778 MTK_FUNCTION(6, "I2SOUT_LRCK"),
779 MTK_FUNCTION(7, "DBG_MON_B[23]")
781 MTK_PIN(PINCTRL_PIN(87, "MSDC2_DAT0"),
782 "V3", "mt8127",
783 MTK_EINT_FUNCTION(0, 88),
784 MTK_FUNCTION(0, "GPIO87"),
785 MTK_FUNCTION(1, "MSDC2_DAT0"),
786 MTK_FUNCTION(2, "ANT_SEL2"),
787 MTK_FUNCTION(5, "UTXD0"),
788 MTK_FUNCTION(6, "I2SOUT_DATA_OUT"),
789 MTK_FUNCTION(7, "DBG_MON_B[24]")
791 MTK_PIN(PINCTRL_PIN(88, "MSDC2_DAT1"),
792 "V4", "mt8127",
793 MTK_EINT_FUNCTION(0, 89),
794 MTK_FUNCTION(0, "GPIO88"),
795 MTK_FUNCTION(1, "MSDC2_DAT1"),
796 MTK_FUNCTION(2, "ANT_SEL3"),
797 MTK_FUNCTION(3, "PWM0"),
798 MTK_FUNCTION(5, "URXD0"),
799 MTK_FUNCTION(6, "PWM1"),
800 MTK_FUNCTION(7, "DBG_MON_B[25]")
802 MTK_PIN(PINCTRL_PIN(89, "MSDC2_DAT2"),
803 "U5", "mt8127",
804 MTK_EINT_FUNCTION(0, 90),
805 MTK_FUNCTION(0, "GPIO89"),
806 MTK_FUNCTION(1, "MSDC2_DAT2"),
807 MTK_FUNCTION(2, "ANT_SEL4"),
808 MTK_FUNCTION(3, "SDA2"),
809 MTK_FUNCTION(5, "UTXD1"),
810 MTK_FUNCTION(6, "PWM2"),
811 MTK_FUNCTION(7, "DBG_MON_B[26]")
813 MTK_PIN(PINCTRL_PIN(90, "MSDC2_DAT3"),
814 "U6", "mt8127",
815 MTK_EINT_FUNCTION(0, 91),
816 MTK_FUNCTION(0, "GPIO90"),
817 MTK_FUNCTION(1, "MSDC2_DAT3"),
818 MTK_FUNCTION(2, "ANT_SEL5"),
819 MTK_FUNCTION(3, "SCL2"),
820 MTK_FUNCTION(4, "EXT_FRAME_SYNC"),
821 MTK_FUNCTION(5, "URXD1"),
822 MTK_FUNCTION(6, "PWM3"),
823 MTK_FUNCTION(7, "DBG_MON_B[27]")
825 MTK_PIN(PINCTRL_PIN(91, "TDN3"),
826 "U2", "mt8127",
827 MTK_EINT_FUNCTION(0, 92),
828 MTK_FUNCTION(0, "GPI91"),
829 MTK_FUNCTION(1, "TDN3")
831 MTK_PIN(PINCTRL_PIN(92, "TDP3"),
832 "U1", "mt8127",
833 MTK_EINT_FUNCTION(0, 93),
834 MTK_FUNCTION(0, "GPI92"),
835 MTK_FUNCTION(1, "TDP3")
837 MTK_PIN(PINCTRL_PIN(93, "TDN2"),
838 "T2", "mt8127",
839 MTK_EINT_FUNCTION(0, 94),
840 MTK_FUNCTION(0, "GPI93"),
841 MTK_FUNCTION(1, "TDN2")
843 MTK_PIN(PINCTRL_PIN(94, "TDP2"),
844 "T1", "mt8127",
845 MTK_EINT_FUNCTION(0, 95),
846 MTK_FUNCTION(0, "GPI94"),
847 MTK_FUNCTION(1, "TDP2")
849 MTK_PIN(PINCTRL_PIN(95, "TCN"),
850 "R5", "mt8127",
851 MTK_EINT_FUNCTION(0, 96),
852 MTK_FUNCTION(0, "GPI95"),
853 MTK_FUNCTION(1, "TCN")
855 MTK_PIN(PINCTRL_PIN(96, "TCP"),
856 "R4", "mt8127",
857 MTK_EINT_FUNCTION(0, 97),
858 MTK_FUNCTION(0, "GPI96"),
859 MTK_FUNCTION(1, "TCP")
861 MTK_PIN(PINCTRL_PIN(97, "TDN1"),
862 "R3", "mt8127",
863 MTK_EINT_FUNCTION(0, 98),
864 MTK_FUNCTION(0, "GPI97"),
865 MTK_FUNCTION(1, "TDN1")
867 MTK_PIN(PINCTRL_PIN(98, "TDP1"),
868 "R2", "mt8127",
869 MTK_EINT_FUNCTION(0, 99),
870 MTK_FUNCTION(0, "GPI98"),
871 MTK_FUNCTION(1, "TDP1")
873 MTK_PIN(PINCTRL_PIN(99, "TDN0"),
874 "P3", "mt8127",
875 MTK_EINT_FUNCTION(0, 100),
876 MTK_FUNCTION(0, "GPI99"),
877 MTK_FUNCTION(1, "TDN0")
879 MTK_PIN(PINCTRL_PIN(100, "TDP0"),
880 "P2", "mt8127",
881 MTK_EINT_FUNCTION(0, 101),
882 MTK_FUNCTION(0, "GPI100"),
883 MTK_FUNCTION(1, "TDP0")
885 MTK_PIN(PINCTRL_PIN(101, "RDN0"),
886 "K1", "mt8127",
887 MTK_EINT_FUNCTION(0, 102),
888 MTK_FUNCTION(0, "GPI101"),
889 MTK_FUNCTION(1, "RDN0")
891 MTK_PIN(PINCTRL_PIN(102, "RDP0"),
892 "K2", "mt8127",
893 MTK_EINT_FUNCTION(0, 103),
894 MTK_FUNCTION(0, "GPI102"),
895 MTK_FUNCTION(1, "RDP0")
897 MTK_PIN(PINCTRL_PIN(103, "RDN1"),
898 "L2", "mt8127",
899 MTK_EINT_FUNCTION(0, 104),
900 MTK_FUNCTION(0, "GPI103"),
901 MTK_FUNCTION(1, "RDN1")
903 MTK_PIN(PINCTRL_PIN(104, "RDP1"),
904 "L3", "mt8127",
905 MTK_EINT_FUNCTION(0, 105),
906 MTK_FUNCTION(0, "GPI104"),
907 MTK_FUNCTION(1, "RDP1")
909 MTK_PIN(PINCTRL_PIN(105, "RCN"),
910 "M4", "mt8127",
911 MTK_EINT_FUNCTION(0, 106),
912 MTK_FUNCTION(0, "GPI105"),
913 MTK_FUNCTION(1, "RCN")
915 MTK_PIN(PINCTRL_PIN(106, "RCP"),
916 "M5", "mt8127",
917 MTK_EINT_FUNCTION(0, 107),
918 MTK_FUNCTION(0, "GPI106"),
919 MTK_FUNCTION(1, "RCP")
921 MTK_PIN(PINCTRL_PIN(107, "RDN2"),
922 "M2", "mt8127",
923 MTK_EINT_FUNCTION(0, 108),
924 MTK_FUNCTION(0, "GPI107"),
925 MTK_FUNCTION(1, "RDN2"),
926 MTK_FUNCTION(2, "CMDAT8")
928 MTK_PIN(PINCTRL_PIN(108, "RDP2"),
929 "M3", "mt8127",
930 MTK_EINT_FUNCTION(0, 109),
931 MTK_FUNCTION(0, "GPI108"),
932 MTK_FUNCTION(1, "RDP2"),
933 MTK_FUNCTION(2, "CMDAT9")
935 MTK_PIN(PINCTRL_PIN(109, "RDN3"),
936 "N2", "mt8127",
937 MTK_EINT_FUNCTION(0, 110),
938 MTK_FUNCTION(0, "GPI109"),
939 MTK_FUNCTION(1, "RDN3"),
940 MTK_FUNCTION(2, "CMDAT4")
942 MTK_PIN(PINCTRL_PIN(110, "RDP3"),
943 "N3", "mt8127",
944 MTK_EINT_FUNCTION(0, 111),
945 MTK_FUNCTION(0, "GPI110"),
946 MTK_FUNCTION(1, "RDP3"),
947 MTK_FUNCTION(2, "CMDAT5")
949 MTK_PIN(PINCTRL_PIN(111, "RCN_A"),
950 "J5", "mt8127",
951 MTK_EINT_FUNCTION(0, 112),
952 MTK_FUNCTION(0, "GPI111"),
953 MTK_FUNCTION(1, "RCN_A"),
954 MTK_FUNCTION(2, "CMDAT6")
956 MTK_PIN(PINCTRL_PIN(112, "RCP_A"),
957 "J4", "mt8127",
958 MTK_EINT_FUNCTION(0, 113),
959 MTK_FUNCTION(0, "GPI112"),
960 MTK_FUNCTION(1, "RCP_A"),
961 MTK_FUNCTION(2, "CMDAT7")
963 MTK_PIN(PINCTRL_PIN(113, "RDN1_A"),
964 "J2", "mt8127",
965 MTK_EINT_FUNCTION(0, 114),
966 MTK_FUNCTION(0, "GPI113"),
967 MTK_FUNCTION(1, "RDN1_A"),
968 MTK_FUNCTION(2, "CMDAT2"),
969 MTK_FUNCTION(3, "CMCSD2")
971 MTK_PIN(PINCTRL_PIN(114, "RDP1_A"),
972 "J3", "mt8127",
973 MTK_EINT_FUNCTION(0, 115),
974 MTK_FUNCTION(0, "GPI114"),
975 MTK_FUNCTION(1, "RDP1_A"),
976 MTK_FUNCTION(2, "CMDAT3"),
977 MTK_FUNCTION(3, "CMCSD3")
979 MTK_PIN(PINCTRL_PIN(115, "RDN0_A"),
980 "H2", "mt8127",
981 MTK_EINT_FUNCTION(0, 116),
982 MTK_FUNCTION(0, "GPI115"),
983 MTK_FUNCTION(1, "RDN0_A"),
984 MTK_FUNCTION(2, "CMHSYNC")
986 MTK_PIN(PINCTRL_PIN(116, "RDP0_A"),
987 "H3", "mt8127",
988 MTK_EINT_FUNCTION(0, 117),
989 MTK_FUNCTION(0, "GPI116"),
990 MTK_FUNCTION(1, "RDP0_A"),
991 MTK_FUNCTION(2, "CMVSYNC")
993 MTK_PIN(PINCTRL_PIN(117, "CMDAT0"),
994 "G5", "mt8127",
995 MTK_EINT_FUNCTION(0, 118),
996 MTK_FUNCTION(0, "GPIO117"),
997 MTK_FUNCTION(1, "CMDAT0"),
998 MTK_FUNCTION(2, "CMCSD0"),
999 MTK_FUNCTION(3, "ANT_SEL2"),
1000 MTK_FUNCTION(7, "DBG_MON_B[28]")
1002 MTK_PIN(PINCTRL_PIN(118, "CMDAT1"),
1003 "G4", "mt8127",
1004 MTK_EINT_FUNCTION(0, 119),
1005 MTK_FUNCTION(0, "GPIO118"),
1006 MTK_FUNCTION(1, "CMDAT1"),
1007 MTK_FUNCTION(2, "CMCSD1"),
1008 MTK_FUNCTION(3, "ANT_SEL3"),
1009 MTK_FUNCTION(7, "DBG_MON_B[29]")
1011 MTK_PIN(PINCTRL_PIN(119, "CMMCLK"),
1012 "F3", "mt8127",
1013 MTK_EINT_FUNCTION(0, 120),
1014 MTK_FUNCTION(0, "GPIO119"),
1015 MTK_FUNCTION(1, "CMMCLK"),
1016 MTK_FUNCTION(3, "ANT_SEL4"),
1017 MTK_FUNCTION(7, "DBG_MON_B[30]")
1019 MTK_PIN(PINCTRL_PIN(120, "CMPCLK"),
1020 "G6", "mt8127",
1021 MTK_EINT_FUNCTION(0, 121),
1022 MTK_FUNCTION(0, "GPIO120"),
1023 MTK_FUNCTION(1, "CMPCLK"),
1024 MTK_FUNCTION(2, "CMCSK"),
1025 MTK_FUNCTION(3, "ANT_SEL5"),
1026 MTK_FUNCTION(7, "DBG_MON_B[31]")
1028 MTK_PIN(PINCTRL_PIN(121, "MSDC1_CMD"),
1029 "E3", "mt8127",
1030 MTK_EINT_FUNCTION(0, 122),
1031 MTK_FUNCTION(0, "GPIO121"),
1032 MTK_FUNCTION(1, "MSDC1_CMD")
1034 MTK_PIN(PINCTRL_PIN(122, "MSDC1_CLK"),
1035 "D1", "mt8127",
1036 MTK_EINT_FUNCTION(0, 123),
1037 MTK_FUNCTION(0, "GPIO122"),
1038 MTK_FUNCTION(1, "MSDC1_CLK")
1040 MTK_PIN(PINCTRL_PIN(123, "MSDC1_DAT0"),
1041 "D2", "mt8127",
1042 MTK_EINT_FUNCTION(0, 124),
1043 MTK_FUNCTION(0, "GPIO123"),
1044 MTK_FUNCTION(1, "MSDC1_DAT0")
1046 MTK_PIN(PINCTRL_PIN(124, "MSDC1_DAT1"),
1047 "D3", "mt8127",
1048 MTK_EINT_FUNCTION(0, 125),
1049 MTK_FUNCTION(0, "GPIO124"),
1050 MTK_FUNCTION(1, "MSDC1_DAT1")
1052 MTK_PIN(PINCTRL_PIN(125, "MSDC1_DAT2"),
1053 "F2", "mt8127",
1054 MTK_EINT_FUNCTION(0, 126),
1055 MTK_FUNCTION(0, "GPIO125"),
1056 MTK_FUNCTION(1, "MSDC1_DAT2")
1058 MTK_PIN(PINCTRL_PIN(126, "MSDC1_DAT3"),
1059 "E2", "mt8127",
1060 MTK_EINT_FUNCTION(0, 127),
1061 MTK_FUNCTION(0, "GPIO126"),
1062 MTK_FUNCTION(1, "MSDC1_DAT3")
1064 MTK_PIN(PINCTRL_PIN(127, "MSDC0_DAT7"),
1065 "C23", "mt8127",
1066 MTK_EINT_FUNCTION(0, 128),
1067 MTK_FUNCTION(0, "GPIO127"),
1068 MTK_FUNCTION(1, "MSDC0_DAT7"),
1069 MTK_FUNCTION(4, "NLD7")
1071 MTK_PIN(PINCTRL_PIN(128, "MSDC0_DAT6"),
1072 "C24", "mt8127",
1073 MTK_EINT_FUNCTION(0, 129),
1074 MTK_FUNCTION(0, "GPIO128"),
1075 MTK_FUNCTION(1, "MSDC0_DAT6"),
1076 MTK_FUNCTION(4, "NLD6")
1078 MTK_PIN(PINCTRL_PIN(129, "MSDC0_DAT5"),
1079 "D22", "mt8127",
1080 MTK_EINT_FUNCTION(0, 130),
1081 MTK_FUNCTION(0, "GPIO129"),
1082 MTK_FUNCTION(1, "MSDC0_DAT5"),
1083 MTK_FUNCTION(4, "NLD4")
1085 MTK_PIN(PINCTRL_PIN(130, "MSDC0_DAT4"),
1086 "D24", "mt8127",
1087 MTK_EINT_FUNCTION(0, 131),
1088 MTK_FUNCTION(0, "GPIO130"),
1089 MTK_FUNCTION(1, "MSDC0_DAT4"),
1090 MTK_FUNCTION(4, "NLD3")
1092 MTK_PIN(PINCTRL_PIN(131, "MSDC0_RSTB"),
1093 "F24", "mt8127",
1094 MTK_EINT_FUNCTION(0, 132),
1095 MTK_FUNCTION(0, "GPIO131"),
1096 MTK_FUNCTION(1, "MSDC0_RSTB"),
1097 MTK_FUNCTION(4, "NLD0")
1099 MTK_PIN(PINCTRL_PIN(132, "MSDC0_CMD"),
1100 "G20", "mt8127",
1101 MTK_EINT_FUNCTION(0, 133),
1102 MTK_FUNCTION(0, "GPIO132"),
1103 MTK_FUNCTION(1, "MSDC0_CMD"),
1104 MTK_FUNCTION(4, "NALE")
1106 MTK_PIN(PINCTRL_PIN(133, "MSDC0_CLK"),
1107 "G21", "mt8127",
1108 MTK_EINT_FUNCTION(0, 134),
1109 MTK_FUNCTION(0, "GPIO133"),
1110 MTK_FUNCTION(1, "MSDC0_CLK"),
1111 MTK_FUNCTION(4, "NWEB")
1113 MTK_PIN(PINCTRL_PIN(134, "MSDC0_DAT3"),
1114 "D23", "mt8127",
1115 MTK_EINT_FUNCTION(0, 135),
1116 MTK_FUNCTION(0, "GPIO134"),
1117 MTK_FUNCTION(1, "MSDC0_DAT3"),
1118 MTK_FUNCTION(4, "NLD1")
1120 MTK_PIN(PINCTRL_PIN(135, "MSDC0_DAT2"),
1121 "E22", "mt8127",
1122 MTK_EINT_FUNCTION(0, 136),
1123 MTK_FUNCTION(0, "GPIO135"),
1124 MTK_FUNCTION(1, "MSDC0_DAT2"),
1125 MTK_FUNCTION(4, "NLD5")
1127 MTK_PIN(PINCTRL_PIN(136, "MSDC0_DAT1"),
1128 "E23", "mt8127",
1129 MTK_EINT_FUNCTION(0, 137),
1130 MTK_FUNCTION(0, "GPIO136"),
1131 MTK_FUNCTION(1, "MSDC0_DAT1"),
1132 MTK_FUNCTION(4, "NLD8")
1134 MTK_PIN(PINCTRL_PIN(137, "MSDC0_DAT0"),
1135 "F22", "mt8127",
1136 MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1137 MTK_FUNCTION(0, "GPIO137"),
1138 MTK_FUNCTION(1, "MSDC0_DAT0"),
1139 MTK_FUNCTION(4, "WATCHDOG"),
1140 MTK_FUNCTION(5, "NLD2")
1142 MTK_PIN(PINCTRL_PIN(138, "CEC"),
1143 "AE21", "mt8127",
1144 MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1145 MTK_FUNCTION(0, "GPIO138"),
1146 MTK_FUNCTION(1, "CEC")
1148 MTK_PIN(PINCTRL_PIN(139, "HTPLG"),
1149 "AD21", "mt8127",
1150 MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1151 MTK_FUNCTION(0, "GPIO139"),
1152 MTK_FUNCTION(1, "HTPLG")
1154 MTK_PIN(PINCTRL_PIN(140, "HDMISCK"),
1155 "AE22", "mt8127",
1156 MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1157 MTK_FUNCTION(0, "GPIO140"),
1158 MTK_FUNCTION(1, "HDMISCK")
1160 MTK_PIN(PINCTRL_PIN(141, "HDMISD"),
1161 "AD22", "mt8127",
1162 MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
1163 MTK_FUNCTION(0, "GPIO141"),
1164 MTK_FUNCTION(1, "HDMISD")
1166 MTK_PIN(PINCTRL_PIN(142, "EINT21"),
1167 "J23", "mt8127",
1168 MTK_EINT_FUNCTION(0, 21),
1169 MTK_FUNCTION(0, "GPIO142"),
1170 MTK_FUNCTION(1, "NRNB"),
1171 MTK_FUNCTION(2, "ANT_SEL0"),
1172 MTK_FUNCTION(7, "DBG_MON_B[32]")
1176 #endif /* __PINCTRL_MTK_MT8127_H */