1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2021 MediaTek Inc. 4 * 5 * Author: Guodong Liu <guodong.liu@mediatek.com> 6 * 7 */ 8 9 #ifndef __PINCTRL_MTK_MT8186_H 10 #define __PINCTRL_MTK_MT8186_H 11 12 #include "pinctrl-paris.h" 13 14 static const struct mtk_pin_desc mtk_pins_mt8186[] = { 15 MTK_PIN( 16 0, "GPIO0", 17 MTK_EINT_FUNCTION(0, 0), 18 DRV_GRP4, 19 MTK_FUNCTION(0, "GPIO0"), 20 MTK_FUNCTION(1, "I2S0_MCK"), 21 MTK_FUNCTION(2, "SPI0_CLK_B"), 22 MTK_FUNCTION(3, "I2S2_MCK"), 23 MTK_FUNCTION(4, "CMFLASH0"), 24 MTK_FUNCTION(5, "SCP_SPI0_CK"), 25 MTK_FUNCTION(6, "TP_GPIO0_AO"), 26 MTK_FUNCTION(7, "dbg_mon_a0") 27 ), 28 29 MTK_PIN( 30 1, "GPIO1", 31 MTK_EINT_FUNCTION(0, 1), 32 DRV_GRP4, 33 MTK_FUNCTION(0, "GPIO1"), 34 MTK_FUNCTION(1, "I2S0_BCK"), 35 MTK_FUNCTION(2, "SPI0_CSB_B"), 36 MTK_FUNCTION(3, "I2S2_BCK"), 37 MTK_FUNCTION(4, "CMFLASH1"), 38 MTK_FUNCTION(5, "SCP_SPI0_CS"), 39 MTK_FUNCTION(6, "TP_GPIO1_AO") 40 ), 41 42 MTK_PIN( 43 2, "GPIO2", 44 MTK_EINT_FUNCTION(0, 2), 45 DRV_GRP4, 46 MTK_FUNCTION(0, "GPIO2"), 47 MTK_FUNCTION(1, "I2S0_LRCK"), 48 MTK_FUNCTION(2, "SPI0_MO_B"), 49 MTK_FUNCTION(3, "I2S2_LRCK"), 50 MTK_FUNCTION(4, "CMFLASH2"), 51 MTK_FUNCTION(5, "SCP_SPI0_MO"), 52 MTK_FUNCTION(6, "TP_GPIO2_AO") 53 ), 54 55 MTK_PIN( 56 3, "GPIO3", 57 MTK_EINT_FUNCTION(0, 3), 58 DRV_GRP4, 59 MTK_FUNCTION(0, "GPIO3"), 60 MTK_FUNCTION(1, "I2S0_DI"), 61 MTK_FUNCTION(2, "SPI0_MI_B"), 62 MTK_FUNCTION(3, "I2S2_DI"), 63 MTK_FUNCTION(4, "SRCLKENAI1"), 64 MTK_FUNCTION(5, "SCP_SPI0_MI"), 65 MTK_FUNCTION(6, "TP_GPIO3_AO") 66 ), 67 68 MTK_PIN( 69 4, "GPIO4", 70 MTK_EINT_FUNCTION(0, 4), 71 DRV_GRP4, 72 MTK_FUNCTION(0, "GPIO4"), 73 MTK_FUNCTION(1, "I2S3_DO"), 74 MTK_FUNCTION(3, "I2S1_DO"), 75 MTK_FUNCTION(6, "TP_GPIO4_AO") 76 ), 77 78 MTK_PIN( 79 5, "GPIO5", 80 MTK_EINT_FUNCTION(0, 5), 81 DRV_GRP4, 82 MTK_FUNCTION(0, "GPIO5"), 83 MTK_FUNCTION(1, "EXT_FRAME_SYNC"), 84 MTK_FUNCTION(6, "TP_GPIO5_AO") 85 ), 86 87 MTK_PIN( 88 6, "GPIO6", 89 MTK_EINT_FUNCTION(0, 6), 90 DRV_GRP4, 91 MTK_FUNCTION(0, "GPIO6"), 92 MTK_FUNCTION(1, "I2S3_MCK"), 93 MTK_FUNCTION(2, "SPI1_CLK_B"), 94 MTK_FUNCTION(3, "I2S1_MCK"), 95 MTK_FUNCTION(4, "DPI_DATA22"), 96 MTK_FUNCTION(6, "TP_GPIO6_AO") 97 ), 98 99 MTK_PIN( 100 7, "GPIO7", 101 MTK_EINT_FUNCTION(0, 7), 102 DRV_GRP4, 103 MTK_FUNCTION(0, "GPIO7"), 104 MTK_FUNCTION(1, "I2S3_BCK"), 105 MTK_FUNCTION(2, "SPI1_CSB_B"), 106 MTK_FUNCTION(3, "I2S1_BCK"), 107 MTK_FUNCTION(4, "DPI_DATA23"), 108 MTK_FUNCTION(6, "TP_GPIO7_AO") 109 ), 110 111 MTK_PIN( 112 8, "GPIO8", 113 MTK_EINT_FUNCTION(0, 8), 114 DRV_GRP4, 115 MTK_FUNCTION(0, "GPIO8"), 116 MTK_FUNCTION(1, "I2S3_LRCK"), 117 MTK_FUNCTION(2, "SPI1_MO_B"), 118 MTK_FUNCTION(3, "I2S1_LRCK"), 119 MTK_FUNCTION(4, "CONN_UART0_RXD"), 120 MTK_FUNCTION(5, "SSPM_URXD_AO"), 121 MTK_FUNCTION(6, "ADSP_UART_RX"), 122 MTK_FUNCTION(7, "CONN_MCU_DBGACK_N") 123 ), 124 125 MTK_PIN( 126 9, "GPIO9", 127 MTK_EINT_FUNCTION(0, 9), 128 DRV_GRP4, 129 MTK_FUNCTION(0, "GPIO9"), 130 MTK_FUNCTION(1, "I2S3_DO"), 131 MTK_FUNCTION(2, "SPI1_MI_B"), 132 MTK_FUNCTION(3, "I2S1_DO"), 133 MTK_FUNCTION(4, "CONN_UART0_TXD"), 134 MTK_FUNCTION(5, "SSPM_UTXD_AO"), 135 MTK_FUNCTION(6, "ADSP_UART_TX"), 136 MTK_FUNCTION(7, "CONN_MCU_DBGI_N") 137 ), 138 139 MTK_PIN( 140 10, "GPIO10", 141 MTK_EINT_FUNCTION(0, 10), 142 DRV_GRP4, 143 MTK_FUNCTION(0, "GPIO10"), 144 MTK_FUNCTION(1, "I2S0_MCK"), 145 MTK_FUNCTION(2, "SPI4_CLK_A"), 146 MTK_FUNCTION(3, "I2S2_MCK"), 147 MTK_FUNCTION(4, "SPM_JTAG_TDI"), 148 MTK_FUNCTION(5, "SCP_JTAG_TDI"), 149 MTK_FUNCTION(6, "ADSP_JTAG_TDI"), 150 MTK_FUNCTION(7, "CONN_MCU_TDI") 151 ), 152 153 MTK_PIN( 154 11, "GPIO11", 155 MTK_EINT_FUNCTION(0, 11), 156 DRV_GRP4, 157 MTK_FUNCTION(0, "GPIO11"), 158 MTK_FUNCTION(1, "I2S0_BCK"), 159 MTK_FUNCTION(2, "SPI4_CSB_A"), 160 MTK_FUNCTION(3, "I2S2_BCK"), 161 MTK_FUNCTION(4, "SPM_JTAG_TRSTN"), 162 MTK_FUNCTION(5, "SCP_JTAG_TRSTN"), 163 MTK_FUNCTION(6, "ADSP_JTAG_TRSTN"), 164 MTK_FUNCTION(7, "CONN_MCU_TRST_B") 165 ), 166 167 MTK_PIN( 168 12, "GPIO12", 169 MTK_EINT_FUNCTION(0, 12), 170 DRV_GRP4, 171 MTK_FUNCTION(0, "GPIO12"), 172 MTK_FUNCTION(1, "I2S0_LRCK"), 173 MTK_FUNCTION(2, "SPI4_MO_A"), 174 MTK_FUNCTION(3, "I2S2_LRCK"), 175 MTK_FUNCTION(4, "SPM_JTAG_TCK"), 176 MTK_FUNCTION(5, "SCP_JTAG_TCK"), 177 MTK_FUNCTION(6, "ADSP_JTAG_TCK"), 178 MTK_FUNCTION(7, "CONN_MCU_TCK") 179 ), 180 181 MTK_PIN( 182 13, "GPIO13", 183 MTK_EINT_FUNCTION(0, 13), 184 DRV_GRP4, 185 MTK_FUNCTION(0, "GPIO13"), 186 MTK_FUNCTION(1, "I2S0_DI"), 187 MTK_FUNCTION(2, "SPI4_MI_A"), 188 MTK_FUNCTION(3, "I2S2_DI"), 189 MTK_FUNCTION(4, "SPM_JTAG_TDO"), 190 MTK_FUNCTION(5, "SCP_JTAG_TDO"), 191 MTK_FUNCTION(6, "ADSP_JTAG_TDO"), 192 MTK_FUNCTION(7, "CONN_MCU_TDO") 193 ), 194 195 MTK_PIN( 196 14, "GPIO14", 197 MTK_EINT_FUNCTION(0, 14), 198 DRV_GRP4, 199 MTK_FUNCTION(0, "GPIO14"), 200 MTK_FUNCTION(3, "CLKM0"), 201 MTK_FUNCTION(4, "SPM_JTAG_TMS"), 202 MTK_FUNCTION(5, "SCP_JTAG_TMS"), 203 MTK_FUNCTION(6, "ADSP_JTAG_TMS"), 204 MTK_FUNCTION(7, "CONN_MCU_TMS") 205 ), 206 207 MTK_PIN( 208 15, "GPIO15", 209 MTK_EINT_FUNCTION(0, 15), 210 DRV_GRP4, 211 MTK_FUNCTION(0, "GPIO15"), 212 MTK_FUNCTION(1, "EXT_FRAME_SYNC"), 213 MTK_FUNCTION(2, "SRCLKENAI1"), 214 MTK_FUNCTION(3, "CLKM1"), 215 MTK_FUNCTION(4, "PWM0") 216 ), 217 218 MTK_PIN( 219 16, "GPIO16", 220 MTK_EINT_FUNCTION(0, 16), 221 DRV_GRP4, 222 MTK_FUNCTION(0, "GPIO16"), 223 MTK_FUNCTION(1, "CONN_WIFI_TXD"), 224 MTK_FUNCTION(2, "SRCLKENAI0"), 225 MTK_FUNCTION(3, "CLKM2"), 226 MTK_FUNCTION(4, "PWM1") 227 ), 228 229 MTK_PIN( 230 17, "GPIO17", 231 MTK_EINT_FUNCTION(0, 17), 232 DRV_GRP4, 233 MTK_FUNCTION(0, "GPIO17"), 234 MTK_FUNCTION(3, "CLKM3"), 235 MTK_FUNCTION(4, "PWM2"), 236 MTK_FUNCTION(7, "dbg_mon_a32") 237 ), 238 239 MTK_PIN( 240 18, "GPIO18", 241 MTK_EINT_FUNCTION(0, 18), 242 DRV_GRP4, 243 MTK_FUNCTION(0, "GPIO18"), 244 MTK_FUNCTION(2, "CMVREF0"), 245 MTK_FUNCTION(6, "SPI2_CLK_B"), 246 MTK_FUNCTION(7, "dbg_mon_a26") 247 ), 248 249 MTK_PIN( 250 19, "GPIO19", 251 MTK_EINT_FUNCTION(0, 19), 252 DRV_GRP4, 253 MTK_FUNCTION(0, "GPIO19"), 254 MTK_FUNCTION(2, "CMVREF1"), 255 MTK_FUNCTION(5, "ANT_SEL3"), 256 MTK_FUNCTION(6, "SPI2_CSB_B"), 257 MTK_FUNCTION(7, "dbg_mon_a2") 258 ), 259 260 MTK_PIN( 261 20, "GPIO20", 262 MTK_EINT_FUNCTION(0, 20), 263 DRV_GRP4, 264 MTK_FUNCTION(0, "GPIO20"), 265 MTK_FUNCTION(2, "CMVREF2"), 266 MTK_FUNCTION(5, "ANT_SEL4"), 267 MTK_FUNCTION(6, "SPI2_MO_B"), 268 MTK_FUNCTION(7, "dbg_mon_a3") 269 ), 270 271 MTK_PIN( 272 21, "GPIO21", 273 MTK_EINT_FUNCTION(0, 21), 274 DRV_GRP4, 275 MTK_FUNCTION(0, "GPIO21"), 276 MTK_FUNCTION(1, "I2S0_MCK"), 277 MTK_FUNCTION(2, "I2S1_MCK"), 278 MTK_FUNCTION(3, "I2S3_MCK"), 279 MTK_FUNCTION(5, "ANT_SEL5"), 280 MTK_FUNCTION(6, "SPI2_MI_B"), 281 MTK_FUNCTION(7, "dbg_mon_a4") 282 ), 283 284 MTK_PIN( 285 22, "GPIO22", 286 MTK_EINT_FUNCTION(0, 22), 287 DRV_GRP4, 288 MTK_FUNCTION(0, "GPIO22"), 289 MTK_FUNCTION(1, "I2S0_BCK"), 290 MTK_FUNCTION(2, "I2S1_BCK"), 291 MTK_FUNCTION(3, "I2S3_BCK"), 292 MTK_FUNCTION(4, "TDM_RX_LRCK"), 293 MTK_FUNCTION(5, "ANT_SEL6"), 294 MTK_FUNCTION(7, "dbg_mon_a5") 295 ), 296 297 MTK_PIN( 298 23, "GPIO23", 299 MTK_EINT_FUNCTION(0, 23), 300 DRV_GRP4, 301 MTK_FUNCTION(0, "GPIO23"), 302 MTK_FUNCTION(1, "I2S0_LRCK"), 303 MTK_FUNCTION(2, "I2S1_LRCK"), 304 MTK_FUNCTION(3, "I2S3_LRCK"), 305 MTK_FUNCTION(4, "TDM_RX_BCK"), 306 MTK_FUNCTION(5, "ANT_SEL7"), 307 MTK_FUNCTION(7, "dbg_mon_a6") 308 ), 309 310 MTK_PIN( 311 24, "GPIO24", 312 MTK_EINT_FUNCTION(0, 24), 313 DRV_GRP4, 314 MTK_FUNCTION(0, "GPIO24"), 315 MTK_FUNCTION(1, "I2S0_DI"), 316 MTK_FUNCTION(2, "I2S1_DO"), 317 MTK_FUNCTION(3, "I2S3_DO"), 318 MTK_FUNCTION(4, "TDM_RX_MCK"), 319 MTK_FUNCTION(7, "dbg_mon_a7") 320 ), 321 322 MTK_PIN( 323 25, "GPIO25", 324 MTK_EINT_FUNCTION(0, 25), 325 DRV_GRP4, 326 MTK_FUNCTION(0, "GPIO25"), 327 MTK_FUNCTION(1, "I2S2_MCK"), 328 MTK_FUNCTION(2, "PCM_CLK"), 329 MTK_FUNCTION(3, "SPI4_CLK_B"), 330 MTK_FUNCTION(4, "TDM_RX_DATA0"), 331 MTK_FUNCTION(7, "dbg_mon_a8") 332 ), 333 334 MTK_PIN( 335 26, "GPIO26", 336 MTK_EINT_FUNCTION(0, 26), 337 DRV_GRP4, 338 MTK_FUNCTION(0, "GPIO26"), 339 MTK_FUNCTION(1, "I2S2_BCK"), 340 MTK_FUNCTION(2, "PCM_SYNC"), 341 MTK_FUNCTION(3, "SPI4_CSB_B"), 342 MTK_FUNCTION(4, "TDM_RX_DATA1"), 343 MTK_FUNCTION(7, "dbg_mon_a9") 344 ), 345 346 MTK_PIN( 347 27, "GPIO27", 348 MTK_EINT_FUNCTION(0, 27), 349 DRV_GRP4, 350 MTK_FUNCTION(0, "GPIO27"), 351 MTK_FUNCTION(1, "I2S2_LRCK"), 352 MTK_FUNCTION(2, "PCM_DI"), 353 MTK_FUNCTION(3, "SPI4_MO_B"), 354 MTK_FUNCTION(4, "TDM_RX_DATA2"), 355 MTK_FUNCTION(7, "dbg_mon_a10") 356 ), 357 358 MTK_PIN( 359 28, "GPIO28", 360 MTK_EINT_FUNCTION(0, 28), 361 DRV_GRP4, 362 MTK_FUNCTION(0, "GPIO28"), 363 MTK_FUNCTION(1, "I2S2_DI"), 364 MTK_FUNCTION(2, "PCM_DO"), 365 MTK_FUNCTION(3, "SPI4_MI_B"), 366 MTK_FUNCTION(4, "TDM_RX_DATA3") 367 ), 368 369 MTK_PIN( 370 29, "GPIO29", 371 MTK_EINT_FUNCTION(0, 29), 372 DRV_GRP4, 373 MTK_FUNCTION(0, "GPIO29"), 374 MTK_FUNCTION(1, "ANT_SEL0"), 375 MTK_FUNCTION(2, "GPS_L1_ELNA_EN") 376 ), 377 378 MTK_PIN( 379 30, "GPIO30", 380 MTK_EINT_FUNCTION(0, 30), 381 DRV_GRP4, 382 MTK_FUNCTION(0, "GPIO30"), 383 MTK_FUNCTION(1, "ANT_SEL1") 384 ), 385 386 MTK_PIN( 387 31, "GPIO31", 388 MTK_EINT_FUNCTION(0, 31), 389 DRV_GRP4, 390 MTK_FUNCTION(0, "GPIO31"), 391 MTK_FUNCTION(1, "ANT_SEL2"), 392 MTK_FUNCTION(2, "EXT_FRAME_SYNC"), 393 MTK_FUNCTION(3, "SRCLKENAI1") 394 ), 395 396 MTK_PIN( 397 32, "GPIO32", 398 MTK_EINT_FUNCTION(0, 32), 399 DRV_GRP4, 400 MTK_FUNCTION(0, "GPIO32"), 401 MTK_FUNCTION(1, "URXD0"), 402 MTK_FUNCTION(2, "UTXD0"), 403 MTK_FUNCTION(3, "ADSP_UART_RX"), 404 MTK_FUNCTION(4, "TP_URXD1_AO") 405 ), 406 407 MTK_PIN( 408 33, "GPIO33", 409 MTK_EINT_FUNCTION(0, 33), 410 DRV_GRP4, 411 MTK_FUNCTION(0, "GPIO33"), 412 MTK_FUNCTION(1, "UTXD0"), 413 MTK_FUNCTION(2, "URXD0"), 414 MTK_FUNCTION(3, "ADSP_UART_TX"), 415 MTK_FUNCTION(4, "TP_UTXD1_AO") 416 ), 417 418 MTK_PIN( 419 34, "GPIO34", 420 MTK_EINT_FUNCTION(0, 34), 421 DRV_GRP4, 422 MTK_FUNCTION(0, "GPIO34"), 423 MTK_FUNCTION(1, "URXD1"), 424 MTK_FUNCTION(2, "TP_URXD2_AO"), 425 MTK_FUNCTION(3, "SSPM_URXD_AO"), 426 MTK_FUNCTION(4, "ADSP_UART_RX"), 427 MTK_FUNCTION(5, "CONN_UART0_RXD") 428 ), 429 430 MTK_PIN( 431 35, "GPIO35", 432 MTK_EINT_FUNCTION(0, 35), 433 DRV_GRP4, 434 MTK_FUNCTION(0, "GPIO35"), 435 MTK_FUNCTION(1, "UTXD1"), 436 MTK_FUNCTION(2, "TP_UTXD2_AO"), 437 MTK_FUNCTION(3, "SSPM_UTXD_AO"), 438 MTK_FUNCTION(4, "ADSP_UART_TX"), 439 MTK_FUNCTION(5, "CONN_UART0_TXD"), 440 MTK_FUNCTION(6, "CONN_WIFI_TXD") 441 ), 442 443 MTK_PIN( 444 36, "GPIO36", 445 MTK_EINT_FUNCTION(0, 36), 446 DRV_GRP4, 447 MTK_FUNCTION(0, "GPIO36"), 448 MTK_FUNCTION(1, "SPI0_CLK_A"), 449 MTK_FUNCTION(2, "CLKM0"), 450 MTK_FUNCTION(4, "SCP_SPI0_CK"), 451 MTK_FUNCTION(5, "SPINOR_CK"), 452 MTK_FUNCTION(7, "dbg_mon_a11") 453 ), 454 455 MTK_PIN( 456 37, "GPIO37", 457 MTK_EINT_FUNCTION(0, 37), 458 DRV_GRP4, 459 MTK_FUNCTION(0, "GPIO37"), 460 MTK_FUNCTION(1, "SPI0_CSB_A"), 461 MTK_FUNCTION(2, "CLKM1"), 462 MTK_FUNCTION(3, "PWM0"), 463 MTK_FUNCTION(4, "SCP_SPI0_CS"), 464 MTK_FUNCTION(5, "SPINOR_CS"), 465 MTK_FUNCTION(7, "dbg_mon_a12") 466 ), 467 468 MTK_PIN( 469 38, "GPIO38", 470 MTK_EINT_FUNCTION(0, 38), 471 DRV_GRP4, 472 MTK_FUNCTION(0, "GPIO38"), 473 MTK_FUNCTION(1, "SPI0_MO_A"), 474 MTK_FUNCTION(2, "CLKM2"), 475 MTK_FUNCTION(3, "PWM1"), 476 MTK_FUNCTION(4, "SCP_SPI0_MO"), 477 MTK_FUNCTION(5, "SPINOR_IO0"), 478 MTK_FUNCTION(7, "dbg_mon_a13") 479 ), 480 481 MTK_PIN( 482 39, "GPIO39", 483 MTK_EINT_FUNCTION(0, 39), 484 DRV_GRP4, 485 MTK_FUNCTION(0, "GPIO39"), 486 MTK_FUNCTION(1, "SPI0_MI_A"), 487 MTK_FUNCTION(2, "CLKM3"), 488 MTK_FUNCTION(3, "PWM2"), 489 MTK_FUNCTION(4, "SCP_SPI0_MI"), 490 MTK_FUNCTION(5, "SPINOR_IO1"), 491 MTK_FUNCTION(7, "dbg_mon_a14") 492 ), 493 494 MTK_PIN( 495 40, "GPIO40", 496 MTK_EINT_FUNCTION(0, 40), 497 DRV_GRP4, 498 MTK_FUNCTION(0, "GPIO40"), 499 MTK_FUNCTION(1, "SPI1_CLK_A"), 500 MTK_FUNCTION(2, "SCP_SPI1_CK"), 501 MTK_FUNCTION(4, "UCTS0"), 502 MTK_FUNCTION(5, "SPINOR_IO2"), 503 MTK_FUNCTION(6, "TP_UCTS1_AO"), 504 MTK_FUNCTION(7, "dbg_mon_a15") 505 ), 506 507 MTK_PIN( 508 41, "GPIO41", 509 MTK_EINT_FUNCTION(0, 41), 510 DRV_GRP4, 511 MTK_FUNCTION(0, "GPIO41"), 512 MTK_FUNCTION(1, "SPI1_CSB_A"), 513 MTK_FUNCTION(2, "SCP_SPI1_CS"), 514 MTK_FUNCTION(3, "PWM0"), 515 MTK_FUNCTION(4, "URTS0"), 516 MTK_FUNCTION(5, "SPINOR_IO3"), 517 MTK_FUNCTION(6, "TP_URTS1_AO"), 518 MTK_FUNCTION(7, "dbg_mon_a16") 519 ), 520 521 MTK_PIN( 522 42, "GPIO42", 523 MTK_EINT_FUNCTION(0, 42), 524 DRV_GRP4, 525 MTK_FUNCTION(0, "GPIO42"), 526 MTK_FUNCTION(1, "SPI1_MO_A"), 527 MTK_FUNCTION(2, "SCP_SPI1_MO"), 528 MTK_FUNCTION(3, "PWM1"), 529 MTK_FUNCTION(4, "UCTS1"), 530 MTK_FUNCTION(6, "TP_UCTS2_AO"), 531 MTK_FUNCTION(7, "dbg_mon_a17") 532 ), 533 534 MTK_PIN( 535 43, "GPIO43", 536 MTK_EINT_FUNCTION(0, 43), 537 DRV_GRP4, 538 MTK_FUNCTION(0, "GPIO43"), 539 MTK_FUNCTION(1, "SPI1_MI_A"), 540 MTK_FUNCTION(2, "SCP_SPI1_MI"), 541 MTK_FUNCTION(3, "PWM2"), 542 MTK_FUNCTION(4, "URTS1"), 543 MTK_FUNCTION(6, "TP_URTS2_AO"), 544 MTK_FUNCTION(7, "dbg_mon_a18") 545 ), 546 547 MTK_PIN( 548 44, "GPIO44", 549 MTK_EINT_FUNCTION(0, 44), 550 DRV_GRP4, 551 MTK_FUNCTION(0, "GPIO44"), 552 MTK_FUNCTION(1, "SPI2_CLK_A"), 553 MTK_FUNCTION(2, "SCP_SPI0_CK"), 554 MTK_FUNCTION(7, "dbg_mon_a19") 555 ), 556 557 MTK_PIN( 558 45, "GPIO45", 559 MTK_EINT_FUNCTION(0, 45), 560 DRV_GRP4, 561 MTK_FUNCTION(0, "GPIO45"), 562 MTK_FUNCTION(1, "SPI2_CSB_A"), 563 MTK_FUNCTION(2, "SCP_SPI0_CS"), 564 MTK_FUNCTION(7, "dbg_mon_a20") 565 ), 566 567 MTK_PIN( 568 46, "GPIO46", 569 MTK_EINT_FUNCTION(0, 46), 570 DRV_GRP4, 571 MTK_FUNCTION(0, "GPIO46"), 572 MTK_FUNCTION(1, "SPI2_MO_A"), 573 MTK_FUNCTION(2, "SCP_SPI0_MO"), 574 MTK_FUNCTION(7, "dbg_mon_a21") 575 ), 576 577 MTK_PIN( 578 47, "GPIO47", 579 MTK_EINT_FUNCTION(0, 47), 580 DRV_GRP4, 581 MTK_FUNCTION(0, "GPIO47"), 582 MTK_FUNCTION(1, "SPI2_MI_A"), 583 MTK_FUNCTION(2, "SCP_SPI0_MI"), 584 MTK_FUNCTION(7, "dbg_mon_a22") 585 ), 586 587 MTK_PIN( 588 48, "GPIO48", 589 MTK_EINT_FUNCTION(0, 48), 590 DRV_GRP4, 591 MTK_FUNCTION(0, "GPIO48"), 592 MTK_FUNCTION(1, "SPI3_CLK"), 593 MTK_FUNCTION(2, "TP_URXD1_AO"), 594 MTK_FUNCTION(3, "TP_URXD2_AO"), 595 MTK_FUNCTION(4, "URXD1"), 596 MTK_FUNCTION(5, "I2S2_MCK"), 597 MTK_FUNCTION(6, "SCP_SPI0_CK") 598 ), 599 600 MTK_PIN( 601 49, "GPIO49", 602 MTK_EINT_FUNCTION(0, 49), 603 DRV_GRP4, 604 MTK_FUNCTION(0, "GPIO49"), 605 MTK_FUNCTION(1, "SPI3_CSB"), 606 MTK_FUNCTION(2, "TP_UTXD1_AO"), 607 MTK_FUNCTION(3, "TP_UTXD2_AO"), 608 MTK_FUNCTION(4, "UTXD1"), 609 MTK_FUNCTION(5, "I2S2_BCK"), 610 MTK_FUNCTION(6, "SCP_SPI0_CS") 611 ), 612 613 MTK_PIN( 614 50, "GPIO50", 615 MTK_EINT_FUNCTION(0, 50), 616 DRV_GRP4, 617 MTK_FUNCTION(0, "GPIO50"), 618 MTK_FUNCTION(1, "SPI3_MO"), 619 MTK_FUNCTION(5, "I2S2_LRCK"), 620 MTK_FUNCTION(6, "SCP_SPI0_MO") 621 ), 622 623 MTK_PIN( 624 51, "GPIO51", 625 MTK_EINT_FUNCTION(0, 51), 626 DRV_GRP4, 627 MTK_FUNCTION(0, "GPIO51"), 628 MTK_FUNCTION(1, "SPI3_MI"), 629 MTK_FUNCTION(5, "I2S2_DI"), 630 MTK_FUNCTION(6, "SCP_SPI0_MI") 631 ), 632 633 MTK_PIN( 634 52, "GPIO52", 635 MTK_EINT_FUNCTION(0, 52), 636 DRV_GRP4, 637 MTK_FUNCTION(0, "GPIO52"), 638 MTK_FUNCTION(1, "SPI5_CLK"), 639 MTK_FUNCTION(2, "I2S2_MCK"), 640 MTK_FUNCTION(3, "I2S1_MCK"), 641 MTK_FUNCTION(4, "SCP_SPI1_CK"), 642 MTK_FUNCTION(5, "LVTS_26M"), 643 MTK_FUNCTION(6, "DFD_TCK_XI"), 644 MTK_FUNCTION(7, "dbg_mon_b30") 645 ), 646 647 MTK_PIN( 648 53, "GPIO53", 649 MTK_EINT_FUNCTION(0, 53), 650 DRV_GRP4, 651 MTK_FUNCTION(0, "GPIO53"), 652 MTK_FUNCTION(1, "SPI5_CSB"), 653 MTK_FUNCTION(2, "I2S2_BCK"), 654 MTK_FUNCTION(3, "I2S1_BCK"), 655 MTK_FUNCTION(4, "SCP_SPI1_CS"), 656 MTK_FUNCTION(5, "LVTS_FOUT"), 657 MTK_FUNCTION(6, "DFD_TDI"), 658 MTK_FUNCTION(7, "dbg_mon_b31") 659 ), 660 661 MTK_PIN( 662 54, "GPIO54", 663 MTK_EINT_FUNCTION(0, 54), 664 DRV_GRP4, 665 MTK_FUNCTION(0, "GPIO54"), 666 MTK_FUNCTION(1, "SPI5_MO"), 667 MTK_FUNCTION(2, "I2S2_LRCK"), 668 MTK_FUNCTION(3, "I2S1_LRCK"), 669 MTK_FUNCTION(4, "SCP_SPI1_MO"), 670 MTK_FUNCTION(5, "LVTS_SCK"), 671 MTK_FUNCTION(6, "DFD_TDO"), 672 MTK_FUNCTION(7, "dbg_mon_a1") 673 ), 674 675 MTK_PIN( 676 55, "GPIO55", 677 MTK_EINT_FUNCTION(0, 55), 678 DRV_GRP4, 679 MTK_FUNCTION(0, "GPIO55"), 680 MTK_FUNCTION(1, "SPI5_MI"), 681 MTK_FUNCTION(2, "I2S2_DI"), 682 MTK_FUNCTION(3, "I2S1_DO"), 683 MTK_FUNCTION(4, "SCP_SPI1_MI"), 684 MTK_FUNCTION(5, "LVTS_SDO"), 685 MTK_FUNCTION(6, "DFD_TMS"), 686 MTK_FUNCTION(7, "dbg_mon_b32") 687 ), 688 689 MTK_PIN( 690 56, "GPIO56", 691 MTK_EINT_FUNCTION(0, 56), 692 DRV_GRP4, 693 MTK_FUNCTION(0, "GPIO56"), 694 MTK_FUNCTION(1, "I2S1_DO"), 695 MTK_FUNCTION(2, "I2S3_DO"), 696 MTK_FUNCTION(7, "dbg_mon_a23") 697 ), 698 699 MTK_PIN( 700 57, "GPIO57", 701 MTK_EINT_FUNCTION(0, 57), 702 DRV_GRP4, 703 MTK_FUNCTION(0, "GPIO57"), 704 MTK_FUNCTION(1, "I2S1_BCK"), 705 MTK_FUNCTION(2, "I2S3_BCK"), 706 MTK_FUNCTION(7, "dbg_mon_a24") 707 ), 708 709 MTK_PIN( 710 58, "GPIO58", 711 MTK_EINT_FUNCTION(0, 58), 712 DRV_GRP4, 713 MTK_FUNCTION(0, "GPIO58"), 714 MTK_FUNCTION(1, "I2S1_LRCK"), 715 MTK_FUNCTION(2, "I2S3_LRCK"), 716 MTK_FUNCTION(7, "dbg_mon_a25") 717 ), 718 719 MTK_PIN( 720 59, "GPIO59", 721 MTK_EINT_FUNCTION(0, 59), 722 DRV_GRP4, 723 MTK_FUNCTION(0, "GPIO59"), 724 MTK_FUNCTION(1, "I2S1_MCK"), 725 MTK_FUNCTION(2, "I2S3_MCK"), 726 MTK_FUNCTION(7, "dbg_mon_a27") 727 ), 728 729 MTK_PIN( 730 60, "GPIO60", 731 MTK_EINT_FUNCTION(0, 60), 732 DRV_GRP4, 733 MTK_FUNCTION(0, "GPIO60"), 734 MTK_FUNCTION(1, "TDM_RX_LRCK"), 735 MTK_FUNCTION(2, "ANT_SEL3"), 736 MTK_FUNCTION(5, "CONN_MCU_DBGACK_N") 737 ), 738 739 MTK_PIN( 740 61, "GPIO61", 741 MTK_EINT_FUNCTION(0, 61), 742 DRV_GRP4, 743 MTK_FUNCTION(0, "GPIO61"), 744 MTK_FUNCTION(1, "TDM_RX_BCK"), 745 MTK_FUNCTION(2, "ANT_SEL4"), 746 MTK_FUNCTION(4, "SPINOR_CK"), 747 MTK_FUNCTION(5, "CONN_MCU_DBGI_N") 748 ), 749 750 MTK_PIN( 751 62, "GPIO62", 752 MTK_EINT_FUNCTION(0, 62), 753 DRV_GRP4, 754 MTK_FUNCTION(0, "GPIO62"), 755 MTK_FUNCTION(1, "TDM_RX_MCK"), 756 MTK_FUNCTION(2, "ANT_SEL5"), 757 MTK_FUNCTION(4, "SPINOR_CS"), 758 MTK_FUNCTION(5, "CONN_MCU_TDI") 759 ), 760 761 MTK_PIN( 762 63, "GPIO63", 763 MTK_EINT_FUNCTION(0, 63), 764 DRV_GRP4, 765 MTK_FUNCTION(0, "GPIO63"), 766 MTK_FUNCTION(1, "TDM_RX_DATA0"), 767 MTK_FUNCTION(2, "ANT_SEL6"), 768 MTK_FUNCTION(4, "SPINOR_IO0"), 769 MTK_FUNCTION(5, "CONN_MCU_TRST_B") 770 ), 771 772 MTK_PIN( 773 64, "GPIO64", 774 MTK_EINT_FUNCTION(0, 64), 775 DRV_GRP4, 776 MTK_FUNCTION(0, "GPIO64"), 777 MTK_FUNCTION(1, "TDM_RX_DATA1"), 778 MTK_FUNCTION(2, "ANT_SEL7"), 779 MTK_FUNCTION(3, "PWM0"), 780 MTK_FUNCTION(4, "SPINOR_IO1"), 781 MTK_FUNCTION(5, "CONN_MCU_TCK") 782 ), 783 784 MTK_PIN( 785 65, "GPIO65", 786 MTK_EINT_FUNCTION(0, 65), 787 DRV_GRP4, 788 MTK_FUNCTION(0, "GPIO65"), 789 MTK_FUNCTION(1, "TDM_RX_DATA2"), 790 MTK_FUNCTION(2, "UCTS0"), 791 MTK_FUNCTION(3, "PWM1"), 792 MTK_FUNCTION(4, "SPINOR_IO2"), 793 MTK_FUNCTION(5, "CONN_MCU_TDO"), 794 MTK_FUNCTION(6, "TP_UCTS1_AO"), 795 MTK_FUNCTION(7, "TP_UCTS2_AO") 796 ), 797 798 MTK_PIN( 799 66, "GPIO66", 800 MTK_EINT_FUNCTION(0, 66), 801 DRV_GRP4, 802 MTK_FUNCTION(0, "GPIO66"), 803 MTK_FUNCTION(1, "TDM_RX_DATA3"), 804 MTK_FUNCTION(2, "URTS0"), 805 MTK_FUNCTION(3, "PWM2"), 806 MTK_FUNCTION(4, "SPINOR_IO3"), 807 MTK_FUNCTION(5, "CONN_MCU_TMS"), 808 MTK_FUNCTION(6, "TP_URTS1_AO"), 809 MTK_FUNCTION(7, "TP_URTS2_AO") 810 ), 811 812 MTK_PIN( 813 67, "GPIO67", 814 MTK_EINT_FUNCTION(0, 67), 815 DRV_GRP4, 816 MTK_FUNCTION(0, "GPIO67"), 817 MTK_FUNCTION(1, "MSDC0_DSL") 818 ), 819 820 MTK_PIN( 821 68, "GPIO68", 822 MTK_EINT_FUNCTION(0, 68), 823 DRV_GRP4, 824 MTK_FUNCTION(0, "GPIO68"), 825 MTK_FUNCTION(1, "MSDC0_CLK") 826 ), 827 828 MTK_PIN( 829 69, "GPIO69", 830 MTK_EINT_FUNCTION(0, 69), 831 DRV_GRP4, 832 MTK_FUNCTION(0, "GPIO69"), 833 MTK_FUNCTION(1, "MSDC0_CMD") 834 ), 835 836 MTK_PIN( 837 70, "GPIO70", 838 MTK_EINT_FUNCTION(0, 70), 839 DRV_GRP4, 840 MTK_FUNCTION(0, "GPIO70"), 841 MTK_FUNCTION(1, "MSDC0_RSTB") 842 ), 843 844 MTK_PIN( 845 71, "GPIO71", 846 MTK_EINT_FUNCTION(0, 71), 847 DRV_GRP4, 848 MTK_FUNCTION(0, "GPIO71"), 849 MTK_FUNCTION(1, "MSDC0_DAT0") 850 ), 851 852 MTK_PIN( 853 72, "GPIO72", 854 MTK_EINT_FUNCTION(0, 72), 855 DRV_GRP4, 856 MTK_FUNCTION(0, "GPIO72"), 857 MTK_FUNCTION(1, "MSDC0_DAT1") 858 ), 859 860 MTK_PIN( 861 73, "GPIO73", 862 MTK_EINT_FUNCTION(0, 73), 863 DRV_GRP4, 864 MTK_FUNCTION(0, "GPIO73"), 865 MTK_FUNCTION(1, "MSDC0_DAT2") 866 ), 867 868 MTK_PIN( 869 74, "GPIO74", 870 MTK_EINT_FUNCTION(0, 74), 871 DRV_GRP4, 872 MTK_FUNCTION(0, "GPIO74"), 873 MTK_FUNCTION(1, "MSDC0_DAT3") 874 ), 875 876 MTK_PIN( 877 75, "GPIO75", 878 MTK_EINT_FUNCTION(0, 75), 879 DRV_GRP4, 880 MTK_FUNCTION(0, "GPIO75"), 881 MTK_FUNCTION(1, "MSDC0_DAT4") 882 ), 883 884 MTK_PIN( 885 76, "GPIO76", 886 MTK_EINT_FUNCTION(0, 76), 887 DRV_GRP4, 888 MTK_FUNCTION(0, "GPIO76"), 889 MTK_FUNCTION(1, "MSDC0_DAT5") 890 ), 891 892 MTK_PIN( 893 77, "GPIO77", 894 MTK_EINT_FUNCTION(0, 77), 895 DRV_GRP4, 896 MTK_FUNCTION(0, "GPIO77"), 897 MTK_FUNCTION(1, "MSDC0_DAT6") 898 ), 899 900 MTK_PIN( 901 78, "GPIO78", 902 MTK_EINT_FUNCTION(0, 78), 903 DRV_GRP4, 904 MTK_FUNCTION(0, "GPIO78"), 905 MTK_FUNCTION(1, "MSDC0_DAT7") 906 ), 907 908 MTK_PIN( 909 79, "GPIO79", 910 MTK_EINT_FUNCTION(0, 79), 911 DRV_GRP4, 912 MTK_FUNCTION(0, "GPIO79"), 913 MTK_FUNCTION(1, "KPCOL0") 914 ), 915 916 MTK_PIN( 917 80, "GPIO80", 918 MTK_EINT_FUNCTION(0, 80), 919 DRV_GRP4, 920 MTK_FUNCTION(0, "GPIO80"), 921 MTK_FUNCTION(1, "KPCOL1"), 922 MTK_FUNCTION(2, "GPS_L1_ELNA_EN"), 923 MTK_FUNCTION(3, "PWM0"), 924 MTK_FUNCTION(4, "CLKM0") 925 ), 926 927 MTK_PIN( 928 81, "GPIO81", 929 MTK_EINT_FUNCTION(0, 81), 930 DRV_GRP4, 931 MTK_FUNCTION(0, "GPIO81"), 932 MTK_FUNCTION(1, "KPROW0"), 933 MTK_FUNCTION(3, "PWM1"), 934 MTK_FUNCTION(4, "CLKM1") 935 ), 936 937 MTK_PIN( 938 82, "GPIO82", 939 MTK_EINT_FUNCTION(0, 82), 940 DRV_GRP4, 941 MTK_FUNCTION(0, "GPIO82"), 942 MTK_FUNCTION(1, "KPROW1"), 943 MTK_FUNCTION(3, "PWM2"), 944 MTK_FUNCTION(4, "CLKM2") 945 ), 946 947 MTK_PIN( 948 83, "GPIO83", 949 MTK_EINT_FUNCTION(0, 83), 950 DRV_GRP4, 951 MTK_FUNCTION(0, "GPIO83"), 952 MTK_FUNCTION(1, "AP_GOOD"), 953 MTK_FUNCTION(2, "GPS_PPS"), 954 MTK_FUNCTION(4, "EXT_FRAME_SYNC"), 955 MTK_FUNCTION(7, "dbg_mon_a28") 956 ), 957 958 MTK_PIN( 959 84, "GPIO84", 960 MTK_EINT_FUNCTION(0, 84), 961 DRV_GRP4, 962 MTK_FUNCTION(0, "GPIO84"), 963 MTK_FUNCTION(1, "MSDC1_CLK"), 964 MTK_FUNCTION(2, "ADSP_JTAG_TCK"), 965 MTK_FUNCTION(4, "UDI_TCK"), 966 MTK_FUNCTION(5, "CONN_DSP_JCK"), 967 MTK_FUNCTION(6, "SSPM_JTAG_TCK"), 968 MTK_FUNCTION(7, "DFD_TCK_XI") 969 ), 970 971 MTK_PIN( 972 85, "GPIO85", 973 MTK_EINT_FUNCTION(0, 85), 974 DRV_GRP4, 975 MTK_FUNCTION(0, "GPIO85"), 976 MTK_FUNCTION(1, "MSDC1_CMD"), 977 MTK_FUNCTION(2, "ADSP_JTAG_TMS"), 978 MTK_FUNCTION(3, "CONN_MCU_AICE_TMSC"), 979 MTK_FUNCTION(4, "UDI_TMS"), 980 MTK_FUNCTION(5, "CONN_DSP_JMS"), 981 MTK_FUNCTION(6, "SSPM_JTAG_TMS"), 982 MTK_FUNCTION(7, "DFD_TMS") 983 ), 984 985 MTK_PIN( 986 86, "GPIO86", 987 MTK_EINT_FUNCTION(0, 86), 988 DRV_GRP4, 989 MTK_FUNCTION(0, "GPIO86"), 990 MTK_FUNCTION(1, "MSDC1_DAT0"), 991 MTK_FUNCTION(2, "ADSP_JTAG_TDI"), 992 MTK_FUNCTION(4, "UDI_TDI"), 993 MTK_FUNCTION(5, "CONN_DSP_JDI"), 994 MTK_FUNCTION(6, "SSPM_JTAG_TDI"), 995 MTK_FUNCTION(7, "DFD_TDI") 996 ), 997 998 MTK_PIN( 999 87, "GPIO87", 1000 MTK_EINT_FUNCTION(0, 87), 1001 DRV_GRP4, 1002 MTK_FUNCTION(0, "GPIO87"), 1003 MTK_FUNCTION(1, "MSDC1_DAT1"), 1004 MTK_FUNCTION(2, "ADSP_JTAG_TDO"), 1005 MTK_FUNCTION(4, "UDI_TDO"), 1006 MTK_FUNCTION(5, "CONN_DSP_JDO"), 1007 MTK_FUNCTION(6, "SSPM_JTAG_TDO"), 1008 MTK_FUNCTION(7, "DFD_TDO") 1009 ), 1010 1011 MTK_PIN( 1012 88, "GPIO88", 1013 MTK_EINT_FUNCTION(0, 88), 1014 DRV_GRP4, 1015 MTK_FUNCTION(0, "GPIO88"), 1016 MTK_FUNCTION(1, "MSDC1_DAT2"), 1017 MTK_FUNCTION(2, "ADSP_JTAG_TRSTN"), 1018 MTK_FUNCTION(3, "CONN_MCU_AICE_TCKC"), 1019 MTK_FUNCTION(4, "UDI_NTRST"), 1020 MTK_FUNCTION(5, "CONN_WIFI_TXD"), 1021 MTK_FUNCTION(6, "SSPM_JTAG_TRSTN") 1022 ), 1023 1024 MTK_PIN( 1025 89, "GPIO89", 1026 MTK_EINT_FUNCTION(0, 89), 1027 DRV_GRP4, 1028 MTK_FUNCTION(0, "GPIO89"), 1029 MTK_FUNCTION(1, "MSDC1_DAT3"), 1030 MTK_FUNCTION(5, "CONN_DSP_JINTP") 1031 ), 1032 1033 MTK_PIN( 1034 90, "GPIO90", 1035 MTK_EINT_FUNCTION(0, 90), 1036 DRV_GRP4, 1037 MTK_FUNCTION(0, "GPIO90"), 1038 MTK_FUNCTION(1, "IDDIG_P0"), 1039 MTK_FUNCTION(4, "PGD_HV_HSC_PWR4"), 1040 MTK_FUNCTION(5, "GDU_SUM_TROOP2_2") 1041 ), 1042 1043 MTK_PIN( 1044 91, "GPIO91", 1045 MTK_EINT_FUNCTION(0, 91), 1046 DRV_GRP4, 1047 MTK_FUNCTION(0, "GPIO91"), 1048 MTK_FUNCTION(1, "USB_DRVVBUS_P0"), 1049 MTK_FUNCTION(4, "PGD_HV_HSC_PWR5"), 1050 MTK_FUNCTION(5, "GDU_TROOPS_DET0") 1051 ), 1052 1053 MTK_PIN( 1054 92, "GPIO92", 1055 MTK_EINT_FUNCTION(0, 92), 1056 DRV_GRP4, 1057 MTK_FUNCTION(0, "GPIO92"), 1058 MTK_FUNCTION(1, "VBUS_VALID_P0"), 1059 MTK_FUNCTION(4, "PGD_DA_EFUSE_RDY"), 1060 MTK_FUNCTION(5, "GDU_TROOPS_DET1") 1061 ), 1062 1063 MTK_PIN( 1064 93, "GPIO93", 1065 MTK_EINT_FUNCTION(0, 93), 1066 DRV_GRP4, 1067 MTK_FUNCTION(0, "GPIO93"), 1068 MTK_FUNCTION(1, "IDDIG_P1"), 1069 MTK_FUNCTION(2, "PWM0"), 1070 MTK_FUNCTION(3, "CLKM0"), 1071 MTK_FUNCTION(4, "PGD_DA_EFUSE_RDY_PRE"), 1072 MTK_FUNCTION(5, "GDU_TROOPS_DET2") 1073 ), 1074 1075 MTK_PIN( 1076 94, "GPIO94", 1077 MTK_EINT_FUNCTION(0, 94), 1078 DRV_GRP4, 1079 MTK_FUNCTION(0, "GPIO94"), 1080 MTK_FUNCTION(1, "USB_DRVVBUS_P1"), 1081 MTK_FUNCTION(2, "PWM1"), 1082 MTK_FUNCTION(3, "CLKM1"), 1083 MTK_FUNCTION(4, "PGD_DA_PWRGD_RESET") 1084 ), 1085 1086 MTK_PIN( 1087 95, "GPIO95", 1088 MTK_EINT_FUNCTION(0, 95), 1089 DRV_GRP4, 1090 MTK_FUNCTION(0, "GPIO95"), 1091 MTK_FUNCTION(1, "VBUS_VALID_P1"), 1092 MTK_FUNCTION(2, "PWM2"), 1093 MTK_FUNCTION(3, "CLKM2"), 1094 MTK_FUNCTION(4, "PGD_DA_PWRGD_ENB") 1095 ), 1096 1097 MTK_PIN( 1098 96, "GPIO96", 1099 MTK_EINT_FUNCTION(0, 96), 1100 DRV_GRP4, 1101 MTK_FUNCTION(0, "GPIO96"), 1102 MTK_FUNCTION(1, "DSI_TE"), 1103 MTK_FUNCTION(7, "dbg_mon_a29") 1104 ), 1105 1106 MTK_PIN( 1107 97, "GPIO97", 1108 MTK_EINT_FUNCTION(0, 97), 1109 DRV_GRP4, 1110 MTK_FUNCTION(0, "GPIO97"), 1111 MTK_FUNCTION(1, "DISP_PWM"), 1112 MTK_FUNCTION(7, "dbg_mon_a30") 1113 ), 1114 1115 MTK_PIN( 1116 98, "GPIO98", 1117 MTK_EINT_FUNCTION(0, 98), 1118 DRV_GRP4, 1119 MTK_FUNCTION(0, "GPIO98"), 1120 MTK_FUNCTION(1, "LCM_RST") 1121 ), 1122 1123 MTK_PIN( 1124 99, "GPIO99", 1125 MTK_EINT_FUNCTION(0, 99), 1126 DRV_GRP4, 1127 MTK_FUNCTION(0, "GPIO99"), 1128 MTK_FUNCTION(1, "DPI_PCLK"), 1129 MTK_FUNCTION(2, "GPS_L1_ELNA_EN"), 1130 MTK_FUNCTION(3, "SSPM_JTAG_TCK"), 1131 MTK_FUNCTION(5, "ANT_SEL0"), 1132 MTK_FUNCTION(6, "TP_GPIO0_AO"), 1133 MTK_FUNCTION(7, "PGD_LV_LSC_PWR0") 1134 ), 1135 1136 MTK_PIN( 1137 100, "GPIO100", 1138 MTK_EINT_FUNCTION(0, 100), 1139 DRV_GRP4, 1140 MTK_FUNCTION(0, "GPIO100"), 1141 MTK_FUNCTION(1, "DPI_VSYNC"), 1142 MTK_FUNCTION(2, "KPCOL2"), 1143 MTK_FUNCTION(3, "SSPM_JTAG_TMS"), 1144 MTK_FUNCTION(5, "ANT_SEL1"), 1145 MTK_FUNCTION(6, "TP_GPIO1_AO"), 1146 MTK_FUNCTION(7, "PGD_LV_LSC_PWR1") 1147 ), 1148 1149 MTK_PIN( 1150 101, "GPIO101", 1151 MTK_EINT_FUNCTION(0, 101), 1152 DRV_GRP4, 1153 MTK_FUNCTION(0, "GPIO101"), 1154 MTK_FUNCTION(1, "DPI_HSYNC"), 1155 MTK_FUNCTION(2, "KPROW2"), 1156 MTK_FUNCTION(3, "SSPM_JTAG_TDI"), 1157 MTK_FUNCTION(5, "ANT_SEL2"), 1158 MTK_FUNCTION(6, "TP_GPIO2_AO"), 1159 MTK_FUNCTION(7, "PGD_LV_LSC_PWR2") 1160 ), 1161 1162 MTK_PIN( 1163 102, "GPIO102", 1164 MTK_EINT_FUNCTION(0, 102), 1165 DRV_GRP4, 1166 MTK_FUNCTION(0, "GPIO102"), 1167 MTK_FUNCTION(1, "DPI_DE"), 1168 MTK_FUNCTION(3, "SSPM_JTAG_TDO"), 1169 MTK_FUNCTION(5, "ANT_SEL3"), 1170 MTK_FUNCTION(6, "TP_GPIO3_AO"), 1171 MTK_FUNCTION(7, "PGD_LV_LSC_PWR3") 1172 ), 1173 1174 MTK_PIN( 1175 103, "GPIO103", 1176 MTK_EINT_FUNCTION(0, 103), 1177 DRV_GRP4, 1178 MTK_FUNCTION(0, "GPIO103"), 1179 MTK_FUNCTION(1, "DPI_DATA0"), 1180 MTK_FUNCTION(3, "SSPM_JTAG_TRSTN"), 1181 MTK_FUNCTION(4, "CLKM0"), 1182 MTK_FUNCTION(5, "ANT_SEL4"), 1183 MTK_FUNCTION(6, "TP_GPIO4_AO"), 1184 MTK_FUNCTION(7, "PGD_LV_LSC_PWR4") 1185 ), 1186 1187 MTK_PIN( 1188 104, "GPIO104", 1189 MTK_EINT_FUNCTION(0, 104), 1190 DRV_GRP4, 1191 MTK_FUNCTION(0, "GPIO104"), 1192 MTK_FUNCTION(1, "DPI_DATA1"), 1193 MTK_FUNCTION(2, "GPS_PPS"), 1194 MTK_FUNCTION(3, "UCTS2"), 1195 MTK_FUNCTION(4, "CLKM1"), 1196 MTK_FUNCTION(5, "ANT_SEL5"), 1197 MTK_FUNCTION(6, "TP_GPIO5_AO"), 1198 MTK_FUNCTION(7, "PGD_LV_LSC_PWR5") 1199 ), 1200 1201 MTK_PIN( 1202 105, "GPIO105", 1203 MTK_EINT_FUNCTION(0, 105), 1204 DRV_GRP4, 1205 MTK_FUNCTION(0, "GPIO105"), 1206 MTK_FUNCTION(1, "DPI_DATA2"), 1207 MTK_FUNCTION(2, "CONN_TCXOENA_REQ"), 1208 MTK_FUNCTION(3, "URTS2"), 1209 MTK_FUNCTION(4, "CLKM2"), 1210 MTK_FUNCTION(5, "ANT_SEL6"), 1211 MTK_FUNCTION(6, "TP_GPIO6_AO"), 1212 MTK_FUNCTION(7, "PGD_LV_HSC_PWR0") 1213 ), 1214 1215 MTK_PIN( 1216 106, "GPIO106", 1217 MTK_EINT_FUNCTION(0, 106), 1218 DRV_GRP4, 1219 MTK_FUNCTION(0, "GPIO106"), 1220 MTK_FUNCTION(1, "DPI_DATA3"), 1221 MTK_FUNCTION(2, "TP_UTXD1_AO"), 1222 MTK_FUNCTION(3, "UTXD2"), 1223 MTK_FUNCTION(4, "PWM0"), 1224 MTK_FUNCTION(5, "ANT_SEL7"), 1225 MTK_FUNCTION(6, "TP_GPIO7_AO"), 1226 MTK_FUNCTION(7, "PGD_LV_HSC_PWR1") 1227 ), 1228 1229 MTK_PIN( 1230 107, "GPIO107", 1231 MTK_EINT_FUNCTION(0, 107), 1232 DRV_GRP4, 1233 MTK_FUNCTION(0, "GPIO107"), 1234 MTK_FUNCTION(1, "DPI_DATA4"), 1235 MTK_FUNCTION(2, "TP_URXD1_AO"), 1236 MTK_FUNCTION(3, "URXD2"), 1237 MTK_FUNCTION(4, "PWM1"), 1238 MTK_FUNCTION(6, "GDU_SUM_TROOP0_0"), 1239 MTK_FUNCTION(7, "PGD_LV_HSC_PWR2") 1240 ), 1241 1242 MTK_PIN( 1243 108, "GPIO108", 1244 MTK_EINT_FUNCTION(0, 108), 1245 DRV_GRP4, 1246 MTK_FUNCTION(0, "GPIO108"), 1247 MTK_FUNCTION(1, "DPI_DATA5"), 1248 MTK_FUNCTION(2, "TP_UCTS1_AO"), 1249 MTK_FUNCTION(3, "UCTS0"), 1250 MTK_FUNCTION(4, "PWM2"), 1251 MTK_FUNCTION(6, "GDU_SUM_TROOP0_1"), 1252 MTK_FUNCTION(7, "PGD_LV_HSC_PWR3") 1253 ), 1254 1255 MTK_PIN( 1256 109, "GPIO109", 1257 MTK_EINT_FUNCTION(0, 109), 1258 DRV_GRP4, 1259 MTK_FUNCTION(0, "GPIO109"), 1260 MTK_FUNCTION(1, "DPI_DATA6"), 1261 MTK_FUNCTION(2, "TP_URTS1_AO"), 1262 MTK_FUNCTION(3, "URTS0"), 1263 MTK_FUNCTION(4, "I2S0_DI"), 1264 MTK_FUNCTION(5, "I2S2_DI"), 1265 MTK_FUNCTION(6, "GDU_SUM_TROOP0_2"), 1266 MTK_FUNCTION(7, "PGD_LV_HSC_PWR4") 1267 ), 1268 1269 MTK_PIN( 1270 110, "GPIO110", 1271 MTK_EINT_FUNCTION(0, 110), 1272 DRV_GRP4, 1273 MTK_FUNCTION(0, "GPIO110"), 1274 MTK_FUNCTION(1, "DPI_DATA7"), 1275 MTK_FUNCTION(2, "TP_UCTS2_AO"), 1276 MTK_FUNCTION(3, "UCTS1"), 1277 MTK_FUNCTION(4, "I2S3_BCK"), 1278 MTK_FUNCTION(5, "I2S1_BCK"), 1279 MTK_FUNCTION(6, "GDU_SUM_TROOP1_0"), 1280 MTK_FUNCTION(7, "PGD_LV_HSC_PWR5") 1281 ), 1282 1283 MTK_PIN( 1284 111, "GPIO111", 1285 MTK_EINT_FUNCTION(0, 111), 1286 DRV_GRP4, 1287 MTK_FUNCTION(0, "GPIO111"), 1288 MTK_FUNCTION(1, "DPI_DATA8"), 1289 MTK_FUNCTION(2, "TP_URTS2_AO"), 1290 MTK_FUNCTION(3, "URTS1"), 1291 MTK_FUNCTION(4, "I2S3_MCK"), 1292 MTK_FUNCTION(5, "I2S1_MCK"), 1293 MTK_FUNCTION(6, "GDU_SUM_TROOP1_1"), 1294 MTK_FUNCTION(7, "PGD_HV_HSC_PWR0") 1295 ), 1296 1297 MTK_PIN( 1298 112, "GPIO112", 1299 MTK_EINT_FUNCTION(0, 112), 1300 DRV_GRP4, 1301 MTK_FUNCTION(0, "GPIO112"), 1302 MTK_FUNCTION(1, "DPI_DATA9"), 1303 MTK_FUNCTION(2, "TP_URXD2_AO"), 1304 MTK_FUNCTION(3, "URXD1"), 1305 MTK_FUNCTION(4, "I2S3_LRCK"), 1306 MTK_FUNCTION(5, "I2S1_LRCK"), 1307 MTK_FUNCTION(6, "GDU_SUM_TROOP1_2"), 1308 MTK_FUNCTION(7, "PGD_HV_HSC_PWR1") 1309 ), 1310 1311 MTK_PIN( 1312 113, "GPIO113", 1313 MTK_EINT_FUNCTION(0, 113), 1314 DRV_GRP4, 1315 MTK_FUNCTION(0, "GPIO113"), 1316 MTK_FUNCTION(1, "DPI_DATA10"), 1317 MTK_FUNCTION(2, "TP_UTXD2_AO"), 1318 MTK_FUNCTION(3, "UTXD1"), 1319 MTK_FUNCTION(4, "I2S3_DO"), 1320 MTK_FUNCTION(5, "I2S1_DO"), 1321 MTK_FUNCTION(6, "GDU_SUM_TROOP2_0"), 1322 MTK_FUNCTION(7, "PGD_HV_HSC_PWR2") 1323 ), 1324 1325 MTK_PIN( 1326 114, "GPIO114", 1327 MTK_EINT_FUNCTION(0, 114), 1328 DRV_GRP4, 1329 MTK_FUNCTION(0, "GPIO114"), 1330 MTK_FUNCTION(1, "DPI_DATA11"), 1331 MTK_FUNCTION(6, "GDU_SUM_TROOP2_1"), 1332 MTK_FUNCTION(7, "PGD_HV_HSC_PWR3") 1333 ), 1334 1335 MTK_PIN( 1336 115, "GPIO115", 1337 MTK_EINT_FUNCTION(0, 115), 1338 DRV_GRP4, 1339 MTK_FUNCTION(0, "GPIO115"), 1340 MTK_FUNCTION(1, "PCM_CLK"), 1341 MTK_FUNCTION(2, "I2S0_BCK"), 1342 MTK_FUNCTION(3, "I2S2_BCK") 1343 ), 1344 1345 MTK_PIN( 1346 116, "GPIO116", 1347 MTK_EINT_FUNCTION(0, 116), 1348 DRV_GRP4, 1349 MTK_FUNCTION(0, "GPIO116"), 1350 MTK_FUNCTION(1, "PCM_SYNC"), 1351 MTK_FUNCTION(2, "I2S0_LRCK"), 1352 MTK_FUNCTION(3, "I2S2_LRCK") 1353 ), 1354 1355 MTK_PIN( 1356 117, "GPIO117", 1357 MTK_EINT_FUNCTION(0, 117), 1358 DRV_GRP4, 1359 MTK_FUNCTION(0, "GPIO117"), 1360 MTK_FUNCTION(1, "PCM_DI"), 1361 MTK_FUNCTION(2, "I2S0_DI"), 1362 MTK_FUNCTION(3, "I2S2_DI") 1363 ), 1364 1365 MTK_PIN( 1366 118, "GPIO118", 1367 MTK_EINT_FUNCTION(0, 118), 1368 DRV_GRP4, 1369 MTK_FUNCTION(0, "GPIO118"), 1370 MTK_FUNCTION(1, "PCM_DO"), 1371 MTK_FUNCTION(2, "I2S0_MCK"), 1372 MTK_FUNCTION(3, "I2S2_MCK"), 1373 MTK_FUNCTION(4, "I2S3_DO"), 1374 MTK_FUNCTION(5, "I2S1_DO") 1375 ), 1376 1377 MTK_PIN( 1378 119, "GPIO119", 1379 MTK_EINT_FUNCTION(0, 119), 1380 DRV_GRP4, 1381 MTK_FUNCTION(0, "GPIO119"), 1382 MTK_FUNCTION(1, "JTMS_SEL1"), 1383 MTK_FUNCTION(2, "UDI_TMS"), 1384 MTK_FUNCTION(3, "DFD_TMS"), 1385 MTK_FUNCTION(4, "SPM_JTAG_TMS"), 1386 MTK_FUNCTION(5, "SCP_JTAG_TMS"), 1387 MTK_FUNCTION(6, "ADSP_JTAG_TMS") 1388 ), 1389 1390 MTK_PIN( 1391 120, "GPIO120", 1392 MTK_EINT_FUNCTION(0, 120), 1393 DRV_GRP4, 1394 MTK_FUNCTION(0, "GPIO120"), 1395 MTK_FUNCTION(1, "JTCK_SEL1"), 1396 MTK_FUNCTION(2, "UDI_TCK"), 1397 MTK_FUNCTION(3, "DFD_TCK_XI"), 1398 MTK_FUNCTION(4, "SPM_JTAG_TCK"), 1399 MTK_FUNCTION(5, "SCP_JTAG_TCK"), 1400 MTK_FUNCTION(6, "ADSP_JTAG_TCK") 1401 ), 1402 1403 MTK_PIN( 1404 121, "GPIO121", 1405 MTK_EINT_FUNCTION(0, 121), 1406 DRV_GRP4, 1407 MTK_FUNCTION(0, "GPIO121"), 1408 MTK_FUNCTION(1, "JTDI_SEL1"), 1409 MTK_FUNCTION(2, "UDI_TDI"), 1410 MTK_FUNCTION(3, "DFD_TDI"), 1411 MTK_FUNCTION(4, "SPM_JTAG_TDI"), 1412 MTK_FUNCTION(5, "SCP_JTAG_TDI"), 1413 MTK_FUNCTION(6, "ADSP_JTAG_TDI") 1414 ), 1415 1416 MTK_PIN( 1417 122, "GPIO122", 1418 MTK_EINT_FUNCTION(0, 122), 1419 DRV_GRP4, 1420 MTK_FUNCTION(0, "GPIO122"), 1421 MTK_FUNCTION(1, "JTDO_SEL1"), 1422 MTK_FUNCTION(2, "UDI_TDO"), 1423 MTK_FUNCTION(3, "DFD_TDO"), 1424 MTK_FUNCTION(4, "SPM_JTAG_TDO"), 1425 MTK_FUNCTION(5, "SCP_JTAG_TDO"), 1426 MTK_FUNCTION(6, "ADSP_JTAG_TDO") 1427 ), 1428 1429 MTK_PIN( 1430 123, "GPIO123", 1431 MTK_EINT_FUNCTION(0, 123), 1432 DRV_GRP4, 1433 MTK_FUNCTION(0, "GPIO123"), 1434 MTK_FUNCTION(1, "JTRSTN_SEL1"), 1435 MTK_FUNCTION(2, "UDI_NTRST"), 1436 MTK_FUNCTION(4, "SPM_JTAG_TRSTN"), 1437 MTK_FUNCTION(5, "SCP_JTAG_TRSTN"), 1438 MTK_FUNCTION(6, "ADSP_JTAG_TRSTN") 1439 ), 1440 1441 MTK_PIN( 1442 124, "GPIO124", 1443 MTK_EINT_FUNCTION(0, 124), 1444 DRV_GRP4, 1445 MTK_FUNCTION(0, "GPIO124"), 1446 MTK_FUNCTION(1, "CMMCLK0"), 1447 MTK_FUNCTION(2, "CLKM0"), 1448 MTK_FUNCTION(3, "PWM0") 1449 ), 1450 1451 MTK_PIN( 1452 125, "GPIO125", 1453 MTK_EINT_FUNCTION(0, 125), 1454 DRV_GRP4, 1455 MTK_FUNCTION(0, "GPIO125"), 1456 MTK_FUNCTION(1, "CMMCLK1"), 1457 MTK_FUNCTION(2, "CLKM1"), 1458 MTK_FUNCTION(3, "PWM1"), 1459 MTK_FUNCTION(7, "dbg_mon_b0") 1460 ), 1461 1462 MTK_PIN( 1463 126, "GPIO126", 1464 MTK_EINT_FUNCTION(0, 126), 1465 DRV_GRP4, 1466 MTK_FUNCTION(0, "GPIO126"), 1467 MTK_FUNCTION(1, "CMMCLK2"), 1468 MTK_FUNCTION(2, "CLKM2"), 1469 MTK_FUNCTION(3, "PWM2"), 1470 MTK_FUNCTION(7, "dbg_mon_b1") 1471 ), 1472 1473 MTK_PIN( 1474 127, "GPIO127", 1475 MTK_EINT_FUNCTION(0, 127), 1476 DRV_GRP4, 1477 MTK_FUNCTION(0, "GPIO127"), 1478 MTK_FUNCTION(1, "SCL0"), 1479 MTK_FUNCTION(4, "SCP_SCL0"), 1480 MTK_FUNCTION(5, "SCP_SCL1") 1481 ), 1482 1483 MTK_PIN( 1484 128, "GPIO128", 1485 MTK_EINT_FUNCTION(0, 128), 1486 DRV_GRP4, 1487 MTK_FUNCTION(0, "GPIO128"), 1488 MTK_FUNCTION(1, "SDA0"), 1489 MTK_FUNCTION(4, "SCP_SDA0"), 1490 MTK_FUNCTION(5, "SCP_SDA1") 1491 ), 1492 1493 MTK_PIN( 1494 129, "GPIO129", 1495 MTK_EINT_FUNCTION(0, 129), 1496 DRV_GRP4, 1497 MTK_FUNCTION(0, "GPIO129"), 1498 MTK_FUNCTION(1, "SCL1"), 1499 MTK_FUNCTION(4, "SCP_SCL0"), 1500 MTK_FUNCTION(5, "SCP_SCL1"), 1501 MTK_FUNCTION(7, "dbg_mon_b4") 1502 ), 1503 1504 MTK_PIN( 1505 130, "GPIO130", 1506 MTK_EINT_FUNCTION(0, 130), 1507 DRV_GRP4, 1508 MTK_FUNCTION(0, "GPIO130"), 1509 MTK_FUNCTION(1, "SDA1"), 1510 MTK_FUNCTION(4, "SCP_SDA0"), 1511 MTK_FUNCTION(5, "SCP_SDA1"), 1512 MTK_FUNCTION(7, "dbg_mon_b5") 1513 ), 1514 1515 MTK_PIN( 1516 131, "GPIO131", 1517 MTK_EINT_FUNCTION(0, 131), 1518 DRV_GRP4, 1519 MTK_FUNCTION(0, "GPIO131"), 1520 MTK_FUNCTION(1, "SCL2"), 1521 MTK_FUNCTION(2, "SSPM_UTXD_AO"), 1522 MTK_FUNCTION(3, "CONN_UART0_TXD"), 1523 MTK_FUNCTION(4, "SCP_SCL0"), 1524 MTK_FUNCTION(5, "SCP_SCL1"), 1525 MTK_FUNCTION(7, "dbg_mon_b6") 1526 ), 1527 1528 MTK_PIN( 1529 132, "GPIO132", 1530 MTK_EINT_FUNCTION(0, 132), 1531 DRV_GRP4, 1532 MTK_FUNCTION(0, "GPIO132"), 1533 MTK_FUNCTION(1, "SDA2"), 1534 MTK_FUNCTION(2, "SSPM_URXD_AO"), 1535 MTK_FUNCTION(3, "CONN_UART0_RXD"), 1536 MTK_FUNCTION(4, "SCP_SDA0"), 1537 MTK_FUNCTION(5, "SCP_SDA1"), 1538 MTK_FUNCTION(7, "dbg_mon_b7") 1539 ), 1540 1541 MTK_PIN( 1542 133, "GPIO133", 1543 MTK_EINT_FUNCTION(0, 133), 1544 DRV_GRP4, 1545 MTK_FUNCTION(0, "GPIO133"), 1546 MTK_FUNCTION(1, "SCL3"), 1547 MTK_FUNCTION(4, "SCP_SCL0"), 1548 MTK_FUNCTION(5, "SCP_SCL1"), 1549 MTK_FUNCTION(7, "dbg_mon_b8") 1550 ), 1551 1552 MTK_PIN( 1553 134, "GPIO134", 1554 MTK_EINT_FUNCTION(0, 134), 1555 DRV_GRP4, 1556 MTK_FUNCTION(0, "GPIO134"), 1557 MTK_FUNCTION(1, "SDA3"), 1558 MTK_FUNCTION(3, "GPS_PPS"), 1559 MTK_FUNCTION(4, "SCP_SDA0"), 1560 MTK_FUNCTION(5, "SCP_SDA1"), 1561 MTK_FUNCTION(7, "dbg_mon_b9") 1562 ), 1563 1564 MTK_PIN( 1565 135, "GPIO135", 1566 MTK_EINT_FUNCTION(0, 135), 1567 DRV_GRP4, 1568 MTK_FUNCTION(0, "GPIO135"), 1569 MTK_FUNCTION(1, "SCL4"), 1570 MTK_FUNCTION(2, "TP_UTXD1_AO"), 1571 MTK_FUNCTION(3, "UTXD1"), 1572 MTK_FUNCTION(4, "SCP_SCL0"), 1573 MTK_FUNCTION(5, "SCP_SCL1"), 1574 MTK_FUNCTION(7, "dbg_mon_b10") 1575 ), 1576 1577 MTK_PIN( 1578 136, "GPIO136", 1579 MTK_EINT_FUNCTION(0, 136), 1580 DRV_GRP4, 1581 MTK_FUNCTION(0, "GPIO136"), 1582 MTK_FUNCTION(1, "SDA4"), 1583 MTK_FUNCTION(2, "TP_URXD1_AO"), 1584 MTK_FUNCTION(3, "URXD1"), 1585 MTK_FUNCTION(4, "SCP_SDA0"), 1586 MTK_FUNCTION(5, "SCP_SDA1"), 1587 MTK_FUNCTION(7, "dbg_mon_b11") 1588 ), 1589 1590 MTK_PIN( 1591 137, "GPIO137", 1592 MTK_EINT_FUNCTION(0, 137), 1593 DRV_GRP4, 1594 MTK_FUNCTION(0, "GPIO137"), 1595 MTK_FUNCTION(1, "SCL5"), 1596 MTK_FUNCTION(2, "UTXD2"), 1597 MTK_FUNCTION(3, "UCTS1"), 1598 MTK_FUNCTION(4, "SCP_SCL0"), 1599 MTK_FUNCTION(5, "SCP_SCL1") 1600 ), 1601 1602 MTK_PIN( 1603 138, "GPIO138", 1604 MTK_EINT_FUNCTION(0, 138), 1605 DRV_GRP4, 1606 MTK_FUNCTION(0, "GPIO138"), 1607 MTK_FUNCTION(1, "SDA5"), 1608 MTK_FUNCTION(2, "URXD2"), 1609 MTK_FUNCTION(3, "URTS1"), 1610 MTK_FUNCTION(4, "SCP_SDA0"), 1611 MTK_FUNCTION(5, "SCP_SDA1") 1612 ), 1613 1614 MTK_PIN( 1615 139, "GPIO139", 1616 MTK_EINT_FUNCTION(0, 139), 1617 DRV_GRP4, 1618 MTK_FUNCTION(0, "GPIO139"), 1619 MTK_FUNCTION(1, "SCL6"), 1620 MTK_FUNCTION(2, "UTXD1"), 1621 MTK_FUNCTION(3, "TP_UTXD1_AO"), 1622 MTK_FUNCTION(4, "SCP_SCL0"), 1623 MTK_FUNCTION(5, "SCP_SCL1"), 1624 MTK_FUNCTION(7, "dbg_mon_b12") 1625 ), 1626 1627 MTK_PIN( 1628 140, "GPIO140", 1629 MTK_EINT_FUNCTION(0, 140), 1630 DRV_GRP4, 1631 MTK_FUNCTION(0, "GPIO140"), 1632 MTK_FUNCTION(1, "SDA6"), 1633 MTK_FUNCTION(2, "URXD1"), 1634 MTK_FUNCTION(3, "TP_URXD1_AO"), 1635 MTK_FUNCTION(4, "SCP_SDA0"), 1636 MTK_FUNCTION(5, "SCP_SDA1"), 1637 MTK_FUNCTION(7, "dbg_mon_b13") 1638 ), 1639 1640 MTK_PIN( 1641 141, "GPIO141", 1642 MTK_EINT_FUNCTION(0, 141), 1643 DRV_GRP4, 1644 MTK_FUNCTION(0, "GPIO141"), 1645 MTK_FUNCTION(1, "SCL7"), 1646 MTK_FUNCTION(2, "URTS0"), 1647 MTK_FUNCTION(3, "TP_URTS1_AO"), 1648 MTK_FUNCTION(4, "SCP_SCL0"), 1649 MTK_FUNCTION(5, "SCP_SCL1"), 1650 MTK_FUNCTION(6, "UDI_TCK"), 1651 MTK_FUNCTION(7, "dbg_mon_b14") 1652 ), 1653 1654 MTK_PIN( 1655 142, "GPIO142", 1656 MTK_EINT_FUNCTION(0, 142), 1657 DRV_GRP4, 1658 MTK_FUNCTION(0, "GPIO142"), 1659 MTK_FUNCTION(1, "SDA7"), 1660 MTK_FUNCTION(2, "UCTS0"), 1661 MTK_FUNCTION(3, "TP_UCTS1_AO"), 1662 MTK_FUNCTION(4, "SCP_SDA0"), 1663 MTK_FUNCTION(5, "SCP_SDA1") 1664 ), 1665 1666 MTK_PIN( 1667 143, "GPIO143", 1668 MTK_EINT_FUNCTION(0, 143), 1669 DRV_GRP4, 1670 MTK_FUNCTION(0, "GPIO143"), 1671 MTK_FUNCTION(1, "SCL8"), 1672 MTK_FUNCTION(4, "SCP_SCL0"), 1673 MTK_FUNCTION(5, "SCP_SCL1"), 1674 MTK_FUNCTION(7, "dbg_mon_b16") 1675 ), 1676 1677 MTK_PIN( 1678 144, "GPIO144", 1679 MTK_EINT_FUNCTION(0, 144), 1680 DRV_GRP4, 1681 MTK_FUNCTION(0, "GPIO144"), 1682 MTK_FUNCTION(1, "SDA8"), 1683 MTK_FUNCTION(4, "SCP_SDA0"), 1684 MTK_FUNCTION(5, "SCP_SDA1"), 1685 MTK_FUNCTION(7, "dbg_mon_b17") 1686 ), 1687 1688 MTK_PIN( 1689 145, "GPIO145", 1690 MTK_EINT_FUNCTION(0, 145), 1691 DRV_GRP4, 1692 MTK_FUNCTION(0, "GPIO145"), 1693 MTK_FUNCTION(1, "SCL9"), 1694 MTK_FUNCTION(2, "CMVREF1"), 1695 MTK_FUNCTION(3, "GPS_PPS"), 1696 MTK_FUNCTION(4, "SCP_SCL0"), 1697 MTK_FUNCTION(5, "SCP_SCL1"), 1698 MTK_FUNCTION(7, "dbg_mon_b18") 1699 ), 1700 1701 MTK_PIN( 1702 146, "GPIO146", 1703 MTK_EINT_FUNCTION(0, 146), 1704 DRV_GRP4, 1705 MTK_FUNCTION(0, "GPIO146"), 1706 MTK_FUNCTION(1, "SDA9"), 1707 MTK_FUNCTION(2, "CMVREF0"), 1708 MTK_FUNCTION(4, "SCP_SDA0"), 1709 MTK_FUNCTION(5, "SCP_SDA1"), 1710 MTK_FUNCTION(7, "dbg_mon_b19") 1711 ), 1712 1713 MTK_PIN( 1714 147, "GPIO147", 1715 MTK_EINT_FUNCTION(0, 147), 1716 DRV_GRP4, 1717 MTK_FUNCTION(0, "GPIO147"), 1718 MTK_FUNCTION(1, "CMFLASH0"), 1719 MTK_FUNCTION(2, "LVTS_SDI"), 1720 MTK_FUNCTION(3, "DPI_DATA12"), 1721 MTK_FUNCTION(4, "TP_GPIO0_AO"), 1722 MTK_FUNCTION(5, "ANT_SEL3"), 1723 MTK_FUNCTION(6, "DFD_TCK_XI"), 1724 MTK_FUNCTION(7, "dbg_mon_b20") 1725 ), 1726 1727 MTK_PIN( 1728 148, "GPIO148", 1729 MTK_EINT_FUNCTION(0, 148), 1730 DRV_GRP4, 1731 MTK_FUNCTION(0, "GPIO148"), 1732 MTK_FUNCTION(1, "CMFLASH1"), 1733 MTK_FUNCTION(2, "LVTS_SCF"), 1734 MTK_FUNCTION(3, "DPI_DATA13"), 1735 MTK_FUNCTION(4, "TP_GPIO1_AO"), 1736 MTK_FUNCTION(5, "ANT_SEL4"), 1737 MTK_FUNCTION(6, "DFD_TMS"), 1738 MTK_FUNCTION(7, "dbg_mon_b21") 1739 ), 1740 1741 MTK_PIN( 1742 149, "GPIO149", 1743 MTK_EINT_FUNCTION(0, 149), 1744 DRV_GRP4, 1745 MTK_FUNCTION(0, "GPIO149"), 1746 MTK_FUNCTION(1, "CMFLASH2"), 1747 MTK_FUNCTION(2, "CLKM0"), 1748 MTK_FUNCTION(3, "DPI_DATA14"), 1749 MTK_FUNCTION(4, "TP_GPIO2_AO"), 1750 MTK_FUNCTION(5, "ANT_SEL5"), 1751 MTK_FUNCTION(6, "DFD_TDI"), 1752 MTK_FUNCTION(7, "dbg_mon_b22") 1753 ), 1754 1755 MTK_PIN( 1756 150, "GPIO150", 1757 MTK_EINT_FUNCTION(0, 150), 1758 DRV_GRP4, 1759 MTK_FUNCTION(0, "GPIO150"), 1760 MTK_FUNCTION(2, "CLKM1"), 1761 MTK_FUNCTION(3, "DPI_DATA15"), 1762 MTK_FUNCTION(4, "TP_GPIO3_AO"), 1763 MTK_FUNCTION(5, "ANT_SEL6"), 1764 MTK_FUNCTION(6, "DFD_TDO"), 1765 MTK_FUNCTION(7, "dbg_mon_b23") 1766 ), 1767 1768 MTK_PIN( 1769 151, "GPIO151", 1770 MTK_EINT_FUNCTION(0, 151), 1771 DRV_GRP4, 1772 MTK_FUNCTION(0, "GPIO151"), 1773 MTK_FUNCTION(1, "GPS_L1_ELNA_EN"), 1774 MTK_FUNCTION(2, "CLKM2"), 1775 MTK_FUNCTION(3, "DPI_DATA16"), 1776 MTK_FUNCTION(4, "TP_GPIO4_AO"), 1777 MTK_FUNCTION(5, "ANT_SEL7"), 1778 MTK_FUNCTION(6, "UDI_TMS"), 1779 MTK_FUNCTION(7, "dbg_mon_b24") 1780 ), 1781 1782 MTK_PIN( 1783 152, "GPIO152", 1784 MTK_EINT_FUNCTION(0, 152), 1785 DRV_GRP4, 1786 MTK_FUNCTION(0, "GPIO152"), 1787 MTK_FUNCTION(2, "CLKM3"), 1788 MTK_FUNCTION(3, "DPI_DATA17"), 1789 MTK_FUNCTION(4, "TP_GPIO5_AO") 1790 ), 1791 1792 MTK_PIN( 1793 153, "GPIO153", 1794 MTK_EINT_FUNCTION(0, 153), 1795 DRV_GRP4, 1796 MTK_FUNCTION(0, "GPIO153"), 1797 MTK_FUNCTION(1, "CONN_TCXOENA_REQ"), 1798 MTK_FUNCTION(3, "DPI_DATA18"), 1799 MTK_FUNCTION(4, "TP_GPIO6_AO"), 1800 MTK_FUNCTION(6, "UDI_TDI"), 1801 MTK_FUNCTION(7, "dbg_mon_b26") 1802 ), 1803 1804 MTK_PIN( 1805 154, "GPIO154", 1806 MTK_EINT_FUNCTION(0, 154), 1807 DRV_GRP4, 1808 MTK_FUNCTION(0, "GPIO154"), 1809 MTK_FUNCTION(1, "PWM0"), 1810 MTK_FUNCTION(2, "CMVREF2"), 1811 MTK_FUNCTION(3, "DPI_DATA19"), 1812 MTK_FUNCTION(4, "TP_GPIO7_AO"), 1813 MTK_FUNCTION(6, "UDI_TDO"), 1814 MTK_FUNCTION(7, "dbg_mon_b27") 1815 ), 1816 1817 MTK_PIN( 1818 155, "GPIO155", 1819 MTK_EINT_FUNCTION(0, 155), 1820 DRV_GRP4, 1821 MTK_FUNCTION(0, "GPIO155"), 1822 MTK_FUNCTION(1, "PWM1"), 1823 MTK_FUNCTION(2, "CMVREF1"), 1824 MTK_FUNCTION(3, "DPI_DATA20"), 1825 MTK_FUNCTION(6, "UDI_NTRST"), 1826 MTK_FUNCTION(7, "dbg_mon_b28") 1827 ), 1828 1829 MTK_PIN( 1830 156, "GPIO156", 1831 MTK_EINT_FUNCTION(0, 156), 1832 DRV_GRP4, 1833 MTK_FUNCTION(0, "GPIO156"), 1834 MTK_FUNCTION(1, "PWM2"), 1835 MTK_FUNCTION(2, "CMVREF0"), 1836 MTK_FUNCTION(3, "DPI_DATA21") 1837 ), 1838 1839 MTK_PIN( 1840 157, "GPIO157", 1841 MTK_EINT_FUNCTION(0, 157), 1842 DRV_GRP4, 1843 MTK_FUNCTION(0, "GPIO157"), 1844 MTK_FUNCTION(1, "PWRAP_SPI0_CSN") 1845 ), 1846 1847 MTK_PIN( 1848 158, "GPIO158", 1849 MTK_EINT_FUNCTION(0, 158), 1850 DRV_GRP4, 1851 MTK_FUNCTION(0, "GPIO158"), 1852 MTK_FUNCTION(1, "PWRAP_SPI0_CK") 1853 ), 1854 1855 MTK_PIN( 1856 159, "GPIO159", 1857 MTK_EINT_FUNCTION(0, 159), 1858 DRV_GRP4, 1859 MTK_FUNCTION(0, "GPIO159"), 1860 MTK_FUNCTION(1, "PWRAP_SPI0_MO"), 1861 MTK_FUNCTION(2, "PWRAP_SPI0_MI") 1862 ), 1863 1864 MTK_PIN( 1865 160, "GPIO160", 1866 MTK_EINT_FUNCTION(0, 160), 1867 DRV_GRP4, 1868 MTK_FUNCTION(0, "GPIO160"), 1869 MTK_FUNCTION(1, "PWRAP_SPI0_MI"), 1870 MTK_FUNCTION(2, "PWRAP_SPI0_MO") 1871 ), 1872 1873 MTK_PIN( 1874 161, "GPIO161", 1875 MTK_EINT_FUNCTION(0, 161), 1876 DRV_GRP4, 1877 MTK_FUNCTION(0, "GPIO161"), 1878 MTK_FUNCTION(1, "SRCLKENA0") 1879 ), 1880 1881 MTK_PIN( 1882 162, "GPIO162", 1883 MTK_EINT_FUNCTION(0, 162), 1884 DRV_GRP4, 1885 MTK_FUNCTION(0, "GPIO162"), 1886 MTK_FUNCTION(1, "SRCLKENA1"), 1887 MTK_FUNCTION(7, "dbg_mon_a31") 1888 ), 1889 1890 MTK_PIN( 1891 163, "GPIO163", 1892 MTK_EINT_FUNCTION(0, 163), 1893 DRV_GRP4, 1894 MTK_FUNCTION(0, "GPIO163"), 1895 MTK_FUNCTION(1, "SCP_VREQ_VAO"), 1896 MTK_FUNCTION(2, "DVFSRC_EXT_REQ") 1897 ), 1898 1899 MTK_PIN( 1900 164, "GPIO164", 1901 MTK_EINT_FUNCTION(0, 164), 1902 DRV_GRP4, 1903 MTK_FUNCTION(0, "GPIO164"), 1904 MTK_FUNCTION(1, "RTC32K_CK") 1905 ), 1906 1907 MTK_PIN( 1908 165, "GPIO165", 1909 MTK_EINT_FUNCTION(0, 165), 1910 DRV_GRP4, 1911 MTK_FUNCTION(0, "GPIO165"), 1912 MTK_FUNCTION(1, "WATCHDOG") 1913 ), 1914 1915 MTK_PIN( 1916 166, "GPIO166", 1917 MTK_EINT_FUNCTION(0, 166), 1918 DRV_GRP4, 1919 MTK_FUNCTION(0, "GPIO166"), 1920 MTK_FUNCTION(1, "AUD_CLK_MOSI"), 1921 MTK_FUNCTION(2, "AUD_CLK_MISO"), 1922 MTK_FUNCTION(3, "I2S1_MCK") 1923 ), 1924 1925 MTK_PIN( 1926 167, "GPIO167", 1927 MTK_EINT_FUNCTION(0, 167), 1928 DRV_GRP4, 1929 MTK_FUNCTION(0, "GPIO167"), 1930 MTK_FUNCTION(1, "AUD_SYNC_MOSI"), 1931 MTK_FUNCTION(2, "AUD_SYNC_MISO"), 1932 MTK_FUNCTION(3, "I2S1_BCK") 1933 ), 1934 1935 MTK_PIN( 1936 168, "GPIO168", 1937 MTK_EINT_FUNCTION(0, 168), 1938 DRV_GRP4, 1939 MTK_FUNCTION(0, "GPIO168"), 1940 MTK_FUNCTION(1, "AUD_DAT_MOSI0"), 1941 MTK_FUNCTION(2, "AUD_DAT_MISO0"), 1942 MTK_FUNCTION(3, "I2S1_LRCK") 1943 ), 1944 1945 MTK_PIN( 1946 169, "GPIO169", 1947 MTK_EINT_FUNCTION(0, 169), 1948 DRV_GRP4, 1949 MTK_FUNCTION(0, "GPIO169"), 1950 MTK_FUNCTION(1, "AUD_DAT_MOSI1"), 1951 MTK_FUNCTION(2, "AUD_DAT_MISO1"), 1952 MTK_FUNCTION(3, "I2S1_DO") 1953 ), 1954 1955 MTK_PIN( 1956 170, "GPIO170", 1957 MTK_EINT_FUNCTION(0, 170), 1958 DRV_GRP4, 1959 MTK_FUNCTION(0, "GPIO170"), 1960 MTK_FUNCTION(1, "AUD_CLK_MISO"), 1961 MTK_FUNCTION(2, "AUD_CLK_MOSI"), 1962 MTK_FUNCTION(3, "I2S2_MCK") 1963 ), 1964 1965 MTK_PIN( 1966 171, "GPIO171", 1967 MTK_EINT_FUNCTION(0, 171), 1968 DRV_GRP4, 1969 MTK_FUNCTION(0, "GPIO171"), 1970 MTK_FUNCTION(1, "AUD_SYNC_MISO"), 1971 MTK_FUNCTION(2, "AUD_SYNC_MOSI"), 1972 MTK_FUNCTION(3, "I2S2_BCK") 1973 ), 1974 1975 MTK_PIN( 1976 172, "GPIO172", 1977 MTK_EINT_FUNCTION(0, 172), 1978 DRV_GRP4, 1979 MTK_FUNCTION(0, "GPIO172"), 1980 MTK_FUNCTION(1, "AUD_DAT_MISO0"), 1981 MTK_FUNCTION(2, "AUD_DAT_MOSI0"), 1982 MTK_FUNCTION(3, "I2S2_LRCK"), 1983 MTK_FUNCTION(4, "VOW_DAT_MISO") 1984 ), 1985 1986 MTK_PIN( 1987 173, "GPIO173", 1988 MTK_EINT_FUNCTION(0, 173), 1989 DRV_GRP4, 1990 MTK_FUNCTION(0, "GPIO173"), 1991 MTK_FUNCTION(1, "AUD_DAT_MISO1"), 1992 MTK_FUNCTION(2, "AUD_DAT_MOSI1"), 1993 MTK_FUNCTION(3, "I2S2_DI"), 1994 MTK_FUNCTION(4, "VOW_CLK_MISO") 1995 ), 1996 1997 MTK_PIN( 1998 174, "GPIO174", 1999 MTK_EINT_FUNCTION(0, 174), 2000 DRV_GRP4, 2001 MTK_FUNCTION(0, "GPIO174"), 2002 MTK_FUNCTION(1, "CONN_TOP_CLK"), 2003 MTK_FUNCTION(2, "AUXIF_CLK"), 2004 MTK_FUNCTION(3, "DFD_TCK_XI"), 2005 MTK_FUNCTION(7, "dbg_mon_b3") 2006 ), 2007 2008 MTK_PIN( 2009 175, "GPIO175", 2010 MTK_EINT_FUNCTION(0, 175), 2011 DRV_GRP4, 2012 MTK_FUNCTION(0, "GPIO175"), 2013 MTK_FUNCTION(1, "CONN_TOP_DATA"), 2014 MTK_FUNCTION(2, "AUXIF_ST"), 2015 MTK_FUNCTION(3, "DFD_TMS"), 2016 MTK_FUNCTION(7, "dbg_mon_b15") 2017 ), 2018 2019 MTK_PIN( 2020 176, "GPIO176", 2021 MTK_EINT_FUNCTION(0, 176), 2022 DRV_GRP4, 2023 MTK_FUNCTION(0, "GPIO176"), 2024 MTK_FUNCTION(1, "CONN_BT_CLK"), 2025 MTK_FUNCTION(3, "DFD_TDI"), 2026 MTK_FUNCTION(7, "dbg_mon_b2") 2027 ), 2028 2029 MTK_PIN( 2030 177, "GPIO177", 2031 MTK_EINT_FUNCTION(0, 177), 2032 DRV_GRP4, 2033 MTK_FUNCTION(0, "GPIO177"), 2034 MTK_FUNCTION(1, "CONN_BT_DATA"), 2035 MTK_FUNCTION(3, "DFD_TDO") 2036 ), 2037 2038 MTK_PIN( 2039 178, "GPIO178", 2040 MTK_EINT_FUNCTION(0, 178), 2041 DRV_GRP4, 2042 MTK_FUNCTION(0, "GPIO178"), 2043 MTK_FUNCTION(1, "CONN_HRST_B"), 2044 MTK_FUNCTION(3, "UDI_TMS"), 2045 MTK_FUNCTION(7, "dbg_mon_b25") 2046 ), 2047 2048 MTK_PIN( 2049 179, "GPIO179", 2050 MTK_EINT_FUNCTION(0, 179), 2051 DRV_GRP4, 2052 MTK_FUNCTION(0, "GPIO179"), 2053 MTK_FUNCTION(1, "CONN_WB_PTA"), 2054 MTK_FUNCTION(3, "UDI_TCK"), 2055 MTK_FUNCTION(7, "dbg_mon_b29") 2056 ), 2057 2058 MTK_PIN( 2059 180, "GPIO180", 2060 MTK_EINT_FUNCTION(0, 180), 2061 DRV_GRP4, 2062 MTK_FUNCTION(0, "GPIO180"), 2063 MTK_FUNCTION(1, "CONN_WF_CTRL0"), 2064 MTK_FUNCTION(3, "UDI_TDI") 2065 ), 2066 2067 MTK_PIN( 2068 181, "GPIO181", 2069 MTK_EINT_FUNCTION(0, 181), 2070 DRV_GRP4, 2071 MTK_FUNCTION(0, "GPIO181"), 2072 MTK_FUNCTION(1, "CONN_WF_CTRL1"), 2073 MTK_FUNCTION(3, "UDI_TDO") 2074 ), 2075 2076 MTK_PIN( 2077 182, "GPIO182", 2078 MTK_EINT_FUNCTION(0, 182), 2079 DRV_GRP4, 2080 MTK_FUNCTION(0, "GPIO182"), 2081 MTK_FUNCTION(1, "CONN_WF_CTRL2"), 2082 MTK_FUNCTION(3, "UDI_NTRST") 2083 ), 2084 2085 MTK_PIN( 2086 183, "GPIO183", 2087 MTK_EINT_FUNCTION(0, 183), 2088 DRV_GRP4, 2089 MTK_FUNCTION(0, "GPIO183"), 2090 MTK_FUNCTION(1, "SPMI_SCL") 2091 ), 2092 2093 MTK_PIN( 2094 184, "GPIO184", 2095 MTK_EINT_FUNCTION(0, 184), 2096 DRV_GRP4, 2097 MTK_FUNCTION(0, "GPIO184"), 2098 MTK_FUNCTION(1, "SPMI_SDA") 2099 ), 2100 2101 MTK_PIN( 2102 185, "GPIO185", 2103 MTK_EINT_FUNCTION(0, 197), 2104 DRV_FIXED, 2105 MTK_FUNCTION(0, NULL) 2106 ), 2107 2108 MTK_PIN( 2109 186, "GPIO186", 2110 MTK_EINT_FUNCTION(0, 198), 2111 DRV_FIXED, 2112 MTK_FUNCTION(0, NULL) 2113 ), 2114 2115 MTK_PIN( 2116 187, "GPIO187", 2117 MTK_EINT_FUNCTION(0, 199), 2118 DRV_FIXED, 2119 MTK_FUNCTION(0, NULL) 2120 ), 2121 2122 MTK_PIN( 2123 188, "GPIO188", 2124 MTK_EINT_FUNCTION(0, 200), 2125 DRV_FIXED, 2126 MTK_FUNCTION(0, NULL) 2127 ), 2128 2129 MTK_PIN( 2130 189, "GPIO189", 2131 MTK_EINT_FUNCTION(0, 201), 2132 DRV_FIXED, 2133 MTK_FUNCTION(0, NULL) 2134 ), 2135 2136 MTK_PIN( 2137 190, "GPIO190", 2138 MTK_EINT_FUNCTION(0, 202), 2139 DRV_FIXED, 2140 MTK_FUNCTION(0, NULL) 2141 ), 2142 2143 MTK_PIN( 2144 191, "GPIO191", 2145 MTK_EINT_FUNCTION(0, 203), 2146 DRV_FIXED, 2147 MTK_FUNCTION(0, NULL) 2148 ), 2149 2150 MTK_PIN( 2151 192, "GPIO192", 2152 MTK_EINT_FUNCTION(0, 204), 2153 DRV_FIXED, 2154 MTK_FUNCTION(0, NULL) 2155 ), 2156 2157 MTK_PIN( 2158 193, "GPIO193", 2159 MTK_EINT_FUNCTION(0, 205), 2160 DRV_FIXED, 2161 MTK_FUNCTION(0, NULL) 2162 ), 2163 2164 MTK_PIN( 2165 194, "GPIO194", 2166 MTK_EINT_FUNCTION(0, 206), 2167 DRV_FIXED, 2168 MTK_FUNCTION(0, NULL) 2169 ), 2170 2171 MTK_PIN( 2172 195, "GPIO195", 2173 MTK_EINT_FUNCTION(0, 207), 2174 DRV_FIXED, 2175 MTK_FUNCTION(0, NULL) 2176 ), 2177 2178 MTK_PIN( 2179 196, "GPIO196", 2180 MTK_EINT_FUNCTION(0, 208), 2181 DRV_FIXED, 2182 MTK_FUNCTION(0, NULL) 2183 ) 2184 }; 2185 2186 #endif /* __PINCTRL_MTK_MT8186_H */ 2187