pinctrl-sdm660.c 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2016, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2018, Craig Tatlor.
  5. */
  6. #include <linux/module.h>
  7. #include <linux/of.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/pinctrl/pinctrl.h>
  10. #include "pinctrl-msm.h"
  11. static const char * const sdm660_tiles[] = {
  12. "north",
  13. "center",
  14. "south"
  15. };
  16. enum {
  17. NORTH,
  18. CENTER,
  19. SOUTH
  20. };
  21. #define REG_SIZE 0x1000
  22. #define FUNCTION(fname) \
  23. [msm_mux_##fname] = { \
  24. .name = #fname, \
  25. .groups = fname##_groups, \
  26. .ngroups = ARRAY_SIZE(fname##_groups), \
  27. }
  28. #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  29. { \
  30. .name = "gpio" #id, \
  31. .pins = gpio##id##_pins, \
  32. .npins = (unsigned)ARRAY_SIZE(gpio##id##_pins), \
  33. .funcs = (int[]){ \
  34. msm_mux_gpio, /* gpio mode */ \
  35. msm_mux_##f1, \
  36. msm_mux_##f2, \
  37. msm_mux_##f3, \
  38. msm_mux_##f4, \
  39. msm_mux_##f5, \
  40. msm_mux_##f6, \
  41. msm_mux_##f7, \
  42. msm_mux_##f8, \
  43. msm_mux_##f9 \
  44. }, \
  45. .nfuncs = 10, \
  46. .ctl_reg = REG_SIZE * id, \
  47. .io_reg = 0x4 + REG_SIZE * id, \
  48. .intr_cfg_reg = 0x8 + REG_SIZE * id, \
  49. .intr_status_reg = 0xc + REG_SIZE * id, \
  50. .intr_target_reg = 0x8 + REG_SIZE * id, \
  51. .tile = _tile, \
  52. .mux_bit = 2, \
  53. .pull_bit = 0, \
  54. .drv_bit = 6, \
  55. .oe_bit = 9, \
  56. .in_bit = 0, \
  57. .out_bit = 1, \
  58. .intr_enable_bit = 0, \
  59. .intr_status_bit = 0, \
  60. .intr_target_bit = 5, \
  61. .intr_target_kpss_val = 3, \
  62. .intr_raw_status_bit = 4, \
  63. .intr_polarity_bit = 1, \
  64. .intr_detection_bit = 2, \
  65. .intr_detection_width = 2, \
  66. }
  67. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  68. { \
  69. .name = #pg_name, \
  70. .pins = pg_name##_pins, \
  71. .npins = (unsigned)ARRAY_SIZE(pg_name##_pins), \
  72. .ctl_reg = ctl, \
  73. .io_reg = 0, \
  74. .intr_cfg_reg = 0, \
  75. .intr_status_reg = 0, \
  76. .intr_target_reg = 0, \
  77. .tile = NORTH, \
  78. .mux_bit = -1, \
  79. .pull_bit = pull, \
  80. .drv_bit = drv, \
  81. .oe_bit = -1, \
  82. .in_bit = -1, \
  83. .out_bit = -1, \
  84. .intr_enable_bit = -1, \
  85. .intr_status_bit = -1, \
  86. .intr_target_bit = -1, \
  87. .intr_raw_status_bit = -1, \
  88. .intr_polarity_bit = -1, \
  89. .intr_detection_bit = -1, \
  90. .intr_detection_width = -1, \
  91. }
  92. static const struct pinctrl_pin_desc sdm660_pins[] = {
  93. PINCTRL_PIN(0, "GPIO_0"),
  94. PINCTRL_PIN(1, "GPIO_1"),
  95. PINCTRL_PIN(2, "GPIO_2"),
  96. PINCTRL_PIN(3, "GPIO_3"),
  97. PINCTRL_PIN(4, "GPIO_4"),
  98. PINCTRL_PIN(5, "GPIO_5"),
  99. PINCTRL_PIN(6, "GPIO_6"),
  100. PINCTRL_PIN(7, "GPIO_7"),
  101. PINCTRL_PIN(8, "GPIO_8"),
  102. PINCTRL_PIN(9, "GPIO_9"),
  103. PINCTRL_PIN(10, "GPIO_10"),
  104. PINCTRL_PIN(11, "GPIO_11"),
  105. PINCTRL_PIN(12, "GPIO_12"),
  106. PINCTRL_PIN(13, "GPIO_13"),
  107. PINCTRL_PIN(14, "GPIO_14"),
  108. PINCTRL_PIN(15, "GPIO_15"),
  109. PINCTRL_PIN(16, "GPIO_16"),
  110. PINCTRL_PIN(17, "GPIO_17"),
  111. PINCTRL_PIN(18, "GPIO_18"),
  112. PINCTRL_PIN(19, "GPIO_19"),
  113. PINCTRL_PIN(20, "GPIO_20"),
  114. PINCTRL_PIN(21, "GPIO_21"),
  115. PINCTRL_PIN(22, "GPIO_22"),
  116. PINCTRL_PIN(23, "GPIO_23"),
  117. PINCTRL_PIN(24, "GPIO_24"),
  118. PINCTRL_PIN(25, "GPIO_25"),
  119. PINCTRL_PIN(26, "GPIO_26"),
  120. PINCTRL_PIN(27, "GPIO_27"),
  121. PINCTRL_PIN(28, "GPIO_28"),
  122. PINCTRL_PIN(29, "GPIO_29"),
  123. PINCTRL_PIN(30, "GPIO_30"),
  124. PINCTRL_PIN(31, "GPIO_31"),
  125. PINCTRL_PIN(32, "GPIO_32"),
  126. PINCTRL_PIN(33, "GPIO_33"),
  127. PINCTRL_PIN(34, "GPIO_34"),
  128. PINCTRL_PIN(35, "GPIO_35"),
  129. PINCTRL_PIN(36, "GPIO_36"),
  130. PINCTRL_PIN(37, "GPIO_37"),
  131. PINCTRL_PIN(38, "GPIO_38"),
  132. PINCTRL_PIN(39, "GPIO_39"),
  133. PINCTRL_PIN(40, "GPIO_40"),
  134. PINCTRL_PIN(41, "GPIO_41"),
  135. PINCTRL_PIN(42, "GPIO_42"),
  136. PINCTRL_PIN(43, "GPIO_43"),
  137. PINCTRL_PIN(44, "GPIO_44"),
  138. PINCTRL_PIN(45, "GPIO_45"),
  139. PINCTRL_PIN(46, "GPIO_46"),
  140. PINCTRL_PIN(47, "GPIO_47"),
  141. PINCTRL_PIN(48, "GPIO_48"),
  142. PINCTRL_PIN(49, "GPIO_49"),
  143. PINCTRL_PIN(50, "GPIO_50"),
  144. PINCTRL_PIN(51, "GPIO_51"),
  145. PINCTRL_PIN(52, "GPIO_52"),
  146. PINCTRL_PIN(53, "GPIO_53"),
  147. PINCTRL_PIN(54, "GPIO_54"),
  148. PINCTRL_PIN(55, "GPIO_55"),
  149. PINCTRL_PIN(56, "GPIO_56"),
  150. PINCTRL_PIN(57, "GPIO_57"),
  151. PINCTRL_PIN(58, "GPIO_58"),
  152. PINCTRL_PIN(59, "GPIO_59"),
  153. PINCTRL_PIN(60, "GPIO_60"),
  154. PINCTRL_PIN(61, "GPIO_61"),
  155. PINCTRL_PIN(62, "GPIO_62"),
  156. PINCTRL_PIN(63, "GPIO_63"),
  157. PINCTRL_PIN(64, "GPIO_64"),
  158. PINCTRL_PIN(65, "GPIO_65"),
  159. PINCTRL_PIN(66, "GPIO_66"),
  160. PINCTRL_PIN(67, "GPIO_67"),
  161. PINCTRL_PIN(68, "GPIO_68"),
  162. PINCTRL_PIN(69, "GPIO_69"),
  163. PINCTRL_PIN(70, "GPIO_70"),
  164. PINCTRL_PIN(71, "GPIO_71"),
  165. PINCTRL_PIN(72, "GPIO_72"),
  166. PINCTRL_PIN(73, "GPIO_73"),
  167. PINCTRL_PIN(74, "GPIO_74"),
  168. PINCTRL_PIN(75, "GPIO_75"),
  169. PINCTRL_PIN(76, "GPIO_76"),
  170. PINCTRL_PIN(77, "GPIO_77"),
  171. PINCTRL_PIN(78, "GPIO_78"),
  172. PINCTRL_PIN(79, "GPIO_79"),
  173. PINCTRL_PIN(80, "GPIO_80"),
  174. PINCTRL_PIN(81, "GPIO_81"),
  175. PINCTRL_PIN(82, "GPIO_82"),
  176. PINCTRL_PIN(83, "GPIO_83"),
  177. PINCTRL_PIN(84, "GPIO_84"),
  178. PINCTRL_PIN(85, "GPIO_85"),
  179. PINCTRL_PIN(86, "GPIO_86"),
  180. PINCTRL_PIN(87, "GPIO_87"),
  181. PINCTRL_PIN(88, "GPIO_88"),
  182. PINCTRL_PIN(89, "GPIO_89"),
  183. PINCTRL_PIN(90, "GPIO_90"),
  184. PINCTRL_PIN(91, "GPIO_91"),
  185. PINCTRL_PIN(92, "GPIO_92"),
  186. PINCTRL_PIN(93, "GPIO_93"),
  187. PINCTRL_PIN(94, "GPIO_94"),
  188. PINCTRL_PIN(95, "GPIO_95"),
  189. PINCTRL_PIN(96, "GPIO_96"),
  190. PINCTRL_PIN(97, "GPIO_97"),
  191. PINCTRL_PIN(98, "GPIO_98"),
  192. PINCTRL_PIN(99, "GPIO_99"),
  193. PINCTRL_PIN(100, "GPIO_100"),
  194. PINCTRL_PIN(101, "GPIO_101"),
  195. PINCTRL_PIN(102, "GPIO_102"),
  196. PINCTRL_PIN(103, "GPIO_103"),
  197. PINCTRL_PIN(104, "GPIO_104"),
  198. PINCTRL_PIN(105, "GPIO_105"),
  199. PINCTRL_PIN(106, "GPIO_106"),
  200. PINCTRL_PIN(107, "GPIO_107"),
  201. PINCTRL_PIN(108, "GPIO_108"),
  202. PINCTRL_PIN(109, "GPIO_109"),
  203. PINCTRL_PIN(110, "GPIO_110"),
  204. PINCTRL_PIN(111, "GPIO_111"),
  205. PINCTRL_PIN(112, "GPIO_112"),
  206. PINCTRL_PIN(113, "GPIO_113"),
  207. PINCTRL_PIN(114, "SDC1_CLK"),
  208. PINCTRL_PIN(115, "SDC1_CMD"),
  209. PINCTRL_PIN(116, "SDC1_DATA"),
  210. PINCTRL_PIN(117, "SDC2_CLK"),
  211. PINCTRL_PIN(118, "SDC2_CMD"),
  212. PINCTRL_PIN(119, "SDC2_DATA"),
  213. PINCTRL_PIN(120, "SDC1_RCLK"),
  214. };
  215. #define DECLARE_MSM_GPIO_PINS(pin) \
  216. static const unsigned int gpio##pin##_pins[] = { pin }
  217. DECLARE_MSM_GPIO_PINS(0);
  218. DECLARE_MSM_GPIO_PINS(1);
  219. DECLARE_MSM_GPIO_PINS(2);
  220. DECLARE_MSM_GPIO_PINS(3);
  221. DECLARE_MSM_GPIO_PINS(4);
  222. DECLARE_MSM_GPIO_PINS(5);
  223. DECLARE_MSM_GPIO_PINS(6);
  224. DECLARE_MSM_GPIO_PINS(7);
  225. DECLARE_MSM_GPIO_PINS(8);
  226. DECLARE_MSM_GPIO_PINS(9);
  227. DECLARE_MSM_GPIO_PINS(10);
  228. DECLARE_MSM_GPIO_PINS(11);
  229. DECLARE_MSM_GPIO_PINS(12);
  230. DECLARE_MSM_GPIO_PINS(13);
  231. DECLARE_MSM_GPIO_PINS(14);
  232. DECLARE_MSM_GPIO_PINS(15);
  233. DECLARE_MSM_GPIO_PINS(16);
  234. DECLARE_MSM_GPIO_PINS(17);
  235. DECLARE_MSM_GPIO_PINS(18);
  236. DECLARE_MSM_GPIO_PINS(19);
  237. DECLARE_MSM_GPIO_PINS(20);
  238. DECLARE_MSM_GPIO_PINS(21);
  239. DECLARE_MSM_GPIO_PINS(22);
  240. DECLARE_MSM_GPIO_PINS(23);
  241. DECLARE_MSM_GPIO_PINS(24);
  242. DECLARE_MSM_GPIO_PINS(25);
  243. DECLARE_MSM_GPIO_PINS(26);
  244. DECLARE_MSM_GPIO_PINS(27);
  245. DECLARE_MSM_GPIO_PINS(28);
  246. DECLARE_MSM_GPIO_PINS(29);
  247. DECLARE_MSM_GPIO_PINS(30);
  248. DECLARE_MSM_GPIO_PINS(31);
  249. DECLARE_MSM_GPIO_PINS(32);
  250. DECLARE_MSM_GPIO_PINS(33);
  251. DECLARE_MSM_GPIO_PINS(34);
  252. DECLARE_MSM_GPIO_PINS(35);
  253. DECLARE_MSM_GPIO_PINS(36);
  254. DECLARE_MSM_GPIO_PINS(37);
  255. DECLARE_MSM_GPIO_PINS(38);
  256. DECLARE_MSM_GPIO_PINS(39);
  257. DECLARE_MSM_GPIO_PINS(40);
  258. DECLARE_MSM_GPIO_PINS(41);
  259. DECLARE_MSM_GPIO_PINS(42);
  260. DECLARE_MSM_GPIO_PINS(43);
  261. DECLARE_MSM_GPIO_PINS(44);
  262. DECLARE_MSM_GPIO_PINS(45);
  263. DECLARE_MSM_GPIO_PINS(46);
  264. DECLARE_MSM_GPIO_PINS(47);
  265. DECLARE_MSM_GPIO_PINS(48);
  266. DECLARE_MSM_GPIO_PINS(49);
  267. DECLARE_MSM_GPIO_PINS(50);
  268. DECLARE_MSM_GPIO_PINS(51);
  269. DECLARE_MSM_GPIO_PINS(52);
  270. DECLARE_MSM_GPIO_PINS(53);
  271. DECLARE_MSM_GPIO_PINS(54);
  272. DECLARE_MSM_GPIO_PINS(55);
  273. DECLARE_MSM_GPIO_PINS(56);
  274. DECLARE_MSM_GPIO_PINS(57);
  275. DECLARE_MSM_GPIO_PINS(58);
  276. DECLARE_MSM_GPIO_PINS(59);
  277. DECLARE_MSM_GPIO_PINS(60);
  278. DECLARE_MSM_GPIO_PINS(61);
  279. DECLARE_MSM_GPIO_PINS(62);
  280. DECLARE_MSM_GPIO_PINS(63);
  281. DECLARE_MSM_GPIO_PINS(64);
  282. DECLARE_MSM_GPIO_PINS(65);
  283. DECLARE_MSM_GPIO_PINS(66);
  284. DECLARE_MSM_GPIO_PINS(67);
  285. DECLARE_MSM_GPIO_PINS(68);
  286. DECLARE_MSM_GPIO_PINS(69);
  287. DECLARE_MSM_GPIO_PINS(70);
  288. DECLARE_MSM_GPIO_PINS(71);
  289. DECLARE_MSM_GPIO_PINS(72);
  290. DECLARE_MSM_GPIO_PINS(73);
  291. DECLARE_MSM_GPIO_PINS(74);
  292. DECLARE_MSM_GPIO_PINS(75);
  293. DECLARE_MSM_GPIO_PINS(76);
  294. DECLARE_MSM_GPIO_PINS(77);
  295. DECLARE_MSM_GPIO_PINS(78);
  296. DECLARE_MSM_GPIO_PINS(79);
  297. DECLARE_MSM_GPIO_PINS(80);
  298. DECLARE_MSM_GPIO_PINS(81);
  299. DECLARE_MSM_GPIO_PINS(82);
  300. DECLARE_MSM_GPIO_PINS(83);
  301. DECLARE_MSM_GPIO_PINS(84);
  302. DECLARE_MSM_GPIO_PINS(85);
  303. DECLARE_MSM_GPIO_PINS(86);
  304. DECLARE_MSM_GPIO_PINS(87);
  305. DECLARE_MSM_GPIO_PINS(88);
  306. DECLARE_MSM_GPIO_PINS(89);
  307. DECLARE_MSM_GPIO_PINS(90);
  308. DECLARE_MSM_GPIO_PINS(91);
  309. DECLARE_MSM_GPIO_PINS(92);
  310. DECLARE_MSM_GPIO_PINS(93);
  311. DECLARE_MSM_GPIO_PINS(94);
  312. DECLARE_MSM_GPIO_PINS(95);
  313. DECLARE_MSM_GPIO_PINS(96);
  314. DECLARE_MSM_GPIO_PINS(97);
  315. DECLARE_MSM_GPIO_PINS(98);
  316. DECLARE_MSM_GPIO_PINS(99);
  317. DECLARE_MSM_GPIO_PINS(100);
  318. DECLARE_MSM_GPIO_PINS(101);
  319. DECLARE_MSM_GPIO_PINS(102);
  320. DECLARE_MSM_GPIO_PINS(103);
  321. DECLARE_MSM_GPIO_PINS(104);
  322. DECLARE_MSM_GPIO_PINS(105);
  323. DECLARE_MSM_GPIO_PINS(106);
  324. DECLARE_MSM_GPIO_PINS(107);
  325. DECLARE_MSM_GPIO_PINS(108);
  326. DECLARE_MSM_GPIO_PINS(109);
  327. DECLARE_MSM_GPIO_PINS(110);
  328. DECLARE_MSM_GPIO_PINS(111);
  329. DECLARE_MSM_GPIO_PINS(112);
  330. DECLARE_MSM_GPIO_PINS(113);
  331. static const unsigned int sdc1_clk_pins[] = { 114 };
  332. static const unsigned int sdc1_cmd_pins[] = { 115 };
  333. static const unsigned int sdc1_data_pins[] = { 116 };
  334. static const unsigned int sdc1_rclk_pins[] = { 120 };
  335. static const unsigned int sdc2_clk_pins[] = { 117 };
  336. static const unsigned int sdc2_cmd_pins[] = { 118 };
  337. static const unsigned int sdc2_data_pins[] = { 119 };
  338. enum sdm660_functions {
  339. msm_mux_adsp_ext,
  340. msm_mux_agera_pll,
  341. msm_mux_atest_char,
  342. msm_mux_atest_char0,
  343. msm_mux_atest_char1,
  344. msm_mux_atest_char2,
  345. msm_mux_atest_char3,
  346. msm_mux_atest_gpsadc0,
  347. msm_mux_atest_gpsadc1,
  348. msm_mux_atest_tsens,
  349. msm_mux_atest_tsens2,
  350. msm_mux_atest_usb1,
  351. msm_mux_atest_usb10,
  352. msm_mux_atest_usb11,
  353. msm_mux_atest_usb12,
  354. msm_mux_atest_usb13,
  355. msm_mux_atest_usb2,
  356. msm_mux_atest_usb20,
  357. msm_mux_atest_usb21,
  358. msm_mux_atest_usb22,
  359. msm_mux_atest_usb23,
  360. msm_mux_audio_ref,
  361. msm_mux_bimc_dte0,
  362. msm_mux_bimc_dte1,
  363. msm_mux_blsp_i2c1,
  364. msm_mux_blsp_i2c2,
  365. msm_mux_blsp_i2c3,
  366. msm_mux_blsp_i2c4,
  367. msm_mux_blsp_i2c5,
  368. msm_mux_blsp_i2c6,
  369. msm_mux_blsp_i2c7,
  370. msm_mux_blsp_i2c8_a,
  371. msm_mux_blsp_i2c8_b,
  372. msm_mux_blsp_spi1,
  373. msm_mux_blsp_spi2,
  374. msm_mux_blsp_spi3,
  375. msm_mux_blsp_spi3_cs1,
  376. msm_mux_blsp_spi3_cs2,
  377. msm_mux_blsp_spi4,
  378. msm_mux_blsp_spi5,
  379. msm_mux_blsp_spi6,
  380. msm_mux_blsp_spi7,
  381. msm_mux_blsp_spi8_a,
  382. msm_mux_blsp_spi8_b,
  383. msm_mux_blsp_spi8_cs1,
  384. msm_mux_blsp_spi8_cs2,
  385. msm_mux_blsp_uart1,
  386. msm_mux_blsp_uart2,
  387. msm_mux_blsp_uart5,
  388. msm_mux_blsp_uart6_a,
  389. msm_mux_blsp_uart6_b,
  390. msm_mux_blsp_uim1,
  391. msm_mux_blsp_uim2,
  392. msm_mux_blsp_uim5,
  393. msm_mux_blsp_uim6,
  394. msm_mux_cam_mclk,
  395. msm_mux_cci_async,
  396. msm_mux_cci_i2c,
  397. msm_mux_cri_trng,
  398. msm_mux_cri_trng0,
  399. msm_mux_cri_trng1,
  400. msm_mux_dbg_out,
  401. msm_mux_ddr_bist,
  402. msm_mux_gcc_gp1,
  403. msm_mux_gcc_gp2,
  404. msm_mux_gcc_gp3,
  405. msm_mux_gpio,
  406. msm_mux_gps_tx_a,
  407. msm_mux_gps_tx_b,
  408. msm_mux_gps_tx_c,
  409. msm_mux_isense_dbg,
  410. msm_mux_jitter_bist,
  411. msm_mux_ldo_en,
  412. msm_mux_ldo_update,
  413. msm_mux_m_voc,
  414. msm_mux_mdp_vsync,
  415. msm_mux_mdss_vsync0,
  416. msm_mux_mdss_vsync1,
  417. msm_mux_mdss_vsync2,
  418. msm_mux_mdss_vsync3,
  419. msm_mux_mss_lte,
  420. msm_mux_nav_pps_a,
  421. msm_mux_nav_pps_b,
  422. msm_mux_nav_pps_c,
  423. msm_mux_pa_indicator,
  424. msm_mux_phase_flag0,
  425. msm_mux_phase_flag1,
  426. msm_mux_phase_flag2,
  427. msm_mux_phase_flag3,
  428. msm_mux_phase_flag4,
  429. msm_mux_phase_flag5,
  430. msm_mux_phase_flag6,
  431. msm_mux_phase_flag7,
  432. msm_mux_phase_flag8,
  433. msm_mux_phase_flag9,
  434. msm_mux_phase_flag10,
  435. msm_mux_phase_flag11,
  436. msm_mux_phase_flag12,
  437. msm_mux_phase_flag13,
  438. msm_mux_phase_flag14,
  439. msm_mux_phase_flag15,
  440. msm_mux_phase_flag16,
  441. msm_mux_phase_flag17,
  442. msm_mux_phase_flag18,
  443. msm_mux_phase_flag19,
  444. msm_mux_phase_flag20,
  445. msm_mux_phase_flag21,
  446. msm_mux_phase_flag22,
  447. msm_mux_phase_flag23,
  448. msm_mux_phase_flag24,
  449. msm_mux_phase_flag25,
  450. msm_mux_phase_flag26,
  451. msm_mux_phase_flag27,
  452. msm_mux_phase_flag28,
  453. msm_mux_phase_flag29,
  454. msm_mux_phase_flag30,
  455. msm_mux_phase_flag31,
  456. msm_mux_pll_bypassnl,
  457. msm_mux_pll_reset,
  458. msm_mux_pri_mi2s,
  459. msm_mux_pri_mi2s_ws,
  460. msm_mux_prng_rosc,
  461. msm_mux_pwr_crypto,
  462. msm_mux_pwr_modem,
  463. msm_mux_pwr_nav,
  464. msm_mux_qdss_cti0_a,
  465. msm_mux_qdss_cti0_b,
  466. msm_mux_qdss_cti1_a,
  467. msm_mux_qdss_cti1_b,
  468. msm_mux_qdss_gpio,
  469. msm_mux_qdss_gpio0,
  470. msm_mux_qdss_gpio1,
  471. msm_mux_qdss_gpio10,
  472. msm_mux_qdss_gpio11,
  473. msm_mux_qdss_gpio12,
  474. msm_mux_qdss_gpio13,
  475. msm_mux_qdss_gpio14,
  476. msm_mux_qdss_gpio15,
  477. msm_mux_qdss_gpio2,
  478. msm_mux_qdss_gpio3,
  479. msm_mux_qdss_gpio4,
  480. msm_mux_qdss_gpio5,
  481. msm_mux_qdss_gpio6,
  482. msm_mux_qdss_gpio7,
  483. msm_mux_qdss_gpio8,
  484. msm_mux_qdss_gpio9,
  485. msm_mux_qlink_enable,
  486. msm_mux_qlink_request,
  487. msm_mux_qspi_clk,
  488. msm_mux_qspi_cs,
  489. msm_mux_qspi_data0,
  490. msm_mux_qspi_data1,
  491. msm_mux_qspi_data2,
  492. msm_mux_qspi_data3,
  493. msm_mux_qspi_resetn,
  494. msm_mux_sec_mi2s,
  495. msm_mux_sndwire_clk,
  496. msm_mux_sndwire_data,
  497. msm_mux_sp_cmu,
  498. msm_mux_ssc_irq,
  499. msm_mux_tgu_ch0,
  500. msm_mux_tgu_ch1,
  501. msm_mux_tsense_pwm1,
  502. msm_mux_tsense_pwm2,
  503. msm_mux_uim1_clk,
  504. msm_mux_uim1_data,
  505. msm_mux_uim1_present,
  506. msm_mux_uim1_reset,
  507. msm_mux_uim2_clk,
  508. msm_mux_uim2_data,
  509. msm_mux_uim2_present,
  510. msm_mux_uim2_reset,
  511. msm_mux_uim_batt,
  512. msm_mux_vfr_1,
  513. msm_mux_vsense_clkout,
  514. msm_mux_vsense_data0,
  515. msm_mux_vsense_data1,
  516. msm_mux_vsense_mode,
  517. msm_mux_wlan1_adc0,
  518. msm_mux_wlan1_adc1,
  519. msm_mux_wlan2_adc0,
  520. msm_mux_wlan2_adc1,
  521. msm_mux__,
  522. };
  523. static const char * const gpio_groups[] = {
  524. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  525. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  526. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  527. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  528. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  529. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  530. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  531. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  532. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  533. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  534. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  535. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  536. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
  537. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
  538. "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
  539. "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
  540. "gpio111", "gpio112", "gpio113",
  541. };
  542. static const char * const adsp_ext_groups[] = {
  543. "gpio65",
  544. };
  545. static const char * const agera_pll_groups[] = {
  546. "gpio34", "gpio36",
  547. };
  548. static const char * const atest_char0_groups[] = {
  549. "gpio62",
  550. };
  551. static const char * const atest_char1_groups[] = {
  552. "gpio61",
  553. };
  554. static const char * const atest_char2_groups[] = {
  555. "gpio60",
  556. };
  557. static const char * const atest_char3_groups[] = {
  558. "gpio59",
  559. };
  560. static const char * const atest_char_groups[] = {
  561. "gpio58",
  562. };
  563. static const char * const atest_gpsadc0_groups[] = {
  564. "gpio1",
  565. };
  566. static const char * const atest_gpsadc1_groups[] = {
  567. "gpio0",
  568. };
  569. static const char * const atest_tsens2_groups[] = {
  570. "gpio3",
  571. };
  572. static const char * const atest_tsens_groups[] = {
  573. "gpio36",
  574. };
  575. static const char * const atest_usb10_groups[] = {
  576. "gpio11",
  577. };
  578. static const char * const atest_usb11_groups[] = {
  579. "gpio10",
  580. };
  581. static const char * const atest_usb12_groups[] = {
  582. "gpio9",
  583. };
  584. static const char * const atest_usb13_groups[] = {
  585. "gpio8",
  586. };
  587. static const char * const atest_usb1_groups[] = {
  588. "gpio3",
  589. };
  590. static const char * const atest_usb20_groups[] = {
  591. "gpio56",
  592. };
  593. static const char * const atest_usb21_groups[] = {
  594. "gpio36",
  595. };
  596. static const char * const atest_usb22_groups[] = {
  597. "gpio57",
  598. };
  599. static const char * const atest_usb23_groups[] = {
  600. "gpio37",
  601. };
  602. static const char * const atest_usb2_groups[] = {
  603. "gpio35",
  604. };
  605. static const char * const audio_ref_groups[] = {
  606. "gpio62",
  607. };
  608. static const char * const bimc_dte0_groups[] = {
  609. "gpio9", "gpio11",
  610. };
  611. static const char * const bimc_dte1_groups[] = {
  612. "gpio8", "gpio10",
  613. };
  614. static const char * const blsp_i2c1_groups[] = {
  615. "gpio2", "gpio3",
  616. };
  617. static const char * const blsp_i2c2_groups[] = {
  618. "gpio6", "gpio7",
  619. };
  620. static const char * const blsp_i2c3_groups[] = {
  621. "gpio10", "gpio11",
  622. };
  623. static const char * const blsp_i2c4_groups[] = {
  624. "gpio14", "gpio15",
  625. };
  626. static const char * const blsp_i2c5_groups[] = {
  627. "gpio18", "gpio19",
  628. };
  629. static const char * const blsp_i2c6_groups[] = {
  630. "gpio22", "gpio23",
  631. };
  632. static const char * const blsp_i2c7_groups[] = {
  633. "gpio26", "gpio27",
  634. };
  635. static const char * const blsp_i2c8_a_groups[] = {
  636. "gpio30", "gpio31",
  637. };
  638. static const char * const blsp_i2c8_b_groups[] = {
  639. "gpio44", "gpio52",
  640. };
  641. static const char * const blsp_spi1_groups[] = {
  642. "gpio0", "gpio1", "gpio2", "gpio3", "gpio46",
  643. };
  644. static const char * const blsp_spi2_groups[] = {
  645. "gpio4", "gpio5", "gpio6", "gpio7",
  646. };
  647. static const char * const blsp_spi3_cs1_groups[] = {
  648. "gpio30",
  649. };
  650. static const char * const blsp_spi3_cs2_groups[] = {
  651. "gpio65",
  652. };
  653. static const char * const blsp_spi3_groups[] = {
  654. "gpio8", "gpio9", "gpio10", "gpio11",
  655. };
  656. static const char * const blsp_spi4_groups[] = {
  657. "gpio12", "gpio13", "gpio14", "gpio15",
  658. };
  659. static const char * const blsp_spi5_groups[] = {
  660. "gpio16", "gpio17", "gpio18", "gpio19",
  661. };
  662. static const char * const blsp_spi6_groups[] = {
  663. "gpio49", "gpio52", "gpio22", "gpio23",
  664. };
  665. static const char * const blsp_spi7_groups[] = {
  666. "gpio24", "gpio25", "gpio26", "gpio27",
  667. };
  668. static const char * const blsp_spi8_a_groups[] = {
  669. "gpio28", "gpio29", "gpio30", "gpio31",
  670. };
  671. static const char * const blsp_spi8_b_groups[] = {
  672. "gpio40", "gpio41", "gpio44", "gpio52",
  673. };
  674. static const char * const blsp_spi8_cs1_groups[] = {
  675. "gpio64",
  676. };
  677. static const char * const blsp_spi8_cs2_groups[] = {
  678. "gpio76",
  679. };
  680. static const char * const blsp_uart1_groups[] = {
  681. "gpio0", "gpio1", "gpio2", "gpio3",
  682. };
  683. static const char * const blsp_uart2_groups[] = {
  684. "gpio4", "gpio5", "gpio6", "gpio7",
  685. };
  686. static const char * const blsp_uart5_groups[] = {
  687. "gpio16", "gpio17", "gpio18", "gpio19",
  688. };
  689. static const char * const blsp_uart6_a_groups[] = {
  690. "gpio24", "gpio25", "gpio26", "gpio27",
  691. };
  692. static const char * const blsp_uart6_b_groups[] = {
  693. "gpio28", "gpio29", "gpio30", "gpio31",
  694. };
  695. static const char * const blsp_uim1_groups[] = {
  696. "gpio0", "gpio1",
  697. };
  698. static const char * const blsp_uim2_groups[] = {
  699. "gpio4", "gpio5",
  700. };
  701. static const char * const blsp_uim5_groups[] = {
  702. "gpio16", "gpio17",
  703. };
  704. static const char * const blsp_uim6_groups[] = {
  705. "gpio20", "gpio21",
  706. };
  707. static const char * const cam_mclk_groups[] = {
  708. "gpio32", "gpio33", "gpio34", "gpio35",
  709. };
  710. static const char * const cci_async_groups[] = {
  711. "gpio45",
  712. };
  713. static const char * const cci_i2c_groups[] = {
  714. "gpio36", "gpio37", "gpio38", "gpio39",
  715. };
  716. static const char * const cri_trng0_groups[] = {
  717. "gpio60",
  718. };
  719. static const char * const cri_trng1_groups[] = {
  720. "gpio61",
  721. };
  722. static const char * const cri_trng_groups[] = {
  723. "gpio62",
  724. };
  725. static const char * const dbg_out_groups[] = {
  726. "gpio11",
  727. };
  728. static const char * const ddr_bist_groups[] = {
  729. "gpio3", "gpio8", "gpio9", "gpio10",
  730. };
  731. static const char * const gcc_gp1_groups[] = {
  732. "gpio57", "gpio78",
  733. };
  734. static const char * const gcc_gp2_groups[] = {
  735. "gpio58", "gpio81",
  736. };
  737. static const char * const gcc_gp3_groups[] = {
  738. "gpio59", "gpio82",
  739. };
  740. static const char * const gps_tx_a_groups[] = {
  741. "gpio65",
  742. };
  743. static const char * const gps_tx_b_groups[] = {
  744. "gpio98",
  745. };
  746. static const char * const gps_tx_c_groups[] = {
  747. "gpio80",
  748. };
  749. static const char * const isense_dbg_groups[] = {
  750. "gpio68",
  751. };
  752. static const char * const jitter_bist_groups[] = {
  753. "gpio35",
  754. };
  755. static const char * const ldo_en_groups[] = {
  756. "gpio97",
  757. };
  758. static const char * const ldo_update_groups[] = {
  759. "gpio98",
  760. };
  761. static const char * const m_voc_groups[] = {
  762. "gpio28",
  763. };
  764. static const char * const mdp_vsync_groups[] = {
  765. "gpio59", "gpio74",
  766. };
  767. static const char * const mdss_vsync0_groups[] = {
  768. "gpio42",
  769. };
  770. static const char * const mdss_vsync1_groups[] = {
  771. "gpio42",
  772. };
  773. static const char * const mdss_vsync2_groups[] = {
  774. "gpio42",
  775. };
  776. static const char * const mdss_vsync3_groups[] = {
  777. "gpio42",
  778. };
  779. static const char * const mss_lte_groups[] = {
  780. "gpio81", "gpio82",
  781. };
  782. static const char * const nav_pps_a_groups[] = {
  783. "gpio65",
  784. };
  785. static const char * const nav_pps_b_groups[] = {
  786. "gpio98",
  787. };
  788. static const char * const nav_pps_c_groups[] = {
  789. "gpio80",
  790. };
  791. static const char * const pa_indicator_groups[] = {
  792. "gpio92",
  793. };
  794. static const char * const phase_flag0_groups[] = {
  795. "gpio68",
  796. };
  797. static const char * const phase_flag1_groups[] = {
  798. "gpio48",
  799. };
  800. static const char * const phase_flag2_groups[] = {
  801. "gpio49",
  802. };
  803. static const char * const phase_flag3_groups[] = {
  804. "gpio4",
  805. };
  806. static const char * const phase_flag4_groups[] = {
  807. "gpio57",
  808. };
  809. static const char * const phase_flag5_groups[] = {
  810. "gpio17",
  811. };
  812. static const char * const phase_flag6_groups[] = {
  813. "gpio53",
  814. };
  815. static const char * const phase_flag7_groups[] = {
  816. "gpio69",
  817. };
  818. static const char * const phase_flag8_groups[] = {
  819. "gpio70",
  820. };
  821. static const char * const phase_flag9_groups[] = {
  822. "gpio50",
  823. };
  824. static const char * const phase_flag10_groups[] = {
  825. "gpio56",
  826. };
  827. static const char * const phase_flag11_groups[] = {
  828. "gpio21",
  829. };
  830. static const char * const phase_flag12_groups[] = {
  831. "gpio22",
  832. };
  833. static const char * const phase_flag13_groups[] = {
  834. "gpio23",
  835. };
  836. static const char * const phase_flag14_groups[] = {
  837. "gpio5",
  838. };
  839. static const char * const phase_flag15_groups[] = {
  840. "gpio51",
  841. };
  842. static const char * const phase_flag16_groups[] = {
  843. "gpio52",
  844. };
  845. static const char * const phase_flag17_groups[] = {
  846. "gpio24",
  847. };
  848. static const char * const phase_flag18_groups[] = {
  849. "gpio25",
  850. };
  851. static const char * const phase_flag19_groups[] = {
  852. "gpio26",
  853. };
  854. static const char * const phase_flag20_groups[] = {
  855. "gpio27",
  856. };
  857. static const char * const phase_flag21_groups[] = {
  858. "gpio28",
  859. };
  860. static const char * const phase_flag22_groups[] = {
  861. "gpio29",
  862. };
  863. static const char * const phase_flag23_groups[] = {
  864. "gpio30",
  865. };
  866. static const char * const phase_flag24_groups[] = {
  867. "gpio31",
  868. };
  869. static const char * const phase_flag25_groups[] = {
  870. "gpio55",
  871. };
  872. static const char * const phase_flag26_groups[] = {
  873. "gpio12",
  874. };
  875. static const char * const phase_flag27_groups[] = {
  876. "gpio13",
  877. };
  878. static const char * const phase_flag28_groups[] = {
  879. "gpio14",
  880. };
  881. static const char * const phase_flag29_groups[] = {
  882. "gpio54",
  883. };
  884. static const char * const phase_flag30_groups[] = {
  885. "gpio47",
  886. };
  887. static const char * const phase_flag31_groups[] = {
  888. "gpio6",
  889. };
  890. static const char * const pll_bypassnl_groups[] = {
  891. "gpio36",
  892. };
  893. static const char * const pll_reset_groups[] = {
  894. "gpio37",
  895. };
  896. static const char * const pri_mi2s_groups[] = {
  897. "gpio12", "gpio14", "gpio15", "gpio61",
  898. };
  899. static const char * const pri_mi2s_ws_groups[] = {
  900. "gpio13",
  901. };
  902. static const char * const prng_rosc_groups[] = {
  903. "gpio102",
  904. };
  905. static const char * const pwr_crypto_groups[] = {
  906. "gpio33",
  907. };
  908. static const char * const pwr_modem_groups[] = {
  909. "gpio31",
  910. };
  911. static const char * const pwr_nav_groups[] = {
  912. "gpio32",
  913. };
  914. static const char * const qdss_cti0_a_groups[] = {
  915. "gpio49", "gpio50",
  916. };
  917. static const char * const qdss_cti0_b_groups[] = {
  918. "gpio13", "gpio21",
  919. };
  920. static const char * const qdss_cti1_a_groups[] = {
  921. "gpio53", "gpio55",
  922. };
  923. static const char * const qdss_cti1_b_groups[] = {
  924. "gpio12", "gpio66",
  925. };
  926. static const char * const qdss_gpio0_groups[] = {
  927. "gpio32", "gpio67",
  928. };
  929. static const char * const qdss_gpio10_groups[] = {
  930. "gpio43", "gpio77",
  931. };
  932. static const char * const qdss_gpio11_groups[] = {
  933. "gpio44", "gpio79",
  934. };
  935. static const char * const qdss_gpio12_groups[] = {
  936. "gpio45", "gpio80",
  937. };
  938. static const char * const qdss_gpio13_groups[] = {
  939. "gpio46", "gpio78",
  940. };
  941. static const char * const qdss_gpio14_groups[] = {
  942. "gpio47", "gpio72",
  943. };
  944. static const char * const qdss_gpio15_groups[] = {
  945. "gpio48", "gpio73",
  946. };
  947. static const char * const qdss_gpio1_groups[] = {
  948. "gpio33", "gpio63",
  949. };
  950. static const char * const qdss_gpio2_groups[] = {
  951. "gpio34", "gpio64",
  952. };
  953. static const char * const qdss_gpio3_groups[] = {
  954. "gpio35", "gpio56",
  955. };
  956. static const char * const qdss_gpio4_groups[] = {
  957. "gpio0", "gpio36",
  958. };
  959. static const char * const qdss_gpio5_groups[] = {
  960. "gpio1", "gpio37",
  961. };
  962. static const char * const qdss_gpio6_groups[] = {
  963. "gpio38", "gpio70",
  964. };
  965. static const char * const qdss_gpio7_groups[] = {
  966. "gpio39", "gpio71",
  967. };
  968. static const char * const qdss_gpio8_groups[] = {
  969. "gpio51", "gpio75",
  970. };
  971. static const char * const qdss_gpio9_groups[] = {
  972. "gpio42", "gpio76",
  973. };
  974. static const char * const qdss_gpio_groups[] = {
  975. "gpio31", "gpio52", "gpio68", "gpio69",
  976. };
  977. static const char * const qlink_enable_groups[] = {
  978. "gpio100",
  979. };
  980. static const char * const qlink_request_groups[] = {
  981. "gpio99",
  982. };
  983. static const char * const qspi_clk_groups[] = {
  984. "gpio47",
  985. };
  986. static const char * const qspi_cs_groups[] = {
  987. "gpio43", "gpio50",
  988. };
  989. static const char * const qspi_data0_groups[] = {
  990. "gpio33",
  991. };
  992. static const char * const qspi_data1_groups[] = {
  993. "gpio34",
  994. };
  995. static const char * const qspi_data2_groups[] = {
  996. "gpio35",
  997. };
  998. static const char * const qspi_data3_groups[] = {
  999. "gpio51",
  1000. };
  1001. static const char * const qspi_resetn_groups[] = {
  1002. "gpio48",
  1003. };
  1004. static const char * const sec_mi2s_groups[] = {
  1005. "gpio24", "gpio25", "gpio26", "gpio27", "gpio62",
  1006. };
  1007. static const char * const sndwire_clk_groups[] = {
  1008. "gpio24",
  1009. };
  1010. static const char * const sndwire_data_groups[] = {
  1011. "gpio25",
  1012. };
  1013. static const char * const sp_cmu_groups[] = {
  1014. "gpio64",
  1015. };
  1016. static const char * const ssc_irq_groups[] = {
  1017. "gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72", "gpio74",
  1018. "gpio75", "gpio76",
  1019. };
  1020. static const char * const tgu_ch0_groups[] = {
  1021. "gpio0",
  1022. };
  1023. static const char * const tgu_ch1_groups[] = {
  1024. "gpio1",
  1025. };
  1026. static const char * const tsense_pwm1_groups[] = {
  1027. "gpio71",
  1028. };
  1029. static const char * const tsense_pwm2_groups[] = {
  1030. "gpio71",
  1031. };
  1032. static const char * const uim1_clk_groups[] = {
  1033. "gpio88",
  1034. };
  1035. static const char * const uim1_data_groups[] = {
  1036. "gpio87",
  1037. };
  1038. static const char * const uim1_present_groups[] = {
  1039. "gpio90",
  1040. };
  1041. static const char * const uim1_reset_groups[] = {
  1042. "gpio89",
  1043. };
  1044. static const char * const uim2_clk_groups[] = {
  1045. "gpio84",
  1046. };
  1047. static const char * const uim2_data_groups[] = {
  1048. "gpio83",
  1049. };
  1050. static const char * const uim2_present_groups[] = {
  1051. "gpio86",
  1052. };
  1053. static const char * const uim2_reset_groups[] = {
  1054. "gpio85",
  1055. };
  1056. static const char * const uim_batt_groups[] = {
  1057. "gpio91",
  1058. };
  1059. static const char * const vfr_1_groups[] = {
  1060. "gpio27",
  1061. };
  1062. static const char * const vsense_clkout_groups[] = {
  1063. "gpio24",
  1064. };
  1065. static const char * const vsense_data0_groups[] = {
  1066. "gpio21",
  1067. };
  1068. static const char * const vsense_data1_groups[] = {
  1069. "gpio22",
  1070. };
  1071. static const char * const vsense_mode_groups[] = {
  1072. "gpio23",
  1073. };
  1074. static const char * const wlan1_adc0_groups[] = {
  1075. "gpio9",
  1076. };
  1077. static const char * const wlan1_adc1_groups[] = {
  1078. "gpio8",
  1079. };
  1080. static const char * const wlan2_adc0_groups[] = {
  1081. "gpio11",
  1082. };
  1083. static const char * const wlan2_adc1_groups[] = {
  1084. "gpio10",
  1085. };
  1086. static const struct msm_function sdm660_functions[] = {
  1087. FUNCTION(adsp_ext),
  1088. FUNCTION(agera_pll),
  1089. FUNCTION(atest_char),
  1090. FUNCTION(atest_char0),
  1091. FUNCTION(atest_char1),
  1092. FUNCTION(atest_char2),
  1093. FUNCTION(atest_char3),
  1094. FUNCTION(atest_gpsadc0),
  1095. FUNCTION(atest_gpsadc1),
  1096. FUNCTION(atest_tsens),
  1097. FUNCTION(atest_tsens2),
  1098. FUNCTION(atest_usb1),
  1099. FUNCTION(atest_usb10),
  1100. FUNCTION(atest_usb11),
  1101. FUNCTION(atest_usb12),
  1102. FUNCTION(atest_usb13),
  1103. FUNCTION(atest_usb2),
  1104. FUNCTION(atest_usb20),
  1105. FUNCTION(atest_usb21),
  1106. FUNCTION(atest_usb22),
  1107. FUNCTION(atest_usb23),
  1108. FUNCTION(audio_ref),
  1109. FUNCTION(bimc_dte0),
  1110. FUNCTION(bimc_dte1),
  1111. FUNCTION(blsp_i2c1),
  1112. FUNCTION(blsp_i2c2),
  1113. FUNCTION(blsp_i2c3),
  1114. FUNCTION(blsp_i2c4),
  1115. FUNCTION(blsp_i2c5),
  1116. FUNCTION(blsp_i2c6),
  1117. FUNCTION(blsp_i2c7),
  1118. FUNCTION(blsp_i2c8_a),
  1119. FUNCTION(blsp_i2c8_b),
  1120. FUNCTION(blsp_spi1),
  1121. FUNCTION(blsp_spi2),
  1122. FUNCTION(blsp_spi3),
  1123. FUNCTION(blsp_spi3_cs1),
  1124. FUNCTION(blsp_spi3_cs2),
  1125. FUNCTION(blsp_spi4),
  1126. FUNCTION(blsp_spi5),
  1127. FUNCTION(blsp_spi6),
  1128. FUNCTION(blsp_spi7),
  1129. FUNCTION(blsp_spi8_a),
  1130. FUNCTION(blsp_spi8_b),
  1131. FUNCTION(blsp_spi8_cs1),
  1132. FUNCTION(blsp_spi8_cs2),
  1133. FUNCTION(blsp_uart1),
  1134. FUNCTION(blsp_uart2),
  1135. FUNCTION(blsp_uart5),
  1136. FUNCTION(blsp_uart6_a),
  1137. FUNCTION(blsp_uart6_b),
  1138. FUNCTION(blsp_uim1),
  1139. FUNCTION(blsp_uim2),
  1140. FUNCTION(blsp_uim5),
  1141. FUNCTION(blsp_uim6),
  1142. FUNCTION(cam_mclk),
  1143. FUNCTION(cci_async),
  1144. FUNCTION(cci_i2c),
  1145. FUNCTION(cri_trng),
  1146. FUNCTION(cri_trng0),
  1147. FUNCTION(cri_trng1),
  1148. FUNCTION(dbg_out),
  1149. FUNCTION(ddr_bist),
  1150. FUNCTION(gcc_gp1),
  1151. FUNCTION(gcc_gp2),
  1152. FUNCTION(gcc_gp3),
  1153. FUNCTION(gpio),
  1154. FUNCTION(gps_tx_a),
  1155. FUNCTION(gps_tx_b),
  1156. FUNCTION(gps_tx_c),
  1157. FUNCTION(isense_dbg),
  1158. FUNCTION(jitter_bist),
  1159. FUNCTION(ldo_en),
  1160. FUNCTION(ldo_update),
  1161. FUNCTION(m_voc),
  1162. FUNCTION(mdp_vsync),
  1163. FUNCTION(mdss_vsync0),
  1164. FUNCTION(mdss_vsync1),
  1165. FUNCTION(mdss_vsync2),
  1166. FUNCTION(mdss_vsync3),
  1167. FUNCTION(mss_lte),
  1168. FUNCTION(nav_pps_a),
  1169. FUNCTION(nav_pps_b),
  1170. FUNCTION(nav_pps_c),
  1171. FUNCTION(pa_indicator),
  1172. FUNCTION(phase_flag0),
  1173. FUNCTION(phase_flag1),
  1174. FUNCTION(phase_flag2),
  1175. FUNCTION(phase_flag3),
  1176. FUNCTION(phase_flag4),
  1177. FUNCTION(phase_flag5),
  1178. FUNCTION(phase_flag6),
  1179. FUNCTION(phase_flag7),
  1180. FUNCTION(phase_flag8),
  1181. FUNCTION(phase_flag9),
  1182. FUNCTION(phase_flag10),
  1183. FUNCTION(phase_flag11),
  1184. FUNCTION(phase_flag12),
  1185. FUNCTION(phase_flag13),
  1186. FUNCTION(phase_flag14),
  1187. FUNCTION(phase_flag15),
  1188. FUNCTION(phase_flag16),
  1189. FUNCTION(phase_flag17),
  1190. FUNCTION(phase_flag18),
  1191. FUNCTION(phase_flag19),
  1192. FUNCTION(phase_flag20),
  1193. FUNCTION(phase_flag21),
  1194. FUNCTION(phase_flag22),
  1195. FUNCTION(phase_flag23),
  1196. FUNCTION(phase_flag24),
  1197. FUNCTION(phase_flag25),
  1198. FUNCTION(phase_flag26),
  1199. FUNCTION(phase_flag27),
  1200. FUNCTION(phase_flag28),
  1201. FUNCTION(phase_flag29),
  1202. FUNCTION(phase_flag30),
  1203. FUNCTION(phase_flag31),
  1204. FUNCTION(pll_bypassnl),
  1205. FUNCTION(pll_reset),
  1206. FUNCTION(pri_mi2s),
  1207. FUNCTION(pri_mi2s_ws),
  1208. FUNCTION(prng_rosc),
  1209. FUNCTION(pwr_crypto),
  1210. FUNCTION(pwr_modem),
  1211. FUNCTION(pwr_nav),
  1212. FUNCTION(qdss_cti0_a),
  1213. FUNCTION(qdss_cti0_b),
  1214. FUNCTION(qdss_cti1_a),
  1215. FUNCTION(qdss_cti1_b),
  1216. FUNCTION(qdss_gpio),
  1217. FUNCTION(qdss_gpio0),
  1218. FUNCTION(qdss_gpio1),
  1219. FUNCTION(qdss_gpio10),
  1220. FUNCTION(qdss_gpio11),
  1221. FUNCTION(qdss_gpio12),
  1222. FUNCTION(qdss_gpio13),
  1223. FUNCTION(qdss_gpio14),
  1224. FUNCTION(qdss_gpio15),
  1225. FUNCTION(qdss_gpio2),
  1226. FUNCTION(qdss_gpio3),
  1227. FUNCTION(qdss_gpio4),
  1228. FUNCTION(qdss_gpio5),
  1229. FUNCTION(qdss_gpio6),
  1230. FUNCTION(qdss_gpio7),
  1231. FUNCTION(qdss_gpio8),
  1232. FUNCTION(qdss_gpio9),
  1233. FUNCTION(qlink_enable),
  1234. FUNCTION(qlink_request),
  1235. FUNCTION(qspi_clk),
  1236. FUNCTION(qspi_cs),
  1237. FUNCTION(qspi_data0),
  1238. FUNCTION(qspi_data1),
  1239. FUNCTION(qspi_data2),
  1240. FUNCTION(qspi_data3),
  1241. FUNCTION(qspi_resetn),
  1242. FUNCTION(sec_mi2s),
  1243. FUNCTION(sndwire_clk),
  1244. FUNCTION(sndwire_data),
  1245. FUNCTION(sp_cmu),
  1246. FUNCTION(ssc_irq),
  1247. FUNCTION(tgu_ch0),
  1248. FUNCTION(tgu_ch1),
  1249. FUNCTION(tsense_pwm1),
  1250. FUNCTION(tsense_pwm2),
  1251. FUNCTION(uim1_clk),
  1252. FUNCTION(uim1_data),
  1253. FUNCTION(uim1_present),
  1254. FUNCTION(uim1_reset),
  1255. FUNCTION(uim2_clk),
  1256. FUNCTION(uim2_data),
  1257. FUNCTION(uim2_present),
  1258. FUNCTION(uim2_reset),
  1259. FUNCTION(uim_batt),
  1260. FUNCTION(vfr_1),
  1261. FUNCTION(vsense_clkout),
  1262. FUNCTION(vsense_data0),
  1263. FUNCTION(vsense_data1),
  1264. FUNCTION(vsense_mode),
  1265. FUNCTION(wlan1_adc0),
  1266. FUNCTION(wlan1_adc1),
  1267. FUNCTION(wlan2_adc0),
  1268. FUNCTION(wlan2_adc1),
  1269. };
  1270. static const struct msm_pingroup sdm660_groups[] = {
  1271. PINGROUP(0, SOUTH, blsp_spi1, blsp_uart1, blsp_uim1, tgu_ch0, _, _, qdss_gpio4, atest_gpsadc1, _),
  1272. PINGROUP(1, SOUTH, blsp_spi1, blsp_uart1, blsp_uim1, tgu_ch1, _, _, qdss_gpio5, atest_gpsadc0, _),
  1273. PINGROUP(2, SOUTH, blsp_spi1, blsp_uart1, blsp_i2c1, _, _, _, _, _, _),
  1274. PINGROUP(3, SOUTH, blsp_spi1, blsp_uart1, blsp_i2c1, ddr_bist, _, _, atest_tsens2, atest_usb1, _),
  1275. PINGROUP(4, NORTH, blsp_spi2, blsp_uim2, blsp_uart2, phase_flag3, _, _, _, _, _),
  1276. PINGROUP(5, SOUTH, blsp_spi2, blsp_uim2, blsp_uart2, phase_flag14, _, _, _, _, _),
  1277. PINGROUP(6, SOUTH, blsp_spi2, blsp_i2c2, blsp_uart2, phase_flag31, _, _, _, _, _),
  1278. PINGROUP(7, SOUTH, blsp_spi2, blsp_i2c2, blsp_uart2, _, _, _, _, _, _),
  1279. PINGROUP(8, NORTH, blsp_spi3, ddr_bist, _, _, _, wlan1_adc1, atest_usb13, bimc_dte1, _),
  1280. PINGROUP(9, NORTH, blsp_spi3, ddr_bist, _, _, _, wlan1_adc0, atest_usb12, bimc_dte0, _),
  1281. PINGROUP(10, NORTH, blsp_spi3, blsp_i2c3, ddr_bist, _, _, wlan2_adc1, atest_usb11, bimc_dte1, _),
  1282. PINGROUP(11, NORTH, blsp_spi3, blsp_i2c3, _, dbg_out, wlan2_adc0, atest_usb10, bimc_dte0, _, _),
  1283. PINGROUP(12, NORTH, blsp_spi4, pri_mi2s, _, phase_flag26, qdss_cti1_b, _, _, _, _),
  1284. PINGROUP(13, NORTH, blsp_spi4, _, pri_mi2s_ws, _, _, phase_flag27, qdss_cti0_b, _, _),
  1285. PINGROUP(14, NORTH, blsp_spi4, blsp_i2c4, pri_mi2s, _, phase_flag28, _, _, _, _),
  1286. PINGROUP(15, NORTH, blsp_spi4, blsp_i2c4, pri_mi2s, _, _, _, _, _, _),
  1287. PINGROUP(16, CENTER, blsp_uart5, blsp_spi5, blsp_uim5, _, _, _, _, _, _),
  1288. PINGROUP(17, CENTER, blsp_uart5, blsp_spi5, blsp_uim5, _, phase_flag5, _, _, _, _),
  1289. PINGROUP(18, CENTER, blsp_uart5, blsp_spi5, blsp_i2c5, _, _, _, _, _, _),
  1290. PINGROUP(19, CENTER, blsp_uart5, blsp_spi5, blsp_i2c5, _, _, _, _, _, _),
  1291. PINGROUP(20, SOUTH, _, _, blsp_uim6, _, _, _, _, _, _),
  1292. PINGROUP(21, SOUTH, _, _, blsp_uim6, _, phase_flag11, qdss_cti0_b, vsense_data0, _, _),
  1293. PINGROUP(22, CENTER, blsp_spi6, _, blsp_i2c6, _, phase_flag12, vsense_data1, _, _, _),
  1294. PINGROUP(23, CENTER, blsp_spi6, _, blsp_i2c6, _, phase_flag13, vsense_mode, _, _, _),
  1295. PINGROUP(24, NORTH, blsp_spi7, blsp_uart6_a, sec_mi2s, sndwire_clk, _, _, phase_flag17, vsense_clkout, _),
  1296. PINGROUP(25, NORTH, blsp_spi7, blsp_uart6_a, sec_mi2s, sndwire_data, _, _, phase_flag18, _, _),
  1297. PINGROUP(26, NORTH, blsp_spi7, blsp_uart6_a, blsp_i2c7, sec_mi2s, _, phase_flag19, _, _, _),
  1298. PINGROUP(27, NORTH, blsp_spi7, blsp_uart6_a, blsp_i2c7, vfr_1, sec_mi2s, _, phase_flag20, _, _),
  1299. PINGROUP(28, CENTER, blsp_spi8_a, blsp_uart6_b, m_voc, _, phase_flag21, _, _, _, _),
  1300. PINGROUP(29, CENTER, blsp_spi8_a, blsp_uart6_b, _, _, phase_flag22, _, _, _, _),
  1301. PINGROUP(30, CENTER, blsp_spi8_a, blsp_uart6_b, blsp_i2c8_a, blsp_spi3_cs1, _, phase_flag23, _, _, _),
  1302. PINGROUP(31, CENTER, blsp_spi8_a, blsp_uart6_b, blsp_i2c8_a, pwr_modem, _, phase_flag24, qdss_gpio, _, _),
  1303. PINGROUP(32, SOUTH, cam_mclk, pwr_nav, _, _, qdss_gpio0, _, _, _, _),
  1304. PINGROUP(33, SOUTH, cam_mclk, qspi_data0, pwr_crypto, _, _, qdss_gpio1, _, _, _),
  1305. PINGROUP(34, SOUTH, cam_mclk, qspi_data1, agera_pll, _, _, qdss_gpio2, _, _, _),
  1306. PINGROUP(35, SOUTH, cam_mclk, qspi_data2, jitter_bist, _, _, qdss_gpio3, _, atest_usb2, _),
  1307. PINGROUP(36, SOUTH, cci_i2c, pll_bypassnl, agera_pll, _, _, qdss_gpio4, atest_tsens, atest_usb21, _),
  1308. PINGROUP(37, SOUTH, cci_i2c, pll_reset, _, _, qdss_gpio5, atest_usb23, _, _, _),
  1309. PINGROUP(38, SOUTH, cci_i2c, _, _, qdss_gpio6, _, _, _, _, _),
  1310. PINGROUP(39, SOUTH, cci_i2c, _, _, qdss_gpio7, _, _, _, _, _),
  1311. PINGROUP(40, SOUTH, _, _, blsp_spi8_b, _, _, _, _, _, _),
  1312. PINGROUP(41, SOUTH, _, _, blsp_spi8_b, _, _, _, _, _, _),
  1313. PINGROUP(42, SOUTH, mdss_vsync0, mdss_vsync1, mdss_vsync2, mdss_vsync3, _, _, qdss_gpio9, _, _),
  1314. PINGROUP(43, SOUTH, _, _, qspi_cs, _, _, qdss_gpio10, _, _, _),
  1315. PINGROUP(44, SOUTH, _, _, blsp_spi8_b, blsp_i2c8_b, _, _, qdss_gpio11, _, _),
  1316. PINGROUP(45, SOUTH, cci_async, _, _, qdss_gpio12, _, _, _, _, _),
  1317. PINGROUP(46, SOUTH, blsp_spi1, _, _, qdss_gpio13, _, _, _, _, _),
  1318. PINGROUP(47, SOUTH, qspi_clk, _, phase_flag30, qdss_gpio14, _, _, _, _, _),
  1319. PINGROUP(48, SOUTH, _, phase_flag1, qdss_gpio15, _, _, _, _, _, _),
  1320. PINGROUP(49, SOUTH, blsp_spi6, phase_flag2, qdss_cti0_a, _, _, _, _, _, _),
  1321. PINGROUP(50, SOUTH, qspi_cs, _, phase_flag9, qdss_cti0_a, _, _, _, _, _),
  1322. PINGROUP(51, SOUTH, qspi_data3, _, phase_flag15, qdss_gpio8, _, _, _, _, _),
  1323. PINGROUP(52, SOUTH, _, blsp_spi8_b, blsp_i2c8_b, blsp_spi6, phase_flag16, qdss_gpio, _, _, _),
  1324. PINGROUP(53, NORTH, _, phase_flag6, qdss_cti1_a, _, _, _, _, _, _),
  1325. PINGROUP(54, NORTH, _, _, phase_flag29, _, _, _, _, _, _),
  1326. PINGROUP(55, SOUTH, _, phase_flag25, qdss_cti1_a, _, _, _, _, _, _),
  1327. PINGROUP(56, SOUTH, _, phase_flag10, qdss_gpio3, _, atest_usb20, _, _, _, _),
  1328. PINGROUP(57, SOUTH, gcc_gp1, _, phase_flag4, atest_usb22, _, _, _, _, _),
  1329. PINGROUP(58, SOUTH, _, gcc_gp2, _, _, atest_char, _, _, _, _),
  1330. PINGROUP(59, NORTH, mdp_vsync, gcc_gp3, _, _, atest_char3, _, _, _, _),
  1331. PINGROUP(60, NORTH, cri_trng0, _, _, atest_char2, _, _, _, _, _),
  1332. PINGROUP(61, NORTH, pri_mi2s, cri_trng1, _, _, atest_char1, _, _, _, _),
  1333. PINGROUP(62, NORTH, sec_mi2s, audio_ref, _, cri_trng, _, _, atest_char0, _, _),
  1334. PINGROUP(63, NORTH, _, _, _, qdss_gpio1, _, _, _, _, _),
  1335. PINGROUP(64, SOUTH, blsp_spi8_cs1, sp_cmu, _, _, qdss_gpio2, _, _, _, _),
  1336. PINGROUP(65, SOUTH, _, nav_pps_a, nav_pps_a, gps_tx_a, blsp_spi3_cs2, adsp_ext, _, _, _),
  1337. PINGROUP(66, NORTH, _, _, qdss_cti1_b, _, _, _, _, _, _),
  1338. PINGROUP(67, NORTH, _, _, qdss_gpio0, _, _, _, _, _, _),
  1339. PINGROUP(68, NORTH, isense_dbg, _, phase_flag0, qdss_gpio, _, _, _, _, _),
  1340. PINGROUP(69, NORTH, _, phase_flag7, qdss_gpio, _, _, _, _, _, _),
  1341. PINGROUP(70, NORTH, _, phase_flag8, qdss_gpio6, _, _, _, _, _, _),
  1342. PINGROUP(71, NORTH, _, _, qdss_gpio7, tsense_pwm1, tsense_pwm2, _, _, _, _),
  1343. PINGROUP(72, NORTH, _, qdss_gpio14, _, _, _, _, _, _, _),
  1344. PINGROUP(73, NORTH, _, _, qdss_gpio15, _, _, _, _, _, _),
  1345. PINGROUP(74, NORTH, mdp_vsync, _, _, _, _, _, _, _, _),
  1346. PINGROUP(75, NORTH, _, _, qdss_gpio8, _, _, _, _, _, _),
  1347. PINGROUP(76, NORTH, blsp_spi8_cs2, _, _, _, qdss_gpio9, _, _, _, _),
  1348. PINGROUP(77, NORTH, _, _, qdss_gpio10, _, _, _, _, _, _),
  1349. PINGROUP(78, NORTH, gcc_gp1, _, qdss_gpio13, _, _, _, _, _, _),
  1350. PINGROUP(79, SOUTH, _, _, qdss_gpio11, _, _, _, _, _, _),
  1351. PINGROUP(80, SOUTH, nav_pps_b, nav_pps_b, gps_tx_c, _, _, qdss_gpio12, _, _, _),
  1352. PINGROUP(81, CENTER, mss_lte, gcc_gp2, _, _, _, _, _, _, _),
  1353. PINGROUP(82, CENTER, mss_lte, gcc_gp3, _, _, _, _, _, _, _),
  1354. PINGROUP(83, SOUTH, uim2_data, _, _, _, _, _, _, _, _),
  1355. PINGROUP(84, SOUTH, uim2_clk, _, _, _, _, _, _, _, _),
  1356. PINGROUP(85, SOUTH, uim2_reset, _, _, _, _, _, _, _, _),
  1357. PINGROUP(86, SOUTH, uim2_present, _, _, _, _, _, _, _, _),
  1358. PINGROUP(87, SOUTH, uim1_data, _, _, _, _, _, _, _, _),
  1359. PINGROUP(88, SOUTH, uim1_clk, _, _, _, _, _, _, _, _),
  1360. PINGROUP(89, SOUTH, uim1_reset, _, _, _, _, _, _, _, _),
  1361. PINGROUP(90, SOUTH, uim1_present, _, _, _, _, _, _, _, _),
  1362. PINGROUP(91, SOUTH, uim_batt, _, _, _, _, _, _, _, _),
  1363. PINGROUP(92, SOUTH, _, _, pa_indicator, _, _, _, _, _, _),
  1364. PINGROUP(93, SOUTH, _, _, _, _, _, _, _, _, _),
  1365. PINGROUP(94, SOUTH, _, _, _, _, _, _, _, _, _),
  1366. PINGROUP(95, SOUTH, _, _, _, _, _, _, _, _, _),
  1367. PINGROUP(96, SOUTH, _, _, _, _, _, _, _, _, _),
  1368. PINGROUP(97, SOUTH, _, ldo_en, _, _, _, _, _, _, _),
  1369. PINGROUP(98, SOUTH, _, nav_pps_c, nav_pps_c, gps_tx_b, ldo_update, _, _, _, _),
  1370. PINGROUP(99, SOUTH, qlink_request, _, _, _, _, _, _, _, _),
  1371. PINGROUP(100, SOUTH, qlink_enable, _, _, _, _, _, _, _, _),
  1372. PINGROUP(101, SOUTH, _, _, _, _, _, _, _, _, _),
  1373. PINGROUP(102, SOUTH, _, prng_rosc, _, _, _, _, _, _, _),
  1374. PINGROUP(103, SOUTH, _, _, _, _, _, _, _, _, _),
  1375. PINGROUP(104, SOUTH, _, _, _, _, _, _, _, _, _),
  1376. PINGROUP(105, SOUTH, _, _, _, _, _, _, _, _, _),
  1377. PINGROUP(106, SOUTH, _, _, _, _, _, _, _, _, _),
  1378. PINGROUP(107, SOUTH, _, _, _, _, _, _, _, _, _),
  1379. PINGROUP(108, SOUTH, _, _, _, _, _, _, _, _, _),
  1380. PINGROUP(109, SOUTH, _, _, _, _, _, _, _, _, _),
  1381. PINGROUP(110, SOUTH, _, _, _, _, _, _, _, _, _),
  1382. PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _),
  1383. PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _),
  1384. PINGROUP(113, SOUTH, _, _, _, _, _, _, _, _, _),
  1385. SDC_QDSD_PINGROUP(sdc1_clk, 0x9a000, 13, 6),
  1386. SDC_QDSD_PINGROUP(sdc1_cmd, 0x9a000, 11, 3),
  1387. SDC_QDSD_PINGROUP(sdc1_data, 0x9a000, 9, 0),
  1388. SDC_QDSD_PINGROUP(sdc2_clk, 0x9b000, 14, 6),
  1389. SDC_QDSD_PINGROUP(sdc2_cmd, 0x9b000, 11, 3),
  1390. SDC_QDSD_PINGROUP(sdc2_data, 0x9b000, 9, 0),
  1391. SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0),
  1392. };
  1393. static const struct msm_pinctrl_soc_data sdm660_pinctrl = {
  1394. .pins = sdm660_pins,
  1395. .npins = ARRAY_SIZE(sdm660_pins),
  1396. .functions = sdm660_functions,
  1397. .nfunctions = ARRAY_SIZE(sdm660_functions),
  1398. .groups = sdm660_groups,
  1399. .ngroups = ARRAY_SIZE(sdm660_groups),
  1400. .ngpios = 114,
  1401. .tiles = sdm660_tiles,
  1402. .ntiles = ARRAY_SIZE(sdm660_tiles),
  1403. };
  1404. static int sdm660_pinctrl_probe(struct platform_device *pdev)
  1405. {
  1406. return msm_pinctrl_probe(pdev, &sdm660_pinctrl);
  1407. }
  1408. static const struct of_device_id sdm660_pinctrl_of_match[] = {
  1409. { .compatible = "qcom,sdm660-pinctrl", },
  1410. { .compatible = "qcom,sdm630-pinctrl", },
  1411. { },
  1412. };
  1413. static struct platform_driver sdm660_pinctrl_driver = {
  1414. .driver = {
  1415. .name = "sdm660-pinctrl",
  1416. .of_match_table = sdm660_pinctrl_of_match,
  1417. },
  1418. .probe = sdm660_pinctrl_probe,
  1419. .remove = msm_pinctrl_remove,
  1420. };
  1421. static int __init sdm660_pinctrl_init(void)
  1422. {
  1423. return platform_driver_register(&sdm660_pinctrl_driver);
  1424. }
  1425. arch_initcall(sdm660_pinctrl_init);
  1426. static void __exit sdm660_pinctrl_exit(void)
  1427. {
  1428. platform_driver_unregister(&sdm660_pinctrl_driver);
  1429. }
  1430. module_exit(sdm660_pinctrl_exit);
  1431. MODULE_DESCRIPTION("QTI sdm660 pinctrl driver");
  1432. MODULE_LICENSE("GPL v2");
  1433. MODULE_DEVICE_TABLE(of, sdm660_pinctrl_of_match);