pinctrl-x1e80100.c 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/platform_device.h>
  8. #include "pinctrl-msm.h"
  9. #define REG_SIZE 0x1000
  10. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  11. { \
  12. .grp = PINCTRL_PINGROUP("gpio" #id, \
  13. gpio##id##_pins, \
  14. ARRAY_SIZE(gpio##id##_pins)), \
  15. .funcs = (int[]){ \
  16. msm_mux_gpio, /* gpio mode */ \
  17. msm_mux_##f1, \
  18. msm_mux_##f2, \
  19. msm_mux_##f3, \
  20. msm_mux_##f4, \
  21. msm_mux_##f5, \
  22. msm_mux_##f6, \
  23. msm_mux_##f7, \
  24. msm_mux_##f8, \
  25. msm_mux_##f9 \
  26. }, \
  27. .nfuncs = 10, \
  28. .ctl_reg = REG_SIZE * id, \
  29. .io_reg = 0x4 + REG_SIZE * id, \
  30. .intr_cfg_reg = 0x8 + REG_SIZE * id, \
  31. .intr_status_reg = 0xc + REG_SIZE * id, \
  32. .intr_target_reg = 0x8 + REG_SIZE * id, \
  33. .mux_bit = 2, \
  34. .pull_bit = 0, \
  35. .drv_bit = 6, \
  36. .i2c_pull_bit = 13, \
  37. .egpio_enable = 12, \
  38. .egpio_present = 11, \
  39. .oe_bit = 9, \
  40. .in_bit = 0, \
  41. .out_bit = 1, \
  42. .intr_enable_bit = 0, \
  43. .intr_status_bit = 0, \
  44. .intr_target_bit = 5, \
  45. .intr_target_kpss_val = 3, \
  46. .intr_raw_status_bit = 4, \
  47. .intr_polarity_bit = 1, \
  48. .intr_detection_bit = 2, \
  49. .intr_detection_width = 2, \
  50. }
  51. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  52. { \
  53. .grp = PINCTRL_PINGROUP(#pg_name, \
  54. pg_name##_pins, \
  55. ARRAY_SIZE(pg_name##_pins)), \
  56. .ctl_reg = ctl, \
  57. .io_reg = 0, \
  58. .intr_cfg_reg = 0, \
  59. .intr_status_reg = 0, \
  60. .intr_target_reg = 0, \
  61. .mux_bit = -1, \
  62. .pull_bit = pull, \
  63. .drv_bit = drv, \
  64. .oe_bit = -1, \
  65. .in_bit = -1, \
  66. .out_bit = -1, \
  67. .intr_enable_bit = -1, \
  68. .intr_status_bit = -1, \
  69. .intr_target_bit = -1, \
  70. .intr_raw_status_bit = -1, \
  71. .intr_polarity_bit = -1, \
  72. .intr_detection_bit = -1, \
  73. .intr_detection_width = -1, \
  74. }
  75. #define UFS_RESET(pg_name, offset) \
  76. { \
  77. .grp = PINCTRL_PINGROUP(#pg_name, \
  78. pg_name##_pins, \
  79. ARRAY_SIZE(pg_name##_pins)), \
  80. .ctl_reg = offset, \
  81. .io_reg = offset + 0x4, \
  82. .intr_cfg_reg = 0, \
  83. .intr_status_reg = 0, \
  84. .intr_target_reg = 0, \
  85. .mux_bit = -1, \
  86. .pull_bit = 3, \
  87. .drv_bit = 0, \
  88. .oe_bit = -1, \
  89. .in_bit = -1, \
  90. .out_bit = 0, \
  91. .intr_enable_bit = -1, \
  92. .intr_status_bit = -1, \
  93. .intr_target_bit = -1, \
  94. .intr_raw_status_bit = -1, \
  95. .intr_polarity_bit = -1, \
  96. .intr_detection_bit = -1, \
  97. .intr_detection_width = -1, \
  98. }
  99. static const struct pinctrl_pin_desc x1e80100_pins[] = {
  100. PINCTRL_PIN(0, "GPIO_0"),
  101. PINCTRL_PIN(1, "GPIO_1"),
  102. PINCTRL_PIN(2, "GPIO_2"),
  103. PINCTRL_PIN(3, "GPIO_3"),
  104. PINCTRL_PIN(4, "GPIO_4"),
  105. PINCTRL_PIN(5, "GPIO_5"),
  106. PINCTRL_PIN(6, "GPIO_6"),
  107. PINCTRL_PIN(7, "GPIO_7"),
  108. PINCTRL_PIN(8, "GPIO_8"),
  109. PINCTRL_PIN(9, "GPIO_9"),
  110. PINCTRL_PIN(10, "GPIO_10"),
  111. PINCTRL_PIN(11, "GPIO_11"),
  112. PINCTRL_PIN(12, "GPIO_12"),
  113. PINCTRL_PIN(13, "GPIO_13"),
  114. PINCTRL_PIN(14, "GPIO_14"),
  115. PINCTRL_PIN(15, "GPIO_15"),
  116. PINCTRL_PIN(16, "GPIO_16"),
  117. PINCTRL_PIN(17, "GPIO_17"),
  118. PINCTRL_PIN(18, "GPIO_18"),
  119. PINCTRL_PIN(19, "GPIO_19"),
  120. PINCTRL_PIN(20, "GPIO_20"),
  121. PINCTRL_PIN(21, "GPIO_21"),
  122. PINCTRL_PIN(22, "GPIO_22"),
  123. PINCTRL_PIN(23, "GPIO_23"),
  124. PINCTRL_PIN(24, "GPIO_24"),
  125. PINCTRL_PIN(25, "GPIO_25"),
  126. PINCTRL_PIN(26, "GPIO_26"),
  127. PINCTRL_PIN(27, "GPIO_27"),
  128. PINCTRL_PIN(28, "GPIO_28"),
  129. PINCTRL_PIN(29, "GPIO_29"),
  130. PINCTRL_PIN(30, "GPIO_30"),
  131. PINCTRL_PIN(31, "GPIO_31"),
  132. PINCTRL_PIN(32, "GPIO_32"),
  133. PINCTRL_PIN(33, "GPIO_33"),
  134. PINCTRL_PIN(34, "GPIO_34"),
  135. PINCTRL_PIN(35, "GPIO_35"),
  136. PINCTRL_PIN(36, "GPIO_36"),
  137. PINCTRL_PIN(37, "GPIO_37"),
  138. PINCTRL_PIN(38, "GPIO_38"),
  139. PINCTRL_PIN(39, "GPIO_39"),
  140. PINCTRL_PIN(40, "GPIO_40"),
  141. PINCTRL_PIN(41, "GPIO_41"),
  142. PINCTRL_PIN(42, "GPIO_42"),
  143. PINCTRL_PIN(43, "GPIO_43"),
  144. PINCTRL_PIN(44, "GPIO_44"),
  145. PINCTRL_PIN(45, "GPIO_45"),
  146. PINCTRL_PIN(46, "GPIO_46"),
  147. PINCTRL_PIN(47, "GPIO_47"),
  148. PINCTRL_PIN(48, "GPIO_48"),
  149. PINCTRL_PIN(49, "GPIO_49"),
  150. PINCTRL_PIN(50, "GPIO_50"),
  151. PINCTRL_PIN(51, "GPIO_51"),
  152. PINCTRL_PIN(52, "GPIO_52"),
  153. PINCTRL_PIN(53, "GPIO_53"),
  154. PINCTRL_PIN(54, "GPIO_54"),
  155. PINCTRL_PIN(55, "GPIO_55"),
  156. PINCTRL_PIN(56, "GPIO_56"),
  157. PINCTRL_PIN(57, "GPIO_57"),
  158. PINCTRL_PIN(58, "GPIO_58"),
  159. PINCTRL_PIN(59, "GPIO_59"),
  160. PINCTRL_PIN(60, "GPIO_60"),
  161. PINCTRL_PIN(61, "GPIO_61"),
  162. PINCTRL_PIN(62, "GPIO_62"),
  163. PINCTRL_PIN(63, "GPIO_63"),
  164. PINCTRL_PIN(64, "GPIO_64"),
  165. PINCTRL_PIN(65, "GPIO_65"),
  166. PINCTRL_PIN(66, "GPIO_66"),
  167. PINCTRL_PIN(67, "GPIO_67"),
  168. PINCTRL_PIN(68, "GPIO_68"),
  169. PINCTRL_PIN(69, "GPIO_69"),
  170. PINCTRL_PIN(70, "GPIO_70"),
  171. PINCTRL_PIN(71, "GPIO_71"),
  172. PINCTRL_PIN(72, "GPIO_72"),
  173. PINCTRL_PIN(73, "GPIO_73"),
  174. PINCTRL_PIN(74, "GPIO_74"),
  175. PINCTRL_PIN(75, "GPIO_75"),
  176. PINCTRL_PIN(76, "GPIO_76"),
  177. PINCTRL_PIN(77, "GPIO_77"),
  178. PINCTRL_PIN(78, "GPIO_78"),
  179. PINCTRL_PIN(79, "GPIO_79"),
  180. PINCTRL_PIN(80, "GPIO_80"),
  181. PINCTRL_PIN(81, "GPIO_81"),
  182. PINCTRL_PIN(82, "GPIO_82"),
  183. PINCTRL_PIN(83, "GPIO_83"),
  184. PINCTRL_PIN(84, "GPIO_84"),
  185. PINCTRL_PIN(85, "GPIO_85"),
  186. PINCTRL_PIN(86, "GPIO_86"),
  187. PINCTRL_PIN(87, "GPIO_87"),
  188. PINCTRL_PIN(88, "GPIO_88"),
  189. PINCTRL_PIN(89, "GPIO_89"),
  190. PINCTRL_PIN(90, "GPIO_90"),
  191. PINCTRL_PIN(91, "GPIO_91"),
  192. PINCTRL_PIN(92, "GPIO_92"),
  193. PINCTRL_PIN(93, "GPIO_93"),
  194. PINCTRL_PIN(94, "GPIO_94"),
  195. PINCTRL_PIN(95, "GPIO_95"),
  196. PINCTRL_PIN(96, "GPIO_96"),
  197. PINCTRL_PIN(97, "GPIO_97"),
  198. PINCTRL_PIN(98, "GPIO_98"),
  199. PINCTRL_PIN(99, "GPIO_99"),
  200. PINCTRL_PIN(100, "GPIO_100"),
  201. PINCTRL_PIN(101, "GPIO_101"),
  202. PINCTRL_PIN(102, "GPIO_102"),
  203. PINCTRL_PIN(103, "GPIO_103"),
  204. PINCTRL_PIN(104, "GPIO_104"),
  205. PINCTRL_PIN(105, "GPIO_105"),
  206. PINCTRL_PIN(106, "GPIO_106"),
  207. PINCTRL_PIN(107, "GPIO_107"),
  208. PINCTRL_PIN(108, "GPIO_108"),
  209. PINCTRL_PIN(109, "GPIO_109"),
  210. PINCTRL_PIN(110, "GPIO_110"),
  211. PINCTRL_PIN(111, "GPIO_111"),
  212. PINCTRL_PIN(112, "GPIO_112"),
  213. PINCTRL_PIN(113, "GPIO_113"),
  214. PINCTRL_PIN(114, "GPIO_114"),
  215. PINCTRL_PIN(115, "GPIO_115"),
  216. PINCTRL_PIN(116, "GPIO_116"),
  217. PINCTRL_PIN(117, "GPIO_117"),
  218. PINCTRL_PIN(118, "GPIO_118"),
  219. PINCTRL_PIN(119, "GPIO_119"),
  220. PINCTRL_PIN(120, "GPIO_120"),
  221. PINCTRL_PIN(121, "GPIO_121"),
  222. PINCTRL_PIN(122, "GPIO_122"),
  223. PINCTRL_PIN(123, "GPIO_123"),
  224. PINCTRL_PIN(124, "GPIO_124"),
  225. PINCTRL_PIN(125, "GPIO_125"),
  226. PINCTRL_PIN(126, "GPIO_126"),
  227. PINCTRL_PIN(127, "GPIO_127"),
  228. PINCTRL_PIN(128, "GPIO_128"),
  229. PINCTRL_PIN(129, "GPIO_129"),
  230. PINCTRL_PIN(130, "GPIO_130"),
  231. PINCTRL_PIN(131, "GPIO_131"),
  232. PINCTRL_PIN(132, "GPIO_132"),
  233. PINCTRL_PIN(133, "GPIO_133"),
  234. PINCTRL_PIN(134, "GPIO_134"),
  235. PINCTRL_PIN(135, "GPIO_135"),
  236. PINCTRL_PIN(136, "GPIO_136"),
  237. PINCTRL_PIN(137, "GPIO_137"),
  238. PINCTRL_PIN(138, "GPIO_138"),
  239. PINCTRL_PIN(139, "GPIO_139"),
  240. PINCTRL_PIN(140, "GPIO_140"),
  241. PINCTRL_PIN(141, "GPIO_141"),
  242. PINCTRL_PIN(142, "GPIO_142"),
  243. PINCTRL_PIN(143, "GPIO_143"),
  244. PINCTRL_PIN(144, "GPIO_144"),
  245. PINCTRL_PIN(145, "GPIO_145"),
  246. PINCTRL_PIN(146, "GPIO_146"),
  247. PINCTRL_PIN(147, "GPIO_147"),
  248. PINCTRL_PIN(148, "GPIO_148"),
  249. PINCTRL_PIN(149, "GPIO_149"),
  250. PINCTRL_PIN(150, "GPIO_150"),
  251. PINCTRL_PIN(151, "GPIO_151"),
  252. PINCTRL_PIN(152, "GPIO_152"),
  253. PINCTRL_PIN(153, "GPIO_153"),
  254. PINCTRL_PIN(154, "GPIO_154"),
  255. PINCTRL_PIN(155, "GPIO_155"),
  256. PINCTRL_PIN(156, "GPIO_156"),
  257. PINCTRL_PIN(157, "GPIO_157"),
  258. PINCTRL_PIN(158, "GPIO_158"),
  259. PINCTRL_PIN(159, "GPIO_159"),
  260. PINCTRL_PIN(160, "GPIO_160"),
  261. PINCTRL_PIN(161, "GPIO_161"),
  262. PINCTRL_PIN(162, "GPIO_162"),
  263. PINCTRL_PIN(163, "GPIO_163"),
  264. PINCTRL_PIN(164, "GPIO_164"),
  265. PINCTRL_PIN(165, "GPIO_165"),
  266. PINCTRL_PIN(166, "GPIO_166"),
  267. PINCTRL_PIN(167, "GPIO_167"),
  268. PINCTRL_PIN(168, "GPIO_168"),
  269. PINCTRL_PIN(169, "GPIO_169"),
  270. PINCTRL_PIN(170, "GPIO_170"),
  271. PINCTRL_PIN(171, "GPIO_171"),
  272. PINCTRL_PIN(172, "GPIO_172"),
  273. PINCTRL_PIN(173, "GPIO_173"),
  274. PINCTRL_PIN(174, "GPIO_174"),
  275. PINCTRL_PIN(175, "GPIO_175"),
  276. PINCTRL_PIN(176, "GPIO_176"),
  277. PINCTRL_PIN(177, "GPIO_177"),
  278. PINCTRL_PIN(178, "GPIO_178"),
  279. PINCTRL_PIN(179, "GPIO_179"),
  280. PINCTRL_PIN(180, "GPIO_180"),
  281. PINCTRL_PIN(181, "GPIO_181"),
  282. PINCTRL_PIN(182, "GPIO_182"),
  283. PINCTRL_PIN(183, "GPIO_183"),
  284. PINCTRL_PIN(184, "GPIO_184"),
  285. PINCTRL_PIN(185, "GPIO_185"),
  286. PINCTRL_PIN(186, "GPIO_186"),
  287. PINCTRL_PIN(187, "GPIO_187"),
  288. PINCTRL_PIN(188, "GPIO_188"),
  289. PINCTRL_PIN(189, "GPIO_189"),
  290. PINCTRL_PIN(190, "GPIO_190"),
  291. PINCTRL_PIN(191, "GPIO_191"),
  292. PINCTRL_PIN(192, "GPIO_192"),
  293. PINCTRL_PIN(193, "GPIO_193"),
  294. PINCTRL_PIN(194, "GPIO_194"),
  295. PINCTRL_PIN(195, "GPIO_195"),
  296. PINCTRL_PIN(196, "GPIO_196"),
  297. PINCTRL_PIN(197, "GPIO_197"),
  298. PINCTRL_PIN(198, "GPIO_198"),
  299. PINCTRL_PIN(199, "GPIO_199"),
  300. PINCTRL_PIN(200, "GPIO_200"),
  301. PINCTRL_PIN(201, "GPIO_201"),
  302. PINCTRL_PIN(202, "GPIO_202"),
  303. PINCTRL_PIN(203, "GPIO_203"),
  304. PINCTRL_PIN(204, "GPIO_204"),
  305. PINCTRL_PIN(205, "GPIO_205"),
  306. PINCTRL_PIN(206, "GPIO_206"),
  307. PINCTRL_PIN(207, "GPIO_207"),
  308. PINCTRL_PIN(208, "GPIO_208"),
  309. PINCTRL_PIN(209, "GPIO_209"),
  310. PINCTRL_PIN(210, "GPIO_210"),
  311. PINCTRL_PIN(211, "GPIO_211"),
  312. PINCTRL_PIN(212, "GPIO_212"),
  313. PINCTRL_PIN(213, "GPIO_213"),
  314. PINCTRL_PIN(214, "GPIO_214"),
  315. PINCTRL_PIN(215, "GPIO_215"),
  316. PINCTRL_PIN(216, "GPIO_216"),
  317. PINCTRL_PIN(217, "GPIO_217"),
  318. PINCTRL_PIN(218, "GPIO_218"),
  319. PINCTRL_PIN(219, "GPIO_219"),
  320. PINCTRL_PIN(220, "GPIO_220"),
  321. PINCTRL_PIN(221, "GPIO_221"),
  322. PINCTRL_PIN(222, "GPIO_222"),
  323. PINCTRL_PIN(223, "GPIO_223"),
  324. PINCTRL_PIN(224, "GPIO_224"),
  325. PINCTRL_PIN(225, "GPIO_225"),
  326. PINCTRL_PIN(226, "GPIO_226"),
  327. PINCTRL_PIN(227, "GPIO_227"),
  328. PINCTRL_PIN(228, "GPIO_228"),
  329. PINCTRL_PIN(229, "GPIO_229"),
  330. PINCTRL_PIN(230, "GPIO_230"),
  331. PINCTRL_PIN(231, "GPIO_231"),
  332. PINCTRL_PIN(232, "GPIO_232"),
  333. PINCTRL_PIN(233, "GPIO_233"),
  334. PINCTRL_PIN(234, "GPIO_234"),
  335. PINCTRL_PIN(235, "GPIO_235"),
  336. PINCTRL_PIN(236, "GPIO_236"),
  337. PINCTRL_PIN(237, "GPIO_237"),
  338. PINCTRL_PIN(238, "UFS_RESET"),
  339. PINCTRL_PIN(239, "SDC2_CLK"),
  340. PINCTRL_PIN(240, "SDC2_CMD"),
  341. PINCTRL_PIN(241, "SDC2_DATA"),
  342. };
  343. #define DECLARE_MSM_GPIO_PINS(pin) \
  344. static const unsigned int gpio##pin##_pins[] = { pin }
  345. DECLARE_MSM_GPIO_PINS(0);
  346. DECLARE_MSM_GPIO_PINS(1);
  347. DECLARE_MSM_GPIO_PINS(2);
  348. DECLARE_MSM_GPIO_PINS(3);
  349. DECLARE_MSM_GPIO_PINS(4);
  350. DECLARE_MSM_GPIO_PINS(5);
  351. DECLARE_MSM_GPIO_PINS(6);
  352. DECLARE_MSM_GPIO_PINS(7);
  353. DECLARE_MSM_GPIO_PINS(8);
  354. DECLARE_MSM_GPIO_PINS(9);
  355. DECLARE_MSM_GPIO_PINS(10);
  356. DECLARE_MSM_GPIO_PINS(11);
  357. DECLARE_MSM_GPIO_PINS(12);
  358. DECLARE_MSM_GPIO_PINS(13);
  359. DECLARE_MSM_GPIO_PINS(14);
  360. DECLARE_MSM_GPIO_PINS(15);
  361. DECLARE_MSM_GPIO_PINS(16);
  362. DECLARE_MSM_GPIO_PINS(17);
  363. DECLARE_MSM_GPIO_PINS(18);
  364. DECLARE_MSM_GPIO_PINS(19);
  365. DECLARE_MSM_GPIO_PINS(20);
  366. DECLARE_MSM_GPIO_PINS(21);
  367. DECLARE_MSM_GPIO_PINS(22);
  368. DECLARE_MSM_GPIO_PINS(23);
  369. DECLARE_MSM_GPIO_PINS(24);
  370. DECLARE_MSM_GPIO_PINS(25);
  371. DECLARE_MSM_GPIO_PINS(26);
  372. DECLARE_MSM_GPIO_PINS(27);
  373. DECLARE_MSM_GPIO_PINS(28);
  374. DECLARE_MSM_GPIO_PINS(29);
  375. DECLARE_MSM_GPIO_PINS(30);
  376. DECLARE_MSM_GPIO_PINS(31);
  377. DECLARE_MSM_GPIO_PINS(32);
  378. DECLARE_MSM_GPIO_PINS(33);
  379. DECLARE_MSM_GPIO_PINS(34);
  380. DECLARE_MSM_GPIO_PINS(35);
  381. DECLARE_MSM_GPIO_PINS(36);
  382. DECLARE_MSM_GPIO_PINS(37);
  383. DECLARE_MSM_GPIO_PINS(38);
  384. DECLARE_MSM_GPIO_PINS(39);
  385. DECLARE_MSM_GPIO_PINS(40);
  386. DECLARE_MSM_GPIO_PINS(41);
  387. DECLARE_MSM_GPIO_PINS(42);
  388. DECLARE_MSM_GPIO_PINS(43);
  389. DECLARE_MSM_GPIO_PINS(44);
  390. DECLARE_MSM_GPIO_PINS(45);
  391. DECLARE_MSM_GPIO_PINS(46);
  392. DECLARE_MSM_GPIO_PINS(47);
  393. DECLARE_MSM_GPIO_PINS(48);
  394. DECLARE_MSM_GPIO_PINS(49);
  395. DECLARE_MSM_GPIO_PINS(50);
  396. DECLARE_MSM_GPIO_PINS(51);
  397. DECLARE_MSM_GPIO_PINS(52);
  398. DECLARE_MSM_GPIO_PINS(53);
  399. DECLARE_MSM_GPIO_PINS(54);
  400. DECLARE_MSM_GPIO_PINS(55);
  401. DECLARE_MSM_GPIO_PINS(56);
  402. DECLARE_MSM_GPIO_PINS(57);
  403. DECLARE_MSM_GPIO_PINS(58);
  404. DECLARE_MSM_GPIO_PINS(59);
  405. DECLARE_MSM_GPIO_PINS(60);
  406. DECLARE_MSM_GPIO_PINS(61);
  407. DECLARE_MSM_GPIO_PINS(62);
  408. DECLARE_MSM_GPIO_PINS(63);
  409. DECLARE_MSM_GPIO_PINS(64);
  410. DECLARE_MSM_GPIO_PINS(65);
  411. DECLARE_MSM_GPIO_PINS(66);
  412. DECLARE_MSM_GPIO_PINS(67);
  413. DECLARE_MSM_GPIO_PINS(68);
  414. DECLARE_MSM_GPIO_PINS(69);
  415. DECLARE_MSM_GPIO_PINS(70);
  416. DECLARE_MSM_GPIO_PINS(71);
  417. DECLARE_MSM_GPIO_PINS(72);
  418. DECLARE_MSM_GPIO_PINS(73);
  419. DECLARE_MSM_GPIO_PINS(74);
  420. DECLARE_MSM_GPIO_PINS(75);
  421. DECLARE_MSM_GPIO_PINS(76);
  422. DECLARE_MSM_GPIO_PINS(77);
  423. DECLARE_MSM_GPIO_PINS(78);
  424. DECLARE_MSM_GPIO_PINS(79);
  425. DECLARE_MSM_GPIO_PINS(80);
  426. DECLARE_MSM_GPIO_PINS(81);
  427. DECLARE_MSM_GPIO_PINS(82);
  428. DECLARE_MSM_GPIO_PINS(83);
  429. DECLARE_MSM_GPIO_PINS(84);
  430. DECLARE_MSM_GPIO_PINS(85);
  431. DECLARE_MSM_GPIO_PINS(86);
  432. DECLARE_MSM_GPIO_PINS(87);
  433. DECLARE_MSM_GPIO_PINS(88);
  434. DECLARE_MSM_GPIO_PINS(89);
  435. DECLARE_MSM_GPIO_PINS(90);
  436. DECLARE_MSM_GPIO_PINS(91);
  437. DECLARE_MSM_GPIO_PINS(92);
  438. DECLARE_MSM_GPIO_PINS(93);
  439. DECLARE_MSM_GPIO_PINS(94);
  440. DECLARE_MSM_GPIO_PINS(95);
  441. DECLARE_MSM_GPIO_PINS(96);
  442. DECLARE_MSM_GPIO_PINS(97);
  443. DECLARE_MSM_GPIO_PINS(98);
  444. DECLARE_MSM_GPIO_PINS(99);
  445. DECLARE_MSM_GPIO_PINS(100);
  446. DECLARE_MSM_GPIO_PINS(101);
  447. DECLARE_MSM_GPIO_PINS(102);
  448. DECLARE_MSM_GPIO_PINS(103);
  449. DECLARE_MSM_GPIO_PINS(104);
  450. DECLARE_MSM_GPIO_PINS(105);
  451. DECLARE_MSM_GPIO_PINS(106);
  452. DECLARE_MSM_GPIO_PINS(107);
  453. DECLARE_MSM_GPIO_PINS(108);
  454. DECLARE_MSM_GPIO_PINS(109);
  455. DECLARE_MSM_GPIO_PINS(110);
  456. DECLARE_MSM_GPIO_PINS(111);
  457. DECLARE_MSM_GPIO_PINS(112);
  458. DECLARE_MSM_GPIO_PINS(113);
  459. DECLARE_MSM_GPIO_PINS(114);
  460. DECLARE_MSM_GPIO_PINS(115);
  461. DECLARE_MSM_GPIO_PINS(116);
  462. DECLARE_MSM_GPIO_PINS(117);
  463. DECLARE_MSM_GPIO_PINS(118);
  464. DECLARE_MSM_GPIO_PINS(119);
  465. DECLARE_MSM_GPIO_PINS(120);
  466. DECLARE_MSM_GPIO_PINS(121);
  467. DECLARE_MSM_GPIO_PINS(122);
  468. DECLARE_MSM_GPIO_PINS(123);
  469. DECLARE_MSM_GPIO_PINS(124);
  470. DECLARE_MSM_GPIO_PINS(125);
  471. DECLARE_MSM_GPIO_PINS(126);
  472. DECLARE_MSM_GPIO_PINS(127);
  473. DECLARE_MSM_GPIO_PINS(128);
  474. DECLARE_MSM_GPIO_PINS(129);
  475. DECLARE_MSM_GPIO_PINS(130);
  476. DECLARE_MSM_GPIO_PINS(131);
  477. DECLARE_MSM_GPIO_PINS(132);
  478. DECLARE_MSM_GPIO_PINS(133);
  479. DECLARE_MSM_GPIO_PINS(134);
  480. DECLARE_MSM_GPIO_PINS(135);
  481. DECLARE_MSM_GPIO_PINS(136);
  482. DECLARE_MSM_GPIO_PINS(137);
  483. DECLARE_MSM_GPIO_PINS(138);
  484. DECLARE_MSM_GPIO_PINS(139);
  485. DECLARE_MSM_GPIO_PINS(140);
  486. DECLARE_MSM_GPIO_PINS(141);
  487. DECLARE_MSM_GPIO_PINS(142);
  488. DECLARE_MSM_GPIO_PINS(143);
  489. DECLARE_MSM_GPIO_PINS(144);
  490. DECLARE_MSM_GPIO_PINS(145);
  491. DECLARE_MSM_GPIO_PINS(146);
  492. DECLARE_MSM_GPIO_PINS(147);
  493. DECLARE_MSM_GPIO_PINS(148);
  494. DECLARE_MSM_GPIO_PINS(149);
  495. DECLARE_MSM_GPIO_PINS(150);
  496. DECLARE_MSM_GPIO_PINS(151);
  497. DECLARE_MSM_GPIO_PINS(152);
  498. DECLARE_MSM_GPIO_PINS(153);
  499. DECLARE_MSM_GPIO_PINS(154);
  500. DECLARE_MSM_GPIO_PINS(155);
  501. DECLARE_MSM_GPIO_PINS(156);
  502. DECLARE_MSM_GPIO_PINS(157);
  503. DECLARE_MSM_GPIO_PINS(158);
  504. DECLARE_MSM_GPIO_PINS(159);
  505. DECLARE_MSM_GPIO_PINS(160);
  506. DECLARE_MSM_GPIO_PINS(161);
  507. DECLARE_MSM_GPIO_PINS(162);
  508. DECLARE_MSM_GPIO_PINS(163);
  509. DECLARE_MSM_GPIO_PINS(164);
  510. DECLARE_MSM_GPIO_PINS(165);
  511. DECLARE_MSM_GPIO_PINS(166);
  512. DECLARE_MSM_GPIO_PINS(167);
  513. DECLARE_MSM_GPIO_PINS(168);
  514. DECLARE_MSM_GPIO_PINS(169);
  515. DECLARE_MSM_GPIO_PINS(170);
  516. DECLARE_MSM_GPIO_PINS(171);
  517. DECLARE_MSM_GPIO_PINS(172);
  518. DECLARE_MSM_GPIO_PINS(173);
  519. DECLARE_MSM_GPIO_PINS(174);
  520. DECLARE_MSM_GPIO_PINS(175);
  521. DECLARE_MSM_GPIO_PINS(176);
  522. DECLARE_MSM_GPIO_PINS(177);
  523. DECLARE_MSM_GPIO_PINS(178);
  524. DECLARE_MSM_GPIO_PINS(179);
  525. DECLARE_MSM_GPIO_PINS(180);
  526. DECLARE_MSM_GPIO_PINS(181);
  527. DECLARE_MSM_GPIO_PINS(182);
  528. DECLARE_MSM_GPIO_PINS(183);
  529. DECLARE_MSM_GPIO_PINS(184);
  530. DECLARE_MSM_GPIO_PINS(185);
  531. DECLARE_MSM_GPIO_PINS(186);
  532. DECLARE_MSM_GPIO_PINS(187);
  533. DECLARE_MSM_GPIO_PINS(188);
  534. DECLARE_MSM_GPIO_PINS(189);
  535. DECLARE_MSM_GPIO_PINS(190);
  536. DECLARE_MSM_GPIO_PINS(191);
  537. DECLARE_MSM_GPIO_PINS(192);
  538. DECLARE_MSM_GPIO_PINS(193);
  539. DECLARE_MSM_GPIO_PINS(194);
  540. DECLARE_MSM_GPIO_PINS(195);
  541. DECLARE_MSM_GPIO_PINS(196);
  542. DECLARE_MSM_GPIO_PINS(197);
  543. DECLARE_MSM_GPIO_PINS(198);
  544. DECLARE_MSM_GPIO_PINS(199);
  545. DECLARE_MSM_GPIO_PINS(200);
  546. DECLARE_MSM_GPIO_PINS(201);
  547. DECLARE_MSM_GPIO_PINS(202);
  548. DECLARE_MSM_GPIO_PINS(203);
  549. DECLARE_MSM_GPIO_PINS(204);
  550. DECLARE_MSM_GPIO_PINS(205);
  551. DECLARE_MSM_GPIO_PINS(206);
  552. DECLARE_MSM_GPIO_PINS(207);
  553. DECLARE_MSM_GPIO_PINS(208);
  554. DECLARE_MSM_GPIO_PINS(209);
  555. DECLARE_MSM_GPIO_PINS(210);
  556. DECLARE_MSM_GPIO_PINS(211);
  557. DECLARE_MSM_GPIO_PINS(212);
  558. DECLARE_MSM_GPIO_PINS(213);
  559. DECLARE_MSM_GPIO_PINS(214);
  560. DECLARE_MSM_GPIO_PINS(215);
  561. DECLARE_MSM_GPIO_PINS(216);
  562. DECLARE_MSM_GPIO_PINS(217);
  563. DECLARE_MSM_GPIO_PINS(218);
  564. DECLARE_MSM_GPIO_PINS(219);
  565. DECLARE_MSM_GPIO_PINS(220);
  566. DECLARE_MSM_GPIO_PINS(221);
  567. DECLARE_MSM_GPIO_PINS(222);
  568. DECLARE_MSM_GPIO_PINS(223);
  569. DECLARE_MSM_GPIO_PINS(224);
  570. DECLARE_MSM_GPIO_PINS(225);
  571. DECLARE_MSM_GPIO_PINS(226);
  572. DECLARE_MSM_GPIO_PINS(227);
  573. DECLARE_MSM_GPIO_PINS(228);
  574. DECLARE_MSM_GPIO_PINS(229);
  575. DECLARE_MSM_GPIO_PINS(230);
  576. DECLARE_MSM_GPIO_PINS(231);
  577. DECLARE_MSM_GPIO_PINS(232);
  578. DECLARE_MSM_GPIO_PINS(233);
  579. DECLARE_MSM_GPIO_PINS(234);
  580. DECLARE_MSM_GPIO_PINS(235);
  581. DECLARE_MSM_GPIO_PINS(236);
  582. DECLARE_MSM_GPIO_PINS(237);
  583. static const unsigned int ufs_reset_pins[] = { 238 };
  584. static const unsigned int sdc2_clk_pins[] = { 239 };
  585. static const unsigned int sdc2_cmd_pins[] = { 240 };
  586. static const unsigned int sdc2_data_pins[] = { 241 };
  587. enum x1e80100_functions {
  588. msm_mux_gpio,
  589. msm_mux_RESOUT_GPIO,
  590. msm_mux_aon_cci,
  591. msm_mux_aoss_cti,
  592. msm_mux_atest_char,
  593. msm_mux_atest_char0,
  594. msm_mux_atest_char1,
  595. msm_mux_atest_char2,
  596. msm_mux_atest_char3,
  597. msm_mux_atest_usb,
  598. msm_mux_audio_ext,
  599. msm_mux_audio_ref,
  600. msm_mux_cam_aon,
  601. msm_mux_cam_mclk,
  602. msm_mux_cci_async,
  603. msm_mux_cci_i2c,
  604. msm_mux_cci_timer0,
  605. msm_mux_cci_timer1,
  606. msm_mux_cci_timer2,
  607. msm_mux_cci_timer3,
  608. msm_mux_cci_timer4,
  609. msm_mux_cmu_rng0,
  610. msm_mux_cmu_rng1,
  611. msm_mux_cmu_rng2,
  612. msm_mux_cmu_rng3,
  613. msm_mux_cri_trng,
  614. msm_mux_dbg_out,
  615. msm_mux_ddr_bist,
  616. msm_mux_ddr_pxi0,
  617. msm_mux_ddr_pxi1,
  618. msm_mux_ddr_pxi2,
  619. msm_mux_ddr_pxi3,
  620. msm_mux_ddr_pxi4,
  621. msm_mux_ddr_pxi5,
  622. msm_mux_ddr_pxi6,
  623. msm_mux_ddr_pxi7,
  624. msm_mux_edp0_hot,
  625. msm_mux_edp0_lcd,
  626. msm_mux_edp1_hot,
  627. msm_mux_edp1_lcd,
  628. msm_mux_eusb0_ac,
  629. msm_mux_eusb1_ac,
  630. msm_mux_eusb2_ac,
  631. msm_mux_eusb3_ac,
  632. msm_mux_eusb5_ac,
  633. msm_mux_eusb6_ac,
  634. msm_mux_gcc_gp1,
  635. msm_mux_gcc_gp2,
  636. msm_mux_gcc_gp3,
  637. msm_mux_i2s0_data0,
  638. msm_mux_i2s0_data1,
  639. msm_mux_i2s0_sck,
  640. msm_mux_i2s0_ws,
  641. msm_mux_i2s1_data0,
  642. msm_mux_i2s1_data1,
  643. msm_mux_i2s1_sck,
  644. msm_mux_i2s1_ws,
  645. msm_mux_ibi_i3c,
  646. msm_mux_jitter_bist,
  647. msm_mux_mdp_vsync0,
  648. msm_mux_mdp_vsync1,
  649. msm_mux_mdp_vsync2,
  650. msm_mux_mdp_vsync3,
  651. msm_mux_mdp_vsync4,
  652. msm_mux_mdp_vsync5,
  653. msm_mux_mdp_vsync6,
  654. msm_mux_mdp_vsync7,
  655. msm_mux_mdp_vsync8,
  656. msm_mux_pcie3_clk,
  657. msm_mux_pcie4_clk,
  658. msm_mux_pcie5_clk,
  659. msm_mux_pcie6a_clk,
  660. msm_mux_pcie6b_clk,
  661. msm_mux_phase_flag,
  662. msm_mux_pll_bist,
  663. msm_mux_pll_clk,
  664. msm_mux_prng_rosc0,
  665. msm_mux_prng_rosc1,
  666. msm_mux_prng_rosc2,
  667. msm_mux_prng_rosc3,
  668. msm_mux_qdss_cti,
  669. msm_mux_qdss_gpio,
  670. msm_mux_qspi00,
  671. msm_mux_qspi01,
  672. msm_mux_qspi02,
  673. msm_mux_qspi03,
  674. msm_mux_qspi0_clk,
  675. msm_mux_qspi0_cs0,
  676. msm_mux_qspi0_cs1,
  677. msm_mux_qup0_se0,
  678. msm_mux_qup0_se1,
  679. msm_mux_qup0_se2,
  680. msm_mux_qup0_se3,
  681. msm_mux_qup0_se4,
  682. msm_mux_qup0_se5,
  683. msm_mux_qup0_se6,
  684. msm_mux_qup0_se7,
  685. msm_mux_qup1_se0,
  686. msm_mux_qup1_se1,
  687. msm_mux_qup1_se2,
  688. msm_mux_qup1_se3,
  689. msm_mux_qup1_se4,
  690. msm_mux_qup1_se5,
  691. msm_mux_qup1_se6,
  692. msm_mux_qup1_se7,
  693. msm_mux_qup2_se0,
  694. msm_mux_qup2_se1,
  695. msm_mux_qup2_se2,
  696. msm_mux_qup2_se3,
  697. msm_mux_qup2_se4,
  698. msm_mux_qup2_se5,
  699. msm_mux_qup2_se6,
  700. msm_mux_qup2_se7,
  701. msm_mux_sd_write,
  702. msm_mux_sdc4_clk,
  703. msm_mux_sdc4_cmd,
  704. msm_mux_sdc4_data0,
  705. msm_mux_sdc4_data1,
  706. msm_mux_sdc4_data2,
  707. msm_mux_sdc4_data3,
  708. msm_mux_sys_throttle,
  709. msm_mux_tb_trig,
  710. msm_mux_tgu_ch0,
  711. msm_mux_tgu_ch1,
  712. msm_mux_tgu_ch2,
  713. msm_mux_tgu_ch3,
  714. msm_mux_tgu_ch4,
  715. msm_mux_tgu_ch5,
  716. msm_mux_tgu_ch6,
  717. msm_mux_tgu_ch7,
  718. msm_mux_tmess_prng0,
  719. msm_mux_tmess_prng1,
  720. msm_mux_tmess_prng2,
  721. msm_mux_tmess_prng3,
  722. msm_mux_tsense_pwm1,
  723. msm_mux_tsense_pwm2,
  724. msm_mux_tsense_pwm3,
  725. msm_mux_tsense_pwm4,
  726. msm_mux_usb0_dp,
  727. msm_mux_usb0_phy,
  728. msm_mux_usb0_sbrx,
  729. msm_mux_usb0_sbtx,
  730. msm_mux_usb1_dp,
  731. msm_mux_usb1_phy,
  732. msm_mux_usb1_sbrx,
  733. msm_mux_usb1_sbtx,
  734. msm_mux_usb2_dp,
  735. msm_mux_usb2_phy,
  736. msm_mux_usb2_sbrx,
  737. msm_mux_usb2_sbtx,
  738. msm_mux_vsense_trigger,
  739. msm_mux__,
  740. };
  741. static const char * const gpio_groups[] = {
  742. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  743. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  744. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  745. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  746. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  747. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  748. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  749. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  750. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  751. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  752. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  753. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  754. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
  755. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
  756. "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
  757. "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
  758. "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
  759. "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
  760. "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
  761. "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
  762. "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
  763. "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
  764. "gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
  765. "gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158",
  766. "gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
  767. "gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170",
  768. "gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176",
  769. "gpio177", "gpio178", "gpio179", "gpio180", "gpio181", "gpio182",
  770. "gpio183", "gpio184", "gpio185", "gpio186", "gpio187", "gpio188",
  771. "gpio189", "gpio190", "gpio191", "gpio192", "gpio193", "gpio194",
  772. "gpio195", "gpio196", "gpio197", "gpio198", "gpio199", "gpio200",
  773. "gpio201", "gpio202", "gpio203", "gpio204", "gpio205", "gpio206",
  774. "gpio207", "gpio208", "gpio209", "gpio210", "gpio211", "gpio212",
  775. "gpio213", "gpio214", "gpio215", "gpio216", "gpio217", "gpio218",
  776. "gpio219", "gpio220", "gpio221", "gpio222", "gpio223", "gpio224",
  777. "gpio225", "gpio226", "gpio227", "gpio228", "gpio229", "gpio230",
  778. "gpio231", "gpio232", "gpio233", "gpio234", "gpio235", "gpio236",
  779. "gpio237",
  780. };
  781. static const char * const RESOUT_GPIO_groups[] = {
  782. "gpio160",
  783. };
  784. static const char * const aon_cci_groups[] = {
  785. "gpio235", "gpio236",
  786. };
  787. static const char * const aoss_cti_groups[] = {
  788. "gpio60", "gpio61", "gpio62", "gpio63",
  789. };
  790. static const char * const atest_char_groups[] = {
  791. "gpio181",
  792. };
  793. static const char * const atest_char0_groups[] = {
  794. "gpio185",
  795. };
  796. static const char * const atest_char1_groups[] = {
  797. "gpio184",
  798. };
  799. static const char * const atest_char2_groups[] = {
  800. "gpio188",
  801. };
  802. static const char * const atest_char3_groups[] = {
  803. "gpio182",
  804. };
  805. static const char * const atest_usb_groups[] = {
  806. "gpio9", "gpio10", "gpio35", "gpio38", "gpio41", "gpio42",
  807. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48",
  808. "gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54",
  809. "gpio58", "gpio59", "gpio65", "gpio66", "gpio67", "gpio72",
  810. "gpio73", "gpio74", "gpio75", "gpio80", "gpio81", "gpio83",
  811. };
  812. static const char * const audio_ext_groups[] = {
  813. "gpio134", "gpio142",
  814. };
  815. static const char * const audio_ref_groups[] = {
  816. "gpio142",
  817. };
  818. static const char * const cam_aon_groups[] = {
  819. "gpio100",
  820. };
  821. static const char * const cam_mclk_groups[] = {
  822. "gpio96", "gpio97", "gpio98", "gpio99",
  823. };
  824. static const char * const cci_async_groups[] = {
  825. "gpio111", "gpio112", "gpio113",
  826. };
  827. static const char * const cci_i2c_groups[] = {
  828. "gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106",
  829. };
  830. static const char * const cci_timer0_groups[] = {
  831. "gpio109",
  832. };
  833. static const char * const cci_timer1_groups[] = {
  834. "gpio110",
  835. };
  836. static const char * const cci_timer2_groups[] = {
  837. "gpio111",
  838. };
  839. static const char * const cci_timer3_groups[] = {
  840. "gpio112",
  841. };
  842. static const char * const cci_timer4_groups[] = {
  843. "gpio113",
  844. };
  845. static const char * const cmu_rng0_groups[] = {
  846. "gpio48",
  847. };
  848. static const char * const cmu_rng1_groups[] = {
  849. "gpio47",
  850. };
  851. static const char * const cmu_rng2_groups[] = {
  852. "gpio46",
  853. };
  854. static const char * const cmu_rng3_groups[] = {
  855. "gpio45",
  856. };
  857. static const char * const cri_trng_groups[] = {
  858. "gpio187",
  859. };
  860. static const char * const dbg_out_groups[] = {
  861. "gpio51",
  862. };
  863. static const char * const ddr_bist_groups[] = {
  864. "gpio54", "gpio55", "gpio56", "gpio57",
  865. };
  866. static const char * const ddr_pxi0_groups[] = {
  867. "gpio9", "gpio38",
  868. };
  869. static const char * const ddr_pxi1_groups[] = {
  870. "gpio10", "gpio41",
  871. };
  872. static const char * const ddr_pxi2_groups[] = {
  873. "gpio42", "gpio43",
  874. };
  875. static const char * const ddr_pxi3_groups[] = {
  876. "gpio44", "gpio45",
  877. };
  878. static const char * const ddr_pxi4_groups[] = {
  879. "gpio46", "gpio47",
  880. };
  881. static const char * const ddr_pxi5_groups[] = {
  882. "gpio48", "gpio49",
  883. };
  884. static const char * const ddr_pxi6_groups[] = {
  885. "gpio50", "gpio51",
  886. };
  887. static const char * const ddr_pxi7_groups[] = {
  888. "gpio52", "gpio53",
  889. };
  890. static const char * const edp0_hot_groups[] = {
  891. "gpio119",
  892. };
  893. static const char * const edp0_lcd_groups[] = {
  894. "gpio120",
  895. };
  896. static const char * const edp1_hot_groups[] = {
  897. "gpio120",
  898. };
  899. static const char * const edp1_lcd_groups[] = {
  900. "gpio115", "gpio119",
  901. };
  902. static const char * const eusb0_ac_groups[] = {
  903. "gpio168",
  904. };
  905. static const char * const eusb1_ac_groups[] = {
  906. "gpio177",
  907. };
  908. static const char * const eusb2_ac_groups[] = {
  909. "gpio186",
  910. };
  911. static const char * const eusb3_ac_groups[] = {
  912. "gpio169",
  913. };
  914. static const char * const eusb5_ac_groups[] = {
  915. "gpio187",
  916. };
  917. static const char * const eusb6_ac_groups[] = {
  918. "gpio178",
  919. };
  920. static const char * const gcc_gp1_groups[] = {
  921. "gpio71", "gpio72",
  922. };
  923. static const char * const gcc_gp2_groups[] = {
  924. "gpio64", "gpio73",
  925. };
  926. static const char * const gcc_gp3_groups[] = {
  927. "gpio74", "gpio82",
  928. };
  929. static const char * const i2s0_data0_groups[] = {
  930. "gpio136",
  931. };
  932. static const char * const i2s0_data1_groups[] = {
  933. "gpio137",
  934. };
  935. static const char * const i2s0_sck_groups[] = {
  936. "gpio135",
  937. };
  938. static const char * const i2s0_ws_groups[] = {
  939. "gpio138",
  940. };
  941. static const char * const i2s1_data0_groups[] = {
  942. "gpio140",
  943. };
  944. static const char * const i2s1_data1_groups[] = {
  945. "gpio142",
  946. };
  947. static const char * const i2s1_sck_groups[] = {
  948. "gpio139",
  949. };
  950. static const char * const i2s1_ws_groups[] = {
  951. "gpio141",
  952. };
  953. static const char * const ibi_i3c_groups[] = {
  954. "gpio0", "gpio1", "gpio32", "gpio33", "gpio36", "gpio37", "gpio68",
  955. "gpio69",
  956. };
  957. static const char * const jitter_bist_groups[] = {
  958. "gpio42",
  959. };
  960. static const char * const mdp_vsync0_groups[] = {
  961. "gpio114",
  962. };
  963. static const char * const mdp_vsync1_groups[] = {
  964. "gpio114",
  965. };
  966. static const char * const mdp_vsync2_groups[] = {
  967. "gpio115",
  968. };
  969. static const char * const mdp_vsync3_groups[] = {
  970. "gpio115",
  971. };
  972. static const char * const mdp_vsync4_groups[] = {
  973. "gpio109",
  974. };
  975. static const char * const mdp_vsync5_groups[] = {
  976. "gpio110",
  977. };
  978. static const char * const mdp_vsync6_groups[] = {
  979. "gpio111",
  980. };
  981. static const char * const mdp_vsync7_groups[] = {
  982. "gpio112",
  983. };
  984. static const char * const mdp_vsync8_groups[] = {
  985. "gpio113",
  986. };
  987. static const char * const pcie3_clk_groups[] = {
  988. "gpio144",
  989. };
  990. static const char * const pcie4_clk_groups[] = {
  991. "gpio147",
  992. };
  993. static const char * const pcie5_clk_groups[] = {
  994. "gpio150",
  995. };
  996. static const char * const pcie6a_clk_groups[] = {
  997. "gpio153",
  998. };
  999. static const char * const pcie6b_clk_groups[] = {
  1000. "gpio156",
  1001. };
  1002. static const char * const phase_flag_groups[] = {
  1003. "gpio6", "gpio7", "gpio8", "gpio11", "gpio12", "gpio13",
  1004. "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19",
  1005. "gpio20", "gpio21", "gpio22", "gpio23", "gpio24", "gpio25",
  1006. "gpio26", "gpio27", "gpio39", "gpio40", "gpio76", "gpio77",
  1007. "gpio78", "gpio181", "gpio182", "gpio184", "gpio185",
  1008. "gpio186", "gpio187", "gpio188",
  1009. };
  1010. static const char * const pll_bist_groups[] = {
  1011. "gpio28",
  1012. };
  1013. static const char * const pll_clk_groups[] = {
  1014. "gpio35",
  1015. };
  1016. static const char * const prng_rosc0_groups[] = {
  1017. "gpio186",
  1018. };
  1019. static const char * const prng_rosc1_groups[] = {
  1020. "gpio188",
  1021. };
  1022. static const char * const prng_rosc2_groups[] = {
  1023. "gpio182",
  1024. };
  1025. static const char * const prng_rosc3_groups[] = {
  1026. "gpio181",
  1027. };
  1028. static const char * const qdss_cti_groups[] = {
  1029. "gpio18", "gpio19", "gpio23", "gpio27", "gpio161", "gpio162",
  1030. "gpio215", "gpio217",
  1031. };
  1032. static const char * const qdss_gpio_groups[] = {
  1033. "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", "gpio101",
  1034. "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107",
  1035. "gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113",
  1036. "gpio219", "gpio220", "gpio221", "gpio222", "gpio223", "gpio224",
  1037. "gpio225", "gpio226", "gpio227", "gpio228", "gpio229", "gpio230",
  1038. "gpio231", "gpio232", "gpio233", "gpio234", "gpio235", "gpio236",
  1039. };
  1040. static const char * const qspi00_groups[] = {
  1041. "gpio128",
  1042. };
  1043. static const char * const qspi01_groups[] = {
  1044. "gpio129",
  1045. };
  1046. static const char * const qspi02_groups[] = {
  1047. "gpio130",
  1048. };
  1049. static const char * const qspi03_groups[] = {
  1050. "gpio131",
  1051. };
  1052. static const char * const qspi0_clk_groups[] = {
  1053. "gpio127",
  1054. };
  1055. static const char * const qspi0_cs0_groups[] = {
  1056. "gpio132",
  1057. };
  1058. static const char * const qspi0_cs1_groups[] = {
  1059. "gpio133",
  1060. };
  1061. static const char * const qup0_se0_groups[] = {
  1062. "gpio0", "gpio1", "gpio2", "gpio3",
  1063. };
  1064. static const char * const qup0_se1_groups[] = {
  1065. "gpio4", "gpio5", "gpio6", "gpio7",
  1066. };
  1067. static const char * const qup0_se2_groups[] = {
  1068. "gpio8", "gpio9", "gpio10", "gpio11", "gpio17", "gpio18", "gpio19",
  1069. };
  1070. static const char * const qup0_se3_groups[] = {
  1071. "gpio12", "gpio13", "gpio14", "gpio15", "gpio21", "gpio22", "gpio23",
  1072. };
  1073. static const char * const qup0_se4_groups[] = {
  1074. "gpio16", "gpio17", "gpio18", "gpio19",
  1075. };
  1076. static const char * const qup0_se5_groups[] = {
  1077. "gpio20", "gpio21", "gpio22", "gpio23",
  1078. };
  1079. static const char * const qup0_se6_groups[] = {
  1080. "gpio24", "gpio25", "gpio26", "gpio27",
  1081. };
  1082. static const char * const qup0_se7_groups[] = {
  1083. "gpio12", "gpio13", "gpio14", "gpio15",
  1084. };
  1085. static const char * const qup1_se0_groups[] = {
  1086. "gpio32", "gpio33", "gpio34", "gpio35",
  1087. };
  1088. static const char * const qup1_se1_groups[] = {
  1089. "gpio36", "gpio37", "gpio38", "gpio39",
  1090. };
  1091. static const char * const qup1_se2_groups[] = {
  1092. "gpio40", "gpio41", "gpio42", "gpio43", "gpio49", "gpio50", "gpio51",
  1093. };
  1094. static const char * const qup1_se3_groups[] = {
  1095. "gpio33", "gpio34", "gpio35", "gpio44", "gpio45", "gpio46", "gpio47",
  1096. };
  1097. static const char * const qup1_se4_groups[] = {
  1098. "gpio48", "gpio49", "gpio50", "gpio51",
  1099. };
  1100. static const char * const qup1_se5_groups[] = {
  1101. "gpio52", "gpio53", "gpio54", "gpio55",
  1102. };
  1103. static const char * const qup1_se6_groups[] = {
  1104. "gpio56", "gpio57", "gpio58", "gpio59",
  1105. };
  1106. static const char * const qup1_se7_groups[] = {
  1107. "gpio52", "gpio53", "gpio54", "gpio55",
  1108. };
  1109. static const char * const qup2_se0_groups[] = {
  1110. "gpio64", "gpio65", "gpio66", "gpio67",
  1111. };
  1112. static const char * const qup2_se1_groups[] = {
  1113. "gpio68", "gpio69", "gpio70", "gpio71",
  1114. };
  1115. static const char * const qup2_se2_groups[] = {
  1116. "gpio72", "gpio73", "gpio74", "gpio75", "gpio81", "gpio82", "gpio83",
  1117. };
  1118. static const char * const qup2_se3_groups[] = {
  1119. "gpio65", "gpio66", "gpio67", "gpio76", "gpio77", "gpio78", "gpio79",
  1120. };
  1121. static const char * const qup2_se4_groups[] = {
  1122. "gpio80", "gpio81", "gpio82", "gpio83",
  1123. };
  1124. static const char * const qup2_se5_groups[] = {
  1125. "gpio84", "gpio85", "gpio86", "gpio87",
  1126. };
  1127. static const char * const qup2_se6_groups[] = {
  1128. "gpio88", "gpio89", "gpio90", "gpio91",
  1129. };
  1130. static const char * const qup2_se7_groups[] = {
  1131. "gpio84", "gpio85", "gpio86", "gpio87",
  1132. };
  1133. static const char * const sd_write_groups[] = {
  1134. "gpio162",
  1135. };
  1136. static const char * const sdc4_clk_groups[] = {
  1137. "gpio127",
  1138. };
  1139. static const char * const sdc4_cmd_groups[] = {
  1140. "gpio132",
  1141. };
  1142. static const char * const sdc4_data0_groups[] = {
  1143. "gpio128",
  1144. };
  1145. static const char * const sdc4_data1_groups[] = {
  1146. "gpio129",
  1147. };
  1148. static const char * const sdc4_data2_groups[] = {
  1149. "gpio130",
  1150. };
  1151. static const char * const sdc4_data3_groups[] = {
  1152. "gpio131",
  1153. };
  1154. static const char * const sys_throttle_groups[] = {
  1155. "gpio39", "gpio94",
  1156. };
  1157. static const char * const tb_trig_groups[] = {
  1158. "gpio133", "gpio137",
  1159. };
  1160. static const char * const tgu_ch0_groups[] = {
  1161. "gpio81",
  1162. };
  1163. static const char * const tgu_ch1_groups[] = {
  1164. "gpio65",
  1165. };
  1166. static const char * const tgu_ch2_groups[] = {
  1167. "gpio66",
  1168. };
  1169. static const char * const tgu_ch3_groups[] = {
  1170. "gpio67",
  1171. };
  1172. static const char * const tgu_ch4_groups[] = {
  1173. "gpio68",
  1174. };
  1175. static const char * const tgu_ch5_groups[] = {
  1176. "gpio69",
  1177. };
  1178. static const char * const tgu_ch6_groups[] = {
  1179. "gpio83",
  1180. };
  1181. static const char * const tgu_ch7_groups[] = {
  1182. "gpio80",
  1183. };
  1184. static const char * const tmess_prng0_groups[] = {
  1185. "gpio92",
  1186. };
  1187. static const char * const tmess_prng1_groups[] = {
  1188. "gpio93",
  1189. };
  1190. static const char * const tmess_prng2_groups[] = {
  1191. "gpio94",
  1192. };
  1193. static const char * const tmess_prng3_groups[] = {
  1194. "gpio95",
  1195. };
  1196. static const char * const tsense_pwm1_groups[] = {
  1197. "gpio34",
  1198. };
  1199. static const char * const tsense_pwm2_groups[] = {
  1200. "gpio34",
  1201. };
  1202. static const char * const tsense_pwm3_groups[] = {
  1203. "gpio34",
  1204. };
  1205. static const char * const tsense_pwm4_groups[] = {
  1206. "gpio34",
  1207. };
  1208. static const char * const usb0_dp_groups[] = {
  1209. "gpio122",
  1210. };
  1211. static const char * const usb0_phy_groups[] = {
  1212. "gpio121",
  1213. };
  1214. static const char * const usb0_sbrx_groups[] = {
  1215. "gpio163",
  1216. };
  1217. static const char * const usb0_sbtx_groups[] = {
  1218. "gpio164", "gpio165",
  1219. };
  1220. static const char * const usb1_dp_groups[] = {
  1221. "gpio124",
  1222. };
  1223. static const char * const usb1_phy_groups[] = {
  1224. "gpio123",
  1225. };
  1226. static const char * const usb1_sbrx_groups[] = {
  1227. "gpio172",
  1228. };
  1229. static const char * const usb1_sbtx_groups[] = {
  1230. "gpio173", "gpio174",
  1231. };
  1232. static const char * const usb2_dp_groups[] = {
  1233. "gpio126",
  1234. };
  1235. static const char * const usb2_phy_groups[] = {
  1236. "gpio125",
  1237. };
  1238. static const char * const usb2_sbrx_groups[] = {
  1239. "gpio181",
  1240. };
  1241. static const char * const usb2_sbtx_groups[] = {
  1242. "gpio182", "gpio183",
  1243. };
  1244. static const char * const vsense_trigger_groups[] = {
  1245. "gpio38",
  1246. };
  1247. static const struct pinfunction x1e80100_functions[] = {
  1248. MSM_PIN_FUNCTION(gpio),
  1249. MSM_PIN_FUNCTION(RESOUT_GPIO),
  1250. MSM_PIN_FUNCTION(aon_cci),
  1251. MSM_PIN_FUNCTION(aoss_cti),
  1252. MSM_PIN_FUNCTION(atest_char),
  1253. MSM_PIN_FUNCTION(atest_char0),
  1254. MSM_PIN_FUNCTION(atest_char1),
  1255. MSM_PIN_FUNCTION(atest_char2),
  1256. MSM_PIN_FUNCTION(atest_char3),
  1257. MSM_PIN_FUNCTION(atest_usb),
  1258. MSM_PIN_FUNCTION(audio_ext),
  1259. MSM_PIN_FUNCTION(audio_ref),
  1260. MSM_PIN_FUNCTION(cam_aon),
  1261. MSM_PIN_FUNCTION(cam_mclk),
  1262. MSM_PIN_FUNCTION(cci_async),
  1263. MSM_PIN_FUNCTION(cci_i2c),
  1264. MSM_PIN_FUNCTION(cci_timer0),
  1265. MSM_PIN_FUNCTION(cci_timer1),
  1266. MSM_PIN_FUNCTION(cci_timer2),
  1267. MSM_PIN_FUNCTION(cci_timer3),
  1268. MSM_PIN_FUNCTION(cci_timer4),
  1269. MSM_PIN_FUNCTION(cmu_rng0),
  1270. MSM_PIN_FUNCTION(cmu_rng1),
  1271. MSM_PIN_FUNCTION(cmu_rng2),
  1272. MSM_PIN_FUNCTION(cmu_rng3),
  1273. MSM_PIN_FUNCTION(cri_trng),
  1274. MSM_PIN_FUNCTION(dbg_out),
  1275. MSM_PIN_FUNCTION(ddr_bist),
  1276. MSM_PIN_FUNCTION(ddr_pxi0),
  1277. MSM_PIN_FUNCTION(ddr_pxi1),
  1278. MSM_PIN_FUNCTION(ddr_pxi2),
  1279. MSM_PIN_FUNCTION(ddr_pxi3),
  1280. MSM_PIN_FUNCTION(ddr_pxi4),
  1281. MSM_PIN_FUNCTION(ddr_pxi5),
  1282. MSM_PIN_FUNCTION(ddr_pxi6),
  1283. MSM_PIN_FUNCTION(ddr_pxi7),
  1284. MSM_PIN_FUNCTION(edp0_hot),
  1285. MSM_PIN_FUNCTION(edp0_lcd),
  1286. MSM_PIN_FUNCTION(edp1_hot),
  1287. MSM_PIN_FUNCTION(edp1_lcd),
  1288. MSM_PIN_FUNCTION(eusb0_ac),
  1289. MSM_PIN_FUNCTION(eusb1_ac),
  1290. MSM_PIN_FUNCTION(eusb2_ac),
  1291. MSM_PIN_FUNCTION(eusb3_ac),
  1292. MSM_PIN_FUNCTION(eusb5_ac),
  1293. MSM_PIN_FUNCTION(eusb6_ac),
  1294. MSM_PIN_FUNCTION(gcc_gp1),
  1295. MSM_PIN_FUNCTION(gcc_gp2),
  1296. MSM_PIN_FUNCTION(gcc_gp3),
  1297. MSM_PIN_FUNCTION(i2s0_data0),
  1298. MSM_PIN_FUNCTION(i2s0_data1),
  1299. MSM_PIN_FUNCTION(i2s0_sck),
  1300. MSM_PIN_FUNCTION(i2s0_ws),
  1301. MSM_PIN_FUNCTION(i2s1_data0),
  1302. MSM_PIN_FUNCTION(i2s1_data1),
  1303. MSM_PIN_FUNCTION(i2s1_sck),
  1304. MSM_PIN_FUNCTION(i2s1_ws),
  1305. MSM_PIN_FUNCTION(ibi_i3c),
  1306. MSM_PIN_FUNCTION(jitter_bist),
  1307. MSM_PIN_FUNCTION(mdp_vsync0),
  1308. MSM_PIN_FUNCTION(mdp_vsync1),
  1309. MSM_PIN_FUNCTION(mdp_vsync2),
  1310. MSM_PIN_FUNCTION(mdp_vsync3),
  1311. MSM_PIN_FUNCTION(mdp_vsync4),
  1312. MSM_PIN_FUNCTION(mdp_vsync5),
  1313. MSM_PIN_FUNCTION(mdp_vsync6),
  1314. MSM_PIN_FUNCTION(mdp_vsync7),
  1315. MSM_PIN_FUNCTION(mdp_vsync8),
  1316. MSM_PIN_FUNCTION(pcie3_clk),
  1317. MSM_PIN_FUNCTION(pcie4_clk),
  1318. MSM_PIN_FUNCTION(pcie5_clk),
  1319. MSM_PIN_FUNCTION(pcie6a_clk),
  1320. MSM_PIN_FUNCTION(pcie6b_clk),
  1321. MSM_PIN_FUNCTION(phase_flag),
  1322. MSM_PIN_FUNCTION(pll_bist),
  1323. MSM_PIN_FUNCTION(pll_clk),
  1324. MSM_PIN_FUNCTION(prng_rosc0),
  1325. MSM_PIN_FUNCTION(prng_rosc1),
  1326. MSM_PIN_FUNCTION(prng_rosc2),
  1327. MSM_PIN_FUNCTION(prng_rosc3),
  1328. MSM_PIN_FUNCTION(qdss_cti),
  1329. MSM_PIN_FUNCTION(qdss_gpio),
  1330. MSM_PIN_FUNCTION(qspi00),
  1331. MSM_PIN_FUNCTION(qspi01),
  1332. MSM_PIN_FUNCTION(qspi02),
  1333. MSM_PIN_FUNCTION(qspi03),
  1334. MSM_PIN_FUNCTION(qspi0_clk),
  1335. MSM_PIN_FUNCTION(qspi0_cs0),
  1336. MSM_PIN_FUNCTION(qspi0_cs1),
  1337. MSM_PIN_FUNCTION(qup0_se0),
  1338. MSM_PIN_FUNCTION(qup0_se1),
  1339. MSM_PIN_FUNCTION(qup0_se2),
  1340. MSM_PIN_FUNCTION(qup0_se3),
  1341. MSM_PIN_FUNCTION(qup0_se4),
  1342. MSM_PIN_FUNCTION(qup0_se5),
  1343. MSM_PIN_FUNCTION(qup0_se6),
  1344. MSM_PIN_FUNCTION(qup0_se7),
  1345. MSM_PIN_FUNCTION(qup1_se0),
  1346. MSM_PIN_FUNCTION(qup1_se1),
  1347. MSM_PIN_FUNCTION(qup1_se2),
  1348. MSM_PIN_FUNCTION(qup1_se3),
  1349. MSM_PIN_FUNCTION(qup1_se4),
  1350. MSM_PIN_FUNCTION(qup1_se5),
  1351. MSM_PIN_FUNCTION(qup1_se6),
  1352. MSM_PIN_FUNCTION(qup1_se7),
  1353. MSM_PIN_FUNCTION(qup2_se0),
  1354. MSM_PIN_FUNCTION(qup2_se1),
  1355. MSM_PIN_FUNCTION(qup2_se2),
  1356. MSM_PIN_FUNCTION(qup2_se3),
  1357. MSM_PIN_FUNCTION(qup2_se4),
  1358. MSM_PIN_FUNCTION(qup2_se5),
  1359. MSM_PIN_FUNCTION(qup2_se6),
  1360. MSM_PIN_FUNCTION(qup2_se7),
  1361. MSM_PIN_FUNCTION(sd_write),
  1362. MSM_PIN_FUNCTION(sdc4_clk),
  1363. MSM_PIN_FUNCTION(sdc4_cmd),
  1364. MSM_PIN_FUNCTION(sdc4_data0),
  1365. MSM_PIN_FUNCTION(sdc4_data1),
  1366. MSM_PIN_FUNCTION(sdc4_data2),
  1367. MSM_PIN_FUNCTION(sdc4_data3),
  1368. MSM_PIN_FUNCTION(sys_throttle),
  1369. MSM_PIN_FUNCTION(tb_trig),
  1370. MSM_PIN_FUNCTION(tgu_ch0),
  1371. MSM_PIN_FUNCTION(tgu_ch1),
  1372. MSM_PIN_FUNCTION(tgu_ch2),
  1373. MSM_PIN_FUNCTION(tgu_ch3),
  1374. MSM_PIN_FUNCTION(tgu_ch4),
  1375. MSM_PIN_FUNCTION(tgu_ch5),
  1376. MSM_PIN_FUNCTION(tgu_ch6),
  1377. MSM_PIN_FUNCTION(tgu_ch7),
  1378. MSM_PIN_FUNCTION(tmess_prng0),
  1379. MSM_PIN_FUNCTION(tmess_prng1),
  1380. MSM_PIN_FUNCTION(tmess_prng2),
  1381. MSM_PIN_FUNCTION(tmess_prng3),
  1382. MSM_PIN_FUNCTION(tsense_pwm1),
  1383. MSM_PIN_FUNCTION(tsense_pwm2),
  1384. MSM_PIN_FUNCTION(tsense_pwm3),
  1385. MSM_PIN_FUNCTION(tsense_pwm4),
  1386. MSM_PIN_FUNCTION(usb0_dp),
  1387. MSM_PIN_FUNCTION(usb0_phy),
  1388. MSM_PIN_FUNCTION(usb0_sbrx),
  1389. MSM_PIN_FUNCTION(usb0_sbtx),
  1390. MSM_PIN_FUNCTION(usb1_dp),
  1391. MSM_PIN_FUNCTION(usb1_phy),
  1392. MSM_PIN_FUNCTION(usb1_sbrx),
  1393. MSM_PIN_FUNCTION(usb1_sbtx),
  1394. MSM_PIN_FUNCTION(usb2_dp),
  1395. MSM_PIN_FUNCTION(usb2_phy),
  1396. MSM_PIN_FUNCTION(usb2_sbrx),
  1397. MSM_PIN_FUNCTION(usb2_sbtx),
  1398. MSM_PIN_FUNCTION(vsense_trigger),
  1399. };
  1400. /*
  1401. * Every pin is maintained as a single group, and missing or non-existing pin
  1402. * would be maintained as dummy group to synchronize pin group index with
  1403. * pin descriptor registered with pinctrl core.
  1404. * Clients would not be able to request these dummy pin groups.
  1405. */
  1406. static const struct msm_pingroup x1e80100_groups[] = {
  1407. [0] = PINGROUP(0, qup0_se0, ibi_i3c, _, _, _, _, _, _, _),
  1408. [1] = PINGROUP(1, qup0_se0, ibi_i3c, _, _, _, _, _, _, _),
  1409. [2] = PINGROUP(2, qup0_se0, _, _, _, _, _, _, _, _),
  1410. [3] = PINGROUP(3, qup0_se0, _, _, _, _, _, _, _, _),
  1411. [4] = PINGROUP(4, qup0_se1, _, _, _, _, _, _, _, _),
  1412. [5] = PINGROUP(5, qup0_se1, _, _, _, _, _, _, _, _),
  1413. [6] = PINGROUP(6, qup0_se1, phase_flag, _, _, _, _, _, _, _),
  1414. [7] = PINGROUP(7, qup0_se1, phase_flag, _, _, _, _, _, _, _),
  1415. [8] = PINGROUP(8, qup0_se2, phase_flag, _, _, _, _, _, _, _),
  1416. [9] = PINGROUP(9, qup0_se2, _, atest_usb, ddr_pxi0, _, _, _, _, _),
  1417. [10] = PINGROUP(10, qup0_se2, _, atest_usb, ddr_pxi1, _, _, _, _, _),
  1418. [11] = PINGROUP(11, qup0_se2, phase_flag, _, _, _, _, _, _, _),
  1419. [12] = PINGROUP(12, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
  1420. [13] = PINGROUP(13, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
  1421. [14] = PINGROUP(14, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
  1422. [15] = PINGROUP(15, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
  1423. [16] = PINGROUP(16, qup0_se4, phase_flag, _, _, _, _, _, _, _),
  1424. [17] = PINGROUP(17, qup0_se4, qup0_se2, phase_flag, _, _, _, _, _, _),
  1425. [18] = PINGROUP(18, qup0_se4, qup0_se2, phase_flag, _, qdss_cti, _, _, _, _),
  1426. [19] = PINGROUP(19, qup0_se4, qup0_se2, phase_flag, _, qdss_cti, _, _, _, _),
  1427. [20] = PINGROUP(20, qup0_se5, _, phase_flag, _, _, _, _, _, _),
  1428. [21] = PINGROUP(21, qup0_se5, qup0_se3, _, phase_flag, _, _, _, _, _),
  1429. [22] = PINGROUP(22, qup0_se5, qup0_se3, _, phase_flag, _, _, _, _, _),
  1430. [23] = PINGROUP(23, qup0_se5, qup0_se3, phase_flag, _, qdss_cti, _, _, _, _),
  1431. [24] = PINGROUP(24, qup0_se6, phase_flag, _, _, _, _, _, _, _),
  1432. [25] = PINGROUP(25, qup0_se6, phase_flag, _, _, _, _, _, _, _),
  1433. [26] = PINGROUP(26, qup0_se6, phase_flag, _, _, _, _, _, _, _),
  1434. [27] = PINGROUP(27, qup0_se6, phase_flag, _, qdss_cti, _, _, _, _, _),
  1435. [28] = PINGROUP(28, pll_bist, _, _, _, _, _, _, _, _),
  1436. [29] = PINGROUP(29, _, _, _, _, _, _, _, _, _),
  1437. [30] = PINGROUP(30, _, _, _, _, _, _, _, _, _),
  1438. [31] = PINGROUP(31, _, _, _, _, _, _, _, _, _),
  1439. [32] = PINGROUP(32, qup1_se0, ibi_i3c, _, _, _, _, _, _, _),
  1440. [33] = PINGROUP(33, qup1_se0, ibi_i3c, qup1_se3, _, _, _, _, _, _),
  1441. [34] = PINGROUP(34, qup1_se0, qup1_se3, tsense_pwm1, tsense_pwm2, tsense_pwm3, tsense_pwm4, _, _, _),
  1442. [35] = PINGROUP(35, qup1_se0, qup1_se3, pll_clk, atest_usb, _, _, _, _, _),
  1443. [36] = PINGROUP(36, qup1_se1, ibi_i3c, _, _, _, _, _, _, _),
  1444. [37] = PINGROUP(37, qup1_se1, ibi_i3c, _, _, _, _, _, _, _),
  1445. [38] = PINGROUP(38, qup1_se1, vsense_trigger, atest_usb, ddr_pxi0, _, _, _, _, _),
  1446. [39] = PINGROUP(39, qup1_se1, sys_throttle, phase_flag, _, _, _, _, _, _),
  1447. [40] = PINGROUP(40, qup1_se2, phase_flag, _, _, _, _, _, _, _),
  1448. [41] = PINGROUP(41, qup1_se2, atest_usb, ddr_pxi1, _, _, _, _, _, _),
  1449. [42] = PINGROUP(42, qup1_se2, jitter_bist, atest_usb, ddr_pxi2, _, _, _, _, _),
  1450. [43] = PINGROUP(43, qup1_se2, _, atest_usb, ddr_pxi2, _, _, _, _, _),
  1451. [44] = PINGROUP(44, qup1_se3, _, atest_usb, ddr_pxi3, _, _, _, _, _),
  1452. [45] = PINGROUP(45, qup1_se3, cmu_rng3, _, atest_usb, ddr_pxi3, _, _, _, _),
  1453. [46] = PINGROUP(46, qup1_se3, cmu_rng2, _, atest_usb, ddr_pxi4, _, _, _, _),
  1454. [47] = PINGROUP(47, qup1_se3, cmu_rng1, _, atest_usb, ddr_pxi4, _, _, _, _),
  1455. [48] = PINGROUP(48, qup1_se4, cmu_rng0, _, atest_usb, ddr_pxi5, _, _, _, _),
  1456. [49] = PINGROUP(49, qup1_se4, qup1_se2, _, atest_usb, ddr_pxi5, _, _, _, _),
  1457. [50] = PINGROUP(50, qup1_se4, qup1_se2, _, atest_usb, ddr_pxi6, _, _, _, _),
  1458. [51] = PINGROUP(51, qup1_se4, qup1_se2, dbg_out, atest_usb, ddr_pxi6, _, _, _, _),
  1459. [52] = PINGROUP(52, qup1_se5, qup1_se7, atest_usb, ddr_pxi7, _, _, _, _, _),
  1460. [53] = PINGROUP(53, qup1_se5, qup1_se7, _, atest_usb, ddr_pxi7, _, _, _, _),
  1461. [54] = PINGROUP(54, qup1_se5, qup1_se7, ddr_bist, atest_usb, _, _, _, _, _),
  1462. [55] = PINGROUP(55, qup1_se5, qup1_se7, ddr_bist, _, _, _, _, _, _),
  1463. [56] = PINGROUP(56, qup1_se6, ddr_bist, _, _, _, _, _, _, _),
  1464. [57] = PINGROUP(57, qup1_se6, ddr_bist, _, _, _, _, _, _, _),
  1465. [58] = PINGROUP(58, qup1_se6, atest_usb, _, _, _, _, _, _, _),
  1466. [59] = PINGROUP(59, qup1_se6, atest_usb, _, _, _, _, _, _, _),
  1467. [60] = PINGROUP(60, aoss_cti, _, _, _, _, _, _, _, _),
  1468. [61] = PINGROUP(61, aoss_cti, _, _, _, _, _, _, _, _),
  1469. [62] = PINGROUP(62, aoss_cti, _, _, _, _, _, _, _, _),
  1470. [63] = PINGROUP(63, aoss_cti, _, _, _, _, _, _, _, _),
  1471. [64] = PINGROUP(64, qup2_se0, gcc_gp2, _, _, _, _, _, _, _),
  1472. [65] = PINGROUP(65, qup2_se0, qup2_se3, tgu_ch1, atest_usb, _, _, _, _, _),
  1473. [66] = PINGROUP(66, qup2_se0, qup2_se3, tgu_ch2, atest_usb, _, _, _, _, _),
  1474. [67] = PINGROUP(67, qup2_se0, qup2_se3, tgu_ch3, atest_usb, _, _, _, _, _),
  1475. [68] = PINGROUP(68, qup2_se1, ibi_i3c, tgu_ch4, _, _, _, _, _, _),
  1476. [69] = PINGROUP(69, qup2_se1, ibi_i3c, tgu_ch5, _, _, _, _, _, _),
  1477. [70] = PINGROUP(70, qup2_se1, _, _, _, _, _, _, _, _),
  1478. [71] = PINGROUP(71, qup2_se1, gcc_gp1, _, _, _, _, _, _, _),
  1479. [72] = PINGROUP(72, qup2_se2, gcc_gp1, atest_usb, _, _, _, _, _, _),
  1480. [73] = PINGROUP(73, qup2_se2, gcc_gp2, atest_usb, _, _, _, _, _, _),
  1481. [74] = PINGROUP(74, qup2_se2, gcc_gp3, atest_usb, _, _, _, _, _, _),
  1482. [75] = PINGROUP(75, qup2_se2, atest_usb, _, _, _, _, _, _, _),
  1483. [76] = PINGROUP(76, qup2_se3, phase_flag, _, _, _, _, _, _, _),
  1484. [77] = PINGROUP(77, qup2_se3, phase_flag, _, _, _, _, _, _, _),
  1485. [78] = PINGROUP(78, qup2_se3, phase_flag, _, _, _, _, _, _, _),
  1486. [79] = PINGROUP(79, qup2_se3, _, _, _, _, _, _, _, _),
  1487. [80] = PINGROUP(80, qup2_se4, tgu_ch7, atest_usb, _, _, _, _, _, _),
  1488. [81] = PINGROUP(81, qup2_se4, qup2_se2, tgu_ch0, atest_usb, _, _, _, _, _),
  1489. [82] = PINGROUP(82, qup2_se4, qup2_se2, gcc_gp3, _, _, _, _, _, _),
  1490. [83] = PINGROUP(83, qup2_se4, qup2_se2, tgu_ch6, atest_usb, _, _, _, _, _),
  1491. [84] = PINGROUP(84, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
  1492. [85] = PINGROUP(85, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
  1493. [86] = PINGROUP(86, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
  1494. [87] = PINGROUP(87, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
  1495. [88] = PINGROUP(88, qup2_se6, _, _, _, _, _, _, _, _),
  1496. [89] = PINGROUP(89, qup2_se6, _, _, _, _, _, _, _, _),
  1497. [90] = PINGROUP(90, qup2_se6, _, _, _, _, _, _, _, _),
  1498. [91] = PINGROUP(91, qup2_se6, _, _, _, _, _, _, _, _),
  1499. [92] = PINGROUP(92, tmess_prng0, _, _, _, _, _, _, _, _),
  1500. [93] = PINGROUP(93, tmess_prng1, _, _, _, _, _, _, _, _),
  1501. [94] = PINGROUP(94, sys_throttle, tmess_prng2, _, _, _, _, _, _, _),
  1502. [95] = PINGROUP(95, tmess_prng3, _, _, _, _, _, _, _, _),
  1503. [96] = PINGROUP(96, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
  1504. [97] = PINGROUP(97, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
  1505. [98] = PINGROUP(98, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
  1506. [99] = PINGROUP(99, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
  1507. [100] = PINGROUP(100, cam_aon, qdss_gpio, _, _, _, _, _, _, _),
  1508. [101] = PINGROUP(101, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
  1509. [102] = PINGROUP(102, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
  1510. [103] = PINGROUP(103, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
  1511. [104] = PINGROUP(104, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
  1512. [105] = PINGROUP(105, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
  1513. [106] = PINGROUP(106, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
  1514. [107] = PINGROUP(107, qdss_gpio, _, _, _, _, _, _, _, _),
  1515. [108] = PINGROUP(108, qdss_gpio, _, _, _, _, _, _, _, _),
  1516. [109] = PINGROUP(109, cci_timer0, mdp_vsync4, qdss_gpio, _, _, _, _, _, _),
  1517. [110] = PINGROUP(110, cci_timer1, mdp_vsync5, qdss_gpio, _, _, _, _, _, _),
  1518. [111] = PINGROUP(111, cci_timer2, cci_async, mdp_vsync6, qdss_gpio, _, _, _, _, _),
  1519. [112] = PINGROUP(112, cci_timer3, cci_async, mdp_vsync7, qdss_gpio, _, _, _, _, _),
  1520. [113] = PINGROUP(113, cci_timer4, cci_async, mdp_vsync8, qdss_gpio, _, _, _, _, _),
  1521. [114] = PINGROUP(114, mdp_vsync0, mdp_vsync1, _, _, _, _, _, _, _),
  1522. [115] = PINGROUP(115, mdp_vsync3, mdp_vsync2, edp1_lcd, _, _, _, _, _, _),
  1523. [116] = PINGROUP(116, _, _, _, _, _, _, _, _, _),
  1524. [117] = PINGROUP(117, _, _, _, _, _, _, _, _, _),
  1525. [118] = PINGROUP(118, _, _, _, _, _, _, _, _, _),
  1526. [119] = PINGROUP(119, edp0_hot, edp1_lcd, _, _, _, _, _, _, _),
  1527. [120] = PINGROUP(120, edp1_hot, edp0_lcd, _, _, _, _, _, _, _),
  1528. [121] = PINGROUP(121, usb0_phy, _, _, _, _, _, _, _, _),
  1529. [122] = PINGROUP(122, usb0_dp, _, _, _, _, _, _, _, _),
  1530. [123] = PINGROUP(123, usb1_phy, _, _, _, _, _, _, _, _),
  1531. [124] = PINGROUP(124, usb1_dp, _, _, _, _, _, _, _, _),
  1532. [125] = PINGROUP(125, usb2_phy, _, _, _, _, _, _, _, _),
  1533. [126] = PINGROUP(126, usb2_dp, _, _, _, _, _, _, _, _),
  1534. [127] = PINGROUP(127, qspi0_clk, sdc4_clk, _, _, _, _, _, _, _),
  1535. [128] = PINGROUP(128, qspi00, sdc4_data0, _, _, _, _, _, _, _),
  1536. [129] = PINGROUP(129, qspi01, sdc4_data1, _, _, _, _, _, _, _),
  1537. [130] = PINGROUP(130, qspi02, sdc4_data2, _, _, _, _, _, _, _),
  1538. [131] = PINGROUP(131, qspi03, sdc4_data3, _, _, _, _, _, _, _),
  1539. [132] = PINGROUP(132, qspi0_cs0, sdc4_cmd, _, _, _, _, _, _, _),
  1540. [133] = PINGROUP(133, qspi0_cs1, tb_trig, _, _, _, _, _, _, _),
  1541. [134] = PINGROUP(134, audio_ext, _, _, _, _, _, _, _, _),
  1542. [135] = PINGROUP(135, i2s0_sck, _, _, _, _, _, _, _, _),
  1543. [136] = PINGROUP(136, i2s0_data0, _, _, _, _, _, _, _, _),
  1544. [137] = PINGROUP(137, i2s0_data1, tb_trig, _, _, _, _, _, _, _),
  1545. [138] = PINGROUP(138, i2s0_ws, _, _, _, _, _, _, _, _),
  1546. [139] = PINGROUP(139, i2s1_sck, _, _, _, _, _, _, _, _),
  1547. [140] = PINGROUP(140, i2s1_data0, _, _, _, _, _, _, _, _),
  1548. [141] = PINGROUP(141, i2s1_ws, _, _, _, _, _, _, _, _),
  1549. [142] = PINGROUP(142, i2s1_data1, audio_ext, audio_ref, _, _, _, _, _, _),
  1550. [143] = PINGROUP(143, _, _, _, _, _, _, _, _, _),
  1551. [144] = PINGROUP(144, pcie3_clk, _, _, _, _, _, _, _, _),
  1552. [145] = PINGROUP(145, _, _, _, _, _, _, _, _, _),
  1553. [146] = PINGROUP(146, _, _, _, _, _, _, _, _, _),
  1554. [147] = PINGROUP(147, pcie4_clk, _, _, _, _, _, _, _, _),
  1555. [148] = PINGROUP(148, _, _, _, _, _, _, _, _, _),
  1556. [149] = PINGROUP(149, _, _, _, _, _, _, _, _, _),
  1557. [150] = PINGROUP(150, pcie5_clk, _, _, _, _, _, _, _, _),
  1558. [151] = PINGROUP(151, _, _, _, _, _, _, _, _, _),
  1559. [152] = PINGROUP(152, _, _, _, _, _, _, _, _, _),
  1560. [153] = PINGROUP(153, pcie6a_clk, _, _, _, _, _, _, _, _),
  1561. [154] = PINGROUP(154, _, _, _, _, _, _, _, _, _),
  1562. [155] = PINGROUP(155, _, _, _, _, _, _, _, _, _),
  1563. [156] = PINGROUP(156, pcie6b_clk, _, _, _, _, _, _, _, _),
  1564. [157] = PINGROUP(157, _, _, _, _, _, _, _, _, _),
  1565. [158] = PINGROUP(158, _, _, _, _, _, _, _, _, _),
  1566. [159] = PINGROUP(159, _, _, _, _, _, _, _, _, _),
  1567. [160] = PINGROUP(160, RESOUT_GPIO, _, _, _, _, _, _, _, _),
  1568. [161] = PINGROUP(161, qdss_cti, _, _, _, _, _, _, _, _),
  1569. [162] = PINGROUP(162, sd_write, qdss_cti, _, _, _, _, _, _, _),
  1570. [163] = PINGROUP(163, usb0_sbrx, _, _, _, _, _, _, _, _),
  1571. [164] = PINGROUP(164, usb0_sbtx, _, _, _, _, _, _, _, _),
  1572. [165] = PINGROUP(165, usb0_sbtx, _, _, _, _, _, _, _, _),
  1573. [166] = PINGROUP(166, _, _, _, _, _, _, _, _, _),
  1574. [167] = PINGROUP(167, _, _, _, _, _, _, _, _, _),
  1575. [168] = PINGROUP(168, eusb0_ac, _, _, _, _, _, _, _, _),
  1576. [169] = PINGROUP(169, eusb3_ac, _, _, _, _, _, _, _, _),
  1577. [170] = PINGROUP(170, _, _, _, _, _, _, _, _, _),
  1578. [171] = PINGROUP(171, _, _, _, _, _, _, _, _, _),
  1579. [172] = PINGROUP(172, usb1_sbrx, _, _, _, _, _, _, _, _),
  1580. [173] = PINGROUP(173, usb1_sbtx, _, _, _, _, _, _, _, _),
  1581. [174] = PINGROUP(174, usb1_sbtx, _, _, _, _, _, _, _, _),
  1582. [175] = PINGROUP(175, _, _, _, _, _, _, _, _, _),
  1583. [176] = PINGROUP(176, _, _, _, _, _, _, _, _, _),
  1584. [177] = PINGROUP(177, eusb1_ac, _, _, _, _, _, _, _, _),
  1585. [178] = PINGROUP(178, eusb6_ac, _, _, _, _, _, _, _, _),
  1586. [179] = PINGROUP(179, _, _, _, _, _, _, _, _, _),
  1587. [180] = PINGROUP(180, _, _, _, _, _, _, _, _, _),
  1588. [181] = PINGROUP(181, usb2_sbrx, prng_rosc3, phase_flag, _, atest_char, _, _, _, _),
  1589. [182] = PINGROUP(182, usb2_sbtx, prng_rosc2, phase_flag, _, atest_char3, _, _, _, _),
  1590. [183] = PINGROUP(183, usb2_sbtx, _, _, _, _, _, _, _, _),
  1591. [184] = PINGROUP(184, phase_flag, _, atest_char1, _, _, _, _, _, _),
  1592. [185] = PINGROUP(185, phase_flag, _, atest_char0, _, _, _, _, _, _),
  1593. [186] = PINGROUP(186, eusb2_ac, prng_rosc0, phase_flag, _, _, _, _, _, _),
  1594. [187] = PINGROUP(187, eusb5_ac, cri_trng, phase_flag, _, _, _, _, _, _),
  1595. [188] = PINGROUP(188, prng_rosc1, phase_flag, _, atest_char2, _, _, _, _, _),
  1596. [189] = PINGROUP(189, _, _, _, _, _, _, _, _, _),
  1597. [190] = PINGROUP(190, _, _, _, _, _, _, _, _, _),
  1598. [191] = PINGROUP(191, _, _, _, _, _, _, _, _, _),
  1599. [192] = PINGROUP(192, _, _, _, _, _, _, _, _, _),
  1600. [193] = PINGROUP(193, _, _, _, _, _, _, _, _, _),
  1601. [194] = PINGROUP(194, _, _, _, _, _, _, _, _, _),
  1602. [195] = PINGROUP(195, _, _, _, _, _, _, _, _, _),
  1603. [196] = PINGROUP(196, _, _, _, _, _, _, _, _, _),
  1604. [197] = PINGROUP(197, _, _, _, _, _, _, _, _, _),
  1605. [198] = PINGROUP(198, _, _, _, _, _, _, _, _, _),
  1606. [199] = PINGROUP(199, _, _, _, _, _, _, _, _, _),
  1607. [200] = PINGROUP(200, _, _, _, _, _, _, _, _, _),
  1608. [201] = PINGROUP(201, _, _, _, _, _, _, _, _, _),
  1609. [202] = PINGROUP(202, _, _, _, _, _, _, _, _, _),
  1610. [203] = PINGROUP(203, _, _, _, _, _, _, _, _, _),
  1611. [204] = PINGROUP(204, _, _, _, _, _, _, _, _, _),
  1612. [205] = PINGROUP(205, _, _, _, _, _, _, _, _, _),
  1613. [206] = PINGROUP(206, _, _, _, _, _, _, _, _, _),
  1614. [207] = PINGROUP(207, _, _, _, _, _, _, _, _, _),
  1615. [208] = PINGROUP(208, _, _, _, _, _, _, _, _, _),
  1616. [209] = PINGROUP(209, _, _, _, _, _, _, _, _, _),
  1617. [210] = PINGROUP(210, _, _, _, _, _, _, _, _, _),
  1618. [211] = PINGROUP(211, _, _, _, _, _, _, _, _, _),
  1619. [212] = PINGROUP(212, _, _, _, _, _, _, _, _, _),
  1620. [213] = PINGROUP(213, _, _, _, _, _, _, _, _, _),
  1621. [214] = PINGROUP(214, _, _, _, _, _, _, _, _, _),
  1622. [215] = PINGROUP(215, _, qdss_cti, _, _, _, _, _, _, _),
  1623. [216] = PINGROUP(216, _, _, _, _, _, _, _, _, _),
  1624. [217] = PINGROUP(217, _, qdss_cti, _, _, _, _, _, _, _),
  1625. [218] = PINGROUP(218, _, _, _, _, _, _, _, _, _),
  1626. [219] = PINGROUP(219, _, qdss_gpio, _, _, _, _, _, _, _),
  1627. [220] = PINGROUP(220, _, qdss_gpio, _, _, _, _, _, _, _),
  1628. [221] = PINGROUP(221, _, qdss_gpio, _, _, _, _, _, _, _),
  1629. [222] = PINGROUP(222, _, qdss_gpio, _, _, _, _, _, _, _),
  1630. [223] = PINGROUP(223, _, qdss_gpio, _, _, _, _, _, _, _),
  1631. [224] = PINGROUP(224, _, qdss_gpio, _, _, _, _, _, _, _),
  1632. [225] = PINGROUP(225, _, qdss_gpio, _, _, _, _, _, _, _),
  1633. [226] = PINGROUP(226, _, qdss_gpio, _, _, _, _, _, _, _),
  1634. [227] = PINGROUP(227, _, qdss_gpio, _, _, _, _, _, _, _),
  1635. [228] = PINGROUP(228, _, qdss_gpio, _, _, _, _, _, _, _),
  1636. [229] = PINGROUP(229, qdss_gpio, _, _, _, _, _, _, _, _),
  1637. [230] = PINGROUP(230, qdss_gpio, _, _, _, _, _, _, _, _),
  1638. [231] = PINGROUP(231, qdss_gpio, _, _, _, _, _, _, _, _),
  1639. [232] = PINGROUP(232, qdss_gpio, _, _, _, _, _, _, _, _),
  1640. [233] = PINGROUP(233, qdss_gpio, _, _, _, _, _, _, _, _),
  1641. [234] = PINGROUP(234, qdss_gpio, _, _, _, _, _, _, _, _),
  1642. [235] = PINGROUP(235, aon_cci, qdss_gpio, _, _, _, _, _, _, _),
  1643. [236] = PINGROUP(236, aon_cci, qdss_gpio, _, _, _, _, _, _, _),
  1644. [237] = PINGROUP(237, _, _, _, _, _, _, _, _, _),
  1645. [238] = UFS_RESET(ufs_reset, 0xf9000),
  1646. [239] = SDC_QDSD_PINGROUP(sdc2_clk, 0xf2000, 14, 6),
  1647. [240] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xf2000, 11, 3),
  1648. [241] = SDC_QDSD_PINGROUP(sdc2_data, 0xf2000, 9, 0),
  1649. };
  1650. static const struct msm_gpio_wakeirq_map x1e80100_pdc_map[] = {
  1651. { 0, 72 }, { 2, 70 }, { 3, 71 }, { 6, 123 }, { 7, 67 }, { 11, 85 },
  1652. { 13, 86 }, { 15, 68 }, { 18, 122 }, { 19, 69 }, { 21, 158 }, { 23, 143 },
  1653. { 24, 126 }, { 26, 129 }, { 27, 144 }, { 28, 77 }, { 29, 78 }, { 30, 92 },
  1654. { 31, 159 }, { 32, 145 }, { 33, 115 }, { 34, 130 }, { 35, 146 }, { 36, 147 },
  1655. { 38, 113 }, { 39, 80 }, { 43, 148 }, { 47, 149 }, { 51, 79 }, { 53, 89 },
  1656. { 55, 81 }, { 59, 87 }, { 64, 90 }, { 65, 106 }, { 66, 142 }, { 67, 88 },
  1657. { 68, 151 }, { 71, 91 }, { 75, 152 }, { 79, 153 }, { 80, 125 }, { 81, 128 },
  1658. { 83, 154 }, { 84, 137 }, { 85, 155 }, { 87, 156 }, { 91, 157 }, { 92, 138 },
  1659. { 93, 139 }, { 94, 140 }, { 95, 141 }, { 113, 84 }, { 121, 73 }, { 123, 74 },
  1660. { 125, 75 }, { 129, 76 }, { 131, 82 }, { 134, 83 }, { 141, 93 }, { 144, 94 },
  1661. { 145, 95 }, { 147, 96 }, { 148, 97 }, { 150, 102 }, { 151, 103 }, { 153, 104 },
  1662. { 154, 100 }, { 156, 105 }, { 157, 107 }, { 163, 98 }, { 166, 112 }, { 172, 99 },
  1663. { 175, 114 }, { 181, 101 }, { 184, 116 }, { 193, 117 }, { 196, 108 }, { 203, 133 },
  1664. { 208, 134 }, { 212, 120 }, { 213, 150 }, { 214, 121 }, { 215, 118 }, { 217, 109 },
  1665. { 219, 119 }, { 220, 110 }, { 221, 111 }, { 222, 124 }, { 224, 131 }, { 225, 132 },
  1666. { 228, 135 }, { 230, 136 }, { 232, 162 },
  1667. };
  1668. static const struct msm_pinctrl_soc_data x1e80100_pinctrl = {
  1669. .pins = x1e80100_pins,
  1670. .npins = ARRAY_SIZE(x1e80100_pins),
  1671. .functions = x1e80100_functions,
  1672. .nfunctions = ARRAY_SIZE(x1e80100_functions),
  1673. .groups = x1e80100_groups,
  1674. .ngroups = ARRAY_SIZE(x1e80100_groups),
  1675. .ngpios = 239,
  1676. .wakeirq_map = x1e80100_pdc_map,
  1677. /* TODO: Enabling PDC currently breaks GPIO interrupts */
  1678. .nwakeirq_map = 0,
  1679. /* .nwakeirq_map = ARRAY_SIZE(x1e80100_pdc_map), */
  1680. .egpio_func = 9,
  1681. };
  1682. static int x1e80100_pinctrl_probe(struct platform_device *pdev)
  1683. {
  1684. return msm_pinctrl_probe(pdev, &x1e80100_pinctrl);
  1685. }
  1686. static const struct of_device_id x1e80100_pinctrl_of_match[] = {
  1687. { .compatible = "qcom,x1e80100-tlmm", },
  1688. { },
  1689. };
  1690. static struct platform_driver x1e80100_pinctrl_driver = {
  1691. .driver = {
  1692. .name = "x1e80100-tlmm",
  1693. .of_match_table = x1e80100_pinctrl_of_match,
  1694. },
  1695. .probe = x1e80100_pinctrl_probe,
  1696. .remove_new = msm_pinctrl_remove,
  1697. };
  1698. static int __init x1e80100_pinctrl_init(void)
  1699. {
  1700. return platform_driver_register(&x1e80100_pinctrl_driver);
  1701. }
  1702. arch_initcall(x1e80100_pinctrl_init);
  1703. static void __exit x1e80100_pinctrl_exit(void)
  1704. {
  1705. platform_driver_unregister(&x1e80100_pinctrl_driver);
  1706. }
  1707. module_exit(x1e80100_pinctrl_exit);
  1708. MODULE_DESCRIPTION("QTI X1E80100 TLMM pinctrl driver");
  1709. MODULE_LICENSE("GPL");
  1710. MODULE_DEVICE_TABLE(of, x1e80100_pinctrl_of_match);