pinctrl-kalama.c 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #include <linux/module.h>
  7. #include <linux/of.h>
  8. #include <linux/of_device.h>
  9. #include <linux/platform_device.h>
  10. #include <linux/pinctrl/pinctrl.h>
  11. #include "pinctrl-msm.h"
  12. #define FUNCTION(fname) \
  13. [msm_mux_##fname] = { \
  14. .name = #fname, \
  15. .groups = fname##_groups, \
  16. .ngroups = ARRAY_SIZE(fname##_groups), \
  17. }
  18. #define REG_BASE 0x100000
  19. #define REG_SIZE 0x1000
  20. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, wake_off, bit) \
  21. { \
  22. .name = "gpio" #id, \
  23. .pins = gpio##id##_pins, \
  24. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  25. .ctl_reg = REG_BASE + REG_SIZE * id, \
  26. .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \
  27. .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  28. .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \
  29. .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  30. .mux_bit = 2, \
  31. .pull_bit = 0, \
  32. .drv_bit = 6, \
  33. .egpio_enable = 12, \
  34. .egpio_present = 11, \
  35. .oe_bit = 9, \
  36. .in_bit = 0, \
  37. .out_bit = 1, \
  38. .intr_enable_bit = 0, \
  39. .intr_status_bit = 0, \
  40. .intr_target_bit = 5, \
  41. .intr_target_kpss_val = 3, \
  42. .intr_raw_status_bit = 4, \
  43. .intr_polarity_bit = 1, \
  44. .intr_detection_bit = 2, \
  45. .intr_detection_width = 2, \
  46. .wake_reg = REG_BASE + wake_off, \
  47. .wake_bit = bit, \
  48. .funcs = (int[]){ \
  49. msm_mux_gpio, /* gpio mode */ \
  50. msm_mux_##f1, \
  51. msm_mux_##f2, \
  52. msm_mux_##f3, \
  53. msm_mux_##f4, \
  54. msm_mux_##f5, \
  55. msm_mux_##f6, \
  56. msm_mux_##f7, \
  57. msm_mux_##f8, \
  58. msm_mux_##f9 \
  59. }, \
  60. .nfuncs = 10, \
  61. }
  62. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  63. { \
  64. .name = #pg_name, \
  65. .pins = pg_name##_pins, \
  66. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  67. .ctl_reg = ctl, \
  68. .io_reg = 0, \
  69. .intr_cfg_reg = 0, \
  70. .intr_status_reg = 0, \
  71. .intr_target_reg = 0, \
  72. .mux_bit = -1, \
  73. .pull_bit = pull, \
  74. .drv_bit = drv, \
  75. .oe_bit = -1, \
  76. .in_bit = -1, \
  77. .out_bit = -1, \
  78. .intr_enable_bit = -1, \
  79. .intr_status_bit = -1, \
  80. .intr_target_bit = -1, \
  81. .intr_raw_status_bit = -1, \
  82. .intr_polarity_bit = -1, \
  83. .intr_detection_bit = -1, \
  84. .intr_detection_width = -1, \
  85. }
  86. #define UFS_RESET(pg_name, offset) \
  87. { \
  88. .name = #pg_name, \
  89. .pins = pg_name##_pins, \
  90. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  91. .ctl_reg = offset, \
  92. .io_reg = offset + 0x4, \
  93. .intr_cfg_reg = 0, \
  94. .intr_status_reg = 0, \
  95. .intr_target_reg = 0, \
  96. .mux_bit = -1, \
  97. .pull_bit = 3, \
  98. .drv_bit = 0, \
  99. .oe_bit = -1, \
  100. .in_bit = -1, \
  101. .out_bit = 0, \
  102. .intr_enable_bit = -1, \
  103. .intr_status_bit = -1, \
  104. .intr_target_bit = -1, \
  105. .intr_raw_status_bit = -1, \
  106. .intr_polarity_bit = -1, \
  107. .intr_detection_bit = -1, \
  108. .intr_detection_width = -1, \
  109. }
  110. #define QUP_I3C(qup_mode, qup_offset) \
  111. { \
  112. .mode = qup_mode, \
  113. .offset = REG_BASE + qup_offset, \
  114. }
  115. #define QUP_I3C_8_MODE_OFFSET 0xEA000
  116. #define QUP_I3C_9_MODE_OFFSET 0xEB000
  117. #define QUP_I3C_15_MODE_OFFSET 0xED000
  118. #define QUP_I3C_16_MODE_OFFSET 0xEC000
  119. static const struct pinctrl_pin_desc kalama_pins[] = {
  120. PINCTRL_PIN(0, "GPIO_0"),
  121. PINCTRL_PIN(1, "GPIO_1"),
  122. PINCTRL_PIN(2, "GPIO_2"),
  123. PINCTRL_PIN(3, "GPIO_3"),
  124. PINCTRL_PIN(4, "GPIO_4"),
  125. PINCTRL_PIN(5, "GPIO_5"),
  126. PINCTRL_PIN(6, "GPIO_6"),
  127. PINCTRL_PIN(7, "GPIO_7"),
  128. PINCTRL_PIN(8, "GPIO_8"),
  129. PINCTRL_PIN(9, "GPIO_9"),
  130. PINCTRL_PIN(10, "GPIO_10"),
  131. PINCTRL_PIN(11, "GPIO_11"),
  132. PINCTRL_PIN(12, "GPIO_12"),
  133. PINCTRL_PIN(13, "GPIO_13"),
  134. PINCTRL_PIN(14, "GPIO_14"),
  135. PINCTRL_PIN(15, "GPIO_15"),
  136. PINCTRL_PIN(16, "GPIO_16"),
  137. PINCTRL_PIN(17, "GPIO_17"),
  138. PINCTRL_PIN(18, "GPIO_18"),
  139. PINCTRL_PIN(19, "GPIO_19"),
  140. PINCTRL_PIN(20, "GPIO_20"),
  141. PINCTRL_PIN(21, "GPIO_21"),
  142. PINCTRL_PIN(22, "GPIO_22"),
  143. PINCTRL_PIN(23, "GPIO_23"),
  144. PINCTRL_PIN(24, "GPIO_24"),
  145. PINCTRL_PIN(25, "GPIO_25"),
  146. PINCTRL_PIN(26, "GPIO_26"),
  147. PINCTRL_PIN(27, "GPIO_27"),
  148. PINCTRL_PIN(28, "GPIO_28"),
  149. PINCTRL_PIN(29, "GPIO_29"),
  150. PINCTRL_PIN(30, "GPIO_30"),
  151. PINCTRL_PIN(31, "GPIO_31"),
  152. PINCTRL_PIN(32, "GPIO_32"),
  153. PINCTRL_PIN(33, "GPIO_33"),
  154. PINCTRL_PIN(34, "GPIO_34"),
  155. PINCTRL_PIN(35, "GPIO_35"),
  156. PINCTRL_PIN(36, "GPIO_36"),
  157. PINCTRL_PIN(37, "GPIO_37"),
  158. PINCTRL_PIN(38, "GPIO_38"),
  159. PINCTRL_PIN(39, "GPIO_39"),
  160. PINCTRL_PIN(40, "GPIO_40"),
  161. PINCTRL_PIN(41, "GPIO_41"),
  162. PINCTRL_PIN(42, "GPIO_42"),
  163. PINCTRL_PIN(43, "GPIO_43"),
  164. PINCTRL_PIN(44, "GPIO_44"),
  165. PINCTRL_PIN(45, "GPIO_45"),
  166. PINCTRL_PIN(46, "GPIO_46"),
  167. PINCTRL_PIN(47, "GPIO_47"),
  168. PINCTRL_PIN(48, "GPIO_48"),
  169. PINCTRL_PIN(49, "GPIO_49"),
  170. PINCTRL_PIN(50, "GPIO_50"),
  171. PINCTRL_PIN(51, "GPIO_51"),
  172. PINCTRL_PIN(52, "GPIO_52"),
  173. PINCTRL_PIN(53, "GPIO_53"),
  174. PINCTRL_PIN(54, "GPIO_54"),
  175. PINCTRL_PIN(55, "GPIO_55"),
  176. PINCTRL_PIN(56, "GPIO_56"),
  177. PINCTRL_PIN(57, "GPIO_57"),
  178. PINCTRL_PIN(58, "GPIO_58"),
  179. PINCTRL_PIN(59, "GPIO_59"),
  180. PINCTRL_PIN(60, "GPIO_60"),
  181. PINCTRL_PIN(61, "GPIO_61"),
  182. PINCTRL_PIN(62, "GPIO_62"),
  183. PINCTRL_PIN(63, "GPIO_63"),
  184. PINCTRL_PIN(64, "GPIO_64"),
  185. PINCTRL_PIN(65, "GPIO_65"),
  186. PINCTRL_PIN(66, "GPIO_66"),
  187. PINCTRL_PIN(67, "GPIO_67"),
  188. PINCTRL_PIN(68, "GPIO_68"),
  189. PINCTRL_PIN(69, "GPIO_69"),
  190. PINCTRL_PIN(70, "GPIO_70"),
  191. PINCTRL_PIN(71, "GPIO_71"),
  192. PINCTRL_PIN(72, "GPIO_72"),
  193. PINCTRL_PIN(73, "GPIO_73"),
  194. PINCTRL_PIN(74, "GPIO_74"),
  195. PINCTRL_PIN(75, "GPIO_75"),
  196. PINCTRL_PIN(76, "GPIO_76"),
  197. PINCTRL_PIN(77, "GPIO_77"),
  198. PINCTRL_PIN(78, "GPIO_78"),
  199. PINCTRL_PIN(79, "GPIO_79"),
  200. PINCTRL_PIN(80, "GPIO_80"),
  201. PINCTRL_PIN(81, "GPIO_81"),
  202. PINCTRL_PIN(82, "GPIO_82"),
  203. PINCTRL_PIN(83, "GPIO_83"),
  204. PINCTRL_PIN(84, "GPIO_84"),
  205. PINCTRL_PIN(85, "GPIO_85"),
  206. PINCTRL_PIN(86, "GPIO_86"),
  207. PINCTRL_PIN(87, "GPIO_87"),
  208. PINCTRL_PIN(88, "GPIO_88"),
  209. PINCTRL_PIN(89, "GPIO_89"),
  210. PINCTRL_PIN(90, "GPIO_90"),
  211. PINCTRL_PIN(91, "GPIO_91"),
  212. PINCTRL_PIN(92, "GPIO_92"),
  213. PINCTRL_PIN(93, "GPIO_93"),
  214. PINCTRL_PIN(94, "GPIO_94"),
  215. PINCTRL_PIN(95, "GPIO_95"),
  216. PINCTRL_PIN(96, "GPIO_96"),
  217. PINCTRL_PIN(97, "GPIO_97"),
  218. PINCTRL_PIN(98, "GPIO_98"),
  219. PINCTRL_PIN(99, "GPIO_99"),
  220. PINCTRL_PIN(100, "GPIO_100"),
  221. PINCTRL_PIN(101, "GPIO_101"),
  222. PINCTRL_PIN(102, "GPIO_102"),
  223. PINCTRL_PIN(103, "GPIO_103"),
  224. PINCTRL_PIN(104, "GPIO_104"),
  225. PINCTRL_PIN(105, "GPIO_105"),
  226. PINCTRL_PIN(106, "GPIO_106"),
  227. PINCTRL_PIN(107, "GPIO_107"),
  228. PINCTRL_PIN(108, "GPIO_108"),
  229. PINCTRL_PIN(109, "GPIO_109"),
  230. PINCTRL_PIN(110, "GPIO_110"),
  231. PINCTRL_PIN(111, "GPIO_111"),
  232. PINCTRL_PIN(112, "GPIO_112"),
  233. PINCTRL_PIN(113, "GPIO_113"),
  234. PINCTRL_PIN(114, "GPIO_114"),
  235. PINCTRL_PIN(115, "GPIO_115"),
  236. PINCTRL_PIN(116, "GPIO_116"),
  237. PINCTRL_PIN(117, "GPIO_117"),
  238. PINCTRL_PIN(118, "GPIO_118"),
  239. PINCTRL_PIN(119, "GPIO_119"),
  240. PINCTRL_PIN(120, "GPIO_120"),
  241. PINCTRL_PIN(121, "GPIO_121"),
  242. PINCTRL_PIN(122, "GPIO_122"),
  243. PINCTRL_PIN(123, "GPIO_123"),
  244. PINCTRL_PIN(124, "GPIO_124"),
  245. PINCTRL_PIN(125, "GPIO_125"),
  246. PINCTRL_PIN(126, "GPIO_126"),
  247. PINCTRL_PIN(127, "GPIO_127"),
  248. PINCTRL_PIN(128, "GPIO_128"),
  249. PINCTRL_PIN(129, "GPIO_129"),
  250. PINCTRL_PIN(130, "GPIO_130"),
  251. PINCTRL_PIN(131, "GPIO_131"),
  252. PINCTRL_PIN(132, "GPIO_132"),
  253. PINCTRL_PIN(133, "GPIO_133"),
  254. PINCTRL_PIN(134, "GPIO_134"),
  255. PINCTRL_PIN(135, "GPIO_135"),
  256. PINCTRL_PIN(136, "GPIO_136"),
  257. PINCTRL_PIN(137, "GPIO_137"),
  258. PINCTRL_PIN(138, "GPIO_138"),
  259. PINCTRL_PIN(139, "GPIO_139"),
  260. PINCTRL_PIN(140, "GPIO_140"),
  261. PINCTRL_PIN(141, "GPIO_141"),
  262. PINCTRL_PIN(142, "GPIO_142"),
  263. PINCTRL_PIN(143, "GPIO_143"),
  264. PINCTRL_PIN(144, "GPIO_144"),
  265. PINCTRL_PIN(145, "GPIO_145"),
  266. PINCTRL_PIN(146, "GPIO_146"),
  267. PINCTRL_PIN(147, "GPIO_147"),
  268. PINCTRL_PIN(148, "GPIO_148"),
  269. PINCTRL_PIN(149, "GPIO_149"),
  270. PINCTRL_PIN(150, "GPIO_150"),
  271. PINCTRL_PIN(151, "GPIO_151"),
  272. PINCTRL_PIN(152, "GPIO_152"),
  273. PINCTRL_PIN(153, "GPIO_153"),
  274. PINCTRL_PIN(154, "GPIO_154"),
  275. PINCTRL_PIN(155, "GPIO_155"),
  276. PINCTRL_PIN(156, "GPIO_156"),
  277. PINCTRL_PIN(157, "GPIO_157"),
  278. PINCTRL_PIN(158, "GPIO_158"),
  279. PINCTRL_PIN(159, "GPIO_159"),
  280. PINCTRL_PIN(160, "GPIO_160"),
  281. PINCTRL_PIN(161, "GPIO_161"),
  282. PINCTRL_PIN(162, "GPIO_162"),
  283. PINCTRL_PIN(163, "GPIO_163"),
  284. PINCTRL_PIN(164, "GPIO_164"),
  285. PINCTRL_PIN(165, "GPIO_165"),
  286. PINCTRL_PIN(166, "GPIO_166"),
  287. PINCTRL_PIN(167, "GPIO_167"),
  288. PINCTRL_PIN(168, "GPIO_168"),
  289. PINCTRL_PIN(169, "GPIO_169"),
  290. PINCTRL_PIN(170, "GPIO_170"),
  291. PINCTRL_PIN(171, "GPIO_171"),
  292. PINCTRL_PIN(172, "GPIO_172"),
  293. PINCTRL_PIN(173, "GPIO_173"),
  294. PINCTRL_PIN(174, "GPIO_174"),
  295. PINCTRL_PIN(175, "GPIO_175"),
  296. PINCTRL_PIN(176, "GPIO_176"),
  297. PINCTRL_PIN(177, "GPIO_177"),
  298. PINCTRL_PIN(178, "GPIO_178"),
  299. PINCTRL_PIN(179, "GPIO_179"),
  300. PINCTRL_PIN(180, "GPIO_180"),
  301. PINCTRL_PIN(181, "GPIO_181"),
  302. PINCTRL_PIN(182, "GPIO_182"),
  303. PINCTRL_PIN(183, "GPIO_183"),
  304. PINCTRL_PIN(184, "GPIO_184"),
  305. PINCTRL_PIN(185, "GPIO_185"),
  306. PINCTRL_PIN(186, "GPIO_186"),
  307. PINCTRL_PIN(187, "GPIO_187"),
  308. PINCTRL_PIN(188, "GPIO_188"),
  309. PINCTRL_PIN(189, "GPIO_189"),
  310. PINCTRL_PIN(190, "GPIO_190"),
  311. PINCTRL_PIN(191, "GPIO_191"),
  312. PINCTRL_PIN(192, "GPIO_192"),
  313. PINCTRL_PIN(193, "GPIO_193"),
  314. PINCTRL_PIN(194, "GPIO_194"),
  315. PINCTRL_PIN(195, "GPIO_195"),
  316. PINCTRL_PIN(196, "GPIO_196"),
  317. PINCTRL_PIN(197, "GPIO_197"),
  318. PINCTRL_PIN(198, "GPIO_198"),
  319. PINCTRL_PIN(199, "GPIO_199"),
  320. PINCTRL_PIN(200, "GPIO_200"),
  321. PINCTRL_PIN(201, "GPIO_201"),
  322. PINCTRL_PIN(202, "GPIO_202"),
  323. PINCTRL_PIN(203, "GPIO_203"),
  324. PINCTRL_PIN(204, "GPIO_204"),
  325. PINCTRL_PIN(205, "GPIO_205"),
  326. PINCTRL_PIN(206, "GPIO_206"),
  327. PINCTRL_PIN(207, "GPIO_207"),
  328. PINCTRL_PIN(208, "GPIO_208"),
  329. PINCTRL_PIN(209, "GPIO_209"),
  330. PINCTRL_PIN(210, "UFS_RESET"),
  331. PINCTRL_PIN(211, "SDC2_CLK"),
  332. PINCTRL_PIN(212, "SDC2_CMD"),
  333. PINCTRL_PIN(213, "SDC2_DATA"),
  334. };
  335. #define DECLARE_MSM_GPIO_PINS(pin) \
  336. static const unsigned int gpio##pin##_pins[] = { pin }
  337. DECLARE_MSM_GPIO_PINS(0);
  338. DECLARE_MSM_GPIO_PINS(1);
  339. DECLARE_MSM_GPIO_PINS(2);
  340. DECLARE_MSM_GPIO_PINS(3);
  341. DECLARE_MSM_GPIO_PINS(4);
  342. DECLARE_MSM_GPIO_PINS(5);
  343. DECLARE_MSM_GPIO_PINS(6);
  344. DECLARE_MSM_GPIO_PINS(7);
  345. DECLARE_MSM_GPIO_PINS(8);
  346. DECLARE_MSM_GPIO_PINS(9);
  347. DECLARE_MSM_GPIO_PINS(10);
  348. DECLARE_MSM_GPIO_PINS(11);
  349. DECLARE_MSM_GPIO_PINS(12);
  350. DECLARE_MSM_GPIO_PINS(13);
  351. DECLARE_MSM_GPIO_PINS(14);
  352. DECLARE_MSM_GPIO_PINS(15);
  353. DECLARE_MSM_GPIO_PINS(16);
  354. DECLARE_MSM_GPIO_PINS(17);
  355. DECLARE_MSM_GPIO_PINS(18);
  356. DECLARE_MSM_GPIO_PINS(19);
  357. DECLARE_MSM_GPIO_PINS(20);
  358. DECLARE_MSM_GPIO_PINS(21);
  359. DECLARE_MSM_GPIO_PINS(22);
  360. DECLARE_MSM_GPIO_PINS(23);
  361. DECLARE_MSM_GPIO_PINS(24);
  362. DECLARE_MSM_GPIO_PINS(25);
  363. DECLARE_MSM_GPIO_PINS(26);
  364. DECLARE_MSM_GPIO_PINS(27);
  365. DECLARE_MSM_GPIO_PINS(28);
  366. DECLARE_MSM_GPIO_PINS(29);
  367. DECLARE_MSM_GPIO_PINS(30);
  368. DECLARE_MSM_GPIO_PINS(31);
  369. DECLARE_MSM_GPIO_PINS(32);
  370. DECLARE_MSM_GPIO_PINS(33);
  371. DECLARE_MSM_GPIO_PINS(34);
  372. DECLARE_MSM_GPIO_PINS(35);
  373. DECLARE_MSM_GPIO_PINS(36);
  374. DECLARE_MSM_GPIO_PINS(37);
  375. DECLARE_MSM_GPIO_PINS(38);
  376. DECLARE_MSM_GPIO_PINS(39);
  377. DECLARE_MSM_GPIO_PINS(40);
  378. DECLARE_MSM_GPIO_PINS(41);
  379. DECLARE_MSM_GPIO_PINS(42);
  380. DECLARE_MSM_GPIO_PINS(43);
  381. DECLARE_MSM_GPIO_PINS(44);
  382. DECLARE_MSM_GPIO_PINS(45);
  383. DECLARE_MSM_GPIO_PINS(46);
  384. DECLARE_MSM_GPIO_PINS(47);
  385. DECLARE_MSM_GPIO_PINS(48);
  386. DECLARE_MSM_GPIO_PINS(49);
  387. DECLARE_MSM_GPIO_PINS(50);
  388. DECLARE_MSM_GPIO_PINS(51);
  389. DECLARE_MSM_GPIO_PINS(52);
  390. DECLARE_MSM_GPIO_PINS(53);
  391. DECLARE_MSM_GPIO_PINS(54);
  392. DECLARE_MSM_GPIO_PINS(55);
  393. DECLARE_MSM_GPIO_PINS(56);
  394. DECLARE_MSM_GPIO_PINS(57);
  395. DECLARE_MSM_GPIO_PINS(58);
  396. DECLARE_MSM_GPIO_PINS(59);
  397. DECLARE_MSM_GPIO_PINS(60);
  398. DECLARE_MSM_GPIO_PINS(61);
  399. DECLARE_MSM_GPIO_PINS(62);
  400. DECLARE_MSM_GPIO_PINS(63);
  401. DECLARE_MSM_GPIO_PINS(64);
  402. DECLARE_MSM_GPIO_PINS(65);
  403. DECLARE_MSM_GPIO_PINS(66);
  404. DECLARE_MSM_GPIO_PINS(67);
  405. DECLARE_MSM_GPIO_PINS(68);
  406. DECLARE_MSM_GPIO_PINS(69);
  407. DECLARE_MSM_GPIO_PINS(70);
  408. DECLARE_MSM_GPIO_PINS(71);
  409. DECLARE_MSM_GPIO_PINS(72);
  410. DECLARE_MSM_GPIO_PINS(73);
  411. DECLARE_MSM_GPIO_PINS(74);
  412. DECLARE_MSM_GPIO_PINS(75);
  413. DECLARE_MSM_GPIO_PINS(76);
  414. DECLARE_MSM_GPIO_PINS(77);
  415. DECLARE_MSM_GPIO_PINS(78);
  416. DECLARE_MSM_GPIO_PINS(79);
  417. DECLARE_MSM_GPIO_PINS(80);
  418. DECLARE_MSM_GPIO_PINS(81);
  419. DECLARE_MSM_GPIO_PINS(82);
  420. DECLARE_MSM_GPIO_PINS(83);
  421. DECLARE_MSM_GPIO_PINS(84);
  422. DECLARE_MSM_GPIO_PINS(85);
  423. DECLARE_MSM_GPIO_PINS(86);
  424. DECLARE_MSM_GPIO_PINS(87);
  425. DECLARE_MSM_GPIO_PINS(88);
  426. DECLARE_MSM_GPIO_PINS(89);
  427. DECLARE_MSM_GPIO_PINS(90);
  428. DECLARE_MSM_GPIO_PINS(91);
  429. DECLARE_MSM_GPIO_PINS(92);
  430. DECLARE_MSM_GPIO_PINS(93);
  431. DECLARE_MSM_GPIO_PINS(94);
  432. DECLARE_MSM_GPIO_PINS(95);
  433. DECLARE_MSM_GPIO_PINS(96);
  434. DECLARE_MSM_GPIO_PINS(97);
  435. DECLARE_MSM_GPIO_PINS(98);
  436. DECLARE_MSM_GPIO_PINS(99);
  437. DECLARE_MSM_GPIO_PINS(100);
  438. DECLARE_MSM_GPIO_PINS(101);
  439. DECLARE_MSM_GPIO_PINS(102);
  440. DECLARE_MSM_GPIO_PINS(103);
  441. DECLARE_MSM_GPIO_PINS(104);
  442. DECLARE_MSM_GPIO_PINS(105);
  443. DECLARE_MSM_GPIO_PINS(106);
  444. DECLARE_MSM_GPIO_PINS(107);
  445. DECLARE_MSM_GPIO_PINS(108);
  446. DECLARE_MSM_GPIO_PINS(109);
  447. DECLARE_MSM_GPIO_PINS(110);
  448. DECLARE_MSM_GPIO_PINS(111);
  449. DECLARE_MSM_GPIO_PINS(112);
  450. DECLARE_MSM_GPIO_PINS(113);
  451. DECLARE_MSM_GPIO_PINS(114);
  452. DECLARE_MSM_GPIO_PINS(115);
  453. DECLARE_MSM_GPIO_PINS(116);
  454. DECLARE_MSM_GPIO_PINS(117);
  455. DECLARE_MSM_GPIO_PINS(118);
  456. DECLARE_MSM_GPIO_PINS(119);
  457. DECLARE_MSM_GPIO_PINS(120);
  458. DECLARE_MSM_GPIO_PINS(121);
  459. DECLARE_MSM_GPIO_PINS(122);
  460. DECLARE_MSM_GPIO_PINS(123);
  461. DECLARE_MSM_GPIO_PINS(124);
  462. DECLARE_MSM_GPIO_PINS(125);
  463. DECLARE_MSM_GPIO_PINS(126);
  464. DECLARE_MSM_GPIO_PINS(127);
  465. DECLARE_MSM_GPIO_PINS(128);
  466. DECLARE_MSM_GPIO_PINS(129);
  467. DECLARE_MSM_GPIO_PINS(130);
  468. DECLARE_MSM_GPIO_PINS(131);
  469. DECLARE_MSM_GPIO_PINS(132);
  470. DECLARE_MSM_GPIO_PINS(133);
  471. DECLARE_MSM_GPIO_PINS(134);
  472. DECLARE_MSM_GPIO_PINS(135);
  473. DECLARE_MSM_GPIO_PINS(136);
  474. DECLARE_MSM_GPIO_PINS(137);
  475. DECLARE_MSM_GPIO_PINS(138);
  476. DECLARE_MSM_GPIO_PINS(139);
  477. DECLARE_MSM_GPIO_PINS(140);
  478. DECLARE_MSM_GPIO_PINS(141);
  479. DECLARE_MSM_GPIO_PINS(142);
  480. DECLARE_MSM_GPIO_PINS(143);
  481. DECLARE_MSM_GPIO_PINS(144);
  482. DECLARE_MSM_GPIO_PINS(145);
  483. DECLARE_MSM_GPIO_PINS(146);
  484. DECLARE_MSM_GPIO_PINS(147);
  485. DECLARE_MSM_GPIO_PINS(148);
  486. DECLARE_MSM_GPIO_PINS(149);
  487. DECLARE_MSM_GPIO_PINS(150);
  488. DECLARE_MSM_GPIO_PINS(151);
  489. DECLARE_MSM_GPIO_PINS(152);
  490. DECLARE_MSM_GPIO_PINS(153);
  491. DECLARE_MSM_GPIO_PINS(154);
  492. DECLARE_MSM_GPIO_PINS(155);
  493. DECLARE_MSM_GPIO_PINS(156);
  494. DECLARE_MSM_GPIO_PINS(157);
  495. DECLARE_MSM_GPIO_PINS(158);
  496. DECLARE_MSM_GPIO_PINS(159);
  497. DECLARE_MSM_GPIO_PINS(160);
  498. DECLARE_MSM_GPIO_PINS(161);
  499. DECLARE_MSM_GPIO_PINS(162);
  500. DECLARE_MSM_GPIO_PINS(163);
  501. DECLARE_MSM_GPIO_PINS(164);
  502. DECLARE_MSM_GPIO_PINS(165);
  503. DECLARE_MSM_GPIO_PINS(166);
  504. DECLARE_MSM_GPIO_PINS(167);
  505. DECLARE_MSM_GPIO_PINS(168);
  506. DECLARE_MSM_GPIO_PINS(169);
  507. DECLARE_MSM_GPIO_PINS(170);
  508. DECLARE_MSM_GPIO_PINS(171);
  509. DECLARE_MSM_GPIO_PINS(172);
  510. DECLARE_MSM_GPIO_PINS(173);
  511. DECLARE_MSM_GPIO_PINS(174);
  512. DECLARE_MSM_GPIO_PINS(175);
  513. DECLARE_MSM_GPIO_PINS(176);
  514. DECLARE_MSM_GPIO_PINS(177);
  515. DECLARE_MSM_GPIO_PINS(178);
  516. DECLARE_MSM_GPIO_PINS(179);
  517. DECLARE_MSM_GPIO_PINS(180);
  518. DECLARE_MSM_GPIO_PINS(181);
  519. DECLARE_MSM_GPIO_PINS(182);
  520. DECLARE_MSM_GPIO_PINS(183);
  521. DECLARE_MSM_GPIO_PINS(184);
  522. DECLARE_MSM_GPIO_PINS(185);
  523. DECLARE_MSM_GPIO_PINS(186);
  524. DECLARE_MSM_GPIO_PINS(187);
  525. DECLARE_MSM_GPIO_PINS(188);
  526. DECLARE_MSM_GPIO_PINS(189);
  527. DECLARE_MSM_GPIO_PINS(190);
  528. DECLARE_MSM_GPIO_PINS(191);
  529. DECLARE_MSM_GPIO_PINS(192);
  530. DECLARE_MSM_GPIO_PINS(193);
  531. DECLARE_MSM_GPIO_PINS(194);
  532. DECLARE_MSM_GPIO_PINS(195);
  533. DECLARE_MSM_GPIO_PINS(196);
  534. DECLARE_MSM_GPIO_PINS(197);
  535. DECLARE_MSM_GPIO_PINS(198);
  536. DECLARE_MSM_GPIO_PINS(199);
  537. DECLARE_MSM_GPIO_PINS(200);
  538. DECLARE_MSM_GPIO_PINS(201);
  539. DECLARE_MSM_GPIO_PINS(202);
  540. DECLARE_MSM_GPIO_PINS(203);
  541. DECLARE_MSM_GPIO_PINS(204);
  542. DECLARE_MSM_GPIO_PINS(205);
  543. DECLARE_MSM_GPIO_PINS(206);
  544. DECLARE_MSM_GPIO_PINS(207);
  545. DECLARE_MSM_GPIO_PINS(208);
  546. DECLARE_MSM_GPIO_PINS(209);
  547. static const unsigned int ufs_reset_pins[] = { 210 };
  548. static const unsigned int sdc2_clk_pins[] = { 211 };
  549. static const unsigned int sdc2_cmd_pins[] = { 212 };
  550. static const unsigned int sdc2_data_pins[] = { 213 };
  551. enum kalama_functions {
  552. msm_mux_gpio,
  553. msm_mux_RESOUT_GPIO_N,
  554. msm_mux_aon_cci,
  555. msm_mux_aoss_cti,
  556. msm_mux_atest_char0,
  557. msm_mux_atest_char1,
  558. msm_mux_atest_char2,
  559. msm_mux_atest_char3,
  560. msm_mux_atest_char_start,
  561. msm_mux_atest_usb0,
  562. msm_mux_atest_usb00,
  563. msm_mux_atest_usb01,
  564. msm_mux_atest_usb02,
  565. msm_mux_atest_usb03,
  566. msm_mux_audio_ext_mclk0,
  567. msm_mux_audio_ext_mclk1,
  568. msm_mux_audio_ref_clk,
  569. msm_mux_cam_aon_mclk4,
  570. msm_mux_cam_mclk,
  571. msm_mux_cci_async_in0,
  572. msm_mux_cci_async_in1,
  573. msm_mux_cci_async_in2,
  574. msm_mux_cci_i2c_scl0,
  575. msm_mux_cci_i2c_scl1,
  576. msm_mux_cci_i2c_scl2,
  577. msm_mux_cci_i2c_scl4,
  578. msm_mux_cci_i2c_scl5,
  579. msm_mux_cci_i2c_sda0,
  580. msm_mux_cci_i2c_sda1,
  581. msm_mux_cci_i2c_sda2,
  582. msm_mux_cci_i2c_sda4,
  583. msm_mux_cci_i2c_sda5,
  584. msm_mux_cci_timer0,
  585. msm_mux_cci_timer1,
  586. msm_mux_cci_timer2,
  587. msm_mux_cci_timer3,
  588. msm_mux_cci_timer4,
  589. msm_mux_cmu_rng0,
  590. msm_mux_cmu_rng1,
  591. msm_mux_cmu_rng2,
  592. msm_mux_cmu_rng3,
  593. msm_mux_coex_uart1_rx,
  594. msm_mux_coex_uart1_tx,
  595. msm_mux_coex_uart2_rx,
  596. msm_mux_coex_uart2_tx,
  597. msm_mux_cri_trng,
  598. msm_mux_dbg_out_clk,
  599. msm_mux_ddr_bist_complete,
  600. msm_mux_ddr_bist_fail,
  601. msm_mux_ddr_bist_start,
  602. msm_mux_ddr_bist_stop,
  603. msm_mux_ddr_pxi0,
  604. msm_mux_ddr_pxi1,
  605. msm_mux_ddr_pxi2,
  606. msm_mux_ddr_pxi3,
  607. msm_mux_dp_hot,
  608. msm_mux_gcc_gp1,
  609. msm_mux_gcc_gp2,
  610. msm_mux_gcc_gp3,
  611. msm_mux_i2chub0_se0_l0,
  612. msm_mux_i2chub0_se0_l1,
  613. msm_mux_i2chub0_se1_l0,
  614. msm_mux_i2chub0_se1_l1,
  615. msm_mux_i2chub0_se2_l0,
  616. msm_mux_i2chub0_se2_l1,
  617. msm_mux_i2chub0_se3_l0,
  618. msm_mux_i2chub0_se3_l1,
  619. msm_mux_i2chub0_se4_l0,
  620. msm_mux_i2chub0_se4_l1,
  621. msm_mux_i2chub0_se5_l0,
  622. msm_mux_i2chub0_se5_l1,
  623. msm_mux_i2chub0_se6_l0,
  624. msm_mux_i2chub0_se6_l1,
  625. msm_mux_i2chub0_se7_l0,
  626. msm_mux_i2chub0_se7_l1,
  627. msm_mux_i2chub0_se8_l0,
  628. msm_mux_i2chub0_se8_l1,
  629. msm_mux_i2chub0_se9_l0,
  630. msm_mux_i2chub0_se9_l1,
  631. msm_mux_i2s0_data0,
  632. msm_mux_i2s0_data1,
  633. msm_mux_i2s0_sck,
  634. msm_mux_i2s0_ws,
  635. msm_mux_i2s1_data0,
  636. msm_mux_i2s1_data1,
  637. msm_mux_i2s1_sck,
  638. msm_mux_i2s1_ws,
  639. msm_mux_ibi_i3c,
  640. msm_mux_jitter_bist,
  641. msm_mux_mdp_vsync,
  642. msm_mux_mdp_vsync0_out,
  643. msm_mux_mdp_vsync1_out,
  644. msm_mux_mdp_vsync2_out,
  645. msm_mux_mdp_vsync3_out,
  646. msm_mux_mdp_vsync_e,
  647. msm_mux_nav_gpio0,
  648. msm_mux_nav_gpio1,
  649. msm_mux_nav_gpio2,
  650. msm_mux_pcie0_clk_req_n,
  651. msm_mux_pcie1_clk_req_n,
  652. msm_mux_phase_flag0,
  653. msm_mux_phase_flag1,
  654. msm_mux_phase_flag10,
  655. msm_mux_phase_flag11,
  656. msm_mux_phase_flag12,
  657. msm_mux_phase_flag13,
  658. msm_mux_phase_flag14,
  659. msm_mux_phase_flag15,
  660. msm_mux_phase_flag16,
  661. msm_mux_phase_flag17,
  662. msm_mux_phase_flag18,
  663. msm_mux_phase_flag19,
  664. msm_mux_phase_flag2,
  665. msm_mux_phase_flag20,
  666. msm_mux_phase_flag21,
  667. msm_mux_phase_flag22,
  668. msm_mux_phase_flag23,
  669. msm_mux_phase_flag24,
  670. msm_mux_phase_flag25,
  671. msm_mux_phase_flag26,
  672. msm_mux_phase_flag27,
  673. msm_mux_phase_flag28,
  674. msm_mux_phase_flag29,
  675. msm_mux_phase_flag3,
  676. msm_mux_phase_flag30,
  677. msm_mux_phase_flag31,
  678. msm_mux_phase_flag4,
  679. msm_mux_phase_flag5,
  680. msm_mux_phase_flag6,
  681. msm_mux_phase_flag7,
  682. msm_mux_phase_flag8,
  683. msm_mux_phase_flag9,
  684. msm_mux_pll_bist_sync,
  685. msm_mux_pll_clk_aux,
  686. msm_mux_prng_rosc0,
  687. msm_mux_prng_rosc1,
  688. msm_mux_prng_rosc2,
  689. msm_mux_prng_rosc3,
  690. msm_mux_qdss_cti,
  691. msm_mux_qdss_gpio,
  692. msm_mux_qdss_gpio0,
  693. msm_mux_qdss_gpio1,
  694. msm_mux_qdss_gpio10,
  695. msm_mux_qdss_gpio11,
  696. msm_mux_qdss_gpio12,
  697. msm_mux_qdss_gpio13,
  698. msm_mux_qdss_gpio14,
  699. msm_mux_qdss_gpio15,
  700. msm_mux_qdss_gpio2,
  701. msm_mux_qdss_gpio3,
  702. msm_mux_qdss_gpio4,
  703. msm_mux_qdss_gpio5,
  704. msm_mux_qdss_gpio6,
  705. msm_mux_qdss_gpio7,
  706. msm_mux_qdss_gpio8,
  707. msm_mux_qdss_gpio9,
  708. msm_mux_qlink0_enable,
  709. msm_mux_qlink0_request,
  710. msm_mux_qlink0_wmss,
  711. msm_mux_qlink1_enable,
  712. msm_mux_qlink1_request,
  713. msm_mux_qlink1_wmss,
  714. msm_mux_qlink2_enable,
  715. msm_mux_qlink2_request,
  716. msm_mux_qlink2_wmss,
  717. msm_mux_qspi0,
  718. msm_mux_qspi1,
  719. msm_mux_qspi2,
  720. msm_mux_qspi3,
  721. msm_mux_qspi_clk,
  722. msm_mux_qspi_cs,
  723. msm_mux_qup1_se0_l0,
  724. msm_mux_qup1_se0_l1,
  725. msm_mux_qup1_se0_l2,
  726. msm_mux_qup1_se0_l3,
  727. msm_mux_qup1_se1_l0,
  728. msm_mux_qup1_se1_l1,
  729. msm_mux_qup1_se1_l2,
  730. msm_mux_qup1_se1_l3,
  731. msm_mux_qup1_se2,
  732. msm_mux_qup1_se2_l0,
  733. msm_mux_qup1_se2_l1,
  734. msm_mux_qup1_se2_l2,
  735. msm_mux_qup1_se2_l3,
  736. msm_mux_qup1_se3_l0,
  737. msm_mux_qup1_se3_l1,
  738. msm_mux_qup1_se3_l2,
  739. msm_mux_qup1_se3_l3,
  740. msm_mux_qup1_se4_l0,
  741. msm_mux_qup1_se4_l1,
  742. msm_mux_qup1_se4_l2,
  743. msm_mux_qup1_se4_l3,
  744. msm_mux_qup1_se5_l0,
  745. msm_mux_qup1_se5_l1,
  746. msm_mux_qup1_se5_l2,
  747. msm_mux_qup1_se5_l3,
  748. msm_mux_qup1_se6_l0,
  749. msm_mux_qup1_se6_l1,
  750. msm_mux_qup1_se6_l2,
  751. msm_mux_qup1_se6_l3,
  752. msm_mux_qup1_se7_l0,
  753. msm_mux_qup1_se7_l1,
  754. msm_mux_qup1_se7_l2,
  755. msm_mux_qup1_se7_l3,
  756. msm_mux_qup2_se0,
  757. msm_mux_qup2_se0_l0_mira,
  758. msm_mux_qup2_se0_l0_mirb,
  759. msm_mux_qup2_se0_l1_mira,
  760. msm_mux_qup2_se0_l1_mirb,
  761. msm_mux_qup2_se0_l2_mira,
  762. msm_mux_qup2_se0_l2_mirb,
  763. msm_mux_qup2_se0_l3_mira,
  764. msm_mux_qup2_se0_l3_mirb,
  765. msm_mux_qup2_se1_l0,
  766. msm_mux_qup2_se1_l1,
  767. msm_mux_qup2_se1_l2,
  768. msm_mux_qup2_se1_l3,
  769. msm_mux_qup2_se2_l0,
  770. msm_mux_qup2_se2_l1,
  771. msm_mux_qup2_se2_l2,
  772. msm_mux_qup2_se2_l3,
  773. msm_mux_qup2_se3_l0,
  774. msm_mux_qup2_se3_l1,
  775. msm_mux_qup2_se3_l2,
  776. msm_mux_qup2_se3_l3,
  777. msm_mux_qup2_se4_l0,
  778. msm_mux_qup2_se4_l1,
  779. msm_mux_qup2_se4_l2,
  780. msm_mux_qup2_se4_l3,
  781. msm_mux_qup2_se5_l0,
  782. msm_mux_qup2_se5_l1,
  783. msm_mux_qup2_se5_l2,
  784. msm_mux_qup2_se5_l3,
  785. msm_mux_qup2_se6_l0,
  786. msm_mux_qup2_se6_l1,
  787. msm_mux_qup2_se6_l2,
  788. msm_mux_qup2_se6_l3,
  789. msm_mux_qup2_se7_l0,
  790. msm_mux_qup2_se7_l1,
  791. msm_mux_qup2_se7_l2,
  792. msm_mux_qup2_se7_l3,
  793. msm_mux_sd_write_protect,
  794. msm_mux_sdc40,
  795. msm_mux_sdc41,
  796. msm_mux_sdc42,
  797. msm_mux_sdc43,
  798. msm_mux_sdc4_clk,
  799. msm_mux_sdc4_cmd,
  800. msm_mux_tb_trig_sdc2,
  801. msm_mux_tb_trig_sdc4,
  802. msm_mux_tgu_ch0_trigout,
  803. msm_mux_tgu_ch1_trigout,
  804. msm_mux_tgu_ch2_trigout,
  805. msm_mux_tgu_ch3_trigout,
  806. msm_mux_tmess_prng0,
  807. msm_mux_tmess_prng1,
  808. msm_mux_tmess_prng2,
  809. msm_mux_tmess_prng3,
  810. msm_mux_tsense_pwm1,
  811. msm_mux_tsense_pwm2,
  812. msm_mux_tsense_pwm3,
  813. msm_mux_uim0_clk,
  814. msm_mux_uim0_data,
  815. msm_mux_uim0_present,
  816. msm_mux_uim0_reset,
  817. msm_mux_uim1_clk,
  818. msm_mux_uim1_data,
  819. msm_mux_uim1_present,
  820. msm_mux_uim1_reset,
  821. msm_mux_usb1_hs,
  822. msm_mux_usb_phy,
  823. msm_mux_vfr_0,
  824. msm_mux_vfr_1,
  825. msm_mux_vsense_trigger_mirnat,
  826. msm_mux_NA,
  827. };
  828. static const char *const gpio_groups[] = {
  829. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  830. "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11",
  831. "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17",
  832. "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23",
  833. "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29",
  834. "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  835. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
  836. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47",
  837. "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53",
  838. "gpio54", "gpio55", "gpio56", "gpio57", "gpio58", "gpio59",
  839. "gpio60", "gpio61", "gpio62", "gpio63", "gpio64", "gpio65",
  840. "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", "gpio71",
  841. "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  842. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
  843. "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89",
  844. "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95",
  845. "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", "gpio101",
  846. "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107",
  847. "gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113",
  848. "gpio114", "gpio115", "gpio116", "gpio117", "gpio118", "gpio119",
  849. "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
  850. "gpio126", "gpio127", "gpio128", "gpio129", "gpio130", "gpio131",
  851. "gpio132", "gpio133", "gpio134", "gpio135", "gpio136", "gpio137",
  852. "gpio138", "gpio139", "gpio140", "gpio141", "gpio142", "gpio143",
  853. "gpio144", "gpio145", "gpio146", "gpio147", "gpio148", "gpio149",
  854. "gpio150", "gpio151", "gpio152", "gpio153", "gpio154", "gpio155",
  855. "gpio156", "gpio157", "gpio158", "gpio159", "gpio160", "gpio161",
  856. "gpio162", "gpio163", "gpio164", "gpio165", "gpio166", "gpio167",
  857. "gpio168", "gpio169", "gpio170", "gpio171", "gpio172", "gpio173",
  858. "gpio174", "gpio175", "gpio176", "gpio177", "gpio178", "gpio179",
  859. "gpio180", "gpio181", "gpio182", "gpio183", "gpio184", "gpio185",
  860. "gpio186", "gpio187", "gpio188", "gpio189", "gpio190", "gpio191",
  861. "gpio192", "gpio193", "gpio194", "gpio195", "gpio196", "gpio197",
  862. "gpio198", "gpio199", "gpio200", "gpio201", "gpio202", "gpio203",
  863. "gpio204", "gpio205", "gpio206", "gpio207", "gpio208", "gpio209",
  864. };
  865. static const char *const RESOUT_GPIO_N_groups[] = {
  866. "gpio92",
  867. };
  868. static const char *const aon_cci_groups[] = {
  869. "gpio208",
  870. "gpio209",
  871. };
  872. static const char *const aoss_cti_groups[] = {
  873. "gpio44",
  874. "gpio45",
  875. "gpio46",
  876. "gpio47",
  877. };
  878. static const char *const atest_char0_groups[] = {
  879. "gpio135",
  880. };
  881. static const char *const atest_char1_groups[] = {
  882. "gpio134",
  883. };
  884. static const char *const atest_char2_groups[] = {
  885. "gpio133",
  886. };
  887. static const char *const atest_char3_groups[] = {
  888. "gpio132",
  889. };
  890. static const char *const atest_char_start_groups[] = {
  891. "gpio130",
  892. };
  893. static const char *const atest_usb0_groups[] = {
  894. "gpio37",
  895. };
  896. static const char *const atest_usb00_groups[] = {
  897. "gpio149",
  898. };
  899. static const char *const atest_usb01_groups[] = {
  900. "gpio148",
  901. };
  902. static const char *const atest_usb02_groups[] = {
  903. "gpio39",
  904. };
  905. static const char *const atest_usb03_groups[] = {
  906. "gpio55",
  907. };
  908. static const char *const audio_ext_mclk0_groups[] = {
  909. "gpio125",
  910. };
  911. static const char *const audio_ext_mclk1_groups[] = {
  912. "gpio124",
  913. };
  914. static const char *const audio_ref_clk_groups[] = {
  915. "gpio124",
  916. };
  917. static const char *const cam_aon_mclk4_groups[] = {
  918. "gpio104",
  919. };
  920. static const char *const cam_mclk_groups[] = {
  921. "gpio100", "gpio101", "gpio102", "gpio103",
  922. "gpio105", "gpio106", "gpio107",
  923. };
  924. static const char *const cci_async_in0_groups[] = {
  925. "gpio71",
  926. };
  927. static const char *const cci_async_in1_groups[] = {
  928. "gpio72",
  929. };
  930. static const char *const cci_async_in2_groups[] = {
  931. "gpio109",
  932. };
  933. static const char *const cci_i2c_scl0_groups[] = {
  934. "gpio111",
  935. };
  936. static const char *const cci_i2c_scl1_groups[] = {
  937. "gpio113",
  938. };
  939. static const char *const cci_i2c_scl2_groups[] = {
  940. "gpio115",
  941. };
  942. static const char *const cci_i2c_scl4_groups[] = {
  943. "gpio75",
  944. };
  945. static const char *const cci_i2c_scl5_groups[] = {
  946. "gpio1",
  947. };
  948. static const char *const cci_i2c_sda0_groups[] = {
  949. "gpio110",
  950. };
  951. static const char *const cci_i2c_sda1_groups[] = {
  952. "gpio112",
  953. };
  954. static const char *const cci_i2c_sda2_groups[] = {
  955. "gpio114",
  956. };
  957. static const char *const cci_i2c_sda4_groups[] = {
  958. "gpio74",
  959. };
  960. static const char *const cci_i2c_sda5_groups[] = {
  961. "gpio0",
  962. };
  963. static const char *const cci_timer0_groups[] = {
  964. "gpio116",
  965. };
  966. static const char *const cci_timer1_groups[] = {
  967. "gpio117",
  968. };
  969. static const char *const cci_timer2_groups[] = {
  970. "gpio118",
  971. };
  972. static const char *const cci_timer3_groups[] = {
  973. "gpio119",
  974. };
  975. static const char *const cci_timer4_groups[] = {
  976. "gpio120",
  977. };
  978. static const char *const cmu_rng0_groups[] = {
  979. "gpio129",
  980. };
  981. static const char *const cmu_rng1_groups[] = {
  982. "gpio128",
  983. };
  984. static const char *const cmu_rng2_groups[] = {
  985. "gpio127",
  986. };
  987. static const char *const cmu_rng3_groups[] = {
  988. "gpio122",
  989. };
  990. static const char *const coex_uart1_rx_groups[] = {
  991. "gpio148",
  992. };
  993. static const char *const coex_uart1_tx_groups[] = {
  994. "gpio149",
  995. };
  996. static const char *const coex_uart2_rx_groups[] = {
  997. "gpio150",
  998. };
  999. static const char *const coex_uart2_tx_groups[] = {
  1000. "gpio151",
  1001. };
  1002. static const char *const cri_trng_groups[] = {
  1003. "gpio187",
  1004. };
  1005. static const char *const dbg_out_clk_groups[] = {
  1006. "gpio89",
  1007. };
  1008. static const char *const ddr_bist_complete_groups[] = {
  1009. "gpio40",
  1010. };
  1011. static const char *const ddr_bist_fail_groups[] = {
  1012. "gpio36",
  1013. };
  1014. static const char *const ddr_bist_start_groups[] = {
  1015. "gpio37",
  1016. };
  1017. static const char *const ddr_bist_stop_groups[] = {
  1018. "gpio41",
  1019. };
  1020. static const char *const ddr_pxi0_groups[] = {
  1021. "gpio51",
  1022. "gpio52",
  1023. };
  1024. static const char *const ddr_pxi1_groups[] = {
  1025. "gpio40",
  1026. "gpio41",
  1027. };
  1028. static const char *const ddr_pxi2_groups[] = {
  1029. "gpio45",
  1030. "gpio47",
  1031. };
  1032. static const char *const ddr_pxi3_groups[] = {
  1033. "gpio43",
  1034. "gpio44",
  1035. };
  1036. static const char *const dp_hot_groups[] = {
  1037. "gpio47",
  1038. };
  1039. static const char *const gcc_gp1_groups[] = {
  1040. "gpio86",
  1041. "gpio134",
  1042. };
  1043. static const char *const gcc_gp2_groups[] = {
  1044. "gpio87",
  1045. "gpio135",
  1046. };
  1047. static const char *const gcc_gp3_groups[] = {
  1048. "gpio88",
  1049. "gpio136",
  1050. };
  1051. static const char *const i2chub0_se0_l0_groups[] = {
  1052. "gpio16",
  1053. };
  1054. static const char *const i2chub0_se0_l1_groups[] = {
  1055. "gpio17",
  1056. };
  1057. static const char *const i2chub0_se1_l0_groups[] = {
  1058. "gpio18",
  1059. };
  1060. static const char *const i2chub0_se1_l1_groups[] = {
  1061. "gpio19",
  1062. };
  1063. static const char *const i2chub0_se2_l0_groups[] = {
  1064. "gpio20",
  1065. };
  1066. static const char *const i2chub0_se2_l1_groups[] = {
  1067. "gpio21",
  1068. };
  1069. static const char *const i2chub0_se3_l0_groups[] = {
  1070. "gpio22",
  1071. };
  1072. static const char *const i2chub0_se3_l1_groups[] = {
  1073. "gpio23",
  1074. };
  1075. static const char *const i2chub0_se4_l0_groups[] = {
  1076. "gpio4",
  1077. };
  1078. static const char *const i2chub0_se4_l1_groups[] = {
  1079. "gpio5",
  1080. };
  1081. static const char *const i2chub0_se5_l0_groups[] = {
  1082. "gpio6",
  1083. };
  1084. static const char *const i2chub0_se5_l1_groups[] = {
  1085. "gpio7",
  1086. };
  1087. static const char *const i2chub0_se6_l0_groups[] = {
  1088. "gpio8",
  1089. };
  1090. static const char *const i2chub0_se6_l1_groups[] = {
  1091. "gpio9",
  1092. };
  1093. static const char *const i2chub0_se7_l0_groups[] = {
  1094. "gpio10",
  1095. };
  1096. static const char *const i2chub0_se7_l1_groups[] = {
  1097. "gpio11",
  1098. };
  1099. static const char *const i2chub0_se8_l0_groups[] = {
  1100. "gpio206",
  1101. };
  1102. static const char *const i2chub0_se8_l1_groups[] = {
  1103. "gpio207",
  1104. };
  1105. static const char *const i2chub0_se9_l0_groups[] = {
  1106. "gpio84",
  1107. };
  1108. static const char *const i2chub0_se9_l1_groups[] = {
  1109. "gpio85",
  1110. };
  1111. static const char *const i2s0_data0_groups[] = {
  1112. "gpio127",
  1113. };
  1114. static const char *const i2s0_data1_groups[] = {
  1115. "gpio128",
  1116. };
  1117. static const char *const i2s0_sck_groups[] = {
  1118. "gpio126",
  1119. };
  1120. static const char *const i2s0_ws_groups[] = {
  1121. "gpio129",
  1122. };
  1123. static const char *const i2s1_data0_groups[] = {
  1124. "gpio122",
  1125. };
  1126. static const char *const i2s1_data1_groups[] = {
  1127. "gpio124",
  1128. };
  1129. static const char *const i2s1_sck_groups[] = {
  1130. "gpio121",
  1131. };
  1132. static const char *const i2s1_ws_groups[] = {
  1133. "gpio123",
  1134. };
  1135. static const char *const ibi_i3c_groups[] = {
  1136. "gpio0", "gpio1", "gpio28", "gpio29", "gpio32",
  1137. "gpio33", "gpio56", "gpio57", "gpio60", "gpio61",
  1138. };
  1139. static const char *const jitter_bist_groups[] = {
  1140. "gpio43",
  1141. };
  1142. static const char *const mdp_vsync_groups[] = {
  1143. "gpio86",
  1144. "gpio87",
  1145. "gpio133",
  1146. "gpio137",
  1147. };
  1148. static const char *const mdp_vsync0_out_groups[] = {
  1149. "gpio86",
  1150. };
  1151. static const char *const mdp_vsync1_out_groups[] = {
  1152. "gpio86",
  1153. };
  1154. static const char *const mdp_vsync2_out_groups[] = {
  1155. "gpio87",
  1156. };
  1157. static const char *const mdp_vsync3_out_groups[] = {
  1158. "gpio87",
  1159. };
  1160. static const char *const mdp_vsync_e_groups[] = {
  1161. "gpio88",
  1162. };
  1163. static const char *const nav_gpio0_groups[] = {
  1164. "gpio154",
  1165. };
  1166. static const char *const nav_gpio1_groups[] = {
  1167. "gpio155",
  1168. };
  1169. static const char *const nav_gpio2_groups[] = {
  1170. "gpio153",
  1171. };
  1172. static const char *const pcie0_clk_req_n_groups[] = {
  1173. "gpio95",
  1174. };
  1175. static const char *const pcie1_clk_req_n_groups[] = {
  1176. "gpio98",
  1177. };
  1178. static const char *const phase_flag0_groups[] = {
  1179. "gpio83",
  1180. };
  1181. static const char *const phase_flag1_groups[] = {
  1182. "gpio117",
  1183. };
  1184. static const char *const phase_flag10_groups[] = {
  1185. "gpio95",
  1186. };
  1187. static const char *const phase_flag11_groups[] = {
  1188. "gpio94",
  1189. };
  1190. static const char *const phase_flag12_groups[] = {
  1191. "gpio119",
  1192. };
  1193. static const char *const phase_flag13_groups[] = {
  1194. "gpio120",
  1195. };
  1196. static const char *const phase_flag14_groups[] = {
  1197. "gpio77",
  1198. };
  1199. static const char *const phase_flag15_groups[] = {
  1200. "gpio76",
  1201. };
  1202. static const char *const phase_flag16_groups[] = {
  1203. "gpio75",
  1204. };
  1205. static const char *const phase_flag17_groups[] = {
  1206. "gpio13",
  1207. };
  1208. static const char *const phase_flag18_groups[] = {
  1209. "gpio68",
  1210. };
  1211. static const char *const phase_flag19_groups[] = {
  1212. "gpio67",
  1213. };
  1214. static const char *const phase_flag2_groups[] = {
  1215. "gpio81",
  1216. };
  1217. static const char *const phase_flag20_groups[] = {
  1218. "gpio11",
  1219. };
  1220. static const char *const phase_flag21_groups[] = {
  1221. "gpio65",
  1222. };
  1223. static const char *const phase_flag22_groups[] = {
  1224. "gpio64",
  1225. };
  1226. static const char *const phase_flag23_groups[] = {
  1227. "gpio63",
  1228. };
  1229. static const char *const phase_flag24_groups[] = {
  1230. "gpio92",
  1231. };
  1232. static const char *const phase_flag25_groups[] = {
  1233. "gpio59",
  1234. };
  1235. static const char *const phase_flag26_groups[] = {
  1236. "gpio12",
  1237. };
  1238. static const char *const phase_flag27_groups[] = {
  1239. "gpio69",
  1240. };
  1241. static const char *const phase_flag28_groups[] = {
  1242. "gpio3",
  1243. };
  1244. static const char *const phase_flag29_groups[] = {
  1245. "gpio2",
  1246. };
  1247. static const char *const phase_flag3_groups[] = {
  1248. "gpio80",
  1249. };
  1250. static const char *const phase_flag30_groups[] = {
  1251. "gpio10",
  1252. };
  1253. static const char *const phase_flag31_groups[] = {
  1254. "gpio0",
  1255. };
  1256. static const char *const phase_flag4_groups[] = {
  1257. "gpio79",
  1258. };
  1259. static const char *const phase_flag5_groups[] = {
  1260. "gpio116",
  1261. };
  1262. static const char *const phase_flag6_groups[] = {
  1263. "gpio99",
  1264. };
  1265. static const char *const phase_flag7_groups[] = {
  1266. "gpio98",
  1267. };
  1268. static const char *const phase_flag8_groups[] = {
  1269. "gpio97",
  1270. };
  1271. static const char *const phase_flag9_groups[] = {
  1272. "gpio96",
  1273. };
  1274. static const char *const pll_bist_sync_groups[] = {
  1275. "gpio20",
  1276. };
  1277. static const char *const pll_clk_aux_groups[] = {
  1278. "gpio107",
  1279. };
  1280. static const char *const prng_rosc0_groups[] = {
  1281. "gpio186",
  1282. };
  1283. static const char *const prng_rosc1_groups[] = {
  1284. "gpio183",
  1285. };
  1286. static const char *const prng_rosc2_groups[] = {
  1287. "gpio182",
  1288. };
  1289. static const char *const prng_rosc3_groups[] = {
  1290. "gpio181",
  1291. };
  1292. static const char *const qdss_cti_groups[] = {
  1293. "gpio10", "gpio11", "gpio75", "gpio79",
  1294. "gpio159", "gpio160", "gpio161", "gpio162",
  1295. };
  1296. static const char *const qdss_gpio_groups[] = {
  1297. "gpio112",
  1298. "gpio113",
  1299. "gpio148",
  1300. "gpio149",
  1301. };
  1302. static const char *const qdss_gpio0_groups[] = {
  1303. "gpio102",
  1304. "gpio138",
  1305. };
  1306. static const char *const qdss_gpio1_groups[] = {
  1307. "gpio103",
  1308. "gpio139",
  1309. };
  1310. static const char *const qdss_gpio10_groups[] = {
  1311. "gpio115",
  1312. "gpio152",
  1313. };
  1314. static const char *const qdss_gpio11_groups[] = {
  1315. "gpio100",
  1316. "gpio153",
  1317. };
  1318. static const char *const qdss_gpio12_groups[] = {
  1319. "gpio101",
  1320. "gpio154",
  1321. };
  1322. static const char *const qdss_gpio13_groups[] = {
  1323. "gpio116",
  1324. "gpio155",
  1325. };
  1326. static const char *const qdss_gpio14_groups[] = {
  1327. "gpio117",
  1328. "gpio156",
  1329. };
  1330. static const char *const qdss_gpio15_groups[] = {
  1331. "gpio120",
  1332. "gpio157",
  1333. };
  1334. static const char *const qdss_gpio2_groups[] = {
  1335. "gpio104",
  1336. "gpio140",
  1337. };
  1338. static const char *const qdss_gpio3_groups[] = {
  1339. "gpio105",
  1340. "gpio141",
  1341. };
  1342. static const char *const qdss_gpio4_groups[] = {
  1343. "gpio64",
  1344. "gpio142",
  1345. };
  1346. static const char *const qdss_gpio5_groups[] = {
  1347. "gpio73",
  1348. "gpio143",
  1349. };
  1350. static const char *const qdss_gpio6_groups[] = {
  1351. "gpio59",
  1352. "gpio144",
  1353. };
  1354. static const char *const qdss_gpio7_groups[] = {
  1355. "gpio110",
  1356. "gpio145",
  1357. };
  1358. static const char *const qdss_gpio8_groups[] = {
  1359. "gpio111",
  1360. "gpio150",
  1361. };
  1362. static const char *const qdss_gpio9_groups[] = {
  1363. "gpio114",
  1364. "gpio151",
  1365. };
  1366. static const char *const qlink0_enable_groups[] = {
  1367. "gpio157",
  1368. };
  1369. static const char *const qlink0_request_groups[] = {
  1370. "gpio156",
  1371. };
  1372. static const char *const qlink0_wmss_groups[] = {
  1373. "gpio158",
  1374. };
  1375. static const char *const qlink1_enable_groups[] = {
  1376. "gpio160",
  1377. };
  1378. static const char *const qlink1_request_groups[] = {
  1379. "gpio159",
  1380. };
  1381. static const char *const qlink1_wmss_groups[] = {
  1382. "gpio161",
  1383. };
  1384. static const char *const qlink2_enable_groups[] = {
  1385. "gpio163",
  1386. };
  1387. static const char *const qlink2_request_groups[] = {
  1388. "gpio162",
  1389. };
  1390. static const char *const qlink2_wmss_groups[] = {
  1391. "gpio164",
  1392. };
  1393. static const char *const qspi0_groups[] = {
  1394. "gpio89",
  1395. };
  1396. static const char *const qspi1_groups[] = {
  1397. "gpio90",
  1398. };
  1399. static const char *const qspi2_groups[] = {
  1400. "gpio48",
  1401. };
  1402. static const char *const qspi3_groups[] = {
  1403. "gpio49",
  1404. };
  1405. static const char *const qspi_clk_groups[] = {
  1406. "gpio50",
  1407. };
  1408. static const char *const qspi_cs_groups[] = {
  1409. "gpio51",
  1410. "gpio91",
  1411. };
  1412. static const char *const qup1_se0_l0_groups[] = {
  1413. "gpio28",
  1414. };
  1415. static const char *const qup1_se0_l1_groups[] = {
  1416. "gpio29",
  1417. };
  1418. static const char *const qup1_se0_l2_groups[] = {
  1419. "gpio30",
  1420. };
  1421. static const char *const qup1_se0_l3_groups[] = {
  1422. "gpio31",
  1423. };
  1424. static const char *const qup1_se1_l0_groups[] = {
  1425. "gpio32",
  1426. };
  1427. static const char *const qup1_se1_l1_groups[] = {
  1428. "gpio33",
  1429. };
  1430. static const char *const qup1_se1_l2_groups[] = {
  1431. "gpio34",
  1432. };
  1433. static const char *const qup1_se1_l3_groups[] = {
  1434. "gpio35",
  1435. };
  1436. static const char *const qup1_se2_groups[] = {
  1437. "gpio40",
  1438. "gpio41",
  1439. "gpio42",
  1440. };
  1441. static const char *const qup1_se2_l0_groups[] = {
  1442. "gpio36",
  1443. };
  1444. static const char *const qup1_se2_l1_groups[] = {
  1445. "gpio37",
  1446. };
  1447. static const char *const qup1_se2_l2_groups[] = {
  1448. "gpio38",
  1449. };
  1450. static const char *const qup1_se2_l3_groups[] = {
  1451. "gpio39",
  1452. };
  1453. static const char *const qup1_se3_l0_groups[] = {
  1454. "gpio40",
  1455. };
  1456. static const char *const qup1_se3_l1_groups[] = {
  1457. "gpio41",
  1458. };
  1459. static const char *const qup1_se3_l2_groups[] = {
  1460. "gpio42",
  1461. };
  1462. static const char *const qup1_se3_l3_groups[] = {
  1463. "gpio43",
  1464. };
  1465. static const char *const qup1_se4_l0_groups[] = {
  1466. "gpio44",
  1467. };
  1468. static const char *const qup1_se4_l1_groups[] = {
  1469. "gpio45",
  1470. };
  1471. static const char *const qup1_se4_l2_groups[] = {
  1472. "gpio46",
  1473. };
  1474. static const char *const qup1_se4_l3_groups[] = {
  1475. "gpio47",
  1476. };
  1477. static const char *const qup1_se5_l0_groups[] = {
  1478. "gpio52",
  1479. };
  1480. static const char *const qup1_se5_l1_groups[] = {
  1481. "gpio53",
  1482. };
  1483. static const char *const qup1_se5_l2_groups[] = {
  1484. "gpio54",
  1485. };
  1486. static const char *const qup1_se5_l3_groups[] = {
  1487. "gpio55",
  1488. };
  1489. static const char *const qup1_se6_l0_groups[] = {
  1490. "gpio48",
  1491. };
  1492. static const char *const qup1_se6_l1_groups[] = {
  1493. "gpio49",
  1494. };
  1495. static const char *const qup1_se6_l2_groups[] = {
  1496. "gpio50",
  1497. };
  1498. static const char *const qup1_se6_l3_groups[] = {
  1499. "gpio51",
  1500. };
  1501. static const char *const qup1_se7_l0_groups[] = {
  1502. "gpio24",
  1503. };
  1504. static const char *const qup1_se7_l1_groups[] = {
  1505. "gpio25",
  1506. };
  1507. static const char *const qup1_se7_l2_groups[] = {
  1508. "gpio26",
  1509. };
  1510. static const char *const qup1_se7_l3_groups[] = {
  1511. "gpio27",
  1512. };
  1513. static const char *const qup2_se0_groups[] = {
  1514. "gpio63",
  1515. "gpio66",
  1516. "gpio67",
  1517. };
  1518. static const char *const qup2_se0_l0_mira_groups[] = {
  1519. "gpio56",
  1520. };
  1521. static const char *const qup2_se0_l0_mirb_groups[] = {
  1522. "gpio0",
  1523. };
  1524. static const char *const qup2_se0_l1_mira_groups[] = {
  1525. "gpio57",
  1526. };
  1527. static const char *const qup2_se0_l1_mirb_groups[] = {
  1528. "gpio1",
  1529. };
  1530. static const char *const qup2_se0_l2_mira_groups[] = {
  1531. "gpio58",
  1532. };
  1533. static const char *const qup2_se0_l2_mirb_groups[] = {
  1534. "gpio109",
  1535. };
  1536. static const char *const qup2_se0_l3_mira_groups[] = {
  1537. "gpio59",
  1538. };
  1539. static const char *const qup2_se0_l3_mirb_groups[] = {
  1540. "gpio107",
  1541. };
  1542. static const char *const qup2_se1_l0_groups[] = {
  1543. "gpio60",
  1544. };
  1545. static const char *const qup2_se1_l1_groups[] = {
  1546. "gpio61",
  1547. };
  1548. static const char *const qup2_se1_l2_groups[] = {
  1549. "gpio62",
  1550. };
  1551. static const char *const qup2_se1_l3_groups[] = {
  1552. "gpio63",
  1553. };
  1554. static const char *const qup2_se2_l0_groups[] = {
  1555. "gpio64",
  1556. };
  1557. static const char *const qup2_se2_l1_groups[] = {
  1558. "gpio65",
  1559. };
  1560. static const char *const qup2_se2_l2_groups[] = {
  1561. "gpio66",
  1562. };
  1563. static const char *const qup2_se2_l3_groups[] = {
  1564. "gpio67",
  1565. };
  1566. static const char *const qup2_se3_l0_groups[] = {
  1567. "gpio68",
  1568. };
  1569. static const char *const qup2_se3_l1_groups[] = {
  1570. "gpio69",
  1571. };
  1572. static const char *const qup2_se3_l2_groups[] = {
  1573. "gpio70",
  1574. };
  1575. static const char *const qup2_se3_l3_groups[] = {
  1576. "gpio71",
  1577. };
  1578. static const char *const qup2_se4_l0_groups[] = {
  1579. "gpio2",
  1580. };
  1581. static const char *const qup2_se4_l1_groups[] = {
  1582. "gpio3",
  1583. };
  1584. static const char *const qup2_se4_l2_groups[] = {
  1585. "gpio118",
  1586. };
  1587. static const char *const qup2_se4_l3_groups[] = {
  1588. "gpio119",
  1589. };
  1590. static const char *const qup2_se5_l0_groups[] = {
  1591. "gpio80",
  1592. };
  1593. static const char *const qup2_se5_l1_groups[] = {
  1594. "gpio81",
  1595. };
  1596. static const char *const qup2_se5_l2_groups[] = {
  1597. "gpio82",
  1598. };
  1599. static const char *const qup2_se5_l3_groups[] = {
  1600. "gpio83",
  1601. };
  1602. static const char *const qup2_se6_l0_groups[] = {
  1603. "gpio76",
  1604. };
  1605. static const char *const qup2_se6_l1_groups[] = {
  1606. "gpio77",
  1607. };
  1608. static const char *const qup2_se6_l2_groups[] = {
  1609. "gpio78",
  1610. };
  1611. static const char *const qup2_se6_l3_groups[] = {
  1612. "gpio79",
  1613. };
  1614. static const char *const qup2_se7_l0_groups[] = {
  1615. "gpio72",
  1616. };
  1617. static const char *const qup2_se7_l1_groups[] = {
  1618. "gpio106",
  1619. };
  1620. static const char *const qup2_se7_l2_groups[] = {
  1621. "gpio74",
  1622. };
  1623. static const char *const qup2_se7_l3_groups[] = {
  1624. "gpio75",
  1625. };
  1626. static const char *const sd_write_protect_groups[] = {
  1627. "gpio93",
  1628. };
  1629. static const char *const sdc40_groups[] = {
  1630. "gpio89",
  1631. };
  1632. static const char *const sdc41_groups[] = {
  1633. "gpio90",
  1634. };
  1635. static const char *const sdc42_groups[] = {
  1636. "gpio48",
  1637. };
  1638. static const char *const sdc43_groups[] = {
  1639. "gpio49",
  1640. };
  1641. static const char *const sdc4_clk_groups[] = {
  1642. "gpio50",
  1643. };
  1644. static const char *const sdc4_cmd_groups[] = {
  1645. "gpio51",
  1646. };
  1647. static const char *const tb_trig_sdc2_groups[] = {
  1648. "gpio64",
  1649. };
  1650. static const char *const tb_trig_sdc4_groups[] = {
  1651. "gpio91",
  1652. };
  1653. static const char *const tgu_ch0_trigout_groups[] = {
  1654. "gpio64",
  1655. };
  1656. static const char *const tgu_ch1_trigout_groups[] = {
  1657. "gpio65",
  1658. };
  1659. static const char *const tgu_ch2_trigout_groups[] = {
  1660. "gpio66",
  1661. };
  1662. static const char *const tgu_ch3_trigout_groups[] = {
  1663. "gpio67",
  1664. };
  1665. static const char *const tmess_prng0_groups[] = {
  1666. "gpio92",
  1667. };
  1668. static const char *const tmess_prng1_groups[] = {
  1669. "gpio94",
  1670. };
  1671. static const char *const tmess_prng2_groups[] = {
  1672. "gpio95",
  1673. };
  1674. static const char *const tmess_prng3_groups[] = {
  1675. "gpio96",
  1676. };
  1677. static const char *const tsense_pwm1_groups[] = {
  1678. "gpio50",
  1679. };
  1680. static const char *const tsense_pwm2_groups[] = {
  1681. "gpio50",
  1682. };
  1683. static const char *const tsense_pwm3_groups[] = {
  1684. "gpio50",
  1685. };
  1686. static const char *const uim0_clk_groups[] = {
  1687. "gpio131",
  1688. };
  1689. static const char *const uim0_data_groups[] = {
  1690. "gpio130",
  1691. };
  1692. static const char *const uim0_present_groups[] = {
  1693. "gpio27",
  1694. };
  1695. static const char *const uim0_reset_groups[] = {
  1696. "gpio132",
  1697. };
  1698. static const char *const uim1_clk_groups[] = {
  1699. "gpio135",
  1700. };
  1701. static const char *const uim1_data_groups[] = {
  1702. "gpio134",
  1703. };
  1704. static const char *const uim1_present_groups[] = {
  1705. "gpio26",
  1706. };
  1707. static const char *const uim1_reset_groups[] = {
  1708. "gpio136",
  1709. };
  1710. static const char *const usb1_hs_groups[] = {
  1711. "gpio90",
  1712. };
  1713. static const char *const usb_phy_groups[] = {
  1714. "gpio11",
  1715. "gpio48",
  1716. };
  1717. static const char *const vfr_0_groups[] = {
  1718. "gpio150",
  1719. };
  1720. static const char *const vfr_1_groups[] = {
  1721. "gpio155",
  1722. };
  1723. static const char *const vsense_trigger_mirnat_groups[] = {
  1724. "gpio24",
  1725. };
  1726. static const struct msm_function kalama_functions[] = {
  1727. FUNCTION(gpio),
  1728. FUNCTION(RESOUT_GPIO_N),
  1729. FUNCTION(aon_cci),
  1730. FUNCTION(aoss_cti),
  1731. FUNCTION(atest_char0),
  1732. FUNCTION(atest_char1),
  1733. FUNCTION(atest_char2),
  1734. FUNCTION(atest_char3),
  1735. FUNCTION(atest_char_start),
  1736. FUNCTION(atest_usb0),
  1737. FUNCTION(atest_usb00),
  1738. FUNCTION(atest_usb01),
  1739. FUNCTION(atest_usb02),
  1740. FUNCTION(atest_usb03),
  1741. FUNCTION(audio_ext_mclk0),
  1742. FUNCTION(audio_ext_mclk1),
  1743. FUNCTION(audio_ref_clk),
  1744. FUNCTION(cam_aon_mclk4),
  1745. FUNCTION(cam_mclk),
  1746. FUNCTION(cci_async_in0),
  1747. FUNCTION(cci_async_in1),
  1748. FUNCTION(cci_async_in2),
  1749. FUNCTION(cci_i2c_scl0),
  1750. FUNCTION(cci_i2c_scl1),
  1751. FUNCTION(cci_i2c_scl2),
  1752. FUNCTION(cci_i2c_scl4),
  1753. FUNCTION(cci_i2c_scl5),
  1754. FUNCTION(cci_i2c_sda0),
  1755. FUNCTION(cci_i2c_sda1),
  1756. FUNCTION(cci_i2c_sda2),
  1757. FUNCTION(cci_i2c_sda4),
  1758. FUNCTION(cci_i2c_sda5),
  1759. FUNCTION(cci_timer0),
  1760. FUNCTION(cci_timer1),
  1761. FUNCTION(cci_timer2),
  1762. FUNCTION(cci_timer3),
  1763. FUNCTION(cci_timer4),
  1764. FUNCTION(cmu_rng0),
  1765. FUNCTION(cmu_rng1),
  1766. FUNCTION(cmu_rng2),
  1767. FUNCTION(cmu_rng3),
  1768. FUNCTION(coex_uart1_rx),
  1769. FUNCTION(coex_uart1_tx),
  1770. FUNCTION(coex_uart2_rx),
  1771. FUNCTION(coex_uart2_tx),
  1772. FUNCTION(cri_trng),
  1773. FUNCTION(dbg_out_clk),
  1774. FUNCTION(ddr_bist_complete),
  1775. FUNCTION(ddr_bist_fail),
  1776. FUNCTION(ddr_bist_start),
  1777. FUNCTION(ddr_bist_stop),
  1778. FUNCTION(ddr_pxi0),
  1779. FUNCTION(ddr_pxi1),
  1780. FUNCTION(ddr_pxi2),
  1781. FUNCTION(ddr_pxi3),
  1782. FUNCTION(dp_hot),
  1783. FUNCTION(gcc_gp1),
  1784. FUNCTION(gcc_gp2),
  1785. FUNCTION(gcc_gp3),
  1786. FUNCTION(i2chub0_se0_l0),
  1787. FUNCTION(i2chub0_se0_l1),
  1788. FUNCTION(i2chub0_se1_l0),
  1789. FUNCTION(i2chub0_se1_l1),
  1790. FUNCTION(i2chub0_se2_l0),
  1791. FUNCTION(i2chub0_se2_l1),
  1792. FUNCTION(i2chub0_se3_l0),
  1793. FUNCTION(i2chub0_se3_l1),
  1794. FUNCTION(i2chub0_se4_l0),
  1795. FUNCTION(i2chub0_se4_l1),
  1796. FUNCTION(i2chub0_se5_l0),
  1797. FUNCTION(i2chub0_se5_l1),
  1798. FUNCTION(i2chub0_se6_l0),
  1799. FUNCTION(i2chub0_se6_l1),
  1800. FUNCTION(i2chub0_se7_l0),
  1801. FUNCTION(i2chub0_se7_l1),
  1802. FUNCTION(i2chub0_se8_l0),
  1803. FUNCTION(i2chub0_se8_l1),
  1804. FUNCTION(i2chub0_se9_l0),
  1805. FUNCTION(i2chub0_se9_l1),
  1806. FUNCTION(i2s0_data0),
  1807. FUNCTION(i2s0_data1),
  1808. FUNCTION(i2s0_sck),
  1809. FUNCTION(i2s0_ws),
  1810. FUNCTION(i2s1_data0),
  1811. FUNCTION(i2s1_data1),
  1812. FUNCTION(i2s1_sck),
  1813. FUNCTION(i2s1_ws),
  1814. FUNCTION(ibi_i3c),
  1815. FUNCTION(jitter_bist),
  1816. FUNCTION(mdp_vsync),
  1817. FUNCTION(mdp_vsync0_out),
  1818. FUNCTION(mdp_vsync1_out),
  1819. FUNCTION(mdp_vsync2_out),
  1820. FUNCTION(mdp_vsync3_out),
  1821. FUNCTION(mdp_vsync_e),
  1822. FUNCTION(nav_gpio0),
  1823. FUNCTION(nav_gpio1),
  1824. FUNCTION(nav_gpio2),
  1825. FUNCTION(pcie0_clk_req_n),
  1826. FUNCTION(pcie1_clk_req_n),
  1827. FUNCTION(phase_flag0),
  1828. FUNCTION(phase_flag1),
  1829. FUNCTION(phase_flag10),
  1830. FUNCTION(phase_flag11),
  1831. FUNCTION(phase_flag12),
  1832. FUNCTION(phase_flag13),
  1833. FUNCTION(phase_flag14),
  1834. FUNCTION(phase_flag15),
  1835. FUNCTION(phase_flag16),
  1836. FUNCTION(phase_flag17),
  1837. FUNCTION(phase_flag18),
  1838. FUNCTION(phase_flag19),
  1839. FUNCTION(phase_flag2),
  1840. FUNCTION(phase_flag20),
  1841. FUNCTION(phase_flag21),
  1842. FUNCTION(phase_flag22),
  1843. FUNCTION(phase_flag23),
  1844. FUNCTION(phase_flag24),
  1845. FUNCTION(phase_flag25),
  1846. FUNCTION(phase_flag26),
  1847. FUNCTION(phase_flag27),
  1848. FUNCTION(phase_flag28),
  1849. FUNCTION(phase_flag29),
  1850. FUNCTION(phase_flag3),
  1851. FUNCTION(phase_flag30),
  1852. FUNCTION(phase_flag31),
  1853. FUNCTION(phase_flag4),
  1854. FUNCTION(phase_flag5),
  1855. FUNCTION(phase_flag6),
  1856. FUNCTION(phase_flag7),
  1857. FUNCTION(phase_flag8),
  1858. FUNCTION(phase_flag9),
  1859. FUNCTION(pll_bist_sync),
  1860. FUNCTION(pll_clk_aux),
  1861. FUNCTION(prng_rosc0),
  1862. FUNCTION(prng_rosc1),
  1863. FUNCTION(prng_rosc2),
  1864. FUNCTION(prng_rosc3),
  1865. FUNCTION(qdss_cti),
  1866. FUNCTION(qdss_gpio),
  1867. FUNCTION(qdss_gpio0),
  1868. FUNCTION(qdss_gpio1),
  1869. FUNCTION(qdss_gpio10),
  1870. FUNCTION(qdss_gpio11),
  1871. FUNCTION(qdss_gpio12),
  1872. FUNCTION(qdss_gpio13),
  1873. FUNCTION(qdss_gpio14),
  1874. FUNCTION(qdss_gpio15),
  1875. FUNCTION(qdss_gpio2),
  1876. FUNCTION(qdss_gpio3),
  1877. FUNCTION(qdss_gpio4),
  1878. FUNCTION(qdss_gpio5),
  1879. FUNCTION(qdss_gpio6),
  1880. FUNCTION(qdss_gpio7),
  1881. FUNCTION(qdss_gpio8),
  1882. FUNCTION(qdss_gpio9),
  1883. FUNCTION(qlink0_enable),
  1884. FUNCTION(qlink0_request),
  1885. FUNCTION(qlink0_wmss),
  1886. FUNCTION(qlink1_enable),
  1887. FUNCTION(qlink1_request),
  1888. FUNCTION(qlink1_wmss),
  1889. FUNCTION(qlink2_enable),
  1890. FUNCTION(qlink2_request),
  1891. FUNCTION(qlink2_wmss),
  1892. FUNCTION(qspi0),
  1893. FUNCTION(qspi1),
  1894. FUNCTION(qspi2),
  1895. FUNCTION(qspi3),
  1896. FUNCTION(qspi_clk),
  1897. FUNCTION(qspi_cs),
  1898. FUNCTION(qup1_se0_l0),
  1899. FUNCTION(qup1_se0_l1),
  1900. FUNCTION(qup1_se0_l2),
  1901. FUNCTION(qup1_se0_l3),
  1902. FUNCTION(qup1_se1_l0),
  1903. FUNCTION(qup1_se1_l1),
  1904. FUNCTION(qup1_se1_l2),
  1905. FUNCTION(qup1_se1_l3),
  1906. FUNCTION(qup1_se2),
  1907. FUNCTION(qup1_se2_l0),
  1908. FUNCTION(qup1_se2_l1),
  1909. FUNCTION(qup1_se2_l2),
  1910. FUNCTION(qup1_se2_l3),
  1911. FUNCTION(qup1_se3_l0),
  1912. FUNCTION(qup1_se3_l1),
  1913. FUNCTION(qup1_se3_l2),
  1914. FUNCTION(qup1_se3_l3),
  1915. FUNCTION(qup1_se4_l0),
  1916. FUNCTION(qup1_se4_l1),
  1917. FUNCTION(qup1_se4_l2),
  1918. FUNCTION(qup1_se4_l3),
  1919. FUNCTION(qup1_se5_l0),
  1920. FUNCTION(qup1_se5_l1),
  1921. FUNCTION(qup1_se5_l2),
  1922. FUNCTION(qup1_se5_l3),
  1923. FUNCTION(qup1_se6_l0),
  1924. FUNCTION(qup1_se6_l1),
  1925. FUNCTION(qup1_se6_l2),
  1926. FUNCTION(qup1_se6_l3),
  1927. FUNCTION(qup1_se7_l0),
  1928. FUNCTION(qup1_se7_l1),
  1929. FUNCTION(qup1_se7_l2),
  1930. FUNCTION(qup1_se7_l3),
  1931. FUNCTION(qup2_se0),
  1932. FUNCTION(qup2_se0_l0_mira),
  1933. FUNCTION(qup2_se0_l0_mirb),
  1934. FUNCTION(qup2_se0_l1_mira),
  1935. FUNCTION(qup2_se0_l1_mirb),
  1936. FUNCTION(qup2_se0_l2_mira),
  1937. FUNCTION(qup2_se0_l2_mirb),
  1938. FUNCTION(qup2_se0_l3_mira),
  1939. FUNCTION(qup2_se0_l3_mirb),
  1940. FUNCTION(qup2_se1_l0),
  1941. FUNCTION(qup2_se1_l1),
  1942. FUNCTION(qup2_se1_l2),
  1943. FUNCTION(qup2_se1_l3),
  1944. FUNCTION(qup2_se2_l0),
  1945. FUNCTION(qup2_se2_l1),
  1946. FUNCTION(qup2_se2_l2),
  1947. FUNCTION(qup2_se2_l3),
  1948. FUNCTION(qup2_se3_l0),
  1949. FUNCTION(qup2_se3_l1),
  1950. FUNCTION(qup2_se3_l2),
  1951. FUNCTION(qup2_se3_l3),
  1952. FUNCTION(qup2_se4_l0),
  1953. FUNCTION(qup2_se4_l1),
  1954. FUNCTION(qup2_se4_l2),
  1955. FUNCTION(qup2_se4_l3),
  1956. FUNCTION(qup2_se5_l0),
  1957. FUNCTION(qup2_se5_l1),
  1958. FUNCTION(qup2_se5_l2),
  1959. FUNCTION(qup2_se5_l3),
  1960. FUNCTION(qup2_se6_l0),
  1961. FUNCTION(qup2_se6_l1),
  1962. FUNCTION(qup2_se6_l2),
  1963. FUNCTION(qup2_se6_l3),
  1964. FUNCTION(qup2_se7_l0),
  1965. FUNCTION(qup2_se7_l1),
  1966. FUNCTION(qup2_se7_l2),
  1967. FUNCTION(qup2_se7_l3),
  1968. FUNCTION(sd_write_protect),
  1969. FUNCTION(sdc40),
  1970. FUNCTION(sdc41),
  1971. FUNCTION(sdc42),
  1972. FUNCTION(sdc43),
  1973. FUNCTION(sdc4_clk),
  1974. FUNCTION(sdc4_cmd),
  1975. FUNCTION(tb_trig_sdc2),
  1976. FUNCTION(tb_trig_sdc4),
  1977. FUNCTION(tgu_ch0_trigout),
  1978. FUNCTION(tgu_ch1_trigout),
  1979. FUNCTION(tgu_ch2_trigout),
  1980. FUNCTION(tgu_ch3_trigout),
  1981. FUNCTION(tmess_prng0),
  1982. FUNCTION(tmess_prng1),
  1983. FUNCTION(tmess_prng2),
  1984. FUNCTION(tmess_prng3),
  1985. FUNCTION(tsense_pwm1),
  1986. FUNCTION(tsense_pwm2),
  1987. FUNCTION(tsense_pwm3),
  1988. FUNCTION(uim0_clk),
  1989. FUNCTION(uim0_data),
  1990. FUNCTION(uim0_present),
  1991. FUNCTION(uim0_reset),
  1992. FUNCTION(uim1_clk),
  1993. FUNCTION(uim1_data),
  1994. FUNCTION(uim1_present),
  1995. FUNCTION(uim1_reset),
  1996. FUNCTION(usb1_hs),
  1997. FUNCTION(usb_phy),
  1998. FUNCTION(vfr_0),
  1999. FUNCTION(vfr_1),
  2000. FUNCTION(vsense_trigger_mirnat),
  2001. };
  2002. /* Every pin is maintained as a single group, and missing or non-existing pin
  2003. * would be maintained as dummy group to synchronize pin group index with
  2004. * pin descriptor registered with pinctrl core.
  2005. * Clients would not be able to request these dummy pin groups.
  2006. */
  2007. static const struct msm_pingroup kalama_groups[] = {
  2008. [0] = PINGROUP(0, cci_i2c_sda5, qup2_se0_l0_mirb, ibi_i3c, phase_flag31,
  2009. NA, NA, NA, NA, NA, 0xD200C, 3),
  2010. [1] = PINGROUP(1, cci_i2c_scl5, qup2_se0_l1_mirb, ibi_i3c, NA, NA, NA,
  2011. NA, NA, NA, 0, -1),
  2012. [2] = PINGROUP(2, qup2_se4_l0, phase_flag29, NA, NA, NA, NA, NA, NA, NA,
  2013. 0xD200C, 4),
  2014. [3] = PINGROUP(3, qup2_se4_l1, phase_flag28, NA, NA, NA, NA, NA, NA, NA,
  2015. 0xD200C, 5),
  2016. [4] = PINGROUP(4, i2chub0_se4_l0, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2017. -1),
  2018. [5] = PINGROUP(5, i2chub0_se4_l1, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2019. -1),
  2020. [6] = PINGROUP(6, i2chub0_se5_l0, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2021. -1),
  2022. [7] = PINGROUP(7, i2chub0_se5_l1, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2023. -1),
  2024. [8] = PINGROUP(8, i2chub0_se6_l0, NA, NA, NA, NA, NA, NA, NA, NA,
  2025. 0xD2000, 0),
  2026. [9] = PINGROUP(9, i2chub0_se6_l1, NA, NA, NA, NA, NA, NA, NA, NA,
  2027. 0xD2000, 1),
  2028. [10] = PINGROUP(10, i2chub0_se7_l0, qdss_cti, phase_flag30, NA, NA, NA,
  2029. NA, NA, NA, 0, -1),
  2030. [11] = PINGROUP(11, i2chub0_se7_l1, usb_phy, qdss_cti, phase_flag20, NA,
  2031. NA, NA, NA, NA, 0xD200C, 6),
  2032. [12] = PINGROUP(12, phase_flag26, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2033. -1),
  2034. [13] = PINGROUP(13, phase_flag17, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2035. -1),
  2036. [14] = PINGROUP(14, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2000, 2),
  2037. [15] = PINGROUP(15, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2000, 3),
  2038. [16] = PINGROUP(16, i2chub0_se0_l0, NA, NA, NA, NA, NA, NA, NA, NA,
  2039. 0xD2000, 4),
  2040. [17] = PINGROUP(17, i2chub0_se0_l1, NA, NA, NA, NA, NA, NA, NA, NA,
  2041. 0xD2000, 5),
  2042. [18] = PINGROUP(18, i2chub0_se1_l0, NA, NA, NA, NA, NA, NA, NA, NA,
  2043. 0xD2000, 6),
  2044. [19] = PINGROUP(19, i2chub0_se1_l1, NA, NA, NA, NA, NA, NA, NA, NA,
  2045. 0xD2000, 7),
  2046. [20] = PINGROUP(20, i2chub0_se2_l0, pll_bist_sync, NA, NA, NA, NA, NA,
  2047. NA, NA, 0, -1),
  2048. [21] = PINGROUP(21, i2chub0_se2_l1, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2049. -1),
  2050. [22] = PINGROUP(22, i2chub0_se3_l0, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2051. -1),
  2052. [23] = PINGROUP(23, i2chub0_se3_l1, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2053. -1),
  2054. [24] = PINGROUP(24, qup1_se7_l0, vsense_trigger_mirnat, NA, NA, NA, NA,
  2055. NA, NA, NA, 0, -1),
  2056. [25] = PINGROUP(25, qup1_se7_l1, NA, NA, NA, NA, NA, NA, NA, NA,
  2057. 0xD2014, 0),
  2058. [26] = PINGROUP(26, qup1_se7_l2, uim1_present, NA, NA, NA, NA, NA, NA,
  2059. NA, 0xD2014, 1),
  2060. [27] = PINGROUP(27, qup1_se7_l3, uim0_present, NA, NA, NA, NA, NA, NA,
  2061. NA, 0xD2014, 2),
  2062. [28] = PINGROUP(28, qup1_se0_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2063. 0xD2014, 3),
  2064. [29] = PINGROUP(29, qup1_se0_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA, 0,
  2065. -1),
  2066. [30] = PINGROUP(30, qup1_se0_l2, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2067. [31] = PINGROUP(31, qup1_se0_l3, NA, NA, NA, NA, NA, NA, NA, NA,
  2068. 0xD2014, 4),
  2069. [32] = PINGROUP(32, qup1_se1_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2070. 0xD2014, 5),
  2071. [33] = PINGROUP(33, qup1_se1_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA, 0,
  2072. -1),
  2073. [34] = PINGROUP(34, qup1_se1_l2, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2074. [35] = PINGROUP(35, qup1_se1_l3, NA, NA, NA, NA, NA, NA, NA, NA,
  2075. 0xD2014, 6),
  2076. [36] = PINGROUP(36, qup1_se2_l0, ddr_bist_fail, NA, NA, NA, NA, NA, NA,
  2077. NA, 0, -1),
  2078. [37] = PINGROUP(37, qup1_se2_l1, ddr_bist_start, NA, atest_usb0, NA, NA,
  2079. NA, NA, NA, 0, -1),
  2080. [38] = PINGROUP(38, qup1_se2_l2, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2081. [39] = PINGROUP(39, qup1_se2_l3, NA, atest_usb02, NA, NA, NA, NA, NA,
  2082. NA, 0xD2014, 7),
  2083. [40] = PINGROUP(40, qup1_se3_l0, qup1_se2, ddr_bist_complete, NA,
  2084. ddr_pxi1, NA, NA, NA, NA, 0xD2014, 8),
  2085. [41] = PINGROUP(41, qup1_se3_l1, qup1_se2, ddr_bist_stop, NA, ddr_pxi1,
  2086. NA, NA, NA, NA, 0xD2014, 9),
  2087. [42] = PINGROUP(42, qup1_se3_l2, qup1_se2, NA, NA, NA, NA, NA, NA, NA,
  2088. 0, -1),
  2089. [43] = PINGROUP(43, qup1_se3_l3, jitter_bist, ddr_pxi3, NA, NA, NA, NA,
  2090. NA, NA, 0xD2014, 10),
  2091. [44] = PINGROUP(44, qup1_se4_l0, aoss_cti, ddr_pxi3, NA, NA, NA, NA, NA,
  2092. NA, 0xD2014, 11),
  2093. [45] = PINGROUP(45, qup1_se4_l1, aoss_cti, ddr_pxi2, NA, NA, NA, NA, NA,
  2094. NA, 0xD2014, 12),
  2095. [46] = PINGROUP(46, qup1_se4_l2, aoss_cti, NA, NA, NA, NA, NA, NA, NA,
  2096. 0xD2014, 13),
  2097. [47] = PINGROUP(47, qup1_se4_l3, aoss_cti, dp_hot, ddr_pxi2, NA, NA, NA,
  2098. NA, NA, 0xD2014, 14),
  2099. [48] = PINGROUP(48, usb_phy, qup1_se6_l0, qspi2, sdc42, NA, NA, NA, NA,
  2100. NA, 0xD2014, 15),
  2101. [49] = PINGROUP(49, qup1_se6_l1, qspi3, sdc43, NA, NA, NA, NA, NA, NA,
  2102. 0, -1),
  2103. [50] = PINGROUP(50, qup1_se6_l2, qspi_clk, sdc4_clk, tsense_pwm1,
  2104. tsense_pwm2, tsense_pwm3, NA, NA, NA, 0, -1),
  2105. [51] = PINGROUP(51, qup1_se6_l3, qspi_cs, sdc4_cmd, ddr_pxi0, NA, NA,
  2106. NA, NA, NA, 0xD2018, 0),
  2107. [52] = PINGROUP(52, NA, qup1_se5_l0, ddr_pxi0, NA, NA, NA, NA, NA, NA,
  2108. 0, -1),
  2109. [53] = PINGROUP(53, NA, qup1_se5_l1, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2110. [54] = PINGROUP(54, NA, qup1_se5_l2, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2111. [55] = PINGROUP(55, qup1_se5_l3, atest_usb03, NA, NA, NA, NA, NA, NA,
  2112. NA, 0xD2018, 1),
  2113. [56] = PINGROUP(56, qup2_se0_l0_mira, ibi_i3c, NA, NA, NA, NA, NA, NA,
  2114. NA, 0xD200C, 7),
  2115. [57] = PINGROUP(57, qup2_se0_l1_mira, ibi_i3c, NA, NA, NA, NA, NA, NA,
  2116. NA, 0, -1),
  2117. [58] = PINGROUP(58, qup2_se0_l2_mira, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2118. -1),
  2119. [59] = PINGROUP(59, qup2_se0_l3_mira, phase_flag25, NA, qdss_gpio6, NA,
  2120. NA, NA, NA, NA, 0xD200C, 8),
  2121. [60] = PINGROUP(60, qup2_se1_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2122. 0xD200C, 9),
  2123. [61] = PINGROUP(61, qup2_se1_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA, 0,
  2124. -1),
  2125. [62] = PINGROUP(62, qup2_se1_l2, NA, NA, NA, NA, NA, NA, NA, NA,
  2126. 0xD200C, 10),
  2127. [63] = PINGROUP(63, qup2_se1_l3, qup2_se0, phase_flag23, NA, NA, NA, NA,
  2128. NA, NA, 0xD200C, 11),
  2129. [64] = PINGROUP(64, qup2_se2_l0, tb_trig_sdc2, phase_flag22,
  2130. tgu_ch0_trigout, NA, qdss_gpio4, NA, NA, NA, 0, -1),
  2131. [65] = PINGROUP(65, qup2_se2_l1, phase_flag21, tgu_ch1_trigout, NA, NA,
  2132. NA, NA, NA, NA, 0, -1),
  2133. [66] = PINGROUP(66, qup2_se2_l2, qup2_se0, tgu_ch2_trigout, NA, NA, NA,
  2134. NA, NA, NA, 0, -1),
  2135. [67] = PINGROUP(67, qup2_se2_l3, qup2_se0, phase_flag19,
  2136. tgu_ch3_trigout, NA, NA, NA, NA, NA, 0xD200C, 12),
  2137. [68] = PINGROUP(68, qup2_se3_l0, phase_flag18, NA, NA, NA, NA, NA, NA,
  2138. NA, 0, -1),
  2139. [69] = PINGROUP(69, qup2_se3_l1, phase_flag27, NA, NA, NA, NA, NA, NA,
  2140. NA, 0, -1),
  2141. [70] = PINGROUP(70, qup2_se3_l2, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2142. [71] = PINGROUP(71, cci_async_in0, qup2_se3_l3, NA, NA, NA, NA, NA, NA,
  2143. NA, 0xD200C, 13),
  2144. [72] = PINGROUP(72, cci_async_in1, qup2_se7_l0, NA, NA, NA, NA, NA, NA,
  2145. NA, 0, -1),
  2146. [73] = PINGROUP(73, qdss_gpio5, NA, NA, NA, NA, NA, NA, NA, NA, 0xD200C,
  2147. 14),
  2148. [74] = PINGROUP(74, cci_i2c_sda4, qup2_se7_l2, NA, NA, NA, NA, NA, NA,
  2149. NA, 0, -1),
  2150. [75] = PINGROUP(75, cci_i2c_scl4, qup2_se7_l3, qdss_cti, phase_flag16,
  2151. NA, NA, NA, NA, NA, 0xD200C, 15),
  2152. [76] = PINGROUP(76, qup2_se6_l0, phase_flag15, NA, NA, NA, NA, NA, NA,
  2153. NA, 0, -1),
  2154. [77] = PINGROUP(77, qup2_se6_l1, phase_flag14, NA, NA, NA, NA, NA, NA,
  2155. NA, 0, -1),
  2156. [78] = PINGROUP(78, qup2_se6_l2, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2157. [79] = PINGROUP(79, qup2_se6_l3, qdss_cti, phase_flag4, NA, NA, NA, NA,
  2158. NA, NA, 0xD2010, 0),
  2159. [80] = PINGROUP(80, qup2_se5_l0, phase_flag3, NA, NA, NA, NA, NA, NA,
  2160. NA, 0, -1),
  2161. [81] = PINGROUP(81, qup2_se5_l1, phase_flag2, NA, NA, NA, NA, NA, NA,
  2162. NA, 0, -1),
  2163. [82] = PINGROUP(82, qup2_se5_l2, NA, NA, NA, NA, NA, NA, NA, NA,
  2164. 0xD2010, 1),
  2165. [83] = PINGROUP(83, qup2_se5_l3, phase_flag0, NA, NA, NA, NA, NA, NA,
  2166. NA, 0xD2010, 2),
  2167. [84] = PINGROUP(84, i2chub0_se9_l0, NA, NA, NA, NA, NA, NA, NA, NA,
  2168. 0xD2000, 8),
  2169. [85] = PINGROUP(85, i2chub0_se9_l1, NA, NA, NA, NA, NA, NA, NA, NA,
  2170. 0xD2000, 9),
  2171. [86] = PINGROUP(86, mdp_vsync, mdp_vsync0_out, mdp_vsync1_out, gcc_gp1,
  2172. NA, NA, NA, NA, NA, 0xD2018, 2),
  2173. [87] = PINGROUP(87, mdp_vsync, mdp_vsync2_out, mdp_vsync3_out, gcc_gp2,
  2174. NA, NA, NA, NA, NA, 0xD2018, 3),
  2175. [88] = PINGROUP(88, mdp_vsync_e, gcc_gp3, NA, NA, NA, NA, NA, NA, NA,
  2176. 0xD2018, 4),
  2177. [89] = PINGROUP(89, qspi0, sdc40, dbg_out_clk, NA, NA, NA, NA, NA, NA,
  2178. 0xD2018, 5),
  2179. [90] = PINGROUP(90, usb1_hs, qspi1, sdc41, NA, NA, NA, NA, NA, NA, 0,
  2180. -1),
  2181. [91] = PINGROUP(91, qspi_cs, tb_trig_sdc4, NA, NA, NA, NA, NA, NA, NA,
  2182. 0, -1),
  2183. [92] = PINGROUP(92, RESOUT_GPIO_N, phase_flag24, tmess_prng0, NA, NA,
  2184. NA, NA, NA, NA, 0, -1),
  2185. [93] = PINGROUP(93, sd_write_protect, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2186. -1),
  2187. [94] = PINGROUP(94, phase_flag11, tmess_prng1, NA, NA, NA, NA, NA, NA,
  2188. NA, 0, -1),
  2189. [95] = PINGROUP(95, pcie0_clk_req_n, phase_flag10, tmess_prng2, NA, NA,
  2190. NA, NA, NA, NA, 0xD2010, 3),
  2191. [96] = PINGROUP(96, phase_flag9, tmess_prng3, NA, NA, NA, NA, NA, NA,
  2192. NA, 0xD2010, 4),
  2193. [97] = PINGROUP(97, phase_flag8, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2194. [98] = PINGROUP(98, pcie1_clk_req_n, phase_flag7, NA, NA, NA, NA, NA,
  2195. NA, NA, 0xD2010, 5),
  2196. [99] = PINGROUP(99, phase_flag6, NA, NA, NA, NA, NA, NA, NA, NA,
  2197. 0xD2010, 6),
  2198. [100] = PINGROUP(100, cam_mclk, qdss_gpio11, NA, NA, NA, NA, NA, NA, NA,
  2199. 0, -1),
  2200. [101] = PINGROUP(101, cam_mclk, qdss_gpio12, NA, NA, NA, NA, NA, NA, NA,
  2201. 0, -1),
  2202. [102] = PINGROUP(102, cam_mclk, qdss_gpio0, NA, NA, NA, NA, NA, NA, NA,
  2203. 0, -1),
  2204. [103] = PINGROUP(103, cam_mclk, qdss_gpio1, NA, NA, NA, NA, NA, NA, NA,
  2205. 0, -1),
  2206. [104] = PINGROUP(104, cam_aon_mclk4, qdss_gpio2, NA, NA, NA, NA, NA, NA,
  2207. NA, 0, -1),
  2208. [105] = PINGROUP(105, cam_mclk, qdss_gpio3, NA, NA, NA, NA, NA, NA, NA,
  2209. 0, -1),
  2210. [106] = PINGROUP(106, cam_mclk, qup2_se7_l1, NA, NA, NA, NA, NA, NA, NA,
  2211. 0, -1),
  2212. [107] = PINGROUP(107, cam_mclk, qup2_se0_l3_mirb, pll_clk_aux, NA, NA,
  2213. NA, NA, NA, NA, 0xD2010, 7),
  2214. [108] = PINGROUP(108, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2215. [109] = PINGROUP(109, cci_async_in2, qup2_se0_l2_mirb, NA, NA, NA, NA,
  2216. NA, NA, NA, 0, -1),
  2217. [110] = PINGROUP(110, cci_i2c_sda0, qdss_gpio7, NA, NA, NA, NA, NA, NA,
  2218. NA, 0, -1),
  2219. [111] = PINGROUP(111, cci_i2c_scl0, qdss_gpio8, NA, NA, NA, NA, NA, NA,
  2220. NA, 0, -1),
  2221. [112] = PINGROUP(112, cci_i2c_sda1, qdss_gpio, NA, NA, NA, NA, NA, NA,
  2222. NA, 0, -1),
  2223. [113] = PINGROUP(113, cci_i2c_scl1, qdss_gpio, NA, NA, NA, NA, NA, NA,
  2224. NA, 0, -1),
  2225. [114] = PINGROUP(114, cci_i2c_sda2, qdss_gpio9, NA, NA, NA, NA, NA, NA,
  2226. NA, 0, -1),
  2227. [115] = PINGROUP(115, cci_i2c_scl2, qdss_gpio10, NA, NA, NA, NA, NA, NA,
  2228. NA, 0, -1),
  2229. [116] = PINGROUP(116, cci_timer0, phase_flag5, NA, qdss_gpio13, NA, NA,
  2230. NA, NA, NA, 0, -1),
  2231. [117] = PINGROUP(117, cci_timer1, phase_flag1, NA, qdss_gpio14, NA, NA,
  2232. NA, NA, NA, 0, -1),
  2233. [118] = PINGROUP(118, qup2_se4_l2, cci_timer2, NA, NA, NA, NA, NA, NA,
  2234. NA, 0, -1),
  2235. [119] = PINGROUP(119, qup2_se4_l3, cci_timer3, phase_flag12, NA, NA, NA,
  2236. NA, NA, NA, 0xD2010, 8),
  2237. [120] = PINGROUP(120, cci_timer4, phase_flag13, NA, qdss_gpio15, NA, NA,
  2238. NA, NA, NA, 0xD2010, 9),
  2239. [121] = PINGROUP(121, i2s1_sck, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2240. [122] = PINGROUP(122, i2s1_data0, cmu_rng3, NA, NA, NA, NA, NA, NA, NA,
  2241. 0, -1),
  2242. [123] = PINGROUP(123, i2s1_ws, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2243. [124] = PINGROUP(124, i2s1_data1, audio_ext_mclk1, audio_ref_clk, NA,
  2244. NA, NA, NA, NA, NA, 0, -1),
  2245. [125] = PINGROUP(125, audio_ext_mclk0, NA, NA, NA, NA, NA, NA, NA, NA,
  2246. 0, -1),
  2247. [126] = PINGROUP(126, i2s0_sck, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2248. [127] = PINGROUP(127, i2s0_data0, cmu_rng2, NA, NA, NA, NA, NA, NA, NA,
  2249. 0, -1),
  2250. [128] = PINGROUP(128, i2s0_data1, cmu_rng1, NA, NA, NA, NA, NA, NA, NA,
  2251. 0, -1),
  2252. [129] = PINGROUP(129, i2s0_ws, cmu_rng0, NA, NA, NA, NA, NA, NA, NA, 0,
  2253. -1),
  2254. [130] = PINGROUP(130, uim0_data, atest_char_start, NA, NA, NA, NA, NA,
  2255. NA, NA, 0, -1),
  2256. [131] = PINGROUP(131, uim0_clk, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2257. [132] = PINGROUP(132, uim0_reset, atest_char3, NA, NA, NA, NA, NA, NA,
  2258. NA, 0, -1),
  2259. [133] = PINGROUP(133, mdp_vsync, atest_char2, NA, NA, NA, NA, NA, NA,
  2260. NA, 0xD2018, 6),
  2261. [134] = PINGROUP(134, uim1_data, gcc_gp1, atest_char1, NA, NA, NA, NA,
  2262. NA, NA, 0, -1),
  2263. [135] = PINGROUP(135, uim1_clk, gcc_gp2, atest_char0, NA, NA, NA, NA,
  2264. NA, NA, 0, -1),
  2265. [136] = PINGROUP(136, uim1_reset, gcc_gp3, NA, NA, NA, NA, NA, NA, NA,
  2266. 0, -1),
  2267. [137] = PINGROUP(137, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA,
  2268. 0xD2018, 7),
  2269. [138] = PINGROUP(138, NA, NA, qdss_gpio0, NA, NA, NA, NA, NA, NA, 0,
  2270. -1),
  2271. [139] = PINGROUP(139, NA, NA, qdss_gpio1, NA, NA, NA, NA, NA, NA, 0,
  2272. -1),
  2273. [140] = PINGROUP(140, NA, NA, qdss_gpio2, NA, NA, NA, NA, NA, NA, 0,
  2274. -1),
  2275. [141] = PINGROUP(141, NA, NA, qdss_gpio3, NA, NA, NA, NA, NA, NA, 0,
  2276. -1),
  2277. [142] = PINGROUP(142, NA, NA, qdss_gpio4, NA, NA, NA, NA, NA, NA, 0,
  2278. -1),
  2279. [143] = PINGROUP(143, NA, NA, qdss_gpio5, NA, NA, NA, NA, NA, NA, 0,
  2280. -1),
  2281. [144] = PINGROUP(144, NA, NA, qdss_gpio6, NA, NA, NA, NA, NA, NA, 0,
  2282. -1),
  2283. [145] = PINGROUP(145, NA, NA, qdss_gpio7, NA, NA, NA, NA, NA, NA, 0,
  2284. -1),
  2285. [146] = PINGROUP(146, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2286. [147] = PINGROUP(147, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2287. [148] = PINGROUP(148, coex_uart1_rx, qdss_gpio, atest_usb01, NA, NA, NA,
  2288. NA, NA, NA, 0xD201C, 0),
  2289. [149] = PINGROUP(149, coex_uart1_tx, qdss_gpio, atest_usb00, NA, NA, NA,
  2290. NA, NA, NA, 0, -1),
  2291. [150] = PINGROUP(150, coex_uart2_rx, NA, vfr_0, qdss_gpio8, NA, NA, NA,
  2292. NA, NA, 0xD2018, 8),
  2293. [151] = PINGROUP(151, coex_uart2_tx, NA, qdss_gpio9, NA, NA, NA, NA, NA,
  2294. NA, 0, -1),
  2295. [152] = PINGROUP(152, NA, qdss_gpio10, NA, NA, NA, NA, NA, NA, NA, 0,
  2296. -1),
  2297. [153] = PINGROUP(153, NA, nav_gpio2, qdss_gpio11, NA, NA, NA, NA, NA,
  2298. NA, 0xD2018, 9),
  2299. [154] = PINGROUP(154, nav_gpio0, qdss_gpio12, NA, NA, NA, NA, NA, NA,
  2300. NA, 0xD2018, 10),
  2301. [155] = PINGROUP(155, nav_gpio1, vfr_1, qdss_gpio13, NA, NA, NA, NA, NA,
  2302. NA, 0xD2018, 11),
  2303. [156] = PINGROUP(156, qlink0_request, qdss_gpio14, NA, NA, NA, NA, NA,
  2304. NA, NA, 0xD2018, 12),
  2305. [157] = PINGROUP(157, qlink0_enable, qdss_gpio15, NA, NA, NA, NA, NA,
  2306. NA, NA, 0, -1),
  2307. [158] = PINGROUP(158, qlink0_wmss, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2308. -1),
  2309. [159] = PINGROUP(159, qlink1_request, qdss_cti, NA, NA, NA, NA, NA, NA,
  2310. NA, 0xD2018, 13),
  2311. [160] = PINGROUP(160, qlink1_enable, qdss_cti, NA, NA, NA, NA, NA, NA,
  2312. NA, 0, -1),
  2313. [161] = PINGROUP(161, qlink1_wmss, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  2314. 0, -1),
  2315. [162] = PINGROUP(162, qlink2_request, qdss_cti, NA, NA, NA, NA, NA, NA,
  2316. NA, 0xD2018, 14),
  2317. [163] = PINGROUP(163, qlink2_enable, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2318. -1),
  2319. [164] = PINGROUP(164, qlink2_wmss, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2320. -1),
  2321. [165] = PINGROUP(165, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2322. [166] = PINGROUP(166, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 0),
  2323. [167] = PINGROUP(167, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2324. [168] = PINGROUP(168, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2325. [169] = PINGROUP(169, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 1),
  2326. [170] = PINGROUP(170, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2327. [171] = PINGROUP(171, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 2),
  2328. [172] = PINGROUP(172, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 3),
  2329. [173] = PINGROUP(173, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2330. [174] = PINGROUP(174, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 4),
  2331. [175] = PINGROUP(175, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2332. [176] = PINGROUP(176, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 5),
  2333. [177] = PINGROUP(177, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 6),
  2334. [178] = PINGROUP(178, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2335. [179] = PINGROUP(179, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2336. [180] = PINGROUP(180, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2337. [181] = PINGROUP(181, prng_rosc3, NA, NA, NA, NA, NA, NA, NA, NA,
  2338. 0xD2004, 7),
  2339. [182] = PINGROUP(182, prng_rosc2, NA, NA, NA, NA, NA, NA, NA, NA,
  2340. 0xD2004, 8),
  2341. [183] = PINGROUP(183, prng_rosc1, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2342. -1),
  2343. [184] = PINGROUP(184, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2344. [185] = PINGROUP(185, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 9),
  2345. [186] = PINGROUP(186, prng_rosc0, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2346. -1),
  2347. [187] = PINGROUP(187, cri_trng, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004,
  2348. 10),
  2349. [188] = PINGROUP(188, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 11),
  2350. [189] = PINGROUP(189, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2351. [190] = PINGROUP(190, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 12),
  2352. [191] = PINGROUP(191, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 13),
  2353. [192] = PINGROUP(192, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 14),
  2354. [193] = PINGROUP(193, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2004, 15),
  2355. [194] = PINGROUP(194, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2356. [195] = PINGROUP(195, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2357. [196] = PINGROUP(196, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 0),
  2358. [197] = PINGROUP(197, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 1),
  2359. [198] = PINGROUP(198, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 2),
  2360. [199] = PINGROUP(199, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 3),
  2361. [200] = PINGROUP(200, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 4),
  2362. [201] = PINGROUP(201, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 5),
  2363. [202] = PINGROUP(202, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2364. [203] = PINGROUP(203, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 6),
  2365. [204] = PINGROUP(204, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2366. [205] = PINGROUP(205, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008, 7),
  2367. [206] = PINGROUP(206, i2chub0_se8_l0, NA, NA, NA, NA, NA, NA, NA, NA,
  2368. 0xD2008, 8),
  2369. [207] = PINGROUP(207, i2chub0_se8_l1, NA, NA, NA, NA, NA, NA, NA, NA,
  2370. 0xD2008, 9),
  2371. [208] = PINGROUP(208, aon_cci, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008,
  2372. 10),
  2373. [209] = PINGROUP(209, aon_cci, NA, NA, NA, NA, NA, NA, NA, NA, 0xD2008,
  2374. 11),
  2375. [210] = UFS_RESET(ufs_reset, 0x1DE000),
  2376. [211] = SDC_QDSD_PINGROUP(sdc2_clk, 0x1D6000, 14, 6),
  2377. [212] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x1D6000, 11, 3),
  2378. [213] = SDC_QDSD_PINGROUP(sdc2_data, 0x1D6000, 9, 0),
  2379. };
  2380. static struct pinctrl_qup kalama_qup_regs[] = {
  2381. QUP_I3C(8, QUP_I3C_8_MODE_OFFSET),
  2382. QUP_I3C(9, QUP_I3C_9_MODE_OFFSET),
  2383. QUP_I3C(15, QUP_I3C_15_MODE_OFFSET),
  2384. QUP_I3C(16, QUP_I3C_16_MODE_OFFSET),
  2385. };
  2386. static const struct msm_gpio_wakeirq_map kalama_pdc_map[] = {
  2387. { 0, 118 }, { 2, 90 }, { 3, 101 }, { 8, 60 }, { 9, 67 },
  2388. { 11, 103 }, { 14, 136 }, { 15, 78 }, { 16, 138 }, { 17, 80 },
  2389. { 18, 71 }, { 19, 59 }, { 25, 57 }, { 26, 74 }, { 27, 76 },
  2390. { 28, 62 }, { 31, 111 }, { 32, 63 }, { 35, 124 }, { 39, 92 },
  2391. { 40, 77 }, { 41, 83 }, { 43, 86 }, { 44, 75 }, { 45, 93 },
  2392. { 46, 96 }, { 47, 64 }, { 48, 110 }, { 51, 89 }, { 55, 95 },
  2393. { 56, 68 }, { 59, 87 }, { 60, 65 }, { 62, 100 }, { 63, 81 },
  2394. { 67, 79 }, { 71, 102 }, { 73, 82 }, { 75, 72 }, { 79, 140 },
  2395. { 82, 105 }, { 83, 104 }, { 84, 126 }, { 85, 142 }, { 86, 106 },
  2396. { 87, 107 }, { 88, 61 }, { 89, 88 }, { 95, 108 }, { 96, 109 },
  2397. { 98, 97 }, { 99, 58 }, { 107, 139 }, { 119, 94 }, { 120, 135 },
  2398. { 133, 52 }, { 137, 84 }, { 148, 66 }, { 150, 73 }, { 153, 70 },
  2399. { 154, 53 }, { 155, 69 }, { 156, 54 }, { 159, 55 }, { 162, 56 },
  2400. { 166, 116 }, { 169, 119 }, { 171, 120 }, { 172, 85 }, { 174, 98 },
  2401. { 176, 112 }, { 177, 51 }, { 181, 114 }, { 182, 115 }, { 185, 117 },
  2402. { 187, 91 }, { 188, 123 }, { 190, 127 }, { 191, 113 }, { 192, 128 },
  2403. { 193, 129 }, { 196, 133 }, { 197, 134 }, { 198, 50 }, { 199, 99 },
  2404. { 200, 49 }, { 201, 48 }, { 203, 125 }, { 205, 141 }, { 206, 137 },
  2405. { 207, 47 }, { 208, 121 }, { 209, 122 },
  2406. };
  2407. static const struct msm_gpio_wakeirq_map kalama_pdc_map_v2[] = {
  2408. { 0, 118 }, { 2, 90 }, { 3, 101 }, { 8, 60 }, { 9, 67 },
  2409. { 11, 103 }, { 14, 136 }, { 15, 78 }, { 16, 138 }, { 17, 80 },
  2410. { 18, 71 }, { 19, 59 }, { 25, 57 }, { 26, 74 }, { 27, 76 },
  2411. { 28, 62 }, { 31, 88 }, { 32, 63 }, { 35, 124 }, { 39, 92 },
  2412. { 40, 77 }, { 41, 83 }, { 43, 86 }, { 44, 75 }, { 45, 93 },
  2413. { 46, 96 }, { 47, 64 }, { 48, 110 }, { 51, 89 }, { 55, 95 },
  2414. { 56, 68 }, { 59, 87 }, { 60, 65 }, { 62, 100 }, { 63, 81 },
  2415. { 67, 79 }, { 71, 102 }, { 73, 82 }, { 75, 72 }, { 79, 140 },
  2416. { 82, 105 }, { 83, 104 }, { 84, 126 }, { 85, 142 }, { 86, 106 },
  2417. { 87, 107 }, { 88, 61 }, { 89, 111 }, { 95, 108 }, { 96, 109 },
  2418. { 98, 97 }, { 99, 58 }, { 107, 139 }, { 119, 94 }, { 120, 135 },
  2419. { 133, 52 }, { 137, 84 }, { 148, 66 }, { 150, 73 }, { 153, 70 },
  2420. { 154, 53 }, { 155, 69 }, { 156, 54 }, { 159, 55 }, { 162, 56 },
  2421. { 166, 116 }, { 169, 119 }, { 171, 120 }, { 172, 85 }, { 174, 98 },
  2422. { 176, 112 }, { 177, 51 }, { 181, 114 }, { 182, 115 }, { 185, 117 },
  2423. { 187, 91 }, { 188, 123 }, { 190, 127 }, { 191, 113 }, { 192, 128 },
  2424. { 193, 129 }, { 196, 133 }, { 197, 134 }, { 198, 50 }, { 199, 99 },
  2425. { 200, 49 }, { 201, 48 }, { 203, 125 }, { 205, 141 }, { 206, 137 },
  2426. { 207, 47 }, { 208, 121 }, { 209, 122 },
  2427. };
  2428. static const struct msm_pinctrl_soc_data kalama_pinctrl = {
  2429. .pins = kalama_pins,
  2430. .npins = ARRAY_SIZE(kalama_pins),
  2431. .functions = kalama_functions,
  2432. .nfunctions = ARRAY_SIZE(kalama_functions),
  2433. .groups = kalama_groups,
  2434. .ngroups = ARRAY_SIZE(kalama_groups),
  2435. .ngpios = 211,
  2436. .qup_regs = kalama_qup_regs,
  2437. .nqup_regs = ARRAY_SIZE(kalama_qup_regs),
  2438. .wakeirq_map = kalama_pdc_map,
  2439. .nwakeirq_map = ARRAY_SIZE(kalama_pdc_map),
  2440. };
  2441. static const struct msm_pinctrl_soc_data kalama_pinctrl_v2 = {
  2442. .pins = kalama_pins,
  2443. .npins = ARRAY_SIZE(kalama_pins),
  2444. .functions = kalama_functions,
  2445. .nfunctions = ARRAY_SIZE(kalama_functions),
  2446. .groups = kalama_groups,
  2447. .ngroups = ARRAY_SIZE(kalama_groups),
  2448. .ngpios = 211,
  2449. .qup_regs = kalama_qup_regs,
  2450. .nqup_regs = ARRAY_SIZE(kalama_qup_regs),
  2451. .wakeirq_map = kalama_pdc_map_v2,
  2452. .nwakeirq_map = ARRAY_SIZE(kalama_pdc_map_v2),
  2453. };
  2454. static const struct msm_pinctrl_soc_data kalama_vm_pinctrl = {
  2455. .pins = kalama_pins,
  2456. .npins = ARRAY_SIZE(kalama_pins),
  2457. .functions = kalama_functions,
  2458. .nfunctions = ARRAY_SIZE(kalama_functions),
  2459. .groups = kalama_groups,
  2460. .ngroups = ARRAY_SIZE(kalama_groups),
  2461. .ngpios = 211,
  2462. };
  2463. static const struct of_device_id kalama_pinctrl_of_match[] = {
  2464. { .compatible = "qcom,kalama-pinctrl", .data = &kalama_pinctrl },
  2465. { .compatible = "qcom,kalama-pinctrl-v2", .data = &kalama_pinctrl_v2 },
  2466. { .compatible = "qcom,kalama-vm-pinctrl", .data = &kalama_vm_pinctrl },
  2467. {},
  2468. };
  2469. static int kalama_pinctrl_probe(struct platform_device *pdev)
  2470. {
  2471. const struct msm_pinctrl_soc_data *pinctrl_data;
  2472. struct device *dev = &pdev->dev;
  2473. pinctrl_data = of_device_get_match_data(dev);
  2474. if (!pinctrl_data)
  2475. return -EINVAL;
  2476. return msm_pinctrl_probe(pdev, pinctrl_data);
  2477. }
  2478. static struct platform_driver kalama_pinctrl_driver = {
  2479. .driver = {
  2480. .name = "kalama-pinctrl",
  2481. .of_match_table = kalama_pinctrl_of_match,
  2482. },
  2483. .probe = kalama_pinctrl_probe,
  2484. .remove = msm_pinctrl_remove,
  2485. };
  2486. static int __init kalama_pinctrl_init(void)
  2487. {
  2488. return platform_driver_register(&kalama_pinctrl_driver);
  2489. }
  2490. arch_initcall(kalama_pinctrl_init);
  2491. static void __exit kalama_pinctrl_exit(void)
  2492. {
  2493. platform_driver_unregister(&kalama_pinctrl_driver);
  2494. }
  2495. module_exit(kalama_pinctrl_exit);
  2496. MODULE_DESCRIPTION("QTI kalama pinctrl driver");
  2497. MODULE_LICENSE("GPL");
  2498. MODULE_DEVICE_TABLE(of, kalama_pinctrl_of_match);
  2499. MODULE_SOFTDEP("pre: qcom_tlmm_vm_irqchip");