pinctrl-msm8996.c 54 KB

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