pinctrl-msm8960.c 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284
  1. /*
  2. * Copyright (c) 2014, Sony Mobile Communications AB.
  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 <linux/pinctrl/pinmux.h>
  18. #include "pinctrl-msm.h"
  19. static const struct pinctrl_pin_desc msm8960_pins[] = {
  20. PINCTRL_PIN(0, "GPIO_0"),
  21. PINCTRL_PIN(1, "GPIO_1"),
  22. PINCTRL_PIN(2, "GPIO_2"),
  23. PINCTRL_PIN(3, "GPIO_3"),
  24. PINCTRL_PIN(4, "GPIO_4"),
  25. PINCTRL_PIN(5, "GPIO_5"),
  26. PINCTRL_PIN(6, "GPIO_6"),
  27. PINCTRL_PIN(7, "GPIO_7"),
  28. PINCTRL_PIN(8, "GPIO_8"),
  29. PINCTRL_PIN(9, "GPIO_9"),
  30. PINCTRL_PIN(10, "GPIO_10"),
  31. PINCTRL_PIN(11, "GPIO_11"),
  32. PINCTRL_PIN(12, "GPIO_12"),
  33. PINCTRL_PIN(13, "GPIO_13"),
  34. PINCTRL_PIN(14, "GPIO_14"),
  35. PINCTRL_PIN(15, "GPIO_15"),
  36. PINCTRL_PIN(16, "GPIO_16"),
  37. PINCTRL_PIN(17, "GPIO_17"),
  38. PINCTRL_PIN(18, "GPIO_18"),
  39. PINCTRL_PIN(19, "GPIO_19"),
  40. PINCTRL_PIN(20, "GPIO_20"),
  41. PINCTRL_PIN(21, "GPIO_21"),
  42. PINCTRL_PIN(22, "GPIO_22"),
  43. PINCTRL_PIN(23, "GPIO_23"),
  44. PINCTRL_PIN(24, "GPIO_24"),
  45. PINCTRL_PIN(25, "GPIO_25"),
  46. PINCTRL_PIN(26, "GPIO_26"),
  47. PINCTRL_PIN(27, "GPIO_27"),
  48. PINCTRL_PIN(28, "GPIO_28"),
  49. PINCTRL_PIN(29, "GPIO_29"),
  50. PINCTRL_PIN(30, "GPIO_30"),
  51. PINCTRL_PIN(31, "GPIO_31"),
  52. PINCTRL_PIN(32, "GPIO_32"),
  53. PINCTRL_PIN(33, "GPIO_33"),
  54. PINCTRL_PIN(34, "GPIO_34"),
  55. PINCTRL_PIN(35, "GPIO_35"),
  56. PINCTRL_PIN(36, "GPIO_36"),
  57. PINCTRL_PIN(37, "GPIO_37"),
  58. PINCTRL_PIN(38, "GPIO_38"),
  59. PINCTRL_PIN(39, "GPIO_39"),
  60. PINCTRL_PIN(40, "GPIO_40"),
  61. PINCTRL_PIN(41, "GPIO_41"),
  62. PINCTRL_PIN(42, "GPIO_42"),
  63. PINCTRL_PIN(43, "GPIO_43"),
  64. PINCTRL_PIN(44, "GPIO_44"),
  65. PINCTRL_PIN(45, "GPIO_45"),
  66. PINCTRL_PIN(46, "GPIO_46"),
  67. PINCTRL_PIN(47, "GPIO_47"),
  68. PINCTRL_PIN(48, "GPIO_48"),
  69. PINCTRL_PIN(49, "GPIO_49"),
  70. PINCTRL_PIN(50, "GPIO_50"),
  71. PINCTRL_PIN(51, "GPIO_51"),
  72. PINCTRL_PIN(52, "GPIO_52"),
  73. PINCTRL_PIN(53, "GPIO_53"),
  74. PINCTRL_PIN(54, "GPIO_54"),
  75. PINCTRL_PIN(55, "GPIO_55"),
  76. PINCTRL_PIN(56, "GPIO_56"),
  77. PINCTRL_PIN(57, "GPIO_57"),
  78. PINCTRL_PIN(58, "GPIO_58"),
  79. PINCTRL_PIN(59, "GPIO_59"),
  80. PINCTRL_PIN(60, "GPIO_60"),
  81. PINCTRL_PIN(61, "GPIO_61"),
  82. PINCTRL_PIN(62, "GPIO_62"),
  83. PINCTRL_PIN(63, "GPIO_63"),
  84. PINCTRL_PIN(64, "GPIO_64"),
  85. PINCTRL_PIN(65, "GPIO_65"),
  86. PINCTRL_PIN(66, "GPIO_66"),
  87. PINCTRL_PIN(67, "GPIO_67"),
  88. PINCTRL_PIN(68, "GPIO_68"),
  89. PINCTRL_PIN(69, "GPIO_69"),
  90. PINCTRL_PIN(70, "GPIO_70"),
  91. PINCTRL_PIN(71, "GPIO_71"),
  92. PINCTRL_PIN(72, "GPIO_72"),
  93. PINCTRL_PIN(73, "GPIO_73"),
  94. PINCTRL_PIN(74, "GPIO_74"),
  95. PINCTRL_PIN(75, "GPIO_75"),
  96. PINCTRL_PIN(76, "GPIO_76"),
  97. PINCTRL_PIN(77, "GPIO_77"),
  98. PINCTRL_PIN(78, "GPIO_78"),
  99. PINCTRL_PIN(79, "GPIO_79"),
  100. PINCTRL_PIN(80, "GPIO_80"),
  101. PINCTRL_PIN(81, "GPIO_81"),
  102. PINCTRL_PIN(82, "GPIO_82"),
  103. PINCTRL_PIN(83, "GPIO_83"),
  104. PINCTRL_PIN(84, "GPIO_84"),
  105. PINCTRL_PIN(85, "GPIO_85"),
  106. PINCTRL_PIN(86, "GPIO_86"),
  107. PINCTRL_PIN(87, "GPIO_87"),
  108. PINCTRL_PIN(88, "GPIO_88"),
  109. PINCTRL_PIN(89, "GPIO_89"),
  110. PINCTRL_PIN(90, "GPIO_90"),
  111. PINCTRL_PIN(91, "GPIO_91"),
  112. PINCTRL_PIN(92, "GPIO_92"),
  113. PINCTRL_PIN(93, "GPIO_93"),
  114. PINCTRL_PIN(94, "GPIO_94"),
  115. PINCTRL_PIN(95, "GPIO_95"),
  116. PINCTRL_PIN(96, "GPIO_96"),
  117. PINCTRL_PIN(97, "GPIO_97"),
  118. PINCTRL_PIN(98, "GPIO_98"),
  119. PINCTRL_PIN(99, "GPIO_99"),
  120. PINCTRL_PIN(100, "GPIO_100"),
  121. PINCTRL_PIN(101, "GPIO_101"),
  122. PINCTRL_PIN(102, "GPIO_102"),
  123. PINCTRL_PIN(103, "GPIO_103"),
  124. PINCTRL_PIN(104, "GPIO_104"),
  125. PINCTRL_PIN(105, "GPIO_105"),
  126. PINCTRL_PIN(106, "GPIO_106"),
  127. PINCTRL_PIN(107, "GPIO_107"),
  128. PINCTRL_PIN(108, "GPIO_108"),
  129. PINCTRL_PIN(109, "GPIO_109"),
  130. PINCTRL_PIN(110, "GPIO_110"),
  131. PINCTRL_PIN(111, "GPIO_111"),
  132. PINCTRL_PIN(112, "GPIO_112"),
  133. PINCTRL_PIN(113, "GPIO_113"),
  134. PINCTRL_PIN(114, "GPIO_114"),
  135. PINCTRL_PIN(115, "GPIO_115"),
  136. PINCTRL_PIN(116, "GPIO_116"),
  137. PINCTRL_PIN(117, "GPIO_117"),
  138. PINCTRL_PIN(118, "GPIO_118"),
  139. PINCTRL_PIN(119, "GPIO_119"),
  140. PINCTRL_PIN(120, "GPIO_120"),
  141. PINCTRL_PIN(121, "GPIO_121"),
  142. PINCTRL_PIN(122, "GPIO_122"),
  143. PINCTRL_PIN(123, "GPIO_123"),
  144. PINCTRL_PIN(124, "GPIO_124"),
  145. PINCTRL_PIN(125, "GPIO_125"),
  146. PINCTRL_PIN(126, "GPIO_126"),
  147. PINCTRL_PIN(127, "GPIO_127"),
  148. PINCTRL_PIN(128, "GPIO_128"),
  149. PINCTRL_PIN(129, "GPIO_129"),
  150. PINCTRL_PIN(130, "GPIO_130"),
  151. PINCTRL_PIN(131, "GPIO_131"),
  152. PINCTRL_PIN(132, "GPIO_132"),
  153. PINCTRL_PIN(133, "GPIO_133"),
  154. PINCTRL_PIN(134, "GPIO_134"),
  155. PINCTRL_PIN(135, "GPIO_135"),
  156. PINCTRL_PIN(136, "GPIO_136"),
  157. PINCTRL_PIN(137, "GPIO_137"),
  158. PINCTRL_PIN(138, "GPIO_138"),
  159. PINCTRL_PIN(139, "GPIO_139"),
  160. PINCTRL_PIN(140, "GPIO_140"),
  161. PINCTRL_PIN(141, "GPIO_141"),
  162. PINCTRL_PIN(142, "GPIO_142"),
  163. PINCTRL_PIN(143, "GPIO_143"),
  164. PINCTRL_PIN(144, "GPIO_144"),
  165. PINCTRL_PIN(145, "GPIO_145"),
  166. PINCTRL_PIN(146, "GPIO_146"),
  167. PINCTRL_PIN(147, "GPIO_147"),
  168. PINCTRL_PIN(148, "GPIO_148"),
  169. PINCTRL_PIN(149, "GPIO_149"),
  170. PINCTRL_PIN(150, "GPIO_150"),
  171. PINCTRL_PIN(151, "GPIO_151"),
  172. PINCTRL_PIN(152, "SDC1_CLK"),
  173. PINCTRL_PIN(153, "SDC1_CMD"),
  174. PINCTRL_PIN(154, "SDC1_DATA"),
  175. PINCTRL_PIN(155, "SDC3_CLK"),
  176. PINCTRL_PIN(156, "SDC3_CMD"),
  177. PINCTRL_PIN(157, "SDC3_DATA"),
  178. };
  179. #define DECLARE_MSM_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin }
  180. DECLARE_MSM_GPIO_PINS(0);
  181. DECLARE_MSM_GPIO_PINS(1);
  182. DECLARE_MSM_GPIO_PINS(2);
  183. DECLARE_MSM_GPIO_PINS(3);
  184. DECLARE_MSM_GPIO_PINS(4);
  185. DECLARE_MSM_GPIO_PINS(5);
  186. DECLARE_MSM_GPIO_PINS(6);
  187. DECLARE_MSM_GPIO_PINS(7);
  188. DECLARE_MSM_GPIO_PINS(8);
  189. DECLARE_MSM_GPIO_PINS(9);
  190. DECLARE_MSM_GPIO_PINS(10);
  191. DECLARE_MSM_GPIO_PINS(11);
  192. DECLARE_MSM_GPIO_PINS(12);
  193. DECLARE_MSM_GPIO_PINS(13);
  194. DECLARE_MSM_GPIO_PINS(14);
  195. DECLARE_MSM_GPIO_PINS(15);
  196. DECLARE_MSM_GPIO_PINS(16);
  197. DECLARE_MSM_GPIO_PINS(17);
  198. DECLARE_MSM_GPIO_PINS(18);
  199. DECLARE_MSM_GPIO_PINS(19);
  200. DECLARE_MSM_GPIO_PINS(20);
  201. DECLARE_MSM_GPIO_PINS(21);
  202. DECLARE_MSM_GPIO_PINS(22);
  203. DECLARE_MSM_GPIO_PINS(23);
  204. DECLARE_MSM_GPIO_PINS(24);
  205. DECLARE_MSM_GPIO_PINS(25);
  206. DECLARE_MSM_GPIO_PINS(26);
  207. DECLARE_MSM_GPIO_PINS(27);
  208. DECLARE_MSM_GPIO_PINS(28);
  209. DECLARE_MSM_GPIO_PINS(29);
  210. DECLARE_MSM_GPIO_PINS(30);
  211. DECLARE_MSM_GPIO_PINS(31);
  212. DECLARE_MSM_GPIO_PINS(32);
  213. DECLARE_MSM_GPIO_PINS(33);
  214. DECLARE_MSM_GPIO_PINS(34);
  215. DECLARE_MSM_GPIO_PINS(35);
  216. DECLARE_MSM_GPIO_PINS(36);
  217. DECLARE_MSM_GPIO_PINS(37);
  218. DECLARE_MSM_GPIO_PINS(38);
  219. DECLARE_MSM_GPIO_PINS(39);
  220. DECLARE_MSM_GPIO_PINS(40);
  221. DECLARE_MSM_GPIO_PINS(41);
  222. DECLARE_MSM_GPIO_PINS(42);
  223. DECLARE_MSM_GPIO_PINS(43);
  224. DECLARE_MSM_GPIO_PINS(44);
  225. DECLARE_MSM_GPIO_PINS(45);
  226. DECLARE_MSM_GPIO_PINS(46);
  227. DECLARE_MSM_GPIO_PINS(47);
  228. DECLARE_MSM_GPIO_PINS(48);
  229. DECLARE_MSM_GPIO_PINS(49);
  230. DECLARE_MSM_GPIO_PINS(50);
  231. DECLARE_MSM_GPIO_PINS(51);
  232. DECLARE_MSM_GPIO_PINS(52);
  233. DECLARE_MSM_GPIO_PINS(53);
  234. DECLARE_MSM_GPIO_PINS(54);
  235. DECLARE_MSM_GPIO_PINS(55);
  236. DECLARE_MSM_GPIO_PINS(56);
  237. DECLARE_MSM_GPIO_PINS(57);
  238. DECLARE_MSM_GPIO_PINS(58);
  239. DECLARE_MSM_GPIO_PINS(59);
  240. DECLARE_MSM_GPIO_PINS(60);
  241. DECLARE_MSM_GPIO_PINS(61);
  242. DECLARE_MSM_GPIO_PINS(62);
  243. DECLARE_MSM_GPIO_PINS(63);
  244. DECLARE_MSM_GPIO_PINS(64);
  245. DECLARE_MSM_GPIO_PINS(65);
  246. DECLARE_MSM_GPIO_PINS(66);
  247. DECLARE_MSM_GPIO_PINS(67);
  248. DECLARE_MSM_GPIO_PINS(68);
  249. DECLARE_MSM_GPIO_PINS(69);
  250. DECLARE_MSM_GPIO_PINS(70);
  251. DECLARE_MSM_GPIO_PINS(71);
  252. DECLARE_MSM_GPIO_PINS(72);
  253. DECLARE_MSM_GPIO_PINS(73);
  254. DECLARE_MSM_GPIO_PINS(74);
  255. DECLARE_MSM_GPIO_PINS(75);
  256. DECLARE_MSM_GPIO_PINS(76);
  257. DECLARE_MSM_GPIO_PINS(77);
  258. DECLARE_MSM_GPIO_PINS(78);
  259. DECLARE_MSM_GPIO_PINS(79);
  260. DECLARE_MSM_GPIO_PINS(80);
  261. DECLARE_MSM_GPIO_PINS(81);
  262. DECLARE_MSM_GPIO_PINS(82);
  263. DECLARE_MSM_GPIO_PINS(83);
  264. DECLARE_MSM_GPIO_PINS(84);
  265. DECLARE_MSM_GPIO_PINS(85);
  266. DECLARE_MSM_GPIO_PINS(86);
  267. DECLARE_MSM_GPIO_PINS(87);
  268. DECLARE_MSM_GPIO_PINS(88);
  269. DECLARE_MSM_GPIO_PINS(89);
  270. DECLARE_MSM_GPIO_PINS(90);
  271. DECLARE_MSM_GPIO_PINS(91);
  272. DECLARE_MSM_GPIO_PINS(92);
  273. DECLARE_MSM_GPIO_PINS(93);
  274. DECLARE_MSM_GPIO_PINS(94);
  275. DECLARE_MSM_GPIO_PINS(95);
  276. DECLARE_MSM_GPIO_PINS(96);
  277. DECLARE_MSM_GPIO_PINS(97);
  278. DECLARE_MSM_GPIO_PINS(98);
  279. DECLARE_MSM_GPIO_PINS(99);
  280. DECLARE_MSM_GPIO_PINS(100);
  281. DECLARE_MSM_GPIO_PINS(101);
  282. DECLARE_MSM_GPIO_PINS(102);
  283. DECLARE_MSM_GPIO_PINS(103);
  284. DECLARE_MSM_GPIO_PINS(104);
  285. DECLARE_MSM_GPIO_PINS(105);
  286. DECLARE_MSM_GPIO_PINS(106);
  287. DECLARE_MSM_GPIO_PINS(107);
  288. DECLARE_MSM_GPIO_PINS(108);
  289. DECLARE_MSM_GPIO_PINS(109);
  290. DECLARE_MSM_GPIO_PINS(110);
  291. DECLARE_MSM_GPIO_PINS(111);
  292. DECLARE_MSM_GPIO_PINS(112);
  293. DECLARE_MSM_GPIO_PINS(113);
  294. DECLARE_MSM_GPIO_PINS(114);
  295. DECLARE_MSM_GPIO_PINS(115);
  296. DECLARE_MSM_GPIO_PINS(116);
  297. DECLARE_MSM_GPIO_PINS(117);
  298. DECLARE_MSM_GPIO_PINS(118);
  299. DECLARE_MSM_GPIO_PINS(119);
  300. DECLARE_MSM_GPIO_PINS(120);
  301. DECLARE_MSM_GPIO_PINS(121);
  302. DECLARE_MSM_GPIO_PINS(122);
  303. DECLARE_MSM_GPIO_PINS(123);
  304. DECLARE_MSM_GPIO_PINS(124);
  305. DECLARE_MSM_GPIO_PINS(125);
  306. DECLARE_MSM_GPIO_PINS(126);
  307. DECLARE_MSM_GPIO_PINS(127);
  308. DECLARE_MSM_GPIO_PINS(128);
  309. DECLARE_MSM_GPIO_PINS(129);
  310. DECLARE_MSM_GPIO_PINS(130);
  311. DECLARE_MSM_GPIO_PINS(131);
  312. DECLARE_MSM_GPIO_PINS(132);
  313. DECLARE_MSM_GPIO_PINS(133);
  314. DECLARE_MSM_GPIO_PINS(134);
  315. DECLARE_MSM_GPIO_PINS(135);
  316. DECLARE_MSM_GPIO_PINS(136);
  317. DECLARE_MSM_GPIO_PINS(137);
  318. DECLARE_MSM_GPIO_PINS(138);
  319. DECLARE_MSM_GPIO_PINS(139);
  320. DECLARE_MSM_GPIO_PINS(140);
  321. DECLARE_MSM_GPIO_PINS(141);
  322. DECLARE_MSM_GPIO_PINS(142);
  323. DECLARE_MSM_GPIO_PINS(143);
  324. DECLARE_MSM_GPIO_PINS(144);
  325. DECLARE_MSM_GPIO_PINS(145);
  326. DECLARE_MSM_GPIO_PINS(146);
  327. DECLARE_MSM_GPIO_PINS(147);
  328. DECLARE_MSM_GPIO_PINS(148);
  329. DECLARE_MSM_GPIO_PINS(149);
  330. DECLARE_MSM_GPIO_PINS(150);
  331. DECLARE_MSM_GPIO_PINS(151);
  332. static const unsigned int sdc1_clk_pins[] = { 152 };
  333. static const unsigned int sdc1_cmd_pins[] = { 153 };
  334. static const unsigned int sdc1_data_pins[] = { 154 };
  335. static const unsigned int sdc3_clk_pins[] = { 155 };
  336. static const unsigned int sdc3_cmd_pins[] = { 156 };
  337. static const unsigned int sdc3_data_pins[] = { 157 };
  338. #define FUNCTION(fname) \
  339. [MSM_MUX_##fname] = { \
  340. .name = #fname, \
  341. .groups = fname##_groups, \
  342. .ngroups = ARRAY_SIZE(fname##_groups), \
  343. }
  344. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11) \
  345. { \
  346. .name = "gpio" #id, \
  347. .pins = gpio##id##_pins, \
  348. .npins = ARRAY_SIZE(gpio##id##_pins), \
  349. .funcs = (int[]){ \
  350. MSM_MUX_gpio, \
  351. MSM_MUX_##f1, \
  352. MSM_MUX_##f2, \
  353. MSM_MUX_##f3, \
  354. MSM_MUX_##f4, \
  355. MSM_MUX_##f5, \
  356. MSM_MUX_##f6, \
  357. MSM_MUX_##f7, \
  358. MSM_MUX_##f8, \
  359. MSM_MUX_##f9, \
  360. MSM_MUX_##f10, \
  361. MSM_MUX_##f11 \
  362. }, \
  363. .nfuncs = 12, \
  364. .ctl_reg = 0x1000 + 0x10 * id, \
  365. .io_reg = 0x1004 + 0x10 * id, \
  366. .intr_cfg_reg = 0x1008 + 0x10 * id, \
  367. .intr_status_reg = 0x100c + 0x10 * id, \
  368. .intr_target_reg = 0x400 + 0x4 * id, \
  369. .mux_bit = 2, \
  370. .pull_bit = 0, \
  371. .drv_bit = 6, \
  372. .oe_bit = 9, \
  373. .in_bit = 0, \
  374. .out_bit = 1, \
  375. .intr_enable_bit = 0, \
  376. .intr_status_bit = 0, \
  377. .intr_ack_high = 1, \
  378. .intr_target_bit = 0, \
  379. .intr_target_kpss_val = 4, \
  380. .intr_raw_status_bit = 3, \
  381. .intr_polarity_bit = 1, \
  382. .intr_detection_bit = 2, \
  383. .intr_detection_width = 1, \
  384. }
  385. #define SDC_PINGROUP(pg_name, ctl, pull, drv) \
  386. { \
  387. .name = #pg_name, \
  388. .pins = pg_name##_pins, \
  389. .npins = ARRAY_SIZE(pg_name##_pins), \
  390. .ctl_reg = ctl, \
  391. .io_reg = 0, \
  392. .intr_cfg_reg = 0, \
  393. .intr_status_reg = 0, \
  394. .intr_target_reg = 0, \
  395. .mux_bit = -1, \
  396. .pull_bit = pull, \
  397. .drv_bit = drv, \
  398. .oe_bit = -1, \
  399. .in_bit = -1, \
  400. .out_bit = -1, \
  401. .intr_enable_bit = -1, \
  402. .intr_status_bit = -1, \
  403. .intr_target_bit = -1, \
  404. .intr_target_kpss_val = -1, \
  405. .intr_raw_status_bit = -1, \
  406. .intr_polarity_bit = -1, \
  407. .intr_detection_bit = -1, \
  408. .intr_detection_width = -1, \
  409. }
  410. enum msm8960_functions {
  411. MSM_MUX_audio_pcm,
  412. MSM_MUX_bt,
  413. MSM_MUX_cam_mclk0,
  414. MSM_MUX_cam_mclk1,
  415. MSM_MUX_cam_mclk2,
  416. MSM_MUX_codec_mic_i2s,
  417. MSM_MUX_codec_spkr_i2s,
  418. MSM_MUX_ext_gps,
  419. MSM_MUX_fm,
  420. MSM_MUX_gps_blanking,
  421. MSM_MUX_gps_pps_in,
  422. MSM_MUX_gps_pps_out,
  423. MSM_MUX_gp_clk_0a,
  424. MSM_MUX_gp_clk_0b,
  425. MSM_MUX_gp_clk_1a,
  426. MSM_MUX_gp_clk_1b,
  427. MSM_MUX_gp_clk_2a,
  428. MSM_MUX_gp_clk_2b,
  429. MSM_MUX_gp_mn,
  430. MSM_MUX_gp_pdm_0a,
  431. MSM_MUX_gp_pdm_0b,
  432. MSM_MUX_gp_pdm_1a,
  433. MSM_MUX_gp_pdm_1b,
  434. MSM_MUX_gp_pdm_2a,
  435. MSM_MUX_gp_pdm_2b,
  436. MSM_MUX_gpio,
  437. MSM_MUX_gsbi1,
  438. MSM_MUX_gsbi1_spi_cs1_n,
  439. MSM_MUX_gsbi1_spi_cs2a_n,
  440. MSM_MUX_gsbi1_spi_cs2b_n,
  441. MSM_MUX_gsbi1_spi_cs3_n,
  442. MSM_MUX_gsbi2,
  443. MSM_MUX_gsbi2_spi_cs1_n,
  444. MSM_MUX_gsbi2_spi_cs2_n,
  445. MSM_MUX_gsbi2_spi_cs3_n,
  446. MSM_MUX_gsbi3,
  447. MSM_MUX_gsbi4,
  448. MSM_MUX_gsbi4_3d_cam_i2c_l,
  449. MSM_MUX_gsbi4_3d_cam_i2c_r,
  450. MSM_MUX_gsbi5,
  451. MSM_MUX_gsbi5_3d_cam_i2c_l,
  452. MSM_MUX_gsbi5_3d_cam_i2c_r,
  453. MSM_MUX_gsbi6,
  454. MSM_MUX_gsbi7,
  455. MSM_MUX_gsbi8,
  456. MSM_MUX_gsbi9,
  457. MSM_MUX_gsbi10,
  458. MSM_MUX_gsbi11,
  459. MSM_MUX_gsbi11_spi_cs1a_n,
  460. MSM_MUX_gsbi11_spi_cs1b_n,
  461. MSM_MUX_gsbi11_spi_cs2a_n,
  462. MSM_MUX_gsbi11_spi_cs2b_n,
  463. MSM_MUX_gsbi11_spi_cs3_n,
  464. MSM_MUX_gsbi12,
  465. MSM_MUX_hdmi_cec,
  466. MSM_MUX_hdmi_ddc_clock,
  467. MSM_MUX_hdmi_ddc_data,
  468. MSM_MUX_hdmi_hot_plug_detect,
  469. MSM_MUX_hsic,
  470. MSM_MUX_mdp_vsync,
  471. MSM_MUX_mi2s,
  472. MSM_MUX_mic_i2s,
  473. MSM_MUX_pmb_clk,
  474. MSM_MUX_pmb_ext_ctrl,
  475. MSM_MUX_ps_hold,
  476. MSM_MUX_rpm_wdog,
  477. MSM_MUX_sdc2,
  478. MSM_MUX_sdc4,
  479. MSM_MUX_sdc5,
  480. MSM_MUX_slimbus1,
  481. MSM_MUX_slimbus2,
  482. MSM_MUX_spkr_i2s,
  483. MSM_MUX_ssbi1,
  484. MSM_MUX_ssbi2,
  485. MSM_MUX_ssbi_ext_gps,
  486. MSM_MUX_ssbi_pmic2,
  487. MSM_MUX_ssbi_qpa1,
  488. MSM_MUX_ssbi_ts,
  489. MSM_MUX_tsif1,
  490. MSM_MUX_tsif2,
  491. MSM_MUX_ts_eoc,
  492. MSM_MUX_usb_fs1,
  493. MSM_MUX_usb_fs1_oe,
  494. MSM_MUX_usb_fs1_oe_n,
  495. MSM_MUX_usb_fs2,
  496. MSM_MUX_usb_fs2_oe,
  497. MSM_MUX_usb_fs2_oe_n,
  498. MSM_MUX_vfe_camif_timer1_a,
  499. MSM_MUX_vfe_camif_timer1_b,
  500. MSM_MUX_vfe_camif_timer2,
  501. MSM_MUX_vfe_camif_timer3_a,
  502. MSM_MUX_vfe_camif_timer3_b,
  503. MSM_MUX_vfe_camif_timer4_a,
  504. MSM_MUX_vfe_camif_timer4_b,
  505. MSM_MUX_vfe_camif_timer4_c,
  506. MSM_MUX_vfe_camif_timer5_a,
  507. MSM_MUX_vfe_camif_timer5_b,
  508. MSM_MUX_vfe_camif_timer6_a,
  509. MSM_MUX_vfe_camif_timer6_b,
  510. MSM_MUX_vfe_camif_timer6_c,
  511. MSM_MUX_vfe_camif_timer7_a,
  512. MSM_MUX_vfe_camif_timer7_b,
  513. MSM_MUX_vfe_camif_timer7_c,
  514. MSM_MUX_wlan,
  515. MSM_MUX_NA,
  516. };
  517. static const char * const audio_pcm_groups[] = {
  518. "gpio63", "gpio64", "gpio65", "gpio66"
  519. };
  520. static const char * const bt_groups[] = {
  521. "gpio28", "gpio29", "gpio83"
  522. };
  523. static const char * const cam_mclk0_groups[] = {
  524. "gpio5"
  525. };
  526. static const char * const cam_mclk1_groups[] = {
  527. "gpio4"
  528. };
  529. static const char * const cam_mclk2_groups[] = {
  530. "gpio2"
  531. };
  532. static const char * const codec_mic_i2s_groups[] = {
  533. "gpio54", "gpio55", "gpio56", "gpio57", "gpio58"
  534. };
  535. static const char * const codec_spkr_i2s_groups[] = {
  536. "gpio59", "gpio60", "gpio61", "gpio62"
  537. };
  538. static const char * const ext_gps_groups[] = {
  539. "gpio22", "gpio23", "gpio24", "gpio25"
  540. };
  541. static const char * const fm_groups[] = {
  542. "gpio26", "gpio27"
  543. };
  544. static const char * const gps_blanking_groups[] = {
  545. "gpio137"
  546. };
  547. static const char * const gps_pps_in_groups[] = {
  548. "gpio37"
  549. };
  550. static const char * const gps_pps_out_groups[] = {
  551. "gpio37"
  552. };
  553. static const char * const gp_clk_0a_groups[] = {
  554. "gpio3"
  555. };
  556. static const char * const gp_clk_0b_groups[] = {
  557. "gpio54"
  558. };
  559. static const char * const gp_clk_1a_groups[] = {
  560. "gpio4"
  561. };
  562. static const char * const gp_clk_1b_groups[] = {
  563. "gpio70"
  564. };
  565. static const char * const gp_clk_2a_groups[] = {
  566. "gpio52"
  567. };
  568. static const char * const gp_clk_2b_groups[] = {
  569. "gpio37"
  570. };
  571. static const char * const gp_mn_groups[] = {
  572. "gpio2"
  573. };
  574. static const char * const gp_pdm_0a_groups[] = {
  575. "gpio58"
  576. };
  577. static const char * const gp_pdm_0b_groups[] = {
  578. "gpio39"
  579. };
  580. static const char * const gp_pdm_1a_groups[] = {
  581. "gpio94"
  582. };
  583. static const char * const gp_pdm_1b_groups[] = {
  584. "gpio64"
  585. };
  586. static const char * const gp_pdm_2a_groups[] = {
  587. "gpio69"
  588. };
  589. static const char * const gp_pdm_2b_groups[] = {
  590. "gpio53"
  591. };
  592. static const char * const gpio_groups[] = {
  593. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  594. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  595. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  596. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  597. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  598. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  599. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  600. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  601. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  602. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  603. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  604. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  605. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
  606. "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
  607. "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
  608. "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
  609. "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
  610. "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
  611. "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
  612. "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
  613. "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
  614. "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
  615. "gpio147", "gpio148", "gpio149", "gpio150", "gpio151"
  616. };
  617. static const char * const gsbi1_groups[] = {
  618. "gpio6", "gpio7", "gpio8", "gpio9"
  619. };
  620. static const char * const gsbi1_spi_cs1_n_groups[] = {
  621. "gpio14"
  622. };
  623. static const char * const gsbi1_spi_cs2a_n_groups[] = {
  624. "gpio15"
  625. };
  626. static const char * const gsbi1_spi_cs2b_n_groups[] = {
  627. "gpio17"
  628. };
  629. static const char * const gsbi1_spi_cs3_n_groups[] = {
  630. "gpio16"
  631. };
  632. static const char * const gsbi2_groups[] = {
  633. "gpio10", "gpio11", "gpio12", "gpio13"
  634. };
  635. static const char * const gsbi2_spi_cs1_n_groups[] = {
  636. "gpio52"
  637. };
  638. static const char * const gsbi2_spi_cs2_n_groups[] = {
  639. "gpio68"
  640. };
  641. static const char * const gsbi2_spi_cs3_n_groups[] = {
  642. "gpio56"
  643. };
  644. static const char * const gsbi3_groups[] = {
  645. "gpio14", "gpio15", "gpio16", "gpio17"
  646. };
  647. static const char * const gsbi4_groups[] = {
  648. "gpio18", "gpio19", "gpio20", "gpio21"
  649. };
  650. static const char * const gsbi4_3d_cam_i2c_l_groups[] = {
  651. "gpio18", "gpio19"
  652. };
  653. static const char * const gsbi4_3d_cam_i2c_r_groups[] = {
  654. "gpio20", "gpio21"
  655. };
  656. static const char * const gsbi5_groups[] = {
  657. "gpio22", "gpio23", "gpio24", "gpio25"
  658. };
  659. static const char * const gsbi5_3d_cam_i2c_l_groups[] = {
  660. "gpio22", "gpio23"
  661. };
  662. static const char * const gsbi5_3d_cam_i2c_r_groups[] = {
  663. "gpio24", "gpio25"
  664. };
  665. static const char * const gsbi6_groups[] = {
  666. "gpio26", "gpio27", "gpio28", "gpio29"
  667. };
  668. static const char * const gsbi7_groups[] = {
  669. "gpio30", "gpio31", "gpio32", "gpio33"
  670. };
  671. static const char * const gsbi8_groups[] = {
  672. "gpio34", "gpio35", "gpio36", "gpio37"
  673. };
  674. static const char * const gsbi9_groups[] = {
  675. "gpio93", "gpio94", "gpio95", "gpio96"
  676. };
  677. static const char * const gsbi10_groups[] = {
  678. "gpio71", "gpio72", "gpio73", "gpio74"
  679. };
  680. static const char * const gsbi11_groups[] = {
  681. "gpio38", "gpio39", "gpio40", "gpio41"
  682. };
  683. static const char * const gsbi11_spi_cs1a_n_groups[] = {
  684. "gpio36"
  685. };
  686. static const char * const gsbi11_spi_cs1b_n_groups[] = {
  687. "gpio18"
  688. };
  689. static const char * const gsbi11_spi_cs2a_n_groups[] = {
  690. "gpio37"
  691. };
  692. static const char * const gsbi11_spi_cs2b_n_groups[] = {
  693. "gpio19"
  694. };
  695. static const char * const gsbi11_spi_cs3_n_groups[] = {
  696. "gpio76"
  697. };
  698. static const char * const gsbi12_groups[] = {
  699. "gpio42", "gpio43", "gpio44", "gpio45"
  700. };
  701. static const char * const hdmi_cec_groups[] = {
  702. "gpio99"
  703. };
  704. static const char * const hdmi_ddc_clock_groups[] = {
  705. "gpio100"
  706. };
  707. static const char * const hdmi_ddc_data_groups[] = {
  708. "gpio101"
  709. };
  710. static const char * const hdmi_hot_plug_detect_groups[] = {
  711. "gpio102"
  712. };
  713. static const char * const hsic_groups[] = {
  714. "gpio150", "gpio151"
  715. };
  716. static const char * const mdp_vsync_groups[] = {
  717. "gpio0", "gpio1", "gpio19"
  718. };
  719. static const char * const mi2s_groups[] = {
  720. "gpio47", "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53"
  721. };
  722. static const char * const mic_i2s_groups[] = {
  723. "gpio71", "gpio72", "gpio73", "gpio74"
  724. };
  725. static const char * const pmb_clk_groups[] = {
  726. "gpio21", "gpio86", "gpio112"
  727. };
  728. static const char * const pmb_ext_ctrl_groups[] = {
  729. "gpio4", "gpio5"
  730. };
  731. static const char * const ps_hold_groups[] = {
  732. "gpio108"
  733. };
  734. static const char * const rpm_wdog_groups[] = {
  735. "gpio12"
  736. };
  737. static const char * const sdc2_groups[] = {
  738. "gpio89", "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95",
  739. "gpio96", "gpio97", "gpio98"
  740. };
  741. static const char * const sdc4_groups[] = {
  742. "gpio83", "gpio84", "gpio85", "gpio86", "gpio87", "gpio88"
  743. };
  744. static const char * const sdc5_groups[] = {
  745. "gpio77", "gpio78", "gpio79", "gpio80", "gpio81", "gpio82"
  746. };
  747. static const char * const slimbus1_groups[] = {
  748. "gpio50", "gpio51", "gpio60", "gpio61"
  749. };
  750. static const char * const slimbus2_groups[] = {
  751. "gpio42", "gpio43"
  752. };
  753. static const char * const spkr_i2s_groups[] = {
  754. "gpio67", "gpio68", "gpio69", "gpio70"
  755. };
  756. static const char * const ssbi1_groups[] = {
  757. "gpio141", "gpio143"
  758. };
  759. static const char * const ssbi2_groups[] = {
  760. "gpio140", "gpio142"
  761. };
  762. static const char * const ssbi_ext_gps_groups[] = {
  763. "gpio23"
  764. };
  765. static const char * const ssbi_pmic2_groups[] = {
  766. "gpio149"
  767. };
  768. static const char * const ssbi_qpa1_groups[] = {
  769. "gpio131"
  770. };
  771. static const char * const ssbi_ts_groups[] = {
  772. "gpio10"
  773. };
  774. static const char * const tsif1_groups[] = {
  775. "gpio75", "gpio76", "gpio77", "gpio82"
  776. };
  777. static const char * const tsif2_groups[] = {
  778. "gpio78", "gpio79", "gpio80", "gpio81"
  779. };
  780. static const char * const ts_eoc_groups[] = {
  781. "gpio11"
  782. };
  783. static const char * const usb_fs1_groups[] = {
  784. "gpio32", "gpio33"
  785. };
  786. static const char * const usb_fs1_oe_groups[] = {
  787. "gpio31"
  788. };
  789. static const char * const usb_fs1_oe_n_groups[] = {
  790. "gpio31"
  791. };
  792. static const char * const usb_fs2_groups[] = {
  793. "gpio34", "gpio35"
  794. };
  795. static const char * const usb_fs2_oe_groups[] = {
  796. "gpio36"
  797. };
  798. static const char * const usb_fs2_oe_n_groups[] = {
  799. "gpio36"
  800. };
  801. static const char * const vfe_camif_timer1_a_groups[] = {
  802. "gpio2"
  803. };
  804. static const char * const vfe_camif_timer1_b_groups[] = {
  805. "gpio38"
  806. };
  807. static const char * const vfe_camif_timer2_groups[] = {
  808. "gpio3"
  809. };
  810. static const char * const vfe_camif_timer3_a_groups[] = {
  811. "gpio4"
  812. };
  813. static const char * const vfe_camif_timer3_b_groups[] = {
  814. "gpio151"
  815. };
  816. static const char * const vfe_camif_timer4_a_groups[] = {
  817. "gpio65"
  818. };
  819. static const char * const vfe_camif_timer4_b_groups[] = {
  820. "gpio150"
  821. };
  822. static const char * const vfe_camif_timer4_c_groups[] = {
  823. "gpio10"
  824. };
  825. static const char * const vfe_camif_timer5_a_groups[] = {
  826. "gpio66"
  827. };
  828. static const char * const vfe_camif_timer5_b_groups[] = {
  829. "gpio39"
  830. };
  831. static const char * const vfe_camif_timer6_a_groups[] = {
  832. "gpio71"
  833. };
  834. static const char * const vfe_camif_timer6_b_groups[] = {
  835. "gpio0"
  836. };
  837. static const char * const vfe_camif_timer6_c_groups[] = {
  838. "gpio18"
  839. };
  840. static const char * const vfe_camif_timer7_a_groups[] = {
  841. "gpio67"
  842. };
  843. static const char * const vfe_camif_timer7_b_groups[] = {
  844. "gpio1"
  845. };
  846. static const char * const vfe_camif_timer7_c_groups[] = {
  847. "gpio19"
  848. };
  849. static const char * const wlan_groups[] = {
  850. "gpio84", "gpio85", "gpio86", "gpio87", "gpio88"
  851. };
  852. static const struct msm_function msm8960_functions[] = {
  853. FUNCTION(audio_pcm),
  854. FUNCTION(bt),
  855. FUNCTION(cam_mclk0),
  856. FUNCTION(cam_mclk1),
  857. FUNCTION(cam_mclk2),
  858. FUNCTION(codec_mic_i2s),
  859. FUNCTION(codec_spkr_i2s),
  860. FUNCTION(ext_gps),
  861. FUNCTION(fm),
  862. FUNCTION(gps_blanking),
  863. FUNCTION(gps_pps_in),
  864. FUNCTION(gps_pps_out),
  865. FUNCTION(gp_clk_0a),
  866. FUNCTION(gp_clk_0b),
  867. FUNCTION(gp_clk_1a),
  868. FUNCTION(gp_clk_1b),
  869. FUNCTION(gp_clk_2a),
  870. FUNCTION(gp_clk_2b),
  871. FUNCTION(gp_mn),
  872. FUNCTION(gp_pdm_0a),
  873. FUNCTION(gp_pdm_0b),
  874. FUNCTION(gp_pdm_1a),
  875. FUNCTION(gp_pdm_1b),
  876. FUNCTION(gp_pdm_2a),
  877. FUNCTION(gp_pdm_2b),
  878. FUNCTION(gpio),
  879. FUNCTION(gsbi1),
  880. FUNCTION(gsbi1_spi_cs1_n),
  881. FUNCTION(gsbi1_spi_cs2a_n),
  882. FUNCTION(gsbi1_spi_cs2b_n),
  883. FUNCTION(gsbi1_spi_cs3_n),
  884. FUNCTION(gsbi2),
  885. FUNCTION(gsbi2_spi_cs1_n),
  886. FUNCTION(gsbi2_spi_cs2_n),
  887. FUNCTION(gsbi2_spi_cs3_n),
  888. FUNCTION(gsbi3),
  889. FUNCTION(gsbi4),
  890. FUNCTION(gsbi4_3d_cam_i2c_l),
  891. FUNCTION(gsbi4_3d_cam_i2c_r),
  892. FUNCTION(gsbi5),
  893. FUNCTION(gsbi5_3d_cam_i2c_l),
  894. FUNCTION(gsbi5_3d_cam_i2c_r),
  895. FUNCTION(gsbi6),
  896. FUNCTION(gsbi7),
  897. FUNCTION(gsbi8),
  898. FUNCTION(gsbi9),
  899. FUNCTION(gsbi10),
  900. FUNCTION(gsbi11),
  901. FUNCTION(gsbi11_spi_cs1a_n),
  902. FUNCTION(gsbi11_spi_cs1b_n),
  903. FUNCTION(gsbi11_spi_cs2a_n),
  904. FUNCTION(gsbi11_spi_cs2b_n),
  905. FUNCTION(gsbi11_spi_cs3_n),
  906. FUNCTION(gsbi12),
  907. FUNCTION(hdmi_cec),
  908. FUNCTION(hdmi_ddc_clock),
  909. FUNCTION(hdmi_ddc_data),
  910. FUNCTION(hdmi_hot_plug_detect),
  911. FUNCTION(hsic),
  912. FUNCTION(mdp_vsync),
  913. FUNCTION(mi2s),
  914. FUNCTION(mic_i2s),
  915. FUNCTION(pmb_clk),
  916. FUNCTION(pmb_ext_ctrl),
  917. FUNCTION(ps_hold),
  918. FUNCTION(rpm_wdog),
  919. FUNCTION(sdc2),
  920. FUNCTION(sdc4),
  921. FUNCTION(sdc5),
  922. FUNCTION(slimbus1),
  923. FUNCTION(slimbus2),
  924. FUNCTION(spkr_i2s),
  925. FUNCTION(ssbi1),
  926. FUNCTION(ssbi2),
  927. FUNCTION(ssbi_ext_gps),
  928. FUNCTION(ssbi_pmic2),
  929. FUNCTION(ssbi_qpa1),
  930. FUNCTION(ssbi_ts),
  931. FUNCTION(tsif1),
  932. FUNCTION(tsif2),
  933. FUNCTION(ts_eoc),
  934. FUNCTION(usb_fs1),
  935. FUNCTION(usb_fs1_oe),
  936. FUNCTION(usb_fs1_oe_n),
  937. FUNCTION(usb_fs2),
  938. FUNCTION(usb_fs2_oe),
  939. FUNCTION(usb_fs2_oe_n),
  940. FUNCTION(vfe_camif_timer1_a),
  941. FUNCTION(vfe_camif_timer1_b),
  942. FUNCTION(vfe_camif_timer2),
  943. FUNCTION(vfe_camif_timer3_a),
  944. FUNCTION(vfe_camif_timer3_b),
  945. FUNCTION(vfe_camif_timer4_a),
  946. FUNCTION(vfe_camif_timer4_b),
  947. FUNCTION(vfe_camif_timer4_c),
  948. FUNCTION(vfe_camif_timer5_a),
  949. FUNCTION(vfe_camif_timer5_b),
  950. FUNCTION(vfe_camif_timer6_a),
  951. FUNCTION(vfe_camif_timer6_b),
  952. FUNCTION(vfe_camif_timer6_c),
  953. FUNCTION(vfe_camif_timer7_a),
  954. FUNCTION(vfe_camif_timer7_b),
  955. FUNCTION(vfe_camif_timer7_c),
  956. FUNCTION(wlan),
  957. };
  958. static const struct msm_pingroup msm8960_groups[] = {
  959. PINGROUP(0, mdp_vsync, vfe_camif_timer6_b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  960. PINGROUP(1, mdp_vsync, vfe_camif_timer7_b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  961. PINGROUP(2, vfe_camif_timer1_a, gp_mn, NA, cam_mclk2, NA, NA, NA, NA, NA, NA, NA),
  962. PINGROUP(3, vfe_camif_timer2, gp_clk_0a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  963. PINGROUP(4, vfe_camif_timer3_a, cam_mclk1, gp_clk_1a, pmb_ext_ctrl, NA, NA, NA, NA, NA, NA, NA),
  964. PINGROUP(5, cam_mclk0, pmb_ext_ctrl, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  965. PINGROUP(6, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  966. PINGROUP(7, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  967. PINGROUP(8, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  968. PINGROUP(9, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  969. PINGROUP(10, gsbi2, ssbi_ts, NA, vfe_camif_timer4_c, NA, NA, NA, NA, NA, NA, NA),
  970. PINGROUP(11, gsbi2, ts_eoc, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  971. PINGROUP(12, gsbi2, rpm_wdog, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  972. PINGROUP(13, gsbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  973. PINGROUP(14, gsbi3, gsbi1_spi_cs1_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  974. PINGROUP(15, gsbi3, gsbi1_spi_cs2a_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  975. PINGROUP(16, gsbi3, gsbi1_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  976. PINGROUP(17, gsbi3, gsbi1_spi_cs2b_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  977. PINGROUP(18, gsbi4, gsbi11_spi_cs1b_n, NA, NA, gsbi4_3d_cam_i2c_l, vfe_camif_timer6_c, NA, NA, NA, NA, NA),
  978. PINGROUP(19, gsbi4, gsbi11_spi_cs2b_n, NA, mdp_vsync, NA, gsbi4_3d_cam_i2c_l, vfe_camif_timer7_c, NA, NA, NA, NA),
  979. PINGROUP(20, gsbi4, gsbi4_3d_cam_i2c_r, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  980. PINGROUP(21, gsbi4, pmb_clk, gsbi4_3d_cam_i2c_r, NA, NA, NA, NA, NA, NA, NA, NA),
  981. PINGROUP(22, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_l, NA),
  982. PINGROUP(23, gsbi5, ssbi_ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_l, NA),
  983. PINGROUP(24, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_r, NA),
  984. PINGROUP(25, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_r, NA),
  985. PINGROUP(26, fm, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  986. PINGROUP(27, fm, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  987. PINGROUP(28, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  988. PINGROUP(29, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  989. PINGROUP(30, gsbi7, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  990. PINGROUP(31, gsbi7, usb_fs1_oe, usb_fs1_oe_n, NA, NA, NA, NA, NA, NA, NA, NA),
  991. PINGROUP(32, gsbi7, usb_fs1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  992. PINGROUP(33, gsbi7, usb_fs1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  993. PINGROUP(34, gsbi8, usb_fs2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  994. PINGROUP(35, gsbi8, usb_fs2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  995. PINGROUP(36, gsbi8, usb_fs2_oe, usb_fs2_oe_n, gsbi11_spi_cs1a_n, NA, NA, NA, NA, NA, NA, NA),
  996. PINGROUP(37, gsbi8, gps_pps_out, gps_pps_in, gsbi11_spi_cs2a_n, gp_clk_2b, NA, NA, NA, NA, NA, NA),
  997. PINGROUP(38, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, vfe_camif_timer1_b, NA),
  998. PINGROUP(39, gsbi11, gp_pdm_0b, NA, NA, NA, NA, NA, NA, NA, NA, vfe_camif_timer5_b),
  999. PINGROUP(40, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1000. PINGROUP(41, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1001. PINGROUP(42, gsbi12, slimbus2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1002. PINGROUP(43, gsbi12, slimbus2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1003. PINGROUP(44, gsbi12, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1004. PINGROUP(45, gsbi12, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1005. PINGROUP(46, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1006. PINGROUP(47, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1007. PINGROUP(48, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1008. PINGROUP(49, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1009. PINGROUP(50, mi2s, slimbus1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1010. PINGROUP(51, mi2s, slimbus1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1011. PINGROUP(52, mi2s, gp_clk_2a, gsbi2_spi_cs1_n, NA, NA, NA, NA, NA, NA, NA, NA),
  1012. PINGROUP(53, mi2s, gp_pdm_2b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1013. PINGROUP(54, codec_mic_i2s, gp_clk_0b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1014. PINGROUP(55, codec_mic_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1015. PINGROUP(56, codec_mic_i2s, gsbi2_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1016. PINGROUP(57, codec_mic_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1017. PINGROUP(58, codec_mic_i2s, gp_pdm_0a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1018. PINGROUP(59, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1019. PINGROUP(60, slimbus1, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1020. PINGROUP(61, slimbus1, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1021. PINGROUP(62, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1022. PINGROUP(63, audio_pcm, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1023. PINGROUP(64, audio_pcm, gp_pdm_1b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1024. PINGROUP(65, audio_pcm, vfe_camif_timer4_a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1025. PINGROUP(66, audio_pcm, vfe_camif_timer5_a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1026. PINGROUP(67, spkr_i2s, vfe_camif_timer7_a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1027. PINGROUP(68, spkr_i2s, gsbi2_spi_cs2_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1028. PINGROUP(69, spkr_i2s, gp_pdm_2a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1029. PINGROUP(70, spkr_i2s, gp_clk_1b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1030. PINGROUP(71, mic_i2s, gsbi10, vfe_camif_timer6_a, NA, NA, NA, NA, NA, NA, NA, NA),
  1031. PINGROUP(72, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1032. PINGROUP(73, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1033. PINGROUP(74, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1034. PINGROUP(75, tsif1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1035. PINGROUP(76, tsif1, gsbi11_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1036. PINGROUP(77, tsif1, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1037. PINGROUP(78, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1038. PINGROUP(79, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1039. PINGROUP(80, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1040. PINGROUP(81, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1041. PINGROUP(82, tsif1, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1042. PINGROUP(83, bt, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1043. PINGROUP(84, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1044. PINGROUP(85, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1045. PINGROUP(86, wlan, sdc4, pmb_clk, NA, NA, NA, NA, NA, NA, NA, NA),
  1046. PINGROUP(87, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1047. PINGROUP(88, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1048. PINGROUP(89, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1049. PINGROUP(90, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1050. PINGROUP(91, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1051. PINGROUP(92, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1052. PINGROUP(93, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1053. PINGROUP(94, sdc2, gsbi9, gp_pdm_1a, NA, NA, NA, NA, NA, NA, NA, NA),
  1054. PINGROUP(95, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1055. PINGROUP(96, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1056. PINGROUP(97, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1057. PINGROUP(98, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1058. PINGROUP(99, hdmi_cec, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1059. PINGROUP(100, hdmi_ddc_clock, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1060. PINGROUP(101, hdmi_ddc_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1061. PINGROUP(102, hdmi_hot_plug_detect, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1062. PINGROUP(103, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1063. PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1064. PINGROUP(105, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1065. PINGROUP(106, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1066. PINGROUP(107, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1067. PINGROUP(108, ps_hold, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1068. PINGROUP(109, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1069. PINGROUP(110, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1070. PINGROUP(111, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1071. PINGROUP(112, NA, pmb_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1072. PINGROUP(113, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1073. PINGROUP(114, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1074. PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1075. PINGROUP(116, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1076. PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1077. PINGROUP(118, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1078. PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1079. PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1080. PINGROUP(121, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1081. PINGROUP(122, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1082. PINGROUP(123, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1083. PINGROUP(124, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1084. PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1085. PINGROUP(126, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1086. PINGROUP(127, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1087. PINGROUP(128, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1088. PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1089. PINGROUP(130, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1090. PINGROUP(131, NA, ssbi_qpa1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1091. PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1092. PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1093. PINGROUP(134, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1094. PINGROUP(135, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1095. PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1096. PINGROUP(137, gps_blanking, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1097. PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1098. PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1099. PINGROUP(140, ssbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1100. PINGROUP(141, ssbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1101. PINGROUP(142, ssbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1102. PINGROUP(143, ssbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1103. PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1104. PINGROUP(145, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1105. PINGROUP(146, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1106. PINGROUP(147, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1107. PINGROUP(148, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1108. PINGROUP(149, ssbi_pmic2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  1109. PINGROUP(150, hsic, NA, vfe_camif_timer4_b, NA, NA, NA, NA, NA, NA, NA, NA),
  1110. PINGROUP(151, hsic, NA, vfe_camif_timer3_b, NA, NA, NA, NA, NA, NA, NA, NA),
  1111. SDC_PINGROUP(sdc1_clk, 0x20a0, 13, 6),
  1112. SDC_PINGROUP(sdc1_cmd, 0x20a0, 11, 3),
  1113. SDC_PINGROUP(sdc1_data, 0x20a0, 9, 0),
  1114. SDC_PINGROUP(sdc3_clk, 0x20a4, 14, 6),
  1115. SDC_PINGROUP(sdc3_cmd, 0x20a4, 11, 3),
  1116. SDC_PINGROUP(sdc3_data, 0x20a4, 9, 0),
  1117. };
  1118. #define NUM_GPIO_PINGROUPS 152
  1119. static const struct msm_pinctrl_soc_data msm8960_pinctrl = {
  1120. .pins = msm8960_pins,
  1121. .npins = ARRAY_SIZE(msm8960_pins),
  1122. .functions = msm8960_functions,
  1123. .nfunctions = ARRAY_SIZE(msm8960_functions),
  1124. .groups = msm8960_groups,
  1125. .ngroups = ARRAY_SIZE(msm8960_groups),
  1126. .ngpios = NUM_GPIO_PINGROUPS,
  1127. };
  1128. static int msm8960_pinctrl_probe(struct platform_device *pdev)
  1129. {
  1130. return msm_pinctrl_probe(pdev, &msm8960_pinctrl);
  1131. }
  1132. static const struct of_device_id msm8960_pinctrl_of_match[] = {
  1133. { .compatible = "qcom,msm8960-pinctrl", },
  1134. { },
  1135. };
  1136. static struct platform_driver msm8960_pinctrl_driver = {
  1137. .driver = {
  1138. .name = "msm8960-pinctrl",
  1139. .of_match_table = msm8960_pinctrl_of_match,
  1140. },
  1141. .probe = msm8960_pinctrl_probe,
  1142. .remove = msm_pinctrl_remove,
  1143. };
  1144. static int __init msm8960_pinctrl_init(void)
  1145. {
  1146. return platform_driver_register(&msm8960_pinctrl_driver);
  1147. }
  1148. arch_initcall(msm8960_pinctrl_init);
  1149. static void __exit msm8960_pinctrl_exit(void)
  1150. {
  1151. platform_driver_unregister(&msm8960_pinctrl_driver);
  1152. }
  1153. module_exit(msm8960_pinctrl_exit);
  1154. MODULE_AUTHOR("Bjorn Andersson <bjorn.andersson@sonymobile.com>");
  1155. MODULE_DESCRIPTION("Qualcomm MSM8960 pinctrl driver");
  1156. MODULE_LICENSE("GPL v2");
  1157. MODULE_DEVICE_TABLE(of, msm8960_pinctrl_of_match);