pinctrl-ipq6018.c 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/platform_device.h>
  8. #include <linux/pinctrl/pinctrl.h>
  9. #include "pinctrl-msm.h"
  10. #define FUNCTION(fname) \
  11. [msm_mux_##fname] = { \
  12. .name = #fname, \
  13. .groups = fname##_groups, \
  14. .ngroups = ARRAY_SIZE(fname##_groups), \
  15. }
  16. #define REG_SIZE 0x1000
  17. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  18. { \
  19. .name = "gpio" #id, \
  20. .pins = gpio##id##_pins, \
  21. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  22. .funcs = (int[]){ \
  23. msm_mux_gpio, /* gpio mode */ \
  24. msm_mux_##f1, \
  25. msm_mux_##f2, \
  26. msm_mux_##f3, \
  27. msm_mux_##f4, \
  28. msm_mux_##f5, \
  29. msm_mux_##f6, \
  30. msm_mux_##f7, \
  31. msm_mux_##f8, \
  32. msm_mux_##f9 \
  33. }, \
  34. .nfuncs = 10, \
  35. .ctl_reg = REG_SIZE * id, \
  36. .io_reg = 0x4 + REG_SIZE * id, \
  37. .intr_cfg_reg = 0x8 + REG_SIZE * id, \
  38. .intr_status_reg = 0xc + REG_SIZE * id, \
  39. .intr_target_reg = 0x8 + REG_SIZE * id, \
  40. .mux_bit = 2, \
  41. .pull_bit = 0, \
  42. .drv_bit = 6, \
  43. .oe_bit = 9, \
  44. .in_bit = 0, \
  45. .out_bit = 1, \
  46. .intr_enable_bit = 0, \
  47. .intr_status_bit = 0, \
  48. .intr_target_bit = 5, \
  49. .intr_target_kpss_val = 3, \
  50. .intr_raw_status_bit = 4, \
  51. .intr_polarity_bit = 1, \
  52. .intr_detection_bit = 2, \
  53. .intr_detection_width = 2, \
  54. }
  55. static const struct pinctrl_pin_desc ipq6018_pins[] = {
  56. PINCTRL_PIN(0, "GPIO_0"),
  57. PINCTRL_PIN(1, "GPIO_1"),
  58. PINCTRL_PIN(2, "GPIO_2"),
  59. PINCTRL_PIN(3, "GPIO_3"),
  60. PINCTRL_PIN(4, "GPIO_4"),
  61. PINCTRL_PIN(5, "GPIO_5"),
  62. PINCTRL_PIN(6, "GPIO_6"),
  63. PINCTRL_PIN(7, "GPIO_7"),
  64. PINCTRL_PIN(8, "GPIO_8"),
  65. PINCTRL_PIN(9, "GPIO_9"),
  66. PINCTRL_PIN(10, "GPIO_10"),
  67. PINCTRL_PIN(11, "GPIO_11"),
  68. PINCTRL_PIN(12, "GPIO_12"),
  69. PINCTRL_PIN(13, "GPIO_13"),
  70. PINCTRL_PIN(14, "GPIO_14"),
  71. PINCTRL_PIN(15, "GPIO_15"),
  72. PINCTRL_PIN(16, "GPIO_16"),
  73. PINCTRL_PIN(17, "GPIO_17"),
  74. PINCTRL_PIN(18, "GPIO_18"),
  75. PINCTRL_PIN(19, "GPIO_19"),
  76. PINCTRL_PIN(20, "GPIO_20"),
  77. PINCTRL_PIN(21, "GPIO_21"),
  78. PINCTRL_PIN(22, "GPIO_22"),
  79. PINCTRL_PIN(23, "GPIO_23"),
  80. PINCTRL_PIN(24, "GPIO_24"),
  81. PINCTRL_PIN(25, "GPIO_25"),
  82. PINCTRL_PIN(26, "GPIO_26"),
  83. PINCTRL_PIN(27, "GPIO_27"),
  84. PINCTRL_PIN(28, "GPIO_28"),
  85. PINCTRL_PIN(29, "GPIO_29"),
  86. PINCTRL_PIN(30, "GPIO_30"),
  87. PINCTRL_PIN(31, "GPIO_31"),
  88. PINCTRL_PIN(32, "GPIO_32"),
  89. PINCTRL_PIN(33, "GPIO_33"),
  90. PINCTRL_PIN(34, "GPIO_34"),
  91. PINCTRL_PIN(35, "GPIO_35"),
  92. PINCTRL_PIN(36, "GPIO_36"),
  93. PINCTRL_PIN(37, "GPIO_37"),
  94. PINCTRL_PIN(38, "GPIO_38"),
  95. PINCTRL_PIN(39, "GPIO_39"),
  96. PINCTRL_PIN(40, "GPIO_40"),
  97. PINCTRL_PIN(41, "GPIO_41"),
  98. PINCTRL_PIN(42, "GPIO_42"),
  99. PINCTRL_PIN(43, "GPIO_43"),
  100. PINCTRL_PIN(44, "GPIO_44"),
  101. PINCTRL_PIN(45, "GPIO_45"),
  102. PINCTRL_PIN(46, "GPIO_46"),
  103. PINCTRL_PIN(47, "GPIO_47"),
  104. PINCTRL_PIN(48, "GPIO_48"),
  105. PINCTRL_PIN(49, "GPIO_49"),
  106. PINCTRL_PIN(50, "GPIO_50"),
  107. PINCTRL_PIN(51, "GPIO_51"),
  108. PINCTRL_PIN(52, "GPIO_52"),
  109. PINCTRL_PIN(53, "GPIO_53"),
  110. PINCTRL_PIN(54, "GPIO_54"),
  111. PINCTRL_PIN(55, "GPIO_55"),
  112. PINCTRL_PIN(56, "GPIO_56"),
  113. PINCTRL_PIN(57, "GPIO_57"),
  114. PINCTRL_PIN(58, "GPIO_58"),
  115. PINCTRL_PIN(59, "GPIO_59"),
  116. PINCTRL_PIN(60, "GPIO_60"),
  117. PINCTRL_PIN(61, "GPIO_61"),
  118. PINCTRL_PIN(62, "GPIO_62"),
  119. PINCTRL_PIN(63, "GPIO_63"),
  120. PINCTRL_PIN(64, "GPIO_64"),
  121. PINCTRL_PIN(65, "GPIO_65"),
  122. PINCTRL_PIN(66, "GPIO_66"),
  123. PINCTRL_PIN(67, "GPIO_67"),
  124. PINCTRL_PIN(68, "GPIO_68"),
  125. PINCTRL_PIN(69, "GPIO_69"),
  126. PINCTRL_PIN(70, "GPIO_70"),
  127. PINCTRL_PIN(71, "GPIO_71"),
  128. PINCTRL_PIN(72, "GPIO_72"),
  129. PINCTRL_PIN(73, "GPIO_73"),
  130. PINCTRL_PIN(74, "GPIO_74"),
  131. PINCTRL_PIN(75, "GPIO_75"),
  132. PINCTRL_PIN(76, "GPIO_76"),
  133. PINCTRL_PIN(77, "GPIO_77"),
  134. PINCTRL_PIN(78, "GPIO_78"),
  135. PINCTRL_PIN(79, "GPIO_79"),
  136. };
  137. #define DECLARE_MSM_GPIO_PINS(pin) \
  138. static const unsigned int gpio##pin##_pins[] = { pin }
  139. DECLARE_MSM_GPIO_PINS(0);
  140. DECLARE_MSM_GPIO_PINS(1);
  141. DECLARE_MSM_GPIO_PINS(2);
  142. DECLARE_MSM_GPIO_PINS(3);
  143. DECLARE_MSM_GPIO_PINS(4);
  144. DECLARE_MSM_GPIO_PINS(5);
  145. DECLARE_MSM_GPIO_PINS(6);
  146. DECLARE_MSM_GPIO_PINS(7);
  147. DECLARE_MSM_GPIO_PINS(8);
  148. DECLARE_MSM_GPIO_PINS(9);
  149. DECLARE_MSM_GPIO_PINS(10);
  150. DECLARE_MSM_GPIO_PINS(11);
  151. DECLARE_MSM_GPIO_PINS(12);
  152. DECLARE_MSM_GPIO_PINS(13);
  153. DECLARE_MSM_GPIO_PINS(14);
  154. DECLARE_MSM_GPIO_PINS(15);
  155. DECLARE_MSM_GPIO_PINS(16);
  156. DECLARE_MSM_GPIO_PINS(17);
  157. DECLARE_MSM_GPIO_PINS(18);
  158. DECLARE_MSM_GPIO_PINS(19);
  159. DECLARE_MSM_GPIO_PINS(20);
  160. DECLARE_MSM_GPIO_PINS(21);
  161. DECLARE_MSM_GPIO_PINS(22);
  162. DECLARE_MSM_GPIO_PINS(23);
  163. DECLARE_MSM_GPIO_PINS(24);
  164. DECLARE_MSM_GPIO_PINS(25);
  165. DECLARE_MSM_GPIO_PINS(26);
  166. DECLARE_MSM_GPIO_PINS(27);
  167. DECLARE_MSM_GPIO_PINS(28);
  168. DECLARE_MSM_GPIO_PINS(29);
  169. DECLARE_MSM_GPIO_PINS(30);
  170. DECLARE_MSM_GPIO_PINS(31);
  171. DECLARE_MSM_GPIO_PINS(32);
  172. DECLARE_MSM_GPIO_PINS(33);
  173. DECLARE_MSM_GPIO_PINS(34);
  174. DECLARE_MSM_GPIO_PINS(35);
  175. DECLARE_MSM_GPIO_PINS(36);
  176. DECLARE_MSM_GPIO_PINS(37);
  177. DECLARE_MSM_GPIO_PINS(38);
  178. DECLARE_MSM_GPIO_PINS(39);
  179. DECLARE_MSM_GPIO_PINS(40);
  180. DECLARE_MSM_GPIO_PINS(41);
  181. DECLARE_MSM_GPIO_PINS(42);
  182. DECLARE_MSM_GPIO_PINS(43);
  183. DECLARE_MSM_GPIO_PINS(44);
  184. DECLARE_MSM_GPIO_PINS(45);
  185. DECLARE_MSM_GPIO_PINS(46);
  186. DECLARE_MSM_GPIO_PINS(47);
  187. DECLARE_MSM_GPIO_PINS(48);
  188. DECLARE_MSM_GPIO_PINS(49);
  189. DECLARE_MSM_GPIO_PINS(50);
  190. DECLARE_MSM_GPIO_PINS(51);
  191. DECLARE_MSM_GPIO_PINS(52);
  192. DECLARE_MSM_GPIO_PINS(53);
  193. DECLARE_MSM_GPIO_PINS(54);
  194. DECLARE_MSM_GPIO_PINS(55);
  195. DECLARE_MSM_GPIO_PINS(56);
  196. DECLARE_MSM_GPIO_PINS(57);
  197. DECLARE_MSM_GPIO_PINS(58);
  198. DECLARE_MSM_GPIO_PINS(59);
  199. DECLARE_MSM_GPIO_PINS(60);
  200. DECLARE_MSM_GPIO_PINS(61);
  201. DECLARE_MSM_GPIO_PINS(62);
  202. DECLARE_MSM_GPIO_PINS(63);
  203. DECLARE_MSM_GPIO_PINS(64);
  204. DECLARE_MSM_GPIO_PINS(65);
  205. DECLARE_MSM_GPIO_PINS(66);
  206. DECLARE_MSM_GPIO_PINS(67);
  207. DECLARE_MSM_GPIO_PINS(68);
  208. DECLARE_MSM_GPIO_PINS(69);
  209. DECLARE_MSM_GPIO_PINS(70);
  210. DECLARE_MSM_GPIO_PINS(71);
  211. DECLARE_MSM_GPIO_PINS(72);
  212. DECLARE_MSM_GPIO_PINS(73);
  213. DECLARE_MSM_GPIO_PINS(74);
  214. DECLARE_MSM_GPIO_PINS(75);
  215. DECLARE_MSM_GPIO_PINS(76);
  216. DECLARE_MSM_GPIO_PINS(77);
  217. DECLARE_MSM_GPIO_PINS(78);
  218. DECLARE_MSM_GPIO_PINS(79);
  219. enum ipq6018_functions {
  220. msm_mux_atest_char,
  221. msm_mux_atest_char0,
  222. msm_mux_atest_char1,
  223. msm_mux_atest_char2,
  224. msm_mux_atest_char3,
  225. msm_mux_audio0,
  226. msm_mux_audio1,
  227. msm_mux_audio2,
  228. msm_mux_audio3,
  229. msm_mux_audio_rxbclk,
  230. msm_mux_audio_rxfsync,
  231. msm_mux_audio_rxmclk,
  232. msm_mux_audio_rxmclkin,
  233. msm_mux_audio_txbclk,
  234. msm_mux_audio_txfsync,
  235. msm_mux_audio_txmclk,
  236. msm_mux_audio_txmclkin,
  237. msm_mux_blsp0_i2c,
  238. msm_mux_blsp0_spi,
  239. msm_mux_blsp0_uart,
  240. msm_mux_blsp1_i2c,
  241. msm_mux_blsp1_spi,
  242. msm_mux_blsp1_uart,
  243. msm_mux_blsp2_i2c,
  244. msm_mux_blsp2_spi,
  245. msm_mux_blsp2_uart,
  246. msm_mux_blsp3_i2c,
  247. msm_mux_blsp3_spi,
  248. msm_mux_blsp3_uart,
  249. msm_mux_blsp4_i2c,
  250. msm_mux_blsp4_spi,
  251. msm_mux_blsp4_uart,
  252. msm_mux_blsp5_i2c,
  253. msm_mux_blsp5_uart,
  254. msm_mux_burn0,
  255. msm_mux_burn1,
  256. msm_mux_cri_trng,
  257. msm_mux_cri_trng0,
  258. msm_mux_cri_trng1,
  259. msm_mux_cxc0,
  260. msm_mux_cxc1,
  261. msm_mux_dbg_out,
  262. msm_mux_gcc_plltest,
  263. msm_mux_gcc_tlmm,
  264. msm_mux_gpio,
  265. msm_mux_lpass_aud,
  266. msm_mux_lpass_aud0,
  267. msm_mux_lpass_aud1,
  268. msm_mux_lpass_aud2,
  269. msm_mux_lpass_pcm,
  270. msm_mux_lpass_pdm,
  271. msm_mux_mac00,
  272. msm_mux_mac01,
  273. msm_mux_mac10,
  274. msm_mux_mac11,
  275. msm_mux_mac12,
  276. msm_mux_mac13,
  277. msm_mux_mac20,
  278. msm_mux_mac21,
  279. msm_mux_mdc,
  280. msm_mux_mdio,
  281. msm_mux_pcie0_clk,
  282. msm_mux_pcie0_rst,
  283. msm_mux_pcie0_wake,
  284. msm_mux_prng_rosc,
  285. msm_mux_pta1_0,
  286. msm_mux_pta1_1,
  287. msm_mux_pta1_2,
  288. msm_mux_pta2_0,
  289. msm_mux_pta2_1,
  290. msm_mux_pta2_2,
  291. msm_mux_pwm00,
  292. msm_mux_pwm01,
  293. msm_mux_pwm02,
  294. msm_mux_pwm03,
  295. msm_mux_pwm04,
  296. msm_mux_pwm10,
  297. msm_mux_pwm11,
  298. msm_mux_pwm12,
  299. msm_mux_pwm13,
  300. msm_mux_pwm14,
  301. msm_mux_pwm20,
  302. msm_mux_pwm21,
  303. msm_mux_pwm22,
  304. msm_mux_pwm23,
  305. msm_mux_pwm24,
  306. msm_mux_pwm30,
  307. msm_mux_pwm31,
  308. msm_mux_pwm32,
  309. msm_mux_pwm33,
  310. msm_mux_qdss_cti_trig_in_a0,
  311. msm_mux_qdss_cti_trig_in_a1,
  312. msm_mux_qdss_cti_trig_out_a0,
  313. msm_mux_qdss_cti_trig_out_a1,
  314. msm_mux_qdss_cti_trig_in_b0,
  315. msm_mux_qdss_cti_trig_in_b1,
  316. msm_mux_qdss_cti_trig_out_b0,
  317. msm_mux_qdss_cti_trig_out_b1,
  318. msm_mux_qdss_traceclk_a,
  319. msm_mux_qdss_tracectl_a,
  320. msm_mux_qdss_tracedata_a,
  321. msm_mux_qdss_traceclk_b,
  322. msm_mux_qdss_tracectl_b,
  323. msm_mux_qdss_tracedata_b,
  324. msm_mux_qpic_pad,
  325. msm_mux_rx0,
  326. msm_mux_rx1,
  327. msm_mux_rx_swrm,
  328. msm_mux_rx_swrm0,
  329. msm_mux_rx_swrm1,
  330. msm_mux_sd_card,
  331. msm_mux_sd_write,
  332. msm_mux_tsens_max,
  333. msm_mux_tx_swrm,
  334. msm_mux_tx_swrm0,
  335. msm_mux_tx_swrm1,
  336. msm_mux_tx_swrm2,
  337. msm_mux_wci20,
  338. msm_mux_wci21,
  339. msm_mux_wci22,
  340. msm_mux_wci23,
  341. msm_mux_wsa_swrm,
  342. msm_mux__,
  343. };
  344. static const char * const blsp3_uart_groups[] = {
  345. "gpio73", "gpio74", "gpio75", "gpio76",
  346. };
  347. static const char * const blsp3_i2c_groups[] = {
  348. "gpio73", "gpio74",
  349. };
  350. static const char * const blsp3_spi_groups[] = {
  351. "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", "gpio78", "gpio79",
  352. };
  353. static const char * const wci20_groups[] = {
  354. "gpio0", "gpio2",
  355. };
  356. static const char * const qpic_pad_groups[] = {
  357. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio9", "gpio10",
  358. "gpio11", "gpio17", "gpio15", "gpio12", "gpio13", "gpio14", "gpio5",
  359. "gpio6", "gpio7", "gpio8",
  360. };
  361. static const char * const burn0_groups[] = {
  362. "gpio0",
  363. };
  364. static const char * const mac12_groups[] = {
  365. "gpio1", "gpio11",
  366. };
  367. static const char * const qdss_tracectl_b_groups[] = {
  368. "gpio1",
  369. };
  370. static const char * const burn1_groups[] = {
  371. "gpio1",
  372. };
  373. static const char * const qdss_traceclk_b_groups[] = {
  374. "gpio0",
  375. };
  376. static const char * const qdss_tracedata_b_groups[] = {
  377. "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", "gpio8", "gpio9",
  378. "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", "gpio15", "gpio16",
  379. "gpio17",
  380. };
  381. static const char * const mac01_groups[] = {
  382. "gpio3", "gpio4",
  383. };
  384. static const char * const mac21_groups[] = {
  385. "gpio5", "gpio6",
  386. };
  387. static const char * const atest_char_groups[] = {
  388. "gpio9",
  389. };
  390. static const char * const cxc0_groups[] = {
  391. "gpio9", "gpio16",
  392. };
  393. static const char * const mac13_groups[] = {
  394. "gpio9", "gpio16",
  395. };
  396. static const char * const dbg_out_groups[] = {
  397. "gpio9",
  398. };
  399. static const char * const wci22_groups[] = {
  400. "gpio11", "gpio17",
  401. };
  402. static const char * const pwm00_groups[] = {
  403. "gpio18",
  404. };
  405. static const char * const atest_char0_groups[] = {
  406. "gpio18",
  407. };
  408. static const char * const wci23_groups[] = {
  409. "gpio18", "gpio19",
  410. };
  411. static const char * const mac11_groups[] = {
  412. "gpio18", "gpio19",
  413. };
  414. static const char * const pwm10_groups[] = {
  415. "gpio19",
  416. };
  417. static const char * const atest_char1_groups[] = {
  418. "gpio19",
  419. };
  420. static const char * const pwm20_groups[] = {
  421. "gpio20",
  422. };
  423. static const char * const atest_char2_groups[] = {
  424. "gpio20",
  425. };
  426. static const char * const pwm30_groups[] = {
  427. "gpio21",
  428. };
  429. static const char * const atest_char3_groups[] = {
  430. "gpio21",
  431. };
  432. static const char * const audio_txmclk_groups[] = {
  433. "gpio22",
  434. };
  435. static const char * const audio_txmclkin_groups[] = {
  436. "gpio22",
  437. };
  438. static const char * const pwm02_groups[] = {
  439. "gpio22",
  440. };
  441. static const char * const tx_swrm0_groups[] = {
  442. "gpio22",
  443. };
  444. static const char * const qdss_cti_trig_out_b0_groups[] = {
  445. "gpio22",
  446. };
  447. static const char * const audio_txbclk_groups[] = {
  448. "gpio23",
  449. };
  450. static const char * const pwm12_groups[] = {
  451. "gpio23",
  452. };
  453. static const char * const wsa_swrm_groups[] = {
  454. "gpio23", "gpio24",
  455. };
  456. static const char * const tx_swrm1_groups[] = {
  457. "gpio23",
  458. };
  459. static const char * const qdss_cti_trig_in_b0_groups[] = {
  460. "gpio23",
  461. };
  462. static const char * const audio_txfsync_groups[] = {
  463. "gpio24",
  464. };
  465. static const char * const pwm22_groups[] = {
  466. "gpio24",
  467. };
  468. static const char * const tx_swrm2_groups[] = {
  469. "gpio24",
  470. };
  471. static const char * const qdss_cti_trig_out_b1_groups[] = {
  472. "gpio24",
  473. };
  474. static const char * const audio0_groups[] = {
  475. "gpio25", "gpio32",
  476. };
  477. static const char * const pwm32_groups[] = {
  478. "gpio25",
  479. };
  480. static const char * const tx_swrm_groups[] = {
  481. "gpio25",
  482. };
  483. static const char * const qdss_cti_trig_in_b1_groups[] = {
  484. "gpio25",
  485. };
  486. static const char * const audio1_groups[] = {
  487. "gpio26", "gpio33",
  488. };
  489. static const char * const pwm04_groups[] = {
  490. "gpio26",
  491. };
  492. static const char * const audio2_groups[] = {
  493. "gpio27",
  494. };
  495. static const char * const pwm14_groups[] = {
  496. "gpio27",
  497. };
  498. static const char * const audio3_groups[] = {
  499. "gpio28",
  500. };
  501. static const char * const pwm24_groups[] = {
  502. "gpio28",
  503. };
  504. static const char * const audio_rxmclk_groups[] = {
  505. "gpio29",
  506. };
  507. static const char * const audio_rxmclkin_groups[] = {
  508. "gpio29",
  509. };
  510. static const char * const pwm03_groups[] = {
  511. "gpio29",
  512. };
  513. static const char * const lpass_pdm_groups[] = {
  514. "gpio29", "gpio30", "gpio31", "gpio32",
  515. };
  516. static const char * const lpass_aud_groups[] = {
  517. "gpio29",
  518. };
  519. static const char * const qdss_cti_trig_in_a1_groups[] = {
  520. "gpio29",
  521. };
  522. static const char * const audio_rxbclk_groups[] = {
  523. "gpio30",
  524. };
  525. static const char * const pwm13_groups[] = {
  526. "gpio30",
  527. };
  528. static const char * const lpass_aud0_groups[] = {
  529. "gpio30",
  530. };
  531. static const char * const rx_swrm_groups[] = {
  532. "gpio30",
  533. };
  534. static const char * const qdss_cti_trig_out_a1_groups[] = {
  535. "gpio30",
  536. };
  537. static const char * const audio_rxfsync_groups[] = {
  538. "gpio31",
  539. };
  540. static const char * const pwm23_groups[] = {
  541. "gpio31",
  542. };
  543. static const char * const lpass_aud1_groups[] = {
  544. "gpio31",
  545. };
  546. static const char * const rx_swrm0_groups[] = {
  547. "gpio31",
  548. };
  549. static const char * const qdss_cti_trig_in_a0_groups[] = {
  550. "gpio31",
  551. };
  552. static const char * const pwm33_groups[] = {
  553. "gpio32",
  554. };
  555. static const char * const lpass_aud2_groups[] = {
  556. "gpio32",
  557. };
  558. static const char * const rx_swrm1_groups[] = {
  559. "gpio32",
  560. };
  561. static const char * const qdss_cti_trig_out_a0_groups[] = {
  562. "gpio32",
  563. };
  564. static const char * const lpass_pcm_groups[] = {
  565. "gpio34", "gpio35", "gpio36", "gpio37",
  566. };
  567. static const char * const mac10_groups[] = {
  568. "gpio34", "gpio35",
  569. };
  570. static const char * const mac00_groups[] = {
  571. "gpio34", "gpio35",
  572. };
  573. static const char * const mac20_groups[] = {
  574. "gpio36", "gpio37",
  575. };
  576. static const char * const blsp0_uart_groups[] = {
  577. "gpio38", "gpio39", "gpio40", "gpio41",
  578. };
  579. static const char * const blsp0_i2c_groups[] = {
  580. "gpio38", "gpio39",
  581. };
  582. static const char * const blsp0_spi_groups[] = {
  583. "gpio38", "gpio39", "gpio40", "gpio41",
  584. };
  585. static const char * const blsp2_uart_groups[] = {
  586. "gpio42", "gpio43", "gpio44", "gpio45",
  587. };
  588. static const char * const blsp2_i2c_groups[] = {
  589. "gpio42", "gpio43",
  590. };
  591. static const char * const blsp2_spi_groups[] = {
  592. "gpio42", "gpio43", "gpio44", "gpio45",
  593. };
  594. static const char * const blsp5_i2c_groups[] = {
  595. "gpio46", "gpio47",
  596. };
  597. static const char * const blsp5_uart_groups[] = {
  598. "gpio48", "gpio49",
  599. };
  600. static const char * const qdss_traceclk_a_groups[] = {
  601. "gpio48",
  602. };
  603. static const char * const qdss_tracectl_a_groups[] = {
  604. "gpio49",
  605. };
  606. static const char * const pwm01_groups[] = {
  607. "gpio50",
  608. };
  609. static const char * const pta1_1_groups[] = {
  610. "gpio51",
  611. };
  612. static const char * const pwm11_groups[] = {
  613. "gpio51",
  614. };
  615. static const char * const rx1_groups[] = {
  616. "gpio51",
  617. };
  618. static const char * const pta1_2_groups[] = {
  619. "gpio52",
  620. };
  621. static const char * const pwm21_groups[] = {
  622. "gpio52",
  623. };
  624. static const char * const pta1_0_groups[] = {
  625. "gpio53",
  626. };
  627. static const char * const pwm31_groups[] = {
  628. "gpio53",
  629. };
  630. static const char * const prng_rosc_groups[] = {
  631. "gpio53",
  632. };
  633. static const char * const blsp4_uart_groups[] = {
  634. "gpio55", "gpio56", "gpio57", "gpio58",
  635. };
  636. static const char * const blsp4_i2c_groups[] = {
  637. "gpio55", "gpio56",
  638. };
  639. static const char * const blsp4_spi_groups[] = {
  640. "gpio55", "gpio56", "gpio57", "gpio58",
  641. };
  642. static const char * const pcie0_clk_groups[] = {
  643. "gpio59",
  644. };
  645. static const char * const cri_trng0_groups[] = {
  646. "gpio59",
  647. };
  648. static const char * const pcie0_rst_groups[] = {
  649. "gpio60",
  650. };
  651. static const char * const cri_trng1_groups[] = {
  652. "gpio60",
  653. };
  654. static const char * const pcie0_wake_groups[] = {
  655. "gpio61",
  656. };
  657. static const char * const cri_trng_groups[] = {
  658. "gpio61",
  659. };
  660. static const char * const sd_card_groups[] = {
  661. "gpio62",
  662. };
  663. static const char * const sd_write_groups[] = {
  664. "gpio63",
  665. };
  666. static const char * const rx0_groups[] = {
  667. "gpio63",
  668. };
  669. static const char * const tsens_max_groups[] = {
  670. "gpio63",
  671. };
  672. static const char * const mdc_groups[] = {
  673. "gpio64",
  674. };
  675. static const char * const qdss_tracedata_a_groups[] = {
  676. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  677. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  678. "gpio78", "gpio79",
  679. };
  680. static const char * const mdio_groups[] = {
  681. "gpio65",
  682. };
  683. static const char * const pta2_0_groups[] = {
  684. "gpio66",
  685. };
  686. static const char * const wci21_groups[] = {
  687. "gpio66", "gpio68",
  688. };
  689. static const char * const cxc1_groups[] = {
  690. "gpio66", "gpio68",
  691. };
  692. static const char * const pta2_1_groups[] = {
  693. "gpio67",
  694. };
  695. static const char * const pta2_2_groups[] = {
  696. "gpio68",
  697. };
  698. static const char * const blsp1_uart_groups[] = {
  699. "gpio69", "gpio70", "gpio71", "gpio72",
  700. };
  701. static const char * const blsp1_i2c_groups[] = {
  702. "gpio69", "gpio70",
  703. };
  704. static const char * const blsp1_spi_groups[] = {
  705. "gpio69", "gpio70", "gpio71", "gpio72",
  706. };
  707. static const char * const gcc_plltest_groups[] = {
  708. "gpio69", "gpio71",
  709. };
  710. static const char * const gcc_tlmm_groups[] = {
  711. "gpio70",
  712. };
  713. static const char * const gpio_groups[] = {
  714. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  715. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  716. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  717. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  718. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  719. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  720. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  721. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  722. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  723. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
  724. "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  725. "gpio78", "gpio79",
  726. };
  727. static const struct msm_function ipq6018_functions[] = {
  728. FUNCTION(atest_char),
  729. FUNCTION(atest_char0),
  730. FUNCTION(atest_char1),
  731. FUNCTION(atest_char2),
  732. FUNCTION(atest_char3),
  733. FUNCTION(audio0),
  734. FUNCTION(audio1),
  735. FUNCTION(audio2),
  736. FUNCTION(audio3),
  737. FUNCTION(audio_rxbclk),
  738. FUNCTION(audio_rxfsync),
  739. FUNCTION(audio_rxmclk),
  740. FUNCTION(audio_rxmclkin),
  741. FUNCTION(audio_txbclk),
  742. FUNCTION(audio_txfsync),
  743. FUNCTION(audio_txmclk),
  744. FUNCTION(audio_txmclkin),
  745. FUNCTION(blsp0_i2c),
  746. FUNCTION(blsp0_spi),
  747. FUNCTION(blsp0_uart),
  748. FUNCTION(blsp1_i2c),
  749. FUNCTION(blsp1_spi),
  750. FUNCTION(blsp1_uart),
  751. FUNCTION(blsp2_i2c),
  752. FUNCTION(blsp2_spi),
  753. FUNCTION(blsp2_uart),
  754. FUNCTION(blsp3_i2c),
  755. FUNCTION(blsp3_spi),
  756. FUNCTION(blsp3_uart),
  757. FUNCTION(blsp4_i2c),
  758. FUNCTION(blsp4_spi),
  759. FUNCTION(blsp4_uart),
  760. FUNCTION(blsp5_i2c),
  761. FUNCTION(blsp5_uart),
  762. FUNCTION(burn0),
  763. FUNCTION(burn1),
  764. FUNCTION(cri_trng),
  765. FUNCTION(cri_trng0),
  766. FUNCTION(cri_trng1),
  767. FUNCTION(cxc0),
  768. FUNCTION(cxc1),
  769. FUNCTION(dbg_out),
  770. FUNCTION(gcc_plltest),
  771. FUNCTION(gcc_tlmm),
  772. FUNCTION(gpio),
  773. FUNCTION(lpass_aud),
  774. FUNCTION(lpass_aud0),
  775. FUNCTION(lpass_aud1),
  776. FUNCTION(lpass_aud2),
  777. FUNCTION(lpass_pcm),
  778. FUNCTION(lpass_pdm),
  779. FUNCTION(mac00),
  780. FUNCTION(mac01),
  781. FUNCTION(mac10),
  782. FUNCTION(mac11),
  783. FUNCTION(mac12),
  784. FUNCTION(mac13),
  785. FUNCTION(mac20),
  786. FUNCTION(mac21),
  787. FUNCTION(mdc),
  788. FUNCTION(mdio),
  789. FUNCTION(pcie0_clk),
  790. FUNCTION(pcie0_rst),
  791. FUNCTION(pcie0_wake),
  792. FUNCTION(prng_rosc),
  793. FUNCTION(pta1_0),
  794. FUNCTION(pta1_1),
  795. FUNCTION(pta1_2),
  796. FUNCTION(pta2_0),
  797. FUNCTION(pta2_1),
  798. FUNCTION(pta2_2),
  799. FUNCTION(pwm00),
  800. FUNCTION(pwm01),
  801. FUNCTION(pwm02),
  802. FUNCTION(pwm03),
  803. FUNCTION(pwm04),
  804. FUNCTION(pwm10),
  805. FUNCTION(pwm11),
  806. FUNCTION(pwm12),
  807. FUNCTION(pwm13),
  808. FUNCTION(pwm14),
  809. FUNCTION(pwm20),
  810. FUNCTION(pwm21),
  811. FUNCTION(pwm22),
  812. FUNCTION(pwm23),
  813. FUNCTION(pwm24),
  814. FUNCTION(pwm30),
  815. FUNCTION(pwm31),
  816. FUNCTION(pwm32),
  817. FUNCTION(pwm33),
  818. FUNCTION(qdss_cti_trig_in_a0),
  819. FUNCTION(qdss_cti_trig_in_a1),
  820. FUNCTION(qdss_cti_trig_out_a0),
  821. FUNCTION(qdss_cti_trig_out_a1),
  822. FUNCTION(qdss_cti_trig_in_b0),
  823. FUNCTION(qdss_cti_trig_in_b1),
  824. FUNCTION(qdss_cti_trig_out_b0),
  825. FUNCTION(qdss_cti_trig_out_b1),
  826. FUNCTION(qdss_traceclk_a),
  827. FUNCTION(qdss_tracectl_a),
  828. FUNCTION(qdss_tracedata_a),
  829. FUNCTION(qdss_traceclk_b),
  830. FUNCTION(qdss_tracectl_b),
  831. FUNCTION(qdss_tracedata_b),
  832. FUNCTION(qpic_pad),
  833. FUNCTION(rx0),
  834. FUNCTION(rx1),
  835. FUNCTION(rx_swrm),
  836. FUNCTION(rx_swrm0),
  837. FUNCTION(rx_swrm1),
  838. FUNCTION(sd_card),
  839. FUNCTION(sd_write),
  840. FUNCTION(tsens_max),
  841. FUNCTION(tx_swrm),
  842. FUNCTION(tx_swrm0),
  843. FUNCTION(tx_swrm1),
  844. FUNCTION(tx_swrm2),
  845. FUNCTION(wci20),
  846. FUNCTION(wci21),
  847. FUNCTION(wci22),
  848. FUNCTION(wci23),
  849. FUNCTION(wsa_swrm),
  850. };
  851. static const struct msm_pingroup ipq6018_groups[] = {
  852. PINGROUP(0, qpic_pad, wci20, qdss_traceclk_b, _, burn0, _, _, _, _),
  853. PINGROUP(1, qpic_pad, mac12, qdss_tracectl_b, _, burn1, _, _, _, _),
  854. PINGROUP(2, qpic_pad, wci20, qdss_tracedata_b, _, _, _, _, _, _),
  855. PINGROUP(3, qpic_pad, mac01, qdss_tracedata_b, _, _, _, _, _, _),
  856. PINGROUP(4, qpic_pad, mac01, qdss_tracedata_b, _, _, _, _, _, _),
  857. PINGROUP(5, qpic_pad, mac21, qdss_tracedata_b, _, _, _, _, _, _),
  858. PINGROUP(6, qpic_pad, mac21, qdss_tracedata_b, _, _, _, _, _, _),
  859. PINGROUP(7, qpic_pad, qdss_tracedata_b, _, _, _, _, _, _, _),
  860. PINGROUP(8, qpic_pad, qdss_tracedata_b, _, _, _, _, _, _, _),
  861. PINGROUP(9, qpic_pad, atest_char, cxc0, mac13, dbg_out, qdss_tracedata_b, _, _, _),
  862. PINGROUP(10, qpic_pad, qdss_tracedata_b, _, _, _, _, _, _, _),
  863. PINGROUP(11, qpic_pad, wci22, mac12, qdss_tracedata_b, _, _, _, _, _),
  864. PINGROUP(12, qpic_pad, qdss_tracedata_b, _, _, _, _, _, _, _),
  865. PINGROUP(13, qpic_pad, qdss_tracedata_b, _, _, _, _, _, _, _),
  866. PINGROUP(14, qpic_pad, qdss_tracedata_b, _, _, _, _, _, _, _),
  867. PINGROUP(15, qpic_pad, qdss_tracedata_b, _, _, _, _, _, _, _),
  868. PINGROUP(16, qpic_pad, cxc0, mac13, qdss_tracedata_b, _, _, _, _, _),
  869. PINGROUP(17, qpic_pad, qdss_tracedata_b, wci22, _, _, _, _, _, _),
  870. PINGROUP(18, pwm00, atest_char0, wci23, mac11, _, _, _, _, _),
  871. PINGROUP(19, pwm10, atest_char1, wci23, mac11, _, _, _, _, _),
  872. PINGROUP(20, pwm20, atest_char2, _, _, _, _, _, _, _),
  873. PINGROUP(21, pwm30, atest_char3, _, _, _, _, _, _, _),
  874. PINGROUP(22, audio_txmclk, audio_txmclkin, pwm02, tx_swrm0, _, qdss_cti_trig_out_b0, _, _, _),
  875. PINGROUP(23, audio_txbclk, pwm12, wsa_swrm, tx_swrm1, _, qdss_cti_trig_in_b0, _, _, _),
  876. PINGROUP(24, audio_txfsync, pwm22, wsa_swrm, tx_swrm2, _, qdss_cti_trig_out_b1, _, _, _),
  877. PINGROUP(25, audio0, pwm32, tx_swrm, _, qdss_cti_trig_in_b1, _, _, _, _),
  878. PINGROUP(26, audio1, pwm04, _, _, _, _, _, _, _),
  879. PINGROUP(27, audio2, pwm14, _, _, _, _, _, _, _),
  880. PINGROUP(28, audio3, pwm24, _, _, _, _, _, _, _),
  881. PINGROUP(29, audio_rxmclk, audio_rxmclkin, pwm03, lpass_pdm, lpass_aud, qdss_cti_trig_in_a1, _, _, _),
  882. PINGROUP(30, audio_rxbclk, pwm13, lpass_pdm, lpass_aud0, rx_swrm, _, qdss_cti_trig_out_a1, _, _),
  883. PINGROUP(31, audio_rxfsync, pwm23, lpass_pdm, lpass_aud1, rx_swrm0, _, qdss_cti_trig_in_a0, _, _),
  884. PINGROUP(32, audio0, pwm33, lpass_pdm, lpass_aud2, rx_swrm1, _, qdss_cti_trig_out_a0, _, _),
  885. PINGROUP(33, audio1, _, _, _, _, _, _, _, _),
  886. PINGROUP(34, lpass_pcm, mac10, mac00, _, _, _, _, _, _),
  887. PINGROUP(35, lpass_pcm, mac10, mac00, _, _, _, _, _, _),
  888. PINGROUP(36, lpass_pcm, mac20, _, _, _, _, _, _, _),
  889. PINGROUP(37, lpass_pcm, mac20, _, _, _, _, _, _, _),
  890. PINGROUP(38, blsp0_uart, blsp0_i2c, blsp0_spi, _, _, _, _, _, _),
  891. PINGROUP(39, blsp0_uart, blsp0_i2c, blsp0_spi, _, _, _, _, _, _),
  892. PINGROUP(40, blsp0_uart, blsp0_spi, _, _, _, _, _, _, _),
  893. PINGROUP(41, blsp0_uart, blsp0_spi, _, _, _, _, _, _, _),
  894. PINGROUP(42, blsp2_uart, blsp2_i2c, blsp2_spi, _, _, _, _, _, _),
  895. PINGROUP(43, blsp2_uart, blsp2_i2c, blsp2_spi, _, _, _, _, _, _),
  896. PINGROUP(44, blsp2_uart, blsp2_spi, _, _, _, _, _, _, _),
  897. PINGROUP(45, blsp2_uart, blsp2_spi, _, _, _, _, _, _, _),
  898. PINGROUP(46, blsp5_i2c, _, _, _, _, _, _, _, _),
  899. PINGROUP(47, blsp5_i2c, _, _, _, _, _, _, _, _),
  900. PINGROUP(48, blsp5_uart, _, qdss_traceclk_a, _, _, _, _, _, _),
  901. PINGROUP(49, blsp5_uart, _, qdss_tracectl_a, _, _, _, _, _, _),
  902. PINGROUP(50, pwm01, _, _, _, _, _, _, _, _),
  903. PINGROUP(51, pta1_1, pwm11, _, rx1, _, _, _, _, _),
  904. PINGROUP(52, pta1_2, pwm21, _, _, _, _, _, _, _),
  905. PINGROUP(53, pta1_0, pwm31, prng_rosc, _, _, _, _, _, _),
  906. PINGROUP(54, _, _, _, _, _, _, _, _, _),
  907. PINGROUP(55, blsp4_uart, blsp4_i2c, blsp4_spi, _, _, _, _, _, _),
  908. PINGROUP(56, blsp4_uart, blsp4_i2c, blsp4_spi, _, _, _, _, _, _),
  909. PINGROUP(57, blsp4_uart, blsp4_spi, _, _, _, _, _, _, _),
  910. PINGROUP(58, blsp4_uart, blsp4_spi, _, _, _, _, _, _, _),
  911. PINGROUP(59, pcie0_clk, _, _, cri_trng0, _, _, _, _, _),
  912. PINGROUP(60, pcie0_rst, _, _, cri_trng1, _, _, _, _, _),
  913. PINGROUP(61, pcie0_wake, _, _, cri_trng, _, _, _, _, _),
  914. PINGROUP(62, sd_card, _, _, _, _, _, _, _, _),
  915. PINGROUP(63, sd_write, rx0, _, tsens_max, _, _, _, _, _),
  916. PINGROUP(64, mdc, _, qdss_tracedata_a, _, _, _, _, _, _),
  917. PINGROUP(65, mdio, _, qdss_tracedata_a, _, _, _, _, _, _),
  918. PINGROUP(66, pta2_0, wci21, cxc1, qdss_tracedata_a, _, _, _, _, _),
  919. PINGROUP(67, pta2_1, qdss_tracedata_a, _, _, _, _, _, _, _),
  920. PINGROUP(68, pta2_2, wci21, cxc1, qdss_tracedata_a, _, _, _, _, _),
  921. PINGROUP(69, blsp1_uart, blsp1_i2c, blsp1_spi, gcc_plltest, qdss_tracedata_a, _, _, _, _),
  922. PINGROUP(70, blsp1_uart, blsp1_i2c, blsp1_spi, gcc_tlmm, qdss_tracedata_a, _, _, _, _),
  923. PINGROUP(71, blsp1_uart, blsp1_spi, gcc_plltest, qdss_tracedata_a, _, _, _, _, _),
  924. PINGROUP(72, blsp1_uart, blsp1_spi, qdss_tracedata_a, _, _, _, _, _, _),
  925. PINGROUP(73, blsp3_uart, blsp3_i2c, blsp3_spi, _, qdss_tracedata_a, _, _, _, _),
  926. PINGROUP(74, blsp3_uart, blsp3_i2c, blsp3_spi, _, qdss_tracedata_a, _, _, _, _),
  927. PINGROUP(75, blsp3_uart, blsp3_spi, _, qdss_tracedata_a, _, _, _, _, _),
  928. PINGROUP(76, blsp3_uart, blsp3_spi, _, qdss_tracedata_a, _, _, _, _, _),
  929. PINGROUP(77, blsp3_spi, _, qdss_tracedata_a, _, _, _, _, _, _),
  930. PINGROUP(78, blsp3_spi, _, qdss_tracedata_a, _, _, _, _, _, _),
  931. PINGROUP(79, blsp3_spi, _, qdss_tracedata_a, _, _, _, _, _, _),
  932. };
  933. static const struct msm_pinctrl_soc_data ipq6018_pinctrl = {
  934. .pins = ipq6018_pins,
  935. .npins = ARRAY_SIZE(ipq6018_pins),
  936. .functions = ipq6018_functions,
  937. .nfunctions = ARRAY_SIZE(ipq6018_functions),
  938. .groups = ipq6018_groups,
  939. .ngroups = ARRAY_SIZE(ipq6018_groups),
  940. .ngpios = 80,
  941. };
  942. static int ipq6018_pinctrl_probe(struct platform_device *pdev)
  943. {
  944. return msm_pinctrl_probe(pdev, &ipq6018_pinctrl);
  945. }
  946. static const struct of_device_id ipq6018_pinctrl_of_match[] = {
  947. { .compatible = "qcom,ipq6018-pinctrl", },
  948. { },
  949. };
  950. static struct platform_driver ipq6018_pinctrl_driver = {
  951. .driver = {
  952. .name = "ipq6018-pinctrl",
  953. .of_match_table = ipq6018_pinctrl_of_match,
  954. },
  955. .probe = ipq6018_pinctrl_probe,
  956. .remove = msm_pinctrl_remove,
  957. };
  958. static int __init ipq6018_pinctrl_init(void)
  959. {
  960. return platform_driver_register(&ipq6018_pinctrl_driver);
  961. }
  962. arch_initcall(ipq6018_pinctrl_init);
  963. static void __exit ipq6018_pinctrl_exit(void)
  964. {
  965. platform_driver_unregister(&ipq6018_pinctrl_driver);
  966. }
  967. module_exit(ipq6018_pinctrl_exit);
  968. MODULE_DESCRIPTION("QTI ipq6018 pinctrl driver");
  969. MODULE_LICENSE("GPL v2");
  970. MODULE_DEVICE_TABLE(of, ipq6018_pinctrl_of_match);