pinctrl-volcano.c 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/of_device.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_BASE 0x100000
  18. #define REG_SIZE 0x1000
  19. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, wake_off, bit) \
  20. { \
  21. .name = "gpio" #id, \
  22. .pins = gpio##id##_pins, \
  23. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  24. .ctl_reg = REG_BASE + REG_SIZE * id, \
  25. .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \
  26. .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  27. .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \
  28. .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  29. .mux_bit = 2, \
  30. .pull_bit = 0, \
  31. .drv_bit = 6, \
  32. .egpio_enable = 12, \
  33. .egpio_present = 11, \
  34. .oe_bit = 9, \
  35. .in_bit = 0, \
  36. .out_bit = 1, \
  37. .intr_enable_bit = 0, \
  38. .intr_status_bit = 0, \
  39. .intr_target_bit = 8, \
  40. .intr_wakeup_enable_bit = 7, \
  41. .intr_wakeup_present_bit = 6, \
  42. .intr_target_kpss_val = 3, \
  43. .intr_raw_status_bit = 4, \
  44. .intr_polarity_bit = 1, \
  45. .intr_detection_bit = 2, \
  46. .intr_detection_width = 2, \
  47. .wake_reg = REG_BASE + wake_off, \
  48. .wake_bit = bit, \
  49. .funcs = (int[]){ \
  50. msm_mux_gpio, /* gpio mode */ \
  51. msm_mux_##f1, \
  52. msm_mux_##f2, \
  53. msm_mux_##f3, \
  54. msm_mux_##f4, \
  55. msm_mux_##f5, \
  56. msm_mux_##f6, \
  57. msm_mux_##f7, \
  58. msm_mux_##f8, \
  59. msm_mux_##f9, \
  60. msm_mux_##f10, \
  61. msm_mux_##f11 /* egpio mode */ \
  62. }, \
  63. .nfuncs = 12, \
  64. }
  65. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  66. { \
  67. .name = #pg_name, \
  68. .pins = pg_name##_pins, \
  69. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  70. .ctl_reg = ctl, \
  71. .io_reg = 0, \
  72. .intr_cfg_reg = 0, \
  73. .intr_status_reg = 0, \
  74. .intr_target_reg = 0, \
  75. .mux_bit = -1, \
  76. .pull_bit = pull, \
  77. .drv_bit = drv, \
  78. .oe_bit = -1, \
  79. .in_bit = -1, \
  80. .out_bit = -1, \
  81. .intr_enable_bit = -1, \
  82. .intr_status_bit = -1, \
  83. .intr_target_bit = -1, \
  84. .intr_raw_status_bit = -1, \
  85. .intr_polarity_bit = -1, \
  86. .intr_detection_bit = -1, \
  87. .intr_detection_width = -1, \
  88. }
  89. #define UFS_RESET(pg_name, offset, io) \
  90. { \
  91. .name = #pg_name, \
  92. .pins = pg_name##_pins, \
  93. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  94. .ctl_reg = offset, \
  95. .io_reg = io, \
  96. .intr_cfg_reg = 0, \
  97. .intr_status_reg = 0, \
  98. .intr_target_reg = 0, \
  99. .mux_bit = -1, \
  100. .pull_bit = 3, \
  101. .drv_bit = 0, \
  102. .oe_bit = -1, \
  103. .in_bit = -1, \
  104. .out_bit = 0, \
  105. .intr_enable_bit = -1, \
  106. .intr_status_bit = -1, \
  107. .intr_target_bit = -1, \
  108. .intr_raw_status_bit = -1, \
  109. .intr_polarity_bit = -1, \
  110. .intr_detection_bit = -1, \
  111. .intr_detection_width = -1, \
  112. }
  113. #define QUP_I3C(qup_mode, qup_offset) \
  114. { \
  115. .mode = qup_mode, \
  116. .offset = REG_BASE + qup_offset, \
  117. }
  118. static const struct pinctrl_pin_desc volcano_pins[] = {
  119. PINCTRL_PIN(0, "GPIO_0"),
  120. PINCTRL_PIN(1, "GPIO_1"),
  121. PINCTRL_PIN(2, "GPIO_2"),
  122. PINCTRL_PIN(3, "GPIO_3"),
  123. PINCTRL_PIN(4, "GPIO_4"),
  124. PINCTRL_PIN(5, "GPIO_5"),
  125. PINCTRL_PIN(6, "GPIO_6"),
  126. PINCTRL_PIN(7, "GPIO_7"),
  127. PINCTRL_PIN(8, "GPIO_8"),
  128. PINCTRL_PIN(9, "GPIO_9"),
  129. PINCTRL_PIN(10, "GPIO_10"),
  130. PINCTRL_PIN(11, "GPIO_11"),
  131. PINCTRL_PIN(12, "GPIO_12"),
  132. PINCTRL_PIN(13, "GPIO_13"),
  133. PINCTRL_PIN(14, "GPIO_14"),
  134. PINCTRL_PIN(15, "GPIO_15"),
  135. PINCTRL_PIN(16, "GPIO_16"),
  136. PINCTRL_PIN(17, "GPIO_17"),
  137. PINCTRL_PIN(18, "GPIO_18"),
  138. PINCTRL_PIN(19, "GPIO_19"),
  139. PINCTRL_PIN(20, "GPIO_20"),
  140. PINCTRL_PIN(21, "GPIO_21"),
  141. PINCTRL_PIN(22, "GPIO_22"),
  142. PINCTRL_PIN(23, "GPIO_23"),
  143. PINCTRL_PIN(24, "GPIO_24"),
  144. PINCTRL_PIN(25, "GPIO_25"),
  145. PINCTRL_PIN(26, "GPIO_26"),
  146. PINCTRL_PIN(27, "GPIO_27"),
  147. PINCTRL_PIN(28, "GPIO_28"),
  148. PINCTRL_PIN(29, "GPIO_29"),
  149. PINCTRL_PIN(30, "GPIO_30"),
  150. PINCTRL_PIN(31, "GPIO_31"),
  151. PINCTRL_PIN(32, "GPIO_32"),
  152. PINCTRL_PIN(33, "GPIO_33"),
  153. PINCTRL_PIN(34, "GPIO_34"),
  154. PINCTRL_PIN(35, "GPIO_35"),
  155. PINCTRL_PIN(36, "GPIO_36"),
  156. PINCTRL_PIN(37, "GPIO_37"),
  157. PINCTRL_PIN(38, "GPIO_38"),
  158. PINCTRL_PIN(39, "GPIO_39"),
  159. PINCTRL_PIN(40, "GPIO_40"),
  160. PINCTRL_PIN(41, "GPIO_41"),
  161. PINCTRL_PIN(42, "GPIO_42"),
  162. PINCTRL_PIN(43, "GPIO_43"),
  163. PINCTRL_PIN(44, "GPIO_44"),
  164. PINCTRL_PIN(45, "GPIO_45"),
  165. PINCTRL_PIN(46, "GPIO_46"),
  166. PINCTRL_PIN(47, "GPIO_47"),
  167. PINCTRL_PIN(48, "GPIO_48"),
  168. PINCTRL_PIN(49, "GPIO_49"),
  169. PINCTRL_PIN(50, "GPIO_50"),
  170. PINCTRL_PIN(51, "GPIO_51"),
  171. PINCTRL_PIN(52, "GPIO_52"),
  172. PINCTRL_PIN(53, "GPIO_53"),
  173. PINCTRL_PIN(54, "GPIO_54"),
  174. PINCTRL_PIN(55, "GPIO_55"),
  175. PINCTRL_PIN(56, "GPIO_56"),
  176. PINCTRL_PIN(57, "GPIO_57"),
  177. PINCTRL_PIN(58, "GPIO_58"),
  178. PINCTRL_PIN(59, "GPIO_59"),
  179. PINCTRL_PIN(60, "GPIO_60"),
  180. PINCTRL_PIN(61, "GPIO_61"),
  181. PINCTRL_PIN(62, "GPIO_62"),
  182. PINCTRL_PIN(63, "GPIO_63"),
  183. PINCTRL_PIN(64, "GPIO_64"),
  184. PINCTRL_PIN(65, "GPIO_65"),
  185. PINCTRL_PIN(66, "GPIO_66"),
  186. PINCTRL_PIN(67, "GPIO_67"),
  187. PINCTRL_PIN(68, "GPIO_68"),
  188. PINCTRL_PIN(69, "GPIO_69"),
  189. PINCTRL_PIN(70, "GPIO_70"),
  190. PINCTRL_PIN(71, "GPIO_71"),
  191. PINCTRL_PIN(72, "GPIO_72"),
  192. PINCTRL_PIN(73, "GPIO_73"),
  193. PINCTRL_PIN(74, "GPIO_74"),
  194. PINCTRL_PIN(75, "GPIO_75"),
  195. PINCTRL_PIN(76, "GPIO_76"),
  196. PINCTRL_PIN(77, "GPIO_77"),
  197. PINCTRL_PIN(78, "GPIO_78"),
  198. PINCTRL_PIN(79, "GPIO_79"),
  199. PINCTRL_PIN(80, "GPIO_80"),
  200. PINCTRL_PIN(81, "GPIO_81"),
  201. PINCTRL_PIN(82, "GPIO_82"),
  202. PINCTRL_PIN(83, "GPIO_83"),
  203. PINCTRL_PIN(84, "GPIO_84"),
  204. PINCTRL_PIN(85, "GPIO_85"),
  205. PINCTRL_PIN(86, "GPIO_86"),
  206. PINCTRL_PIN(87, "GPIO_87"),
  207. PINCTRL_PIN(88, "GPIO_88"),
  208. PINCTRL_PIN(89, "GPIO_89"),
  209. PINCTRL_PIN(90, "GPIO_90"),
  210. PINCTRL_PIN(91, "GPIO_91"),
  211. PINCTRL_PIN(92, "GPIO_92"),
  212. PINCTRL_PIN(93, "GPIO_93"),
  213. PINCTRL_PIN(94, "GPIO_94"),
  214. PINCTRL_PIN(95, "GPIO_95"),
  215. PINCTRL_PIN(96, "GPIO_96"),
  216. PINCTRL_PIN(97, "GPIO_97"),
  217. PINCTRL_PIN(98, "GPIO_98"),
  218. PINCTRL_PIN(99, "GPIO_99"),
  219. PINCTRL_PIN(100, "GPIO_100"),
  220. PINCTRL_PIN(101, "GPIO_101"),
  221. PINCTRL_PIN(102, "GPIO_102"),
  222. PINCTRL_PIN(103, "GPIO_103"),
  223. PINCTRL_PIN(104, "GPIO_104"),
  224. PINCTRL_PIN(105, "GPIO_105"),
  225. PINCTRL_PIN(106, "GPIO_106"),
  226. PINCTRL_PIN(107, "GPIO_107"),
  227. PINCTRL_PIN(108, "GPIO_108"),
  228. PINCTRL_PIN(109, "GPIO_109"),
  229. PINCTRL_PIN(110, "GPIO_110"),
  230. PINCTRL_PIN(111, "GPIO_111"),
  231. PINCTRL_PIN(112, "GPIO_112"),
  232. PINCTRL_PIN(113, "GPIO_113"),
  233. PINCTRL_PIN(114, "GPIO_114"),
  234. PINCTRL_PIN(115, "GPIO_115"),
  235. PINCTRL_PIN(116, "GPIO_116"),
  236. PINCTRL_PIN(117, "GPIO_117"),
  237. PINCTRL_PIN(118, "GPIO_118"),
  238. PINCTRL_PIN(119, "GPIO_119"),
  239. PINCTRL_PIN(120, "GPIO_120"),
  240. PINCTRL_PIN(121, "GPIO_121"),
  241. PINCTRL_PIN(122, "GPIO_122"),
  242. PINCTRL_PIN(123, "GPIO_123"),
  243. PINCTRL_PIN(124, "GPIO_124"),
  244. PINCTRL_PIN(125, "GPIO_125"),
  245. PINCTRL_PIN(126, "GPIO_126"),
  246. PINCTRL_PIN(127, "GPIO_127"),
  247. PINCTRL_PIN(128, "GPIO_128"),
  248. PINCTRL_PIN(129, "GPIO_129"),
  249. PINCTRL_PIN(130, "GPIO_130"),
  250. PINCTRL_PIN(131, "GPIO_131"),
  251. PINCTRL_PIN(132, "GPIO_132"),
  252. PINCTRL_PIN(133, "GPIO_133"),
  253. PINCTRL_PIN(134, "GPIO_134"),
  254. PINCTRL_PIN(135, "GPIO_135"),
  255. PINCTRL_PIN(136, "GPIO_136"),
  256. PINCTRL_PIN(137, "GPIO_137"),
  257. PINCTRL_PIN(138, "GPIO_138"),
  258. PINCTRL_PIN(139, "GPIO_139"),
  259. PINCTRL_PIN(140, "GPIO_140"),
  260. PINCTRL_PIN(141, "GPIO_141"),
  261. PINCTRL_PIN(142, "GPIO_142"),
  262. PINCTRL_PIN(143, "GPIO_143"),
  263. PINCTRL_PIN(144, "GPIO_144"),
  264. PINCTRL_PIN(145, "GPIO_145"),
  265. PINCTRL_PIN(146, "GPIO_146"),
  266. PINCTRL_PIN(147, "GPIO_147"),
  267. PINCTRL_PIN(148, "GPIO_148"),
  268. PINCTRL_PIN(149, "GPIO_149"),
  269. PINCTRL_PIN(150, "GPIO_150"),
  270. PINCTRL_PIN(151, "GPIO_151"),
  271. PINCTRL_PIN(152, "GPIO_152"),
  272. PINCTRL_PIN(153, "GPIO_153"),
  273. PINCTRL_PIN(154, "GPIO_154"),
  274. PINCTRL_PIN(155, "GPIO_155"),
  275. PINCTRL_PIN(156, "GPIO_156"),
  276. PINCTRL_PIN(157, "GPIO_157"),
  277. PINCTRL_PIN(158, "GPIO_158"),
  278. PINCTRL_PIN(159, "GPIO_159"),
  279. PINCTRL_PIN(160, "GPIO_160"),
  280. PINCTRL_PIN(161, "GPIO_161"),
  281. PINCTRL_PIN(162, "GPIO_162"),
  282. PINCTRL_PIN(163, "GPIO_163"),
  283. PINCTRL_PIN(164, "GPIO_164"),
  284. PINCTRL_PIN(165, "GPIO_165"),
  285. PINCTRL_PIN(166, "GPIO_166"),
  286. PINCTRL_PIN(167, "UFS_RESET"),
  287. PINCTRL_PIN(168, "SDC2_CLK"),
  288. PINCTRL_PIN(169, "SDC2_CMD"),
  289. PINCTRL_PIN(170, "SDC2_DATA"),
  290. };
  291. #define DECLARE_MSM_GPIO_PINS(pin) \
  292. static const unsigned int gpio##pin##_pins[] = { pin }
  293. DECLARE_MSM_GPIO_PINS(0);
  294. DECLARE_MSM_GPIO_PINS(1);
  295. DECLARE_MSM_GPIO_PINS(2);
  296. DECLARE_MSM_GPIO_PINS(3);
  297. DECLARE_MSM_GPIO_PINS(4);
  298. DECLARE_MSM_GPIO_PINS(5);
  299. DECLARE_MSM_GPIO_PINS(6);
  300. DECLARE_MSM_GPIO_PINS(7);
  301. DECLARE_MSM_GPIO_PINS(8);
  302. DECLARE_MSM_GPIO_PINS(9);
  303. DECLARE_MSM_GPIO_PINS(10);
  304. DECLARE_MSM_GPIO_PINS(11);
  305. DECLARE_MSM_GPIO_PINS(12);
  306. DECLARE_MSM_GPIO_PINS(13);
  307. DECLARE_MSM_GPIO_PINS(14);
  308. DECLARE_MSM_GPIO_PINS(15);
  309. DECLARE_MSM_GPIO_PINS(16);
  310. DECLARE_MSM_GPIO_PINS(17);
  311. DECLARE_MSM_GPIO_PINS(18);
  312. DECLARE_MSM_GPIO_PINS(19);
  313. DECLARE_MSM_GPIO_PINS(20);
  314. DECLARE_MSM_GPIO_PINS(21);
  315. DECLARE_MSM_GPIO_PINS(22);
  316. DECLARE_MSM_GPIO_PINS(23);
  317. DECLARE_MSM_GPIO_PINS(24);
  318. DECLARE_MSM_GPIO_PINS(25);
  319. DECLARE_MSM_GPIO_PINS(26);
  320. DECLARE_MSM_GPIO_PINS(27);
  321. DECLARE_MSM_GPIO_PINS(28);
  322. DECLARE_MSM_GPIO_PINS(29);
  323. DECLARE_MSM_GPIO_PINS(30);
  324. DECLARE_MSM_GPIO_PINS(31);
  325. DECLARE_MSM_GPIO_PINS(32);
  326. DECLARE_MSM_GPIO_PINS(33);
  327. DECLARE_MSM_GPIO_PINS(34);
  328. DECLARE_MSM_GPIO_PINS(35);
  329. DECLARE_MSM_GPIO_PINS(36);
  330. DECLARE_MSM_GPIO_PINS(37);
  331. DECLARE_MSM_GPIO_PINS(38);
  332. DECLARE_MSM_GPIO_PINS(39);
  333. DECLARE_MSM_GPIO_PINS(40);
  334. DECLARE_MSM_GPIO_PINS(41);
  335. DECLARE_MSM_GPIO_PINS(42);
  336. DECLARE_MSM_GPIO_PINS(43);
  337. DECLARE_MSM_GPIO_PINS(44);
  338. DECLARE_MSM_GPIO_PINS(45);
  339. DECLARE_MSM_GPIO_PINS(46);
  340. DECLARE_MSM_GPIO_PINS(47);
  341. DECLARE_MSM_GPIO_PINS(48);
  342. DECLARE_MSM_GPIO_PINS(49);
  343. DECLARE_MSM_GPIO_PINS(50);
  344. DECLARE_MSM_GPIO_PINS(51);
  345. DECLARE_MSM_GPIO_PINS(52);
  346. DECLARE_MSM_GPIO_PINS(53);
  347. DECLARE_MSM_GPIO_PINS(54);
  348. DECLARE_MSM_GPIO_PINS(55);
  349. DECLARE_MSM_GPIO_PINS(56);
  350. DECLARE_MSM_GPIO_PINS(57);
  351. DECLARE_MSM_GPIO_PINS(58);
  352. DECLARE_MSM_GPIO_PINS(59);
  353. DECLARE_MSM_GPIO_PINS(60);
  354. DECLARE_MSM_GPIO_PINS(61);
  355. DECLARE_MSM_GPIO_PINS(62);
  356. DECLARE_MSM_GPIO_PINS(63);
  357. DECLARE_MSM_GPIO_PINS(64);
  358. DECLARE_MSM_GPIO_PINS(65);
  359. DECLARE_MSM_GPIO_PINS(66);
  360. DECLARE_MSM_GPIO_PINS(67);
  361. DECLARE_MSM_GPIO_PINS(68);
  362. DECLARE_MSM_GPIO_PINS(69);
  363. DECLARE_MSM_GPIO_PINS(70);
  364. DECLARE_MSM_GPIO_PINS(71);
  365. DECLARE_MSM_GPIO_PINS(72);
  366. DECLARE_MSM_GPIO_PINS(73);
  367. DECLARE_MSM_GPIO_PINS(74);
  368. DECLARE_MSM_GPIO_PINS(75);
  369. DECLARE_MSM_GPIO_PINS(76);
  370. DECLARE_MSM_GPIO_PINS(77);
  371. DECLARE_MSM_GPIO_PINS(78);
  372. DECLARE_MSM_GPIO_PINS(79);
  373. DECLARE_MSM_GPIO_PINS(80);
  374. DECLARE_MSM_GPIO_PINS(81);
  375. DECLARE_MSM_GPIO_PINS(82);
  376. DECLARE_MSM_GPIO_PINS(83);
  377. DECLARE_MSM_GPIO_PINS(84);
  378. DECLARE_MSM_GPIO_PINS(85);
  379. DECLARE_MSM_GPIO_PINS(86);
  380. DECLARE_MSM_GPIO_PINS(87);
  381. DECLARE_MSM_GPIO_PINS(88);
  382. DECLARE_MSM_GPIO_PINS(89);
  383. DECLARE_MSM_GPIO_PINS(90);
  384. DECLARE_MSM_GPIO_PINS(91);
  385. DECLARE_MSM_GPIO_PINS(92);
  386. DECLARE_MSM_GPIO_PINS(93);
  387. DECLARE_MSM_GPIO_PINS(94);
  388. DECLARE_MSM_GPIO_PINS(95);
  389. DECLARE_MSM_GPIO_PINS(96);
  390. DECLARE_MSM_GPIO_PINS(97);
  391. DECLARE_MSM_GPIO_PINS(98);
  392. DECLARE_MSM_GPIO_PINS(99);
  393. DECLARE_MSM_GPIO_PINS(100);
  394. DECLARE_MSM_GPIO_PINS(101);
  395. DECLARE_MSM_GPIO_PINS(102);
  396. DECLARE_MSM_GPIO_PINS(103);
  397. DECLARE_MSM_GPIO_PINS(104);
  398. DECLARE_MSM_GPIO_PINS(105);
  399. DECLARE_MSM_GPIO_PINS(106);
  400. DECLARE_MSM_GPIO_PINS(107);
  401. DECLARE_MSM_GPIO_PINS(108);
  402. DECLARE_MSM_GPIO_PINS(109);
  403. DECLARE_MSM_GPIO_PINS(110);
  404. DECLARE_MSM_GPIO_PINS(111);
  405. DECLARE_MSM_GPIO_PINS(112);
  406. DECLARE_MSM_GPIO_PINS(113);
  407. DECLARE_MSM_GPIO_PINS(114);
  408. DECLARE_MSM_GPIO_PINS(115);
  409. DECLARE_MSM_GPIO_PINS(116);
  410. DECLARE_MSM_GPIO_PINS(117);
  411. DECLARE_MSM_GPIO_PINS(118);
  412. DECLARE_MSM_GPIO_PINS(119);
  413. DECLARE_MSM_GPIO_PINS(120);
  414. DECLARE_MSM_GPIO_PINS(121);
  415. DECLARE_MSM_GPIO_PINS(122);
  416. DECLARE_MSM_GPIO_PINS(123);
  417. DECLARE_MSM_GPIO_PINS(124);
  418. DECLARE_MSM_GPIO_PINS(125);
  419. DECLARE_MSM_GPIO_PINS(126);
  420. DECLARE_MSM_GPIO_PINS(127);
  421. DECLARE_MSM_GPIO_PINS(128);
  422. DECLARE_MSM_GPIO_PINS(129);
  423. DECLARE_MSM_GPIO_PINS(130);
  424. DECLARE_MSM_GPIO_PINS(131);
  425. DECLARE_MSM_GPIO_PINS(132);
  426. DECLARE_MSM_GPIO_PINS(133);
  427. DECLARE_MSM_GPIO_PINS(134);
  428. DECLARE_MSM_GPIO_PINS(135);
  429. DECLARE_MSM_GPIO_PINS(136);
  430. DECLARE_MSM_GPIO_PINS(137);
  431. DECLARE_MSM_GPIO_PINS(138);
  432. DECLARE_MSM_GPIO_PINS(139);
  433. DECLARE_MSM_GPIO_PINS(140);
  434. DECLARE_MSM_GPIO_PINS(141);
  435. DECLARE_MSM_GPIO_PINS(142);
  436. DECLARE_MSM_GPIO_PINS(143);
  437. DECLARE_MSM_GPIO_PINS(144);
  438. DECLARE_MSM_GPIO_PINS(145);
  439. DECLARE_MSM_GPIO_PINS(146);
  440. DECLARE_MSM_GPIO_PINS(147);
  441. DECLARE_MSM_GPIO_PINS(148);
  442. DECLARE_MSM_GPIO_PINS(149);
  443. DECLARE_MSM_GPIO_PINS(150);
  444. DECLARE_MSM_GPIO_PINS(151);
  445. DECLARE_MSM_GPIO_PINS(152);
  446. DECLARE_MSM_GPIO_PINS(153);
  447. DECLARE_MSM_GPIO_PINS(154);
  448. DECLARE_MSM_GPIO_PINS(155);
  449. DECLARE_MSM_GPIO_PINS(156);
  450. DECLARE_MSM_GPIO_PINS(157);
  451. DECLARE_MSM_GPIO_PINS(158);
  452. DECLARE_MSM_GPIO_PINS(159);
  453. DECLARE_MSM_GPIO_PINS(160);
  454. DECLARE_MSM_GPIO_PINS(161);
  455. DECLARE_MSM_GPIO_PINS(162);
  456. DECLARE_MSM_GPIO_PINS(163);
  457. DECLARE_MSM_GPIO_PINS(164);
  458. DECLARE_MSM_GPIO_PINS(165);
  459. DECLARE_MSM_GPIO_PINS(166);
  460. static const unsigned int ufs_reset_pins[] = { 167 };
  461. static const unsigned int sdc2_clk_pins[] = { 168 };
  462. static const unsigned int sdc2_cmd_pins[] = { 169 };
  463. static const unsigned int sdc2_data_pins[] = { 170 };
  464. enum volcano_functions {
  465. msm_mux_gpio,
  466. msm_mux_RESOUT_GPIO_N,
  467. msm_mux_SDC1_CLK,
  468. msm_mux_SDC1_CMD,
  469. msm_mux_SDC1_DATA0,
  470. msm_mux_SDC1_DATA1,
  471. msm_mux_SDC1_DATA2,
  472. msm_mux_SDC1_DATA3,
  473. msm_mux_SDC1_DATA4,
  474. msm_mux_SDC1_DATA5,
  475. msm_mux_SDC1_DATA6,
  476. msm_mux_SDC1_DATA7,
  477. msm_mux_SDC1_RCLK,
  478. msm_mux_aoss_cti,
  479. msm_mux_atest_char0,
  480. msm_mux_atest_char1,
  481. msm_mux_atest_char2,
  482. msm_mux_atest_char3,
  483. msm_mux_atest_char_start,
  484. msm_mux_atest_usb0,
  485. msm_mux_atest_usb00,
  486. msm_mux_atest_usb01,
  487. msm_mux_audio_ext_mclk0,
  488. msm_mux_audio_ext_mclk1,
  489. msm_mux_audio_ref_clk,
  490. msm_mux_cam_mclk,
  491. msm_mux_cci_async_in0,
  492. msm_mux_cci_i2c_scl0,
  493. msm_mux_cci_i2c_scl1,
  494. msm_mux_cci_i2c_scl2,
  495. msm_mux_cci_i2c_scl3,
  496. msm_mux_cci_i2c_sda0,
  497. msm_mux_cci_i2c_sda1,
  498. msm_mux_cci_i2c_sda2,
  499. msm_mux_cci_i2c_sda3,
  500. msm_mux_cci_timer0,
  501. msm_mux_cci_timer1,
  502. msm_mux_cci_timer2,
  503. msm_mux_cci_timer3,
  504. msm_mux_coex_uart1_rx,
  505. msm_mux_coex_uart1_tx,
  506. msm_mux_dbg_out_clk,
  507. msm_mux_ddr_bist_complete,
  508. msm_mux_ddr_bist_fail,
  509. msm_mux_ddr_bist_start,
  510. msm_mux_ddr_bist_stop,
  511. msm_mux_ddr_pxi0,
  512. msm_mux_ddr_pxi1,
  513. msm_mux_dp0_hot,
  514. msm_mux_egpio,
  515. msm_mux_gcc_gp1,
  516. msm_mux_gcc_gp2,
  517. msm_mux_gcc_gp3,
  518. msm_mux_host2wlan_sol,
  519. msm_mux_i2s0_data0,
  520. msm_mux_i2s0_data1,
  521. msm_mux_i2s0_sck,
  522. msm_mux_i2s0_ws,
  523. msm_mux_ibi_i3c,
  524. msm_mux_jitter_bist,
  525. msm_mux_mdp_vsync,
  526. msm_mux_mdp_vsync0_out,
  527. msm_mux_mdp_vsync1_out,
  528. msm_mux_mdp_vsync2_out,
  529. msm_mux_mdp_vsync3_out,
  530. msm_mux_mdp_vsync_e,
  531. msm_mux_nav_gpio0,
  532. msm_mux_nav_gpio1,
  533. msm_mux_nav_gpio2,
  534. msm_mux_pcie0_clk_req_n,
  535. msm_mux_pcie1_clk_req_n,
  536. msm_mux_phase_flag0,
  537. msm_mux_phase_flag1,
  538. msm_mux_phase_flag10,
  539. msm_mux_phase_flag11,
  540. msm_mux_phase_flag12,
  541. msm_mux_phase_flag13,
  542. msm_mux_phase_flag14,
  543. msm_mux_phase_flag15,
  544. msm_mux_phase_flag16,
  545. msm_mux_phase_flag17,
  546. msm_mux_phase_flag18,
  547. msm_mux_phase_flag19,
  548. msm_mux_phase_flag2,
  549. msm_mux_phase_flag20,
  550. msm_mux_phase_flag21,
  551. msm_mux_phase_flag22,
  552. msm_mux_phase_flag23,
  553. msm_mux_phase_flag24,
  554. msm_mux_phase_flag25,
  555. msm_mux_phase_flag26,
  556. msm_mux_phase_flag27,
  557. msm_mux_phase_flag28,
  558. msm_mux_phase_flag29,
  559. msm_mux_phase_flag3,
  560. msm_mux_phase_flag30,
  561. msm_mux_phase_flag31,
  562. msm_mux_phase_flag4,
  563. msm_mux_phase_flag5,
  564. msm_mux_phase_flag6,
  565. msm_mux_phase_flag7,
  566. msm_mux_phase_flag8,
  567. msm_mux_phase_flag9,
  568. msm_mux_pll_bist_sync,
  569. msm_mux_pll_clk_aux,
  570. msm_mux_prng_rosc0,
  571. msm_mux_prng_rosc1,
  572. msm_mux_prng_rosc2,
  573. msm_mux_prng_rosc3,
  574. msm_mux_qdss_cti,
  575. msm_mux_qdss_gpio,
  576. msm_mux_qdss_gpio0,
  577. msm_mux_qdss_gpio1,
  578. msm_mux_qdss_gpio10,
  579. msm_mux_qdss_gpio11,
  580. msm_mux_qdss_gpio12,
  581. msm_mux_qdss_gpio13,
  582. msm_mux_qdss_gpio14,
  583. msm_mux_qdss_gpio15,
  584. msm_mux_qdss_gpio2,
  585. msm_mux_qdss_gpio3,
  586. msm_mux_qdss_gpio4,
  587. msm_mux_qdss_gpio5,
  588. msm_mux_qdss_gpio6,
  589. msm_mux_qdss_gpio7,
  590. msm_mux_qdss_gpio8,
  591. msm_mux_qdss_gpio9,
  592. msm_mux_qlink0_enable,
  593. msm_mux_qlink0_request,
  594. msm_mux_qlink0_wmss,
  595. msm_mux_qlink1_enable,
  596. msm_mux_qlink1_request,
  597. msm_mux_qlink1_wmss,
  598. msm_mux_qspi0_clk,
  599. msm_mux_qspi0_cs0_n,
  600. msm_mux_qspi0_cs1_n,
  601. msm_mux_qspi0_data0,
  602. msm_mux_qspi0_data1,
  603. msm_mux_qspi0_data2,
  604. msm_mux_qspi0_data3,
  605. msm_mux_qup0_se0_l0,
  606. msm_mux_qup0_se0_l1,
  607. msm_mux_qup0_se0_l2,
  608. msm_mux_qup0_se0_l3,
  609. msm_mux_qup0_se1_l0,
  610. msm_mux_qup0_se1_l1,
  611. msm_mux_qup0_se1_l2,
  612. msm_mux_qup0_se1_l3,
  613. msm_mux_qup0_se2_l0,
  614. msm_mux_qup0_se2_l1,
  615. msm_mux_qup0_se2_l2,
  616. msm_mux_qup0_se2_l3,
  617. msm_mux_qup0_se2_l4,
  618. msm_mux_qup0_se2_l5,
  619. msm_mux_qup0_se2_l6,
  620. msm_mux_qup0_se3_l0,
  621. msm_mux_qup0_se3_l1,
  622. msm_mux_qup0_se3_l2,
  623. msm_mux_qup0_se3_l3,
  624. msm_mux_qup0_se3_l4,
  625. msm_mux_qup0_se3_l5,
  626. msm_mux_qup0_se3_l6,
  627. msm_mux_qup0_se4_l0,
  628. msm_mux_qup0_se4_l1,
  629. msm_mux_qup0_se4_l2,
  630. msm_mux_qup0_se4_l3,
  631. msm_mux_qup0_se5_l0,
  632. msm_mux_qup0_se5_l1,
  633. msm_mux_qup0_se5_l2,
  634. msm_mux_qup0_se5_l3,
  635. msm_mux_qup0_se6_l0,
  636. msm_mux_qup0_se6_l1,
  637. msm_mux_qup0_se6_l2,
  638. msm_mux_qup0_se6_l3,
  639. msm_mux_qup0_se6_l4,
  640. msm_mux_qup1_se0_l0,
  641. msm_mux_qup1_se0_l1,
  642. msm_mux_qup1_se0_l2,
  643. msm_mux_qup1_se0_l3,
  644. msm_mux_qup1_se1_l0,
  645. msm_mux_qup1_se1_l1,
  646. msm_mux_qup1_se1_l2,
  647. msm_mux_qup1_se1_l3,
  648. msm_mux_qup1_se2_l0,
  649. msm_mux_qup1_se2_l1,
  650. msm_mux_qup1_se2_l2,
  651. msm_mux_qup1_se2_l3,
  652. msm_mux_qup1_se2_l4,
  653. msm_mux_qup1_se2_l5,
  654. msm_mux_qup1_se2_l6,
  655. msm_mux_qup1_se3_l0,
  656. msm_mux_qup1_se3_l1,
  657. msm_mux_qup1_se3_l2,
  658. msm_mux_qup1_se3_l3,
  659. msm_mux_qup1_se4_l0,
  660. msm_mux_qup1_se4_l1,
  661. msm_mux_qup1_se4_l2,
  662. msm_mux_qup1_se4_l3,
  663. msm_mux_qup1_se4_l4,
  664. msm_mux_qup1_se4_l5,
  665. msm_mux_qup1_se4_l6,
  666. msm_mux_qup1_se5_l0,
  667. msm_mux_qup1_se5_l1,
  668. msm_mux_qup1_se5_l2,
  669. msm_mux_qup1_se5_l3,
  670. msm_mux_qup1_se6_l0,
  671. msm_mux_qup1_se6_l1,
  672. msm_mux_qup1_se6_l2_mira,
  673. msm_mux_qup1_se6_l2_mirb,
  674. msm_mux_qup1_se6_l3_mira,
  675. msm_mux_qup1_se6_l3_mirb,
  676. msm_mux_sd_write_protect,
  677. msm_mux_sdc2_data,
  678. msm_mux_sdc2_clk,
  679. msm_mux_sdc2_cmd,
  680. msm_mux_sdc2_fb_clk,
  681. msm_mux_tb_trig_sdc1,
  682. msm_mux_tb_trig_sdc2,
  683. msm_mux_tgu_ch0_trigout,
  684. msm_mux_tgu_ch1_trigout,
  685. msm_mux_tmess_prng0,
  686. msm_mux_tmess_prng1,
  687. msm_mux_tmess_prng2,
  688. msm_mux_tmess_prng3,
  689. msm_mux_tsense_pwm1,
  690. msm_mux_tsense_pwm2,
  691. msm_mux_uim0_clk,
  692. msm_mux_uim0_data,
  693. msm_mux_uim0_present,
  694. msm_mux_uim0_reset,
  695. msm_mux_uim1_clk_mira,
  696. msm_mux_uim1_clk_mirb,
  697. msm_mux_uim1_data_mira,
  698. msm_mux_uim1_data_mirb,
  699. msm_mux_uim1_present_mira,
  700. msm_mux_uim1_present_mirb,
  701. msm_mux_uim1_reset_mira,
  702. msm_mux_uim1_reset_mirb,
  703. msm_mux_usb0_hs,
  704. msm_mux_usb0_phy_ps,
  705. msm_mux_vfr_0,
  706. msm_mux_vfr_1,
  707. msm_mux_vsense_trigger_mirnat,
  708. msm_mux_wcn_sw,
  709. msm_mux_wcn_sw_ctrl,
  710. msm_mux_NA,
  711. };
  712. static const char *const gpio_groups[] = {
  713. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  714. "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11",
  715. "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17",
  716. "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23",
  717. "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29",
  718. "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  719. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
  720. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47",
  721. "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53",
  722. "gpio54", "gpio55", "gpio56", "gpio57", "gpio58", "gpio59",
  723. "gpio60", "gpio61", "gpio62", "gpio63", "gpio64", "gpio65",
  724. "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", "gpio71",
  725. "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  726. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
  727. "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89",
  728. "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95",
  729. "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", "gpio101",
  730. "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107",
  731. "gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113",
  732. "gpio114", "gpio115", "gpio116", "gpio117", "gpio118", "gpio119",
  733. "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
  734. "gpio126", "gpio127", "gpio128", "gpio129", "gpio130", "gpio131",
  735. "gpio132", "gpio133", "gpio134", "gpio135", "gpio136", "gpio137",
  736. "gpio138", "gpio139", "gpio140", "gpio141", "gpio142", "gpio143",
  737. "gpio144", "gpio145", "gpio146", "gpio147", "gpio148", "gpio149",
  738. "gpio150", "gpio151", "gpio152", "gpio153", "gpio154", "gpio155",
  739. "gpio156", "gpio157", "gpio158", "gpio159", "gpio160", "gpio161",
  740. "gpio162", "gpio163", "gpio164", "gpio165", "gpio166",
  741. };
  742. static const char *const RESOUT_GPIO_N_groups[] = {
  743. "gpio39",
  744. };
  745. static const char *const SDC1_CLK_groups[] = {
  746. "gpio77",
  747. };
  748. static const char *const SDC1_CMD_groups[] = {
  749. "gpio78",
  750. };
  751. static const char *const SDC1_DATA0_groups[] = {
  752. "gpio79",
  753. };
  754. static const char *const SDC1_DATA1_groups[] = {
  755. "gpio80",
  756. };
  757. static const char *const SDC1_DATA2_groups[] = {
  758. "gpio81",
  759. };
  760. static const char *const SDC1_DATA3_groups[] = {
  761. "gpio82",
  762. };
  763. static const char *const SDC1_DATA4_groups[] = {
  764. "gpio73",
  765. };
  766. static const char *const SDC1_DATA5_groups[] = {
  767. "gpio74",
  768. };
  769. static const char *const SDC1_DATA6_groups[] = {
  770. "gpio75",
  771. };
  772. static const char *const SDC1_DATA7_groups[] = {
  773. "gpio76",
  774. };
  775. static const char *const SDC1_RCLK_groups[] = {
  776. "gpio72",
  777. };
  778. static const char *const aoss_cti_groups[] = {
  779. "gpio0",
  780. "gpio1",
  781. "gpio4",
  782. "gpio5",
  783. };
  784. static const char *const atest_char0_groups[] = {
  785. "gpio44",
  786. };
  787. static const char *const atest_char1_groups[] = {
  788. "gpio45",
  789. };
  790. static const char *const atest_char2_groups[] = {
  791. "gpio46",
  792. };
  793. static const char *const atest_char3_groups[] = {
  794. "gpio47",
  795. };
  796. static const char *const atest_char_start_groups[] = {
  797. "gpio63",
  798. };
  799. static const char *const atest_usb0_groups[] = {
  800. "gpio60",
  801. };
  802. static const char *const atest_usb00_groups[] = {
  803. "gpio23",
  804. };
  805. static const char *const atest_usb01_groups[] = {
  806. "gpio24",
  807. };
  808. static const char *const audio_ext_mclk0_groups[] = {
  809. "gpio23",
  810. };
  811. static const char *const audio_ext_mclk1_groups[] = {
  812. "gpio24",
  813. };
  814. static const char *const audio_ref_clk_groups[] = {
  815. "gpio24",
  816. };
  817. static const char *const cam_mclk_groups[] = {
  818. "gpio83", "gpio84", "gpio85", "gpio86", "gpio87",
  819. };
  820. static const char *const cci_async_in0_groups[] = {
  821. "gpio86",
  822. };
  823. static const char *const cci_i2c_scl0_groups[] = {
  824. "gpio89",
  825. };
  826. static const char *const cci_i2c_scl1_groups[] = {
  827. "gpio91",
  828. };
  829. static const char *const cci_i2c_scl2_groups[] = {
  830. "gpio93",
  831. };
  832. static const char *const cci_i2c_scl3_groups[] = {
  833. "gpio95",
  834. };
  835. static const char *const cci_i2c_sda0_groups[] = {
  836. "gpio88",
  837. };
  838. static const char *const cci_i2c_sda1_groups[] = {
  839. "gpio90",
  840. };
  841. static const char *const cci_i2c_sda2_groups[] = {
  842. "gpio92",
  843. };
  844. static const char *const cci_i2c_sda3_groups[] = {
  845. "gpio94",
  846. };
  847. static const char *const cci_timer0_groups[] = {
  848. "gpio77",
  849. };
  850. static const char *const cci_timer1_groups[] = {
  851. "gpio83",
  852. };
  853. static const char *const cci_timer2_groups[] = {
  854. "gpio84",
  855. };
  856. static const char *const cci_timer3_groups[] = {
  857. "gpio85",
  858. };
  859. static const char *const coex_uart1_rx_groups[] = {
  860. "gpio64",
  861. };
  862. static const char *const coex_uart1_tx_groups[] = {
  863. "gpio63",
  864. };
  865. static const char *const dbg_out_clk_groups[] = {
  866. "gpio24",
  867. };
  868. static const char *const ddr_bist_complete_groups[] = {
  869. "gpio137",
  870. };
  871. static const char *const ddr_bist_fail_groups[] = {
  872. "gpio56",
  873. };
  874. static const char *const ddr_bist_start_groups[] = {
  875. "gpio133",
  876. };
  877. static const char *const ddr_bist_stop_groups[] = {
  878. "gpio47",
  879. };
  880. static const char *const ddr_pxi0_groups[] = {
  881. "gpio23",
  882. "gpio24",
  883. };
  884. static const char *const ddr_pxi1_groups[] = {
  885. "gpio50",
  886. "gpio51",
  887. };
  888. static const char *const dp0_hot_groups[] = {
  889. "gpio75",
  890. };
  891. static const char *const egpio_groups[] = {
  892. "gpio132", "gpio133", "gpio134", "gpio135", "gpio136", "gpio137",
  893. "gpio138", "gpio139", "gpio140", "gpio141", "gpio142", "gpio143",
  894. "gpio144", "gpio145", "gpio146", "gpio147", "gpio148", "gpio149",
  895. "gpio150", "gpio151", "gpio152", "gpio153", "gpio154", "gpio155",
  896. "gpio156", "gpio157", "gpio158", "gpio159", "gpio160", "gpio161",
  897. "gpio162", "gpio163", "gpio164", "gpio165", "gpio166",
  898. };
  899. static const char *const gcc_gp1_groups[] = {
  900. "gpio29",
  901. "gpio32",
  902. };
  903. static const char *const gcc_gp2_groups[] = {
  904. "gpio28",
  905. "gpio30",
  906. };
  907. static const char *const gcc_gp3_groups[] = {
  908. "gpio31",
  909. "gpio33",
  910. };
  911. static const char *const host2wlan_sol_groups[] = {
  912. "gpio46",
  913. };
  914. static const char *const i2s0_data0_groups[] = {
  915. "gpio16",
  916. };
  917. static const char *const i2s0_data1_groups[] = {
  918. "gpio17",
  919. };
  920. static const char *const i2s0_sck_groups[] = {
  921. "gpio15",
  922. };
  923. static const char *const i2s0_ws_groups[] = {
  924. "gpio18",
  925. };
  926. static const char *const ibi_i3c_groups[] = {
  927. "gpio0", "gpio1", "gpio4", "gpio5",
  928. "gpio32", "gpio33", "gpio36", "gpio37",
  929. };
  930. static const char *const jitter_bist_groups[] = {
  931. "gpio141",
  932. };
  933. static const char *const mdp_vsync_groups[] = {
  934. "gpio19",
  935. "gpio37",
  936. "gpio72",
  937. "gpio129",
  938. };
  939. static const char *const mdp_vsync0_out_groups[] = {
  940. "gpio12",
  941. };
  942. static const char *const mdp_vsync1_out_groups[] = {
  943. "gpio12",
  944. };
  945. static const char *const mdp_vsync2_out_groups[] = {
  946. "gpio40",
  947. };
  948. static const char *const mdp_vsync3_out_groups[] = {
  949. "gpio40",
  950. };
  951. static const char *const mdp_vsync_e_groups[] = {
  952. "gpio45",
  953. };
  954. static const char *const nav_gpio0_groups[] = {
  955. "gpio124",
  956. };
  957. static const char *const nav_gpio1_groups[] = {
  958. "gpio125",
  959. };
  960. static const char *const nav_gpio2_groups[] = {
  961. "gpio126",
  962. };
  963. static const char *const pcie0_clk_req_n_groups[] = {
  964. "gpio67",
  965. };
  966. static const char *const pcie1_clk_req_n_groups[] = {
  967. "gpio70",
  968. };
  969. static const char *const phase_flag0_groups[] = {
  970. "gpio64",
  971. };
  972. static const char *const phase_flag1_groups[] = {
  973. "gpio144",
  974. };
  975. static const char *const phase_flag10_groups[] = {
  976. "gpio49",
  977. };
  978. static const char *const phase_flag11_groups[] = {
  979. "gpio48",
  980. };
  981. static const char *const phase_flag12_groups[] = {
  982. "gpio47",
  983. };
  984. static const char *const phase_flag13_groups[] = {
  985. "gpio46",
  986. };
  987. static const char *const phase_flag14_groups[] = {
  988. "gpio45",
  989. };
  990. static const char *const phase_flag15_groups[] = {
  991. "gpio44",
  992. };
  993. static const char *const phase_flag16_groups[] = {
  994. "gpio43",
  995. };
  996. static const char *const phase_flag17_groups[] = {
  997. "gpio42",
  998. };
  999. static const char *const phase_flag18_groups[] = {
  1000. "gpio41",
  1001. };
  1002. static const char *const phase_flag19_groups[] = {
  1003. "gpio40",
  1004. };
  1005. static const char *const phase_flag2_groups[] = {
  1006. "gpio147",
  1007. };
  1008. static const char *const phase_flag20_groups[] = {
  1009. "gpio39",
  1010. };
  1011. static const char *const phase_flag21_groups[] = {
  1012. "gpio38",
  1013. };
  1014. static const char *const phase_flag22_groups[] = {
  1015. "gpio26",
  1016. };
  1017. static const char *const phase_flag23_groups[] = {
  1018. "gpio18",
  1019. };
  1020. static const char *const phase_flag24_groups[] = {
  1021. "gpio16",
  1022. };
  1023. static const char *const phase_flag25_groups[] = {
  1024. "gpio15",
  1025. };
  1026. static const char *const phase_flag26_groups[] = {
  1027. "gpio14",
  1028. };
  1029. static const char *const phase_flag27_groups[] = {
  1030. "gpio13",
  1031. };
  1032. static const char *const phase_flag28_groups[] = {
  1033. "gpio12",
  1034. };
  1035. static const char *const phase_flag29_groups[] = {
  1036. "gpio11",
  1037. };
  1038. static const char *const phase_flag3_groups[] = {
  1039. "gpio143",
  1040. };
  1041. static const char *const phase_flag30_groups[] = {
  1042. "gpio9",
  1043. };
  1044. static const char *const phase_flag31_groups[] = {
  1045. "gpio8",
  1046. };
  1047. static const char *const phase_flag4_groups[] = {
  1048. "gpio142",
  1049. };
  1050. static const char *const phase_flag5_groups[] = {
  1051. "gpio63",
  1052. };
  1053. static const char *const phase_flag6_groups[] = {
  1054. "gpio140",
  1055. };
  1056. static const char *const phase_flag7_groups[] = {
  1057. "gpio139",
  1058. };
  1059. static const char *const phase_flag8_groups[] = {
  1060. "gpio138",
  1061. };
  1062. static const char *const phase_flag9_groups[] = {
  1063. "gpio127",
  1064. };
  1065. static const char *const pll_bist_sync_groups[] = {
  1066. "gpio26",
  1067. };
  1068. static const char *const pll_clk_aux_groups[] = {
  1069. "gpio36",
  1070. };
  1071. static const char *const prng_rosc0_groups[] = {
  1072. "gpio66",
  1073. };
  1074. static const char *const prng_rosc1_groups[] = {
  1075. "gpio67",
  1076. };
  1077. static const char *const prng_rosc2_groups[] = {
  1078. "gpio68",
  1079. };
  1080. static const char *const prng_rosc3_groups[] = {
  1081. "gpio69",
  1082. };
  1083. static const char *const qdss_cti_groups[] = {
  1084. "gpio4", "gpio5", "gpio6", "gpio7",
  1085. "gpio44", "gpio45", "gpio54", "gpio87",
  1086. };
  1087. static const char *const qdss_gpio_groups[] = {
  1088. "gpio88",
  1089. "gpio89",
  1090. "gpio155",
  1091. "gpio156",
  1092. };
  1093. static const char *const qdss_gpio0_groups[] = {
  1094. "gpio40",
  1095. "gpio157",
  1096. };
  1097. static const char *const qdss_gpio1_groups[] = {
  1098. "gpio41",
  1099. "gpio158",
  1100. };
  1101. static const char *const qdss_gpio10_groups[] = {
  1102. "gpio52",
  1103. "gpio149",
  1104. };
  1105. static const char *const qdss_gpio11_groups[] = {
  1106. "gpio53",
  1107. "gpio150",
  1108. };
  1109. static const char *const qdss_gpio12_groups[] = {
  1110. "gpio83",
  1111. "gpio138",
  1112. };
  1113. static const char *const qdss_gpio13_groups[] = {
  1114. "gpio84",
  1115. "gpio139",
  1116. };
  1117. static const char *const qdss_gpio14_groups[] = {
  1118. "gpio85",
  1119. "gpio140",
  1120. };
  1121. static const char *const qdss_gpio15_groups[] = {
  1122. "gpio86",
  1123. "gpio141",
  1124. };
  1125. static const char *const qdss_gpio2_groups[] = {
  1126. "gpio42",
  1127. "gpio159",
  1128. };
  1129. static const char *const qdss_gpio3_groups[] = {
  1130. "gpio43",
  1131. "gpio160",
  1132. };
  1133. static const char *const qdss_gpio4_groups[] = {
  1134. "gpio46",
  1135. "gpio161",
  1136. };
  1137. static const char *const qdss_gpio5_groups[] = {
  1138. "gpio47",
  1139. "gpio162",
  1140. };
  1141. static const char *const qdss_gpio6_groups[] = {
  1142. "gpio48",
  1143. "gpio163",
  1144. };
  1145. static const char *const qdss_gpio7_groups[] = {
  1146. "gpio49",
  1147. "gpio164",
  1148. };
  1149. static const char *const qdss_gpio8_groups[] = {
  1150. "gpio50",
  1151. "gpio165",
  1152. };
  1153. static const char *const qdss_gpio9_groups[] = {
  1154. "gpio51",
  1155. "gpio166",
  1156. };
  1157. static const char *const qlink0_enable_groups[] = {
  1158. "gpio105",
  1159. };
  1160. static const char *const qlink0_request_groups[] = {
  1161. "gpio104",
  1162. };
  1163. static const char *const qlink0_wmss_groups[] = {
  1164. "gpio106",
  1165. };
  1166. static const char *const qlink1_enable_groups[] = {
  1167. "gpio108",
  1168. };
  1169. static const char *const qlink1_request_groups[] = {
  1170. "gpio107",
  1171. };
  1172. static const char *const qlink1_wmss_groups[] = {
  1173. "gpio109",
  1174. };
  1175. static const char *const qspi0_clk_groups[] = {
  1176. "gpio10",
  1177. };
  1178. static const char *const qspi0_cs0_n_groups[] = {
  1179. "gpio11",
  1180. };
  1181. static const char *const qspi0_cs1_n_groups[] = {
  1182. "gpio12",
  1183. };
  1184. static const char *const qspi0_data0_groups[] = {
  1185. "gpio8",
  1186. };
  1187. static const char *const qspi0_data1_groups[] = {
  1188. "gpio9",
  1189. };
  1190. static const char *const qspi0_data2_groups[] = {
  1191. "gpio13",
  1192. };
  1193. static const char *const qspi0_data3_groups[] = {
  1194. "gpio14",
  1195. };
  1196. static const char *const qup0_se0_l0_groups[] = {
  1197. "gpio0",
  1198. };
  1199. static const char *const qup0_se0_l1_groups[] = {
  1200. "gpio1",
  1201. };
  1202. static const char *const qup0_se0_l2_groups[] = {
  1203. "gpio2",
  1204. };
  1205. static const char *const qup0_se0_l3_groups[] = {
  1206. "gpio3",
  1207. };
  1208. static const char *const qup0_se1_l0_groups[] = {
  1209. "gpio4",
  1210. };
  1211. static const char *const qup0_se1_l1_groups[] = {
  1212. "gpio5",
  1213. };
  1214. static const char *const qup0_se1_l2_groups[] = {
  1215. "gpio6",
  1216. };
  1217. static const char *const qup0_se1_l3_groups[] = {
  1218. "gpio7",
  1219. };
  1220. static const char *const qup0_se2_l0_groups[] = {
  1221. "gpio8",
  1222. };
  1223. static const char *const qup0_se2_l1_groups[] = {
  1224. "gpio9",
  1225. };
  1226. static const char *const qup0_se2_l2_groups[] = {
  1227. "gpio10",
  1228. };
  1229. static const char *const qup0_se2_l3_groups[] = {
  1230. "gpio11",
  1231. };
  1232. static const char *const qup0_se2_l4_groups[] = {
  1233. "gpio12",
  1234. };
  1235. static const char *const qup0_se2_l5_groups[] = {
  1236. "gpio13",
  1237. };
  1238. static const char *const qup0_se2_l6_groups[] = {
  1239. "gpio14",
  1240. };
  1241. static const char *const qup0_se3_l0_groups[] = {
  1242. "gpio15",
  1243. };
  1244. static const char *const qup0_se3_l1_groups[] = {
  1245. "gpio16",
  1246. };
  1247. static const char *const qup0_se3_l2_groups[] = {
  1248. "gpio17",
  1249. };
  1250. static const char *const qup0_se3_l3_groups[] = {
  1251. "gpio18",
  1252. };
  1253. static const char *const qup0_se3_l4_groups[] = {
  1254. "gpio23",
  1255. };
  1256. static const char *const qup0_se3_l5_groups[] = {
  1257. "gpio24",
  1258. };
  1259. static const char *const qup0_se3_l6_groups[] = {
  1260. "gpio26",
  1261. };
  1262. static const char *const qup0_se4_l0_groups[] = {
  1263. "gpio19",
  1264. };
  1265. static const char *const qup0_se4_l1_groups[] = {
  1266. "gpio20",
  1267. };
  1268. static const char *const qup0_se4_l2_groups[] = {
  1269. "gpio21",
  1270. };
  1271. static const char *const qup0_se4_l3_groups[] = {
  1272. "gpio22",
  1273. };
  1274. static const char *const qup0_se5_l0_groups[] = {
  1275. "gpio23",
  1276. };
  1277. static const char *const qup0_se5_l1_groups[] = {
  1278. "gpio24",
  1279. };
  1280. static const char *const qup0_se5_l2_groups[] = {
  1281. "gpio25",
  1282. };
  1283. static const char *const qup0_se5_l3_groups[] = {
  1284. "gpio26",
  1285. };
  1286. static const char *const qup0_se6_l0_groups[] = {
  1287. "gpio27",
  1288. };
  1289. static const char *const qup0_se6_l1_groups[] = {
  1290. "gpio28",
  1291. };
  1292. static const char *const qup0_se6_l2_groups[] = {
  1293. "gpio29",
  1294. };
  1295. static const char *const qup0_se6_l3_groups[] = {
  1296. "gpio30",
  1297. };
  1298. static const char *const qup0_se6_l4_groups[] = {
  1299. "gpio31",
  1300. };
  1301. static const char *const qup1_se0_l0_groups[] = {
  1302. "gpio32",
  1303. };
  1304. static const char *const qup1_se0_l1_groups[] = {
  1305. "gpio33",
  1306. };
  1307. static const char *const qup1_se0_l2_groups[] = {
  1308. "gpio94",
  1309. };
  1310. static const char *const qup1_se0_l3_groups[] = {
  1311. "gpio95",
  1312. };
  1313. static const char *const qup1_se1_l0_groups[] = {
  1314. "gpio36",
  1315. };
  1316. static const char *const qup1_se1_l1_groups[] = {
  1317. "gpio37",
  1318. };
  1319. static const char *const qup1_se1_l2_groups[] = {
  1320. "gpio38",
  1321. };
  1322. static const char *const qup1_se1_l3_groups[] = {
  1323. "gpio39",
  1324. };
  1325. static const char *const qup1_se2_l0_groups[] = {
  1326. "gpio40",
  1327. };
  1328. static const char *const qup1_se2_l1_groups[] = {
  1329. "gpio41",
  1330. };
  1331. static const char *const qup1_se2_l2_groups[] = {
  1332. "gpio42",
  1333. };
  1334. static const char *const qup1_se2_l3_groups[] = {
  1335. "gpio43",
  1336. };
  1337. static const char *const qup1_se2_l4_groups[] = {
  1338. "gpio36",
  1339. };
  1340. static const char *const qup1_se2_l5_groups[] = {
  1341. "gpio37",
  1342. };
  1343. static const char *const qup1_se2_l6_groups[] = {
  1344. "gpio38",
  1345. };
  1346. static const char *const qup1_se3_l0_groups[] = {
  1347. "gpio92",
  1348. };
  1349. static const char *const qup1_se3_l1_groups[] = {
  1350. "gpio93",
  1351. };
  1352. static const char *const qup1_se3_l2_groups[] = {
  1353. "gpio94",
  1354. };
  1355. static const char *const qup1_se3_l3_groups[] = {
  1356. "gpio95",
  1357. };
  1358. static const char *const qup1_se4_l0_groups[] = {
  1359. "gpio48",
  1360. };
  1361. static const char *const qup1_se4_l1_groups[] = {
  1362. "gpio49",
  1363. };
  1364. static const char *const qup1_se4_l2_groups[] = {
  1365. "gpio50",
  1366. };
  1367. static const char *const qup1_se4_l3_groups[] = {
  1368. "gpio51",
  1369. };
  1370. static const char *const qup1_se4_l4_groups[] = {
  1371. "gpio52",
  1372. };
  1373. static const char *const qup1_se4_l5_groups[] = {
  1374. "gpio53",
  1375. };
  1376. static const char *const qup1_se4_l6_groups[] = {
  1377. "gpio54",
  1378. };
  1379. static const char *const qup1_se5_l0_groups[] = {
  1380. "gpio55",
  1381. };
  1382. static const char *const qup1_se5_l1_groups[] = {
  1383. "gpio56",
  1384. };
  1385. static const char *const qup1_se5_l2_groups[] = {
  1386. "gpio59",
  1387. };
  1388. static const char *const qup1_se5_l3_groups[] = {
  1389. "gpio60",
  1390. };
  1391. static const char *const qup1_se6_l0_groups[] = {
  1392. "gpio59",
  1393. };
  1394. static const char *const qup1_se6_l1_groups[] = {
  1395. "gpio60",
  1396. };
  1397. static const char *const qup1_se6_l2_mira_groups[] = {
  1398. "gpio55",
  1399. };
  1400. static const char *const qup1_se6_l2_mirb_groups[] = {
  1401. "gpio90",
  1402. };
  1403. static const char *const qup1_se6_l3_mira_groups[] = {
  1404. "gpio56",
  1405. };
  1406. static const char *const qup1_se6_l3_mirb_groups[] = {
  1407. "gpio91",
  1408. };
  1409. static const char *const sd_write_protect_groups[] = {
  1410. "gpio4",
  1411. };
  1412. static const char *const sdc2_data_groups[] = {
  1413. "gpio34",
  1414. "gpio35",
  1415. "gpio57",
  1416. "gpio58",
  1417. };
  1418. static const char *const sdc2_clk_groups[] = {
  1419. "gpio62",
  1420. };
  1421. static const char *const sdc2_cmd_groups[] = {
  1422. "gpio61",
  1423. };
  1424. static const char *const sdc2_fb_clk_groups[] = {
  1425. "gpio128",
  1426. };
  1427. static const char *const tb_trig_sdc1_groups[] = {
  1428. "gpio87",
  1429. };
  1430. static const char *const tb_trig_sdc2_groups[] = {
  1431. "gpio78",
  1432. };
  1433. static const char *const tgu_ch0_trigout_groups[] = {
  1434. "gpio87",
  1435. };
  1436. static const char *const tgu_ch1_trigout_groups[] = {
  1437. "gpio88",
  1438. };
  1439. static const char *const tmess_prng0_groups[] = {
  1440. "gpio86",
  1441. };
  1442. static const char *const tmess_prng1_groups[] = {
  1443. "gpio83",
  1444. };
  1445. static const char *const tmess_prng2_groups[] = {
  1446. "gpio84",
  1447. };
  1448. static const char *const tmess_prng3_groups[] = {
  1449. "gpio85",
  1450. };
  1451. static const char *const tsense_pwm1_groups[] = {
  1452. "gpio17",
  1453. };
  1454. static const char *const tsense_pwm2_groups[] = {
  1455. "gpio17",
  1456. };
  1457. static const char *const uim0_clk_groups[] = {
  1458. "gpio97",
  1459. };
  1460. static const char *const uim0_data_groups[] = {
  1461. "gpio96",
  1462. };
  1463. static const char *const uim0_present_groups[] = {
  1464. "gpio99",
  1465. };
  1466. static const char *const uim0_reset_groups[] = {
  1467. "gpio98",
  1468. };
  1469. static const char *const uim1_clk_mira_groups[] = {
  1470. "gpio111",
  1471. };
  1472. static const char *const uim1_clk_mirb_groups[] = {
  1473. "gpio101",
  1474. };
  1475. static const char *const uim1_data_mira_groups[] = {
  1476. "gpio110",
  1477. };
  1478. static const char *const uim1_data_mirb_groups[] = {
  1479. "gpio100",
  1480. };
  1481. static const char *const uim1_present_mira_groups[] = {
  1482. "gpio113",
  1483. };
  1484. static const char *const uim1_present_mirb_groups[] = {
  1485. "gpio103",
  1486. };
  1487. static const char *const uim1_reset_mira_groups[] = {
  1488. "gpio112",
  1489. };
  1490. static const char *const uim1_reset_mirb_groups[] = {
  1491. "gpio102",
  1492. };
  1493. static const char *const usb0_hs_groups[] = {
  1494. "gpio125",
  1495. };
  1496. static const char *const usb0_phy_ps_groups[] = {
  1497. "gpio131",
  1498. };
  1499. static const char *const vfr_0_groups[] = {
  1500. "gpio56",
  1501. };
  1502. static const char *const vfr_1_groups[] = {
  1503. "gpio126",
  1504. };
  1505. static const char *const vsense_trigger_mirnat_groups[] = {
  1506. "gpio94",
  1507. };
  1508. static const char *const wcn_sw_groups[] = {
  1509. "gpio52",
  1510. };
  1511. static const char *const wcn_sw_ctrl_groups[] = {
  1512. "gpio45",
  1513. };
  1514. static const struct msm_function volcano_functions[] = {
  1515. FUNCTION(gpio),
  1516. FUNCTION(RESOUT_GPIO_N),
  1517. FUNCTION(SDC1_CLK),
  1518. FUNCTION(SDC1_CMD),
  1519. FUNCTION(SDC1_DATA0),
  1520. FUNCTION(SDC1_DATA1),
  1521. FUNCTION(SDC1_DATA2),
  1522. FUNCTION(SDC1_DATA3),
  1523. FUNCTION(SDC1_DATA4),
  1524. FUNCTION(SDC1_DATA5),
  1525. FUNCTION(SDC1_DATA6),
  1526. FUNCTION(SDC1_DATA7),
  1527. FUNCTION(SDC1_RCLK),
  1528. FUNCTION(aoss_cti),
  1529. FUNCTION(atest_char0),
  1530. FUNCTION(atest_char1),
  1531. FUNCTION(atest_char2),
  1532. FUNCTION(atest_char3),
  1533. FUNCTION(atest_char_start),
  1534. FUNCTION(atest_usb0),
  1535. FUNCTION(atest_usb00),
  1536. FUNCTION(atest_usb01),
  1537. FUNCTION(audio_ext_mclk0),
  1538. FUNCTION(audio_ext_mclk1),
  1539. FUNCTION(audio_ref_clk),
  1540. FUNCTION(cam_mclk),
  1541. FUNCTION(cci_async_in0),
  1542. FUNCTION(cci_i2c_scl0),
  1543. FUNCTION(cci_i2c_scl1),
  1544. FUNCTION(cci_i2c_scl2),
  1545. FUNCTION(cci_i2c_scl3),
  1546. FUNCTION(cci_i2c_sda0),
  1547. FUNCTION(cci_i2c_sda1),
  1548. FUNCTION(cci_i2c_sda2),
  1549. FUNCTION(cci_i2c_sda3),
  1550. FUNCTION(cci_timer0),
  1551. FUNCTION(cci_timer1),
  1552. FUNCTION(cci_timer2),
  1553. FUNCTION(cci_timer3),
  1554. FUNCTION(coex_uart1_rx),
  1555. FUNCTION(coex_uart1_tx),
  1556. FUNCTION(dbg_out_clk),
  1557. FUNCTION(ddr_bist_complete),
  1558. FUNCTION(ddr_bist_fail),
  1559. FUNCTION(ddr_bist_start),
  1560. FUNCTION(ddr_bist_stop),
  1561. FUNCTION(ddr_pxi0),
  1562. FUNCTION(ddr_pxi1),
  1563. FUNCTION(dp0_hot),
  1564. FUNCTION(egpio),
  1565. FUNCTION(gcc_gp1),
  1566. FUNCTION(gcc_gp2),
  1567. FUNCTION(gcc_gp3),
  1568. FUNCTION(host2wlan_sol),
  1569. FUNCTION(i2s0_data0),
  1570. FUNCTION(i2s0_data1),
  1571. FUNCTION(i2s0_sck),
  1572. FUNCTION(i2s0_ws),
  1573. FUNCTION(ibi_i3c),
  1574. FUNCTION(jitter_bist),
  1575. FUNCTION(mdp_vsync),
  1576. FUNCTION(mdp_vsync0_out),
  1577. FUNCTION(mdp_vsync1_out),
  1578. FUNCTION(mdp_vsync2_out),
  1579. FUNCTION(mdp_vsync3_out),
  1580. FUNCTION(mdp_vsync_e),
  1581. FUNCTION(nav_gpio0),
  1582. FUNCTION(nav_gpio1),
  1583. FUNCTION(nav_gpio2),
  1584. FUNCTION(pcie0_clk_req_n),
  1585. FUNCTION(pcie1_clk_req_n),
  1586. FUNCTION(phase_flag0),
  1587. FUNCTION(phase_flag1),
  1588. FUNCTION(phase_flag10),
  1589. FUNCTION(phase_flag11),
  1590. FUNCTION(phase_flag12),
  1591. FUNCTION(phase_flag13),
  1592. FUNCTION(phase_flag14),
  1593. FUNCTION(phase_flag15),
  1594. FUNCTION(phase_flag16),
  1595. FUNCTION(phase_flag17),
  1596. FUNCTION(phase_flag18),
  1597. FUNCTION(phase_flag19),
  1598. FUNCTION(phase_flag2),
  1599. FUNCTION(phase_flag20),
  1600. FUNCTION(phase_flag21),
  1601. FUNCTION(phase_flag22),
  1602. FUNCTION(phase_flag23),
  1603. FUNCTION(phase_flag24),
  1604. FUNCTION(phase_flag25),
  1605. FUNCTION(phase_flag26),
  1606. FUNCTION(phase_flag27),
  1607. FUNCTION(phase_flag28),
  1608. FUNCTION(phase_flag29),
  1609. FUNCTION(phase_flag3),
  1610. FUNCTION(phase_flag30),
  1611. FUNCTION(phase_flag31),
  1612. FUNCTION(phase_flag4),
  1613. FUNCTION(phase_flag5),
  1614. FUNCTION(phase_flag6),
  1615. FUNCTION(phase_flag7),
  1616. FUNCTION(phase_flag8),
  1617. FUNCTION(phase_flag9),
  1618. FUNCTION(pll_bist_sync),
  1619. FUNCTION(pll_clk_aux),
  1620. FUNCTION(prng_rosc0),
  1621. FUNCTION(prng_rosc1),
  1622. FUNCTION(prng_rosc2),
  1623. FUNCTION(prng_rosc3),
  1624. FUNCTION(qdss_cti),
  1625. FUNCTION(qdss_gpio),
  1626. FUNCTION(qdss_gpio0),
  1627. FUNCTION(qdss_gpio1),
  1628. FUNCTION(qdss_gpio10),
  1629. FUNCTION(qdss_gpio11),
  1630. FUNCTION(qdss_gpio12),
  1631. FUNCTION(qdss_gpio13),
  1632. FUNCTION(qdss_gpio14),
  1633. FUNCTION(qdss_gpio15),
  1634. FUNCTION(qdss_gpio2),
  1635. FUNCTION(qdss_gpio3),
  1636. FUNCTION(qdss_gpio4),
  1637. FUNCTION(qdss_gpio5),
  1638. FUNCTION(qdss_gpio6),
  1639. FUNCTION(qdss_gpio7),
  1640. FUNCTION(qdss_gpio8),
  1641. FUNCTION(qdss_gpio9),
  1642. FUNCTION(qlink0_enable),
  1643. FUNCTION(qlink0_request),
  1644. FUNCTION(qlink0_wmss),
  1645. FUNCTION(qlink1_enable),
  1646. FUNCTION(qlink1_request),
  1647. FUNCTION(qlink1_wmss),
  1648. FUNCTION(qspi0_clk),
  1649. FUNCTION(qspi0_cs0_n),
  1650. FUNCTION(qspi0_cs1_n),
  1651. FUNCTION(qspi0_data0),
  1652. FUNCTION(qspi0_data1),
  1653. FUNCTION(qspi0_data2),
  1654. FUNCTION(qspi0_data3),
  1655. FUNCTION(qup0_se0_l0),
  1656. FUNCTION(qup0_se0_l1),
  1657. FUNCTION(qup0_se0_l2),
  1658. FUNCTION(qup0_se0_l3),
  1659. FUNCTION(qup0_se1_l0),
  1660. FUNCTION(qup0_se1_l1),
  1661. FUNCTION(qup0_se1_l2),
  1662. FUNCTION(qup0_se1_l3),
  1663. FUNCTION(qup0_se2_l0),
  1664. FUNCTION(qup0_se2_l1),
  1665. FUNCTION(qup0_se2_l2),
  1666. FUNCTION(qup0_se2_l3),
  1667. FUNCTION(qup0_se2_l4),
  1668. FUNCTION(qup0_se2_l5),
  1669. FUNCTION(qup0_se2_l6),
  1670. FUNCTION(qup0_se3_l0),
  1671. FUNCTION(qup0_se3_l1),
  1672. FUNCTION(qup0_se3_l2),
  1673. FUNCTION(qup0_se3_l3),
  1674. FUNCTION(qup0_se3_l4),
  1675. FUNCTION(qup0_se3_l5),
  1676. FUNCTION(qup0_se3_l6),
  1677. FUNCTION(qup0_se4_l0),
  1678. FUNCTION(qup0_se4_l1),
  1679. FUNCTION(qup0_se4_l2),
  1680. FUNCTION(qup0_se4_l3),
  1681. FUNCTION(qup0_se5_l0),
  1682. FUNCTION(qup0_se5_l1),
  1683. FUNCTION(qup0_se5_l2),
  1684. FUNCTION(qup0_se5_l3),
  1685. FUNCTION(qup0_se6_l0),
  1686. FUNCTION(qup0_se6_l1),
  1687. FUNCTION(qup0_se6_l2),
  1688. FUNCTION(qup0_se6_l3),
  1689. FUNCTION(qup0_se6_l4),
  1690. FUNCTION(qup1_se0_l0),
  1691. FUNCTION(qup1_se0_l1),
  1692. FUNCTION(qup1_se0_l2),
  1693. FUNCTION(qup1_se0_l3),
  1694. FUNCTION(qup1_se1_l0),
  1695. FUNCTION(qup1_se1_l1),
  1696. FUNCTION(qup1_se1_l2),
  1697. FUNCTION(qup1_se1_l3),
  1698. FUNCTION(qup1_se2_l0),
  1699. FUNCTION(qup1_se2_l1),
  1700. FUNCTION(qup1_se2_l2),
  1701. FUNCTION(qup1_se2_l3),
  1702. FUNCTION(qup1_se2_l4),
  1703. FUNCTION(qup1_se2_l5),
  1704. FUNCTION(qup1_se2_l6),
  1705. FUNCTION(qup1_se3_l0),
  1706. FUNCTION(qup1_se3_l1),
  1707. FUNCTION(qup1_se3_l2),
  1708. FUNCTION(qup1_se3_l3),
  1709. FUNCTION(qup1_se4_l0),
  1710. FUNCTION(qup1_se4_l1),
  1711. FUNCTION(qup1_se4_l2),
  1712. FUNCTION(qup1_se4_l3),
  1713. FUNCTION(qup1_se4_l4),
  1714. FUNCTION(qup1_se4_l5),
  1715. FUNCTION(qup1_se4_l6),
  1716. FUNCTION(qup1_se5_l0),
  1717. FUNCTION(qup1_se5_l1),
  1718. FUNCTION(qup1_se5_l2),
  1719. FUNCTION(qup1_se5_l3),
  1720. FUNCTION(qup1_se6_l0),
  1721. FUNCTION(qup1_se6_l1),
  1722. FUNCTION(qup1_se6_l2_mira),
  1723. FUNCTION(qup1_se6_l2_mirb),
  1724. FUNCTION(qup1_se6_l3_mira),
  1725. FUNCTION(qup1_se6_l3_mirb),
  1726. FUNCTION(sd_write_protect),
  1727. FUNCTION(sdc2_data),
  1728. FUNCTION(sdc2_clk),
  1729. FUNCTION(sdc2_cmd),
  1730. FUNCTION(sdc2_fb_clk),
  1731. FUNCTION(tb_trig_sdc1),
  1732. FUNCTION(tb_trig_sdc2),
  1733. FUNCTION(tgu_ch0_trigout),
  1734. FUNCTION(tgu_ch1_trigout),
  1735. FUNCTION(tmess_prng0),
  1736. FUNCTION(tmess_prng1),
  1737. FUNCTION(tmess_prng2),
  1738. FUNCTION(tmess_prng3),
  1739. FUNCTION(tsense_pwm1),
  1740. FUNCTION(tsense_pwm2),
  1741. FUNCTION(uim0_clk),
  1742. FUNCTION(uim0_data),
  1743. FUNCTION(uim0_present),
  1744. FUNCTION(uim0_reset),
  1745. FUNCTION(uim1_clk_mira),
  1746. FUNCTION(uim1_clk_mirb),
  1747. FUNCTION(uim1_data_mira),
  1748. FUNCTION(uim1_data_mirb),
  1749. FUNCTION(uim1_present_mira),
  1750. FUNCTION(uim1_present_mirb),
  1751. FUNCTION(uim1_reset_mira),
  1752. FUNCTION(uim1_reset_mirb),
  1753. FUNCTION(usb0_hs),
  1754. FUNCTION(usb0_phy_ps),
  1755. FUNCTION(vfr_0),
  1756. FUNCTION(vfr_1),
  1757. FUNCTION(vsense_trigger_mirnat),
  1758. FUNCTION(wcn_sw),
  1759. FUNCTION(wcn_sw_ctrl),
  1760. };
  1761. /* Every pin is maintained as a single group, and missing or non-existing pin
  1762. * would be maintained as dummy group to synchronize pin group index with
  1763. * pin descriptor registered with pinctrl core.
  1764. * Clients would not be able to request these dummy pin groups.
  1765. */
  1766. static const struct msm_pingroup volcano_groups[] = {
  1767. [0] = PINGROUP(0, qup0_se0_l0, ibi_i3c, aoss_cti, NA, NA, NA, NA, NA,
  1768. NA, NA, NA, 0, -1),
  1769. [1] = PINGROUP(1, qup0_se0_l1, ibi_i3c, aoss_cti, NA, NA, NA, NA, NA,
  1770. NA, NA, NA, 0, -1),
  1771. [2] = PINGROUP(2, qup0_se0_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1772. 0, -1),
  1773. [3] = PINGROUP(3, qup0_se0_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1774. 0, -1),
  1775. [4] = PINGROUP(4, qup0_se1_l0, ibi_i3c, aoss_cti, sd_write_protect,
  1776. qdss_cti, NA, NA, NA, NA, NA, NA, 0, -1),
  1777. [5] = PINGROUP(5, qup0_se1_l1, ibi_i3c, aoss_cti, qdss_cti, NA, NA, NA,
  1778. NA, NA, NA, NA, 0, -1),
  1779. [6] = PINGROUP(6, qup0_se1_l2, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA,
  1780. NA, 0, -1),
  1781. [7] = PINGROUP(7, qup0_se1_l3, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA,
  1782. NA, 0, -1),
  1783. [8] = PINGROUP(8, qup0_se2_l0, qspi0_data0, NA, phase_flag31, NA, NA,
  1784. NA, NA, NA, NA, NA, 0, -1),
  1785. [9] = PINGROUP(9, qup0_se2_l1, qspi0_data1, NA, phase_flag30, NA, NA,
  1786. NA, NA, NA, NA, NA, 0, -1),
  1787. [10] = PINGROUP(10, qup0_se2_l2, qspi0_clk, NA, NA, NA, NA, NA, NA, NA,
  1788. NA, NA, 0, -1),
  1789. [11] = PINGROUP(11, qup0_se2_l3, qspi0_cs0_n, NA, phase_flag29, NA, NA,
  1790. NA, NA, NA, NA, NA, 0, -1),
  1791. [12] = PINGROUP(12, qup0_se2_l4, qspi0_cs1_n, mdp_vsync0_out,
  1792. mdp_vsync1_out, NA, phase_flag28, NA, NA, NA, NA, NA, 0,
  1793. -1),
  1794. [13] = PINGROUP(13, qup0_se2_l5, qspi0_data2, NA, phase_flag27, NA, NA,
  1795. NA, NA, NA, NA, NA, 0, -1),
  1796. [14] = PINGROUP(14, qup0_se2_l6, qspi0_data3, NA, phase_flag26, NA, NA,
  1797. NA, NA, NA, NA, NA, 0, -1),
  1798. [15] = PINGROUP(15, qup0_se3_l0, i2s0_sck, NA, phase_flag25, NA, NA, NA,
  1799. NA, NA, NA, NA, 0, -1),
  1800. [16] = PINGROUP(16, qup0_se3_l1, i2s0_data0, NA, phase_flag24, NA, NA,
  1801. NA, NA, NA, NA, NA, 0, -1),
  1802. [17] = PINGROUP(17, qup0_se3_l2, i2s0_data1, tsense_pwm1, tsense_pwm2,
  1803. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1804. [18] = PINGROUP(18, qup0_se3_l3, i2s0_ws, NA, phase_flag23, NA, NA, NA,
  1805. NA, NA, NA, NA, 0, -1),
  1806. [19] = PINGROUP(19, qup0_se4_l0, mdp_vsync, NA, NA, NA, NA, NA, NA, NA,
  1807. NA, NA, 0, -1),
  1808. [20] = PINGROUP(20, qup0_se4_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1809. 0, -1),
  1810. [21] = PINGROUP(21, qup0_se4_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1811. 0, -1),
  1812. [22] = PINGROUP(22, qup0_se4_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1813. 0, -1),
  1814. [23] = PINGROUP(23, qup0_se5_l0, qup0_se3_l4, audio_ext_mclk0, NA,
  1815. atest_usb00, ddr_pxi0, NA, NA, NA, NA, NA, 0, -1),
  1816. [24] = PINGROUP(24, qup0_se5_l1, qup0_se3_l5, audio_ext_mclk1,
  1817. audio_ref_clk, dbg_out_clk, NA, atest_usb01, ddr_pxi0,
  1818. NA, NA, NA, 0, -1),
  1819. [25] = PINGROUP(25, qup0_se5_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1820. 0, -1),
  1821. [26] = PINGROUP(26, qup0_se5_l3, qup0_se3_l6, pll_bist_sync, NA,
  1822. phase_flag22, NA, NA, NA, NA, NA, NA, 0, -1),
  1823. [27] = PINGROUP(27, qup0_se6_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1824. 0, -1),
  1825. [28] = PINGROUP(28, qup0_se6_l1, gcc_gp2, NA, NA, NA, NA, NA, NA, NA,
  1826. NA, NA, 0, -1),
  1827. [29] = PINGROUP(29, qup0_se6_l2, gcc_gp1, NA, NA, NA, NA, NA, NA, NA,
  1828. NA, NA, 0, -1),
  1829. [30] = PINGROUP(30, qup0_se6_l3, gcc_gp2, NA, NA, NA, NA, NA, NA, NA,
  1830. NA, NA, 0, -1),
  1831. [31] = PINGROUP(31, qup0_se6_l4, gcc_gp3, NA, NA, NA, NA, NA, NA, NA,
  1832. NA, NA, 0, -1),
  1833. [32] = PINGROUP(32, qup1_se0_l0, ibi_i3c, gcc_gp1, NA, NA, NA, NA, NA,
  1834. NA, NA, NA, 0, -1),
  1835. [33] = PINGROUP(33, qup1_se0_l1, ibi_i3c, gcc_gp3, NA, NA, NA, NA, NA,
  1836. NA, NA, NA, 0, -1),
  1837. [34] = PINGROUP(34, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1838. -1),
  1839. [35] = PINGROUP(35, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1840. -1),
  1841. [36] = PINGROUP(36, qup1_se1_l0, qup1_se2_l4, ibi_i3c, pll_clk_aux, NA,
  1842. NA, NA, NA, NA, NA, NA, 0, -1),
  1843. [37] = PINGROUP(37, qup1_se1_l1, qup1_se2_l5, ibi_i3c, mdp_vsync, NA,
  1844. NA, NA, NA, NA, NA, NA, 0, -1),
  1845. [38] = PINGROUP(38, qup1_se1_l2, qup1_se2_l6, NA, phase_flag21, NA, NA,
  1846. NA, NA, NA, NA, NA, 0, -1),
  1847. [39] = PINGROUP(39, qup1_se1_l3, RESOUT_GPIO_N, NA, phase_flag20, NA,
  1848. NA, NA, NA, NA, NA, NA, 0, -1),
  1849. [40] = PINGROUP(40, qup1_se2_l0, mdp_vsync2_out, mdp_vsync3_out, NA,
  1850. phase_flag19, qdss_gpio0, NA, NA, NA, NA, NA, 0, -1),
  1851. [41] = PINGROUP(41, qup1_se2_l1, NA, phase_flag18, qdss_gpio1, NA, NA,
  1852. NA, NA, NA, NA, NA, 0, -1),
  1853. [42] = PINGROUP(42, qup1_se2_l2, NA, phase_flag17, qdss_gpio2, NA, NA,
  1854. NA, NA, NA, NA, NA, 0, -1),
  1855. [43] = PINGROUP(43, qup1_se2_l3, NA, NA, phase_flag16, qdss_gpio3, NA,
  1856. NA, NA, NA, NA, NA, 0, -1),
  1857. [44] = PINGROUP(44, NA, NA, phase_flag15, qdss_cti, atest_char0, NA, NA,
  1858. NA, NA, NA, NA, 0, -1),
  1859. [45] = PINGROUP(45, wcn_sw_ctrl, mdp_vsync_e, NA, NA, phase_flag14,
  1860. qdss_cti, atest_char1, NA, NA, NA, NA, 0, -1),
  1861. [46] = PINGROUP(46, host2wlan_sol, NA, phase_flag13, qdss_gpio4,
  1862. atest_char2, NA, NA, NA, NA, NA, NA, 0, -1),
  1863. [47] = PINGROUP(47, ddr_bist_stop, NA, phase_flag12, qdss_gpio5,
  1864. atest_char3, NA, NA, NA, NA, NA, NA, 0, -1),
  1865. [48] = PINGROUP(48, qup1_se4_l0, NA, phase_flag11, qdss_gpio6, NA, NA,
  1866. NA, NA, NA, NA, NA, 0, -1),
  1867. [49] = PINGROUP(49, qup1_se4_l1, NA, phase_flag10, qdss_gpio7, NA, NA,
  1868. NA, NA, NA, NA, NA, 0, -1),
  1869. [50] = PINGROUP(50, qup1_se4_l2, qdss_gpio8, ddr_pxi1, NA, NA, NA, NA,
  1870. NA, NA, NA, NA, 0, -1),
  1871. [51] = PINGROUP(51, qup1_se4_l3, qdss_gpio9, ddr_pxi1, NA, NA, NA, NA,
  1872. NA, NA, NA, NA, 0, -1),
  1873. [52] = PINGROUP(52, qup1_se4_l4, wcn_sw, qdss_gpio10, NA, NA, NA, NA,
  1874. NA, NA, NA, NA, 0, -1),
  1875. [53] = PINGROUP(53, qup1_se4_l5, qdss_gpio11, NA, NA, NA, NA, NA, NA,
  1876. NA, NA, NA, 0, -1),
  1877. [54] = PINGROUP(54, qup1_se4_l6, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  1878. NA, NA, 0, -1),
  1879. [55] = PINGROUP(55, qup1_se5_l0, qup1_se6_l2_mira, NA, NA, NA, NA, NA,
  1880. NA, NA, NA, NA, 0, -1),
  1881. [56] = PINGROUP(56, qup1_se5_l1, qup1_se6_l3_mira, vfr_0, ddr_bist_fail,
  1882. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1883. [57] = PINGROUP(57, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1884. -1),
  1885. [58] = PINGROUP(58, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1886. -1),
  1887. [59] = PINGROUP(59, qup1_se6_l0, NA, qup1_se5_l2, NA, NA, NA, NA, NA,
  1888. NA, NA, NA, 0, -1),
  1889. [60] = PINGROUP(60, qup1_se6_l1, NA, qup1_se5_l3, atest_usb0, NA, NA,
  1890. NA, NA, NA, NA, NA, 0, -1),
  1891. [61] = PINGROUP(61, sdc2_cmd, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1892. -1),
  1893. [62] = PINGROUP(62, sdc2_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1894. -1),
  1895. [63] = PINGROUP(63, coex_uart1_tx, NA, phase_flag5, atest_char_start,
  1896. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1897. [64] = PINGROUP(64, coex_uart1_rx, NA, phase_flag0, NA, NA, NA, NA, NA,
  1898. NA, NA, NA, 0, -1),
  1899. [65] = PINGROUP(65, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1900. [66] = PINGROUP(66, prng_rosc0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1901. 0, -1),
  1902. [67] = PINGROUP(67, pcie0_clk_req_n, prng_rosc1, NA, NA, NA, NA, NA, NA,
  1903. NA, NA, NA, 0, -1),
  1904. [68] = PINGROUP(68, prng_rosc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1905. 0, -1),
  1906. [69] = PINGROUP(69, prng_rosc3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1907. 0, -1),
  1908. [70] = PINGROUP(70, pcie1_clk_req_n, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1909. NA, 0, -1),
  1910. [71] = PINGROUP(71, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1911. [72] = PINGROUP(72, SDC1_RCLK, mdp_vsync, NA, NA, NA, NA, NA, NA, NA,
  1912. NA, NA, 0, -1),
  1913. [73] = PINGROUP(73, SDC1_DATA4, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1914. 0, -1),
  1915. [74] = PINGROUP(74, SDC1_DATA5, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1916. 0, -1),
  1917. [75] = PINGROUP(75, SDC1_DATA6, dp0_hot, NA, NA, NA, NA, NA, NA, NA, NA,
  1918. NA, 0, -1),
  1919. [76] = PINGROUP(76, SDC1_DATA7, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1920. 0, -1),
  1921. [77] = PINGROUP(77, SDC1_CLK, cci_timer0, NA, NA, NA, NA, NA, NA, NA,
  1922. NA, NA, 0, -1),
  1923. [78] = PINGROUP(78, SDC1_CMD, tb_trig_sdc2, NA, NA, NA, NA, NA, NA, NA,
  1924. NA, NA, 0, -1),
  1925. [79] = PINGROUP(79, SDC1_DATA0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1926. 0, -1),
  1927. [80] = PINGROUP(80, SDC1_DATA1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1928. 0, -1),
  1929. [81] = PINGROUP(81, SDC1_DATA2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1930. 0, -1),
  1931. [82] = PINGROUP(82, SDC1_DATA3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1932. 0, -1),
  1933. [83] = PINGROUP(83, cam_mclk, cci_timer1, tmess_prng1, qdss_gpio12, NA,
  1934. NA, NA, NA, NA, NA, NA, 0, -1),
  1935. [84] = PINGROUP(84, cam_mclk, cci_timer2, tmess_prng2, qdss_gpio13, NA,
  1936. NA, NA, NA, NA, NA, NA, 0, -1),
  1937. [85] = PINGROUP(85, cam_mclk, cci_timer3, tmess_prng3, qdss_gpio14, NA,
  1938. NA, NA, NA, NA, NA, NA, 0, -1),
  1939. [86] = PINGROUP(86, cam_mclk, cci_async_in0, tmess_prng0, qdss_gpio15,
  1940. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1941. [87] = PINGROUP(87, cam_mclk, tb_trig_sdc1, tgu_ch0_trigout, qdss_cti,
  1942. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1943. [88] = PINGROUP(88, cci_i2c_sda0, tgu_ch1_trigout, NA, qdss_gpio, NA,
  1944. NA, NA, NA, NA, NA, NA, 0, -1),
  1945. [89] = PINGROUP(89, cci_i2c_scl0, NA, qdss_gpio, NA, NA, NA, NA, NA, NA,
  1946. NA, NA, 0, -1),
  1947. [90] = PINGROUP(90, cci_i2c_sda1, qup1_se6_l2_mirb, NA, NA, NA, NA, NA,
  1948. NA, NA, NA, NA, 0, -1),
  1949. [91] = PINGROUP(91, cci_i2c_scl1, qup1_se6_l3_mirb, NA, NA, NA, NA, NA,
  1950. NA, NA, NA, NA, 0, -1),
  1951. [92] = PINGROUP(92, cci_i2c_sda2, qup1_se3_l0, NA, NA, NA, NA, NA, NA,
  1952. NA, NA, NA, 0, -1),
  1953. [93] = PINGROUP(93, cci_i2c_scl2, qup1_se3_l1, NA, NA, NA, NA, NA, NA,
  1954. NA, NA, NA, 0, -1),
  1955. [94] = PINGROUP(94, cci_i2c_sda3, qup1_se3_l2, qup1_se0_l2, NA,
  1956. vsense_trigger_mirnat, NA, NA, NA, NA, NA, NA, 0, -1),
  1957. [95] = PINGROUP(95, cci_i2c_scl3, qup1_se3_l3, qup1_se0_l3, NA, NA, NA,
  1958. NA, NA, NA, NA, NA, 0, -1),
  1959. [96] = PINGROUP(96, uim0_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1960. 0, -1),
  1961. [97] = PINGROUP(97, uim0_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1962. -1),
  1963. [98] = PINGROUP(98, uim0_reset, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1964. 0, -1),
  1965. [99] = PINGROUP(99, uim0_present, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1966. NA, 0, -1),
  1967. [100] = PINGROUP(100, uim1_data_mirb, NA, NA, NA, NA, NA, NA, NA, NA,
  1968. NA, NA, 0, -1),
  1969. [101] = PINGROUP(101, uim1_clk_mirb, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1970. NA, 0, -1),
  1971. [102] = PINGROUP(102, uim1_reset_mirb, NA, NA, NA, NA, NA, NA, NA, NA,
  1972. NA, NA, 0, -1),
  1973. [103] = PINGROUP(103, uim1_present_mirb, NA, NA, NA, NA, NA, NA, NA, NA,
  1974. NA, NA, 0, -1),
  1975. [104] = PINGROUP(104, qlink0_request, NA, NA, NA, NA, NA, NA, NA, NA,
  1976. NA, NA, 0, -1),
  1977. [105] = PINGROUP(105, qlink0_enable, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1978. NA, 0, -1),
  1979. [106] = PINGROUP(106, qlink0_wmss, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1980. NA, 0, -1),
  1981. [107] = PINGROUP(107, qlink1_request, NA, NA, NA, NA, NA, NA, NA, NA,
  1982. NA, NA, 0, -1),
  1983. [108] = PINGROUP(108, qlink1_enable, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1984. NA, 0, -1),
  1985. [109] = PINGROUP(109, qlink1_wmss, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1986. NA, 0, -1),
  1987. [110] = PINGROUP(110, uim1_data_mira, NA, NA, NA, NA, NA, NA, NA, NA,
  1988. NA, NA, 0, -1),
  1989. [111] = PINGROUP(111, uim1_clk_mira, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1990. NA, 0, -1),
  1991. [112] = PINGROUP(112, uim1_reset_mira, NA, NA, NA, NA, NA, NA, NA, NA,
  1992. NA, NA, 0, -1),
  1993. [113] = PINGROUP(113, uim1_present_mira, NA, NA, NA, NA, NA, NA, NA, NA,
  1994. NA, NA, 0, -1),
  1995. [114] = PINGROUP(114, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1996. -1),
  1997. [115] = PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1998. -1),
  1999. [116] = PINGROUP(116, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2000. -1),
  2001. [117] = PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2002. -1),
  2003. [118] = PINGROUP(118, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2004. -1),
  2005. [119] = PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2006. -1),
  2007. [120] = PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2008. -1),
  2009. [121] = PINGROUP(121, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2010. -1),
  2011. [122] = PINGROUP(122, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2012. -1),
  2013. [123] = PINGROUP(123, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2014. -1),
  2015. [124] = PINGROUP(124, nav_gpio0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2016. 0, -1),
  2017. [125] = PINGROUP(125, nav_gpio1, usb0_hs, NA, NA, NA, NA, NA, NA, NA,
  2018. NA, NA, 0, -1),
  2019. [126] = PINGROUP(126, NA, nav_gpio2, vfr_1, NA, NA, NA, NA, NA, NA, NA,
  2020. NA, 0, -1),
  2021. [127] = PINGROUP(127, NA, NA, phase_flag9, NA, NA, NA, NA, NA, NA, NA,
  2022. NA, 0, -1),
  2023. [128] = PINGROUP(128, sdc2_fb_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2024. NA, 0, -1),
  2025. [129] = PINGROUP(129, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2026. 0, -1),
  2027. [130] = PINGROUP(130, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2028. -1),
  2029. [131] = PINGROUP(131, usb0_phy_ps, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2030. NA, 0, -1),
  2031. [132] = PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2032. -1),
  2033. [133] = PINGROUP(133, ddr_bist_start, NA, NA, NA, NA, NA, NA, NA, NA,
  2034. NA, egpio, 0, -1),
  2035. [134] = PINGROUP(134, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2036. -1),
  2037. [135] = PINGROUP(135, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2038. -1),
  2039. [136] = PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2040. -1),
  2041. [137] = PINGROUP(137, ddr_bist_complete, NA, NA, NA, NA, NA, NA, NA, NA,
  2042. NA, egpio, 0, -1),
  2043. [138] = PINGROUP(138, NA, phase_flag8, qdss_gpio12, NA, NA, NA, NA, NA,
  2044. NA, NA, egpio, 0, -1),
  2045. [139] = PINGROUP(139, NA, phase_flag7, qdss_gpio13, NA, NA, NA, NA, NA,
  2046. NA, NA, egpio, 0, -1),
  2047. [140] = PINGROUP(140, NA, phase_flag6, qdss_gpio14, NA, NA, NA, NA, NA,
  2048. NA, NA, egpio, 0, -1),
  2049. [141] = PINGROUP(141, jitter_bist, qdss_gpio15, NA, NA, NA, NA, NA, NA,
  2050. NA, NA, egpio, 0, -1),
  2051. [142] = PINGROUP(142, NA, phase_flag4, NA, NA, NA, NA, NA, NA, NA, NA,
  2052. egpio, 0, -1),
  2053. [143] = PINGROUP(143, NA, phase_flag3, NA, NA, NA, NA, NA, NA, NA, NA,
  2054. egpio, 0, -1),
  2055. [144] = PINGROUP(144, NA, phase_flag1, NA, NA, NA, NA, NA, NA, NA, NA,
  2056. egpio, 0, -1),
  2057. [145] = PINGROUP(145, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2058. -1),
  2059. [146] = PINGROUP(146, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2060. -1),
  2061. [147] = PINGROUP(147, NA, phase_flag2, NA, NA, NA, NA, NA, NA, NA, NA,
  2062. egpio, 0, -1),
  2063. [148] = PINGROUP(148, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2064. -1),
  2065. [149] = PINGROUP(149, NA, qdss_gpio10, NA, NA, NA, NA, NA, NA, NA, NA,
  2066. egpio, 0, -1),
  2067. [150] = PINGROUP(150, NA, qdss_gpio11, NA, NA, NA, NA, NA, NA, NA, NA,
  2068. egpio, 0, -1),
  2069. [151] = PINGROUP(151, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2070. -1),
  2071. [152] = PINGROUP(152, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2072. -1),
  2073. [153] = PINGROUP(153, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2074. -1),
  2075. [154] = PINGROUP(154, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2076. -1),
  2077. [155] = PINGROUP(155, NA, qdss_gpio, NA, NA, NA, NA, NA, NA, NA, NA,
  2078. egpio, 0, -1),
  2079. [156] = PINGROUP(156, NA, qdss_gpio, NA, NA, NA, NA, NA, NA, NA, NA,
  2080. egpio, 0, -1),
  2081. [157] = PINGROUP(157, NA, qdss_gpio0, NA, NA, NA, NA, NA, NA, NA, NA,
  2082. egpio, 0, -1),
  2083. [158] = PINGROUP(158, qdss_gpio1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2084. egpio, 0, -1),
  2085. [159] = PINGROUP(159, qdss_gpio2, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2086. egpio, 0, -1),
  2087. [160] = PINGROUP(160, qdss_gpio3, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2088. egpio, 0, -1),
  2089. [161] = PINGROUP(161, qdss_gpio4, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2090. egpio, 0, -1),
  2091. [162] = PINGROUP(162, qdss_gpio5, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2092. egpio, 0, -1),
  2093. [163] = PINGROUP(163, qdss_gpio6, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2094. egpio, 0, -1),
  2095. [164] = PINGROUP(164, qdss_gpio7, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2096. egpio, 0, -1),
  2097. [165] = PINGROUP(165, qdss_gpio8, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2098. egpio, 0, -1),
  2099. [166] = PINGROUP(166, qdss_gpio9, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2100. egpio, 0, -1),
  2101. [167] = UFS_RESET(ufs_reset, 0x1B4004, 0x1B5000),
  2102. [168] = SDC_QDSD_PINGROUP(sdc2_clk, 0x1AB000, 0, 6),
  2103. [169] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x1AB000, 12, 3),
  2104. [170] = SDC_QDSD_PINGROUP(sdc2_data, 0x1AB000, 9, 0),
  2105. };
  2106. static struct pinctrl_qup volcano_qup_regs[] = {};
  2107. static const struct msm_gpio_wakeirq_map volcano_pdc_map[] = {
  2108. { 0, 122 }, { 3, 95 }, { 4, 100 }, { 6, 52 }, { 7, 119 },
  2109. { 8, 92 }, { 11, 54 }, { 12, 56 }, { 13, 64 }, { 14, 75 },
  2110. { 15, 82 }, { 18, 89 }, { 19, 90 }, { 22, 93 }, { 23, 94 },
  2111. { 26, 91 }, { 27, 57 }, { 30, 138 }, { 31, 96 }, { 32, 67 },
  2112. { 34, 128 }, { 35, 98 }, { 36, 99 }, { 38, 101 }, { 39, 102 },
  2113. { 40, 69 }, { 43, 103 }, { 44, 104 }, { 45, 126 }, { 47, 59 },
  2114. { 48, 106 }, { 51, 107 }, { 52, 108 }, { 54, 110 }, { 55, 140 },
  2115. { 56, 58 }, { 57, 129 }, { 58, 111 }, { 59, 112 }, { 60, 115 },
  2116. { 61, 113 }, { 62, 114 }, { 64, 105 }, { 65, 55 }, { 67, 116 },
  2117. { 68, 117 }, { 70, 120 }, { 71, 121 }, { 72, 97 }, { 73, 109 },
  2118. { 74, 118 }, { 75, 132 }, { 76, 144 }, { 77, 127 }, { 78, 133 },
  2119. { 79, 134 }, { 80, 135 }, { 81, 124 }, { 82, 136 }, { 87, 60 },
  2120. { 91, 123 }, { 92, 125 }, { 95, 139 }, { 99, 53 }, { 103, 61 },
  2121. { 104, 71 }, { 107, 137 }, { 113, 51 }, { 124, 72 }, { 125, 62 },
  2122. { 126, 73 }, { 128, 63 }, { 129, 130 }, { 130, 65 }, { 131, 66 },
  2123. { 133, 68 }, { 136, 70 }, { 143, 78 }, { 144, 79 }, { 145, 142 },
  2124. { 148, 81 }, { 149, 76 }, { 150, 83 }, { 151, 84 }, { 153, 74 },
  2125. { 155, 131 }, { 158, 85 }, { 159, 77 }, { 161, 80 }, { 162, 143 },
  2126. { 163, 86 }, { 164, 87 }, { 166, 88 },
  2127. };
  2128. static const struct msm_pinctrl_soc_data volcano_pinctrl = {
  2129. .pins = volcano_pins,
  2130. .npins = ARRAY_SIZE(volcano_pins),
  2131. .functions = volcano_functions,
  2132. .nfunctions = ARRAY_SIZE(volcano_functions),
  2133. .groups = volcano_groups,
  2134. .ngroups = ARRAY_SIZE(volcano_groups),
  2135. .ngpios = 168,
  2136. .qup_regs = volcano_qup_regs,
  2137. .nqup_regs = ARRAY_SIZE(volcano_qup_regs),
  2138. .wakeirq_map = volcano_pdc_map,
  2139. .nwakeirq_map = ARRAY_SIZE(volcano_pdc_map),
  2140. .egpio_func = 11,
  2141. };
  2142. static const struct msm_pinctrl_soc_data volcano_vm_pinctrl = {
  2143. .pins = volcano_pins,
  2144. .npins = ARRAY_SIZE(volcano_pins),
  2145. .functions = volcano_functions,
  2146. .nfunctions = ARRAY_SIZE(volcano_functions),
  2147. .groups = volcano_groups,
  2148. .ngroups = ARRAY_SIZE(volcano_groups),
  2149. .ngpios = 168,
  2150. .egpio_func = 11,
  2151. };
  2152. static const struct of_device_id volcano_pinctrl_of_match[] = {
  2153. { .compatible = "qcom,volcano-pinctrl", .data = &volcano_pinctrl },
  2154. { .compatible = "qcom,volcano-vm-pinctrl", .data = &volcano_vm_pinctrl },
  2155. {},
  2156. };
  2157. static int volcano_pinctrl_probe(struct platform_device *pdev)
  2158. {
  2159. const struct msm_pinctrl_soc_data *pinctrl_data;
  2160. struct device *dev = &pdev->dev;
  2161. pinctrl_data = of_device_get_match_data(dev);
  2162. if (!pinctrl_data)
  2163. return -EINVAL;
  2164. return msm_pinctrl_probe(pdev, pinctrl_data);
  2165. }
  2166. static struct platform_driver volcano_pinctrl_driver = {
  2167. .driver = {
  2168. .name = "volcano-pinctrl",
  2169. .of_match_table = volcano_pinctrl_of_match,
  2170. },
  2171. .probe = volcano_pinctrl_probe,
  2172. .remove = msm_pinctrl_remove,
  2173. };
  2174. static int __init volcano_pinctrl_init(void)
  2175. {
  2176. return platform_driver_register(&volcano_pinctrl_driver);
  2177. }
  2178. arch_initcall(volcano_pinctrl_init);
  2179. static void __exit volcano_pinctrl_exit(void)
  2180. {
  2181. platform_driver_unregister(&volcano_pinctrl_driver);
  2182. }
  2183. module_exit(volcano_pinctrl_exit);
  2184. MODULE_DESCRIPTION("QTI volcano pinctrl driver");
  2185. MODULE_LICENSE("GPL");
  2186. MODULE_DEVICE_TABLE(of, volcano_pinctrl_of_match);
  2187. MODULE_SOFTDEP("pre: qcom_tlmm_vm_irqchip");