pinctrl-cliffs.c 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302
  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 = 8, \
  40. .intr_wakeup_enable_bit = 7, \
  41. .intr_wakeup_present_bit = 6, \
  42. .intr_target_kpss_val = 3, \
  43. .intr_raw_status_bit = 4, \
  44. .intr_polarity_bit = 1, \
  45. .intr_detection_bit = 2, \
  46. .intr_detection_width = 2, \
  47. .wake_reg = REG_BASE + wake_off, \
  48. .wake_bit = bit, \
  49. .funcs = (int[]){ \
  50. msm_mux_gpio, /* gpio mode */ \
  51. msm_mux_##f1, \
  52. msm_mux_##f2, \
  53. msm_mux_##f3, \
  54. msm_mux_##f4, \
  55. msm_mux_##f5, \
  56. msm_mux_##f6, \
  57. msm_mux_##f7, \
  58. msm_mux_##f8, \
  59. msm_mux_##f9, \
  60. msm_mux_##f10, \
  61. msm_mux_##f11 /* egpio mode */ \
  62. }, \
  63. .nfuncs = 12, \
  64. }
  65. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  66. { \
  67. .name = #pg_name, \
  68. .pins = pg_name##_pins, \
  69. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  70. .ctl_reg = ctl, \
  71. .io_reg = 0, \
  72. .intr_cfg_reg = 0, \
  73. .intr_status_reg = 0, \
  74. .intr_target_reg = 0, \
  75. .mux_bit = -1, \
  76. .pull_bit = pull, \
  77. .drv_bit = drv, \
  78. .oe_bit = -1, \
  79. .in_bit = -1, \
  80. .out_bit = -1, \
  81. .intr_enable_bit = -1, \
  82. .intr_status_bit = -1, \
  83. .intr_target_bit = -1, \
  84. .intr_raw_status_bit = -1, \
  85. .intr_polarity_bit = -1, \
  86. .intr_detection_bit = -1, \
  87. .intr_detection_width = -1, \
  88. }
  89. #define UFS_RESET(pg_name, offset, io) \
  90. { \
  91. .name = #pg_name, \
  92. .pins = pg_name##_pins, \
  93. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  94. .ctl_reg = offset, \
  95. .io_reg = io, \
  96. .intr_cfg_reg = 0, \
  97. .intr_status_reg = 0, \
  98. .intr_target_reg = 0, \
  99. .mux_bit = -1, \
  100. .pull_bit = 3, \
  101. .drv_bit = 0, \
  102. .oe_bit = -1, \
  103. .in_bit = -1, \
  104. .out_bit = 0, \
  105. .intr_enable_bit = -1, \
  106. .intr_status_bit = -1, \
  107. .intr_target_bit = -1, \
  108. .intr_raw_status_bit = -1, \
  109. .intr_polarity_bit = -1, \
  110. .intr_detection_bit = -1, \
  111. .intr_detection_width = -1, \
  112. }
  113. #define QUP_I3C(qup_mode, qup_offset) \
  114. { \
  115. .mode = qup_mode, \
  116. .offset = REG_BASE + qup_offset, \
  117. }
  118. #define QUP_1_I3C_0_MODE_OFFSET 0xC7000
  119. #define QUP_0_I3C_1_MODE_OFFSET 0xC8000
  120. #define QUP_0_I3C_4_MODE_OFFSET 0xC9000
  121. #define QUP_0_I3C_6_MODE_OFFSET 0xCA000
  122. #define QUP_1_I3C_1_MODE_OFFSET 0xCB000
  123. static const struct pinctrl_pin_desc cliffs_pins[] = {
  124. PINCTRL_PIN(0, "GPIO_0"),
  125. PINCTRL_PIN(1, "GPIO_1"),
  126. PINCTRL_PIN(2, "GPIO_2"),
  127. PINCTRL_PIN(3, "GPIO_3"),
  128. PINCTRL_PIN(4, "GPIO_4"),
  129. PINCTRL_PIN(5, "GPIO_5"),
  130. PINCTRL_PIN(6, "GPIO_6"),
  131. PINCTRL_PIN(7, "GPIO_7"),
  132. PINCTRL_PIN(8, "GPIO_8"),
  133. PINCTRL_PIN(9, "GPIO_9"),
  134. PINCTRL_PIN(10, "GPIO_10"),
  135. PINCTRL_PIN(11, "GPIO_11"),
  136. PINCTRL_PIN(12, "GPIO_12"),
  137. PINCTRL_PIN(13, "GPIO_13"),
  138. PINCTRL_PIN(14, "GPIO_14"),
  139. PINCTRL_PIN(15, "GPIO_15"),
  140. PINCTRL_PIN(16, "GPIO_16"),
  141. PINCTRL_PIN(17, "GPIO_17"),
  142. PINCTRL_PIN(18, "GPIO_18"),
  143. PINCTRL_PIN(19, "GPIO_19"),
  144. PINCTRL_PIN(20, "GPIO_20"),
  145. PINCTRL_PIN(21, "GPIO_21"),
  146. PINCTRL_PIN(22, "GPIO_22"),
  147. PINCTRL_PIN(23, "GPIO_23"),
  148. PINCTRL_PIN(24, "GPIO_24"),
  149. PINCTRL_PIN(25, "GPIO_25"),
  150. PINCTRL_PIN(26, "GPIO_26"),
  151. PINCTRL_PIN(27, "GPIO_27"),
  152. PINCTRL_PIN(28, "GPIO_28"),
  153. PINCTRL_PIN(29, "GPIO_29"),
  154. PINCTRL_PIN(30, "GPIO_30"),
  155. PINCTRL_PIN(31, "GPIO_31"),
  156. PINCTRL_PIN(32, "GPIO_32"),
  157. PINCTRL_PIN(33, "GPIO_33"),
  158. PINCTRL_PIN(34, "GPIO_34"),
  159. PINCTRL_PIN(35, "GPIO_35"),
  160. PINCTRL_PIN(36, "GPIO_36"),
  161. PINCTRL_PIN(37, "GPIO_37"),
  162. PINCTRL_PIN(38, "GPIO_38"),
  163. PINCTRL_PIN(39, "GPIO_39"),
  164. PINCTRL_PIN(40, "GPIO_40"),
  165. PINCTRL_PIN(41, "GPIO_41"),
  166. PINCTRL_PIN(42, "GPIO_42"),
  167. PINCTRL_PIN(43, "GPIO_43"),
  168. PINCTRL_PIN(44, "GPIO_44"),
  169. PINCTRL_PIN(45, "GPIO_45"),
  170. PINCTRL_PIN(46, "GPIO_46"),
  171. PINCTRL_PIN(47, "GPIO_47"),
  172. PINCTRL_PIN(48, "GPIO_48"),
  173. PINCTRL_PIN(49, "GPIO_49"),
  174. PINCTRL_PIN(50, "GPIO_50"),
  175. PINCTRL_PIN(51, "GPIO_51"),
  176. PINCTRL_PIN(52, "GPIO_52"),
  177. PINCTRL_PIN(53, "GPIO_53"),
  178. PINCTRL_PIN(54, "GPIO_54"),
  179. PINCTRL_PIN(55, "GPIO_55"),
  180. PINCTRL_PIN(56, "GPIO_56"),
  181. PINCTRL_PIN(57, "GPIO_57"),
  182. PINCTRL_PIN(58, "GPIO_58"),
  183. PINCTRL_PIN(59, "GPIO_59"),
  184. PINCTRL_PIN(60, "GPIO_60"),
  185. PINCTRL_PIN(61, "GPIO_61"),
  186. PINCTRL_PIN(62, "GPIO_62"),
  187. PINCTRL_PIN(63, "GPIO_63"),
  188. PINCTRL_PIN(64, "GPIO_64"),
  189. PINCTRL_PIN(65, "GPIO_65"),
  190. PINCTRL_PIN(66, "GPIO_66"),
  191. PINCTRL_PIN(67, "GPIO_67"),
  192. PINCTRL_PIN(68, "GPIO_68"),
  193. PINCTRL_PIN(69, "GPIO_69"),
  194. PINCTRL_PIN(70, "GPIO_70"),
  195. PINCTRL_PIN(71, "GPIO_71"),
  196. PINCTRL_PIN(72, "GPIO_72"),
  197. PINCTRL_PIN(73, "GPIO_73"),
  198. PINCTRL_PIN(74, "GPIO_74"),
  199. PINCTRL_PIN(75, "GPIO_75"),
  200. PINCTRL_PIN(76, "GPIO_76"),
  201. PINCTRL_PIN(77, "GPIO_77"),
  202. PINCTRL_PIN(78, "GPIO_78"),
  203. PINCTRL_PIN(79, "GPIO_79"),
  204. PINCTRL_PIN(80, "GPIO_80"),
  205. PINCTRL_PIN(81, "GPIO_81"),
  206. PINCTRL_PIN(82, "GPIO_82"),
  207. PINCTRL_PIN(83, "GPIO_83"),
  208. PINCTRL_PIN(84, "GPIO_84"),
  209. PINCTRL_PIN(85, "GPIO_85"),
  210. PINCTRL_PIN(86, "GPIO_86"),
  211. PINCTRL_PIN(87, "GPIO_87"),
  212. PINCTRL_PIN(88, "GPIO_88"),
  213. PINCTRL_PIN(89, "GPIO_89"),
  214. PINCTRL_PIN(90, "GPIO_90"),
  215. PINCTRL_PIN(91, "GPIO_91"),
  216. PINCTRL_PIN(92, "GPIO_92"),
  217. PINCTRL_PIN(93, "GPIO_93"),
  218. PINCTRL_PIN(94, "GPIO_94"),
  219. PINCTRL_PIN(95, "GPIO_95"),
  220. PINCTRL_PIN(96, "GPIO_96"),
  221. PINCTRL_PIN(97, "GPIO_97"),
  222. PINCTRL_PIN(98, "GPIO_98"),
  223. PINCTRL_PIN(99, "GPIO_99"),
  224. PINCTRL_PIN(100, "GPIO_100"),
  225. PINCTRL_PIN(101, "GPIO_101"),
  226. PINCTRL_PIN(102, "GPIO_102"),
  227. PINCTRL_PIN(103, "GPIO_103"),
  228. PINCTRL_PIN(104, "GPIO_104"),
  229. PINCTRL_PIN(105, "GPIO_105"),
  230. PINCTRL_PIN(106, "GPIO_106"),
  231. PINCTRL_PIN(107, "GPIO_107"),
  232. PINCTRL_PIN(108, "GPIO_108"),
  233. PINCTRL_PIN(109, "GPIO_109"),
  234. PINCTRL_PIN(110, "GPIO_110"),
  235. PINCTRL_PIN(111, "GPIO_111"),
  236. PINCTRL_PIN(112, "GPIO_112"),
  237. PINCTRL_PIN(113, "GPIO_113"),
  238. PINCTRL_PIN(114, "GPIO_114"),
  239. PINCTRL_PIN(115, "GPIO_115"),
  240. PINCTRL_PIN(116, "GPIO_116"),
  241. PINCTRL_PIN(117, "GPIO_117"),
  242. PINCTRL_PIN(118, "GPIO_118"),
  243. PINCTRL_PIN(119, "GPIO_119"),
  244. PINCTRL_PIN(120, "GPIO_120"),
  245. PINCTRL_PIN(121, "GPIO_121"),
  246. PINCTRL_PIN(122, "GPIO_122"),
  247. PINCTRL_PIN(123, "GPIO_123"),
  248. PINCTRL_PIN(124, "GPIO_124"),
  249. PINCTRL_PIN(125, "GPIO_125"),
  250. PINCTRL_PIN(126, "GPIO_126"),
  251. PINCTRL_PIN(127, "GPIO_127"),
  252. PINCTRL_PIN(128, "GPIO_128"),
  253. PINCTRL_PIN(129, "GPIO_129"),
  254. PINCTRL_PIN(130, "GPIO_130"),
  255. PINCTRL_PIN(131, "GPIO_131"),
  256. PINCTRL_PIN(132, "GPIO_132"),
  257. PINCTRL_PIN(133, "GPIO_133"),
  258. PINCTRL_PIN(134, "GPIO_134"),
  259. PINCTRL_PIN(135, "GPIO_135"),
  260. PINCTRL_PIN(136, "GPIO_136"),
  261. PINCTRL_PIN(137, "GPIO_137"),
  262. PINCTRL_PIN(138, "GPIO_138"),
  263. PINCTRL_PIN(139, "GPIO_139"),
  264. PINCTRL_PIN(140, "GPIO_140"),
  265. PINCTRL_PIN(141, "GPIO_141"),
  266. PINCTRL_PIN(142, "GPIO_142"),
  267. PINCTRL_PIN(143, "GPIO_143"),
  268. PINCTRL_PIN(144, "GPIO_144"),
  269. PINCTRL_PIN(145, "GPIO_145"),
  270. PINCTRL_PIN(146, "GPIO_146"),
  271. PINCTRL_PIN(147, "GPIO_147"),
  272. PINCTRL_PIN(148, "GPIO_148"),
  273. PINCTRL_PIN(149, "GPIO_149"),
  274. PINCTRL_PIN(150, "GPIO_150"),
  275. PINCTRL_PIN(151, "GPIO_151"),
  276. PINCTRL_PIN(152, "GPIO_152"),
  277. PINCTRL_PIN(153, "GPIO_153"),
  278. PINCTRL_PIN(154, "GPIO_154"),
  279. PINCTRL_PIN(155, "GPIO_155"),
  280. PINCTRL_PIN(156, "GPIO_156"),
  281. PINCTRL_PIN(157, "GPIO_157"),
  282. PINCTRL_PIN(158, "GPIO_158"),
  283. PINCTRL_PIN(159, "GPIO_159"),
  284. PINCTRL_PIN(160, "GPIO_160"),
  285. PINCTRL_PIN(161, "GPIO_161"),
  286. PINCTRL_PIN(162, "GPIO_162"),
  287. PINCTRL_PIN(163, "GPIO_163"),
  288. PINCTRL_PIN(164, "GPIO_164"),
  289. PINCTRL_PIN(165, "GPIO_165"),
  290. PINCTRL_PIN(166, "GPIO_166"),
  291. PINCTRL_PIN(167, "GPIO_167"),
  292. PINCTRL_PIN(168, "GPIO_168"),
  293. PINCTRL_PIN(169, "GPIO_169"),
  294. PINCTRL_PIN(170, "GPIO_170"),
  295. PINCTRL_PIN(171, "GPIO_171"),
  296. PINCTRL_PIN(172, "GPIO_172"),
  297. PINCTRL_PIN(173, "GPIO_173"),
  298. PINCTRL_PIN(174, "GPIO_174"),
  299. PINCTRL_PIN(175, "GPIO_175"),
  300. PINCTRL_PIN(176, "GPIO_176"),
  301. PINCTRL_PIN(177, "GPIO_177"),
  302. PINCTRL_PIN(178, "UFS_RESET"),
  303. };
  304. #define DECLARE_MSM_GPIO_PINS(pin) \
  305. static const unsigned int gpio##pin##_pins[] = { pin }
  306. DECLARE_MSM_GPIO_PINS(0);
  307. DECLARE_MSM_GPIO_PINS(1);
  308. DECLARE_MSM_GPIO_PINS(2);
  309. DECLARE_MSM_GPIO_PINS(3);
  310. DECLARE_MSM_GPIO_PINS(4);
  311. DECLARE_MSM_GPIO_PINS(5);
  312. DECLARE_MSM_GPIO_PINS(6);
  313. DECLARE_MSM_GPIO_PINS(7);
  314. DECLARE_MSM_GPIO_PINS(8);
  315. DECLARE_MSM_GPIO_PINS(9);
  316. DECLARE_MSM_GPIO_PINS(10);
  317. DECLARE_MSM_GPIO_PINS(11);
  318. DECLARE_MSM_GPIO_PINS(12);
  319. DECLARE_MSM_GPIO_PINS(13);
  320. DECLARE_MSM_GPIO_PINS(14);
  321. DECLARE_MSM_GPIO_PINS(15);
  322. DECLARE_MSM_GPIO_PINS(16);
  323. DECLARE_MSM_GPIO_PINS(17);
  324. DECLARE_MSM_GPIO_PINS(18);
  325. DECLARE_MSM_GPIO_PINS(19);
  326. DECLARE_MSM_GPIO_PINS(20);
  327. DECLARE_MSM_GPIO_PINS(21);
  328. DECLARE_MSM_GPIO_PINS(22);
  329. DECLARE_MSM_GPIO_PINS(23);
  330. DECLARE_MSM_GPIO_PINS(24);
  331. DECLARE_MSM_GPIO_PINS(25);
  332. DECLARE_MSM_GPIO_PINS(26);
  333. DECLARE_MSM_GPIO_PINS(27);
  334. DECLARE_MSM_GPIO_PINS(28);
  335. DECLARE_MSM_GPIO_PINS(29);
  336. DECLARE_MSM_GPIO_PINS(30);
  337. DECLARE_MSM_GPIO_PINS(31);
  338. DECLARE_MSM_GPIO_PINS(32);
  339. DECLARE_MSM_GPIO_PINS(33);
  340. DECLARE_MSM_GPIO_PINS(34);
  341. DECLARE_MSM_GPIO_PINS(35);
  342. DECLARE_MSM_GPIO_PINS(36);
  343. DECLARE_MSM_GPIO_PINS(37);
  344. DECLARE_MSM_GPIO_PINS(38);
  345. DECLARE_MSM_GPIO_PINS(39);
  346. DECLARE_MSM_GPIO_PINS(40);
  347. DECLARE_MSM_GPIO_PINS(41);
  348. DECLARE_MSM_GPIO_PINS(42);
  349. DECLARE_MSM_GPIO_PINS(43);
  350. DECLARE_MSM_GPIO_PINS(44);
  351. DECLARE_MSM_GPIO_PINS(45);
  352. DECLARE_MSM_GPIO_PINS(46);
  353. DECLARE_MSM_GPIO_PINS(47);
  354. DECLARE_MSM_GPIO_PINS(48);
  355. DECLARE_MSM_GPIO_PINS(49);
  356. DECLARE_MSM_GPIO_PINS(50);
  357. DECLARE_MSM_GPIO_PINS(51);
  358. DECLARE_MSM_GPIO_PINS(52);
  359. DECLARE_MSM_GPIO_PINS(53);
  360. DECLARE_MSM_GPIO_PINS(54);
  361. DECLARE_MSM_GPIO_PINS(55);
  362. DECLARE_MSM_GPIO_PINS(56);
  363. DECLARE_MSM_GPIO_PINS(57);
  364. DECLARE_MSM_GPIO_PINS(58);
  365. DECLARE_MSM_GPIO_PINS(59);
  366. DECLARE_MSM_GPIO_PINS(60);
  367. DECLARE_MSM_GPIO_PINS(61);
  368. DECLARE_MSM_GPIO_PINS(62);
  369. DECLARE_MSM_GPIO_PINS(63);
  370. DECLARE_MSM_GPIO_PINS(64);
  371. DECLARE_MSM_GPIO_PINS(65);
  372. DECLARE_MSM_GPIO_PINS(66);
  373. DECLARE_MSM_GPIO_PINS(67);
  374. DECLARE_MSM_GPIO_PINS(68);
  375. DECLARE_MSM_GPIO_PINS(69);
  376. DECLARE_MSM_GPIO_PINS(70);
  377. DECLARE_MSM_GPIO_PINS(71);
  378. DECLARE_MSM_GPIO_PINS(72);
  379. DECLARE_MSM_GPIO_PINS(73);
  380. DECLARE_MSM_GPIO_PINS(74);
  381. DECLARE_MSM_GPIO_PINS(75);
  382. DECLARE_MSM_GPIO_PINS(76);
  383. DECLARE_MSM_GPIO_PINS(77);
  384. DECLARE_MSM_GPIO_PINS(78);
  385. DECLARE_MSM_GPIO_PINS(79);
  386. DECLARE_MSM_GPIO_PINS(80);
  387. DECLARE_MSM_GPIO_PINS(81);
  388. DECLARE_MSM_GPIO_PINS(82);
  389. DECLARE_MSM_GPIO_PINS(83);
  390. DECLARE_MSM_GPIO_PINS(84);
  391. DECLARE_MSM_GPIO_PINS(85);
  392. DECLARE_MSM_GPIO_PINS(86);
  393. DECLARE_MSM_GPIO_PINS(87);
  394. DECLARE_MSM_GPIO_PINS(88);
  395. DECLARE_MSM_GPIO_PINS(89);
  396. DECLARE_MSM_GPIO_PINS(90);
  397. DECLARE_MSM_GPIO_PINS(91);
  398. DECLARE_MSM_GPIO_PINS(92);
  399. DECLARE_MSM_GPIO_PINS(93);
  400. DECLARE_MSM_GPIO_PINS(94);
  401. DECLARE_MSM_GPIO_PINS(95);
  402. DECLARE_MSM_GPIO_PINS(96);
  403. DECLARE_MSM_GPIO_PINS(97);
  404. DECLARE_MSM_GPIO_PINS(98);
  405. DECLARE_MSM_GPIO_PINS(99);
  406. DECLARE_MSM_GPIO_PINS(100);
  407. DECLARE_MSM_GPIO_PINS(101);
  408. DECLARE_MSM_GPIO_PINS(102);
  409. DECLARE_MSM_GPIO_PINS(103);
  410. DECLARE_MSM_GPIO_PINS(104);
  411. DECLARE_MSM_GPIO_PINS(105);
  412. DECLARE_MSM_GPIO_PINS(106);
  413. DECLARE_MSM_GPIO_PINS(107);
  414. DECLARE_MSM_GPIO_PINS(108);
  415. DECLARE_MSM_GPIO_PINS(109);
  416. DECLARE_MSM_GPIO_PINS(110);
  417. DECLARE_MSM_GPIO_PINS(111);
  418. DECLARE_MSM_GPIO_PINS(112);
  419. DECLARE_MSM_GPIO_PINS(113);
  420. DECLARE_MSM_GPIO_PINS(114);
  421. DECLARE_MSM_GPIO_PINS(115);
  422. DECLARE_MSM_GPIO_PINS(116);
  423. DECLARE_MSM_GPIO_PINS(117);
  424. DECLARE_MSM_GPIO_PINS(118);
  425. DECLARE_MSM_GPIO_PINS(119);
  426. DECLARE_MSM_GPIO_PINS(120);
  427. DECLARE_MSM_GPIO_PINS(121);
  428. DECLARE_MSM_GPIO_PINS(122);
  429. DECLARE_MSM_GPIO_PINS(123);
  430. DECLARE_MSM_GPIO_PINS(124);
  431. DECLARE_MSM_GPIO_PINS(125);
  432. DECLARE_MSM_GPIO_PINS(126);
  433. DECLARE_MSM_GPIO_PINS(127);
  434. DECLARE_MSM_GPIO_PINS(128);
  435. DECLARE_MSM_GPIO_PINS(129);
  436. DECLARE_MSM_GPIO_PINS(130);
  437. DECLARE_MSM_GPIO_PINS(131);
  438. DECLARE_MSM_GPIO_PINS(132);
  439. DECLARE_MSM_GPIO_PINS(133);
  440. DECLARE_MSM_GPIO_PINS(134);
  441. DECLARE_MSM_GPIO_PINS(135);
  442. DECLARE_MSM_GPIO_PINS(136);
  443. DECLARE_MSM_GPIO_PINS(137);
  444. DECLARE_MSM_GPIO_PINS(138);
  445. DECLARE_MSM_GPIO_PINS(139);
  446. DECLARE_MSM_GPIO_PINS(140);
  447. DECLARE_MSM_GPIO_PINS(141);
  448. DECLARE_MSM_GPIO_PINS(142);
  449. DECLARE_MSM_GPIO_PINS(143);
  450. DECLARE_MSM_GPIO_PINS(144);
  451. DECLARE_MSM_GPIO_PINS(145);
  452. DECLARE_MSM_GPIO_PINS(146);
  453. DECLARE_MSM_GPIO_PINS(147);
  454. DECLARE_MSM_GPIO_PINS(148);
  455. DECLARE_MSM_GPIO_PINS(149);
  456. DECLARE_MSM_GPIO_PINS(150);
  457. DECLARE_MSM_GPIO_PINS(151);
  458. DECLARE_MSM_GPIO_PINS(152);
  459. DECLARE_MSM_GPIO_PINS(153);
  460. DECLARE_MSM_GPIO_PINS(154);
  461. DECLARE_MSM_GPIO_PINS(155);
  462. DECLARE_MSM_GPIO_PINS(156);
  463. DECLARE_MSM_GPIO_PINS(157);
  464. DECLARE_MSM_GPIO_PINS(158);
  465. DECLARE_MSM_GPIO_PINS(159);
  466. DECLARE_MSM_GPIO_PINS(160);
  467. DECLARE_MSM_GPIO_PINS(161);
  468. DECLARE_MSM_GPIO_PINS(162);
  469. DECLARE_MSM_GPIO_PINS(163);
  470. DECLARE_MSM_GPIO_PINS(164);
  471. DECLARE_MSM_GPIO_PINS(165);
  472. DECLARE_MSM_GPIO_PINS(166);
  473. DECLARE_MSM_GPIO_PINS(167);
  474. DECLARE_MSM_GPIO_PINS(168);
  475. DECLARE_MSM_GPIO_PINS(169);
  476. DECLARE_MSM_GPIO_PINS(170);
  477. DECLARE_MSM_GPIO_PINS(171);
  478. DECLARE_MSM_GPIO_PINS(172);
  479. DECLARE_MSM_GPIO_PINS(173);
  480. DECLARE_MSM_GPIO_PINS(174);
  481. DECLARE_MSM_GPIO_PINS(175);
  482. DECLARE_MSM_GPIO_PINS(176);
  483. DECLARE_MSM_GPIO_PINS(177);
  484. static const unsigned int ufs_reset_pins[] = { 178 };
  485. enum cliffs_functions {
  486. msm_mux_gpio,
  487. msm_mux_HOST2WLAN_SOL,
  488. msm_mux_RESOUT_GPIO_N,
  489. msm_mux_aoss_cti,
  490. msm_mux_atest_char0,
  491. msm_mux_atest_char1,
  492. msm_mux_atest_char2,
  493. msm_mux_atest_char3,
  494. msm_mux_atest_char_start,
  495. msm_mux_atest_usb0,
  496. msm_mux_atest_usb00,
  497. msm_mux_atest_usb01,
  498. msm_mux_atest_usb02,
  499. msm_mux_atest_usb03,
  500. msm_mux_audio_ext_mclk0,
  501. msm_mux_audio_ext_mclk1,
  502. msm_mux_audio_ref_clk,
  503. msm_mux_cam_aon_mclk4,
  504. msm_mux_cam_mclk,
  505. msm_mux_cci_async_in0,
  506. msm_mux_cci_async_in1,
  507. msm_mux_cci_async_in2,
  508. msm_mux_cci_i2c_scl0,
  509. msm_mux_cci_i2c_scl1,
  510. msm_mux_cci_i2c_scl2,
  511. msm_mux_cci_i2c_scl3,
  512. msm_mux_cci_i2c_sda0,
  513. msm_mux_cci_i2c_sda1,
  514. msm_mux_cci_i2c_sda2,
  515. msm_mux_cci_i2c_sda3,
  516. msm_mux_cci_timer0,
  517. msm_mux_cci_timer1,
  518. msm_mux_cci_timer2,
  519. msm_mux_cci_timer3,
  520. msm_mux_cci_timer4,
  521. msm_mux_coex_uart1_rx,
  522. msm_mux_coex_uart1_tx,
  523. msm_mux_coex_uart2_rx,
  524. msm_mux_coex_uart2_tx,
  525. msm_mux_cri_trng,
  526. msm_mux_cri_trng0,
  527. msm_mux_cri_trng1,
  528. msm_mux_dbg_out_clk,
  529. msm_mux_ddr_bist_complete,
  530. msm_mux_ddr_bist_fail,
  531. msm_mux_ddr_bist_start,
  532. msm_mux_ddr_bist_stop,
  533. msm_mux_ddr_pxi0,
  534. msm_mux_ddr_pxi1,
  535. msm_mux_ddr_pxi2,
  536. msm_mux_ddr_pxi3,
  537. msm_mux_dp0_hot,
  538. msm_mux_egpio,
  539. msm_mux_gcc_gp1,
  540. msm_mux_gcc_gp2,
  541. msm_mux_gcc_gp3,
  542. msm_mux_gnss_adc0,
  543. msm_mux_gnss_adc1,
  544. msm_mux_i2s0_data0,
  545. msm_mux_i2s0_data1,
  546. msm_mux_i2s0_sck,
  547. msm_mux_i2s0_ws,
  548. msm_mux_i2s1_data0,
  549. msm_mux_i2s1_data1,
  550. msm_mux_i2s1_sck,
  551. msm_mux_i2s1_ws,
  552. msm_mux_ibi_i3c,
  553. msm_mux_jitter_bist,
  554. msm_mux_mdp_vsync0_out,
  555. msm_mux_mdp_vsync1_out,
  556. msm_mux_mdp_vsync2_out,
  557. msm_mux_mdp_vsync3_out,
  558. msm_mux_mdp_vsync_e,
  559. msm_mux_mdp_vsync_p,
  560. msm_mux_mdp_vsync_s,
  561. msm_mux_nav_gpio0,
  562. msm_mux_nav_gpio1,
  563. msm_mux_nav_gpio2,
  564. msm_mux_nav_gpio3,
  565. msm_mux_pcie0_clk_req_n,
  566. msm_mux_phase_flag0,
  567. msm_mux_phase_flag1,
  568. msm_mux_phase_flag10,
  569. msm_mux_phase_flag11,
  570. msm_mux_phase_flag12,
  571. msm_mux_phase_flag13,
  572. msm_mux_phase_flag14,
  573. msm_mux_phase_flag15,
  574. msm_mux_phase_flag16,
  575. msm_mux_phase_flag17,
  576. msm_mux_phase_flag18,
  577. msm_mux_phase_flag19,
  578. msm_mux_phase_flag2,
  579. msm_mux_phase_flag20,
  580. msm_mux_phase_flag21,
  581. msm_mux_phase_flag22,
  582. msm_mux_phase_flag23,
  583. msm_mux_phase_flag24,
  584. msm_mux_phase_flag25,
  585. msm_mux_phase_flag26,
  586. msm_mux_phase_flag27,
  587. msm_mux_phase_flag28,
  588. msm_mux_phase_flag29,
  589. msm_mux_phase_flag3,
  590. msm_mux_phase_flag30,
  591. msm_mux_phase_flag31,
  592. msm_mux_phase_flag4,
  593. msm_mux_phase_flag5,
  594. msm_mux_phase_flag6,
  595. msm_mux_phase_flag7,
  596. msm_mux_phase_flag8,
  597. msm_mux_phase_flag9,
  598. msm_mux_pll_bist_sync,
  599. msm_mux_pll_clk_aux,
  600. msm_mux_prng_rosc0,
  601. msm_mux_prng_rosc1,
  602. msm_mux_prng_rosc2,
  603. msm_mux_prng_rosc3,
  604. msm_mux_qdss_cti,
  605. msm_mux_qdss_gpio,
  606. msm_mux_qdss_gpio0,
  607. msm_mux_qdss_gpio1,
  608. msm_mux_qdss_gpio10,
  609. msm_mux_qdss_gpio11,
  610. msm_mux_qdss_gpio12,
  611. msm_mux_qdss_gpio13,
  612. msm_mux_qdss_gpio14,
  613. msm_mux_qdss_gpio15,
  614. msm_mux_qdss_gpio2,
  615. msm_mux_qdss_gpio3,
  616. msm_mux_qdss_gpio4,
  617. msm_mux_qdss_gpio5,
  618. msm_mux_qdss_gpio6,
  619. msm_mux_qdss_gpio7,
  620. msm_mux_qdss_gpio8,
  621. msm_mux_qdss_gpio9,
  622. msm_mux_qlink_big_enable,
  623. msm_mux_qlink_big_request,
  624. msm_mux_qlink_little_enable,
  625. msm_mux_qlink_little_request,
  626. msm_mux_qlink_wmss,
  627. msm_mux_qspi0_clk,
  628. msm_mux_qspi0_cs0_n,
  629. msm_mux_qspi0_cs1_n,
  630. msm_mux_qspi0_data0,
  631. msm_mux_qspi0_data1,
  632. msm_mux_qspi0_data2,
  633. msm_mux_qspi0_data3,
  634. msm_mux_qup0_se0_l0,
  635. msm_mux_qup0_se0_l1,
  636. msm_mux_qup0_se0_l2,
  637. msm_mux_qup0_se0_l3,
  638. msm_mux_qup0_se1_l0,
  639. msm_mux_qup0_se1_l1,
  640. msm_mux_qup0_se1_l2,
  641. msm_mux_qup0_se1_l3,
  642. msm_mux_qup0_se1_l4,
  643. msm_mux_qup0_se1_l5,
  644. msm_mux_qup0_se1_l6,
  645. msm_mux_qup0_se2_l0,
  646. msm_mux_qup0_se2_l1,
  647. msm_mux_qup0_se2_l2,
  648. msm_mux_qup0_se2_l3,
  649. msm_mux_qup0_se2_l4,
  650. msm_mux_qup0_se2_l5,
  651. msm_mux_qup0_se2_l6,
  652. msm_mux_qup0_se3_l0,
  653. msm_mux_qup0_se3_l1,
  654. msm_mux_qup0_se3_l2,
  655. msm_mux_qup0_se3_l3,
  656. msm_mux_qup0_se4_l0,
  657. msm_mux_qup0_se4_l1,
  658. msm_mux_qup0_se4_l2,
  659. msm_mux_qup0_se4_l3,
  660. msm_mux_qup0_se5_l0,
  661. msm_mux_qup0_se5_l1,
  662. msm_mux_qup0_se5_l2,
  663. msm_mux_qup0_se5_l3,
  664. msm_mux_qup0_se6_l0,
  665. msm_mux_qup0_se6_l1,
  666. msm_mux_qup0_se6_l2,
  667. msm_mux_qup0_se6_l3,
  668. msm_mux_qup0_se7_l0,
  669. msm_mux_qup0_se7_l1,
  670. msm_mux_qup0_se7_l2,
  671. msm_mux_qup0_se7_l3,
  672. msm_mux_qup1_se0_l0,
  673. msm_mux_qup1_se0_l1,
  674. msm_mux_qup1_se0_l2,
  675. msm_mux_qup1_se0_l3,
  676. msm_mux_qup1_se1_l0,
  677. msm_mux_qup1_se1_l1,
  678. msm_mux_qup1_se1_l2,
  679. msm_mux_qup1_se1_l3,
  680. msm_mux_qup1_se2_l0,
  681. msm_mux_qup1_se2_l1,
  682. msm_mux_qup1_se2_l2,
  683. msm_mux_qup1_se2_l3,
  684. msm_mux_qup1_se3_l0,
  685. msm_mux_qup1_se3_l1,
  686. msm_mux_qup1_se3_l2,
  687. msm_mux_qup1_se3_l3,
  688. msm_mux_qup1_se4_l0,
  689. msm_mux_qup1_se4_l1,
  690. msm_mux_qup1_se4_l2,
  691. msm_mux_qup1_se4_l3,
  692. msm_mux_qup1_se5_l0,
  693. msm_mux_qup1_se5_l1,
  694. msm_mux_qup1_se5_l2,
  695. msm_mux_qup1_se5_l3,
  696. msm_mux_qup1_se6_l0,
  697. msm_mux_qup1_se6_l1,
  698. msm_mux_qup1_se6_l2,
  699. msm_mux_qup1_se6_l3,
  700. msm_mux_qup1_se7_l0,
  701. msm_mux_qup1_se7_l1,
  702. msm_mux_qup1_se7_l2,
  703. msm_mux_qup1_se7_l3,
  704. msm_mux_sd_write_protect,
  705. msm_mux_sdc2_data,
  706. msm_mux_sdc2_clk,
  707. msm_mux_sdc2_cmd,
  708. msm_mux_sdc2_fb_clk,
  709. msm_mux_tb_trig_sdc2,
  710. msm_mux_tgu_ch0_trigout,
  711. msm_mux_tgu_ch1_trigout,
  712. msm_mux_tgu_ch2_trigout,
  713. msm_mux_tgu_ch3_trigout,
  714. msm_mux_tmess_prng0,
  715. msm_mux_tmess_prng1,
  716. msm_mux_tmess_prng2,
  717. msm_mux_tmess_prng3,
  718. msm_mux_tsense_pwm1,
  719. msm_mux_tsense_pwm2,
  720. msm_mux_tsense_pwm3,
  721. msm_mux_uim0_clk,
  722. msm_mux_uim0_data,
  723. msm_mux_uim0_present,
  724. msm_mux_uim0_reset,
  725. msm_mux_uim1_clk_mira,
  726. msm_mux_uim1_clk_mirb,
  727. msm_mux_uim1_data_mira,
  728. msm_mux_uim1_data_mirb,
  729. msm_mux_uim1_present_mira,
  730. msm_mux_uim1_present_mirb,
  731. msm_mux_uim1_reset_mira,
  732. msm_mux_uim1_reset_mirb,
  733. msm_mux_usb0_hs,
  734. msm_mux_usb0_phy_ps,
  735. msm_mux_vfr_0,
  736. msm_mux_vfr_1,
  737. msm_mux_vsense_trigger_mirnat,
  738. msm_mux_NA,
  739. };
  740. static const char *const gpio_groups[] = {
  741. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  742. "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11",
  743. "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17",
  744. "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23",
  745. "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29",
  746. "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  747. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
  748. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47",
  749. "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53",
  750. "gpio54", "gpio55", "gpio56", "gpio57", "gpio58", "gpio59",
  751. "gpio60", "gpio61", "gpio62", "gpio64", "gpio65", "gpio66",
  752. "gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72",
  753. "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", "gpio78",
  754. "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  755. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90",
  756. "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96",
  757. "gpio97", "gpio98", "gpio99", "gpio100", "gpio101", "gpio102",
  758. "gpio103", "gpio104", "gpio105", "gpio106", "gpio107", "gpio108",
  759. "gpio109", "gpio110", "gpio111", "gpio112", "gpio113", "gpio114",
  760. "gpio115", "gpio116", "gpio117", "gpio118", "gpio119", "gpio121",
  761. "gpio122", "gpio123", "gpio124", "gpio125", "gpio126", "gpio127",
  762. "gpio128", "gpio129", "gpio130", "gpio131", "gpio132", "gpio133",
  763. "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
  764. "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
  765. "gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
  766. "gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158",
  767. "gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
  768. "gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170",
  769. "gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176",
  770. "gpio177",
  771. };
  772. static const char *const HOST2WLAN_SOL_groups[] = {
  773. "gpio132",
  774. };
  775. static const char *const RESOUT_GPIO_N_groups[] = {
  776. "gpio133",
  777. };
  778. static const char *const aoss_cti_groups[] = {
  779. "gpio28",
  780. "gpio29",
  781. "gpio30",
  782. "gpio31",
  783. };
  784. static const char *const atest_char0_groups[] = {
  785. "gpio78",
  786. };
  787. static const char *const atest_char1_groups[] = {
  788. "gpio77",
  789. };
  790. static const char *const atest_char2_groups[] = {
  791. "gpio81",
  792. };
  793. static const char *const atest_char3_groups[] = {
  794. "gpio80",
  795. };
  796. static const char *const atest_char_start_groups[] = {
  797. "gpio117",
  798. };
  799. static const char *const atest_usb0_groups[] = {
  800. "gpio22",
  801. };
  802. static const char *const atest_usb00_groups[] = {
  803. "gpio23",
  804. };
  805. static const char *const atest_usb01_groups[] = {
  806. "gpio24",
  807. };
  808. static const char *const atest_usb02_groups[] = {
  809. "gpio25",
  810. };
  811. static const char *const atest_usb03_groups[] = {
  812. "gpio26",
  813. };
  814. static const char *const audio_ext_mclk0_groups[] = {
  815. "gpio127",
  816. };
  817. static const char *const audio_ext_mclk1_groups[] = {
  818. "gpio126",
  819. };
  820. static const char *const audio_ref_clk_groups[] = {
  821. "gpio126",
  822. };
  823. static const char *const cam_aon_mclk4_groups[] = {
  824. "gpio68",
  825. };
  826. static const char *const cam_mclk_groups[] = {
  827. "gpio64", "gpio65", "gpio66", "gpio67", "gpio69",
  828. };
  829. static const char *const cci_async_in0_groups[] = {
  830. "gpio30",
  831. };
  832. static const char *const cci_async_in1_groups[] = {
  833. "gpio15",
  834. };
  835. static const char *const cci_async_in2_groups[] = {
  836. "gpio14",
  837. };
  838. static const char *const cci_i2c_scl0_groups[] = {
  839. "gpio71",
  840. };
  841. static const char *const cci_i2c_scl1_groups[] = {
  842. "gpio73",
  843. };
  844. static const char *const cci_i2c_scl2_groups[] = {
  845. "gpio75",
  846. };
  847. static const char *const cci_i2c_scl3_groups[] = {
  848. "gpio21",
  849. };
  850. static const char *const cci_i2c_sda0_groups[] = {
  851. "gpio70",
  852. };
  853. static const char *const cci_i2c_sda1_groups[] = {
  854. "gpio72",
  855. };
  856. static const char *const cci_i2c_sda2_groups[] = {
  857. "gpio74",
  858. };
  859. static const char *const cci_i2c_sda3_groups[] = {
  860. "gpio20",
  861. };
  862. static const char *const cci_timer0_groups[] = {
  863. "gpio76",
  864. };
  865. static const char *const cci_timer1_groups[] = {
  866. "gpio14",
  867. };
  868. static const char *const cci_timer2_groups[] = {
  869. "gpio12",
  870. };
  871. static const char *const cci_timer3_groups[] = {
  872. "gpio13",
  873. };
  874. static const char *const cci_timer4_groups[] = {
  875. "gpio15",
  876. };
  877. static const char *const coex_uart1_rx_groups[] = {
  878. "gpio83",
  879. };
  880. static const char *const coex_uart1_tx_groups[] = {
  881. "gpio82",
  882. };
  883. static const char *const coex_uart2_rx_groups[] = {
  884. "gpio111",
  885. };
  886. static const char *const coex_uart2_tx_groups[] = {
  887. "gpio112",
  888. };
  889. static const char *const cri_trng_groups[] = {
  890. "gpio77",
  891. };
  892. static const char *const cri_trng0_groups[] = {
  893. "gpio64",
  894. };
  895. static const char *const cri_trng1_groups[] = {
  896. "gpio65",
  897. };
  898. static const char *const dbg_out_clk_groups[] = {
  899. "gpio34",
  900. };
  901. static const char *const ddr_bist_complete_groups[] = {
  902. "gpio137",
  903. };
  904. static const char *const ddr_bist_fail_groups[] = {
  905. "gpio61",
  906. };
  907. static const char *const ddr_bist_start_groups[] = {
  908. "gpio133",
  909. };
  910. static const char *const ddr_bist_stop_groups[] = {
  911. "gpio47",
  912. };
  913. static const char *const ddr_pxi0_groups[] = {
  914. "gpio22",
  915. "gpio23",
  916. };
  917. static const char *const ddr_pxi1_groups[] = {
  918. "gpio24",
  919. "gpio25",
  920. };
  921. static const char *const ddr_pxi2_groups[] = {
  922. "gpio32",
  923. "gpio33",
  924. };
  925. static const char *const ddr_pxi3_groups[] = {
  926. "gpio34",
  927. "gpio35",
  928. };
  929. static const char *const dp0_hot_groups[] = {
  930. "gpio127",
  931. };
  932. static const char *const egpio_groups[] = {
  933. "gpio0", "gpio1", "gpio2", "gpio3", "gpio139", "gpio140",
  934. "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
  935. "gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
  936. "gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158",
  937. "gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
  938. "gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170",
  939. "gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176",
  940. "gpio177",
  941. };
  942. static const char *const gcc_gp1_groups[] = {
  943. "gpio32",
  944. "gpio35",
  945. };
  946. static const char *const gcc_gp2_groups[] = {
  947. "gpio33",
  948. "gpio36",
  949. };
  950. static const char *const gcc_gp3_groups[] = {
  951. "gpio4",
  952. "gpio34",
  953. };
  954. static const char *const gnss_adc0_groups[] = {
  955. "gpio32",
  956. "gpio34",
  957. };
  958. static const char *const gnss_adc1_groups[] = {
  959. "gpio33",
  960. "gpio35",
  961. };
  962. static const char *const i2s0_data0_groups[] = {
  963. "gpio130",
  964. };
  965. static const char *const i2s0_data1_groups[] = {
  966. "gpio131",
  967. };
  968. static const char *const i2s0_sck_groups[] = {
  969. "gpio128",
  970. };
  971. static const char *const i2s0_ws_groups[] = {
  972. "gpio129",
  973. };
  974. static const char *const i2s1_data0_groups[] = {
  975. "gpio124",
  976. };
  977. static const char *const i2s1_data1_groups[] = {
  978. "gpio126",
  979. };
  980. static const char *const i2s1_sck_groups[] = {
  981. "gpio123",
  982. };
  983. static const char *const i2s1_ws_groups[] = {
  984. "gpio125",
  985. };
  986. static const char *const ibi_i3c_groups[] = {
  987. "gpio0", "gpio1", "gpio4", "gpio5", "gpio16",
  988. "gpio17", "gpio24", "gpio25", "gpio36", "gpio37",
  989. };
  990. static const char *const jitter_bist_groups[] = {
  991. "gpio22",
  992. };
  993. static const char *const mdp_vsync0_out_groups[] = {
  994. "gpio77",
  995. };
  996. static const char *const mdp_vsync1_out_groups[] = {
  997. "gpio77",
  998. };
  999. static const char *const mdp_vsync2_out_groups[] = {
  1000. "gpio78",
  1001. };
  1002. static const char *const mdp_vsync3_out_groups[] = {
  1003. "gpio78",
  1004. };
  1005. static const char *const mdp_vsync_e_groups[] = {
  1006. "gpio45",
  1007. };
  1008. static const char *const mdp_vsync_p_groups[] = {
  1009. "gpio77",
  1010. };
  1011. static const char *const mdp_vsync_s_groups[] = {
  1012. "gpio78",
  1013. };
  1014. static const char *const nav_gpio0_groups[] = {
  1015. "gpio113",
  1016. };
  1017. static const char *const nav_gpio1_groups[] = {
  1018. "gpio114",
  1019. };
  1020. static const char *const nav_gpio2_groups[] = {
  1021. "gpio115",
  1022. };
  1023. static const char *const nav_gpio3_groups[] = {
  1024. "gpio54",
  1025. };
  1026. static const char *const pcie0_clk_req_n_groups[] = {
  1027. "gpio118",
  1028. };
  1029. static const char *const phase_flag0_groups[] = {
  1030. "gpio122",
  1031. };
  1032. static const char *const phase_flag1_groups[] = {
  1033. "gpio118",
  1034. };
  1035. static const char *const phase_flag10_groups[] = {
  1036. "gpio43",
  1037. };
  1038. static const char *const phase_flag11_groups[] = {
  1039. "gpio42",
  1040. };
  1041. static const char *const phase_flag12_groups[] = {
  1042. "gpio41",
  1043. };
  1044. static const char *const phase_flag13_groups[] = {
  1045. "gpio40",
  1046. };
  1047. static const char *const phase_flag14_groups[] = {
  1048. "gpio83",
  1049. };
  1050. static const char *const phase_flag15_groups[] = {
  1051. "gpio82",
  1052. };
  1053. static const char *const phase_flag16_groups[] = {
  1054. "gpio21",
  1055. };
  1056. static const char *const phase_flag17_groups[] = {
  1057. "gpio20",
  1058. };
  1059. static const char *const phase_flag18_groups[] = {
  1060. "gpio19",
  1061. };
  1062. static const char *const phase_flag19_groups[] = {
  1063. "gpio18",
  1064. };
  1065. static const char *const phase_flag2_groups[] = {
  1066. "gpio117",
  1067. };
  1068. static const char *const phase_flag20_groups[] = {
  1069. "gpio17",
  1070. };
  1071. static const char *const phase_flag21_groups[] = {
  1072. "gpio16",
  1073. };
  1074. static const char *const phase_flag22_groups[] = {
  1075. "gpio15",
  1076. };
  1077. static const char *const phase_flag23_groups[] = {
  1078. "gpio14",
  1079. };
  1080. static const char *const phase_flag24_groups[] = {
  1081. "gpio13",
  1082. };
  1083. static const char *const phase_flag25_groups[] = {
  1084. "gpio12",
  1085. };
  1086. static const char *const phase_flag26_groups[] = {
  1087. "gpio11",
  1088. };
  1089. static const char *const phase_flag27_groups[] = {
  1090. "gpio10",
  1091. };
  1092. static const char *const phase_flag28_groups[] = {
  1093. "gpio9",
  1094. };
  1095. static const char *const phase_flag29_groups[] = {
  1096. "gpio8",
  1097. };
  1098. static const char *const phase_flag3_groups[] = {
  1099. "gpio137",
  1100. };
  1101. static const char *const phase_flag30_groups[] = {
  1102. "gpio7",
  1103. };
  1104. static const char *const phase_flag31_groups[] = {
  1105. "gpio6",
  1106. };
  1107. static const char *const phase_flag4_groups[] = {
  1108. "gpio133",
  1109. };
  1110. static const char *const phase_flag5_groups[] = {
  1111. "gpio61",
  1112. };
  1113. static const char *const phase_flag6_groups[] = {
  1114. "gpio47",
  1115. };
  1116. static const char *const phase_flag7_groups[] = {
  1117. "gpio46",
  1118. };
  1119. static const char *const phase_flag8_groups[] = {
  1120. "gpio45",
  1121. };
  1122. static const char *const phase_flag9_groups[] = {
  1123. "gpio44",
  1124. };
  1125. static const char *const pll_bist_sync_groups[] = {
  1126. "gpio23",
  1127. };
  1128. static const char *const pll_clk_aux_groups[] = {
  1129. "gpio26",
  1130. };
  1131. static const char *const prng_rosc0_groups[] = {
  1132. "gpio66",
  1133. };
  1134. static const char *const prng_rosc1_groups[] = {
  1135. "gpio68",
  1136. };
  1137. static const char *const prng_rosc2_groups[] = {
  1138. "gpio76",
  1139. };
  1140. static const char *const prng_rosc3_groups[] = {
  1141. "gpio74",
  1142. };
  1143. static const char *const qdss_cti_groups[] = {
  1144. "gpio24", "gpio25", "gpio40", "gpio41",
  1145. "gpio42", "gpio43", "gpio56", "gpio59",
  1146. };
  1147. static const char *const qdss_gpio_groups[] = {
  1148. "gpio12",
  1149. "gpio13",
  1150. "gpio164",
  1151. "gpio174",
  1152. };
  1153. static const char *const qdss_gpio0_groups[] = {
  1154. "gpio64",
  1155. "gpio160",
  1156. };
  1157. static const char *const qdss_gpio1_groups[] = {
  1158. "gpio65",
  1159. "gpio161",
  1160. };
  1161. static const char *const qdss_gpio10_groups[] = {
  1162. "gpio74",
  1163. "gpio124",
  1164. };
  1165. static const char *const qdss_gpio11_groups[] = {
  1166. "gpio75",
  1167. "gpio171",
  1168. };
  1169. static const char *const qdss_gpio12_groups[] = {
  1170. "gpio76",
  1171. "gpio172",
  1172. };
  1173. static const char *const qdss_gpio13_groups[] = {
  1174. "gpio5",
  1175. "gpio173",
  1176. };
  1177. static const char *const qdss_gpio14_groups[] = {
  1178. "gpio15",
  1179. "gpio125",
  1180. };
  1181. static const char *const qdss_gpio15_groups[] = {
  1182. "gpio4",
  1183. "gpio175",
  1184. };
  1185. static const char *const qdss_gpio2_groups[] = {
  1186. "gpio66",
  1187. "gpio162",
  1188. };
  1189. static const char *const qdss_gpio3_groups[] = {
  1190. "gpio67",
  1191. "gpio163",
  1192. };
  1193. static const char *const qdss_gpio4_groups[] = {
  1194. "gpio68",
  1195. "gpio123",
  1196. };
  1197. static const char *const qdss_gpio5_groups[] = {
  1198. "gpio69",
  1199. "gpio165",
  1200. };
  1201. static const char *const qdss_gpio6_groups[] = {
  1202. "gpio70",
  1203. "gpio166",
  1204. };
  1205. static const char *const qdss_gpio7_groups[] = {
  1206. "gpio71",
  1207. "gpio167",
  1208. };
  1209. static const char *const qdss_gpio8_groups[] = {
  1210. "gpio72",
  1211. "gpio168",
  1212. };
  1213. static const char *const qdss_gpio9_groups[] = {
  1214. "gpio73",
  1215. "gpio169",
  1216. };
  1217. static const char *const qlink_big_enable_groups[] = {
  1218. "gpio96",
  1219. };
  1220. static const char *const qlink_big_request_groups[] = {
  1221. "gpio95",
  1222. };
  1223. static const char *const qlink_little_enable_groups[] = {
  1224. "gpio93",
  1225. };
  1226. static const char *const qlink_little_request_groups[] = {
  1227. "gpio92",
  1228. };
  1229. static const char *const qlink_wmss_groups[] = {
  1230. "gpio94",
  1231. };
  1232. static const char *const qspi0_clk_groups[] = {
  1233. "gpio79",
  1234. };
  1235. static const char *const qspi0_cs0_n_groups[] = {
  1236. "gpio116",
  1237. };
  1238. static const char *const qspi0_cs1_n_groups[] = {
  1239. "gpio138",
  1240. };
  1241. static const char *const qspi0_data0_groups[] = {
  1242. "gpio97",
  1243. };
  1244. static const char *const qspi0_data1_groups[] = {
  1245. "gpio98",
  1246. };
  1247. static const char *const qspi0_data2_groups[] = {
  1248. "gpio99",
  1249. };
  1250. static const char *const qspi0_data3_groups[] = {
  1251. "gpio100",
  1252. };
  1253. static const char *const qup0_se0_l0_groups[] = {
  1254. "gpio52",
  1255. };
  1256. static const char *const qup0_se0_l1_groups[] = {
  1257. "gpio53",
  1258. };
  1259. static const char *const qup0_se0_l2_groups[] = {
  1260. "gpio54",
  1261. };
  1262. static const char *const qup0_se0_l3_groups[] = {
  1263. "gpio55",
  1264. };
  1265. static const char *const qup0_se1_l0_groups[] = {
  1266. "gpio4",
  1267. };
  1268. static const char *const qup0_se1_l1_groups[] = {
  1269. "gpio5",
  1270. };
  1271. static const char *const qup0_se1_l2_groups[] = {
  1272. "gpio6",
  1273. };
  1274. static const char *const qup0_se1_l3_groups[] = {
  1275. "gpio7",
  1276. };
  1277. static const char *const qup0_se1_l4_groups[] = {
  1278. "gpio12",
  1279. };
  1280. static const char *const qup0_se1_l5_groups[] = {
  1281. "gpio13",
  1282. };
  1283. static const char *const qup0_se1_l6_groups[] = {
  1284. "gpio14",
  1285. };
  1286. static const char *const qup0_se2_l0_groups[] = {
  1287. "gpio8",
  1288. };
  1289. static const char *const qup0_se2_l1_groups[] = {
  1290. "gpio9",
  1291. };
  1292. static const char *const qup0_se2_l2_groups[] = {
  1293. "gpio10",
  1294. };
  1295. static const char *const qup0_se2_l3_groups[] = {
  1296. "gpio11",
  1297. };
  1298. static const char *const qup0_se2_l4_groups[] = {
  1299. "gpio20",
  1300. };
  1301. static const char *const qup0_se2_l5_groups[] = {
  1302. "gpio21",
  1303. };
  1304. static const char *const qup0_se2_l6_groups[] = {
  1305. "gpio22",
  1306. };
  1307. static const char *const qup0_se3_l0_groups[] = {
  1308. "gpio12",
  1309. };
  1310. static const char *const qup0_se3_l1_groups[] = {
  1311. "gpio13",
  1312. };
  1313. static const char *const qup0_se3_l2_groups[] = {
  1314. "gpio14",
  1315. };
  1316. static const char *const qup0_se3_l3_groups[] = {
  1317. "gpio15",
  1318. };
  1319. static const char *const qup0_se4_l0_groups[] = {
  1320. "gpio16",
  1321. };
  1322. static const char *const qup0_se4_l1_groups[] = {
  1323. "gpio17",
  1324. };
  1325. static const char *const qup0_se4_l2_groups[] = {
  1326. "gpio18",
  1327. };
  1328. static const char *const qup0_se4_l3_groups[] = {
  1329. "gpio19",
  1330. };
  1331. static const char *const qup0_se5_l0_groups[] = {
  1332. "gpio20",
  1333. };
  1334. static const char *const qup0_se5_l1_groups[] = {
  1335. "gpio21",
  1336. };
  1337. static const char *const qup0_se5_l2_groups[] = {
  1338. "gpio22",
  1339. };
  1340. static const char *const qup0_se5_l3_groups[] = {
  1341. "gpio23",
  1342. };
  1343. static const char *const qup0_se6_l0_groups[] = {
  1344. "gpio24",
  1345. };
  1346. static const char *const qup0_se6_l1_groups[] = {
  1347. "gpio25",
  1348. };
  1349. static const char *const qup0_se6_l2_groups[] = {
  1350. "gpio26",
  1351. };
  1352. static const char *const qup0_se6_l3_groups[] = {
  1353. "gpio27",
  1354. };
  1355. static const char *const qup0_se7_l0_groups[] = {
  1356. "gpio28",
  1357. };
  1358. static const char *const qup0_se7_l1_groups[] = {
  1359. "gpio29",
  1360. };
  1361. static const char *const qup0_se7_l2_groups[] = {
  1362. "gpio30",
  1363. };
  1364. static const char *const qup0_se7_l3_groups[] = {
  1365. "gpio31",
  1366. };
  1367. static const char *const qup1_se0_l0_groups[] = {
  1368. "gpio0",
  1369. };
  1370. static const char *const qup1_se0_l1_groups[] = {
  1371. "gpio1",
  1372. };
  1373. static const char *const qup1_se0_l2_groups[] = {
  1374. "gpio2",
  1375. };
  1376. static const char *const qup1_se0_l3_groups[] = {
  1377. "gpio3",
  1378. };
  1379. static const char *const qup1_se1_l0_groups[] = {
  1380. "gpio36",
  1381. };
  1382. static const char *const qup1_se1_l1_groups[] = {
  1383. "gpio37",
  1384. };
  1385. static const char *const qup1_se1_l2_groups[] = {
  1386. "gpio36",
  1387. };
  1388. static const char *const qup1_se1_l3_groups[] = {
  1389. "gpio37",
  1390. };
  1391. static const char *const qup1_se2_l0_groups[] = {
  1392. "gpio40",
  1393. };
  1394. static const char *const qup1_se2_l1_groups[] = {
  1395. "gpio41",
  1396. };
  1397. static const char *const qup1_se2_l2_groups[] = {
  1398. "gpio42",
  1399. };
  1400. static const char *const qup1_se2_l3_groups[] = {
  1401. "gpio43",
  1402. };
  1403. static const char *const qup1_se3_l0_groups[] = {
  1404. "gpio44",
  1405. };
  1406. static const char *const qup1_se3_l1_groups[] = {
  1407. "gpio45",
  1408. };
  1409. static const char *const qup1_se3_l2_groups[] = {
  1410. "gpio46",
  1411. };
  1412. static const char *const qup1_se3_l3_groups[] = {
  1413. "gpio47",
  1414. };
  1415. static const char *const qup1_se4_l0_groups[] = {
  1416. "gpio176",
  1417. };
  1418. static const char *const qup1_se4_l1_groups[] = {
  1419. "gpio177",
  1420. };
  1421. static const char *const qup1_se4_l2_groups[] = {
  1422. "gpio176",
  1423. };
  1424. static const char *const qup1_se4_l3_groups[] = {
  1425. "gpio177",
  1426. };
  1427. static const char *const qup1_se5_l0_groups[] = {
  1428. "gpio32",
  1429. };
  1430. static const char *const qup1_se5_l1_groups[] = {
  1431. "gpio33",
  1432. };
  1433. static const char *const qup1_se5_l2_groups[] = {
  1434. "gpio34",
  1435. };
  1436. static const char *const qup1_se5_l3_groups[] = {
  1437. "gpio35",
  1438. };
  1439. static const char *const qup1_se6_l0_groups[] = {
  1440. "gpio56",
  1441. };
  1442. static const char *const qup1_se6_l1_groups[] = {
  1443. "gpio57",
  1444. };
  1445. static const char *const qup1_se6_l2_groups[] = {
  1446. "gpio58",
  1447. };
  1448. static const char *const qup1_se6_l3_groups[] = {
  1449. "gpio59",
  1450. };
  1451. static const char *const qup1_se7_l0_groups[] = {
  1452. "gpio60",
  1453. };
  1454. static const char *const qup1_se7_l1_groups[] = {
  1455. "gpio61",
  1456. };
  1457. static const char *const qup1_se7_l2_groups[] = {
  1458. "gpio60",
  1459. };
  1460. static const char *const qup1_se7_l3_groups[] = {
  1461. "gpio61",
  1462. };
  1463. static const char *const sd_write_protect_groups[] = {
  1464. "gpio29",
  1465. };
  1466. static const char *const sdc2_data_groups[] = {
  1467. "gpio38",
  1468. "gpio39",
  1469. "gpio48",
  1470. "gpio49",
  1471. };
  1472. static const char *const sdc2_clk_groups[] = {
  1473. "gpio62",
  1474. };
  1475. static const char *const sdc2_cmd_groups[] = {
  1476. "gpio51",
  1477. };
  1478. static const char *const sdc2_fb_clk_groups[] = {
  1479. "gpio50",
  1480. };
  1481. static const char *const tb_trig_sdc2_groups[] = {
  1482. "gpio83",
  1483. };
  1484. static const char *const tgu_ch0_trigout_groups[] = {
  1485. "gpio24",
  1486. };
  1487. static const char *const tgu_ch1_trigout_groups[] = {
  1488. "gpio25",
  1489. };
  1490. static const char *const tgu_ch2_trigout_groups[] = {
  1491. "gpio15",
  1492. };
  1493. static const char *const tgu_ch3_trigout_groups[] = {
  1494. "gpio28",
  1495. };
  1496. static const char *const tmess_prng0_groups[] = {
  1497. "gpio73",
  1498. };
  1499. static const char *const tmess_prng1_groups[] = {
  1500. "gpio72",
  1501. };
  1502. static const char *const tmess_prng2_groups[] = {
  1503. "gpio70",
  1504. };
  1505. static const char *const tmess_prng3_groups[] = {
  1506. "gpio69",
  1507. };
  1508. static const char *const tsense_pwm1_groups[] = {
  1509. "gpio27",
  1510. };
  1511. static const char *const tsense_pwm2_groups[] = {
  1512. "gpio27",
  1513. };
  1514. static const char *const tsense_pwm3_groups[] = {
  1515. "gpio27",
  1516. };
  1517. static const char *const uim0_clk_groups[] = {
  1518. "gpio85",
  1519. };
  1520. static const char *const uim0_data_groups[] = {
  1521. "gpio84",
  1522. };
  1523. static const char *const uim0_present_groups[] = {
  1524. "gpio87",
  1525. };
  1526. static const char *const uim0_reset_groups[] = {
  1527. "gpio86",
  1528. };
  1529. static const char *const uim1_clk_mira_groups[] = {
  1530. "gpio98",
  1531. };
  1532. static const char *const uim1_clk_mirb_groups[] = {
  1533. "gpio89",
  1534. };
  1535. static const char *const uim1_data_mira_groups[] = {
  1536. "gpio97",
  1537. };
  1538. static const char *const uim1_data_mirb_groups[] = {
  1539. "gpio88",
  1540. };
  1541. static const char *const uim1_present_mira_groups[] = {
  1542. "gpio100",
  1543. };
  1544. static const char *const uim1_present_mirb_groups[] = {
  1545. "gpio91",
  1546. };
  1547. static const char *const uim1_reset_mira_groups[] = {
  1548. "gpio99",
  1549. };
  1550. static const char *const uim1_reset_mirb_groups[] = {
  1551. "gpio90",
  1552. };
  1553. static const char *const usb0_hs_groups[] = {
  1554. "gpio82",
  1555. };
  1556. static const char *const usb0_phy_ps_groups[] = {
  1557. "gpio122",
  1558. };
  1559. static const char *const vfr_0_groups[] = {
  1560. "gpio61",
  1561. };
  1562. static const char *const vfr_1_groups[] = {
  1563. "gpio113",
  1564. };
  1565. static const char *const vsense_trigger_mirnat_groups[] = {
  1566. "gpio22",
  1567. };
  1568. static const struct msm_function cliffs_functions[] = {
  1569. FUNCTION(gpio),
  1570. FUNCTION(HOST2WLAN_SOL),
  1571. FUNCTION(RESOUT_GPIO_N),
  1572. FUNCTION(aoss_cti),
  1573. FUNCTION(atest_char0),
  1574. FUNCTION(atest_char1),
  1575. FUNCTION(atest_char2),
  1576. FUNCTION(atest_char3),
  1577. FUNCTION(atest_char_start),
  1578. FUNCTION(atest_usb0),
  1579. FUNCTION(atest_usb00),
  1580. FUNCTION(atest_usb01),
  1581. FUNCTION(atest_usb02),
  1582. FUNCTION(atest_usb03),
  1583. FUNCTION(audio_ext_mclk0),
  1584. FUNCTION(audio_ext_mclk1),
  1585. FUNCTION(audio_ref_clk),
  1586. FUNCTION(cam_aon_mclk4),
  1587. FUNCTION(cam_mclk),
  1588. FUNCTION(cci_async_in0),
  1589. FUNCTION(cci_async_in1),
  1590. FUNCTION(cci_async_in2),
  1591. FUNCTION(cci_i2c_scl0),
  1592. FUNCTION(cci_i2c_scl1),
  1593. FUNCTION(cci_i2c_scl2),
  1594. FUNCTION(cci_i2c_scl3),
  1595. FUNCTION(cci_i2c_sda0),
  1596. FUNCTION(cci_i2c_sda1),
  1597. FUNCTION(cci_i2c_sda2),
  1598. FUNCTION(cci_i2c_sda3),
  1599. FUNCTION(cci_timer0),
  1600. FUNCTION(cci_timer1),
  1601. FUNCTION(cci_timer2),
  1602. FUNCTION(cci_timer3),
  1603. FUNCTION(cci_timer4),
  1604. FUNCTION(coex_uart1_rx),
  1605. FUNCTION(coex_uart1_tx),
  1606. FUNCTION(coex_uart2_rx),
  1607. FUNCTION(coex_uart2_tx),
  1608. FUNCTION(cri_trng),
  1609. FUNCTION(cri_trng0),
  1610. FUNCTION(cri_trng1),
  1611. FUNCTION(dbg_out_clk),
  1612. FUNCTION(ddr_bist_complete),
  1613. FUNCTION(ddr_bist_fail),
  1614. FUNCTION(ddr_bist_start),
  1615. FUNCTION(ddr_bist_stop),
  1616. FUNCTION(ddr_pxi0),
  1617. FUNCTION(ddr_pxi1),
  1618. FUNCTION(ddr_pxi2),
  1619. FUNCTION(ddr_pxi3),
  1620. FUNCTION(dp0_hot),
  1621. FUNCTION(egpio),
  1622. FUNCTION(gcc_gp1),
  1623. FUNCTION(gcc_gp2),
  1624. FUNCTION(gcc_gp3),
  1625. FUNCTION(gnss_adc0),
  1626. FUNCTION(gnss_adc1),
  1627. FUNCTION(i2s0_data0),
  1628. FUNCTION(i2s0_data1),
  1629. FUNCTION(i2s0_sck),
  1630. FUNCTION(i2s0_ws),
  1631. FUNCTION(i2s1_data0),
  1632. FUNCTION(i2s1_data1),
  1633. FUNCTION(i2s1_sck),
  1634. FUNCTION(i2s1_ws),
  1635. FUNCTION(ibi_i3c),
  1636. FUNCTION(jitter_bist),
  1637. FUNCTION(mdp_vsync0_out),
  1638. FUNCTION(mdp_vsync1_out),
  1639. FUNCTION(mdp_vsync2_out),
  1640. FUNCTION(mdp_vsync3_out),
  1641. FUNCTION(mdp_vsync_e),
  1642. FUNCTION(mdp_vsync_p),
  1643. FUNCTION(mdp_vsync_s),
  1644. FUNCTION(nav_gpio0),
  1645. FUNCTION(nav_gpio1),
  1646. FUNCTION(nav_gpio2),
  1647. FUNCTION(nav_gpio3),
  1648. FUNCTION(pcie0_clk_req_n),
  1649. FUNCTION(phase_flag0),
  1650. FUNCTION(phase_flag1),
  1651. FUNCTION(phase_flag10),
  1652. FUNCTION(phase_flag11),
  1653. FUNCTION(phase_flag12),
  1654. FUNCTION(phase_flag13),
  1655. FUNCTION(phase_flag14),
  1656. FUNCTION(phase_flag15),
  1657. FUNCTION(phase_flag16),
  1658. FUNCTION(phase_flag17),
  1659. FUNCTION(phase_flag18),
  1660. FUNCTION(phase_flag19),
  1661. FUNCTION(phase_flag2),
  1662. FUNCTION(phase_flag20),
  1663. FUNCTION(phase_flag21),
  1664. FUNCTION(phase_flag22),
  1665. FUNCTION(phase_flag23),
  1666. FUNCTION(phase_flag24),
  1667. FUNCTION(phase_flag25),
  1668. FUNCTION(phase_flag26),
  1669. FUNCTION(phase_flag27),
  1670. FUNCTION(phase_flag28),
  1671. FUNCTION(phase_flag29),
  1672. FUNCTION(phase_flag3),
  1673. FUNCTION(phase_flag30),
  1674. FUNCTION(phase_flag31),
  1675. FUNCTION(phase_flag4),
  1676. FUNCTION(phase_flag5),
  1677. FUNCTION(phase_flag6),
  1678. FUNCTION(phase_flag7),
  1679. FUNCTION(phase_flag8),
  1680. FUNCTION(phase_flag9),
  1681. FUNCTION(pll_bist_sync),
  1682. FUNCTION(pll_clk_aux),
  1683. FUNCTION(prng_rosc0),
  1684. FUNCTION(prng_rosc1),
  1685. FUNCTION(prng_rosc2),
  1686. FUNCTION(prng_rosc3),
  1687. FUNCTION(qdss_cti),
  1688. FUNCTION(qdss_gpio),
  1689. FUNCTION(qdss_gpio0),
  1690. FUNCTION(qdss_gpio1),
  1691. FUNCTION(qdss_gpio10),
  1692. FUNCTION(qdss_gpio11),
  1693. FUNCTION(qdss_gpio12),
  1694. FUNCTION(qdss_gpio13),
  1695. FUNCTION(qdss_gpio14),
  1696. FUNCTION(qdss_gpio15),
  1697. FUNCTION(qdss_gpio2),
  1698. FUNCTION(qdss_gpio3),
  1699. FUNCTION(qdss_gpio4),
  1700. FUNCTION(qdss_gpio5),
  1701. FUNCTION(qdss_gpio6),
  1702. FUNCTION(qdss_gpio7),
  1703. FUNCTION(qdss_gpio8),
  1704. FUNCTION(qdss_gpio9),
  1705. FUNCTION(qlink_big_enable),
  1706. FUNCTION(qlink_big_request),
  1707. FUNCTION(qlink_little_enable),
  1708. FUNCTION(qlink_little_request),
  1709. FUNCTION(qlink_wmss),
  1710. FUNCTION(qspi0_clk),
  1711. FUNCTION(qspi0_cs0_n),
  1712. FUNCTION(qspi0_cs1_n),
  1713. FUNCTION(qspi0_data0),
  1714. FUNCTION(qspi0_data1),
  1715. FUNCTION(qspi0_data2),
  1716. FUNCTION(qspi0_data3),
  1717. FUNCTION(qup0_se0_l0),
  1718. FUNCTION(qup0_se0_l1),
  1719. FUNCTION(qup0_se0_l2),
  1720. FUNCTION(qup0_se0_l3),
  1721. FUNCTION(qup0_se1_l0),
  1722. FUNCTION(qup0_se1_l1),
  1723. FUNCTION(qup0_se1_l2),
  1724. FUNCTION(qup0_se1_l3),
  1725. FUNCTION(qup0_se1_l4),
  1726. FUNCTION(qup0_se1_l5),
  1727. FUNCTION(qup0_se1_l6),
  1728. FUNCTION(qup0_se2_l0),
  1729. FUNCTION(qup0_se2_l1),
  1730. FUNCTION(qup0_se2_l2),
  1731. FUNCTION(qup0_se2_l3),
  1732. FUNCTION(qup0_se2_l4),
  1733. FUNCTION(qup0_se2_l5),
  1734. FUNCTION(qup0_se2_l6),
  1735. FUNCTION(qup0_se3_l0),
  1736. FUNCTION(qup0_se3_l1),
  1737. FUNCTION(qup0_se3_l2),
  1738. FUNCTION(qup0_se3_l3),
  1739. FUNCTION(qup0_se4_l0),
  1740. FUNCTION(qup0_se4_l1),
  1741. FUNCTION(qup0_se4_l2),
  1742. FUNCTION(qup0_se4_l3),
  1743. FUNCTION(qup0_se5_l0),
  1744. FUNCTION(qup0_se5_l1),
  1745. FUNCTION(qup0_se5_l2),
  1746. FUNCTION(qup0_se5_l3),
  1747. FUNCTION(qup0_se6_l0),
  1748. FUNCTION(qup0_se6_l1),
  1749. FUNCTION(qup0_se6_l2),
  1750. FUNCTION(qup0_se6_l3),
  1751. FUNCTION(qup0_se7_l0),
  1752. FUNCTION(qup0_se7_l1),
  1753. FUNCTION(qup0_se7_l2),
  1754. FUNCTION(qup0_se7_l3),
  1755. FUNCTION(qup1_se0_l0),
  1756. FUNCTION(qup1_se0_l1),
  1757. FUNCTION(qup1_se0_l2),
  1758. FUNCTION(qup1_se0_l3),
  1759. FUNCTION(qup1_se1_l0),
  1760. FUNCTION(qup1_se1_l1),
  1761. FUNCTION(qup1_se1_l2),
  1762. FUNCTION(qup1_se1_l3),
  1763. FUNCTION(qup1_se2_l0),
  1764. FUNCTION(qup1_se2_l1),
  1765. FUNCTION(qup1_se2_l2),
  1766. FUNCTION(qup1_se2_l3),
  1767. FUNCTION(qup1_se3_l0),
  1768. FUNCTION(qup1_se3_l1),
  1769. FUNCTION(qup1_se3_l2),
  1770. FUNCTION(qup1_se3_l3),
  1771. FUNCTION(qup1_se4_l0),
  1772. FUNCTION(qup1_se4_l1),
  1773. FUNCTION(qup1_se4_l2),
  1774. FUNCTION(qup1_se4_l3),
  1775. FUNCTION(qup1_se5_l0),
  1776. FUNCTION(qup1_se5_l1),
  1777. FUNCTION(qup1_se5_l2),
  1778. FUNCTION(qup1_se5_l3),
  1779. FUNCTION(qup1_se6_l0),
  1780. FUNCTION(qup1_se6_l1),
  1781. FUNCTION(qup1_se6_l2),
  1782. FUNCTION(qup1_se6_l3),
  1783. FUNCTION(qup1_se7_l0),
  1784. FUNCTION(qup1_se7_l1),
  1785. FUNCTION(qup1_se7_l2),
  1786. FUNCTION(qup1_se7_l3),
  1787. FUNCTION(sd_write_protect),
  1788. FUNCTION(sdc2_data),
  1789. FUNCTION(sdc2_clk),
  1790. FUNCTION(sdc2_cmd),
  1791. FUNCTION(sdc2_fb_clk),
  1792. FUNCTION(tb_trig_sdc2),
  1793. FUNCTION(tgu_ch0_trigout),
  1794. FUNCTION(tgu_ch1_trigout),
  1795. FUNCTION(tgu_ch2_trigout),
  1796. FUNCTION(tgu_ch3_trigout),
  1797. FUNCTION(tmess_prng0),
  1798. FUNCTION(tmess_prng1),
  1799. FUNCTION(tmess_prng2),
  1800. FUNCTION(tmess_prng3),
  1801. FUNCTION(tsense_pwm1),
  1802. FUNCTION(tsense_pwm2),
  1803. FUNCTION(tsense_pwm3),
  1804. FUNCTION(uim0_clk),
  1805. FUNCTION(uim0_data),
  1806. FUNCTION(uim0_present),
  1807. FUNCTION(uim0_reset),
  1808. FUNCTION(uim1_clk_mira),
  1809. FUNCTION(uim1_clk_mirb),
  1810. FUNCTION(uim1_data_mira),
  1811. FUNCTION(uim1_data_mirb),
  1812. FUNCTION(uim1_present_mira),
  1813. FUNCTION(uim1_present_mirb),
  1814. FUNCTION(uim1_reset_mira),
  1815. FUNCTION(uim1_reset_mirb),
  1816. FUNCTION(usb0_hs),
  1817. FUNCTION(usb0_phy_ps),
  1818. FUNCTION(vfr_0),
  1819. FUNCTION(vfr_1),
  1820. FUNCTION(vsense_trigger_mirnat),
  1821. };
  1822. /* Every pin is maintained as a single group, and missing or non-existing pin
  1823. * would be maintained as dummy group to synchronize pin group index with
  1824. * pin descriptor registered with pinctrl core.
  1825. * Clients would not be able to request these dummy pin groups.
  1826. */
  1827. static const struct msm_pingroup cliffs_groups[] = {
  1828. [0] = PINGROUP(0, qup1_se0_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA, NA,
  1829. egpio, 0, -1),
  1830. [1] = PINGROUP(1, qup1_se0_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA, NA,
  1831. egpio, 0, -1),
  1832. [2] = PINGROUP(2, qup1_se0_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1833. egpio, 0, -1),
  1834. [3] = PINGROUP(3, qup1_se0_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1835. egpio, 0, -1),
  1836. [4] = PINGROUP(4, qup0_se1_l0, ibi_i3c, gcc_gp3, qdss_gpio15, NA, NA,
  1837. NA, NA, NA, NA, NA, 0, -1),
  1838. [5] = PINGROUP(5, qup0_se1_l1, ibi_i3c, qdss_gpio13, NA, NA, NA, NA, NA,
  1839. NA, NA, NA, 0, -1),
  1840. [6] = PINGROUP(6, qup0_se1_l2, NA, phase_flag31, NA, NA, NA, NA, NA, NA,
  1841. NA, NA, 0, -1),
  1842. [7] = PINGROUP(7, qup0_se1_l3, NA, phase_flag30, NA, NA, NA, NA, NA, NA,
  1843. NA, NA, 0, -1),
  1844. [8] = PINGROUP(8, qup0_se2_l0, NA, phase_flag29, NA, NA, NA, NA, NA, NA,
  1845. NA, NA, 0, -1),
  1846. [9] = PINGROUP(9, qup0_se2_l1, NA, phase_flag28, NA, NA, NA, NA, NA, NA,
  1847. NA, NA, 0, -1),
  1848. [10] = PINGROUP(10, qup0_se2_l2, NA, phase_flag27, NA, NA, NA, NA, NA,
  1849. NA, NA, NA, 0, -1),
  1850. [11] = PINGROUP(11, qup0_se2_l3, NA, phase_flag26, NA, NA, NA, NA, NA,
  1851. NA, NA, NA, 0, -1),
  1852. [12] = PINGROUP(12, cci_timer2, qup0_se3_l0, qup0_se1_l4, NA,
  1853. phase_flag25, qdss_gpio, NA, NA, NA, NA, NA, 0, -1),
  1854. [13] = PINGROUP(13, cci_timer3, qup0_se3_l1, qup0_se1_l5, NA,
  1855. phase_flag24, qdss_gpio, NA, NA, NA, NA, NA, 0, -1),
  1856. [14] = PINGROUP(14, cci_timer1, cci_async_in2, qup0_se3_l2, qup0_se1_l6,
  1857. NA, phase_flag23, NA, NA, NA, NA, NA, 0, -1),
  1858. [15] = PINGROUP(15, cci_timer4, cci_async_in1, qup0_se3_l3,
  1859. tgu_ch2_trigout, NA, phase_flag22, qdss_gpio14, NA, NA,
  1860. NA, NA, 0, -1),
  1861. [16] = PINGROUP(16, qup0_se4_l0, ibi_i3c, NA, phase_flag21, NA, NA, NA,
  1862. NA, NA, NA, NA, 0, -1),
  1863. [17] = PINGROUP(17, qup0_se4_l1, ibi_i3c, NA, phase_flag20, NA, NA, NA,
  1864. NA, NA, NA, NA, 0, -1),
  1865. [18] = PINGROUP(18, qup0_se4_l2, NA, phase_flag19, NA, NA, NA, NA, NA,
  1866. NA, NA, NA, 0, -1),
  1867. [19] = PINGROUP(19, qup0_se4_l3, NA, NA, phase_flag18, NA, NA, NA, NA,
  1868. NA, NA, NA, 0, -1),
  1869. [20] = PINGROUP(20, qup0_se5_l0, cci_i2c_sda3, qup0_se2_l4, NA, NA,
  1870. phase_flag17, NA, NA, NA, NA, NA, 0, -1),
  1871. [21] = PINGROUP(21, qup0_se5_l1, cci_i2c_scl3, qup0_se2_l5, NA, NA,
  1872. phase_flag16, NA, NA, NA, NA, NA, 0, -1),
  1873. [22] = PINGROUP(22, qup0_se5_l2, qup0_se2_l6, jitter_bist, NA,
  1874. vsense_trigger_mirnat, atest_usb0, ddr_pxi0, NA, NA, NA,
  1875. NA, 0, -1),
  1876. [23] = PINGROUP(23, qup0_se5_l3, pll_bist_sync, NA, atest_usb00,
  1877. ddr_pxi0, NA, NA, NA, NA, NA, NA, 0, -1),
  1878. [24] = PINGROUP(24, qup0_se6_l0, ibi_i3c, tgu_ch0_trigout, qdss_cti,
  1879. atest_usb01, ddr_pxi1, NA, NA, NA, NA, NA, 0, -1),
  1880. [25] = PINGROUP(25, qup0_se6_l1, ibi_i3c, tgu_ch1_trigout, qdss_cti,
  1881. atest_usb02, ddr_pxi1, NA, NA, NA, NA, NA, 0, -1),
  1882. [26] = PINGROUP(26, qup0_se6_l2, pll_clk_aux, atest_usb03, NA, NA, NA,
  1883. NA, NA, NA, NA, NA, 0, -1),
  1884. [27] = PINGROUP(27, qup0_se6_l3, NA, tsense_pwm1, tsense_pwm2,
  1885. tsense_pwm3, NA, NA, NA, NA, NA, NA, 0, -1),
  1886. [28] = PINGROUP(28, qup0_se7_l0, aoss_cti, tgu_ch3_trigout, NA, NA, NA,
  1887. NA, NA, NA, NA, NA, 0, -1),
  1888. [29] = PINGROUP(29, qup0_se7_l1, aoss_cti, sd_write_protect, NA, NA, NA,
  1889. NA, NA, NA, NA, NA, 0, -1),
  1890. [30] = PINGROUP(30, qup0_se7_l2, cci_async_in0, aoss_cti, NA, NA, NA,
  1891. NA, NA, NA, NA, NA, 0, -1),
  1892. [31] = PINGROUP(31, qup0_se7_l3, aoss_cti, NA, NA, NA, NA, NA, NA, NA,
  1893. NA, NA, 0, -1),
  1894. [32] = PINGROUP(32, qup1_se5_l0, gcc_gp1, gnss_adc0, ddr_pxi2, NA, NA,
  1895. NA, NA, NA, NA, NA, 0, -1),
  1896. [33] = PINGROUP(33, qup1_se5_l1, gcc_gp2, gnss_adc1, ddr_pxi2, NA, NA,
  1897. NA, NA, NA, NA, NA, 0, -1),
  1898. [34] = PINGROUP(34, qup1_se5_l2, gcc_gp3, dbg_out_clk, gnss_adc0,
  1899. ddr_pxi3, NA, NA, NA, NA, NA, NA, 0, -1),
  1900. [35] = PINGROUP(35, qup1_se5_l3, gcc_gp1, gnss_adc1, ddr_pxi3, NA, NA,
  1901. NA, NA, NA, NA, NA, 0, -1),
  1902. [36] = PINGROUP(36, qup1_se1_l0, ibi_i3c, qup1_se1_l2, gcc_gp2, NA, NA,
  1903. NA, NA, NA, NA, NA, 0, -1),
  1904. [37] = PINGROUP(37, qup1_se1_l1, ibi_i3c, qup1_se1_l3, NA, NA, NA, NA,
  1905. NA, NA, NA, NA, 0, -1),
  1906. [38] = PINGROUP(38, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1907. -1),
  1908. [39] = PINGROUP(39, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1909. -1),
  1910. [40] = PINGROUP(40, qup1_se2_l0, NA, phase_flag13, qdss_cti, NA, NA, NA,
  1911. NA, NA, NA, NA, 0, -1),
  1912. [41] = PINGROUP(41, qup1_se2_l1, NA, phase_flag12, qdss_cti, NA, NA, NA,
  1913. NA, NA, NA, NA, 0, -1),
  1914. [42] = PINGROUP(42, qup1_se2_l2, NA, phase_flag11, qdss_cti, NA, NA, NA,
  1915. NA, NA, NA, NA, 0, -1),
  1916. [43] = PINGROUP(43, qup1_se2_l3, NA, NA, phase_flag10, qdss_cti, NA, NA,
  1917. NA, NA, NA, NA, 0, -1),
  1918. [44] = PINGROUP(44, qup1_se3_l0, NA, NA, phase_flag9, NA, NA, NA, NA,
  1919. NA, NA, NA, 0, -1),
  1920. [45] = PINGROUP(45, qup1_se3_l1, mdp_vsync_e, NA, NA, phase_flag8, NA,
  1921. NA, NA, NA, NA, NA, 0, -1),
  1922. [46] = PINGROUP(46, qup1_se3_l2, NA, phase_flag7, NA, NA, NA, NA, NA,
  1923. NA, NA, NA, 0, -1),
  1924. [47] = PINGROUP(47, qup1_se3_l3, ddr_bist_stop, NA, phase_flag6, NA, NA,
  1925. NA, NA, NA, NA, NA, 0, -1),
  1926. [48] = PINGROUP(48, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1927. -1),
  1928. [49] = PINGROUP(49, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1929. -1),
  1930. [50] = PINGROUP(50, sdc2_fb_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1931. 0, -1),
  1932. [51] = PINGROUP(51, sdc2_cmd, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1933. -1),
  1934. [52] = PINGROUP(52, qup0_se0_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1935. 0, -1),
  1936. [53] = PINGROUP(53, qup0_se0_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1937. 0, -1),
  1938. [54] = PINGROUP(54, qup0_se0_l2, nav_gpio3, NA, NA, NA, NA, NA, NA, NA,
  1939. NA, NA, 0, -1),
  1940. [55] = PINGROUP(55, qup0_se0_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1941. 0, -1),
  1942. [56] = PINGROUP(56, qup1_se6_l0, NA, qdss_cti, NA, NA, NA, NA, NA, NA,
  1943. NA, NA, 0, -1),
  1944. [57] = PINGROUP(57, qup1_se6_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1945. 0, -1),
  1946. [58] = PINGROUP(58, qup1_se6_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1947. 0, -1),
  1948. [59] = PINGROUP(59, qup1_se6_l3, NA, qdss_cti, NA, NA, NA, NA, NA, NA,
  1949. NA, NA, 0, -1),
  1950. [60] = PINGROUP(60, qup1_se7_l0, qup1_se7_l2, NA, NA, NA, NA, NA, NA,
  1951. NA, NA, NA, 0, -1),
  1952. [61] = PINGROUP(61, qup1_se7_l1, qup1_se7_l3, vfr_0, ddr_bist_fail, NA,
  1953. phase_flag5, NA, NA, NA, NA, NA, 0, -1),
  1954. [62] = PINGROUP(62, sdc2_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  1955. -1),
  1956. [63] = PINGROUP(63, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1957. [64] = PINGROUP(64, cam_mclk, cri_trng0, qdss_gpio0, NA, NA, NA, NA, NA,
  1958. NA, NA, NA, 0, -1),
  1959. [65] = PINGROUP(65, cam_mclk, cri_trng1, qdss_gpio1, NA, NA, NA, NA, NA,
  1960. NA, NA, NA, 0, -1),
  1961. [66] = PINGROUP(66, cam_mclk, prng_rosc0, qdss_gpio2, NA, NA, NA, NA,
  1962. NA, NA, NA, NA, 0, -1),
  1963. [67] = PINGROUP(67, cam_mclk, qdss_gpio3, NA, NA, NA, NA, NA, NA, NA,
  1964. NA, NA, 0, -1),
  1965. [68] = PINGROUP(68, cam_aon_mclk4, prng_rosc1, qdss_gpio4, NA, NA, NA,
  1966. NA, NA, NA, NA, NA, 0, -1),
  1967. [69] = PINGROUP(69, cam_mclk, tmess_prng3, qdss_gpio5, NA, NA, NA, NA,
  1968. NA, NA, NA, NA, 0, -1),
  1969. [70] = PINGROUP(70, cci_i2c_sda0, tmess_prng2, qdss_gpio6, NA, NA, NA,
  1970. NA, NA, NA, NA, NA, 0, -1),
  1971. [71] = PINGROUP(71, cci_i2c_scl0, qdss_gpio7, NA, NA, NA, NA, NA, NA,
  1972. NA, NA, NA, 0, -1),
  1973. [72] = PINGROUP(72, cci_i2c_sda1, tmess_prng1, qdss_gpio8, NA, NA, NA,
  1974. NA, NA, NA, NA, NA, 0, -1),
  1975. [73] = PINGROUP(73, cci_i2c_scl1, tmess_prng0, qdss_gpio9, NA, NA, NA,
  1976. NA, NA, NA, NA, NA, 0, -1),
  1977. [74] = PINGROUP(74, cci_i2c_sda2, prng_rosc3, qdss_gpio10, NA, NA, NA,
  1978. NA, NA, NA, NA, NA, 0, -1),
  1979. [75] = PINGROUP(75, cci_i2c_scl2, qdss_gpio11, NA, NA, NA, NA, NA, NA,
  1980. NA, NA, NA, 0, -1),
  1981. [76] = PINGROUP(76, cci_timer0, prng_rosc2, qdss_gpio12, NA, NA, NA, NA,
  1982. NA, NA, NA, NA, 0, -1),
  1983. [77] = PINGROUP(77, mdp_vsync_p, mdp_vsync0_out, mdp_vsync1_out,
  1984. cri_trng, atest_char1, NA, NA, NA, NA, NA, NA, 0, -1),
  1985. [78] = PINGROUP(78, mdp_vsync_s, mdp_vsync2_out, mdp_vsync3_out,
  1986. atest_char0, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  1987. [79] = PINGROUP(79, qspi0_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1988. 0, -1),
  1989. [80] = PINGROUP(80, atest_char3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1990. 0, -1),
  1991. [81] = PINGROUP(81, atest_char2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1992. 0, -1),
  1993. [82] = PINGROUP(82, coex_uart1_tx, usb0_hs, NA, phase_flag15, NA, NA,
  1994. NA, NA, NA, NA, NA, 0, -1),
  1995. [83] = PINGROUP(83, coex_uart1_rx, tb_trig_sdc2, NA, phase_flag14, NA,
  1996. NA, NA, NA, NA, NA, NA, 0, -1),
  1997. [84] = PINGROUP(84, uim0_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  1998. 0, -1),
  1999. [85] = PINGROUP(85, uim0_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2000. -1),
  2001. [86] = PINGROUP(86, uim0_reset, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2002. 0, -1),
  2003. [87] = PINGROUP(87, uim0_present, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2004. NA, 0, -1),
  2005. [88] = PINGROUP(88, uim1_data_mirb, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2006. NA, 0, -1),
  2007. [89] = PINGROUP(89, uim1_clk_mirb, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2008. NA, 0, -1),
  2009. [90] = PINGROUP(90, uim1_reset_mirb, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2010. NA, 0, -1),
  2011. [91] = PINGROUP(91, uim1_present_mirb, NA, NA, NA, NA, NA, NA, NA, NA,
  2012. NA, NA, 0, -1),
  2013. [92] = PINGROUP(92, qlink_little_request, NA, NA, NA, NA, NA, NA, NA,
  2014. NA, NA, NA, 0, -1),
  2015. [93] = PINGROUP(93, qlink_little_enable, NA, NA, NA, NA, NA, NA, NA, NA,
  2016. NA, NA, 0, -1),
  2017. [94] = PINGROUP(94, qlink_wmss, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2018. 0, -1),
  2019. [95] = PINGROUP(95, qlink_big_request, NA, NA, NA, NA, NA, NA, NA, NA,
  2020. NA, NA, 0, -1),
  2021. [96] = PINGROUP(96, qlink_big_enable, NA, NA, NA, NA, NA, NA, NA, NA,
  2022. NA, NA, 0, -1),
  2023. [97] = PINGROUP(97, uim1_data_mira, qspi0_data0, NA, NA, NA, NA, NA, NA,
  2024. NA, NA, NA, 0, -1),
  2025. [98] = PINGROUP(98, uim1_clk_mira, qspi0_data1, NA, NA, NA, NA, NA, NA,
  2026. NA, NA, NA, 0, -1),
  2027. [99] = PINGROUP(99, uim1_reset_mira, qspi0_data2, NA, NA, NA, NA, NA,
  2028. NA, NA, NA, NA, 0, -1),
  2029. [100] = PINGROUP(100, uim1_present_mira, qspi0_data3, NA, NA, NA, NA,
  2030. NA, NA, NA, NA, NA, 0, -1),
  2031. [101] = PINGROUP(101, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2032. -1),
  2033. [102] = PINGROUP(102, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2034. -1),
  2035. [103] = PINGROUP(103, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2036. -1),
  2037. [104] = PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2038. -1),
  2039. [105] = PINGROUP(105, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2040. -1),
  2041. [106] = PINGROUP(106, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2042. -1),
  2043. [107] = PINGROUP(107, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2044. -1),
  2045. [108] = PINGROUP(108, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2046. -1),
  2047. [109] = PINGROUP(109, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2048. -1),
  2049. [110] = PINGROUP(110, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2050. -1),
  2051. [111] = PINGROUP(111, NA, coex_uart2_rx, NA, NA, NA, NA, NA, NA, NA, NA,
  2052. NA, 0, -1),
  2053. [112] = PINGROUP(112, NA, coex_uart2_tx, NA, NA, NA, NA, NA, NA, NA, NA,
  2054. NA, 0, -1),
  2055. [113] = PINGROUP(113, nav_gpio0, vfr_1, NA, NA, NA, NA, NA, NA, NA, NA,
  2056. NA, 0, -1),
  2057. [114] = PINGROUP(114, nav_gpio1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2058. 0, -1),
  2059. [115] = PINGROUP(115, nav_gpio2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2060. 0, -1),
  2061. [116] = PINGROUP(116, qspi0_cs0_n, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2062. NA, 0, -1),
  2063. [117] = PINGROUP(117, NA, phase_flag2, atest_char_start, NA, NA, NA, NA,
  2064. NA, NA, NA, NA, 0, -1),
  2065. [118] = PINGROUP(118, pcie0_clk_req_n, NA, phase_flag1, NA, NA, NA, NA,
  2066. NA, NA, NA, NA, 0, -1),
  2067. [119] = PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2068. -1),
  2069. [120] = PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2070. -1),
  2071. [121] = PINGROUP(121, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2072. -1),
  2073. [122] = PINGROUP(122, usb0_phy_ps, NA, phase_flag0, NA, NA, NA, NA, NA,
  2074. NA, NA, NA, 0, -1),
  2075. [123] = PINGROUP(123, i2s1_sck, qdss_gpio4, NA, NA, NA, NA, NA, NA, NA,
  2076. NA, NA, 0, -1),
  2077. [124] = PINGROUP(124, i2s1_data0, qdss_gpio10, NA, NA, NA, NA, NA, NA,
  2078. NA, NA, NA, 0, -1),
  2079. [125] = PINGROUP(125, i2s1_ws, qdss_gpio14, NA, NA, NA, NA, NA, NA, NA,
  2080. NA, NA, 0, -1),
  2081. [126] = PINGROUP(126, i2s1_data1, audio_ext_mclk1, audio_ref_clk, NA,
  2082. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2083. [127] = PINGROUP(127, audio_ext_mclk0, dp0_hot, NA, NA, NA, NA, NA, NA,
  2084. NA, NA, NA, 0, -1),
  2085. [128] = PINGROUP(128, i2s0_sck, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2086. 0, -1),
  2087. [129] = PINGROUP(129, i2s0_ws, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2088. 0, -1),
  2089. [130] = PINGROUP(130, i2s0_data0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2090. NA, 0, -1),
  2091. [131] = PINGROUP(131, i2s0_data1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2092. NA, 0, -1),
  2093. [132] = PINGROUP(132, HOST2WLAN_SOL, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2094. NA, 0, -1),
  2095. [133] = PINGROUP(133, RESOUT_GPIO_N, ddr_bist_start, NA, phase_flag4,
  2096. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2097. [134] = PINGROUP(134, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2098. -1),
  2099. [135] = PINGROUP(135, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2100. -1),
  2101. [136] = PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2102. -1),
  2103. [137] = PINGROUP(137, ddr_bist_complete, NA, phase_flag3, NA, NA, NA,
  2104. NA, NA, NA, NA, NA, 0, -1),
  2105. [138] = PINGROUP(138, qspi0_cs1_n, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2106. NA, 0, -1),
  2107. [139] = PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2108. -1),
  2109. [140] = PINGROUP(140, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2110. -1),
  2111. [141] = PINGROUP(141, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2112. -1),
  2113. [142] = PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2114. -1),
  2115. [143] = PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2116. -1),
  2117. [144] = PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2118. -1),
  2119. [145] = PINGROUP(145, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2120. -1),
  2121. [146] = PINGROUP(146, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2122. -1),
  2123. [147] = PINGROUP(147, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2124. -1),
  2125. [148] = PINGROUP(148, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2126. -1),
  2127. [149] = PINGROUP(149, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2128. -1),
  2129. [150] = PINGROUP(150, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2130. -1),
  2131. [151] = PINGROUP(151, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2132. -1),
  2133. [152] = PINGROUP(152, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2134. -1),
  2135. [153] = PINGROUP(153, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2136. -1),
  2137. [154] = PINGROUP(154, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2138. -1),
  2139. [155] = PINGROUP(155, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2140. -1),
  2141. [156] = PINGROUP(156, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2142. -1),
  2143. [157] = PINGROUP(157, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2144. -1),
  2145. [158] = PINGROUP(158, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2146. -1),
  2147. [159] = PINGROUP(159, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2148. -1),
  2149. [160] = PINGROUP(160, qdss_gpio0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2150. egpio, 0, -1),
  2151. [161] = PINGROUP(161, qdss_gpio1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2152. egpio, 0, -1),
  2153. [162] = PINGROUP(162, qdss_gpio2, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2154. egpio, 0, -1),
  2155. [163] = PINGROUP(163, qdss_gpio3, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2156. egpio, 0, -1),
  2157. [164] = PINGROUP(164, qdss_gpio, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2158. egpio, 0, -1),
  2159. [165] = PINGROUP(165, qdss_gpio5, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2160. egpio, 0, -1),
  2161. [166] = PINGROUP(166, qdss_gpio6, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2162. egpio, 0, -1),
  2163. [167] = PINGROUP(167, qdss_gpio7, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2164. egpio, 0, -1),
  2165. [168] = PINGROUP(168, qdss_gpio8, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2166. egpio, 0, -1),
  2167. [169] = PINGROUP(169, qdss_gpio9, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2168. egpio, 0, -1),
  2169. [170] = PINGROUP(170, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2170. -1),
  2171. [171] = PINGROUP(171, qdss_gpio11, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2172. egpio, 0, -1),
  2173. [172] = PINGROUP(172, qdss_gpio12, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2174. egpio, 0, -1),
  2175. [173] = PINGROUP(173, qdss_gpio13, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2176. egpio, 0, -1),
  2177. [174] = PINGROUP(174, qdss_gpio, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2178. egpio, 0, -1),
  2179. [175] = PINGROUP(175, qdss_gpio15, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2180. egpio, 0, -1),
  2181. [176] = PINGROUP(176, qup1_se4_l0, NA, NA, NA, NA, NA, NA, NA,
  2182. NA, NA, egpio, 0, -1),
  2183. [177] = PINGROUP(177, qup1_se4_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2184. egpio, 0, -1),
  2185. [178] = UFS_RESET(ufs_reset, 0x1BC004, 0x1BD000),
  2186. };
  2187. static struct pinctrl_qup cliffs_qup_regs[] = {
  2188. QUP_I3C(1, QUP_1_I3C_0_MODE_OFFSET),
  2189. QUP_I3C(2, QUP_0_I3C_1_MODE_OFFSET),
  2190. QUP_I3C(3, QUP_0_I3C_4_MODE_OFFSET),
  2191. QUP_I3C(4, QUP_0_I3C_6_MODE_OFFSET),
  2192. QUP_I3C(5, QUP_1_I3C_1_MODE_OFFSET),
  2193. };
  2194. static const struct msm_gpio_wakeirq_map cliffs_pdc_map[] = {
  2195. { 0, 56 }, { 3, 100 }, { 4, 57 }, { 7, 58 }, { 11, 64 },
  2196. { 12, 61 }, { 14, 59 }, { 15, 62 }, { 16, 60 }, { 19, 63 },
  2197. { 20, 75 }, { 21, 88 }, { 22, 66 }, { 23, 67 }, { 24, 68 },
  2198. { 27, 69 }, { 29, 70 }, { 31, 55 }, { 32, 76 }, { 34, 53 },
  2199. { 35, 77 }, { 36, 78 }, { 39, 116 }, { 40, 79 }, { 43, 80 },
  2200. { 44, 81 }, { 47, 86 }, { 49, 115 }, { 51, 117 }, { 52, 89 },
  2201. { 54, 90 }, { 55, 84 }, { 56, 72 }, { 59, 96 }, { 60, 97 },
  2202. { 61, 98 }, { 69, 92 }, { 76, 104 }, { 77, 106 }, { 78, 107 },
  2203. { 80, 54 }, { 81, 91 }, { 83, 108 }, { 87, 109 }, { 91, 110 },
  2204. { 92, 111 }, { 95, 112 }, { 99, 125 }, { 100, 51 }, { 101, 114 },
  2205. { 111, 144 }, { 112, 73 }, { 113, 124 }, { 115, 52 }, { 116, 145 },
  2206. { 117, 65 }, { 118, 146 }, { 121, 118 }, { 122, 119 }, { 128, 120 },
  2207. { 129, 121 }, { 130, 122 }, { 131, 123 }, { 133, 105 }, { 135, 93 },
  2208. { 136, 74 }, { 137, 71 }, { 138, 82 }, { 140, 126 }, { 143, 127 },
  2209. { 145, 128 }, { 146, 129 }, { 148, 102 }, { 150, 130 }, { 151, 95 },
  2210. { 152, 113 }, { 155, 103 }, { 157, 131 }, { 158, 132 }, { 160, 133 },
  2211. { 161, 134 }, { 162, 135 }, { 163, 136 }, { 165, 137 }, { 166, 138 },
  2212. { 167, 139 }, { 168, 85 }, { 169, 94 }, { 170, 140 }, { 171, 141 },
  2213. { 172, 143 }, { 173, 142 }, { 174, 99 }, { 175, 101 }, { 176, 87 },
  2214. { 177, 83 },
  2215. };
  2216. static const struct msm_pinctrl_soc_data cliffs_pinctrl = {
  2217. .pins = cliffs_pins,
  2218. .npins = ARRAY_SIZE(cliffs_pins),
  2219. .functions = cliffs_functions,
  2220. .nfunctions = ARRAY_SIZE(cliffs_functions),
  2221. .groups = cliffs_groups,
  2222. .ngroups = ARRAY_SIZE(cliffs_groups),
  2223. .ngpios = 179,
  2224. .qup_regs = cliffs_qup_regs,
  2225. .nqup_regs = ARRAY_SIZE(cliffs_qup_regs),
  2226. .wakeirq_map = cliffs_pdc_map,
  2227. .nwakeirq_map = ARRAY_SIZE(cliffs_pdc_map),
  2228. .egpio_func = 11,
  2229. };
  2230. static const struct msm_pinctrl_soc_data cliffs_vm_pinctrl = {
  2231. .pins = cliffs_pins,
  2232. .npins = ARRAY_SIZE(cliffs_pins),
  2233. .functions = cliffs_functions,
  2234. .nfunctions = ARRAY_SIZE(cliffs_functions),
  2235. .groups = cliffs_groups,
  2236. .ngroups = ARRAY_SIZE(cliffs_groups),
  2237. .ngpios = 179,
  2238. .egpio_func = 11,
  2239. };
  2240. static const struct of_device_id cliffs_pinctrl_of_match[] = {
  2241. { .compatible = "qcom,cliffs-pinctrl", .data = &cliffs_pinctrl },
  2242. { .compatible = "qcom,cliffs-vm-pinctrl", .data = &cliffs_vm_pinctrl },
  2243. {},
  2244. };
  2245. static int cliffs_pinctrl_probe(struct platform_device *pdev)
  2246. {
  2247. const struct msm_pinctrl_soc_data *pinctrl_data;
  2248. struct device *dev = &pdev->dev;
  2249. pinctrl_data = of_device_get_match_data(dev);
  2250. if (!pinctrl_data)
  2251. return -EINVAL;
  2252. return msm_pinctrl_probe(pdev, pinctrl_data);
  2253. }
  2254. static struct platform_driver cliffs_pinctrl_driver = {
  2255. .driver = {
  2256. .name = "cliffs-pinctrl",
  2257. .of_match_table = cliffs_pinctrl_of_match,
  2258. },
  2259. .probe = cliffs_pinctrl_probe,
  2260. .remove = msm_pinctrl_remove,
  2261. };
  2262. static int __init cliffs_pinctrl_init(void)
  2263. {
  2264. return platform_driver_register(&cliffs_pinctrl_driver);
  2265. }
  2266. arch_initcall(cliffs_pinctrl_init);
  2267. static void __exit cliffs_pinctrl_exit(void)
  2268. {
  2269. platform_driver_unregister(&cliffs_pinctrl_driver);
  2270. }
  2271. module_exit(cliffs_pinctrl_exit);
  2272. MODULE_DESCRIPTION("QTI cliffs pinctrl driver");
  2273. MODULE_LICENSE("GPL");
  2274. MODULE_DEVICE_TABLE(of, cliffs_pinctrl_of_match);
  2275. MODULE_SOFTDEP("pre: qcom_tlmm_vm_irqchip");