pinctrl-mtk-mt8173.h 28 KB

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