pinctrl-sm8650.c 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  5. * Copyright (c) 2023, Linaro Limited
  6. */
  7. #include <linux/module.h>
  8. #include <linux/of.h>
  9. #include <linux/platform_device.h>
  10. #include "pinctrl-msm.h"
  11. #define REG_SIZE 0x1000
  12. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10) \
  13. { \
  14. .grp = PINCTRL_PINGROUP("gpio" #id, \
  15. gpio##id##_pins, \
  16. ARRAY_SIZE(gpio##id##_pins)), \
  17. .funcs = (int[]){ \
  18. msm_mux_gpio, /* gpio mode */ \
  19. msm_mux_##f1, \
  20. msm_mux_##f2, \
  21. msm_mux_##f3, \
  22. msm_mux_##f4, \
  23. msm_mux_##f5, \
  24. msm_mux_##f6, \
  25. msm_mux_##f7, \
  26. msm_mux_##f8, \
  27. msm_mux_##f9, \
  28. msm_mux_##f10 \
  29. }, \
  30. .nfuncs = 11, \
  31. .ctl_reg = REG_SIZE * id, \
  32. .io_reg = 0x4 + REG_SIZE * id, \
  33. .intr_cfg_reg = 0x8 + REG_SIZE * id, \
  34. .intr_status_reg = 0xc + REG_SIZE * id, \
  35. .intr_target_reg = 0x8 + REG_SIZE * id, \
  36. .mux_bit = 2, \
  37. .pull_bit = 0, \
  38. .drv_bit = 6, \
  39. .i2c_pull_bit = 13, \
  40. .egpio_enable = 12, \
  41. .egpio_present = 11, \
  42. .oe_bit = 9, \
  43. .in_bit = 0, \
  44. .out_bit = 1, \
  45. .intr_enable_bit = 0, \
  46. .intr_status_bit = 0, \
  47. .intr_wakeup_present_bit = 6, \
  48. .intr_wakeup_enable_bit = 7, \
  49. .intr_target_bit = 8, \
  50. .intr_target_kpss_val = 3, \
  51. .intr_raw_status_bit = 4, \
  52. .intr_polarity_bit = 1, \
  53. .intr_detection_bit = 2, \
  54. .intr_detection_width = 2, \
  55. }
  56. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  57. { \
  58. .grp = PINCTRL_PINGROUP(#pg_name, \
  59. pg_name##_pins, \
  60. ARRAY_SIZE(pg_name##_pins)), \
  61. .ctl_reg = ctl, \
  62. .io_reg = 0, \
  63. .intr_cfg_reg = 0, \
  64. .intr_status_reg = 0, \
  65. .intr_target_reg = 0, \
  66. .mux_bit = -1, \
  67. .pull_bit = pull, \
  68. .drv_bit = drv, \
  69. .oe_bit = -1, \
  70. .in_bit = -1, \
  71. .out_bit = -1, \
  72. .intr_enable_bit = -1, \
  73. .intr_status_bit = -1, \
  74. .intr_target_bit = -1, \
  75. .intr_raw_status_bit = -1, \
  76. .intr_polarity_bit = -1, \
  77. .intr_detection_bit = -1, \
  78. .intr_detection_width = -1, \
  79. }
  80. #define UFS_RESET(pg_name, ctl, io) \
  81. { \
  82. .grp = PINCTRL_PINGROUP(#pg_name, \
  83. pg_name##_pins, \
  84. ARRAY_SIZE(pg_name##_pins)), \
  85. .ctl_reg = ctl, \
  86. .io_reg = io, \
  87. .intr_cfg_reg = 0, \
  88. .intr_status_reg = 0, \
  89. .intr_target_reg = 0, \
  90. .mux_bit = -1, \
  91. .pull_bit = 3, \
  92. .drv_bit = 0, \
  93. .oe_bit = -1, \
  94. .in_bit = -1, \
  95. .out_bit = 0, \
  96. .intr_enable_bit = -1, \
  97. .intr_status_bit = -1, \
  98. .intr_target_bit = -1, \
  99. .intr_raw_status_bit = -1, \
  100. .intr_polarity_bit = -1, \
  101. .intr_detection_bit = -1, \
  102. .intr_detection_width = -1, \
  103. }
  104. static const struct pinctrl_pin_desc sm8650_pins[] = {
  105. PINCTRL_PIN(0, "GPIO_0"),
  106. PINCTRL_PIN(1, "GPIO_1"),
  107. PINCTRL_PIN(2, "GPIO_2"),
  108. PINCTRL_PIN(3, "GPIO_3"),
  109. PINCTRL_PIN(4, "GPIO_4"),
  110. PINCTRL_PIN(5, "GPIO_5"),
  111. PINCTRL_PIN(6, "GPIO_6"),
  112. PINCTRL_PIN(7, "GPIO_7"),
  113. PINCTRL_PIN(8, "GPIO_8"),
  114. PINCTRL_PIN(9, "GPIO_9"),
  115. PINCTRL_PIN(10, "GPIO_10"),
  116. PINCTRL_PIN(11, "GPIO_11"),
  117. PINCTRL_PIN(12, "GPIO_12"),
  118. PINCTRL_PIN(13, "GPIO_13"),
  119. PINCTRL_PIN(14, "GPIO_14"),
  120. PINCTRL_PIN(15, "GPIO_15"),
  121. PINCTRL_PIN(16, "GPIO_16"),
  122. PINCTRL_PIN(17, "GPIO_17"),
  123. PINCTRL_PIN(18, "GPIO_18"),
  124. PINCTRL_PIN(19, "GPIO_19"),
  125. PINCTRL_PIN(20, "GPIO_20"),
  126. PINCTRL_PIN(21, "GPIO_21"),
  127. PINCTRL_PIN(22, "GPIO_22"),
  128. PINCTRL_PIN(23, "GPIO_23"),
  129. PINCTRL_PIN(24, "GPIO_24"),
  130. PINCTRL_PIN(25, "GPIO_25"),
  131. PINCTRL_PIN(26, "GPIO_26"),
  132. PINCTRL_PIN(27, "GPIO_27"),
  133. PINCTRL_PIN(28, "GPIO_28"),
  134. PINCTRL_PIN(29, "GPIO_29"),
  135. PINCTRL_PIN(30, "GPIO_30"),
  136. PINCTRL_PIN(31, "GPIO_31"),
  137. PINCTRL_PIN(32, "GPIO_32"),
  138. PINCTRL_PIN(33, "GPIO_33"),
  139. PINCTRL_PIN(34, "GPIO_34"),
  140. PINCTRL_PIN(35, "GPIO_35"),
  141. PINCTRL_PIN(36, "GPIO_36"),
  142. PINCTRL_PIN(37, "GPIO_37"),
  143. PINCTRL_PIN(38, "GPIO_38"),
  144. PINCTRL_PIN(39, "GPIO_39"),
  145. PINCTRL_PIN(40, "GPIO_40"),
  146. PINCTRL_PIN(41, "GPIO_41"),
  147. PINCTRL_PIN(42, "GPIO_42"),
  148. PINCTRL_PIN(43, "GPIO_43"),
  149. PINCTRL_PIN(44, "GPIO_44"),
  150. PINCTRL_PIN(45, "GPIO_45"),
  151. PINCTRL_PIN(46, "GPIO_46"),
  152. PINCTRL_PIN(47, "GPIO_47"),
  153. PINCTRL_PIN(48, "GPIO_48"),
  154. PINCTRL_PIN(49, "GPIO_49"),
  155. PINCTRL_PIN(50, "GPIO_50"),
  156. PINCTRL_PIN(51, "GPIO_51"),
  157. PINCTRL_PIN(52, "GPIO_52"),
  158. PINCTRL_PIN(53, "GPIO_53"),
  159. PINCTRL_PIN(54, "GPIO_54"),
  160. PINCTRL_PIN(55, "GPIO_55"),
  161. PINCTRL_PIN(56, "GPIO_56"),
  162. PINCTRL_PIN(57, "GPIO_57"),
  163. PINCTRL_PIN(58, "GPIO_58"),
  164. PINCTRL_PIN(59, "GPIO_59"),
  165. PINCTRL_PIN(60, "GPIO_60"),
  166. PINCTRL_PIN(61, "GPIO_61"),
  167. PINCTRL_PIN(62, "GPIO_62"),
  168. PINCTRL_PIN(63, "GPIO_63"),
  169. PINCTRL_PIN(64, "GPIO_64"),
  170. PINCTRL_PIN(65, "GPIO_65"),
  171. PINCTRL_PIN(66, "GPIO_66"),
  172. PINCTRL_PIN(67, "GPIO_67"),
  173. PINCTRL_PIN(68, "GPIO_68"),
  174. PINCTRL_PIN(69, "GPIO_69"),
  175. PINCTRL_PIN(70, "GPIO_70"),
  176. PINCTRL_PIN(71, "GPIO_71"),
  177. PINCTRL_PIN(72, "GPIO_72"),
  178. PINCTRL_PIN(73, "GPIO_73"),
  179. PINCTRL_PIN(74, "GPIO_74"),
  180. PINCTRL_PIN(75, "GPIO_75"),
  181. PINCTRL_PIN(76, "GPIO_76"),
  182. PINCTRL_PIN(77, "GPIO_77"),
  183. PINCTRL_PIN(78, "GPIO_78"),
  184. PINCTRL_PIN(79, "GPIO_79"),
  185. PINCTRL_PIN(80, "GPIO_80"),
  186. PINCTRL_PIN(81, "GPIO_81"),
  187. PINCTRL_PIN(82, "GPIO_82"),
  188. PINCTRL_PIN(83, "GPIO_83"),
  189. PINCTRL_PIN(84, "GPIO_84"),
  190. PINCTRL_PIN(85, "GPIO_85"),
  191. PINCTRL_PIN(86, "GPIO_86"),
  192. PINCTRL_PIN(87, "GPIO_87"),
  193. PINCTRL_PIN(88, "GPIO_88"),
  194. PINCTRL_PIN(89, "GPIO_89"),
  195. PINCTRL_PIN(90, "GPIO_90"),
  196. PINCTRL_PIN(91, "GPIO_91"),
  197. PINCTRL_PIN(92, "GPIO_92"),
  198. PINCTRL_PIN(93, "GPIO_93"),
  199. PINCTRL_PIN(94, "GPIO_94"),
  200. PINCTRL_PIN(95, "GPIO_95"),
  201. PINCTRL_PIN(96, "GPIO_96"),
  202. PINCTRL_PIN(97, "GPIO_97"),
  203. PINCTRL_PIN(98, "GPIO_98"),
  204. PINCTRL_PIN(99, "GPIO_99"),
  205. PINCTRL_PIN(100, "GPIO_100"),
  206. PINCTRL_PIN(101, "GPIO_101"),
  207. PINCTRL_PIN(102, "GPIO_102"),
  208. PINCTRL_PIN(103, "GPIO_103"),
  209. PINCTRL_PIN(104, "GPIO_104"),
  210. PINCTRL_PIN(105, "GPIO_105"),
  211. PINCTRL_PIN(106, "GPIO_106"),
  212. PINCTRL_PIN(107, "GPIO_107"),
  213. PINCTRL_PIN(108, "GPIO_108"),
  214. PINCTRL_PIN(109, "GPIO_109"),
  215. PINCTRL_PIN(110, "GPIO_110"),
  216. PINCTRL_PIN(111, "GPIO_111"),
  217. PINCTRL_PIN(112, "GPIO_112"),
  218. PINCTRL_PIN(113, "GPIO_113"),
  219. PINCTRL_PIN(114, "GPIO_114"),
  220. PINCTRL_PIN(115, "GPIO_115"),
  221. PINCTRL_PIN(116, "GPIO_116"),
  222. PINCTRL_PIN(117, "GPIO_117"),
  223. PINCTRL_PIN(118, "GPIO_118"),
  224. PINCTRL_PIN(119, "GPIO_119"),
  225. PINCTRL_PIN(120, "GPIO_120"),
  226. PINCTRL_PIN(121, "GPIO_121"),
  227. PINCTRL_PIN(122, "GPIO_122"),
  228. PINCTRL_PIN(123, "GPIO_123"),
  229. PINCTRL_PIN(124, "GPIO_124"),
  230. PINCTRL_PIN(125, "GPIO_125"),
  231. PINCTRL_PIN(126, "GPIO_126"),
  232. PINCTRL_PIN(127, "GPIO_127"),
  233. PINCTRL_PIN(128, "GPIO_128"),
  234. PINCTRL_PIN(129, "GPIO_129"),
  235. PINCTRL_PIN(130, "GPIO_130"),
  236. PINCTRL_PIN(131, "GPIO_131"),
  237. PINCTRL_PIN(132, "GPIO_132"),
  238. PINCTRL_PIN(133, "GPIO_133"),
  239. PINCTRL_PIN(134, "GPIO_134"),
  240. PINCTRL_PIN(135, "GPIO_135"),
  241. PINCTRL_PIN(136, "GPIO_136"),
  242. PINCTRL_PIN(137, "GPIO_137"),
  243. PINCTRL_PIN(138, "GPIO_138"),
  244. PINCTRL_PIN(139, "GPIO_139"),
  245. PINCTRL_PIN(140, "GPIO_140"),
  246. PINCTRL_PIN(141, "GPIO_141"),
  247. PINCTRL_PIN(142, "GPIO_142"),
  248. PINCTRL_PIN(143, "GPIO_143"),
  249. PINCTRL_PIN(144, "GPIO_144"),
  250. PINCTRL_PIN(145, "GPIO_145"),
  251. PINCTRL_PIN(146, "GPIO_146"),
  252. PINCTRL_PIN(147, "GPIO_147"),
  253. PINCTRL_PIN(148, "GPIO_148"),
  254. PINCTRL_PIN(149, "GPIO_149"),
  255. PINCTRL_PIN(150, "GPIO_150"),
  256. PINCTRL_PIN(151, "GPIO_151"),
  257. PINCTRL_PIN(152, "GPIO_152"),
  258. PINCTRL_PIN(153, "GPIO_153"),
  259. PINCTRL_PIN(154, "GPIO_154"),
  260. PINCTRL_PIN(155, "GPIO_155"),
  261. PINCTRL_PIN(156, "GPIO_156"),
  262. PINCTRL_PIN(157, "GPIO_157"),
  263. PINCTRL_PIN(158, "GPIO_158"),
  264. PINCTRL_PIN(159, "GPIO_159"),
  265. PINCTRL_PIN(160, "GPIO_160"),
  266. PINCTRL_PIN(161, "GPIO_161"),
  267. PINCTRL_PIN(162, "GPIO_162"),
  268. PINCTRL_PIN(163, "GPIO_163"),
  269. PINCTRL_PIN(164, "GPIO_164"),
  270. PINCTRL_PIN(165, "GPIO_165"),
  271. PINCTRL_PIN(166, "GPIO_166"),
  272. PINCTRL_PIN(167, "GPIO_167"),
  273. PINCTRL_PIN(168, "GPIO_168"),
  274. PINCTRL_PIN(169, "GPIO_169"),
  275. PINCTRL_PIN(170, "GPIO_170"),
  276. PINCTRL_PIN(171, "GPIO_171"),
  277. PINCTRL_PIN(172, "GPIO_172"),
  278. PINCTRL_PIN(173, "GPIO_173"),
  279. PINCTRL_PIN(174, "GPIO_174"),
  280. PINCTRL_PIN(175, "GPIO_175"),
  281. PINCTRL_PIN(176, "GPIO_176"),
  282. PINCTRL_PIN(177, "GPIO_177"),
  283. PINCTRL_PIN(178, "GPIO_178"),
  284. PINCTRL_PIN(179, "GPIO_179"),
  285. PINCTRL_PIN(180, "GPIO_180"),
  286. PINCTRL_PIN(181, "GPIO_181"),
  287. PINCTRL_PIN(182, "GPIO_182"),
  288. PINCTRL_PIN(183, "GPIO_183"),
  289. PINCTRL_PIN(184, "GPIO_184"),
  290. PINCTRL_PIN(185, "GPIO_185"),
  291. PINCTRL_PIN(186, "GPIO_186"),
  292. PINCTRL_PIN(187, "GPIO_187"),
  293. PINCTRL_PIN(188, "GPIO_188"),
  294. PINCTRL_PIN(189, "GPIO_189"),
  295. PINCTRL_PIN(190, "GPIO_190"),
  296. PINCTRL_PIN(191, "GPIO_191"),
  297. PINCTRL_PIN(192, "GPIO_192"),
  298. PINCTRL_PIN(193, "GPIO_193"),
  299. PINCTRL_PIN(194, "GPIO_194"),
  300. PINCTRL_PIN(195, "GPIO_195"),
  301. PINCTRL_PIN(196, "GPIO_196"),
  302. PINCTRL_PIN(197, "GPIO_197"),
  303. PINCTRL_PIN(198, "GPIO_198"),
  304. PINCTRL_PIN(199, "GPIO_199"),
  305. PINCTRL_PIN(200, "GPIO_200"),
  306. PINCTRL_PIN(201, "GPIO_201"),
  307. PINCTRL_PIN(202, "GPIO_202"),
  308. PINCTRL_PIN(203, "GPIO_203"),
  309. PINCTRL_PIN(204, "GPIO_204"),
  310. PINCTRL_PIN(205, "GPIO_205"),
  311. PINCTRL_PIN(206, "GPIO_206"),
  312. PINCTRL_PIN(207, "GPIO_207"),
  313. PINCTRL_PIN(208, "GPIO_208"),
  314. PINCTRL_PIN(209, "GPIO_209"),
  315. PINCTRL_PIN(210, "UFS_RESET"),
  316. PINCTRL_PIN(211, "SDC2_CLK"),
  317. PINCTRL_PIN(212, "SDC2_CMD"),
  318. PINCTRL_PIN(213, "SDC2_DATA"),
  319. };
  320. #define DECLARE_MSM_GPIO_PINS(pin) \
  321. static const unsigned int gpio##pin##_pins[] = { pin }
  322. DECLARE_MSM_GPIO_PINS(0);
  323. DECLARE_MSM_GPIO_PINS(1);
  324. DECLARE_MSM_GPIO_PINS(2);
  325. DECLARE_MSM_GPIO_PINS(3);
  326. DECLARE_MSM_GPIO_PINS(4);
  327. DECLARE_MSM_GPIO_PINS(5);
  328. DECLARE_MSM_GPIO_PINS(6);
  329. DECLARE_MSM_GPIO_PINS(7);
  330. DECLARE_MSM_GPIO_PINS(8);
  331. DECLARE_MSM_GPIO_PINS(9);
  332. DECLARE_MSM_GPIO_PINS(10);
  333. DECLARE_MSM_GPIO_PINS(11);
  334. DECLARE_MSM_GPIO_PINS(12);
  335. DECLARE_MSM_GPIO_PINS(13);
  336. DECLARE_MSM_GPIO_PINS(14);
  337. DECLARE_MSM_GPIO_PINS(15);
  338. DECLARE_MSM_GPIO_PINS(16);
  339. DECLARE_MSM_GPIO_PINS(17);
  340. DECLARE_MSM_GPIO_PINS(18);
  341. DECLARE_MSM_GPIO_PINS(19);
  342. DECLARE_MSM_GPIO_PINS(20);
  343. DECLARE_MSM_GPIO_PINS(21);
  344. DECLARE_MSM_GPIO_PINS(22);
  345. DECLARE_MSM_GPIO_PINS(23);
  346. DECLARE_MSM_GPIO_PINS(24);
  347. DECLARE_MSM_GPIO_PINS(25);
  348. DECLARE_MSM_GPIO_PINS(26);
  349. DECLARE_MSM_GPIO_PINS(27);
  350. DECLARE_MSM_GPIO_PINS(28);
  351. DECLARE_MSM_GPIO_PINS(29);
  352. DECLARE_MSM_GPIO_PINS(30);
  353. DECLARE_MSM_GPIO_PINS(31);
  354. DECLARE_MSM_GPIO_PINS(32);
  355. DECLARE_MSM_GPIO_PINS(33);
  356. DECLARE_MSM_GPIO_PINS(34);
  357. DECLARE_MSM_GPIO_PINS(35);
  358. DECLARE_MSM_GPIO_PINS(36);
  359. DECLARE_MSM_GPIO_PINS(37);
  360. DECLARE_MSM_GPIO_PINS(38);
  361. DECLARE_MSM_GPIO_PINS(39);
  362. DECLARE_MSM_GPIO_PINS(40);
  363. DECLARE_MSM_GPIO_PINS(41);
  364. DECLARE_MSM_GPIO_PINS(42);
  365. DECLARE_MSM_GPIO_PINS(43);
  366. DECLARE_MSM_GPIO_PINS(44);
  367. DECLARE_MSM_GPIO_PINS(45);
  368. DECLARE_MSM_GPIO_PINS(46);
  369. DECLARE_MSM_GPIO_PINS(47);
  370. DECLARE_MSM_GPIO_PINS(48);
  371. DECLARE_MSM_GPIO_PINS(49);
  372. DECLARE_MSM_GPIO_PINS(50);
  373. DECLARE_MSM_GPIO_PINS(51);
  374. DECLARE_MSM_GPIO_PINS(52);
  375. DECLARE_MSM_GPIO_PINS(53);
  376. DECLARE_MSM_GPIO_PINS(54);
  377. DECLARE_MSM_GPIO_PINS(55);
  378. DECLARE_MSM_GPIO_PINS(56);
  379. DECLARE_MSM_GPIO_PINS(57);
  380. DECLARE_MSM_GPIO_PINS(58);
  381. DECLARE_MSM_GPIO_PINS(59);
  382. DECLARE_MSM_GPIO_PINS(60);
  383. DECLARE_MSM_GPIO_PINS(61);
  384. DECLARE_MSM_GPIO_PINS(62);
  385. DECLARE_MSM_GPIO_PINS(63);
  386. DECLARE_MSM_GPIO_PINS(64);
  387. DECLARE_MSM_GPIO_PINS(65);
  388. DECLARE_MSM_GPIO_PINS(66);
  389. DECLARE_MSM_GPIO_PINS(67);
  390. DECLARE_MSM_GPIO_PINS(68);
  391. DECLARE_MSM_GPIO_PINS(69);
  392. DECLARE_MSM_GPIO_PINS(70);
  393. DECLARE_MSM_GPIO_PINS(71);
  394. DECLARE_MSM_GPIO_PINS(72);
  395. DECLARE_MSM_GPIO_PINS(73);
  396. DECLARE_MSM_GPIO_PINS(74);
  397. DECLARE_MSM_GPIO_PINS(75);
  398. DECLARE_MSM_GPIO_PINS(76);
  399. DECLARE_MSM_GPIO_PINS(77);
  400. DECLARE_MSM_GPIO_PINS(78);
  401. DECLARE_MSM_GPIO_PINS(79);
  402. DECLARE_MSM_GPIO_PINS(80);
  403. DECLARE_MSM_GPIO_PINS(81);
  404. DECLARE_MSM_GPIO_PINS(82);
  405. DECLARE_MSM_GPIO_PINS(83);
  406. DECLARE_MSM_GPIO_PINS(84);
  407. DECLARE_MSM_GPIO_PINS(85);
  408. DECLARE_MSM_GPIO_PINS(86);
  409. DECLARE_MSM_GPIO_PINS(87);
  410. DECLARE_MSM_GPIO_PINS(88);
  411. DECLARE_MSM_GPIO_PINS(89);
  412. DECLARE_MSM_GPIO_PINS(90);
  413. DECLARE_MSM_GPIO_PINS(91);
  414. DECLARE_MSM_GPIO_PINS(92);
  415. DECLARE_MSM_GPIO_PINS(93);
  416. DECLARE_MSM_GPIO_PINS(94);
  417. DECLARE_MSM_GPIO_PINS(95);
  418. DECLARE_MSM_GPIO_PINS(96);
  419. DECLARE_MSM_GPIO_PINS(97);
  420. DECLARE_MSM_GPIO_PINS(98);
  421. DECLARE_MSM_GPIO_PINS(99);
  422. DECLARE_MSM_GPIO_PINS(100);
  423. DECLARE_MSM_GPIO_PINS(101);
  424. DECLARE_MSM_GPIO_PINS(102);
  425. DECLARE_MSM_GPIO_PINS(103);
  426. DECLARE_MSM_GPIO_PINS(104);
  427. DECLARE_MSM_GPIO_PINS(105);
  428. DECLARE_MSM_GPIO_PINS(106);
  429. DECLARE_MSM_GPIO_PINS(107);
  430. DECLARE_MSM_GPIO_PINS(108);
  431. DECLARE_MSM_GPIO_PINS(109);
  432. DECLARE_MSM_GPIO_PINS(110);
  433. DECLARE_MSM_GPIO_PINS(111);
  434. DECLARE_MSM_GPIO_PINS(112);
  435. DECLARE_MSM_GPIO_PINS(113);
  436. DECLARE_MSM_GPIO_PINS(114);
  437. DECLARE_MSM_GPIO_PINS(115);
  438. DECLARE_MSM_GPIO_PINS(116);
  439. DECLARE_MSM_GPIO_PINS(117);
  440. DECLARE_MSM_GPIO_PINS(118);
  441. DECLARE_MSM_GPIO_PINS(119);
  442. DECLARE_MSM_GPIO_PINS(120);
  443. DECLARE_MSM_GPIO_PINS(121);
  444. DECLARE_MSM_GPIO_PINS(122);
  445. DECLARE_MSM_GPIO_PINS(123);
  446. DECLARE_MSM_GPIO_PINS(124);
  447. DECLARE_MSM_GPIO_PINS(125);
  448. DECLARE_MSM_GPIO_PINS(126);
  449. DECLARE_MSM_GPIO_PINS(127);
  450. DECLARE_MSM_GPIO_PINS(128);
  451. DECLARE_MSM_GPIO_PINS(129);
  452. DECLARE_MSM_GPIO_PINS(130);
  453. DECLARE_MSM_GPIO_PINS(131);
  454. DECLARE_MSM_GPIO_PINS(132);
  455. DECLARE_MSM_GPIO_PINS(133);
  456. DECLARE_MSM_GPIO_PINS(134);
  457. DECLARE_MSM_GPIO_PINS(135);
  458. DECLARE_MSM_GPIO_PINS(136);
  459. DECLARE_MSM_GPIO_PINS(137);
  460. DECLARE_MSM_GPIO_PINS(138);
  461. DECLARE_MSM_GPIO_PINS(139);
  462. DECLARE_MSM_GPIO_PINS(140);
  463. DECLARE_MSM_GPIO_PINS(141);
  464. DECLARE_MSM_GPIO_PINS(142);
  465. DECLARE_MSM_GPIO_PINS(143);
  466. DECLARE_MSM_GPIO_PINS(144);
  467. DECLARE_MSM_GPIO_PINS(145);
  468. DECLARE_MSM_GPIO_PINS(146);
  469. DECLARE_MSM_GPIO_PINS(147);
  470. DECLARE_MSM_GPIO_PINS(148);
  471. DECLARE_MSM_GPIO_PINS(149);
  472. DECLARE_MSM_GPIO_PINS(150);
  473. DECLARE_MSM_GPIO_PINS(151);
  474. DECLARE_MSM_GPIO_PINS(152);
  475. DECLARE_MSM_GPIO_PINS(153);
  476. DECLARE_MSM_GPIO_PINS(154);
  477. DECLARE_MSM_GPIO_PINS(155);
  478. DECLARE_MSM_GPIO_PINS(156);
  479. DECLARE_MSM_GPIO_PINS(157);
  480. DECLARE_MSM_GPIO_PINS(158);
  481. DECLARE_MSM_GPIO_PINS(159);
  482. DECLARE_MSM_GPIO_PINS(160);
  483. DECLARE_MSM_GPIO_PINS(161);
  484. DECLARE_MSM_GPIO_PINS(162);
  485. DECLARE_MSM_GPIO_PINS(163);
  486. DECLARE_MSM_GPIO_PINS(164);
  487. DECLARE_MSM_GPIO_PINS(165);
  488. DECLARE_MSM_GPIO_PINS(166);
  489. DECLARE_MSM_GPIO_PINS(167);
  490. DECLARE_MSM_GPIO_PINS(168);
  491. DECLARE_MSM_GPIO_PINS(169);
  492. DECLARE_MSM_GPIO_PINS(170);
  493. DECLARE_MSM_GPIO_PINS(171);
  494. DECLARE_MSM_GPIO_PINS(172);
  495. DECLARE_MSM_GPIO_PINS(173);
  496. DECLARE_MSM_GPIO_PINS(174);
  497. DECLARE_MSM_GPIO_PINS(175);
  498. DECLARE_MSM_GPIO_PINS(176);
  499. DECLARE_MSM_GPIO_PINS(177);
  500. DECLARE_MSM_GPIO_PINS(178);
  501. DECLARE_MSM_GPIO_PINS(179);
  502. DECLARE_MSM_GPIO_PINS(180);
  503. DECLARE_MSM_GPIO_PINS(181);
  504. DECLARE_MSM_GPIO_PINS(182);
  505. DECLARE_MSM_GPIO_PINS(183);
  506. DECLARE_MSM_GPIO_PINS(184);
  507. DECLARE_MSM_GPIO_PINS(185);
  508. DECLARE_MSM_GPIO_PINS(186);
  509. DECLARE_MSM_GPIO_PINS(187);
  510. DECLARE_MSM_GPIO_PINS(188);
  511. DECLARE_MSM_GPIO_PINS(189);
  512. DECLARE_MSM_GPIO_PINS(190);
  513. DECLARE_MSM_GPIO_PINS(191);
  514. DECLARE_MSM_GPIO_PINS(192);
  515. DECLARE_MSM_GPIO_PINS(193);
  516. DECLARE_MSM_GPIO_PINS(194);
  517. DECLARE_MSM_GPIO_PINS(195);
  518. DECLARE_MSM_GPIO_PINS(196);
  519. DECLARE_MSM_GPIO_PINS(197);
  520. DECLARE_MSM_GPIO_PINS(198);
  521. DECLARE_MSM_GPIO_PINS(199);
  522. DECLARE_MSM_GPIO_PINS(200);
  523. DECLARE_MSM_GPIO_PINS(201);
  524. DECLARE_MSM_GPIO_PINS(202);
  525. DECLARE_MSM_GPIO_PINS(203);
  526. DECLARE_MSM_GPIO_PINS(204);
  527. DECLARE_MSM_GPIO_PINS(205);
  528. DECLARE_MSM_GPIO_PINS(206);
  529. DECLARE_MSM_GPIO_PINS(207);
  530. DECLARE_MSM_GPIO_PINS(208);
  531. DECLARE_MSM_GPIO_PINS(209);
  532. static const unsigned int ufs_reset_pins[] = { 210 };
  533. static const unsigned int sdc2_clk_pins[] = { 211 };
  534. static const unsigned int sdc2_cmd_pins[] = { 212 };
  535. static const unsigned int sdc2_data_pins[] = { 213 };
  536. enum sm8650_functions {
  537. msm_mux_gpio,
  538. msm_mux_aoss_cti,
  539. msm_mux_atest_char,
  540. msm_mux_atest_usb,
  541. msm_mux_audio_ext_mclk0,
  542. msm_mux_audio_ext_mclk1,
  543. msm_mux_audio_ref_clk,
  544. msm_mux_cam_aon_mclk2,
  545. msm_mux_cam_aon_mclk4,
  546. msm_mux_cam_mclk,
  547. msm_mux_cci_async_in,
  548. msm_mux_cci_i2c_scl,
  549. msm_mux_cci_i2c_sda,
  550. msm_mux_cci_timer,
  551. msm_mux_cmu_rng,
  552. msm_mux_coex_uart1_rx,
  553. msm_mux_coex_uart1_tx,
  554. msm_mux_coex_uart2_rx,
  555. msm_mux_coex_uart2_tx,
  556. msm_mux_cri_trng,
  557. msm_mux_dbg_out_clk,
  558. msm_mux_ddr_bist_complete,
  559. msm_mux_ddr_bist_fail,
  560. msm_mux_ddr_bist_start,
  561. msm_mux_ddr_bist_stop,
  562. msm_mux_ddr_pxi0,
  563. msm_mux_ddr_pxi1,
  564. msm_mux_ddr_pxi2,
  565. msm_mux_ddr_pxi3,
  566. msm_mux_do_not,
  567. msm_mux_dp_hot,
  568. msm_mux_egpio,
  569. msm_mux_gcc_gp1,
  570. msm_mux_gcc_gp2,
  571. msm_mux_gcc_gp3,
  572. msm_mux_gnss_adc0,
  573. msm_mux_gnss_adc1,
  574. msm_mux_i2chub0_se0,
  575. msm_mux_i2chub0_se1,
  576. msm_mux_i2chub0_se2,
  577. msm_mux_i2chub0_se3,
  578. msm_mux_i2chub0_se4,
  579. msm_mux_i2chub0_se5,
  580. msm_mux_i2chub0_se6,
  581. msm_mux_i2chub0_se7,
  582. msm_mux_i2chub0_se8,
  583. msm_mux_i2chub0_se9,
  584. msm_mux_i2s0_data0,
  585. msm_mux_i2s0_data1,
  586. msm_mux_i2s0_sck,
  587. msm_mux_i2s0_ws,
  588. msm_mux_i2s1_data0,
  589. msm_mux_i2s1_data1,
  590. msm_mux_i2s1_sck,
  591. msm_mux_i2s1_ws,
  592. msm_mux_ibi_i3c,
  593. msm_mux_jitter_bist,
  594. msm_mux_mdp_vsync,
  595. msm_mux_mdp_vsync0_out,
  596. msm_mux_mdp_vsync1_out,
  597. msm_mux_mdp_vsync2_out,
  598. msm_mux_mdp_vsync3_out,
  599. msm_mux_mdp_vsync_e,
  600. msm_mux_nav_gpio0,
  601. msm_mux_nav_gpio1,
  602. msm_mux_nav_gpio2,
  603. msm_mux_nav_gpio3,
  604. msm_mux_pcie0_clk_req_n,
  605. msm_mux_pcie1_clk_req_n,
  606. msm_mux_phase_flag,
  607. msm_mux_pll_bist_sync,
  608. msm_mux_pll_clk_aux,
  609. msm_mux_prng_rosc0,
  610. msm_mux_prng_rosc1,
  611. msm_mux_prng_rosc2,
  612. msm_mux_prng_rosc3,
  613. msm_mux_qdss_cti,
  614. msm_mux_qdss_gpio,
  615. msm_mux_qlink_big_enable,
  616. msm_mux_qlink_big_request,
  617. msm_mux_qlink_little_enable,
  618. msm_mux_qlink_little_request,
  619. msm_mux_qlink_wmss,
  620. msm_mux_qspi0,
  621. msm_mux_qspi1,
  622. msm_mux_qspi2,
  623. msm_mux_qspi3,
  624. msm_mux_qspi_clk,
  625. msm_mux_qspi_cs,
  626. msm_mux_qup1_se0,
  627. msm_mux_qup1_se1,
  628. msm_mux_qup1_se2,
  629. msm_mux_qup1_se3,
  630. msm_mux_qup1_se4,
  631. msm_mux_qup1_se5,
  632. msm_mux_qup1_se6,
  633. msm_mux_qup1_se7,
  634. msm_mux_qup2_se0,
  635. msm_mux_qup2_se1,
  636. msm_mux_qup2_se2,
  637. msm_mux_qup2_se3,
  638. msm_mux_qup2_se4,
  639. msm_mux_qup2_se5,
  640. msm_mux_qup2_se6,
  641. msm_mux_qup2_se7,
  642. msm_mux_sd_write_protect,
  643. msm_mux_sdc40,
  644. msm_mux_sdc41,
  645. msm_mux_sdc42,
  646. msm_mux_sdc43,
  647. msm_mux_sdc4_clk,
  648. msm_mux_sdc4_cmd,
  649. msm_mux_tb_trig_sdc2,
  650. msm_mux_tb_trig_sdc4,
  651. msm_mux_tgu_ch0_trigout,
  652. msm_mux_tgu_ch1_trigout,
  653. msm_mux_tgu_ch2_trigout,
  654. msm_mux_tgu_ch3_trigout,
  655. msm_mux_tmess_prng0,
  656. msm_mux_tmess_prng1,
  657. msm_mux_tmess_prng2,
  658. msm_mux_tmess_prng3,
  659. msm_mux_tsense_pwm1,
  660. msm_mux_tsense_pwm2,
  661. msm_mux_tsense_pwm3,
  662. msm_mux_uim0_clk,
  663. msm_mux_uim0_data,
  664. msm_mux_uim0_present,
  665. msm_mux_uim0_reset,
  666. msm_mux_uim1_clk,
  667. msm_mux_uim1_data,
  668. msm_mux_uim1_present,
  669. msm_mux_uim1_reset,
  670. msm_mux_usb1_hs,
  671. msm_mux_usb_phy,
  672. msm_mux_vfr_0,
  673. msm_mux_vfr_1,
  674. msm_mux_vsense_trigger_mirnat,
  675. msm_mux__,
  676. };
  677. static const char *const gpio_groups[] = {
  678. "gpio0", "gpio1", "gpio2", "gpio3",
  679. "gpio4", "gpio5", "gpio6", "gpio7",
  680. "gpio8", "gpio9", "gpio10", "gpio11",
  681. "gpio12", "gpio13", "gpio14", "gpio15",
  682. "gpio16", "gpio17", "gpio18", "gpio19",
  683. "gpio20", "gpio21", "gpio22", "gpio23",
  684. "gpio24", "gpio25", "gpio26", "gpio27",
  685. "gpio28", "gpio29", "gpio30", "gpio31",
  686. "gpio32", "gpio33", "gpio34", "gpio35",
  687. "gpio36", "gpio37", "gpio38", "gpio39",
  688. "gpio40", "gpio41", "gpio42", "gpio43",
  689. "gpio44", "gpio45", "gpio46", "gpio47",
  690. "gpio48", "gpio49", "gpio50", "gpio51",
  691. "gpio52", "gpio53", "gpio54", "gpio55",
  692. "gpio56", "gpio57", "gpio58", "gpio59",
  693. "gpio60", "gpio61", "gpio62", "gpio63",
  694. "gpio64", "gpio65", "gpio66", "gpio67",
  695. "gpio68", "gpio69", "gpio70", "gpio71",
  696. "gpio72", "gpio73", "gpio74", "gpio75",
  697. "gpio76", "gpio77", "gpio78", "gpio79",
  698. "gpio80", "gpio81", "gpio82", "gpio83",
  699. "gpio84", "gpio85", "gpio86", "gpio87",
  700. "gpio88", "gpio89", "gpio90", "gpio91",
  701. "gpio92", "gpio93", "gpio94", "gpio95",
  702. "gpio96", "gpio97", "gpio98", "gpio99",
  703. "gpio100", "gpio101", "gpio102", "gpio103",
  704. "gpio104", "gpio105", "gpio106", "gpio107",
  705. "gpio108", "gpio109", "gpio110", "gpio111",
  706. "gpio112", "gpio113", "gpio114", "gpio115",
  707. "gpio116", "gpio117", "gpio118", "gpio119",
  708. "gpio120", "gpio121", "gpio122", "gpio123",
  709. "gpio124", "gpio125", "gpio126", "gpio127",
  710. "gpio128", "gpio129", "gpio130", "gpio131",
  711. "gpio132", "gpio133", "gpio134", "gpio135",
  712. "gpio136", "gpio137", "gpio138", "gpio139",
  713. "gpio140", "gpio141", "gpio142", "gpio143",
  714. "gpio144", "gpio145", "gpio146", "gpio147",
  715. "gpio148", "gpio149", "gpio150", "gpio151",
  716. "gpio152", "gpio153", "gpio154", "gpio155",
  717. "gpio156", "gpio157", "gpio158", "gpio159",
  718. "gpio160", "gpio161", "gpio162", "gpio163",
  719. "gpio164", "gpio165", "gpio166", "gpio167",
  720. "gpio168", "gpio169", "gpio170", "gpio171",
  721. "gpio172", "gpio173", "gpio174", "gpio175",
  722. "gpio176", "gpio177", "gpio178", "gpio179",
  723. "gpio180", "gpio181", "gpio182", "gpio183",
  724. "gpio184", "gpio185", "gpio186", "gpio187",
  725. "gpio188", "gpio189", "gpio190", "gpio191",
  726. "gpio192", "gpio193", "gpio194", "gpio195",
  727. "gpio196", "gpio197", "gpio198", "gpio199",
  728. "gpio200", "gpio201", "gpio202", "gpio203",
  729. "gpio204", "gpio205", "gpio206", "gpio207",
  730. "gpio208", "gpio209",
  731. };
  732. static const char * const egpio_groups[] = {
  733. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  734. "gpio6", "gpio7", "gpio165", "gpio166", "gpio167", "gpio168",
  735. "gpio169", "gpio170", "gpio171", "gpio172", "gpio173", "gpio174",
  736. "gpio175", "gpio176", "gpio177", "gpio178", "gpio179", "gpio180",
  737. "gpio181", "gpio182", "gpio183", "gpio184", "gpio185", "gpio186",
  738. "gpio187", "gpio188", "gpio189", "gpio190", "gpio191", "gpio192",
  739. "gpio193", "gpio194", "gpio195", "gpio196", "gpio197", "gpio198",
  740. "gpio199", "gpio200", "gpio201", "gpio202", "gpio203", "gpio204",
  741. "gpio205", "gpio206", "gpio207", "gpio208", "gpio209",
  742. };
  743. static const char * const aoss_cti_groups[] = {
  744. "gpio50", "gpio51", "gpio60", "gpio61",
  745. };
  746. static const char *const atest_char_groups[] = {
  747. "gpio130", "gpio131", "gpio132", "gpio133",
  748. "gpio137",
  749. };
  750. static const char *const atest_usb_groups[] = {
  751. "gpio71", "gpio72", "gpio74", "gpio130",
  752. "gpio131",
  753. };
  754. static const char *const audio_ext_mclk0_groups[] = {
  755. "gpio125",
  756. };
  757. static const char *const audio_ext_mclk1_groups[] = {
  758. "gpio124",
  759. };
  760. static const char *const audio_ref_clk_groups[] = {
  761. "gpio124",
  762. };
  763. static const char *const cam_aon_mclk2_groups[] = {
  764. "gpio102",
  765. };
  766. static const char *const cam_aon_mclk4_groups[] = {
  767. "gpio104",
  768. };
  769. static const char *const cam_mclk_groups[] = {
  770. "gpio100", "gpio101", "gpio103", "gpio105",
  771. "gpio106", "gpio108",
  772. };
  773. static const char *const cci_async_in_groups[] = {
  774. "gpio15", "gpio163", "gpio164",
  775. };
  776. static const char *const cci_i2c_scl_groups[] = {
  777. "gpio13", "gpio114", "gpio116", "gpio118",
  778. "gpio120", "gpio153",
  779. };
  780. static const char *const cci_i2c_sda_groups[] = {
  781. "gpio12", "gpio112", "gpio113", "gpio115",
  782. "gpio117", "gpio119",
  783. };
  784. static const char *const cci_timer_groups[] = {
  785. "gpio10", "gpio11", "gpio109", "gpio110",
  786. "gpio111",
  787. };
  788. static const char *const cmu_rng_groups[] = {
  789. "gpio95", "gpio96", "gpio112", "gpio127",
  790. "gpio122", "gpio128",
  791. };
  792. static const char *const coex_uart1_rx_groups[] = {
  793. "gpio148",
  794. };
  795. static const char *const coex_uart1_tx_groups[] = {
  796. "gpio149",
  797. };
  798. static const char *const coex_uart2_rx_groups[] = {
  799. "gpio150",
  800. };
  801. static const char *const coex_uart2_tx_groups[] = {
  802. "gpio151",
  803. };
  804. static const char *const cri_trng_groups[] = {
  805. "gpio187",
  806. };
  807. static const char *const dbg_out_clk_groups[] = {
  808. "gpio92",
  809. };
  810. static const char *const ddr_bist_complete_groups[] = {
  811. "gpio44",
  812. };
  813. static const char *const ddr_bist_fail_groups[] = {
  814. "gpio40",
  815. };
  816. static const char *const ddr_bist_start_groups[] = {
  817. "gpio41",
  818. };
  819. static const char *const ddr_bist_stop_groups[] = {
  820. "gpio45",
  821. };
  822. static const char *const ddr_pxi0_groups[] = {
  823. "gpio75", "gpio76",
  824. };
  825. static const char *const ddr_pxi1_groups[] = {
  826. "gpio44", "gpio45",
  827. };
  828. static const char *const ddr_pxi2_groups[] = {
  829. "gpio51", "gpio62",
  830. };
  831. static const char *const ddr_pxi3_groups[] = {
  832. "gpio46", "gpio47",
  833. };
  834. static const char *const do_not_groups[] = {
  835. "gpio36", "gpio37", "gpio38", "gpio39",
  836. "gpio134", "gpio135", "gpio136",
  837. };
  838. static const char *const dp_hot_groups[] = {
  839. "gpio47",
  840. };
  841. static const char *const gcc_gp1_groups[] = {
  842. "gpio86", "gpio134",
  843. };
  844. static const char *const gcc_gp2_groups[] = {
  845. "gpio87", "gpio135",
  846. };
  847. static const char *const gcc_gp3_groups[] = {
  848. "gpio88", "gpio136",
  849. };
  850. static const char *const gnss_adc0_groups[] = {
  851. "gpio89", "gpio91",
  852. };
  853. static const char *const gnss_adc1_groups[] = {
  854. "gpio90", "gpio92",
  855. };
  856. static const char *const i2chub0_se0_groups[] = {
  857. "gpio64", "gpio65",
  858. };
  859. static const char *const i2chub0_se1_groups[] = {
  860. "gpio66", "gpio67",
  861. };
  862. static const char *const i2chub0_se2_groups[] = {
  863. "gpio68", "gpio69",
  864. };
  865. static const char *const i2chub0_se3_groups[] = {
  866. "gpio70", "gpio71",
  867. };
  868. static const char *const i2chub0_se4_groups[] = {
  869. "gpio72", "gpio73",
  870. };
  871. static const char *const i2chub0_se5_groups[] = {
  872. "gpio74", "gpio75",
  873. };
  874. static const char *const i2chub0_se6_groups[] = {
  875. "gpio76", "gpio77",
  876. };
  877. static const char *const i2chub0_se7_groups[] = {
  878. "gpio78", "gpio79",
  879. };
  880. static const char *const i2chub0_se8_groups[] = {
  881. "gpio206", "gpio207",
  882. };
  883. static const char *const i2chub0_se9_groups[] = {
  884. "gpio80", "gpio81",
  885. };
  886. static const char *const i2s0_data0_groups[] = {
  887. "gpio127",
  888. };
  889. static const char *const i2s0_data1_groups[] = {
  890. "gpio128",
  891. };
  892. static const char *const i2s0_sck_groups[] = {
  893. "gpio126",
  894. };
  895. static const char *const i2s0_ws_groups[] = {
  896. "gpio129",
  897. };
  898. static const char *const i2s1_data0_groups[] = {
  899. "gpio122",
  900. };
  901. static const char *const i2s1_data1_groups[] = {
  902. "gpio124",
  903. };
  904. static const char *const i2s1_sck_groups[] = {
  905. "gpio121",
  906. };
  907. static const char *const i2s1_ws_groups[] = {
  908. "gpio123",
  909. };
  910. static const char *const ibi_i3c_groups[] = {
  911. "gpio0", "gpio1", "gpio4", "gpio5",
  912. "gpio8", "gpio9", "gpio12", "gpio13",
  913. "gpio32", "gpio33", "gpio36", "gpio37",
  914. "gpio48", "gpio49", "gpio56", "gpio57",
  915. };
  916. static const char *const jitter_bist_groups[] = {
  917. "gpio73",
  918. };
  919. static const char *const mdp_vsync_groups[] = {
  920. "gpio86", "gpio87", "gpio133", "gpio137",
  921. };
  922. static const char *const mdp_vsync0_out_groups[] = {
  923. "gpio86",
  924. };
  925. static const char *const mdp_vsync1_out_groups[] = {
  926. "gpio86",
  927. };
  928. static const char *const mdp_vsync2_out_groups[] = {
  929. "gpio87",
  930. };
  931. static const char *const mdp_vsync3_out_groups[] = {
  932. "gpio87",
  933. };
  934. static const char *const mdp_vsync_e_groups[] = {
  935. "gpio88",
  936. };
  937. static const char *const nav_gpio0_groups[] = {
  938. "gpio154",
  939. };
  940. static const char *const nav_gpio1_groups[] = {
  941. "gpio155",
  942. };
  943. static const char *const nav_gpio2_groups[] = {
  944. "gpio152",
  945. };
  946. static const char *const nav_gpio3_groups[] = {
  947. "gpio154",
  948. };
  949. static const char *const pcie0_clk_req_n_groups[] = {
  950. "gpio95",
  951. };
  952. static const char *const pcie1_clk_req_n_groups[] = {
  953. "gpio98",
  954. };
  955. static const char *const phase_flag_groups[] = {
  956. "gpio0", "gpio1", "gpio3", "gpio4",
  957. "gpio5", "gpio7", "gpio8", "gpio9",
  958. "gpio11", "gpio12", "gpio13", "gpio15",
  959. "gpio16", "gpio17", "gpio19", "gpio94",
  960. "gpio95", "gpio96", "gpio109", "gpio111",
  961. "gpio112", "gpio113", "gpio114", "gpio115",
  962. "gpio116", "gpio117", "gpio118", "gpio119",
  963. "gpio120", "gpio153", "gpio163", "gpio164",
  964. };
  965. static const char *const pll_bist_sync_groups[] = {
  966. "gpio68",
  967. };
  968. static const char *const pll_clk_aux_groups[] = {
  969. "gpio106",
  970. };
  971. static const char *const prng_rosc0_groups[] = {
  972. "gpio186",
  973. };
  974. static const char *const prng_rosc1_groups[] = {
  975. "gpio183",
  976. };
  977. static const char *const prng_rosc2_groups[] = {
  978. "gpio182",
  979. };
  980. static const char *const prng_rosc3_groups[] = {
  981. "gpio181",
  982. };
  983. static const char *const qdss_cti_groups[] = {
  984. "gpio27", "gpio31", "gpio78", "gpio79",
  985. "gpio82", "gpio83", "gpio159", "gpio162",
  986. };
  987. static const char *const qdss_gpio_groups[] = {
  988. "gpio3", "gpio7", "gpio8", "gpio13",
  989. "gpio15", "gpio100", "gpio101", "gpio102",
  990. "gpio103", "gpio104", "gpio105", "gpio113",
  991. "gpio114", "gpio115", "gpio116", "gpio117",
  992. "gpio118", "gpio140", "gpio141", "gpio142",
  993. "gpio143", "gpio144", "gpio145", "gpio146",
  994. "gpio147", "gpio148", "gpio149", "gpio150",
  995. "gpio151", "gpio152", "gpio153", "gpio154",
  996. "gpio155", "gpio156", "gpio157", "gpio158",
  997. };
  998. static const char *const qlink_big_enable_groups[] = {
  999. "gpio160",
  1000. };
  1001. static const char *const qlink_big_request_groups[] = {
  1002. "gpio159",
  1003. };
  1004. static const char *const qlink_little_enable_groups[] = {
  1005. "gpio157",
  1006. };
  1007. static const char *const qlink_little_request_groups[] = {
  1008. "gpio156",
  1009. };
  1010. static const char *const qlink_wmss_groups[] = {
  1011. "gpio158",
  1012. };
  1013. static const char *const qspi0_groups[] = {
  1014. "gpio134",
  1015. };
  1016. static const char *const qspi1_groups[] = {
  1017. "gpio136",
  1018. };
  1019. static const char *const qspi2_groups[] = {
  1020. "gpio56",
  1021. };
  1022. static const char *const qspi3_groups[] = {
  1023. "gpio57",
  1024. };
  1025. static const char *const qspi_clk_groups[] = {
  1026. "gpio135",
  1027. };
  1028. static const char *const qspi_cs_groups[] = {
  1029. "gpio58", "gpio59",
  1030. };
  1031. static const char *const qup1_se0_groups[] = {
  1032. "gpio32", "gpio33", "gpio34", "gpio35",
  1033. };
  1034. static const char *const qup1_se1_groups[] = {
  1035. "gpio36", "gpio37", "gpio38", "gpio39",
  1036. };
  1037. static const char *const qup1_se2_groups[] = {
  1038. "gpio40", "gpio41", "gpio42", "gpio43",
  1039. "gpio44", "gpio45", "gpio46",
  1040. };
  1041. static const char *const qup1_se3_groups[] = {
  1042. "gpio44", "gpio45", "gpio46", "gpio47",
  1043. };
  1044. static const char *const qup1_se4_groups[] = {
  1045. "gpio48", "gpio49", "gpio50", "gpio51",
  1046. };
  1047. static const char *const qup1_se5_groups[] = {
  1048. "gpio52", "gpio53", "gpio54", "gpio55",
  1049. };
  1050. static const char *const qup1_se6_groups[] = {
  1051. "gpio56", "gpio57", "gpio58", "gpio59",
  1052. };
  1053. static const char *const qup1_se7_groups[] = {
  1054. "gpio60", "gpio61", "gpio62", "gpio63",
  1055. };
  1056. static const char *const qup2_se0_groups[] = {
  1057. "gpio0", "gpio1", "gpio2", "gpio3",
  1058. };
  1059. static const char *const qup2_se1_groups[] = {
  1060. "gpio4", "gpio5", "gpio6", "gpio7",
  1061. };
  1062. static const char *const qup2_se2_groups[] = {
  1063. "gpio8", "gpio9", "gpio10", "gpio11",
  1064. "gpio13", "gpio15", "gpio12",
  1065. };
  1066. static const char *const qup2_se3_groups[] = {
  1067. "gpio12", "gpio13", "gpio14", "gpio15",
  1068. };
  1069. static const char *const qup2_se4_groups[] = {
  1070. "gpio16", "gpio17", "gpio18", "gpio19",
  1071. };
  1072. static const char *const qup2_se5_groups[] = {
  1073. "gpio20", "gpio21", "gpio22", "gpio23",
  1074. "gpio23",
  1075. };
  1076. static const char *const qup2_se6_groups[] = {
  1077. "gpio24", "gpio25", "gpio26", "gpio27",
  1078. };
  1079. static const char *const qup2_se7_groups[] = {
  1080. "gpio28", "gpio29", "gpio30", "gpio31",
  1081. };
  1082. static const char *const sd_write_protect_groups[] = {
  1083. "gpio93",
  1084. };
  1085. static const char *const sdc40_groups[] = {
  1086. "gpio134",
  1087. };
  1088. static const char *const sdc41_groups[] = {
  1089. "gpio136",
  1090. };
  1091. static const char *const sdc42_groups[] = {
  1092. "gpio56",
  1093. };
  1094. static const char *const sdc43_groups[] = {
  1095. "gpio57",
  1096. };
  1097. static const char *const sdc4_clk_groups[] = {
  1098. "gpio135",
  1099. };
  1100. static const char *const sdc4_cmd_groups[] = {
  1101. "gpio59",
  1102. };
  1103. static const char *const tb_trig_sdc2_groups[] = {
  1104. "gpio8",
  1105. };
  1106. static const char *const tb_trig_sdc4_groups[] = {
  1107. "gpio58",
  1108. };
  1109. static const char *const tgu_ch0_trigout_groups[] = {
  1110. "gpio8",
  1111. };
  1112. static const char *const tgu_ch1_trigout_groups[] = {
  1113. "gpio9",
  1114. };
  1115. static const char *const tgu_ch2_trigout_groups[] = {
  1116. "gpio10",
  1117. };
  1118. static const char *const tgu_ch3_trigout_groups[] = {
  1119. "gpio11",
  1120. };
  1121. static const char *const tmess_prng0_groups[] = {
  1122. "gpio94",
  1123. };
  1124. static const char *const tmess_prng1_groups[] = {
  1125. "gpio95",
  1126. };
  1127. static const char *const tmess_prng2_groups[] = {
  1128. "gpio96",
  1129. };
  1130. static const char *const tmess_prng3_groups[] = {
  1131. "gpio109",
  1132. };
  1133. static const char *const tsense_pwm1_groups[] = {
  1134. "gpio58",
  1135. };
  1136. static const char *const tsense_pwm2_groups[] = {
  1137. "gpio58",
  1138. };
  1139. static const char *const tsense_pwm3_groups[] = {
  1140. "gpio58",
  1141. };
  1142. static const char *const uim0_clk_groups[] = {
  1143. "gpio131",
  1144. };
  1145. static const char *const uim0_data_groups[] = {
  1146. "gpio130",
  1147. };
  1148. static const char *const uim0_present_groups[] = {
  1149. "gpio47",
  1150. };
  1151. static const char *const uim0_reset_groups[] = {
  1152. "gpio132",
  1153. };
  1154. static const char *const uim1_clk_groups[] = {
  1155. "gpio135",
  1156. };
  1157. static const char *const uim1_data_groups[] = {
  1158. "gpio134",
  1159. };
  1160. static const char *const uim1_present_groups[] = {
  1161. "gpio76",
  1162. };
  1163. static const char *const uim1_reset_groups[] = {
  1164. "gpio136",
  1165. };
  1166. static const char *const usb1_hs_groups[] = {
  1167. "gpio89",
  1168. };
  1169. static const char *const usb_phy_groups[] = {
  1170. "gpio29", "gpio54",
  1171. };
  1172. static const char *const vfr_0_groups[] = {
  1173. "gpio150",
  1174. };
  1175. static const char *const vfr_1_groups[] = {
  1176. "gpio155",
  1177. };
  1178. static const char *const vsense_trigger_mirnat_groups[] = {
  1179. "gpio60",
  1180. };
  1181. static const struct pinfunction sm8650_functions[] = {
  1182. MSM_PIN_FUNCTION(gpio),
  1183. MSM_PIN_FUNCTION(aoss_cti),
  1184. MSM_PIN_FUNCTION(atest_char),
  1185. MSM_PIN_FUNCTION(atest_usb),
  1186. MSM_PIN_FUNCTION(audio_ext_mclk0),
  1187. MSM_PIN_FUNCTION(audio_ext_mclk1),
  1188. MSM_PIN_FUNCTION(audio_ref_clk),
  1189. MSM_PIN_FUNCTION(cam_aon_mclk2),
  1190. MSM_PIN_FUNCTION(cam_aon_mclk4),
  1191. MSM_PIN_FUNCTION(cam_mclk),
  1192. MSM_PIN_FUNCTION(cci_async_in),
  1193. MSM_PIN_FUNCTION(cci_i2c_scl),
  1194. MSM_PIN_FUNCTION(cci_i2c_sda),
  1195. MSM_PIN_FUNCTION(cci_timer),
  1196. MSM_PIN_FUNCTION(cmu_rng),
  1197. MSM_PIN_FUNCTION(coex_uart1_rx),
  1198. MSM_PIN_FUNCTION(coex_uart1_tx),
  1199. MSM_PIN_FUNCTION(coex_uart2_rx),
  1200. MSM_PIN_FUNCTION(coex_uart2_tx),
  1201. MSM_PIN_FUNCTION(cri_trng),
  1202. MSM_PIN_FUNCTION(dbg_out_clk),
  1203. MSM_PIN_FUNCTION(ddr_bist_complete),
  1204. MSM_PIN_FUNCTION(ddr_bist_fail),
  1205. MSM_PIN_FUNCTION(ddr_bist_start),
  1206. MSM_PIN_FUNCTION(ddr_bist_stop),
  1207. MSM_PIN_FUNCTION(ddr_pxi0),
  1208. MSM_PIN_FUNCTION(ddr_pxi1),
  1209. MSM_PIN_FUNCTION(ddr_pxi2),
  1210. MSM_PIN_FUNCTION(ddr_pxi3),
  1211. MSM_PIN_FUNCTION(do_not),
  1212. MSM_PIN_FUNCTION(dp_hot),
  1213. MSM_PIN_FUNCTION(egpio),
  1214. MSM_PIN_FUNCTION(gcc_gp1),
  1215. MSM_PIN_FUNCTION(gcc_gp2),
  1216. MSM_PIN_FUNCTION(gcc_gp3),
  1217. MSM_PIN_FUNCTION(gnss_adc0),
  1218. MSM_PIN_FUNCTION(gnss_adc1),
  1219. MSM_PIN_FUNCTION(i2chub0_se0),
  1220. MSM_PIN_FUNCTION(i2chub0_se1),
  1221. MSM_PIN_FUNCTION(i2chub0_se2),
  1222. MSM_PIN_FUNCTION(i2chub0_se3),
  1223. MSM_PIN_FUNCTION(i2chub0_se4),
  1224. MSM_PIN_FUNCTION(i2chub0_se5),
  1225. MSM_PIN_FUNCTION(i2chub0_se6),
  1226. MSM_PIN_FUNCTION(i2chub0_se7),
  1227. MSM_PIN_FUNCTION(i2chub0_se8),
  1228. MSM_PIN_FUNCTION(i2chub0_se9),
  1229. MSM_PIN_FUNCTION(i2s0_data0),
  1230. MSM_PIN_FUNCTION(i2s0_data1),
  1231. MSM_PIN_FUNCTION(i2s0_sck),
  1232. MSM_PIN_FUNCTION(i2s0_ws),
  1233. MSM_PIN_FUNCTION(i2s1_data0),
  1234. MSM_PIN_FUNCTION(i2s1_data1),
  1235. MSM_PIN_FUNCTION(i2s1_sck),
  1236. MSM_PIN_FUNCTION(i2s1_ws),
  1237. MSM_PIN_FUNCTION(ibi_i3c),
  1238. MSM_PIN_FUNCTION(jitter_bist),
  1239. MSM_PIN_FUNCTION(mdp_vsync),
  1240. MSM_PIN_FUNCTION(mdp_vsync0_out),
  1241. MSM_PIN_FUNCTION(mdp_vsync1_out),
  1242. MSM_PIN_FUNCTION(mdp_vsync2_out),
  1243. MSM_PIN_FUNCTION(mdp_vsync3_out),
  1244. MSM_PIN_FUNCTION(mdp_vsync_e),
  1245. MSM_PIN_FUNCTION(nav_gpio0),
  1246. MSM_PIN_FUNCTION(nav_gpio1),
  1247. MSM_PIN_FUNCTION(nav_gpio2),
  1248. MSM_PIN_FUNCTION(nav_gpio3),
  1249. MSM_PIN_FUNCTION(pcie0_clk_req_n),
  1250. MSM_PIN_FUNCTION(pcie1_clk_req_n),
  1251. MSM_PIN_FUNCTION(phase_flag),
  1252. MSM_PIN_FUNCTION(pll_bist_sync),
  1253. MSM_PIN_FUNCTION(pll_clk_aux),
  1254. MSM_PIN_FUNCTION(prng_rosc0),
  1255. MSM_PIN_FUNCTION(prng_rosc1),
  1256. MSM_PIN_FUNCTION(prng_rosc2),
  1257. MSM_PIN_FUNCTION(prng_rosc3),
  1258. MSM_PIN_FUNCTION(qdss_cti),
  1259. MSM_PIN_FUNCTION(qdss_gpio),
  1260. MSM_PIN_FUNCTION(qlink_big_enable),
  1261. MSM_PIN_FUNCTION(qlink_big_request),
  1262. MSM_PIN_FUNCTION(qlink_little_enable),
  1263. MSM_PIN_FUNCTION(qlink_little_request),
  1264. MSM_PIN_FUNCTION(qlink_wmss),
  1265. MSM_PIN_FUNCTION(qspi0),
  1266. MSM_PIN_FUNCTION(qspi1),
  1267. MSM_PIN_FUNCTION(qspi2),
  1268. MSM_PIN_FUNCTION(qspi3),
  1269. MSM_PIN_FUNCTION(qspi_clk),
  1270. MSM_PIN_FUNCTION(qspi_cs),
  1271. MSM_PIN_FUNCTION(qup1_se0),
  1272. MSM_PIN_FUNCTION(qup1_se1),
  1273. MSM_PIN_FUNCTION(qup1_se2),
  1274. MSM_PIN_FUNCTION(qup1_se3),
  1275. MSM_PIN_FUNCTION(qup1_se4),
  1276. MSM_PIN_FUNCTION(qup1_se5),
  1277. MSM_PIN_FUNCTION(qup1_se6),
  1278. MSM_PIN_FUNCTION(qup1_se7),
  1279. MSM_PIN_FUNCTION(qup2_se0),
  1280. MSM_PIN_FUNCTION(qup2_se1),
  1281. MSM_PIN_FUNCTION(qup2_se2),
  1282. MSM_PIN_FUNCTION(qup2_se3),
  1283. MSM_PIN_FUNCTION(qup2_se4),
  1284. MSM_PIN_FUNCTION(qup2_se5),
  1285. MSM_PIN_FUNCTION(qup2_se6),
  1286. MSM_PIN_FUNCTION(qup2_se7),
  1287. MSM_PIN_FUNCTION(sd_write_protect),
  1288. MSM_PIN_FUNCTION(sdc40),
  1289. MSM_PIN_FUNCTION(sdc41),
  1290. MSM_PIN_FUNCTION(sdc42),
  1291. MSM_PIN_FUNCTION(sdc43),
  1292. MSM_PIN_FUNCTION(sdc4_clk),
  1293. MSM_PIN_FUNCTION(sdc4_cmd),
  1294. MSM_PIN_FUNCTION(tb_trig_sdc2),
  1295. MSM_PIN_FUNCTION(tb_trig_sdc4),
  1296. MSM_PIN_FUNCTION(tgu_ch0_trigout),
  1297. MSM_PIN_FUNCTION(tgu_ch1_trigout),
  1298. MSM_PIN_FUNCTION(tgu_ch2_trigout),
  1299. MSM_PIN_FUNCTION(tgu_ch3_trigout),
  1300. MSM_PIN_FUNCTION(tmess_prng0),
  1301. MSM_PIN_FUNCTION(tmess_prng1),
  1302. MSM_PIN_FUNCTION(tmess_prng2),
  1303. MSM_PIN_FUNCTION(tmess_prng3),
  1304. MSM_PIN_FUNCTION(tsense_pwm1),
  1305. MSM_PIN_FUNCTION(tsense_pwm2),
  1306. MSM_PIN_FUNCTION(tsense_pwm3),
  1307. MSM_PIN_FUNCTION(uim0_clk),
  1308. MSM_PIN_FUNCTION(uim0_data),
  1309. MSM_PIN_FUNCTION(uim0_present),
  1310. MSM_PIN_FUNCTION(uim0_reset),
  1311. MSM_PIN_FUNCTION(uim1_clk),
  1312. MSM_PIN_FUNCTION(uim1_data),
  1313. MSM_PIN_FUNCTION(uim1_present),
  1314. MSM_PIN_FUNCTION(uim1_reset),
  1315. MSM_PIN_FUNCTION(usb1_hs),
  1316. MSM_PIN_FUNCTION(usb_phy),
  1317. MSM_PIN_FUNCTION(vfr_0),
  1318. MSM_PIN_FUNCTION(vfr_1),
  1319. MSM_PIN_FUNCTION(vsense_trigger_mirnat),
  1320. };
  1321. /*
  1322. * Every pin is maintained as a single group, and missing or non-existing pin
  1323. * would be maintained as dummy group to synchronize pin group index with
  1324. * pin descriptor registered with pinctrl core.
  1325. * Clients would not be able to request these dummy pin groups.
  1326. */
  1327. static const struct msm_pingroup sm8650_groups[] = {
  1328. [0] = PINGROUP(0, qup2_se0, ibi_i3c, phase_flag, _, _, _, _, _, _, egpio),
  1329. [1] = PINGROUP(1, qup2_se0, ibi_i3c, phase_flag, _, _, _, _, _, _, egpio),
  1330. [2] = PINGROUP(2, qup2_se0, _, _, _, _, _, _, _, _, egpio),
  1331. [3] = PINGROUP(3, qup2_se0, phase_flag, _, qdss_gpio, _, _, _, _, _, egpio),
  1332. [4] = PINGROUP(4, qup2_se1, ibi_i3c, phase_flag, _, _, _, _, _, _, egpio),
  1333. [5] = PINGROUP(5, qup2_se1, ibi_i3c, phase_flag, _, _, _, _, _, _, egpio),
  1334. [6] = PINGROUP(6, qup2_se1, _, _, _, _, _, _, _, _, egpio),
  1335. [7] = PINGROUP(7, qup2_se1, phase_flag, _, qdss_gpio, _, _, _, _, _, egpio),
  1336. [8] = PINGROUP(8, qup2_se2, ibi_i3c, tb_trig_sdc2, phase_flag, tgu_ch0_trigout, _, qdss_gpio, _, _, _),
  1337. [9] = PINGROUP(9, qup2_se2, ibi_i3c, phase_flag, tgu_ch1_trigout, _, _, _, _, _, _),
  1338. [10] = PINGROUP(10, qup2_se2, cci_timer, tgu_ch2_trigout, _, _, _, _, _, _, _),
  1339. [11] = PINGROUP(11, qup2_se2, cci_timer, phase_flag, tgu_ch3_trigout, _, _, _, _, _, _),
  1340. [12] = PINGROUP(12, qup2_se3, cci_i2c_sda, ibi_i3c, qup2_se2, phase_flag, _, _, _, _, _),
  1341. [13] = PINGROUP(13, qup2_se3, cci_i2c_scl, ibi_i3c, qup2_se2, phase_flag, _, qdss_gpio, _, _, _),
  1342. [14] = PINGROUP(14, qup2_se3, _, _, _, _, _, _, _, _, _),
  1343. [15] = PINGROUP(15, qup2_se3, cci_async_in, qup2_se2, phase_flag, _, qdss_gpio, _, _, _, _),
  1344. [16] = PINGROUP(16, qup2_se4, phase_flag, _, _, _, _, _, _, _, _),
  1345. [17] = PINGROUP(17, qup2_se4, phase_flag, _, _, _, _, _, _, _, _),
  1346. [18] = PINGROUP(18, qup2_se4, _, _, _, _, _, _, _, _, _),
  1347. [19] = PINGROUP(19, qup2_se4, phase_flag, _, _, _, _, _, _, _, _),
  1348. [20] = PINGROUP(20, qup2_se5, _, _, _, _, _, _, _, _, _),
  1349. [21] = PINGROUP(21, qup2_se5, _, _, _, _, _, _, _, _, _),
  1350. [22] = PINGROUP(22, qup2_se5, _, _, _, _, _, _, _, _, _),
  1351. [23] = PINGROUP(23, qup2_se5, qup2_se5, _, _, _, _, _, _, _, _),
  1352. [24] = PINGROUP(24, qup2_se6, _, _, _, _, _, _, _, _, _),
  1353. [25] = PINGROUP(25, qup2_se6, _, _, _, _, _, _, _, _, _),
  1354. [26] = PINGROUP(26, qup2_se6, _, _, _, _, _, _, _, _, _),
  1355. [27] = PINGROUP(27, qup2_se6, qdss_cti, _, _, _, _, _, _, _, _),
  1356. [28] = PINGROUP(28, qup2_se7, _, _, _, _, _, _, _, _, _),
  1357. [29] = PINGROUP(29, qup2_se7, usb_phy, _, _, _, _, _, _, _, _),
  1358. [30] = PINGROUP(30, qup2_se7, _, _, _, _, _, _, _, _, _),
  1359. [31] = PINGROUP(31, qup2_se7, qdss_cti, _, _, _, _, _, _, _, _),
  1360. [32] = PINGROUP(32, qup1_se0, ibi_i3c, _, _, _, _, _, _, _, _),
  1361. [33] = PINGROUP(33, qup1_se0, ibi_i3c, _, _, _, _, _, _, _, _),
  1362. [34] = PINGROUP(34, qup1_se0, _, _, _, _, _, _, _, _, _),
  1363. [35] = PINGROUP(35, qup1_se0, _, _, _, _, _, _, _, _, _),
  1364. [36] = PINGROUP(36, qup1_se1, do_not, ibi_i3c, _, _, _, _, _, _, _),
  1365. [37] = PINGROUP(37, qup1_se1, do_not, ibi_i3c, _, _, _, _, _, _, _),
  1366. [38] = PINGROUP(38, qup1_se1, do_not, _, _, _, _, _, _, _, _),
  1367. [39] = PINGROUP(39, qup1_se1, do_not, _, _, _, _, _, _, _, _),
  1368. [40] = PINGROUP(40, qup1_se2, ddr_bist_fail, _, _, _, _, _, _, _, _),
  1369. [41] = PINGROUP(41, qup1_se2, ddr_bist_start, _, _, _, _, _, _, _, _),
  1370. [42] = PINGROUP(42, qup1_se2, _, _, _, _, _, _, _, _, _),
  1371. [43] = PINGROUP(43, qup1_se2, _, _, _, _, _, _, _, _, _),
  1372. [44] = PINGROUP(44, qup1_se3, qup1_se2, ddr_bist_complete, ddr_pxi1, _, _, _, _, _, _),
  1373. [45] = PINGROUP(45, qup1_se3, qup1_se2, ddr_bist_stop, ddr_pxi1, _, _, _, _, _, _),
  1374. [46] = PINGROUP(46, qup1_se3, qup1_se2, ddr_pxi3, _, _, _, _, _, _, _),
  1375. [47] = PINGROUP(47, qup1_se3, uim0_present, dp_hot, ddr_pxi3, _, _, _, _, _, _),
  1376. [48] = PINGROUP(48, qup1_se4, ibi_i3c, _, _, _, _, _, _, _, _),
  1377. [49] = PINGROUP(49, qup1_se4, ibi_i3c, _, _, _, _, _, _, _, _),
  1378. [50] = PINGROUP(50, qup1_se4, aoss_cti, _, _, _, _, _, _, _, _),
  1379. [51] = PINGROUP(51, qup1_se4, aoss_cti, ddr_pxi2, _, _, _, _, _, _, _),
  1380. [52] = PINGROUP(52, qup1_se5, _, _, _, _, _, _, _, _, _),
  1381. [53] = PINGROUP(53, qup1_se5, _, _, _, _, _, _, _, _, _),
  1382. [54] = PINGROUP(54, qup1_se5, usb_phy, _, _, _, _, _, _, _, _),
  1383. [55] = PINGROUP(55, qup1_se5, _, _, _, _, _, _, _, _, _),
  1384. [56] = PINGROUP(56, qup1_se6, ibi_i3c, qspi2, sdc42, _, _, _, _, _, _),
  1385. [57] = PINGROUP(57, qup1_se6, ibi_i3c, qspi3, sdc43, _, _, _, _, _, _),
  1386. [58] = PINGROUP(58, qup1_se6, qspi_cs, tb_trig_sdc4, tsense_pwm1, tsense_pwm2, tsense_pwm3, _, _, _, _),
  1387. [59] = PINGROUP(59, qup1_se6, _, qspi_cs, sdc4_cmd, _, _, _, _, _, _),
  1388. [60] = PINGROUP(60, qup1_se7, aoss_cti, vsense_trigger_mirnat, _, _, _, _, _, _, _),
  1389. [61] = PINGROUP(61, qup1_se7, aoss_cti, _, _, _, _, _, _, _, _),
  1390. [62] = PINGROUP(62, qup1_se7, ddr_pxi2, _, _, _, _, _, _, _, _),
  1391. [63] = PINGROUP(63, qup1_se7, _, _, _, _, _, _, _, _, _),
  1392. [64] = PINGROUP(64, i2chub0_se0, _, _, _, _, _, _, _, _, _),
  1393. [65] = PINGROUP(65, i2chub0_se0, _, _, _, _, _, _, _, _, _),
  1394. [66] = PINGROUP(66, i2chub0_se1, _, _, _, _, _, _, _, _, _),
  1395. [67] = PINGROUP(67, i2chub0_se1, _, _, _, _, _, _, _, _, _),
  1396. [68] = PINGROUP(68, i2chub0_se2, pll_bist_sync, _, _, _, _, _, _, _, _),
  1397. [69] = PINGROUP(69, i2chub0_se2, _, _, _, _, _, _, _, _, _),
  1398. [70] = PINGROUP(70, i2chub0_se3, _, _, _, _, _, _, _, _, _),
  1399. [71] = PINGROUP(71, i2chub0_se3, _, atest_usb, _, _, _, _, _, _, _),
  1400. [72] = PINGROUP(72, i2chub0_se4, _, atest_usb, _, _, _, _, _, _, _),
  1401. [73] = PINGROUP(73, i2chub0_se4, jitter_bist, _, _, _, _, _, _, _, _),
  1402. [74] = PINGROUP(74, i2chub0_se5, atest_usb, _, _, _, _, _, _, _, _),
  1403. [75] = PINGROUP(75, i2chub0_se5, ddr_pxi0, _, _, _, _, _, _, _, _),
  1404. [76] = PINGROUP(76, i2chub0_se6, ddr_pxi0, uim1_present, _, _, _, _, _, _, _),
  1405. [77] = PINGROUP(77, i2chub0_se6, _, _, _, _, _, _, _, _, _),
  1406. [78] = PINGROUP(78, i2chub0_se7, qdss_cti, _, _, _, _, _, _, _, _),
  1407. [79] = PINGROUP(79, i2chub0_se7, qdss_cti, _, _, _, _, _, _, _, _),
  1408. [80] = PINGROUP(80, i2chub0_se9, _, _, _, _, _, _, _, _, _),
  1409. [81] = PINGROUP(81, i2chub0_se9, _, _, _, _, _, _, _, _, _),
  1410. [82] = PINGROUP(82, qdss_cti, _, _, _, _, _, _, _, _, _),
  1411. [83] = PINGROUP(83, qdss_cti, _, _, _, _, _, _, _, _, _),
  1412. [84] = PINGROUP(84, _, _, _, _, _, _, _, _, _, _),
  1413. [85] = PINGROUP(85, _, _, _, _, _, _, _, _, _, _),
  1414. [86] = PINGROUP(86, mdp_vsync, mdp_vsync0_out, mdp_vsync1_out, gcc_gp1, _, _, _, _, _, _),
  1415. [87] = PINGROUP(87, mdp_vsync, mdp_vsync2_out, mdp_vsync3_out, gcc_gp2, _, _, _, _, _, _),
  1416. [88] = PINGROUP(88, mdp_vsync_e, gcc_gp3, _, _, _, _, _, _, _, _),
  1417. [89] = PINGROUP(89, usb1_hs, gnss_adc0, _, _, _, _, _, _, _, _),
  1418. [90] = PINGROUP(90, gnss_adc1, _, _, _, _, _, _, _, _, _),
  1419. [91] = PINGROUP(91, _, gnss_adc0, _, _, _, _, _, _, _, _),
  1420. [92] = PINGROUP(92, dbg_out_clk, gnss_adc1, _, _, _, _, _, _, _, _),
  1421. [93] = PINGROUP(93, sd_write_protect, _, _, _, _, _, _, _, _, _),
  1422. [94] = PINGROUP(94, cmu_rng, phase_flag, tmess_prng0, _, _, _, _, _, _, _),
  1423. [95] = PINGROUP(95, pcie0_clk_req_n, cmu_rng, phase_flag, tmess_prng1, _, _, _, _, _, _),
  1424. [96] = PINGROUP(96, cmu_rng, phase_flag, tmess_prng2, _, _, _, _, _, _, _),
  1425. [97] = PINGROUP(97, _, _, _, _, _, _, _, _, _, _),
  1426. [98] = PINGROUP(98, pcie1_clk_req_n, _, _, _, _, _, _, _, _, _),
  1427. [99] = PINGROUP(99, _, _, _, _, _, _, _, _, _, _),
  1428. [100] = PINGROUP(100, cam_mclk, qdss_gpio, _, _, _, _, _, _, _, _),
  1429. [101] = PINGROUP(101, cam_mclk, qdss_gpio, _, _, _, _, _, _, _, _),
  1430. [102] = PINGROUP(102, cam_aon_mclk2, qdss_gpio, _, _, _, _, _, _, _, _),
  1431. [103] = PINGROUP(103, cam_mclk, qdss_gpio, _, _, _, _, _, _, _, _),
  1432. [104] = PINGROUP(104, cam_aon_mclk4, qdss_gpio, _, _, _, _, _, _, _, _),
  1433. [105] = PINGROUP(105, cam_mclk, qdss_gpio, _, _, _, _, _, _, _, _),
  1434. [106] = PINGROUP(106, cam_mclk, pll_clk_aux, _, _, _, _, _, _, _, _),
  1435. [107] = PINGROUP(107, _, _, _, _, _, _, _, _, _, _),
  1436. [108] = PINGROUP(108, cam_mclk, _, _, _, _, _, _, _, _, _),
  1437. [109] = PINGROUP(109, cci_timer, phase_flag, tmess_prng3, _, _, _, _, _, _, _),
  1438. [110] = PINGROUP(110, cci_timer, _, _, _, _, _, _, _, _, _),
  1439. [111] = PINGROUP(111, cci_timer, phase_flag, _, _, _, _, _, _, _, _),
  1440. [112] = PINGROUP(112, cci_i2c_sda, cmu_rng, phase_flag, _, _, _, _, _, _, _),
  1441. [113] = PINGROUP(113, cci_i2c_sda, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
  1442. [114] = PINGROUP(114, cci_i2c_scl, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
  1443. [115] = PINGROUP(115, cci_i2c_sda, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
  1444. [116] = PINGROUP(116, cci_i2c_scl, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
  1445. [117] = PINGROUP(117, cci_i2c_sda, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
  1446. [118] = PINGROUP(118, cci_i2c_scl, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
  1447. [119] = PINGROUP(119, cci_i2c_sda, phase_flag, _, _, _, _, _, _, _, _),
  1448. [120] = PINGROUP(120, cci_i2c_scl, phase_flag, _, _, _, _, _, _, _, _),
  1449. [121] = PINGROUP(121, i2s1_sck, _, _, _, _, _, _, _, _, _),
  1450. [122] = PINGROUP(122, i2s1_data0, cmu_rng, _, _, _, _, _, _, _, _),
  1451. [123] = PINGROUP(123, i2s1_ws, _, _, _, _, _, _, _, _, _),
  1452. [124] = PINGROUP(124, i2s1_data1, audio_ext_mclk1, audio_ref_clk, _, _, _, _, _, _, _),
  1453. [125] = PINGROUP(125, audio_ext_mclk0, _, _, _, _, _, _, _, _, _),
  1454. [126] = PINGROUP(126, i2s0_sck, _, _, _, _, _, _, _, _, _),
  1455. [127] = PINGROUP(127, i2s0_data0, cmu_rng, _, _, _, _, _, _, _, _),
  1456. [128] = PINGROUP(128, i2s0_data1, cmu_rng, _, _, _, _, _, _, _, _),
  1457. [129] = PINGROUP(129, i2s0_ws, cmu_rng, _, _, _, _, _, _, _, _),
  1458. [130] = PINGROUP(130, uim0_data, atest_usb, atest_char, _, _, _, _, _, _, _),
  1459. [131] = PINGROUP(131, uim0_clk, atest_usb, atest_char, _, _, _, _, _, _, _),
  1460. [132] = PINGROUP(132, uim0_reset, atest_char, _, _, _, _, _, _, _, _),
  1461. [133] = PINGROUP(133, mdp_vsync, atest_char, _, _, _, _, _, _, _, _),
  1462. [134] = PINGROUP(134, uim1_data, do_not, qspi0, sdc40, gcc_gp1, _, _, _, _, _),
  1463. [135] = PINGROUP(135, uim1_clk, do_not, qspi_clk, sdc4_clk, gcc_gp2, _, _, _, _, _),
  1464. [136] = PINGROUP(136, uim1_reset, do_not, qspi1, sdc41, gcc_gp3, _, _, _, _, _),
  1465. [137] = PINGROUP(137, mdp_vsync, atest_char, _, _, _, _, _, _, _, _),
  1466. [138] = PINGROUP(138, _, _, _, _, _, _, _, _, _, _),
  1467. [139] = PINGROUP(139, _, _, _, _, _, _, _, _, _, _),
  1468. [140] = PINGROUP(140, _, _, qdss_gpio, _, _, _, _, _, _, _),
  1469. [141] = PINGROUP(141, _, _, qdss_gpio, _, _, _, _, _, _, _),
  1470. [142] = PINGROUP(142, _, _, qdss_gpio, _, _, _, _, _, _, _),
  1471. [143] = PINGROUP(143, _, _, qdss_gpio, _, _, _, _, _, _, _),
  1472. [144] = PINGROUP(144, _, qdss_gpio, _, _, _, _, _, _, _, _),
  1473. [145] = PINGROUP(145, _, qdss_gpio, _, _, _, _, _, _, _, _),
  1474. [146] = PINGROUP(146, _, qdss_gpio, _, _, _, _, _, _, _, _),
  1475. [147] = PINGROUP(147, _, qdss_gpio, _, _, _, _, _, _, _, _),
  1476. [148] = PINGROUP(148, coex_uart1_rx, qdss_gpio, _, _, _, _, _, _, _, _),
  1477. [149] = PINGROUP(149, coex_uart1_tx, qdss_gpio, _, _, _, _, _, _, _, _),
  1478. [150] = PINGROUP(150, _, vfr_0, coex_uart2_rx, qdss_gpio, _, _, _, _, _, _),
  1479. [151] = PINGROUP(151, _, coex_uart2_tx, qdss_gpio, _, _, _, _, _, _, _),
  1480. [152] = PINGROUP(152, nav_gpio2, _, qdss_gpio, _, _, _, _, _, _, _),
  1481. [153] = PINGROUP(153, cci_i2c_scl, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
  1482. [154] = PINGROUP(154, nav_gpio0, nav_gpio3, qdss_gpio, _, _, _, _, _, _, _),
  1483. [155] = PINGROUP(155, nav_gpio1, vfr_1, qdss_gpio, _, _, _, _, _, _, _),
  1484. [156] = PINGROUP(156, qlink_little_request, qdss_gpio, _, _, _, _, _, _, _, _),
  1485. [157] = PINGROUP(157, qlink_little_enable, qdss_gpio, _, _, _, _, _, _, _, _),
  1486. [158] = PINGROUP(158, qlink_wmss, qdss_gpio, _, _, _, _, _, _, _, _),
  1487. [159] = PINGROUP(159, qlink_big_request, qdss_cti, _, _, _, _, _, _, _, _),
  1488. [160] = PINGROUP(160, qlink_big_enable, _, _, _, _, _, _, _, _, _),
  1489. [161] = PINGROUP(161, _, _, _, _, _, _, _, _, _, _),
  1490. [162] = PINGROUP(162, qdss_cti, _, _, _, _, _, _, _, _, _),
  1491. [163] = PINGROUP(163, cci_async_in, phase_flag, _, _, _, _, _, _, _, _),
  1492. [164] = PINGROUP(164, cci_async_in, phase_flag, _, _, _, _, _, _, _, _),
  1493. [165] = PINGROUP(165, _, _, _, _, _, _, _, _, _, egpio),
  1494. [166] = PINGROUP(166, _, _, _, _, _, _, _, _, _, egpio),
  1495. [167] = PINGROUP(167, _, _, _, _, _, _, _, _, _, egpio),
  1496. [168] = PINGROUP(168, _, _, _, _, _, _, _, _, _, egpio),
  1497. [169] = PINGROUP(169, _, _, _, _, _, _, _, _, _, egpio),
  1498. [170] = PINGROUP(170, _, _, _, _, _, _, _, _, _, egpio),
  1499. [171] = PINGROUP(171, _, _, _, _, _, _, _, _, _, egpio),
  1500. [172] = PINGROUP(172, _, _, _, _, _, _, _, _, _, egpio),
  1501. [173] = PINGROUP(173, _, _, _, _, _, _, _, _, _, egpio),
  1502. [174] = PINGROUP(174, _, _, _, _, _, _, _, _, _, egpio),
  1503. [175] = PINGROUP(175, _, _, _, _, _, _, _, _, _, egpio),
  1504. [176] = PINGROUP(176, _, _, _, _, _, _, _, _, _, egpio),
  1505. [177] = PINGROUP(177, _, _, _, _, _, _, _, _, _, egpio),
  1506. [178] = PINGROUP(178, _, _, _, _, _, _, _, _, _, egpio),
  1507. [179] = PINGROUP(179, _, _, _, _, _, _, _, _, _, egpio),
  1508. [180] = PINGROUP(180, _, _, _, _, _, _, _, _, _, egpio),
  1509. [181] = PINGROUP(181, prng_rosc3, _, _, _, _, _, _, _, _, egpio),
  1510. [182] = PINGROUP(182, prng_rosc2, _, _, _, _, _, _, _, _, egpio),
  1511. [183] = PINGROUP(183, prng_rosc1, _, _, _, _, _, _, _, _, egpio),
  1512. [184] = PINGROUP(184, _, _, _, _, _, _, _, _, _, egpio),
  1513. [185] = PINGROUP(185, _, _, _, _, _, _, _, _, _, egpio),
  1514. [186] = PINGROUP(186, prng_rosc0, _, _, _, _, _, _, _, _, egpio),
  1515. [187] = PINGROUP(187, cri_trng, _, _, _, _, _, _, _, _, egpio),
  1516. [188] = PINGROUP(188, _, _, _, _, _, _, _, _, _, egpio),
  1517. [189] = PINGROUP(189, _, _, _, _, _, _, _, _, _, egpio),
  1518. [190] = PINGROUP(190, _, _, _, _, _, _, _, _, _, egpio),
  1519. [191] = PINGROUP(191, _, _, _, _, _, _, _, _, _, egpio),
  1520. [192] = PINGROUP(192, _, _, _, _, _, _, _, _, _, egpio),
  1521. [193] = PINGROUP(193, _, _, _, _, _, _, _, _, _, egpio),
  1522. [194] = PINGROUP(194, _, _, _, _, _, _, _, _, _, egpio),
  1523. [195] = PINGROUP(195, _, _, _, _, _, _, _, _, _, egpio),
  1524. [196] = PINGROUP(196, _, _, _, _, _, _, _, _, _, egpio),
  1525. [197] = PINGROUP(197, _, _, _, _, _, _, _, _, _, egpio),
  1526. [198] = PINGROUP(198, _, _, _, _, _, _, _, _, _, egpio),
  1527. [199] = PINGROUP(199, _, _, _, _, _, _, _, _, _, egpio),
  1528. [200] = PINGROUP(200, _, _, _, _, _, _, _, _, _, egpio),
  1529. [201] = PINGROUP(201, _, _, _, _, _, _, _, _, _, egpio),
  1530. [202] = PINGROUP(202, _, _, _, _, _, _, _, _, _, egpio),
  1531. [203] = PINGROUP(203, _, _, _, _, _, _, _, _, _, egpio),
  1532. [204] = PINGROUP(204, _, _, _, _, _, _, _, _, _, egpio),
  1533. [205] = PINGROUP(205, _, _, _, _, _, _, _, _, _, egpio),
  1534. [206] = PINGROUP(206, i2chub0_se8, _, _, _, _, _, _, _, _, egpio),
  1535. [207] = PINGROUP(207, i2chub0_se8, _, _, _, _, _, _, _, _, egpio),
  1536. [208] = PINGROUP(208, _, _, _, _, _, _, _, _, _, egpio),
  1537. [209] = PINGROUP(209, _, _, _, _, _, _, _, _, _, egpio),
  1538. [210] = UFS_RESET(ufs_reset, 0xde004, 0xdf000),
  1539. [211] = SDC_QDSD_PINGROUP(sdc2_clk, 0xd6000, 14, 6),
  1540. [212] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xd6000, 11, 3),
  1541. [213] = SDC_QDSD_PINGROUP(sdc2_data, 0xd6000, 9, 0),
  1542. };
  1543. static const struct msm_gpio_wakeirq_map sm8650_pdc_map[] = {
  1544. { 0, 94 }, { 3, 105 }, { 4, 78 }, { 7, 67 }, { 8, 64 },
  1545. { 11, 121 }, { 12, 71 }, { 15, 82 }, { 18, 75 }, { 19, 63 },
  1546. { 20, 114 }, { 23, 84 }, { 27, 61 }, { 29, 112 }, { 31, 113 },
  1547. { 32, 66 }, { 35, 52 }, { 36, 123 }, { 39, 56 }, { 43, 59 },
  1548. { 46, 79 }, { 47, 124 }, { 48, 125 }, { 51, 93 }, { 54, 60 },
  1549. { 55, 104 }, { 56, 72 }, { 57, 77 }, { 59, 51 }, { 63, 85 },
  1550. { 64, 107 }, { 65, 108 }, { 66, 109 }, { 67, 83 }, { 68, 110 },
  1551. { 69, 111 }, { 75, 96 }, { 76, 97 }, { 77, 98 }, { 80, 89 },
  1552. { 81, 90 }, { 84, 106 }, { 85, 100 }, { 86, 87 }, { 87, 88 },
  1553. { 88, 65 }, { 90, 92 }, { 92, 99 }, { 95, 118 }, { 96, 119 },
  1554. { 98, 101 }, { 99, 62 }, { 112, 120 }, { 133, 80 }, { 136, 69 },
  1555. { 137, 81 }, { 148, 57 }, { 150, 58 }, { 152, 127 }, { 153, 74 },
  1556. { 154, 126 }, { 155, 73 }, { 156, 128 }, { 159, 129 }, { 162, 86 },
  1557. { 163, 122 }, { 166, 139 }, { 169, 140 }, { 171, 141 }, { 172, 142 },
  1558. { 174, 102 }, { 176, 143 }, { 177, 55 }, { 181, 144 }, { 182, 145 },
  1559. { 185, 146 }, { 187, 95 }, { 188, 130 }, { 190, 131 }, { 191, 132 },
  1560. { 192, 133 }, { 193, 134 }, { 195, 68 }, { 196, 135 }, { 197, 136 },
  1561. { 198, 54 }, { 199, 103 }, { 200, 53 }, { 201, 137 }, { 202, 70 },
  1562. { 203, 138 }, { 204, 76 }, { 205, 91 },
  1563. };
  1564. static const struct msm_pinctrl_soc_data sm8650_tlmm = {
  1565. .pins = sm8650_pins,
  1566. .npins = ARRAY_SIZE(sm8650_pins),
  1567. .functions = sm8650_functions,
  1568. .nfunctions = ARRAY_SIZE(sm8650_functions),
  1569. .groups = sm8650_groups,
  1570. .ngroups = ARRAY_SIZE(sm8650_groups),
  1571. .ngpios = 211,
  1572. .wakeirq_map = sm8650_pdc_map,
  1573. .nwakeirq_map = ARRAY_SIZE(sm8650_pdc_map),
  1574. .egpio_func = 10,
  1575. };
  1576. static int sm8650_tlmm_probe(struct platform_device *pdev)
  1577. {
  1578. return msm_pinctrl_probe(pdev, &sm8650_tlmm);
  1579. }
  1580. static const struct of_device_id sm8650_tlmm_of_match[] = {
  1581. { .compatible = "qcom,sm8650-tlmm", },
  1582. {},
  1583. };
  1584. static struct platform_driver sm8650_tlmm_driver = {
  1585. .driver = {
  1586. .name = "sm8650-tlmm",
  1587. .of_match_table = sm8650_tlmm_of_match,
  1588. },
  1589. .probe = sm8650_tlmm_probe,
  1590. .remove_new = msm_pinctrl_remove,
  1591. };
  1592. static int __init sm8650_tlmm_init(void)
  1593. {
  1594. return platform_driver_register(&sm8650_tlmm_driver);
  1595. }
  1596. arch_initcall(sm8650_tlmm_init);
  1597. static void __exit sm8650_tlmm_exit(void)
  1598. {
  1599. platform_driver_unregister(&sm8650_tlmm_driver);
  1600. }
  1601. module_exit(sm8650_tlmm_exit);
  1602. MODULE_DESCRIPTION("QTI SM8650 TLMM driver");
  1603. MODULE_LICENSE("GPL");
  1604. MODULE_DEVICE_TABLE(of, sm8650_tlmm_of_match);