pinctrl-pineapple.c 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2022-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, 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. }, \
  62. .nfuncs = 11, \
  63. }
  64. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  65. { \
  66. .name = #pg_name, \
  67. .pins = pg_name##_pins, \
  68. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  69. .ctl_reg = ctl, \
  70. .io_reg = 0, \
  71. .intr_cfg_reg = 0, \
  72. .intr_status_reg = 0, \
  73. .intr_target_reg = 0, \
  74. .mux_bit = -1, \
  75. .pull_bit = pull, \
  76. .drv_bit = drv, \
  77. .oe_bit = -1, \
  78. .in_bit = -1, \
  79. .out_bit = -1, \
  80. .intr_enable_bit = -1, \
  81. .intr_status_bit = -1, \
  82. .intr_target_bit = -1, \
  83. .intr_raw_status_bit = -1, \
  84. .intr_polarity_bit = -1, \
  85. .intr_detection_bit = -1, \
  86. .intr_detection_width = -1, \
  87. }
  88. #define UFS_RESET(pg_name, ctl, io) \
  89. { \
  90. .name = #pg_name, \
  91. .pins = pg_name##_pins, \
  92. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  93. .ctl_reg = ctl, \
  94. .io_reg = io, \
  95. .intr_cfg_reg = 0, \
  96. .intr_status_reg = 0, \
  97. .intr_target_reg = 0, \
  98. .mux_bit = -1, \
  99. .pull_bit = 3, \
  100. .drv_bit = 0, \
  101. .oe_bit = -1, \
  102. .in_bit = -1, \
  103. .out_bit = 0, \
  104. .intr_enable_bit = -1, \
  105. .intr_status_bit = -1, \
  106. .intr_target_bit = -1, \
  107. .intr_raw_status_bit = -1, \
  108. .intr_polarity_bit = -1, \
  109. .intr_detection_bit = -1, \
  110. .intr_detection_width = -1, \
  111. }
  112. #define QUP_I3C(qup_mode, qup_offset) \
  113. { \
  114. .mode = qup_mode, \
  115. .offset = REG_BASE + qup_offset, \
  116. }
  117. #define QUP_1_I3C_0_MODE_OFFSET 0xE9000
  118. #define QUP_1_I3C_1_MODE_OFFSET 0xEA000
  119. #define QUP_1_I3C_4_MODE_OFFSET 0xEB000
  120. #define QUP_1_I3C_6_MODE_OFFSET 0xEC000
  121. #define QUP_2_I3C_0_MODE_OFFSET 0xED000
  122. #define QUP_2_I3C_1_MODE_OFFSET 0xEE000
  123. #define QUP_2_I3C_2_MODE_OFFSET 0xEF000
  124. #define QUP_2_I3C_3_MODE_OFFSET 0xF0000
  125. static const struct pinctrl_pin_desc pineapple_pins[] = {
  126. PINCTRL_PIN(0, "GPIO_0"),
  127. PINCTRL_PIN(1, "GPIO_1"),
  128. PINCTRL_PIN(2, "GPIO_2"),
  129. PINCTRL_PIN(3, "GPIO_3"),
  130. PINCTRL_PIN(4, "GPIO_4"),
  131. PINCTRL_PIN(5, "GPIO_5"),
  132. PINCTRL_PIN(6, "GPIO_6"),
  133. PINCTRL_PIN(7, "GPIO_7"),
  134. PINCTRL_PIN(8, "GPIO_8"),
  135. PINCTRL_PIN(9, "GPIO_9"),
  136. PINCTRL_PIN(10, "GPIO_10"),
  137. PINCTRL_PIN(11, "GPIO_11"),
  138. PINCTRL_PIN(12, "GPIO_12"),
  139. PINCTRL_PIN(13, "GPIO_13"),
  140. PINCTRL_PIN(14, "GPIO_14"),
  141. PINCTRL_PIN(15, "GPIO_15"),
  142. PINCTRL_PIN(16, "GPIO_16"),
  143. PINCTRL_PIN(17, "GPIO_17"),
  144. PINCTRL_PIN(18, "GPIO_18"),
  145. PINCTRL_PIN(19, "GPIO_19"),
  146. PINCTRL_PIN(20, "GPIO_20"),
  147. PINCTRL_PIN(21, "GPIO_21"),
  148. PINCTRL_PIN(22, "GPIO_22"),
  149. PINCTRL_PIN(23, "GPIO_23"),
  150. PINCTRL_PIN(24, "GPIO_24"),
  151. PINCTRL_PIN(25, "GPIO_25"),
  152. PINCTRL_PIN(26, "GPIO_26"),
  153. PINCTRL_PIN(27, "GPIO_27"),
  154. PINCTRL_PIN(28, "GPIO_28"),
  155. PINCTRL_PIN(29, "GPIO_29"),
  156. PINCTRL_PIN(30, "GPIO_30"),
  157. PINCTRL_PIN(31, "GPIO_31"),
  158. PINCTRL_PIN(32, "GPIO_32"),
  159. PINCTRL_PIN(33, "GPIO_33"),
  160. PINCTRL_PIN(34, "GPIO_34"),
  161. PINCTRL_PIN(35, "GPIO_35"),
  162. PINCTRL_PIN(36, "GPIO_36"),
  163. PINCTRL_PIN(37, "GPIO_37"),
  164. PINCTRL_PIN(38, "GPIO_38"),
  165. PINCTRL_PIN(39, "GPIO_39"),
  166. PINCTRL_PIN(40, "GPIO_40"),
  167. PINCTRL_PIN(41, "GPIO_41"),
  168. PINCTRL_PIN(42, "GPIO_42"),
  169. PINCTRL_PIN(43, "GPIO_43"),
  170. PINCTRL_PIN(44, "GPIO_44"),
  171. PINCTRL_PIN(45, "GPIO_45"),
  172. PINCTRL_PIN(46, "GPIO_46"),
  173. PINCTRL_PIN(47, "GPIO_47"),
  174. PINCTRL_PIN(48, "GPIO_48"),
  175. PINCTRL_PIN(49, "GPIO_49"),
  176. PINCTRL_PIN(50, "GPIO_50"),
  177. PINCTRL_PIN(51, "GPIO_51"),
  178. PINCTRL_PIN(52, "GPIO_52"),
  179. PINCTRL_PIN(53, "GPIO_53"),
  180. PINCTRL_PIN(54, "GPIO_54"),
  181. PINCTRL_PIN(55, "GPIO_55"),
  182. PINCTRL_PIN(56, "GPIO_56"),
  183. PINCTRL_PIN(57, "GPIO_57"),
  184. PINCTRL_PIN(58, "GPIO_58"),
  185. PINCTRL_PIN(59, "GPIO_59"),
  186. PINCTRL_PIN(60, "GPIO_60"),
  187. PINCTRL_PIN(61, "GPIO_61"),
  188. PINCTRL_PIN(62, "GPIO_62"),
  189. PINCTRL_PIN(63, "GPIO_63"),
  190. PINCTRL_PIN(64, "GPIO_64"),
  191. PINCTRL_PIN(65, "GPIO_65"),
  192. PINCTRL_PIN(66, "GPIO_66"),
  193. PINCTRL_PIN(67, "GPIO_67"),
  194. PINCTRL_PIN(68, "GPIO_68"),
  195. PINCTRL_PIN(69, "GPIO_69"),
  196. PINCTRL_PIN(70, "GPIO_70"),
  197. PINCTRL_PIN(71, "GPIO_71"),
  198. PINCTRL_PIN(72, "GPIO_72"),
  199. PINCTRL_PIN(73, "GPIO_73"),
  200. PINCTRL_PIN(74, "GPIO_74"),
  201. PINCTRL_PIN(75, "GPIO_75"),
  202. PINCTRL_PIN(76, "GPIO_76"),
  203. PINCTRL_PIN(77, "GPIO_77"),
  204. PINCTRL_PIN(78, "GPIO_78"),
  205. PINCTRL_PIN(79, "GPIO_79"),
  206. PINCTRL_PIN(80, "GPIO_80"),
  207. PINCTRL_PIN(81, "GPIO_81"),
  208. PINCTRL_PIN(82, "GPIO_82"),
  209. PINCTRL_PIN(83, "GPIO_83"),
  210. PINCTRL_PIN(84, "GPIO_84"),
  211. PINCTRL_PIN(85, "GPIO_85"),
  212. PINCTRL_PIN(86, "GPIO_86"),
  213. PINCTRL_PIN(87, "GPIO_87"),
  214. PINCTRL_PIN(88, "GPIO_88"),
  215. PINCTRL_PIN(89, "GPIO_89"),
  216. PINCTRL_PIN(90, "GPIO_90"),
  217. PINCTRL_PIN(91, "GPIO_91"),
  218. PINCTRL_PIN(92, "GPIO_92"),
  219. PINCTRL_PIN(93, "GPIO_93"),
  220. PINCTRL_PIN(94, "GPIO_94"),
  221. PINCTRL_PIN(95, "GPIO_95"),
  222. PINCTRL_PIN(96, "GPIO_96"),
  223. PINCTRL_PIN(97, "GPIO_97"),
  224. PINCTRL_PIN(98, "GPIO_98"),
  225. PINCTRL_PIN(99, "GPIO_99"),
  226. PINCTRL_PIN(100, "GPIO_100"),
  227. PINCTRL_PIN(101, "GPIO_101"),
  228. PINCTRL_PIN(102, "GPIO_102"),
  229. PINCTRL_PIN(103, "GPIO_103"),
  230. PINCTRL_PIN(104, "GPIO_104"),
  231. PINCTRL_PIN(105, "GPIO_105"),
  232. PINCTRL_PIN(106, "GPIO_106"),
  233. PINCTRL_PIN(107, "GPIO_107"),
  234. PINCTRL_PIN(108, "GPIO_108"),
  235. PINCTRL_PIN(109, "GPIO_109"),
  236. PINCTRL_PIN(110, "GPIO_110"),
  237. PINCTRL_PIN(111, "GPIO_111"),
  238. PINCTRL_PIN(112, "GPIO_112"),
  239. PINCTRL_PIN(113, "GPIO_113"),
  240. PINCTRL_PIN(114, "GPIO_114"),
  241. PINCTRL_PIN(115, "GPIO_115"),
  242. PINCTRL_PIN(116, "GPIO_116"),
  243. PINCTRL_PIN(117, "GPIO_117"),
  244. PINCTRL_PIN(118, "GPIO_118"),
  245. PINCTRL_PIN(119, "GPIO_119"),
  246. PINCTRL_PIN(120, "GPIO_120"),
  247. PINCTRL_PIN(121, "GPIO_121"),
  248. PINCTRL_PIN(122, "GPIO_122"),
  249. PINCTRL_PIN(123, "GPIO_123"),
  250. PINCTRL_PIN(124, "GPIO_124"),
  251. PINCTRL_PIN(125, "GPIO_125"),
  252. PINCTRL_PIN(126, "GPIO_126"),
  253. PINCTRL_PIN(127, "GPIO_127"),
  254. PINCTRL_PIN(128, "GPIO_128"),
  255. PINCTRL_PIN(129, "GPIO_129"),
  256. PINCTRL_PIN(130, "GPIO_130"),
  257. PINCTRL_PIN(131, "GPIO_131"),
  258. PINCTRL_PIN(132, "GPIO_132"),
  259. PINCTRL_PIN(133, "GPIO_133"),
  260. PINCTRL_PIN(134, "GPIO_134"),
  261. PINCTRL_PIN(135, "GPIO_135"),
  262. PINCTRL_PIN(136, "GPIO_136"),
  263. PINCTRL_PIN(137, "GPIO_137"),
  264. PINCTRL_PIN(138, "GPIO_138"),
  265. PINCTRL_PIN(139, "GPIO_139"),
  266. PINCTRL_PIN(140, "GPIO_140"),
  267. PINCTRL_PIN(141, "GPIO_141"),
  268. PINCTRL_PIN(142, "GPIO_142"),
  269. PINCTRL_PIN(143, "GPIO_143"),
  270. PINCTRL_PIN(144, "GPIO_144"),
  271. PINCTRL_PIN(145, "GPIO_145"),
  272. PINCTRL_PIN(146, "GPIO_146"),
  273. PINCTRL_PIN(147, "GPIO_147"),
  274. PINCTRL_PIN(148, "GPIO_148"),
  275. PINCTRL_PIN(149, "GPIO_149"),
  276. PINCTRL_PIN(150, "GPIO_150"),
  277. PINCTRL_PIN(151, "GPIO_151"),
  278. PINCTRL_PIN(152, "GPIO_152"),
  279. PINCTRL_PIN(153, "GPIO_153"),
  280. PINCTRL_PIN(154, "GPIO_154"),
  281. PINCTRL_PIN(155, "GPIO_155"),
  282. PINCTRL_PIN(156, "GPIO_156"),
  283. PINCTRL_PIN(157, "GPIO_157"),
  284. PINCTRL_PIN(158, "GPIO_158"),
  285. PINCTRL_PIN(159, "GPIO_159"),
  286. PINCTRL_PIN(160, "GPIO_160"),
  287. PINCTRL_PIN(161, "GPIO_161"),
  288. PINCTRL_PIN(162, "GPIO_162"),
  289. PINCTRL_PIN(163, "GPIO_163"),
  290. PINCTRL_PIN(164, "GPIO_164"),
  291. PINCTRL_PIN(165, "GPIO_165"),
  292. PINCTRL_PIN(166, "GPIO_166"),
  293. PINCTRL_PIN(167, "GPIO_167"),
  294. PINCTRL_PIN(168, "GPIO_168"),
  295. PINCTRL_PIN(169, "GPIO_169"),
  296. PINCTRL_PIN(170, "GPIO_170"),
  297. PINCTRL_PIN(171, "GPIO_171"),
  298. PINCTRL_PIN(172, "GPIO_172"),
  299. PINCTRL_PIN(173, "GPIO_173"),
  300. PINCTRL_PIN(174, "GPIO_174"),
  301. PINCTRL_PIN(175, "GPIO_175"),
  302. PINCTRL_PIN(176, "GPIO_176"),
  303. PINCTRL_PIN(177, "GPIO_177"),
  304. PINCTRL_PIN(178, "GPIO_178"),
  305. PINCTRL_PIN(179, "GPIO_179"),
  306. PINCTRL_PIN(180, "GPIO_180"),
  307. PINCTRL_PIN(181, "GPIO_181"),
  308. PINCTRL_PIN(182, "GPIO_182"),
  309. PINCTRL_PIN(183, "GPIO_183"),
  310. PINCTRL_PIN(184, "GPIO_184"),
  311. PINCTRL_PIN(185, "GPIO_185"),
  312. PINCTRL_PIN(186, "GPIO_186"),
  313. PINCTRL_PIN(187, "GPIO_187"),
  314. PINCTRL_PIN(188, "GPIO_188"),
  315. PINCTRL_PIN(189, "GPIO_189"),
  316. PINCTRL_PIN(190, "GPIO_190"),
  317. PINCTRL_PIN(191, "GPIO_191"),
  318. PINCTRL_PIN(192, "GPIO_192"),
  319. PINCTRL_PIN(193, "GPIO_193"),
  320. PINCTRL_PIN(194, "GPIO_194"),
  321. PINCTRL_PIN(195, "GPIO_195"),
  322. PINCTRL_PIN(196, "GPIO_196"),
  323. PINCTRL_PIN(197, "GPIO_197"),
  324. PINCTRL_PIN(198, "GPIO_198"),
  325. PINCTRL_PIN(199, "GPIO_199"),
  326. PINCTRL_PIN(200, "GPIO_200"),
  327. PINCTRL_PIN(201, "GPIO_201"),
  328. PINCTRL_PIN(202, "GPIO_202"),
  329. PINCTRL_PIN(203, "GPIO_203"),
  330. PINCTRL_PIN(204, "GPIO_204"),
  331. PINCTRL_PIN(205, "GPIO_205"),
  332. PINCTRL_PIN(206, "GPIO_206"),
  333. PINCTRL_PIN(207, "GPIO_207"),
  334. PINCTRL_PIN(208, "GPIO_208"),
  335. PINCTRL_PIN(209, "GPIO_209"),
  336. PINCTRL_PIN(210, "UFS_RESET"),
  337. PINCTRL_PIN(211, "SDC2_CLK"),
  338. PINCTRL_PIN(212, "SDC2_CMD"),
  339. PINCTRL_PIN(213, "SDC2_DATA"),
  340. };
  341. #define DECLARE_MSM_GPIO_PINS(pin) \
  342. static const unsigned int gpio##pin##_pins[] = { pin }
  343. DECLARE_MSM_GPIO_PINS(0);
  344. DECLARE_MSM_GPIO_PINS(1);
  345. DECLARE_MSM_GPIO_PINS(2);
  346. DECLARE_MSM_GPIO_PINS(3);
  347. DECLARE_MSM_GPIO_PINS(4);
  348. DECLARE_MSM_GPIO_PINS(5);
  349. DECLARE_MSM_GPIO_PINS(6);
  350. DECLARE_MSM_GPIO_PINS(7);
  351. DECLARE_MSM_GPIO_PINS(8);
  352. DECLARE_MSM_GPIO_PINS(9);
  353. DECLARE_MSM_GPIO_PINS(10);
  354. DECLARE_MSM_GPIO_PINS(11);
  355. DECLARE_MSM_GPIO_PINS(12);
  356. DECLARE_MSM_GPIO_PINS(13);
  357. DECLARE_MSM_GPIO_PINS(14);
  358. DECLARE_MSM_GPIO_PINS(15);
  359. DECLARE_MSM_GPIO_PINS(16);
  360. DECLARE_MSM_GPIO_PINS(17);
  361. DECLARE_MSM_GPIO_PINS(18);
  362. DECLARE_MSM_GPIO_PINS(19);
  363. DECLARE_MSM_GPIO_PINS(20);
  364. DECLARE_MSM_GPIO_PINS(21);
  365. DECLARE_MSM_GPIO_PINS(22);
  366. DECLARE_MSM_GPIO_PINS(23);
  367. DECLARE_MSM_GPIO_PINS(24);
  368. DECLARE_MSM_GPIO_PINS(25);
  369. DECLARE_MSM_GPIO_PINS(26);
  370. DECLARE_MSM_GPIO_PINS(27);
  371. DECLARE_MSM_GPIO_PINS(28);
  372. DECLARE_MSM_GPIO_PINS(29);
  373. DECLARE_MSM_GPIO_PINS(30);
  374. DECLARE_MSM_GPIO_PINS(31);
  375. DECLARE_MSM_GPIO_PINS(32);
  376. DECLARE_MSM_GPIO_PINS(33);
  377. DECLARE_MSM_GPIO_PINS(34);
  378. DECLARE_MSM_GPIO_PINS(35);
  379. DECLARE_MSM_GPIO_PINS(36);
  380. DECLARE_MSM_GPIO_PINS(37);
  381. DECLARE_MSM_GPIO_PINS(38);
  382. DECLARE_MSM_GPIO_PINS(39);
  383. DECLARE_MSM_GPIO_PINS(40);
  384. DECLARE_MSM_GPIO_PINS(41);
  385. DECLARE_MSM_GPIO_PINS(42);
  386. DECLARE_MSM_GPIO_PINS(43);
  387. DECLARE_MSM_GPIO_PINS(44);
  388. DECLARE_MSM_GPIO_PINS(45);
  389. DECLARE_MSM_GPIO_PINS(46);
  390. DECLARE_MSM_GPIO_PINS(47);
  391. DECLARE_MSM_GPIO_PINS(48);
  392. DECLARE_MSM_GPIO_PINS(49);
  393. DECLARE_MSM_GPIO_PINS(50);
  394. DECLARE_MSM_GPIO_PINS(51);
  395. DECLARE_MSM_GPIO_PINS(52);
  396. DECLARE_MSM_GPIO_PINS(53);
  397. DECLARE_MSM_GPIO_PINS(54);
  398. DECLARE_MSM_GPIO_PINS(55);
  399. DECLARE_MSM_GPIO_PINS(56);
  400. DECLARE_MSM_GPIO_PINS(57);
  401. DECLARE_MSM_GPIO_PINS(58);
  402. DECLARE_MSM_GPIO_PINS(59);
  403. DECLARE_MSM_GPIO_PINS(60);
  404. DECLARE_MSM_GPIO_PINS(61);
  405. DECLARE_MSM_GPIO_PINS(62);
  406. DECLARE_MSM_GPIO_PINS(63);
  407. DECLARE_MSM_GPIO_PINS(64);
  408. DECLARE_MSM_GPIO_PINS(65);
  409. DECLARE_MSM_GPIO_PINS(66);
  410. DECLARE_MSM_GPIO_PINS(67);
  411. DECLARE_MSM_GPIO_PINS(68);
  412. DECLARE_MSM_GPIO_PINS(69);
  413. DECLARE_MSM_GPIO_PINS(70);
  414. DECLARE_MSM_GPIO_PINS(71);
  415. DECLARE_MSM_GPIO_PINS(72);
  416. DECLARE_MSM_GPIO_PINS(73);
  417. DECLARE_MSM_GPIO_PINS(74);
  418. DECLARE_MSM_GPIO_PINS(75);
  419. DECLARE_MSM_GPIO_PINS(76);
  420. DECLARE_MSM_GPIO_PINS(77);
  421. DECLARE_MSM_GPIO_PINS(78);
  422. DECLARE_MSM_GPIO_PINS(79);
  423. DECLARE_MSM_GPIO_PINS(80);
  424. DECLARE_MSM_GPIO_PINS(81);
  425. DECLARE_MSM_GPIO_PINS(82);
  426. DECLARE_MSM_GPIO_PINS(83);
  427. DECLARE_MSM_GPIO_PINS(84);
  428. DECLARE_MSM_GPIO_PINS(85);
  429. DECLARE_MSM_GPIO_PINS(86);
  430. DECLARE_MSM_GPIO_PINS(87);
  431. DECLARE_MSM_GPIO_PINS(88);
  432. DECLARE_MSM_GPIO_PINS(89);
  433. DECLARE_MSM_GPIO_PINS(90);
  434. DECLARE_MSM_GPIO_PINS(91);
  435. DECLARE_MSM_GPIO_PINS(92);
  436. DECLARE_MSM_GPIO_PINS(93);
  437. DECLARE_MSM_GPIO_PINS(94);
  438. DECLARE_MSM_GPIO_PINS(95);
  439. DECLARE_MSM_GPIO_PINS(96);
  440. DECLARE_MSM_GPIO_PINS(97);
  441. DECLARE_MSM_GPIO_PINS(98);
  442. DECLARE_MSM_GPIO_PINS(99);
  443. DECLARE_MSM_GPIO_PINS(100);
  444. DECLARE_MSM_GPIO_PINS(101);
  445. DECLARE_MSM_GPIO_PINS(102);
  446. DECLARE_MSM_GPIO_PINS(103);
  447. DECLARE_MSM_GPIO_PINS(104);
  448. DECLARE_MSM_GPIO_PINS(105);
  449. DECLARE_MSM_GPIO_PINS(106);
  450. DECLARE_MSM_GPIO_PINS(107);
  451. DECLARE_MSM_GPIO_PINS(108);
  452. DECLARE_MSM_GPIO_PINS(109);
  453. DECLARE_MSM_GPIO_PINS(110);
  454. DECLARE_MSM_GPIO_PINS(111);
  455. DECLARE_MSM_GPIO_PINS(112);
  456. DECLARE_MSM_GPIO_PINS(113);
  457. DECLARE_MSM_GPIO_PINS(114);
  458. DECLARE_MSM_GPIO_PINS(115);
  459. DECLARE_MSM_GPIO_PINS(116);
  460. DECLARE_MSM_GPIO_PINS(117);
  461. DECLARE_MSM_GPIO_PINS(118);
  462. DECLARE_MSM_GPIO_PINS(119);
  463. DECLARE_MSM_GPIO_PINS(120);
  464. DECLARE_MSM_GPIO_PINS(121);
  465. DECLARE_MSM_GPIO_PINS(122);
  466. DECLARE_MSM_GPIO_PINS(123);
  467. DECLARE_MSM_GPIO_PINS(124);
  468. DECLARE_MSM_GPIO_PINS(125);
  469. DECLARE_MSM_GPIO_PINS(126);
  470. DECLARE_MSM_GPIO_PINS(127);
  471. DECLARE_MSM_GPIO_PINS(128);
  472. DECLARE_MSM_GPIO_PINS(129);
  473. DECLARE_MSM_GPIO_PINS(130);
  474. DECLARE_MSM_GPIO_PINS(131);
  475. DECLARE_MSM_GPIO_PINS(132);
  476. DECLARE_MSM_GPIO_PINS(133);
  477. DECLARE_MSM_GPIO_PINS(134);
  478. DECLARE_MSM_GPIO_PINS(135);
  479. DECLARE_MSM_GPIO_PINS(136);
  480. DECLARE_MSM_GPIO_PINS(137);
  481. DECLARE_MSM_GPIO_PINS(138);
  482. DECLARE_MSM_GPIO_PINS(139);
  483. DECLARE_MSM_GPIO_PINS(140);
  484. DECLARE_MSM_GPIO_PINS(141);
  485. DECLARE_MSM_GPIO_PINS(142);
  486. DECLARE_MSM_GPIO_PINS(143);
  487. DECLARE_MSM_GPIO_PINS(144);
  488. DECLARE_MSM_GPIO_PINS(145);
  489. DECLARE_MSM_GPIO_PINS(146);
  490. DECLARE_MSM_GPIO_PINS(147);
  491. DECLARE_MSM_GPIO_PINS(148);
  492. DECLARE_MSM_GPIO_PINS(149);
  493. DECLARE_MSM_GPIO_PINS(150);
  494. DECLARE_MSM_GPIO_PINS(151);
  495. DECLARE_MSM_GPIO_PINS(152);
  496. DECLARE_MSM_GPIO_PINS(153);
  497. DECLARE_MSM_GPIO_PINS(154);
  498. DECLARE_MSM_GPIO_PINS(155);
  499. DECLARE_MSM_GPIO_PINS(156);
  500. DECLARE_MSM_GPIO_PINS(157);
  501. DECLARE_MSM_GPIO_PINS(158);
  502. DECLARE_MSM_GPIO_PINS(159);
  503. DECLARE_MSM_GPIO_PINS(160);
  504. DECLARE_MSM_GPIO_PINS(161);
  505. DECLARE_MSM_GPIO_PINS(162);
  506. DECLARE_MSM_GPIO_PINS(163);
  507. DECLARE_MSM_GPIO_PINS(164);
  508. DECLARE_MSM_GPIO_PINS(165);
  509. DECLARE_MSM_GPIO_PINS(166);
  510. DECLARE_MSM_GPIO_PINS(167);
  511. DECLARE_MSM_GPIO_PINS(168);
  512. DECLARE_MSM_GPIO_PINS(169);
  513. DECLARE_MSM_GPIO_PINS(170);
  514. DECLARE_MSM_GPIO_PINS(171);
  515. DECLARE_MSM_GPIO_PINS(172);
  516. DECLARE_MSM_GPIO_PINS(173);
  517. DECLARE_MSM_GPIO_PINS(174);
  518. DECLARE_MSM_GPIO_PINS(175);
  519. DECLARE_MSM_GPIO_PINS(176);
  520. DECLARE_MSM_GPIO_PINS(177);
  521. DECLARE_MSM_GPIO_PINS(178);
  522. DECLARE_MSM_GPIO_PINS(179);
  523. DECLARE_MSM_GPIO_PINS(180);
  524. DECLARE_MSM_GPIO_PINS(181);
  525. DECLARE_MSM_GPIO_PINS(182);
  526. DECLARE_MSM_GPIO_PINS(183);
  527. DECLARE_MSM_GPIO_PINS(184);
  528. DECLARE_MSM_GPIO_PINS(185);
  529. DECLARE_MSM_GPIO_PINS(186);
  530. DECLARE_MSM_GPIO_PINS(187);
  531. DECLARE_MSM_GPIO_PINS(188);
  532. DECLARE_MSM_GPIO_PINS(189);
  533. DECLARE_MSM_GPIO_PINS(190);
  534. DECLARE_MSM_GPIO_PINS(191);
  535. DECLARE_MSM_GPIO_PINS(192);
  536. DECLARE_MSM_GPIO_PINS(193);
  537. DECLARE_MSM_GPIO_PINS(194);
  538. DECLARE_MSM_GPIO_PINS(195);
  539. DECLARE_MSM_GPIO_PINS(196);
  540. DECLARE_MSM_GPIO_PINS(197);
  541. DECLARE_MSM_GPIO_PINS(198);
  542. DECLARE_MSM_GPIO_PINS(199);
  543. DECLARE_MSM_GPIO_PINS(200);
  544. DECLARE_MSM_GPIO_PINS(201);
  545. DECLARE_MSM_GPIO_PINS(202);
  546. DECLARE_MSM_GPIO_PINS(203);
  547. DECLARE_MSM_GPIO_PINS(204);
  548. DECLARE_MSM_GPIO_PINS(205);
  549. DECLARE_MSM_GPIO_PINS(206);
  550. DECLARE_MSM_GPIO_PINS(207);
  551. DECLARE_MSM_GPIO_PINS(208);
  552. DECLARE_MSM_GPIO_PINS(209);
  553. static const unsigned int ufs_reset_pins[] = { 210 };
  554. static const unsigned int sdc2_clk_pins[] = { 211 };
  555. static const unsigned int sdc2_cmd_pins[] = { 212 };
  556. static const unsigned int sdc2_data_pins[] = { 213 };
  557. enum pineapple_functions {
  558. msm_mux_gpio,
  559. msm_mux_aoss_cti,
  560. msm_mux_atest_char0,
  561. msm_mux_atest_char1,
  562. msm_mux_atest_char2,
  563. msm_mux_atest_char3,
  564. msm_mux_atest_char_start,
  565. msm_mux_atest_usb0,
  566. msm_mux_atest_usb00,
  567. msm_mux_atest_usb01,
  568. msm_mux_atest_usb02,
  569. msm_mux_atest_usb03,
  570. msm_mux_audio_ext_mclk0,
  571. msm_mux_audio_ext_mclk1,
  572. msm_mux_audio_ref_clk,
  573. msm_mux_cam_aon_mclk2,
  574. msm_mux_cam_aon_mclk4,
  575. msm_mux_cam_mclk,
  576. msm_mux_cci_async_in0,
  577. msm_mux_cci_async_in1,
  578. msm_mux_cci_async_in2,
  579. msm_mux_cci_i2c_scl0,
  580. msm_mux_cci_i2c_scl1,
  581. msm_mux_cci_i2c_scl2,
  582. msm_mux_cci_i2c_scl3,
  583. msm_mux_cci_i2c_scl4,
  584. msm_mux_cci_i2c_scl5,
  585. msm_mux_cci_i2c_sda0,
  586. msm_mux_cci_i2c_sda1,
  587. msm_mux_cci_i2c_sda2,
  588. msm_mux_cci_i2c_sda3,
  589. msm_mux_cci_i2c_sda4,
  590. msm_mux_cci_i2c_sda5,
  591. msm_mux_cci_timer0,
  592. msm_mux_cci_timer1,
  593. msm_mux_cci_timer2,
  594. msm_mux_cci_timer3,
  595. msm_mux_cci_timer4,
  596. msm_mux_cmu_rng0,
  597. msm_mux_cmu_rng1,
  598. msm_mux_cmu_rng2,
  599. msm_mux_cmu_rng3,
  600. msm_mux_coex_uart1_rx,
  601. msm_mux_coex_uart1_tx,
  602. msm_mux_coex_uart2_rx,
  603. msm_mux_coex_uart2_tx,
  604. msm_mux_cri_trng,
  605. msm_mux_dbg_out_clk,
  606. msm_mux_ddr_bist_complete,
  607. msm_mux_ddr_bist_fail,
  608. msm_mux_ddr_bist_start,
  609. msm_mux_ddr_bist_stop,
  610. msm_mux_ddr_pxi0,
  611. msm_mux_ddr_pxi1,
  612. msm_mux_ddr_pxi2,
  613. msm_mux_ddr_pxi3,
  614. msm_mux_do_not,
  615. msm_mux_do_not0,
  616. msm_mux_do_not1,
  617. msm_mux_do_not2,
  618. msm_mux_do_not3,
  619. msm_mux_dp_hot,
  620. msm_mux_egpio,
  621. msm_mux_gcc_gp1,
  622. msm_mux_gcc_gp2,
  623. msm_mux_gcc_gp3,
  624. msm_mux_gnss_adc0,
  625. msm_mux_gnss_adc1,
  626. msm_mux_i2chub0_se0_l0,
  627. msm_mux_i2chub0_se0_l1,
  628. msm_mux_i2chub0_se1_l0,
  629. msm_mux_i2chub0_se1_l1,
  630. msm_mux_i2chub0_se2_l0,
  631. msm_mux_i2chub0_se2_l1,
  632. msm_mux_i2chub0_se3_l0,
  633. msm_mux_i2chub0_se3_l1,
  634. msm_mux_i2chub0_se4_l0,
  635. msm_mux_i2chub0_se4_l1,
  636. msm_mux_i2chub0_se5_l0,
  637. msm_mux_i2chub0_se5_l1,
  638. msm_mux_i2chub0_se6_l0,
  639. msm_mux_i2chub0_se6_l1,
  640. msm_mux_i2chub0_se7_l0,
  641. msm_mux_i2chub0_se7_l1,
  642. msm_mux_i2chub0_se8_l0,
  643. msm_mux_i2chub0_se8_l1,
  644. msm_mux_i2chub0_se9_l0,
  645. msm_mux_i2chub0_se9_l1,
  646. msm_mux_i2s0_data0,
  647. msm_mux_i2s0_data1,
  648. msm_mux_i2s0_sck,
  649. msm_mux_i2s0_ws,
  650. msm_mux_i2s1_data0,
  651. msm_mux_i2s1_data1,
  652. msm_mux_i2s1_sck,
  653. msm_mux_i2s1_ws,
  654. msm_mux_ibi_i3c,
  655. msm_mux_jitter_bist,
  656. msm_mux_mdp_vsync,
  657. msm_mux_mdp_vsync0_out,
  658. msm_mux_mdp_vsync1_out,
  659. msm_mux_mdp_vsync2_out,
  660. msm_mux_mdp_vsync3_out,
  661. msm_mux_mdp_vsync_e,
  662. msm_mux_nav_gpio0,
  663. msm_mux_nav_gpio1,
  664. msm_mux_nav_gpio2,
  665. msm_mux_nav_gpio3,
  666. msm_mux_pcie0_clk_req_n,
  667. msm_mux_pcie1_clk_req_n,
  668. msm_mux_phase_flag0,
  669. msm_mux_phase_flag1,
  670. msm_mux_phase_flag10,
  671. msm_mux_phase_flag11,
  672. msm_mux_phase_flag12,
  673. msm_mux_phase_flag13,
  674. msm_mux_phase_flag14,
  675. msm_mux_phase_flag15,
  676. msm_mux_phase_flag16,
  677. msm_mux_phase_flag17,
  678. msm_mux_phase_flag18,
  679. msm_mux_phase_flag19,
  680. msm_mux_phase_flag2,
  681. msm_mux_phase_flag20,
  682. msm_mux_phase_flag21,
  683. msm_mux_phase_flag22,
  684. msm_mux_phase_flag23,
  685. msm_mux_phase_flag24,
  686. msm_mux_phase_flag25,
  687. msm_mux_phase_flag26,
  688. msm_mux_phase_flag27,
  689. msm_mux_phase_flag28,
  690. msm_mux_phase_flag29,
  691. msm_mux_phase_flag3,
  692. msm_mux_phase_flag30,
  693. msm_mux_phase_flag31,
  694. msm_mux_phase_flag4,
  695. msm_mux_phase_flag5,
  696. msm_mux_phase_flag6,
  697. msm_mux_phase_flag7,
  698. msm_mux_phase_flag8,
  699. msm_mux_phase_flag9,
  700. msm_mux_pll_bist_sync,
  701. msm_mux_pll_clk_aux,
  702. msm_mux_prng_rosc0,
  703. msm_mux_prng_rosc1,
  704. msm_mux_prng_rosc2,
  705. msm_mux_prng_rosc3,
  706. msm_mux_qdss_cti,
  707. msm_mux_qdss_gpio,
  708. msm_mux_qdss_gpio0,
  709. msm_mux_qdss_gpio1,
  710. msm_mux_qdss_gpio10,
  711. msm_mux_qdss_gpio11,
  712. msm_mux_qdss_gpio12,
  713. msm_mux_qdss_gpio13,
  714. msm_mux_qdss_gpio14,
  715. msm_mux_qdss_gpio15,
  716. msm_mux_qdss_gpio2,
  717. msm_mux_qdss_gpio3,
  718. msm_mux_qdss_gpio4,
  719. msm_mux_qdss_gpio5,
  720. msm_mux_qdss_gpio6,
  721. msm_mux_qdss_gpio7,
  722. msm_mux_qdss_gpio8,
  723. msm_mux_qdss_gpio9,
  724. msm_mux_qlink_big_enable,
  725. msm_mux_qlink_big_request,
  726. msm_mux_qlink_little_enable,
  727. msm_mux_qlink_little_request,
  728. msm_mux_qlink_wmss,
  729. msm_mux_qspi0,
  730. msm_mux_qspi1,
  731. msm_mux_qspi2,
  732. msm_mux_qspi3,
  733. msm_mux_qspi_clk,
  734. msm_mux_qspi_cs,
  735. msm_mux_qup1_se0_l0,
  736. msm_mux_qup1_se0_l1,
  737. msm_mux_qup1_se0_l2,
  738. msm_mux_qup1_se0_l3,
  739. msm_mux_qup1_se1_l0,
  740. msm_mux_qup1_se1_l1,
  741. msm_mux_qup1_se1_l2,
  742. msm_mux_qup1_se1_l3,
  743. msm_mux_qup1_se2_l0,
  744. msm_mux_qup1_se2_l1,
  745. msm_mux_qup1_se2_l2,
  746. msm_mux_qup1_se2_l3,
  747. msm_mux_qup1_se2_l4,
  748. msm_mux_qup1_se2_l5,
  749. msm_mux_qup1_se2_l6,
  750. msm_mux_qup1_se3_l0,
  751. msm_mux_qup1_se3_l1,
  752. msm_mux_qup1_se3_l2,
  753. msm_mux_qup1_se3_l3,
  754. msm_mux_qup1_se4_l0,
  755. msm_mux_qup1_se4_l1,
  756. msm_mux_qup1_se4_l2,
  757. msm_mux_qup1_se4_l3,
  758. msm_mux_qup1_se5_l0,
  759. msm_mux_qup1_se5_l1,
  760. msm_mux_qup1_se5_l2,
  761. msm_mux_qup1_se5_l3,
  762. msm_mux_qup1_se6_l0,
  763. msm_mux_qup1_se6_l1,
  764. msm_mux_qup1_se6_l2,
  765. msm_mux_qup1_se6_l3,
  766. msm_mux_qup1_se7_l0,
  767. msm_mux_qup1_se7_l1,
  768. msm_mux_qup1_se7_l2,
  769. msm_mux_qup1_se7_l3,
  770. msm_mux_qup2_se0_l0,
  771. msm_mux_qup2_se0_l1,
  772. msm_mux_qup2_se0_l2,
  773. msm_mux_qup2_se0_l3,
  774. msm_mux_qup2_se1_l0,
  775. msm_mux_qup2_se1_l1,
  776. msm_mux_qup2_se1_l2,
  777. msm_mux_qup2_se1_l3,
  778. msm_mux_qup2_se2_l0,
  779. msm_mux_qup2_se2_l1,
  780. msm_mux_qup2_se2_l2,
  781. msm_mux_qup2_se2_l3,
  782. msm_mux_qup2_se2_l4,
  783. msm_mux_qup2_se2_l5,
  784. msm_mux_qup2_se2_l6,
  785. msm_mux_qup2_se3_l0,
  786. msm_mux_qup2_se3_l1,
  787. msm_mux_qup2_se3_l2,
  788. msm_mux_qup2_se3_l3,
  789. msm_mux_qup2_se4_l0,
  790. msm_mux_qup2_se4_l1,
  791. msm_mux_qup2_se4_l2,
  792. msm_mux_qup2_se4_l3,
  793. msm_mux_qup2_se5_l0,
  794. msm_mux_qup2_se5_l1,
  795. msm_mux_qup2_se5_l2,
  796. msm_mux_qup2_se5_l3,
  797. msm_mux_qup2_se5_l6,
  798. msm_mux_qup2_se6_l0,
  799. msm_mux_qup2_se6_l1,
  800. msm_mux_qup2_se6_l2,
  801. msm_mux_qup2_se6_l3,
  802. msm_mux_qup2_se7_l0,
  803. msm_mux_qup2_se7_l1,
  804. msm_mux_qup2_se7_l2,
  805. msm_mux_qup2_se7_l3,
  806. msm_mux_sd_write_protect,
  807. msm_mux_sdc40,
  808. msm_mux_sdc41,
  809. msm_mux_sdc42,
  810. msm_mux_sdc43,
  811. msm_mux_sdc4_clk,
  812. msm_mux_sdc4_cmd,
  813. msm_mux_tb_trig_sdc2,
  814. msm_mux_tb_trig_sdc4,
  815. msm_mux_tgu_ch0_trigout,
  816. msm_mux_tgu_ch1_trigout,
  817. msm_mux_tgu_ch2_trigout,
  818. msm_mux_tgu_ch3_trigout,
  819. msm_mux_tmess_prng0,
  820. msm_mux_tmess_prng1,
  821. msm_mux_tmess_prng2,
  822. msm_mux_tmess_prng3,
  823. msm_mux_tsense_pwm1,
  824. msm_mux_tsense_pwm2,
  825. msm_mux_tsense_pwm3,
  826. msm_mux_uim0_clk,
  827. msm_mux_uim0_data,
  828. msm_mux_uim0_present,
  829. msm_mux_uim0_reset,
  830. msm_mux_uim1_clk,
  831. msm_mux_uim1_data,
  832. msm_mux_uim1_present,
  833. msm_mux_uim1_reset,
  834. msm_mux_usb1_hs,
  835. msm_mux_usb_phy,
  836. msm_mux_vfr_0,
  837. msm_mux_vfr_1,
  838. msm_mux_vsense_trigger_mirnat,
  839. msm_mux_NA,
  840. };
  841. static const char *const gpio_groups[] = {
  842. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  843. "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11",
  844. "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17",
  845. "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23",
  846. "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29",
  847. "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  848. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
  849. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47",
  850. "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53",
  851. "gpio54", "gpio55", "gpio56", "gpio57", "gpio58", "gpio59",
  852. "gpio60", "gpio61", "gpio62", "gpio63", "gpio64", "gpio65",
  853. "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", "gpio71",
  854. "gpio72", "gpio73", "gpio74", "gpio75", "gpio77", "gpio78",
  855. "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
  856. "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90",
  857. "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96",
  858. "gpio97", "gpio98", "gpio99", "gpio100", "gpio101", "gpio102",
  859. "gpio103", "gpio104", "gpio105", "gpio106", "gpio107", "gpio108",
  860. "gpio109", "gpio110", "gpio111", "gpio112", "gpio113", "gpio114",
  861. "gpio115", "gpio116", "gpio117", "gpio118", "gpio119", "gpio120",
  862. "gpio121", "gpio122", "gpio123", "gpio124", "gpio125", "gpio126",
  863. "gpio127", "gpio128", "gpio129", "gpio130", "gpio131", "gpio132",
  864. "gpio133", "gpio134", "gpio135", "gpio136", "gpio137", "gpio138",
  865. "gpio139", "gpio140", "gpio141", "gpio142", "gpio143", "gpio144",
  866. "gpio145", "gpio146", "gpio147", "gpio148", "gpio149", "gpio150",
  867. "gpio151", "gpio152", "gpio153", "gpio154", "gpio155", "gpio156",
  868. "gpio157", "gpio158", "gpio159", "gpio160", "gpio161", "gpio162",
  869. "gpio163", "gpio164", "gpio165", "gpio166", "gpio167", "gpio168",
  870. "gpio169", "gpio170", "gpio171", "gpio172", "gpio173", "gpio174",
  871. "gpio175", "gpio176", "gpio177", "gpio178", "gpio179", "gpio180",
  872. "gpio181", "gpio182", "gpio183", "gpio184", "gpio185", "gpio186",
  873. "gpio187", "gpio188", "gpio189", "gpio190", "gpio191", "gpio192",
  874. "gpio193", "gpio194", "gpio195", "gpio196", "gpio197", "gpio198",
  875. "gpio199", "gpio200", "gpio201", "gpio202", "gpio203", "gpio204",
  876. "gpio205", "gpio206", "gpio207", "gpio208", "gpio209",
  877. };
  878. static const char * const egpio_groups[] = {
  879. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  880. "gpio6", "gpio7", "gpio165", "gpio166", "gpio167", "gpio168",
  881. "gpio169", "gpio170", "gpio171", "gpio172", "gpio173", "gpio174",
  882. "gpio175", "gpio176", "gpio177", "gpio178", "gpio179", "gpio180",
  883. "gpio181", "gpio182", "gpio183", "gpio184", "gpio185", "gpio186",
  884. "gpio187", "gpio188", "gpio189", "gpio190", "gpio191", "gpio192",
  885. "gpio193", "gpio194", "gpio195", "gpio196", "gpio197", "gpio198",
  886. "gpio199", "gpio200", "gpio201", "gpio202", "gpio203", "gpio204",
  887. "gpio205", "gpio206", "gpio207", "gpio208", "gpio209",
  888. };
  889. static const char *const aoss_cti_groups[] = {
  890. "gpio50",
  891. "gpio51",
  892. "gpio60",
  893. "gpio61",
  894. };
  895. static const char *const atest_char0_groups[] = {
  896. "gpio133",
  897. };
  898. static const char *const atest_char1_groups[] = {
  899. "gpio132",
  900. };
  901. static const char *const atest_char2_groups[] = {
  902. "gpio131",
  903. };
  904. static const char *const atest_char3_groups[] = {
  905. "gpio130",
  906. };
  907. static const char *const atest_char_start_groups[] = {
  908. "gpio137",
  909. };
  910. static const char *const atest_usb0_groups[] = {
  911. "gpio74",
  912. };
  913. static const char *const atest_usb00_groups[] = {
  914. "gpio131",
  915. };
  916. static const char *const atest_usb01_groups[] = {
  917. "gpio130",
  918. };
  919. static const char *const atest_usb02_groups[] = {
  920. "gpio71",
  921. };
  922. static const char *const atest_usb03_groups[] = {
  923. "gpio72",
  924. };
  925. static const char *const audio_ext_mclk0_groups[] = {
  926. "gpio125",
  927. };
  928. static const char *const audio_ext_mclk1_groups[] = {
  929. "gpio124",
  930. };
  931. static const char *const audio_ref_clk_groups[] = {
  932. "gpio124",
  933. };
  934. static const char *const cam_aon_mclk2_groups[] = {
  935. "gpio102",
  936. };
  937. static const char *const cam_aon_mclk4_groups[] = {
  938. "gpio104",
  939. };
  940. static const char *const cam_mclk_groups[] = {
  941. "gpio100", "gpio101", "gpio103", "gpio105", "gpio106", "gpio108",
  942. };
  943. static const char *const cci_async_in0_groups[] = {
  944. "gpio15",
  945. };
  946. static const char *const cci_async_in1_groups[] = {
  947. "gpio163",
  948. };
  949. static const char *const cci_async_in2_groups[] = {
  950. "gpio164",
  951. };
  952. static const char *const cci_i2c_scl0_groups[] = {
  953. "gpio114",
  954. };
  955. static const char *const cci_i2c_scl1_groups[] = {
  956. "gpio116",
  957. };
  958. static const char *const cci_i2c_scl2_groups[] = {
  959. "gpio118",
  960. };
  961. static const char *const cci_i2c_scl3_groups[] = {
  962. "gpio13",
  963. };
  964. static const char *const cci_i2c_scl4_groups[] = {
  965. "gpio153",
  966. };
  967. static const char *const cci_i2c_scl5_groups[] = {
  968. "gpio120",
  969. };
  970. static const char *const cci_i2c_sda0_groups[] = {
  971. "gpio113",
  972. };
  973. static const char *const cci_i2c_sda1_groups[] = {
  974. "gpio115",
  975. };
  976. static const char *const cci_i2c_sda2_groups[] = {
  977. "gpio117",
  978. };
  979. static const char *const cci_i2c_sda3_groups[] = {
  980. "gpio12",
  981. };
  982. static const char *const cci_i2c_sda4_groups[] = {
  983. "gpio112",
  984. };
  985. static const char *const cci_i2c_sda5_groups[] = {
  986. "gpio119",
  987. };
  988. static const char *const cci_timer0_groups[] = {
  989. "gpio109",
  990. };
  991. static const char *const cci_timer1_groups[] = {
  992. "gpio110",
  993. };
  994. static const char *const cci_timer2_groups[] = {
  995. "gpio10",
  996. };
  997. static const char *const cci_timer3_groups[] = {
  998. "gpio11",
  999. };
  1000. static const char *const cci_timer4_groups[] = {
  1001. "gpio111",
  1002. };
  1003. static const char *const cmu_rng0_groups[] = {
  1004. "gpio94",
  1005. "gpio129",
  1006. };
  1007. static const char *const cmu_rng1_groups[] = {
  1008. "gpio95",
  1009. "gpio128",
  1010. };
  1011. static const char *const cmu_rng2_groups[] = {
  1012. "gpio96",
  1013. "gpio127",
  1014. };
  1015. static const char *const cmu_rng3_groups[] = {
  1016. "gpio112",
  1017. "gpio122",
  1018. };
  1019. static const char *const coex_uart1_rx_groups[] = {
  1020. "gpio148",
  1021. };
  1022. static const char *const coex_uart1_tx_groups[] = {
  1023. "gpio149",
  1024. };
  1025. static const char *const coex_uart2_rx_groups[] = {
  1026. "gpio150",
  1027. };
  1028. static const char *const coex_uart2_tx_groups[] = {
  1029. "gpio151",
  1030. };
  1031. static const char *const cri_trng_groups[] = {
  1032. "gpio187",
  1033. };
  1034. static const char *const dbg_out_clk_groups[] = {
  1035. "gpio92",
  1036. };
  1037. static const char *const ddr_bist_complete_groups[] = {
  1038. "gpio44",
  1039. };
  1040. static const char *const ddr_bist_fail_groups[] = {
  1041. "gpio40",
  1042. };
  1043. static const char *const ddr_bist_start_groups[] = {
  1044. "gpio41",
  1045. };
  1046. static const char *const ddr_bist_stop_groups[] = {
  1047. "gpio45",
  1048. };
  1049. static const char *const ddr_pxi0_groups[] = {
  1050. "gpio75",
  1051. "gpio76",
  1052. };
  1053. static const char *const ddr_pxi1_groups[] = {
  1054. "gpio44",
  1055. "gpio45",
  1056. };
  1057. static const char *const ddr_pxi2_groups[] = {
  1058. "gpio51",
  1059. "gpio62",
  1060. };
  1061. static const char *const ddr_pxi3_groups[] = {
  1062. "gpio46",
  1063. "gpio47",
  1064. };
  1065. static const char *const do_not_groups[] = {
  1066. "gpio134",
  1067. "gpio135",
  1068. "gpio136",
  1069. };
  1070. static const char *const do_not0_groups[] = {
  1071. "gpio36",
  1072. };
  1073. static const char *const do_not1_groups[] = {
  1074. "gpio37",
  1075. };
  1076. static const char *const do_not2_groups[] = {
  1077. "gpio38",
  1078. };
  1079. static const char *const do_not3_groups[] = {
  1080. "gpio39",
  1081. };
  1082. static const char *const dp_hot_groups[] = {
  1083. "gpio47",
  1084. };
  1085. static const char *const gcc_gp1_groups[] = {
  1086. "gpio86",
  1087. "gpio134",
  1088. };
  1089. static const char *const gcc_gp2_groups[] = {
  1090. "gpio87",
  1091. "gpio135",
  1092. };
  1093. static const char *const gcc_gp3_groups[] = {
  1094. "gpio88",
  1095. "gpio136",
  1096. };
  1097. static const char *const gnss_adc0_groups[] = {
  1098. "gpio89",
  1099. "gpio91",
  1100. };
  1101. static const char *const gnss_adc1_groups[] = {
  1102. "gpio90",
  1103. "gpio92",
  1104. };
  1105. static const char *const i2chub0_se0_l0_groups[] = {
  1106. "gpio64",
  1107. };
  1108. static const char *const i2chub0_se0_l1_groups[] = {
  1109. "gpio65",
  1110. };
  1111. static const char *const i2chub0_se1_l0_groups[] = {
  1112. "gpio66",
  1113. };
  1114. static const char *const i2chub0_se1_l1_groups[] = {
  1115. "gpio67",
  1116. };
  1117. static const char *const i2chub0_se2_l0_groups[] = {
  1118. "gpio68",
  1119. };
  1120. static const char *const i2chub0_se2_l1_groups[] = {
  1121. "gpio69",
  1122. };
  1123. static const char *const i2chub0_se3_l0_groups[] = {
  1124. "gpio70",
  1125. };
  1126. static const char *const i2chub0_se3_l1_groups[] = {
  1127. "gpio71",
  1128. };
  1129. static const char *const i2chub0_se4_l0_groups[] = {
  1130. "gpio72",
  1131. };
  1132. static const char *const i2chub0_se4_l1_groups[] = {
  1133. "gpio73",
  1134. };
  1135. static const char *const i2chub0_se5_l0_groups[] = {
  1136. "gpio74",
  1137. };
  1138. static const char *const i2chub0_se5_l1_groups[] = {
  1139. "gpio75",
  1140. };
  1141. static const char *const i2chub0_se6_l0_groups[] = {
  1142. "gpio76",
  1143. };
  1144. static const char *const i2chub0_se6_l1_groups[] = {
  1145. "gpio77",
  1146. };
  1147. static const char *const i2chub0_se7_l0_groups[] = {
  1148. "gpio78",
  1149. };
  1150. static const char *const i2chub0_se7_l1_groups[] = {
  1151. "gpio79",
  1152. };
  1153. static const char *const i2chub0_se8_l0_groups[] = {
  1154. "gpio206",
  1155. };
  1156. static const char *const i2chub0_se8_l1_groups[] = {
  1157. "gpio207",
  1158. };
  1159. static const char *const i2chub0_se9_l0_groups[] = {
  1160. "gpio80",
  1161. };
  1162. static const char *const i2chub0_se9_l1_groups[] = {
  1163. "gpio81",
  1164. };
  1165. static const char *const i2s0_data0_groups[] = {
  1166. "gpio127",
  1167. };
  1168. static const char *const i2s0_data1_groups[] = {
  1169. "gpio128",
  1170. };
  1171. static const char *const i2s0_sck_groups[] = {
  1172. "gpio126",
  1173. };
  1174. static const char *const i2s0_ws_groups[] = {
  1175. "gpio129",
  1176. };
  1177. static const char *const i2s1_data0_groups[] = {
  1178. "gpio122",
  1179. };
  1180. static const char *const i2s1_data1_groups[] = {
  1181. "gpio124",
  1182. };
  1183. static const char *const i2s1_sck_groups[] = {
  1184. "gpio121",
  1185. };
  1186. static const char *const i2s1_ws_groups[] = {
  1187. "gpio123",
  1188. };
  1189. static const char *const ibi_i3c_groups[] = {
  1190. "gpio0", "gpio1", "gpio4", "gpio5", "gpio8", "gpio9",
  1191. "gpio12", "gpio13", "gpio32", "gpio33", "gpio36", "gpio37",
  1192. "gpio48", "gpio49", "gpio56", "gpio57",
  1193. };
  1194. static const char *const jitter_bist_groups[] = {
  1195. "gpio73",
  1196. };
  1197. static const char *const mdp_vsync_groups[] = {
  1198. "gpio86",
  1199. "gpio87",
  1200. "gpio133",
  1201. "gpio137",
  1202. };
  1203. static const char *const mdp_vsync0_out_groups[] = {
  1204. "gpio86",
  1205. };
  1206. static const char *const mdp_vsync1_out_groups[] = {
  1207. "gpio86",
  1208. };
  1209. static const char *const mdp_vsync2_out_groups[] = {
  1210. "gpio87",
  1211. };
  1212. static const char *const mdp_vsync3_out_groups[] = {
  1213. "gpio87",
  1214. };
  1215. static const char *const mdp_vsync_e_groups[] = {
  1216. "gpio88",
  1217. };
  1218. static const char *const nav_gpio0_groups[] = {
  1219. "gpio154",
  1220. };
  1221. static const char *const nav_gpio1_groups[] = {
  1222. "gpio155",
  1223. };
  1224. static const char *const nav_gpio2_groups[] = {
  1225. "gpio152",
  1226. };
  1227. static const char *const nav_gpio3_groups[] = {
  1228. "gpio154",
  1229. };
  1230. static const char *const pcie0_clk_req_n_groups[] = {
  1231. "gpio95",
  1232. };
  1233. static const char *const pcie1_clk_req_n_groups[] = {
  1234. "gpio98",
  1235. };
  1236. static const char *const phase_flag0_groups[] = {
  1237. "gpio0",
  1238. };
  1239. static const char *const phase_flag1_groups[] = {
  1240. "gpio1",
  1241. };
  1242. static const char *const phase_flag10_groups[] = {
  1243. "gpio15",
  1244. };
  1245. static const char *const phase_flag11_groups[] = {
  1246. "gpio16",
  1247. };
  1248. static const char *const phase_flag12_groups[] = {
  1249. "gpio17",
  1250. };
  1251. static const char *const phase_flag13_groups[] = {
  1252. "gpio19",
  1253. };
  1254. static const char *const phase_flag14_groups[] = {
  1255. "gpio94",
  1256. };
  1257. static const char *const phase_flag15_groups[] = {
  1258. "gpio95",
  1259. };
  1260. static const char *const phase_flag16_groups[] = {
  1261. "gpio96",
  1262. };
  1263. static const char *const phase_flag17_groups[] = {
  1264. "gpio109",
  1265. };
  1266. static const char *const phase_flag18_groups[] = {
  1267. "gpio13",
  1268. };
  1269. static const char *const phase_flag19_groups[] = {
  1270. "gpio111",
  1271. };
  1272. static const char *const phase_flag2_groups[] = {
  1273. "gpio3",
  1274. };
  1275. static const char *const phase_flag20_groups[] = {
  1276. "gpio112",
  1277. };
  1278. static const char *const phase_flag21_groups[] = {
  1279. "gpio113",
  1280. };
  1281. static const char *const phase_flag22_groups[] = {
  1282. "gpio114",
  1283. };
  1284. static const char *const phase_flag23_groups[] = {
  1285. "gpio115",
  1286. };
  1287. static const char *const phase_flag24_groups[] = {
  1288. "gpio116",
  1289. };
  1290. static const char *const phase_flag25_groups[] = {
  1291. "gpio117",
  1292. };
  1293. static const char *const phase_flag26_groups[] = {
  1294. "gpio118",
  1295. };
  1296. static const char *const phase_flag27_groups[] = {
  1297. "gpio119",
  1298. };
  1299. static const char *const phase_flag28_groups[] = {
  1300. "gpio120",
  1301. };
  1302. static const char *const phase_flag29_groups[] = {
  1303. "gpio153",
  1304. };
  1305. static const char *const phase_flag3_groups[] = {
  1306. "gpio4",
  1307. };
  1308. static const char *const phase_flag30_groups[] = {
  1309. "gpio163",
  1310. };
  1311. static const char *const phase_flag31_groups[] = {
  1312. "gpio164",
  1313. };
  1314. static const char *const phase_flag4_groups[] = {
  1315. "gpio5",
  1316. };
  1317. static const char *const phase_flag5_groups[] = {
  1318. "gpio7",
  1319. };
  1320. static const char *const phase_flag6_groups[] = {
  1321. "gpio8",
  1322. };
  1323. static const char *const phase_flag7_groups[] = {
  1324. "gpio9",
  1325. };
  1326. static const char *const phase_flag8_groups[] = {
  1327. "gpio11",
  1328. };
  1329. static const char *const phase_flag9_groups[] = {
  1330. "gpio12",
  1331. };
  1332. static const char *const pll_bist_sync_groups[] = {
  1333. "gpio68",
  1334. };
  1335. static const char *const pll_clk_aux_groups[] = {
  1336. "gpio106",
  1337. };
  1338. static const char *const prng_rosc0_groups[] = {
  1339. "gpio186",
  1340. };
  1341. static const char *const prng_rosc1_groups[] = {
  1342. "gpio183",
  1343. };
  1344. static const char *const prng_rosc2_groups[] = {
  1345. "gpio182",
  1346. };
  1347. static const char *const prng_rosc3_groups[] = {
  1348. "gpio181",
  1349. };
  1350. static const char *const qdss_cti_groups[] = {
  1351. "gpio27", "gpio31", "gpio78", "gpio79",
  1352. "gpio82", "gpio83", "gpio159", "gpio162",
  1353. };
  1354. static const char *const qdss_gpio_groups[] = {
  1355. "gpio115",
  1356. "gpio116",
  1357. "gpio148",
  1358. "gpio149",
  1359. };
  1360. static const char *const qdss_gpio0_groups[] = {
  1361. "gpio102",
  1362. "gpio140",
  1363. };
  1364. static const char *const qdss_gpio1_groups[] = {
  1365. "gpio103",
  1366. "gpio141",
  1367. };
  1368. static const char *const qdss_gpio10_groups[] = {
  1369. "gpio118",
  1370. "gpio152",
  1371. };
  1372. static const char *const qdss_gpio11_groups[] = {
  1373. "gpio100",
  1374. "gpio154",
  1375. };
  1376. static const char *const qdss_gpio12_groups[] = {
  1377. "gpio101",
  1378. "gpio155",
  1379. };
  1380. static const char *const qdss_gpio13_groups[] = {
  1381. "gpio13",
  1382. "gpio156",
  1383. };
  1384. static const char *const qdss_gpio14_groups[] = {
  1385. "gpio15",
  1386. "gpio157",
  1387. };
  1388. static const char *const qdss_gpio15_groups[] = {
  1389. "gpio7",
  1390. "gpio158",
  1391. };
  1392. static const char *const qdss_gpio2_groups[] = {
  1393. "gpio104",
  1394. "gpio142",
  1395. };
  1396. static const char *const qdss_gpio3_groups[] = {
  1397. "gpio105",
  1398. "gpio143",
  1399. };
  1400. static const char *const qdss_gpio4_groups[] = {
  1401. "gpio8",
  1402. "gpio144",
  1403. };
  1404. static const char *const qdss_gpio5_groups[] = {
  1405. "gpio145",
  1406. "gpio153",
  1407. };
  1408. static const char *const qdss_gpio6_groups[] = {
  1409. "gpio3",
  1410. "gpio146",
  1411. };
  1412. static const char *const qdss_gpio7_groups[] = {
  1413. "gpio113",
  1414. "gpio147",
  1415. };
  1416. static const char *const qdss_gpio8_groups[] = {
  1417. "gpio114",
  1418. "gpio150",
  1419. };
  1420. static const char *const qdss_gpio9_groups[] = {
  1421. "gpio117",
  1422. "gpio151",
  1423. };
  1424. static const char *const qlink_big_enable_groups[] = {
  1425. "gpio160",
  1426. };
  1427. static const char *const qlink_big_request_groups[] = {
  1428. "gpio159",
  1429. };
  1430. static const char *const qlink_little_enable_groups[] = {
  1431. "gpio157",
  1432. };
  1433. static const char *const qlink_little_request_groups[] = {
  1434. "gpio156",
  1435. };
  1436. static const char *const qlink_wmss_groups[] = {
  1437. "gpio158",
  1438. };
  1439. static const char *const qspi0_groups[] = {
  1440. "gpio134",
  1441. };
  1442. static const char *const qspi1_groups[] = {
  1443. "gpio136",
  1444. };
  1445. static const char *const qspi2_groups[] = {
  1446. "gpio56",
  1447. };
  1448. static const char *const qspi3_groups[] = {
  1449. "gpio57",
  1450. };
  1451. static const char *const qspi_clk_groups[] = {
  1452. "gpio135",
  1453. };
  1454. static const char *const qspi_cs_groups[] = {
  1455. "gpio58",
  1456. "gpio59",
  1457. };
  1458. static const char *const qup1_se0_l0_groups[] = {
  1459. "gpio32",
  1460. };
  1461. static const char *const qup1_se0_l1_groups[] = {
  1462. "gpio33",
  1463. };
  1464. static const char *const qup1_se0_l2_groups[] = {
  1465. "gpio34",
  1466. };
  1467. static const char *const qup1_se0_l3_groups[] = {
  1468. "gpio35",
  1469. };
  1470. static const char *const qup1_se1_l0_groups[] = {
  1471. "gpio36",
  1472. };
  1473. static const char *const qup1_se1_l1_groups[] = {
  1474. "gpio37",
  1475. };
  1476. static const char *const qup1_se1_l2_groups[] = {
  1477. "gpio38",
  1478. };
  1479. static const char *const qup1_se1_l3_groups[] = {
  1480. "gpio39",
  1481. };
  1482. static const char *const qup1_se2_l0_groups[] = {
  1483. "gpio40",
  1484. };
  1485. static const char *const qup1_se2_l1_groups[] = {
  1486. "gpio41",
  1487. };
  1488. static const char *const qup1_se2_l2_groups[] = {
  1489. "gpio42",
  1490. };
  1491. static const char *const qup1_se2_l3_groups[] = {
  1492. "gpio43",
  1493. };
  1494. static const char *const qup1_se2_l4_groups[] = {
  1495. "gpio44",
  1496. };
  1497. static const char *const qup1_se2_l5_groups[] = {
  1498. "gpio45",
  1499. };
  1500. static const char *const qup1_se2_l6_groups[] = {
  1501. "gpio46",
  1502. };
  1503. static const char *const qup1_se3_l0_groups[] = {
  1504. "gpio44",
  1505. };
  1506. static const char *const qup1_se3_l1_groups[] = {
  1507. "gpio45",
  1508. };
  1509. static const char *const qup1_se3_l2_groups[] = {
  1510. "gpio46",
  1511. };
  1512. static const char *const qup1_se3_l3_groups[] = {
  1513. "gpio47",
  1514. };
  1515. static const char *const qup1_se4_l0_groups[] = {
  1516. "gpio48",
  1517. };
  1518. static const char *const qup1_se4_l1_groups[] = {
  1519. "gpio49",
  1520. };
  1521. static const char *const qup1_se4_l2_groups[] = {
  1522. "gpio50",
  1523. };
  1524. static const char *const qup1_se4_l3_groups[] = {
  1525. "gpio51",
  1526. };
  1527. static const char *const qup1_se5_l0_groups[] = {
  1528. "gpio52",
  1529. };
  1530. static const char *const qup1_se5_l1_groups[] = {
  1531. "gpio53",
  1532. };
  1533. static const char *const qup1_se5_l2_groups[] = {
  1534. "gpio54",
  1535. };
  1536. static const char *const qup1_se5_l3_groups[] = {
  1537. "gpio55",
  1538. };
  1539. static const char *const qup1_se6_l0_groups[] = {
  1540. "gpio56",
  1541. };
  1542. static const char *const qup1_se6_l1_groups[] = {
  1543. "gpio57",
  1544. };
  1545. static const char *const qup1_se6_l2_groups[] = {
  1546. "gpio58",
  1547. };
  1548. static const char *const qup1_se6_l3_groups[] = {
  1549. "gpio59",
  1550. };
  1551. static const char *const qup1_se7_l0_groups[] = {
  1552. "gpio60",
  1553. };
  1554. static const char *const qup1_se7_l1_groups[] = {
  1555. "gpio61",
  1556. };
  1557. static const char *const qup1_se7_l2_groups[] = {
  1558. "gpio62",
  1559. };
  1560. static const char *const qup1_se7_l3_groups[] = {
  1561. "gpio63",
  1562. };
  1563. static const char *const qup2_se0_l0_groups[] = {
  1564. "gpio0",
  1565. };
  1566. static const char *const qup2_se0_l1_groups[] = {
  1567. "gpio1",
  1568. };
  1569. static const char *const qup2_se0_l2_groups[] = {
  1570. "gpio2",
  1571. };
  1572. static const char *const qup2_se0_l3_groups[] = {
  1573. "gpio3",
  1574. };
  1575. static const char *const qup2_se1_l0_groups[] = {
  1576. "gpio4",
  1577. };
  1578. static const char *const qup2_se1_l1_groups[] = {
  1579. "gpio5",
  1580. };
  1581. static const char *const qup2_se1_l2_groups[] = {
  1582. "gpio6",
  1583. };
  1584. static const char *const qup2_se1_l3_groups[] = {
  1585. "gpio7",
  1586. };
  1587. static const char *const qup2_se2_l0_groups[] = {
  1588. "gpio8",
  1589. };
  1590. static const char *const qup2_se2_l1_groups[] = {
  1591. "gpio9",
  1592. };
  1593. static const char *const qup2_se2_l2_groups[] = {
  1594. "gpio10",
  1595. };
  1596. static const char *const qup2_se2_l3_groups[] = {
  1597. "gpio11",
  1598. };
  1599. static const char *const qup2_se2_l4_groups[] = {
  1600. "gpio13",
  1601. };
  1602. static const char *const qup2_se2_l5_groups[] = {
  1603. "gpio15",
  1604. };
  1605. static const char *const qup2_se2_l6_groups[] = {
  1606. "gpio12",
  1607. };
  1608. static const char *const qup2_se3_l0_groups[] = {
  1609. "gpio12",
  1610. };
  1611. static const char *const qup2_se3_l1_groups[] = {
  1612. "gpio13",
  1613. };
  1614. static const char *const qup2_se3_l2_groups[] = {
  1615. "gpio14",
  1616. };
  1617. static const char *const qup2_se3_l3_groups[] = {
  1618. "gpio15",
  1619. };
  1620. static const char *const qup2_se4_l0_groups[] = {
  1621. "gpio16",
  1622. };
  1623. static const char *const qup2_se4_l1_groups[] = {
  1624. "gpio17",
  1625. };
  1626. static const char *const qup2_se4_l2_groups[] = {
  1627. "gpio18",
  1628. };
  1629. static const char *const qup2_se4_l3_groups[] = {
  1630. "gpio19",
  1631. };
  1632. static const char *const qup2_se5_l0_groups[] = {
  1633. "gpio20",
  1634. };
  1635. static const char *const qup2_se5_l1_groups[] = {
  1636. "gpio21",
  1637. };
  1638. static const char *const qup2_se5_l2_groups[] = {
  1639. "gpio22",
  1640. };
  1641. static const char *const qup2_se5_l3_groups[] = {
  1642. "gpio23",
  1643. };
  1644. static const char *const qup2_se5_l6_groups[] = {
  1645. "gpio23",
  1646. };
  1647. static const char *const qup2_se6_l0_groups[] = {
  1648. "gpio24",
  1649. };
  1650. static const char *const qup2_se6_l1_groups[] = {
  1651. "gpio25",
  1652. };
  1653. static const char *const qup2_se6_l2_groups[] = {
  1654. "gpio26",
  1655. };
  1656. static const char *const qup2_se6_l3_groups[] = {
  1657. "gpio27",
  1658. };
  1659. static const char *const qup2_se7_l0_groups[] = {
  1660. "gpio28",
  1661. };
  1662. static const char *const qup2_se7_l1_groups[] = {
  1663. "gpio29",
  1664. };
  1665. static const char *const qup2_se7_l2_groups[] = {
  1666. "gpio30",
  1667. };
  1668. static const char *const qup2_se7_l3_groups[] = {
  1669. "gpio31",
  1670. };
  1671. static const char *const sd_write_protect_groups[] = {
  1672. "gpio93",
  1673. };
  1674. static const char *const sdc40_groups[] = {
  1675. "gpio134",
  1676. };
  1677. static const char *const sdc41_groups[] = {
  1678. "gpio136",
  1679. };
  1680. static const char *const sdc42_groups[] = {
  1681. "gpio56",
  1682. };
  1683. static const char *const sdc43_groups[] = {
  1684. "gpio57",
  1685. };
  1686. static const char *const sdc4_clk_groups[] = {
  1687. "gpio135",
  1688. };
  1689. static const char *const sdc4_cmd_groups[] = {
  1690. "gpio59",
  1691. };
  1692. static const char *const tb_trig_sdc2_groups[] = {
  1693. "gpio8",
  1694. };
  1695. static const char *const tb_trig_sdc4_groups[] = {
  1696. "gpio58",
  1697. };
  1698. static const char *const tgu_ch0_trigout_groups[] = {
  1699. "gpio8",
  1700. };
  1701. static const char *const tgu_ch1_trigout_groups[] = {
  1702. "gpio9",
  1703. };
  1704. static const char *const tgu_ch2_trigout_groups[] = {
  1705. "gpio10",
  1706. };
  1707. static const char *const tgu_ch3_trigout_groups[] = {
  1708. "gpio11",
  1709. };
  1710. static const char *const tmess_prng0_groups[] = {
  1711. "gpio94",
  1712. };
  1713. static const char *const tmess_prng1_groups[] = {
  1714. "gpio95",
  1715. };
  1716. static const char *const tmess_prng2_groups[] = {
  1717. "gpio96",
  1718. };
  1719. static const char *const tmess_prng3_groups[] = {
  1720. "gpio109",
  1721. };
  1722. static const char *const tsense_pwm1_groups[] = {
  1723. "gpio58",
  1724. };
  1725. static const char *const tsense_pwm2_groups[] = {
  1726. "gpio58",
  1727. };
  1728. static const char *const tsense_pwm3_groups[] = {
  1729. "gpio58",
  1730. };
  1731. static const char *const uim0_clk_groups[] = {
  1732. "gpio131",
  1733. };
  1734. static const char *const uim0_data_groups[] = {
  1735. "gpio130",
  1736. };
  1737. static const char *const uim0_present_groups[] = {
  1738. "gpio47",
  1739. };
  1740. static const char *const uim0_reset_groups[] = {
  1741. "gpio132",
  1742. };
  1743. static const char *const uim1_clk_groups[] = {
  1744. "gpio135",
  1745. };
  1746. static const char *const uim1_data_groups[] = {
  1747. "gpio134",
  1748. };
  1749. static const char *const uim1_present_groups[] = {
  1750. "gpio76",
  1751. };
  1752. static const char *const uim1_reset_groups[] = {
  1753. "gpio136",
  1754. };
  1755. static const char *const usb1_hs_groups[] = {
  1756. "gpio89",
  1757. };
  1758. static const char *const usb_phy_groups[] = {
  1759. "gpio29",
  1760. "gpio54",
  1761. };
  1762. static const char *const vfr_0_groups[] = {
  1763. "gpio150",
  1764. };
  1765. static const char *const vfr_1_groups[] = {
  1766. "gpio155",
  1767. };
  1768. static const char *const vsense_trigger_mirnat_groups[] = {
  1769. "gpio60",
  1770. };
  1771. static const struct msm_function pineapple_functions[] = {
  1772. FUNCTION(gpio),
  1773. FUNCTION(aoss_cti),
  1774. FUNCTION(atest_char0),
  1775. FUNCTION(atest_char1),
  1776. FUNCTION(atest_char2),
  1777. FUNCTION(atest_char3),
  1778. FUNCTION(atest_char_start),
  1779. FUNCTION(atest_usb0),
  1780. FUNCTION(atest_usb00),
  1781. FUNCTION(atest_usb01),
  1782. FUNCTION(atest_usb02),
  1783. FUNCTION(atest_usb03),
  1784. FUNCTION(audio_ext_mclk0),
  1785. FUNCTION(audio_ext_mclk1),
  1786. FUNCTION(audio_ref_clk),
  1787. FUNCTION(cam_aon_mclk2),
  1788. FUNCTION(cam_aon_mclk4),
  1789. FUNCTION(cam_mclk),
  1790. FUNCTION(cci_async_in0),
  1791. FUNCTION(cci_async_in1),
  1792. FUNCTION(cci_async_in2),
  1793. FUNCTION(cci_i2c_scl0),
  1794. FUNCTION(cci_i2c_scl1),
  1795. FUNCTION(cci_i2c_scl2),
  1796. FUNCTION(cci_i2c_scl3),
  1797. FUNCTION(cci_i2c_scl4),
  1798. FUNCTION(cci_i2c_scl5),
  1799. FUNCTION(cci_i2c_sda0),
  1800. FUNCTION(cci_i2c_sda1),
  1801. FUNCTION(cci_i2c_sda2),
  1802. FUNCTION(cci_i2c_sda3),
  1803. FUNCTION(cci_i2c_sda4),
  1804. FUNCTION(cci_i2c_sda5),
  1805. FUNCTION(cci_timer0),
  1806. FUNCTION(cci_timer1),
  1807. FUNCTION(cci_timer2),
  1808. FUNCTION(cci_timer3),
  1809. FUNCTION(cci_timer4),
  1810. FUNCTION(cmu_rng0),
  1811. FUNCTION(cmu_rng1),
  1812. FUNCTION(cmu_rng2),
  1813. FUNCTION(cmu_rng3),
  1814. FUNCTION(coex_uart1_rx),
  1815. FUNCTION(coex_uart1_tx),
  1816. FUNCTION(coex_uart2_rx),
  1817. FUNCTION(coex_uart2_tx),
  1818. FUNCTION(cri_trng),
  1819. FUNCTION(dbg_out_clk),
  1820. FUNCTION(ddr_bist_complete),
  1821. FUNCTION(ddr_bist_fail),
  1822. FUNCTION(ddr_bist_start),
  1823. FUNCTION(ddr_bist_stop),
  1824. FUNCTION(ddr_pxi0),
  1825. FUNCTION(ddr_pxi1),
  1826. FUNCTION(ddr_pxi2),
  1827. FUNCTION(ddr_pxi3),
  1828. FUNCTION(do_not),
  1829. FUNCTION(do_not0),
  1830. FUNCTION(do_not1),
  1831. FUNCTION(do_not2),
  1832. FUNCTION(do_not3),
  1833. FUNCTION(dp_hot),
  1834. FUNCTION(egpio),
  1835. FUNCTION(gcc_gp1),
  1836. FUNCTION(gcc_gp2),
  1837. FUNCTION(gcc_gp3),
  1838. FUNCTION(gnss_adc0),
  1839. FUNCTION(gnss_adc1),
  1840. FUNCTION(i2chub0_se0_l0),
  1841. FUNCTION(i2chub0_se0_l1),
  1842. FUNCTION(i2chub0_se1_l0),
  1843. FUNCTION(i2chub0_se1_l1),
  1844. FUNCTION(i2chub0_se2_l0),
  1845. FUNCTION(i2chub0_se2_l1),
  1846. FUNCTION(i2chub0_se3_l0),
  1847. FUNCTION(i2chub0_se3_l1),
  1848. FUNCTION(i2chub0_se4_l0),
  1849. FUNCTION(i2chub0_se4_l1),
  1850. FUNCTION(i2chub0_se5_l0),
  1851. FUNCTION(i2chub0_se5_l1),
  1852. FUNCTION(i2chub0_se6_l0),
  1853. FUNCTION(i2chub0_se6_l1),
  1854. FUNCTION(i2chub0_se7_l0),
  1855. FUNCTION(i2chub0_se7_l1),
  1856. FUNCTION(i2chub0_se8_l0),
  1857. FUNCTION(i2chub0_se8_l1),
  1858. FUNCTION(i2chub0_se9_l0),
  1859. FUNCTION(i2chub0_se9_l1),
  1860. FUNCTION(i2s0_data0),
  1861. FUNCTION(i2s0_data1),
  1862. FUNCTION(i2s0_sck),
  1863. FUNCTION(i2s0_ws),
  1864. FUNCTION(i2s1_data0),
  1865. FUNCTION(i2s1_data1),
  1866. FUNCTION(i2s1_sck),
  1867. FUNCTION(i2s1_ws),
  1868. FUNCTION(ibi_i3c),
  1869. FUNCTION(jitter_bist),
  1870. FUNCTION(mdp_vsync),
  1871. FUNCTION(mdp_vsync0_out),
  1872. FUNCTION(mdp_vsync1_out),
  1873. FUNCTION(mdp_vsync2_out),
  1874. FUNCTION(mdp_vsync3_out),
  1875. FUNCTION(mdp_vsync_e),
  1876. FUNCTION(nav_gpio0),
  1877. FUNCTION(nav_gpio1),
  1878. FUNCTION(nav_gpio2),
  1879. FUNCTION(nav_gpio3),
  1880. FUNCTION(pcie0_clk_req_n),
  1881. FUNCTION(pcie1_clk_req_n),
  1882. FUNCTION(phase_flag0),
  1883. FUNCTION(phase_flag1),
  1884. FUNCTION(phase_flag10),
  1885. FUNCTION(phase_flag11),
  1886. FUNCTION(phase_flag12),
  1887. FUNCTION(phase_flag13),
  1888. FUNCTION(phase_flag14),
  1889. FUNCTION(phase_flag15),
  1890. FUNCTION(phase_flag16),
  1891. FUNCTION(phase_flag17),
  1892. FUNCTION(phase_flag18),
  1893. FUNCTION(phase_flag19),
  1894. FUNCTION(phase_flag2),
  1895. FUNCTION(phase_flag20),
  1896. FUNCTION(phase_flag21),
  1897. FUNCTION(phase_flag22),
  1898. FUNCTION(phase_flag23),
  1899. FUNCTION(phase_flag24),
  1900. FUNCTION(phase_flag25),
  1901. FUNCTION(phase_flag26),
  1902. FUNCTION(phase_flag27),
  1903. FUNCTION(phase_flag28),
  1904. FUNCTION(phase_flag29),
  1905. FUNCTION(phase_flag3),
  1906. FUNCTION(phase_flag30),
  1907. FUNCTION(phase_flag31),
  1908. FUNCTION(phase_flag4),
  1909. FUNCTION(phase_flag5),
  1910. FUNCTION(phase_flag6),
  1911. FUNCTION(phase_flag7),
  1912. FUNCTION(phase_flag8),
  1913. FUNCTION(phase_flag9),
  1914. FUNCTION(pll_bist_sync),
  1915. FUNCTION(pll_clk_aux),
  1916. FUNCTION(prng_rosc0),
  1917. FUNCTION(prng_rosc1),
  1918. FUNCTION(prng_rosc2),
  1919. FUNCTION(prng_rosc3),
  1920. FUNCTION(qdss_cti),
  1921. FUNCTION(qdss_gpio),
  1922. FUNCTION(qdss_gpio0),
  1923. FUNCTION(qdss_gpio1),
  1924. FUNCTION(qdss_gpio10),
  1925. FUNCTION(qdss_gpio11),
  1926. FUNCTION(qdss_gpio12),
  1927. FUNCTION(qdss_gpio13),
  1928. FUNCTION(qdss_gpio14),
  1929. FUNCTION(qdss_gpio15),
  1930. FUNCTION(qdss_gpio2),
  1931. FUNCTION(qdss_gpio3),
  1932. FUNCTION(qdss_gpio4),
  1933. FUNCTION(qdss_gpio5),
  1934. FUNCTION(qdss_gpio6),
  1935. FUNCTION(qdss_gpio7),
  1936. FUNCTION(qdss_gpio8),
  1937. FUNCTION(qdss_gpio9),
  1938. FUNCTION(qlink_big_enable),
  1939. FUNCTION(qlink_big_request),
  1940. FUNCTION(qlink_little_enable),
  1941. FUNCTION(qlink_little_request),
  1942. FUNCTION(qlink_wmss),
  1943. FUNCTION(qspi0),
  1944. FUNCTION(qspi1),
  1945. FUNCTION(qspi2),
  1946. FUNCTION(qspi3),
  1947. FUNCTION(qspi_clk),
  1948. FUNCTION(qspi_cs),
  1949. FUNCTION(qup1_se0_l0),
  1950. FUNCTION(qup1_se0_l1),
  1951. FUNCTION(qup1_se0_l2),
  1952. FUNCTION(qup1_se0_l3),
  1953. FUNCTION(qup1_se1_l0),
  1954. FUNCTION(qup1_se1_l1),
  1955. FUNCTION(qup1_se1_l2),
  1956. FUNCTION(qup1_se1_l3),
  1957. FUNCTION(qup1_se2_l0),
  1958. FUNCTION(qup1_se2_l1),
  1959. FUNCTION(qup1_se2_l2),
  1960. FUNCTION(qup1_se2_l3),
  1961. FUNCTION(qup1_se2_l4),
  1962. FUNCTION(qup1_se2_l5),
  1963. FUNCTION(qup1_se2_l6),
  1964. FUNCTION(qup1_se3_l0),
  1965. FUNCTION(qup1_se3_l1),
  1966. FUNCTION(qup1_se3_l2),
  1967. FUNCTION(qup1_se3_l3),
  1968. FUNCTION(qup1_se4_l0),
  1969. FUNCTION(qup1_se4_l1),
  1970. FUNCTION(qup1_se4_l2),
  1971. FUNCTION(qup1_se4_l3),
  1972. FUNCTION(qup1_se5_l0),
  1973. FUNCTION(qup1_se5_l1),
  1974. FUNCTION(qup1_se5_l2),
  1975. FUNCTION(qup1_se5_l3),
  1976. FUNCTION(qup1_se6_l0),
  1977. FUNCTION(qup1_se6_l1),
  1978. FUNCTION(qup1_se6_l2),
  1979. FUNCTION(qup1_se6_l3),
  1980. FUNCTION(qup1_se7_l0),
  1981. FUNCTION(qup1_se7_l1),
  1982. FUNCTION(qup1_se7_l2),
  1983. FUNCTION(qup1_se7_l3),
  1984. FUNCTION(qup2_se0_l0),
  1985. FUNCTION(qup2_se0_l1),
  1986. FUNCTION(qup2_se0_l2),
  1987. FUNCTION(qup2_se0_l3),
  1988. FUNCTION(qup2_se1_l0),
  1989. FUNCTION(qup2_se1_l1),
  1990. FUNCTION(qup2_se1_l2),
  1991. FUNCTION(qup2_se1_l3),
  1992. FUNCTION(qup2_se2_l0),
  1993. FUNCTION(qup2_se2_l1),
  1994. FUNCTION(qup2_se2_l2),
  1995. FUNCTION(qup2_se2_l3),
  1996. FUNCTION(qup2_se2_l4),
  1997. FUNCTION(qup2_se2_l5),
  1998. FUNCTION(qup2_se2_l6),
  1999. FUNCTION(qup2_se3_l0),
  2000. FUNCTION(qup2_se3_l1),
  2001. FUNCTION(qup2_se3_l2),
  2002. FUNCTION(qup2_se3_l3),
  2003. FUNCTION(qup2_se4_l0),
  2004. FUNCTION(qup2_se4_l1),
  2005. FUNCTION(qup2_se4_l2),
  2006. FUNCTION(qup2_se4_l3),
  2007. FUNCTION(qup2_se5_l0),
  2008. FUNCTION(qup2_se5_l1),
  2009. FUNCTION(qup2_se5_l2),
  2010. FUNCTION(qup2_se5_l3),
  2011. FUNCTION(qup2_se5_l6),
  2012. FUNCTION(qup2_se6_l0),
  2013. FUNCTION(qup2_se6_l1),
  2014. FUNCTION(qup2_se6_l2),
  2015. FUNCTION(qup2_se6_l3),
  2016. FUNCTION(qup2_se7_l0),
  2017. FUNCTION(qup2_se7_l1),
  2018. FUNCTION(qup2_se7_l2),
  2019. FUNCTION(qup2_se7_l3),
  2020. FUNCTION(sd_write_protect),
  2021. FUNCTION(sdc40),
  2022. FUNCTION(sdc41),
  2023. FUNCTION(sdc42),
  2024. FUNCTION(sdc43),
  2025. FUNCTION(sdc4_clk),
  2026. FUNCTION(sdc4_cmd),
  2027. FUNCTION(tb_trig_sdc2),
  2028. FUNCTION(tb_trig_sdc4),
  2029. FUNCTION(tgu_ch0_trigout),
  2030. FUNCTION(tgu_ch1_trigout),
  2031. FUNCTION(tgu_ch2_trigout),
  2032. FUNCTION(tgu_ch3_trigout),
  2033. FUNCTION(tmess_prng0),
  2034. FUNCTION(tmess_prng1),
  2035. FUNCTION(tmess_prng2),
  2036. FUNCTION(tmess_prng3),
  2037. FUNCTION(tsense_pwm1),
  2038. FUNCTION(tsense_pwm2),
  2039. FUNCTION(tsense_pwm3),
  2040. FUNCTION(uim0_clk),
  2041. FUNCTION(uim0_data),
  2042. FUNCTION(uim0_present),
  2043. FUNCTION(uim0_reset),
  2044. FUNCTION(uim1_clk),
  2045. FUNCTION(uim1_data),
  2046. FUNCTION(uim1_present),
  2047. FUNCTION(uim1_reset),
  2048. FUNCTION(usb1_hs),
  2049. FUNCTION(usb_phy),
  2050. FUNCTION(vfr_0),
  2051. FUNCTION(vfr_1),
  2052. FUNCTION(vsense_trigger_mirnat),
  2053. };
  2054. /* Every pin is maintained as a single group, and missing or non-existing pin
  2055. * would be maintained as dummy group to synchronize pin group index with
  2056. * pin descriptor registered with pinctrl core.
  2057. * Clients would not be able to request these dummy pin groups.
  2058. */
  2059. static const struct msm_pingroup pineapple_groups[] = {
  2060. [0] = PINGROUP(0, qup2_se0_l0, ibi_i3c, phase_flag0, NA, NA, NA, NA, NA,
  2061. NA, egpio, 0, -1),
  2062. [1] = PINGROUP(1, qup2_se0_l1, ibi_i3c, phase_flag1, NA, NA, NA, NA, NA,
  2063. NA, egpio, 0, -1),
  2064. [2] = PINGROUP(2, qup2_se0_l2, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2065. -1),
  2066. [3] = PINGROUP(3, qup2_se0_l3, phase_flag2, NA, qdss_gpio6, NA, NA, NA,
  2067. NA, NA, egpio, 0, -1),
  2068. [4] = PINGROUP(4, qup2_se1_l0, ibi_i3c, phase_flag3, NA, NA, NA, NA, NA,
  2069. NA, egpio, 0, -1),
  2070. [5] = PINGROUP(5, qup2_se1_l1, ibi_i3c, phase_flag4, NA, NA, NA, NA, NA,
  2071. NA, egpio, 0, -1),
  2072. [6] = PINGROUP(6, qup2_se1_l2, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2073. -1),
  2074. [7] = PINGROUP(7, qup2_se1_l3, phase_flag5, NA, qdss_gpio15, NA, NA, NA,
  2075. NA, NA, egpio, 0, -1),
  2076. [8] = PINGROUP(8, qup2_se2_l0, ibi_i3c, tb_trig_sdc2, phase_flag6,
  2077. tgu_ch0_trigout, NA, qdss_gpio4, NA, NA, NA, 0, -1),
  2078. [9] = PINGROUP(9, qup2_se2_l1, ibi_i3c, phase_flag7, tgu_ch1_trigout,
  2079. NA, NA, NA, NA, NA, NA, 0, -1),
  2080. [10] = PINGROUP(10, qup2_se2_l2, cci_timer2, tgu_ch2_trigout, NA, NA,
  2081. NA, NA, NA, NA, NA, 0, -1),
  2082. [11] = PINGROUP(11, qup2_se2_l3, cci_timer3, phase_flag8,
  2083. tgu_ch3_trigout, NA, NA, NA, NA, NA, NA, 0, -1),
  2084. [12] = PINGROUP(12, qup2_se3_l0, cci_i2c_sda3, ibi_i3c, qup2_se2_l6,
  2085. phase_flag9, NA, NA, NA, NA, NA, 0, -1),
  2086. [13] = PINGROUP(13, qup2_se3_l1, cci_i2c_scl3, ibi_i3c, qup2_se2_l4,
  2087. phase_flag18, NA, qdss_gpio13, NA, NA, NA, 0, -1),
  2088. [14] = PINGROUP(14, qup2_se3_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2089. -1),
  2090. [15] = PINGROUP(15, qup2_se3_l3, cci_async_in0, qup2_se2_l5,
  2091. phase_flag10, NA, qdss_gpio14, NA, NA, NA, NA, 0, -1),
  2092. [16] = PINGROUP(16, qup2_se4_l0, phase_flag11, NA, NA, NA, NA, NA, NA,
  2093. NA, NA, 0, -1),
  2094. [17] = PINGROUP(17, qup2_se4_l1, phase_flag12, NA, NA, NA, NA, NA, NA,
  2095. NA, NA, 0, -1),
  2096. [18] = PINGROUP(18, qup2_se4_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2097. -1),
  2098. [19] = PINGROUP(19, qup2_se4_l3, phase_flag13, NA, NA, NA, NA, NA, NA,
  2099. NA, NA, 0, -1),
  2100. [20] = PINGROUP(20, qup2_se5_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2101. -1),
  2102. [21] = PINGROUP(21, qup2_se5_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2103. -1),
  2104. [22] = PINGROUP(22, qup2_se5_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2105. -1),
  2106. [23] = PINGROUP(23, qup2_se5_l3, qup2_se5_l6, NA, NA, NA, NA, NA, NA,
  2107. NA, NA, 0, -1),
  2108. [24] = PINGROUP(24, qup2_se6_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2109. -1),
  2110. [25] = PINGROUP(25, qup2_se6_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2111. -1),
  2112. [26] = PINGROUP(26, qup2_se6_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2113. -1),
  2114. [27] = PINGROUP(27, qup2_se6_l3, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  2115. NA, 0, -1),
  2116. [28] = PINGROUP(28, qup2_se7_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2117. -1),
  2118. [29] = PINGROUP(29, qup2_se7_l1, usb_phy, NA, NA, NA, NA, NA, NA, NA,
  2119. NA, 0, -1),
  2120. [30] = PINGROUP(30, qup2_se7_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2121. -1),
  2122. [31] = PINGROUP(31, qup2_se7_l3, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  2123. NA, 0, -1),
  2124. [32] = PINGROUP(32, qup1_se0_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2125. NA, 0, -1),
  2126. [33] = PINGROUP(33, qup1_se0_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2127. NA, 0, -1),
  2128. [34] = PINGROUP(34, qup1_se0_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2129. -1),
  2130. [35] = PINGROUP(35, qup1_se0_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2131. -1),
  2132. [36] = PINGROUP(36, qup1_se1_l0, do_not0, ibi_i3c, NA, NA, NA, NA, NA,
  2133. NA, NA, 0, -1),
  2134. [37] = PINGROUP(37, qup1_se1_l1, do_not1, ibi_i3c, NA, NA, NA, NA, NA,
  2135. NA, NA, 0, -1),
  2136. [38] = PINGROUP(38, qup1_se1_l2, do_not2, NA, NA, NA, NA, NA, NA, NA,
  2137. NA, 0, -1),
  2138. [39] = PINGROUP(39, qup1_se1_l3, do_not3, NA, NA, NA, NA, NA, NA, NA,
  2139. NA, 0, -1),
  2140. [40] = PINGROUP(40, qup1_se2_l0, ddr_bist_fail, NA, NA, NA, NA, NA, NA,
  2141. NA, NA, 0, -1),
  2142. [41] = PINGROUP(41, qup1_se2_l1, ddr_bist_start, NA, NA, NA, NA, NA, NA,
  2143. NA, NA, 0, -1),
  2144. [42] = PINGROUP(42, qup1_se2_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2145. -1),
  2146. [43] = PINGROUP(43, qup1_se2_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2147. -1),
  2148. [44] = PINGROUP(44, qup1_se3_l0, qup1_se2_l4, ddr_bist_complete,
  2149. ddr_pxi1, NA, NA, NA, NA, NA, NA, 0, -1),
  2150. [45] = PINGROUP(45, qup1_se3_l1, qup1_se2_l5, ddr_bist_stop, ddr_pxi1,
  2151. NA, NA, NA, NA, NA, NA, 0, -1),
  2152. [46] = PINGROUP(46, qup1_se3_l2, qup1_se2_l6, ddr_pxi3, NA, NA, NA, NA,
  2153. NA, NA, NA, 0, -1),
  2154. [47] = PINGROUP(47, qup1_se3_l3, uim0_present, dp_hot, ddr_pxi3, NA, NA,
  2155. NA, NA, NA, NA, 0, -1),
  2156. [48] = PINGROUP(48, qup1_se4_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2157. NA, 0, -1),
  2158. [49] = PINGROUP(49, qup1_se4_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2159. NA, 0, -1),
  2160. [50] = PINGROUP(50, qup1_se4_l2, aoss_cti, NA, NA, NA, NA, NA, NA, NA,
  2161. NA, 0, -1),
  2162. [51] = PINGROUP(51, qup1_se4_l3, aoss_cti, ddr_pxi2, NA, NA, NA, NA, NA,
  2163. NA, NA, 0, -1),
  2164. [52] = PINGROUP(52, qup1_se5_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2165. -1),
  2166. [53] = PINGROUP(53, qup1_se5_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2167. -1),
  2168. [54] = PINGROUP(54, qup1_se5_l2, usb_phy, NA, NA, NA, NA, NA, NA, NA,
  2169. NA, 0, -1),
  2170. [55] = PINGROUP(55, qup1_se5_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2171. -1),
  2172. [56] = PINGROUP(56, qup1_se6_l0, ibi_i3c, qspi2, sdc42, NA, NA, NA, NA,
  2173. NA, NA, 0, -1),
  2174. [57] = PINGROUP(57, qup1_se6_l1, ibi_i3c, qspi3, sdc43, NA, NA, NA, NA,
  2175. NA, NA, 0, -1),
  2176. [58] = PINGROUP(58, qup1_se6_l2, qspi_cs, tb_trig_sdc4, tsense_pwm1,
  2177. tsense_pwm2, tsense_pwm3, NA, NA, NA, NA, 0, -1),
  2178. [59] = PINGROUP(59, qup1_se6_l3, NA, qspi_cs, sdc4_cmd, NA, NA, NA, NA,
  2179. NA, NA, 0, -1),
  2180. [60] = PINGROUP(60, qup1_se7_l0, aoss_cti, vsense_trigger_mirnat, NA,
  2181. NA, NA, NA, NA, NA, NA, 0, -1),
  2182. [61] = PINGROUP(61, qup1_se7_l1, aoss_cti, NA, NA, NA, NA, NA, NA, NA,
  2183. NA, 0, -1),
  2184. [62] = PINGROUP(62, qup1_se7_l2, ddr_pxi2, NA, NA, NA, NA, NA, NA, NA,
  2185. NA, 0, -1),
  2186. [63] = PINGROUP(63, qup1_se7_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2187. -1),
  2188. [64] = PINGROUP(64, i2chub0_se0_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2189. 0, -1),
  2190. [65] = PINGROUP(65, i2chub0_se0_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2191. 0, -1),
  2192. [66] = PINGROUP(66, i2chub0_se1_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2193. 0, -1),
  2194. [67] = PINGROUP(67, i2chub0_se1_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2195. 0, -1),
  2196. [68] = PINGROUP(68, i2chub0_se2_l0, pll_bist_sync, NA, NA, NA, NA, NA,
  2197. NA, NA, NA, 0, -1),
  2198. [69] = PINGROUP(69, i2chub0_se2_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2199. 0, -1),
  2200. [70] = PINGROUP(70, i2chub0_se3_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2201. 0, -1),
  2202. [71] = PINGROUP(71, i2chub0_se3_l1, NA, atest_usb02, NA, NA, NA, NA, NA,
  2203. NA, NA, 0, -1),
  2204. [72] = PINGROUP(72, i2chub0_se4_l0, NA, atest_usb03, NA, NA, NA, NA, NA,
  2205. NA, NA, 0, -1),
  2206. [73] = PINGROUP(73, i2chub0_se4_l1, jitter_bist, NA, NA, NA, NA, NA, NA,
  2207. NA, NA, 0, -1),
  2208. [74] = PINGROUP(74, i2chub0_se5_l0, atest_usb0, NA, NA, NA, NA, NA, NA,
  2209. NA, NA, 0, -1),
  2210. [75] = PINGROUP(75, i2chub0_se5_l1, ddr_pxi0, NA, NA, NA, NA, NA, NA,
  2211. NA, NA, 0, -1),
  2212. [76] = PINGROUP(76, i2chub0_se6_l0, ddr_pxi0, uim1_present, NA, NA, NA,
  2213. NA, NA, NA, NA, 0, -1),
  2214. [77] = PINGROUP(77, i2chub0_se6_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2215. 0, -1),
  2216. [78] = PINGROUP(78, i2chub0_se7_l0, qdss_cti, NA, NA, NA, NA, NA, NA,
  2217. NA, NA, 0, -1),
  2218. [79] = PINGROUP(79, i2chub0_se7_l1, qdss_cti, NA, NA, NA, NA, NA, NA,
  2219. NA, NA, 0, -1),
  2220. [80] = PINGROUP(80, i2chub0_se9_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2221. 0, -1),
  2222. [81] = PINGROUP(81, i2chub0_se9_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2223. 0, -1),
  2224. [82] = PINGROUP(82, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2225. -1),
  2226. [83] = PINGROUP(83, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2227. -1),
  2228. [84] = PINGROUP(84, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2229. [85] = PINGROUP(85, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2230. [86] = PINGROUP(86, mdp_vsync, mdp_vsync0_out, mdp_vsync1_out, gcc_gp1,
  2231. NA, NA, NA, NA, NA, NA, 0, -1),
  2232. [87] = PINGROUP(87, mdp_vsync, mdp_vsync2_out, mdp_vsync3_out, gcc_gp2,
  2233. NA, NA, NA, NA, NA, NA, 0, -1),
  2234. [88] = PINGROUP(88, mdp_vsync_e, gcc_gp3, NA, NA, NA, NA, NA, NA, NA,
  2235. NA, 0, -1),
  2236. [89] = PINGROUP(89, usb1_hs, gnss_adc0, NA, NA, NA, NA, NA, NA, NA, NA,
  2237. 0, -1),
  2238. [90] = PINGROUP(90, gnss_adc1, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2239. -1),
  2240. [91] = PINGROUP(91, NA, gnss_adc0, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2241. -1),
  2242. [92] = PINGROUP(92, dbg_out_clk, gnss_adc1, NA, NA, NA, NA, NA, NA, NA,
  2243. NA, 0, -1),
  2244. [93] = PINGROUP(93, sd_write_protect, NA, NA, NA, NA, NA, NA, NA, NA,
  2245. NA, 0, -1),
  2246. [94] = PINGROUP(94, cmu_rng0, phase_flag14, tmess_prng0, NA, NA, NA, NA,
  2247. NA, NA, NA, 0, -1),
  2248. [95] = PINGROUP(95, pcie0_clk_req_n, cmu_rng1, phase_flag15,
  2249. tmess_prng1, NA, NA, NA, NA, NA, NA, 0, -1),
  2250. [96] = PINGROUP(96, cmu_rng2, phase_flag16, tmess_prng2, NA, NA, NA, NA,
  2251. NA, NA, NA, 0, -1),
  2252. [97] = PINGROUP(97, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2253. [98] = PINGROUP(98, pcie1_clk_req_n, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2254. 0, -1),
  2255. [99] = PINGROUP(99, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2256. [100] = PINGROUP(100, cam_mclk, qdss_gpio11, NA, NA, NA, NA, NA, NA, NA,
  2257. NA, 0, -1),
  2258. [101] = PINGROUP(101, cam_mclk, qdss_gpio12, NA, NA, NA, NA, NA, NA, NA,
  2259. NA, 0, -1),
  2260. [102] = PINGROUP(102, cam_aon_mclk2, qdss_gpio0, NA, NA, NA, NA, NA, NA,
  2261. NA, NA, 0, -1),
  2262. [103] = PINGROUP(103, cam_mclk, qdss_gpio1, NA, NA, NA, NA, NA, NA, NA,
  2263. NA, 0, -1),
  2264. [104] = PINGROUP(104, cam_aon_mclk4, qdss_gpio2, NA, NA, NA, NA, NA, NA,
  2265. NA, NA, 0, -1),
  2266. [105] = PINGROUP(105, cam_mclk, qdss_gpio3, NA, NA, NA, NA, NA, NA, NA,
  2267. NA, 0, -1),
  2268. [106] = PINGROUP(106, cam_mclk, pll_clk_aux, NA, NA, NA, NA, NA, NA, NA,
  2269. NA, 0, -1),
  2270. [107] = PINGROUP(107, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2271. [108] = PINGROUP(108, cam_mclk, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2272. -1),
  2273. [109] = PINGROUP(109, cci_timer0, phase_flag17, tmess_prng3, NA, NA, NA,
  2274. NA, NA, NA, NA, 0, -1),
  2275. [110] = PINGROUP(110, cci_timer1, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2276. -1),
  2277. [111] = PINGROUP(111, cci_timer4, phase_flag19, NA, NA, NA, NA, NA, NA,
  2278. NA, NA, 0, -1),
  2279. [112] = PINGROUP(112, cci_i2c_sda4, cmu_rng3, phase_flag20, NA, NA, NA,
  2280. NA, NA, NA, NA, 0, -1),
  2281. [113] = PINGROUP(113, cci_i2c_sda0, phase_flag21, NA, qdss_gpio7, NA,
  2282. NA, NA, NA, NA, NA, 0, -1),
  2283. [114] = PINGROUP(114, cci_i2c_scl0, phase_flag22, NA, qdss_gpio8, NA,
  2284. NA, NA, NA, NA, NA, 0, -1),
  2285. [115] = PINGROUP(115, cci_i2c_sda1, phase_flag23, NA, qdss_gpio, NA, NA,
  2286. NA, NA, NA, NA, 0, -1),
  2287. [116] = PINGROUP(116, cci_i2c_scl1, phase_flag24, NA, qdss_gpio, NA, NA,
  2288. NA, NA, NA, NA, 0, -1),
  2289. [117] = PINGROUP(117, cci_i2c_sda2, phase_flag25, NA, qdss_gpio9, NA,
  2290. NA, NA, NA, NA, NA, 0, -1),
  2291. [118] = PINGROUP(118, cci_i2c_scl2, phase_flag26, NA, qdss_gpio10, NA,
  2292. NA, NA, NA, NA, NA, 0, -1),
  2293. [119] = PINGROUP(119, cci_i2c_sda5, phase_flag27, NA, NA, NA, NA, NA,
  2294. NA, NA, NA, 0, -1),
  2295. [120] = PINGROUP(120, cci_i2c_scl5, phase_flag28, NA, NA, NA, NA, NA,
  2296. NA, NA, NA, 0, -1),
  2297. [121] = PINGROUP(121, i2s1_sck, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2298. -1),
  2299. [122] = PINGROUP(122, i2s1_data0, cmu_rng3, NA, NA, NA, NA, NA, NA, NA,
  2300. NA, 0, -1),
  2301. [123] = PINGROUP(123, i2s1_ws, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2302. -1),
  2303. [124] = PINGROUP(124, i2s1_data1, audio_ext_mclk1, audio_ref_clk, NA,
  2304. NA, NA, NA, NA, NA, NA, 0, -1),
  2305. [125] = PINGROUP(125, audio_ext_mclk0, NA, NA, NA, NA, NA, NA, NA, NA,
  2306. NA, 0, -1),
  2307. [126] = PINGROUP(126, i2s0_sck, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2308. -1),
  2309. [127] = PINGROUP(127, i2s0_data0, cmu_rng2, NA, NA, NA, NA, NA, NA, NA,
  2310. NA, 0, -1),
  2311. [128] = PINGROUP(128, i2s0_data1, cmu_rng1, NA, NA, NA, NA, NA, NA, NA,
  2312. NA, 0, -1),
  2313. [129] = PINGROUP(129, i2s0_ws, cmu_rng0, NA, NA, NA, NA, NA, NA, NA, NA,
  2314. 0, -1),
  2315. [130] = PINGROUP(130, uim0_data, atest_usb01, atest_char3, NA, NA, NA,
  2316. NA, NA, NA, NA, 0, -1),
  2317. [131] = PINGROUP(131, uim0_clk, atest_usb00, atest_char2, NA, NA, NA,
  2318. NA, NA, NA, NA, 0, -1),
  2319. [132] = PINGROUP(132, uim0_reset, atest_char1, NA, NA, NA, NA, NA, NA,
  2320. NA, NA, 0, -1),
  2321. [133] = PINGROUP(133, mdp_vsync, atest_char0, NA, NA, NA, NA, NA, NA,
  2322. NA, NA, 0, -1),
  2323. [134] = PINGROUP(134, uim1_data, do_not, qspi0, sdc40, gcc_gp1, NA, NA,
  2324. NA, NA, NA, 0, -1),
  2325. [135] = PINGROUP(135, uim1_clk, do_not, qspi_clk, sdc4_clk, gcc_gp2, NA,
  2326. NA, NA, NA, NA, 0, -1),
  2327. [136] = PINGROUP(136, uim1_reset, do_not, qspi1, sdc41, gcc_gp3, NA, NA,
  2328. NA, NA, NA, 0, -1),
  2329. [137] = PINGROUP(137, mdp_vsync, atest_char_start, NA, NA, NA, NA, NA,
  2330. NA, NA, NA, 0, -1),
  2331. [138] = PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2332. [139] = PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2333. [140] = PINGROUP(140, NA, NA, qdss_gpio0, NA, NA, NA, NA, NA, NA, NA, 0,
  2334. -1),
  2335. [141] = PINGROUP(141, NA, NA, qdss_gpio1, NA, NA, NA, NA, NA, NA, NA, 0,
  2336. -1),
  2337. [142] = PINGROUP(142, NA, NA, qdss_gpio2, NA, NA, NA, NA, NA, NA, NA, 0,
  2338. -1),
  2339. [143] = PINGROUP(143, NA, NA, qdss_gpio3, NA, NA, NA, NA, NA, NA, NA, 0,
  2340. -1),
  2341. [144] = PINGROUP(144, NA, qdss_gpio4, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2342. -1),
  2343. [145] = PINGROUP(145, NA, qdss_gpio5, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2344. -1),
  2345. [146] = PINGROUP(146, NA, qdss_gpio6, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2346. -1),
  2347. [147] = PINGROUP(147, NA, qdss_gpio7, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2348. -1),
  2349. [148] = PINGROUP(148, coex_uart1_rx, qdss_gpio, NA, NA, NA, NA, NA, NA,
  2350. NA, NA, 0, -1),
  2351. [149] = PINGROUP(149, coex_uart1_tx, qdss_gpio, NA, NA, NA, NA, NA, NA,
  2352. NA, NA, 0, -1),
  2353. [150] = PINGROUP(150, NA, vfr_0, coex_uart2_rx, qdss_gpio8, NA, NA, NA,
  2354. NA, NA, NA, 0, -1),
  2355. [151] = PINGROUP(151, NA, coex_uart2_tx, qdss_gpio9, NA, NA, NA, NA, NA,
  2356. NA, NA, 0, -1),
  2357. [152] = PINGROUP(152, nav_gpio2, NA, qdss_gpio10, NA, NA, NA, NA, NA,
  2358. NA, NA, 0, -1),
  2359. [153] = PINGROUP(153, cci_i2c_scl4, phase_flag29, NA, qdss_gpio5, NA,
  2360. NA, NA, NA, NA, NA, 0, -1),
  2361. [154] = PINGROUP(154, nav_gpio0, nav_gpio3, qdss_gpio11, NA, NA, NA, NA,
  2362. NA, NA, NA, 0, -1),
  2363. [155] = PINGROUP(155, nav_gpio1, vfr_1, qdss_gpio12, NA, NA, NA, NA, NA,
  2364. NA, NA, 0, -1),
  2365. [156] = PINGROUP(156, qlink_little_request, qdss_gpio13, NA, NA, NA, NA,
  2366. NA, NA, NA, NA, 0, -1),
  2367. [157] = PINGROUP(157, qlink_little_enable, qdss_gpio14, NA, NA, NA, NA,
  2368. NA, NA, NA, NA, 0, -1),
  2369. [158] = PINGROUP(158, qlink_wmss, qdss_gpio15, NA, NA, NA, NA, NA, NA,
  2370. NA, NA, 0, -1),
  2371. [159] = PINGROUP(159, qlink_big_request, qdss_cti, NA, NA, NA, NA, NA,
  2372. NA, NA, NA, 0, -1),
  2373. [160] = PINGROUP(160, qlink_big_enable, NA, NA, NA, NA, NA, NA, NA, NA,
  2374. NA, 0, -1),
  2375. [161] = PINGROUP(161, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2376. [162] = PINGROUP(162, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2377. -1),
  2378. [163] = PINGROUP(163, cci_async_in1, phase_flag30, NA, NA, NA, NA, NA,
  2379. NA, NA, NA, 0, -1),
  2380. [164] = PINGROUP(164, cci_async_in2, phase_flag31, NA, NA, NA, NA, NA,
  2381. NA, NA, NA, 0, -1),
  2382. [165] = PINGROUP(165, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2383. [166] = PINGROUP(166, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2384. [167] = PINGROUP(167, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2385. [168] = PINGROUP(168, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2386. [169] = PINGROUP(169, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2387. [170] = PINGROUP(170, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2388. [171] = PINGROUP(171, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2389. [172] = PINGROUP(172, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2390. [173] = PINGROUP(173, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2391. [174] = PINGROUP(174, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2392. [175] = PINGROUP(175, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2393. [176] = PINGROUP(176, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2394. [177] = PINGROUP(177, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2395. [178] = PINGROUP(178, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2396. [179] = PINGROUP(179, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2397. [180] = PINGROUP(180, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2398. [181] = PINGROUP(181, prng_rosc3, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2399. -1),
  2400. [182] = PINGROUP(182, prng_rosc2, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2401. -1),
  2402. [183] = PINGROUP(183, prng_rosc1, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2403. -1),
  2404. [184] = PINGROUP(184, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2405. [185] = PINGROUP(185, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2406. [186] = PINGROUP(186, prng_rosc0, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2407. -1),
  2408. [187] = PINGROUP(187, cri_trng, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2409. -1),
  2410. [188] = PINGROUP(188, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2411. [189] = PINGROUP(189, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2412. [190] = PINGROUP(190, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2413. [191] = PINGROUP(191, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2414. [192] = PINGROUP(192, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2415. [193] = PINGROUP(193, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2416. [194] = PINGROUP(194, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2417. [195] = PINGROUP(195, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2418. [196] = PINGROUP(196, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2419. [197] = PINGROUP(197, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2420. [198] = PINGROUP(198, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2421. [199] = PINGROUP(199, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2422. [200] = PINGROUP(200, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2423. [201] = PINGROUP(201, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2424. [202] = PINGROUP(202, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2425. [203] = PINGROUP(203, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2426. [204] = PINGROUP(204, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2427. [205] = PINGROUP(205, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2428. [206] = PINGROUP(206, i2chub0_se8_l0, NA, NA, NA, NA, NA, NA, NA, NA,
  2429. egpio, 0, -1),
  2430. [207] = PINGROUP(207, i2chub0_se8_l1, NA, NA, NA, NA, NA, NA, NA, NA,
  2431. egpio, 0, -1),
  2432. [208] = PINGROUP(208, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2433. [209] = PINGROUP(209, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0, -1),
  2434. [210] = UFS_RESET(ufs_reset, 0x1DE004, 0x1DF000),
  2435. [211] = SDC_QDSD_PINGROUP(sdc2_clk, 0x1D6000, 14, 6),
  2436. [212] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x1D6000, 11, 3),
  2437. [213] = SDC_QDSD_PINGROUP(sdc2_data, 0x1D6000, 9, 0),
  2438. };
  2439. static struct pinctrl_qup pineapple_qup_regs[] = {
  2440. QUP_I3C(1, QUP_1_I3C_0_MODE_OFFSET),
  2441. QUP_I3C(2, QUP_1_I3C_1_MODE_OFFSET),
  2442. QUP_I3C(3, QUP_1_I3C_4_MODE_OFFSET),
  2443. QUP_I3C(4, QUP_1_I3C_6_MODE_OFFSET),
  2444. QUP_I3C(5, QUP_2_I3C_0_MODE_OFFSET),
  2445. QUP_I3C(6, QUP_2_I3C_1_MODE_OFFSET),
  2446. QUP_I3C(7, QUP_2_I3C_2_MODE_OFFSET),
  2447. QUP_I3C(8, QUP_2_I3C_3_MODE_OFFSET),
  2448. };
  2449. static const struct msm_gpio_wakeirq_map pineapple_pdc_map[] = {
  2450. { 0, 94 }, { 3, 105 }, { 4, 78 }, { 7, 67 }, { 8, 64 },
  2451. { 11, 121 }, { 12, 71 }, { 15, 82 }, { 18, 75 }, { 19, 63 },
  2452. { 20, 114 }, { 23, 84 }, { 27, 61 }, { 29, 112 }, { 31, 113 },
  2453. { 32, 66 }, { 35, 52 }, { 36, 123 }, { 39, 56 }, { 43, 59 },
  2454. { 46, 79 }, { 47, 124 }, { 48, 125 }, { 51, 93 }, { 54, 60 },
  2455. { 55, 104 }, { 56, 72 }, { 57, 77 }, { 59, 51 }, { 63, 85 },
  2456. { 64, 107 }, { 65, 108 }, { 66, 109 }, { 67, 83 }, { 68, 110 },
  2457. { 69, 111 }, { 75, 96 }, { 76, 97 }, { 77, 98 }, { 80, 89 },
  2458. { 81, 90 }, { 84, 106 }, { 85, 100 }, { 86, 87 }, { 87, 88 },
  2459. { 88, 65 }, { 90, 92 }, { 92, 99 }, { 95, 118 }, { 96, 119 },
  2460. { 98, 101 }, { 99, 62 }, { 112, 120 }, { 133, 80 }, { 136, 69 },
  2461. { 137, 81 }, { 148, 57 }, { 150, 58 }, { 152, 127 }, { 153, 74 },
  2462. { 154, 126 }, { 155, 73 }, { 156, 128 }, { 159, 129 }, { 162, 86 },
  2463. { 163, 122 }, { 166, 139 }, { 169, 140 }, { 171, 141 }, { 172, 142 },
  2464. { 174, 102 }, { 176, 143 }, { 177, 55 }, { 181, 144 }, { 182, 145 },
  2465. { 185, 146 }, { 187, 95 }, { 188, 130 }, { 190, 131 }, { 191, 132 },
  2466. { 192, 133 }, { 193, 134 }, { 195, 68 }, { 196, 135 }, { 197, 136 },
  2467. { 198, 54 }, { 199, 103 }, { 200, 53 }, { 201, 137 }, { 202, 70 },
  2468. { 203, 138 }, { 204, 76 }, { 205, 91 },
  2469. };
  2470. static const struct msm_pinctrl_soc_data pineapple_pinctrl = {
  2471. .pins = pineapple_pins,
  2472. .npins = ARRAY_SIZE(pineapple_pins),
  2473. .functions = pineapple_functions,
  2474. .nfunctions = ARRAY_SIZE(pineapple_functions),
  2475. .groups = pineapple_groups,
  2476. .ngroups = ARRAY_SIZE(pineapple_groups),
  2477. .ngpios = 211,
  2478. .qup_regs = pineapple_qup_regs,
  2479. .nqup_regs = ARRAY_SIZE(pineapple_qup_regs),
  2480. .wakeirq_map = pineapple_pdc_map,
  2481. .nwakeirq_map = ARRAY_SIZE(pineapple_pdc_map),
  2482. .egpio_func = 10,
  2483. .wakeirq_dual_edge_errata = true,
  2484. };
  2485. static const struct msm_pinctrl_soc_data pineapple_vm_pinctrl = {
  2486. .pins = pineapple_pins,
  2487. .npins = ARRAY_SIZE(pineapple_pins),
  2488. .functions = pineapple_functions,
  2489. .nfunctions = ARRAY_SIZE(pineapple_functions),
  2490. .groups = pineapple_groups,
  2491. .ngroups = ARRAY_SIZE(pineapple_groups),
  2492. .ngpios = 211,
  2493. .egpio_func = 10,
  2494. };
  2495. static const struct of_device_id pineapple_pinctrl_of_match[] = {
  2496. { .compatible = "qcom,pineapple-pinctrl", .data = &pineapple_pinctrl },
  2497. { .compatible = "qcom,pineapple-vm-pinctrl", .data = &pineapple_vm_pinctrl },
  2498. {},
  2499. };
  2500. static int pineapple_pinctrl_probe(struct platform_device *pdev)
  2501. {
  2502. const struct msm_pinctrl_soc_data *pinctrl_data;
  2503. struct device *dev = &pdev->dev;
  2504. pinctrl_data = of_device_get_match_data(dev);
  2505. if (!pinctrl_data)
  2506. return -EINVAL;
  2507. return msm_pinctrl_probe(pdev, pinctrl_data);
  2508. }
  2509. static struct platform_driver pineapple_pinctrl_driver = {
  2510. .driver = {
  2511. .name = "pineapple-pinctrl",
  2512. .of_match_table = pineapple_pinctrl_of_match,
  2513. .pm = &noirq_msm_pinctrl_dev_pm_ops,
  2514. },
  2515. .probe = pineapple_pinctrl_probe,
  2516. .remove = msm_pinctrl_remove,
  2517. };
  2518. static int __init pineapple_pinctrl_init(void)
  2519. {
  2520. return platform_driver_register(&pineapple_pinctrl_driver);
  2521. }
  2522. arch_initcall(pineapple_pinctrl_init);
  2523. static void __exit pineapple_pinctrl_exit(void)
  2524. {
  2525. platform_driver_unregister(&pineapple_pinctrl_driver);
  2526. }
  2527. module_exit(pineapple_pinctrl_exit);
  2528. MODULE_DESCRIPTION("QTI pineapple pinctrl driver");
  2529. MODULE_LICENSE("GPL v2");
  2530. MODULE_DEVICE_TABLE(of, pineapple_pinctrl_of_match);
  2531. MODULE_SOFTDEP("pre: qcom_tlmm_vm_irqchip");