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

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

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0-only */
   2 /*
   3  * Copyright (c) 2014 MediaTek Inc.
   4  * Author: Hongzhou.Yang <hongzhou.yang@mediatek.com>
   5  */
   6 
   7 #ifndef __PINCTRL_MTK_MT8173_H
   8 #define __PINCTRL_MTK_MT8173_H
   9 
  10 #include <linux/pinctrl/pinctrl.h>
  11 #include "pinctrl-mtk-common.h"
  12 
  13 static const struct mtk_desc_pin mtk_pins_mt8173[] = {
  14         MTK_PIN(PINCTRL_PIN(0, "EINT0"),
  15                 NULL, "mt8173",
  16                 MTK_EINT_FUNCTION(0, 0),
  17                 MTK_FUNCTION(0, "GPIO0"),
  18                 MTK_FUNCTION(1, "IRDA_PDN"),
  19                 MTK_FUNCTION(2, "I2S1_WS"),
  20                 MTK_FUNCTION(3, "AUD_SPDIF"),
  21                 MTK_FUNCTION(4, "UTXD0"),
  22                 MTK_FUNCTION(7, "DBG_MON_A_20_")
  23         ),
  24         MTK_PIN(PINCTRL_PIN(1, "EINT1"),
  25                 NULL, "mt8173",
  26                 MTK_EINT_FUNCTION(0, 1),
  27                 MTK_FUNCTION(0, "GPIO1"),
  28                 MTK_FUNCTION(1, "IRDA_RXD"),
  29                 MTK_FUNCTION(2, "I2S1_BCK"),
  30                 MTK_FUNCTION(3, "SDA5"),
  31                 MTK_FUNCTION(4, "URXD0"),
  32                 MTK_FUNCTION(7, "DBG_MON_A_21_")
  33         ),
  34         MTK_PIN(PINCTRL_PIN(2, "EINT2"),
  35                 NULL, "mt8173",
  36                 MTK_EINT_FUNCTION(0, 2),
  37                 MTK_FUNCTION(0, "GPIO2"),
  38                 MTK_FUNCTION(1, "IRDA_TXD"),
  39                 MTK_FUNCTION(2, "I2S1_MCK"),
  40                 MTK_FUNCTION(3, "SCL5"),
  41                 MTK_FUNCTION(4, "UTXD3"),
  42                 MTK_FUNCTION(7, "DBG_MON_A_22_")
  43         ),
  44         MTK_PIN(PINCTRL_PIN(3, "EINT3"),
  45                 NULL, "mt8173",
  46                 MTK_EINT_FUNCTION(0, 3),
  47                 MTK_FUNCTION(0, "GPIO3"),
  48                 MTK_FUNCTION(1, "DSI1_TE"),
  49                 MTK_FUNCTION(2, "I2S1_DO_1"),
  50                 MTK_FUNCTION(3, "SDA3"),
  51                 MTK_FUNCTION(4, "URXD3"),
  52                 MTK_FUNCTION(7, "DBG_MON_A_23_")
  53         ),
  54         MTK_PIN(PINCTRL_PIN(4, "EINT4"),
  55                 NULL, "mt8173",
  56                 MTK_EINT_FUNCTION(0, 4),
  57                 MTK_FUNCTION(0, "GPIO4"),
  58                 MTK_FUNCTION(1, "DISP_PWM1"),
  59                 MTK_FUNCTION(2, "I2S1_DO_2"),
  60                 MTK_FUNCTION(3, "SCL3"),
  61                 MTK_FUNCTION(4, "UCTS3"),
  62                 MTK_FUNCTION(6, "SFWP_B")
  63         ),
  64         MTK_PIN(PINCTRL_PIN(5, "EINT5"),
  65                 NULL, "mt8173",
  66                 MTK_EINT_FUNCTION(0, 5),
  67                 MTK_FUNCTION(0, "GPIO5"),
  68                 MTK_FUNCTION(1, "PCM1_CLK"),
  69                 MTK_FUNCTION(2, "I2S2_WS"),
  70                 MTK_FUNCTION(3, "SPI_CK_3_"),
  71                 MTK_FUNCTION(4, "URTS3"),
  72                 MTK_FUNCTION(5, "AP_MD32_JTAG_TMS"),
  73                 MTK_FUNCTION(6, "SFOUT")
  74         ),
  75         MTK_PIN(PINCTRL_PIN(6, "EINT6"),
  76                 NULL, "mt8173",
  77                 MTK_EINT_FUNCTION(0, 6),
  78                 MTK_FUNCTION(0, "GPIO6"),
  79                 MTK_FUNCTION(1, "PCM1_SYNC"),
  80                 MTK_FUNCTION(2, "I2S2_BCK"),
  81                 MTK_FUNCTION(3, "SPI_MI_3_"),
  82                 MTK_FUNCTION(5, "AP_MD32_JTAG_TCK"),
  83                 MTK_FUNCTION(6, "SFCS0")
  84         ),
  85         MTK_PIN(PINCTRL_PIN(7, "EINT7"),
  86                 NULL, "mt8173",
  87                 MTK_EINT_FUNCTION(0, 7),
  88                 MTK_FUNCTION(0, "GPIO7"),
  89                 MTK_FUNCTION(1, "PCM1_DI"),
  90                 MTK_FUNCTION(2, "I2S2_DI_1"),
  91                 MTK_FUNCTION(3, "SPI_MO_3_"),
  92                 MTK_FUNCTION(5, "AP_MD32_JTAG_TDI"),
  93                 MTK_FUNCTION(6, "SFHOLD")
  94         ),
  95         MTK_PIN(PINCTRL_PIN(8, "EINT8"),
  96                 NULL, "mt8173",
  97                 MTK_EINT_FUNCTION(0, 8),
  98                 MTK_FUNCTION(0, "GPIO8"),
  99                 MTK_FUNCTION(1, "PCM1_DO"),
 100                 MTK_FUNCTION(2, "I2S2_DI_2"),
 101                 MTK_FUNCTION(3, "SPI_CS_3_"),
 102                 MTK_FUNCTION(4, "AUD_SPDIF"),
 103                 MTK_FUNCTION(5, "AP_MD32_JTAG_TDO"),
 104                 MTK_FUNCTION(6, "SFIN")
 105         ),
 106         MTK_PIN(PINCTRL_PIN(9, "EINT9"),
 107                 NULL, "mt8173",
 108                 MTK_EINT_FUNCTION(0, 9),
 109                 MTK_FUNCTION(0, "GPIO9"),
 110                 MTK_FUNCTION(1, "USB_DRVVBUS_P0"),
 111                 MTK_FUNCTION(2, "I2S2_MCK"),
 112                 MTK_FUNCTION(4, "USB_DRVVBUS_P1"),
 113                 MTK_FUNCTION(5, "AP_MD32_JTAG_TRST"),
 114                 MTK_FUNCTION(6, "SFCK")
 115         ),
 116         MTK_PIN(PINCTRL_PIN(10, "EINT10"),
 117                 NULL, "mt8173",
 118                 MTK_EINT_FUNCTION(0, 10),
 119                 MTK_FUNCTION(0, "GPIO10"),
 120                 MTK_FUNCTION(1, "CLKM0"),
 121                 MTK_FUNCTION(2, "DSI1_TE"),
 122                 MTK_FUNCTION(3, "DISP_PWM1"),
 123                 MTK_FUNCTION(4, "PWM4"),
 124                 MTK_FUNCTION(5, "IRDA_RXD")
 125         ),
 126         MTK_PIN(PINCTRL_PIN(11, "EINT11"),
 127                 NULL, "mt8173",
 128                 MTK_EINT_FUNCTION(0, 11),
 129                 MTK_FUNCTION(0, "GPIO11"),
 130                 MTK_FUNCTION(1, "CLKM1"),
 131                 MTK_FUNCTION(2, "I2S3_WS"),
 132                 MTK_FUNCTION(3, "USB_DRVVBUS_P0"),
 133                 MTK_FUNCTION(4, "PWM5"),
 134                 MTK_FUNCTION(5, "IRDA_TXD"),
 135                 MTK_FUNCTION(6, "USB_DRVVBUS_P1"),
 136                 MTK_FUNCTION(7, "DBG_MON_B_30_")
 137         ),
 138         MTK_PIN(PINCTRL_PIN(12, "EINT12"),
 139                 NULL, "mt8173",
 140                 MTK_EINT_FUNCTION(0, 12),
 141                 MTK_FUNCTION(0, "GPIO12"),
 142                 MTK_FUNCTION(1, "CLKM2"),
 143                 MTK_FUNCTION(2, "I2S3_BCK"),
 144                 MTK_FUNCTION(3, "SRCLKENA0"),
 145                 MTK_FUNCTION(5, "I2S2_WS"),
 146                 MTK_FUNCTION(7, "DBG_MON_B_32_")
 147         ),
 148         MTK_PIN(PINCTRL_PIN(13, "EINT13"),
 149                 NULL, "mt8173",
 150                 MTK_EINT_FUNCTION(0, 13),
 151                 MTK_FUNCTION(0, "GPIO13"),
 152                 MTK_FUNCTION(1, "CLKM3"),
 153                 MTK_FUNCTION(2, "I2S3_MCK"),
 154                 MTK_FUNCTION(3, "SRCLKENA0"),
 155                 MTK_FUNCTION(5, "I2S2_BCK"),
 156                 MTK_FUNCTION(7, "DBG_MON_A_32_")
 157         ),
 158         MTK_PIN(PINCTRL_PIN(14, "EINT14"),
 159                 NULL, "mt8173",
 160                 MTK_EINT_FUNCTION(0, 14),
 161                 MTK_FUNCTION(0, "GPIO14"),
 162                 MTK_FUNCTION(1, "CMDAT0"),
 163                 MTK_FUNCTION(2, "CMCSD0"),
 164                 MTK_FUNCTION(4, "CLKM2"),
 165                 MTK_FUNCTION(7, "DBG_MON_B_6_")
 166         ),
 167         MTK_PIN(PINCTRL_PIN(15, "EINT15"),
 168                 NULL, "mt8173",
 169                 MTK_EINT_FUNCTION(0, 15),
 170                 MTK_FUNCTION(0, "GPIO15"),
 171                 MTK_FUNCTION(1, "CMDAT1"),
 172                 MTK_FUNCTION(2, "CMCSD1"),
 173                 MTK_FUNCTION(3, "CMFLASH"),
 174                 MTK_FUNCTION(4, "CLKM3"),
 175                 MTK_FUNCTION(7, "DBG_MON_B_29_")
 176         ),
 177         MTK_PIN(PINCTRL_PIN(16, "IDDIG"),
 178                 NULL, "mt8173",
 179                 MTK_EINT_FUNCTION(1, 16),
 180                 MTK_FUNCTION(0, "GPIO16"),
 181                 MTK_FUNCTION(1, "IDDIG"),
 182                 MTK_FUNCTION(2, "CMFLASH"),
 183                 MTK_FUNCTION(4, "PWM5")
 184         ),
 185         MTK_PIN(PINCTRL_PIN(17, "WATCHDOG"),
 186                 NULL, "mt8173",
 187                 MTK_EINT_FUNCTION(0, 17),
 188                 MTK_FUNCTION(0, "GPIO17"),
 189                 MTK_FUNCTION(1, "WATCHDOG_AO")
 190         ),
 191         MTK_PIN(PINCTRL_PIN(18, "CEC"),
 192                 NULL, "mt8173",
 193                 MTK_EINT_FUNCTION(0, 18),
 194                 MTK_FUNCTION(0, "GPIO18"),
 195                 MTK_FUNCTION(1, "CEC")
 196         ),
 197         MTK_PIN(PINCTRL_PIN(19, "HDMISCK"),
 198                 NULL, "mt8173",
 199                 MTK_EINT_FUNCTION(0, 19),
 200                 MTK_FUNCTION(0, "GPIO19"),
 201                 MTK_FUNCTION(1, "HDMISCK"),
 202                 MTK_FUNCTION(2, "HDCP_SCL")
 203         ),
 204         MTK_PIN(PINCTRL_PIN(20, "HDMISD"),
 205                 NULL, "mt8173",
 206                 MTK_EINT_FUNCTION(0, 20),
 207                 MTK_FUNCTION(0, "GPIO20"),
 208                 MTK_FUNCTION(1, "HDMISD"),
 209                 MTK_FUNCTION(2, "HDCP_SDA")
 210         ),
 211         MTK_PIN(PINCTRL_PIN(21, "HTPLG"),
 212                 NULL, "mt8173",
 213                 MTK_EINT_FUNCTION(0, 21),
 214                 MTK_FUNCTION(0, "GPIO21"),
 215                 MTK_FUNCTION(1, "HTPLG")
 216         ),
 217         MTK_PIN(PINCTRL_PIN(22, "MSDC3_DAT0"),
 218                 NULL, "mt8173",
 219                 MTK_EINT_FUNCTION(0, 22),
 220                 MTK_FUNCTION(0, "GPIO22"),
 221                 MTK_FUNCTION(1, "MSDC3_DAT0")
 222         ),
 223         MTK_PIN(PINCTRL_PIN(23, "MSDC3_DAT1"),
 224                 NULL, "mt8173",
 225                 MTK_EINT_FUNCTION(0, 23),
 226                 MTK_FUNCTION(0, "GPIO23"),
 227                 MTK_FUNCTION(1, "MSDC3_DAT1")
 228         ),
 229         MTK_PIN(PINCTRL_PIN(24, "MSDC3_DAT2"),
 230                 NULL, "mt8173",
 231                 MTK_EINT_FUNCTION(0, 24),
 232                 MTK_FUNCTION(0, "GPIO24"),
 233                 MTK_FUNCTION(1, "MSDC3_DAT2")
 234         ),
 235         MTK_PIN(PINCTRL_PIN(25, "MSDC3_DAT3"),
 236                 NULL, "mt8173",
 237                 MTK_EINT_FUNCTION(0, 25),
 238                 MTK_FUNCTION(0, "GPIO25"),
 239                 MTK_FUNCTION(1, "MSDC3_DAT3")
 240         ),
 241         MTK_PIN(PINCTRL_PIN(26, "MSDC3_CLK"),
 242                 NULL, "mt8173",
 243                 MTK_EINT_FUNCTION(0, 26),
 244                 MTK_FUNCTION(0, "GPIO26"),
 245                 MTK_FUNCTION(1, "MSDC3_CLK")
 246         ),
 247         MTK_PIN(PINCTRL_PIN(27, "MSDC3_CMD"),
 248                 NULL, "mt8173",
 249                 MTK_EINT_FUNCTION(0, 27),
 250                 MTK_FUNCTION(0, "GPIO27"),
 251                 MTK_FUNCTION(1, "MSDC3_CMD")
 252         ),
 253         MTK_PIN(PINCTRL_PIN(28, "MSDC3_DSL"),
 254                 NULL, "mt8173",
 255                 MTK_EINT_FUNCTION(0, 28),
 256                 MTK_FUNCTION(0, "GPIO28"),
 257                 MTK_FUNCTION(1, "MSDC3_DSL")
 258         ),
 259         MTK_PIN(PINCTRL_PIN(29, "UCTS2"),
 260                 NULL, "mt8173",
 261                 MTK_EINT_FUNCTION(0, 29),
 262                 MTK_FUNCTION(0, "GPIO29"),
 263                 MTK_FUNCTION(1, "UCTS2")
 264         ),
 265         MTK_PIN(PINCTRL_PIN(30, "URTS2"),
 266                 NULL, "mt8173",
 267                 MTK_EINT_FUNCTION(0, 30),
 268                 MTK_FUNCTION(0, "GPIO30"),
 269                 MTK_FUNCTION(1, "URTS2")
 270         ),
 271         MTK_PIN(PINCTRL_PIN(31, "URXD2"),
 272                 NULL, "mt8173",
 273                 MTK_EINT_FUNCTION(0, 31),
 274                 MTK_FUNCTION(0, "GPIO31"),
 275                 MTK_FUNCTION(1, "URXD2"),
 276                 MTK_FUNCTION(2, "UTXD2")
 277         ),
 278         MTK_PIN(PINCTRL_PIN(32, "UTXD2"),
 279                 NULL, "mt8173",
 280                 MTK_EINT_FUNCTION(0, 32),
 281                 MTK_FUNCTION(0, "GPIO32"),
 282                 MTK_FUNCTION(1, "UTXD2"),
 283                 MTK_FUNCTION(2, "URXD2")
 284         ),
 285         MTK_PIN(PINCTRL_PIN(33, "DAICLK"),
 286                 NULL, "mt8173",
 287                 MTK_EINT_FUNCTION(0, 33),
 288                 MTK_FUNCTION(0, "GPIO33"),
 289                 MTK_FUNCTION(1, " MRG_CLK"),
 290                 MTK_FUNCTION(2, "PCM0_CLK")
 291         ),
 292         MTK_PIN(PINCTRL_PIN(34, "DAIPCMIN"),
 293                 NULL, "mt8173",
 294                 MTK_EINT_FUNCTION(0, 34),
 295                 MTK_FUNCTION(0, "GPIO34"),
 296                 MTK_FUNCTION(1, " MRG_DI"),
 297                 MTK_FUNCTION(2, "PCM0_DI")
 298         ),
 299         MTK_PIN(PINCTRL_PIN(35, "DAIPCMOUT"),
 300                 NULL, "mt8173",
 301                 MTK_EINT_FUNCTION(0, 35),
 302                 MTK_FUNCTION(0, "GPIO35"),
 303                 MTK_FUNCTION(1, " MRG_DO"),
 304                 MTK_FUNCTION(2, "PCM0_DO")
 305         ),
 306         MTK_PIN(PINCTRL_PIN(36, "DAISYNC"),
 307                 NULL, "mt8173",
 308                 MTK_EINT_FUNCTION(0, 36),
 309                 MTK_FUNCTION(0, "GPIO36"),
 310                 MTK_FUNCTION(1, " MRG_SYNC"),
 311                 MTK_FUNCTION(2, "PCM0_SYNC")
 312         ),
 313         MTK_PIN(PINCTRL_PIN(37, "EINT16"),
 314                 NULL, "mt8173",
 315                 MTK_EINT_FUNCTION(0, 37),
 316                 MTK_FUNCTION(0, "GPIO37"),
 317                 MTK_FUNCTION(1, "USB_DRVVBUS_P0"),
 318                 MTK_FUNCTION(2, "USB_DRVVBUS_P1"),
 319                 MTK_FUNCTION(3, "PWM0"),
 320                 MTK_FUNCTION(4, "PWM1"),
 321                 MTK_FUNCTION(5, "PWM2"),
 322                 MTK_FUNCTION(6, "CLKM0")
 323         ),
 324         MTK_PIN(PINCTRL_PIN(38, "CONN_RST"),
 325                 NULL, "mt8173",
 326                 MTK_EINT_FUNCTION(0, 38),
 327                 MTK_FUNCTION(0, "GPIO38"),
 328                 MTK_FUNCTION(1, "USB_DRVVBUS_P0"),
 329                 MTK_FUNCTION(2, "USB_DRVVBUS_P1"),
 330                 MTK_FUNCTION(6, "CLKM1")
 331         ),
 332         MTK_PIN(PINCTRL_PIN(39, "CM2MCLK"),
 333                 NULL, "mt8173",
 334                 MTK_EINT_FUNCTION(0, 39),
 335                 MTK_FUNCTION(0, "GPIO39"),
 336                 MTK_FUNCTION(1, "CM2MCLK"),
 337                 MTK_FUNCTION(2, "CMCSD0"),
 338                 MTK_FUNCTION(7, "DBG_MON_A_17_")
 339         ),
 340         MTK_PIN(PINCTRL_PIN(40, "CMPCLK"),
 341                 NULL, "mt8173",
 342                 MTK_EINT_FUNCTION(0, 40),
 343                 MTK_FUNCTION(0, "GPIO40"),
 344                 MTK_FUNCTION(1, "CMPCLK"),
 345                 MTK_FUNCTION(2, "CMCSK"),
 346                 MTK_FUNCTION(3, "CMCSD2"),
 347                 MTK_FUNCTION(7, "DBG_MON_A_18_")
 348         ),
 349         MTK_PIN(PINCTRL_PIN(41, "CMMCLK"),
 350                 NULL, "mt8173",
 351                 MTK_EINT_FUNCTION(0, 41),
 352                 MTK_FUNCTION(0, "GPIO41"),
 353                 MTK_FUNCTION(1, "CMMCLK"),
 354                 MTK_FUNCTION(7, "DBG_MON_A_19_")
 355         ),
 356         MTK_PIN(PINCTRL_PIN(42, "DSI_TE"),
 357                 NULL, "mt8173",
 358                 MTK_EINT_FUNCTION(0, 42),
 359                 MTK_FUNCTION(0, "GPIO42"),
 360                 MTK_FUNCTION(1, "DSI_TE")
 361         ),
 362         MTK_PIN(PINCTRL_PIN(43, "SDA2"),
 363                 NULL, "mt8173",
 364                 MTK_EINT_FUNCTION(0, 43),
 365                 MTK_FUNCTION(0, "GPIO43"),
 366                 MTK_FUNCTION(1, "SDA2")
 367         ),
 368         MTK_PIN(PINCTRL_PIN(44, "SCL2"),
 369                 NULL, "mt8173",
 370                 MTK_EINT_FUNCTION(0, 44),
 371                 MTK_FUNCTION(0, "GPIO44"),
 372                 MTK_FUNCTION(1, "SCL2")
 373         ),
 374         MTK_PIN(PINCTRL_PIN(45, "SDA0"),
 375                 NULL, "mt8173",
 376                 MTK_EINT_FUNCTION(0, 45),
 377                 MTK_FUNCTION(0, "GPIO45"),
 378                 MTK_FUNCTION(1, "SDA0")
 379         ),
 380         MTK_PIN(PINCTRL_PIN(46, "SCL0"),
 381                 NULL, "mt8173",
 382                 MTK_EINT_FUNCTION(0, 46),
 383                 MTK_FUNCTION(0, "GPIO46"),
 384                 MTK_FUNCTION(1, "SCL0")
 385         ),
 386         MTK_PIN(PINCTRL_PIN(47, "RDN0_A"),
 387                 NULL, "mt8173",
 388                 MTK_EINT_FUNCTION(0, 47),
 389                 MTK_FUNCTION(0, "GPIO47"),
 390                 MTK_FUNCTION(1, "CMDAT2")
 391         ),
 392         MTK_PIN(PINCTRL_PIN(48, "RDP0_A"),
 393                 NULL, "mt8173",
 394                 MTK_EINT_FUNCTION(0, 48),
 395                 MTK_FUNCTION(0, "GPIO48"),
 396                 MTK_FUNCTION(1, "CMDAT3")
 397         ),
 398         MTK_PIN(PINCTRL_PIN(49, "RDN1_A"),
 399                 NULL, "mt8173",
 400                 MTK_EINT_FUNCTION(0, 49),
 401                 MTK_FUNCTION(0, "GPIO49"),
 402                 MTK_FUNCTION(1, "CMDAT4")
 403         ),
 404         MTK_PIN(PINCTRL_PIN(50, "RDP1_A"),
 405                 NULL, "mt8173",
 406                 MTK_EINT_FUNCTION(0, 50),
 407                 MTK_FUNCTION(0, "GPIO50"),
 408                 MTK_FUNCTION(1, "CMDAT5")
 409         ),
 410         MTK_PIN(PINCTRL_PIN(51, "RCN_A"),
 411                 NULL, "mt8173",
 412                 MTK_EINT_FUNCTION(0, 51),
 413                 MTK_FUNCTION(0, "GPIO51"),
 414                 MTK_FUNCTION(1, "CMDAT6")
 415         ),
 416         MTK_PIN(PINCTRL_PIN(52, "RCP_A"),
 417                 NULL, "mt8173",
 418                 MTK_EINT_FUNCTION(0, 52),
 419                 MTK_FUNCTION(0, "GPIO52"),
 420                 MTK_FUNCTION(1, "CMDAT7")
 421         ),
 422         MTK_PIN(PINCTRL_PIN(53, "RDN2_A"),
 423                 NULL, "mt8173",
 424                 MTK_EINT_FUNCTION(0, 53),
 425                 MTK_FUNCTION(0, "GPIO53"),
 426                 MTK_FUNCTION(1, "CMDAT8"),
 427                 MTK_FUNCTION(2, "CMCSD3")
 428         ),
 429         MTK_PIN(PINCTRL_PIN(54, "RDP2_A"),
 430                 NULL, "mt8173",
 431                 MTK_EINT_FUNCTION(0, 54),
 432                 MTK_FUNCTION(0, "GPIO54"),
 433                 MTK_FUNCTION(1, "CMDAT9"),
 434                 MTK_FUNCTION(2, "CMCSD2")
 435         ),
 436         MTK_PIN(PINCTRL_PIN(55, "RDN3_A"),
 437                 NULL, "mt8173",
 438                 MTK_EINT_FUNCTION(0, 55),
 439                 MTK_FUNCTION(0, "GPIO55"),
 440                 MTK_FUNCTION(1, "CMHSYNC"),
 441                 MTK_FUNCTION(2, "CMCSD1")
 442         ),
 443         MTK_PIN(PINCTRL_PIN(56, "RDP3_A"),
 444                 NULL, "mt8173",
 445                 MTK_EINT_FUNCTION(0, 56),
 446                 MTK_FUNCTION(0, "GPIO56"),
 447                 MTK_FUNCTION(1, "CMVSYNC"),
 448                 MTK_FUNCTION(2, "CMCSD0")
 449         ),
 450         MTK_PIN(PINCTRL_PIN(57, "MSDC0_DAT0"),
 451                 NULL, "mt8173",
 452                 MTK_EINT_FUNCTION(0, 57),
 453                 MTK_FUNCTION(0, "GPIO57"),
 454                 MTK_FUNCTION(1, "MSDC0_DAT0"),
 455                 MTK_FUNCTION(2, "I2S1_WS"),
 456                 MTK_FUNCTION(7, "DBG_MON_B_7_")
 457         ),
 458         MTK_PIN(PINCTRL_PIN(58, "MSDC0_DAT1"),
 459                 NULL, "mt8173",
 460                 MTK_EINT_FUNCTION(0, 58),
 461                 MTK_FUNCTION(0, "GPIO58"),
 462                 MTK_FUNCTION(1, "MSDC0_DAT1"),
 463                 MTK_FUNCTION(2, "I2S1_BCK"),
 464                 MTK_FUNCTION(7, "DBG_MON_B_8_")
 465         ),
 466         MTK_PIN(PINCTRL_PIN(59, "MSDC0_DAT2"),
 467                 NULL, "mt8173",
 468                 MTK_EINT_FUNCTION(0, 59),
 469                 MTK_FUNCTION(0, "GPIO59"),
 470                 MTK_FUNCTION(1, "MSDC0_DAT2"),
 471                 MTK_FUNCTION(2, "I2S1_MCK"),
 472                 MTK_FUNCTION(7, "DBG_MON_B_9_")
 473         ),
 474         MTK_PIN(PINCTRL_PIN(60, "MSDC0_DAT3"),
 475                 NULL, "mt8173",
 476                 MTK_EINT_FUNCTION(0, 60),
 477                 MTK_FUNCTION(0, "GPIO60"),
 478                 MTK_FUNCTION(1, "MSDC0_DAT3"),
 479                 MTK_FUNCTION(2, "I2S1_DO_1"),
 480                 MTK_FUNCTION(7, "DBG_MON_B_10_")
 481         ),
 482         MTK_PIN(PINCTRL_PIN(61, "MSDC0_DAT4"),
 483                 NULL, "mt8173",
 484                 MTK_EINT_FUNCTION(0, 61),
 485                 MTK_FUNCTION(0, "GPIO61"),
 486                 MTK_FUNCTION(1, "MSDC0_DAT4"),
 487                 MTK_FUNCTION(2, "I2S1_DO_2"),
 488                 MTK_FUNCTION(7, "DBG_MON_B_11_")
 489         ),
 490         MTK_PIN(PINCTRL_PIN(62, "MSDC0_DAT5"),
 491                 NULL, "mt8173",
 492                 MTK_EINT_FUNCTION(0, 62),
 493                 MTK_FUNCTION(0, "GPIO62"),
 494                 MTK_FUNCTION(1, "MSDC0_DAT5"),
 495                 MTK_FUNCTION(2, "I2S2_WS"),
 496                 MTK_FUNCTION(7, "DBG_MON_B_12_")
 497         ),
 498         MTK_PIN(PINCTRL_PIN(63, "MSDC0_DAT6"),
 499                 NULL, "mt8173",
 500                 MTK_EINT_FUNCTION(0, 63),
 501                 MTK_FUNCTION(0, "GPIO63"),
 502                 MTK_FUNCTION(1, "MSDC0_DAT6"),
 503                 MTK_FUNCTION(2, "I2S2_BCK"),
 504                 MTK_FUNCTION(7, "DBG_MON_B_13_")
 505         ),
 506         MTK_PIN(PINCTRL_PIN(64, "MSDC0_DAT7"),
 507                 NULL, "mt8173",
 508                 MTK_EINT_FUNCTION(0, 64),
 509                 MTK_FUNCTION(0, "GPIO64"),
 510                 MTK_FUNCTION(1, "MSDC0_DAT7"),
 511                 MTK_FUNCTION(2, "I2S2_DI_1"),
 512                 MTK_FUNCTION(7, "DBG_MON_B_14_")
 513         ),
 514         MTK_PIN(PINCTRL_PIN(65, "MSDC0_CLK"),
 515                 NULL, "mt8173",
 516                 MTK_EINT_FUNCTION(0, 65),
 517                 MTK_FUNCTION(0, "GPIO65"),
 518                 MTK_FUNCTION(1, "MSDC0_CLK"),
 519                 MTK_FUNCTION(7, "DBG_MON_B_16_")
 520         ),
 521         MTK_PIN(PINCTRL_PIN(66, "MSDC0_CMD"),
 522                 NULL, "mt8173",
 523                 MTK_EINT_FUNCTION(0, 66),
 524                 MTK_FUNCTION(0, "GPIO66"),
 525                 MTK_FUNCTION(1, "MSDC0_CMD"),
 526                 MTK_FUNCTION(2, "I2S2_DI_2"),
 527                 MTK_FUNCTION(7, "DBG_MON_B_15_")
 528         ),
 529         MTK_PIN(PINCTRL_PIN(67, "MSDC0_DSL"),
 530                 NULL, "mt8173",
 531                 MTK_EINT_FUNCTION(0, 67),
 532                 MTK_FUNCTION(0, "GPIO67"),
 533                 MTK_FUNCTION(1, "MSDC0_DSL"),
 534                 MTK_FUNCTION(7, "DBG_MON_B_17_")
 535         ),
 536         MTK_PIN(PINCTRL_PIN(68, "MSDC0_RST_"),
 537                 NULL, "mt8173",
 538                 MTK_EINT_FUNCTION(0, 68),
 539                 MTK_FUNCTION(0, "GPIO68"),
 540                 MTK_FUNCTION(1, "MSDC0_RSTB"),
 541                 MTK_FUNCTION(2, "I2S2_MCK"),
 542                 MTK_FUNCTION(7, "DBG_MON_B_18_")
 543         ),
 544         MTK_PIN(PINCTRL_PIN(69, "SPI_CK"),
 545                 NULL, "mt8173",
 546                 MTK_EINT_FUNCTION(0, 69),
 547                 MTK_FUNCTION(0, "GPIO69"),
 548                 MTK_FUNCTION(1, "SPI_CK_0_"),
 549                 MTK_FUNCTION(2, "I2S3_DO_1"),
 550                 MTK_FUNCTION(3, "PWM0"),
 551                 MTK_FUNCTION(4, "PWM5"),
 552                 MTK_FUNCTION(5, "I2S2_MCK"),
 553                 MTK_FUNCTION(7, "DBG_MON_B_19_")
 554         ),
 555         MTK_PIN(PINCTRL_PIN(70, "SPI_MI"),
 556                 NULL, "mt8173",
 557                 MTK_EINT_FUNCTION(0, 70),
 558                 MTK_FUNCTION(0, "GPIO70"),
 559                 MTK_FUNCTION(1, "SPI_MI_0_"),
 560                 MTK_FUNCTION(2, "I2S3_DO_2"),
 561                 MTK_FUNCTION(3, "PWM1"),
 562                 MTK_FUNCTION(4, "SPI_MO_0_"),
 563                 MTK_FUNCTION(5, "I2S2_DI_1"),
 564                 MTK_FUNCTION(6, "DSI1_TE"),
 565                 MTK_FUNCTION(7, "DBG_MON_B_20_")
 566         ),
 567         MTK_PIN(PINCTRL_PIN(71, "SPI_MO"),
 568                 NULL, "mt8173",
 569                 MTK_EINT_FUNCTION(0, 71),
 570                 MTK_FUNCTION(0, "GPIO71"),
 571                 MTK_FUNCTION(1, "SPI_MO_0_"),
 572                 MTK_FUNCTION(2, "I2S3_DO_3"),
 573                 MTK_FUNCTION(3, "PWM2"),
 574                 MTK_FUNCTION(4, "SPI_MI_0_"),
 575                 MTK_FUNCTION(5, "I2S2_DI_2"),
 576                 MTK_FUNCTION(7, "DBG_MON_B_21_")
 577         ),
 578         MTK_PIN(PINCTRL_PIN(72, "SPI_CS"),
 579                 NULL, "mt8173",
 580                 MTK_EINT_FUNCTION(0, 72),
 581                 MTK_FUNCTION(0, "GPIO72"),
 582                 MTK_FUNCTION(1, "SPI_CS_0_"),
 583                 MTK_FUNCTION(2, "I2S3_DO_4"),
 584                 MTK_FUNCTION(3, "PWM3"),
 585                 MTK_FUNCTION(4, "PWM6"),
 586                 MTK_FUNCTION(5, "DISP_PWM1"),
 587                 MTK_FUNCTION(7, "DBG_MON_B_22_")
 588         ),
 589         MTK_PIN(PINCTRL_PIN(73, "MSDC1_DAT0"),
 590                 NULL, "mt8173",
 591                 MTK_EINT_FUNCTION(0, 73),
 592                 MTK_FUNCTION(0, "GPIO73"),
 593                 MTK_FUNCTION(1, "MSDC1_DAT0"),
 594                 MTK_FUNCTION(7, "DBG_MON_B_24_")
 595         ),
 596         MTK_PIN(PINCTRL_PIN(74, "MSDC1_DAT1"),
 597                 NULL, "mt8173",
 598                 MTK_EINT_FUNCTION(0, 74),
 599                 MTK_FUNCTION(0, "GPIO74"),
 600                 MTK_FUNCTION(1, "MSDC1_DAT1"),
 601                 MTK_FUNCTION(7, "DBG_MON_B_25_")
 602         ),
 603         MTK_PIN(PINCTRL_PIN(75, "MSDC1_DAT2"),
 604                 NULL, "mt8173",
 605                 MTK_EINT_FUNCTION(0, 75),
 606                 MTK_FUNCTION(0, "GPIO75"),
 607                 MTK_FUNCTION(1, "MSDC1_DAT2"),
 608                 MTK_FUNCTION(7, "DBG_MON_B_26_")
 609         ),
 610         MTK_PIN(PINCTRL_PIN(76, "MSDC1_DAT3"),
 611                 NULL, "mt8173",
 612                 MTK_EINT_FUNCTION(0, 76),
 613                 MTK_FUNCTION(0, "GPIO76"),
 614                 MTK_FUNCTION(1, "MSDC1_DAT3"),
 615                 MTK_FUNCTION(7, "DBG_MON_B_27_")
 616         ),
 617         MTK_PIN(PINCTRL_PIN(77, "MSDC1_CLK"),
 618                 NULL, "mt8173",
 619                 MTK_EINT_FUNCTION(0, 77),
 620                 MTK_FUNCTION(0, "GPIO77"),
 621                 MTK_FUNCTION(1, "MSDC1_CLK"),
 622                 MTK_FUNCTION(7, "DBG_MON_B_28_")
 623         ),
 624         MTK_PIN(PINCTRL_PIN(78, "MSDC1_CMD"),
 625                 NULL, "mt8173",
 626                 MTK_EINT_FUNCTION(0, 78),
 627                 MTK_FUNCTION(0, "GPIO78"),
 628                 MTK_FUNCTION(1, "MSDC1_CMD"),
 629                 MTK_FUNCTION(7, "DBG_MON_B_23_")
 630         ),
 631         MTK_PIN(PINCTRL_PIN(79, "PWRAP_SPI0_MI"),
 632                 NULL, "mt8173",
 633                 MTK_EINT_FUNCTION(0, 79),
 634                 MTK_FUNCTION(0, "GPIO79"),
 635                 MTK_FUNCTION(1, "PWRAP_SPIMI"),
 636                 MTK_FUNCTION(2, "PWRAP_SPIMO")
 637         ),
 638         MTK_PIN(PINCTRL_PIN(80, "PWRAP_SPI0_MO"),
 639                 NULL, "mt8173",
 640                 MTK_EINT_FUNCTION(0, 80),
 641                 MTK_FUNCTION(0, "GPIO80"),
 642                 MTK_FUNCTION(1, "PWRAP_SPIMO"),
 643                 MTK_FUNCTION(2, "PWRAP_SPIMI")
 644         ),
 645         MTK_PIN(PINCTRL_PIN(81, "PWRAP_SPI0_CK"),
 646                 NULL, "mt8173",
 647                 MTK_EINT_FUNCTION(0, 81),
 648                 MTK_FUNCTION(0, "GPIO81"),
 649                 MTK_FUNCTION(1, "PWRAP_SPICK")
 650         ),
 651         MTK_PIN(PINCTRL_PIN(82, "PWRAP_SPI0_CSN"),
 652                 NULL, "mt8173",
 653                 MTK_EINT_FUNCTION(0, 82),
 654                 MTK_FUNCTION(0, "GPIO82"),
 655                 MTK_FUNCTION(1, "PWRAP_SPICS")
 656         ),
 657         MTK_PIN(PINCTRL_PIN(83, "AUD_CLK_MOSI"),
 658                 NULL, "mt8173",
 659                 MTK_EINT_FUNCTION(0, 83),
 660                 MTK_FUNCTION(0, "GPIO83"),
 661                 MTK_FUNCTION(1, "AUD_CLK_MOSI")
 662         ),
 663         MTK_PIN(PINCTRL_PIN(84, "AUD_DAT_MISO"),
 664                 NULL, "mt8173",
 665                 MTK_EINT_FUNCTION(0, 84),
 666                 MTK_FUNCTION(0, "GPIO84"),
 667                 MTK_FUNCTION(1, "AUD_DAT_MISO"),
 668                 MTK_FUNCTION(2, "AUD_DAT_MOSI")
 669         ),
 670         MTK_PIN(PINCTRL_PIN(85, "AUD_DAT_MOSI"),
 671                 NULL, "mt8173",
 672                 MTK_EINT_FUNCTION(0, 85),
 673                 MTK_FUNCTION(0, "GPIO85"),
 674                 MTK_FUNCTION(1, "AUD_DAT_MOSI"),
 675                 MTK_FUNCTION(2, "AUD_DAT_MISO")
 676         ),
 677         MTK_PIN(PINCTRL_PIN(86, "RTC32K_CK"),
 678                 NULL, "mt8173",
 679                 MTK_EINT_FUNCTION(0, 86),
 680                 MTK_FUNCTION(0, "GPIO86"),
 681                 MTK_FUNCTION(1, "RTC32K_CK")
 682         ),
 683         MTK_PIN(PINCTRL_PIN(87, "DISP_PWM0"),
 684                 NULL, "mt8173",
 685                 MTK_EINT_FUNCTION(0, 87),
 686                 MTK_FUNCTION(0, "GPIO87"),
 687                 MTK_FUNCTION(1, "DISP_PWM0"),
 688                 MTK_FUNCTION(2, "DISP_PWM1"),
 689                 MTK_FUNCTION(7, "DBG_MON_B_31_")
 690         ),
 691         MTK_PIN(PINCTRL_PIN(88, "SRCLKENAI"),
 692                 NULL, "mt8173",
 693                 MTK_EINT_FUNCTION(0, 88),
 694                 MTK_FUNCTION(0, "GPIO88"),
 695                 MTK_FUNCTION(1, "SRCLKENAI")
 696         ),
 697         MTK_PIN(PINCTRL_PIN(89, "SRCLKENAI2"),
 698                 NULL, "mt8173",
 699                 MTK_EINT_FUNCTION(0, 89),
 700                 MTK_FUNCTION(0, "GPIO89"),
 701                 MTK_FUNCTION(1, "SRCLKENAI2")
 702         ),
 703         MTK_PIN(PINCTRL_PIN(90, "SRCLKENA0"),
 704                 NULL, "mt8173",
 705                 MTK_EINT_FUNCTION(0, 90),
 706                 MTK_FUNCTION(0, "GPIO90"),
 707                 MTK_FUNCTION(1, "SRCLKENA0")
 708         ),
 709         MTK_PIN(PINCTRL_PIN(91, "SRCLKENA1"),
 710                 NULL, "mt8173",
 711                 MTK_EINT_FUNCTION(0, 91),
 712                 MTK_FUNCTION(0, "GPIO91"),
 713                 MTK_FUNCTION(1, "SRCLKENA1")
 714         ),
 715         MTK_PIN(PINCTRL_PIN(92, "PCM_CLK"),
 716                 NULL, "mt8173",
 717                 MTK_EINT_FUNCTION(0, 92),
 718                 MTK_FUNCTION(0, "GPIO92"),
 719                 MTK_FUNCTION(1, "PCM1_CLK"),
 720                 MTK_FUNCTION(2, "I2S0_BCK"),
 721                 MTK_FUNCTION(7, "DBG_MON_A_24_")
 722         ),
 723         MTK_PIN(PINCTRL_PIN(93, "PCM_SYNC"),
 724                 NULL, "mt8173",
 725                 MTK_EINT_FUNCTION(0, 93),
 726                 MTK_FUNCTION(0, "GPIO93"),
 727                 MTK_FUNCTION(1, "PCM1_SYNC"),
 728                 MTK_FUNCTION(2, "I2S0_WS"),
 729                 MTK_FUNCTION(7, "DBG_MON_A_25_")
 730         ),
 731         MTK_PIN(PINCTRL_PIN(94, "PCM_RX"),
 732                 NULL, "mt8173",
 733                 MTK_EINT_FUNCTION(0, 94),
 734                 MTK_FUNCTION(0, "GPIO94"),
 735                 MTK_FUNCTION(1, "PCM1_DI"),
 736                 MTK_FUNCTION(2, "I2S0_DI"),
 737                 MTK_FUNCTION(7, "DBG_MON_A_26_")
 738         ),
 739         MTK_PIN(PINCTRL_PIN(95, "PCM_TX"),
 740                 NULL, "mt8173",
 741                 MTK_EINT_FUNCTION(0, 95),
 742                 MTK_FUNCTION(0, "GPIO95"),
 743                 MTK_FUNCTION(1, "PCM1_DO"),
 744                 MTK_FUNCTION(2, "I2S0_DO"),
 745                 MTK_FUNCTION(7, "DBG_MON_A_27_")
 746         ),
 747         MTK_PIN(PINCTRL_PIN(96, "URXD1"),
 748                 NULL, "mt8173",
 749                 MTK_EINT_FUNCTION(0, 96),
 750                 MTK_FUNCTION(0, "GPIO96"),
 751                 MTK_FUNCTION(1, "URXD1"),
 752                 MTK_FUNCTION(2, "UTXD1"),
 753                 MTK_FUNCTION(7, "DBG_MON_A_28_")
 754         ),
 755         MTK_PIN(PINCTRL_PIN(97, "UTXD1"),
 756                 NULL, "mt8173",
 757                 MTK_EINT_FUNCTION(0, 97),
 758                 MTK_FUNCTION(0, "GPIO97"),
 759                 MTK_FUNCTION(1, "UTXD1"),
 760                 MTK_FUNCTION(2, "URXD1"),
 761                 MTK_FUNCTION(7, "DBG_MON_A_29_")
 762         ),
 763         MTK_PIN(PINCTRL_PIN(98, "URTS1"),
 764                 NULL, "mt8173",
 765                 MTK_EINT_FUNCTION(0, 98),
 766                 MTK_FUNCTION(0, "GPIO98"),
 767                 MTK_FUNCTION(1, "URTS1"),
 768                 MTK_FUNCTION(2, "UCTS1"),
 769                 MTK_FUNCTION(7, "DBG_MON_A_30_")
 770         ),
 771         MTK_PIN(PINCTRL_PIN(99, "UCTS1"),
 772                 NULL, "mt8173",
 773                 MTK_EINT_FUNCTION(0, 99),
 774                 MTK_FUNCTION(0, "GPIO99"),
 775                 MTK_FUNCTION(1, "UCTS1"),
 776                 MTK_FUNCTION(2, "URTS1"),
 777                 MTK_FUNCTION(7, "DBG_MON_A_31_")
 778         ),
 779         MTK_PIN(PINCTRL_PIN(100, "MSDC2_DAT0"),
 780                 NULL, "mt8173",
 781                 MTK_EINT_FUNCTION(0, 100),
 782                 MTK_FUNCTION(0, "GPIO100"),
 783                 MTK_FUNCTION(1, "MSDC2_DAT0"),
 784                 MTK_FUNCTION(3, "USB_DRVVBUS_P0"),
 785                 MTK_FUNCTION(4, "SDA5"),
 786                 MTK_FUNCTION(5, "USB_DRVVBUS_P1"),
 787                 MTK_FUNCTION(7, "DBG_MON_B_0_")
 788         ),
 789         MTK_PIN(PINCTRL_PIN(101, "MSDC2_DAT1"),
 790                 NULL, "mt8173",
 791                 MTK_EINT_FUNCTION(0, 101),
 792                 MTK_FUNCTION(0, "GPIO101"),
 793                 MTK_FUNCTION(1, "MSDC2_DAT1"),
 794                 MTK_FUNCTION(3, "AUD_SPDIF"),
 795                 MTK_FUNCTION(4, "SCL5"),
 796                 MTK_FUNCTION(7, "DBG_MON_B_1_")
 797         ),
 798         MTK_PIN(PINCTRL_PIN(102, "MSDC2_DAT2"),
 799                 NULL, "mt8173",
 800                 MTK_EINT_FUNCTION(0, 102),
 801                 MTK_FUNCTION(0, "GPIO102"),
 802                 MTK_FUNCTION(1, "MSDC2_DAT2"),
 803                 MTK_FUNCTION(3, "UTXD0"),
 804                 MTK_FUNCTION(5, "PWM0"),
 805                 MTK_FUNCTION(6, "SPI_CK_1_"),
 806                 MTK_FUNCTION(7, "DBG_MON_B_2_")
 807         ),
 808         MTK_PIN(PINCTRL_PIN(103, "MSDC2_DAT3"),
 809                 NULL, "mt8173",
 810                 MTK_EINT_FUNCTION(0, 103),
 811                 MTK_FUNCTION(0, "GPIO103"),
 812                 MTK_FUNCTION(1, "MSDC2_DAT3"),
 813                 MTK_FUNCTION(3, "URXD0"),
 814                 MTK_FUNCTION(5, "PWM1"),
 815                 MTK_FUNCTION(6, "SPI_MI_1_"),
 816                 MTK_FUNCTION(7, "DBG_MON_B_3_")
 817         ),
 818         MTK_PIN(PINCTRL_PIN(104, "MSDC2_CLK"),
 819                 NULL, "mt8173",
 820                 MTK_EINT_FUNCTION(0, 104),
 821                 MTK_FUNCTION(0, "GPIO104"),
 822                 MTK_FUNCTION(1, "MSDC2_CLK"),
 823                 MTK_FUNCTION(3, "UTXD3"),
 824                 MTK_FUNCTION(4, "SDA3"),
 825                 MTK_FUNCTION(5, "PWM2"),
 826                 MTK_FUNCTION(6, "SPI_MO_1_"),
 827                 MTK_FUNCTION(7, "DBG_MON_B_4_")
 828         ),
 829         MTK_PIN(PINCTRL_PIN(105, "MSDC2_CMD"),
 830                 NULL, "mt8173",
 831                 MTK_EINT_FUNCTION(0, 105),
 832                 MTK_FUNCTION(0, "GPIO105"),
 833                 MTK_FUNCTION(1, "MSDC2_CMD"),
 834                 MTK_FUNCTION(3, "URXD3"),
 835                 MTK_FUNCTION(4, "SCL3"),
 836                 MTK_FUNCTION(5, "PWM3"),
 837                 MTK_FUNCTION(6, "SPI_CS_1_"),
 838                 MTK_FUNCTION(7, "DBG_MON_B_5_")
 839         ),
 840         MTK_PIN(PINCTRL_PIN(106, "SDA3"),
 841                 NULL, "mt8173",
 842                 MTK_EINT_FUNCTION(0, 106),
 843                 MTK_FUNCTION(0, "GPIO106"),
 844                 MTK_FUNCTION(1, "SDA3")
 845         ),
 846         MTK_PIN(PINCTRL_PIN(107, "SCL3"),
 847                 NULL, "mt8173",
 848                 MTK_EINT_FUNCTION(0, 107),
 849                 MTK_FUNCTION(0, "GPIO107"),
 850                 MTK_FUNCTION(1, "SCL3")
 851         ),
 852         MTK_PIN(PINCTRL_PIN(108, "JTMS"),
 853                 NULL, "mt8173",
 854                 MTK_EINT_FUNCTION(0, 108),
 855                 MTK_FUNCTION(0, "GPIO108"),
 856                 MTK_FUNCTION(1, "JTMS"),
 857                 MTK_FUNCTION(2, " MFG_JTAG_TMS"),
 858                 MTK_FUNCTION(5, "AP_MD32_JTAG_TMS"),
 859                 MTK_FUNCTION(6, "DFD_TMS")
 860         ),
 861         MTK_PIN(PINCTRL_PIN(109, "JTCK"),
 862                 NULL, "mt8173",
 863                 MTK_EINT_FUNCTION(0, 109),
 864                 MTK_FUNCTION(0, "GPIO109"),
 865                 MTK_FUNCTION(1, "JTCK"),
 866                 MTK_FUNCTION(2, " MFG_JTAG_TCK"),
 867                 MTK_FUNCTION(5, "AP_MD32_JTAG_TCK"),
 868                 MTK_FUNCTION(6, "DFD_TCK")
 869         ),
 870         MTK_PIN(PINCTRL_PIN(110, "JTDI"),
 871                 NULL, "mt8173",
 872                 MTK_EINT_FUNCTION(0, 110),
 873                 MTK_FUNCTION(0, "GPIO110"),
 874                 MTK_FUNCTION(1, "JTDI"),
 875                 MTK_FUNCTION(2, " MFG_JTAG_TDI"),
 876                 MTK_FUNCTION(5, "AP_MD32_JTAG_TDI"),
 877                 MTK_FUNCTION(6, "DFD_TDI")
 878         ),
 879         MTK_PIN(PINCTRL_PIN(111, "JTDO"),
 880                 NULL, "mt8173",
 881                 MTK_EINT_FUNCTION(0, 111),
 882                 MTK_FUNCTION(0, "GPIO111"),
 883                 MTK_FUNCTION(1, "JTDO"),
 884                 MTK_FUNCTION(2, "MFG_JTAG_TDO"),
 885                 MTK_FUNCTION(5, "AP_MD32_JTAG_TDO"),
 886                 MTK_FUNCTION(6, "DFD_TDO")
 887         ),
 888         MTK_PIN(PINCTRL_PIN(112, "JTRST_B"),
 889                 NULL, "mt8173",
 890                 MTK_EINT_FUNCTION(0, 112),
 891                 MTK_FUNCTION(0, "GPIO112"),
 892                 MTK_FUNCTION(1, "JTRST_B"),
 893                 MTK_FUNCTION(2, " MFG_JTAG_TRSTN"),
 894                 MTK_FUNCTION(5, "AP_MD32_JTAG_TRST"),
 895                 MTK_FUNCTION(6, "DFD_NTRST")
 896         ),
 897         MTK_PIN(PINCTRL_PIN(113, "URXD0"),
 898                 NULL, "mt8173",
 899                 MTK_EINT_FUNCTION(0, 113),
 900                 MTK_FUNCTION(0, "GPIO113"),
 901                 MTK_FUNCTION(1, "URXD0"),
 902                 MTK_FUNCTION(2, "UTXD0"),
 903                 MTK_FUNCTION(6, "I2S2_WS"),
 904                 MTK_FUNCTION(7, "DBG_MON_A_0_")
 905         ),
 906         MTK_PIN(PINCTRL_PIN(114, "UTXD0"),
 907                 NULL, "mt8173",
 908                 MTK_EINT_FUNCTION(0, 114),
 909                 MTK_FUNCTION(0, "GPIO114"),
 910                 MTK_FUNCTION(1, "UTXD0"),
 911                 MTK_FUNCTION(2, "URXD0"),
 912                 MTK_FUNCTION(6, "I2S2_BCK"),
 913                 MTK_FUNCTION(7, "DBG_MON_A_1_")
 914         ),
 915         MTK_PIN(PINCTRL_PIN(115, "URTS0"),
 916                 NULL, "mt8173",
 917                 MTK_EINT_FUNCTION(0, 115),
 918                 MTK_FUNCTION(0, "GPIO115"),
 919                 MTK_FUNCTION(1, "URTS0"),
 920                 MTK_FUNCTION(2, "UCTS0"),
 921                 MTK_FUNCTION(6, "I2S2_MCK"),
 922                 MTK_FUNCTION(7, "DBG_MON_A_2_")
 923         ),
 924         MTK_PIN(PINCTRL_PIN(116, "UCTS0"),
 925                 NULL, "mt8173",
 926                 MTK_EINT_FUNCTION(0, 116),
 927                 MTK_FUNCTION(0, "GPIO116"),
 928                 MTK_FUNCTION(1, "UCTS0"),
 929                 MTK_FUNCTION(2, "URTS0"),
 930                 MTK_FUNCTION(6, "I2S2_DI_1"),
 931                 MTK_FUNCTION(7, "DBG_MON_A_3_")
 932         ),
 933         MTK_PIN(PINCTRL_PIN(117, "URXD3"),
 934                 NULL, "mt8173",
 935                 MTK_EINT_FUNCTION(0, 117),
 936                 MTK_FUNCTION(0, "GPIO117"),
 937                 MTK_FUNCTION(1, "URXD3"),
 938                 MTK_FUNCTION(2, "UTXD3"),
 939                 MTK_FUNCTION(7, "DBG_MON_A_9_")
 940         ),
 941         MTK_PIN(PINCTRL_PIN(118, "UTXD3"),
 942                 NULL, "mt8173",
 943                 MTK_EINT_FUNCTION(0, 118),
 944                 MTK_FUNCTION(0, "GPIO118"),
 945                 MTK_FUNCTION(1, "UTXD3"),
 946                 MTK_FUNCTION(2, "URXD3"),
 947                 MTK_FUNCTION(7, "DBG_MON_A_10_")
 948         ),
 949         MTK_PIN(PINCTRL_PIN(119, "KPROW0"),
 950                 NULL, "mt8173",
 951                 MTK_EINT_FUNCTION(0, 119),
 952                 MTK_FUNCTION(0, "GPIO119"),
 953                 MTK_FUNCTION(1, "KROW0"),
 954                 MTK_FUNCTION(7, "DBG_MON_A_11_")
 955         ),
 956         MTK_PIN(PINCTRL_PIN(120, "KPROW1"),
 957                 NULL, "mt8173",
 958                 MTK_EINT_FUNCTION(0, 120),
 959                 MTK_FUNCTION(0, "GPIO120"),
 960                 MTK_FUNCTION(1, "KROW1"),
 961                 MTK_FUNCTION(3, "PWM6"),
 962                 MTK_FUNCTION(7, "DBG_MON_A_12_")
 963         ),
 964         MTK_PIN(PINCTRL_PIN(121, "KPROW2"),
 965                 NULL, "mt8173",
 966                 MTK_EINT_FUNCTION(0, 121),
 967                 MTK_FUNCTION(0, "GPIO121"),
 968                 MTK_FUNCTION(1, "KROW2"),
 969                 MTK_FUNCTION(2, "IRDA_PDN"),
 970                 MTK_FUNCTION(3, "USB_DRVVBUS_P0"),
 971                 MTK_FUNCTION(4, "PWM4"),
 972                 MTK_FUNCTION(5, "USB_DRVVBUS_P1"),
 973                 MTK_FUNCTION(7, "DBG_MON_A_13_")
 974         ),
 975         MTK_PIN(PINCTRL_PIN(122, "KPCOL0"),
 976                 NULL, "mt8173",
 977                 MTK_EINT_FUNCTION(0, 122),
 978                 MTK_FUNCTION(0, "GPIO122"),
 979                 MTK_FUNCTION(1, "KCOL0"),
 980                 MTK_FUNCTION(7, "DBG_MON_A_14_")
 981         ),
 982         MTK_PIN(PINCTRL_PIN(123, "KPCOL1"),
 983                 NULL, "mt8173",
 984                 MTK_EINT_FUNCTION(0, 123),
 985                 MTK_FUNCTION(0, "GPIO123"),
 986                 MTK_FUNCTION(1, "KCOL1"),
 987                 MTK_FUNCTION(2, "IRDA_RXD"),
 988                 MTK_FUNCTION(3, "PWM5"),
 989                 MTK_FUNCTION(7, "DBG_MON_A_15_")
 990         ),
 991         MTK_PIN(PINCTRL_PIN(124, "KPCOL2"),
 992                 NULL, "mt8173",
 993                 MTK_EINT_FUNCTION(0, 124),
 994                 MTK_FUNCTION(0, "GPIO124"),
 995                 MTK_FUNCTION(1, "KCOL2"),
 996                 MTK_FUNCTION(2, "IRDA_TXD"),
 997                 MTK_FUNCTION(3, "USB_DRVVBUS_P0"),
 998                 MTK_FUNCTION(4, "PWM3"),
 999                 MTK_FUNCTION(5, "USB_DRVVBUS_P1"),
1000                 MTK_FUNCTION(7, "DBG_MON_A_16_")
1001         ),
1002         MTK_PIN(PINCTRL_PIN(125, "SDA1"),
1003                 NULL, "mt8173",
1004                 MTK_EINT_FUNCTION(0, 125),
1005                 MTK_FUNCTION(0, "GPIO125"),
1006                 MTK_FUNCTION(1, "SDA1")
1007         ),
1008         MTK_PIN(PINCTRL_PIN(126, "SCL1"),
1009                 NULL, "mt8173",
1010                 MTK_EINT_FUNCTION(0, 126),
1011                 MTK_FUNCTION(0, "GPIO126"),
1012                 MTK_FUNCTION(1, "SCL1")
1013         ),
1014         MTK_PIN(PINCTRL_PIN(127, "LCM_RST"),
1015                 NULL, "mt8173",
1016                 MTK_EINT_FUNCTION(0, 127),
1017                 MTK_FUNCTION(0, "GPIO127"),
1018                 MTK_FUNCTION(1, "LCM_RST")
1019         ),
1020         MTK_PIN(PINCTRL_PIN(128, "I2S0_LRCK"),
1021                 NULL, "mt8173",
1022                 MTK_EINT_FUNCTION(0, 128),
1023                 MTK_FUNCTION(0, "GPIO128"),
1024                 MTK_FUNCTION(1, "I2S0_WS"),
1025                 MTK_FUNCTION(2, "I2S1_WS"),
1026                 MTK_FUNCTION(3, "I2S2_WS"),
1027                 MTK_FUNCTION(5, "SPI_CK_2_"),
1028                 MTK_FUNCTION(7, "DBG_MON_A_4_")
1029         ),
1030         MTK_PIN(PINCTRL_PIN(129, "I2S0_BCK"),
1031                 NULL, "mt8173",
1032                 MTK_EINT_FUNCTION(0, 129),
1033                 MTK_FUNCTION(0, "GPIO129"),
1034                 MTK_FUNCTION(1, "I2S0_BCK"),
1035                 MTK_FUNCTION(2, "I2S1_BCK"),
1036                 MTK_FUNCTION(3, "I2S2_BCK"),
1037                 MTK_FUNCTION(5, "SPI_MI_2_"),
1038                 MTK_FUNCTION(7, "DBG_MON_A_5_")
1039         ),
1040         MTK_PIN(PINCTRL_PIN(130, "I2S0_MCK"),
1041                 NULL, "mt8173",
1042                 MTK_EINT_FUNCTION(0, 130),
1043                 MTK_FUNCTION(0, "GPIO130"),
1044                 MTK_FUNCTION(1, "I2S0_MCK"),
1045                 MTK_FUNCTION(2, "I2S1_MCK"),
1046                 MTK_FUNCTION(3, "I2S2_MCK"),
1047                 MTK_FUNCTION(5, "SPI_MO_2_"),
1048                 MTK_FUNCTION(7, "DBG_MON_A_6_")
1049         ),
1050         MTK_PIN(PINCTRL_PIN(131, "I2S0_DATA0"),
1051                 NULL, "mt8173",
1052                 MTK_EINT_FUNCTION(0, 131),
1053                 MTK_FUNCTION(0, "GPIO131"),
1054                 MTK_FUNCTION(1, "I2S0_DO"),
1055                 MTK_FUNCTION(2, "I2S1_DO_1"),
1056                 MTK_FUNCTION(3, "I2S2_DI_1"),
1057                 MTK_FUNCTION(5, "SPI_CS_2_"),
1058                 MTK_FUNCTION(7, "DBG_MON_A_7_")
1059         ),
1060         MTK_PIN(PINCTRL_PIN(132, "I2S0_DATA1"),
1061                 NULL, "mt8173",
1062                 MTK_EINT_FUNCTION(0, 132),
1063                 MTK_FUNCTION(0, "GPIO132"),
1064                 MTK_FUNCTION(1, "I2S0_DI"),
1065                 MTK_FUNCTION(2, "I2S1_DO_2"),
1066                 MTK_FUNCTION(3, "I2S2_DI_2"),
1067                 MTK_FUNCTION(7, "DBG_MON_A_8_")
1068         ),
1069         MTK_PIN(PINCTRL_PIN(133, "SDA4"),
1070                 NULL, "mt8173",
1071                 MTK_EINT_FUNCTION(0, 133),
1072                 MTK_FUNCTION(0, "GPIO133"),
1073                 MTK_FUNCTION(1, "SDA4")
1074         ),
1075         MTK_PIN(PINCTRL_PIN(134, "SCL4"),
1076                 NULL, "mt8173",
1077                 MTK_EINT_FUNCTION(0, 134),
1078                 MTK_FUNCTION(0, "GPIO134"),
1079                 MTK_FUNCTION(1, "SCL4")
1080         ),
1081 };
1082 
1083 #endif /* __PINCTRL_MTK_MT8173_H */

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