pinctrl-msm8996.c 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/platform_device.h>
  8. #include <linux/pinctrl/pinctrl.h>
  9. #include "pinctrl-msm.h"
  10. #define FUNCTION(fname) \
  11. [msm_mux_##fname] = { \
  12. .name = #fname, \
  13. .groups = fname##_groups, \
  14. .ngroups = ARRAY_SIZE(fname##_groups), \
  15. }
  16. #define REG_BASE 0x0
  17. #define REG_SIZE 0x1000
  18. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  19. { \
  20. .name = "gpio" #id, \
  21. .pins = gpio##id##_pins, \
  22. .npins = (unsigned)ARRAY_SIZE(gpio##id##_pins), \
  23. .funcs = (int[]){ \
  24. msm_mux_gpio, /* gpio mode */ \
  25. msm_mux_##f1, \
  26. msm_mux_##f2, \
  27. msm_mux_##f3, \
  28. msm_mux_##f4, \
  29. msm_mux_##f5, \
  30. msm_mux_##f6, \
  31. msm_mux_##f7, \
  32. msm_mux_##f8, \
  33. msm_mux_##f9 \
  34. }, \
  35. .nfuncs = 10, \
  36. .ctl_reg = REG_BASE + REG_SIZE * id, \
  37. .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \
  38. .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  39. .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \
  40. .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  41. .mux_bit = 2, \
  42. .pull_bit = 0, \
  43. .drv_bit = 6, \
  44. .oe_bit = 9, \
  45. .in_bit = 0, \
  46. .out_bit = 1, \
  47. .intr_enable_bit = 0, \
  48. .intr_status_bit = 0, \
  49. .intr_target_bit = 5, \
  50. .intr_target_kpss_val = 3, \
  51. .intr_raw_status_bit = 4, \
  52. .intr_polarity_bit = 1, \
  53. .intr_detection_bit = 2, \
  54. .intr_detection_width = 2, \
  55. }
  56. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  57. { \
  58. .name = #pg_name, \
  59. .pins = pg_name##_pins, \
  60. .npins = (unsigned)ARRAY_SIZE(pg_name##_pins), \
  61. .ctl_reg = ctl, \
  62. .io_reg = 0, \
  63. .intr_cfg_reg = 0, \
  64. .intr_status_reg = 0, \
  65. .intr_target_reg = 0, \
  66. .mux_bit = -1, \
  67. .pull_bit = pull, \
  68. .drv_bit = drv, \
  69. .oe_bit = -1, \
  70. .in_bit = -1, \
  71. .out_bit = -1, \
  72. .intr_enable_bit = -1, \
  73. .intr_status_bit = -1, \
  74. .intr_target_bit = -1, \
  75. .intr_raw_status_bit = -1, \
  76. .intr_polarity_bit = -1, \
  77. .intr_detection_bit = -1, \
  78. .intr_detection_width = -1, \
  79. }
  80. static const struct pinctrl_pin_desc msm8996_pins[] = {
  81. PINCTRL_PIN(0, "GPIO_0"),
  82. PINCTRL_PIN(1, "GPIO_1"),
  83. PINCTRL_PIN(2, "GPIO_2"),
  84. PINCTRL_PIN(3, "GPIO_3"),
  85. PINCTRL_PIN(4, "GPIO_4"),
  86. PINCTRL_PIN(5, "GPIO_5"),
  87. PINCTRL_PIN(6, "GPIO_6"),
  88. PINCTRL_PIN(7, "GPIO_7"),
  89. PINCTRL_PIN(8, "GPIO_8"),
  90. PINCTRL_PIN(9, "GPIO_9"),
  91. PINCTRL_PIN(10, "GPIO_10"),
  92. PINCTRL_PIN(11, "GPIO_11"),
  93. PINCTRL_PIN(12, "GPIO_12"),
  94. PINCTRL_PIN(13, "GPIO_13"),
  95. PINCTRL_PIN(14, "GPIO_14"),
  96. PINCTRL_PIN(15, "GPIO_15"),
  97. PINCTRL_PIN(16, "GPIO_16"),
  98. PINCTRL_PIN(17, "GPIO_17"),
  99. PINCTRL_PIN(18, "GPIO_18"),
  100. PINCTRL_PIN(19, "GPIO_19"),
  101. PINCTRL_PIN(20, "GPIO_20"),
  102. PINCTRL_PIN(21, "GPIO_21"),
  103. PINCTRL_PIN(22, "GPIO_22"),
  104. PINCTRL_PIN(23, "GPIO_23"),
  105. PINCTRL_PIN(24, "GPIO_24"),
  106. PINCTRL_PIN(25, "GPIO_25"),
  107. PINCTRL_PIN(26, "GPIO_26"),
  108. PINCTRL_PIN(27, "GPIO_27"),
  109. PINCTRL_PIN(28, "GPIO_28"),
  110. PINCTRL_PIN(29, "GPIO_29"),
  111. PINCTRL_PIN(30, "GPIO_30"),
  112. PINCTRL_PIN(31, "GPIO_31"),
  113. PINCTRL_PIN(32, "GPIO_32"),
  114. PINCTRL_PIN(33, "GPIO_33"),
  115. PINCTRL_PIN(34, "GPIO_34"),
  116. PINCTRL_PIN(35, "GPIO_35"),
  117. PINCTRL_PIN(36, "GPIO_36"),
  118. PINCTRL_PIN(37, "GPIO_37"),
  119. PINCTRL_PIN(38, "GPIO_38"),
  120. PINCTRL_PIN(39, "GPIO_39"),
  121. PINCTRL_PIN(40, "GPIO_40"),
  122. PINCTRL_PIN(41, "GPIO_41"),
  123. PINCTRL_PIN(42, "GPIO_42"),
  124. PINCTRL_PIN(43, "GPIO_43"),
  125. PINCTRL_PIN(44, "GPIO_44"),
  126. PINCTRL_PIN(45, "GPIO_45"),
  127. PINCTRL_PIN(46, "GPIO_46"),
  128. PINCTRL_PIN(47, "GPIO_47"),
  129. PINCTRL_PIN(48, "GPIO_48"),
  130. PINCTRL_PIN(49, "GPIO_49"),
  131. PINCTRL_PIN(50, "GPIO_50"),
  132. PINCTRL_PIN(51, "GPIO_51"),
  133. PINCTRL_PIN(52, "GPIO_52"),
  134. PINCTRL_PIN(53, "GPIO_53"),
  135. PINCTRL_PIN(54, "GPIO_54"),
  136. PINCTRL_PIN(55, "GPIO_55"),
  137. PINCTRL_PIN(56, "GPIO_56"),
  138. PINCTRL_PIN(57, "GPIO_57"),
  139. PINCTRL_PIN(58, "GPIO_58"),
  140. PINCTRL_PIN(59, "GPIO_59"),
  141. PINCTRL_PIN(60, "GPIO_60"),
  142. PINCTRL_PIN(61, "GPIO_61"),
  143. PINCTRL_PIN(62, "GPIO_62"),
  144. PINCTRL_PIN(63, "GPIO_63"),
  145. PINCTRL_PIN(64, "GPIO_64"),
  146. PINCTRL_PIN(65, "GPIO_65"),
  147. PINCTRL_PIN(66, "GPIO_66"),
  148. PINCTRL_PIN(67, "GPIO_67"),
  149. PINCTRL_PIN(68, "GPIO_68"),
  150. PINCTRL_PIN(69, "GPIO_69"),
  151. PINCTRL_PIN(70, "GPIO_70"),
  152. PINCTRL_PIN(71, "GPIO_71"),
  153. PINCTRL_PIN(72, "GPIO_72"),
  154. PINCTRL_PIN(73, "GPIO_73"),
  155. PINCTRL_PIN(74, "GPIO_74"),
  156. PINCTRL_PIN(75, "GPIO_75"),
  157. PINCTRL_PIN(76, "GPIO_76"),
  158. PINCTRL_PIN(77, "GPIO_77"),
  159. PINCTRL_PIN(78, "GPIO_78"),
  160. PINCTRL_PIN(79, "GPIO_79"),
  161. PINCTRL_PIN(80, "GPIO_80"),
  162. PINCTRL_PIN(81, "GPIO_81"),
  163. PINCTRL_PIN(82, "GPIO_82"),
  164. PINCTRL_PIN(83, "GPIO_83"),
  165. PINCTRL_PIN(84, "GPIO_84"),
  166. PINCTRL_PIN(85, "GPIO_85"),
  167. PINCTRL_PIN(86, "GPIO_86"),
  168. PINCTRL_PIN(87, "GPIO_87"),
  169. PINCTRL_PIN(88, "GPIO_88"),
  170. PINCTRL_PIN(89, "GPIO_89"),
  171. PINCTRL_PIN(90, "GPIO_90"),
  172. PINCTRL_PIN(91, "GPIO_91"),
  173. PINCTRL_PIN(92, "GPIO_92"),
  174. PINCTRL_PIN(93, "GPIO_93"),
  175. PINCTRL_PIN(94, "GPIO_94"),
  176. PINCTRL_PIN(95, "GPIO_95"),
  177. PINCTRL_PIN(96, "GPIO_96"),
  178. PINCTRL_PIN(97, "GPIO_97"),
  179. PINCTRL_PIN(98, "GPIO_98"),
  180. PINCTRL_PIN(99, "GPIO_99"),
  181. PINCTRL_PIN(100, "GPIO_100"),
  182. PINCTRL_PIN(101, "GPIO_101"),
  183. PINCTRL_PIN(102, "GPIO_102"),
  184. PINCTRL_PIN(103, "GPIO_103"),
  185. PINCTRL_PIN(104, "GPIO_104"),
  186. PINCTRL_PIN(105, "GPIO_105"),
  187. PINCTRL_PIN(106, "GPIO_106"),
  188. PINCTRL_PIN(107, "GPIO_107"),
  189. PINCTRL_PIN(108, "GPIO_108"),
  190. PINCTRL_PIN(109, "GPIO_109"),
  191. PINCTRL_PIN(110, "GPIO_110"),
  192. PINCTRL_PIN(111, "GPIO_111"),
  193. PINCTRL_PIN(112, "GPIO_112"),
  194. PINCTRL_PIN(113, "GPIO_113"),
  195. PINCTRL_PIN(114, "GPIO_114"),
  196. PINCTRL_PIN(115, "GPIO_115"),
  197. PINCTRL_PIN(116, "GPIO_116"),
  198. PINCTRL_PIN(117, "GPIO_117"),
  199. PINCTRL_PIN(118, "GPIO_118"),
  200. PINCTRL_PIN(119, "GPIO_119"),
  201. PINCTRL_PIN(120, "GPIO_120"),
  202. PINCTRL_PIN(121, "GPIO_121"),
  203. PINCTRL_PIN(122, "GPIO_122"),
  204. PINCTRL_PIN(123, "GPIO_123"),
  205. PINCTRL_PIN(124, "GPIO_124"),
  206. PINCTRL_PIN(125, "GPIO_125"),
  207. PINCTRL_PIN(126, "GPIO_126"),
  208. PINCTRL_PIN(127, "GPIO_127"),
  209. PINCTRL_PIN(128, "GPIO_128"),
  210. PINCTRL_PIN(129, "GPIO_129"),
  211. PINCTRL_PIN(130, "GPIO_130"),
  212. PINCTRL_PIN(131, "GPIO_131"),
  213. PINCTRL_PIN(132, "GPIO_132"),
  214. PINCTRL_PIN(133, "GPIO_133"),
  215. PINCTRL_PIN(134, "GPIO_134"),
  216. PINCTRL_PIN(135, "GPIO_135"),
  217. PINCTRL_PIN(136, "GPIO_136"),
  218. PINCTRL_PIN(137, "GPIO_137"),
  219. PINCTRL_PIN(138, "GPIO_138"),
  220. PINCTRL_PIN(139, "GPIO_139"),
  221. PINCTRL_PIN(140, "GPIO_140"),
  222. PINCTRL_PIN(141, "GPIO_141"),
  223. PINCTRL_PIN(142, "GPIO_142"),
  224. PINCTRL_PIN(143, "GPIO_143"),
  225. PINCTRL_PIN(144, "GPIO_144"),
  226. PINCTRL_PIN(145, "GPIO_145"),
  227. PINCTRL_PIN(146, "GPIO_146"),
  228. PINCTRL_PIN(147, "GPIO_147"),
  229. PINCTRL_PIN(148, "GPIO_148"),
  230. PINCTRL_PIN(149, "GPIO_149"),
  231. PINCTRL_PIN(150, "SDC1_CLK"),
  232. PINCTRL_PIN(151, "SDC1_CMD"),
  233. PINCTRL_PIN(152, "SDC1_DATA"),
  234. PINCTRL_PIN(153, "SDC2_CLK"),
  235. PINCTRL_PIN(154, "SDC2_CMD"),
  236. PINCTRL_PIN(155, "SDC2_DATA"),
  237. PINCTRL_PIN(156, "SDC1_RCLK"),
  238. };
  239. #define DECLARE_MSM_GPIO_PINS(pin) \
  240. static const unsigned int gpio##pin##_pins[] = { pin }
  241. DECLARE_MSM_GPIO_PINS(0);
  242. DECLARE_MSM_GPIO_PINS(1);
  243. DECLARE_MSM_GPIO_PINS(2);
  244. DECLARE_MSM_GPIO_PINS(3);
  245. DECLARE_MSM_GPIO_PINS(4);
  246. DECLARE_MSM_GPIO_PINS(5);
  247. DECLARE_MSM_GPIO_PINS(6);
  248. DECLARE_MSM_GPIO_PINS(7);
  249. DECLARE_MSM_GPIO_PINS(8);
  250. DECLARE_MSM_GPIO_PINS(9);
  251. DECLARE_MSM_GPIO_PINS(10);
  252. DECLARE_MSM_GPIO_PINS(11);
  253. DECLARE_MSM_GPIO_PINS(12);
  254. DECLARE_MSM_GPIO_PINS(13);
  255. DECLARE_MSM_GPIO_PINS(14);
  256. DECLARE_MSM_GPIO_PINS(15);
  257. DECLARE_MSM_GPIO_PINS(16);
  258. DECLARE_MSM_GPIO_PINS(17);
  259. DECLARE_MSM_GPIO_PINS(18);
  260. DECLARE_MSM_GPIO_PINS(19);
  261. DECLARE_MSM_GPIO_PINS(20);
  262. DECLARE_MSM_GPIO_PINS(21);
  263. DECLARE_MSM_GPIO_PINS(22);
  264. DECLARE_MSM_GPIO_PINS(23);
  265. DECLARE_MSM_GPIO_PINS(24);
  266. DECLARE_MSM_GPIO_PINS(25);
  267. DECLARE_MSM_GPIO_PINS(26);
  268. DECLARE_MSM_GPIO_PINS(27);
  269. DECLARE_MSM_GPIO_PINS(28);
  270. DECLARE_MSM_GPIO_PINS(29);
  271. DECLARE_MSM_GPIO_PINS(30);
  272. DECLARE_MSM_GPIO_PINS(31);
  273. DECLARE_MSM_GPIO_PINS(32);
  274. DECLARE_MSM_GPIO_PINS(33);
  275. DECLARE_MSM_GPIO_PINS(34);
  276. DECLARE_MSM_GPIO_PINS(35);
  277. DECLARE_MSM_GPIO_PINS(36);
  278. DECLARE_MSM_GPIO_PINS(37);
  279. DECLARE_MSM_GPIO_PINS(38);
  280. DECLARE_MSM_GPIO_PINS(39);
  281. DECLARE_MSM_GPIO_PINS(40);
  282. DECLARE_MSM_GPIO_PINS(41);
  283. DECLARE_MSM_GPIO_PINS(42);
  284. DECLARE_MSM_GPIO_PINS(43);
  285. DECLARE_MSM_GPIO_PINS(44);
  286. DECLARE_MSM_GPIO_PINS(45);
  287. DECLARE_MSM_GPIO_PINS(46);
  288. DECLARE_MSM_GPIO_PINS(47);
  289. DECLARE_MSM_GPIO_PINS(48);
  290. DECLARE_MSM_GPIO_PINS(49);
  291. DECLARE_MSM_GPIO_PINS(50);
  292. DECLARE_MSM_GPIO_PINS(51);
  293. DECLARE_MSM_GPIO_PINS(52);
  294. DECLARE_MSM_GPIO_PINS(53);
  295. DECLARE_MSM_GPIO_PINS(54);
  296. DECLARE_MSM_GPIO_PINS(55);
  297. DECLARE_MSM_GPIO_PINS(56);
  298. DECLARE_MSM_GPIO_PINS(57);
  299. DECLARE_MSM_GPIO_PINS(58);
  300. DECLARE_MSM_GPIO_PINS(59);
  301. DECLARE_MSM_GPIO_PINS(60);
  302. DECLARE_MSM_GPIO_PINS(61);
  303. DECLARE_MSM_GPIO_PINS(62);
  304. DECLARE_MSM_GPIO_PINS(63);
  305. DECLARE_MSM_GPIO_PINS(64);
  306. DECLARE_MSM_GPIO_PINS(65);
  307. DECLARE_MSM_GPIO_PINS(66);
  308. DECLARE_MSM_GPIO_PINS(67);
  309. DECLARE_MSM_GPIO_PINS(68);
  310. DECLARE_MSM_GPIO_PINS(69);
  311. DECLARE_MSM_GPIO_PINS(70);
  312. DECLARE_MSM_GPIO_PINS(71);
  313. DECLARE_MSM_GPIO_PINS(72);
  314. DECLARE_MSM_GPIO_PINS(73);
  315. DECLARE_MSM_GPIO_PINS(74);
  316. DECLARE_MSM_GPIO_PINS(75);
  317. DECLARE_MSM_GPIO_PINS(76);
  318. DECLARE_MSM_GPIO_PINS(77);
  319. DECLARE_MSM_GPIO_PINS(78);
  320. DECLARE_MSM_GPIO_PINS(79);
  321. DECLARE_MSM_GPIO_PINS(80);
  322. DECLARE_MSM_GPIO_PINS(81);
  323. DECLARE_MSM_GPIO_PINS(82);
  324. DECLARE_MSM_GPIO_PINS(83);
  325. DECLARE_MSM_GPIO_PINS(84);
  326. DECLARE_MSM_GPIO_PINS(85);
  327. DECLARE_MSM_GPIO_PINS(86);
  328. DECLARE_MSM_GPIO_PINS(87);
  329. DECLARE_MSM_GPIO_PINS(88);
  330. DECLARE_MSM_GPIO_PINS(89);
  331. DECLARE_MSM_GPIO_PINS(90);
  332. DECLARE_MSM_GPIO_PINS(91);
  333. DECLARE_MSM_GPIO_PINS(92);
  334. DECLARE_MSM_GPIO_PINS(93);
  335. DECLARE_MSM_GPIO_PINS(94);
  336. DECLARE_MSM_GPIO_PINS(95);
  337. DECLARE_MSM_GPIO_PINS(96);
  338. DECLARE_MSM_GPIO_PINS(97);
  339. DECLARE_MSM_GPIO_PINS(98);
  340. DECLARE_MSM_GPIO_PINS(99);
  341. DECLARE_MSM_GPIO_PINS(100);
  342. DECLARE_MSM_GPIO_PINS(101);
  343. DECLARE_MSM_GPIO_PINS(102);
  344. DECLARE_MSM_GPIO_PINS(103);
  345. DECLARE_MSM_GPIO_PINS(104);
  346. DECLARE_MSM_GPIO_PINS(105);
  347. DECLARE_MSM_GPIO_PINS(106);
  348. DECLARE_MSM_GPIO_PINS(107);
  349. DECLARE_MSM_GPIO_PINS(108);
  350. DECLARE_MSM_GPIO_PINS(109);
  351. DECLARE_MSM_GPIO_PINS(110);
  352. DECLARE_MSM_GPIO_PINS(111);
  353. DECLARE_MSM_GPIO_PINS(112);
  354. DECLARE_MSM_GPIO_PINS(113);
  355. DECLARE_MSM_GPIO_PINS(114);
  356. DECLARE_MSM_GPIO_PINS(115);
  357. DECLARE_MSM_GPIO_PINS(116);
  358. DECLARE_MSM_GPIO_PINS(117);
  359. DECLARE_MSM_GPIO_PINS(118);
  360. DECLARE_MSM_GPIO_PINS(119);
  361. DECLARE_MSM_GPIO_PINS(120);
  362. DECLARE_MSM_GPIO_PINS(121);
  363. DECLARE_MSM_GPIO_PINS(122);
  364. DECLARE_MSM_GPIO_PINS(123);
  365. DECLARE_MSM_GPIO_PINS(124);
  366. DECLARE_MSM_GPIO_PINS(125);
  367. DECLARE_MSM_GPIO_PINS(126);
  368. DECLARE_MSM_GPIO_PINS(127);
  369. DECLARE_MSM_GPIO_PINS(128);
  370. DECLARE_MSM_GPIO_PINS(129);
  371. DECLARE_MSM_GPIO_PINS(130);
  372. DECLARE_MSM_GPIO_PINS(131);
  373. DECLARE_MSM_GPIO_PINS(132);
  374. DECLARE_MSM_GPIO_PINS(133);
  375. DECLARE_MSM_GPIO_PINS(134);
  376. DECLARE_MSM_GPIO_PINS(135);
  377. DECLARE_MSM_GPIO_PINS(136);
  378. DECLARE_MSM_GPIO_PINS(137);
  379. DECLARE_MSM_GPIO_PINS(138);
  380. DECLARE_MSM_GPIO_PINS(139);
  381. DECLARE_MSM_GPIO_PINS(140);
  382. DECLARE_MSM_GPIO_PINS(141);
  383. DECLARE_MSM_GPIO_PINS(142);
  384. DECLARE_MSM_GPIO_PINS(143);
  385. DECLARE_MSM_GPIO_PINS(144);
  386. DECLARE_MSM_GPIO_PINS(145);
  387. DECLARE_MSM_GPIO_PINS(146);
  388. DECLARE_MSM_GPIO_PINS(147);
  389. DECLARE_MSM_GPIO_PINS(148);
  390. DECLARE_MSM_GPIO_PINS(149);
  391. static const unsigned int sdc1_clk_pins[] = { 150 };
  392. static const unsigned int sdc1_cmd_pins[] = { 151 };
  393. static const unsigned int sdc1_data_pins[] = { 152 };
  394. static const unsigned int sdc2_clk_pins[] = { 153 };
  395. static const unsigned int sdc2_cmd_pins[] = { 154 };
  396. static const unsigned int sdc2_data_pins[] = { 155 };
  397. static const unsigned int sdc1_rclk_pins[] = { 156 };
  398. enum msm8996_functions {
  399. msm_mux_adsp_ext,
  400. msm_mux_atest_bbrx0,
  401. msm_mux_atest_bbrx1,
  402. msm_mux_atest_char,
  403. msm_mux_atest_char0,
  404. msm_mux_atest_char1,
  405. msm_mux_atest_char2,
  406. msm_mux_atest_char3,
  407. msm_mux_atest_gpsadc0,
  408. msm_mux_atest_gpsadc1,
  409. msm_mux_atest_tsens,
  410. msm_mux_atest_tsens2,
  411. msm_mux_atest_usb1,
  412. msm_mux_atest_usb10,
  413. msm_mux_atest_usb11,
  414. msm_mux_atest_usb12,
  415. msm_mux_atest_usb13,
  416. msm_mux_atest_usb2,
  417. msm_mux_atest_usb20,
  418. msm_mux_atest_usb21,
  419. msm_mux_atest_usb22,
  420. msm_mux_atest_usb23,
  421. msm_mux_audio_ref,
  422. msm_mux_bimc_dte0,
  423. msm_mux_bimc_dte1,
  424. msm_mux_blsp10_spi,
  425. msm_mux_blsp11_i2c_scl_b,
  426. msm_mux_blsp11_i2c_sda_b,
  427. msm_mux_blsp11_uart_rx_b,
  428. msm_mux_blsp11_uart_tx_b,
  429. msm_mux_blsp1_spi,
  430. msm_mux_blsp2_spi,
  431. msm_mux_blsp_i2c1,
  432. msm_mux_blsp_i2c10,
  433. msm_mux_blsp_i2c11,
  434. msm_mux_blsp_i2c12,
  435. msm_mux_blsp_i2c2,
  436. msm_mux_blsp_i2c3,
  437. msm_mux_blsp_i2c4,
  438. msm_mux_blsp_i2c5,
  439. msm_mux_blsp_i2c6,
  440. msm_mux_blsp_i2c7,
  441. msm_mux_blsp_i2c8,
  442. msm_mux_blsp_i2c9,
  443. msm_mux_blsp_spi1,
  444. msm_mux_blsp_spi10,
  445. msm_mux_blsp_spi11,
  446. msm_mux_blsp_spi12,
  447. msm_mux_blsp_spi2,
  448. msm_mux_blsp_spi3,
  449. msm_mux_blsp_spi4,
  450. msm_mux_blsp_spi5,
  451. msm_mux_blsp_spi6,
  452. msm_mux_blsp_spi7,
  453. msm_mux_blsp_spi8,
  454. msm_mux_blsp_spi9,
  455. msm_mux_blsp_uart1,
  456. msm_mux_blsp_uart10,
  457. msm_mux_blsp_uart11,
  458. msm_mux_blsp_uart12,
  459. msm_mux_blsp_uart2,
  460. msm_mux_blsp_uart3,
  461. msm_mux_blsp_uart4,
  462. msm_mux_blsp_uart5,
  463. msm_mux_blsp_uart6,
  464. msm_mux_blsp_uart7,
  465. msm_mux_blsp_uart8,
  466. msm_mux_blsp_uart9,
  467. msm_mux_blsp_uim1,
  468. msm_mux_blsp_uim10,
  469. msm_mux_blsp_uim11,
  470. msm_mux_blsp_uim12,
  471. msm_mux_blsp_uim2,
  472. msm_mux_blsp_uim3,
  473. msm_mux_blsp_uim4,
  474. msm_mux_blsp_uim5,
  475. msm_mux_blsp_uim6,
  476. msm_mux_blsp_uim7,
  477. msm_mux_blsp_uim8,
  478. msm_mux_blsp_uim9,
  479. msm_mux_btfm_slimbus,
  480. msm_mux_cam_mclk,
  481. msm_mux_cci_async,
  482. msm_mux_cci_i2c,
  483. msm_mux_cci_timer0,
  484. msm_mux_cci_timer1,
  485. msm_mux_cci_timer2,
  486. msm_mux_cci_timer3,
  487. msm_mux_cci_timer4,
  488. msm_mux_cri_trng,
  489. msm_mux_cri_trng0,
  490. msm_mux_cri_trng1,
  491. msm_mux_dac_calib0,
  492. msm_mux_dac_calib1,
  493. msm_mux_dac_calib10,
  494. msm_mux_dac_calib11,
  495. msm_mux_dac_calib12,
  496. msm_mux_dac_calib13,
  497. msm_mux_dac_calib14,
  498. msm_mux_dac_calib15,
  499. msm_mux_dac_calib16,
  500. msm_mux_dac_calib17,
  501. msm_mux_dac_calib18,
  502. msm_mux_dac_calib19,
  503. msm_mux_dac_calib2,
  504. msm_mux_dac_calib20,
  505. msm_mux_dac_calib21,
  506. msm_mux_dac_calib22,
  507. msm_mux_dac_calib23,
  508. msm_mux_dac_calib24,
  509. msm_mux_dac_calib25,
  510. msm_mux_dac_calib26,
  511. msm_mux_dac_calib3,
  512. msm_mux_dac_calib4,
  513. msm_mux_dac_calib5,
  514. msm_mux_dac_calib6,
  515. msm_mux_dac_calib7,
  516. msm_mux_dac_calib8,
  517. msm_mux_dac_calib9,
  518. msm_mux_dac_gpio,
  519. msm_mux_dbg_out,
  520. msm_mux_ddr_bist,
  521. msm_mux_edp_hot,
  522. msm_mux_edp_lcd,
  523. msm_mux_gcc_gp1_clk_a,
  524. msm_mux_gcc_gp1_clk_b,
  525. msm_mux_gcc_gp2_clk_a,
  526. msm_mux_gcc_gp2_clk_b,
  527. msm_mux_gcc_gp3_clk_a,
  528. msm_mux_gcc_gp3_clk_b,
  529. msm_mux_gsm_tx,
  530. msm_mux_hdmi_cec,
  531. msm_mux_hdmi_ddc,
  532. msm_mux_hdmi_hot,
  533. msm_mux_hdmi_rcv,
  534. msm_mux_isense_dbg,
  535. msm_mux_ldo_en,
  536. msm_mux_ldo_update,
  537. msm_mux_lpass_slimbus,
  538. msm_mux_m_voc,
  539. msm_mux_mdp_vsync,
  540. msm_mux_mdp_vsync_p_b,
  541. msm_mux_mdp_vsync_s_b,
  542. msm_mux_modem_tsync,
  543. msm_mux_mss_lte,
  544. msm_mux_nav_dr,
  545. msm_mux_nav_pps,
  546. msm_mux_pa_indicator,
  547. msm_mux_pci_e0,
  548. msm_mux_pci_e1,
  549. msm_mux_pci_e2,
  550. msm_mux_pll_bypassnl,
  551. msm_mux_pll_reset,
  552. msm_mux_pri_mi2s,
  553. msm_mux_prng_rosc,
  554. msm_mux_pwr_crypto,
  555. msm_mux_pwr_modem,
  556. msm_mux_pwr_nav,
  557. msm_mux_qdss_cti,
  558. msm_mux_qdss_cti_trig_in_a,
  559. msm_mux_qdss_cti_trig_in_b,
  560. msm_mux_qdss_cti_trig_out_a,
  561. msm_mux_qdss_cti_trig_out_b,
  562. msm_mux_qdss_stm0,
  563. msm_mux_qdss_stm1,
  564. msm_mux_qdss_stm10,
  565. msm_mux_qdss_stm11,
  566. msm_mux_qdss_stm12,
  567. msm_mux_qdss_stm13,
  568. msm_mux_qdss_stm14,
  569. msm_mux_qdss_stm15,
  570. msm_mux_qdss_stm16,
  571. msm_mux_qdss_stm17,
  572. msm_mux_qdss_stm18,
  573. msm_mux_qdss_stm19,
  574. msm_mux_qdss_stm2,
  575. msm_mux_qdss_stm20,
  576. msm_mux_qdss_stm21,
  577. msm_mux_qdss_stm22,
  578. msm_mux_qdss_stm23,
  579. msm_mux_qdss_stm24,
  580. msm_mux_qdss_stm25,
  581. msm_mux_qdss_stm26,
  582. msm_mux_qdss_stm27,
  583. msm_mux_qdss_stm28,
  584. msm_mux_qdss_stm29,
  585. msm_mux_qdss_stm3,
  586. msm_mux_qdss_stm30,
  587. msm_mux_qdss_stm31,
  588. msm_mux_qdss_stm4,
  589. msm_mux_qdss_stm5,
  590. msm_mux_qdss_stm6,
  591. msm_mux_qdss_stm7,
  592. msm_mux_qdss_stm8,
  593. msm_mux_qdss_stm9,
  594. msm_mux_qdss_traceclk_a,
  595. msm_mux_qdss_traceclk_b,
  596. msm_mux_qdss_tracectl_a,
  597. msm_mux_qdss_tracectl_b,
  598. msm_mux_qdss_tracedata_11,
  599. msm_mux_qdss_tracedata_12,
  600. msm_mux_qdss_tracedata_a,
  601. msm_mux_qdss_tracedata_b,
  602. msm_mux_qspi0,
  603. msm_mux_qspi1,
  604. msm_mux_qspi2,
  605. msm_mux_qspi3,
  606. msm_mux_qspi_clk,
  607. msm_mux_qspi_cs,
  608. msm_mux_qua_mi2s,
  609. msm_mux_sd_card,
  610. msm_mux_sd_write,
  611. msm_mux_sdc40,
  612. msm_mux_sdc41,
  613. msm_mux_sdc42,
  614. msm_mux_sdc43,
  615. msm_mux_sdc4_clk,
  616. msm_mux_sdc4_cmd,
  617. msm_mux_sec_mi2s,
  618. msm_mux_spkr_i2s,
  619. msm_mux_ssbi1,
  620. msm_mux_ssbi2,
  621. msm_mux_ssc_irq,
  622. msm_mux_ter_mi2s,
  623. msm_mux_tsense_pwm1,
  624. msm_mux_tsense_pwm2,
  625. msm_mux_tsif1_clk,
  626. msm_mux_tsif1_data,
  627. msm_mux_tsif1_en,
  628. msm_mux_tsif1_error,
  629. msm_mux_tsif1_sync,
  630. msm_mux_tsif2_clk,
  631. msm_mux_tsif2_data,
  632. msm_mux_tsif2_en,
  633. msm_mux_tsif2_error,
  634. msm_mux_tsif2_sync,
  635. msm_mux_uim1,
  636. msm_mux_uim2,
  637. msm_mux_uim3,
  638. msm_mux_uim4,
  639. msm_mux_uim_batt,
  640. msm_mux_vfr_1,
  641. msm_mux_gpio,
  642. msm_mux_NA,
  643. };
  644. static const char * const gpio_groups[] = {
  645. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  646. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  647. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  648. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  649. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  650. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  651. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  652. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  653. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  654. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  655. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  656. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  657. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
  658. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
  659. "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
  660. "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
  661. "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
  662. "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
  663. "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
  664. "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
  665. "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
  666. "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
  667. "gpio147", "gpio148", "gpio149"
  668. };
  669. static const char * const blsp_uart1_groups[] = {
  670. "gpio0", "gpio1", "gpio2", "gpio3",
  671. };
  672. static const char * const blsp_spi1_groups[] = {
  673. "gpio0", "gpio1", "gpio2", "gpio3",
  674. };
  675. static const char * const blsp_i2c1_groups[] = {
  676. "gpio2", "gpio3",
  677. };
  678. static const char * const blsp_uim1_groups[] = {
  679. "gpio0", "gpio1",
  680. };
  681. static const char * const atest_tsens_groups[] = {
  682. "gpio3",
  683. };
  684. static const char * const bimc_dte1_groups[] = {
  685. "gpio3", "gpio5",
  686. };
  687. static const char * const blsp_spi8_groups[] = {
  688. "gpio4", "gpio5", "gpio6", "gpio7",
  689. };
  690. static const char * const blsp_uart8_groups[] = {
  691. "gpio4", "gpio5", "gpio6", "gpio7",
  692. };
  693. static const char * const blsp_uim8_groups[] = {
  694. "gpio4", "gpio5",
  695. };
  696. static const char * const qdss_cti_trig_out_b_groups[] = {
  697. "gpio4",
  698. };
  699. static const char * const dac_calib0_groups[] = {
  700. "gpio4", "gpio41",
  701. };
  702. static const char * const bimc_dte0_groups[] = {
  703. "gpio4", "gpio6",
  704. };
  705. static const char * const qdss_cti_trig_in_b_groups[] = {
  706. "gpio5",
  707. };
  708. static const char * const dac_calib1_groups[] = {
  709. "gpio5", "gpio42",
  710. };
  711. static const char * const dac_calib2_groups[] = {
  712. "gpio6", "gpio43",
  713. };
  714. static const char * const atest_tsens2_groups[] = {
  715. "gpio7",
  716. };
  717. static const char * const blsp_spi10_groups[] = {
  718. "gpio8", "gpio9", "gpio10", "gpio11",
  719. };
  720. static const char * const blsp_uart10_groups[] = {
  721. "gpio8", "gpio9", "gpio10", "gpio11",
  722. };
  723. static const char * const blsp_uim10_groups[] = {
  724. "gpio8", "gpio9",
  725. };
  726. static const char * const atest_bbrx1_groups[] = {
  727. "gpio8",
  728. };
  729. static const char * const atest_usb12_groups[] = {
  730. "gpio9",
  731. };
  732. static const char * const mdp_vsync_groups[] = {
  733. "gpio10", "gpio11", "gpio12",
  734. };
  735. static const char * const edp_lcd_groups[] = {
  736. "gpio10",
  737. };
  738. static const char * const blsp_i2c10_groups[] = {
  739. "gpio10", "gpio11",
  740. };
  741. static const char * const atest_usb11_groups[] = {
  742. "gpio10",
  743. };
  744. static const char * const atest_gpsadc0_groups[] = {
  745. "gpio11",
  746. };
  747. static const char * const edp_hot_groups[] = {
  748. "gpio11",
  749. };
  750. static const char * const atest_usb10_groups[] = {
  751. "gpio11",
  752. };
  753. static const char * const m_voc_groups[] = {
  754. "gpio12",
  755. };
  756. static const char * const dac_gpio_groups[] = {
  757. "gpio12",
  758. };
  759. static const char * const atest_char_groups[] = {
  760. "gpio12",
  761. };
  762. static const char * const cam_mclk_groups[] = {
  763. "gpio13", "gpio14", "gpio15", "gpio16",
  764. };
  765. static const char * const pll_bypassnl_groups[] = {
  766. "gpio13",
  767. };
  768. static const char * const qdss_stm7_groups[] = {
  769. "gpio13",
  770. };
  771. static const char * const blsp_i2c8_groups[] = {
  772. "gpio6", "gpio7",
  773. };
  774. static const char * const atest_usb1_groups[] = {
  775. "gpio7",
  776. };
  777. static const char * const atest_usb13_groups[] = {
  778. "gpio8",
  779. };
  780. static const char * const atest_bbrx0_groups[] = {
  781. "gpio9",
  782. };
  783. static const char * const atest_gpsadc1_groups[] = {
  784. "gpio10",
  785. };
  786. static const char * const qdss_tracedata_b_groups[] = {
  787. "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19",
  788. "gpio21", "gpio22", "gpio23", "gpio26", "gpio29", "gpio57", "gpio58",
  789. "gpio92", "gpio93",
  790. };
  791. static const char * const pll_reset_groups[] = {
  792. "gpio14",
  793. };
  794. static const char * const qdss_stm6_groups[] = {
  795. "gpio14",
  796. };
  797. static const char * const qdss_stm5_groups[] = {
  798. "gpio15",
  799. };
  800. static const char * const qdss_stm4_groups[] = {
  801. "gpio16",
  802. };
  803. static const char * const atest_usb2_groups[] = {
  804. "gpio16",
  805. };
  806. static const char * const dac_calib3_groups[] = {
  807. "gpio17", "gpio44",
  808. };
  809. static const char * const cci_i2c_groups[] = {
  810. "gpio17", "gpio18", "gpio19", "gpio20",
  811. };
  812. static const char * const qdss_stm3_groups[] = {
  813. "gpio17",
  814. };
  815. static const char * const atest_usb23_groups[] = {
  816. "gpio17",
  817. };
  818. static const char * const atest_char3_groups[] = {
  819. "gpio17",
  820. };
  821. static const char * const dac_calib4_groups[] = {
  822. "gpio18", "gpio45",
  823. };
  824. static const char * const qdss_stm2_groups[] = {
  825. "gpio18",
  826. };
  827. static const char * const atest_usb22_groups[] = {
  828. "gpio18",
  829. };
  830. static const char * const atest_char2_groups[] = {
  831. "gpio18",
  832. };
  833. static const char * const dac_calib5_groups[] = {
  834. "gpio19", "gpio46",
  835. };
  836. static const char * const qdss_stm1_groups[] = {
  837. "gpio19",
  838. };
  839. static const char * const atest_usb21_groups[] = {
  840. "gpio19",
  841. };
  842. static const char * const atest_char1_groups[] = {
  843. "gpio19",
  844. };
  845. static const char * const dac_calib6_groups[] = {
  846. "gpio20", "gpio47",
  847. };
  848. static const char * const dbg_out_groups[] = {
  849. "gpio20",
  850. };
  851. static const char * const qdss_stm0_groups[] = {
  852. "gpio20",
  853. };
  854. static const char * const atest_usb20_groups[] = {
  855. "gpio20",
  856. };
  857. static const char * const atest_char0_groups[] = {
  858. "gpio20",
  859. };
  860. static const char * const dac_calib7_groups[] = {
  861. "gpio21", "gpio48",
  862. };
  863. static const char * const cci_timer0_groups[] = {
  864. "gpio21",
  865. };
  866. static const char * const qdss_stm13_groups[] = {
  867. "gpio21",
  868. };
  869. static const char * const dac_calib8_groups[] = {
  870. "gpio22", "gpio49",
  871. };
  872. static const char * const cci_timer1_groups[] = {
  873. "gpio22",
  874. };
  875. static const char * const qdss_stm12_groups[] = {
  876. "gpio22",
  877. };
  878. static const char * const dac_calib9_groups[] = {
  879. "gpio23", "gpio50",
  880. };
  881. static const char * const cci_timer2_groups[] = {
  882. "gpio23",
  883. };
  884. static const char * const qdss_stm11_groups[] = {
  885. "gpio23",
  886. };
  887. static const char * const dac_calib10_groups[] = {
  888. "gpio24", "gpio51",
  889. };
  890. static const char * const cci_timer3_groups[] = {
  891. "gpio24",
  892. };
  893. static const char * const cci_async_groups[] = {
  894. "gpio24", "gpio25", "gpio26",
  895. };
  896. static const char * const blsp1_spi_groups[] = {
  897. "gpio24", "gpio27", "gpio28", "gpio90",
  898. };
  899. static const char * const qdss_stm10_groups[] = {
  900. "gpio24",
  901. };
  902. static const char * const qdss_cti_trig_in_a_groups[] = {
  903. "gpio24",
  904. };
  905. static const char * const dac_calib11_groups[] = {
  906. "gpio25", "gpio52",
  907. };
  908. static const char * const cci_timer4_groups[] = {
  909. "gpio25",
  910. };
  911. static const char * const blsp_spi6_groups[] = {
  912. "gpio25", "gpio26", "gpio27", "gpio28",
  913. };
  914. static const char * const blsp_uart6_groups[] = {
  915. "gpio25", "gpio26", "gpio27", "gpio28",
  916. };
  917. static const char * const blsp_uim6_groups[] = {
  918. "gpio25", "gpio26",
  919. };
  920. static const char * const blsp2_spi_groups[] = {
  921. "gpio25", "gpio29", "gpio30",
  922. };
  923. static const char * const qdss_stm9_groups[] = {
  924. "gpio25",
  925. };
  926. static const char * const qdss_cti_trig_out_a_groups[] = {
  927. "gpio25",
  928. };
  929. static const char * const dac_calib12_groups[] = {
  930. "gpio26", "gpio53",
  931. };
  932. static const char * const qdss_stm8_groups[] = {
  933. "gpio26",
  934. };
  935. static const char * const dac_calib13_groups[] = {
  936. "gpio27", "gpio54",
  937. };
  938. static const char * const blsp_i2c6_groups[] = {
  939. "gpio27", "gpio28",
  940. };
  941. static const char * const qdss_tracectl_a_groups[] = {
  942. "gpio27",
  943. };
  944. static const char * const dac_calib14_groups[] = {
  945. "gpio28", "gpio55",
  946. };
  947. static const char * const qdss_traceclk_a_groups[] = {
  948. "gpio28",
  949. };
  950. static const char * const dac_calib15_groups[] = {
  951. "gpio29", "gpio56",
  952. };
  953. static const char * const dac_calib16_groups[] = {
  954. "gpio30", "gpio57",
  955. };
  956. static const char * const hdmi_rcv_groups[] = {
  957. "gpio30",
  958. };
  959. static const char * const dac_calib17_groups[] = {
  960. "gpio31", "gpio58",
  961. };
  962. static const char * const pwr_modem_groups[] = {
  963. "gpio31",
  964. };
  965. static const char * const hdmi_cec_groups[] = {
  966. "gpio31",
  967. };
  968. static const char * const pwr_nav_groups[] = {
  969. "gpio32",
  970. };
  971. static const char * const dac_calib18_groups[] = {
  972. "gpio32", "gpio59",
  973. };
  974. static const char * const hdmi_ddc_groups[] = {
  975. "gpio32", "gpio33",
  976. };
  977. static const char * const pwr_crypto_groups[] = {
  978. "gpio33",
  979. };
  980. static const char * const dac_calib19_groups[] = {
  981. "gpio33", "gpio60",
  982. };
  983. static const char * const dac_calib20_groups[] = {
  984. "gpio34", "gpio61",
  985. };
  986. static const char * const hdmi_hot_groups[] = {
  987. "gpio34",
  988. };
  989. static const char * const dac_calib21_groups[] = {
  990. "gpio35", "gpio62",
  991. };
  992. static const char * const pci_e0_groups[] = {
  993. "gpio35", "gpio36",
  994. };
  995. static const char * const dac_calib22_groups[] = {
  996. "gpio36", "gpio63",
  997. };
  998. static const char * const dac_calib23_groups[] = {
  999. "gpio37", "gpio64",
  1000. };
  1001. static const char * const blsp_i2c2_groups[] = {
  1002. "gpio43", "gpio44",
  1003. };
  1004. static const char * const blsp_spi3_groups[] = {
  1005. "gpio45", "gpio46", "gpio47", "gpio48",
  1006. };
  1007. static const char * const blsp_uart3_groups[] = {
  1008. "gpio45", "gpio46", "gpio47", "gpio48",
  1009. };
  1010. static const char * const blsp_uim3_groups[] = {
  1011. "gpio45", "gpio46",
  1012. };
  1013. static const char * const blsp_i2c3_groups[] = {
  1014. "gpio47", "gpio48",
  1015. };
  1016. static const char * const dac_calib24_groups[] = {
  1017. "gpio38", "gpio65",
  1018. };
  1019. static const char * const dac_calib25_groups[] = {
  1020. "gpio39", "gpio66",
  1021. };
  1022. static const char * const tsif1_sync_groups[] = {
  1023. "gpio39",
  1024. };
  1025. static const char * const sd_write_groups[] = {
  1026. "gpio40",
  1027. };
  1028. static const char * const tsif1_error_groups[] = {
  1029. "gpio40",
  1030. };
  1031. static const char * const blsp_spi2_groups[] = {
  1032. "gpio41", "gpio42", "gpio43", "gpio44",
  1033. };
  1034. static const char * const blsp_uart2_groups[] = {
  1035. "gpio41", "gpio42", "gpio43", "gpio44",
  1036. };
  1037. static const char * const blsp_uim2_groups[] = {
  1038. "gpio41", "gpio42",
  1039. };
  1040. static const char * const qdss_cti_groups[] = {
  1041. "gpio41", "gpio42", "gpio100", "gpio101",
  1042. };
  1043. static const char * const uim3_groups[] = {
  1044. "gpio49", "gpio50", "gpio51", "gpio52",
  1045. };
  1046. static const char * const blsp_spi9_groups[] = {
  1047. "gpio49", "gpio50", "gpio51", "gpio52",
  1048. };
  1049. static const char * const blsp_uart9_groups[] = {
  1050. "gpio49", "gpio50", "gpio51", "gpio52",
  1051. };
  1052. static const char * const blsp_uim9_groups[] = {
  1053. "gpio49", "gpio50",
  1054. };
  1055. static const char * const blsp10_spi_groups[] = {
  1056. "gpio49", "gpio50", "gpio51", "gpio52", "gpio88",
  1057. };
  1058. static const char * const blsp_i2c9_groups[] = {
  1059. "gpio51", "gpio52",
  1060. };
  1061. static const char * const blsp_spi7_groups[] = {
  1062. "gpio53", "gpio54", "gpio55", "gpio56",
  1063. };
  1064. static const char * const blsp_uart7_groups[] = {
  1065. "gpio53", "gpio54", "gpio55", "gpio56",
  1066. };
  1067. static const char * const blsp_uim7_groups[] = {
  1068. "gpio53", "gpio54",
  1069. };
  1070. static const char * const qdss_tracedata_a_groups[] = {
  1071. "gpio53", "gpio54", "gpio63", "gpio64", "gpio65", "gpio66", "gpio67",
  1072. "gpio74", "gpio75", "gpio76", "gpio77", "gpio85", "gpio86", "gpio87",
  1073. "gpio89", "gpio90",
  1074. };
  1075. static const char * const blsp_i2c7_groups[] = {
  1076. "gpio55", "gpio56",
  1077. };
  1078. static const char * const qua_mi2s_groups[] = {
  1079. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  1080. };
  1081. static const char * const gcc_gp1_clk_a_groups[] = {
  1082. "gpio57",
  1083. };
  1084. static const char * const uim4_groups[] = {
  1085. "gpio58", "gpio59", "gpio60", "gpio61",
  1086. };
  1087. static const char * const blsp_spi11_groups[] = {
  1088. "gpio58", "gpio59", "gpio60", "gpio61",
  1089. };
  1090. static const char * const blsp_uart11_groups[] = {
  1091. "gpio58", "gpio59", "gpio60", "gpio61",
  1092. };
  1093. static const char * const blsp_uim11_groups[] = {
  1094. "gpio58", "gpio59",
  1095. };
  1096. static const char * const gcc_gp2_clk_a_groups[] = {
  1097. "gpio58",
  1098. };
  1099. static const char * const gcc_gp3_clk_a_groups[] = {
  1100. "gpio59",
  1101. };
  1102. static const char * const blsp_i2c11_groups[] = {
  1103. "gpio60", "gpio61",
  1104. };
  1105. static const char * const cri_trng0_groups[] = {
  1106. "gpio60",
  1107. };
  1108. static const char * const cri_trng1_groups[] = {
  1109. "gpio61",
  1110. };
  1111. static const char * const cri_trng_groups[] = {
  1112. "gpio62",
  1113. };
  1114. static const char * const qdss_stm18_groups[] = {
  1115. "gpio63",
  1116. };
  1117. static const char * const pri_mi2s_groups[] = {
  1118. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68",
  1119. };
  1120. static const char * const qdss_stm17_groups[] = {
  1121. "gpio64",
  1122. };
  1123. static const char * const blsp_spi4_groups[] = {
  1124. "gpio65", "gpio66", "gpio67", "gpio68",
  1125. };
  1126. static const char * const blsp_uart4_groups[] = {
  1127. "gpio65", "gpio66", "gpio67", "gpio68",
  1128. };
  1129. static const char * const blsp_uim4_groups[] = {
  1130. "gpio65", "gpio66",
  1131. };
  1132. static const char * const qdss_stm16_groups[] = {
  1133. "gpio65",
  1134. };
  1135. static const char * const qdss_stm15_groups[] = {
  1136. "gpio66",
  1137. };
  1138. static const char * const dac_calib26_groups[] = {
  1139. "gpio67",
  1140. };
  1141. static const char * const blsp_i2c4_groups[] = {
  1142. "gpio67", "gpio68",
  1143. };
  1144. static const char * const qdss_stm14_groups[] = {
  1145. "gpio67",
  1146. };
  1147. static const char * const spkr_i2s_groups[] = {
  1148. "gpio69", "gpio70", "gpio71", "gpio72",
  1149. };
  1150. static const char * const audio_ref_groups[] = {
  1151. "gpio69",
  1152. };
  1153. static const char * const lpass_slimbus_groups[] = {
  1154. "gpio70", "gpio71", "gpio72",
  1155. };
  1156. static const char * const isense_dbg_groups[] = {
  1157. "gpio70",
  1158. };
  1159. static const char * const tsense_pwm1_groups[] = {
  1160. "gpio71",
  1161. };
  1162. static const char * const tsense_pwm2_groups[] = {
  1163. "gpio71",
  1164. };
  1165. static const char * const btfm_slimbus_groups[] = {
  1166. "gpio73", "gpio74",
  1167. };
  1168. static const char * const ter_mi2s_groups[] = {
  1169. "gpio74", "gpio75", "gpio76", "gpio77", "gpio78",
  1170. };
  1171. static const char * const qdss_stm22_groups[] = {
  1172. "gpio74",
  1173. };
  1174. static const char * const qdss_stm21_groups[] = {
  1175. "gpio75",
  1176. };
  1177. static const char * const qdss_stm20_groups[] = {
  1178. "gpio76",
  1179. };
  1180. static const char * const qdss_stm19_groups[] = {
  1181. "gpio77",
  1182. };
  1183. static const char * const ssc_irq_groups[] = {
  1184. "gpio78", "gpio79", "gpio80", "gpio117", "gpio118", "gpio119",
  1185. "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
  1186. };
  1187. static const char * const gcc_gp1_clk_b_groups[] = {
  1188. "gpio78",
  1189. };
  1190. static const char * const sec_mi2s_groups[] = {
  1191. "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
  1192. };
  1193. static const char * const blsp_spi5_groups[] = {
  1194. "gpio81", "gpio82", "gpio83", "gpio84",
  1195. };
  1196. static const char * const blsp_uart5_groups[] = {
  1197. "gpio81", "gpio82", "gpio83", "gpio84",
  1198. };
  1199. static const char * const blsp_uim5_groups[] = {
  1200. "gpio81", "gpio82",
  1201. };
  1202. static const char * const gcc_gp2_clk_b_groups[] = {
  1203. "gpio81",
  1204. };
  1205. static const char * const gcc_gp3_clk_b_groups[] = {
  1206. "gpio82",
  1207. };
  1208. static const char * const blsp_i2c5_groups[] = {
  1209. "gpio83", "gpio84",
  1210. };
  1211. static const char * const blsp_spi12_groups[] = {
  1212. "gpio85", "gpio86", "gpio87", "gpio88",
  1213. };
  1214. static const char * const blsp_uart12_groups[] = {
  1215. "gpio85", "gpio86", "gpio87", "gpio88",
  1216. };
  1217. static const char * const blsp_uim12_groups[] = {
  1218. "gpio85", "gpio86",
  1219. };
  1220. static const char * const qdss_stm25_groups[] = {
  1221. "gpio85",
  1222. };
  1223. static const char * const qdss_stm31_groups[] = {
  1224. "gpio86",
  1225. };
  1226. static const char * const blsp_i2c12_groups[] = {
  1227. "gpio87", "gpio88",
  1228. };
  1229. static const char * const qdss_stm30_groups[] = {
  1230. "gpio87",
  1231. };
  1232. static const char * const qdss_stm29_groups[] = {
  1233. "gpio88",
  1234. };
  1235. static const char * const tsif1_clk_groups[] = {
  1236. "gpio89",
  1237. };
  1238. static const char * const qdss_stm28_groups[] = {
  1239. "gpio89",
  1240. };
  1241. static const char * const tsif1_en_groups[] = {
  1242. "gpio90",
  1243. };
  1244. static const char * const tsif1_data_groups[] = {
  1245. "gpio91",
  1246. };
  1247. static const char * const sdc4_cmd_groups[] = {
  1248. "gpio91",
  1249. };
  1250. static const char * const qdss_stm27_groups[] = {
  1251. "gpio91",
  1252. };
  1253. static const char * const qdss_traceclk_b_groups[] = {
  1254. "gpio91",
  1255. };
  1256. static const char * const tsif2_error_groups[] = {
  1257. "gpio92",
  1258. };
  1259. static const char * const sdc43_groups[] = {
  1260. "gpio92",
  1261. };
  1262. static const char * const vfr_1_groups[] = {
  1263. "gpio92",
  1264. };
  1265. static const char * const qdss_stm26_groups[] = {
  1266. "gpio92",
  1267. };
  1268. static const char * const tsif2_clk_groups[] = {
  1269. "gpio93",
  1270. };
  1271. static const char * const sdc4_clk_groups[] = {
  1272. "gpio93",
  1273. };
  1274. static const char * const qdss_stm24_groups[] = {
  1275. "gpio93",
  1276. };
  1277. static const char * const tsif2_en_groups[] = {
  1278. "gpio94",
  1279. };
  1280. static const char * const sdc42_groups[] = {
  1281. "gpio94",
  1282. };
  1283. static const char * const qdss_stm23_groups[] = {
  1284. "gpio94",
  1285. };
  1286. static const char * const qdss_tracectl_b_groups[] = {
  1287. "gpio94",
  1288. };
  1289. static const char * const sd_card_groups[] = {
  1290. "gpio95",
  1291. };
  1292. static const char * const tsif2_data_groups[] = {
  1293. "gpio95",
  1294. };
  1295. static const char * const sdc41_groups[] = {
  1296. "gpio95",
  1297. };
  1298. static const char * const tsif2_sync_groups[] = {
  1299. "gpio96",
  1300. };
  1301. static const char * const sdc40_groups[] = {
  1302. "gpio96",
  1303. };
  1304. static const char * const mdp_vsync_p_b_groups[] = {
  1305. "gpio97",
  1306. };
  1307. static const char * const ldo_en_groups[] = {
  1308. "gpio97",
  1309. };
  1310. static const char * const mdp_vsync_s_b_groups[] = {
  1311. "gpio98",
  1312. };
  1313. static const char * const ldo_update_groups[] = {
  1314. "gpio98",
  1315. };
  1316. static const char * const blsp11_uart_tx_b_groups[] = {
  1317. "gpio100",
  1318. };
  1319. static const char * const blsp11_uart_rx_b_groups[] = {
  1320. "gpio101",
  1321. };
  1322. static const char * const blsp11_i2c_sda_b_groups[] = {
  1323. "gpio102",
  1324. };
  1325. static const char * const prng_rosc_groups[] = {
  1326. "gpio102",
  1327. };
  1328. static const char * const blsp11_i2c_scl_b_groups[] = {
  1329. "gpio103",
  1330. };
  1331. static const char * const uim2_groups[] = {
  1332. "gpio105", "gpio106", "gpio107", "gpio108",
  1333. };
  1334. static const char * const uim1_groups[] = {
  1335. "gpio109", "gpio110", "gpio111", "gpio112",
  1336. };
  1337. static const char * const uim_batt_groups[] = {
  1338. "gpio113",
  1339. };
  1340. static const char * const pci_e2_groups[] = {
  1341. "gpio114", "gpio115", "gpio116",
  1342. };
  1343. static const char * const pa_indicator_groups[] = {
  1344. "gpio116",
  1345. };
  1346. static const char * const adsp_ext_groups[] = {
  1347. "gpio118",
  1348. };
  1349. static const char * const ddr_bist_groups[] = {
  1350. "gpio121", "gpio122", "gpio123", "gpio124",
  1351. };
  1352. static const char * const qdss_tracedata_11_groups[] = {
  1353. "gpio123",
  1354. };
  1355. static const char * const qdss_tracedata_12_groups[] = {
  1356. "gpio124",
  1357. };
  1358. static const char * const modem_tsync_groups[] = {
  1359. "gpio128",
  1360. };
  1361. static const char * const nav_dr_groups[] = {
  1362. "gpio128",
  1363. };
  1364. static const char * const nav_pps_groups[] = {
  1365. "gpio128",
  1366. };
  1367. static const char * const pci_e1_groups[] = {
  1368. "gpio130", "gpio131", "gpio132",
  1369. };
  1370. static const char * const gsm_tx_groups[] = {
  1371. "gpio134", "gpio135",
  1372. };
  1373. static const char * const qspi_cs_groups[] = {
  1374. "gpio138", "gpio141",
  1375. };
  1376. static const char * const ssbi2_groups[] = {
  1377. "gpio139",
  1378. };
  1379. static const char * const ssbi1_groups[] = {
  1380. "gpio140",
  1381. };
  1382. static const char * const mss_lte_groups[] = {
  1383. "gpio144", "gpio145",
  1384. };
  1385. static const char * const qspi_clk_groups[] = {
  1386. "gpio145",
  1387. };
  1388. static const char * const qspi0_groups[] = {
  1389. "gpio146",
  1390. };
  1391. static const char * const qspi1_groups[] = {
  1392. "gpio147",
  1393. };
  1394. static const char * const qspi2_groups[] = {
  1395. "gpio148",
  1396. };
  1397. static const char * const qspi3_groups[] = {
  1398. "gpio149",
  1399. };
  1400. static const struct msm_function msm8996_functions[] = {
  1401. FUNCTION(adsp_ext),
  1402. FUNCTION(atest_bbrx0),
  1403. FUNCTION(atest_bbrx1),
  1404. FUNCTION(atest_char),
  1405. FUNCTION(atest_char0),
  1406. FUNCTION(atest_char1),
  1407. FUNCTION(atest_char2),
  1408. FUNCTION(atest_char3),
  1409. FUNCTION(atest_gpsadc0),
  1410. FUNCTION(atest_gpsadc1),
  1411. FUNCTION(atest_tsens),
  1412. FUNCTION(atest_tsens2),
  1413. FUNCTION(atest_usb1),
  1414. FUNCTION(atest_usb10),
  1415. FUNCTION(atest_usb11),
  1416. FUNCTION(atest_usb12),
  1417. FUNCTION(atest_usb13),
  1418. FUNCTION(atest_usb2),
  1419. FUNCTION(atest_usb20),
  1420. FUNCTION(atest_usb21),
  1421. FUNCTION(atest_usb22),
  1422. FUNCTION(atest_usb23),
  1423. FUNCTION(audio_ref),
  1424. FUNCTION(bimc_dte0),
  1425. FUNCTION(bimc_dte1),
  1426. FUNCTION(blsp10_spi),
  1427. FUNCTION(blsp11_i2c_scl_b),
  1428. FUNCTION(blsp11_i2c_sda_b),
  1429. FUNCTION(blsp11_uart_rx_b),
  1430. FUNCTION(blsp11_uart_tx_b),
  1431. FUNCTION(blsp1_spi),
  1432. FUNCTION(blsp2_spi),
  1433. FUNCTION(blsp_i2c1),
  1434. FUNCTION(blsp_i2c10),
  1435. FUNCTION(blsp_i2c11),
  1436. FUNCTION(blsp_i2c12),
  1437. FUNCTION(blsp_i2c2),
  1438. FUNCTION(blsp_i2c3),
  1439. FUNCTION(blsp_i2c4),
  1440. FUNCTION(blsp_i2c5),
  1441. FUNCTION(blsp_i2c6),
  1442. FUNCTION(blsp_i2c7),
  1443. FUNCTION(blsp_i2c8),
  1444. FUNCTION(blsp_i2c9),
  1445. FUNCTION(blsp_spi1),
  1446. FUNCTION(blsp_spi10),
  1447. FUNCTION(blsp_spi11),
  1448. FUNCTION(blsp_spi12),
  1449. FUNCTION(blsp_spi2),
  1450. FUNCTION(blsp_spi3),
  1451. FUNCTION(blsp_spi4),
  1452. FUNCTION(blsp_spi5),
  1453. FUNCTION(blsp_spi6),
  1454. FUNCTION(blsp_spi7),
  1455. FUNCTION(blsp_spi8),
  1456. FUNCTION(blsp_spi9),
  1457. FUNCTION(blsp_uart1),
  1458. FUNCTION(blsp_uart10),
  1459. FUNCTION(blsp_uart11),
  1460. FUNCTION(blsp_uart12),
  1461. FUNCTION(blsp_uart2),
  1462. FUNCTION(blsp_uart3),
  1463. FUNCTION(blsp_uart4),
  1464. FUNCTION(blsp_uart5),
  1465. FUNCTION(blsp_uart6),
  1466. FUNCTION(blsp_uart7),
  1467. FUNCTION(blsp_uart8),
  1468. FUNCTION(blsp_uart9),
  1469. FUNCTION(blsp_uim1),
  1470. FUNCTION(blsp_uim10),
  1471. FUNCTION(blsp_uim11),
  1472. FUNCTION(blsp_uim12),
  1473. FUNCTION(blsp_uim2),
  1474. FUNCTION(blsp_uim3),
  1475. FUNCTION(blsp_uim4),
  1476. FUNCTION(blsp_uim5),
  1477. FUNCTION(blsp_uim6),
  1478. FUNCTION(blsp_uim7),
  1479. FUNCTION(blsp_uim8),
  1480. FUNCTION(blsp_uim9),
  1481. FUNCTION(btfm_slimbus),
  1482. FUNCTION(cam_mclk),
  1483. FUNCTION(cci_async),
  1484. FUNCTION(cci_i2c),
  1485. FUNCTION(cci_timer0),
  1486. FUNCTION(cci_timer1),
  1487. FUNCTION(cci_timer2),
  1488. FUNCTION(cci_timer3),
  1489. FUNCTION(cci_timer4),
  1490. FUNCTION(cri_trng),
  1491. FUNCTION(cri_trng0),
  1492. FUNCTION(cri_trng1),
  1493. FUNCTION(dac_calib0),
  1494. FUNCTION(dac_calib1),
  1495. FUNCTION(dac_calib10),
  1496. FUNCTION(dac_calib11),
  1497. FUNCTION(dac_calib12),
  1498. FUNCTION(dac_calib13),
  1499. FUNCTION(dac_calib14),
  1500. FUNCTION(dac_calib15),
  1501. FUNCTION(dac_calib16),
  1502. FUNCTION(dac_calib17),
  1503. FUNCTION(dac_calib18),
  1504. FUNCTION(dac_calib19),
  1505. FUNCTION(dac_calib2),
  1506. FUNCTION(dac_calib20),
  1507. FUNCTION(dac_calib21),
  1508. FUNCTION(dac_calib22),
  1509. FUNCTION(dac_calib23),
  1510. FUNCTION(dac_calib24),
  1511. FUNCTION(dac_calib25),
  1512. FUNCTION(dac_calib26),
  1513. FUNCTION(dac_calib3),
  1514. FUNCTION(dac_calib4),
  1515. FUNCTION(dac_calib5),
  1516. FUNCTION(dac_calib6),
  1517. FUNCTION(dac_calib7),
  1518. FUNCTION(dac_calib8),
  1519. FUNCTION(dac_calib9),
  1520. FUNCTION(dac_gpio),
  1521. FUNCTION(dbg_out),
  1522. FUNCTION(ddr_bist),
  1523. FUNCTION(edp_hot),
  1524. FUNCTION(edp_lcd),
  1525. FUNCTION(gcc_gp1_clk_a),
  1526. FUNCTION(gcc_gp1_clk_b),
  1527. FUNCTION(gcc_gp2_clk_a),
  1528. FUNCTION(gcc_gp2_clk_b),
  1529. FUNCTION(gcc_gp3_clk_a),
  1530. FUNCTION(gcc_gp3_clk_b),
  1531. FUNCTION(gpio),
  1532. FUNCTION(gsm_tx),
  1533. FUNCTION(hdmi_cec),
  1534. FUNCTION(hdmi_ddc),
  1535. FUNCTION(hdmi_hot),
  1536. FUNCTION(hdmi_rcv),
  1537. FUNCTION(isense_dbg),
  1538. FUNCTION(ldo_en),
  1539. FUNCTION(ldo_update),
  1540. FUNCTION(lpass_slimbus),
  1541. FUNCTION(m_voc),
  1542. FUNCTION(mdp_vsync),
  1543. FUNCTION(mdp_vsync_p_b),
  1544. FUNCTION(mdp_vsync_s_b),
  1545. FUNCTION(modem_tsync),
  1546. FUNCTION(mss_lte),
  1547. FUNCTION(nav_dr),
  1548. FUNCTION(nav_pps),
  1549. FUNCTION(pa_indicator),
  1550. FUNCTION(pci_e0),
  1551. FUNCTION(pci_e1),
  1552. FUNCTION(pci_e2),
  1553. FUNCTION(pll_bypassnl),
  1554. FUNCTION(pll_reset),
  1555. FUNCTION(pri_mi2s),
  1556. FUNCTION(prng_rosc),
  1557. FUNCTION(pwr_crypto),
  1558. FUNCTION(pwr_modem),
  1559. FUNCTION(pwr_nav),
  1560. FUNCTION(qdss_cti),
  1561. FUNCTION(qdss_cti_trig_in_a),
  1562. FUNCTION(qdss_cti_trig_in_b),
  1563. FUNCTION(qdss_cti_trig_out_a),
  1564. FUNCTION(qdss_cti_trig_out_b),
  1565. FUNCTION(qdss_stm0),
  1566. FUNCTION(qdss_stm1),
  1567. FUNCTION(qdss_stm10),
  1568. FUNCTION(qdss_stm11),
  1569. FUNCTION(qdss_stm12),
  1570. FUNCTION(qdss_stm13),
  1571. FUNCTION(qdss_stm14),
  1572. FUNCTION(qdss_stm15),
  1573. FUNCTION(qdss_stm16),
  1574. FUNCTION(qdss_stm17),
  1575. FUNCTION(qdss_stm18),
  1576. FUNCTION(qdss_stm19),
  1577. FUNCTION(qdss_stm2),
  1578. FUNCTION(qdss_stm20),
  1579. FUNCTION(qdss_stm21),
  1580. FUNCTION(qdss_stm22),
  1581. FUNCTION(qdss_stm23),
  1582. FUNCTION(qdss_stm24),
  1583. FUNCTION(qdss_stm25),
  1584. FUNCTION(qdss_stm26),
  1585. FUNCTION(qdss_stm27),
  1586. FUNCTION(qdss_stm28),
  1587. FUNCTION(qdss_stm29),
  1588. FUNCTION(qdss_stm3),
  1589. FUNCTION(qdss_stm30),
  1590. FUNCTION(qdss_stm31),
  1591. FUNCTION(qdss_stm4),
  1592. FUNCTION(qdss_stm5),
  1593. FUNCTION(qdss_stm6),
  1594. FUNCTION(qdss_stm7),
  1595. FUNCTION(qdss_stm8),
  1596. FUNCTION(qdss_stm9),
  1597. FUNCTION(qdss_traceclk_a),
  1598. FUNCTION(qdss_traceclk_b),
  1599. FUNCTION(qdss_tracectl_a),
  1600. FUNCTION(qdss_tracectl_b),
  1601. FUNCTION(qdss_tracedata_11),
  1602. FUNCTION(qdss_tracedata_12),
  1603. FUNCTION(qdss_tracedata_a),
  1604. FUNCTION(qdss_tracedata_b),
  1605. FUNCTION(qspi0),
  1606. FUNCTION(qspi1),
  1607. FUNCTION(qspi2),
  1608. FUNCTION(qspi3),
  1609. FUNCTION(qspi_clk),
  1610. FUNCTION(qspi_cs),
  1611. FUNCTION(qua_mi2s),
  1612. FUNCTION(sd_card),
  1613. FUNCTION(sd_write),
  1614. FUNCTION(sdc40),
  1615. FUNCTION(sdc41),
  1616. FUNCTION(sdc42),
  1617. FUNCTION(sdc43),
  1618. FUNCTION(sdc4_clk),
  1619. FUNCTION(sdc4_cmd),
  1620. FUNCTION(sec_mi2s),
  1621. FUNCTION(spkr_i2s),
  1622. FUNCTION(ssbi1),
  1623. FUNCTION(ssbi2),
  1624. FUNCTION(ssc_irq),
  1625. FUNCTION(ter_mi2s),
  1626. FUNCTION(tsense_pwm1),
  1627. FUNCTION(tsense_pwm2),
  1628. FUNCTION(tsif1_clk),
  1629. FUNCTION(tsif1_data),
  1630. FUNCTION(tsif1_en),
  1631. FUNCTION(tsif1_error),
  1632. FUNCTION(tsif1_sync),
  1633. FUNCTION(tsif2_clk),
  1634. FUNCTION(tsif2_data),
  1635. FUNCTION(tsif2_en),
  1636. FUNCTION(tsif2_error),
  1637. FUNCTION(tsif2_sync),
  1638. FUNCTION(uim1),
  1639. FUNCTION(uim2),
  1640. FUNCTION(uim3),
  1641. FUNCTION(uim4),
  1642. FUNCTION(uim_batt),
  1643. FUNCTION(vfr_1),
  1644. };
  1645. static const struct msm_pingroup msm8996_groups[] = {
  1646. PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA),
  1647. PINGROUP(1, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA),
  1648. PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA),
  1649. PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, atest_tsens,
  1650. bimc_dte1, NA, NA, NA),
  1651. PINGROUP(4, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_out_b,
  1652. dac_calib0, bimc_dte0, NA, NA),
  1653. PINGROUP(5, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_in_b,
  1654. dac_calib1, bimc_dte1, NA, NA),
  1655. PINGROUP(6, blsp_spi8, blsp_uart8, blsp_i2c8, NA, dac_calib2,
  1656. bimc_dte0, NA, NA, NA),
  1657. PINGROUP(7, blsp_spi8, blsp_uart8, blsp_i2c8, NA, atest_tsens2,
  1658. atest_usb1, NA, NA, NA),
  1659. PINGROUP(8, blsp_spi10, blsp_uart10, blsp_uim10, NA, atest_bbrx1,
  1660. atest_usb13, NA, NA, NA),
  1661. PINGROUP(9, blsp_spi10, blsp_uart10, blsp_uim10, atest_bbrx0,
  1662. atest_usb12, NA, NA, NA, NA),
  1663. PINGROUP(10, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10,
  1664. atest_gpsadc1, atest_usb11, NA, NA, NA),
  1665. PINGROUP(11, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10,
  1666. atest_gpsadc0, atest_usb10, NA, NA, NA),
  1667. PINGROUP(12, mdp_vsync, m_voc, dac_gpio, atest_char, NA, NA, NA, NA,
  1668. NA),
  1669. PINGROUP(13, cam_mclk, pll_bypassnl, qdss_stm7, qdss_tracedata_b, NA,
  1670. NA, NA, NA, NA),
  1671. PINGROUP(14, cam_mclk, pll_reset, qdss_stm6, qdss_tracedata_b, NA, NA,
  1672. NA, NA, NA),
  1673. PINGROUP(15, cam_mclk, qdss_stm5, qdss_tracedata_b, NA, NA, NA, NA, NA,
  1674. NA),
  1675. PINGROUP(16, cam_mclk, qdss_stm4, qdss_tracedata_b, NA, atest_usb2, NA,
  1676. NA, NA, NA),
  1677. PINGROUP(17, cci_i2c, qdss_stm3, qdss_tracedata_b, dac_calib3,
  1678. atest_usb23, atest_char3, NA, NA, NA),
  1679. PINGROUP(18, cci_i2c, qdss_stm2, qdss_tracedata_b, dac_calib4,
  1680. atest_usb22, atest_char2, NA, NA, NA),
  1681. PINGROUP(19, cci_i2c, qdss_stm1, qdss_tracedata_b, dac_calib5,
  1682. atest_usb21, atest_char1, NA, NA, NA),
  1683. PINGROUP(20, cci_i2c, dbg_out, qdss_stm0, dac_calib6, atest_usb20,
  1684. atest_char0, NA, NA, NA),
  1685. PINGROUP(21, cci_timer0, qdss_stm13, qdss_tracedata_b, dac_calib7, NA,
  1686. NA, NA, NA, NA),
  1687. PINGROUP(22, cci_timer1, qdss_stm12, qdss_tracedata_b, dac_calib8, NA,
  1688. NA, NA, NA, NA),
  1689. PINGROUP(23, cci_timer2, blsp1_spi, qdss_stm11, qdss_tracedata_b,
  1690. dac_calib9, NA, NA, NA, NA),
  1691. PINGROUP(24, cci_timer3, cci_async, blsp1_spi, qdss_stm10,
  1692. qdss_cti_trig_in_a, dac_calib10, NA, NA, NA),
  1693. PINGROUP(25, cci_timer4, cci_async, blsp_spi6, blsp_uart6, blsp_uim6,
  1694. blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11),
  1695. PINGROUP(26, cci_async, blsp_spi6, blsp_uart6, blsp_uim6, qdss_stm8,
  1696. qdss_tracedata_b, dac_calib12, NA, NA),
  1697. PINGROUP(27, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi,
  1698. qdss_tracectl_a, dac_calib13, NA, NA, NA),
  1699. PINGROUP(28, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi,
  1700. qdss_traceclk_a, dac_calib14, NA, NA, NA),
  1701. PINGROUP(29, blsp2_spi, NA, qdss_tracedata_b, dac_calib15, NA, NA, NA,
  1702. NA, NA),
  1703. PINGROUP(30, hdmi_rcv, blsp2_spi, dac_calib16, NA, NA, NA, NA, NA, NA),
  1704. PINGROUP(31, hdmi_cec, pwr_modem, dac_calib17, NA, NA, NA, NA, NA, NA),
  1705. PINGROUP(32, hdmi_ddc, pwr_nav, NA, dac_calib18, NA, NA, NA, NA, NA),
  1706. PINGROUP(33, hdmi_ddc, pwr_crypto, NA, dac_calib19, NA, NA, NA, NA, NA),
  1707. PINGROUP(34, hdmi_hot, NA, dac_calib20, NA, NA, NA, NA, NA, NA),
  1708. PINGROUP(35, pci_e0, NA, dac_calib21, NA, NA, NA, NA, NA, NA),
  1709. PINGROUP(36, pci_e0, NA, dac_calib22, NA, NA, NA, NA, NA, NA),
  1710. PINGROUP(37, NA, dac_calib23, NA, NA, NA, NA, NA, NA, NA),
  1711. PINGROUP(38, NA, dac_calib24, NA, NA, NA, NA, NA, NA, NA),
  1712. PINGROUP(39, tsif1_sync, NA, dac_calib25, NA, NA, NA, NA, NA, NA),
  1713. PINGROUP(40, sd_write, tsif1_error, NA, NA, NA, NA, NA, NA, NA),
  1714. PINGROUP(41, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti,
  1715. dac_calib0, NA, NA, NA),
  1716. PINGROUP(42, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti,
  1717. dac_calib1, NA, NA, NA),
  1718. PINGROUP(43, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib2, NA, NA,
  1719. NA, NA),
  1720. PINGROUP(44, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib3, NA, NA,
  1721. NA, NA),
  1722. PINGROUP(45, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib4, NA, NA,
  1723. NA, NA),
  1724. PINGROUP(46, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib5, NA, NA,
  1725. NA, NA),
  1726. PINGROUP(47, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib6, NA, NA, NA,
  1727. NA, NA),
  1728. PINGROUP(48, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib7, NA, NA, NA,
  1729. NA, NA),
  1730. PINGROUP(49, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi,
  1731. dac_calib8, NA, NA, NA),
  1732. PINGROUP(50, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi,
  1733. dac_calib9, NA, NA, NA),
  1734. PINGROUP(51, uim3, blsp_spi9, blsp_uart9, blsp_i2c9, blsp10_spi,
  1735. dac_calib10, NA, NA, NA),
  1736. PINGROUP(52, uim3, blsp_spi9, blsp_uart9, blsp_i2c9,
  1737. blsp10_spi, dac_calib11, NA, NA, NA),
  1738. PINGROUP(53, blsp_spi7, blsp_uart7, blsp_uim7, NA, qdss_tracedata_a,
  1739. dac_calib12, NA, NA, NA),
  1740. PINGROUP(54, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA,
  1741. qdss_tracedata_a, dac_calib13, NA, NA),
  1742. PINGROUP(55, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib14, NA, NA,
  1743. NA, NA),
  1744. PINGROUP(56, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib15, NA, NA,
  1745. NA, NA),
  1746. PINGROUP(57, qua_mi2s, gcc_gp1_clk_a, NA, qdss_tracedata_b,
  1747. dac_calib16, NA, NA, NA, NA),
  1748. PINGROUP(58, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11,
  1749. gcc_gp2_clk_a, NA, qdss_tracedata_b, dac_calib17),
  1750. PINGROUP(59, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11,
  1751. gcc_gp3_clk_a, NA, dac_calib18, NA),
  1752. PINGROUP(60, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_i2c11,
  1753. cri_trng0, NA, dac_calib19, NA),
  1754. PINGROUP(61, qua_mi2s, uim4, blsp_spi11, blsp_uart11,
  1755. blsp_i2c11, cri_trng1, NA, dac_calib20, NA),
  1756. PINGROUP(62, qua_mi2s, cri_trng, NA, dac_calib21, NA, NA, NA, NA, NA),
  1757. PINGROUP(63, qua_mi2s, NA, NA, qdss_stm18, qdss_tracedata_a,
  1758. dac_calib22, NA, NA, NA),
  1759. PINGROUP(64, pri_mi2s, NA, qdss_stm17, qdss_tracedata_a, dac_calib23,
  1760. NA, NA, NA, NA),
  1761. PINGROUP(65, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA,
  1762. qdss_stm16, qdss_tracedata_a, dac_calib24, NA),
  1763. PINGROUP(66, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA,
  1764. qdss_stm15, qdss_tracedata_a, dac_calib25, NA),
  1765. PINGROUP(67, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, qdss_stm14,
  1766. qdss_tracedata_a, dac_calib26, NA, NA),
  1767. PINGROUP(68, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA,
  1768. NA, NA),
  1769. PINGROUP(69, spkr_i2s, audio_ref, NA, NA, NA, NA, NA, NA, NA),
  1770. PINGROUP(70, lpass_slimbus, spkr_i2s, isense_dbg, NA, NA, NA, NA, NA,
  1771. NA),
  1772. PINGROUP(71, lpass_slimbus, spkr_i2s, tsense_pwm1, tsense_pwm2, NA, NA,
  1773. NA, NA, NA),
  1774. PINGROUP(72, lpass_slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA),
  1775. PINGROUP(73, btfm_slimbus, NA, NA, NA, NA, NA, NA, NA, NA),
  1776. PINGROUP(74, btfm_slimbus, ter_mi2s, qdss_stm22, qdss_tracedata_a, NA,
  1777. NA, NA, NA, NA),
  1778. PINGROUP(75, ter_mi2s, qdss_stm21, qdss_tracedata_a, NA, NA, NA, NA,
  1779. NA, NA),
  1780. PINGROUP(76, ter_mi2s, qdss_stm20, qdss_tracedata_a, NA, NA, NA, NA,
  1781. NA, NA),
  1782. PINGROUP(77, ter_mi2s, qdss_stm19, qdss_tracedata_a, NA, NA, NA, NA,
  1783. NA, NA),
  1784. PINGROUP(78, ter_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA),
  1785. PINGROUP(79, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
  1786. PINGROUP(80, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
  1787. PINGROUP(81, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b,
  1788. NA, NA, NA, NA),
  1789. PINGROUP(82, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp3_clk_b,
  1790. NA, NA, NA, NA),
  1791. PINGROUP(83, sec_mi2s, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA,
  1792. NA, NA),
  1793. PINGROUP(84, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA),
  1794. PINGROUP(85, blsp_spi12, blsp_uart12, blsp_uim12, NA, qdss_stm25,
  1795. qdss_tracedata_a, NA, NA, NA),
  1796. PINGROUP(86, blsp_spi12, blsp_uart12, blsp_uim12, NA, NA, qdss_stm31,
  1797. qdss_tracedata_a, NA, NA),
  1798. PINGROUP(87, blsp_spi12, blsp_uart12, blsp_i2c12, NA, qdss_stm30,
  1799. qdss_tracedata_a, NA, NA, NA),
  1800. PINGROUP(88, blsp_spi12, blsp_uart12, blsp_i2c12, blsp10_spi, NA,
  1801. qdss_stm29, NA, NA, NA),
  1802. PINGROUP(89, tsif1_clk, qdss_stm28, qdss_tracedata_a, NA, NA, NA, NA,
  1803. NA, NA),
  1804. PINGROUP(90, tsif1_en, blsp1_spi, qdss_tracedata_a, NA, NA, NA, NA, NA,
  1805. NA),
  1806. PINGROUP(91, tsif1_data, sdc4_cmd, qdss_stm27, qdss_traceclk_b, NA, NA,
  1807. NA, NA, NA),
  1808. PINGROUP(92, tsif2_error, sdc43, vfr_1, qdss_stm26, qdss_tracedata_b,
  1809. NA, NA, NA, NA),
  1810. PINGROUP(93, tsif2_clk, sdc4_clk, NA, qdss_stm24, qdss_tracedata_b, NA,
  1811. NA, NA, NA),
  1812. PINGROUP(94, tsif2_en, sdc42, NA, qdss_stm23, qdss_tracectl_b, NA, NA,
  1813. NA, NA),
  1814. PINGROUP(95, tsif2_data, sdc41, NA, NA, NA, NA, NA, NA, NA),
  1815. PINGROUP(96, tsif2_sync, sdc40, NA, NA, NA, NA, NA, NA, NA),
  1816. PINGROUP(97, NA, NA, mdp_vsync_p_b, ldo_en, NA, NA, NA, NA, NA),
  1817. PINGROUP(98, NA, NA, mdp_vsync_s_b, ldo_update, NA, NA, NA, NA, NA),
  1818. PINGROUP(99, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1819. PINGROUP(100, NA, NA, blsp11_uart_tx_b, qdss_cti, NA, NA, NA, NA, NA),
  1820. PINGROUP(101, NA, blsp11_uart_rx_b, qdss_cti, NA, NA, NA, NA, NA, NA),
  1821. PINGROUP(102, NA, blsp11_i2c_sda_b, prng_rosc, NA, NA, NA, NA, NA, NA),
  1822. PINGROUP(103, NA, blsp11_i2c_scl_b, NA, NA, NA, NA, NA, NA, NA),
  1823. PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1824. PINGROUP(105, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
  1825. PINGROUP(106, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
  1826. PINGROUP(107, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
  1827. PINGROUP(108, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
  1828. PINGROUP(109, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
  1829. PINGROUP(110, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
  1830. PINGROUP(111, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
  1831. PINGROUP(112, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
  1832. PINGROUP(113, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA),
  1833. PINGROUP(114, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA),
  1834. PINGROUP(115, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA),
  1835. PINGROUP(116, NA, pa_indicator, NA, NA, NA, NA, NA, NA, NA),
  1836. PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1837. PINGROUP(118, adsp_ext, NA, NA, NA, NA, NA, NA, NA, NA),
  1838. PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1839. PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1840. PINGROUP(121, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA),
  1841. PINGROUP(122, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA),
  1842. PINGROUP(123, ddr_bist, qdss_tracedata_11, NA, NA, NA, NA, NA, NA, NA),
  1843. PINGROUP(124, ddr_bist, qdss_tracedata_12, NA, NA, NA, NA, NA, NA, NA),
  1844. PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1845. PINGROUP(126, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1846. PINGROUP(127, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1847. PINGROUP(128, NA, modem_tsync, nav_dr, nav_pps, NA, NA, NA, NA, NA),
  1848. PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1849. PINGROUP(130, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA),
  1850. PINGROUP(131, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA),
  1851. PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1852. PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1853. PINGROUP(134, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA),
  1854. PINGROUP(135, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA),
  1855. PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1856. PINGROUP(137, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1857. PINGROUP(138, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA),
  1858. PINGROUP(139, NA, ssbi2, NA, NA, NA, NA, NA, NA, NA),
  1859. PINGROUP(140, NA, ssbi1, NA, NA, NA, NA, NA, NA, NA),
  1860. PINGROUP(141, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA),
  1861. PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1862. PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1863. PINGROUP(144, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA),
  1864. PINGROUP(145, mss_lte, qspi_clk, NA, NA, NA, NA, NA, NA, NA),
  1865. PINGROUP(146, NA, qspi0, NA, NA, NA, NA, NA, NA, NA),
  1866. PINGROUP(147, NA, qspi1, NA, NA, NA, NA, NA, NA, NA),
  1867. PINGROUP(148, NA, qspi2, NA, NA, NA, NA, NA, NA, NA),
  1868. PINGROUP(149, NA, qspi3, NA, NA, NA, NA, NA, NA, NA),
  1869. SDC_QDSD_PINGROUP(sdc1_clk, 0x12c000, 13, 6),
  1870. SDC_QDSD_PINGROUP(sdc1_cmd, 0x12c000, 11, 3),
  1871. SDC_QDSD_PINGROUP(sdc1_data, 0x12c000, 9, 0),
  1872. SDC_QDSD_PINGROUP(sdc2_clk, 0x12d000, 14, 6),
  1873. SDC_QDSD_PINGROUP(sdc2_cmd, 0x12d000, 11, 3),
  1874. SDC_QDSD_PINGROUP(sdc2_data, 0x12d000, 9, 0),
  1875. SDC_QDSD_PINGROUP(sdc1_rclk, 0x12c000, 15, 0),
  1876. };
  1877. static const struct msm_pinctrl_soc_data msm8996_pinctrl = {
  1878. .pins = msm8996_pins,
  1879. .npins = ARRAY_SIZE(msm8996_pins),
  1880. .functions = msm8996_functions,
  1881. .nfunctions = ARRAY_SIZE(msm8996_functions),
  1882. .groups = msm8996_groups,
  1883. .ngroups = ARRAY_SIZE(msm8996_groups),
  1884. .ngpios = 150,
  1885. };
  1886. static int msm8996_pinctrl_probe(struct platform_device *pdev)
  1887. {
  1888. return msm_pinctrl_probe(pdev, &msm8996_pinctrl);
  1889. }
  1890. static const struct of_device_id msm8996_pinctrl_of_match[] = {
  1891. { .compatible = "qcom,msm8996-pinctrl", },
  1892. { }
  1893. };
  1894. static struct platform_driver msm8996_pinctrl_driver = {
  1895. .driver = {
  1896. .name = "msm8996-pinctrl",
  1897. .of_match_table = msm8996_pinctrl_of_match,
  1898. },
  1899. .probe = msm8996_pinctrl_probe,
  1900. .remove = msm_pinctrl_remove,
  1901. };
  1902. static int __init msm8996_pinctrl_init(void)
  1903. {
  1904. return platform_driver_register(&msm8996_pinctrl_driver);
  1905. }
  1906. arch_initcall(msm8996_pinctrl_init);
  1907. static void __exit msm8996_pinctrl_exit(void)
  1908. {
  1909. platform_driver_unregister(&msm8996_pinctrl_driver);
  1910. }
  1911. module_exit(msm8996_pinctrl_exit);
  1912. MODULE_DESCRIPTION("Qualcomm msm8996 pinctrl driver");
  1913. MODULE_LICENSE("GPL v2");
  1914. MODULE_DEVICE_TABLE(of, msm8996_pinctrl_of_match);