pinctrl-msm8953.c 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (c) 2020, The Linux Foundation. All rights reserved.
  3. #include <linux/module.h>
  4. #include <linux/of.h>
  5. #include <linux/platform_device.h>
  6. #include <linux/pinctrl/pinctrl.h>
  7. #include "pinctrl-msm.h"
  8. #define FUNCTION(fname) \
  9. [msm_mux_##fname] = { \
  10. .name = #fname, \
  11. .groups = fname##_groups, \
  12. .ngroups = ARRAY_SIZE(fname##_groups), \
  13. }
  14. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  15. { \
  16. .name = "gpio" #id, \
  17. .pins = gpio##id##_pins, \
  18. .npins = ARRAY_SIZE(gpio##id##_pins), \
  19. .funcs = (int[]){ \
  20. msm_mux_gpio, /* gpio mode */ \
  21. msm_mux_##f1, \
  22. msm_mux_##f2, \
  23. msm_mux_##f3, \
  24. msm_mux_##f4, \
  25. msm_mux_##f5, \
  26. msm_mux_##f6, \
  27. msm_mux_##f7, \
  28. msm_mux_##f8, \
  29. msm_mux_##f9 \
  30. }, \
  31. .nfuncs = 10, \
  32. .ctl_reg = 0x1000 * id, \
  33. .io_reg = 0x4 + 0x1000 * id, \
  34. .intr_cfg_reg = 0x8 + 0x1000 * id, \
  35. .intr_status_reg = 0xc + 0x1000 * id, \
  36. .intr_target_reg = 0x8 + 0x1000 * id, \
  37. .mux_bit = 2, \
  38. .pull_bit = 0, \
  39. .drv_bit = 6, \
  40. .oe_bit = 9, \
  41. .in_bit = 0, \
  42. .out_bit = 1, \
  43. .intr_enable_bit = 0, \
  44. .intr_status_bit = 0, \
  45. .intr_target_bit = 5, \
  46. .intr_target_kpss_val = 4, \
  47. .intr_raw_status_bit = 4, \
  48. .intr_polarity_bit = 1, \
  49. .intr_detection_bit = 2, \
  50. .intr_detection_width = 2, \
  51. }
  52. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  53. { \
  54. .name = #pg_name, \
  55. .pins = pg_name##_pins, \
  56. .npins = ARRAY_SIZE(pg_name##_pins), \
  57. .ctl_reg = ctl, \
  58. .io_reg = 0, \
  59. .intr_cfg_reg = 0, \
  60. .intr_status_reg = 0, \
  61. .intr_target_reg = 0, \
  62. .mux_bit = -1, \
  63. .pull_bit = pull, \
  64. .drv_bit = drv, \
  65. .oe_bit = -1, \
  66. .in_bit = -1, \
  67. .out_bit = -1, \
  68. .intr_enable_bit = -1, \
  69. .intr_status_bit = -1, \
  70. .intr_target_bit = -1, \
  71. .intr_raw_status_bit = -1, \
  72. .intr_polarity_bit = -1, \
  73. .intr_detection_bit = -1, \
  74. .intr_detection_width = -1, \
  75. }
  76. static const struct pinctrl_pin_desc msm8953_pins[] = {
  77. PINCTRL_PIN(0, "GPIO_0"),
  78. PINCTRL_PIN(1, "GPIO_1"),
  79. PINCTRL_PIN(2, "GPIO_2"),
  80. PINCTRL_PIN(3, "GPIO_3"),
  81. PINCTRL_PIN(4, "GPIO_4"),
  82. PINCTRL_PIN(5, "GPIO_5"),
  83. PINCTRL_PIN(6, "GPIO_6"),
  84. PINCTRL_PIN(7, "GPIO_7"),
  85. PINCTRL_PIN(8, "GPIO_8"),
  86. PINCTRL_PIN(9, "GPIO_9"),
  87. PINCTRL_PIN(10, "GPIO_10"),
  88. PINCTRL_PIN(11, "GPIO_11"),
  89. PINCTRL_PIN(12, "GPIO_12"),
  90. PINCTRL_PIN(13, "GPIO_13"),
  91. PINCTRL_PIN(14, "GPIO_14"),
  92. PINCTRL_PIN(15, "GPIO_15"),
  93. PINCTRL_PIN(16, "GPIO_16"),
  94. PINCTRL_PIN(17, "GPIO_17"),
  95. PINCTRL_PIN(18, "GPIO_18"),
  96. PINCTRL_PIN(19, "GPIO_19"),
  97. PINCTRL_PIN(20, "GPIO_20"),
  98. PINCTRL_PIN(21, "GPIO_21"),
  99. PINCTRL_PIN(22, "GPIO_22"),
  100. PINCTRL_PIN(23, "GPIO_23"),
  101. PINCTRL_PIN(24, "GPIO_24"),
  102. PINCTRL_PIN(25, "GPIO_25"),
  103. PINCTRL_PIN(26, "GPIO_26"),
  104. PINCTRL_PIN(27, "GPIO_27"),
  105. PINCTRL_PIN(28, "GPIO_28"),
  106. PINCTRL_PIN(29, "GPIO_29"),
  107. PINCTRL_PIN(30, "GPIO_30"),
  108. PINCTRL_PIN(31, "GPIO_31"),
  109. PINCTRL_PIN(32, "GPIO_32"),
  110. PINCTRL_PIN(33, "GPIO_33"),
  111. PINCTRL_PIN(34, "GPIO_34"),
  112. PINCTRL_PIN(35, "GPIO_35"),
  113. PINCTRL_PIN(36, "GPIO_36"),
  114. PINCTRL_PIN(37, "GPIO_37"),
  115. PINCTRL_PIN(38, "GPIO_38"),
  116. PINCTRL_PIN(39, "GPIO_39"),
  117. PINCTRL_PIN(40, "GPIO_40"),
  118. PINCTRL_PIN(41, "GPIO_41"),
  119. PINCTRL_PIN(42, "GPIO_42"),
  120. PINCTRL_PIN(43, "GPIO_43"),
  121. PINCTRL_PIN(44, "GPIO_44"),
  122. PINCTRL_PIN(45, "GPIO_45"),
  123. PINCTRL_PIN(46, "GPIO_46"),
  124. PINCTRL_PIN(47, "GPIO_47"),
  125. PINCTRL_PIN(48, "GPIO_48"),
  126. PINCTRL_PIN(49, "GPIO_49"),
  127. PINCTRL_PIN(50, "GPIO_50"),
  128. PINCTRL_PIN(51, "GPIO_51"),
  129. PINCTRL_PIN(52, "GPIO_52"),
  130. PINCTRL_PIN(53, "GPIO_53"),
  131. PINCTRL_PIN(54, "GPIO_54"),
  132. PINCTRL_PIN(55, "GPIO_55"),
  133. PINCTRL_PIN(56, "GPIO_56"),
  134. PINCTRL_PIN(57, "GPIO_57"),
  135. PINCTRL_PIN(58, "GPIO_58"),
  136. PINCTRL_PIN(59, "GPIO_59"),
  137. PINCTRL_PIN(60, "GPIO_60"),
  138. PINCTRL_PIN(61, "GPIO_61"),
  139. PINCTRL_PIN(62, "GPIO_62"),
  140. PINCTRL_PIN(63, "GPIO_63"),
  141. PINCTRL_PIN(64, "GPIO_64"),
  142. PINCTRL_PIN(65, "GPIO_65"),
  143. PINCTRL_PIN(66, "GPIO_66"),
  144. PINCTRL_PIN(67, "GPIO_67"),
  145. PINCTRL_PIN(68, "GPIO_68"),
  146. PINCTRL_PIN(69, "GPIO_69"),
  147. PINCTRL_PIN(70, "GPIO_70"),
  148. PINCTRL_PIN(71, "GPIO_71"),
  149. PINCTRL_PIN(72, "GPIO_72"),
  150. PINCTRL_PIN(73, "GPIO_73"),
  151. PINCTRL_PIN(74, "GPIO_74"),
  152. PINCTRL_PIN(75, "GPIO_75"),
  153. PINCTRL_PIN(76, "GPIO_76"),
  154. PINCTRL_PIN(77, "GPIO_77"),
  155. PINCTRL_PIN(78, "GPIO_78"),
  156. PINCTRL_PIN(79, "GPIO_79"),
  157. PINCTRL_PIN(80, "GPIO_80"),
  158. PINCTRL_PIN(81, "GPIO_81"),
  159. PINCTRL_PIN(82, "GPIO_82"),
  160. PINCTRL_PIN(83, "GPIO_83"),
  161. PINCTRL_PIN(84, "GPIO_84"),
  162. PINCTRL_PIN(85, "GPIO_85"),
  163. PINCTRL_PIN(86, "GPIO_86"),
  164. PINCTRL_PIN(87, "GPIO_87"),
  165. PINCTRL_PIN(88, "GPIO_88"),
  166. PINCTRL_PIN(89, "GPIO_89"),
  167. PINCTRL_PIN(90, "GPIO_90"),
  168. PINCTRL_PIN(91, "GPIO_91"),
  169. PINCTRL_PIN(92, "GPIO_92"),
  170. PINCTRL_PIN(93, "GPIO_93"),
  171. PINCTRL_PIN(94, "GPIO_94"),
  172. PINCTRL_PIN(95, "GPIO_95"),
  173. PINCTRL_PIN(96, "GPIO_96"),
  174. PINCTRL_PIN(97, "GPIO_97"),
  175. PINCTRL_PIN(98, "GPIO_98"),
  176. PINCTRL_PIN(99, "GPIO_99"),
  177. PINCTRL_PIN(100, "GPIO_100"),
  178. PINCTRL_PIN(101, "GPIO_101"),
  179. PINCTRL_PIN(102, "GPIO_102"),
  180. PINCTRL_PIN(103, "GPIO_103"),
  181. PINCTRL_PIN(104, "GPIO_104"),
  182. PINCTRL_PIN(105, "GPIO_105"),
  183. PINCTRL_PIN(106, "GPIO_106"),
  184. PINCTRL_PIN(107, "GPIO_107"),
  185. PINCTRL_PIN(108, "GPIO_108"),
  186. PINCTRL_PIN(109, "GPIO_109"),
  187. PINCTRL_PIN(110, "GPIO_110"),
  188. PINCTRL_PIN(111, "GPIO_111"),
  189. PINCTRL_PIN(112, "GPIO_112"),
  190. PINCTRL_PIN(113, "GPIO_113"),
  191. PINCTRL_PIN(114, "GPIO_114"),
  192. PINCTRL_PIN(115, "GPIO_115"),
  193. PINCTRL_PIN(116, "GPIO_116"),
  194. PINCTRL_PIN(117, "GPIO_117"),
  195. PINCTRL_PIN(118, "GPIO_118"),
  196. PINCTRL_PIN(119, "GPIO_119"),
  197. PINCTRL_PIN(120, "GPIO_120"),
  198. PINCTRL_PIN(121, "GPIO_121"),
  199. PINCTRL_PIN(122, "GPIO_122"),
  200. PINCTRL_PIN(123, "GPIO_123"),
  201. PINCTRL_PIN(124, "GPIO_124"),
  202. PINCTRL_PIN(125, "GPIO_125"),
  203. PINCTRL_PIN(126, "GPIO_126"),
  204. PINCTRL_PIN(127, "GPIO_127"),
  205. PINCTRL_PIN(128, "GPIO_128"),
  206. PINCTRL_PIN(129, "GPIO_129"),
  207. PINCTRL_PIN(130, "GPIO_130"),
  208. PINCTRL_PIN(131, "GPIO_131"),
  209. PINCTRL_PIN(132, "GPIO_132"),
  210. PINCTRL_PIN(133, "GPIO_133"),
  211. PINCTRL_PIN(134, "GPIO_134"),
  212. PINCTRL_PIN(135, "GPIO_135"),
  213. PINCTRL_PIN(136, "GPIO_136"),
  214. PINCTRL_PIN(137, "GPIO_137"),
  215. PINCTRL_PIN(138, "GPIO_138"),
  216. PINCTRL_PIN(139, "GPIO_139"),
  217. PINCTRL_PIN(140, "GPIO_140"),
  218. PINCTRL_PIN(141, "GPIO_141"),
  219. PINCTRL_PIN(142, "SDC1_CLK"),
  220. PINCTRL_PIN(143, "SDC1_CMD"),
  221. PINCTRL_PIN(144, "SDC1_DATA"),
  222. PINCTRL_PIN(145, "SDC1_RCLK"),
  223. PINCTRL_PIN(146, "SDC2_CLK"),
  224. PINCTRL_PIN(147, "SDC2_CMD"),
  225. PINCTRL_PIN(148, "SDC2_DATA"),
  226. PINCTRL_PIN(149, "QDSD_CLK"),
  227. PINCTRL_PIN(150, "QDSD_CMD"),
  228. PINCTRL_PIN(151, "QDSD_DATA0"),
  229. PINCTRL_PIN(152, "QDSD_DATA1"),
  230. PINCTRL_PIN(153, "QDSD_DATA2"),
  231. PINCTRL_PIN(154, "QDSD_DATA3"),
  232. };
  233. #define DECLARE_MSM_GPIO_PINS(pin) \
  234. static const unsigned int gpio##pin##_pins[] = { pin }
  235. DECLARE_MSM_GPIO_PINS(0);
  236. DECLARE_MSM_GPIO_PINS(1);
  237. DECLARE_MSM_GPIO_PINS(2);
  238. DECLARE_MSM_GPIO_PINS(3);
  239. DECLARE_MSM_GPIO_PINS(4);
  240. DECLARE_MSM_GPIO_PINS(5);
  241. DECLARE_MSM_GPIO_PINS(6);
  242. DECLARE_MSM_GPIO_PINS(7);
  243. DECLARE_MSM_GPIO_PINS(8);
  244. DECLARE_MSM_GPIO_PINS(9);
  245. DECLARE_MSM_GPIO_PINS(10);
  246. DECLARE_MSM_GPIO_PINS(11);
  247. DECLARE_MSM_GPIO_PINS(12);
  248. DECLARE_MSM_GPIO_PINS(13);
  249. DECLARE_MSM_GPIO_PINS(14);
  250. DECLARE_MSM_GPIO_PINS(15);
  251. DECLARE_MSM_GPIO_PINS(16);
  252. DECLARE_MSM_GPIO_PINS(17);
  253. DECLARE_MSM_GPIO_PINS(18);
  254. DECLARE_MSM_GPIO_PINS(19);
  255. DECLARE_MSM_GPIO_PINS(20);
  256. DECLARE_MSM_GPIO_PINS(21);
  257. DECLARE_MSM_GPIO_PINS(22);
  258. DECLARE_MSM_GPIO_PINS(23);
  259. DECLARE_MSM_GPIO_PINS(24);
  260. DECLARE_MSM_GPIO_PINS(25);
  261. DECLARE_MSM_GPIO_PINS(26);
  262. DECLARE_MSM_GPIO_PINS(27);
  263. DECLARE_MSM_GPIO_PINS(28);
  264. DECLARE_MSM_GPIO_PINS(29);
  265. DECLARE_MSM_GPIO_PINS(30);
  266. DECLARE_MSM_GPIO_PINS(31);
  267. DECLARE_MSM_GPIO_PINS(32);
  268. DECLARE_MSM_GPIO_PINS(33);
  269. DECLARE_MSM_GPIO_PINS(34);
  270. DECLARE_MSM_GPIO_PINS(35);
  271. DECLARE_MSM_GPIO_PINS(36);
  272. DECLARE_MSM_GPIO_PINS(37);
  273. DECLARE_MSM_GPIO_PINS(38);
  274. DECLARE_MSM_GPIO_PINS(39);
  275. DECLARE_MSM_GPIO_PINS(40);
  276. DECLARE_MSM_GPIO_PINS(41);
  277. DECLARE_MSM_GPIO_PINS(42);
  278. DECLARE_MSM_GPIO_PINS(43);
  279. DECLARE_MSM_GPIO_PINS(44);
  280. DECLARE_MSM_GPIO_PINS(45);
  281. DECLARE_MSM_GPIO_PINS(46);
  282. DECLARE_MSM_GPIO_PINS(47);
  283. DECLARE_MSM_GPIO_PINS(48);
  284. DECLARE_MSM_GPIO_PINS(49);
  285. DECLARE_MSM_GPIO_PINS(50);
  286. DECLARE_MSM_GPIO_PINS(51);
  287. DECLARE_MSM_GPIO_PINS(52);
  288. DECLARE_MSM_GPIO_PINS(53);
  289. DECLARE_MSM_GPIO_PINS(54);
  290. DECLARE_MSM_GPIO_PINS(55);
  291. DECLARE_MSM_GPIO_PINS(56);
  292. DECLARE_MSM_GPIO_PINS(57);
  293. DECLARE_MSM_GPIO_PINS(58);
  294. DECLARE_MSM_GPIO_PINS(59);
  295. DECLARE_MSM_GPIO_PINS(60);
  296. DECLARE_MSM_GPIO_PINS(61);
  297. DECLARE_MSM_GPIO_PINS(62);
  298. DECLARE_MSM_GPIO_PINS(63);
  299. DECLARE_MSM_GPIO_PINS(64);
  300. DECLARE_MSM_GPIO_PINS(65);
  301. DECLARE_MSM_GPIO_PINS(66);
  302. DECLARE_MSM_GPIO_PINS(67);
  303. DECLARE_MSM_GPIO_PINS(68);
  304. DECLARE_MSM_GPIO_PINS(69);
  305. DECLARE_MSM_GPIO_PINS(70);
  306. DECLARE_MSM_GPIO_PINS(71);
  307. DECLARE_MSM_GPIO_PINS(72);
  308. DECLARE_MSM_GPIO_PINS(73);
  309. DECLARE_MSM_GPIO_PINS(74);
  310. DECLARE_MSM_GPIO_PINS(75);
  311. DECLARE_MSM_GPIO_PINS(76);
  312. DECLARE_MSM_GPIO_PINS(77);
  313. DECLARE_MSM_GPIO_PINS(78);
  314. DECLARE_MSM_GPIO_PINS(79);
  315. DECLARE_MSM_GPIO_PINS(80);
  316. DECLARE_MSM_GPIO_PINS(81);
  317. DECLARE_MSM_GPIO_PINS(82);
  318. DECLARE_MSM_GPIO_PINS(83);
  319. DECLARE_MSM_GPIO_PINS(84);
  320. DECLARE_MSM_GPIO_PINS(85);
  321. DECLARE_MSM_GPIO_PINS(86);
  322. DECLARE_MSM_GPIO_PINS(87);
  323. DECLARE_MSM_GPIO_PINS(88);
  324. DECLARE_MSM_GPIO_PINS(89);
  325. DECLARE_MSM_GPIO_PINS(90);
  326. DECLARE_MSM_GPIO_PINS(91);
  327. DECLARE_MSM_GPIO_PINS(92);
  328. DECLARE_MSM_GPIO_PINS(93);
  329. DECLARE_MSM_GPIO_PINS(94);
  330. DECLARE_MSM_GPIO_PINS(95);
  331. DECLARE_MSM_GPIO_PINS(96);
  332. DECLARE_MSM_GPIO_PINS(97);
  333. DECLARE_MSM_GPIO_PINS(98);
  334. DECLARE_MSM_GPIO_PINS(99);
  335. DECLARE_MSM_GPIO_PINS(100);
  336. DECLARE_MSM_GPIO_PINS(101);
  337. DECLARE_MSM_GPIO_PINS(102);
  338. DECLARE_MSM_GPIO_PINS(103);
  339. DECLARE_MSM_GPIO_PINS(104);
  340. DECLARE_MSM_GPIO_PINS(105);
  341. DECLARE_MSM_GPIO_PINS(106);
  342. DECLARE_MSM_GPIO_PINS(107);
  343. DECLARE_MSM_GPIO_PINS(108);
  344. DECLARE_MSM_GPIO_PINS(109);
  345. DECLARE_MSM_GPIO_PINS(110);
  346. DECLARE_MSM_GPIO_PINS(111);
  347. DECLARE_MSM_GPIO_PINS(112);
  348. DECLARE_MSM_GPIO_PINS(113);
  349. DECLARE_MSM_GPIO_PINS(114);
  350. DECLARE_MSM_GPIO_PINS(115);
  351. DECLARE_MSM_GPIO_PINS(116);
  352. DECLARE_MSM_GPIO_PINS(117);
  353. DECLARE_MSM_GPIO_PINS(118);
  354. DECLARE_MSM_GPIO_PINS(119);
  355. DECLARE_MSM_GPIO_PINS(120);
  356. DECLARE_MSM_GPIO_PINS(121);
  357. DECLARE_MSM_GPIO_PINS(122);
  358. DECLARE_MSM_GPIO_PINS(123);
  359. DECLARE_MSM_GPIO_PINS(124);
  360. DECLARE_MSM_GPIO_PINS(125);
  361. DECLARE_MSM_GPIO_PINS(126);
  362. DECLARE_MSM_GPIO_PINS(127);
  363. DECLARE_MSM_GPIO_PINS(128);
  364. DECLARE_MSM_GPIO_PINS(129);
  365. DECLARE_MSM_GPIO_PINS(130);
  366. DECLARE_MSM_GPIO_PINS(131);
  367. DECLARE_MSM_GPIO_PINS(132);
  368. DECLARE_MSM_GPIO_PINS(133);
  369. DECLARE_MSM_GPIO_PINS(134);
  370. DECLARE_MSM_GPIO_PINS(135);
  371. DECLARE_MSM_GPIO_PINS(136);
  372. DECLARE_MSM_GPIO_PINS(137);
  373. DECLARE_MSM_GPIO_PINS(138);
  374. DECLARE_MSM_GPIO_PINS(139);
  375. DECLARE_MSM_GPIO_PINS(140);
  376. DECLARE_MSM_GPIO_PINS(141);
  377. static const unsigned int qdsd_clk_pins[] = { 142 };
  378. static const unsigned int qdsd_cmd_pins[] = { 143 };
  379. static const unsigned int qdsd_data0_pins[] = { 144 };
  380. static const unsigned int qdsd_data1_pins[] = { 145 };
  381. static const unsigned int qdsd_data2_pins[] = { 146 };
  382. static const unsigned int qdsd_data3_pins[] = { 147 };
  383. static const unsigned int sdc1_clk_pins[] = { 148 };
  384. static const unsigned int sdc1_cmd_pins[] = { 149 };
  385. static const unsigned int sdc1_data_pins[] = { 150 };
  386. static const unsigned int sdc1_rclk_pins[] = { 151 };
  387. static const unsigned int sdc2_clk_pins[] = { 152 };
  388. static const unsigned int sdc2_cmd_pins[] = { 153 };
  389. static const unsigned int sdc2_data_pins[] = { 154 };
  390. enum msm8953_functions {
  391. msm_mux_accel_int,
  392. msm_mux_adsp_ext,
  393. msm_mux_alsp_int,
  394. msm_mux_atest_bbrx0,
  395. msm_mux_atest_bbrx1,
  396. msm_mux_atest_char,
  397. msm_mux_atest_char0,
  398. msm_mux_atest_char1,
  399. msm_mux_atest_char2,
  400. msm_mux_atest_char3,
  401. msm_mux_atest_gpsadc_dtest0_native,
  402. msm_mux_atest_gpsadc_dtest1_native,
  403. msm_mux_atest_tsens,
  404. msm_mux_atest_wlan0,
  405. msm_mux_atest_wlan1,
  406. msm_mux_bimc_dte0,
  407. msm_mux_bimc_dte1,
  408. msm_mux_blsp1_spi,
  409. msm_mux_blsp3_spi,
  410. msm_mux_blsp6_spi,
  411. msm_mux_blsp7_spi,
  412. msm_mux_blsp_i2c1,
  413. msm_mux_blsp_i2c2,
  414. msm_mux_blsp_i2c3,
  415. msm_mux_blsp_i2c4,
  416. msm_mux_blsp_i2c5,
  417. msm_mux_blsp_i2c6,
  418. msm_mux_blsp_i2c7,
  419. msm_mux_blsp_i2c8,
  420. msm_mux_blsp_spi1,
  421. msm_mux_blsp_spi2,
  422. msm_mux_blsp_spi3,
  423. msm_mux_blsp_spi4,
  424. msm_mux_blsp_spi5,
  425. msm_mux_blsp_spi6,
  426. msm_mux_blsp_spi7,
  427. msm_mux_blsp_spi8,
  428. msm_mux_blsp_uart2,
  429. msm_mux_blsp_uart4,
  430. msm_mux_blsp_uart5,
  431. msm_mux_blsp_uart6,
  432. msm_mux_cam0_ldo,
  433. msm_mux_cam1_ldo,
  434. msm_mux_cam1_rst,
  435. msm_mux_cam1_standby,
  436. msm_mux_cam2_rst,
  437. msm_mux_cam2_standby,
  438. msm_mux_cam3_rst,
  439. msm_mux_cam3_standby,
  440. msm_mux_cam_irq,
  441. msm_mux_cam_mclk,
  442. msm_mux_cap_int,
  443. msm_mux_cci_async,
  444. msm_mux_cci_i2c,
  445. msm_mux_cci_timer0,
  446. msm_mux_cci_timer1,
  447. msm_mux_cci_timer2,
  448. msm_mux_cci_timer3,
  449. msm_mux_cci_timer4,
  450. msm_mux_cdc_pdm0,
  451. msm_mux_codec_int1,
  452. msm_mux_codec_int2,
  453. msm_mux_codec_reset,
  454. msm_mux_cri_trng,
  455. msm_mux_cri_trng0,
  456. msm_mux_cri_trng1,
  457. msm_mux_dac_calib0,
  458. msm_mux_dac_calib1,
  459. msm_mux_dac_calib2,
  460. msm_mux_dac_calib3,
  461. msm_mux_dac_calib4,
  462. msm_mux_dac_calib5,
  463. msm_mux_dac_calib6,
  464. msm_mux_dac_calib7,
  465. msm_mux_dac_calib8,
  466. msm_mux_dac_calib9,
  467. msm_mux_dac_calib10,
  468. msm_mux_dac_calib11,
  469. msm_mux_dac_calib12,
  470. msm_mux_dac_calib13,
  471. msm_mux_dac_calib14,
  472. msm_mux_dac_calib15,
  473. msm_mux_dac_calib16,
  474. msm_mux_dac_calib17,
  475. msm_mux_dac_calib18,
  476. msm_mux_dac_calib19,
  477. msm_mux_dac_calib20,
  478. msm_mux_dac_calib21,
  479. msm_mux_dac_calib22,
  480. msm_mux_dac_calib23,
  481. msm_mux_dac_calib24,
  482. msm_mux_dac_calib25,
  483. msm_mux_dbg_out,
  484. msm_mux_ddr_bist,
  485. msm_mux_dmic0_clk,
  486. msm_mux_dmic0_data,
  487. msm_mux_ebi_cdc,
  488. msm_mux_ebi_ch0,
  489. msm_mux_ext_lpass,
  490. msm_mux_flash_strobe,
  491. msm_mux_fp_int,
  492. msm_mux_gcc_gp1_clk_a,
  493. msm_mux_gcc_gp1_clk_b,
  494. msm_mux_gcc_gp2_clk_a,
  495. msm_mux_gcc_gp2_clk_b,
  496. msm_mux_gcc_gp3_clk_a,
  497. msm_mux_gcc_gp3_clk_b,
  498. msm_mux_gcc_plltest,
  499. msm_mux_gcc_tlmm,
  500. msm_mux_gpio,
  501. msm_mux_gsm0_tx,
  502. msm_mux_gsm1_tx,
  503. msm_mux_gyro_int,
  504. msm_mux_hall_int,
  505. msm_mux_hdmi_int,
  506. msm_mux_key_focus,
  507. msm_mux_key_home,
  508. msm_mux_key_snapshot,
  509. msm_mux_key_volp,
  510. msm_mux_ldo_en,
  511. msm_mux_ldo_update,
  512. msm_mux_lpass_slimbus,
  513. msm_mux_lpass_slimbus0,
  514. msm_mux_lpass_slimbus1,
  515. msm_mux_m_voc,
  516. msm_mux_mag_int,
  517. msm_mux_mdp_vsync,
  518. msm_mux_mipi_dsi0,
  519. msm_mux_modem_tsync,
  520. msm_mux_mss_lte,
  521. msm_mux_nav_pps,
  522. msm_mux_nav_pps_in_a,
  523. msm_mux_nav_pps_in_b,
  524. msm_mux_nav_tsync,
  525. msm_mux_nfc_disable,
  526. msm_mux_nfc_dwl,
  527. msm_mux_nfc_irq,
  528. msm_mux_ois_sync,
  529. msm_mux_pa_indicator,
  530. msm_mux_pbs0,
  531. msm_mux_pbs1,
  532. msm_mux_pbs2,
  533. msm_mux_pressure_int,
  534. msm_mux_pri_mi2s,
  535. msm_mux_pri_mi2s_mclk_a,
  536. msm_mux_pri_mi2s_mclk_b,
  537. msm_mux_pri_mi2s_ws,
  538. msm_mux_prng_rosc,
  539. msm_mux_pwr_crypto_enabled_a,
  540. msm_mux_pwr_crypto_enabled_b,
  541. msm_mux_pwr_down,
  542. msm_mux_pwr_modem_enabled_a,
  543. msm_mux_pwr_modem_enabled_b,
  544. msm_mux_pwr_nav_enabled_a,
  545. msm_mux_pwr_nav_enabled_b,
  546. msm_mux_qdss_cti_trig_in_a0,
  547. msm_mux_qdss_cti_trig_in_a1,
  548. msm_mux_qdss_cti_trig_in_b0,
  549. msm_mux_qdss_cti_trig_in_b1,
  550. msm_mux_qdss_cti_trig_out_a0,
  551. msm_mux_qdss_cti_trig_out_a1,
  552. msm_mux_qdss_cti_trig_out_b0,
  553. msm_mux_qdss_cti_trig_out_b1,
  554. msm_mux_qdss_traceclk_a,
  555. msm_mux_qdss_traceclk_b,
  556. msm_mux_qdss_tracectl_a,
  557. msm_mux_qdss_tracectl_b,
  558. msm_mux_qdss_tracedata_a,
  559. msm_mux_qdss_tracedata_b,
  560. msm_mux_sd_write,
  561. msm_mux_sdcard_det,
  562. msm_mux_sec_mi2s,
  563. msm_mux_sec_mi2s_mclk_a,
  564. msm_mux_sec_mi2s_mclk_b,
  565. msm_mux_smb_int,
  566. msm_mux_ss_switch,
  567. msm_mux_ssbi_wtr1,
  568. msm_mux_ts_resout,
  569. msm_mux_ts_sample,
  570. msm_mux_ts_xvdd,
  571. msm_mux_tsens_max,
  572. msm_mux_uim1_clk,
  573. msm_mux_uim1_data,
  574. msm_mux_uim1_present,
  575. msm_mux_uim1_reset,
  576. msm_mux_uim2_clk,
  577. msm_mux_uim2_data,
  578. msm_mux_uim2_present,
  579. msm_mux_uim2_reset,
  580. msm_mux_uim_batt,
  581. msm_mux_us_emitter,
  582. msm_mux_us_euro,
  583. msm_mux_wcss_bt,
  584. msm_mux_wcss_fm,
  585. msm_mux_wcss_wlan,
  586. msm_mux_wcss_wlan0,
  587. msm_mux_wcss_wlan1,
  588. msm_mux_wcss_wlan2,
  589. msm_mux_wsa_en,
  590. msm_mux_wsa_io,
  591. msm_mux_wsa_irq,
  592. msm_mux__,
  593. };
  594. static const char * const accel_int_groups[] = {
  595. "gpio42",
  596. };
  597. static const char * const adsp_ext_groups[] = {
  598. "gpio1",
  599. };
  600. static const char * const alsp_int_groups[] = {
  601. "gpio43",
  602. };
  603. static const char * const atest_bbrx0_groups[] = {
  604. "gpio17",
  605. };
  606. static const char * const atest_bbrx1_groups[] = {
  607. "gpio16",
  608. };
  609. static const char * const atest_char0_groups[] = {
  610. "gpio68",
  611. };
  612. static const char * const atest_char1_groups[] = {
  613. "gpio67",
  614. };
  615. static const char * const atest_char2_groups[] = {
  616. "gpio75",
  617. };
  618. static const char * const atest_char3_groups[] = {
  619. "gpio63",
  620. };
  621. static const char * const atest_char_groups[] = {
  622. "gpio120",
  623. };
  624. static const char * const atest_gpsadc_dtest0_native_groups[] = {
  625. "gpio7",
  626. };
  627. static const char * const atest_gpsadc_dtest1_native_groups[] = {
  628. "gpio18",
  629. };
  630. static const char * const atest_tsens_groups[] = {
  631. "gpio120",
  632. };
  633. static const char * const atest_wlan0_groups[] = {
  634. "gpio22",
  635. };
  636. static const char * const atest_wlan1_groups[] = {
  637. "gpio23",
  638. };
  639. static const char * const bimc_dte0_groups[] = {
  640. "gpio63", "gpio65",
  641. };
  642. static const char * const bimc_dte1_groups[] = {
  643. "gpio121", "gpio122",
  644. };
  645. static const char * const blsp1_spi_groups[] = {
  646. "gpio35", "gpio36",
  647. };
  648. static const char * const blsp3_spi_groups[] = {
  649. "gpio41", "gpio50",
  650. };
  651. static const char * const blsp6_spi_groups[] = {
  652. "gpio47", "gpio48",
  653. };
  654. static const char * const blsp7_spi_groups[] = {
  655. "gpio89", "gpio90",
  656. };
  657. static const char * const blsp_i2c1_groups[] = {
  658. "gpio2", "gpio3",
  659. };
  660. static const char * const blsp_i2c2_groups[] = {
  661. "gpio6", "gpio7",
  662. };
  663. static const char * const blsp_i2c3_groups[] = {
  664. "gpio10", "gpio11",
  665. };
  666. static const char * const blsp_i2c4_groups[] = {
  667. "gpio14", "gpio15",
  668. };
  669. static const char * const blsp_i2c5_groups[] = {
  670. "gpio18", "gpio19",
  671. };
  672. static const char * const blsp_i2c6_groups[] = {
  673. "gpio22", "gpio23",
  674. };
  675. static const char * const blsp_i2c7_groups[] = {
  676. "gpio135", "gpio136",
  677. };
  678. static const char * const blsp_i2c8_groups[] = {
  679. "gpio98", "gpio99",
  680. };
  681. static const char * const blsp_spi1_groups[] = {
  682. "gpio0", "gpio1", "gpio2", "gpio3",
  683. };
  684. static const char * const blsp_spi2_groups[] = {
  685. "gpio4", "gpio5", "gpio6", "gpio7",
  686. };
  687. static const char * const blsp_spi3_groups[] = {
  688. "gpio8", "gpio9", "gpio10", "gpio11",
  689. };
  690. static const char * const blsp_spi4_groups[] = {
  691. "gpio12", "gpio13", "gpio14", "gpio15",
  692. };
  693. static const char * const blsp_spi5_groups[] = {
  694. "gpio16", "gpio17", "gpio18", "gpio19",
  695. };
  696. static const char * const blsp_spi6_groups[] = {
  697. "gpio20", "gpio21", "gpio22", "gpio23",
  698. };
  699. static const char * const blsp_spi7_groups[] = {
  700. "gpio135", "gpio136", "gpio137", "gpio138",
  701. };
  702. static const char * const blsp_spi8_groups[] = {
  703. "gpio96", "gpio97", "gpio98", "gpio99",
  704. };
  705. static const char * const blsp_uart2_groups[] = {
  706. "gpio4", "gpio5", "gpio6", "gpio7",
  707. };
  708. static const char * const blsp_uart4_groups[] = {
  709. "gpio12", "gpio13", "gpio14", "gpio15",
  710. };
  711. static const char * const blsp_uart5_groups[] = {
  712. "gpio16", "gpio17", "gpio18", "gpio19",
  713. };
  714. static const char * const blsp_uart6_groups[] = {
  715. "gpio20", "gpio21", "gpio22", "gpio23",
  716. };
  717. static const char * const cam0_ldo_groups[] = {
  718. "gpio50",
  719. };
  720. static const char * const cam1_ldo_groups[] = {
  721. "gpio134",
  722. };
  723. static const char * const cam1_rst_groups[] = {
  724. "gpio40",
  725. };
  726. static const char * const cam1_standby_groups[] = {
  727. "gpio39",
  728. };
  729. static const char * const cam2_rst_groups[] = {
  730. "gpio129",
  731. };
  732. static const char * const cam2_standby_groups[] = {
  733. "gpio130",
  734. };
  735. static const char * const cam3_rst_groups[] = {
  736. "gpio131",
  737. };
  738. static const char * const cam3_standby_groups[] = {
  739. "gpio132",
  740. };
  741. static const char * const cam_irq_groups[] = {
  742. "gpio35",
  743. };
  744. static const char * const cam_mclk_groups[] = {
  745. "gpio26", "gpio27", "gpio28", "gpio128",
  746. };
  747. static const char * const cap_int_groups[] = {
  748. "gpio13",
  749. };
  750. static const char * const cci_async_groups[] = {
  751. "gpio38",
  752. };
  753. static const char * const cci_i2c_groups[] = {
  754. "gpio29", "gpio30", "gpio31", "gpio32",
  755. };
  756. static const char * const cci_timer0_groups[] = {
  757. "gpio33",
  758. };
  759. static const char * const cci_timer1_groups[] = {
  760. "gpio34",
  761. };
  762. static const char * const cci_timer2_groups[] = {
  763. "gpio35",
  764. };
  765. static const char * const cci_timer3_groups[] = {
  766. "gpio36",
  767. };
  768. static const char * const cci_timer4_groups[] = {
  769. "gpio41",
  770. };
  771. static const char * const cdc_pdm0_groups[] = {
  772. "gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72", "gpio73",
  773. "gpio74",
  774. };
  775. static const char * const codec_int1_groups[] = {
  776. "gpio73",
  777. };
  778. static const char * const codec_int2_groups[] = {
  779. "gpio74",
  780. };
  781. static const char * const codec_reset_groups[] = {
  782. "gpio67",
  783. };
  784. static const char * const cri_trng0_groups[] = {
  785. "gpio85",
  786. };
  787. static const char * const cri_trng1_groups[] = {
  788. "gpio86",
  789. };
  790. static const char * const cri_trng_groups[] = {
  791. "gpio87",
  792. };
  793. static const char * const dac_calib0_groups[] = {
  794. "gpio4",
  795. };
  796. static const char * const dac_calib1_groups[] = {
  797. "gpio12",
  798. };
  799. static const char * const dac_calib2_groups[] = {
  800. "gpio13",
  801. };
  802. static const char * const dac_calib3_groups[] = {
  803. "gpio28",
  804. };
  805. static const char * const dac_calib4_groups[] = {
  806. "gpio29",
  807. };
  808. static const char * const dac_calib5_groups[] = {
  809. "gpio39",
  810. };
  811. static const char * const dac_calib6_groups[] = {
  812. "gpio40",
  813. };
  814. static const char * const dac_calib7_groups[] = {
  815. "gpio41",
  816. };
  817. static const char * const dac_calib8_groups[] = {
  818. "gpio42",
  819. };
  820. static const char * const dac_calib9_groups[] = {
  821. "gpio43",
  822. };
  823. static const char * const dac_calib10_groups[] = {
  824. "gpio44",
  825. };
  826. static const char * const dac_calib11_groups[] = {
  827. "gpio45",
  828. };
  829. static const char * const dac_calib12_groups[] = {
  830. "gpio46",
  831. };
  832. static const char * const dac_calib13_groups[] = {
  833. "gpio47",
  834. };
  835. static const char * const dac_calib14_groups[] = {
  836. "gpio48",
  837. };
  838. static const char * const dac_calib15_groups[] = {
  839. "gpio20",
  840. };
  841. static const char * const dac_calib16_groups[] = {
  842. "gpio21",
  843. };
  844. static const char * const dac_calib17_groups[] = {
  845. "gpio67",
  846. };
  847. static const char * const dac_calib18_groups[] = {
  848. "gpio115",
  849. };
  850. static const char * const dac_calib19_groups[] = {
  851. "gpio30",
  852. };
  853. static const char * const dac_calib20_groups[] = {
  854. "gpio128",
  855. };
  856. static const char * const dac_calib21_groups[] = {
  857. "gpio129",
  858. };
  859. static const char * const dac_calib22_groups[] = {
  860. "gpio130",
  861. };
  862. static const char * const dac_calib23_groups[] = {
  863. "gpio131",
  864. };
  865. static const char * const dac_calib24_groups[] = {
  866. "gpio132",
  867. };
  868. static const char * const dac_calib25_groups[] = {
  869. "gpio133",
  870. };
  871. static const char * const dbg_out_groups[] = {
  872. "gpio63",
  873. };
  874. static const char * const ddr_bist_groups[] = {
  875. "gpio129", "gpio130", "gpio131", "gpio132",
  876. };
  877. static const char * const dmic0_clk_groups[] = {
  878. "gpio89",
  879. };
  880. static const char * const dmic0_data_groups[] = {
  881. "gpio90",
  882. };
  883. static const char * const ebi_cdc_groups[] = {
  884. "gpio67", "gpio69", "gpio118", "gpio119", "gpio120", "gpio123",
  885. };
  886. static const char * const ebi_ch0_groups[] = {
  887. "gpio75",
  888. };
  889. static const char * const ext_lpass_groups[] = {
  890. "gpio81",
  891. };
  892. static const char * const flash_strobe_groups[] = {
  893. "gpio33", "gpio34",
  894. };
  895. static const char * const fp_int_groups[] = {
  896. "gpio48",
  897. };
  898. static const char * const gcc_gp1_clk_a_groups[] = {
  899. "gpio42",
  900. };
  901. static const char * const gcc_gp1_clk_b_groups[] = {
  902. "gpio6", "gpio41",
  903. };
  904. static const char * const gcc_gp2_clk_a_groups[] = {
  905. "gpio43",
  906. };
  907. static const char * const gcc_gp2_clk_b_groups[] = {
  908. "gpio10",
  909. };
  910. static const char * const gcc_gp3_clk_a_groups[] = {
  911. "gpio44",
  912. };
  913. static const char * const gcc_gp3_clk_b_groups[] = {
  914. "gpio11",
  915. };
  916. static const char * const gcc_plltest_groups[] = {
  917. "gpio98", "gpio99",
  918. };
  919. static const char * const gcc_tlmm_groups[] = {
  920. "gpio87",
  921. };
  922. static const char * const gpio_groups[] = {
  923. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  924. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  925. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  926. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  927. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  928. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  929. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  930. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  931. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  932. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  933. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  934. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  935. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
  936. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
  937. "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
  938. "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
  939. "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
  940. "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
  941. "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
  942. "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
  943. "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
  944. "gpio141",
  945. };
  946. static const char * const gsm0_tx_groups[] = {
  947. "gpio117",
  948. };
  949. static const char * const gsm1_tx_groups[] = {
  950. "gpio115",
  951. };
  952. static const char * const gyro_int_groups[] = {
  953. "gpio45",
  954. };
  955. static const char * const hall_int_groups[] = {
  956. "gpio12",
  957. };
  958. static const char * const hdmi_int_groups[] = {
  959. "gpio90",
  960. };
  961. static const char * const key_focus_groups[] = {
  962. "gpio87",
  963. };
  964. static const char * const key_home_groups[] = {
  965. "gpio88",
  966. };
  967. static const char * const key_snapshot_groups[] = {
  968. "gpio86",
  969. };
  970. static const char * const key_volp_groups[] = {
  971. "gpio85",
  972. };
  973. static const char * const ldo_en_groups[] = {
  974. "gpio5",
  975. };
  976. static const char * const ldo_update_groups[] = {
  977. "gpio4",
  978. };
  979. static const char * const lpass_slimbus0_groups[] = {
  980. "gpio71",
  981. };
  982. static const char * const lpass_slimbus1_groups[] = {
  983. "gpio72",
  984. };
  985. static const char * const lpass_slimbus_groups[] = {
  986. "gpio70",
  987. };
  988. static const char * const m_voc_groups[] = {
  989. "gpio17", "gpio21",
  990. };
  991. static const char * const mag_int_groups[] = {
  992. "gpio44",
  993. };
  994. static const char * const mdp_vsync_groups[] = {
  995. "gpio24", "gpio25",
  996. };
  997. static const char * const mipi_dsi0_groups[] = {
  998. "gpio61",
  999. };
  1000. static const char * const modem_tsync_groups[] = {
  1001. "gpio113",
  1002. };
  1003. static const char * const mss_lte_groups[] = {
  1004. "gpio82", "gpio83",
  1005. };
  1006. static const char * const nav_pps_groups[] = {
  1007. "gpio113",
  1008. };
  1009. static const char * const nav_pps_in_a_groups[] = {
  1010. "gpio111",
  1011. };
  1012. static const char * const nav_pps_in_b_groups[] = {
  1013. "gpio113",
  1014. };
  1015. static const char * const nav_tsync_groups[] = {
  1016. "gpio113",
  1017. };
  1018. static const char * const nfc_disable_groups[] = {
  1019. "gpio16",
  1020. };
  1021. static const char * const nfc_dwl_groups[] = {
  1022. "gpio62",
  1023. };
  1024. static const char * const nfc_irq_groups[] = {
  1025. "gpio17",
  1026. };
  1027. static const char * const ois_sync_groups[] = {
  1028. "gpio36",
  1029. };
  1030. static const char * const pa_indicator_groups[] = {
  1031. "gpio112",
  1032. };
  1033. static const char * const pbs0_groups[] = {
  1034. "gpio85",
  1035. };
  1036. static const char * const pbs1_groups[] = {
  1037. "gpio86",
  1038. };
  1039. static const char * const pbs2_groups[] = {
  1040. "gpio87",
  1041. };
  1042. static const char * const pressure_int_groups[] = {
  1043. "gpio46",
  1044. };
  1045. static const char * const pri_mi2s_groups[] = {
  1046. "gpio66", "gpio88", "gpio91", "gpio93", "gpio94", "gpio95",
  1047. };
  1048. static const char * const pri_mi2s_mclk_a_groups[] = {
  1049. "gpio25",
  1050. };
  1051. static const char * const pri_mi2s_mclk_b_groups[] = {
  1052. "gpio69",
  1053. };
  1054. static const char * const pri_mi2s_ws_groups[] = {
  1055. "gpio92",
  1056. };
  1057. static const char * const prng_rosc_groups[] = {
  1058. "gpio2",
  1059. };
  1060. static const char * const pwr_crypto_enabled_a_groups[] = {
  1061. "gpio36",
  1062. };
  1063. static const char * const pwr_crypto_enabled_b_groups[] = {
  1064. "gpio13",
  1065. };
  1066. static const char * const pwr_down_groups[] = {
  1067. "gpio89",
  1068. };
  1069. static const char * const pwr_modem_enabled_a_groups[] = {
  1070. "gpio29",
  1071. };
  1072. static const char * const pwr_modem_enabled_b_groups[] = {
  1073. "gpio9",
  1074. };
  1075. static const char * const pwr_nav_enabled_a_groups[] = {
  1076. "gpio35",
  1077. };
  1078. static const char * const pwr_nav_enabled_b_groups[] = {
  1079. "gpio12",
  1080. };
  1081. static const char * const qdss_cti_trig_in_a0_groups[] = {
  1082. "gpio17",
  1083. };
  1084. static const char * const qdss_cti_trig_in_a1_groups[] = {
  1085. "gpio91",
  1086. };
  1087. static const char * const qdss_cti_trig_in_b0_groups[] = {
  1088. "gpio21",
  1089. };
  1090. static const char * const qdss_cti_trig_in_b1_groups[] = {
  1091. "gpio48",
  1092. };
  1093. static const char * const qdss_cti_trig_out_a0_groups[] = {
  1094. "gpio41",
  1095. };
  1096. static const char * const qdss_cti_trig_out_a1_groups[] = {
  1097. "gpio3",
  1098. };
  1099. static const char * const qdss_cti_trig_out_b0_groups[] = {
  1100. "gpio2",
  1101. };
  1102. static const char * const qdss_cti_trig_out_b1_groups[] = {
  1103. "gpio25",
  1104. };
  1105. static const char * const qdss_traceclk_a_groups[] = {
  1106. "gpio16",
  1107. };
  1108. static const char * const qdss_traceclk_b_groups[] = {
  1109. "gpio22",
  1110. };
  1111. static const char * const qdss_tracectl_a_groups[] = {
  1112. "gpio18",
  1113. };
  1114. static const char * const qdss_tracectl_b_groups[] = {
  1115. "gpio20",
  1116. };
  1117. static const char * const qdss_tracedata_a_groups[] = {
  1118. "gpio19", "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31",
  1119. "gpio32", "gpio33", "gpio34", "gpio35", "gpio36", "gpio38", "gpio39",
  1120. "gpio40", "gpio50",
  1121. };
  1122. static const char * const qdss_tracedata_b_groups[] = {
  1123. "gpio8", "gpio9", "gpio12", "gpio13", "gpio23", "gpio42", "gpio43",
  1124. "gpio44", "gpio45", "gpio46", "gpio47", "gpio66", "gpio86", "gpio87",
  1125. "gpio88", "gpio92",
  1126. };
  1127. static const char * const sd_write_groups[] = {
  1128. "gpio50",
  1129. };
  1130. static const char * const sdcard_det_groups[] = {
  1131. "gpio133",
  1132. };
  1133. static const char * const sec_mi2s_groups[] = {
  1134. "gpio135", "gpio136", "gpio137", "gpio138",
  1135. };
  1136. static const char * const sec_mi2s_mclk_a_groups[] = {
  1137. "gpio25",
  1138. };
  1139. static const char * const sec_mi2s_mclk_b_groups[] = {
  1140. "gpio66",
  1141. };
  1142. static const char * const smb_int_groups[] = {
  1143. "gpio1",
  1144. };
  1145. static const char * const ss_switch_groups[] = {
  1146. "gpio139",
  1147. };
  1148. static const char * const ssbi_wtr1_groups[] = {
  1149. "gpio114", "gpio123",
  1150. };
  1151. static const char * const ts_resout_groups[] = {
  1152. "gpio64",
  1153. };
  1154. static const char * const ts_sample_groups[] = {
  1155. "gpio65",
  1156. };
  1157. static const char * const ts_xvdd_groups[] = {
  1158. "gpio60",
  1159. };
  1160. static const char * const tsens_max_groups[] = {
  1161. "gpio139",
  1162. };
  1163. static const char * const uim1_clk_groups[] = {
  1164. "gpio52",
  1165. };
  1166. static const char * const uim1_data_groups[] = {
  1167. "gpio51",
  1168. };
  1169. static const char * const uim1_present_groups[] = {
  1170. "gpio54",
  1171. };
  1172. static const char * const uim1_reset_groups[] = {
  1173. "gpio53",
  1174. };
  1175. static const char * const uim2_clk_groups[] = {
  1176. "gpio56",
  1177. };
  1178. static const char * const uim2_data_groups[] = {
  1179. "gpio55",
  1180. };
  1181. static const char * const uim2_present_groups[] = {
  1182. "gpio58",
  1183. };
  1184. static const char * const uim2_reset_groups[] = {
  1185. "gpio57",
  1186. };
  1187. static const char * const uim_batt_groups[] = {
  1188. "gpio49",
  1189. };
  1190. static const char * const us_emitter_groups[] = {
  1191. "gpio68",
  1192. };
  1193. static const char * const us_euro_groups[] = {
  1194. "gpio63",
  1195. };
  1196. static const char * const wcss_bt_groups[] = {
  1197. "gpio75", "gpio83", "gpio84",
  1198. };
  1199. static const char * const wcss_fm_groups[] = {
  1200. "gpio81", "gpio82",
  1201. };
  1202. static const char * const wcss_wlan0_groups[] = {
  1203. "gpio78",
  1204. };
  1205. static const char * const wcss_wlan1_groups[] = {
  1206. "gpio77",
  1207. };
  1208. static const char * const wcss_wlan2_groups[] = {
  1209. "gpio76",
  1210. };
  1211. static const char * const wcss_wlan_groups[] = {
  1212. "gpio79", "gpio80",
  1213. };
  1214. static const char * const wsa_en_groups[] = {
  1215. "gpio96",
  1216. };
  1217. static const char * const wsa_io_groups[] = {
  1218. "gpio94", "gpio95",
  1219. };
  1220. static const char * const wsa_irq_groups[] = {
  1221. "gpio97",
  1222. };
  1223. static const struct msm_function msm8953_functions[] = {
  1224. FUNCTION(accel_int),
  1225. FUNCTION(adsp_ext),
  1226. FUNCTION(alsp_int),
  1227. FUNCTION(atest_bbrx0),
  1228. FUNCTION(atest_bbrx1),
  1229. FUNCTION(atest_char),
  1230. FUNCTION(atest_char0),
  1231. FUNCTION(atest_char1),
  1232. FUNCTION(atest_char2),
  1233. FUNCTION(atest_char3),
  1234. FUNCTION(atest_gpsadc_dtest0_native),
  1235. FUNCTION(atest_gpsadc_dtest1_native),
  1236. FUNCTION(atest_tsens),
  1237. FUNCTION(atest_wlan0),
  1238. FUNCTION(atest_wlan1),
  1239. FUNCTION(bimc_dte0),
  1240. FUNCTION(bimc_dte1),
  1241. FUNCTION(blsp1_spi),
  1242. FUNCTION(blsp3_spi),
  1243. FUNCTION(blsp6_spi),
  1244. FUNCTION(blsp7_spi),
  1245. FUNCTION(blsp_i2c1),
  1246. FUNCTION(blsp_i2c2),
  1247. FUNCTION(blsp_i2c3),
  1248. FUNCTION(blsp_i2c4),
  1249. FUNCTION(blsp_i2c5),
  1250. FUNCTION(blsp_i2c6),
  1251. FUNCTION(blsp_i2c7),
  1252. FUNCTION(blsp_i2c8),
  1253. FUNCTION(blsp_spi1),
  1254. FUNCTION(blsp_spi2),
  1255. FUNCTION(blsp_spi3),
  1256. FUNCTION(blsp_spi4),
  1257. FUNCTION(blsp_spi5),
  1258. FUNCTION(blsp_spi6),
  1259. FUNCTION(blsp_spi7),
  1260. FUNCTION(blsp_spi8),
  1261. FUNCTION(blsp_uart2),
  1262. FUNCTION(blsp_uart4),
  1263. FUNCTION(blsp_uart5),
  1264. FUNCTION(blsp_uart6),
  1265. FUNCTION(cam0_ldo),
  1266. FUNCTION(cam1_ldo),
  1267. FUNCTION(cam1_rst),
  1268. FUNCTION(cam1_standby),
  1269. FUNCTION(cam2_rst),
  1270. FUNCTION(cam2_standby),
  1271. FUNCTION(cam3_rst),
  1272. FUNCTION(cam3_standby),
  1273. FUNCTION(cam_irq),
  1274. FUNCTION(cam_mclk),
  1275. FUNCTION(cap_int),
  1276. FUNCTION(cci_async),
  1277. FUNCTION(cci_i2c),
  1278. FUNCTION(cci_timer0),
  1279. FUNCTION(cci_timer1),
  1280. FUNCTION(cci_timer2),
  1281. FUNCTION(cci_timer3),
  1282. FUNCTION(cci_timer4),
  1283. FUNCTION(cdc_pdm0),
  1284. FUNCTION(codec_int1),
  1285. FUNCTION(codec_int2),
  1286. FUNCTION(codec_reset),
  1287. FUNCTION(cri_trng),
  1288. FUNCTION(cri_trng0),
  1289. FUNCTION(cri_trng1),
  1290. FUNCTION(dac_calib0),
  1291. FUNCTION(dac_calib1),
  1292. FUNCTION(dac_calib10),
  1293. FUNCTION(dac_calib11),
  1294. FUNCTION(dac_calib12),
  1295. FUNCTION(dac_calib13),
  1296. FUNCTION(dac_calib14),
  1297. FUNCTION(dac_calib15),
  1298. FUNCTION(dac_calib16),
  1299. FUNCTION(dac_calib17),
  1300. FUNCTION(dac_calib18),
  1301. FUNCTION(dac_calib19),
  1302. FUNCTION(dac_calib2),
  1303. FUNCTION(dac_calib20),
  1304. FUNCTION(dac_calib21),
  1305. FUNCTION(dac_calib22),
  1306. FUNCTION(dac_calib23),
  1307. FUNCTION(dac_calib24),
  1308. FUNCTION(dac_calib25),
  1309. FUNCTION(dac_calib3),
  1310. FUNCTION(dac_calib4),
  1311. FUNCTION(dac_calib5),
  1312. FUNCTION(dac_calib6),
  1313. FUNCTION(dac_calib7),
  1314. FUNCTION(dac_calib8),
  1315. FUNCTION(dac_calib9),
  1316. FUNCTION(dbg_out),
  1317. FUNCTION(ddr_bist),
  1318. FUNCTION(dmic0_clk),
  1319. FUNCTION(dmic0_data),
  1320. FUNCTION(ebi_cdc),
  1321. FUNCTION(ebi_ch0),
  1322. FUNCTION(ext_lpass),
  1323. FUNCTION(flash_strobe),
  1324. FUNCTION(fp_int),
  1325. FUNCTION(gcc_gp1_clk_a),
  1326. FUNCTION(gcc_gp1_clk_b),
  1327. FUNCTION(gcc_gp2_clk_a),
  1328. FUNCTION(gcc_gp2_clk_b),
  1329. FUNCTION(gcc_gp3_clk_a),
  1330. FUNCTION(gcc_gp3_clk_b),
  1331. FUNCTION(gcc_plltest),
  1332. FUNCTION(gcc_tlmm),
  1333. FUNCTION(gpio),
  1334. FUNCTION(gsm0_tx),
  1335. FUNCTION(gsm1_tx),
  1336. FUNCTION(gyro_int),
  1337. FUNCTION(hall_int),
  1338. FUNCTION(hdmi_int),
  1339. FUNCTION(key_focus),
  1340. FUNCTION(key_home),
  1341. FUNCTION(key_snapshot),
  1342. FUNCTION(key_volp),
  1343. FUNCTION(ldo_en),
  1344. FUNCTION(ldo_update),
  1345. FUNCTION(lpass_slimbus),
  1346. FUNCTION(lpass_slimbus0),
  1347. FUNCTION(lpass_slimbus1),
  1348. FUNCTION(m_voc),
  1349. FUNCTION(mag_int),
  1350. FUNCTION(mdp_vsync),
  1351. FUNCTION(mipi_dsi0),
  1352. FUNCTION(modem_tsync),
  1353. FUNCTION(mss_lte),
  1354. FUNCTION(nav_pps),
  1355. FUNCTION(nav_pps_in_a),
  1356. FUNCTION(nav_pps_in_b),
  1357. FUNCTION(nav_tsync),
  1358. FUNCTION(nfc_disable),
  1359. FUNCTION(nfc_dwl),
  1360. FUNCTION(nfc_irq),
  1361. FUNCTION(ois_sync),
  1362. FUNCTION(pa_indicator),
  1363. FUNCTION(pbs0),
  1364. FUNCTION(pbs1),
  1365. FUNCTION(pbs2),
  1366. FUNCTION(pressure_int),
  1367. FUNCTION(pri_mi2s),
  1368. FUNCTION(pri_mi2s_mclk_a),
  1369. FUNCTION(pri_mi2s_mclk_b),
  1370. FUNCTION(pri_mi2s_ws),
  1371. FUNCTION(prng_rosc),
  1372. FUNCTION(pwr_crypto_enabled_a),
  1373. FUNCTION(pwr_crypto_enabled_b),
  1374. FUNCTION(pwr_down),
  1375. FUNCTION(pwr_modem_enabled_a),
  1376. FUNCTION(pwr_modem_enabled_b),
  1377. FUNCTION(pwr_nav_enabled_a),
  1378. FUNCTION(pwr_nav_enabled_b),
  1379. FUNCTION(qdss_cti_trig_in_a0),
  1380. FUNCTION(qdss_cti_trig_in_a1),
  1381. FUNCTION(qdss_cti_trig_in_b0),
  1382. FUNCTION(qdss_cti_trig_in_b1),
  1383. FUNCTION(qdss_cti_trig_out_a0),
  1384. FUNCTION(qdss_cti_trig_out_a1),
  1385. FUNCTION(qdss_cti_trig_out_b0),
  1386. FUNCTION(qdss_cti_trig_out_b1),
  1387. FUNCTION(qdss_traceclk_a),
  1388. FUNCTION(qdss_traceclk_b),
  1389. FUNCTION(qdss_tracectl_a),
  1390. FUNCTION(qdss_tracectl_b),
  1391. FUNCTION(qdss_tracedata_a),
  1392. FUNCTION(qdss_tracedata_b),
  1393. FUNCTION(sd_write),
  1394. FUNCTION(sdcard_det),
  1395. FUNCTION(sec_mi2s),
  1396. FUNCTION(sec_mi2s_mclk_a),
  1397. FUNCTION(sec_mi2s_mclk_b),
  1398. FUNCTION(smb_int),
  1399. FUNCTION(ss_switch),
  1400. FUNCTION(ssbi_wtr1),
  1401. FUNCTION(ts_resout),
  1402. FUNCTION(ts_sample),
  1403. FUNCTION(ts_xvdd),
  1404. FUNCTION(tsens_max),
  1405. FUNCTION(uim1_clk),
  1406. FUNCTION(uim1_data),
  1407. FUNCTION(uim1_present),
  1408. FUNCTION(uim1_reset),
  1409. FUNCTION(uim2_clk),
  1410. FUNCTION(uim2_data),
  1411. FUNCTION(uim2_present),
  1412. FUNCTION(uim2_reset),
  1413. FUNCTION(uim_batt),
  1414. FUNCTION(us_emitter),
  1415. FUNCTION(us_euro),
  1416. FUNCTION(wcss_bt),
  1417. FUNCTION(wcss_fm),
  1418. FUNCTION(wcss_wlan),
  1419. FUNCTION(wcss_wlan0),
  1420. FUNCTION(wcss_wlan1),
  1421. FUNCTION(wcss_wlan2),
  1422. FUNCTION(wsa_en),
  1423. FUNCTION(wsa_io),
  1424. FUNCTION(wsa_irq),
  1425. };
  1426. static const struct msm_pingroup msm8953_groups[] = {
  1427. PINGROUP(0, blsp_spi1, _, _, _, _, _, _, _, _),
  1428. PINGROUP(1, blsp_spi1, adsp_ext, _, _, _, _, _, _, _),
  1429. PINGROUP(2, blsp_spi1, blsp_i2c1, prng_rosc, _, _, _, qdss_cti_trig_out_b0, _, _),
  1430. PINGROUP(3, blsp_spi1, blsp_i2c1, _, _, _, qdss_cti_trig_out_a1, _, _, _),
  1431. PINGROUP(4, blsp_spi2, blsp_uart2, ldo_update, _, dac_calib0, _, _, _, _),
  1432. PINGROUP(5, blsp_spi2, blsp_uart2, ldo_en, _, _, _, _, _, _),
  1433. PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, gcc_gp1_clk_b, _, _, _, _, _),
  1434. PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, _, atest_gpsadc_dtest0_native, _, _, _, _),
  1435. PINGROUP(8, blsp_spi3, _, _, qdss_tracedata_b, _, _, _, _, _),
  1436. PINGROUP(9, blsp_spi3, pwr_modem_enabled_b, _, _, qdss_tracedata_b, _, _, _, _),
  1437. PINGROUP(10, blsp_spi3, blsp_i2c3, gcc_gp2_clk_b, _, _, _, _, _, _),
  1438. PINGROUP(11, blsp_spi3, blsp_i2c3, gcc_gp3_clk_b, _, _, _, _, _, _),
  1439. PINGROUP(12, blsp_spi4, blsp_uart4, pwr_nav_enabled_b, _, _,
  1440. qdss_tracedata_b, _, dac_calib1, _),
  1441. PINGROUP(13, blsp_spi4, blsp_uart4, pwr_crypto_enabled_b, _, _, _,
  1442. qdss_tracedata_b, _, dac_calib2),
  1443. PINGROUP(14, blsp_spi4, blsp_uart4, blsp_i2c4, _, _, _, _, _, _),
  1444. PINGROUP(15, blsp_spi4, blsp_uart4, blsp_i2c4, _, _, _, _, _, _),
  1445. PINGROUP(16, blsp_spi5, blsp_uart5, _, _, qdss_traceclk_a, _, atest_bbrx1, _, _),
  1446. PINGROUP(17, blsp_spi5, blsp_uart5, m_voc, qdss_cti_trig_in_a0, _, atest_bbrx0, _, _, _),
  1447. PINGROUP(18, blsp_spi5, blsp_uart5, blsp_i2c5,
  1448. qdss_tracectl_a, _, atest_gpsadc_dtest1_native, _, _, _),
  1449. PINGROUP(19, blsp_spi5, blsp_uart5, blsp_i2c5, qdss_tracedata_a, _, _, _, _, _),
  1450. PINGROUP(20, blsp_spi6, blsp_uart6, _, _, _, qdss_tracectl_b, _, dac_calib15, _),
  1451. PINGROUP(21, blsp_spi6, blsp_uart6, m_voc, _, _, _, qdss_cti_trig_in_b0, _, dac_calib16),
  1452. PINGROUP(22, blsp_spi6, blsp_uart6, blsp_i2c6, qdss_traceclk_b, _, atest_wlan0, _, _, _),
  1453. PINGROUP(23, blsp_spi6, blsp_uart6, blsp_i2c6, qdss_tracedata_b, _, atest_wlan1, _, _, _),
  1454. PINGROUP(24, mdp_vsync, _, _, _, _, _, _, _, _),
  1455. PINGROUP(25, mdp_vsync, pri_mi2s_mclk_a, sec_mi2s_mclk_a,
  1456. qdss_cti_trig_out_b1, _, _, _, _, _),
  1457. PINGROUP(26, cam_mclk, _, _, _, qdss_tracedata_a, _, _, _, _),
  1458. PINGROUP(27, cam_mclk, _, _, _, qdss_tracedata_a, _, _, _, _),
  1459. PINGROUP(28, cam_mclk, _, _, _, qdss_tracedata_a, _, dac_calib3, _, _),
  1460. PINGROUP(29, cci_i2c, pwr_modem_enabled_a, _, _, _, qdss_tracedata_a, _, dac_calib4, _),
  1461. PINGROUP(30, cci_i2c, _, _, _, qdss_tracedata_a, _, dac_calib19, _, _),
  1462. PINGROUP(31, cci_i2c, _, _, _, qdss_tracedata_a, _, _, _, _),
  1463. PINGROUP(32, cci_i2c, _, _, _, qdss_tracedata_a, _, _, _, _),
  1464. PINGROUP(33, cci_timer0, _, _, _, _, qdss_tracedata_a, _, _, _),
  1465. PINGROUP(34, cci_timer1, _, _, _, _, qdss_tracedata_a, _, _, _),
  1466. PINGROUP(35, cci_timer2, blsp1_spi, pwr_nav_enabled_a, _, _, _, qdss_tracedata_a, _, _),
  1467. PINGROUP(36, cci_timer3, blsp1_spi, _, pwr_crypto_enabled_a, _, _, _, qdss_tracedata_a, _),
  1468. PINGROUP(37, _, _, _, _, _, _, _, _, _),
  1469. PINGROUP(38, cci_async, _, qdss_tracedata_a, _, _, _, _, _, _),
  1470. PINGROUP(39, _, _, _, qdss_tracedata_a, _, dac_calib5, _, _, _),
  1471. PINGROUP(40, _, _, qdss_tracedata_a, _, dac_calib6, _, _, _, _),
  1472. PINGROUP(41, cci_timer4, blsp3_spi, gcc_gp1_clk_b, _, _,
  1473. qdss_cti_trig_out_a0, _, dac_calib7, _),
  1474. PINGROUP(42, gcc_gp1_clk_a, qdss_tracedata_b, _, dac_calib8, _, _, _, _, _),
  1475. PINGROUP(43, gcc_gp2_clk_a, qdss_tracedata_b, _, dac_calib9, _, _, _, _, _),
  1476. PINGROUP(44, gcc_gp3_clk_a, qdss_tracedata_b, _, dac_calib10, _, _, _, _, _),
  1477. PINGROUP(45, _, qdss_tracedata_b, _, dac_calib11, _, _, _, _, _),
  1478. PINGROUP(46, qdss_tracedata_b, _, dac_calib12, _, _, _, _, _, _),
  1479. PINGROUP(47, blsp6_spi, qdss_tracedata_b, _, dac_calib13, _, _, _, _, _),
  1480. PINGROUP(48, blsp6_spi, _, qdss_cti_trig_in_b1, _, dac_calib14, _, _, _, _),
  1481. PINGROUP(49, uim_batt, _, _, _, _, _, _, _, _),
  1482. PINGROUP(50, blsp3_spi, sd_write, _, _, _, qdss_tracedata_a, _, _, _),
  1483. PINGROUP(51, uim1_data, _, _, _, _, _, _, _, _),
  1484. PINGROUP(52, uim1_clk, _, _, _, _, _, _, _, _),
  1485. PINGROUP(53, uim1_reset, _, _, _, _, _, _, _, _),
  1486. PINGROUP(54, uim1_present, _, _, _, _, _, _, _, _),
  1487. PINGROUP(55, uim2_data, _, _, _, _, _, _, _, _),
  1488. PINGROUP(56, uim2_clk, _, _, _, _, _, _, _, _),
  1489. PINGROUP(57, uim2_reset, _, _, _, _, _, _, _, _),
  1490. PINGROUP(58, uim2_present, _, _, _, _, _, _, _, _),
  1491. PINGROUP(59, _, _, _, _, _, _, _, _, _),
  1492. PINGROUP(60, _, _, _, _, _, _, _, _, _),
  1493. PINGROUP(61, _, _, _, _, _, _, _, _, _),
  1494. PINGROUP(62, _, _, _, _, _, _, _, _, _),
  1495. PINGROUP(63, atest_char3, dbg_out, bimc_dte0, _, _, _, _, _, _),
  1496. PINGROUP(64, _, _, _, _, _, _, _, _, _),
  1497. PINGROUP(65, bimc_dte0, _, _, _, _, _, _, _, _),
  1498. PINGROUP(66, sec_mi2s_mclk_b, pri_mi2s, _, qdss_tracedata_b, _, _, _, _, _),
  1499. PINGROUP(67, cdc_pdm0, atest_char1, ebi_cdc, _, dac_calib17, _, _, _, _),
  1500. PINGROUP(68, cdc_pdm0, atest_char0, _, _, _, _, _, _, _),
  1501. PINGROUP(69, cdc_pdm0, pri_mi2s_mclk_b, ebi_cdc, _, _, _, _, _, _),
  1502. PINGROUP(70, lpass_slimbus, cdc_pdm0, _, _, _, _, _, _, _),
  1503. PINGROUP(71, lpass_slimbus0, cdc_pdm0, _, _, _, _, _, _, _),
  1504. PINGROUP(72, lpass_slimbus1, cdc_pdm0, _, _, _, _, _, _, _),
  1505. PINGROUP(73, cdc_pdm0, _, _, _, _, _, _, _, _),
  1506. PINGROUP(74, cdc_pdm0, _, _, _, _, _, _, _, _),
  1507. PINGROUP(75, wcss_bt, atest_char2, _, ebi_ch0, _, _, _, _, _),
  1508. PINGROUP(76, wcss_wlan2, _, _, _, _, _, _, _, _),
  1509. PINGROUP(77, wcss_wlan1, _, _, _, _, _, _, _, _),
  1510. PINGROUP(78, wcss_wlan0, _, _, _, _, _, _, _, _),
  1511. PINGROUP(79, wcss_wlan, _, _, _, _, _, _, _, _),
  1512. PINGROUP(80, wcss_wlan, _, _, _, _, _, _, _, _),
  1513. PINGROUP(81, wcss_fm, ext_lpass, _, _, _, _, _, _, _),
  1514. PINGROUP(82, wcss_fm, mss_lte, _, _, _, _, _, _, _),
  1515. PINGROUP(83, wcss_bt, mss_lte, _, _, _, _, _, _, _),
  1516. PINGROUP(84, wcss_bt, _, _, _, _, _, _, _, _),
  1517. PINGROUP(85, pbs0, cri_trng0, _, _, _, _, _, _, _),
  1518. PINGROUP(86, pbs1, cri_trng1, qdss_tracedata_b, _, _, _, _, _, _),
  1519. PINGROUP(87, pbs2, cri_trng, qdss_tracedata_b, gcc_tlmm, _, _, _, _, _),
  1520. PINGROUP(88, pri_mi2s, _, _, _, qdss_tracedata_b, _, _, _, _),
  1521. PINGROUP(89, dmic0_clk, blsp7_spi, _, _, _, _, _, _, _),
  1522. PINGROUP(90, dmic0_data, blsp7_spi, _, _, _, _, _, _, _),
  1523. PINGROUP(91, pri_mi2s, _, _, _, qdss_cti_trig_in_a1, _, _, _, _),
  1524. PINGROUP(92, pri_mi2s_ws, _, _, _, qdss_tracedata_b, _, _, _, _),
  1525. PINGROUP(93, pri_mi2s, _, _, _, _, _, _, _, _),
  1526. PINGROUP(94, wsa_io, pri_mi2s, _, _, _, _, _, _, _),
  1527. PINGROUP(95, wsa_io, pri_mi2s, _, _, _, _, _, _, _),
  1528. PINGROUP(96, blsp_spi8, _, _, _, _, _, _, _, _),
  1529. PINGROUP(97, blsp_spi8, _, _, _, _, _, _, _, _),
  1530. PINGROUP(98, blsp_i2c8, blsp_spi8, gcc_plltest, _, _, _, _, _, _),
  1531. PINGROUP(99, blsp_i2c8, blsp_spi8, gcc_plltest, _, _, _, _, _, _),
  1532. PINGROUP(100, _, _, _, _, _, _, _, _, _),
  1533. PINGROUP(101, _, _, _, _, _, _, _, _, _),
  1534. PINGROUP(102, _, _, _, _, _, _, _, _, _),
  1535. PINGROUP(103, _, _, _, _, _, _, _, _, _),
  1536. PINGROUP(104, _, _, _, _, _, _, _, _, _),
  1537. PINGROUP(105, _, _, _, _, _, _, _, _, _),
  1538. PINGROUP(106, _, _, _, _, _, _, _, _, _),
  1539. PINGROUP(107, _, _, _, _, _, _, _, _, _),
  1540. PINGROUP(108, _, _, _, _, _, _, _, _, _),
  1541. PINGROUP(109, _, _, _, _, _, _, _, _, _),
  1542. PINGROUP(110, _, _, _, _, _, _, _, _, _),
  1543. PINGROUP(111, _, _, nav_pps_in_a, _, _, _, _, _, _),
  1544. PINGROUP(112, _, pa_indicator, _, _, _, _, _, _, _),
  1545. PINGROUP(113, _, nav_pps_in_b, nav_pps, modem_tsync, nav_tsync, _, _, _, _),
  1546. PINGROUP(114, _, ssbi_wtr1, _, _, _, _, _, _, _),
  1547. PINGROUP(115, _, gsm1_tx, _, dac_calib18, _, _, _, _, _),
  1548. PINGROUP(116, _, _, _, _, _, _, _, _, _),
  1549. PINGROUP(117, gsm0_tx, _, _, _, _, _, _, _, _),
  1550. PINGROUP(118, _, ebi_cdc, _, _, _, _, _, _, _),
  1551. PINGROUP(119, _, ebi_cdc, _, _, _, _, _, _, _),
  1552. PINGROUP(120, _, atest_char, ebi_cdc, _, atest_tsens, _, _, _, _),
  1553. PINGROUP(121, _, _, _, bimc_dte1, _, _, _, _, _),
  1554. PINGROUP(122, _, _, _, bimc_dte1, _, _, _, _, _),
  1555. PINGROUP(123, _, ssbi_wtr1, ebi_cdc, _, _, _, _, _, _),
  1556. PINGROUP(124, _, _, _, _, _, _, _, _, _),
  1557. PINGROUP(125, _, _, _, _, _, _, _, _, _),
  1558. PINGROUP(126, _, _, _, _, _, _, _, _, _),
  1559. PINGROUP(127, _, _, _, _, _, _, _, _, _),
  1560. PINGROUP(128, cam_mclk, _, dac_calib20, _, _, _, _, _, _),
  1561. PINGROUP(129, ddr_bist, _, dac_calib21, _, _, _, _, _, _),
  1562. PINGROUP(130, ddr_bist, _, dac_calib22, _, _, _, _, _, _),
  1563. PINGROUP(131, ddr_bist, _, dac_calib23, _, _, _, _, _, _),
  1564. PINGROUP(132, ddr_bist, _, dac_calib24, _, _, _, _, _, _),
  1565. PINGROUP(133, _, dac_calib25, _, _, _, _, _, _, _),
  1566. PINGROUP(134, _, _, _, _, _, _, _, _, _),
  1567. PINGROUP(135, sec_mi2s, blsp_spi7, blsp_i2c7, _, _, _, _, _, _),
  1568. PINGROUP(136, sec_mi2s, blsp_spi7, blsp_i2c7, _, _, _, _, _, _),
  1569. PINGROUP(137, sec_mi2s, blsp_spi7, _, _, _, _, _, _, _),
  1570. PINGROUP(138, sec_mi2s, blsp_spi7, _, _, _, _, _, _, _),
  1571. PINGROUP(139, tsens_max, _, _, _, _, _, _, _, _),
  1572. PINGROUP(140, _, _, _, _, _, _, _, _, _),
  1573. PINGROUP(141, _, _, _, _, _, _, _, _, _),
  1574. SDC_QDSD_PINGROUP(qdsd_clk, 0x19c000, 3, 0),
  1575. SDC_QDSD_PINGROUP(qdsd_cmd, 0x19c000, 8, 5),
  1576. SDC_QDSD_PINGROUP(qdsd_data0, 0x19c000, 13, 10),
  1577. SDC_QDSD_PINGROUP(qdsd_data1, 0x19c000, 18, 15),
  1578. SDC_QDSD_PINGROUP(qdsd_data2, 0x19c000, 23, 20),
  1579. SDC_QDSD_PINGROUP(qdsd_data3, 0x19c000, 28, 25),
  1580. SDC_QDSD_PINGROUP(sdc1_clk, 0x10a000, 13, 6),
  1581. SDC_QDSD_PINGROUP(sdc1_cmd, 0x10a000, 11, 3),
  1582. SDC_QDSD_PINGROUP(sdc1_data, 0x10a000, 9, 0),
  1583. SDC_QDSD_PINGROUP(sdc1_rclk, 0x10a000, 15, 0),
  1584. SDC_QDSD_PINGROUP(sdc2_clk, 0x109000, 14, 6),
  1585. SDC_QDSD_PINGROUP(sdc2_cmd, 0x109000, 11, 3),
  1586. SDC_QDSD_PINGROUP(sdc2_data, 0x109000, 9, 0),
  1587. };
  1588. static const struct msm_pinctrl_soc_data msm8953_pinctrl = {
  1589. .pins = msm8953_pins,
  1590. .npins = ARRAY_SIZE(msm8953_pins),
  1591. .functions = msm8953_functions,
  1592. .nfunctions = ARRAY_SIZE(msm8953_functions),
  1593. .groups = msm8953_groups,
  1594. .ngroups = ARRAY_SIZE(msm8953_groups),
  1595. .ngpios = 142,
  1596. };
  1597. static int msm8953_pinctrl_probe(struct platform_device *pdev)
  1598. {
  1599. return msm_pinctrl_probe(pdev, &msm8953_pinctrl);
  1600. }
  1601. static const struct of_device_id msm8953_pinctrl_of_match[] = {
  1602. { .compatible = "qcom,msm8953-pinctrl", },
  1603. { },
  1604. };
  1605. static struct platform_driver msm8953_pinctrl_driver = {
  1606. .driver = {
  1607. .name = "msm8953-pinctrl",
  1608. .of_match_table = msm8953_pinctrl_of_match,
  1609. },
  1610. .probe = msm8953_pinctrl_probe,
  1611. .remove = msm_pinctrl_remove,
  1612. };
  1613. static int __init msm8953_pinctrl_init(void)
  1614. {
  1615. return platform_driver_register(&msm8953_pinctrl_driver);
  1616. }
  1617. arch_initcall(msm8953_pinctrl_init);
  1618. static void __exit msm8953_pinctrl_exit(void)
  1619. {
  1620. platform_driver_unregister(&msm8953_pinctrl_driver);
  1621. }
  1622. module_exit(msm8953_pinctrl_exit);
  1623. MODULE_DESCRIPTION("QTI msm8953 pinctrl driver");
  1624. MODULE_LICENSE("GPL v2");
  1625. MODULE_DEVICE_TABLE(of, msm8953_pinctrl_of_match);