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