pinctrl-pitti.c 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/of_device.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/pinctrl/pinctrl.h>
  10. #include "pinctrl-msm.h"
  11. #define FUNCTION(fname) \
  12. [msm_mux_##fname] = { \
  13. .name = #fname, \
  14. .groups = fname##_groups, \
  15. .ngroups = ARRAY_SIZE(fname##_groups), \
  16. }
  17. #define REG_BASE 0x100000
  18. #define REG_SIZE 0x1000
  19. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, wake_off, bit) \
  20. { \
  21. .name = "gpio" #id, \
  22. .pins = gpio##id##_pins, \
  23. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  24. .ctl_reg = REG_BASE + REG_SIZE * id, \
  25. .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \
  26. .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  27. .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \
  28. .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  29. .mux_bit = 2, \
  30. .pull_bit = 0, \
  31. .drv_bit = 6, \
  32. .egpio_enable = 12, \
  33. .egpio_present = 11, \
  34. .oe_bit = 9, \
  35. .in_bit = 0, \
  36. .out_bit = 1, \
  37. .intr_enable_bit = 0, \
  38. .intr_status_bit = 0, \
  39. .intr_target_bit = 5, \
  40. .intr_target_kpss_val = 3, \
  41. .intr_raw_status_bit = 4, \
  42. .intr_polarity_bit = 1, \
  43. .intr_detection_bit = 2, \
  44. .intr_detection_width = 2, \
  45. .wake_reg = REG_BASE + wake_off, \
  46. .wake_bit = bit, \
  47. .funcs = (int[]){ \
  48. msm_mux_gpio, /* gpio mode */ \
  49. msm_mux_##f1, \
  50. msm_mux_##f2, \
  51. msm_mux_##f3, \
  52. msm_mux_##f4, \
  53. msm_mux_##f5, \
  54. msm_mux_##f6, \
  55. msm_mux_##f7, \
  56. msm_mux_##f8, \
  57. msm_mux_##f9, \
  58. msm_mux_##f10, \
  59. msm_mux_##f11 /* egpio mode */ \
  60. }, \
  61. .nfuncs = 12, \
  62. }
  63. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  64. { \
  65. .name = #pg_name, \
  66. .pins = pg_name##_pins, \
  67. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  68. .ctl_reg = ctl, \
  69. .io_reg = 0, \
  70. .intr_cfg_reg = 0, \
  71. .intr_status_reg = 0, \
  72. .intr_target_reg = 0, \
  73. .mux_bit = -1, \
  74. .pull_bit = pull, \
  75. .drv_bit = drv, \
  76. .oe_bit = -1, \
  77. .in_bit = -1, \
  78. .out_bit = -1, \
  79. .intr_enable_bit = -1, \
  80. .intr_status_bit = -1, \
  81. .intr_target_bit = -1, \
  82. .intr_raw_status_bit = -1, \
  83. .intr_polarity_bit = -1, \
  84. .intr_detection_bit = -1, \
  85. .intr_detection_width = -1, \
  86. }
  87. #define UFS_RESET(pg_name, offset) \
  88. { \
  89. .name = #pg_name, \
  90. .pins = pg_name##_pins, \
  91. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  92. .ctl_reg = offset, \
  93. .io_reg = offset + 0x4, \
  94. .intr_cfg_reg = 0, \
  95. .intr_status_reg = 0, \
  96. .intr_target_reg = 0, \
  97. .mux_bit = -1, \
  98. .pull_bit = 3, \
  99. .drv_bit = 0, \
  100. .oe_bit = -1, \
  101. .in_bit = -1, \
  102. .out_bit = 0, \
  103. .intr_enable_bit = -1, \
  104. .intr_status_bit = -1, \
  105. .intr_target_bit = -1, \
  106. .intr_raw_status_bit = -1, \
  107. .intr_polarity_bit = -1, \
  108. .intr_detection_bit = -1, \
  109. .intr_detection_width = -1, \
  110. }
  111. #define QUP_I3C(qup_mode, qup_offset) \
  112. { \
  113. .mode = qup_mode, \
  114. .offset = REG_BASE + qup_offset, \
  115. }
  116. static const struct pinctrl_pin_desc pitti_pins[] = {
  117. PINCTRL_PIN(0, "GPIO_0"),
  118. PINCTRL_PIN(1, "GPIO_1"),
  119. PINCTRL_PIN(2, "GPIO_2"),
  120. PINCTRL_PIN(3, "GPIO_3"),
  121. PINCTRL_PIN(4, "GPIO_4"),
  122. PINCTRL_PIN(5, "GPIO_5"),
  123. PINCTRL_PIN(6, "GPIO_6"),
  124. PINCTRL_PIN(7, "GPIO_7"),
  125. PINCTRL_PIN(8, "GPIO_8"),
  126. PINCTRL_PIN(9, "GPIO_9"),
  127. PINCTRL_PIN(10, "GPIO_10"),
  128. PINCTRL_PIN(11, "GPIO_11"),
  129. PINCTRL_PIN(12, "GPIO_12"),
  130. PINCTRL_PIN(13, "GPIO_13"),
  131. PINCTRL_PIN(14, "GPIO_14"),
  132. PINCTRL_PIN(15, "GPIO_15"),
  133. PINCTRL_PIN(16, "GPIO_16"),
  134. PINCTRL_PIN(17, "GPIO_17"),
  135. PINCTRL_PIN(18, "GPIO_18"),
  136. PINCTRL_PIN(19, "GPIO_19"),
  137. PINCTRL_PIN(20, "GPIO_20"),
  138. PINCTRL_PIN(21, "GPIO_21"),
  139. PINCTRL_PIN(22, "GPIO_22"),
  140. PINCTRL_PIN(23, "GPIO_23"),
  141. PINCTRL_PIN(24, "GPIO_24"),
  142. PINCTRL_PIN(25, "GPIO_25"),
  143. PINCTRL_PIN(26, "GPIO_26"),
  144. PINCTRL_PIN(27, "GPIO_27"),
  145. PINCTRL_PIN(28, "GPIO_28"),
  146. PINCTRL_PIN(29, "GPIO_29"),
  147. PINCTRL_PIN(30, "GPIO_30"),
  148. PINCTRL_PIN(31, "GPIO_31"),
  149. PINCTRL_PIN(32, "GPIO_32"),
  150. PINCTRL_PIN(33, "GPIO_33"),
  151. PINCTRL_PIN(34, "GPIO_34"),
  152. PINCTRL_PIN(35, "GPIO_35"),
  153. PINCTRL_PIN(36, "GPIO_36"),
  154. PINCTRL_PIN(37, "GPIO_37"),
  155. PINCTRL_PIN(38, "GPIO_38"),
  156. PINCTRL_PIN(39, "GPIO_39"),
  157. PINCTRL_PIN(40, "GPIO_40"),
  158. PINCTRL_PIN(41, "GPIO_41"),
  159. PINCTRL_PIN(42, "GPIO_42"),
  160. PINCTRL_PIN(43, "GPIO_43"),
  161. PINCTRL_PIN(44, "GPIO_44"),
  162. PINCTRL_PIN(45, "GPIO_45"),
  163. PINCTRL_PIN(46, "GPIO_46"),
  164. PINCTRL_PIN(47, "GPIO_47"),
  165. PINCTRL_PIN(48, "GPIO_48"),
  166. PINCTRL_PIN(49, "GPIO_49"),
  167. PINCTRL_PIN(50, "GPIO_50"),
  168. PINCTRL_PIN(51, "GPIO_51"),
  169. PINCTRL_PIN(52, "GPIO_52"),
  170. PINCTRL_PIN(53, "GPIO_53"),
  171. PINCTRL_PIN(54, "GPIO_54"),
  172. PINCTRL_PIN(55, "GPIO_55"),
  173. PINCTRL_PIN(56, "GPIO_56"),
  174. PINCTRL_PIN(57, "GPIO_57"),
  175. PINCTRL_PIN(58, "GPIO_58"),
  176. PINCTRL_PIN(59, "GPIO_59"),
  177. PINCTRL_PIN(60, "GPIO_60"),
  178. PINCTRL_PIN(61, "GPIO_61"),
  179. PINCTRL_PIN(62, "GPIO_62"),
  180. PINCTRL_PIN(63, "GPIO_63"),
  181. PINCTRL_PIN(64, "GPIO_64"),
  182. PINCTRL_PIN(65, "GPIO_65"),
  183. PINCTRL_PIN(66, "GPIO_66"),
  184. PINCTRL_PIN(67, "GPIO_67"),
  185. PINCTRL_PIN(68, "GPIO_68"),
  186. PINCTRL_PIN(69, "GPIO_69"),
  187. PINCTRL_PIN(70, "GPIO_70"),
  188. PINCTRL_PIN(71, "GPIO_71"),
  189. PINCTRL_PIN(72, "GPIO_72"),
  190. PINCTRL_PIN(73, "GPIO_73"),
  191. PINCTRL_PIN(74, "GPIO_74"),
  192. PINCTRL_PIN(75, "GPIO_75"),
  193. PINCTRL_PIN(76, "GPIO_76"),
  194. PINCTRL_PIN(77, "GPIO_77"),
  195. PINCTRL_PIN(78, "GPIO_78"),
  196. PINCTRL_PIN(79, "GPIO_79"),
  197. PINCTRL_PIN(80, "GPIO_80"),
  198. PINCTRL_PIN(81, "GPIO_81"),
  199. PINCTRL_PIN(82, "GPIO_82"),
  200. PINCTRL_PIN(83, "GPIO_83"),
  201. PINCTRL_PIN(84, "GPIO_84"),
  202. PINCTRL_PIN(85, "GPIO_85"),
  203. PINCTRL_PIN(86, "GPIO_86"),
  204. PINCTRL_PIN(87, "GPIO_87"),
  205. PINCTRL_PIN(88, "GPIO_88"),
  206. PINCTRL_PIN(89, "GPIO_89"),
  207. PINCTRL_PIN(90, "GPIO_90"),
  208. PINCTRL_PIN(91, "GPIO_91"),
  209. PINCTRL_PIN(92, "GPIO_92"),
  210. PINCTRL_PIN(93, "GPIO_93"),
  211. PINCTRL_PIN(94, "GPIO_94"),
  212. PINCTRL_PIN(95, "GPIO_95"),
  213. PINCTRL_PIN(96, "GPIO_96"),
  214. PINCTRL_PIN(97, "GPIO_97"),
  215. PINCTRL_PIN(98, "GPIO_98"),
  216. PINCTRL_PIN(99, "GPIO_99"),
  217. PINCTRL_PIN(100, "GPIO_100"),
  218. PINCTRL_PIN(101, "GPIO_101"),
  219. PINCTRL_PIN(102, "GPIO_102"),
  220. PINCTRL_PIN(103, "GPIO_103"),
  221. PINCTRL_PIN(104, "GPIO_104"),
  222. PINCTRL_PIN(105, "GPIO_105"),
  223. PINCTRL_PIN(106, "GPIO_106"),
  224. PINCTRL_PIN(107, "GPIO_107"),
  225. PINCTRL_PIN(108, "GPIO_108"),
  226. PINCTRL_PIN(109, "GPIO_109"),
  227. PINCTRL_PIN(110, "GPIO_110"),
  228. PINCTRL_PIN(111, "GPIO_111"),
  229. PINCTRL_PIN(112, "GPIO_112"),
  230. PINCTRL_PIN(113, "GPIO_113"),
  231. PINCTRL_PIN(114, "GPIO_114"),
  232. PINCTRL_PIN(115, "GPIO_115"),
  233. PINCTRL_PIN(116, "GPIO_116"),
  234. PINCTRL_PIN(117, "GPIO_117"),
  235. PINCTRL_PIN(118, "GPIO_118"),
  236. PINCTRL_PIN(119, "GPIO_119"),
  237. PINCTRL_PIN(120, "GPIO_120"),
  238. PINCTRL_PIN(121, "GPIO_121"),
  239. PINCTRL_PIN(122, "UFS_RESET"),
  240. PINCTRL_PIN(123, "SDC1_RCLK"),
  241. PINCTRL_PIN(124, "SDC1_CLK"),
  242. PINCTRL_PIN(125, "SDC1_CMD"),
  243. PINCTRL_PIN(126, "SDC1_DATA"),
  244. PINCTRL_PIN(127, "SDC2_CLK"),
  245. PINCTRL_PIN(128, "SDC2_CMD"),
  246. PINCTRL_PIN(129, "SDC2_DATA"),
  247. };
  248. #define DECLARE_MSM_GPIO_PINS(pin) \
  249. static const unsigned int gpio##pin##_pins[] = { pin }
  250. DECLARE_MSM_GPIO_PINS(0);
  251. DECLARE_MSM_GPIO_PINS(1);
  252. DECLARE_MSM_GPIO_PINS(2);
  253. DECLARE_MSM_GPIO_PINS(3);
  254. DECLARE_MSM_GPIO_PINS(4);
  255. DECLARE_MSM_GPIO_PINS(5);
  256. DECLARE_MSM_GPIO_PINS(6);
  257. DECLARE_MSM_GPIO_PINS(7);
  258. DECLARE_MSM_GPIO_PINS(8);
  259. DECLARE_MSM_GPIO_PINS(9);
  260. DECLARE_MSM_GPIO_PINS(10);
  261. DECLARE_MSM_GPIO_PINS(11);
  262. DECLARE_MSM_GPIO_PINS(12);
  263. DECLARE_MSM_GPIO_PINS(13);
  264. DECLARE_MSM_GPIO_PINS(14);
  265. DECLARE_MSM_GPIO_PINS(15);
  266. DECLARE_MSM_GPIO_PINS(16);
  267. DECLARE_MSM_GPIO_PINS(17);
  268. DECLARE_MSM_GPIO_PINS(18);
  269. DECLARE_MSM_GPIO_PINS(19);
  270. DECLARE_MSM_GPIO_PINS(20);
  271. DECLARE_MSM_GPIO_PINS(21);
  272. DECLARE_MSM_GPIO_PINS(22);
  273. DECLARE_MSM_GPIO_PINS(23);
  274. DECLARE_MSM_GPIO_PINS(24);
  275. DECLARE_MSM_GPIO_PINS(25);
  276. DECLARE_MSM_GPIO_PINS(26);
  277. DECLARE_MSM_GPIO_PINS(27);
  278. DECLARE_MSM_GPIO_PINS(28);
  279. DECLARE_MSM_GPIO_PINS(29);
  280. DECLARE_MSM_GPIO_PINS(30);
  281. DECLARE_MSM_GPIO_PINS(31);
  282. DECLARE_MSM_GPIO_PINS(32);
  283. DECLARE_MSM_GPIO_PINS(33);
  284. DECLARE_MSM_GPIO_PINS(34);
  285. DECLARE_MSM_GPIO_PINS(35);
  286. DECLARE_MSM_GPIO_PINS(36);
  287. DECLARE_MSM_GPIO_PINS(37);
  288. DECLARE_MSM_GPIO_PINS(38);
  289. DECLARE_MSM_GPIO_PINS(39);
  290. DECLARE_MSM_GPIO_PINS(40);
  291. DECLARE_MSM_GPIO_PINS(41);
  292. DECLARE_MSM_GPIO_PINS(42);
  293. DECLARE_MSM_GPIO_PINS(43);
  294. DECLARE_MSM_GPIO_PINS(44);
  295. DECLARE_MSM_GPIO_PINS(45);
  296. DECLARE_MSM_GPIO_PINS(46);
  297. DECLARE_MSM_GPIO_PINS(47);
  298. DECLARE_MSM_GPIO_PINS(48);
  299. DECLARE_MSM_GPIO_PINS(49);
  300. DECLARE_MSM_GPIO_PINS(50);
  301. DECLARE_MSM_GPIO_PINS(51);
  302. DECLARE_MSM_GPIO_PINS(52);
  303. DECLARE_MSM_GPIO_PINS(53);
  304. DECLARE_MSM_GPIO_PINS(54);
  305. DECLARE_MSM_GPIO_PINS(55);
  306. DECLARE_MSM_GPIO_PINS(56);
  307. DECLARE_MSM_GPIO_PINS(57);
  308. DECLARE_MSM_GPIO_PINS(58);
  309. DECLARE_MSM_GPIO_PINS(59);
  310. DECLARE_MSM_GPIO_PINS(60);
  311. DECLARE_MSM_GPIO_PINS(61);
  312. DECLARE_MSM_GPIO_PINS(62);
  313. DECLARE_MSM_GPIO_PINS(63);
  314. DECLARE_MSM_GPIO_PINS(64);
  315. DECLARE_MSM_GPIO_PINS(65);
  316. DECLARE_MSM_GPIO_PINS(66);
  317. DECLARE_MSM_GPIO_PINS(67);
  318. DECLARE_MSM_GPIO_PINS(68);
  319. DECLARE_MSM_GPIO_PINS(69);
  320. DECLARE_MSM_GPIO_PINS(70);
  321. DECLARE_MSM_GPIO_PINS(71);
  322. DECLARE_MSM_GPIO_PINS(72);
  323. DECLARE_MSM_GPIO_PINS(73);
  324. DECLARE_MSM_GPIO_PINS(74);
  325. DECLARE_MSM_GPIO_PINS(75);
  326. DECLARE_MSM_GPIO_PINS(76);
  327. DECLARE_MSM_GPIO_PINS(77);
  328. DECLARE_MSM_GPIO_PINS(78);
  329. DECLARE_MSM_GPIO_PINS(79);
  330. DECLARE_MSM_GPIO_PINS(80);
  331. DECLARE_MSM_GPIO_PINS(81);
  332. DECLARE_MSM_GPIO_PINS(82);
  333. DECLARE_MSM_GPIO_PINS(83);
  334. DECLARE_MSM_GPIO_PINS(84);
  335. DECLARE_MSM_GPIO_PINS(85);
  336. DECLARE_MSM_GPIO_PINS(86);
  337. DECLARE_MSM_GPIO_PINS(87);
  338. DECLARE_MSM_GPIO_PINS(88);
  339. DECLARE_MSM_GPIO_PINS(89);
  340. DECLARE_MSM_GPIO_PINS(90);
  341. DECLARE_MSM_GPIO_PINS(91);
  342. DECLARE_MSM_GPIO_PINS(92);
  343. DECLARE_MSM_GPIO_PINS(93);
  344. DECLARE_MSM_GPIO_PINS(94);
  345. DECLARE_MSM_GPIO_PINS(95);
  346. DECLARE_MSM_GPIO_PINS(96);
  347. DECLARE_MSM_GPIO_PINS(97);
  348. DECLARE_MSM_GPIO_PINS(98);
  349. DECLARE_MSM_GPIO_PINS(99);
  350. DECLARE_MSM_GPIO_PINS(100);
  351. DECLARE_MSM_GPIO_PINS(101);
  352. DECLARE_MSM_GPIO_PINS(102);
  353. DECLARE_MSM_GPIO_PINS(103);
  354. DECLARE_MSM_GPIO_PINS(104);
  355. DECLARE_MSM_GPIO_PINS(105);
  356. DECLARE_MSM_GPIO_PINS(106);
  357. DECLARE_MSM_GPIO_PINS(107);
  358. DECLARE_MSM_GPIO_PINS(108);
  359. DECLARE_MSM_GPIO_PINS(109);
  360. DECLARE_MSM_GPIO_PINS(110);
  361. DECLARE_MSM_GPIO_PINS(111);
  362. DECLARE_MSM_GPIO_PINS(112);
  363. DECLARE_MSM_GPIO_PINS(113);
  364. DECLARE_MSM_GPIO_PINS(114);
  365. DECLARE_MSM_GPIO_PINS(115);
  366. DECLARE_MSM_GPIO_PINS(116);
  367. DECLARE_MSM_GPIO_PINS(117);
  368. DECLARE_MSM_GPIO_PINS(118);
  369. DECLARE_MSM_GPIO_PINS(119);
  370. DECLARE_MSM_GPIO_PINS(120);
  371. DECLARE_MSM_GPIO_PINS(121);
  372. static const unsigned int ufs_reset_pins[] = { 122 };
  373. static const unsigned int sdc1_rclk_pins[] = { 123 };
  374. static const unsigned int sdc1_clk_pins[] = { 124 };
  375. static const unsigned int sdc1_cmd_pins[] = { 125 };
  376. static const unsigned int sdc1_data_pins[] = { 126 };
  377. static const unsigned int sdc2_clk_pins[] = { 127 };
  378. static const unsigned int sdc2_cmd_pins[] = { 128 };
  379. static const unsigned int sdc2_data_pins[] = { 129 };
  380. enum pitti_functions {
  381. msm_mux_gpio,
  382. msm_mux_adsp_ext,
  383. msm_mux_atest_bbrx0,
  384. msm_mux_atest_bbrx1,
  385. msm_mux_atest_char0,
  386. msm_mux_atest_char1,
  387. msm_mux_atest_char2,
  388. msm_mux_atest_char3,
  389. msm_mux_atest_char_start,
  390. msm_mux_atest_gpsadc0,
  391. msm_mux_atest_gpsadc1,
  392. msm_mux_atest_usb0,
  393. msm_mux_atest_usb00,
  394. msm_mux_atest_usb01,
  395. msm_mux_atest_usb02,
  396. msm_mux_atest_usb03,
  397. msm_mux_audio_ref_clk,
  398. msm_mux_cam_mclk,
  399. msm_mux_cci_async_in0,
  400. msm_mux_cci_i2c_scl0,
  401. msm_mux_cci_i2c_scl1,
  402. msm_mux_cci_i2c_scl2,
  403. msm_mux_cci_i2c_sda0,
  404. msm_mux_cci_i2c_sda1,
  405. msm_mux_cci_i2c_sda2,
  406. msm_mux_cci_timer0,
  407. msm_mux_cci_timer1,
  408. msm_mux_cci_timer2,
  409. msm_mux_cci_timer3,
  410. msm_mux_clk_dac,
  411. msm_mux_cmu_rng0,
  412. msm_mux_cmu_rng1,
  413. msm_mux_cmu_rng2,
  414. msm_mux_cmu_rng3,
  415. msm_mux_cri_trng,
  416. msm_mux_cri_trng0,
  417. msm_mux_cri_trng1,
  418. msm_mux_dbg_out_clk,
  419. msm_mux_ddr_bist_complete,
  420. msm_mux_ddr_bist_fail,
  421. msm_mux_ddr_bist_start,
  422. msm_mux_ddr_bist_stop,
  423. msm_mux_ddr_pxi0,
  424. msm_mux_ddr_pxi1,
  425. msm_mux_egpio,
  426. msm_mux_gcc_gp1,
  427. msm_mux_gcc_gp2,
  428. msm_mux_gcc_gp3,
  429. msm_mux_gsm_tx,
  430. msm_mux_jitter_bist,
  431. msm_mux_mdp_vsync,
  432. msm_mux_mdp_vsync0_out,
  433. msm_mux_mdp_vsync1_out,
  434. msm_mux_mdp_vsync2_out,
  435. msm_mux_mdp_vsync3_out,
  436. msm_mux_mpm_pwr,
  437. msm_mux_nav_gpio0,
  438. msm_mux_nav_gpio1,
  439. msm_mux_nav_gpio2,
  440. msm_mux_pa_indicator,
  441. msm_mux_phase_flag0,
  442. msm_mux_phase_flag1,
  443. msm_mux_phase_flag10,
  444. msm_mux_phase_flag11,
  445. msm_mux_phase_flag12,
  446. msm_mux_phase_flag13,
  447. msm_mux_phase_flag14,
  448. msm_mux_phase_flag15,
  449. msm_mux_phase_flag16,
  450. msm_mux_phase_flag17,
  451. msm_mux_phase_flag18,
  452. msm_mux_phase_flag19,
  453. msm_mux_phase_flag2,
  454. msm_mux_phase_flag20,
  455. msm_mux_phase_flag21,
  456. msm_mux_phase_flag22,
  457. msm_mux_phase_flag23,
  458. msm_mux_phase_flag24,
  459. msm_mux_phase_flag25,
  460. msm_mux_phase_flag26,
  461. msm_mux_phase_flag27,
  462. msm_mux_phase_flag28,
  463. msm_mux_phase_flag29,
  464. msm_mux_phase_flag3,
  465. msm_mux_phase_flag30,
  466. msm_mux_phase_flag31,
  467. msm_mux_phase_flag4,
  468. msm_mux_phase_flag5,
  469. msm_mux_phase_flag6,
  470. msm_mux_phase_flag7,
  471. msm_mux_phase_flag8,
  472. msm_mux_phase_flag9,
  473. msm_mux_pll_bist_sync,
  474. msm_mux_pll_bypassnl,
  475. msm_mux_pll_clk_aux,
  476. msm_mux_pll_reset_n,
  477. msm_mux_prng_rosc0,
  478. msm_mux_prng_rosc1,
  479. msm_mux_prng_rosc2,
  480. msm_mux_prng_rosc3,
  481. msm_mux_qdss_cti,
  482. msm_mux_qdss_gpio,
  483. msm_mux_qdss_gpio0,
  484. msm_mux_qdss_gpio1,
  485. msm_mux_qdss_gpio10,
  486. msm_mux_qdss_gpio11,
  487. msm_mux_qdss_gpio12,
  488. msm_mux_qdss_gpio13,
  489. msm_mux_qdss_gpio14,
  490. msm_mux_qdss_gpio15,
  491. msm_mux_qdss_gpio2,
  492. msm_mux_qdss_gpio3,
  493. msm_mux_qdss_gpio4,
  494. msm_mux_qdss_gpio5,
  495. msm_mux_qdss_gpio6,
  496. msm_mux_qdss_gpio7,
  497. msm_mux_qdss_gpio8,
  498. msm_mux_qdss_gpio9,
  499. msm_mux_qup0_se0_l0,
  500. msm_mux_qup0_se0_l1,
  501. msm_mux_qup0_se0_l2,
  502. msm_mux_qup0_se0_l3,
  503. msm_mux_qup0_se1_l0,
  504. msm_mux_qup0_se1_l1,
  505. msm_mux_qup0_se1_l2,
  506. msm_mux_qup0_se1_l3,
  507. msm_mux_qup0_se2_l0,
  508. msm_mux_qup0_se2_l1,
  509. msm_mux_qup0_se2_l2,
  510. msm_mux_qup0_se2_l3,
  511. msm_mux_qup0_se3_l0,
  512. msm_mux_qup0_se3_l1,
  513. msm_mux_qup0_se3_l2,
  514. msm_mux_qup0_se3_l3,
  515. msm_mux_qup0_se4_l0,
  516. msm_mux_qup0_se4_l1,
  517. msm_mux_qup0_se4_l2,
  518. msm_mux_qup0_se4_l3,
  519. msm_mux_qup1_se0_l0,
  520. msm_mux_qup1_se0_l1,
  521. msm_mux_qup1_se0_l2,
  522. msm_mux_qup1_se0_l3,
  523. msm_mux_qup1_se1_l0,
  524. msm_mux_qup1_se1_l1,
  525. msm_mux_qup1_se1_l2,
  526. msm_mux_qup1_se1_l3,
  527. msm_mux_qup1_se2_l0,
  528. msm_mux_qup1_se2_l1,
  529. msm_mux_qup1_se2_l2,
  530. msm_mux_qup1_se2_l3,
  531. msm_mux_qup1_se3_l0,
  532. msm_mux_qup1_se3_l1,
  533. msm_mux_qup1_se3_l2,
  534. msm_mux_qup1_se3_l3,
  535. msm_mux_qup1_se4_l0,
  536. msm_mux_qup1_se4_l1,
  537. msm_mux_qup1_se4_l2,
  538. msm_mux_qup1_se4_l3,
  539. msm_mux_tb_trig_sdc1,
  540. msm_mux_tb_trig_sdc2,
  541. msm_mux_tgu_ch0_trigout,
  542. msm_mux_tgu_ch1_trigout,
  543. msm_mux_tgu_ch2_trigout,
  544. msm_mux_tgu_ch3_trigout,
  545. msm_mux_tmess_prng0,
  546. msm_mux_tmess_prng1,
  547. msm_mux_tmess_prng2,
  548. msm_mux_tmess_prng3,
  549. msm_mux_tsense_pwm1,
  550. msm_mux_tsense_pwm2,
  551. msm_mux_txdac_calib0,
  552. msm_mux_txdac_calib1,
  553. msm_mux_txdac_calib10,
  554. msm_mux_txdac_calib11,
  555. msm_mux_txdac_calib12,
  556. msm_mux_txdac_calib13,
  557. msm_mux_txdac_calib14,
  558. msm_mux_txdac_calib15,
  559. msm_mux_txdac_calib16,
  560. msm_mux_txdac_calib17,
  561. msm_mux_txdac_calib18,
  562. msm_mux_txdac_calib19,
  563. msm_mux_txdac_calib2,
  564. msm_mux_txdac_calib20,
  565. msm_mux_txdac_calib21,
  566. msm_mux_txdac_calib22,
  567. msm_mux_txdac_calib23,
  568. msm_mux_txdac_calib24,
  569. msm_mux_txdac_calib25,
  570. msm_mux_txdac_calib3,
  571. msm_mux_txdac_calib4,
  572. msm_mux_txdac_calib5,
  573. msm_mux_txdac_calib6,
  574. msm_mux_txdac_calib7,
  575. msm_mux_txdac_calib8,
  576. msm_mux_txdac_calib9,
  577. msm_mux_uim0_clk,
  578. msm_mux_uim0_data,
  579. msm_mux_uim0_present,
  580. msm_mux_uim0_reset,
  581. msm_mux_uim1_clk_mira,
  582. msm_mux_uim1_clk_mirb,
  583. msm_mux_uim1_data_mira,
  584. msm_mux_uim1_data_mirb,
  585. msm_mux_uim1_present_mira,
  586. msm_mux_uim1_present_mirb,
  587. msm_mux_uim1_reset_mira,
  588. msm_mux_uim1_reset_mirb,
  589. msm_mux_usb0_hs,
  590. msm_mux_usb0_phy_ps,
  591. msm_mux_vfr_0_mira,
  592. msm_mux_vfr_0_mirb,
  593. msm_mux_vfr_1,
  594. msm_mux_vsense_trigger_mirnat,
  595. msm_mux_wlan1_adc0,
  596. msm_mux_wlan1_adc1,
  597. msm_mux_wlan_coex,
  598. msm_mux_NA,
  599. };
  600. static const char *const gpio_groups[] = {
  601. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  602. "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11",
  603. "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17",
  604. "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23",
  605. "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29",
  606. "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  607. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
  608. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47",
  609. "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53",
  610. "gpio54", "gpio55", "gpio56", "gpio57", "gpio58", "gpio59",
  611. "gpio60", "gpio61", "gpio62", "gpio63", "gpio64", "gpio65",
  612. "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", "gpio71",
  613. "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  614. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
  615. "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89",
  616. "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95",
  617. "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", "gpio101",
  618. "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107",
  619. "gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113",
  620. "gpio114", "gpio115", "gpio116", "gpio117", "gpio118", "gpio119",
  621. "gpio120", "gpio121",
  622. };
  623. static const char *const adsp_ext_groups[] = {
  624. "gpio26",
  625. };
  626. static const char *const atest_bbrx0_groups[] = {
  627. "gpio107",
  628. };
  629. static const char *const atest_bbrx1_groups[] = {
  630. "gpio16",
  631. };
  632. static const char *const atest_char0_groups[] = {
  633. "gpio76",
  634. };
  635. static const char *const atest_char1_groups[] = {
  636. "gpio66",
  637. };
  638. static const char *const atest_char2_groups[] = {
  639. "gpio67",
  640. };
  641. static const char *const atest_char3_groups[] = {
  642. "gpio68",
  643. };
  644. static const char *const atest_char_start_groups[] = {
  645. "gpio75",
  646. };
  647. static const char *const atest_gpsadc0_groups[] = {
  648. "gpio3",
  649. "gpio101",
  650. };
  651. static const char *const atest_gpsadc1_groups[] = {
  652. "gpio27",
  653. "gpio69",
  654. };
  655. static const char *const atest_usb0_groups[] = {
  656. "gpio1",
  657. };
  658. static const char *const atest_usb00_groups[] = {
  659. "gpio3",
  660. };
  661. static const char *const atest_usb01_groups[] = {
  662. "gpio2",
  663. };
  664. static const char *const atest_usb02_groups[] = {
  665. "gpio107",
  666. };
  667. static const char *const atest_usb03_groups[] = {
  668. "gpio16",
  669. };
  670. static const char *const audio_ref_clk_groups[] = {
  671. "gpio69",
  672. };
  673. static const char *const cam_mclk_groups[] = {
  674. "gpio24",
  675. "gpio25",
  676. "gpio26",
  677. };
  678. static const char *const cci_async_in0_groups[] = {
  679. "gpio27",
  680. };
  681. static const char *const cci_i2c_scl0_groups[] = {
  682. "gpio31",
  683. };
  684. static const char *const cci_i2c_scl1_groups[] = {
  685. "gpio33",
  686. };
  687. static const char *const cci_i2c_scl2_groups[] = {
  688. "gpio35",
  689. };
  690. static const char *const cci_i2c_sda0_groups[] = {
  691. "gpio30",
  692. };
  693. static const char *const cci_i2c_sda1_groups[] = {
  694. "gpio32",
  695. };
  696. static const char *const cci_i2c_sda2_groups[] = {
  697. "gpio34",
  698. };
  699. static const char *const cci_timer0_groups[] = {
  700. "gpio27",
  701. };
  702. static const char *const cci_timer1_groups[] = {
  703. "gpio28",
  704. };
  705. static const char *const cci_timer2_groups[] = {
  706. "gpio29",
  707. };
  708. static const char *const cci_timer3_groups[] = {
  709. "gpio13",
  710. };
  711. static const char *const clk_dac_groups[] = {
  712. "gpio66",
  713. };
  714. static const char *const cmu_rng0_groups[] = {
  715. "gpio27",
  716. };
  717. static const char *const cmu_rng1_groups[] = {
  718. "gpio26",
  719. };
  720. static const char *const cmu_rng2_groups[] = {
  721. "gpio25",
  722. };
  723. static const char *const cmu_rng3_groups[] = {
  724. "gpio24",
  725. };
  726. static const char *const cri_trng_groups[] = {
  727. "gpio84",
  728. };
  729. static const char *const cri_trng0_groups[] = {
  730. "gpio82",
  731. };
  732. static const char *const cri_trng1_groups[] = {
  733. "gpio83",
  734. };
  735. static const char *const dbg_out_clk_groups[] = {
  736. "gpio101",
  737. };
  738. static const char *const ddr_bist_complete_groups[] = {
  739. "gpio6",
  740. };
  741. static const char *const ddr_bist_fail_groups[] = {
  742. "gpio17",
  743. };
  744. static const char *const ddr_bist_start_groups[] = {
  745. "gpio18",
  746. };
  747. static const char *const ddr_bist_stop_groups[] = {
  748. "gpio11",
  749. };
  750. static const char *const ddr_pxi0_groups[] = {
  751. "gpio2",
  752. "gpio16",
  753. };
  754. static const char *const ddr_pxi1_groups[] = {
  755. "gpio3",
  756. "gpio107",
  757. };
  758. static const char *const egpio_groups[] = {
  759. "gpio95", "gpio96", "gpio97", "gpio98", "gpio99", "gpio100",
  760. "gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106",
  761. "gpio107", "gpio108", "gpio109", "gpio110", "gpio111", "gpio112",
  762. "gpio113", "gpio114", "gpio115", "gpio116", "gpio117", "gpio118",
  763. "gpio119", "gpio120", "gpio121",
  764. };
  765. static const char *const gcc_gp1_groups[] = {
  766. "gpio16",
  767. "gpio72",
  768. };
  769. static const char *const gcc_gp2_groups[] = {
  770. "gpio73",
  771. "gpio107",
  772. };
  773. static const char *const gcc_gp3_groups[] = {
  774. "gpio14",
  775. "gpio74",
  776. };
  777. static const char *const gsm_tx_groups[] = {
  778. "gpio67",
  779. };
  780. static const char *const jitter_bist_groups[] = {
  781. "gpio105",
  782. };
  783. static const char *const mdp_vsync_groups[] = {
  784. "gpio14", "gpio15", "gpio83", "gpio91", "gpio93", "gpio94",
  785. };
  786. static const char *const mdp_vsync0_out_groups[] = {
  787. "gpio14",
  788. };
  789. static const char *const mdp_vsync1_out_groups[] = {
  790. "gpio14",
  791. };
  792. static const char *const mdp_vsync2_out_groups[] = {
  793. "gpio15",
  794. };
  795. static const char *const mdp_vsync3_out_groups[] = {
  796. "gpio15",
  797. };
  798. static const char *const mpm_pwr_groups[] = {
  799. "gpio37",
  800. };
  801. static const char *const nav_gpio0_groups[] = {
  802. "gpio77",
  803. };
  804. static const char *const nav_gpio1_groups[] = {
  805. "gpio78",
  806. };
  807. static const char *const nav_gpio2_groups[] = {
  808. "gpio79",
  809. };
  810. static const char *const pa_indicator_groups[] = {
  811. "gpio79",
  812. };
  813. static const char *const phase_flag0_groups[] = {
  814. "gpio56",
  815. };
  816. static const char *const phase_flag1_groups[] = {
  817. "gpio57",
  818. };
  819. static const char *const phase_flag10_groups[] = {
  820. "gpio11",
  821. };
  822. static const char *const phase_flag11_groups[] = {
  823. "gpio52",
  824. };
  825. static const char *const phase_flag12_groups[] = {
  826. "gpio53",
  827. };
  828. static const char *const phase_flag13_groups[] = {
  829. "gpio54",
  830. };
  831. static const char *const phase_flag14_groups[] = {
  832. "gpio55",
  833. };
  834. static const char *const phase_flag15_groups[] = {
  835. "gpio58",
  836. };
  837. static const char *const phase_flag16_groups[] = {
  838. "gpio59",
  839. };
  840. static const char *const phase_flag17_groups[] = {
  841. "gpio119",
  842. };
  843. static const char *const phase_flag18_groups[] = {
  844. "gpio60",
  845. };
  846. static const char *const phase_flag19_groups[] = {
  847. "gpio62",
  848. };
  849. static const char *const phase_flag2_groups[] = {
  850. "gpio0",
  851. };
  852. static const char *const phase_flag20_groups[] = {
  853. "gpio63",
  854. };
  855. static const char *const phase_flag21_groups[] = {
  856. "gpio86",
  857. };
  858. static const char *const phase_flag22_groups[] = {
  859. "gpio61",
  860. };
  861. static const char *const phase_flag23_groups[] = {
  862. "gpio75",
  863. };
  864. static const char *const phase_flag24_groups[] = {
  865. "gpio76",
  866. };
  867. static const char *const phase_flag25_groups[] = {
  868. "gpio66",
  869. };
  870. static const char *const phase_flag26_groups[] = {
  871. "gpio67",
  872. };
  873. static const char *const phase_flag27_groups[] = {
  874. "gpio68",
  875. };
  876. static const char *const phase_flag28_groups[] = {
  877. "gpio84",
  878. };
  879. static const char *const phase_flag29_groups[] = {
  880. "gpio85",
  881. };
  882. static const char *const phase_flag3_groups[] = {
  883. "gpio118",
  884. };
  885. static const char *const phase_flag30_groups[] = {
  886. "gpio87",
  887. };
  888. static const char *const phase_flag31_groups[] = {
  889. "gpio4",
  890. };
  891. static const char *const phase_flag4_groups[] = {
  892. "gpio5",
  893. };
  894. static const char *const phase_flag5_groups[] = {
  895. "gpio6",
  896. };
  897. static const char *const phase_flag6_groups[] = {
  898. "gpio7",
  899. };
  900. static const char *const phase_flag7_groups[] = {
  901. "gpio115",
  902. };
  903. static const char *const phase_flag8_groups[] = {
  904. "gpio121",
  905. };
  906. static const char *const phase_flag9_groups[] = {
  907. "gpio10",
  908. };
  909. static const char *const pll_bist_sync_groups[] = {
  910. "gpio46",
  911. };
  912. static const char *const pll_bypassnl_groups[] = {
  913. "gpio48",
  914. };
  915. static const char *const pll_clk_aux_groups[] = {
  916. "gpio112",
  917. };
  918. static const char *const pll_reset_n_groups[] = {
  919. "gpio86",
  920. };
  921. static const char *const prng_rosc0_groups[] = {
  922. "gpio78",
  923. };
  924. static const char *const prng_rosc1_groups[] = {
  925. "gpio79",
  926. };
  927. static const char *const prng_rosc2_groups[] = {
  928. "gpio80",
  929. };
  930. static const char *const prng_rosc3_groups[] = {
  931. "gpio77",
  932. };
  933. static const char *const qdss_cti_groups[] = {
  934. "gpio4", "gpio12", "gpio13", "gpio21",
  935. "gpio22", "gpio90", "gpio101", "gpio104",
  936. };
  937. static const char *const qdss_gpio_groups[] = {
  938. "gpio26",
  939. "gpio27",
  940. "gpio83",
  941. "gpio87",
  942. };
  943. static const char *const qdss_gpio0_groups[] = {
  944. "gpio85",
  945. "gpio119",
  946. };
  947. static const char *const qdss_gpio1_groups[] = {
  948. "gpio82",
  949. "gpio121",
  950. };
  951. static const char *const qdss_gpio10_groups[] = {
  952. "gpio29",
  953. "gpio84",
  954. };
  955. static const char *const qdss_gpio11_groups[] = {
  956. "gpio16",
  957. "gpio116",
  958. };
  959. static const char *const qdss_gpio12_groups[] = {
  960. "gpio17",
  961. "gpio102",
  962. };
  963. static const char *const qdss_gpio13_groups[] = {
  964. "gpio18",
  965. "gpio103",
  966. };
  967. static const char *const qdss_gpio14_groups[] = {
  968. "gpio20",
  969. "gpio105",
  970. };
  971. static const char *const qdss_gpio15_groups[] = {
  972. "gpio19",
  973. "gpio114",
  974. };
  975. static const char *const qdss_gpio2_groups[] = {
  976. "gpio23",
  977. "gpio106",
  978. };
  979. static const char *const qdss_gpio3_groups[] = {
  980. "gpio15",
  981. "gpio28",
  982. };
  983. static const char *const qdss_gpio4_groups[] = {
  984. "gpio36",
  985. "gpio111",
  986. };
  987. static const char *const qdss_gpio5_groups[] = {
  988. "gpio37",
  989. "gpio112",
  990. };
  991. static const char *const qdss_gpio6_groups[] = {
  992. "gpio38",
  993. "gpio107",
  994. };
  995. static const char *const qdss_gpio7_groups[] = {
  996. "gpio39",
  997. "gpio118",
  998. };
  999. static const char *const qdss_gpio8_groups[] = {
  1000. "gpio86",
  1001. "gpio120",
  1002. };
  1003. static const char *const qdss_gpio9_groups[] = {
  1004. "gpio5",
  1005. "gpio108",
  1006. };
  1007. static const char *const qup0_se0_l0_groups[] = {
  1008. "gpio0",
  1009. };
  1010. static const char *const qup0_se0_l1_groups[] = {
  1011. "gpio1",
  1012. };
  1013. static const char *const qup0_se0_l2_groups[] = {
  1014. "gpio2",
  1015. };
  1016. static const char *const qup0_se0_l3_groups[] = {
  1017. "gpio3",
  1018. };
  1019. static const char *const qup0_se1_l0_groups[] = {
  1020. "gpio4",
  1021. };
  1022. static const char *const qup0_se1_l1_groups[] = {
  1023. "gpio5",
  1024. };
  1025. static const char *const qup0_se1_l2_groups[] = {
  1026. "gpio23",
  1027. };
  1028. static const char *const qup0_se1_l3_groups[] = {
  1029. "gpio80",
  1030. };
  1031. static const char *const qup0_se2_l0_groups[] = {
  1032. "gpio17",
  1033. };
  1034. static const char *const qup0_se2_l1_groups[] = {
  1035. "gpio18",
  1036. };
  1037. static const char *const qup0_se2_l2_groups[] = {
  1038. "gpio19",
  1039. };
  1040. static const char *const qup0_se2_l3_groups[] = {
  1041. "gpio20",
  1042. };
  1043. static const char *const qup0_se3_l0_groups[] = {
  1044. "gpio8",
  1045. };
  1046. static const char *const qup0_se3_l1_groups[] = {
  1047. "gpio9",
  1048. };
  1049. static const char *const qup0_se3_l2_groups[] = {
  1050. "gpio10",
  1051. };
  1052. static const char *const qup0_se3_l3_groups[] = {
  1053. "gpio11",
  1054. };
  1055. static const char *const qup0_se4_l0_groups[] = {
  1056. "gpio6",
  1057. };
  1058. static const char *const qup0_se4_l1_groups[] = {
  1059. "gpio7",
  1060. };
  1061. static const char *const qup0_se4_l2_groups[] = {
  1062. "gpio13",
  1063. };
  1064. static const char *const qup0_se4_l3_groups[] = {
  1065. "gpio92",
  1066. };
  1067. static const char *const qup1_se0_l0_groups[] = {
  1068. "gpio36",
  1069. };
  1070. static const char *const qup1_se0_l1_groups[] = {
  1071. "gpio37",
  1072. };
  1073. static const char *const qup1_se0_l2_groups[] = {
  1074. "gpio38",
  1075. };
  1076. static const char *const qup1_se0_l3_groups[] = {
  1077. "gpio39",
  1078. };
  1079. static const char *const qup1_se1_l0_groups[] = {
  1080. "gpio91",
  1081. };
  1082. static const char *const qup1_se1_l1_groups[] = {
  1083. "gpio12",
  1084. };
  1085. static const char *const qup1_se1_l2_groups[] = {
  1086. "gpio82",
  1087. };
  1088. static const char *const qup1_se1_l3_groups[] = {
  1089. "gpio83",
  1090. };
  1091. static const char *const qup1_se2_l0_groups[] = {
  1092. "gpio40",
  1093. };
  1094. static const char *const qup1_se2_l1_groups[] = {
  1095. "gpio41",
  1096. };
  1097. static const char *const qup1_se2_l2_groups[] = {
  1098. "gpio42",
  1099. };
  1100. static const char *const qup1_se2_l3_groups[] = {
  1101. "gpio43",
  1102. };
  1103. static const char *const qup1_se3_l0_groups[] = {
  1104. "gpio93",
  1105. };
  1106. static const char *const qup1_se3_l1_groups[] = {
  1107. "gpio94",
  1108. };
  1109. static const char *const qup1_se3_l2_groups[] = {
  1110. "gpio15",
  1111. };
  1112. static const char *const qup1_se3_l3_groups[] = {
  1113. "gpio16",
  1114. };
  1115. static const char *const qup1_se4_l0_groups[] = {
  1116. "gpio84",
  1117. };
  1118. static const char *const qup1_se4_l1_groups[] = {
  1119. "gpio85",
  1120. };
  1121. static const char *const qup1_se4_l2_groups[] = {
  1122. "gpio86",
  1123. };
  1124. static const char *const qup1_se4_l3_groups[] = {
  1125. "gpio87",
  1126. };
  1127. static const char *const tb_trig_sdc1_groups[] = {
  1128. "gpio109",
  1129. };
  1130. static const char *const tb_trig_sdc2_groups[] = {
  1131. "gpio20",
  1132. };
  1133. static const char *const tgu_ch0_trigout_groups[] = {
  1134. "gpio36",
  1135. };
  1136. static const char *const tgu_ch1_trigout_groups[] = {
  1137. "gpio37",
  1138. };
  1139. static const char *const tgu_ch2_trigout_groups[] = {
  1140. "gpio38",
  1141. };
  1142. static const char *const tgu_ch3_trigout_groups[] = {
  1143. "gpio39",
  1144. };
  1145. static const char *const tmess_prng0_groups[] = {
  1146. "gpio0",
  1147. };
  1148. static const char *const tmess_prng1_groups[] = {
  1149. "gpio1",
  1150. };
  1151. static const char *const tmess_prng2_groups[] = {
  1152. "gpio2",
  1153. };
  1154. static const char *const tmess_prng3_groups[] = {
  1155. "gpio3",
  1156. };
  1157. static const char *const tsense_pwm1_groups[] = {
  1158. "gpio23",
  1159. };
  1160. static const char *const tsense_pwm2_groups[] = {
  1161. "gpio23",
  1162. };
  1163. static const char *const txdac_calib0_groups[] = {
  1164. "gpio68",
  1165. };
  1166. static const char *const txdac_calib1_groups[] = {
  1167. "gpio28",
  1168. };
  1169. static const char *const txdac_calib10_groups[] = {
  1170. "gpio60",
  1171. };
  1172. static const char *const txdac_calib11_groups[] = {
  1173. "gpio61",
  1174. };
  1175. static const char *const txdac_calib12_groups[] = {
  1176. "gpio62",
  1177. };
  1178. static const char *const txdac_calib13_groups[] = {
  1179. "gpio63",
  1180. };
  1181. static const char *const txdac_calib14_groups[] = {
  1182. "gpio75",
  1183. };
  1184. static const char *const txdac_calib15_groups[] = {
  1185. "gpio76",
  1186. };
  1187. static const char *const txdac_calib16_groups[] = {
  1188. "gpio66",
  1189. };
  1190. static const char *const txdac_calib17_groups[] = {
  1191. "gpio67",
  1192. };
  1193. static const char *const txdac_calib18_groups[] = {
  1194. "gpio36",
  1195. };
  1196. static const char *const txdac_calib19_groups[] = {
  1197. "gpio37",
  1198. };
  1199. static const char *const txdac_calib2_groups[] = {
  1200. "gpio52",
  1201. };
  1202. static const char *const txdac_calib20_groups[] = {
  1203. "gpio38",
  1204. };
  1205. static const char *const txdac_calib21_groups[] = {
  1206. "gpio39",
  1207. };
  1208. static const char *const txdac_calib22_groups[] = {
  1209. "gpio40",
  1210. };
  1211. static const char *const txdac_calib23_groups[] = {
  1212. "gpio41",
  1213. };
  1214. static const char *const txdac_calib24_groups[] = {
  1215. "gpio43",
  1216. };
  1217. static const char *const txdac_calib25_groups[] = {
  1218. "gpio44",
  1219. };
  1220. static const char *const txdac_calib3_groups[] = {
  1221. "gpio53",
  1222. };
  1223. static const char *const txdac_calib4_groups[] = {
  1224. "gpio54",
  1225. };
  1226. static const char *const txdac_calib5_groups[] = {
  1227. "gpio55",
  1228. };
  1229. static const char *const txdac_calib6_groups[] = {
  1230. "gpio56",
  1231. };
  1232. static const char *const txdac_calib7_groups[] = {
  1233. "gpio57",
  1234. };
  1235. static const char *const txdac_calib8_groups[] = {
  1236. "gpio58",
  1237. };
  1238. static const char *const txdac_calib9_groups[] = {
  1239. "gpio59",
  1240. };
  1241. static const char *const uim0_clk_groups[] = {
  1242. "gpio45",
  1243. };
  1244. static const char *const uim0_data_groups[] = {
  1245. "gpio44",
  1246. };
  1247. static const char *const uim0_present_groups[] = {
  1248. "gpio47",
  1249. };
  1250. static const char *const uim0_reset_groups[] = {
  1251. "gpio46",
  1252. };
  1253. static const char *const uim1_clk_mira_groups[] = {
  1254. "gpio49",
  1255. };
  1256. static const char *const uim1_clk_mirb_groups[] = {
  1257. "gpio41",
  1258. };
  1259. static const char *const uim1_data_mira_groups[] = {
  1260. "gpio48",
  1261. };
  1262. static const char *const uim1_data_mirb_groups[] = {
  1263. "gpio40",
  1264. };
  1265. static const char *const uim1_present_mira_groups[] = {
  1266. "gpio51",
  1267. };
  1268. static const char *const uim1_present_mirb_groups[] = {
  1269. "gpio43",
  1270. };
  1271. static const char *const uim1_reset_mira_groups[] = {
  1272. "gpio50",
  1273. };
  1274. static const char *const uim1_reset_mirb_groups[] = {
  1275. "gpio42",
  1276. };
  1277. static const char *const usb0_hs_groups[] = {
  1278. "gpio23",
  1279. };
  1280. static const char *const usb0_phy_ps_groups[] = {
  1281. "gpio90",
  1282. };
  1283. static const char *const vfr_0_mira_groups[] = {
  1284. "gpio1",
  1285. };
  1286. static const char *const vfr_0_mirb_groups[] = {
  1287. "gpio82",
  1288. };
  1289. static const char *const vfr_1_groups[] = {
  1290. "gpio78",
  1291. };
  1292. static const char *const vsense_trigger_mirnat_groups[] = {
  1293. "gpio112",
  1294. };
  1295. static const char *const wlan1_adc0_groups[] = {
  1296. "gpio27",
  1297. };
  1298. static const char *const wlan1_adc1_groups[] = {
  1299. "gpio28",
  1300. };
  1301. static const char *const wlan_coex_groups[] = {
  1302. "gpio21",
  1303. "gpio22",
  1304. };
  1305. static const struct msm_function pitti_functions[] = {
  1306. FUNCTION(gpio),
  1307. FUNCTION(adsp_ext),
  1308. FUNCTION(atest_bbrx0),
  1309. FUNCTION(atest_bbrx1),
  1310. FUNCTION(atest_char0),
  1311. FUNCTION(atest_char1),
  1312. FUNCTION(atest_char2),
  1313. FUNCTION(atest_char3),
  1314. FUNCTION(atest_char_start),
  1315. FUNCTION(atest_gpsadc0),
  1316. FUNCTION(atest_gpsadc1),
  1317. FUNCTION(atest_usb0),
  1318. FUNCTION(atest_usb00),
  1319. FUNCTION(atest_usb01),
  1320. FUNCTION(atest_usb02),
  1321. FUNCTION(atest_usb03),
  1322. FUNCTION(audio_ref_clk),
  1323. FUNCTION(cam_mclk),
  1324. FUNCTION(cci_async_in0),
  1325. FUNCTION(cci_i2c_scl0),
  1326. FUNCTION(cci_i2c_scl1),
  1327. FUNCTION(cci_i2c_scl2),
  1328. FUNCTION(cci_i2c_sda0),
  1329. FUNCTION(cci_i2c_sda1),
  1330. FUNCTION(cci_i2c_sda2),
  1331. FUNCTION(cci_timer0),
  1332. FUNCTION(cci_timer1),
  1333. FUNCTION(cci_timer2),
  1334. FUNCTION(cci_timer3),
  1335. FUNCTION(clk_dac),
  1336. FUNCTION(cmu_rng0),
  1337. FUNCTION(cmu_rng1),
  1338. FUNCTION(cmu_rng2),
  1339. FUNCTION(cmu_rng3),
  1340. FUNCTION(cri_trng),
  1341. FUNCTION(cri_trng0),
  1342. FUNCTION(cri_trng1),
  1343. FUNCTION(dbg_out_clk),
  1344. FUNCTION(ddr_bist_complete),
  1345. FUNCTION(ddr_bist_fail),
  1346. FUNCTION(ddr_bist_start),
  1347. FUNCTION(ddr_bist_stop),
  1348. FUNCTION(ddr_pxi0),
  1349. FUNCTION(ddr_pxi1),
  1350. FUNCTION(egpio),
  1351. FUNCTION(gcc_gp1),
  1352. FUNCTION(gcc_gp2),
  1353. FUNCTION(gcc_gp3),
  1354. FUNCTION(gsm_tx),
  1355. FUNCTION(jitter_bist),
  1356. FUNCTION(mdp_vsync),
  1357. FUNCTION(mdp_vsync0_out),
  1358. FUNCTION(mdp_vsync1_out),
  1359. FUNCTION(mdp_vsync2_out),
  1360. FUNCTION(mdp_vsync3_out),
  1361. FUNCTION(mpm_pwr),
  1362. FUNCTION(nav_gpio0),
  1363. FUNCTION(nav_gpio1),
  1364. FUNCTION(nav_gpio2),
  1365. FUNCTION(pa_indicator),
  1366. FUNCTION(phase_flag0),
  1367. FUNCTION(phase_flag1),
  1368. FUNCTION(phase_flag10),
  1369. FUNCTION(phase_flag11),
  1370. FUNCTION(phase_flag12),
  1371. FUNCTION(phase_flag13),
  1372. FUNCTION(phase_flag14),
  1373. FUNCTION(phase_flag15),
  1374. FUNCTION(phase_flag16),
  1375. FUNCTION(phase_flag17),
  1376. FUNCTION(phase_flag18),
  1377. FUNCTION(phase_flag19),
  1378. FUNCTION(phase_flag2),
  1379. FUNCTION(phase_flag20),
  1380. FUNCTION(phase_flag21),
  1381. FUNCTION(phase_flag22),
  1382. FUNCTION(phase_flag23),
  1383. FUNCTION(phase_flag24),
  1384. FUNCTION(phase_flag25),
  1385. FUNCTION(phase_flag26),
  1386. FUNCTION(phase_flag27),
  1387. FUNCTION(phase_flag28),
  1388. FUNCTION(phase_flag29),
  1389. FUNCTION(phase_flag3),
  1390. FUNCTION(phase_flag30),
  1391. FUNCTION(phase_flag31),
  1392. FUNCTION(phase_flag4),
  1393. FUNCTION(phase_flag5),
  1394. FUNCTION(phase_flag6),
  1395. FUNCTION(phase_flag7),
  1396. FUNCTION(phase_flag8),
  1397. FUNCTION(phase_flag9),
  1398. FUNCTION(pll_bist_sync),
  1399. FUNCTION(pll_bypassnl),
  1400. FUNCTION(pll_clk_aux),
  1401. FUNCTION(pll_reset_n),
  1402. FUNCTION(prng_rosc0),
  1403. FUNCTION(prng_rosc1),
  1404. FUNCTION(prng_rosc2),
  1405. FUNCTION(prng_rosc3),
  1406. FUNCTION(qdss_cti),
  1407. FUNCTION(qdss_gpio),
  1408. FUNCTION(qdss_gpio0),
  1409. FUNCTION(qdss_gpio1),
  1410. FUNCTION(qdss_gpio10),
  1411. FUNCTION(qdss_gpio11),
  1412. FUNCTION(qdss_gpio12),
  1413. FUNCTION(qdss_gpio13),
  1414. FUNCTION(qdss_gpio14),
  1415. FUNCTION(qdss_gpio15),
  1416. FUNCTION(qdss_gpio2),
  1417. FUNCTION(qdss_gpio3),
  1418. FUNCTION(qdss_gpio4),
  1419. FUNCTION(qdss_gpio5),
  1420. FUNCTION(qdss_gpio6),
  1421. FUNCTION(qdss_gpio7),
  1422. FUNCTION(qdss_gpio8),
  1423. FUNCTION(qdss_gpio9),
  1424. FUNCTION(qup0_se0_l0),
  1425. FUNCTION(qup0_se0_l1),
  1426. FUNCTION(qup0_se0_l2),
  1427. FUNCTION(qup0_se0_l3),
  1428. FUNCTION(qup0_se1_l0),
  1429. FUNCTION(qup0_se1_l1),
  1430. FUNCTION(qup0_se1_l2),
  1431. FUNCTION(qup0_se1_l3),
  1432. FUNCTION(qup0_se2_l0),
  1433. FUNCTION(qup0_se2_l1),
  1434. FUNCTION(qup0_se2_l2),
  1435. FUNCTION(qup0_se2_l3),
  1436. FUNCTION(qup0_se3_l0),
  1437. FUNCTION(qup0_se3_l1),
  1438. FUNCTION(qup0_se3_l2),
  1439. FUNCTION(qup0_se3_l3),
  1440. FUNCTION(qup0_se4_l0),
  1441. FUNCTION(qup0_se4_l1),
  1442. FUNCTION(qup0_se4_l2),
  1443. FUNCTION(qup0_se4_l3),
  1444. FUNCTION(qup1_se0_l0),
  1445. FUNCTION(qup1_se0_l1),
  1446. FUNCTION(qup1_se0_l2),
  1447. FUNCTION(qup1_se0_l3),
  1448. FUNCTION(qup1_se1_l0),
  1449. FUNCTION(qup1_se1_l1),
  1450. FUNCTION(qup1_se1_l2),
  1451. FUNCTION(qup1_se1_l3),
  1452. FUNCTION(qup1_se2_l0),
  1453. FUNCTION(qup1_se2_l1),
  1454. FUNCTION(qup1_se2_l2),
  1455. FUNCTION(qup1_se2_l3),
  1456. FUNCTION(qup1_se3_l0),
  1457. FUNCTION(qup1_se3_l1),
  1458. FUNCTION(qup1_se3_l2),
  1459. FUNCTION(qup1_se3_l3),
  1460. FUNCTION(qup1_se4_l0),
  1461. FUNCTION(qup1_se4_l1),
  1462. FUNCTION(qup1_se4_l2),
  1463. FUNCTION(qup1_se4_l3),
  1464. FUNCTION(tb_trig_sdc1),
  1465. FUNCTION(tb_trig_sdc2),
  1466. FUNCTION(tgu_ch0_trigout),
  1467. FUNCTION(tgu_ch1_trigout),
  1468. FUNCTION(tgu_ch2_trigout),
  1469. FUNCTION(tgu_ch3_trigout),
  1470. FUNCTION(tmess_prng0),
  1471. FUNCTION(tmess_prng1),
  1472. FUNCTION(tmess_prng2),
  1473. FUNCTION(tmess_prng3),
  1474. FUNCTION(tsense_pwm1),
  1475. FUNCTION(tsense_pwm2),
  1476. FUNCTION(txdac_calib0),
  1477. FUNCTION(txdac_calib1),
  1478. FUNCTION(txdac_calib10),
  1479. FUNCTION(txdac_calib11),
  1480. FUNCTION(txdac_calib12),
  1481. FUNCTION(txdac_calib13),
  1482. FUNCTION(txdac_calib14),
  1483. FUNCTION(txdac_calib15),
  1484. FUNCTION(txdac_calib16),
  1485. FUNCTION(txdac_calib17),
  1486. FUNCTION(txdac_calib18),
  1487. FUNCTION(txdac_calib19),
  1488. FUNCTION(txdac_calib2),
  1489. FUNCTION(txdac_calib20),
  1490. FUNCTION(txdac_calib21),
  1491. FUNCTION(txdac_calib22),
  1492. FUNCTION(txdac_calib23),
  1493. FUNCTION(txdac_calib24),
  1494. FUNCTION(txdac_calib25),
  1495. FUNCTION(txdac_calib3),
  1496. FUNCTION(txdac_calib4),
  1497. FUNCTION(txdac_calib5),
  1498. FUNCTION(txdac_calib6),
  1499. FUNCTION(txdac_calib7),
  1500. FUNCTION(txdac_calib8),
  1501. FUNCTION(txdac_calib9),
  1502. FUNCTION(uim0_clk),
  1503. FUNCTION(uim0_data),
  1504. FUNCTION(uim0_present),
  1505. FUNCTION(uim0_reset),
  1506. FUNCTION(uim1_clk_mira),
  1507. FUNCTION(uim1_clk_mirb),
  1508. FUNCTION(uim1_data_mira),
  1509. FUNCTION(uim1_data_mirb),
  1510. FUNCTION(uim1_present_mira),
  1511. FUNCTION(uim1_present_mirb),
  1512. FUNCTION(uim1_reset_mira),
  1513. FUNCTION(uim1_reset_mirb),
  1514. FUNCTION(usb0_hs),
  1515. FUNCTION(usb0_phy_ps),
  1516. FUNCTION(vfr_0_mira),
  1517. FUNCTION(vfr_0_mirb),
  1518. FUNCTION(vfr_1),
  1519. FUNCTION(vsense_trigger_mirnat),
  1520. FUNCTION(wlan1_adc0),
  1521. FUNCTION(wlan1_adc1),
  1522. FUNCTION(wlan_coex),
  1523. };
  1524. /* Every pin is maintained as a single group, and missing or non-existing pin
  1525. * would be maintained as dummy group to synchronize pin group index with
  1526. * pin descriptor registered with pinctrl core.
  1527. * Clients would not be able to request these dummy pin groups.
  1528. */
  1529. static const struct msm_pingroup pitti_groups[] = {
  1530. [0] = PINGROUP(0, qup0_se0_l0, NA, phase_flag2, tmess_prng0, NA, NA, NA,
  1531. NA, NA, NA, NA, 0x7A004, 3),
  1532. [1] = PINGROUP(1, qup0_se0_l1, vfr_0_mira, NA, tmess_prng1, NA,
  1533. atest_usb0, NA, NA, NA, NA, NA, 0, -1),
  1534. [2] = PINGROUP(2, qup0_se0_l2, NA, tmess_prng2, NA, atest_usb01,
  1535. ddr_pxi0, NA, NA, NA, NA, NA, 0, -1),
  1536. [3] = PINGROUP(3, qup0_se0_l3, NA, tmess_prng3, atest_gpsadc0,
  1537. atest_usb00, ddr_pxi1, NA, NA, NA, NA, NA, 0x7A004, 4),
  1538. [4] = PINGROUP(4, qup0_se1_l0, NA, phase_flag31, qdss_cti, NA, NA, NA,
  1539. NA, NA, NA, NA, 0x7A004, 5),
  1540. [5] = PINGROUP(5, qup0_se1_l1, NA, phase_flag4, qdss_gpio9, NA, NA, NA,
  1541. NA, NA, NA, NA, 0x7A004, 6),
  1542. [6] = PINGROUP(6, qup0_se4_l0, NA, phase_flag5, ddr_bist_complete, NA,
  1543. NA, NA, NA, NA, NA, NA, 0x7A004, 7),
  1544. [7] = PINGROUP(7, qup0_se4_l1, NA, phase_flag6, NA, NA, NA, NA, NA, NA,
  1545. NA, NA, 0, -1),
  1546. [8] = PINGROUP(8, qup0_se3_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1547. 0x7A004, 8),
  1548. [9] = PINGROUP(9, qup0_se3_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1549. 0x7A004, 9),
  1550. [10] = PINGROUP(10, qup0_se3_l2, NA, phase_flag9, NA, NA, NA, NA, NA,
  1551. NA, NA, NA, 0x7A004, 10),
  1552. [11] = PINGROUP(11, qup0_se3_l3, NA, phase_flag10, ddr_bist_stop, NA,
  1553. NA, NA, NA, NA, NA, NA, 0x7A004, 11),
  1554. [12] = PINGROUP(12, qup1_se1_l1, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  1555. NA, NA, 0x7A004, 12),
  1556. [13] = PINGROUP(13, cci_timer3, qup0_se4_l2, NA, qdss_cti, NA, NA, NA,
  1557. NA, NA, NA, NA, 0x7A004, 13),
  1558. [14] = PINGROUP(14, mdp_vsync, mdp_vsync0_out, mdp_vsync1_out, gcc_gp3,
  1559. NA, NA, NA, NA, NA, NA, NA, 0x7A004, 14),
  1560. [15] = PINGROUP(15, qup1_se3_l2, mdp_vsync, mdp_vsync2_out,
  1561. mdp_vsync3_out, qdss_gpio3, NA, NA, NA, NA, NA, NA,
  1562. 0x7A004, 15),
  1563. [16] = PINGROUP(16, qup1_se3_l3, gcc_gp1, qdss_gpio11, atest_bbrx1,
  1564. atest_usb03, ddr_pxi0, NA, NA, NA, NA, NA, 0x7A008, 0),
  1565. [17] = PINGROUP(17, qup0_se2_l0, ddr_bist_fail, qdss_gpio12, NA, NA, NA,
  1566. NA, NA, NA, NA, NA, 0x7A008, 1),
  1567. [18] = PINGROUP(18, qup0_se2_l1, ddr_bist_start, qdss_gpio13, NA, NA,
  1568. NA, NA, NA, NA, NA, NA, 0, -1),
  1569. [19] = PINGROUP(19, qup0_se2_l2, qdss_gpio15, NA, NA, NA, NA, NA, NA,
  1570. NA, NA, NA, 0, -1),
  1571. [20] = PINGROUP(20, qup0_se2_l3, tb_trig_sdc2, qdss_gpio14, NA, NA, NA,
  1572. NA, NA, NA, NA, NA, 0x7A008, 2),
  1573. [21] = PINGROUP(21, wlan_coex, NA, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  1574. NA, 0x7A010, 3),
  1575. [22] = PINGROUP(22, wlan_coex, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA,
  1576. NA, 0, -1),
  1577. [23] = PINGROUP(23, qup0_se1_l2, usb0_hs, qdss_gpio2, tsense_pwm1,
  1578. tsense_pwm2, NA, NA, NA, NA, NA, NA, 0x7A008, 3),
  1579. [24] = PINGROUP(24, cam_mclk, NA, cmu_rng3, NA, NA, NA, NA, NA, NA, NA,
  1580. NA, 0, -1),
  1581. [25] = PINGROUP(25, cam_mclk, NA, cmu_rng2, NA, NA, NA, NA, NA, NA, NA,
  1582. NA, 0, -1),
  1583. [26] = PINGROUP(26, cam_mclk, NA, adsp_ext, cmu_rng1, qdss_gpio, NA, NA,
  1584. NA, NA, NA, NA, 0x7A010, 4),
  1585. [27] = PINGROUP(27, cci_timer0, cci_async_in0, NA, NA, cmu_rng0,
  1586. qdss_gpio, atest_gpsadc1, wlan1_adc0, NA, NA, NA,
  1587. 0x7A010, 5),
  1588. [28] = PINGROUP(28, cci_timer1, NA, NA, qdss_gpio3, txdac_calib1,
  1589. wlan1_adc1, NA, NA, NA, NA, NA, 0x7A010, 6),
  1590. [29] = PINGROUP(29, cci_timer2, NA, qdss_gpio10, NA, NA, NA, NA, NA, NA,
  1591. NA, NA, 0x7A010, 7),
  1592. [30] = PINGROUP(30, cci_i2c_sda0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1593. NA, 0, -1),
  1594. [31] = PINGROUP(31, cci_i2c_scl0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1595. NA, 0, -1),
  1596. [32] = PINGROUP(32, cci_i2c_sda1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1597. NA, 0, -1),
  1598. [33] = PINGROUP(33, cci_i2c_scl1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1599. NA, 0, -1),
  1600. [34] = PINGROUP(34, cci_i2c_sda2, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1601. NA, 0x7A010, 8),
  1602. [35] = PINGROUP(35, cci_i2c_scl2, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1603. NA, 0x7A010, 9),
  1604. [36] = PINGROUP(36, qup1_se0_l0, tgu_ch0_trigout, qdss_gpio4,
  1605. txdac_calib18, NA, NA, NA, NA, NA, NA, NA, 0x7A008, 4),
  1606. [37] = PINGROUP(37, qup1_se0_l1, mpm_pwr, tgu_ch1_trigout, qdss_gpio5,
  1607. txdac_calib19, NA, NA, NA, NA, NA, NA, 0, -1),
  1608. [38] = PINGROUP(38, qup1_se0_l2, tgu_ch2_trigout, qdss_gpio6,
  1609. txdac_calib20, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1610. [39] = PINGROUP(39, qup1_se0_l3, tgu_ch3_trigout, qdss_gpio7,
  1611. txdac_calib21, NA, NA, NA, NA, NA, NA, NA, 0x7A008, 5),
  1612. [40] = PINGROUP(40, qup1_se2_l0, uim1_data_mirb, NA, txdac_calib22, NA,
  1613. NA, NA, NA, NA, NA, NA, 0x7A008, 6),
  1614. [41] = PINGROUP(41, qup1_se2_l1, uim1_clk_mirb, NA, txdac_calib23, NA,
  1615. NA, NA, NA, NA, NA, NA, 0x7A008, 7),
  1616. [42] = PINGROUP(42, qup1_se2_l2, uim1_reset_mirb, NA, NA, NA, NA, NA,
  1617. NA, NA, NA, NA, 0x7A008, 8),
  1618. [43] = PINGROUP(43, qup1_se2_l3, uim1_present_mirb, NA, txdac_calib24,
  1619. NA, NA, NA, NA, NA, NA, NA, 0x7A008, 9),
  1620. [44] = PINGROUP(44, uim0_data, txdac_calib25, NA, NA, NA, NA, NA, NA,
  1621. NA, NA, NA, 0x7A008, 10),
  1622. [45] = PINGROUP(45, uim0_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1623. -1),
  1624. [46] = PINGROUP(46, uim0_reset, pll_bist_sync, NA, NA, NA, NA, NA, NA,
  1625. NA, NA, NA, 0, -1),
  1626. [47] = PINGROUP(47, uim0_present, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1627. NA, 0x7A008, 11),
  1628. [48] = PINGROUP(48, uim1_data_mira, pll_bypassnl, NA, NA, NA, NA, NA,
  1629. NA, NA, NA, NA, 0x7A008, 12),
  1630. [49] = PINGROUP(49, uim1_clk_mira, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1631. NA, 0, -1),
  1632. [50] = PINGROUP(50, uim1_reset_mira, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1633. NA, 0, -1),
  1634. [51] = PINGROUP(51, uim1_present_mira, NA, NA, NA, NA, NA, NA, NA, NA,
  1635. NA, NA, 0x7A008, 13),
  1636. [52] = PINGROUP(52, NA, NA, phase_flag11, txdac_calib2, NA, NA, NA, NA,
  1637. NA, NA, NA, 0, -1),
  1638. [53] = PINGROUP(53, NA, NA, phase_flag12, txdac_calib3, NA, NA, NA, NA,
  1639. NA, NA, NA, 0, -1),
  1640. [54] = PINGROUP(54, NA, NA, phase_flag13, txdac_calib4, NA, NA, NA, NA,
  1641. NA, NA, NA, 0, -1),
  1642. [55] = PINGROUP(55, NA, NA, phase_flag14, txdac_calib5, NA, NA, NA, NA,
  1643. NA, NA, NA, 0, -1),
  1644. [56] = PINGROUP(56, NA, NA, phase_flag0, txdac_calib6, NA, NA, NA, NA,
  1645. NA, NA, NA, 0, -1),
  1646. [57] = PINGROUP(57, NA, NA, phase_flag1, txdac_calib7, NA, NA, NA, NA,
  1647. NA, NA, NA, 0, -1),
  1648. [58] = PINGROUP(58, NA, NA, NA, phase_flag15, txdac_calib8, NA, NA, NA,
  1649. NA, NA, NA, 0, -1),
  1650. [59] = PINGROUP(59, NA, NA, NA, phase_flag16, txdac_calib9, NA, NA, NA,
  1651. NA, NA, NA, 0, -1),
  1652. [60] = PINGROUP(60, NA, NA, NA, phase_flag18, txdac_calib10, NA, NA, NA,
  1653. NA, NA, NA, 0, -1),
  1654. [61] = PINGROUP(61, NA, NA, NA, phase_flag22, txdac_calib11, NA, NA, NA,
  1655. NA, NA, NA, 0, -1),
  1656. [62] = PINGROUP(62, NA, NA, NA, phase_flag19, txdac_calib12, NA, NA, NA,
  1657. NA, NA, NA, 0, -1),
  1658. [63] = PINGROUP(63, NA, NA, NA, phase_flag20, txdac_calib13, NA, NA, NA,
  1659. NA, NA, NA, 0, -1),
  1660. [64] = PINGROUP(64, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1661. [65] = PINGROUP(65, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1662. [66] = PINGROUP(66, NA, clk_dac, NA, phase_flag25, txdac_calib16,
  1663. atest_char1, NA, NA, NA, NA, NA, 0x7A000, 0),
  1664. [67] = PINGROUP(67, NA, gsm_tx, NA, phase_flag26, txdac_calib17,
  1665. atest_char2, NA, NA, NA, NA, NA, 0, -1),
  1666. [68] = PINGROUP(68, NA, NA, phase_flag27, txdac_calib0, atest_char3, NA,
  1667. NA, NA, NA, NA, NA, 0, -1),
  1668. [69] = PINGROUP(69, NA, NA, audio_ref_clk, atest_gpsadc1, NA, NA, NA,
  1669. NA, NA, NA, NA, 0, -1),
  1670. [70] = PINGROUP(70, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1671. [71] = PINGROUP(71, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0x7A010,
  1672. 10),
  1673. [72] = PINGROUP(72, NA, gcc_gp1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1674. 0x7A000, 1),
  1675. [73] = PINGROUP(73, NA, gcc_gp2, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1676. 0x7A000, 2),
  1677. [74] = PINGROUP(74, NA, gcc_gp3, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1678. -1),
  1679. [75] = PINGROUP(75, NA, NA, phase_flag23, txdac_calib14,
  1680. atest_char_start, NA, NA, NA, NA, NA, NA, 0, -1),
  1681. [76] = PINGROUP(76, NA, NA, phase_flag24, txdac_calib15, atest_char0,
  1682. NA, NA, NA, NA, NA, NA, 0, -1),
  1683. [77] = PINGROUP(77, nav_gpio0, NA, prng_rosc3, NA, NA, NA, NA, NA, NA,
  1684. NA, NA, 0, -1),
  1685. [78] = PINGROUP(78, nav_gpio1, NA, vfr_1, prng_rosc0, NA, NA, NA, NA,
  1686. NA, NA, NA, 0, -1),
  1687. [79] = PINGROUP(79, NA, nav_gpio2, pa_indicator, prng_rosc1, NA, NA, NA,
  1688. NA, NA, NA, NA, 0x7A008, 14),
  1689. [80] = PINGROUP(80, NA, qup0_se1_l3, prng_rosc2, NA, NA, NA, NA, NA, NA,
  1690. NA, NA, 0x7A008, 15),
  1691. [81] = PINGROUP(81, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0x7A00C,
  1692. 0),
  1693. [82] = PINGROUP(82, qup1_se1_l2, vfr_0_mirb, cri_trng0, qdss_gpio1, NA,
  1694. NA, NA, NA, NA, NA, NA, 0x7A00C, 1),
  1695. [83] = PINGROUP(83, qup1_se1_l3, mdp_vsync, cri_trng1, qdss_gpio, NA,
  1696. NA, NA, NA, NA, NA, NA, 0x7A00C, 2),
  1697. [84] = PINGROUP(84, qup1_se4_l0, NA, phase_flag28, cri_trng,
  1698. qdss_gpio10, NA, NA, NA, NA, NA, NA, 0x7A00C, 3),
  1699. [85] = PINGROUP(85, qup1_se4_l1, NA, phase_flag29, qdss_gpio0, NA, NA,
  1700. NA, NA, NA, NA, NA, 0, -1),
  1701. [86] = PINGROUP(86, qup1_se4_l2, NA, phase_flag21, pll_reset_n,
  1702. qdss_gpio8, NA, NA, NA, NA, NA, NA, 0, -1),
  1703. [87] = PINGROUP(87, qup1_se4_l3, NA, phase_flag30, qdss_gpio, NA, NA,
  1704. NA, NA, NA, NA, NA, 0x7A00C, 4),
  1705. [88] = PINGROUP(88, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1706. [89] = PINGROUP(89, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0x7A00C,
  1707. 5),
  1708. [90] = PINGROUP(90, usb0_phy_ps, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  1709. NA, NA, 0x7A00C, 6),
  1710. [91] = PINGROUP(91, qup1_se1_l0, mdp_vsync, NA, NA, NA, NA, NA, NA, NA,
  1711. NA, NA, 0x7A00C, 7),
  1712. [92] = PINGROUP(92, qup0_se4_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1713. 0x7A00C, 8),
  1714. [93] = PINGROUP(93, qup1_se3_l0, mdp_vsync, NA, NA, NA, NA, NA, NA, NA,
  1715. NA, NA, 0x7A00C, 9),
  1716. [94] = PINGROUP(94, qup1_se3_l1, mdp_vsync, NA, NA, NA, NA, NA, NA, NA,
  1717. NA, NA, 0x7A00C, 10),
  1718. [95] = PINGROUP(95, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  1719. -1),
  1720. [96] = PINGROUP(96, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio,
  1721. 0x7A010, 11),
  1722. [97] = PINGROUP(97, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  1723. -1),
  1724. [98] = PINGROUP(98, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  1725. -1),
  1726. [99] = PINGROUP(99, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio,
  1727. 0x7A010, 12),
  1728. [100] = PINGROUP(100, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio,
  1729. 0x7A010, 13),
  1730. [101] = PINGROUP(101, dbg_out_clk, qdss_cti, atest_gpsadc0, NA, NA, NA,
  1731. NA, NA, NA, NA, egpio, 0x7A010, 14),
  1732. [102] = PINGROUP(102, qdss_gpio12, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1733. egpio, 0x7A010, 15),
  1734. [103] = PINGROUP(103, qdss_gpio13, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1735. egpio, 0, -1),
  1736. [104] = PINGROUP(104, NA, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA,
  1737. egpio, 0x7A014, 0),
  1738. [105] = PINGROUP(105, jitter_bist, qdss_gpio14, NA, NA, NA, NA, NA, NA,
  1739. NA, NA, egpio, 0x7A014, 1),
  1740. [106] = PINGROUP(106, NA, qdss_gpio2, NA, NA, NA, NA, NA, NA, NA, NA,
  1741. egpio, 0x7A014, 2),
  1742. [107] = PINGROUP(107, gcc_gp2, qdss_gpio6, atest_bbrx0, atest_usb02,
  1743. ddr_pxi1, NA, NA, NA, NA, NA, egpio, 0x7A014, 3),
  1744. [108] = PINGROUP(108, qdss_gpio9, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1745. egpio, 0x7A014, 4),
  1746. [109] = PINGROUP(109, NA, tb_trig_sdc1, NA, NA, NA, NA, NA, NA, NA, NA,
  1747. egpio, 0, -1),
  1748. [110] = PINGROUP(110, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio,
  1749. 0x7A014, 5),
  1750. [111] = PINGROUP(111, qdss_gpio4, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1751. egpio, 0x7A014, 6),
  1752. [112] = PINGROUP(112, pll_clk_aux, qdss_gpio5, vsense_trigger_mirnat,
  1753. NA, NA, NA, NA, NA, NA, NA, egpio, 0x7A014, 7),
  1754. [113] = PINGROUP(113, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  1755. -1),
  1756. [114] = PINGROUP(114, qdss_gpio15, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1757. egpio, 0x7A014, 8),
  1758. [115] = PINGROUP(115, NA, phase_flag7, NA, NA, NA, NA, NA, NA, NA, NA,
  1759. egpio, 0x7A014, 9),
  1760. [116] = PINGROUP(116, qdss_gpio11, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1761. egpio, 0x7A014, 10),
  1762. [117] = PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  1763. -1),
  1764. [118] = PINGROUP(118, NA, phase_flag3, qdss_gpio7, NA, NA, NA, NA, NA,
  1765. NA, NA, egpio, 0x7A014, 11),
  1766. [119] = PINGROUP(119, NA, phase_flag17, qdss_gpio0, NA, NA, NA, NA, NA,
  1767. NA, NA, egpio, 0x7A014, 12),
  1768. [120] = PINGROUP(120, qdss_gpio8, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1769. egpio, 0, -1),
  1770. [121] = PINGROUP(121, NA, phase_flag8, NA, qdss_gpio1, NA, NA, NA, NA,
  1771. NA, NA, egpio, 0x7A014, 13),
  1772. [122] = UFS_RESET(ufs_reset, 0x18A000),
  1773. [123] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x17E004, 0, 0),
  1774. [124] = SDC_QDSD_PINGROUP(sdc1_clk, 0x17E000, 13, 6),
  1775. [125] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x17E000, 11, 3),
  1776. [126] = SDC_QDSD_PINGROUP(sdc1_data, 0x17E000, 9, 0),
  1777. [127] = SDC_QDSD_PINGROUP(sdc2_clk, 0x181000, 14, 6),
  1778. [128] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x181000, 11, 3),
  1779. [129] = SDC_QDSD_PINGROUP(sdc2_data, 0x181000, 9, 0),
  1780. };
  1781. static struct pinctrl_qup pitti_qup_regs[] = {};
  1782. static const struct msm_gpio_wakeirq_map pitti_mpm_map[] = {
  1783. { 0, 84 },
  1784. { 3, 32 },
  1785. { 4, 39 },
  1786. { 5, 44 },
  1787. { 6, 46 },
  1788. { 8, 11 },
  1789. { 9, 14 },
  1790. { 10, 8 },
  1791. { 11, 9 },
  1792. { 12, 35 },
  1793. { 13, 36 },
  1794. { 14, 24 },
  1795. { 15, 25 },
  1796. { 16, 26 },
  1797. { 17, 27 },
  1798. { 20, 28 },
  1799. { 21, 29 },
  1800. { 23, 30 },
  1801. { 26, 31 },
  1802. { 27, 75 },
  1803. { 28, 68 },
  1804. { 29, 69 },
  1805. { 34, 33 },
  1806. { 35, 34 },
  1807. { 36, 85 },
  1808. { 39, 38 },
  1809. { 40, 40 },
  1810. { 41, 77 },
  1811. { 42, 41 },
  1812. { 43, 80 },
  1813. { 44, 7 },
  1814. { 47, 42 },
  1815. { 48, 43 },
  1816. { 51, 45 },
  1817. { 66, 49 },
  1818. { 71, 50 },
  1819. { 72, 51 },
  1820. { 73, 52 },
  1821. { 79, 76 },
  1822. { 80, 79 },
  1823. { 81, 78 },
  1824. { 82, 74 },
  1825. { 83, 72 },
  1826. { 84, 71 },
  1827. { 87, 54 },
  1828. { 89, 56 },
  1829. { 90, 57 },
  1830. { 91, 58 },
  1831. { 92, 55 },
  1832. { 93, 59 },
  1833. { 94, 60 },
  1834. { 96, 61 },
  1835. { 99, 62 },
  1836. { 100, 63 },
  1837. { 101, 64 },
  1838. { 102, 65 },
  1839. { 104, 66 },
  1840. { 105, 53 },
  1841. { 106, 48 },
  1842. { 107, 67 },
  1843. { 108, 73 },
  1844. { 110, 16 },
  1845. { 111, 17 },
  1846. { 112, 70 },
  1847. { 114, 18 },
  1848. { 115, 19 },
  1849. { 116, 20 },
  1850. { 118, 47 },
  1851. { 119, 21 },
  1852. { 121, 23 },
  1853. };
  1854. static const struct msm_pinctrl_soc_data pitti_pinctrl = {
  1855. .pins = pitti_pins,
  1856. .npins = ARRAY_SIZE(pitti_pins),
  1857. .functions = pitti_functions,
  1858. .nfunctions = ARRAY_SIZE(pitti_functions),
  1859. .groups = pitti_groups,
  1860. .ngroups = ARRAY_SIZE(pitti_groups),
  1861. .ngpios = 123,
  1862. .qup_regs = pitti_qup_regs,
  1863. .nqup_regs = ARRAY_SIZE(pitti_qup_regs),
  1864. .wakeirq_map = pitti_mpm_map,
  1865. .nwakeirq_map = ARRAY_SIZE(pitti_mpm_map),
  1866. .egpio_func = 11,
  1867. };
  1868. static const struct of_device_id pitti_pinctrl_of_match[] = {
  1869. { .compatible = "qcom,pitti-pinctrl", .data = &pitti_pinctrl },
  1870. {},
  1871. };
  1872. static int pitti_pinctrl_probe(struct platform_device *pdev)
  1873. {
  1874. const struct msm_pinctrl_soc_data *pinctrl_data;
  1875. struct device *dev = &pdev->dev;
  1876. pinctrl_data = of_device_get_match_data(dev);
  1877. if (!pinctrl_data)
  1878. return -EINVAL;
  1879. return msm_pinctrl_probe(pdev, pinctrl_data);
  1880. }
  1881. static struct platform_driver pitti_pinctrl_driver = {
  1882. .driver = {
  1883. .name = "pitti-pinctrl",
  1884. .of_match_table = pitti_pinctrl_of_match,
  1885. },
  1886. .probe = pitti_pinctrl_probe,
  1887. .remove = msm_pinctrl_remove,
  1888. };
  1889. static int __init pitti_pinctrl_init(void)
  1890. {
  1891. return platform_driver_register(&pitti_pinctrl_driver);
  1892. }
  1893. arch_initcall(pitti_pinctrl_init);
  1894. static void __exit pitti_pinctrl_exit(void)
  1895. {
  1896. platform_driver_unregister(&pitti_pinctrl_driver);
  1897. }
  1898. module_exit(pitti_pinctrl_exit);
  1899. MODULE_DESCRIPTION("QTI pitti pinctrl driver");
  1900. MODULE_LICENSE("GPL");
  1901. MODULE_DEVICE_TABLE(of, pitti_pinctrl_of_match);