pinctrl-sc8280xp.c 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022, Linaro Ltd.
  5. */
  6. #include <linux/module.h>
  7. #include <linux/of.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/pinctrl/pinctrl.h>
  10. #include "pinctrl-msm.h"
  11. #define FUNCTION(fname) \
  12. [msm_mux_##fname] = { \
  13. .name = #fname, \
  14. .groups = fname##_groups, \
  15. .ngroups = ARRAY_SIZE(fname##_groups), \
  16. }
  17. #define REG_SIZE 0x1000
  18. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7) \
  19. { \
  20. .name = "gpio" #id, \
  21. .pins = gpio##id##_pins, \
  22. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  23. .funcs = (int[]){ \
  24. msm_mux_gpio, /* gpio mode */ \
  25. msm_mux_##f1, \
  26. msm_mux_##f2, \
  27. msm_mux_##f3, \
  28. msm_mux_##f4, \
  29. msm_mux_##f5, \
  30. msm_mux_##f6, \
  31. msm_mux_##f7, \
  32. }, \
  33. .nfuncs = 8, \
  34. .ctl_reg = REG_SIZE * id, \
  35. .io_reg = 0x4 + REG_SIZE * id, \
  36. .intr_cfg_reg = 0x8 + REG_SIZE * id, \
  37. .intr_status_reg = 0xc + REG_SIZE * id, \
  38. .intr_target_reg = 0x8 + REG_SIZE * id, \
  39. .mux_bit = 2, \
  40. .pull_bit = 0, \
  41. .drv_bit = 6, \
  42. .oe_bit = 9, \
  43. .in_bit = 0, \
  44. .out_bit = 1, \
  45. .egpio_enable = 12, \
  46. .egpio_present = 11, \
  47. .intr_enable_bit = 0, \
  48. .intr_status_bit = 0, \
  49. .intr_target_bit = 5, \
  50. .intr_target_kpss_val = 3, \
  51. .intr_raw_status_bit = 4, \
  52. .intr_polarity_bit = 1, \
  53. .intr_detection_bit = 2, \
  54. .intr_detection_width = 2, \
  55. }
  56. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  57. { \
  58. .name = #pg_name, \
  59. .pins = pg_name##_pins, \
  60. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  61. .ctl_reg = ctl, \
  62. .io_reg = 0, \
  63. .intr_cfg_reg = 0, \
  64. .intr_status_reg = 0, \
  65. .intr_target_reg = 0, \
  66. .mux_bit = -1, \
  67. .pull_bit = pull, \
  68. .drv_bit = drv, \
  69. .oe_bit = -1, \
  70. .in_bit = -1, \
  71. .out_bit = -1, \
  72. .intr_enable_bit = -1, \
  73. .intr_status_bit = -1, \
  74. .intr_target_bit = -1, \
  75. .intr_raw_status_bit = -1, \
  76. .intr_polarity_bit = -1, \
  77. .intr_detection_bit = -1, \
  78. .intr_detection_width = -1, \
  79. }
  80. #define UFS_RESET(pg_name, offset) \
  81. { \
  82. .name = #pg_name, \
  83. .pins = pg_name##_pins, \
  84. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  85. .ctl_reg = offset, \
  86. .io_reg = offset + 0x4, \
  87. .intr_cfg_reg = 0, \
  88. .intr_status_reg = 0, \
  89. .intr_target_reg = 0, \
  90. .mux_bit = -1, \
  91. .pull_bit = 3, \
  92. .drv_bit = 0, \
  93. .oe_bit = -1, \
  94. .in_bit = -1, \
  95. .out_bit = 0, \
  96. .intr_enable_bit = -1, \
  97. .intr_status_bit = -1, \
  98. .intr_target_bit = -1, \
  99. .intr_raw_status_bit = -1, \
  100. .intr_polarity_bit = -1, \
  101. .intr_detection_bit = -1, \
  102. .intr_detection_width = -1, \
  103. }
  104. static const struct pinctrl_pin_desc sc8280xp_pins[] = {
  105. PINCTRL_PIN(0, "GPIO_0"),
  106. PINCTRL_PIN(1, "GPIO_1"),
  107. PINCTRL_PIN(2, "GPIO_2"),
  108. PINCTRL_PIN(3, "GPIO_3"),
  109. PINCTRL_PIN(4, "GPIO_4"),
  110. PINCTRL_PIN(5, "GPIO_5"),
  111. PINCTRL_PIN(6, "GPIO_6"),
  112. PINCTRL_PIN(7, "GPIO_7"),
  113. PINCTRL_PIN(8, "GPIO_8"),
  114. PINCTRL_PIN(9, "GPIO_9"),
  115. PINCTRL_PIN(10, "GPIO_10"),
  116. PINCTRL_PIN(11, "GPIO_11"),
  117. PINCTRL_PIN(12, "GPIO_12"),
  118. PINCTRL_PIN(13, "GPIO_13"),
  119. PINCTRL_PIN(14, "GPIO_14"),
  120. PINCTRL_PIN(15, "GPIO_15"),
  121. PINCTRL_PIN(16, "GPIO_16"),
  122. PINCTRL_PIN(17, "GPIO_17"),
  123. PINCTRL_PIN(18, "GPIO_18"),
  124. PINCTRL_PIN(19, "GPIO_19"),
  125. PINCTRL_PIN(20, "GPIO_20"),
  126. PINCTRL_PIN(21, "GPIO_21"),
  127. PINCTRL_PIN(22, "GPIO_22"),
  128. PINCTRL_PIN(23, "GPIO_23"),
  129. PINCTRL_PIN(24, "GPIO_24"),
  130. PINCTRL_PIN(25, "GPIO_25"),
  131. PINCTRL_PIN(26, "GPIO_26"),
  132. PINCTRL_PIN(27, "GPIO_27"),
  133. PINCTRL_PIN(28, "GPIO_28"),
  134. PINCTRL_PIN(29, "GPIO_29"),
  135. PINCTRL_PIN(30, "GPIO_30"),
  136. PINCTRL_PIN(31, "GPIO_31"),
  137. PINCTRL_PIN(32, "GPIO_32"),
  138. PINCTRL_PIN(33, "GPIO_33"),
  139. PINCTRL_PIN(34, "GPIO_34"),
  140. PINCTRL_PIN(35, "GPIO_35"),
  141. PINCTRL_PIN(36, "GPIO_36"),
  142. PINCTRL_PIN(37, "GPIO_37"),
  143. PINCTRL_PIN(38, "GPIO_38"),
  144. PINCTRL_PIN(39, "GPIO_39"),
  145. PINCTRL_PIN(40, "GPIO_40"),
  146. PINCTRL_PIN(41, "GPIO_41"),
  147. PINCTRL_PIN(42, "GPIO_42"),
  148. PINCTRL_PIN(43, "GPIO_43"),
  149. PINCTRL_PIN(44, "GPIO_44"),
  150. PINCTRL_PIN(45, "GPIO_45"),
  151. PINCTRL_PIN(46, "GPIO_46"),
  152. PINCTRL_PIN(47, "GPIO_47"),
  153. PINCTRL_PIN(48, "GPIO_48"),
  154. PINCTRL_PIN(49, "GPIO_49"),
  155. PINCTRL_PIN(50, "GPIO_50"),
  156. PINCTRL_PIN(51, "GPIO_51"),
  157. PINCTRL_PIN(52, "GPIO_52"),
  158. PINCTRL_PIN(53, "GPIO_53"),
  159. PINCTRL_PIN(54, "GPIO_54"),
  160. PINCTRL_PIN(55, "GPIO_55"),
  161. PINCTRL_PIN(56, "GPIO_56"),
  162. PINCTRL_PIN(57, "GPIO_57"),
  163. PINCTRL_PIN(58, "GPIO_58"),
  164. PINCTRL_PIN(59, "GPIO_59"),
  165. PINCTRL_PIN(60, "GPIO_60"),
  166. PINCTRL_PIN(61, "GPIO_61"),
  167. PINCTRL_PIN(62, "GPIO_62"),
  168. PINCTRL_PIN(63, "GPIO_63"),
  169. PINCTRL_PIN(64, "GPIO_64"),
  170. PINCTRL_PIN(65, "GPIO_65"),
  171. PINCTRL_PIN(66, "GPIO_66"),
  172. PINCTRL_PIN(67, "GPIO_67"),
  173. PINCTRL_PIN(68, "GPIO_68"),
  174. PINCTRL_PIN(69, "GPIO_69"),
  175. PINCTRL_PIN(70, "GPIO_70"),
  176. PINCTRL_PIN(71, "GPIO_71"),
  177. PINCTRL_PIN(72, "GPIO_72"),
  178. PINCTRL_PIN(73, "GPIO_73"),
  179. PINCTRL_PIN(74, "GPIO_74"),
  180. PINCTRL_PIN(75, "GPIO_75"),
  181. PINCTRL_PIN(76, "GPIO_76"),
  182. PINCTRL_PIN(77, "GPIO_77"),
  183. PINCTRL_PIN(78, "GPIO_78"),
  184. PINCTRL_PIN(79, "GPIO_79"),
  185. PINCTRL_PIN(80, "GPIO_80"),
  186. PINCTRL_PIN(81, "GPIO_81"),
  187. PINCTRL_PIN(82, "GPIO_82"),
  188. PINCTRL_PIN(83, "GPIO_83"),
  189. PINCTRL_PIN(84, "GPIO_84"),
  190. PINCTRL_PIN(85, "GPIO_85"),
  191. PINCTRL_PIN(86, "GPIO_86"),
  192. PINCTRL_PIN(87, "GPIO_87"),
  193. PINCTRL_PIN(88, "GPIO_88"),
  194. PINCTRL_PIN(89, "GPIO_89"),
  195. PINCTRL_PIN(90, "GPIO_90"),
  196. PINCTRL_PIN(91, "GPIO_91"),
  197. PINCTRL_PIN(92, "GPIO_92"),
  198. PINCTRL_PIN(93, "GPIO_93"),
  199. PINCTRL_PIN(94, "GPIO_94"),
  200. PINCTRL_PIN(95, "GPIO_95"),
  201. PINCTRL_PIN(96, "GPIO_96"),
  202. PINCTRL_PIN(97, "GPIO_97"),
  203. PINCTRL_PIN(98, "GPIO_98"),
  204. PINCTRL_PIN(99, "GPIO_99"),
  205. PINCTRL_PIN(100, "GPIO_100"),
  206. PINCTRL_PIN(101, "GPIO_101"),
  207. PINCTRL_PIN(102, "GPIO_102"),
  208. PINCTRL_PIN(103, "GPIO_103"),
  209. PINCTRL_PIN(104, "GPIO_104"),
  210. PINCTRL_PIN(105, "GPIO_105"),
  211. PINCTRL_PIN(106, "GPIO_106"),
  212. PINCTRL_PIN(107, "GPIO_107"),
  213. PINCTRL_PIN(108, "GPIO_108"),
  214. PINCTRL_PIN(109, "GPIO_109"),
  215. PINCTRL_PIN(110, "GPIO_110"),
  216. PINCTRL_PIN(111, "GPIO_111"),
  217. PINCTRL_PIN(112, "GPIO_112"),
  218. PINCTRL_PIN(113, "GPIO_113"),
  219. PINCTRL_PIN(114, "GPIO_114"),
  220. PINCTRL_PIN(115, "GPIO_115"),
  221. PINCTRL_PIN(116, "GPIO_116"),
  222. PINCTRL_PIN(117, "GPIO_117"),
  223. PINCTRL_PIN(118, "GPIO_118"),
  224. PINCTRL_PIN(119, "GPIO_119"),
  225. PINCTRL_PIN(120, "GPIO_120"),
  226. PINCTRL_PIN(121, "GPIO_121"),
  227. PINCTRL_PIN(122, "GPIO_122"),
  228. PINCTRL_PIN(123, "GPIO_123"),
  229. PINCTRL_PIN(124, "GPIO_124"),
  230. PINCTRL_PIN(125, "GPIO_125"),
  231. PINCTRL_PIN(126, "GPIO_126"),
  232. PINCTRL_PIN(127, "GPIO_127"),
  233. PINCTRL_PIN(128, "GPIO_128"),
  234. PINCTRL_PIN(129, "GPIO_129"),
  235. PINCTRL_PIN(130, "GPIO_130"),
  236. PINCTRL_PIN(131, "GPIO_131"),
  237. PINCTRL_PIN(132, "GPIO_132"),
  238. PINCTRL_PIN(133, "GPIO_133"),
  239. PINCTRL_PIN(134, "GPIO_134"),
  240. PINCTRL_PIN(135, "GPIO_135"),
  241. PINCTRL_PIN(136, "GPIO_136"),
  242. PINCTRL_PIN(137, "GPIO_137"),
  243. PINCTRL_PIN(138, "GPIO_138"),
  244. PINCTRL_PIN(139, "GPIO_139"),
  245. PINCTRL_PIN(140, "GPIO_140"),
  246. PINCTRL_PIN(141, "GPIO_141"),
  247. PINCTRL_PIN(142, "GPIO_142"),
  248. PINCTRL_PIN(143, "GPIO_143"),
  249. PINCTRL_PIN(144, "GPIO_144"),
  250. PINCTRL_PIN(145, "GPIO_145"),
  251. PINCTRL_PIN(146, "GPIO_146"),
  252. PINCTRL_PIN(147, "GPIO_147"),
  253. PINCTRL_PIN(148, "GPIO_148"),
  254. PINCTRL_PIN(149, "GPIO_149"),
  255. PINCTRL_PIN(150, "GPIO_150"),
  256. PINCTRL_PIN(151, "GPIO_151"),
  257. PINCTRL_PIN(152, "GPIO_152"),
  258. PINCTRL_PIN(153, "GPIO_153"),
  259. PINCTRL_PIN(154, "GPIO_154"),
  260. PINCTRL_PIN(155, "GPIO_155"),
  261. PINCTRL_PIN(156, "GPIO_156"),
  262. PINCTRL_PIN(157, "GPIO_157"),
  263. PINCTRL_PIN(158, "GPIO_158"),
  264. PINCTRL_PIN(159, "GPIO_159"),
  265. PINCTRL_PIN(160, "GPIO_160"),
  266. PINCTRL_PIN(161, "GPIO_161"),
  267. PINCTRL_PIN(162, "GPIO_162"),
  268. PINCTRL_PIN(163, "GPIO_163"),
  269. PINCTRL_PIN(164, "GPIO_164"),
  270. PINCTRL_PIN(165, "GPIO_165"),
  271. PINCTRL_PIN(166, "GPIO_166"),
  272. PINCTRL_PIN(167, "GPIO_167"),
  273. PINCTRL_PIN(168, "GPIO_168"),
  274. PINCTRL_PIN(169, "GPIO_169"),
  275. PINCTRL_PIN(170, "GPIO_170"),
  276. PINCTRL_PIN(171, "GPIO_171"),
  277. PINCTRL_PIN(172, "GPIO_172"),
  278. PINCTRL_PIN(173, "GPIO_173"),
  279. PINCTRL_PIN(174, "GPIO_174"),
  280. PINCTRL_PIN(175, "GPIO_175"),
  281. PINCTRL_PIN(176, "GPIO_176"),
  282. PINCTRL_PIN(177, "GPIO_177"),
  283. PINCTRL_PIN(178, "GPIO_178"),
  284. PINCTRL_PIN(179, "GPIO_179"),
  285. PINCTRL_PIN(180, "GPIO_180"),
  286. PINCTRL_PIN(181, "GPIO_181"),
  287. PINCTRL_PIN(182, "GPIO_182"),
  288. PINCTRL_PIN(183, "GPIO_183"),
  289. PINCTRL_PIN(184, "GPIO_184"),
  290. PINCTRL_PIN(185, "GPIO_185"),
  291. PINCTRL_PIN(186, "GPIO_186"),
  292. PINCTRL_PIN(187, "GPIO_187"),
  293. PINCTRL_PIN(188, "GPIO_188"),
  294. PINCTRL_PIN(189, "GPIO_189"),
  295. PINCTRL_PIN(190, "GPIO_190"),
  296. PINCTRL_PIN(191, "GPIO_191"),
  297. PINCTRL_PIN(192, "GPIO_192"),
  298. PINCTRL_PIN(193, "GPIO_193"),
  299. PINCTRL_PIN(194, "GPIO_194"),
  300. PINCTRL_PIN(195, "GPIO_195"),
  301. PINCTRL_PIN(196, "GPIO_196"),
  302. PINCTRL_PIN(197, "GPIO_197"),
  303. PINCTRL_PIN(198, "GPIO_198"),
  304. PINCTRL_PIN(199, "GPIO_199"),
  305. PINCTRL_PIN(200, "GPIO_200"),
  306. PINCTRL_PIN(201, "GPIO_201"),
  307. PINCTRL_PIN(202, "GPIO_202"),
  308. PINCTRL_PIN(203, "GPIO_203"),
  309. PINCTRL_PIN(204, "GPIO_204"),
  310. PINCTRL_PIN(205, "GPIO_205"),
  311. PINCTRL_PIN(206, "GPIO_206"),
  312. PINCTRL_PIN(207, "GPIO_207"),
  313. PINCTRL_PIN(208, "GPIO_208"),
  314. PINCTRL_PIN(209, "GPIO_209"),
  315. PINCTRL_PIN(210, "GPIO_210"),
  316. PINCTRL_PIN(211, "GPIO_211"),
  317. PINCTRL_PIN(212, "GPIO_212"),
  318. PINCTRL_PIN(213, "GPIO_213"),
  319. PINCTRL_PIN(214, "GPIO_214"),
  320. PINCTRL_PIN(215, "GPIO_215"),
  321. PINCTRL_PIN(216, "GPIO_216"),
  322. PINCTRL_PIN(217, "GPIO_217"),
  323. PINCTRL_PIN(218, "GPIO_218"),
  324. PINCTRL_PIN(219, "GPIO_219"),
  325. PINCTRL_PIN(220, "GPIO_220"),
  326. PINCTRL_PIN(221, "GPIO_221"),
  327. PINCTRL_PIN(222, "GPIO_222"),
  328. PINCTRL_PIN(223, "GPIO_223"),
  329. PINCTRL_PIN(224, "GPIO_224"),
  330. PINCTRL_PIN(225, "GPIO_225"),
  331. PINCTRL_PIN(226, "GPIO_226"),
  332. PINCTRL_PIN(227, "GPIO_227"),
  333. PINCTRL_PIN(228, "UFS_RESET"),
  334. PINCTRL_PIN(229, "UFS1_RESET"),
  335. PINCTRL_PIN(230, "SDC2_CLK"),
  336. PINCTRL_PIN(231, "SDC2_CMD"),
  337. PINCTRL_PIN(232, "SDC2_DATA"),
  338. };
  339. #define DECLARE_MSM_GPIO_PINS(pin) \
  340. static const unsigned int gpio##pin##_pins[] = { pin }
  341. DECLARE_MSM_GPIO_PINS(0);
  342. DECLARE_MSM_GPIO_PINS(1);
  343. DECLARE_MSM_GPIO_PINS(2);
  344. DECLARE_MSM_GPIO_PINS(3);
  345. DECLARE_MSM_GPIO_PINS(4);
  346. DECLARE_MSM_GPIO_PINS(5);
  347. DECLARE_MSM_GPIO_PINS(6);
  348. DECLARE_MSM_GPIO_PINS(7);
  349. DECLARE_MSM_GPIO_PINS(8);
  350. DECLARE_MSM_GPIO_PINS(9);
  351. DECLARE_MSM_GPIO_PINS(10);
  352. DECLARE_MSM_GPIO_PINS(11);
  353. DECLARE_MSM_GPIO_PINS(12);
  354. DECLARE_MSM_GPIO_PINS(13);
  355. DECLARE_MSM_GPIO_PINS(14);
  356. DECLARE_MSM_GPIO_PINS(15);
  357. DECLARE_MSM_GPIO_PINS(16);
  358. DECLARE_MSM_GPIO_PINS(17);
  359. DECLARE_MSM_GPIO_PINS(18);
  360. DECLARE_MSM_GPIO_PINS(19);
  361. DECLARE_MSM_GPIO_PINS(20);
  362. DECLARE_MSM_GPIO_PINS(21);
  363. DECLARE_MSM_GPIO_PINS(22);
  364. DECLARE_MSM_GPIO_PINS(23);
  365. DECLARE_MSM_GPIO_PINS(24);
  366. DECLARE_MSM_GPIO_PINS(25);
  367. DECLARE_MSM_GPIO_PINS(26);
  368. DECLARE_MSM_GPIO_PINS(27);
  369. DECLARE_MSM_GPIO_PINS(28);
  370. DECLARE_MSM_GPIO_PINS(29);
  371. DECLARE_MSM_GPIO_PINS(30);
  372. DECLARE_MSM_GPIO_PINS(31);
  373. DECLARE_MSM_GPIO_PINS(32);
  374. DECLARE_MSM_GPIO_PINS(33);
  375. DECLARE_MSM_GPIO_PINS(34);
  376. DECLARE_MSM_GPIO_PINS(35);
  377. DECLARE_MSM_GPIO_PINS(36);
  378. DECLARE_MSM_GPIO_PINS(37);
  379. DECLARE_MSM_GPIO_PINS(38);
  380. DECLARE_MSM_GPIO_PINS(39);
  381. DECLARE_MSM_GPIO_PINS(40);
  382. DECLARE_MSM_GPIO_PINS(41);
  383. DECLARE_MSM_GPIO_PINS(42);
  384. DECLARE_MSM_GPIO_PINS(43);
  385. DECLARE_MSM_GPIO_PINS(44);
  386. DECLARE_MSM_GPIO_PINS(45);
  387. DECLARE_MSM_GPIO_PINS(46);
  388. DECLARE_MSM_GPIO_PINS(47);
  389. DECLARE_MSM_GPIO_PINS(48);
  390. DECLARE_MSM_GPIO_PINS(49);
  391. DECLARE_MSM_GPIO_PINS(50);
  392. DECLARE_MSM_GPIO_PINS(51);
  393. DECLARE_MSM_GPIO_PINS(52);
  394. DECLARE_MSM_GPIO_PINS(53);
  395. DECLARE_MSM_GPIO_PINS(54);
  396. DECLARE_MSM_GPIO_PINS(55);
  397. DECLARE_MSM_GPIO_PINS(56);
  398. DECLARE_MSM_GPIO_PINS(57);
  399. DECLARE_MSM_GPIO_PINS(58);
  400. DECLARE_MSM_GPIO_PINS(59);
  401. DECLARE_MSM_GPIO_PINS(60);
  402. DECLARE_MSM_GPIO_PINS(61);
  403. DECLARE_MSM_GPIO_PINS(62);
  404. DECLARE_MSM_GPIO_PINS(63);
  405. DECLARE_MSM_GPIO_PINS(64);
  406. DECLARE_MSM_GPIO_PINS(65);
  407. DECLARE_MSM_GPIO_PINS(66);
  408. DECLARE_MSM_GPIO_PINS(67);
  409. DECLARE_MSM_GPIO_PINS(68);
  410. DECLARE_MSM_GPIO_PINS(69);
  411. DECLARE_MSM_GPIO_PINS(70);
  412. DECLARE_MSM_GPIO_PINS(71);
  413. DECLARE_MSM_GPIO_PINS(72);
  414. DECLARE_MSM_GPIO_PINS(73);
  415. DECLARE_MSM_GPIO_PINS(74);
  416. DECLARE_MSM_GPIO_PINS(75);
  417. DECLARE_MSM_GPIO_PINS(76);
  418. DECLARE_MSM_GPIO_PINS(77);
  419. DECLARE_MSM_GPIO_PINS(78);
  420. DECLARE_MSM_GPIO_PINS(79);
  421. DECLARE_MSM_GPIO_PINS(80);
  422. DECLARE_MSM_GPIO_PINS(81);
  423. DECLARE_MSM_GPIO_PINS(82);
  424. DECLARE_MSM_GPIO_PINS(83);
  425. DECLARE_MSM_GPIO_PINS(84);
  426. DECLARE_MSM_GPIO_PINS(85);
  427. DECLARE_MSM_GPIO_PINS(86);
  428. DECLARE_MSM_GPIO_PINS(87);
  429. DECLARE_MSM_GPIO_PINS(88);
  430. DECLARE_MSM_GPIO_PINS(89);
  431. DECLARE_MSM_GPIO_PINS(90);
  432. DECLARE_MSM_GPIO_PINS(91);
  433. DECLARE_MSM_GPIO_PINS(92);
  434. DECLARE_MSM_GPIO_PINS(93);
  435. DECLARE_MSM_GPIO_PINS(94);
  436. DECLARE_MSM_GPIO_PINS(95);
  437. DECLARE_MSM_GPIO_PINS(96);
  438. DECLARE_MSM_GPIO_PINS(97);
  439. DECLARE_MSM_GPIO_PINS(98);
  440. DECLARE_MSM_GPIO_PINS(99);
  441. DECLARE_MSM_GPIO_PINS(100);
  442. DECLARE_MSM_GPIO_PINS(101);
  443. DECLARE_MSM_GPIO_PINS(102);
  444. DECLARE_MSM_GPIO_PINS(103);
  445. DECLARE_MSM_GPIO_PINS(104);
  446. DECLARE_MSM_GPIO_PINS(105);
  447. DECLARE_MSM_GPIO_PINS(106);
  448. DECLARE_MSM_GPIO_PINS(107);
  449. DECLARE_MSM_GPIO_PINS(108);
  450. DECLARE_MSM_GPIO_PINS(109);
  451. DECLARE_MSM_GPIO_PINS(110);
  452. DECLARE_MSM_GPIO_PINS(111);
  453. DECLARE_MSM_GPIO_PINS(112);
  454. DECLARE_MSM_GPIO_PINS(113);
  455. DECLARE_MSM_GPIO_PINS(114);
  456. DECLARE_MSM_GPIO_PINS(115);
  457. DECLARE_MSM_GPIO_PINS(116);
  458. DECLARE_MSM_GPIO_PINS(117);
  459. DECLARE_MSM_GPIO_PINS(118);
  460. DECLARE_MSM_GPIO_PINS(119);
  461. DECLARE_MSM_GPIO_PINS(120);
  462. DECLARE_MSM_GPIO_PINS(121);
  463. DECLARE_MSM_GPIO_PINS(122);
  464. DECLARE_MSM_GPIO_PINS(123);
  465. DECLARE_MSM_GPIO_PINS(124);
  466. DECLARE_MSM_GPIO_PINS(125);
  467. DECLARE_MSM_GPIO_PINS(126);
  468. DECLARE_MSM_GPIO_PINS(127);
  469. DECLARE_MSM_GPIO_PINS(128);
  470. DECLARE_MSM_GPIO_PINS(129);
  471. DECLARE_MSM_GPIO_PINS(130);
  472. DECLARE_MSM_GPIO_PINS(131);
  473. DECLARE_MSM_GPIO_PINS(132);
  474. DECLARE_MSM_GPIO_PINS(133);
  475. DECLARE_MSM_GPIO_PINS(134);
  476. DECLARE_MSM_GPIO_PINS(135);
  477. DECLARE_MSM_GPIO_PINS(136);
  478. DECLARE_MSM_GPIO_PINS(137);
  479. DECLARE_MSM_GPIO_PINS(138);
  480. DECLARE_MSM_GPIO_PINS(139);
  481. DECLARE_MSM_GPIO_PINS(140);
  482. DECLARE_MSM_GPIO_PINS(141);
  483. DECLARE_MSM_GPIO_PINS(142);
  484. DECLARE_MSM_GPIO_PINS(143);
  485. DECLARE_MSM_GPIO_PINS(144);
  486. DECLARE_MSM_GPIO_PINS(145);
  487. DECLARE_MSM_GPIO_PINS(146);
  488. DECLARE_MSM_GPIO_PINS(147);
  489. DECLARE_MSM_GPIO_PINS(148);
  490. DECLARE_MSM_GPIO_PINS(149);
  491. DECLARE_MSM_GPIO_PINS(150);
  492. DECLARE_MSM_GPIO_PINS(151);
  493. DECLARE_MSM_GPIO_PINS(152);
  494. DECLARE_MSM_GPIO_PINS(153);
  495. DECLARE_MSM_GPIO_PINS(154);
  496. DECLARE_MSM_GPIO_PINS(155);
  497. DECLARE_MSM_GPIO_PINS(156);
  498. DECLARE_MSM_GPIO_PINS(157);
  499. DECLARE_MSM_GPIO_PINS(158);
  500. DECLARE_MSM_GPIO_PINS(159);
  501. DECLARE_MSM_GPIO_PINS(160);
  502. DECLARE_MSM_GPIO_PINS(161);
  503. DECLARE_MSM_GPIO_PINS(162);
  504. DECLARE_MSM_GPIO_PINS(163);
  505. DECLARE_MSM_GPIO_PINS(164);
  506. DECLARE_MSM_GPIO_PINS(165);
  507. DECLARE_MSM_GPIO_PINS(166);
  508. DECLARE_MSM_GPIO_PINS(167);
  509. DECLARE_MSM_GPIO_PINS(168);
  510. DECLARE_MSM_GPIO_PINS(169);
  511. DECLARE_MSM_GPIO_PINS(170);
  512. DECLARE_MSM_GPIO_PINS(171);
  513. DECLARE_MSM_GPIO_PINS(172);
  514. DECLARE_MSM_GPIO_PINS(173);
  515. DECLARE_MSM_GPIO_PINS(174);
  516. DECLARE_MSM_GPIO_PINS(175);
  517. DECLARE_MSM_GPIO_PINS(176);
  518. DECLARE_MSM_GPIO_PINS(177);
  519. DECLARE_MSM_GPIO_PINS(178);
  520. DECLARE_MSM_GPIO_PINS(179);
  521. DECLARE_MSM_GPIO_PINS(180);
  522. DECLARE_MSM_GPIO_PINS(181);
  523. DECLARE_MSM_GPIO_PINS(182);
  524. DECLARE_MSM_GPIO_PINS(183);
  525. DECLARE_MSM_GPIO_PINS(184);
  526. DECLARE_MSM_GPIO_PINS(185);
  527. DECLARE_MSM_GPIO_PINS(186);
  528. DECLARE_MSM_GPIO_PINS(187);
  529. DECLARE_MSM_GPIO_PINS(188);
  530. DECLARE_MSM_GPIO_PINS(189);
  531. DECLARE_MSM_GPIO_PINS(190);
  532. DECLARE_MSM_GPIO_PINS(191);
  533. DECLARE_MSM_GPIO_PINS(192);
  534. DECLARE_MSM_GPIO_PINS(193);
  535. DECLARE_MSM_GPIO_PINS(194);
  536. DECLARE_MSM_GPIO_PINS(195);
  537. DECLARE_MSM_GPIO_PINS(196);
  538. DECLARE_MSM_GPIO_PINS(197);
  539. DECLARE_MSM_GPIO_PINS(198);
  540. DECLARE_MSM_GPIO_PINS(199);
  541. DECLARE_MSM_GPIO_PINS(200);
  542. DECLARE_MSM_GPIO_PINS(201);
  543. DECLARE_MSM_GPIO_PINS(202);
  544. DECLARE_MSM_GPIO_PINS(203);
  545. DECLARE_MSM_GPIO_PINS(204);
  546. DECLARE_MSM_GPIO_PINS(205);
  547. DECLARE_MSM_GPIO_PINS(206);
  548. DECLARE_MSM_GPIO_PINS(207);
  549. DECLARE_MSM_GPIO_PINS(208);
  550. DECLARE_MSM_GPIO_PINS(209);
  551. DECLARE_MSM_GPIO_PINS(210);
  552. DECLARE_MSM_GPIO_PINS(211);
  553. DECLARE_MSM_GPIO_PINS(212);
  554. DECLARE_MSM_GPIO_PINS(213);
  555. DECLARE_MSM_GPIO_PINS(214);
  556. DECLARE_MSM_GPIO_PINS(215);
  557. DECLARE_MSM_GPIO_PINS(216);
  558. DECLARE_MSM_GPIO_PINS(217);
  559. DECLARE_MSM_GPIO_PINS(218);
  560. DECLARE_MSM_GPIO_PINS(219);
  561. DECLARE_MSM_GPIO_PINS(220);
  562. DECLARE_MSM_GPIO_PINS(221);
  563. DECLARE_MSM_GPIO_PINS(222);
  564. DECLARE_MSM_GPIO_PINS(223);
  565. DECLARE_MSM_GPIO_PINS(224);
  566. DECLARE_MSM_GPIO_PINS(225);
  567. DECLARE_MSM_GPIO_PINS(226);
  568. DECLARE_MSM_GPIO_PINS(227);
  569. static const unsigned int ufs_reset_pins[] = { 228 };
  570. static const unsigned int ufs1_reset_pins[] = { 229 };
  571. static const unsigned int sdc2_clk_pins[] = { 230 };
  572. static const unsigned int sdc2_cmd_pins[] = { 231 };
  573. static const unsigned int sdc2_data_pins[] = { 232 };
  574. enum sc8280xp_functions {
  575. msm_mux_atest_char,
  576. msm_mux_atest_usb,
  577. msm_mux_audio_ref,
  578. msm_mux_cam_mclk,
  579. msm_mux_cci_async,
  580. msm_mux_cci_i2c,
  581. msm_mux_cci_timer0,
  582. msm_mux_cci_timer1,
  583. msm_mux_cci_timer2,
  584. msm_mux_cci_timer3,
  585. msm_mux_cci_timer4,
  586. msm_mux_cci_timer5,
  587. msm_mux_cci_timer6,
  588. msm_mux_cci_timer7,
  589. msm_mux_cci_timer8,
  590. msm_mux_cci_timer9,
  591. msm_mux_cmu_rng,
  592. msm_mux_cri_trng,
  593. msm_mux_cri_trng0,
  594. msm_mux_cri_trng1,
  595. msm_mux_dbg_out,
  596. msm_mux_ddr_bist,
  597. msm_mux_ddr_pxi0,
  598. msm_mux_ddr_pxi1,
  599. msm_mux_ddr_pxi2,
  600. msm_mux_ddr_pxi3,
  601. msm_mux_ddr_pxi4,
  602. msm_mux_ddr_pxi5,
  603. msm_mux_ddr_pxi6,
  604. msm_mux_ddr_pxi7,
  605. msm_mux_dp2_hot,
  606. msm_mux_dp3_hot,
  607. msm_mux_edp0_lcd,
  608. msm_mux_edp1_lcd,
  609. msm_mux_edp2_lcd,
  610. msm_mux_edp3_lcd,
  611. msm_mux_edp_hot,
  612. msm_mux_egpio,
  613. msm_mux_emac0_dll,
  614. msm_mux_emac0_mcg0,
  615. msm_mux_emac0_mcg1,
  616. msm_mux_emac0_mcg2,
  617. msm_mux_emac0_mcg3,
  618. msm_mux_emac0_phy,
  619. msm_mux_emac0_ptp,
  620. msm_mux_emac1_dll0,
  621. msm_mux_emac1_dll1,
  622. msm_mux_emac1_mcg0,
  623. msm_mux_emac1_mcg1,
  624. msm_mux_emac1_mcg2,
  625. msm_mux_emac1_mcg3,
  626. msm_mux_emac1_phy,
  627. msm_mux_emac1_ptp,
  628. msm_mux_gcc_gp1,
  629. msm_mux_gcc_gp2,
  630. msm_mux_gcc_gp3,
  631. msm_mux_gcc_gp4,
  632. msm_mux_gcc_gp5,
  633. msm_mux_gpio,
  634. msm_mux_hs1_mi2s,
  635. msm_mux_hs2_mi2s,
  636. msm_mux_hs3_mi2s,
  637. msm_mux_ibi_i3c,
  638. msm_mux_jitter_bist,
  639. msm_mux_lpass_slimbus,
  640. msm_mux_mdp0_vsync0,
  641. msm_mux_mdp0_vsync1,
  642. msm_mux_mdp0_vsync2,
  643. msm_mux_mdp0_vsync3,
  644. msm_mux_mdp0_vsync4,
  645. msm_mux_mdp0_vsync5,
  646. msm_mux_mdp0_vsync6,
  647. msm_mux_mdp0_vsync7,
  648. msm_mux_mdp0_vsync8,
  649. msm_mux_mdp1_vsync0,
  650. msm_mux_mdp1_vsync1,
  651. msm_mux_mdp1_vsync2,
  652. msm_mux_mdp1_vsync3,
  653. msm_mux_mdp1_vsync4,
  654. msm_mux_mdp1_vsync5,
  655. msm_mux_mdp1_vsync6,
  656. msm_mux_mdp1_vsync7,
  657. msm_mux_mdp1_vsync8,
  658. msm_mux_mdp_vsync,
  659. msm_mux_mi2s0_data0,
  660. msm_mux_mi2s0_data1,
  661. msm_mux_mi2s0_sck,
  662. msm_mux_mi2s0_ws,
  663. msm_mux_mi2s1_data0,
  664. msm_mux_mi2s1_data1,
  665. msm_mux_mi2s1_sck,
  666. msm_mux_mi2s1_ws,
  667. msm_mux_mi2s2_data0,
  668. msm_mux_mi2s2_data1,
  669. msm_mux_mi2s2_sck,
  670. msm_mux_mi2s2_ws,
  671. msm_mux_mi2s_mclk1,
  672. msm_mux_mi2s_mclk2,
  673. msm_mux_pcie2a_clkreq,
  674. msm_mux_pcie2b_clkreq,
  675. msm_mux_pcie3a_clkreq,
  676. msm_mux_pcie3b_clkreq,
  677. msm_mux_pcie4_clkreq,
  678. msm_mux_phase_flag,
  679. msm_mux_pll_bist,
  680. msm_mux_pll_clk,
  681. msm_mux_prng_rosc0,
  682. msm_mux_prng_rosc1,
  683. msm_mux_prng_rosc2,
  684. msm_mux_prng_rosc3,
  685. msm_mux_qdss_cti,
  686. msm_mux_qdss_gpio,
  687. msm_mux_qspi,
  688. msm_mux_qspi_clk,
  689. msm_mux_qspi_cs,
  690. msm_mux_qup0,
  691. msm_mux_qup1,
  692. msm_mux_qup10,
  693. msm_mux_qup11,
  694. msm_mux_qup12,
  695. msm_mux_qup13,
  696. msm_mux_qup14,
  697. msm_mux_qup15,
  698. msm_mux_qup16,
  699. msm_mux_qup17,
  700. msm_mux_qup18,
  701. msm_mux_qup19,
  702. msm_mux_qup2,
  703. msm_mux_qup20,
  704. msm_mux_qup21,
  705. msm_mux_qup22,
  706. msm_mux_qup23,
  707. msm_mux_qup3,
  708. msm_mux_qup4,
  709. msm_mux_qup5,
  710. msm_mux_qup6,
  711. msm_mux_qup7,
  712. msm_mux_qup8,
  713. msm_mux_qup9,
  714. msm_mux_rgmii_0,
  715. msm_mux_rgmii_1,
  716. msm_mux_sd_write,
  717. msm_mux_sdc40,
  718. msm_mux_sdc42,
  719. msm_mux_sdc43,
  720. msm_mux_sdc4_clk,
  721. msm_mux_sdc4_cmd,
  722. msm_mux_tb_trig,
  723. msm_mux_tgu,
  724. msm_mux_tsense_pwm1,
  725. msm_mux_tsense_pwm2,
  726. msm_mux_tsense_pwm3,
  727. msm_mux_tsense_pwm4,
  728. msm_mux_usb0_dp,
  729. msm_mux_usb0_phy,
  730. msm_mux_usb0_sbrx,
  731. msm_mux_usb0_sbtx,
  732. msm_mux_usb0_usb4,
  733. msm_mux_usb1_dp,
  734. msm_mux_usb1_phy,
  735. msm_mux_usb1_sbrx,
  736. msm_mux_usb1_sbtx,
  737. msm_mux_usb1_usb4,
  738. msm_mux_usb2phy_ac,
  739. msm_mux_vsense_trigger,
  740. msm_mux__,
  741. };
  742. static const char * const gpio_groups[] = {
  743. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  744. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  745. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  746. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  747. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  748. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  749. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  750. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  751. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  752. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  753. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio78",
  754. "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", "gpio85",
  755. "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", "gpio92",
  756. "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", "gpio99",
  757. "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", "gpio105",
  758. "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", "gpio111",
  759. "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", "gpio117",
  760. "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", "gpio123",
  761. "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", "gpio129",
  762. "gpio130", "gpio131", "gpio132", "gpio133", "gpio134", "gpio135",
  763. "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", "gpio141",
  764. "gpio142", "gpio143", "gpio144", "gpio145", "gpio146", "gpio147",
  765. "gpio148", "gpio149", "gpio150", "gpio151", "gpio152", "gpio153",
  766. "gpio154", "gpio155", "gpio156", "gpio157", "gpio158", "gpio159",
  767. "gpio160", "gpio161", "gpio162", "gpio163", "gpio164", "gpio165",
  768. "gpio166", "gpio167", "gpio168", "gpio169", "gpio170", "gpio171",
  769. "gpio172", "gpio173", "gpio174", "gpio175", "gpio176", "gpio177",
  770. "gpio178", "gpio179", "gpio180", "gpio181", "gpio182", "gpio183",
  771. "gpio184", "gpio185", "gpio186", "gpio187", "gpio188", "gpio189",
  772. "gpio190", "gpio191", "gpio192", "gpio193", "gpio194", "gpio195",
  773. "gpio196", "gpio197", "gpio198", "gpio199", "gpio200", "gpio201",
  774. "gpio202", "gpio203", "gpio204", "gpio205", "gpio206", "gpio207",
  775. "gpio208", "gpio209", "gpio210", "gpio211", "gpio212", "gpio213",
  776. "gpio214", "gpio215", "gpio216", "gpio217", "gpio218", "gpio219",
  777. "gpio220", "gpio221", "gpio222", "gpio223", "gpio224", "gpio225",
  778. "gpio226", "gpio227",
  779. };
  780. static const char * const atest_char_groups[] = {
  781. "gpio134", "gpio139", "gpio140", "gpio142", "gpio143",
  782. };
  783. static const char * const atest_usb_groups[] = {
  784. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio78",
  785. "gpio79", "gpio97", "gpio98", "gpio101", "gpio102", "gpio103",
  786. "gpio104", "gpio105", "gpio110", "gpio111", "gpio112", "gpio113",
  787. "gpio114", "gpio121", "gpio122", "gpio130", "gpio131", "gpio135",
  788. "gpio137", "gpio138", "gpio148", "gpio149",
  789. };
  790. static const char * const audio_ref_groups[] = {
  791. "gpio80",
  792. };
  793. static const char * const cam_mclk_groups[] = {
  794. "gpio6", "gpio7", "gpio16", "gpio17", "gpio33", "gpio34", "gpio119",
  795. "gpio120",
  796. };
  797. static const char * const cci_async_groups[] = {
  798. "gpio15", "gpio119", "gpio120", "gpio160", "gpio161", "gpio167",
  799. };
  800. static const char * const cci_i2c_groups[] = {
  801. "gpio10", "gpio11", "gpio12", "gpio13", "gpio113", "gpio114",
  802. "gpio115", "gpio116", "gpio117", "gpio118", "gpio123", "gpio124",
  803. "gpio145", "gpio146", "gpio164", "gpio165",
  804. };
  805. static const char * const cci_timer0_groups[] = {
  806. "gpio119",
  807. };
  808. static const char * const cci_timer1_groups[] = {
  809. "gpio120",
  810. };
  811. static const char * const cci_timer2_groups[] = {
  812. "gpio14",
  813. };
  814. static const char * const cci_timer3_groups[] = {
  815. "gpio15",
  816. };
  817. static const char * const cci_timer4_groups[] = {
  818. "gpio161",
  819. };
  820. static const char * const cci_timer5_groups[] = {
  821. "gpio139",
  822. };
  823. static const char * const cci_timer6_groups[] = {
  824. "gpio162",
  825. };
  826. static const char * const cci_timer7_groups[] = {
  827. "gpio163",
  828. };
  829. static const char * const cci_timer8_groups[] = {
  830. "gpio167",
  831. };
  832. static const char * const cci_timer9_groups[] = {
  833. "gpio160",
  834. };
  835. static const char * const cmu_rng_groups[] = {
  836. "gpio123", "gpio124", "gpio126", "gpio136",
  837. };
  838. static const char * const cri_trng0_groups[] = {
  839. "gpio187",
  840. };
  841. static const char * const cri_trng1_groups[] = {
  842. "gpio188",
  843. };
  844. static const char * const cri_trng_groups[] = {
  845. "gpio190",
  846. };
  847. static const char * const dbg_out_groups[] = {
  848. "gpio125",
  849. };
  850. static const char * const ddr_bist_groups[] = {
  851. "gpio42", "gpio45", "gpio46", "gpio47",
  852. };
  853. static const char * const ddr_pxi0_groups[] = {
  854. "gpio121", "gpio126",
  855. };
  856. static const char * const ddr_pxi1_groups[] = {
  857. "gpio124", "gpio125",
  858. };
  859. static const char * const ddr_pxi2_groups[] = {
  860. "gpio123", "gpio138",
  861. };
  862. static const char * const ddr_pxi3_groups[] = {
  863. "gpio120", "gpio137",
  864. };
  865. static const char * const ddr_pxi4_groups[] = {
  866. "gpio216", "gpio217",
  867. };
  868. static const char * const ddr_pxi5_groups[] = {
  869. "gpio214", "gpio215",
  870. };
  871. static const char * const ddr_pxi6_groups[] = {
  872. "gpio79", "gpio218",
  873. };
  874. static const char * const ddr_pxi7_groups[] = {
  875. "gpio135", "gpio136",
  876. };
  877. static const char * const dp2_hot_groups[] = {
  878. "gpio20",
  879. };
  880. static const char * const dp3_hot_groups[] = {
  881. "gpio45",
  882. };
  883. static const char * const edp0_lcd_groups[] = {
  884. "gpio26",
  885. };
  886. static const char * const edp1_lcd_groups[] = {
  887. "gpio27",
  888. };
  889. static const char * const edp2_lcd_groups[] = {
  890. "gpio28",
  891. };
  892. static const char * const edp3_lcd_groups[] = {
  893. "gpio29",
  894. };
  895. static const char * const edp_hot_groups[] = {
  896. "gpio2", "gpio3", "gpio6", "gpio7",
  897. };
  898. static const char * const egpio_groups[] = {
  899. "gpio189", "gpio190", "gpio191", "gpio192", "gpio193", "gpio194",
  900. "gpio195", "gpio196", "gpio197", "gpio198", "gpio199", "gpio200",
  901. "gpio201", "gpio202", "gpio203", "gpio204", "gpio205", "gpio206",
  902. "gpio207", "gpio208", "gpio209", "gpio210", "gpio211", "gpio212",
  903. "gpio213", "gpio214", "gpio215", "gpio216", "gpio217", "gpio218",
  904. "gpio219", "gpio220", "gpio221", "gpio222", "gpio223", "gpio224",
  905. "gpio225", "gpio226", "gpio227",
  906. };
  907. static const char * const emac0_dll_groups[] = {
  908. "gpio216", "gpio217",
  909. };
  910. static const char * const emac0_mcg0_groups[] = {
  911. "gpio160",
  912. };
  913. static const char * const emac0_mcg1_groups[] = {
  914. "gpio161",
  915. };
  916. static const char * const emac0_mcg2_groups[] = {
  917. "gpio162",
  918. };
  919. static const char * const emac0_mcg3_groups[] = {
  920. "gpio163",
  921. };
  922. static const char * const emac0_phy_groups[] = {
  923. "gpio127",
  924. };
  925. static const char * const emac0_ptp_groups[] = {
  926. "gpio130", "gpio130", "gpio131", "gpio131", "gpio156", "gpio156",
  927. "gpio157", "gpio157", "gpio158", "gpio158", "gpio159", "gpio159",
  928. };
  929. static const char * const emac1_dll0_groups[] = {
  930. "gpio215",
  931. };
  932. static const char * const emac1_dll1_groups[] = {
  933. "gpio218",
  934. };
  935. static const char * const emac1_mcg0_groups[] = {
  936. "gpio57",
  937. };
  938. static const char * const emac1_mcg1_groups[] = {
  939. "gpio58",
  940. };
  941. static const char * const emac1_mcg2_groups[] = {
  942. "gpio68",
  943. };
  944. static const char * const emac1_mcg3_groups[] = {
  945. "gpio69",
  946. };
  947. static const char * const emac1_phy_groups[] = {
  948. "gpio54",
  949. };
  950. static const char * const emac1_ptp_groups[] = {
  951. "gpio55", "gpio55", "gpio56", "gpio56", "gpio93", "gpio93", "gpio94",
  952. "gpio94", "gpio95", "gpio95", "gpio96", "gpio96",
  953. };
  954. static const char * const gcc_gp1_groups[] = {
  955. "gpio119", "gpio149",
  956. };
  957. static const char * const gcc_gp2_groups[] = {
  958. "gpio114", "gpio120",
  959. };
  960. static const char * const gcc_gp3_groups[] = {
  961. "gpio115", "gpio139",
  962. };
  963. static const char * const gcc_gp4_groups[] = {
  964. "gpio160", "gpio162",
  965. };
  966. static const char * const gcc_gp5_groups[] = {
  967. "gpio167", "gpio168",
  968. };
  969. static const char * const hs1_mi2s_groups[] = {
  970. "gpio208", "gpio209", "gpio210", "gpio211",
  971. };
  972. static const char * const hs2_mi2s_groups[] = {
  973. "gpio91", "gpio92", "gpio218", "gpio219",
  974. };
  975. static const char * const hs3_mi2s_groups[] = {
  976. "gpio224", "gpio225", "gpio226", "gpio227",
  977. };
  978. static const char * const ibi_i3c_groups[] = {
  979. "gpio4", "gpio5", "gpio36", "gpio37", "gpio128", "gpio129", "gpio154",
  980. "gpio155",
  981. };
  982. static const char * const jitter_bist_groups[] = {
  983. "gpio140",
  984. };
  985. static const char * const lpass_slimbus_groups[] = {
  986. "gpio220", "gpio221",
  987. };
  988. static const char * const mdp0_vsync0_groups[] = {
  989. "gpio1",
  990. };
  991. static const char * const mdp0_vsync1_groups[] = {
  992. "gpio2",
  993. };
  994. static const char * const mdp0_vsync2_groups[] = {
  995. "gpio8",
  996. };
  997. static const char * const mdp0_vsync3_groups[] = {
  998. "gpio9",
  999. };
  1000. static const char * const mdp0_vsync4_groups[] = {
  1001. "gpio10",
  1002. };
  1003. static const char * const mdp0_vsync5_groups[] = {
  1004. "gpio11",
  1005. };
  1006. static const char * const mdp0_vsync6_groups[] = {
  1007. "gpio12",
  1008. };
  1009. static const char * const mdp0_vsync7_groups[] = {
  1010. "gpio13",
  1011. };
  1012. static const char * const mdp0_vsync8_groups[] = {
  1013. "gpio16",
  1014. };
  1015. static const char * const mdp1_vsync0_groups[] = {
  1016. "gpio17",
  1017. };
  1018. static const char * const mdp1_vsync1_groups[] = {
  1019. "gpio18",
  1020. };
  1021. static const char * const mdp1_vsync2_groups[] = {
  1022. "gpio19",
  1023. };
  1024. static const char * const mdp1_vsync3_groups[] = {
  1025. "gpio20",
  1026. };
  1027. static const char * const mdp1_vsync4_groups[] = {
  1028. "gpio36",
  1029. };
  1030. static const char * const mdp1_vsync5_groups[] = {
  1031. "gpio37",
  1032. };
  1033. static const char * const mdp1_vsync6_groups[] = {
  1034. "gpio38",
  1035. };
  1036. static const char * const mdp1_vsync7_groups[] = {
  1037. "gpio39",
  1038. };
  1039. static const char * const mdp1_vsync8_groups[] = {
  1040. "gpio40",
  1041. };
  1042. static const char * const mdp_vsync_groups[] = {
  1043. "gpio8", "gpio100", "gpio101",
  1044. };
  1045. static const char * const mi2s0_data0_groups[] = {
  1046. "gpio95",
  1047. };
  1048. static const char * const mi2s0_data1_groups[] = {
  1049. "gpio96",
  1050. };
  1051. static const char * const mi2s0_sck_groups[] = {
  1052. "gpio93",
  1053. };
  1054. static const char * const mi2s0_ws_groups[] = {
  1055. "gpio94",
  1056. };
  1057. static const char * const mi2s1_data0_groups[] = {
  1058. "gpio222",
  1059. };
  1060. static const char * const mi2s1_data1_groups[] = {
  1061. "gpio223",
  1062. };
  1063. static const char * const mi2s1_sck_groups[] = {
  1064. "gpio220",
  1065. };
  1066. static const char * const mi2s1_ws_groups[] = {
  1067. "gpio221",
  1068. };
  1069. static const char * const mi2s2_data0_groups[] = {
  1070. "gpio214",
  1071. };
  1072. static const char * const mi2s2_data1_groups[] = {
  1073. "gpio215",
  1074. };
  1075. static const char * const mi2s2_sck_groups[] = {
  1076. "gpio212",
  1077. };
  1078. static const char * const mi2s2_ws_groups[] = {
  1079. "gpio213",
  1080. };
  1081. static const char * const mi2s_mclk1_groups[] = {
  1082. "gpio80", "gpio216",
  1083. };
  1084. static const char * const mi2s_mclk2_groups[] = {
  1085. "gpio217",
  1086. };
  1087. static const char * const pcie2a_clkreq_groups[] = {
  1088. "gpio142",
  1089. };
  1090. static const char * const pcie2b_clkreq_groups[] = {
  1091. "gpio144",
  1092. };
  1093. static const char * const pcie3a_clkreq_groups[] = {
  1094. "gpio150",
  1095. };
  1096. static const char * const pcie3b_clkreq_groups[] = {
  1097. "gpio152",
  1098. };
  1099. static const char * const pcie4_clkreq_groups[] = {
  1100. "gpio140",
  1101. };
  1102. static const char * const phase_flag_groups[] = {
  1103. "gpio80", "gpio81", "gpio82", "gpio83", "gpio87", "gpio88", "gpio89",
  1104. "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio132",
  1105. "gpio144", "gpio145", "gpio146", "gpio147", "gpio195", "gpio196",
  1106. "gpio197", "gpio198", "gpio202", "gpio219", "gpio220", "gpio221",
  1107. "gpio222", "gpio223", "gpio224", "gpio225", "gpio226", "gpio227",
  1108. };
  1109. static const char * const pll_bist_groups[] = {
  1110. "gpio84",
  1111. };
  1112. static const char * const pll_clk_groups[] = {
  1113. "gpio84", "gpio86",
  1114. };
  1115. static const char * const prng_rosc0_groups[] = {
  1116. "gpio189",
  1117. };
  1118. static const char * const prng_rosc1_groups[] = {
  1119. "gpio191",
  1120. };
  1121. static const char * const prng_rosc2_groups[] = {
  1122. "gpio193",
  1123. };
  1124. static const char * const prng_rosc3_groups[] = {
  1125. "gpio194",
  1126. };
  1127. static const char * const qdss_cti_groups[] = {
  1128. "gpio3", "gpio4", "gpio7", "gpio21", "gpio30", "gpio30", "gpio31",
  1129. "gpio31",
  1130. };
  1131. static const char * const qdss_gpio_groups[] = {
  1132. "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", "gpio15", "gpio16",
  1133. "gpio17", "gpio80", "gpio96", "gpio115", "gpio116", "gpio117",
  1134. "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", "gpio161",
  1135. "gpio162", "gpio195", "gpio196", "gpio197", "gpio198", "gpio201",
  1136. "gpio202", "gpio206", "gpio207", "gpio212", "gpio213", "gpio214",
  1137. "gpio215", "gpio216", "gpio217", "gpio222", "gpio223",
  1138. };
  1139. static const char * const qspi_clk_groups[] = {
  1140. "gpio74",
  1141. };
  1142. static const char * const qspi_cs_groups[] = {
  1143. "gpio75", "gpio81",
  1144. };
  1145. static const char * const qspi_groups[] = {
  1146. "gpio76", "gpio78", "gpio79",
  1147. };
  1148. static const char * const qup0_groups[] = {
  1149. "gpio135", "gpio136", "gpio137", "gpio138",
  1150. };
  1151. static const char * const qup10_groups[] = {
  1152. "gpio22", "gpio23", "gpio24", "gpio25",
  1153. };
  1154. static const char * const qup11_groups[] = {
  1155. "gpio18", "gpio19", "gpio20", "gpio21",
  1156. };
  1157. static const char * const qup12_groups[] = {
  1158. "gpio0", "gpio1", "gpio2", "gpio3",
  1159. };
  1160. static const char * const qup13_groups[] = {
  1161. "gpio26", "gpio27", "gpio28", "gpio29",
  1162. };
  1163. static const char * const qup14_groups[] = {
  1164. "gpio4", "gpio5", "gpio6", "gpio7",
  1165. };
  1166. static const char * const qup15_groups[] = {
  1167. "gpio36", "gpio37", "gpio38", "gpio39",
  1168. };
  1169. static const char * const qup16_groups[] = {
  1170. "gpio70", "gpio71", "gpio72", "gpio73",
  1171. };
  1172. static const char * const qup17_groups[] = {
  1173. "gpio61", "gpio62", "gpio63", "gpio64",
  1174. };
  1175. static const char * const qup18_groups[] = {
  1176. "gpio66", "gpio67", "gpio68", "gpio69",
  1177. };
  1178. static const char * const qup19_groups[] = {
  1179. "gpio55", "gpio56", "gpio57", "gpio58",
  1180. };
  1181. static const char * const qup1_groups[] = {
  1182. "gpio158", "gpio159", "gpio160", "gpio161",
  1183. };
  1184. static const char * const qup20_groups[] = {
  1185. "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", "gpio92", "gpio110",
  1186. };
  1187. static const char * const qup21_groups[] = {
  1188. "gpio81", "gpio82", "gpio83", "gpio84",
  1189. };
  1190. static const char * const qup22_groups[] = {
  1191. "gpio83", "gpio84", "gpio85", "gpio86",
  1192. };
  1193. static const char * const qup23_groups[] = {
  1194. "gpio59", "gpio60", "gpio61", "gpio62",
  1195. };
  1196. static const char * const qup2_groups[] = {
  1197. "gpio121", "gpio122", "gpio123", "gpio124",
  1198. };
  1199. static const char * const qup3_groups[] = {
  1200. "gpio135", "gpio136", "gpio137", "gpio138",
  1201. };
  1202. static const char * const qup4_groups[] = {
  1203. "gpio111", "gpio112", "gpio171", "gpio172", "gpio173", "gpio174",
  1204. "gpio175",
  1205. };
  1206. static const char * const qup5_groups[] = {
  1207. "gpio111", "gpio112", "gpio145", "gpio146",
  1208. };
  1209. static const char * const qup6_groups[] = {
  1210. "gpio154", "gpio155", "gpio156", "gpio157",
  1211. };
  1212. static const char * const qup7_groups[] = {
  1213. "gpio125", "gpio126", "gpio128", "gpio129",
  1214. };
  1215. static const char * const qup8_groups[] = {
  1216. "gpio43", "gpio44", "gpio45", "gpio46",
  1217. };
  1218. static const char * const qup9_groups[] = {
  1219. "gpio41", "gpio42", "gpio43", "gpio44",
  1220. };
  1221. static const char * const rgmii_0_groups[] = {
  1222. "gpio175", "gpio176", "gpio177", "gpio178", "gpio179", "gpio180",
  1223. "gpio181", "gpio182", "gpio183", "gpio184", "gpio185", "gpio186",
  1224. "gpio187", "gpio188",
  1225. };
  1226. static const char * const rgmii_1_groups[] = {
  1227. "gpio97", "gpio98", "gpio99", "gpio100", "gpio101", "gpio102",
  1228. "gpio103", "gpio104", "gpio105", "gpio106", "gpio107", "gpio108",
  1229. "gpio109", "gpio110",
  1230. };
  1231. static const char * const sd_write_groups[] = {
  1232. "gpio130",
  1233. };
  1234. static const char * const sdc40_groups[] = {
  1235. "gpio76",
  1236. };
  1237. static const char * const sdc42_groups[] = {
  1238. "gpio78",
  1239. };
  1240. static const char * const sdc43_groups[] = {
  1241. "gpio79",
  1242. };
  1243. static const char * const sdc4_clk_groups[] = {
  1244. "gpio74",
  1245. };
  1246. static const char * const sdc4_cmd_groups[] = {
  1247. "gpio75",
  1248. };
  1249. static const char * const tb_trig_groups[] = {
  1250. "gpio153", "gpio157",
  1251. };
  1252. static const char * const tgu_groups[] = {
  1253. "gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106",
  1254. "gpio107", "gpio108",
  1255. };
  1256. static const char * const tsense_pwm1_groups[] = {
  1257. "gpio70",
  1258. };
  1259. static const char * const tsense_pwm2_groups[] = {
  1260. "gpio69",
  1261. };
  1262. static const char * const tsense_pwm3_groups[] = {
  1263. "gpio67",
  1264. };
  1265. static const char * const tsense_pwm4_groups[] = {
  1266. "gpio65",
  1267. };
  1268. static const char * const usb0_dp_groups[] = {
  1269. "gpio21",
  1270. };
  1271. static const char * const usb0_phy_groups[] = {
  1272. "gpio166",
  1273. };
  1274. static const char * const usb0_sbrx_groups[] = {
  1275. "gpio170",
  1276. };
  1277. static const char * const usb0_sbtx_groups[] = {
  1278. "gpio168", "gpio169",
  1279. };
  1280. static const char * const usb0_usb4_groups[] = {
  1281. "gpio132",
  1282. };
  1283. static const char * const usb1_dp_groups[] = {
  1284. "gpio9",
  1285. };
  1286. static const char * const usb1_phy_groups[] = {
  1287. "gpio49",
  1288. };
  1289. static const char * const usb1_sbrx_groups[] = {
  1290. "gpio53",
  1291. };
  1292. static const char * const usb1_sbtx_groups[] = {
  1293. "gpio51", "gpio52",
  1294. };
  1295. static const char * const usb1_usb4_groups[] = {
  1296. "gpio32",
  1297. };
  1298. static const char * const usb2phy_ac_groups[] = {
  1299. "gpio24", "gpio25", "gpio133", "gpio134", "gpio148", "gpio149",
  1300. };
  1301. static const char * const vsense_trigger_groups[] = {
  1302. "gpio81",
  1303. };
  1304. static const struct msm_function sc8280xp_functions[] = {
  1305. FUNCTION(atest_char),
  1306. FUNCTION(atest_usb),
  1307. FUNCTION(audio_ref),
  1308. FUNCTION(cam_mclk),
  1309. FUNCTION(cci_async),
  1310. FUNCTION(cci_i2c),
  1311. FUNCTION(cci_timer0),
  1312. FUNCTION(cci_timer1),
  1313. FUNCTION(cci_timer2),
  1314. FUNCTION(cci_timer3),
  1315. FUNCTION(cci_timer4),
  1316. FUNCTION(cci_timer5),
  1317. FUNCTION(cci_timer6),
  1318. FUNCTION(cci_timer7),
  1319. FUNCTION(cci_timer8),
  1320. FUNCTION(cci_timer9),
  1321. FUNCTION(cmu_rng),
  1322. FUNCTION(cri_trng),
  1323. FUNCTION(cri_trng0),
  1324. FUNCTION(cri_trng1),
  1325. FUNCTION(dbg_out),
  1326. FUNCTION(ddr_bist),
  1327. FUNCTION(ddr_pxi0),
  1328. FUNCTION(ddr_pxi1),
  1329. FUNCTION(ddr_pxi2),
  1330. FUNCTION(ddr_pxi3),
  1331. FUNCTION(ddr_pxi4),
  1332. FUNCTION(ddr_pxi5),
  1333. FUNCTION(ddr_pxi6),
  1334. FUNCTION(ddr_pxi7),
  1335. FUNCTION(dp2_hot),
  1336. FUNCTION(dp3_hot),
  1337. FUNCTION(edp0_lcd),
  1338. FUNCTION(edp1_lcd),
  1339. FUNCTION(edp2_lcd),
  1340. FUNCTION(edp3_lcd),
  1341. FUNCTION(edp_hot),
  1342. FUNCTION(egpio),
  1343. FUNCTION(emac0_dll),
  1344. FUNCTION(emac0_mcg0),
  1345. FUNCTION(emac0_mcg1),
  1346. FUNCTION(emac0_mcg2),
  1347. FUNCTION(emac0_mcg3),
  1348. FUNCTION(emac0_phy),
  1349. FUNCTION(emac0_ptp),
  1350. FUNCTION(emac1_dll0),
  1351. FUNCTION(emac1_dll1),
  1352. FUNCTION(emac1_mcg0),
  1353. FUNCTION(emac1_mcg1),
  1354. FUNCTION(emac1_mcg2),
  1355. FUNCTION(emac1_mcg3),
  1356. FUNCTION(emac1_phy),
  1357. FUNCTION(emac1_ptp),
  1358. FUNCTION(gcc_gp1),
  1359. FUNCTION(gcc_gp2),
  1360. FUNCTION(gcc_gp3),
  1361. FUNCTION(gcc_gp4),
  1362. FUNCTION(gcc_gp5),
  1363. FUNCTION(gpio),
  1364. FUNCTION(hs1_mi2s),
  1365. FUNCTION(hs2_mi2s),
  1366. FUNCTION(hs3_mi2s),
  1367. FUNCTION(ibi_i3c),
  1368. FUNCTION(jitter_bist),
  1369. FUNCTION(lpass_slimbus),
  1370. FUNCTION(mdp0_vsync0),
  1371. FUNCTION(mdp0_vsync1),
  1372. FUNCTION(mdp0_vsync2),
  1373. FUNCTION(mdp0_vsync3),
  1374. FUNCTION(mdp0_vsync4),
  1375. FUNCTION(mdp0_vsync5),
  1376. FUNCTION(mdp0_vsync6),
  1377. FUNCTION(mdp0_vsync7),
  1378. FUNCTION(mdp0_vsync8),
  1379. FUNCTION(mdp1_vsync0),
  1380. FUNCTION(mdp1_vsync1),
  1381. FUNCTION(mdp1_vsync2),
  1382. FUNCTION(mdp1_vsync3),
  1383. FUNCTION(mdp1_vsync4),
  1384. FUNCTION(mdp1_vsync5),
  1385. FUNCTION(mdp1_vsync6),
  1386. FUNCTION(mdp1_vsync7),
  1387. FUNCTION(mdp1_vsync8),
  1388. FUNCTION(mdp_vsync),
  1389. FUNCTION(mi2s0_data0),
  1390. FUNCTION(mi2s0_data1),
  1391. FUNCTION(mi2s0_sck),
  1392. FUNCTION(mi2s0_ws),
  1393. FUNCTION(mi2s1_data0),
  1394. FUNCTION(mi2s1_data1),
  1395. FUNCTION(mi2s1_sck),
  1396. FUNCTION(mi2s1_ws),
  1397. FUNCTION(mi2s2_data0),
  1398. FUNCTION(mi2s2_data1),
  1399. FUNCTION(mi2s2_sck),
  1400. FUNCTION(mi2s2_ws),
  1401. FUNCTION(mi2s_mclk1),
  1402. FUNCTION(mi2s_mclk2),
  1403. FUNCTION(pcie2a_clkreq),
  1404. FUNCTION(pcie2b_clkreq),
  1405. FUNCTION(pcie3a_clkreq),
  1406. FUNCTION(pcie3b_clkreq),
  1407. FUNCTION(pcie4_clkreq),
  1408. FUNCTION(phase_flag),
  1409. FUNCTION(pll_bist),
  1410. FUNCTION(pll_clk),
  1411. FUNCTION(prng_rosc0),
  1412. FUNCTION(prng_rosc1),
  1413. FUNCTION(prng_rosc2),
  1414. FUNCTION(prng_rosc3),
  1415. FUNCTION(qdss_cti),
  1416. FUNCTION(qdss_gpio),
  1417. FUNCTION(qspi),
  1418. FUNCTION(qspi_clk),
  1419. FUNCTION(qspi_cs),
  1420. FUNCTION(qup0),
  1421. FUNCTION(qup1),
  1422. FUNCTION(qup2),
  1423. FUNCTION(qup3),
  1424. FUNCTION(qup4),
  1425. FUNCTION(qup5),
  1426. FUNCTION(qup6),
  1427. FUNCTION(qup7),
  1428. FUNCTION(qup8),
  1429. FUNCTION(qup9),
  1430. FUNCTION(qup10),
  1431. FUNCTION(qup11),
  1432. FUNCTION(qup12),
  1433. FUNCTION(qup13),
  1434. FUNCTION(qup14),
  1435. FUNCTION(qup15),
  1436. FUNCTION(qup16),
  1437. FUNCTION(qup17),
  1438. FUNCTION(qup18),
  1439. FUNCTION(qup19),
  1440. FUNCTION(qup20),
  1441. FUNCTION(qup21),
  1442. FUNCTION(qup22),
  1443. FUNCTION(qup23),
  1444. FUNCTION(rgmii_0),
  1445. FUNCTION(rgmii_1),
  1446. FUNCTION(sd_write),
  1447. FUNCTION(sdc40),
  1448. FUNCTION(sdc42),
  1449. FUNCTION(sdc43),
  1450. FUNCTION(sdc4_clk),
  1451. FUNCTION(sdc4_cmd),
  1452. FUNCTION(tb_trig),
  1453. FUNCTION(tgu),
  1454. FUNCTION(tsense_pwm1),
  1455. FUNCTION(tsense_pwm2),
  1456. FUNCTION(tsense_pwm3),
  1457. FUNCTION(tsense_pwm4),
  1458. FUNCTION(usb0_dp),
  1459. FUNCTION(usb0_phy),
  1460. FUNCTION(usb0_sbrx),
  1461. FUNCTION(usb0_sbtx),
  1462. FUNCTION(usb0_usb4),
  1463. FUNCTION(usb1_dp),
  1464. FUNCTION(usb1_phy),
  1465. FUNCTION(usb1_sbrx),
  1466. FUNCTION(usb1_sbtx),
  1467. FUNCTION(usb1_usb4),
  1468. FUNCTION(usb2phy_ac),
  1469. FUNCTION(vsense_trigger),
  1470. };
  1471. static const struct msm_pingroup sc8280xp_groups[] = {
  1472. [0] = PINGROUP(0, qup12, _, _, _, _, _, _),
  1473. [1] = PINGROUP(1, qup12, mdp0_vsync0, _, _, _, _, _),
  1474. [2] = PINGROUP(2, edp_hot, qup12, mdp0_vsync1, _, _, _, _),
  1475. [3] = PINGROUP(3, edp_hot, qup12, qdss_cti, _, _, _, _),
  1476. [4] = PINGROUP(4, qup14, ibi_i3c, qdss_cti, _, _, _, _),
  1477. [5] = PINGROUP(5, qup14, ibi_i3c, _, _, _, _, _),
  1478. [6] = PINGROUP(6, edp_hot, qup14, cam_mclk, _, _, _, _),
  1479. [7] = PINGROUP(7, edp_hot, qup14, qdss_cti, cam_mclk, _, _, _),
  1480. [8] = PINGROUP(8, mdp_vsync, mdp0_vsync2, _, _, _, _, _),
  1481. [9] = PINGROUP(9, usb1_dp, mdp0_vsync3, _, _, _, _, _),
  1482. [10] = PINGROUP(10, cci_i2c, mdp0_vsync4, _, qdss_gpio, _, _, _),
  1483. [11] = PINGROUP(11, cci_i2c, mdp0_vsync5, _, qdss_gpio, _, _, _),
  1484. [12] = PINGROUP(12, cci_i2c, mdp0_vsync6, _, qdss_gpio, _, _, _),
  1485. [13] = PINGROUP(13, cci_i2c, mdp0_vsync7, _, qdss_gpio, _, _, _),
  1486. [14] = PINGROUP(14, cci_timer2, qdss_gpio, _, _, _, _, _),
  1487. [15] = PINGROUP(15, cci_timer3, cci_async, _, qdss_gpio, _, _, _),
  1488. [16] = PINGROUP(16, cam_mclk, mdp0_vsync8, _, qdss_gpio, _, _, _),
  1489. [17] = PINGROUP(17, cam_mclk, mdp1_vsync0, _, qdss_gpio, _, _, _),
  1490. [18] = PINGROUP(18, qup11, mdp1_vsync1, _, _, _, _, _),
  1491. [19] = PINGROUP(19, qup11, mdp1_vsync2, _, _, _, _, _),
  1492. [20] = PINGROUP(20, qup11, dp2_hot, mdp1_vsync3, _, _, _, _),
  1493. [21] = PINGROUP(21, qup11, usb0_dp, qdss_cti, _, _, _, _),
  1494. [22] = PINGROUP(22, qup10, _, _, _, _, _, _),
  1495. [23] = PINGROUP(23, qup10, _, _, _, _, _, _),
  1496. [24] = PINGROUP(24, qup10, usb2phy_ac, _, _, _, _, _),
  1497. [25] = PINGROUP(25, qup10, usb2phy_ac, _, _, _, _, _),
  1498. [26] = PINGROUP(26, qup13, edp0_lcd, _, _, _, _, _),
  1499. [27] = PINGROUP(27, qup13, edp1_lcd, _, _, _, _, _),
  1500. [28] = PINGROUP(28, qup13, edp2_lcd, _, _, _, _, _),
  1501. [29] = PINGROUP(29, qup13, edp3_lcd, _, _, _, _, _),
  1502. [30] = PINGROUP(30, qdss_cti, qdss_cti, _, _, _, _, _),
  1503. [31] = PINGROUP(31, qdss_cti, qdss_cti, _, _, _, _, _),
  1504. [32] = PINGROUP(32, usb1_usb4, _, _, _, _, _, _),
  1505. [33] = PINGROUP(33, cam_mclk, _, _, _, _, _, _),
  1506. [34] = PINGROUP(34, cam_mclk, _, _, _, _, _, _),
  1507. [35] = PINGROUP(35, _, _, _, _, _, _, _),
  1508. [36] = PINGROUP(36, qup15, ibi_i3c, mdp1_vsync4, _, _, _, _),
  1509. [37] = PINGROUP(37, qup15, ibi_i3c, mdp1_vsync5, _, _, _, _),
  1510. [38] = PINGROUP(38, qup15, mdp1_vsync6, _, _, _, _, _),
  1511. [39] = PINGROUP(39, qup15, mdp1_vsync7, _, _, _, _, _),
  1512. [40] = PINGROUP(40, mdp1_vsync8, _, _, _, _, _, _),
  1513. [41] = PINGROUP(41, qup9, _, _, _, _, _, _),
  1514. [42] = PINGROUP(42, qup9, ddr_bist, _, _, _, _, _),
  1515. [43] = PINGROUP(43, qup8, qup9, _, _, _, _, _),
  1516. [44] = PINGROUP(44, qup8, qup9, _, _, _, _, _),
  1517. [45] = PINGROUP(45, qup8, dp3_hot, ddr_bist, _, _, _, _),
  1518. [46] = PINGROUP(46, qup8, ddr_bist, _, _, _, _, _),
  1519. [47] = PINGROUP(47, ddr_bist, _, _, _, _, _, _),
  1520. [48] = PINGROUP(48, _, _, _, _, _, _, _),
  1521. [49] = PINGROUP(49, usb1_phy, _, _, _, _, _, _),
  1522. [50] = PINGROUP(50, _, _, _, _, _, _, _),
  1523. [51] = PINGROUP(51, usb1_sbtx, _, _, _, _, _, _),
  1524. [52] = PINGROUP(52, usb1_sbtx, _, _, _, _, _, _),
  1525. [53] = PINGROUP(53, usb1_sbrx, _, _, _, _, _, _),
  1526. [54] = PINGROUP(54, emac1_phy, _, _, _, _, _, _),
  1527. [55] = PINGROUP(55, emac1_ptp, emac1_ptp, qup19, _, _, _, _),
  1528. [56] = PINGROUP(56, emac1_ptp, emac1_ptp, qup19, _, _, _, _),
  1529. [57] = PINGROUP(57, qup19, emac1_mcg0, _, _, _, _, _),
  1530. [58] = PINGROUP(58, qup19, emac1_mcg1, _, _, _, _, _),
  1531. [59] = PINGROUP(59, qup23, _, _, _, _, _, _),
  1532. [60] = PINGROUP(60, qup23, _, _, _, _, _, _),
  1533. [61] = PINGROUP(61, qup23, qup17, _, _, _, _, _),
  1534. [62] = PINGROUP(62, qup23, qup17, _, _, _, _, _),
  1535. [63] = PINGROUP(63, qup17, _, _, _, _, _, _),
  1536. [64] = PINGROUP(64, qup17, _, _, _, _, _, _),
  1537. [65] = PINGROUP(65, tsense_pwm4, _, _, _, _, _, _),
  1538. [66] = PINGROUP(66, qup18, _, _, _, _, _, _),
  1539. [67] = PINGROUP(67, qup18, tsense_pwm3, _, _, _, _, _),
  1540. [68] = PINGROUP(68, qup18, emac1_mcg2, _, _, _, _, _),
  1541. [69] = PINGROUP(69, qup18, emac1_mcg3, tsense_pwm2, _, _, _, _),
  1542. [70] = PINGROUP(70, qup16, tsense_pwm1, _, _, _, _, _),
  1543. [71] = PINGROUP(71, qup16, atest_usb, _, _, _, _, _),
  1544. [72] = PINGROUP(72, qup16, atest_usb, _, _, _, _, _),
  1545. [73] = PINGROUP(73, qup16, atest_usb, _, _, _, _, _),
  1546. [74] = PINGROUP(74, qspi_clk, sdc4_clk, atest_usb, _, _, _, _),
  1547. [75] = PINGROUP(75, qspi_cs, sdc4_cmd, atest_usb, _, _, _, _),
  1548. [76] = PINGROUP(76, qspi, sdc40, atest_usb, _, _, _, _),
  1549. [77] = PINGROUP(77, _, _, _, _, _, _, _),
  1550. [78] = PINGROUP(78, qspi, sdc42, atest_usb, _, _, _, _),
  1551. [79] = PINGROUP(79, qspi, sdc43, atest_usb, ddr_pxi6, _, _, _),
  1552. [80] = PINGROUP(80, mi2s_mclk1, audio_ref, phase_flag, _, qdss_gpio, _, _),
  1553. [81] = PINGROUP(81, qup21, qspi_cs, phase_flag, _, vsense_trigger, _, _),
  1554. [82] = PINGROUP(82, qup21, phase_flag, _, _, _, _, _),
  1555. [83] = PINGROUP(83, qup21, qup22, phase_flag, _, _, _, _),
  1556. [84] = PINGROUP(84, qup21, qup22, pll_bist, pll_clk, _, _, _),
  1557. [85] = PINGROUP(85, qup22, _, _, _, _, _, _),
  1558. [86] = PINGROUP(86, qup22, _, pll_clk, _, _, _, _),
  1559. [87] = PINGROUP(87, qup20, phase_flag, _, _, _, _, _),
  1560. [88] = PINGROUP(88, qup20, phase_flag, _, _, _, _, _),
  1561. [89] = PINGROUP(89, qup20, phase_flag, _, _, _, _, _),
  1562. [90] = PINGROUP(90, qup20, phase_flag, _, _, _, _, _),
  1563. [91] = PINGROUP(91, qup20, hs2_mi2s, phase_flag, _, _, _, _),
  1564. [92] = PINGROUP(92, qup20, hs2_mi2s, phase_flag, _, _, _, _),
  1565. [93] = PINGROUP(93, mi2s0_sck, emac1_ptp, emac1_ptp, phase_flag, _, _, _),
  1566. [94] = PINGROUP(94, mi2s0_ws, emac1_ptp, emac1_ptp, phase_flag, _, _, _),
  1567. [95] = PINGROUP(95, mi2s0_data0, emac1_ptp, emac1_ptp, phase_flag, _, _, _),
  1568. [96] = PINGROUP(96, mi2s0_data1, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _),
  1569. [97] = PINGROUP(97, rgmii_1, atest_usb, _, _, _, _, _),
  1570. [98] = PINGROUP(98, rgmii_1, atest_usb, _, _, _, _, _),
  1571. [99] = PINGROUP(99, rgmii_1, _, _, _, _, _, _),
  1572. [100] = PINGROUP(100, mdp_vsync, rgmii_1, _, _, _, _, _),
  1573. [101] = PINGROUP(101, mdp_vsync, rgmii_1, tgu, atest_usb, _, _, _),
  1574. [102] = PINGROUP(102, rgmii_1, tgu, atest_usb, _, _, _, _),
  1575. [103] = PINGROUP(103, rgmii_1, tgu, atest_usb, _, _, _, _),
  1576. [104] = PINGROUP(104, rgmii_1, tgu, atest_usb, _, _, _, _),
  1577. [105] = PINGROUP(105, rgmii_1, tgu, atest_usb, _, _, _, _),
  1578. [106] = PINGROUP(106, rgmii_1, tgu, _, _, _, _, _),
  1579. [107] = PINGROUP(107, rgmii_1, tgu, _, _, _, _, _),
  1580. [108] = PINGROUP(108, rgmii_1, tgu, _, _, _, _, _),
  1581. [109] = PINGROUP(109, rgmii_1, _, _, _, _, _, _),
  1582. [110] = PINGROUP(110, qup20, rgmii_1, atest_usb, _, _, _, _),
  1583. [111] = PINGROUP(111, qup4, qup5, atest_usb, _, _, _, _),
  1584. [112] = PINGROUP(112, qup4, qup5, atest_usb, _, _, _, _),
  1585. [113] = PINGROUP(113, cci_i2c, atest_usb, _, _, _, _, _),
  1586. [114] = PINGROUP(114, cci_i2c, gcc_gp2, atest_usb, _, _, _, _),
  1587. [115] = PINGROUP(115, cci_i2c, gcc_gp3, qdss_gpio, _, _, _, _),
  1588. [116] = PINGROUP(116, cci_i2c, qdss_gpio, _, _, _, _, _),
  1589. [117] = PINGROUP(117, cci_i2c, _, qdss_gpio, _, _, _, _),
  1590. [118] = PINGROUP(118, cci_i2c, _, qdss_gpio, _, _, _, _),
  1591. [119] = PINGROUP(119, cam_mclk, cci_timer0, cci_async, gcc_gp1, qdss_gpio, _, _),
  1592. [120] = PINGROUP(120, cam_mclk, cci_timer1, cci_async, gcc_gp2, qdss_gpio, ddr_pxi3, _),
  1593. [121] = PINGROUP(121, qup2, qdss_gpio, _, atest_usb, ddr_pxi0, _, _),
  1594. [122] = PINGROUP(122, qup2, qdss_gpio, atest_usb, _, _, _, _),
  1595. [123] = PINGROUP(123, qup2, cci_i2c, cmu_rng, ddr_pxi2, _, _, _),
  1596. [124] = PINGROUP(124, qup2, cci_i2c, cmu_rng, ddr_pxi1, _, _, _),
  1597. [125] = PINGROUP(125, qup7, dbg_out, ddr_pxi1, _, _, _, _),
  1598. [126] = PINGROUP(126, qup7, cmu_rng, ddr_pxi0, _, _, _, _),
  1599. [127] = PINGROUP(127, emac0_phy, _, _, _, _, _, _),
  1600. [128] = PINGROUP(128, qup7, ibi_i3c, _, _, _, _, _),
  1601. [129] = PINGROUP(129, qup7, ibi_i3c, _, _, _, _, _),
  1602. [130] = PINGROUP(130, emac0_ptp, emac0_ptp, sd_write, atest_usb, _, _, _),
  1603. [131] = PINGROUP(131, emac0_ptp, emac0_ptp, atest_usb, _, _, _, _),
  1604. [132] = PINGROUP(132, usb0_usb4, phase_flag, _, _, _, _, _),
  1605. [133] = PINGROUP(133, usb2phy_ac, _, _, _, _, _, _),
  1606. [134] = PINGROUP(134, usb2phy_ac, atest_char, _, _, _, _, _),
  1607. [135] = PINGROUP(135, qup0, qup3, _, atest_usb, ddr_pxi7, _, _),
  1608. [136] = PINGROUP(136, qup0, qup3, cmu_rng, ddr_pxi7, _, _, _),
  1609. [137] = PINGROUP(137, qup3, qup0, _, atest_usb, ddr_pxi3, _, _),
  1610. [138] = PINGROUP(138, qup3, qup0, _, atest_usb, ddr_pxi2, _, _),
  1611. [139] = PINGROUP(139, cci_timer5, gcc_gp3, atest_char, _, _, _, _),
  1612. [140] = PINGROUP(140, pcie4_clkreq, jitter_bist, atest_char, _, _, _, _),
  1613. [141] = PINGROUP(141, _, _, _, _, _, _, _),
  1614. [142] = PINGROUP(142, pcie2a_clkreq, atest_char, _, _, _, _, _),
  1615. [143] = PINGROUP(143, _, atest_char, _, _, _, _, _),
  1616. [144] = PINGROUP(144, pcie2b_clkreq, phase_flag, _, _, _, _, _),
  1617. [145] = PINGROUP(145, qup5, cci_i2c, phase_flag, _, _, _, _),
  1618. [146] = PINGROUP(146, qup5, cci_i2c, phase_flag, _, _, _, _),
  1619. [147] = PINGROUP(147, _, phase_flag, _, _, _, _, _),
  1620. [148] = PINGROUP(148, usb2phy_ac, _, atest_usb, _, _, _, _),
  1621. [149] = PINGROUP(149, usb2phy_ac, gcc_gp1, atest_usb, _, _, _, _),
  1622. [150] = PINGROUP(150, pcie3a_clkreq, _, _, _, _, _, _),
  1623. [151] = PINGROUP(151, _, _, _, _, _, _, _),
  1624. [152] = PINGROUP(152, pcie3b_clkreq, _, _, _, _, _, _),
  1625. [153] = PINGROUP(153, _, tb_trig, _, _, _, _, _),
  1626. [154] = PINGROUP(154, qup6, ibi_i3c, _, _, _, _, _),
  1627. [155] = PINGROUP(155, qup6, ibi_i3c, _, _, _, _, _),
  1628. [156] = PINGROUP(156, qup6, emac0_ptp, emac0_ptp, _, _, _, _),
  1629. [157] = PINGROUP(157, qup6, emac0_ptp, emac0_ptp, tb_trig, _, _, _),
  1630. [158] = PINGROUP(158, qup1, emac0_ptp, emac0_ptp, _, _, _, _),
  1631. [159] = PINGROUP(159, qup1, emac0_ptp, emac0_ptp, _, _, _, _),
  1632. [160] = PINGROUP(160, cci_timer9, qup1, cci_async, emac0_mcg0, gcc_gp4, _, _),
  1633. [161] = PINGROUP(161, cci_timer4, cci_async, qup1, emac0_mcg1, qdss_gpio, _, _),
  1634. [162] = PINGROUP(162, cci_timer6, emac0_mcg2, gcc_gp4, qdss_gpio, _, _, _),
  1635. [163] = PINGROUP(163, cci_timer7, emac0_mcg3, _, _, _, _, _),
  1636. [164] = PINGROUP(164, cci_i2c, _, _, _, _, _, _),
  1637. [165] = PINGROUP(165, cci_i2c, _, _, _, _, _, _),
  1638. [166] = PINGROUP(166, usb0_phy, _, _, _, _, _, _),
  1639. [167] = PINGROUP(167, cci_timer8, cci_async, gcc_gp5, _, _, _, _),
  1640. [168] = PINGROUP(168, usb0_sbtx, gcc_gp5, _, _, _, _, _),
  1641. [169] = PINGROUP(169, usb0_sbtx, _, _, _, _, _, _),
  1642. [170] = PINGROUP(170, usb0_sbrx, _, _, _, _, _, _),
  1643. [171] = PINGROUP(171, qup4, _, _, _, _, _, _),
  1644. [172] = PINGROUP(172, qup4, _, _, _, _, _, _),
  1645. [173] = PINGROUP(173, qup4, _, _, _, _, _, _),
  1646. [174] = PINGROUP(174, qup4, _, _, _, _, _, _),
  1647. [175] = PINGROUP(175, qup4, rgmii_0, _, _, _, _, _),
  1648. [176] = PINGROUP(176, rgmii_0, _, _, _, _, _, _),
  1649. [177] = PINGROUP(177, rgmii_0, _, _, _, _, _, _),
  1650. [178] = PINGROUP(178, rgmii_0, _, _, _, _, _, _),
  1651. [179] = PINGROUP(179, rgmii_0, _, _, _, _, _, _),
  1652. [180] = PINGROUP(180, rgmii_0, _, _, _, _, _, _),
  1653. [181] = PINGROUP(181, rgmii_0, _, _, _, _, _, _),
  1654. [182] = PINGROUP(182, rgmii_0, _, _, _, _, _, _),
  1655. [183] = PINGROUP(183, rgmii_0, _, _, _, _, _, _),
  1656. [184] = PINGROUP(184, rgmii_0, _, _, _, _, _, _),
  1657. [185] = PINGROUP(185, rgmii_0, _, _, _, _, _, _),
  1658. [186] = PINGROUP(186, rgmii_0, _, _, _, _, _, _),
  1659. [187] = PINGROUP(187, rgmii_0, cri_trng0, _, _, _, _, _),
  1660. [188] = PINGROUP(188, rgmii_0, cri_trng1, _, _, _, _, _),
  1661. [189] = PINGROUP(189, prng_rosc0, _, _, _, _, _, egpio),
  1662. [190] = PINGROUP(190, cri_trng, _, _, _, _, _, egpio),
  1663. [191] = PINGROUP(191, prng_rosc1, _, _, _, _, _, egpio),
  1664. [192] = PINGROUP(192, _, _, _, _, _, _, egpio),
  1665. [193] = PINGROUP(193, prng_rosc2, _, _, _, _, _, egpio),
  1666. [194] = PINGROUP(194, prng_rosc3, _, _, _, _, _, egpio),
  1667. [195] = PINGROUP(195, phase_flag, _, qdss_gpio, _, _, _, egpio),
  1668. [196] = PINGROUP(196, phase_flag, _, qdss_gpio, _, _, _, egpio),
  1669. [197] = PINGROUP(197, phase_flag, _, qdss_gpio, _, _, _, egpio),
  1670. [198] = PINGROUP(198, phase_flag, _, qdss_gpio, _, _, _, egpio),
  1671. [199] = PINGROUP(199, _, _, _, _, _, _, egpio),
  1672. [200] = PINGROUP(200, _, _, _, _, _, _, egpio),
  1673. [201] = PINGROUP(201, qdss_gpio, _, _, _, _, _, egpio),
  1674. [202] = PINGROUP(202, phase_flag, _, qdss_gpio, _, _, _, egpio),
  1675. [203] = PINGROUP(203, _, _, _, _, _, _, egpio),
  1676. [204] = PINGROUP(204, _, _, _, _, _, _, egpio),
  1677. [205] = PINGROUP(205, _, _, _, _, _, _, egpio),
  1678. [206] = PINGROUP(206, qdss_gpio, _, _, _, _, _, egpio),
  1679. [207] = PINGROUP(207, qdss_gpio, _, _, _, _, _, egpio),
  1680. [208] = PINGROUP(208, hs1_mi2s, _, _, _, _, _, egpio),
  1681. [209] = PINGROUP(209, hs1_mi2s, _, _, _, _, _, egpio),
  1682. [210] = PINGROUP(210, hs1_mi2s, _, _, _, _, _, egpio),
  1683. [211] = PINGROUP(211, hs1_mi2s, _, _, _, _, _, egpio),
  1684. [212] = PINGROUP(212, mi2s2_sck, qdss_gpio, _, _, _, _, egpio),
  1685. [213] = PINGROUP(213, mi2s2_ws, qdss_gpio, _, _, _, _, egpio),
  1686. [214] = PINGROUP(214, mi2s2_data0, qdss_gpio, ddr_pxi5, _, _, _, egpio),
  1687. [215] = PINGROUP(215, mi2s2_data1, qdss_gpio, emac1_dll0, ddr_pxi5, _, _, egpio),
  1688. [216] = PINGROUP(216, mi2s_mclk1, qdss_gpio, emac0_dll, ddr_pxi4, _, _, egpio),
  1689. [217] = PINGROUP(217, mi2s_mclk2, qdss_gpio, emac0_dll, ddr_pxi4, _, _, egpio),
  1690. [218] = PINGROUP(218, hs2_mi2s, emac1_dll1, ddr_pxi6, _, _, _, egpio),
  1691. [219] = PINGROUP(219, hs2_mi2s, phase_flag, _, _, _, _, egpio),
  1692. [220] = PINGROUP(220, lpass_slimbus, mi2s1_sck, phase_flag, _, _, _, egpio),
  1693. [221] = PINGROUP(221, lpass_slimbus, mi2s1_ws, phase_flag, _, _, _, egpio),
  1694. [222] = PINGROUP(222, mi2s1_data0, phase_flag, _, qdss_gpio, _, _, egpio),
  1695. [223] = PINGROUP(223, mi2s1_data1, phase_flag, _, qdss_gpio, _, _, egpio),
  1696. [224] = PINGROUP(224, hs3_mi2s, phase_flag, _, _, _, _, egpio),
  1697. [225] = PINGROUP(225, hs3_mi2s, phase_flag, _, _, _, _, egpio),
  1698. [226] = PINGROUP(226, hs3_mi2s, phase_flag, _, _, _, _, egpio),
  1699. [227] = PINGROUP(227, hs3_mi2s, phase_flag, _, _, _, _, egpio),
  1700. [228] = UFS_RESET(ufs_reset, 0xf1000),
  1701. [229] = UFS_RESET(ufs1_reset, 0xf3000),
  1702. [230] = SDC_QDSD_PINGROUP(sdc2_clk, 0xe8000, 14, 6),
  1703. [231] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xe8000, 11, 3),
  1704. [232] = SDC_QDSD_PINGROUP(sdc2_data, 0xe8000, 9, 0),
  1705. };
  1706. static const struct msm_gpio_wakeirq_map sc8280xp_pdc_map[] = {
  1707. { 3, 245 }, { 4, 263 }, { 7, 254 }, { 21, 220 }, { 25, 244 },
  1708. { 26, 211 }, { 27, 172 }, { 29, 203 }, { 30, 169 }, { 31, 180 },
  1709. { 32, 181 }, { 33, 182 }, { 36, 206 }, { 39, 246 }, { 40, 183 },
  1710. { 42, 179 }, { 46, 247 }, { 53, 248 }, { 54, 190 }, { 55, 249 },
  1711. { 56, 250 }, { 58, 251 }, { 59, 207 }, { 62, 252 }, { 63, 191 },
  1712. { 64, 192 }, { 65, 193 }, { 69, 253 }, { 73, 255 }, { 84, 256 },
  1713. { 85, 208 }, { 90, 257 }, { 102, 214 }, { 103, 215 }, { 104, 216 },
  1714. { 107, 217 }, { 110, 218 }, { 124, 224 }, { 125, 189 },
  1715. { 126, 200 }, { 127, 225 }, { 128, 262 }, { 129, 201 },
  1716. { 130, 209 }, { 131, 173 }, { 132, 202 }, { 136, 210 },
  1717. { 138, 171 }, { 139, 226 }, { 140, 227 }, { 142, 228 },
  1718. { 144, 229 }, { 145, 230 }, { 146, 231 }, { 148, 232 },
  1719. { 149, 233 }, { 150, 234 }, { 152, 235 }, { 154, 212 },
  1720. { 157, 213 }, { 161, 219 }, { 170, 236 }, { 171, 221 },
  1721. { 174, 222 }, { 175, 237 }, { 176, 223 }, { 177, 170 },
  1722. { 180, 238 }, { 181, 239 }, { 182, 240 }, { 183, 241 },
  1723. { 184, 242 }, { 185, 243 }, { 190, 178 }, { 193, 184 },
  1724. { 196, 185 }, { 198, 186 }, { 200, 174 }, { 201, 175 },
  1725. { 205, 176 }, { 206, 177 }, { 208, 187 }, { 210, 198 },
  1726. { 211, 199 }, { 212, 204 }, { 215, 205 }, { 220, 188 },
  1727. { 221, 194 }, { 223, 195 }, { 225, 196 }, { 227, 197 },
  1728. };
  1729. static struct msm_pinctrl_soc_data sc8280xp_pinctrl = {
  1730. .pins = sc8280xp_pins,
  1731. .npins = ARRAY_SIZE(sc8280xp_pins),
  1732. .functions = sc8280xp_functions,
  1733. .nfunctions = ARRAY_SIZE(sc8280xp_functions),
  1734. .groups = sc8280xp_groups,
  1735. .ngroups = ARRAY_SIZE(sc8280xp_groups),
  1736. .ngpios = 230,
  1737. .wakeirq_map = sc8280xp_pdc_map,
  1738. .nwakeirq_map = ARRAY_SIZE(sc8280xp_pdc_map),
  1739. .egpio_func = 7,
  1740. };
  1741. static int sc8280xp_pinctrl_probe(struct platform_device *pdev)
  1742. {
  1743. return msm_pinctrl_probe(pdev, &sc8280xp_pinctrl);
  1744. }
  1745. static const struct of_device_id sc8280xp_pinctrl_of_match[] = {
  1746. { .compatible = "qcom,sc8280xp-tlmm", },
  1747. { },
  1748. };
  1749. MODULE_DEVICE_TABLE(of, sc8280xp_pinctrl_of_match);
  1750. static struct platform_driver sc8280xp_pinctrl_driver = {
  1751. .driver = {
  1752. .name = "sc8280xp-tlmm",
  1753. .of_match_table = sc8280xp_pinctrl_of_match,
  1754. },
  1755. .probe = sc8280xp_pinctrl_probe,
  1756. .remove = msm_pinctrl_remove,
  1757. };
  1758. static int __init sc8280xp_pinctrl_init(void)
  1759. {
  1760. return platform_driver_register(&sc8280xp_pinctrl_driver);
  1761. }
  1762. arch_initcall(sc8280xp_pinctrl_init);
  1763. static void __exit sc8280xp_pinctrl_exit(void)
  1764. {
  1765. platform_driver_unregister(&sc8280xp_pinctrl_driver);
  1766. }
  1767. module_exit(sc8280xp_pinctrl_exit);
  1768. MODULE_DESCRIPTION("Qualcomm SC8280XP TLMM pinctrl driver");
  1769. MODULE_LICENSE("GPL");