pinctrl-msm8994.c 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380
  1. /*
  2. * Copyright (c) 2016, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #include <linux/module.h>
  14. #include <linux/of.h>
  15. #include <linux/platform_device.h>
  16. #include <linux/pinctrl/pinctrl.h>
  17. #include "pinctrl-msm.h"
  18. #define FUNCTION(fname) \
  19. [MSM_MUX_##fname] = { \
  20. .name = #fname, \
  21. .groups = fname##_groups, \
  22. .ngroups = ARRAY_SIZE(fname##_groups), \
  23. }
  24. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11) \
  25. { \
  26. .name = "gpio" #id, \
  27. .pins = gpio##id##_pins, \
  28. .npins = ARRAY_SIZE(gpio##id##_pins), \
  29. .funcs = (int[]){ \
  30. MSM_MUX_gpio, \
  31. MSM_MUX_##f1, \
  32. MSM_MUX_##f2, \
  33. MSM_MUX_##f3, \
  34. MSM_MUX_##f4, \
  35. MSM_MUX_##f5, \
  36. MSM_MUX_##f6, \
  37. MSM_MUX_##f7, \
  38. MSM_MUX_##f8, \
  39. MSM_MUX_##f9, \
  40. MSM_MUX_##f10, \
  41. MSM_MUX_##f11 \
  42. }, \
  43. .nfuncs = 12, \
  44. .ctl_reg = 0x1000 + 0x10 * id, \
  45. .io_reg = 0x1004 + 0x10 * id, \
  46. .intr_cfg_reg = 0x1008 + 0x10 * id, \
  47. .intr_status_reg = 0x100c + 0x10 * id, \
  48. .intr_target_reg = 0x1008 + 0x10 * id, \
  49. .mux_bit = 2, \
  50. .pull_bit = 0, \
  51. .drv_bit = 6, \
  52. .oe_bit = 9, \
  53. .in_bit = 0, \
  54. .out_bit = 1, \
  55. .intr_enable_bit = 0, \
  56. .intr_status_bit = 0, \
  57. .intr_target_bit = 5, \
  58. .intr_target_kpss_val = 4, \
  59. .intr_raw_status_bit = 4, \
  60. .intr_polarity_bit = 1, \
  61. .intr_detection_bit = 2, \
  62. .intr_detection_width = 2, \
  63. }
  64. #define SDC_PINGROUP(pg_name, ctl, pull, drv) \
  65. { \
  66. .name = #pg_name, \
  67. .pins = pg_name##_pins, \
  68. .npins = ARRAY_SIZE(pg_name##_pins), \
  69. .ctl_reg = ctl, \
  70. .io_reg = 0, \
  71. .intr_cfg_reg = 0, \
  72. .intr_status_reg = 0, \
  73. .intr_target_reg = 0, \
  74. .mux_bit = -1, \
  75. .pull_bit = pull, \
  76. .drv_bit = drv, \
  77. .oe_bit = -1, \
  78. .in_bit = -1, \
  79. .out_bit = -1, \
  80. .intr_enable_bit = -1, \
  81. .intr_status_bit = -1, \
  82. .intr_target_bit = -1, \
  83. .intr_target_kpss_val = -1, \
  84. .intr_raw_status_bit = -1, \
  85. .intr_polarity_bit = -1, \
  86. .intr_detection_bit = -1, \
  87. .intr_detection_width = -1, \
  88. }
  89. static const struct pinctrl_pin_desc msm8994_pins[] = {
  90. PINCTRL_PIN(0, "GPIO_0"),
  91. PINCTRL_PIN(1, "GPIO_1"),
  92. PINCTRL_PIN(2, "GPIO_2"),
  93. PINCTRL_PIN(3, "GPIO_3"),
  94. PINCTRL_PIN(4, "GPIO_4"),
  95. PINCTRL_PIN(5, "GPIO_5"),
  96. PINCTRL_PIN(6, "GPIO_6"),
  97. PINCTRL_PIN(7, "GPIO_7"),
  98. PINCTRL_PIN(8, "GPIO_8"),
  99. PINCTRL_PIN(9, "GPIO_9"),
  100. PINCTRL_PIN(10, "GPIO_10"),
  101. PINCTRL_PIN(11, "GPIO_11"),
  102. PINCTRL_PIN(12, "GPIO_12"),
  103. PINCTRL_PIN(13, "GPIO_13"),
  104. PINCTRL_PIN(14, "GPIO_14"),
  105. PINCTRL_PIN(15, "GPIO_15"),
  106. PINCTRL_PIN(16, "GPIO_16"),
  107. PINCTRL_PIN(17, "GPIO_17"),
  108. PINCTRL_PIN(18, "GPIO_18"),
  109. PINCTRL_PIN(19, "GPIO_19"),
  110. PINCTRL_PIN(20, "GPIO_20"),
  111. PINCTRL_PIN(21, "GPIO_21"),
  112. PINCTRL_PIN(22, "GPIO_22"),
  113. PINCTRL_PIN(23, "GPIO_23"),
  114. PINCTRL_PIN(24, "GPIO_24"),
  115. PINCTRL_PIN(25, "GPIO_25"),
  116. PINCTRL_PIN(26, "GPIO_26"),
  117. PINCTRL_PIN(27, "GPIO_27"),
  118. PINCTRL_PIN(28, "GPIO_28"),
  119. PINCTRL_PIN(29, "GPIO_29"),
  120. PINCTRL_PIN(30, "GPIO_30"),
  121. PINCTRL_PIN(31, "GPIO_31"),
  122. PINCTRL_PIN(32, "GPIO_32"),
  123. PINCTRL_PIN(33, "GPIO_33"),
  124. PINCTRL_PIN(34, "GPIO_34"),
  125. PINCTRL_PIN(35, "GPIO_35"),
  126. PINCTRL_PIN(36, "GPIO_36"),
  127. PINCTRL_PIN(37, "GPIO_37"),
  128. PINCTRL_PIN(38, "GPIO_38"),
  129. PINCTRL_PIN(39, "GPIO_39"),
  130. PINCTRL_PIN(40, "GPIO_40"),
  131. PINCTRL_PIN(41, "GPIO_41"),
  132. PINCTRL_PIN(42, "GPIO_42"),
  133. PINCTRL_PIN(43, "GPIO_43"),
  134. PINCTRL_PIN(44, "GPIO_44"),
  135. PINCTRL_PIN(45, "GPIO_45"),
  136. PINCTRL_PIN(46, "GPIO_46"),
  137. PINCTRL_PIN(47, "GPIO_47"),
  138. PINCTRL_PIN(48, "GPIO_48"),
  139. PINCTRL_PIN(49, "GPIO_49"),
  140. PINCTRL_PIN(50, "GPIO_50"),
  141. PINCTRL_PIN(51, "GPIO_51"),
  142. PINCTRL_PIN(52, "GPIO_52"),
  143. PINCTRL_PIN(53, "GPIO_53"),
  144. PINCTRL_PIN(54, "GPIO_54"),
  145. PINCTRL_PIN(55, "GPIO_55"),
  146. PINCTRL_PIN(56, "GPIO_56"),
  147. PINCTRL_PIN(57, "GPIO_57"),
  148. PINCTRL_PIN(58, "GPIO_58"),
  149. PINCTRL_PIN(59, "GPIO_59"),
  150. PINCTRL_PIN(60, "GPIO_60"),
  151. PINCTRL_PIN(61, "GPIO_61"),
  152. PINCTRL_PIN(62, "GPIO_62"),
  153. PINCTRL_PIN(63, "GPIO_63"),
  154. PINCTRL_PIN(64, "GPIO_64"),
  155. PINCTRL_PIN(65, "GPIO_65"),
  156. PINCTRL_PIN(66, "GPIO_66"),
  157. PINCTRL_PIN(67, "GPIO_67"),
  158. PINCTRL_PIN(68, "GPIO_68"),
  159. PINCTRL_PIN(69, "GPIO_69"),
  160. PINCTRL_PIN(70, "GPIO_70"),
  161. PINCTRL_PIN(71, "GPIO_71"),
  162. PINCTRL_PIN(72, "GPIO_72"),
  163. PINCTRL_PIN(73, "GPIO_73"),
  164. PINCTRL_PIN(74, "GPIO_74"),
  165. PINCTRL_PIN(75, "GPIO_75"),
  166. PINCTRL_PIN(76, "GPIO_76"),
  167. PINCTRL_PIN(77, "GPIO_77"),
  168. PINCTRL_PIN(78, "GPIO_78"),
  169. PINCTRL_PIN(79, "GPIO_79"),
  170. PINCTRL_PIN(80, "GPIO_80"),
  171. PINCTRL_PIN(81, "GPIO_81"),
  172. PINCTRL_PIN(82, "GPIO_82"),
  173. PINCTRL_PIN(83, "GPIO_83"),
  174. PINCTRL_PIN(84, "GPIO_84"),
  175. PINCTRL_PIN(85, "GPIO_85"),
  176. PINCTRL_PIN(86, "GPIO_86"),
  177. PINCTRL_PIN(87, "GPIO_87"),
  178. PINCTRL_PIN(88, "GPIO_88"),
  179. PINCTRL_PIN(89, "GPIO_89"),
  180. PINCTRL_PIN(90, "GPIO_90"),
  181. PINCTRL_PIN(91, "GPIO_91"),
  182. PINCTRL_PIN(92, "GPIO_92"),
  183. PINCTRL_PIN(93, "GPIO_93"),
  184. PINCTRL_PIN(94, "GPIO_94"),
  185. PINCTRL_PIN(95, "GPIO_95"),
  186. PINCTRL_PIN(96, "GPIO_96"),
  187. PINCTRL_PIN(97, "GPIO_97"),
  188. PINCTRL_PIN(98, "GPIO_98"),
  189. PINCTRL_PIN(99, "GPIO_99"),
  190. PINCTRL_PIN(100, "GPIO_100"),
  191. PINCTRL_PIN(101, "GPIO_101"),
  192. PINCTRL_PIN(102, "GPIO_102"),
  193. PINCTRL_PIN(103, "GPIO_103"),
  194. PINCTRL_PIN(104, "GPIO_104"),
  195. PINCTRL_PIN(105, "GPIO_105"),
  196. PINCTRL_PIN(106, "GPIO_106"),
  197. PINCTRL_PIN(107, "GPIO_107"),
  198. PINCTRL_PIN(108, "GPIO_108"),
  199. PINCTRL_PIN(109, "GPIO_109"),
  200. PINCTRL_PIN(110, "GPIO_110"),
  201. PINCTRL_PIN(111, "GPIO_111"),
  202. PINCTRL_PIN(112, "GPIO_112"),
  203. PINCTRL_PIN(113, "GPIO_113"),
  204. PINCTRL_PIN(114, "GPIO_114"),
  205. PINCTRL_PIN(115, "GPIO_115"),
  206. PINCTRL_PIN(116, "GPIO_116"),
  207. PINCTRL_PIN(117, "GPIO_117"),
  208. PINCTRL_PIN(118, "GPIO_118"),
  209. PINCTRL_PIN(119, "GPIO_119"),
  210. PINCTRL_PIN(120, "GPIO_120"),
  211. PINCTRL_PIN(121, "GPIO_121"),
  212. PINCTRL_PIN(122, "GPIO_122"),
  213. PINCTRL_PIN(123, "GPIO_123"),
  214. PINCTRL_PIN(124, "GPIO_124"),
  215. PINCTRL_PIN(125, "GPIO_125"),
  216. PINCTRL_PIN(126, "GPIO_126"),
  217. PINCTRL_PIN(127, "GPIO_127"),
  218. PINCTRL_PIN(128, "GPIO_128"),
  219. PINCTRL_PIN(129, "GPIO_129"),
  220. PINCTRL_PIN(130, "GPIO_130"),
  221. PINCTRL_PIN(131, "GPIO_131"),
  222. PINCTRL_PIN(132, "GPIO_132"),
  223. PINCTRL_PIN(133, "GPIO_133"),
  224. PINCTRL_PIN(134, "GPIO_134"),
  225. PINCTRL_PIN(135, "GPIO_135"),
  226. PINCTRL_PIN(136, "GPIO_136"),
  227. PINCTRL_PIN(137, "GPIO_137"),
  228. PINCTRL_PIN(138, "GPIO_138"),
  229. PINCTRL_PIN(139, "GPIO_139"),
  230. PINCTRL_PIN(140, "GPIO_140"),
  231. PINCTRL_PIN(141, "GPIO_141"),
  232. PINCTRL_PIN(142, "GPIO_142"),
  233. PINCTRL_PIN(143, "GPIO_143"),
  234. PINCTRL_PIN(144, "GPIO_144"),
  235. PINCTRL_PIN(145, "GPIO_145"),
  236. PINCTRL_PIN(146, "SDC1_RCLK"),
  237. PINCTRL_PIN(147, "SDC1_CLK"),
  238. PINCTRL_PIN(148, "SDC1_CMD"),
  239. PINCTRL_PIN(149, "SDC1_DATA"),
  240. PINCTRL_PIN(150, "SDC2_CLK"),
  241. PINCTRL_PIN(151, "SDC2_CMD"),
  242. PINCTRL_PIN(152, "SDC2_DATA"),
  243. PINCTRL_PIN(153, "SDC3_CLK"),
  244. PINCTRL_PIN(154, "SDC3_CMD"),
  245. PINCTRL_PIN(155, "SDC3_DATA"),
  246. };
  247. #define DECLARE_MSM_GPIO_PINS(pin) \
  248. static const unsigned int gpio##pin##_pins[] = { pin }
  249. DECLARE_MSM_GPIO_PINS(0);
  250. DECLARE_MSM_GPIO_PINS(1);
  251. DECLARE_MSM_GPIO_PINS(2);
  252. DECLARE_MSM_GPIO_PINS(3);
  253. DECLARE_MSM_GPIO_PINS(4);
  254. DECLARE_MSM_GPIO_PINS(5);
  255. DECLARE_MSM_GPIO_PINS(6);
  256. DECLARE_MSM_GPIO_PINS(7);
  257. DECLARE_MSM_GPIO_PINS(8);
  258. DECLARE_MSM_GPIO_PINS(9);
  259. DECLARE_MSM_GPIO_PINS(10);
  260. DECLARE_MSM_GPIO_PINS(11);
  261. DECLARE_MSM_GPIO_PINS(12);
  262. DECLARE_MSM_GPIO_PINS(13);
  263. DECLARE_MSM_GPIO_PINS(14);
  264. DECLARE_MSM_GPIO_PINS(15);
  265. DECLARE_MSM_GPIO_PINS(16);
  266. DECLARE_MSM_GPIO_PINS(17);
  267. DECLARE_MSM_GPIO_PINS(18);
  268. DECLARE_MSM_GPIO_PINS(19);
  269. DECLARE_MSM_GPIO_PINS(20);
  270. DECLARE_MSM_GPIO_PINS(21);
  271. DECLARE_MSM_GPIO_PINS(22);
  272. DECLARE_MSM_GPIO_PINS(23);
  273. DECLARE_MSM_GPIO_PINS(24);
  274. DECLARE_MSM_GPIO_PINS(25);
  275. DECLARE_MSM_GPIO_PINS(26);
  276. DECLARE_MSM_GPIO_PINS(27);
  277. DECLARE_MSM_GPIO_PINS(28);
  278. DECLARE_MSM_GPIO_PINS(29);
  279. DECLARE_MSM_GPIO_PINS(30);
  280. DECLARE_MSM_GPIO_PINS(31);
  281. DECLARE_MSM_GPIO_PINS(32);
  282. DECLARE_MSM_GPIO_PINS(33);
  283. DECLARE_MSM_GPIO_PINS(34);
  284. DECLARE_MSM_GPIO_PINS(35);
  285. DECLARE_MSM_GPIO_PINS(36);
  286. DECLARE_MSM_GPIO_PINS(37);
  287. DECLARE_MSM_GPIO_PINS(38);
  288. DECLARE_MSM_GPIO_PINS(39);
  289. DECLARE_MSM_GPIO_PINS(40);
  290. DECLARE_MSM_GPIO_PINS(41);
  291. DECLARE_MSM_GPIO_PINS(42);
  292. DECLARE_MSM_GPIO_PINS(43);
  293. DECLARE_MSM_GPIO_PINS(44);
  294. DECLARE_MSM_GPIO_PINS(45);
  295. DECLARE_MSM_GPIO_PINS(46);
  296. DECLARE_MSM_GPIO_PINS(47);
  297. DECLARE_MSM_GPIO_PINS(48);
  298. DECLARE_MSM_GPIO_PINS(49);
  299. DECLARE_MSM_GPIO_PINS(50);
  300. DECLARE_MSM_GPIO_PINS(51);
  301. DECLARE_MSM_GPIO_PINS(52);
  302. DECLARE_MSM_GPIO_PINS(53);
  303. DECLARE_MSM_GPIO_PINS(54);
  304. DECLARE_MSM_GPIO_PINS(55);
  305. DECLARE_MSM_GPIO_PINS(56);
  306. DECLARE_MSM_GPIO_PINS(57);
  307. DECLARE_MSM_GPIO_PINS(58);
  308. DECLARE_MSM_GPIO_PINS(59);
  309. DECLARE_MSM_GPIO_PINS(60);
  310. DECLARE_MSM_GPIO_PINS(61);
  311. DECLARE_MSM_GPIO_PINS(62);
  312. DECLARE_MSM_GPIO_PINS(63);
  313. DECLARE_MSM_GPIO_PINS(64);
  314. DECLARE_MSM_GPIO_PINS(65);
  315. DECLARE_MSM_GPIO_PINS(66);
  316. DECLARE_MSM_GPIO_PINS(67);
  317. DECLARE_MSM_GPIO_PINS(68);
  318. DECLARE_MSM_GPIO_PINS(69);
  319. DECLARE_MSM_GPIO_PINS(70);
  320. DECLARE_MSM_GPIO_PINS(71);
  321. DECLARE_MSM_GPIO_PINS(72);
  322. DECLARE_MSM_GPIO_PINS(73);
  323. DECLARE_MSM_GPIO_PINS(74);
  324. DECLARE_MSM_GPIO_PINS(75);
  325. DECLARE_MSM_GPIO_PINS(76);
  326. DECLARE_MSM_GPIO_PINS(77);
  327. DECLARE_MSM_GPIO_PINS(78);
  328. DECLARE_MSM_GPIO_PINS(79);
  329. DECLARE_MSM_GPIO_PINS(80);
  330. DECLARE_MSM_GPIO_PINS(81);
  331. DECLARE_MSM_GPIO_PINS(82);
  332. DECLARE_MSM_GPIO_PINS(83);
  333. DECLARE_MSM_GPIO_PINS(84);
  334. DECLARE_MSM_GPIO_PINS(85);
  335. DECLARE_MSM_GPIO_PINS(86);
  336. DECLARE_MSM_GPIO_PINS(87);
  337. DECLARE_MSM_GPIO_PINS(88);
  338. DECLARE_MSM_GPIO_PINS(89);
  339. DECLARE_MSM_GPIO_PINS(90);
  340. DECLARE_MSM_GPIO_PINS(91);
  341. DECLARE_MSM_GPIO_PINS(92);
  342. DECLARE_MSM_GPIO_PINS(93);
  343. DECLARE_MSM_GPIO_PINS(94);
  344. DECLARE_MSM_GPIO_PINS(95);
  345. DECLARE_MSM_GPIO_PINS(96);
  346. DECLARE_MSM_GPIO_PINS(97);
  347. DECLARE_MSM_GPIO_PINS(98);
  348. DECLARE_MSM_GPIO_PINS(99);
  349. DECLARE_MSM_GPIO_PINS(100);
  350. DECLARE_MSM_GPIO_PINS(101);
  351. DECLARE_MSM_GPIO_PINS(102);
  352. DECLARE_MSM_GPIO_PINS(103);
  353. DECLARE_MSM_GPIO_PINS(104);
  354. DECLARE_MSM_GPIO_PINS(105);
  355. DECLARE_MSM_GPIO_PINS(106);
  356. DECLARE_MSM_GPIO_PINS(107);
  357. DECLARE_MSM_GPIO_PINS(108);
  358. DECLARE_MSM_GPIO_PINS(109);
  359. DECLARE_MSM_GPIO_PINS(110);
  360. DECLARE_MSM_GPIO_PINS(111);
  361. DECLARE_MSM_GPIO_PINS(112);
  362. DECLARE_MSM_GPIO_PINS(113);
  363. DECLARE_MSM_GPIO_PINS(114);
  364. DECLARE_MSM_GPIO_PINS(115);
  365. DECLARE_MSM_GPIO_PINS(116);
  366. DECLARE_MSM_GPIO_PINS(117);
  367. DECLARE_MSM_GPIO_PINS(118);
  368. DECLARE_MSM_GPIO_PINS(119);
  369. DECLARE_MSM_GPIO_PINS(120);
  370. DECLARE_MSM_GPIO_PINS(121);
  371. DECLARE_MSM_GPIO_PINS(122);
  372. DECLARE_MSM_GPIO_PINS(123);
  373. DECLARE_MSM_GPIO_PINS(124);
  374. DECLARE_MSM_GPIO_PINS(125);
  375. DECLARE_MSM_GPIO_PINS(126);
  376. DECLARE_MSM_GPIO_PINS(127);
  377. DECLARE_MSM_GPIO_PINS(128);
  378. DECLARE_MSM_GPIO_PINS(129);
  379. DECLARE_MSM_GPIO_PINS(130);
  380. DECLARE_MSM_GPIO_PINS(131);
  381. DECLARE_MSM_GPIO_PINS(132);
  382. DECLARE_MSM_GPIO_PINS(133);
  383. DECLARE_MSM_GPIO_PINS(134);
  384. DECLARE_MSM_GPIO_PINS(135);
  385. DECLARE_MSM_GPIO_PINS(136);
  386. DECLARE_MSM_GPIO_PINS(137);
  387. DECLARE_MSM_GPIO_PINS(138);
  388. DECLARE_MSM_GPIO_PINS(139);
  389. DECLARE_MSM_GPIO_PINS(140);
  390. DECLARE_MSM_GPIO_PINS(141);
  391. DECLARE_MSM_GPIO_PINS(142);
  392. DECLARE_MSM_GPIO_PINS(143);
  393. DECLARE_MSM_GPIO_PINS(144);
  394. DECLARE_MSM_GPIO_PINS(145);
  395. static const unsigned int sdc1_rclk_pins[] = { 146 };
  396. static const unsigned int sdc1_clk_pins[] = { 147 };
  397. static const unsigned int sdc1_cmd_pins[] = { 148 };
  398. static const unsigned int sdc1_data_pins[] = { 149 };
  399. static const unsigned int sdc2_clk_pins[] = { 150 };
  400. static const unsigned int sdc2_cmd_pins[] = { 151 };
  401. static const unsigned int sdc2_data_pins[] = { 152 };
  402. static const unsigned int sdc3_clk_pins[] = { 153 };
  403. static const unsigned int sdc3_cmd_pins[] = { 154 };
  404. static const unsigned int sdc3_data_pins[] = { 155 };
  405. enum msm8994_functions {
  406. MSM_MUX_audio_ref_clk,
  407. MSM_MUX_blsp_i2c1,
  408. MSM_MUX_blsp_i2c2,
  409. MSM_MUX_blsp_i2c3,
  410. MSM_MUX_blsp_i2c4,
  411. MSM_MUX_blsp_i2c5,
  412. MSM_MUX_blsp_i2c6,
  413. MSM_MUX_blsp_i2c7,
  414. MSM_MUX_blsp_i2c8,
  415. MSM_MUX_blsp_i2c9,
  416. MSM_MUX_blsp_i2c10,
  417. MSM_MUX_blsp_i2c11,
  418. MSM_MUX_blsp_i2c12,
  419. MSM_MUX_blsp_spi1,
  420. MSM_MUX_blsp_spi1_cs1,
  421. MSM_MUX_blsp_spi1_cs2,
  422. MSM_MUX_blsp_spi1_cs3,
  423. MSM_MUX_blsp_spi2,
  424. MSM_MUX_blsp_spi2_cs1,
  425. MSM_MUX_blsp_spi2_cs2,
  426. MSM_MUX_blsp_spi2_cs3,
  427. MSM_MUX_blsp_spi3,
  428. MSM_MUX_blsp_spi4,
  429. MSM_MUX_blsp_spi5,
  430. MSM_MUX_blsp_spi6,
  431. MSM_MUX_blsp_spi7,
  432. MSM_MUX_blsp_spi8,
  433. MSM_MUX_blsp_spi9,
  434. MSM_MUX_blsp_spi10,
  435. MSM_MUX_blsp_spi10_cs1,
  436. MSM_MUX_blsp_spi10_cs2,
  437. MSM_MUX_blsp_spi10_cs3,
  438. MSM_MUX_blsp_spi11,
  439. MSM_MUX_blsp_spi12,
  440. MSM_MUX_blsp_uart1,
  441. MSM_MUX_blsp_uart2,
  442. MSM_MUX_blsp_uart3,
  443. MSM_MUX_blsp_uart4,
  444. MSM_MUX_blsp_uart5,
  445. MSM_MUX_blsp_uart6,
  446. MSM_MUX_blsp_uart7,
  447. MSM_MUX_blsp_uart8,
  448. MSM_MUX_blsp_uart9,
  449. MSM_MUX_blsp_uart10,
  450. MSM_MUX_blsp_uart11,
  451. MSM_MUX_blsp_uart12,
  452. MSM_MUX_blsp_uim1,
  453. MSM_MUX_blsp_uim2,
  454. MSM_MUX_blsp_uim3,
  455. MSM_MUX_blsp_uim4,
  456. MSM_MUX_blsp_uim5,
  457. MSM_MUX_blsp_uim6,
  458. MSM_MUX_blsp_uim7,
  459. MSM_MUX_blsp_uim8,
  460. MSM_MUX_blsp_uim9,
  461. MSM_MUX_blsp_uim10,
  462. MSM_MUX_blsp_uim11,
  463. MSM_MUX_blsp_uim12,
  464. MSM_MUX_blsp11_i2c_scl_b,
  465. MSM_MUX_blsp11_i2c_sda_b,
  466. MSM_MUX_blsp11_uart_rx_b,
  467. MSM_MUX_blsp11_uart_tx_b,
  468. MSM_MUX_cam_mclk0,
  469. MSM_MUX_cam_mclk1,
  470. MSM_MUX_cam_mclk2,
  471. MSM_MUX_cam_mclk3,
  472. MSM_MUX_cci_async_in0,
  473. MSM_MUX_cci_async_in1,
  474. MSM_MUX_cci_async_in2,
  475. MSM_MUX_cci_i2c0,
  476. MSM_MUX_cci_i2c1,
  477. MSM_MUX_cci_timer0,
  478. MSM_MUX_cci_timer1,
  479. MSM_MUX_cci_timer2,
  480. MSM_MUX_cci_timer3,
  481. MSM_MUX_cci_timer4,
  482. MSM_MUX_gcc_gp1_clk_a,
  483. MSM_MUX_gcc_gp1_clk_b,
  484. MSM_MUX_gcc_gp2_clk_a,
  485. MSM_MUX_gcc_gp2_clk_b,
  486. MSM_MUX_gcc_gp3_clk_a,
  487. MSM_MUX_gcc_gp3_clk_b,
  488. MSM_MUX_gp_mn,
  489. MSM_MUX_gp_pdm0,
  490. MSM_MUX_gp_pdm1,
  491. MSM_MUX_gp_pdm2,
  492. MSM_MUX_gp0_clk,
  493. MSM_MUX_gp1_clk,
  494. MSM_MUX_gps_tx,
  495. MSM_MUX_gsm_tx,
  496. MSM_MUX_hdmi_cec,
  497. MSM_MUX_hdmi_ddc,
  498. MSM_MUX_hdmi_hpd,
  499. MSM_MUX_hdmi_rcv,
  500. MSM_MUX_mdp_vsync,
  501. MSM_MUX_mss_lte,
  502. MSM_MUX_nav_pps,
  503. MSM_MUX_nav_tsync,
  504. MSM_MUX_qdss_cti_trig_in_a,
  505. MSM_MUX_qdss_cti_trig_in_b,
  506. MSM_MUX_qdss_cti_trig_in_c,
  507. MSM_MUX_qdss_cti_trig_in_d,
  508. MSM_MUX_qdss_cti_trig_out_a,
  509. MSM_MUX_qdss_cti_trig_out_b,
  510. MSM_MUX_qdss_cti_trig_out_c,
  511. MSM_MUX_qdss_cti_trig_out_d,
  512. MSM_MUX_qdss_traceclk_a,
  513. MSM_MUX_qdss_traceclk_b,
  514. MSM_MUX_qdss_tracectl_a,
  515. MSM_MUX_qdss_tracectl_b,
  516. MSM_MUX_qdss_tracedata_a,
  517. MSM_MUX_qdss_tracedata_b,
  518. MSM_MUX_qua_mi2s,
  519. MSM_MUX_pci_e0,
  520. MSM_MUX_pci_e1,
  521. MSM_MUX_pri_mi2s,
  522. MSM_MUX_sdc4,
  523. MSM_MUX_sec_mi2s,
  524. MSM_MUX_slimbus,
  525. MSM_MUX_spkr_i2s,
  526. MSM_MUX_ter_mi2s,
  527. MSM_MUX_tsif1,
  528. MSM_MUX_tsif2,
  529. MSM_MUX_uim1,
  530. MSM_MUX_uim2,
  531. MSM_MUX_uim3,
  532. MSM_MUX_uim4,
  533. MSM_MUX_uim_batt_alarm,
  534. MSM_MUX_gpio,
  535. MSM_MUX_NA,
  536. };
  537. static const char * const gpio_groups[] = {
  538. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  539. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  540. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  541. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  542. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  543. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  544. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  545. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  546. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  547. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  548. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  549. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  550. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
  551. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
  552. "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
  553. "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
  554. "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
  555. "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
  556. "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
  557. "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
  558. "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
  559. "gpio141", "gpio142", "gpio143", "gpio144", "gpio145",
  560. };
  561. static const char * const blsp_spi1_groups[] = {
  562. "gpio0", "gpio1", "gpio2", "gpio3"
  563. };
  564. static const char * const blsp_uart1_groups[] = {
  565. "gpio0", "gpio1", "gpio2", "gpio3"
  566. };
  567. static const char * const blsp_uim1_groups[] = {
  568. "gpio0", "gpio1"
  569. };
  570. static const char * const hdmi_rcv_groups[] = {
  571. "gpio0"
  572. };
  573. static const char * const blsp_i2c1_groups[] = {
  574. "gpio2", "gpio3"
  575. };
  576. static const char * const blsp_spi2_groups[] = {
  577. "gpio4", "gpio5", "gpio6", "gpio7"
  578. };
  579. static const char * const blsp_uart2_groups[] = {
  580. "gpio4", "gpio5", "gpio6", "gpio7"
  581. };
  582. static const char * const blsp_uim2_groups[] = {
  583. "gpio4", "gpio5"
  584. };
  585. static const char * const qdss_cti_trig_out_b_groups[] = {
  586. "gpio4",
  587. };
  588. static const char * const qdss_cti_trig_in_b_groups[] = {
  589. "gpio5",
  590. };
  591. static const char * const blsp_i2c2_groups[] = {
  592. "gpio6", "gpio7"
  593. };
  594. static const char * const blsp_spi3_groups[] = {
  595. "gpio8", "gpio9", "gpio10", "gpio11"
  596. };
  597. static const char * const blsp_uart3_groups[] = {
  598. "gpio8", "gpio9", "gpio10", "gpio11"
  599. };
  600. static const char * const blsp_uim3_groups[] = {
  601. "gpio8", "gpio9"
  602. };
  603. static const char * const blsp_spi1_cs1_groups[] = {
  604. "gpio8"
  605. };
  606. static const char * const blsp_spi1_cs2_groups[] = {
  607. "gpio9", "gpio11"
  608. };
  609. static const char * const mdp_vsync_groups[] = {
  610. "gpio10", "gpio11", "gpio12"
  611. };
  612. static const char * const blsp_i2c3_groups[] = {
  613. "gpio10", "gpio11"
  614. };
  615. static const char * const blsp_spi1_cs3_groups[] = {
  616. "gpio10"
  617. };
  618. static const char * const qdss_tracedata_b_groups[] = {
  619. "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18",
  620. "gpio19", "gpio21", "gpio22", "gpio23", "gpio25", "gpio26",
  621. "gpio57", "gpio58", "gpio92", "gpio93",
  622. };
  623. static const char * const cam_mclk0_groups[] = {
  624. "gpio13"
  625. };
  626. static const char * const cam_mclk1_groups[] = {
  627. "gpio14"
  628. };
  629. static const char * const cam_mclk2_groups[] = {
  630. "gpio15"
  631. };
  632. static const char * const cam_mclk3_groups[] = {
  633. "gpio16"
  634. };
  635. static const char * const cci_i2c0_groups[] = {
  636. "gpio17", "gpio18"
  637. };
  638. static const char * const blsp_spi4_groups[] = {
  639. "gpio17", "gpio18", "gpio19", "gpio20"
  640. };
  641. static const char * const blsp_uart4_groups[] = {
  642. "gpio17", "gpio18", "gpio19", "gpio20"
  643. };
  644. static const char * const blsp_uim4_groups[] = {
  645. "gpio17", "gpio18"
  646. };
  647. static const char * const cci_i2c1_groups[] = {
  648. "gpio19", "gpio20"
  649. };
  650. static const char * const blsp_i2c4_groups[] = {
  651. "gpio19", "gpio20"
  652. };
  653. static const char * const cci_timer0_groups[] = {
  654. "gpio21"
  655. };
  656. static const char * const blsp_spi5_groups[] = {
  657. "gpio21", "gpio22", "gpio23", "gpio24"
  658. };
  659. static const char * const blsp_uart5_groups[] = {
  660. "gpio21", "gpio22", "gpio23", "gpio24"
  661. };
  662. static const char * const blsp_uim5_groups[] = {
  663. "gpio21", "gpio22"
  664. };
  665. static const char * const cci_timer1_groups[] = {
  666. "gpio22"
  667. };
  668. static const char * const cci_timer2_groups[] = {
  669. "gpio23"
  670. };
  671. static const char * const blsp_i2c5_groups[] = {
  672. "gpio23", "gpio24"
  673. };
  674. static const char * const cci_timer3_groups[] = {
  675. "gpio24"
  676. };
  677. static const char * const cci_async_in1_groups[] = {
  678. "gpio24"
  679. };
  680. static const char * const cci_timer4_groups[] = {
  681. "gpio25"
  682. };
  683. static const char * const cci_async_in2_groups[] = {
  684. "gpio25"
  685. };
  686. static const char * const blsp_spi6_groups[] = {
  687. "gpio25", "gpio26", "gpio27", "gpio28"
  688. };
  689. static const char * const blsp_uart6_groups[] = {
  690. "gpio25", "gpio26", "gpio27", "gpio28"
  691. };
  692. static const char * const blsp_uim6_groups[] = {
  693. "gpio25", "gpio26"
  694. };
  695. static const char * const cci_async_in0_groups[] = {
  696. "gpio26"
  697. };
  698. static const char * const gp0_clk_groups[] = {
  699. "gpio26"
  700. };
  701. static const char * const gp1_clk_groups[] = {
  702. "gpio27", "gpio57", "gpio78"
  703. };
  704. static const char * const blsp_i2c6_groups[] = {
  705. "gpio27", "gpio28"
  706. };
  707. static const char * const qdss_tracectl_a_groups[] = {
  708. "gpio27",
  709. };
  710. static const char * const qdss_traceclk_a_groups[] = {
  711. "gpio28",
  712. };
  713. static const char * const gp_mn_groups[] = {
  714. "gpio29"
  715. };
  716. static const char * const hdmi_cec_groups[] = {
  717. "gpio31"
  718. };
  719. static const char * const hdmi_ddc_groups[] = {
  720. "gpio32", "gpio33"
  721. };
  722. static const char * const hdmi_hpd_groups[] = {
  723. "gpio34"
  724. };
  725. static const char * const uim3_groups[] = {
  726. "gpio35", "gpio36", "gpio37", "gpio38"
  727. };
  728. static const char * const pci_e1_groups[] = {
  729. "gpio35", "gpio36",
  730. };
  731. static const char * const blsp_spi7_groups[] = {
  732. "gpio41", "gpio42", "gpio43", "gpio44"
  733. };
  734. static const char * const blsp_uart7_groups[] = {
  735. "gpio41", "gpio42", "gpio43", "gpio44"
  736. };
  737. static const char * const blsp_uim7_groups[] = {
  738. "gpio41", "gpio42"
  739. };
  740. static const char * const qdss_cti_trig_out_c_groups[] = {
  741. "gpio41",
  742. };
  743. static const char * const qdss_cti_trig_in_c_groups[] = {
  744. "gpio42",
  745. };
  746. static const char * const blsp_i2c7_groups[] = {
  747. "gpio43", "gpio44"
  748. };
  749. static const char * const blsp_spi8_groups[] = {
  750. "gpio45", "gpio46", "gpio47", "gpio48"
  751. };
  752. static const char * const blsp_uart8_groups[] = {
  753. "gpio45", "gpio46", "gpio47", "gpio48"
  754. };
  755. static const char * const blsp_uim8_groups[] = {
  756. "gpio45", "gpio46"
  757. };
  758. static const char * const blsp_i2c8_groups[] = {
  759. "gpio47", "gpio48"
  760. };
  761. static const char * const blsp_spi10_cs1_groups[] = {
  762. "gpio47", "gpio67"
  763. };
  764. static const char * const blsp_spi10_cs2_groups[] = {
  765. "gpio48", "gpio68"
  766. };
  767. static const char * const uim2_groups[] = {
  768. "gpio49", "gpio50", "gpio51", "gpio52"
  769. };
  770. static const char * const blsp_spi9_groups[] = {
  771. "gpio49", "gpio50", "gpio51", "gpio52"
  772. };
  773. static const char * const blsp_uart9_groups[] = {
  774. "gpio49", "gpio50", "gpio51", "gpio52"
  775. };
  776. static const char * const blsp_uim9_groups[] = {
  777. "gpio49", "gpio50"
  778. };
  779. static const char * const blsp_i2c9_groups[] = {
  780. "gpio51", "gpio52"
  781. };
  782. static const char * const pci_e0_groups[] = {
  783. "gpio53", "gpio54",
  784. };
  785. static const char * const uim4_groups[] = {
  786. "gpio53", "gpio54", "gpio55", "gpio56"
  787. };
  788. static const char * const blsp_spi10_groups[] = {
  789. "gpio53", "gpio54", "gpio55", "gpio56"
  790. };
  791. static const char * const blsp_uart10_groups[] = {
  792. "gpio53", "gpio54", "gpio55", "gpio56"
  793. };
  794. static const char * const blsp_uim10_groups[] = {
  795. "gpio53", "gpio54"
  796. };
  797. static const char * const qdss_tracedata_a_groups[] = {
  798. "gpio53", "gpio54", "gpio63", "gpio64", "gpio65",
  799. "gpio66", "gpio67", "gpio74", "gpio75", "gpio76",
  800. "gpio77", "gpio85", "gpio86", "gpio87", "gpio89",
  801. "gpio90"
  802. };
  803. static const char * const gp_pdm0_groups[] = {
  804. "gpio54", "gpio95"
  805. };
  806. static const char * const blsp_i2c10_groups[] = {
  807. "gpio55", "gpio56"
  808. };
  809. static const char * const qdss_cti_trig_in_a_groups[] = {
  810. "gpio55",
  811. };
  812. static const char * const qdss_cti_trig_out_a_groups[] = {
  813. "gpio56",
  814. };
  815. static const char * const qua_mi2s_groups[] = {
  816. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  817. };
  818. static const char * const gcc_gp1_clk_a_groups[] = {
  819. "gpio57"
  820. };
  821. static const char * const gcc_gp2_clk_a_groups[] = {
  822. "gpio58"
  823. };
  824. static const char * const gcc_gp3_clk_a_groups[] = {
  825. "gpio59"
  826. };
  827. static const char * const blsp_spi2_cs1_groups[] = {
  828. "gpio62"
  829. };
  830. static const char * const blsp_spi2_cs2_groups[] = {
  831. "gpio63"
  832. };
  833. static const char * const gp_pdm2_groups[] = {
  834. "gpio63", "gpio79"
  835. };
  836. static const char * const pri_mi2s_groups[] = {
  837. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68"
  838. };
  839. static const char * const blsp_spi2_cs3_groups[] = {
  840. "gpio66"
  841. };
  842. static const char * const spkr_i2s_groups[] = {
  843. "gpio69", "gpio70", "gpio71", "gpio72"
  844. };
  845. static const char * const audio_ref_clk_groups[] = {
  846. "gpio69"
  847. };
  848. static const char * const slimbus_groups[] = {
  849. "gpio70", "gpio71"
  850. };
  851. static const char * const ter_mi2s_groups[] = {
  852. "gpio73", "gpio74", "gpio75", "gpio76", "gpio77"
  853. };
  854. static const char * const gp_pdm1_groups[] = {
  855. "gpio74", "gpio86"
  856. };
  857. static const char * const sec_mi2s_groups[] = {
  858. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82"
  859. };
  860. static const char * const gcc_gp1_clk_b_groups[] = {
  861. "gpio78"
  862. };
  863. static const char * const blsp_spi11_groups[] = {
  864. "gpio81", "gpio82", "gpio83", "gpio84"
  865. };
  866. static const char * const blsp_uart11_groups[] = {
  867. "gpio81", "gpio82", "gpio83", "gpio84"
  868. };
  869. static const char * const blsp_uim11_groups[] = {
  870. "gpio81", "gpio82"
  871. };
  872. static const char * const gcc_gp2_clk_b_groups[] = {
  873. "gpio81"
  874. };
  875. static const char * const gcc_gp3_clk_b_groups[] = {
  876. "gpio82"
  877. };
  878. static const char * const blsp_i2c11_groups[] = {
  879. "gpio83", "gpio84"
  880. };
  881. static const char * const blsp_uart12_groups[] = {
  882. "gpio85", "gpio86", "gpio87", "gpio88"
  883. };
  884. static const char * const blsp_uim12_groups[] = {
  885. "gpio85", "gpio86"
  886. };
  887. static const char * const blsp_i2c12_groups[] = {
  888. "gpio87", "gpio88"
  889. };
  890. static const char * const blsp_spi12_groups[] = {
  891. "gpio85", "gpio86", "gpio87", "gpio88"
  892. };
  893. static const char * const tsif1_groups[] = {
  894. "gpio89", "gpio90", "gpio91", "gpio110", "gpio111"
  895. };
  896. static const char * const blsp_spi10_cs3_groups[] = {
  897. "gpio90"
  898. };
  899. static const char * const sdc4_groups[] = {
  900. "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96"
  901. };
  902. static const char * const qdss_traceclk_b_groups[] = {
  903. "gpio91",
  904. };
  905. static const char * const tsif2_groups[] = {
  906. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96"
  907. };
  908. static const char * const qdss_tracectl_b_groups[] = {
  909. "gpio94",
  910. };
  911. static const char * const qdss_cti_trig_out_d_groups[] = {
  912. "gpio95",
  913. };
  914. static const char * const qdss_cti_trig_in_d_groups[] = {
  915. "gpio96",
  916. };
  917. static const char * const uim1_groups[] = {
  918. "gpio97", "gpio98", "gpio99", "gpio100"
  919. };
  920. static const char * const uim_batt_alarm_groups[] = {
  921. "gpio101"
  922. };
  923. static const char * const blsp11_uart_tx_b_groups[] = {
  924. "gpio111"
  925. };
  926. static const char * const blsp11_uart_rx_b_groups[] = {
  927. "gpio112"
  928. };
  929. static const char * const blsp11_i2c_sda_b_groups[] = {
  930. "gpio113"
  931. };
  932. static const char * const blsp11_i2c_scl_b_groups[] = {
  933. "gpio114"
  934. };
  935. static const char * const gsm_tx_groups[] = {
  936. "gpio126", "gpio131", "gpio132", "gpio133"
  937. };
  938. static const char * const nav_tsync_groups[] = {
  939. "gpio127"
  940. };
  941. static const char * const nav_pps_groups[] = {
  942. "gpio127"
  943. };
  944. static const char * const gps_tx_groups[] = {
  945. "gpio130"
  946. };
  947. static const char * const mss_lte_groups[] = {
  948. "gpio134", "gpio135"
  949. };
  950. static const struct msm_function msm8994_functions[] = {
  951. FUNCTION(audio_ref_clk),
  952. FUNCTION(blsp_i2c1),
  953. FUNCTION(blsp_i2c2),
  954. FUNCTION(blsp_i2c3),
  955. FUNCTION(blsp_i2c4),
  956. FUNCTION(blsp_i2c5),
  957. FUNCTION(blsp_i2c6),
  958. FUNCTION(blsp_i2c7),
  959. FUNCTION(blsp_i2c8),
  960. FUNCTION(blsp_i2c9),
  961. FUNCTION(blsp_i2c10),
  962. FUNCTION(blsp_i2c11),
  963. FUNCTION(blsp_i2c12),
  964. FUNCTION(blsp_spi1),
  965. FUNCTION(blsp_spi1_cs1),
  966. FUNCTION(blsp_spi1_cs2),
  967. FUNCTION(blsp_spi1_cs3),
  968. FUNCTION(blsp_spi2),
  969. FUNCTION(blsp_spi2_cs1),
  970. FUNCTION(blsp_spi2_cs2),
  971. FUNCTION(blsp_spi2_cs3),
  972. FUNCTION(blsp_spi3),
  973. FUNCTION(blsp_spi4),
  974. FUNCTION(blsp_spi5),
  975. FUNCTION(blsp_spi6),
  976. FUNCTION(blsp_spi7),
  977. FUNCTION(blsp_spi8),
  978. FUNCTION(blsp_spi9),
  979. FUNCTION(blsp_spi10),
  980. FUNCTION(blsp_spi10_cs1),
  981. FUNCTION(blsp_spi10_cs2),
  982. FUNCTION(blsp_spi10_cs3),
  983. FUNCTION(blsp_spi11),
  984. FUNCTION(blsp_spi12),
  985. FUNCTION(blsp_uart1),
  986. FUNCTION(blsp_uart2),
  987. FUNCTION(blsp_uart3),
  988. FUNCTION(blsp_uart4),
  989. FUNCTION(blsp_uart5),
  990. FUNCTION(blsp_uart6),
  991. FUNCTION(blsp_uart7),
  992. FUNCTION(blsp_uart8),
  993. FUNCTION(blsp_uart9),
  994. FUNCTION(blsp_uart10),
  995. FUNCTION(blsp_uart11),
  996. FUNCTION(blsp_uart12),
  997. FUNCTION(blsp_uim1),
  998. FUNCTION(blsp_uim2),
  999. FUNCTION(blsp_uim3),
  1000. FUNCTION(blsp_uim4),
  1001. FUNCTION(blsp_uim5),
  1002. FUNCTION(blsp_uim6),
  1003. FUNCTION(blsp_uim7),
  1004. FUNCTION(blsp_uim8),
  1005. FUNCTION(blsp_uim9),
  1006. FUNCTION(blsp_uim10),
  1007. FUNCTION(blsp_uim11),
  1008. FUNCTION(blsp_uim12),
  1009. FUNCTION(blsp11_i2c_scl_b),
  1010. FUNCTION(blsp11_i2c_sda_b),
  1011. FUNCTION(blsp11_uart_rx_b),
  1012. FUNCTION(blsp11_uart_tx_b),
  1013. FUNCTION(cam_mclk0),
  1014. FUNCTION(cam_mclk1),
  1015. FUNCTION(cam_mclk2),
  1016. FUNCTION(cam_mclk3),
  1017. FUNCTION(cci_async_in0),
  1018. FUNCTION(cci_async_in1),
  1019. FUNCTION(cci_async_in2),
  1020. FUNCTION(cci_i2c0),
  1021. FUNCTION(cci_i2c1),
  1022. FUNCTION(cci_timer0),
  1023. FUNCTION(cci_timer1),
  1024. FUNCTION(cci_timer2),
  1025. FUNCTION(cci_timer3),
  1026. FUNCTION(cci_timer4),
  1027. FUNCTION(gcc_gp1_clk_a),
  1028. FUNCTION(gcc_gp1_clk_b),
  1029. FUNCTION(gcc_gp2_clk_a),
  1030. FUNCTION(gcc_gp2_clk_b),
  1031. FUNCTION(gcc_gp3_clk_a),
  1032. FUNCTION(gcc_gp3_clk_b),
  1033. FUNCTION(gp_mn),
  1034. FUNCTION(gp_pdm0),
  1035. FUNCTION(gp_pdm1),
  1036. FUNCTION(gp_pdm2),
  1037. FUNCTION(gp0_clk),
  1038. FUNCTION(gp1_clk),
  1039. FUNCTION(gps_tx),
  1040. FUNCTION(gsm_tx),
  1041. FUNCTION(hdmi_cec),
  1042. FUNCTION(hdmi_ddc),
  1043. FUNCTION(hdmi_hpd),
  1044. FUNCTION(hdmi_rcv),
  1045. FUNCTION(mdp_vsync),
  1046. FUNCTION(mss_lte),
  1047. FUNCTION(nav_pps),
  1048. FUNCTION(nav_tsync),
  1049. FUNCTION(qdss_cti_trig_in_a),
  1050. FUNCTION(qdss_cti_trig_in_b),
  1051. FUNCTION(qdss_cti_trig_in_c),
  1052. FUNCTION(qdss_cti_trig_in_d),
  1053. FUNCTION(qdss_cti_trig_out_a),
  1054. FUNCTION(qdss_cti_trig_out_b),
  1055. FUNCTION(qdss_cti_trig_out_c),
  1056. FUNCTION(qdss_cti_trig_out_d),
  1057. FUNCTION(qdss_traceclk_a),
  1058. FUNCTION(qdss_traceclk_b),
  1059. FUNCTION(qdss_tracectl_a),
  1060. FUNCTION(qdss_tracectl_b),
  1061. FUNCTION(qdss_tracedata_a),
  1062. FUNCTION(qdss_tracedata_b),
  1063. FUNCTION(qua_mi2s),
  1064. FUNCTION(pci_e0),
  1065. FUNCTION(pci_e1),
  1066. FUNCTION(pri_mi2s),
  1067. FUNCTION(sdc4),
  1068. FUNCTION(sec_mi2s),
  1069. FUNCTION(slimbus),
  1070. FUNCTION(spkr_i2s),
  1071. FUNCTION(ter_mi2s),
  1072. FUNCTION(tsif1),
  1073. FUNCTION(tsif2),
  1074. FUNCTION(uim_batt_alarm),
  1075. FUNCTION(uim1),
  1076. FUNCTION(uim2),
  1077. FUNCTION(uim3),
  1078. FUNCTION(uim4),
  1079. FUNCTION(gpio),
  1080. };
  1081. static const struct msm_pingroup msm8994_groups[] = {
  1082. PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, hdmi_rcv, NA, NA, NA,
  1083. NA, NA, NA, NA),
  1084. PINGROUP(1, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA,
  1085. NA, NA),
  1086. PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA,
  1087. NA, NA),
  1088. PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA,
  1089. NA, NA),
  1090. PINGROUP(4, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti_trig_out_b,
  1091. NA, NA, NA, NA, NA, NA),
  1092. PINGROUP(5, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti_trig_in_b,
  1093. NA, NA, NA, NA, NA, NA),
  1094. PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA,
  1095. NA, NA),
  1096. PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA,
  1097. NA, NA),
  1098. PINGROUP(8, blsp_spi3, blsp_uart3, blsp_uim3, blsp_spi1_cs1, NA, NA,
  1099. NA, NA, NA, NA, NA),
  1100. PINGROUP(9, blsp_spi3, blsp_uart3, blsp_uim3, blsp_spi1_cs2, NA, NA,
  1101. NA, NA, NA, NA, NA),
  1102. PINGROUP(10, mdp_vsync, blsp_spi3, blsp_uart3, blsp_i2c3,
  1103. blsp_spi1_cs3, NA, NA, NA, NA, NA, NA),
  1104. PINGROUP(11, mdp_vsync, blsp_spi3, blsp_uart3, blsp_i2c3,
  1105. blsp_spi1_cs2, NA, NA, NA, NA, NA, NA),
  1106. PINGROUP(12, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1107. PINGROUP(13, cam_mclk0, NA, NA, qdss_tracedata_b, NA, NA, NA, NA, NA,
  1108. NA, NA),
  1109. PINGROUP(14, cam_mclk1, NA, NA, qdss_tracedata_b, NA, NA, NA, NA, NA,
  1110. NA, NA),
  1111. PINGROUP(15, cam_mclk2, NA, qdss_tracedata_b, NA, NA, NA, NA, NA, NA,
  1112. NA, NA),
  1113. PINGROUP(16, cam_mclk3, NA, qdss_tracedata_b, NA, NA, NA, NA, NA, NA,
  1114. NA, NA),
  1115. PINGROUP(17, cci_i2c0, blsp_spi4, blsp_uart4, blsp_uim4, NA,
  1116. qdss_tracedata_b, NA, NA, NA, NA, NA),
  1117. PINGROUP(18, cci_i2c0, blsp_spi4, blsp_uart4, blsp_uim4, NA,
  1118. qdss_tracedata_b, NA, NA, NA, NA, NA),
  1119. PINGROUP(19, cci_i2c1, blsp_spi4, blsp_uart4, blsp_i2c4, NA,
  1120. qdss_tracedata_b, NA, NA, NA, NA, NA),
  1121. PINGROUP(20, cci_i2c1, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA,
  1122. NA, NA, NA, NA),
  1123. PINGROUP(21, cci_timer0, blsp_spi5, blsp_uart5, blsp_uim5, NA,
  1124. qdss_tracedata_b, NA, NA, NA, NA, NA),
  1125. PINGROUP(22, cci_timer1, blsp_spi5, blsp_uart5, blsp_uim5, NA,
  1126. qdss_tracedata_b, NA, NA, NA, NA, NA),
  1127. PINGROUP(23, cci_timer2, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA,
  1128. qdss_tracedata_b, NA, NA, NA, NA),
  1129. PINGROUP(24, cci_timer3, cci_async_in1, blsp_spi5, blsp_uart5,
  1130. blsp_i2c5, NA, NA, NA, NA, NA, NA),
  1131. PINGROUP(25, cci_timer4, cci_async_in2, blsp_spi6, blsp_uart6,
  1132. blsp_uim6, NA, NA, qdss_tracedata_b, NA, NA, NA),
  1133. PINGROUP(26, cci_async_in0, blsp_spi6, blsp_uart6, blsp_uim6, gp0_clk,
  1134. NA, qdss_tracedata_b, NA, NA, NA, NA),
  1135. PINGROUP(27, blsp_spi6, blsp_uart6, blsp_i2c6, gp1_clk,
  1136. qdss_tracectl_a, NA, NA, NA, NA, NA, NA),
  1137. PINGROUP(28, blsp_spi6, blsp_uart6, blsp_i2c6, qdss_traceclk_a, NA,
  1138. NA, NA, NA, NA, NA, NA),
  1139. PINGROUP(29, gp_mn, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1140. PINGROUP(30, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1141. PINGROUP(31, hdmi_cec, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1142. PINGROUP(32, hdmi_ddc, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1143. PINGROUP(33, hdmi_ddc, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1144. PINGROUP(34, hdmi_hpd, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1145. PINGROUP(35, uim3, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1146. PINGROUP(36, uim3, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1147. PINGROUP(37, uim3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1148. PINGROUP(38, uim3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1149. PINGROUP(39, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1150. PINGROUP(40, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1151. PINGROUP(41, blsp_spi7, blsp_uart7, blsp_uim7, qdss_cti_trig_out_c,
  1152. NA, NA, NA, NA, NA, NA, NA),
  1153. PINGROUP(42, blsp_spi7, blsp_uart7, blsp_uim7, qdss_cti_trig_in_c, NA,
  1154. NA, NA, NA, NA, NA, NA),
  1155. PINGROUP(43, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA, NA, NA, NA,
  1156. NA, NA),
  1157. PINGROUP(44, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA, NA, NA, NA,
  1158. NA, NA),
  1159. PINGROUP(45, blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA, NA, NA,
  1160. NA, NA),
  1161. PINGROUP(46, blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA, NA, NA,
  1162. NA, NA),
  1163. PINGROUP(47, blsp_spi8, blsp_uart8, blsp_i2c8, blsp_spi10_cs1, NA, NA,
  1164. NA, NA, NA, NA, NA),
  1165. PINGROUP(48, blsp_spi8, blsp_uart8, blsp_i2c8, blsp_spi10_cs2, NA, NA,
  1166. NA, NA, NA, NA, NA),
  1167. PINGROUP(49, uim2, blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA, NA,
  1168. NA, NA, NA),
  1169. PINGROUP(50, uim2, blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA, NA,
  1170. NA, NA, NA),
  1171. PINGROUP(51, uim2, blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA, NA,
  1172. NA, NA, NA),
  1173. PINGROUP(52, uim2, blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA, NA,
  1174. NA, NA, NA),
  1175. PINGROUP(53, uim4, pci_e0, blsp_spi10, blsp_uart10, blsp_uim10, NA,
  1176. NA, qdss_tracedata_a, NA, NA, NA),
  1177. PINGROUP(54, uim4, pci_e0, blsp_spi10, blsp_uart10, blsp_uim10,
  1178. gp_pdm0, NA, NA, qdss_tracedata_a, NA, NA),
  1179. PINGROUP(55, uim4, blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA, NA,
  1180. qdss_cti_trig_in_a, NA, NA, NA),
  1181. PINGROUP(56, uim4, blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA,
  1182. qdss_cti_trig_out_a, NA, NA, NA, NA),
  1183. PINGROUP(57, qua_mi2s, gcc_gp1_clk_a, NA, NA, qdss_tracedata_b, NA, NA,
  1184. NA, NA, NA, NA),
  1185. PINGROUP(58, qua_mi2s, gcc_gp2_clk_a, NA, NA, qdss_tracedata_b, NA, NA,
  1186. NA, NA, NA, NA),
  1187. PINGROUP(59, qua_mi2s, gcc_gp3_clk_a, NA, NA, NA, NA, NA, NA, NA, NA,
  1188. NA),
  1189. PINGROUP(60, qua_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1190. PINGROUP(61, qua_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1191. PINGROUP(62, qua_mi2s, blsp_spi2_cs1, NA, NA, NA, NA, NA, NA, NA, NA,
  1192. NA),
  1193. PINGROUP(63, qua_mi2s, blsp_spi2_cs2, gp_pdm2, NA, NA, NA, NA, NA,
  1194. qdss_tracedata_a, NA, NA),
  1195. PINGROUP(64, pri_mi2s, NA, NA, NA, qdss_tracedata_a, NA, NA, NA, NA,
  1196. NA, NA),
  1197. PINGROUP(65, pri_mi2s, NA, NA, NA, qdss_tracedata_a, NA, NA, NA, NA,
  1198. NA, NA),
  1199. PINGROUP(66, pri_mi2s, blsp_spi2_cs3, NA, NA, NA, qdss_tracedata_a,
  1200. NA, NA, NA, NA, NA),
  1201. PINGROUP(67, pri_mi2s, blsp_spi10_cs1, NA, NA, NA, qdss_tracedata_a,
  1202. NA, NA, NA, NA, NA),
  1203. PINGROUP(68, pri_mi2s, blsp_spi10_cs2, NA, NA, NA, NA, NA, NA, NA, NA,
  1204. NA),
  1205. PINGROUP(69, spkr_i2s, audio_ref_clk, NA, NA, NA, NA, NA, NA, NA, NA,
  1206. NA),
  1207. PINGROUP(70, slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1208. PINGROUP(71, slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1209. PINGROUP(72, spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1210. PINGROUP(73, ter_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1211. PINGROUP(74, ter_mi2s, gp_pdm1, NA, NA, NA, qdss_tracedata_a, NA, NA,
  1212. NA, NA, NA),
  1213. PINGROUP(75, ter_mi2s, NA, NA, qdss_tracedata_a, NA, NA, NA, NA, NA,
  1214. NA, NA),
  1215. PINGROUP(76, ter_mi2s, NA, NA, qdss_tracedata_a, NA, NA, NA, NA, NA,
  1216. NA, NA),
  1217. PINGROUP(77, ter_mi2s, NA, NA, qdss_tracedata_a, NA, NA, NA, NA, NA,
  1218. NA, NA),
  1219. PINGROUP(78, sec_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA, NA,
  1220. NA),
  1221. PINGROUP(79, sec_mi2s, gp_pdm2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1222. PINGROUP(80, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1223. PINGROUP(81, sec_mi2s, blsp_spi11, blsp_uart11, blsp_uim11,
  1224. gcc_gp2_clk_b, NA, NA, NA, NA, NA, NA),
  1225. PINGROUP(82, sec_mi2s, blsp_spi11, blsp_uart11, blsp_uim11,
  1226. gcc_gp3_clk_b, NA, NA, NA, NA, NA, NA),
  1227. PINGROUP(83, blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA, NA,
  1228. NA, NA, NA),
  1229. PINGROUP(84, blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA, NA,
  1230. NA, NA, NA),
  1231. PINGROUP(85, blsp_spi12, blsp_uart12, blsp_uim12, NA, NA,
  1232. qdss_tracedata_a, NA, NA, NA, NA, NA),
  1233. PINGROUP(86, blsp_spi12, blsp_uart12, blsp_uim12, gp_pdm1, NA,
  1234. qdss_tracedata_a, NA, NA, NA, NA, NA),
  1235. PINGROUP(87, blsp_spi12, blsp_uart12, blsp_i2c12, NA,
  1236. qdss_tracedata_a, NA, NA, NA, NA, NA, NA),
  1237. PINGROUP(88, blsp_spi12, blsp_uart12, blsp_i2c12, NA, NA, NA, NA, NA,
  1238. NA, NA, NA),
  1239. PINGROUP(89, tsif1, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA,
  1240. NA),
  1241. PINGROUP(90, tsif1, blsp_spi10_cs3, qdss_tracedata_a, NA, NA, NA, NA,
  1242. NA, NA, NA, NA),
  1243. PINGROUP(91, tsif1, sdc4, NA, NA, NA, NA, qdss_traceclk_b, NA, NA, NA,
  1244. NA),
  1245. PINGROUP(92, tsif2, sdc4, NA, NA, qdss_tracedata_b, NA, NA, NA, NA,
  1246. NA, NA),
  1247. PINGROUP(93, tsif2, sdc4, NA, NA, NA, NA, qdss_tracedata_b, NA, NA,
  1248. NA, NA),
  1249. PINGROUP(94, tsif2, sdc4, NA, NA, NA, NA, qdss_tracectl_b, NA, NA, NA,
  1250. NA),
  1251. PINGROUP(95, tsif2, sdc4, gp_pdm0, NA, NA, NA, qdss_cti_trig_out_d,
  1252. NA, NA, NA, NA),
  1253. PINGROUP(96, tsif2, sdc4, qdss_cti_trig_in_d, NA, NA, NA, NA, NA, NA,
  1254. NA, NA),
  1255. PINGROUP(97, uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1256. PINGROUP(98, uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1257. PINGROUP(99, uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1258. PINGROUP(100, uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1259. PINGROUP(101, uim_batt_alarm, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1260. PINGROUP(102, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1261. PINGROUP(103, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1262. PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1263. PINGROUP(105, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1264. PINGROUP(106, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1265. PINGROUP(107, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1266. PINGROUP(108, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1267. PINGROUP(109, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1268. PINGROUP(110, tsif1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1269. PINGROUP(111, tsif1, blsp11_uart_tx_b, NA, NA, NA, NA, NA, NA, NA, NA,
  1270. NA),
  1271. PINGROUP(112, blsp11_uart_rx_b, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1272. NA),
  1273. PINGROUP(113, blsp11_i2c_sda_b, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1274. NA),
  1275. PINGROUP(114, blsp11_i2c_scl_b, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1276. NA),
  1277. PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1278. PINGROUP(116, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1279. PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1280. PINGROUP(118, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1281. PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1282. PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1283. PINGROUP(121, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1284. PINGROUP(122, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1285. PINGROUP(123, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1286. PINGROUP(124, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1287. PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1288. PINGROUP(126, NA, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1289. PINGROUP(127, NA, nav_tsync, nav_pps, NA, NA, NA, NA, NA, NA, NA,
  1290. NA),
  1291. PINGROUP(128, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1292. PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1293. PINGROUP(130, gps_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1294. PINGROUP(131, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1295. PINGROUP(132, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1296. PINGROUP(133, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1297. PINGROUP(134, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1298. PINGROUP(135, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1299. PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1300. PINGROUP(137, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1301. PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1302. PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1303. PINGROUP(140, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1304. PINGROUP(141, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1305. PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1306. PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1307. PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1308. PINGROUP(145, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1309. SDC_PINGROUP(sdc1_rclk, 0x2044, 15, 0),
  1310. SDC_PINGROUP(sdc1_clk, 0x2044, 13, 6),
  1311. SDC_PINGROUP(sdc1_cmd, 0x2044, 11, 3),
  1312. SDC_PINGROUP(sdc1_data, 0x2044, 9, 0),
  1313. SDC_PINGROUP(sdc2_clk, 0x2048, 14, 6),
  1314. SDC_PINGROUP(sdc2_cmd, 0x2048, 11, 3),
  1315. SDC_PINGROUP(sdc2_data, 0x2048, 9, 0),
  1316. SDC_PINGROUP(sdc3_clk, 0x206c, 14, 6),
  1317. SDC_PINGROUP(sdc3_cmd, 0x206c, 11, 3),
  1318. SDC_PINGROUP(sdc3_data, 0x206c, 9, 0),
  1319. };
  1320. #define NUM_GPIO_PINGROUPS 146
  1321. static const struct msm_pinctrl_soc_data msm8994_pinctrl = {
  1322. .pins = msm8994_pins,
  1323. .npins = ARRAY_SIZE(msm8994_pins),
  1324. .functions = msm8994_functions,
  1325. .nfunctions = ARRAY_SIZE(msm8994_functions),
  1326. .groups = msm8994_groups,
  1327. .ngroups = ARRAY_SIZE(msm8994_groups),
  1328. .ngpios = NUM_GPIO_PINGROUPS,
  1329. };
  1330. static int msm8994_pinctrl_probe(struct platform_device *pdev)
  1331. {
  1332. return msm_pinctrl_probe(pdev, &msm8994_pinctrl);
  1333. }
  1334. static const struct of_device_id msm8994_pinctrl_of_match[] = {
  1335. { .compatible = "qcom,msm8992-pinctrl", },
  1336. { .compatible = "qcom,msm8994-pinctrl", },
  1337. { }
  1338. };
  1339. static struct platform_driver msm8994_pinctrl_driver = {
  1340. .driver = {
  1341. .name = "msm8994-pinctrl",
  1342. .of_match_table = msm8994_pinctrl_of_match,
  1343. },
  1344. .probe = msm8994_pinctrl_probe,
  1345. .remove = msm_pinctrl_remove,
  1346. };
  1347. static int __init msm8994_pinctrl_init(void)
  1348. {
  1349. return platform_driver_register(&msm8994_pinctrl_driver);
  1350. }
  1351. arch_initcall(msm8994_pinctrl_init);
  1352. static void __exit msm8994_pinctrl_exit(void)
  1353. {
  1354. platform_driver_unregister(&msm8994_pinctrl_driver);
  1355. }
  1356. module_exit(msm8994_pinctrl_exit);
  1357. MODULE_DESCRIPTION("Qualcomm MSM8994 pinctrl driver");
  1358. MODULE_LICENSE("GPL v2");
  1359. MODULE_DEVICE_TABLE(of, msm8994_pinctrl_of_match);