pinctrl-mtk-mt8127.h 31 KB

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