root/drivers/pinctrl/mediatek/pinctrl-mtk-mt6765.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


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

/* [<][>][^][v][top][bottom][index][help] */