pinctrl-sdmshrike.c 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #include <linux/module.h>
  7. #include <linux/of.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 NORTH 0x900000 /* dummy tile info */
  18. #define SOUTH 0xD00000
  19. #define SOUTH1 0xD1E000 /* dummy tile info */
  20. #define WEST 0x100000
  21. #define EAST 0x500000
  22. #define DUMMY 0x0
  23. #define REG_SIZE 0x1000
  24. #define PINGROUP(id, base, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  25. { \
  26. .name = "gpio" #id, \
  27. .pins = gpio##id##_pins, \
  28. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  29. .funcs = (int[]){ \
  30. msm_mux_gpio, /* gpio mode */ \
  31. msm_mux_##f1, \
  32. msm_mux_##f2, \
  33. msm_mux_##f3, \
  34. msm_mux_##f4, \
  35. msm_mux_##f5, \
  36. msm_mux_##f6, \
  37. msm_mux_##f7, \
  38. msm_mux_##f8, \
  39. msm_mux_##f9 \
  40. }, \
  41. .nfuncs = 10, \
  42. .ctl_reg = base + REG_SIZE * id, \
  43. .io_reg = base + 0x4 + REG_SIZE * id, \
  44. .intr_cfg_reg = base + 0x8 + REG_SIZE * id, \
  45. .intr_status_reg = base + 0xc + REG_SIZE * id, \
  46. .intr_target_reg = base + 0x8 + REG_SIZE * id, \
  47. .mux_bit = 2, \
  48. .dir_conn_reg = (base == EAST) ? base + 0xcc000 : \
  49. ((base == WEST) ? base + 0xcc000 : \
  50. ((base == NORTH) ? EAST + 0xcc000 : base + 0xcd000)), \
  51. .pull_bit = 0, \
  52. .drv_bit = 6, \
  53. .egpio_enable = 12, \
  54. .egpio_present = 11, \
  55. .oe_bit = 9, \
  56. .in_bit = 0, \
  57. .out_bit = 1, \
  58. .intr_enable_bit = 0, \
  59. .intr_status_bit = 0, \
  60. .intr_target_bit = 5, \
  61. .intr_target_kpss_val = 3, \
  62. .intr_raw_status_bit = 4, \
  63. .intr_polarity_bit = 1, \
  64. .intr_detection_bit = 2, \
  65. .intr_detection_width = 2, \
  66. .dir_conn_en_bit = 8, \
  67. }
  68. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  69. { \
  70. .name = #pg_name, \
  71. .pins = pg_name##_pins, \
  72. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  73. .ctl_reg = ctl, \
  74. .io_reg = 0, \
  75. .intr_cfg_reg = 0, \
  76. .intr_status_reg = 0, \
  77. .intr_target_reg = 0, \
  78. .mux_bit = -1, \
  79. .pull_bit = pull, \
  80. .drv_bit = drv, \
  81. .oe_bit = -1, \
  82. .in_bit = -1, \
  83. .out_bit = -1, \
  84. .intr_enable_bit = -1, \
  85. .intr_status_bit = -1, \
  86. .intr_target_bit = -1, \
  87. .intr_raw_status_bit = -1, \
  88. .intr_polarity_bit = -1, \
  89. .intr_detection_bit = -1, \
  90. .intr_detection_width = -1, \
  91. }
  92. #define UFS_RESET(pg_name, offset) \
  93. { \
  94. .name = #pg_name, \
  95. .pins = pg_name##_pins, \
  96. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  97. .ctl_reg = offset, \
  98. .io_reg = offset + 0x4, \
  99. .intr_cfg_reg = 0, \
  100. .intr_status_reg = 0, \
  101. .intr_target_reg = 0, \
  102. .mux_bit = -1, \
  103. .pull_bit = 3, \
  104. .drv_bit = 0, \
  105. .oe_bit = -1, \
  106. .in_bit = -1, \
  107. .out_bit = 0, \
  108. .intr_enable_bit = -1, \
  109. .intr_status_bit = -1, \
  110. .intr_target_bit = -1, \
  111. .intr_raw_status_bit = -1, \
  112. .intr_polarity_bit = -1, \
  113. .intr_detection_bit = -1, \
  114. .intr_detection_width = -1, \
  115. }
  116. static const struct pinctrl_pin_desc sdmshrike_pins[] = {
  117. PINCTRL_PIN(0, "GPIO_0"),
  118. PINCTRL_PIN(1, "GPIO_1"),
  119. PINCTRL_PIN(2, "GPIO_2"),
  120. PINCTRL_PIN(3, "GPIO_3"),
  121. PINCTRL_PIN(4, "GPIO_4"),
  122. PINCTRL_PIN(5, "GPIO_5"),
  123. PINCTRL_PIN(6, "GPIO_6"),
  124. PINCTRL_PIN(7, "GPIO_7"),
  125. PINCTRL_PIN(8, "GPIO_8"),
  126. PINCTRL_PIN(9, "GPIO_9"),
  127. PINCTRL_PIN(10, "GPIO_10"),
  128. PINCTRL_PIN(11, "GPIO_11"),
  129. PINCTRL_PIN(12, "GPIO_12"),
  130. PINCTRL_PIN(13, "GPIO_13"),
  131. PINCTRL_PIN(14, "GPIO_14"),
  132. PINCTRL_PIN(15, "GPIO_15"),
  133. PINCTRL_PIN(16, "GPIO_16"),
  134. PINCTRL_PIN(17, "GPIO_17"),
  135. PINCTRL_PIN(18, "GPIO_18"),
  136. PINCTRL_PIN(19, "GPIO_19"),
  137. PINCTRL_PIN(20, "GPIO_20"),
  138. PINCTRL_PIN(21, "GPIO_21"),
  139. PINCTRL_PIN(22, "GPIO_22"),
  140. PINCTRL_PIN(23, "GPIO_23"),
  141. PINCTRL_PIN(24, "GPIO_24"),
  142. PINCTRL_PIN(25, "GPIO_25"),
  143. PINCTRL_PIN(26, "GPIO_26"),
  144. PINCTRL_PIN(27, "GPIO_27"),
  145. PINCTRL_PIN(28, "GPIO_28"),
  146. PINCTRL_PIN(29, "GPIO_29"),
  147. PINCTRL_PIN(30, "GPIO_30"),
  148. PINCTRL_PIN(31, "GPIO_31"),
  149. PINCTRL_PIN(32, "GPIO_32"),
  150. PINCTRL_PIN(33, "GPIO_33"),
  151. PINCTRL_PIN(34, "GPIO_34"),
  152. PINCTRL_PIN(35, "GPIO_35"),
  153. PINCTRL_PIN(36, "GPIO_36"),
  154. PINCTRL_PIN(37, "GPIO_37"),
  155. PINCTRL_PIN(38, "GPIO_38"),
  156. PINCTRL_PIN(39, "GPIO_39"),
  157. PINCTRL_PIN(40, "GPIO_40"),
  158. PINCTRL_PIN(41, "GPIO_41"),
  159. PINCTRL_PIN(42, "GPIO_42"),
  160. PINCTRL_PIN(43, "GPIO_43"),
  161. PINCTRL_PIN(44, "GPIO_44"),
  162. PINCTRL_PIN(45, "GPIO_45"),
  163. PINCTRL_PIN(46, "GPIO_46"),
  164. PINCTRL_PIN(47, "GPIO_47"),
  165. PINCTRL_PIN(48, "GPIO_48"),
  166. PINCTRL_PIN(49, "GPIO_49"),
  167. PINCTRL_PIN(50, "GPIO_50"),
  168. PINCTRL_PIN(51, "GPIO_51"),
  169. PINCTRL_PIN(52, "GPIO_52"),
  170. PINCTRL_PIN(53, "GPIO_53"),
  171. PINCTRL_PIN(54, "GPIO_54"),
  172. PINCTRL_PIN(55, "GPIO_55"),
  173. PINCTRL_PIN(56, "GPIO_56"),
  174. PINCTRL_PIN(57, "GPIO_57"),
  175. PINCTRL_PIN(58, "GPIO_58"),
  176. PINCTRL_PIN(59, "GPIO_59"),
  177. PINCTRL_PIN(60, "GPIO_60"),
  178. PINCTRL_PIN(61, "GPIO_61"),
  179. PINCTRL_PIN(62, "GPIO_62"),
  180. PINCTRL_PIN(63, "GPIO_63"),
  181. PINCTRL_PIN(64, "GPIO_64"),
  182. PINCTRL_PIN(65, "GPIO_65"),
  183. PINCTRL_PIN(66, "GPIO_66"),
  184. PINCTRL_PIN(67, "GPIO_67"),
  185. PINCTRL_PIN(68, "GPIO_68"),
  186. PINCTRL_PIN(69, "GPIO_69"),
  187. PINCTRL_PIN(70, "GPIO_70"),
  188. PINCTRL_PIN(71, "GPIO_71"),
  189. PINCTRL_PIN(72, "GPIO_72"),
  190. PINCTRL_PIN(73, "GPIO_73"),
  191. PINCTRL_PIN(74, "GPIO_74"),
  192. PINCTRL_PIN(75, "GPIO_75"),
  193. PINCTRL_PIN(76, "GPIO_76"),
  194. PINCTRL_PIN(77, "GPIO_77"),
  195. PINCTRL_PIN(78, "GPIO_78"),
  196. PINCTRL_PIN(79, "GPIO_79"),
  197. PINCTRL_PIN(80, "GPIO_80"),
  198. PINCTRL_PIN(81, "GPIO_81"),
  199. PINCTRL_PIN(82, "GPIO_82"),
  200. PINCTRL_PIN(83, "GPIO_83"),
  201. PINCTRL_PIN(84, "GPIO_84"),
  202. PINCTRL_PIN(85, "GPIO_85"),
  203. PINCTRL_PIN(86, "GPIO_86"),
  204. PINCTRL_PIN(87, "GPIO_87"),
  205. PINCTRL_PIN(88, "GPIO_88"),
  206. PINCTRL_PIN(89, "GPIO_89"),
  207. PINCTRL_PIN(90, "GPIO_90"),
  208. PINCTRL_PIN(91, "GPIO_91"),
  209. PINCTRL_PIN(92, "GPIO_92"),
  210. PINCTRL_PIN(93, "GPIO_93"),
  211. PINCTRL_PIN(94, "GPIO_94"),
  212. PINCTRL_PIN(95, "GPIO_95"),
  213. PINCTRL_PIN(96, "GPIO_96"),
  214. PINCTRL_PIN(97, "GPIO_97"),
  215. PINCTRL_PIN(98, "GPIO_98"),
  216. PINCTRL_PIN(99, "GPIO_99"),
  217. PINCTRL_PIN(100, "GPIO_100"),
  218. PINCTRL_PIN(101, "GPIO_101"),
  219. PINCTRL_PIN(102, "GPIO_102"),
  220. PINCTRL_PIN(103, "GPIO_103"),
  221. PINCTRL_PIN(104, "GPIO_104"),
  222. PINCTRL_PIN(105, "GPIO_105"),
  223. PINCTRL_PIN(106, "GPIO_106"),
  224. PINCTRL_PIN(107, "GPIO_107"),
  225. PINCTRL_PIN(108, "GPIO_108"),
  226. PINCTRL_PIN(109, "GPIO_109"),
  227. PINCTRL_PIN(110, "GPIO_110"),
  228. PINCTRL_PIN(111, "GPIO_111"),
  229. PINCTRL_PIN(112, "GPIO_112"),
  230. PINCTRL_PIN(113, "GPIO_113"),
  231. PINCTRL_PIN(114, "GPIO_114"),
  232. PINCTRL_PIN(115, "GPIO_115"),
  233. PINCTRL_PIN(116, "GPIO_116"),
  234. PINCTRL_PIN(117, "GPIO_117"),
  235. PINCTRL_PIN(118, "GPIO_118"),
  236. PINCTRL_PIN(119, "GPIO_119"),
  237. PINCTRL_PIN(120, "GPIO_120"),
  238. PINCTRL_PIN(121, "GPIO_121"),
  239. PINCTRL_PIN(122, "GPIO_122"),
  240. PINCTRL_PIN(123, "GPIO_123"),
  241. PINCTRL_PIN(124, "GPIO_124"),
  242. PINCTRL_PIN(125, "GPIO_125"),
  243. PINCTRL_PIN(126, "GPIO_126"),
  244. PINCTRL_PIN(127, "GPIO_127"),
  245. PINCTRL_PIN(128, "GPIO_128"),
  246. PINCTRL_PIN(129, "GPIO_129"),
  247. PINCTRL_PIN(130, "GPIO_130"),
  248. PINCTRL_PIN(131, "GPIO_131"),
  249. PINCTRL_PIN(132, "GPIO_132"),
  250. PINCTRL_PIN(133, "GPIO_133"),
  251. PINCTRL_PIN(134, "GPIO_134"),
  252. PINCTRL_PIN(135, "GPIO_135"),
  253. PINCTRL_PIN(136, "GPIO_136"),
  254. PINCTRL_PIN(137, "GPIO_137"),
  255. PINCTRL_PIN(138, "GPIO_138"),
  256. PINCTRL_PIN(139, "GPIO_139"),
  257. PINCTRL_PIN(140, "GPIO_140"),
  258. PINCTRL_PIN(141, "GPIO_141"),
  259. PINCTRL_PIN(142, "GPIO_142"),
  260. PINCTRL_PIN(143, "GPIO_143"),
  261. PINCTRL_PIN(144, "GPIO_144"),
  262. PINCTRL_PIN(145, "GPIO_145"),
  263. PINCTRL_PIN(146, "GPIO_146"),
  264. PINCTRL_PIN(147, "GPIO_147"),
  265. PINCTRL_PIN(148, "GPIO_148"),
  266. PINCTRL_PIN(149, "GPIO_149"),
  267. PINCTRL_PIN(150, "GPIO_150"),
  268. PINCTRL_PIN(151, "GPIO_151"),
  269. PINCTRL_PIN(152, "GPIO_152"),
  270. PINCTRL_PIN(153, "GPIO_153"),
  271. PINCTRL_PIN(154, "GPIO_154"),
  272. PINCTRL_PIN(155, "GPIO_155"),
  273. PINCTRL_PIN(156, "GPIO_156"),
  274. PINCTRL_PIN(157, "GPIO_157"),
  275. PINCTRL_PIN(158, "GPIO_158"),
  276. PINCTRL_PIN(159, "GPIO_159"),
  277. PINCTRL_PIN(160, "GPIO_160"),
  278. PINCTRL_PIN(161, "GPIO_161"),
  279. PINCTRL_PIN(162, "GPIO_162"),
  280. PINCTRL_PIN(163, "GPIO_163"),
  281. PINCTRL_PIN(164, "GPIO_164"),
  282. PINCTRL_PIN(165, "GPIO_165"),
  283. PINCTRL_PIN(166, "GPIO_166"),
  284. PINCTRL_PIN(167, "GPIO_167"),
  285. PINCTRL_PIN(168, "GPIO_168"),
  286. PINCTRL_PIN(169, "GPIO_169"),
  287. PINCTRL_PIN(170, "GPIO_170"),
  288. PINCTRL_PIN(171, "GPIO_171"),
  289. PINCTRL_PIN(172, "GPIO_172"),
  290. PINCTRL_PIN(173, "GPIO_173"),
  291. PINCTRL_PIN(174, "GPIO_174"),
  292. PINCTRL_PIN(175, "GPIO_175"),
  293. PINCTRL_PIN(176, "GPIO_176"),
  294. PINCTRL_PIN(177, "GPIO_177"),
  295. PINCTRL_PIN(178, "GPIO_178"),
  296. PINCTRL_PIN(179, "GPIO_179"),
  297. PINCTRL_PIN(180, "GPIO_180"),
  298. PINCTRL_PIN(181, "GPIO_181"),
  299. PINCTRL_PIN(182, "GPIO_182"),
  300. PINCTRL_PIN(183, "GPIO_183"),
  301. PINCTRL_PIN(184, "GPIO_184"),
  302. PINCTRL_PIN(185, "GPIO_185"),
  303. PINCTRL_PIN(186, "GPIO_186"),
  304. PINCTRL_PIN(187, "GPIO_187"),
  305. PINCTRL_PIN(188, "GPIO_188"),
  306. PINCTRL_PIN(189, "GPIO_189"),
  307. PINCTRL_PIN(190, "UFS_RESET"),
  308. PINCTRL_PIN(191, "UFS0_RESET"),
  309. PINCTRL_PIN(192, "SDC2_CLK"),
  310. PINCTRL_PIN(193, "SDC2_CMD"),
  311. PINCTRL_PIN(194, "SDC2_DATA"),
  312. };
  313. #define DECLARE_MSM_GPIO_PINS(pin) \
  314. static const unsigned int gpio##pin##_pins[] = { pin }
  315. DECLARE_MSM_GPIO_PINS(0);
  316. DECLARE_MSM_GPIO_PINS(1);
  317. DECLARE_MSM_GPIO_PINS(2);
  318. DECLARE_MSM_GPIO_PINS(3);
  319. DECLARE_MSM_GPIO_PINS(4);
  320. DECLARE_MSM_GPIO_PINS(5);
  321. DECLARE_MSM_GPIO_PINS(6);
  322. DECLARE_MSM_GPIO_PINS(7);
  323. DECLARE_MSM_GPIO_PINS(8);
  324. DECLARE_MSM_GPIO_PINS(9);
  325. DECLARE_MSM_GPIO_PINS(10);
  326. DECLARE_MSM_GPIO_PINS(11);
  327. DECLARE_MSM_GPIO_PINS(12);
  328. DECLARE_MSM_GPIO_PINS(13);
  329. DECLARE_MSM_GPIO_PINS(14);
  330. DECLARE_MSM_GPIO_PINS(15);
  331. DECLARE_MSM_GPIO_PINS(16);
  332. DECLARE_MSM_GPIO_PINS(17);
  333. DECLARE_MSM_GPIO_PINS(18);
  334. DECLARE_MSM_GPIO_PINS(19);
  335. DECLARE_MSM_GPIO_PINS(20);
  336. DECLARE_MSM_GPIO_PINS(21);
  337. DECLARE_MSM_GPIO_PINS(22);
  338. DECLARE_MSM_GPIO_PINS(23);
  339. DECLARE_MSM_GPIO_PINS(24);
  340. DECLARE_MSM_GPIO_PINS(25);
  341. DECLARE_MSM_GPIO_PINS(26);
  342. DECLARE_MSM_GPIO_PINS(27);
  343. DECLARE_MSM_GPIO_PINS(28);
  344. DECLARE_MSM_GPIO_PINS(29);
  345. DECLARE_MSM_GPIO_PINS(30);
  346. DECLARE_MSM_GPIO_PINS(31);
  347. DECLARE_MSM_GPIO_PINS(32);
  348. DECLARE_MSM_GPIO_PINS(33);
  349. DECLARE_MSM_GPIO_PINS(34);
  350. DECLARE_MSM_GPIO_PINS(35);
  351. DECLARE_MSM_GPIO_PINS(36);
  352. DECLARE_MSM_GPIO_PINS(37);
  353. DECLARE_MSM_GPIO_PINS(38);
  354. DECLARE_MSM_GPIO_PINS(39);
  355. DECLARE_MSM_GPIO_PINS(40);
  356. DECLARE_MSM_GPIO_PINS(41);
  357. DECLARE_MSM_GPIO_PINS(42);
  358. DECLARE_MSM_GPIO_PINS(43);
  359. DECLARE_MSM_GPIO_PINS(44);
  360. DECLARE_MSM_GPIO_PINS(45);
  361. DECLARE_MSM_GPIO_PINS(46);
  362. DECLARE_MSM_GPIO_PINS(47);
  363. DECLARE_MSM_GPIO_PINS(48);
  364. DECLARE_MSM_GPIO_PINS(49);
  365. DECLARE_MSM_GPIO_PINS(50);
  366. DECLARE_MSM_GPIO_PINS(51);
  367. DECLARE_MSM_GPIO_PINS(52);
  368. DECLARE_MSM_GPIO_PINS(53);
  369. DECLARE_MSM_GPIO_PINS(54);
  370. DECLARE_MSM_GPIO_PINS(55);
  371. DECLARE_MSM_GPIO_PINS(56);
  372. DECLARE_MSM_GPIO_PINS(57);
  373. DECLARE_MSM_GPIO_PINS(58);
  374. DECLARE_MSM_GPIO_PINS(59);
  375. DECLARE_MSM_GPIO_PINS(60);
  376. DECLARE_MSM_GPIO_PINS(61);
  377. DECLARE_MSM_GPIO_PINS(62);
  378. DECLARE_MSM_GPIO_PINS(63);
  379. DECLARE_MSM_GPIO_PINS(64);
  380. DECLARE_MSM_GPIO_PINS(65);
  381. DECLARE_MSM_GPIO_PINS(66);
  382. DECLARE_MSM_GPIO_PINS(67);
  383. DECLARE_MSM_GPIO_PINS(68);
  384. DECLARE_MSM_GPIO_PINS(69);
  385. DECLARE_MSM_GPIO_PINS(70);
  386. DECLARE_MSM_GPIO_PINS(71);
  387. DECLARE_MSM_GPIO_PINS(72);
  388. DECLARE_MSM_GPIO_PINS(73);
  389. DECLARE_MSM_GPIO_PINS(74);
  390. DECLARE_MSM_GPIO_PINS(75);
  391. DECLARE_MSM_GPIO_PINS(76);
  392. DECLARE_MSM_GPIO_PINS(77);
  393. DECLARE_MSM_GPIO_PINS(78);
  394. DECLARE_MSM_GPIO_PINS(79);
  395. DECLARE_MSM_GPIO_PINS(80);
  396. DECLARE_MSM_GPIO_PINS(81);
  397. DECLARE_MSM_GPIO_PINS(82);
  398. DECLARE_MSM_GPIO_PINS(83);
  399. DECLARE_MSM_GPIO_PINS(84);
  400. DECLARE_MSM_GPIO_PINS(85);
  401. DECLARE_MSM_GPIO_PINS(86);
  402. DECLARE_MSM_GPIO_PINS(87);
  403. DECLARE_MSM_GPIO_PINS(88);
  404. DECLARE_MSM_GPIO_PINS(89);
  405. DECLARE_MSM_GPIO_PINS(90);
  406. DECLARE_MSM_GPIO_PINS(91);
  407. DECLARE_MSM_GPIO_PINS(92);
  408. DECLARE_MSM_GPIO_PINS(93);
  409. DECLARE_MSM_GPIO_PINS(94);
  410. DECLARE_MSM_GPIO_PINS(95);
  411. DECLARE_MSM_GPIO_PINS(96);
  412. DECLARE_MSM_GPIO_PINS(97);
  413. DECLARE_MSM_GPIO_PINS(98);
  414. DECLARE_MSM_GPIO_PINS(99);
  415. DECLARE_MSM_GPIO_PINS(100);
  416. DECLARE_MSM_GPIO_PINS(101);
  417. DECLARE_MSM_GPIO_PINS(102);
  418. DECLARE_MSM_GPIO_PINS(103);
  419. DECLARE_MSM_GPIO_PINS(104);
  420. DECLARE_MSM_GPIO_PINS(105);
  421. DECLARE_MSM_GPIO_PINS(106);
  422. DECLARE_MSM_GPIO_PINS(107);
  423. DECLARE_MSM_GPIO_PINS(108);
  424. DECLARE_MSM_GPIO_PINS(109);
  425. DECLARE_MSM_GPIO_PINS(110);
  426. DECLARE_MSM_GPIO_PINS(111);
  427. DECLARE_MSM_GPIO_PINS(112);
  428. DECLARE_MSM_GPIO_PINS(113);
  429. DECLARE_MSM_GPIO_PINS(114);
  430. DECLARE_MSM_GPIO_PINS(115);
  431. DECLARE_MSM_GPIO_PINS(116);
  432. DECLARE_MSM_GPIO_PINS(117);
  433. DECLARE_MSM_GPIO_PINS(118);
  434. DECLARE_MSM_GPIO_PINS(119);
  435. DECLARE_MSM_GPIO_PINS(120);
  436. DECLARE_MSM_GPIO_PINS(121);
  437. DECLARE_MSM_GPIO_PINS(122);
  438. DECLARE_MSM_GPIO_PINS(123);
  439. DECLARE_MSM_GPIO_PINS(124);
  440. DECLARE_MSM_GPIO_PINS(125);
  441. DECLARE_MSM_GPIO_PINS(126);
  442. DECLARE_MSM_GPIO_PINS(127);
  443. DECLARE_MSM_GPIO_PINS(128);
  444. DECLARE_MSM_GPIO_PINS(129);
  445. DECLARE_MSM_GPIO_PINS(130);
  446. DECLARE_MSM_GPIO_PINS(131);
  447. DECLARE_MSM_GPIO_PINS(132);
  448. DECLARE_MSM_GPIO_PINS(133);
  449. DECLARE_MSM_GPIO_PINS(134);
  450. DECLARE_MSM_GPIO_PINS(135);
  451. DECLARE_MSM_GPIO_PINS(136);
  452. DECLARE_MSM_GPIO_PINS(137);
  453. DECLARE_MSM_GPIO_PINS(138);
  454. DECLARE_MSM_GPIO_PINS(139);
  455. DECLARE_MSM_GPIO_PINS(140);
  456. DECLARE_MSM_GPIO_PINS(141);
  457. DECLARE_MSM_GPIO_PINS(142);
  458. DECLARE_MSM_GPIO_PINS(143);
  459. DECLARE_MSM_GPIO_PINS(144);
  460. DECLARE_MSM_GPIO_PINS(145);
  461. DECLARE_MSM_GPIO_PINS(146);
  462. DECLARE_MSM_GPIO_PINS(147);
  463. DECLARE_MSM_GPIO_PINS(148);
  464. DECLARE_MSM_GPIO_PINS(149);
  465. DECLARE_MSM_GPIO_PINS(150);
  466. DECLARE_MSM_GPIO_PINS(151);
  467. DECLARE_MSM_GPIO_PINS(152);
  468. DECLARE_MSM_GPIO_PINS(153);
  469. DECLARE_MSM_GPIO_PINS(154);
  470. DECLARE_MSM_GPIO_PINS(155);
  471. DECLARE_MSM_GPIO_PINS(156);
  472. DECLARE_MSM_GPIO_PINS(157);
  473. DECLARE_MSM_GPIO_PINS(158);
  474. DECLARE_MSM_GPIO_PINS(159);
  475. DECLARE_MSM_GPIO_PINS(160);
  476. DECLARE_MSM_GPIO_PINS(161);
  477. DECLARE_MSM_GPIO_PINS(162);
  478. DECLARE_MSM_GPIO_PINS(163);
  479. DECLARE_MSM_GPIO_PINS(164);
  480. DECLARE_MSM_GPIO_PINS(165);
  481. DECLARE_MSM_GPIO_PINS(166);
  482. DECLARE_MSM_GPIO_PINS(167);
  483. DECLARE_MSM_GPIO_PINS(168);
  484. DECLARE_MSM_GPIO_PINS(169);
  485. DECLARE_MSM_GPIO_PINS(170);
  486. DECLARE_MSM_GPIO_PINS(171);
  487. DECLARE_MSM_GPIO_PINS(172);
  488. DECLARE_MSM_GPIO_PINS(173);
  489. DECLARE_MSM_GPIO_PINS(174);
  490. DECLARE_MSM_GPIO_PINS(175);
  491. DECLARE_MSM_GPIO_PINS(176);
  492. DECLARE_MSM_GPIO_PINS(177);
  493. DECLARE_MSM_GPIO_PINS(178);
  494. DECLARE_MSM_GPIO_PINS(179);
  495. DECLARE_MSM_GPIO_PINS(180);
  496. DECLARE_MSM_GPIO_PINS(181);
  497. DECLARE_MSM_GPIO_PINS(182);
  498. DECLARE_MSM_GPIO_PINS(183);
  499. DECLARE_MSM_GPIO_PINS(184);
  500. DECLARE_MSM_GPIO_PINS(185);
  501. DECLARE_MSM_GPIO_PINS(186);
  502. DECLARE_MSM_GPIO_PINS(187);
  503. DECLARE_MSM_GPIO_PINS(188);
  504. DECLARE_MSM_GPIO_PINS(189);
  505. static const unsigned int sdc2_clk_pins[] = { 192 };
  506. static const unsigned int sdc2_cmd_pins[] = { 193 };
  507. static const unsigned int sdc2_data_pins[] = { 194 };
  508. static const unsigned int ufs_reset_pins[] = { 190 };
  509. static const unsigned int ufs0_reset_pins[] = { 191 };
  510. enum sdmshrike_functions {
  511. msm_mux_GRFC2,
  512. msm_mux_atest_usb31,
  513. msm_mux_emac_pps,
  514. msm_mux_ddr_pxi4,
  515. msm_mux_GRFC3,
  516. msm_mux_tgu_ch4,
  517. msm_mux_atest_usb30,
  518. msm_mux_GRFC4,
  519. msm_mux_tgu_ch7,
  520. msm_mux_atest_usb4,
  521. msm_mux_ddr_pxi5,
  522. msm_mux_GRFC5,
  523. msm_mux_tgu_ch6,
  524. msm_mux_atest_usb43,
  525. msm_mux_GRFC6,
  526. msm_mux_tgu_ch5,
  527. msm_mux_atest_usb42,
  528. msm_mux_ddr_pxi6,
  529. msm_mux_GRFC7,
  530. msm_mux_atest_usb41,
  531. msm_mux_GRFC13,
  532. msm_mux_GRFC14,
  533. msm_mux_GRFC15,
  534. msm_mux_GRFC16,
  535. msm_mux_qup12,
  536. msm_mux_qup16,
  537. msm_mux_tsif1_clk,
  538. msm_mux_qup8,
  539. msm_mux_qspi0_cs,
  540. msm_mux_tgu_ch3,
  541. msm_mux_atest_usb40,
  542. msm_mux_ddr_pxi7,
  543. msm_mux_tsif1_en,
  544. msm_mux_qspi00,
  545. msm_mux_mdp_vsync0,
  546. msm_mux_mdp_vsync1,
  547. msm_mux_mdp_vsync2,
  548. msm_mux_mdp_vsync3,
  549. msm_mux_mdp_vsync4,
  550. msm_mux_mdp_vsync5,
  551. msm_mux_tgu_ch0,
  552. msm_mux_tsif1_data,
  553. msm_mux_qspi01,
  554. msm_mux_sdc4_cmd,
  555. msm_mux_tgu_ch1,
  556. msm_mux_atest_usb0,
  557. msm_mux_tsif1_sync,
  558. msm_mux_qspi02,
  559. msm_mux_sdc43,
  560. msm_mux_vfr_1,
  561. msm_mux_tgu_ch2,
  562. msm_mux_atest_usb03,
  563. msm_mux_tsif2_clk,
  564. msm_mux_qup11,
  565. msm_mux_qspi0_clk,
  566. msm_mux_sdc4_clk,
  567. msm_mux_atest_usb02,
  568. msm_mux_tsif2_en,
  569. msm_mux_qspi03,
  570. msm_mux_sdc42,
  571. msm_mux_atest_tsens,
  572. msm_mux_atest_usb01,
  573. msm_mux_tsif2_data,
  574. msm_mux_sdc41,
  575. msm_mux_atest_usb00,
  576. msm_mux_tsif2_sync,
  577. msm_mux_sdc40,
  578. msm_mux_atest_usb2,
  579. msm_mux_tsif2_error,
  580. msm_mux_sd_write,
  581. msm_mux_tsif1_error,
  582. msm_mux_qup7,
  583. msm_mux_ddr_bist,
  584. msm_mux_pll_bypassnl,
  585. msm_mux_pll_reset,
  586. msm_mux_pci_e1,
  587. msm_mux_phase_flag4,
  588. msm_mux_atest_usb23,
  589. msm_mux_uim2_data,
  590. msm_mux_uim2_clk,
  591. msm_mux_uim2_reset,
  592. msm_mux_uim2_present,
  593. msm_mux_uim1_data,
  594. msm_mux_uim1_clk,
  595. msm_mux_uim1_reset,
  596. msm_mux_uim1_present,
  597. msm_mux_uim_batt,
  598. msm_mux_aoss_cti,
  599. msm_mux_qup1,
  600. msm_mux_rgmii_txc,
  601. msm_mux_rgmii_rxc,
  602. msm_mux_adsp_ext,
  603. msm_mux_rgmii_rx,
  604. msm_mux_rgmii_rxd0,
  605. msm_mux_rgmii_rxd1,
  606. msm_mux_qup5,
  607. msm_mux_rgmii_rxd2,
  608. msm_mux_rgmii_rxd3,
  609. msm_mux_phase_flag17,
  610. msm_mux_rgmii_tx,
  611. msm_mux_phase_flag16,
  612. msm_mux_atest_usb21,
  613. msm_mux_rgmii_txd0,
  614. msm_mux_phase_flag15,
  615. msm_mux_atest_usb20,
  616. msm_mux_phase_flag14,
  617. msm_mux_emac_phy,
  618. msm_mux_hs3_mi2s,
  619. msm_mux_phase_flag22,
  620. msm_mux_sec_mi2s,
  621. msm_mux_qup2,
  622. msm_mux_jitter_bist,
  623. msm_mux_pll_bist,
  624. msm_mux_ter_mi2s,
  625. msm_mux_gcc_gp1,
  626. msm_mux_atest_char,
  627. msm_mux_atest_char0,
  628. msm_mux_atest_char1,
  629. msm_mux_qua_mi2s,
  630. msm_mux_gcc_gp4,
  631. msm_mux_gcc_gp5,
  632. msm_mux_atest_char2,
  633. msm_mux_atest_char3,
  634. msm_mux_pri_mi2s,
  635. msm_mux_qup3,
  636. msm_mux_pri_mi2s_ws,
  637. msm_mux_spkr_i2s,
  638. msm_mux_audio_ref,
  639. msm_mux_phase_flag21,
  640. msm_mux_lpass_slimbus,
  641. msm_mux_phase_flag20,
  642. msm_mux_phase_flag19,
  643. msm_mux_tsense_pwm1,
  644. msm_mux_tsense_pwm2,
  645. msm_mux_phase_flag18,
  646. msm_mux_phase_flag13,
  647. msm_mux_btfm_slimbus,
  648. msm_mux_hs1_mi2s,
  649. msm_mux_phase_flag12,
  650. msm_mux_phase_flag11,
  651. msm_mux_phase_flag10,
  652. msm_mux_phase_flag9,
  653. msm_mux_cri_trng0,
  654. msm_mux_phase_flag8,
  655. msm_mux_hs2_mi2s,
  656. msm_mux_cri_trng1,
  657. msm_mux_phase_flag7,
  658. msm_mux_qspi11,
  659. msm_mux_cri_trng,
  660. msm_mux_phase_flag24,
  661. msm_mux_qspi10,
  662. msm_mux_sp_cmu,
  663. msm_mux_phase_flag6,
  664. msm_mux_qspi1_clk,
  665. msm_mux_prng_rosc,
  666. msm_mux_phase_flag5,
  667. msm_mux_phase_flag31,
  668. msm_mux_phase_flag30,
  669. msm_mux_phase_flag27,
  670. msm_mux_phase_flag26,
  671. msm_mux_phase_flag25,
  672. msm_mux_pci_e2,
  673. msm_mux_pci_e3,
  674. msm_mux_cci_timer4,
  675. msm_mux_qup19,
  676. msm_mux_cci_timer5,
  677. msm_mux_cci_timer6,
  678. msm_mux_cci_timer7,
  679. msm_mux_cci_timer8,
  680. msm_mux_cci_timer9,
  681. msm_mux_dp_hot,
  682. msm_mux_egpio,
  683. msm_mux_qup0,
  684. msm_mux_gpio,
  685. msm_mux_cci_i2c,
  686. msm_mux_qup6,
  687. msm_mux_rgmii_txd1,
  688. msm_mux_phase_flag3,
  689. msm_mux_rgmii_txd2,
  690. msm_mux_phase_flag2,
  691. msm_mux_rgmii_txd3,
  692. msm_mux_qup_l6,
  693. msm_mux_phase_flag1,
  694. msm_mux_debug_hot,
  695. msm_mux_rgmii_mdc,
  696. msm_mux_qup_l5,
  697. msm_mux_phase_flag0,
  698. msm_mux_mdp_vsync,
  699. msm_mux_qup10,
  700. msm_mux_edp_hot,
  701. msm_mux_m_voc,
  702. msm_mux_edp_lcd,
  703. msm_mux_cam_mclk,
  704. msm_mux_qdss_gpio0,
  705. msm_mux_qdss_gpio1,
  706. msm_mux_qdss_gpio2,
  707. msm_mux_qdss_gpio3,
  708. msm_mux_qdss_gpio4,
  709. msm_mux_qdss_gpio5,
  710. msm_mux_qdss_gpio6,
  711. msm_mux_qdss_gpio7,
  712. msm_mux_cci_timer0,
  713. msm_mux_gcc_gp2,
  714. msm_mux_qdss_gpio8,
  715. msm_mux_cci_timer1,
  716. msm_mux_gcc_gp3,
  717. msm_mux_qdss_gpio,
  718. msm_mux_cci_timer2,
  719. msm_mux_qup18,
  720. msm_mux_qdss_gpio9,
  721. msm_mux_cci_timer3,
  722. msm_mux_cci_async,
  723. msm_mux_qdss_gpio10,
  724. msm_mux_qdss_gpio11,
  725. msm_mux_qdss_gpio12,
  726. msm_mux_qup15,
  727. msm_mux_qdss_gpio15,
  728. msm_mux_qdss_gpio13,
  729. msm_mux_qdss_gpio14,
  730. msm_mux_phase_flag23,
  731. msm_mux_dbg_out,
  732. msm_mux_atest_usb22,
  733. msm_mux_pci_e0,
  734. msm_mux_qup_l4,
  735. msm_mux_agera_pll,
  736. msm_mux_usb0_phy,
  737. msm_mux_qup9,
  738. msm_mux_qup13,
  739. msm_mux_qup14,
  740. msm_mux_usb2phy_ac,
  741. msm_mux_qdss_cti,
  742. msm_mux_qup4,
  743. msm_mux_phase_flag29,
  744. msm_mux_phase_flag28,
  745. msm_mux_qup17,
  746. msm_mux_qspi1_cs,
  747. msm_mux_qspi13,
  748. msm_mux_qspi12,
  749. msm_mux_usb1_phy,
  750. msm_mux_rgmii_mdio,
  751. msm_mux_GPS_TX,
  752. msm_mux_NAV_PPS,
  753. msm_mux_atest_usb1,
  754. msm_mux_ddr_pxi0,
  755. msm_mux_QLINK_REQUEST,
  756. msm_mux_QLINK_ENABLE,
  757. msm_mux_atest_tsens2,
  758. msm_mux_atest_usb13,
  759. msm_mux_vsense_trigger,
  760. msm_mux_wmss_reset,
  761. msm_mux_atest_usb12,
  762. msm_mux_ddr_pxi1,
  763. msm_mux_wlan1_adc1,
  764. msm_mux_GRFC8,
  765. msm_mux_atest_usb11,
  766. msm_mux_wlan1_adc0,
  767. msm_mux_GRFC9,
  768. msm_mux_atest_usb10,
  769. msm_mux_ddr_pxi2,
  770. msm_mux_wlan2_adc1,
  771. msm_mux_GRFC10,
  772. msm_mux_GRFC11,
  773. msm_mux_GRFC12,
  774. msm_mux_pa_indicator,
  775. msm_mux_atest_usb3,
  776. msm_mux_wlan2_adc0,
  777. msm_mux_mss_lte,
  778. msm_mux_GRFC0,
  779. msm_mux_atest_usb33,
  780. msm_mux_ddr_pxi3,
  781. msm_mux_GRFC1,
  782. msm_mux_atest_usb32,
  783. msm_mux_NA,
  784. };
  785. static const char * const GRFC2_groups[] = {
  786. "gpio73",
  787. };
  788. static const char * const atest_usb31_groups[] = {
  789. "gpio73",
  790. };
  791. static const char * const emac_pps_groups[] = {
  792. "gpio81",
  793. };
  794. static const char * const ddr_pxi4_groups[] = {
  795. "gpio73", "gpio74",
  796. };
  797. static const char * const GRFC3_groups[] = {
  798. "gpio74",
  799. };
  800. static const char * const tgu_ch4_groups[] = {
  801. "gpio74",
  802. };
  803. static const char * const atest_usb30_groups[] = {
  804. "gpio74",
  805. };
  806. static const char * const GRFC4_groups[] = {
  807. "gpio75",
  808. };
  809. static const char * const tgu_ch7_groups[] = {
  810. "gpio75",
  811. };
  812. static const char * const atest_usb4_groups[] = {
  813. "gpio75",
  814. };
  815. static const char * const ddr_pxi5_groups[] = {
  816. "gpio75", "gpio76",
  817. };
  818. static const char * const GRFC5_groups[] = {
  819. "gpio76",
  820. };
  821. static const char * const tgu_ch6_groups[] = {
  822. "gpio76",
  823. };
  824. static const char * const atest_usb43_groups[] = {
  825. "gpio76",
  826. };
  827. static const char * const GRFC6_groups[] = {
  828. "gpio77",
  829. };
  830. static const char * const tgu_ch5_groups[] = {
  831. "gpio77",
  832. };
  833. static const char * const atest_usb42_groups[] = {
  834. "gpio77",
  835. };
  836. static const char * const ddr_pxi6_groups[] = {
  837. "gpio77", "gpio78",
  838. };
  839. static const char * const GRFC7_groups[] = {
  840. "gpio78",
  841. };
  842. static const char * const atest_usb41_groups[] = {
  843. "gpio78",
  844. };
  845. static const char * const GRFC13_groups[] = {
  846. "gpio79",
  847. };
  848. static const char * const GRFC14_groups[] = {
  849. "gpio80",
  850. };
  851. static const char * const GRFC15_groups[] = {
  852. "gpio81",
  853. };
  854. static const char * const GRFC16_groups[] = {
  855. "gpio82",
  856. };
  857. static const char * const qup12_groups[] = {
  858. "gpio83", "gpio84", "gpio85", "gpio86",
  859. };
  860. static const char * const qup16_groups[] = {
  861. "gpio83", "gpio84", "gpio85", "gpio86",
  862. };
  863. static const char * const tsif1_clk_groups[] = {
  864. "gpio88",
  865. };
  866. static const char * const qup8_groups[] = {
  867. "gpio88", "gpio89", "gpio90", "gpio91",
  868. };
  869. static const char * const qspi0_cs_groups[] = {
  870. "gpio88", "gpio94",
  871. };
  872. static const char * const tgu_ch3_groups[] = {
  873. "gpio88",
  874. };
  875. static const char * const atest_usb40_groups[] = {
  876. "gpio88",
  877. };
  878. static const char * const ddr_pxi7_groups[] = {
  879. "gpio88", "gpio90",
  880. };
  881. static const char * const tsif1_en_groups[] = {
  882. "gpio89",
  883. };
  884. static const char * const qspi00_groups[] = {
  885. "gpio89",
  886. };
  887. static const char * const mdp_vsync0_groups[] = {
  888. "gpio89",
  889. };
  890. static const char * const mdp_vsync1_groups[] = {
  891. "gpio89",
  892. };
  893. static const char * const mdp_vsync2_groups[] = {
  894. "gpio89",
  895. };
  896. static const char * const mdp_vsync3_groups[] = {
  897. "gpio89",
  898. };
  899. static const char * const mdp_vsync4_groups[] = {
  900. "gpio89",
  901. };
  902. static const char * const mdp_vsync5_groups[] = {
  903. "gpio89",
  904. };
  905. static const char * const tgu_ch0_groups[] = {
  906. "gpio89",
  907. };
  908. static const char * const tsif1_data_groups[] = {
  909. "gpio90",
  910. };
  911. static const char * const qspi01_groups[] = {
  912. "gpio90",
  913. };
  914. static const char * const sdc4_cmd_groups[] = {
  915. "gpio90",
  916. };
  917. static const char * const tgu_ch1_groups[] = {
  918. "gpio90",
  919. };
  920. static const char * const atest_usb0_groups[] = {
  921. "gpio90",
  922. };
  923. static const char * const tsif1_sync_groups[] = {
  924. "gpio91",
  925. };
  926. static const char * const qspi02_groups[] = {
  927. "gpio91",
  928. };
  929. static const char * const sdc43_groups[] = {
  930. "gpio91",
  931. };
  932. static const char * const vfr_1_groups[] = {
  933. "gpio91",
  934. };
  935. static const char * const tgu_ch2_groups[] = {
  936. "gpio91",
  937. };
  938. static const char * const atest_usb03_groups[] = {
  939. "gpio91",
  940. };
  941. static const char * const tsif2_clk_groups[] = {
  942. "gpio92",
  943. };
  944. static const char * const qup11_groups[] = {
  945. "gpio92", "gpio93", "gpio94", "gpio95",
  946. };
  947. static const char * const qspi0_clk_groups[] = {
  948. "gpio92",
  949. };
  950. static const char * const sdc4_clk_groups[] = {
  951. "gpio92",
  952. };
  953. static const char * const atest_usb02_groups[] = {
  954. "gpio92",
  955. };
  956. static const char * const tsif2_en_groups[] = {
  957. "gpio93",
  958. };
  959. static const char * const qspi03_groups[] = {
  960. "gpio93",
  961. };
  962. static const char * const sdc42_groups[] = {
  963. "gpio93",
  964. };
  965. static const char * const atest_tsens_groups[] = {
  966. "gpio93",
  967. };
  968. static const char * const atest_usb01_groups[] = {
  969. "gpio93",
  970. };
  971. static const char * const tsif2_data_groups[] = {
  972. "gpio94",
  973. };
  974. static const char * const sdc41_groups[] = {
  975. "gpio94",
  976. };
  977. static const char * const atest_usb00_groups[] = {
  978. "gpio94",
  979. };
  980. static const char * const tsif2_sync_groups[] = {
  981. "gpio95",
  982. };
  983. static const char * const sdc40_groups[] = {
  984. "gpio95",
  985. };
  986. static const char * const atest_usb2_groups[] = {
  987. "gpio95",
  988. };
  989. static const char * const tsif2_error_groups[] = {
  990. "gpio96",
  991. };
  992. static const char * const sd_write_groups[] = {
  993. "gpio97",
  994. };
  995. static const char * const tsif1_error_groups[] = {
  996. "gpio97",
  997. };
  998. static const char * const qup7_groups[] = {
  999. "gpio98", "gpio99", "gpio100", "gpio101",
  1000. };
  1001. static const char * const ddr_bist_groups[] = {
  1002. "gpio98", "gpio99", "gpio145", "gpio146",
  1003. };
  1004. static const char * const pll_bypassnl_groups[] = {
  1005. "gpio100",
  1006. };
  1007. static const char * const pll_reset_groups[] = {
  1008. "gpio101",
  1009. };
  1010. static const char * const pci_e1_groups[] = {
  1011. "gpio102", "gpio103",
  1012. };
  1013. static const char * const phase_flag4_groups[] = {
  1014. "gpio102",
  1015. };
  1016. static const char * const atest_usb23_groups[] = {
  1017. "gpio102",
  1018. };
  1019. static const char * const uim2_data_groups[] = {
  1020. "gpio105",
  1021. };
  1022. static const char * const uim2_clk_groups[] = {
  1023. "gpio106",
  1024. };
  1025. static const char * const uim2_reset_groups[] = {
  1026. "gpio107",
  1027. };
  1028. static const char * const uim2_present_groups[] = {
  1029. "gpio108",
  1030. };
  1031. static const char * const uim1_data_groups[] = {
  1032. "gpio109",
  1033. };
  1034. static const char * const uim1_clk_groups[] = {
  1035. "gpio110",
  1036. };
  1037. static const char * const uim1_reset_groups[] = {
  1038. "gpio111",
  1039. };
  1040. static const char * const uim1_present_groups[] = {
  1041. "gpio112",
  1042. };
  1043. static const char * const uim_batt_groups[] = {
  1044. "gpio113",
  1045. };
  1046. static const char * const aoss_cti_groups[] = {
  1047. "gpio113",
  1048. };
  1049. static const char * const qup1_groups[] = {
  1050. "gpio114", "gpio115", "gpio116", "gpio117",
  1051. };
  1052. static const char * const rgmii_txc_groups[] = {
  1053. "gpio114",
  1054. };
  1055. static const char * const rgmii_rxc_groups[] = {
  1056. "gpio115",
  1057. };
  1058. static const char * const adsp_ext_groups[] = {
  1059. "gpio115",
  1060. };
  1061. static const char * const rgmii_rx_groups[] = {
  1062. "gpio116",
  1063. };
  1064. static const char * const rgmii_rxd0_groups[] = {
  1065. "gpio117",
  1066. };
  1067. static const char * const rgmii_rxd1_groups[] = {
  1068. "gpio118",
  1069. };
  1070. static const char * const qup5_groups[] = {
  1071. "gpio119", "gpio120", "gpio121", "gpio122",
  1072. };
  1073. static const char * const rgmii_rxd2_groups[] = {
  1074. "gpio119",
  1075. };
  1076. static const char * const rgmii_rxd3_groups[] = {
  1077. "gpio120",
  1078. };
  1079. static const char * const phase_flag17_groups[] = {
  1080. "gpio120",
  1081. };
  1082. static const char * const rgmii_tx_groups[] = {
  1083. "gpio121",
  1084. };
  1085. static const char * const phase_flag16_groups[] = {
  1086. "gpio121",
  1087. };
  1088. static const char * const atest_usb21_groups[] = {
  1089. "gpio121",
  1090. };
  1091. static const char * const rgmii_txd0_groups[] = {
  1092. "gpio122",
  1093. };
  1094. static const char * const phase_flag15_groups[] = {
  1095. "gpio122",
  1096. };
  1097. static const char * const atest_usb20_groups[] = {
  1098. "gpio122",
  1099. };
  1100. static const char * const phase_flag14_groups[] = {
  1101. "gpio123",
  1102. };
  1103. static const char * const emac_phy_groups[] = {
  1104. "gpio124",
  1105. };
  1106. static const char * const hs3_mi2s_groups[] = {
  1107. "gpio125", "gpio165", "gpio166", "gpio167", "gpio168",
  1108. };
  1109. static const char * const phase_flag22_groups[] = {
  1110. "gpio125",
  1111. };
  1112. static const char * const sec_mi2s_groups[] = {
  1113. "gpio126", "gpio127", "gpio128", "gpio129", "gpio130",
  1114. };
  1115. static const char * const qup2_groups[] = {
  1116. "gpio126", "gpio127", "gpio128", "gpio129",
  1117. };
  1118. static const char * const jitter_bist_groups[] = {
  1119. "gpio129",
  1120. };
  1121. static const char * const pll_bist_groups[] = {
  1122. "gpio130",
  1123. };
  1124. static const char * const ter_mi2s_groups[] = {
  1125. "gpio131", "gpio132", "gpio133", "gpio134", "gpio135",
  1126. };
  1127. static const char * const gcc_gp1_groups[] = {
  1128. "gpio131", "gpio136",
  1129. };
  1130. static const char * const atest_char_groups[] = {
  1131. "gpio133",
  1132. };
  1133. static const char * const atest_char0_groups[] = {
  1134. "gpio134",
  1135. };
  1136. static const char * const atest_char1_groups[] = {
  1137. "gpio135",
  1138. };
  1139. static const char * const qua_mi2s_groups[] = {
  1140. "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", "gpio141",
  1141. "gpio142",
  1142. };
  1143. static const char * const gcc_gp4_groups[] = {
  1144. "gpio139", "gpio182",
  1145. };
  1146. static const char * const gcc_gp5_groups[] = {
  1147. "gpio140", "gpio183",
  1148. };
  1149. static const char * const atest_char2_groups[] = {
  1150. "gpio140",
  1151. };
  1152. static const char * const atest_char3_groups[] = {
  1153. "gpio142",
  1154. };
  1155. static const char * const pri_mi2s_groups[] = {
  1156. "gpio143", "gpio144", "gpio146", "gpio147",
  1157. };
  1158. static const char * const qup3_groups[] = {
  1159. "gpio144", "gpio145", "gpio146", "gpio147",
  1160. };
  1161. static const char * const pri_mi2s_ws_groups[] = {
  1162. "gpio145",
  1163. };
  1164. static const char * const spkr_i2s_groups[] = {
  1165. "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
  1166. };
  1167. static const char * const audio_ref_groups[] = {
  1168. "gpio148",
  1169. };
  1170. static const char * const phase_flag21_groups[] = {
  1171. "gpio148",
  1172. };
  1173. static const char * const lpass_slimbus_groups[] = {
  1174. "gpio149", "gpio150", "gpio151", "gpio152",
  1175. };
  1176. static const char * const phase_flag20_groups[] = {
  1177. "gpio149",
  1178. };
  1179. static const char * const phase_flag19_groups[] = {
  1180. "gpio150",
  1181. };
  1182. static const char * const tsense_pwm1_groups[] = {
  1183. "gpio150",
  1184. };
  1185. static const char * const tsense_pwm2_groups[] = {
  1186. "gpio150",
  1187. };
  1188. static const char * const phase_flag18_groups[] = {
  1189. "gpio151",
  1190. };
  1191. static const char * const phase_flag13_groups[] = {
  1192. "gpio152",
  1193. };
  1194. static const char * const btfm_slimbus_groups[] = {
  1195. "gpio153", "gpio154",
  1196. };
  1197. static const char * const hs1_mi2s_groups[] = {
  1198. "gpio155", "gpio156", "gpio157", "gpio158", "gpio159",
  1199. };
  1200. static const char * const phase_flag12_groups[] = {
  1201. "gpio155",
  1202. };
  1203. static const char * const phase_flag11_groups[] = {
  1204. "gpio156",
  1205. };
  1206. static const char * const phase_flag10_groups[] = {
  1207. "gpio157",
  1208. };
  1209. static const char * const phase_flag9_groups[] = {
  1210. "gpio158",
  1211. };
  1212. static const char * const cri_trng0_groups[] = {
  1213. "gpio159",
  1214. };
  1215. static const char * const phase_flag8_groups[] = {
  1216. "gpio159",
  1217. };
  1218. static const char * const hs2_mi2s_groups[] = {
  1219. "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
  1220. };
  1221. static const char * const cri_trng1_groups[] = {
  1222. "gpio160",
  1223. };
  1224. static const char * const phase_flag7_groups[] = {
  1225. "gpio160",
  1226. };
  1227. static const char * const qspi11_groups[] = {
  1228. "gpio161",
  1229. };
  1230. static const char * const cri_trng_groups[] = {
  1231. "gpio161",
  1232. };
  1233. static const char * const phase_flag24_groups[] = {
  1234. "gpio161",
  1235. };
  1236. static const char * const qspi10_groups[] = {
  1237. "gpio162",
  1238. };
  1239. static const char * const sp_cmu_groups[] = {
  1240. "gpio162",
  1241. };
  1242. static const char * const phase_flag6_groups[] = {
  1243. "gpio162",
  1244. };
  1245. static const char * const qspi1_clk_groups[] = {
  1246. "gpio163",
  1247. };
  1248. static const char * const prng_rosc_groups[] = {
  1249. "gpio163",
  1250. };
  1251. static const char * const phase_flag5_groups[] = {
  1252. "gpio163",
  1253. };
  1254. static const char * const phase_flag31_groups[] = {
  1255. "gpio164",
  1256. };
  1257. static const char * const phase_flag30_groups[] = {
  1258. "gpio165",
  1259. };
  1260. static const char * const phase_flag27_groups[] = {
  1261. "gpio166",
  1262. };
  1263. static const char * const phase_flag26_groups[] = {
  1264. "gpio167",
  1265. };
  1266. static const char * const phase_flag25_groups[] = {
  1267. "gpio168",
  1268. };
  1269. static const char * const pci_e2_groups[] = {
  1270. "gpio175", "gpio176",
  1271. };
  1272. static const char * const pci_e3_groups[] = {
  1273. "gpio178", "gpio179",
  1274. };
  1275. static const char * const cci_timer4_groups[] = {
  1276. "gpio178",
  1277. };
  1278. static const char * const qup19_groups[] = {
  1279. "gpio181", "gpio182", "gpio183", "gpio184",
  1280. };
  1281. static const char * const cci_timer5_groups[] = {
  1282. "gpio182",
  1283. };
  1284. static const char * const cci_timer6_groups[] = {
  1285. "gpio183",
  1286. };
  1287. static const char * const cci_timer7_groups[] = {
  1288. "gpio184",
  1289. };
  1290. static const char * const cci_timer8_groups[] = {
  1291. "gpio185",
  1292. };
  1293. static const char * const cci_timer9_groups[] = {
  1294. "gpio186",
  1295. };
  1296. static const char * const dp_hot_groups[] = {
  1297. "gpio189",
  1298. };
  1299. static const char * const qup0_groups[] = {
  1300. "gpio0", "gpio1", "gpio2", "gpio3",
  1301. };
  1302. static const char * const gpio_groups[] = {
  1303. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  1304. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio12", "gpio13",
  1305. "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20",
  1306. "gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27",
  1307. "gpio28", "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34",
  1308. "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
  1309. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48",
  1310. "gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55",
  1311. "gpio56", "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62",
  1312. "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69",
  1313. "gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76",
  1314. "gpio77", "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
  1315. "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90",
  1316. "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97",
  1317. "gpio98", "gpio99", "gpio100", "gpio101", "gpio102", "gpio103",
  1318. "gpio104", "gpio105", "gpio106", "gpio107", "gpio108", "gpio109",
  1319. "gpio110", "gpio111", "gpio112", "gpio113", "gpio114", "gpio115",
  1320. "gpio116", "gpio117", "gpio118", "gpio119", "gpio120", "gpio121",
  1321. "gpio122", "gpio123", "gpio124", "gpio125", "gpio126", "gpio127",
  1322. "gpio128", "gpio129", "gpio130", "gpio131", "gpio132", "gpio133",
  1323. "gpio134", "gpio135", "gpio136", "gpio137", "gpio138", "gpio139",
  1324. "gpio140", "gpio141", "gpio142", "gpio143", "gpio144", "gpio145",
  1325. "gpio146", "gpio147", "gpio148", "gpio149", "gpio150", "gpio151",
  1326. "gpio152", "gpio153", "gpio154", "gpio155", "gpio156", "gpio157",
  1327. "gpio158", "gpio159", "gpio160", "gpio161", "gpio162", "gpio163",
  1328. "gpio164", "gpio165", "gpio166", "gpio167", "gpio168", "gpio169",
  1329. "gpio170", "gpio171", "gpio172", "gpio173", "gpio174", "gpio175",
  1330. "gpio176", "gpio177", "gpio177", "gpio178", "gpio179", "gpio180",
  1331. "gpio181", "gpio182", "gpio183", "gpio184", "gpio185", "gpio186",
  1332. "gpio186", "gpio187", "gpio187", "gpio188", "gpio188", "gpio189",
  1333. };
  1334. static const char * const egpio_groups[] = {
  1335. "gpio155", "gpio156", "gpio157", "gpio158",
  1336. "gpio159", "gpio160", "gpio161", "gpio162",
  1337. "gpio163", "gpio164", "gpio165", "gpio166",
  1338. "gpio167", "gpio168",
  1339. "gpio169", "gpio172", "gpio173", "gpio174",
  1340. };
  1341. static const char * const cci_i2c_groups[] = {
  1342. "gpio0", "gpio1", "gpio2", "gpio3", "gpio17", "gpio18", "gpio19",
  1343. "gpio20", "gpio31", "gpio32", "gpio33", "gpio34", "gpio39", "gpio40",
  1344. "gpio41", "gpio42",
  1345. };
  1346. static const char * const qup6_groups[] = {
  1347. "gpio4", "gpio5", "gpio6", "gpio7",
  1348. };
  1349. static const char * const rgmii_txd1_groups[] = {
  1350. "gpio4",
  1351. };
  1352. static const char * const phase_flag3_groups[] = {
  1353. "gpio4",
  1354. };
  1355. static const char * const rgmii_txd2_groups[] = {
  1356. "gpio5",
  1357. };
  1358. static const char * const phase_flag2_groups[] = {
  1359. "gpio5",
  1360. };
  1361. static const char * const rgmii_txd3_groups[] = {
  1362. "gpio6",
  1363. };
  1364. static const char * const qup_l6_groups[] = {
  1365. "gpio6", "gpio34", "gpio37", "gpio97",
  1366. };
  1367. static const char * const phase_flag1_groups[] = {
  1368. "gpio6",
  1369. };
  1370. static const char * const debug_hot_groups[] = {
  1371. "gpio7",
  1372. };
  1373. static const char * const rgmii_mdc_groups[] = {
  1374. "gpio7",
  1375. };
  1376. static const char * const qup_l5_groups[] = {
  1377. "gpio7", "gpio33", "gpio36", "gpio96",
  1378. };
  1379. static const char * const phase_flag0_groups[] = {
  1380. "gpio7",
  1381. };
  1382. static const char * const mdp_vsync_groups[] = {
  1383. "gpio8", "gpio9", "gpio10", "gpio60", "gpio82",
  1384. };
  1385. static const char * const qup10_groups[] = {
  1386. "gpio9", "gpio10", "gpio11", "gpio12",
  1387. };
  1388. static const char * const edp_hot_groups[] = {
  1389. "gpio10",
  1390. };
  1391. static const char * const m_voc_groups[] = {
  1392. "gpio10",
  1393. };
  1394. static const char * const edp_lcd_groups[] = {
  1395. "gpio11",
  1396. };
  1397. static const char * const cam_mclk_groups[] = {
  1398. "gpio13", "gpio14", "gpio15", "gpio16", "gpio25", "gpio179", "gpio180",
  1399. "gpio181",
  1400. };
  1401. static const char * const qdss_gpio0_groups[] = {
  1402. "gpio13", "gpio114",
  1403. };
  1404. static const char * const qdss_gpio1_groups[] = {
  1405. "gpio14", "gpio115",
  1406. };
  1407. static const char * const qdss_gpio2_groups[] = {
  1408. "gpio15", "gpio116",
  1409. };
  1410. static const char * const qdss_gpio3_groups[] = {
  1411. "gpio16", "gpio117",
  1412. };
  1413. static const char * const qdss_gpio4_groups[] = {
  1414. "gpio17", "gpio118",
  1415. };
  1416. static const char * const qdss_gpio5_groups[] = {
  1417. "gpio18", "gpio119",
  1418. };
  1419. static const char * const qdss_gpio6_groups[] = {
  1420. "gpio19", "gpio39",
  1421. };
  1422. static const char * const qdss_gpio7_groups[] = {
  1423. "gpio20", "gpio40",
  1424. };
  1425. static const char * const cci_timer0_groups[] = {
  1426. "gpio21",
  1427. };
  1428. static const char * const gcc_gp2_groups[] = {
  1429. "gpio21", "gpio137",
  1430. };
  1431. static const char * const qdss_gpio8_groups[] = {
  1432. "gpio21", "gpio133",
  1433. };
  1434. static const char * const cci_timer1_groups[] = {
  1435. "gpio22",
  1436. };
  1437. static const char * const gcc_gp3_groups[] = {
  1438. "gpio22", "gpio138",
  1439. };
  1440. static const char * const qdss_gpio_groups[] = {
  1441. "gpio22", "gpio28", "gpio120", "gpio121",
  1442. };
  1443. static const char * const cci_timer2_groups[] = {
  1444. "gpio23",
  1445. };
  1446. static const char * const qup18_groups[] = {
  1447. "gpio23", "gpio24", "gpio25", "gpio26",
  1448. };
  1449. static const char * const qdss_gpio9_groups[] = {
  1450. "gpio23", "gpio134",
  1451. };
  1452. static const char * const cci_timer3_groups[] = {
  1453. "gpio24",
  1454. };
  1455. static const char * const cci_async_groups[] = {
  1456. "gpio24", "gpio25", "gpio26", "gpio176", "gpio185", "gpio186",
  1457. };
  1458. static const char * const qdss_gpio10_groups[] = {
  1459. "gpio24", "gpio135",
  1460. };
  1461. static const char * const qdss_gpio11_groups[] = {
  1462. "gpio25", "gpio132",
  1463. };
  1464. static const char * const qdss_gpio12_groups[] = {
  1465. "gpio26", "gpio130",
  1466. };
  1467. static const char * const qup15_groups[] = {
  1468. "gpio27", "gpio28", "gpio29", "gpio30",
  1469. };
  1470. static const char * const qdss_gpio15_groups[] = {
  1471. "gpio27", "gpio42",
  1472. };
  1473. static const char * const qdss_gpio13_groups[] = {
  1474. "gpio29", "gpio92",
  1475. };
  1476. static const char * const qdss_gpio14_groups[] = {
  1477. "gpio30", "gpio41",
  1478. };
  1479. static const char * const phase_flag23_groups[] = {
  1480. "gpio33",
  1481. };
  1482. static const char * const dbg_out_groups[] = {
  1483. "gpio34",
  1484. };
  1485. static const char * const atest_usb22_groups[] = {
  1486. "gpio34",
  1487. };
  1488. static const char * const pci_e0_groups[] = {
  1489. "gpio35", "gpio36",
  1490. };
  1491. static const char * const qup_l4_groups[] = {
  1492. "gpio35", "gpio59", "gpio60", "gpio95",
  1493. };
  1494. static const char * const agera_pll_groups[] = {
  1495. "gpio37",
  1496. };
  1497. static const char * const usb0_phy_groups[] = {
  1498. "gpio38",
  1499. };
  1500. static const char * const qup9_groups[] = {
  1501. "gpio39", "gpio40", "gpio41", "gpio42",
  1502. };
  1503. static const char * const qup13_groups[] = {
  1504. "gpio43", "gpio44", "gpio45", "gpio46",
  1505. };
  1506. static const char * const qup14_groups[] = {
  1507. "gpio47", "gpio48", "gpio49", "gpio50",
  1508. };
  1509. static const char * const usb2phy_ac_groups[] = {
  1510. "gpio47", "gpio48", "gpio113", "gpio123",
  1511. };
  1512. static const char * const qdss_cti_groups[] = {
  1513. "gpio49", "gpio50", "gpio81", "gpio82", "gpio89", "gpio90", "gpio141",
  1514. "gpio142",
  1515. };
  1516. static const char * const qup4_groups[] = {
  1517. "gpio51", "gpio52", "gpio53", "gpio54",
  1518. };
  1519. static const char * const phase_flag29_groups[] = {
  1520. "gpio53",
  1521. };
  1522. static const char * const phase_flag28_groups[] = {
  1523. "gpio54",
  1524. };
  1525. static const char * const qup17_groups[] = {
  1526. "gpio55", "gpio56", "gpio57", "gpio58",
  1527. };
  1528. static const char * const qspi1_cs_groups[] = {
  1529. "gpio55", "gpio164",
  1530. };
  1531. static const char * const qspi13_groups[] = {
  1532. "gpio56",
  1533. };
  1534. static const char * const qspi12_groups[] = {
  1535. "gpio57",
  1536. };
  1537. static const char * const usb1_phy_groups[] = {
  1538. "gpio58",
  1539. };
  1540. static const char * const rgmii_mdio_groups[] = {
  1541. "gpio59",
  1542. };
  1543. static const char * const GPS_TX_groups[] = {
  1544. "gpio60", "gpio76", "gpio77", "gpio81", "gpio82",
  1545. };
  1546. static const char * const NAV_PPS_groups[] = {
  1547. "gpio60", "gpio60", "gpio76", "gpio76", "gpio77", "gpio77", "gpio81",
  1548. "gpio81", "gpio82", "gpio82",
  1549. };
  1550. static const char * const atest_usb1_groups[] = {
  1551. "gpio60",
  1552. };
  1553. static const char * const ddr_pxi0_groups[] = {
  1554. "gpio60", "gpio62",
  1555. };
  1556. static const char * const QLINK_REQUEST_groups[] = {
  1557. "gpio61",
  1558. };
  1559. static const char * const QLINK_ENABLE_groups[] = {
  1560. "gpio62",
  1561. };
  1562. static const char * const atest_tsens2_groups[] = {
  1563. "gpio62",
  1564. };
  1565. static const char * const atest_usb13_groups[] = {
  1566. "gpio62",
  1567. };
  1568. static const char * const vsense_trigger_groups[] = {
  1569. "gpio62",
  1570. };
  1571. static const char * const wmss_reset_groups[] = {
  1572. "gpio63",
  1573. };
  1574. static const char * const atest_usb12_groups[] = {
  1575. "gpio63",
  1576. };
  1577. static const char * const ddr_pxi1_groups[] = {
  1578. "gpio63", "gpio64",
  1579. };
  1580. static const char * const wlan1_adc1_groups[] = {
  1581. "gpio63",
  1582. };
  1583. static const char * const GRFC8_groups[] = {
  1584. "gpio64",
  1585. };
  1586. static const char * const atest_usb11_groups[] = {
  1587. "gpio64",
  1588. };
  1589. static const char * const wlan1_adc0_groups[] = {
  1590. "gpio64",
  1591. };
  1592. static const char * const GRFC9_groups[] = {
  1593. "gpio65",
  1594. };
  1595. static const char * const atest_usb10_groups[] = {
  1596. "gpio65",
  1597. };
  1598. static const char * const ddr_pxi2_groups[] = {
  1599. "gpio65", "gpio68",
  1600. };
  1601. static const char * const wlan2_adc1_groups[] = {
  1602. "gpio65",
  1603. };
  1604. static const char * const GRFC10_groups[] = {
  1605. "gpio66",
  1606. };
  1607. static const char * const GRFC11_groups[] = {
  1608. "gpio67",
  1609. };
  1610. static const char * const GRFC12_groups[] = {
  1611. "gpio68",
  1612. };
  1613. static const char * const pa_indicator_groups[] = {
  1614. "gpio68",
  1615. };
  1616. static const char * const atest_usb3_groups[] = {
  1617. "gpio68",
  1618. };
  1619. static const char * const wlan2_adc0_groups[] = {
  1620. "gpio68",
  1621. };
  1622. static const char * const mss_lte_groups[] = {
  1623. "gpio69", "gpio70",
  1624. };
  1625. static const char * const GRFC0_groups[] = {
  1626. "gpio71",
  1627. };
  1628. static const char * const atest_usb33_groups[] = {
  1629. "gpio71",
  1630. };
  1631. static const char * const ddr_pxi3_groups[] = {
  1632. "gpio71", "gpio72",
  1633. };
  1634. static const char * const GRFC1_groups[] = {
  1635. "gpio72",
  1636. };
  1637. static const char * const atest_usb32_groups[] = {
  1638. "gpio72",
  1639. };
  1640. static const struct msm_function sdmshrike_functions[] = {
  1641. FUNCTION(GRFC2),
  1642. FUNCTION(atest_usb31),
  1643. FUNCTION(emac_pps),
  1644. FUNCTION(ddr_pxi4),
  1645. FUNCTION(GRFC3),
  1646. FUNCTION(tgu_ch4),
  1647. FUNCTION(atest_usb30),
  1648. FUNCTION(GRFC4),
  1649. FUNCTION(tgu_ch7),
  1650. FUNCTION(atest_usb4),
  1651. FUNCTION(ddr_pxi5),
  1652. FUNCTION(GRFC5),
  1653. FUNCTION(tgu_ch6),
  1654. FUNCTION(atest_usb43),
  1655. FUNCTION(GRFC6),
  1656. FUNCTION(tgu_ch5),
  1657. FUNCTION(atest_usb42),
  1658. FUNCTION(ddr_pxi6),
  1659. FUNCTION(GRFC7),
  1660. FUNCTION(atest_usb41),
  1661. FUNCTION(GRFC13),
  1662. FUNCTION(GRFC14),
  1663. FUNCTION(GRFC15),
  1664. FUNCTION(GRFC16),
  1665. FUNCTION(qup12),
  1666. FUNCTION(qup16),
  1667. FUNCTION(tsif1_clk),
  1668. FUNCTION(qup8),
  1669. FUNCTION(qspi0_cs),
  1670. FUNCTION(tgu_ch3),
  1671. FUNCTION(atest_usb40),
  1672. FUNCTION(ddr_pxi7),
  1673. FUNCTION(tsif1_en),
  1674. FUNCTION(qspi00),
  1675. FUNCTION(mdp_vsync0),
  1676. FUNCTION(mdp_vsync1),
  1677. FUNCTION(mdp_vsync2),
  1678. FUNCTION(mdp_vsync3),
  1679. FUNCTION(mdp_vsync4),
  1680. FUNCTION(mdp_vsync5),
  1681. FUNCTION(tgu_ch0),
  1682. FUNCTION(tsif1_data),
  1683. FUNCTION(qspi01),
  1684. FUNCTION(sdc4_cmd),
  1685. FUNCTION(tgu_ch1),
  1686. FUNCTION(atest_usb0),
  1687. FUNCTION(tsif1_sync),
  1688. FUNCTION(qspi02),
  1689. FUNCTION(sdc43),
  1690. FUNCTION(vfr_1),
  1691. FUNCTION(tgu_ch2),
  1692. FUNCTION(atest_usb03),
  1693. FUNCTION(tsif2_clk),
  1694. FUNCTION(qup11),
  1695. FUNCTION(qspi0_clk),
  1696. FUNCTION(sdc4_clk),
  1697. FUNCTION(atest_usb02),
  1698. FUNCTION(tsif2_en),
  1699. FUNCTION(qspi03),
  1700. FUNCTION(sdc42),
  1701. FUNCTION(atest_tsens),
  1702. FUNCTION(atest_usb01),
  1703. FUNCTION(tsif2_data),
  1704. FUNCTION(sdc41),
  1705. FUNCTION(atest_usb00),
  1706. FUNCTION(tsif2_sync),
  1707. FUNCTION(sdc40),
  1708. FUNCTION(atest_usb2),
  1709. FUNCTION(tsif2_error),
  1710. FUNCTION(sd_write),
  1711. FUNCTION(tsif1_error),
  1712. FUNCTION(qup7),
  1713. FUNCTION(ddr_bist),
  1714. FUNCTION(pll_bypassnl),
  1715. FUNCTION(pll_reset),
  1716. FUNCTION(pci_e1),
  1717. FUNCTION(phase_flag4),
  1718. FUNCTION(atest_usb23),
  1719. FUNCTION(uim2_data),
  1720. FUNCTION(uim2_clk),
  1721. FUNCTION(uim2_reset),
  1722. FUNCTION(uim2_present),
  1723. FUNCTION(uim1_data),
  1724. FUNCTION(uim1_clk),
  1725. FUNCTION(uim1_reset),
  1726. FUNCTION(uim1_present),
  1727. FUNCTION(uim_batt),
  1728. FUNCTION(aoss_cti),
  1729. FUNCTION(qup1),
  1730. FUNCTION(rgmii_txc),
  1731. FUNCTION(rgmii_rxc),
  1732. FUNCTION(adsp_ext),
  1733. FUNCTION(rgmii_rx),
  1734. FUNCTION(rgmii_rxd0),
  1735. FUNCTION(rgmii_rxd1),
  1736. FUNCTION(qup5),
  1737. FUNCTION(rgmii_rxd2),
  1738. FUNCTION(rgmii_rxd3),
  1739. FUNCTION(phase_flag17),
  1740. FUNCTION(rgmii_tx),
  1741. FUNCTION(phase_flag16),
  1742. FUNCTION(atest_usb21),
  1743. FUNCTION(rgmii_txd0),
  1744. FUNCTION(phase_flag15),
  1745. FUNCTION(atest_usb20),
  1746. FUNCTION(phase_flag14),
  1747. FUNCTION(emac_phy),
  1748. FUNCTION(hs3_mi2s),
  1749. FUNCTION(phase_flag22),
  1750. FUNCTION(sec_mi2s),
  1751. FUNCTION(qup2),
  1752. FUNCTION(jitter_bist),
  1753. FUNCTION(pll_bist),
  1754. FUNCTION(ter_mi2s),
  1755. FUNCTION(gcc_gp1),
  1756. FUNCTION(atest_char),
  1757. FUNCTION(atest_char0),
  1758. FUNCTION(atest_char1),
  1759. FUNCTION(qua_mi2s),
  1760. FUNCTION(gcc_gp4),
  1761. FUNCTION(gcc_gp5),
  1762. FUNCTION(atest_char2),
  1763. FUNCTION(atest_char3),
  1764. FUNCTION(pri_mi2s),
  1765. FUNCTION(qup3),
  1766. FUNCTION(pri_mi2s_ws),
  1767. FUNCTION(spkr_i2s),
  1768. FUNCTION(audio_ref),
  1769. FUNCTION(phase_flag21),
  1770. FUNCTION(lpass_slimbus),
  1771. FUNCTION(phase_flag20),
  1772. FUNCTION(phase_flag19),
  1773. FUNCTION(tsense_pwm1),
  1774. FUNCTION(tsense_pwm2),
  1775. FUNCTION(phase_flag18),
  1776. FUNCTION(phase_flag13),
  1777. FUNCTION(btfm_slimbus),
  1778. FUNCTION(hs1_mi2s),
  1779. FUNCTION(phase_flag12),
  1780. FUNCTION(phase_flag11),
  1781. FUNCTION(phase_flag10),
  1782. FUNCTION(phase_flag9),
  1783. FUNCTION(cri_trng0),
  1784. FUNCTION(phase_flag8),
  1785. FUNCTION(hs2_mi2s),
  1786. FUNCTION(cri_trng1),
  1787. FUNCTION(phase_flag7),
  1788. FUNCTION(qspi11),
  1789. FUNCTION(cri_trng),
  1790. FUNCTION(phase_flag24),
  1791. FUNCTION(qspi10),
  1792. FUNCTION(sp_cmu),
  1793. FUNCTION(phase_flag6),
  1794. FUNCTION(qspi1_clk),
  1795. FUNCTION(prng_rosc),
  1796. FUNCTION(phase_flag5),
  1797. FUNCTION(phase_flag31),
  1798. FUNCTION(phase_flag30),
  1799. FUNCTION(phase_flag27),
  1800. FUNCTION(phase_flag26),
  1801. FUNCTION(phase_flag25),
  1802. FUNCTION(pci_e2),
  1803. FUNCTION(pci_e3),
  1804. FUNCTION(cci_timer4),
  1805. FUNCTION(qup19),
  1806. FUNCTION(cci_timer5),
  1807. FUNCTION(cci_timer6),
  1808. FUNCTION(cci_timer7),
  1809. FUNCTION(cci_timer8),
  1810. FUNCTION(cci_timer9),
  1811. FUNCTION(dp_hot),
  1812. FUNCTION(egpio),
  1813. FUNCTION(qup0),
  1814. FUNCTION(gpio),
  1815. FUNCTION(cci_i2c),
  1816. FUNCTION(qup6),
  1817. FUNCTION(rgmii_txd1),
  1818. FUNCTION(phase_flag3),
  1819. FUNCTION(rgmii_txd2),
  1820. FUNCTION(phase_flag2),
  1821. FUNCTION(rgmii_txd3),
  1822. FUNCTION(qup_l6),
  1823. FUNCTION(phase_flag1),
  1824. FUNCTION(debug_hot),
  1825. FUNCTION(rgmii_mdc),
  1826. FUNCTION(qup_l5),
  1827. FUNCTION(phase_flag0),
  1828. FUNCTION(mdp_vsync),
  1829. FUNCTION(qup10),
  1830. FUNCTION(edp_hot),
  1831. FUNCTION(m_voc),
  1832. FUNCTION(edp_lcd),
  1833. FUNCTION(cam_mclk),
  1834. FUNCTION(qdss_gpio0),
  1835. FUNCTION(qdss_gpio1),
  1836. FUNCTION(qdss_gpio2),
  1837. FUNCTION(qdss_gpio3),
  1838. FUNCTION(qdss_gpio4),
  1839. FUNCTION(qdss_gpio5),
  1840. FUNCTION(qdss_gpio6),
  1841. FUNCTION(qdss_gpio7),
  1842. FUNCTION(cci_timer0),
  1843. FUNCTION(gcc_gp2),
  1844. FUNCTION(qdss_gpio8),
  1845. FUNCTION(cci_timer1),
  1846. FUNCTION(gcc_gp3),
  1847. FUNCTION(qdss_gpio),
  1848. FUNCTION(cci_timer2),
  1849. FUNCTION(qup18),
  1850. FUNCTION(qdss_gpio9),
  1851. FUNCTION(cci_timer3),
  1852. FUNCTION(cci_async),
  1853. FUNCTION(qdss_gpio10),
  1854. FUNCTION(qdss_gpio11),
  1855. FUNCTION(qdss_gpio12),
  1856. FUNCTION(qup15),
  1857. FUNCTION(qdss_gpio15),
  1858. FUNCTION(qdss_gpio13),
  1859. FUNCTION(qdss_gpio14),
  1860. FUNCTION(phase_flag23),
  1861. FUNCTION(dbg_out),
  1862. FUNCTION(atest_usb22),
  1863. FUNCTION(pci_e0),
  1864. FUNCTION(qup_l4),
  1865. FUNCTION(agera_pll),
  1866. FUNCTION(usb0_phy),
  1867. FUNCTION(qup9),
  1868. FUNCTION(qup13),
  1869. FUNCTION(qup14),
  1870. FUNCTION(usb2phy_ac),
  1871. FUNCTION(qdss_cti),
  1872. FUNCTION(qup4),
  1873. FUNCTION(phase_flag29),
  1874. FUNCTION(phase_flag28),
  1875. FUNCTION(qup17),
  1876. FUNCTION(qspi1_cs),
  1877. FUNCTION(qspi13),
  1878. FUNCTION(qspi12),
  1879. FUNCTION(usb1_phy),
  1880. FUNCTION(rgmii_mdio),
  1881. FUNCTION(GPS_TX),
  1882. FUNCTION(NAV_PPS),
  1883. FUNCTION(atest_usb1),
  1884. FUNCTION(ddr_pxi0),
  1885. FUNCTION(QLINK_REQUEST),
  1886. FUNCTION(QLINK_ENABLE),
  1887. FUNCTION(atest_tsens2),
  1888. FUNCTION(atest_usb13),
  1889. FUNCTION(vsense_trigger),
  1890. FUNCTION(wmss_reset),
  1891. FUNCTION(atest_usb12),
  1892. FUNCTION(ddr_pxi1),
  1893. FUNCTION(wlan1_adc1),
  1894. FUNCTION(GRFC8),
  1895. FUNCTION(atest_usb11),
  1896. FUNCTION(wlan1_adc0),
  1897. FUNCTION(GRFC9),
  1898. FUNCTION(atest_usb10),
  1899. FUNCTION(ddr_pxi2),
  1900. FUNCTION(wlan2_adc1),
  1901. FUNCTION(GRFC10),
  1902. FUNCTION(GRFC11),
  1903. FUNCTION(GRFC12),
  1904. FUNCTION(pa_indicator),
  1905. FUNCTION(atest_usb3),
  1906. FUNCTION(wlan2_adc0),
  1907. FUNCTION(mss_lte),
  1908. FUNCTION(GRFC0),
  1909. FUNCTION(atest_usb33),
  1910. FUNCTION(ddr_pxi3),
  1911. FUNCTION(GRFC1),
  1912. FUNCTION(atest_usb32),
  1913. };
  1914. /* Every pin is maintained as a single group, and missing or non-existing pin
  1915. * would be maintained as dummy group to synchronize pin group index with
  1916. * pin descriptor registered with pinctrl core.
  1917. * Clients would not be able to request these dummy pin groups.
  1918. */
  1919. static const struct msm_pingroup sdmshrike_groups[] = {
  1920. [0] = PINGROUP(0, WEST, qup0, cci_i2c, NA, NA, NA, NA, NA, NA, NA),
  1921. [1] = PINGROUP(1, WEST, qup0, cci_i2c, NA, NA, NA, NA, NA, NA, NA),
  1922. [2] = PINGROUP(2, WEST, qup0, cci_i2c, NA, NA, NA, NA, NA, NA, NA),
  1923. [3] = PINGROUP(3, WEST, qup0, cci_i2c, NA, NA, NA, NA, NA, NA, NA),
  1924. [4] = PINGROUP(4, WEST, qup6, rgmii_txd1, NA, phase_flag3, NA, NA, NA,
  1925. NA, NA),
  1926. [5] = PINGROUP(5, WEST, qup6, rgmii_txd2, NA, phase_flag2, NA, NA, NA,
  1927. NA, NA),
  1928. [6] = PINGROUP(6, WEST, qup6, rgmii_txd3, qup_l6, NA, phase_flag1, NA,
  1929. NA, NA, NA),
  1930. [7] = PINGROUP(7, WEST, qup6, debug_hot, rgmii_mdc, qup_l5, NA,
  1931. phase_flag0, NA, NA, NA),
  1932. [8] = PINGROUP(8, EAST, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA),
  1933. [9] = PINGROUP(9, EAST, mdp_vsync, qup10, NA, NA, NA, NA, NA, NA, NA),
  1934. [10] = PINGROUP(10, EAST, edp_hot, m_voc, mdp_vsync, qup10, NA, NA, NA,
  1935. NA, NA),
  1936. [11] = PINGROUP(11, EAST, edp_lcd, qup10, NA, NA, NA, NA, NA, NA, NA),
  1937. [12] = PINGROUP(12, EAST, qup10, NA, NA, NA, NA, NA, NA, NA, NA),
  1938. [13] = PINGROUP(13, EAST, cam_mclk, qdss_gpio0, NA, NA, NA, NA, NA, NA,
  1939. NA),
  1940. [14] = PINGROUP(14, EAST, cam_mclk, qdss_gpio1, NA, NA, NA, NA, NA, NA,
  1941. NA),
  1942. [15] = PINGROUP(15, EAST, cam_mclk, qdss_gpio2, NA, NA, NA, NA, NA, NA,
  1943. NA),
  1944. [16] = PINGROUP(16, EAST, cam_mclk, qdss_gpio3, NA, NA, NA, NA, NA, NA,
  1945. NA),
  1946. [17] = PINGROUP(17, EAST, cci_i2c, qdss_gpio4, NA, NA, NA, NA, NA, NA,
  1947. NA),
  1948. [18] = PINGROUP(18, EAST, cci_i2c, qdss_gpio5, NA, NA, NA, NA, NA, NA,
  1949. NA),
  1950. [19] = PINGROUP(19, EAST, cci_i2c, qdss_gpio6, NA, NA, NA, NA, NA, NA,
  1951. NA),
  1952. [20] = PINGROUP(20, EAST, cci_i2c, qdss_gpio7, NA, NA, NA, NA, NA, NA,
  1953. NA),
  1954. [21] = PINGROUP(21, EAST, cci_timer0, gcc_gp2, qdss_gpio8, NA, NA, NA,
  1955. NA, NA, NA),
  1956. [22] = PINGROUP(22, EAST, cci_timer1, gcc_gp3, qdss_gpio, NA, NA, NA,
  1957. NA, NA, NA),
  1958. [23] = PINGROUP(23, EAST, cci_timer2, qup18, qdss_gpio9, NA, NA, NA,
  1959. NA, NA, NA),
  1960. [24] = PINGROUP(24, EAST, cci_timer3, cci_async, qup18, qdss_gpio10,
  1961. NA, NA, NA, NA, NA),
  1962. [25] = PINGROUP(25, EAST, cam_mclk, cci_async, qup18, qdss_gpio11, NA,
  1963. NA, NA, NA, NA),
  1964. [26] = PINGROUP(26, EAST, cci_async, qup18, qdss_gpio12, NA, NA, NA,
  1965. NA, NA, NA),
  1966. [27] = PINGROUP(27, EAST, qup15, NA, qdss_gpio15, NA, NA, NA, NA, NA,
  1967. NA),
  1968. [28] = PINGROUP(28, EAST, qup15, qdss_gpio, NA, NA, NA, NA, NA, NA, NA),
  1969. [29] = PINGROUP(29, EAST, qup15, qdss_gpio13, NA, NA, NA, NA, NA, NA,
  1970. NA),
  1971. [30] = PINGROUP(30, EAST, qup15, qdss_gpio14, NA, NA, NA, NA, NA, NA,
  1972. NA),
  1973. [31] = PINGROUP(31, EAST, cci_i2c, NA, NA, NA, NA, NA, NA, NA, NA),
  1974. [32] = PINGROUP(32, EAST, cci_i2c, NA, NA, NA, NA, NA, NA, NA, NA),
  1975. [33] = PINGROUP(33, EAST, cci_i2c, qup_l5, NA, phase_flag23, NA, NA,
  1976. NA, NA, NA),
  1977. [34] = PINGROUP(34, EAST, cci_i2c, qup_l6, dbg_out, atest_usb22, NA,
  1978. NA, NA, NA, NA),
  1979. [35] = PINGROUP(35, SOUTH, pci_e0, qup_l4, NA, NA, NA, NA, NA, NA, NA),
  1980. [36] = PINGROUP(36, SOUTH, pci_e0, qup_l5, NA, NA, NA, NA, NA, NA, NA),
  1981. [37] = PINGROUP(37, SOUTH, qup_l6, agera_pll, NA, NA, NA, NA, NA, NA,
  1982. NA),
  1983. [38] = PINGROUP(38, SOUTH, usb0_phy, NA, NA, NA, NA, NA, NA, NA, NA),
  1984. [39] = PINGROUP(39, EAST, qup9, cci_i2c, qdss_gpio6, NA, NA, NA, NA,
  1985. NA, NA),
  1986. [40] = PINGROUP(40, EAST, qup9, cci_i2c, qdss_gpio7, NA, NA, NA, NA,
  1987. NA, NA),
  1988. [41] = PINGROUP(41, EAST, qup9, cci_i2c, qdss_gpio14, NA, NA, NA, NA,
  1989. NA, NA),
  1990. [42] = PINGROUP(42, EAST, qup9, cci_i2c, qdss_gpio15, NA, NA, NA, NA,
  1991. NA, NA),
  1992. [43] = PINGROUP(43, EAST, qup13, NA, NA, NA, NA, NA, NA, NA, NA),
  1993. [44] = PINGROUP(44, EAST, qup13, NA, NA, NA, NA, NA, NA, NA, NA),
  1994. [45] = PINGROUP(45, EAST, qup13, NA, NA, NA, NA, NA, NA, NA, NA),
  1995. [46] = PINGROUP(46, EAST, qup13, NA, NA, NA, NA, NA, NA, NA, NA),
  1996. [47] = PINGROUP(47, EAST, qup14, usb2phy_ac, NA, NA, NA, NA, NA, NA,
  1997. NA),
  1998. [48] = PINGROUP(48, EAST, qup14, usb2phy_ac, NA, NA, NA, NA, NA, NA,
  1999. NA),
  2000. [49] = PINGROUP(49, EAST, qup14, qdss_cti, NA, NA, NA, NA, NA, NA, NA),
  2001. [50] = PINGROUP(50, EAST, qup14, qdss_cti, NA, NA, NA, NA, NA, NA, NA),
  2002. [51] = PINGROUP(51, WEST, qup4, NA, NA, NA, NA, NA, NA, NA, NA),
  2003. [52] = PINGROUP(52, WEST, qup4, NA, NA, NA, NA, NA, NA, NA, NA),
  2004. [53] = PINGROUP(53, WEST, qup4, NA, phase_flag29, NA, NA, NA, NA, NA,
  2005. NA),
  2006. [54] = PINGROUP(54, WEST, qup4, NA, NA, phase_flag28, NA, NA, NA, NA,
  2007. NA),
  2008. [55] = PINGROUP(55, WEST, qup17, qspi1_cs, NA, NA, NA, NA, NA, NA, NA),
  2009. [56] = PINGROUP(56, WEST, qup17, qspi13, NA, NA, NA, NA, NA, NA, NA),
  2010. [57] = PINGROUP(57, WEST, qup17, qspi12, NA, NA, NA, NA, NA, NA, NA),
  2011. [58] = PINGROUP(58, WEST, usb1_phy, qup17, NA, NA, NA, NA, NA, NA, NA),
  2012. [59] = PINGROUP(59, WEST, rgmii_mdio, qup_l4, NA, NA, NA, NA, NA, NA,
  2013. NA),
  2014. [60] = PINGROUP(60, EAST, GPS_TX, NAV_PPS, NAV_PPS, qup_l4, mdp_vsync,
  2015. atest_usb1, ddr_pxi0, NA, NA),
  2016. [61] = PINGROUP(61, EAST, QLINK_REQUEST, NA, NA, NA, NA, NA, NA, NA,
  2017. NA),
  2018. [62] = PINGROUP(62, EAST, QLINK_ENABLE, atest_tsens2, atest_usb13,
  2019. ddr_pxi0, vsense_trigger, NA, NA, NA, NA),
  2020. [63] = PINGROUP(63, EAST, wmss_reset, NA, atest_usb12, ddr_pxi1,
  2021. wlan1_adc1, NA, NA, NA, NA),
  2022. [64] = PINGROUP(64, EAST, GRFC8, NA, atest_usb11, ddr_pxi1, wlan1_adc0,
  2023. NA, NA, NA, NA),
  2024. [65] = PINGROUP(65, EAST, GRFC9, atest_usb10, ddr_pxi2, wlan2_adc1, NA,
  2025. NA, NA, NA, NA),
  2026. [66] = PINGROUP(66, EAST, GRFC10, NA, NA, NA, NA, NA, NA, NA, NA),
  2027. [67] = PINGROUP(67, EAST, GRFC11, NA, NA, NA, NA, NA, NA, NA, NA),
  2028. [68] = PINGROUP(68, EAST, GRFC12, pa_indicator, atest_usb3, ddr_pxi2,
  2029. wlan2_adc0, NA, NA, NA, NA),
  2030. [69] = PINGROUP(69, EAST, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA),
  2031. [70] = PINGROUP(70, EAST, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA),
  2032. [71] = PINGROUP(71, EAST, NA, GRFC0, atest_usb33, ddr_pxi3, NA, NA, NA,
  2033. NA, NA),
  2034. [72] = PINGROUP(72, EAST, NA, GRFC1, atest_usb32, ddr_pxi3, NA, NA, NA,
  2035. NA, NA),
  2036. [73] = PINGROUP(73, EAST, NA, GRFC2, atest_usb31, ddr_pxi4, NA, NA, NA,
  2037. NA, NA),
  2038. [74] = PINGROUP(74, EAST, NA, GRFC3, tgu_ch4, atest_usb30, ddr_pxi4,
  2039. NA, NA, NA, NA),
  2040. [75] = PINGROUP(75, EAST, NA, GRFC4, tgu_ch7, atest_usb4, ddr_pxi5, NA,
  2041. NA, NA, NA),
  2042. [76] = PINGROUP(76, EAST, NA, GRFC5, GPS_TX, NAV_PPS, NAV_PPS, tgu_ch6,
  2043. atest_usb43, ddr_pxi5, NA),
  2044. [77] = PINGROUP(77, EAST, NA, GRFC6, GPS_TX, NAV_PPS, NAV_PPS, tgu_ch5,
  2045. atest_usb42, ddr_pxi6, NA),
  2046. [78] = PINGROUP(78, EAST, NA, GRFC7, NA, atest_usb41, ddr_pxi6, NA, NA,
  2047. NA, NA),
  2048. [79] = PINGROUP(79, EAST, NA, GRFC13, NA, NA, NA, NA, NA, NA, NA),
  2049. [80] = PINGROUP(80, EAST, NA, GRFC14, NA, NA, NA, NA, NA, NA, NA),
  2050. [81] = PINGROUP(81, EAST, NA, GRFC15, GPS_TX, NAV_PPS, NAV_PPS,
  2051. emac_pps, qdss_cti, NA, NA),
  2052. [82] = PINGROUP(82, EAST, NA, GRFC16, GPS_TX, NAV_PPS, NAV_PPS,
  2053. mdp_vsync, qdss_cti, NA, NA),
  2054. [83] = PINGROUP(83, EAST, qup12, qup16, NA, NA, NA, NA, NA, NA, NA),
  2055. [84] = PINGROUP(84, EAST, qup12, qup16, NA, NA, NA, NA, NA, NA, NA),
  2056. [85] = PINGROUP(85, EAST, qup12, qup16, NA, NA, NA, NA, NA, NA, NA),
  2057. [86] = PINGROUP(86, EAST, qup12, qup16, NA, NA, NA, NA, NA, NA, NA),
  2058. [87] = PINGROUP(87, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  2059. [88] = PINGROUP(88, NORTH, tsif1_clk, qup8, qspi0_cs, tgu_ch3,
  2060. atest_usb40, ddr_pxi7, NA, NA, NA),
  2061. [89] = PINGROUP(89, NORTH, tsif1_en, qup8, qspi00, mdp_vsync0,
  2062. mdp_vsync1, mdp_vsync2, mdp_vsync3, mdp_vsync4,
  2063. mdp_vsync5),
  2064. [90] = PINGROUP(90, NORTH, tsif1_data, qup8, qspi01, sdc4_cmd, tgu_ch1,
  2065. qdss_cti, atest_usb0, ddr_pxi7, NA),
  2066. [91] = PINGROUP(91, NORTH, tsif1_sync, qup8, qspi02, sdc43, vfr_1,
  2067. tgu_ch2, atest_usb03, NA, NA),
  2068. [92] = PINGROUP(92, NORTH, tsif2_clk, qup11, qspi0_clk, sdc4_clk,
  2069. qdss_gpio13, atest_usb02, NA, NA, NA),
  2070. [93] = PINGROUP(93, NORTH, tsif2_en, qup11, qspi03, sdc42, atest_tsens,
  2071. atest_usb01, NA, NA, NA),
  2072. [94] = PINGROUP(94, NORTH, tsif2_data, qup11, qspi0_cs, sdc41, NA,
  2073. atest_usb00, NA, NA, NA),
  2074. [95] = PINGROUP(95, EAST, tsif2_sync, qup11, sdc40, qup_l4, atest_usb2,
  2075. NA, NA, NA, NA),
  2076. [96] = PINGROUP(96, WEST, tsif2_error, qup_l5, NA, NA, NA, NA, NA, NA,
  2077. NA),
  2078. [97] = PINGROUP(97, WEST, sd_write, tsif1_error, qup_l6, NA, NA, NA,
  2079. NA, NA, NA),
  2080. [98] = PINGROUP(98, WEST, qup7, ddr_bist, NA, NA, NA, NA, NA, NA, NA),
  2081. [99] = PINGROUP(99, WEST, qup7, ddr_bist, NA, NA, NA, NA, NA, NA, NA),
  2082. [100] = PINGROUP(100, WEST, qup7, pll_bypassnl, NA, NA, NA, NA, NA, NA,
  2083. NA),
  2084. [101] = PINGROUP(101, WEST, qup7, pll_reset, NA, NA, NA, NA, NA, NA,
  2085. NA),
  2086. [102] = PINGROUP(102, SOUTH, pci_e1, NA, phase_flag4, atest_usb23, NA,
  2087. NA, NA, NA, NA),
  2088. [103] = PINGROUP(103, SOUTH, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA),
  2089. [104] = PINGROUP(104, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  2090. [105] = PINGROUP(105, WEST, uim2_data, NA, NA, NA, NA, NA, NA, NA, NA),
  2091. [106] = PINGROUP(106, WEST, uim2_clk, NA, NA, NA, NA, NA, NA, NA, NA),
  2092. [107] = PINGROUP(107, WEST, uim2_reset, NA, NA, NA, NA, NA, NA, NA, NA),
  2093. [108] = PINGROUP(108, WEST, uim2_present, NA, NA, NA, NA, NA, NA, NA,
  2094. NA),
  2095. [109] = PINGROUP(109, WEST, uim1_data, NA, NA, NA, NA, NA, NA, NA, NA),
  2096. [110] = PINGROUP(110, WEST, uim1_clk, NA, NA, NA, NA, NA, NA, NA, NA),
  2097. [111] = PINGROUP(111, WEST, uim1_reset, NA, NA, NA, NA, NA, NA, NA, NA),
  2098. [112] = PINGROUP(112, WEST, uim1_present, NA, NA, NA, NA, NA, NA, NA,
  2099. NA),
  2100. [113] = PINGROUP(113, WEST, uim_batt, usb2phy_ac, aoss_cti, NA, NA, NA,
  2101. NA, NA, NA),
  2102. [114] = PINGROUP(114, WEST, qup1, rgmii_txc, NA, qdss_gpio0, NA, NA,
  2103. NA, NA, NA),
  2104. [115] = PINGROUP(115, WEST, qup1, rgmii_rxc, adsp_ext, NA, qdss_gpio1,
  2105. NA, NA, NA, NA),
  2106. [116] = PINGROUP(116, WEST, qup1, rgmii_rx, NA, qdss_gpio2, NA, NA, NA,
  2107. NA, NA),
  2108. [117] = PINGROUP(117, WEST, qup1, rgmii_rxd0, NA, qdss_gpio3, NA, NA,
  2109. NA, NA, NA),
  2110. [118] = PINGROUP(118, WEST, rgmii_rxd1, NA, qdss_gpio4, NA, NA, NA, NA,
  2111. NA, NA),
  2112. [119] = PINGROUP(119, WEST, qup5, rgmii_rxd2, NA, qdss_gpio5, NA, NA,
  2113. NA, NA, NA),
  2114. [120] = PINGROUP(120, WEST, qup5, rgmii_rxd3, NA, phase_flag17,
  2115. qdss_gpio, NA, NA, NA, NA),
  2116. [121] = PINGROUP(121, WEST, qup5, rgmii_tx, NA, phase_flag16,
  2117. qdss_gpio, atest_usb21, NA, NA, NA),
  2118. [122] = PINGROUP(122, WEST, qup5, rgmii_txd0, NA, phase_flag15,
  2119. atest_usb20, NA, NA, NA, NA),
  2120. [123] = PINGROUP(123, SOUTH, usb2phy_ac, NA, phase_flag14, NA, NA, NA,
  2121. NA, NA, NA),
  2122. [124] = PINGROUP(124, SOUTH, emac_phy, NA, NA, NA, NA, NA, NA, NA, NA),
  2123. [125] = PINGROUP(125, WEST, hs3_mi2s, NA, phase_flag22, NA, NA, NA, NA,
  2124. NA, NA),
  2125. [126] = PINGROUP(126, WEST, sec_mi2s, qup2, NA, NA, NA, NA, NA, NA, NA),
  2126. [127] = PINGROUP(127, WEST, sec_mi2s, qup2, NA, NA, NA, NA, NA, NA, NA),
  2127. [128] = PINGROUP(128, WEST, sec_mi2s, qup2, NA, NA, NA, NA, NA, NA, NA),
  2128. [129] = PINGROUP(129, WEST, sec_mi2s, qup2, jitter_bist, NA, NA, NA,
  2129. NA, NA, NA),
  2130. [130] = PINGROUP(130, WEST, sec_mi2s, pll_bist, NA, qdss_gpio12, NA,
  2131. NA, NA, NA, NA),
  2132. [131] = PINGROUP(131, WEST, ter_mi2s, gcc_gp1, NA, NA, NA, NA, NA, NA,
  2133. NA),
  2134. [132] = PINGROUP(132, WEST, ter_mi2s, NA, qdss_gpio11, NA, NA, NA, NA,
  2135. NA, NA),
  2136. [133] = PINGROUP(133, WEST, ter_mi2s, NA, qdss_gpio8, atest_char, NA,
  2137. NA, NA, NA, NA),
  2138. [134] = PINGROUP(134, WEST, ter_mi2s, NA, qdss_gpio9, atest_char0, NA,
  2139. NA, NA, NA, NA),
  2140. [135] = PINGROUP(135, WEST, ter_mi2s, NA, qdss_gpio10, atest_char1, NA,
  2141. NA, NA, NA, NA),
  2142. [136] = PINGROUP(136, WEST, qua_mi2s, gcc_gp1, NA, NA, NA, NA, NA, NA,
  2143. NA),
  2144. [137] = PINGROUP(137, WEST, qua_mi2s, gcc_gp2, NA, NA, NA, NA, NA, NA,
  2145. NA),
  2146. [138] = PINGROUP(138, WEST, qua_mi2s, gcc_gp3, NA, NA, NA, NA, NA, NA,
  2147. NA),
  2148. [139] = PINGROUP(139, WEST, qua_mi2s, gcc_gp4, NA, NA, NA, NA, NA, NA,
  2149. NA),
  2150. [140] = PINGROUP(140, WEST, qua_mi2s, gcc_gp5, NA, atest_char2, NA, NA,
  2151. NA, NA, NA),
  2152. [141] = PINGROUP(141, WEST, qua_mi2s, qdss_cti, NA, NA, NA, NA, NA, NA,
  2153. NA),
  2154. [142] = PINGROUP(142, WEST, qua_mi2s, NA, NA, qdss_cti, atest_char3,
  2155. NA, NA, NA, NA),
  2156. [143] = PINGROUP(143, WEST, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
  2157. [144] = PINGROUP(144, WEST, pri_mi2s, qup3, NA, NA, NA, NA, NA, NA, NA),
  2158. [145] = PINGROUP(145, WEST, pri_mi2s_ws, qup3, ddr_bist, NA, NA, NA,
  2159. NA, NA, NA),
  2160. [146] = PINGROUP(146, WEST, pri_mi2s, qup3, ddr_bist, NA, NA, NA, NA,
  2161. NA, NA),
  2162. [147] = PINGROUP(147, WEST, pri_mi2s, qup3, NA, NA, NA, NA, NA, NA, NA),
  2163. [148] = PINGROUP(148, WEST, spkr_i2s, audio_ref, NA, phase_flag21, NA,
  2164. NA, NA, NA, NA),
  2165. [149] = PINGROUP(149, WEST, lpass_slimbus, spkr_i2s, NA, phase_flag20,
  2166. NA, NA, NA, NA, NA),
  2167. [150] = PINGROUP(150, WEST, lpass_slimbus, spkr_i2s, NA, phase_flag19,
  2168. tsense_pwm1, tsense_pwm2, NA, NA, NA),
  2169. [151] = PINGROUP(151, WEST, lpass_slimbus, spkr_i2s, NA, phase_flag18,
  2170. NA, NA, NA, NA, NA),
  2171. [152] = PINGROUP(152, WEST, lpass_slimbus, spkr_i2s, NA, phase_flag13,
  2172. NA, NA, NA, NA, NA),
  2173. [153] = PINGROUP(153, WEST, btfm_slimbus, NA, NA, NA, NA, NA, NA, NA,
  2174. NA),
  2175. [154] = PINGROUP(154, WEST, btfm_slimbus, NA, NA, NA, NA, NA, NA, NA,
  2176. NA),
  2177. [155] = PINGROUP(155, WEST, hs1_mi2s, NA, phase_flag12, NA, NA, NA, NA,
  2178. NA, egpio),
  2179. [156] = PINGROUP(156, WEST, hs1_mi2s, NA, phase_flag11, NA, NA, NA, NA,
  2180. NA, egpio),
  2181. [157] = PINGROUP(157, WEST, hs1_mi2s, NA, phase_flag10, NA, NA, NA, NA,
  2182. NA, egpio),
  2183. [158] = PINGROUP(158, WEST, hs1_mi2s, NA, phase_flag9, NA, NA, NA, NA,
  2184. NA, egpio),
  2185. [159] = PINGROUP(159, WEST, hs1_mi2s, cri_trng0, NA, phase_flag8, NA,
  2186. NA, NA, NA, egpio),
  2187. [160] = PINGROUP(160, WEST, hs2_mi2s, cri_trng1, NA, phase_flag7, NA,
  2188. NA, NA, NA, egpio),
  2189. [161] = PINGROUP(161, WEST, hs2_mi2s, qspi11, cri_trng, NA,
  2190. phase_flag24, NA, NA, NA, egpio),
  2191. [162] = PINGROUP(162, WEST, hs2_mi2s, qspi10, sp_cmu, NA, phase_flag6,
  2192. NA, NA, NA, egpio),
  2193. [163] = PINGROUP(163, WEST, hs2_mi2s, qspi1_clk, prng_rosc, NA,
  2194. phase_flag5, NA, NA, NA, egpio),
  2195. [164] = PINGROUP(164, WEST, hs2_mi2s, qspi1_cs, NA, phase_flag31, NA,
  2196. NA, NA, NA, egpio),
  2197. [165] = PINGROUP(165, WEST, hs3_mi2s, NA, phase_flag30, NA, NA, NA, NA,
  2198. NA, egpio),
  2199. [166] = PINGROUP(166, WEST, hs3_mi2s, NA, phase_flag27, NA, NA, NA, NA,
  2200. NA, egpio),
  2201. [167] = PINGROUP(167, WEST, hs3_mi2s, NA, phase_flag26, NA, NA, NA, NA,
  2202. NA, egpio),
  2203. [168] = PINGROUP(168, WEST, hs3_mi2s, NA, phase_flag25, NA, NA, NA, NA,
  2204. NA, egpio),
  2205. [169] = PINGROUP(169, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, egpio),
  2206. [170] = PINGROUP(170, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  2207. [171] = PINGROUP(171, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  2208. [172] = PINGROUP(172, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, egpio),
  2209. [173] = PINGROUP(173, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, egpio),
  2210. [174] = PINGROUP(174, SOUTH, NA, NA, NA, NA, NA, NA, NA, NA, egpio),
  2211. [175] = PINGROUP(175, SOUTH, pci_e2, NA, NA, NA, NA, NA, NA, NA, NA),
  2212. [176] = PINGROUP(176, SOUTH, pci_e2, cci_async, NA, NA, NA, NA, NA, NA,
  2213. NA),
  2214. [177] = PINGROUP(177, SOUTH1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  2215. [178] = PINGROUP(178, SOUTH1, pci_e3, cci_timer4, NA, NA, NA, NA, NA,
  2216. NA, NA),
  2217. [179] = PINGROUP(179, SOUTH1, pci_e3, cam_mclk, NA, NA, NA, NA, NA, NA,
  2218. NA),
  2219. [180] = PINGROUP(180, SOUTH1, cam_mclk, NA, NA, NA, NA, NA, NA, NA, NA),
  2220. [181] = PINGROUP(181, SOUTH1, qup19, cam_mclk, NA, NA, NA, NA, NA, NA,
  2221. NA),
  2222. [182] = PINGROUP(182, SOUTH1, qup19, cci_timer5, gcc_gp4, NA, NA, NA,
  2223. NA, NA, NA),
  2224. [183] = PINGROUP(183, SOUTH1, qup19, cci_timer6, gcc_gp5, NA, NA, NA,
  2225. NA, NA, NA),
  2226. [184] = PINGROUP(184, SOUTH1, qup19, cci_timer7, NA, NA, NA, NA, NA, NA,
  2227. NA),
  2228. [185] = PINGROUP(185, SOUTH1, cci_timer8, cci_async, NA, NA, NA, NA, NA,
  2229. NA, NA),
  2230. [186] = PINGROUP(186, SOUTH1, cci_timer9, cci_async, NA, NA, NA, NA, NA,
  2231. NA, NA),
  2232. [187] = PINGROUP(187, SOUTH1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  2233. [188] = PINGROUP(188, SOUTH1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
  2234. [189] = PINGROUP(189, SOUTH1, dp_hot, NA, NA, NA, NA, NA, NA, NA, NA),
  2235. [190] = UFS_RESET(ufs_reset, 0xdb6000),
  2236. [191] = UFS_RESET(ufs0_reset, 0xdc7000),
  2237. [192] = SDC_QDSD_PINGROUP(sdc2_clk, 0x9b2000, 14, 6),
  2238. [193] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x9b2000, 11, 3),
  2239. [194] = SDC_QDSD_PINGROUP(sdc2_data, 0x9b2000, 9, 0),
  2240. };
  2241. static const struct msm_gpio_wakeirq_map sdmshrike_pdc_map[] = {
  2242. { 3, 31 }, { 5, 32 }, { 8, 33 }, { 9, 34 }, { 10, 100 },
  2243. { 12, 104 }, { 24, 37 }, { 26, 38 }, { 27, 41 }, { 28, 42 },
  2244. { 30, 39 }, { 36, 43 }, { 37, 44 }, { 38, 45 }, { 39, 118 },
  2245. { 41, 47 }, { 42, 48 }, { 46, 50 }, { 47, 49 }, { 48, 51 },
  2246. { 49, 53 }, { 50, 52 }, { 51, 116 }, { 53, 54 }, { 54, 55 },
  2247. { 55, 56 }, { 56, 57 }, { 58, 58 }, { 60, 60 }, { 61, 61 },
  2248. { 68, 62 }, { 70, 63 }, { 76, 86 }, { 77, 66 }, { 81, 64 },
  2249. { 83, 65 }, { 86, 67 }, { 87, 84 }, { 88, 117 }, { 90, 69 },
  2250. { 91, 70 }, {93, 75 }, { 95, 72 }, { 96, 73 }, { 97, 74 },
  2251. { 101, 76 }, { 103, 77 }, { 104, 78 }, { 108, 79 }, { 112, 80 },
  2252. { 113, 81 }, { 114, 82 }, { 117, 85 }, { 118, 101 }, { 119, 87 },
  2253. { 120, 88 }, { 121, 89 }, { 122, 90 }, { 123, 91 }, { 124, 92 },
  2254. { 125, 93 }, { 129, 94 }, { 132, 105 }, { 133, 35 }, { 134, 36 },
  2255. { 136, 97 }, { 142, 103 }, { 144, 115 }, { 147, 106 }, { 150, 107 },
  2256. { 152, 108 }, { 153, 109 }, { 177, 111 }, { 180, 112 }, { 184, 113 },
  2257. { 189, 114 },
  2258. };
  2259. static struct msm_dir_conn sdmshrike_dir_conn[] = {
  2260. {-1, 0}, {-1, 0}, {-1, 0}, {-1, 0}, {-1, 0},
  2261. {-1, 0}, {-1, 0}, {-1, 0}, {-1, 0}
  2262. };
  2263. static struct msm_pinctrl_soc_data sdmshrike_pinctrl = {
  2264. .pins = sdmshrike_pins,
  2265. .npins = ARRAY_SIZE(sdmshrike_pins),
  2266. .functions = sdmshrike_functions,
  2267. .nfunctions = ARRAY_SIZE(sdmshrike_functions),
  2268. .groups = sdmshrike_groups,
  2269. .ngroups = ARRAY_SIZE(sdmshrike_groups),
  2270. .ngpios = 192,
  2271. .wakeirq_map = sdmshrike_pdc_map,
  2272. .nwakeirq_map = ARRAY_SIZE(sdmshrike_pdc_map),
  2273. .wakeirq_dual_edge_errata = true,
  2274. .dir_conn = sdmshrike_dir_conn,
  2275. .egpio_func = 9,
  2276. };
  2277. static int sdmshrike_pinctrl_dirconn_list_probe(struct platform_device *pdev)
  2278. {
  2279. int ret, n, dirconn_list_count, m;
  2280. struct device_node *np = pdev->dev.of_node;
  2281. n = of_property_count_elems_of_size(np, "qcom,dirconn-list",
  2282. sizeof(u32));
  2283. if (n <= 0 || n % 2)
  2284. return -EINVAL;
  2285. m = ARRAY_SIZE(sdmshrike_dir_conn) - 1;
  2286. dirconn_list_count = n / 2;
  2287. for (n = 0; n < dirconn_list_count; n++) {
  2288. ret = of_property_read_u32_index(np, "qcom,dirconn-list",
  2289. n * 2 + 0,
  2290. &sdmshrike_dir_conn[m].gpio);
  2291. if (ret)
  2292. return ret;
  2293. ret = of_property_read_u32_index(np, "qcom,dirconn-list",
  2294. n * 2 + 1,
  2295. &sdmshrike_dir_conn[m].irq);
  2296. if (ret)
  2297. return ret;
  2298. m--;
  2299. }
  2300. return 0;
  2301. }
  2302. static int sdmshrike_pinctrl_probe(struct platform_device *pdev)
  2303. {
  2304. int len, ret;
  2305. if (of_find_property(pdev->dev.of_node, "qcom,dirconn-list", &len)) {
  2306. ret = sdmshrike_pinctrl_dirconn_list_probe(pdev);
  2307. if (ret) {
  2308. dev_err(&pdev->dev,
  2309. "Unable to parse Direct Connect List\n");
  2310. return ret;
  2311. }
  2312. }
  2313. return msm_pinctrl_probe(pdev, &sdmshrike_pinctrl);
  2314. }
  2315. static const struct of_device_id sdmshrike_pinctrl_of_match[] = {
  2316. { .compatible = "qcom,sdmshrike-pinctrl", },
  2317. { },
  2318. };
  2319. static struct platform_driver sdmshrike_pinctrl_driver = {
  2320. .driver = {
  2321. .name = "sdmshrike-pinctrl",
  2322. .of_match_table = sdmshrike_pinctrl_of_match,
  2323. },
  2324. .probe = sdmshrike_pinctrl_probe,
  2325. .remove = msm_pinctrl_remove,
  2326. };
  2327. static int __init sdmshrike_pinctrl_init(void)
  2328. {
  2329. return platform_driver_register(&sdmshrike_pinctrl_driver);
  2330. }
  2331. arch_initcall(sdmshrike_pinctrl_init);
  2332. static void __exit sdmshrike_pinctrl_exit(void)
  2333. {
  2334. platform_driver_unregister(&sdmshrike_pinctrl_driver);
  2335. }
  2336. module_exit(sdmshrike_pinctrl_exit);
  2337. MODULE_DESCRIPTION("QTI sdmshrike pinctrl driver");
  2338. MODULE_LICENSE("GPL");
  2339. MODULE_DEVICE_TABLE(of, sdmshrike_pinctrl_of_match);