pinctrl-sdm660.c 42 KB

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