pinctrl-sm6115.c 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2019, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/platform_device.h>
  8. #include <linux/pinctrl/pinctrl.h>
  9. #include "pinctrl-msm.h"
  10. static const char * const sm6115_tiles[] = {
  11. "south",
  12. "east",
  13. "west"
  14. };
  15. enum {
  16. SOUTH,
  17. EAST,
  18. WEST
  19. };
  20. #define FUNCTION(fname) \
  21. [msm_mux_##fname] = { \
  22. .name = #fname, \
  23. .groups = fname##_groups, \
  24. .ngroups = ARRAY_SIZE(fname##_groups), \
  25. }
  26. #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  27. { \
  28. .name = "gpio" #id, \
  29. .pins = gpio##id##_pins, \
  30. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  31. .funcs = (int[]){ \
  32. msm_mux_gpio, /* gpio mode */ \
  33. msm_mux_##f1, \
  34. msm_mux_##f2, \
  35. msm_mux_##f3, \
  36. msm_mux_##f4, \
  37. msm_mux_##f5, \
  38. msm_mux_##f6, \
  39. msm_mux_##f7, \
  40. msm_mux_##f8, \
  41. msm_mux_##f9 \
  42. }, \
  43. .nfuncs = 10, \
  44. .ctl_reg = 0x1000 * id, \
  45. .io_reg = 0x4 + 0x1000 * id, \
  46. .intr_cfg_reg = 0x8 + 0x1000 * id, \
  47. .intr_status_reg = 0xc + 0x1000 * id, \
  48. .intr_target_reg = 0x8 + 0x1000 * id, \
  49. .tile = _tile, \
  50. .mux_bit = 2, \
  51. .pull_bit = 0, \
  52. .drv_bit = 6, \
  53. .oe_bit = 9, \
  54. .in_bit = 0, \
  55. .out_bit = 1, \
  56. .intr_enable_bit = 0, \
  57. .intr_status_bit = 0, \
  58. .intr_target_bit = 5, \
  59. .intr_target_kpss_val = 3, \
  60. .intr_raw_status_bit = 4, \
  61. .intr_polarity_bit = 1, \
  62. .intr_detection_bit = 2, \
  63. .intr_detection_width = 2, \
  64. }
  65. #define SDC_QDSD_PINGROUP(pg_name, _tile, ctl, pull, drv) \
  66. { \
  67. .name = #pg_name, \
  68. .pins = pg_name##_pins, \
  69. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  70. .ctl_reg = ctl, \
  71. .io_reg = 0, \
  72. .intr_cfg_reg = 0, \
  73. .intr_status_reg = 0, \
  74. .intr_target_reg = 0, \
  75. .tile = _tile, \
  76. .mux_bit = -1, \
  77. .pull_bit = pull, \
  78. .drv_bit = drv, \
  79. .oe_bit = -1, \
  80. .in_bit = -1, \
  81. .out_bit = -1, \
  82. .intr_enable_bit = -1, \
  83. .intr_status_bit = -1, \
  84. .intr_target_bit = -1, \
  85. .intr_raw_status_bit = -1, \
  86. .intr_polarity_bit = -1, \
  87. .intr_detection_bit = -1, \
  88. .intr_detection_width = -1, \
  89. }
  90. #define UFS_RESET(pg_name, offset) \
  91. { \
  92. .name = #pg_name, \
  93. .pins = pg_name##_pins, \
  94. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  95. .ctl_reg = offset, \
  96. .io_reg = offset + 0x4, \
  97. .intr_cfg_reg = 0, \
  98. .intr_status_reg = 0, \
  99. .intr_target_reg = 0, \
  100. .tile = WEST, \
  101. .mux_bit = -1, \
  102. .pull_bit = 3, \
  103. .drv_bit = 0, \
  104. .oe_bit = -1, \
  105. .in_bit = -1, \
  106. .out_bit = 0, \
  107. .intr_enable_bit = -1, \
  108. .intr_status_bit = -1, \
  109. .intr_target_bit = -1, \
  110. .intr_raw_status_bit = -1, \
  111. .intr_polarity_bit = -1, \
  112. .intr_detection_bit = -1, \
  113. .intr_detection_width = -1, \
  114. }
  115. static const struct pinctrl_pin_desc sm6115_pins[] = {
  116. PINCTRL_PIN(0, "GPIO_0"),
  117. PINCTRL_PIN(1, "GPIO_1"),
  118. PINCTRL_PIN(2, "GPIO_2"),
  119. PINCTRL_PIN(3, "GPIO_3"),
  120. PINCTRL_PIN(4, "GPIO_4"),
  121. PINCTRL_PIN(5, "GPIO_5"),
  122. PINCTRL_PIN(6, "GPIO_6"),
  123. PINCTRL_PIN(7, "GPIO_7"),
  124. PINCTRL_PIN(8, "GPIO_8"),
  125. PINCTRL_PIN(9, "GPIO_9"),
  126. PINCTRL_PIN(10, "GPIO_10"),
  127. PINCTRL_PIN(11, "GPIO_11"),
  128. PINCTRL_PIN(12, "GPIO_12"),
  129. PINCTRL_PIN(13, "GPIO_13"),
  130. PINCTRL_PIN(14, "GPIO_14"),
  131. PINCTRL_PIN(15, "GPIO_15"),
  132. PINCTRL_PIN(16, "GPIO_16"),
  133. PINCTRL_PIN(17, "GPIO_17"),
  134. PINCTRL_PIN(18, "GPIO_18"),
  135. PINCTRL_PIN(19, "GPIO_19"),
  136. PINCTRL_PIN(20, "GPIO_20"),
  137. PINCTRL_PIN(21, "GPIO_21"),
  138. PINCTRL_PIN(22, "GPIO_22"),
  139. PINCTRL_PIN(23, "GPIO_23"),
  140. PINCTRL_PIN(24, "GPIO_24"),
  141. PINCTRL_PIN(25, "GPIO_25"),
  142. PINCTRL_PIN(26, "GPIO_26"),
  143. PINCTRL_PIN(27, "GPIO_27"),
  144. PINCTRL_PIN(28, "GPIO_28"),
  145. PINCTRL_PIN(29, "GPIO_29"),
  146. PINCTRL_PIN(30, "GPIO_30"),
  147. PINCTRL_PIN(31, "GPIO_31"),
  148. PINCTRL_PIN(32, "GPIO_32"),
  149. PINCTRL_PIN(33, "GPIO_33"),
  150. PINCTRL_PIN(34, "GPIO_34"),
  151. PINCTRL_PIN(35, "GPIO_35"),
  152. PINCTRL_PIN(36, "GPIO_36"),
  153. PINCTRL_PIN(37, "GPIO_37"),
  154. PINCTRL_PIN(38, "GPIO_38"),
  155. PINCTRL_PIN(39, "GPIO_39"),
  156. PINCTRL_PIN(40, "GPIO_40"),
  157. PINCTRL_PIN(41, "GPIO_41"),
  158. PINCTRL_PIN(42, "GPIO_42"),
  159. PINCTRL_PIN(43, "GPIO_43"),
  160. PINCTRL_PIN(44, "GPIO_44"),
  161. PINCTRL_PIN(45, "GPIO_45"),
  162. PINCTRL_PIN(46, "GPIO_46"),
  163. PINCTRL_PIN(47, "GPIO_47"),
  164. PINCTRL_PIN(48, "GPIO_48"),
  165. PINCTRL_PIN(49, "GPIO_49"),
  166. PINCTRL_PIN(50, "GPIO_50"),
  167. PINCTRL_PIN(51, "GPIO_51"),
  168. PINCTRL_PIN(52, "GPIO_52"),
  169. PINCTRL_PIN(53, "GPIO_53"),
  170. PINCTRL_PIN(54, "GPIO_54"),
  171. PINCTRL_PIN(55, "GPIO_55"),
  172. PINCTRL_PIN(56, "GPIO_56"),
  173. PINCTRL_PIN(57, "GPIO_57"),
  174. PINCTRL_PIN(58, "GPIO_58"),
  175. PINCTRL_PIN(59, "GPIO_59"),
  176. PINCTRL_PIN(60, "GPIO_60"),
  177. PINCTRL_PIN(61, "GPIO_61"),
  178. PINCTRL_PIN(62, "GPIO_62"),
  179. PINCTRL_PIN(63, "GPIO_63"),
  180. PINCTRL_PIN(64, "GPIO_64"),
  181. PINCTRL_PIN(65, "GPIO_65"),
  182. PINCTRL_PIN(66, "GPIO_66"),
  183. PINCTRL_PIN(67, "GPIO_67"),
  184. PINCTRL_PIN(68, "GPIO_68"),
  185. PINCTRL_PIN(69, "GPIO_69"),
  186. PINCTRL_PIN(70, "GPIO_70"),
  187. PINCTRL_PIN(71, "GPIO_71"),
  188. PINCTRL_PIN(72, "GPIO_72"),
  189. PINCTRL_PIN(73, "GPIO_73"),
  190. PINCTRL_PIN(74, "GPIO_74"),
  191. PINCTRL_PIN(75, "GPIO_75"),
  192. PINCTRL_PIN(76, "GPIO_76"),
  193. PINCTRL_PIN(77, "GPIO_77"),
  194. PINCTRL_PIN(78, "GPIO_78"),
  195. PINCTRL_PIN(79, "GPIO_79"),
  196. PINCTRL_PIN(80, "GPIO_80"),
  197. PINCTRL_PIN(81, "GPIO_81"),
  198. PINCTRL_PIN(82, "GPIO_82"),
  199. PINCTRL_PIN(83, "GPIO_83"),
  200. PINCTRL_PIN(84, "GPIO_84"),
  201. PINCTRL_PIN(85, "GPIO_85"),
  202. PINCTRL_PIN(86, "GPIO_86"),
  203. PINCTRL_PIN(87, "GPIO_87"),
  204. PINCTRL_PIN(88, "GPIO_88"),
  205. PINCTRL_PIN(89, "GPIO_89"),
  206. PINCTRL_PIN(90, "GPIO_90"),
  207. PINCTRL_PIN(91, "GPIO_91"),
  208. PINCTRL_PIN(92, "GPIO_92"),
  209. PINCTRL_PIN(93, "GPIO_93"),
  210. PINCTRL_PIN(94, "GPIO_94"),
  211. PINCTRL_PIN(95, "GPIO_95"),
  212. PINCTRL_PIN(96, "GPIO_96"),
  213. PINCTRL_PIN(97, "GPIO_97"),
  214. PINCTRL_PIN(98, "GPIO_98"),
  215. PINCTRL_PIN(99, "GPIO_99"),
  216. PINCTRL_PIN(100, "GPIO_100"),
  217. PINCTRL_PIN(101, "GPIO_101"),
  218. PINCTRL_PIN(102, "GPIO_102"),
  219. PINCTRL_PIN(103, "GPIO_103"),
  220. PINCTRL_PIN(104, "GPIO_104"),
  221. PINCTRL_PIN(105, "GPIO_105"),
  222. PINCTRL_PIN(106, "GPIO_106"),
  223. PINCTRL_PIN(107, "GPIO_107"),
  224. PINCTRL_PIN(108, "GPIO_108"),
  225. PINCTRL_PIN(109, "GPIO_109"),
  226. PINCTRL_PIN(110, "GPIO_110"),
  227. PINCTRL_PIN(111, "GPIO_111"),
  228. PINCTRL_PIN(112, "GPIO_112"),
  229. PINCTRL_PIN(113, "UFS_RESET"),
  230. PINCTRL_PIN(114, "SDC1_RCLK"),
  231. PINCTRL_PIN(115, "SDC1_CLK"),
  232. PINCTRL_PIN(116, "SDC1_CMD"),
  233. PINCTRL_PIN(117, "SDC1_DATA"),
  234. PINCTRL_PIN(118, "SDC2_CLK"),
  235. PINCTRL_PIN(119, "SDC2_CMD"),
  236. PINCTRL_PIN(120, "SDC2_DATA"),
  237. };
  238. #define DECLARE_MSM_GPIO_PINS(pin) \
  239. static const unsigned int gpio##pin##_pins[] = { pin }
  240. DECLARE_MSM_GPIO_PINS(0);
  241. DECLARE_MSM_GPIO_PINS(1);
  242. DECLARE_MSM_GPIO_PINS(2);
  243. DECLARE_MSM_GPIO_PINS(3);
  244. DECLARE_MSM_GPIO_PINS(4);
  245. DECLARE_MSM_GPIO_PINS(5);
  246. DECLARE_MSM_GPIO_PINS(6);
  247. DECLARE_MSM_GPIO_PINS(7);
  248. DECLARE_MSM_GPIO_PINS(8);
  249. DECLARE_MSM_GPIO_PINS(9);
  250. DECLARE_MSM_GPIO_PINS(10);
  251. DECLARE_MSM_GPIO_PINS(11);
  252. DECLARE_MSM_GPIO_PINS(12);
  253. DECLARE_MSM_GPIO_PINS(13);
  254. DECLARE_MSM_GPIO_PINS(14);
  255. DECLARE_MSM_GPIO_PINS(15);
  256. DECLARE_MSM_GPIO_PINS(16);
  257. DECLARE_MSM_GPIO_PINS(17);
  258. DECLARE_MSM_GPIO_PINS(18);
  259. DECLARE_MSM_GPIO_PINS(19);
  260. DECLARE_MSM_GPIO_PINS(20);
  261. DECLARE_MSM_GPIO_PINS(21);
  262. DECLARE_MSM_GPIO_PINS(22);
  263. DECLARE_MSM_GPIO_PINS(23);
  264. DECLARE_MSM_GPIO_PINS(24);
  265. DECLARE_MSM_GPIO_PINS(25);
  266. DECLARE_MSM_GPIO_PINS(26);
  267. DECLARE_MSM_GPIO_PINS(27);
  268. DECLARE_MSM_GPIO_PINS(28);
  269. DECLARE_MSM_GPIO_PINS(29);
  270. DECLARE_MSM_GPIO_PINS(30);
  271. DECLARE_MSM_GPIO_PINS(31);
  272. DECLARE_MSM_GPIO_PINS(32);
  273. DECLARE_MSM_GPIO_PINS(33);
  274. DECLARE_MSM_GPIO_PINS(34);
  275. DECLARE_MSM_GPIO_PINS(35);
  276. DECLARE_MSM_GPIO_PINS(36);
  277. DECLARE_MSM_GPIO_PINS(37);
  278. DECLARE_MSM_GPIO_PINS(38);
  279. DECLARE_MSM_GPIO_PINS(39);
  280. DECLARE_MSM_GPIO_PINS(40);
  281. DECLARE_MSM_GPIO_PINS(41);
  282. DECLARE_MSM_GPIO_PINS(42);
  283. DECLARE_MSM_GPIO_PINS(43);
  284. DECLARE_MSM_GPIO_PINS(44);
  285. DECLARE_MSM_GPIO_PINS(45);
  286. DECLARE_MSM_GPIO_PINS(46);
  287. DECLARE_MSM_GPIO_PINS(47);
  288. DECLARE_MSM_GPIO_PINS(48);
  289. DECLARE_MSM_GPIO_PINS(49);
  290. DECLARE_MSM_GPIO_PINS(50);
  291. DECLARE_MSM_GPIO_PINS(51);
  292. DECLARE_MSM_GPIO_PINS(52);
  293. DECLARE_MSM_GPIO_PINS(53);
  294. DECLARE_MSM_GPIO_PINS(54);
  295. DECLARE_MSM_GPIO_PINS(55);
  296. DECLARE_MSM_GPIO_PINS(56);
  297. DECLARE_MSM_GPIO_PINS(57);
  298. DECLARE_MSM_GPIO_PINS(58);
  299. DECLARE_MSM_GPIO_PINS(59);
  300. DECLARE_MSM_GPIO_PINS(60);
  301. DECLARE_MSM_GPIO_PINS(61);
  302. DECLARE_MSM_GPIO_PINS(62);
  303. DECLARE_MSM_GPIO_PINS(63);
  304. DECLARE_MSM_GPIO_PINS(64);
  305. DECLARE_MSM_GPIO_PINS(65);
  306. DECLARE_MSM_GPIO_PINS(66);
  307. DECLARE_MSM_GPIO_PINS(67);
  308. DECLARE_MSM_GPIO_PINS(68);
  309. DECLARE_MSM_GPIO_PINS(69);
  310. DECLARE_MSM_GPIO_PINS(70);
  311. DECLARE_MSM_GPIO_PINS(71);
  312. DECLARE_MSM_GPIO_PINS(72);
  313. DECLARE_MSM_GPIO_PINS(73);
  314. DECLARE_MSM_GPIO_PINS(74);
  315. DECLARE_MSM_GPIO_PINS(75);
  316. DECLARE_MSM_GPIO_PINS(76);
  317. DECLARE_MSM_GPIO_PINS(77);
  318. DECLARE_MSM_GPIO_PINS(78);
  319. DECLARE_MSM_GPIO_PINS(79);
  320. DECLARE_MSM_GPIO_PINS(80);
  321. DECLARE_MSM_GPIO_PINS(81);
  322. DECLARE_MSM_GPIO_PINS(82);
  323. DECLARE_MSM_GPIO_PINS(83);
  324. DECLARE_MSM_GPIO_PINS(84);
  325. DECLARE_MSM_GPIO_PINS(85);
  326. DECLARE_MSM_GPIO_PINS(86);
  327. DECLARE_MSM_GPIO_PINS(87);
  328. DECLARE_MSM_GPIO_PINS(88);
  329. DECLARE_MSM_GPIO_PINS(89);
  330. DECLARE_MSM_GPIO_PINS(90);
  331. DECLARE_MSM_GPIO_PINS(91);
  332. DECLARE_MSM_GPIO_PINS(92);
  333. DECLARE_MSM_GPIO_PINS(93);
  334. DECLARE_MSM_GPIO_PINS(94);
  335. DECLARE_MSM_GPIO_PINS(95);
  336. DECLARE_MSM_GPIO_PINS(96);
  337. DECLARE_MSM_GPIO_PINS(97);
  338. DECLARE_MSM_GPIO_PINS(98);
  339. DECLARE_MSM_GPIO_PINS(99);
  340. DECLARE_MSM_GPIO_PINS(100);
  341. DECLARE_MSM_GPIO_PINS(101);
  342. DECLARE_MSM_GPIO_PINS(102);
  343. DECLARE_MSM_GPIO_PINS(103);
  344. DECLARE_MSM_GPIO_PINS(104);
  345. DECLARE_MSM_GPIO_PINS(105);
  346. DECLARE_MSM_GPIO_PINS(106);
  347. DECLARE_MSM_GPIO_PINS(107);
  348. DECLARE_MSM_GPIO_PINS(108);
  349. DECLARE_MSM_GPIO_PINS(109);
  350. DECLARE_MSM_GPIO_PINS(110);
  351. DECLARE_MSM_GPIO_PINS(111);
  352. DECLARE_MSM_GPIO_PINS(112);
  353. static const unsigned int ufs_reset_pins[] = { 113 };
  354. static const unsigned int sdc1_rclk_pins[] = { 114 };
  355. static const unsigned int sdc1_clk_pins[] = { 115 };
  356. static const unsigned int sdc1_cmd_pins[] = { 116 };
  357. static const unsigned int sdc1_data_pins[] = { 117 };
  358. static const unsigned int sdc2_clk_pins[] = { 118 };
  359. static const unsigned int sdc2_cmd_pins[] = { 119 };
  360. static const unsigned int sdc2_data_pins[] = { 120 };
  361. enum sm6115_functions {
  362. msm_mux_adsp_ext,
  363. msm_mux_agera_pll,
  364. msm_mux_atest,
  365. msm_mux_cam_mclk,
  366. msm_mux_cci_async,
  367. msm_mux_cci_i2c,
  368. msm_mux_cci_timer,
  369. msm_mux_cri_trng,
  370. msm_mux_dac_calib,
  371. msm_mux_dbg_out,
  372. msm_mux_ddr_bist,
  373. msm_mux_ddr_pxi0,
  374. msm_mux_ddr_pxi1,
  375. msm_mux_ddr_pxi2,
  376. msm_mux_ddr_pxi3,
  377. msm_mux_gcc_gp1,
  378. msm_mux_gcc_gp2,
  379. msm_mux_gcc_gp3,
  380. msm_mux_gpio,
  381. msm_mux_gp_pdm0,
  382. msm_mux_gp_pdm1,
  383. msm_mux_gp_pdm2,
  384. msm_mux_gsm0_tx,
  385. msm_mux_gsm1_tx,
  386. msm_mux_jitter_bist,
  387. msm_mux_mdp_vsync,
  388. msm_mux_mdp_vsync_out_0,
  389. msm_mux_mdp_vsync_out_1,
  390. msm_mux_mpm_pwr,
  391. msm_mux_mss_lte,
  392. msm_mux_m_voc,
  393. msm_mux_nav_gpio,
  394. msm_mux_pa_indicator,
  395. msm_mux_pbs,
  396. msm_mux_pbs_out,
  397. msm_mux_phase_flag,
  398. msm_mux_pll_bist,
  399. msm_mux_pll_bypassnl,
  400. msm_mux_pll_reset,
  401. msm_mux_prng_rosc,
  402. msm_mux_qdss_cti,
  403. msm_mux_qdss_gpio,
  404. msm_mux_qup0,
  405. msm_mux_qup1,
  406. msm_mux_qup2,
  407. msm_mux_qup3,
  408. msm_mux_qup4,
  409. msm_mux_qup5,
  410. msm_mux_sdc1_tb,
  411. msm_mux_sdc2_tb,
  412. msm_mux_sd_write,
  413. msm_mux_ssbi_wtr1,
  414. msm_mux_tgu,
  415. msm_mux_tsense_pwm,
  416. msm_mux_uim1_clk,
  417. msm_mux_uim1_data,
  418. msm_mux_uim1_present,
  419. msm_mux_uim1_reset,
  420. msm_mux_uim2_clk,
  421. msm_mux_uim2_data,
  422. msm_mux_uim2_present,
  423. msm_mux_uim2_reset,
  424. msm_mux_usb_phy,
  425. msm_mux_vfr_1,
  426. msm_mux_vsense_trigger,
  427. msm_mux_wlan1_adc0,
  428. msm_mux_wlan1_adc1,
  429. msm_mux__,
  430. };
  431. static const char * const qup0_groups[] = {
  432. "gpio0", "gpio1", "gpio2", "gpio3", "gpio82", "gpio86",
  433. };
  434. static const char * const gpio_groups[] = {
  435. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  436. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  437. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  438. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  439. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  440. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  441. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  442. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  443. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  444. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  445. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  446. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  447. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
  448. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
  449. "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
  450. "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
  451. "gpio111", "gpio112",
  452. };
  453. static const char * const ddr_bist_groups[] = {
  454. "gpio0", "gpio1", "gpio2", "gpio3",
  455. };
  456. static const char * const phase_flag_groups[] = {
  457. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6",
  458. "gpio14", "gpio15", "gpio16", "gpio17", "gpio22", "gpio23", "gpio24",
  459. "gpio25", "gpio26", "gpio29", "gpio30", "gpio31", "gpio32", "gpio33",
  460. "gpio35", "gpio36", "gpio43", "gpio44", "gpio45", "gpio63", "gpio64",
  461. "gpio102", "gpio103", "gpio104", "gpio105",
  462. };
  463. static const char * const qdss_gpio_groups[] = {
  464. "gpio0", "gpio1", "gpio2", "gpio3", "gpio8", "gpio9", "gpio10",
  465. "gpio11", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19",
  466. "gpio20", "gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26",
  467. "gpio47", "gpio48", "gpio69", "gpio70", "gpio87", "gpio90", "gpio91",
  468. "gpio94", "gpio95", "gpio104", "gpio105", "gpio106", "gpio107",
  469. "gpio109", "gpio110",
  470. };
  471. static const char * const atest_groups[] = {
  472. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6",
  473. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio29", "gpio30",
  474. "gpio31", "gpio32", "gpio33", "gpio86", "gpio87", "gpio88", "gpio89",
  475. "gpio100", "gpio101",
  476. };
  477. static const char * const mpm_pwr_groups[] = {
  478. "gpio1",
  479. };
  480. static const char * const m_voc_groups[] = {
  481. "gpio0",
  482. };
  483. static const char * const dac_calib_groups[] = {
  484. "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio14", "gpio15",
  485. "gpio16", "gpio17", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26",
  486. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio80", "gpio81",
  487. "gpio82", "gpio102", "gpio103", "gpio104", "gpio105"
  488. };
  489. static const char * const qup1_groups[] = {
  490. "gpio4", "gpio5", "gpio69", "gpio70",
  491. };
  492. static const char * const cri_trng_groups[] = {
  493. "gpio4", "gpio5", "gpio18",
  494. };
  495. static const char * const qup2_groups[] = {
  496. "gpio6", "gpio7", "gpio71", "gpio80",
  497. };
  498. static const char * const qup3_groups[] = {
  499. "gpio8", "gpio9", "gpio10", "gpio11",
  500. };
  501. static const char * const pbs_out_groups[] = {
  502. "gpio8", "gpio9", "gpio52",
  503. };
  504. static const char * const pll_bist_groups[] = {
  505. "gpio8", "gpio9",
  506. };
  507. static const char * const tsense_pwm_groups[] = {
  508. "gpio8",
  509. };
  510. static const char * const agera_pll_groups[] = {
  511. "gpio10", "gpio11",
  512. };
  513. static const char * const pbs_groups[] = {
  514. "gpio10", "gpio11", "gpio18", "gpio19", "gpio20", "gpio21", "gpio22",
  515. "gpio23", "gpio24", "gpio25", "gpio26", "gpio47", "gpio48", "gpio87",
  516. "gpio90", "gpio91",
  517. };
  518. static const char * const qup4_groups[] = {
  519. "gpio12", "gpio13", "gpio96", "gpio97",
  520. };
  521. static const char * const tgu_groups[] = {
  522. "gpio12", "gpio13", "gpio14", "gpio15",
  523. };
  524. static const char * const qup5_groups[] = {
  525. "gpio14", "gpio15", "gpio16", "gpio17",
  526. };
  527. static const char * const sdc2_tb_groups[] = {
  528. "gpio18",
  529. };
  530. static const char * const sdc1_tb_groups[] = {
  531. "gpio19",
  532. };
  533. static const char * const cam_mclk_groups[] = {
  534. "gpio20", "gpio21", "gpio27", "gpio28",
  535. };
  536. static const char * const adsp_ext_groups[] = {
  537. "gpio21",
  538. };
  539. static const char * const cci_i2c_groups[] = {
  540. "gpio22", "gpio23", "gpio29", "gpio30",
  541. };
  542. static const char * const prng_rosc_groups[] = {
  543. "gpio22", "gpio23",
  544. };
  545. static const char * const cci_timer_groups[] = {
  546. "gpio24", "gpio25", "gpio28", "gpio32",
  547. };
  548. static const char * const gcc_gp1_groups[] = {
  549. "gpio24", "gpio86",
  550. };
  551. static const char * const cci_async_groups[] = {
  552. "gpio25",
  553. };
  554. static const char * const vsense_trigger_groups[] = {
  555. "gpio26",
  556. };
  557. static const char * const qdss_cti_groups[] = {
  558. "gpio27", "gpio28", "gpio72", "gpio73", "gpio96", "gpio97",
  559. };
  560. static const char * const gp_pdm0_groups[] = {
  561. "gpio31", "gpio95",
  562. };
  563. static const char * const gp_pdm1_groups[] = {
  564. "gpio32", "gpio96",
  565. };
  566. static const char * const gp_pdm2_groups[] = {
  567. "gpio33", "gpio97",
  568. };
  569. static const char * const nav_gpio_groups[] = {
  570. "gpio42", "gpio47", "gpio52", "gpio95", "gpio96", "gpio97", "gpio106",
  571. "gpio107", "gpio108",
  572. };
  573. static const char * const vfr_1_groups[] = {
  574. "gpio48",
  575. };
  576. static const char * const pa_indicator_groups[] = {
  577. "gpio49",
  578. };
  579. static const char * const gsm1_tx_groups[] = {
  580. "gpio53",
  581. };
  582. static const char * const ssbi_wtr1_groups[] = {
  583. "gpio59", "gpio60",
  584. };
  585. static const char * const pll_bypassnl_groups[] = {
  586. "gpio62",
  587. };
  588. static const char * const pll_reset_groups[] = {
  589. "gpio63",
  590. };
  591. static const char * const ddr_pxi0_groups[] = {
  592. "gpio63", "gpio64",
  593. };
  594. static const char * const gsm0_tx_groups[] = {
  595. "gpio64",
  596. };
  597. static const char * const gcc_gp2_groups[] = {
  598. "gpio69", "gpio107",
  599. };
  600. static const char * const ddr_pxi1_groups[] = {
  601. "gpio69", "gpio70",
  602. };
  603. static const char * const gcc_gp3_groups[] = {
  604. "gpio70", "gpio106",
  605. };
  606. static const char * const dbg_out_groups[] = {
  607. "gpio71",
  608. };
  609. static const char * const uim2_data_groups[] = {
  610. "gpio72",
  611. };
  612. static const char * const uim2_clk_groups[] = {
  613. "gpio73",
  614. };
  615. static const char * const uim2_reset_groups[] = {
  616. "gpio74",
  617. };
  618. static const char * const uim2_present_groups[] = {
  619. "gpio75",
  620. };
  621. static const char * const uim1_data_groups[] = {
  622. "gpio76",
  623. };
  624. static const char * const uim1_clk_groups[] = {
  625. "gpio77",
  626. };
  627. static const char * const uim1_reset_groups[] = {
  628. "gpio78",
  629. };
  630. static const char * const uim1_present_groups[] = {
  631. "gpio79",
  632. };
  633. static const char * const mdp_vsync_groups[] = {
  634. "gpio81", "gpio96", "gpio97",
  635. };
  636. static const char * const mdp_vsync_out_0_groups[] = {
  637. "gpio81",
  638. };
  639. static const char * const mdp_vsync_out_1_groups[] = {
  640. "gpio81",
  641. };
  642. static const char * const usb_phy_groups[] = {
  643. "gpio89",
  644. };
  645. static const char * const mss_lte_groups[] = {
  646. "gpio90", "gpio91",
  647. };
  648. static const char * const wlan1_adc0_groups[] = {
  649. "gpio94",
  650. };
  651. static const char * const wlan1_adc1_groups[] = {
  652. "gpio95",
  653. };
  654. static const char * const sd_write_groups[] = {
  655. "gpio96",
  656. };
  657. static const char * const jitter_bist_groups[] = {
  658. "gpio96", "gpio97",
  659. };
  660. static const char * const ddr_pxi2_groups[] = {
  661. "gpio102", "gpio103",
  662. };
  663. static const char * const ddr_pxi3_groups[] = {
  664. "gpio104", "gpio105",
  665. };
  666. static const struct msm_function sm6115_functions[] = {
  667. FUNCTION(adsp_ext),
  668. FUNCTION(agera_pll),
  669. FUNCTION(atest),
  670. FUNCTION(cam_mclk),
  671. FUNCTION(cci_async),
  672. FUNCTION(cci_i2c),
  673. FUNCTION(cci_timer),
  674. FUNCTION(cri_trng),
  675. FUNCTION(dac_calib),
  676. FUNCTION(dbg_out),
  677. FUNCTION(ddr_bist),
  678. FUNCTION(ddr_pxi0),
  679. FUNCTION(ddr_pxi1),
  680. FUNCTION(ddr_pxi2),
  681. FUNCTION(ddr_pxi3),
  682. FUNCTION(gcc_gp1),
  683. FUNCTION(gcc_gp2),
  684. FUNCTION(gcc_gp3),
  685. FUNCTION(gpio),
  686. FUNCTION(gp_pdm0),
  687. FUNCTION(gp_pdm1),
  688. FUNCTION(gp_pdm2),
  689. FUNCTION(gsm0_tx),
  690. FUNCTION(gsm1_tx),
  691. FUNCTION(jitter_bist),
  692. FUNCTION(mdp_vsync),
  693. FUNCTION(mdp_vsync_out_0),
  694. FUNCTION(mdp_vsync_out_1),
  695. FUNCTION(mpm_pwr),
  696. FUNCTION(mss_lte),
  697. FUNCTION(m_voc),
  698. FUNCTION(nav_gpio),
  699. FUNCTION(pa_indicator),
  700. FUNCTION(pbs),
  701. FUNCTION(pbs_out),
  702. FUNCTION(phase_flag),
  703. FUNCTION(pll_bist),
  704. FUNCTION(pll_bypassnl),
  705. FUNCTION(pll_reset),
  706. FUNCTION(prng_rosc),
  707. FUNCTION(qdss_cti),
  708. FUNCTION(qdss_gpio),
  709. FUNCTION(qup0),
  710. FUNCTION(qup1),
  711. FUNCTION(qup2),
  712. FUNCTION(qup3),
  713. FUNCTION(qup4),
  714. FUNCTION(qup5),
  715. FUNCTION(sdc1_tb),
  716. FUNCTION(sdc2_tb),
  717. FUNCTION(sd_write),
  718. FUNCTION(ssbi_wtr1),
  719. FUNCTION(tgu),
  720. FUNCTION(tsense_pwm),
  721. FUNCTION(uim1_clk),
  722. FUNCTION(uim1_data),
  723. FUNCTION(uim1_present),
  724. FUNCTION(uim1_reset),
  725. FUNCTION(uim2_clk),
  726. FUNCTION(uim2_data),
  727. FUNCTION(uim2_present),
  728. FUNCTION(uim2_reset),
  729. FUNCTION(usb_phy),
  730. FUNCTION(vfr_1),
  731. FUNCTION(vsense_trigger),
  732. FUNCTION(wlan1_adc0),
  733. FUNCTION(wlan1_adc1),
  734. };
  735. /* Every pin is maintained as a single group, and missing or non-existing pin
  736. * would be maintained as dummy group to synchronize pin group index with
  737. * pin descriptor registered with pinctrl core.
  738. * Clients would not be able to request these dummy pin groups.
  739. */
  740. static const struct msm_pingroup sm6115_groups[] = {
  741. [0] = PINGROUP(0, WEST, qup0, m_voc, ddr_bist, _, phase_flag, qdss_gpio, atest, _, _),
  742. [1] = PINGROUP(1, WEST, qup0, mpm_pwr, ddr_bist, _, phase_flag, qdss_gpio, atest, _, _),
  743. [2] = PINGROUP(2, WEST, qup0, ddr_bist, _, phase_flag, qdss_gpio, dac_calib, atest, _, _),
  744. [3] = PINGROUP(3, WEST, qup0, ddr_bist, _, phase_flag, qdss_gpio, dac_calib, atest, _, _),
  745. [4] = PINGROUP(4, WEST, qup1, cri_trng, _, phase_flag, dac_calib, atest, _, _, _),
  746. [5] = PINGROUP(5, WEST, qup1, cri_trng, _, phase_flag, dac_calib, atest, _, _, _),
  747. [6] = PINGROUP(6, WEST, qup2, _, phase_flag, dac_calib, atest, _, _, _, _),
  748. [7] = PINGROUP(7, WEST, qup2, _, _, _, _, _, _, _, _),
  749. [8] = PINGROUP(8, EAST, qup3, pbs_out, pll_bist, _, qdss_gpio, _, tsense_pwm, _, _),
  750. [9] = PINGROUP(9, EAST, qup3, pbs_out, pll_bist, _, qdss_gpio, _, _, _, _),
  751. [10] = PINGROUP(10, EAST, qup3, agera_pll, _, pbs, qdss_gpio, _, _, _, _),
  752. [11] = PINGROUP(11, EAST, qup3, agera_pll, _, pbs, qdss_gpio, _, _, _, _),
  753. [12] = PINGROUP(12, WEST, qup4, tgu, _, _, _, _, _, _, _),
  754. [13] = PINGROUP(13, WEST, qup4, tgu, _, _, _, _, _, _, _),
  755. [14] = PINGROUP(14, WEST, qup5, tgu, _, phase_flag, qdss_gpio, dac_calib, _, _, _),
  756. [15] = PINGROUP(15, WEST, qup5, tgu, _, phase_flag, qdss_gpio, dac_calib, _, _, _),
  757. [16] = PINGROUP(16, WEST, qup5, _, phase_flag, qdss_gpio, dac_calib, _, _, _, _),
  758. [17] = PINGROUP(17, WEST, qup5, _, phase_flag, qdss_gpio, dac_calib, _, _, _, _),
  759. [18] = PINGROUP(18, EAST, sdc2_tb, cri_trng, pbs, qdss_gpio, _, _, _, _, _),
  760. [19] = PINGROUP(19, EAST, sdc1_tb, pbs, qdss_gpio, _, _, _, _, _, _),
  761. [20] = PINGROUP(20, EAST, cam_mclk, pbs, qdss_gpio, _, _, _, _, _, _),
  762. [21] = PINGROUP(21, EAST, cam_mclk, adsp_ext, pbs, qdss_gpio, _, _, _, _, _),
  763. [22] = PINGROUP(22, EAST, cci_i2c, prng_rosc, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
  764. [23] = PINGROUP(23, EAST, cci_i2c, prng_rosc, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
  765. [24] = PINGROUP(24, EAST, cci_timer, gcc_gp1, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
  766. [25] = PINGROUP(25, EAST, cci_async, cci_timer, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
  767. [26] = PINGROUP(26, EAST, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, vsense_trigger, _, _),
  768. [27] = PINGROUP(27, EAST, cam_mclk, qdss_cti, _, _, _, _, _, _, _),
  769. [28] = PINGROUP(28, EAST, cam_mclk, cci_timer, qdss_cti, _, _, _, _, _, _),
  770. [29] = PINGROUP(29, EAST, cci_i2c, _, phase_flag, dac_calib, atest, _, _, _, _),
  771. [30] = PINGROUP(30, EAST, cci_i2c, _, phase_flag, dac_calib, atest, _, _, _, _),
  772. [31] = PINGROUP(31, EAST, gp_pdm0, _, phase_flag, dac_calib, atest, _, _, _, _),
  773. [32] = PINGROUP(32, EAST, cci_timer, gp_pdm1, _, phase_flag, dac_calib, atest, _, _, _),
  774. [33] = PINGROUP(33, EAST, gp_pdm2, _, phase_flag, dac_calib, atest, _, _, _, _),
  775. [34] = PINGROUP(34, EAST, _, _, _, _, _, _, _, _, _),
  776. [35] = PINGROUP(35, EAST, _, phase_flag, _, _, _, _, _, _, _),
  777. [36] = PINGROUP(36, EAST, _, phase_flag, _, _, _, _, _, _, _),
  778. [37] = PINGROUP(37, EAST, _, _, _, _, _, _, _, _, _),
  779. [38] = PINGROUP(38, EAST, _, _, _, _, _, _, _, _, _),
  780. [39] = PINGROUP(39, EAST, _, _, _, _, _, _, _, _, _),
  781. [40] = PINGROUP(40, EAST, _, _, _, _, _, _, _, _, _),
  782. [41] = PINGROUP(41, EAST, _, _, _, _, _, _, _, _, _),
  783. [42] = PINGROUP(42, EAST, _, nav_gpio, _, _, _, _, _, _, _),
  784. [43] = PINGROUP(43, EAST, _, _, phase_flag, _, _, _, _, _, _),
  785. [44] = PINGROUP(44, EAST, _, _, phase_flag, _, _, _, _, _, _),
  786. [45] = PINGROUP(45, EAST, _, _, phase_flag, _, _, _, _, _, _),
  787. [46] = PINGROUP(46, EAST, _, _, _, _, _, _, _, _, _),
  788. [47] = PINGROUP(47, EAST, _, nav_gpio, pbs, qdss_gpio, _, _, _, _, _),
  789. [48] = PINGROUP(48, EAST, _, vfr_1, _, pbs, qdss_gpio, _, _, _, _),
  790. [49] = PINGROUP(49, EAST, _, pa_indicator, _, _, _, _, _, _, _),
  791. [50] = PINGROUP(50, EAST, _, _, _, _, _, _, _, _, _),
  792. [51] = PINGROUP(51, EAST, _, _, _, _, _, _, _, _, _),
  793. [52] = PINGROUP(52, EAST, _, nav_gpio, pbs_out, _, _, _, _, _, _),
  794. [53] = PINGROUP(53, EAST, _, gsm1_tx, _, _, _, _, _, _, _),
  795. [54] = PINGROUP(54, EAST, _, _, _, _, _, _, _, _, _),
  796. [55] = PINGROUP(55, EAST, _, _, _, _, _, _, _, _, _),
  797. [56] = PINGROUP(56, EAST, _, _, _, _, _, _, _, _, _),
  798. [57] = PINGROUP(57, EAST, _, _, _, _, _, _, _, _, _),
  799. [58] = PINGROUP(58, EAST, _, _, _, _, _, _, _, _, _),
  800. [59] = PINGROUP(59, EAST, _, ssbi_wtr1, _, _, _, _, _, _, _),
  801. [60] = PINGROUP(60, EAST, _, ssbi_wtr1, _, _, _, _, _, _, _),
  802. [61] = PINGROUP(61, EAST, _, _, _, _, _, _, _, _, _),
  803. [62] = PINGROUP(62, EAST, _, pll_bypassnl, _, _, _, _, _, _, _),
  804. [63] = PINGROUP(63, EAST, pll_reset, _, phase_flag, ddr_pxi0, _, _, _, _, _),
  805. [64] = PINGROUP(64, EAST, gsm0_tx, _, phase_flag, ddr_pxi0, _, _, _, _, _),
  806. [65] = PINGROUP(65, WEST, _, _, _, _, _, _, _, _, _),
  807. [66] = PINGROUP(66, WEST, _, _, _, _, _, _, _, _, _),
  808. [67] = PINGROUP(67, WEST, _, _, _, _, _, _, _, _, _),
  809. [68] = PINGROUP(68, WEST, _, _, _, _, _, _, _, _, _),
  810. [69] = PINGROUP(69, WEST, qup1, gcc_gp2, qdss_gpio, ddr_pxi1, _, _, _, _, _),
  811. [70] = PINGROUP(70, WEST, qup1, gcc_gp3, qdss_gpio, ddr_pxi1, _, _, _, _, _),
  812. [71] = PINGROUP(71, WEST, qup2, dbg_out, _, _, _, _, _, _, _),
  813. [72] = PINGROUP(72, SOUTH, uim2_data, qdss_cti, _, _, _, _, _, _, _),
  814. [73] = PINGROUP(73, SOUTH, uim2_clk, _, qdss_cti, _, _, _, _, _, _),
  815. [74] = PINGROUP(74, SOUTH, uim2_reset, _, _, _, _, _, _, _, _),
  816. [75] = PINGROUP(75, SOUTH, uim2_present, _, _, _, _, _, _, _, _),
  817. [76] = PINGROUP(76, SOUTH, uim1_data, _, _, _, _, _, _, _, _),
  818. [77] = PINGROUP(77, SOUTH, uim1_clk, _, _, _, _, _, _, _, _),
  819. [78] = PINGROUP(78, SOUTH, uim1_reset, _, _, _, _, _, _, _, _),
  820. [79] = PINGROUP(79, SOUTH, uim1_present, _, _, _, _, _, _, _, _),
  821. [80] = PINGROUP(80, WEST, qup2, dac_calib, _, _, _, _, _, _, _),
  822. [81] = PINGROUP(81, WEST, mdp_vsync_out_0, mdp_vsync_out_1, mdp_vsync, dac_calib, _, _, _, _, _),
  823. [82] = PINGROUP(82, WEST, qup0, dac_calib, _, _, _, _, _, _, _),
  824. [83] = PINGROUP(83, WEST, _, _, _, _, _, _, _, _, _),
  825. [84] = PINGROUP(84, WEST, _, _, _, _, _, _, _, _, _),
  826. [85] = PINGROUP(85, WEST, _, _, _, _, _, _, _, _, _),
  827. [86] = PINGROUP(86, WEST, qup0, gcc_gp1, atest, _, _, _, _, _, _),
  828. [87] = PINGROUP(87, EAST, pbs, qdss_gpio, _, _, _, _, _, _, _),
  829. [88] = PINGROUP(88, EAST, _, _, _, _, _, _, _, _, _),
  830. [89] = PINGROUP(89, WEST, usb_phy, atest, _, _, _, _, _, _, _),
  831. [90] = PINGROUP(90, EAST, mss_lte, pbs, qdss_gpio, _, _, _, _, _, _),
  832. [91] = PINGROUP(91, EAST, mss_lte, pbs, qdss_gpio, _, _, _, _, _, _),
  833. [92] = PINGROUP(92, WEST, _, _, _, _, _, _, _, _, _),
  834. [93] = PINGROUP(93, WEST, _, _, _, _, _, _, _, _, _),
  835. [94] = PINGROUP(94, WEST, _, qdss_gpio, wlan1_adc0, _, _, _, _, _, _),
  836. [95] = PINGROUP(95, WEST, nav_gpio, gp_pdm0, qdss_gpio, wlan1_adc1, _, _, _, _, _),
  837. [96] = PINGROUP(96, WEST, qup4, nav_gpio, mdp_vsync, gp_pdm1, sd_write, jitter_bist, qdss_cti, qdss_cti, _),
  838. [97] = PINGROUP(97, WEST, qup4, nav_gpio, mdp_vsync, gp_pdm2, jitter_bist, qdss_cti, qdss_cti, _, _),
  839. [98] = PINGROUP(98, SOUTH, _, _, _, _, _, _, _, _, _),
  840. [99] = PINGROUP(99, SOUTH, _, _, _, _, _, _, _, _, _),
  841. [100] = PINGROUP(100, SOUTH, atest, _, _, _, _, _, _, _, _),
  842. [101] = PINGROUP(101, SOUTH, atest, _, _, _, _, _, _, _, _),
  843. [102] = PINGROUP(102, SOUTH, _, phase_flag, dac_calib, ddr_pxi2, _, _, _, _, _),
  844. [103] = PINGROUP(103, SOUTH, _, phase_flag, dac_calib, ddr_pxi2, _, _, _, _, _),
  845. [104] = PINGROUP(104, SOUTH, _, phase_flag, qdss_gpio, dac_calib, ddr_pxi3, _, _, _, _),
  846. [105] = PINGROUP(105, SOUTH, _, phase_flag, qdss_gpio, dac_calib, ddr_pxi3, _, _, _, _),
  847. [106] = PINGROUP(106, SOUTH, nav_gpio, gcc_gp3, qdss_gpio, _, _, _, _, _, _),
  848. [107] = PINGROUP(107, SOUTH, nav_gpio, gcc_gp2, qdss_gpio, _, _, _, _, _, _),
  849. [108] = PINGROUP(108, SOUTH, nav_gpio, _, _, _, _, _, _, _, _),
  850. [109] = PINGROUP(109, SOUTH, _, qdss_gpio, _, _, _, _, _, _, _),
  851. [110] = PINGROUP(110, SOUTH, _, qdss_gpio, _, _, _, _, _, _, _),
  852. [111] = PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _),
  853. [112] = PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _),
  854. [113] = UFS_RESET(ufs_reset, 0x78000),
  855. [114] = SDC_QDSD_PINGROUP(sdc1_rclk, WEST, 0x75000, 15, 0),
  856. [115] = SDC_QDSD_PINGROUP(sdc1_clk, WEST, 0x75000, 13, 6),
  857. [116] = SDC_QDSD_PINGROUP(sdc1_cmd, WEST, 0x75000, 11, 3),
  858. [117] = SDC_QDSD_PINGROUP(sdc1_data, WEST, 0x75000, 9, 0),
  859. [118] = SDC_QDSD_PINGROUP(sdc2_clk, SOUTH, 0x73000, 14, 6),
  860. [119] = SDC_QDSD_PINGROUP(sdc2_cmd, SOUTH, 0x73000, 11, 3),
  861. [120] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x73000, 9, 0),
  862. };
  863. static const struct msm_pinctrl_soc_data sm6115_tlmm = {
  864. .pins = sm6115_pins,
  865. .npins = ARRAY_SIZE(sm6115_pins),
  866. .functions = sm6115_functions,
  867. .nfunctions = ARRAY_SIZE(sm6115_functions),
  868. .groups = sm6115_groups,
  869. .ngroups = ARRAY_SIZE(sm6115_groups),
  870. .ngpios = 114,
  871. .tiles = sm6115_tiles,
  872. .ntiles = ARRAY_SIZE(sm6115_tiles),
  873. };
  874. static int sm6115_tlmm_probe(struct platform_device *pdev)
  875. {
  876. return msm_pinctrl_probe(pdev, &sm6115_tlmm);
  877. }
  878. static const struct of_device_id sm6115_tlmm_of_match[] = {
  879. { .compatible = "qcom,sm6115-tlmm", },
  880. { }
  881. };
  882. static struct platform_driver sm6115_tlmm_driver = {
  883. .driver = {
  884. .name = "sm6115-tlmm",
  885. .of_match_table = sm6115_tlmm_of_match,
  886. },
  887. .probe = sm6115_tlmm_probe,
  888. .remove = msm_pinctrl_remove,
  889. };
  890. static int __init sm6115_tlmm_init(void)
  891. {
  892. return platform_driver_register(&sm6115_tlmm_driver);
  893. }
  894. arch_initcall(sm6115_tlmm_init);
  895. static void __exit sm6115_tlmm_exit(void)
  896. {
  897. platform_driver_unregister(&sm6115_tlmm_driver);
  898. }
  899. module_exit(sm6115_tlmm_exit);
  900. MODULE_DESCRIPTION("QTI sm6115 tlmm driver");
  901. MODULE_LICENSE("GPL v2");
  902. MODULE_DEVICE_TABLE(of, sm6115_tlmm_of_match);