pinctrl-niobe.c 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/of_device.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/pinctrl/pinctrl.h>
  10. #include "pinctrl-msm.h"
  11. #define FUNCTION(fname) \
  12. [msm_mux_##fname] = { \
  13. .name = #fname, \
  14. .groups = fname##_groups, \
  15. .ngroups = ARRAY_SIZE(fname##_groups), \
  16. }
  17. #define REG_BASE 0x100000
  18. #define REG_SIZE 0x1000
  19. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, wake_off, bit) \
  20. { \
  21. .name = "gpio" #id, \
  22. .pins = gpio##id##_pins, \
  23. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  24. .ctl_reg = REG_BASE + REG_SIZE * id, \
  25. .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \
  26. .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  27. .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \
  28. .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \
  29. .mux_bit = 2, \
  30. .pull_bit = 0, \
  31. .drv_bit = 6, \
  32. .egpio_enable = 12, \
  33. .egpio_present = 11, \
  34. .oe_bit = 9, \
  35. .in_bit = 0, \
  36. .out_bit = 1, \
  37. .intr_enable_bit = 0, \
  38. .intr_status_bit = 0, \
  39. .intr_target_bit = 8, \
  40. .intr_wakeup_enable_bit = 7, \
  41. .intr_wakeup_present_bit = 6, \
  42. .intr_target_kpss_val = 3, \
  43. .intr_raw_status_bit = 4, \
  44. .intr_polarity_bit = 1, \
  45. .intr_detection_bit = 2, \
  46. .intr_detection_width = 2, \
  47. .wake_reg = REG_BASE + wake_off, \
  48. .wake_bit = bit, \
  49. .funcs = (int[]){ \
  50. msm_mux_gpio, /* gpio mode */ \
  51. msm_mux_##f1, \
  52. msm_mux_##f2, \
  53. msm_mux_##f3, \
  54. msm_mux_##f4, \
  55. msm_mux_##f5, \
  56. msm_mux_##f6, \
  57. msm_mux_##f7, \
  58. msm_mux_##f8, \
  59. msm_mux_##f9, \
  60. msm_mux_##f10, \
  61. msm_mux_##f11 /* egpio mode */ \
  62. }, \
  63. .nfuncs = 12, \
  64. }
  65. #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
  66. { \
  67. .name = #pg_name, \
  68. .pins = pg_name##_pins, \
  69. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  70. .ctl_reg = ctl, \
  71. .io_reg = 0, \
  72. .intr_cfg_reg = 0, \
  73. .intr_status_reg = 0, \
  74. .intr_target_reg = 0, \
  75. .mux_bit = -1, \
  76. .pull_bit = pull, \
  77. .drv_bit = drv, \
  78. .oe_bit = -1, \
  79. .in_bit = -1, \
  80. .out_bit = -1, \
  81. .intr_enable_bit = -1, \
  82. .intr_status_bit = -1, \
  83. .intr_target_bit = -1, \
  84. .intr_raw_status_bit = -1, \
  85. .intr_polarity_bit = -1, \
  86. .intr_detection_bit = -1, \
  87. .intr_detection_width = -1, \
  88. }
  89. #define UFS_RESET(pg_name, offset, io) \
  90. { \
  91. .name = #pg_name, \
  92. .pins = pg_name##_pins, \
  93. .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
  94. .ctl_reg = offset, \
  95. .io_reg = io, \
  96. .intr_cfg_reg = 0, \
  97. .intr_status_reg = 0, \
  98. .intr_target_reg = 0, \
  99. .mux_bit = -1, \
  100. .pull_bit = 3, \
  101. .drv_bit = 0, \
  102. .oe_bit = -1, \
  103. .in_bit = -1, \
  104. .out_bit = 0, \
  105. .intr_enable_bit = -1, \
  106. .intr_status_bit = -1, \
  107. .intr_target_bit = -1, \
  108. .intr_raw_status_bit = -1, \
  109. .intr_polarity_bit = -1, \
  110. .intr_detection_bit = -1, \
  111. .intr_detection_width = -1, \
  112. }
  113. #define QUP_I3C(qup_mode, qup_offset) \
  114. { \
  115. .mode = qup_mode, \
  116. .offset = REG_BASE + qup_offset, \
  117. }
  118. #define QUP_2_I3C_0_MODE_OFFSET 0xE0000
  119. #define QUP_2_I3C_1_MODE_OFFSET 0xE1000
  120. #define QUP_3_I3C_0_MODE_OFFSET 0xE2000
  121. #define QUP_1_I3C_0_MODE_OFFSET 0xE3000
  122. static const struct pinctrl_pin_desc niobe_pins[] = {
  123. PINCTRL_PIN(0, "GPIO_0"),
  124. PINCTRL_PIN(1, "GPIO_1"),
  125. PINCTRL_PIN(2, "GPIO_2"),
  126. PINCTRL_PIN(3, "GPIO_3"),
  127. PINCTRL_PIN(4, "GPIO_4"),
  128. PINCTRL_PIN(5, "GPIO_5"),
  129. PINCTRL_PIN(6, "GPIO_6"),
  130. PINCTRL_PIN(7, "GPIO_7"),
  131. PINCTRL_PIN(8, "GPIO_8"),
  132. PINCTRL_PIN(9, "GPIO_9"),
  133. PINCTRL_PIN(10, "GPIO_10"),
  134. PINCTRL_PIN(11, "GPIO_11"),
  135. PINCTRL_PIN(12, "GPIO_12"),
  136. PINCTRL_PIN(13, "GPIO_13"),
  137. PINCTRL_PIN(14, "GPIO_14"),
  138. PINCTRL_PIN(15, "GPIO_15"),
  139. PINCTRL_PIN(16, "GPIO_16"),
  140. PINCTRL_PIN(17, "GPIO_17"),
  141. PINCTRL_PIN(18, "GPIO_18"),
  142. PINCTRL_PIN(19, "GPIO_19"),
  143. PINCTRL_PIN(20, "GPIO_20"),
  144. PINCTRL_PIN(21, "GPIO_21"),
  145. PINCTRL_PIN(22, "GPIO_22"),
  146. PINCTRL_PIN(23, "GPIO_23"),
  147. PINCTRL_PIN(24, "GPIO_24"),
  148. PINCTRL_PIN(25, "GPIO_25"),
  149. PINCTRL_PIN(26, "GPIO_26"),
  150. PINCTRL_PIN(27, "GPIO_27"),
  151. PINCTRL_PIN(28, "GPIO_28"),
  152. PINCTRL_PIN(29, "GPIO_29"),
  153. PINCTRL_PIN(30, "GPIO_30"),
  154. PINCTRL_PIN(31, "GPIO_31"),
  155. PINCTRL_PIN(32, "GPIO_32"),
  156. PINCTRL_PIN(33, "GPIO_33"),
  157. PINCTRL_PIN(34, "GPIO_34"),
  158. PINCTRL_PIN(35, "GPIO_35"),
  159. PINCTRL_PIN(36, "GPIO_36"),
  160. PINCTRL_PIN(37, "GPIO_37"),
  161. PINCTRL_PIN(38, "GPIO_38"),
  162. PINCTRL_PIN(39, "GPIO_39"),
  163. PINCTRL_PIN(40, "GPIO_40"),
  164. PINCTRL_PIN(41, "GPIO_41"),
  165. PINCTRL_PIN(42, "GPIO_42"),
  166. PINCTRL_PIN(43, "GPIO_43"),
  167. PINCTRL_PIN(44, "GPIO_44"),
  168. PINCTRL_PIN(45, "GPIO_45"),
  169. PINCTRL_PIN(46, "GPIO_46"),
  170. PINCTRL_PIN(47, "GPIO_47"),
  171. PINCTRL_PIN(48, "GPIO_48"),
  172. PINCTRL_PIN(49, "GPIO_49"),
  173. PINCTRL_PIN(50, "GPIO_50"),
  174. PINCTRL_PIN(51, "GPIO_51"),
  175. PINCTRL_PIN(52, "GPIO_52"),
  176. PINCTRL_PIN(53, "GPIO_53"),
  177. PINCTRL_PIN(54, "GPIO_54"),
  178. PINCTRL_PIN(55, "GPIO_55"),
  179. PINCTRL_PIN(56, "GPIO_56"),
  180. PINCTRL_PIN(57, "GPIO_57"),
  181. PINCTRL_PIN(58, "GPIO_58"),
  182. PINCTRL_PIN(59, "GPIO_59"),
  183. PINCTRL_PIN(60, "GPIO_60"),
  184. PINCTRL_PIN(61, "GPIO_61"),
  185. PINCTRL_PIN(62, "GPIO_62"),
  186. PINCTRL_PIN(63, "GPIO_63"),
  187. PINCTRL_PIN(64, "GPIO_64"),
  188. PINCTRL_PIN(65, "GPIO_65"),
  189. PINCTRL_PIN(66, "GPIO_66"),
  190. PINCTRL_PIN(67, "GPIO_67"),
  191. PINCTRL_PIN(68, "GPIO_68"),
  192. PINCTRL_PIN(69, "GPIO_69"),
  193. PINCTRL_PIN(70, "GPIO_70"),
  194. PINCTRL_PIN(71, "GPIO_71"),
  195. PINCTRL_PIN(72, "GPIO_72"),
  196. PINCTRL_PIN(73, "GPIO_73"),
  197. PINCTRL_PIN(74, "GPIO_74"),
  198. PINCTRL_PIN(75, "GPIO_75"),
  199. PINCTRL_PIN(76, "GPIO_76"),
  200. PINCTRL_PIN(77, "GPIO_77"),
  201. PINCTRL_PIN(78, "GPIO_78"),
  202. PINCTRL_PIN(79, "GPIO_79"),
  203. PINCTRL_PIN(80, "GPIO_80"),
  204. PINCTRL_PIN(81, "GPIO_81"),
  205. PINCTRL_PIN(82, "GPIO_82"),
  206. PINCTRL_PIN(83, "GPIO_83"),
  207. PINCTRL_PIN(84, "GPIO_84"),
  208. PINCTRL_PIN(85, "GPIO_85"),
  209. PINCTRL_PIN(86, "GPIO_86"),
  210. PINCTRL_PIN(87, "GPIO_87"),
  211. PINCTRL_PIN(88, "GPIO_88"),
  212. PINCTRL_PIN(89, "GPIO_89"),
  213. PINCTRL_PIN(90, "GPIO_90"),
  214. PINCTRL_PIN(91, "GPIO_91"),
  215. PINCTRL_PIN(92, "GPIO_92"),
  216. PINCTRL_PIN(93, "GPIO_93"),
  217. PINCTRL_PIN(94, "GPIO_94"),
  218. PINCTRL_PIN(95, "GPIO_95"),
  219. PINCTRL_PIN(96, "GPIO_96"),
  220. PINCTRL_PIN(97, "GPIO_97"),
  221. PINCTRL_PIN(98, "GPIO_98"),
  222. PINCTRL_PIN(99, "GPIO_99"),
  223. PINCTRL_PIN(100, "GPIO_100"),
  224. PINCTRL_PIN(101, "GPIO_101"),
  225. PINCTRL_PIN(102, "GPIO_102"),
  226. PINCTRL_PIN(103, "GPIO_103"),
  227. PINCTRL_PIN(104, "GPIO_104"),
  228. PINCTRL_PIN(105, "GPIO_105"),
  229. PINCTRL_PIN(106, "GPIO_106"),
  230. PINCTRL_PIN(107, "GPIO_107"),
  231. PINCTRL_PIN(108, "GPIO_108"),
  232. PINCTRL_PIN(109, "GPIO_109"),
  233. PINCTRL_PIN(110, "GPIO_110"),
  234. PINCTRL_PIN(111, "GPIO_111"),
  235. PINCTRL_PIN(112, "GPIO_112"),
  236. PINCTRL_PIN(113, "GPIO_113"),
  237. PINCTRL_PIN(114, "GPIO_114"),
  238. PINCTRL_PIN(115, "GPIO_115"),
  239. PINCTRL_PIN(116, "GPIO_116"),
  240. PINCTRL_PIN(117, "GPIO_117"),
  241. PINCTRL_PIN(118, "GPIO_118"),
  242. PINCTRL_PIN(119, "GPIO_119"),
  243. PINCTRL_PIN(120, "GPIO_120"),
  244. PINCTRL_PIN(121, "GPIO_121"),
  245. PINCTRL_PIN(122, "GPIO_122"),
  246. PINCTRL_PIN(123, "GPIO_123"),
  247. PINCTRL_PIN(124, "GPIO_124"),
  248. PINCTRL_PIN(125, "GPIO_125"),
  249. PINCTRL_PIN(126, "GPIO_126"),
  250. PINCTRL_PIN(127, "GPIO_127"),
  251. PINCTRL_PIN(128, "GPIO_128"),
  252. PINCTRL_PIN(129, "GPIO_129"),
  253. PINCTRL_PIN(130, "GPIO_130"),
  254. PINCTRL_PIN(131, "GPIO_131"),
  255. PINCTRL_PIN(132, "GPIO_132"),
  256. PINCTRL_PIN(133, "GPIO_133"),
  257. PINCTRL_PIN(134, "GPIO_134"),
  258. PINCTRL_PIN(135, "GPIO_135"),
  259. PINCTRL_PIN(136, "GPIO_136"),
  260. PINCTRL_PIN(137, "GPIO_137"),
  261. PINCTRL_PIN(138, "GPIO_138"),
  262. PINCTRL_PIN(139, "GPIO_139"),
  263. PINCTRL_PIN(140, "GPIO_140"),
  264. PINCTRL_PIN(141, "GPIO_141"),
  265. PINCTRL_PIN(142, "GPIO_142"),
  266. PINCTRL_PIN(143, "GPIO_143"),
  267. PINCTRL_PIN(144, "GPIO_144"),
  268. PINCTRL_PIN(145, "GPIO_145"),
  269. PINCTRL_PIN(146, "GPIO_146"),
  270. PINCTRL_PIN(147, "GPIO_147"),
  271. PINCTRL_PIN(148, "GPIO_148"),
  272. PINCTRL_PIN(149, "GPIO_149"),
  273. PINCTRL_PIN(150, "GPIO_150"),
  274. PINCTRL_PIN(151, "GPIO_151"),
  275. PINCTRL_PIN(152, "GPIO_152"),
  276. PINCTRL_PIN(153, "GPIO_153"),
  277. PINCTRL_PIN(154, "GPIO_154"),
  278. PINCTRL_PIN(155, "GPIO_155"),
  279. PINCTRL_PIN(156, "GPIO_156"),
  280. PINCTRL_PIN(157, "GPIO_157"),
  281. PINCTRL_PIN(158, "GPIO_158"),
  282. PINCTRL_PIN(159, "GPIO_159"),
  283. PINCTRL_PIN(160, "GPIO_160"),
  284. PINCTRL_PIN(161, "GPIO_161"),
  285. PINCTRL_PIN(162, "GPIO_162"),
  286. PINCTRL_PIN(163, "GPIO_163"),
  287. PINCTRL_PIN(164, "GPIO_164"),
  288. PINCTRL_PIN(165, "GPIO_165"),
  289. PINCTRL_PIN(166, "GPIO_166"),
  290. PINCTRL_PIN(167, "GPIO_167"),
  291. PINCTRL_PIN(168, "GPIO_168"),
  292. PINCTRL_PIN(169, "GPIO_169"),
  293. PINCTRL_PIN(170, "GPIO_170"),
  294. PINCTRL_PIN(171, "GPIO_171"),
  295. PINCTRL_PIN(172, "GPIO_172"),
  296. PINCTRL_PIN(173, "GPIO_173"),
  297. PINCTRL_PIN(174, "GPIO_174"),
  298. PINCTRL_PIN(175, "GPIO_175"),
  299. PINCTRL_PIN(176, "GPIO_176"),
  300. PINCTRL_PIN(177, "GPIO_177"),
  301. PINCTRL_PIN(178, "GPIO_178"),
  302. PINCTRL_PIN(179, "GPIO_179"),
  303. PINCTRL_PIN(180, "GPIO_180"),
  304. PINCTRL_PIN(181, "GPIO_181"),
  305. PINCTRL_PIN(182, "GPIO_182"),
  306. PINCTRL_PIN(183, "GPIO_183"),
  307. PINCTRL_PIN(184, "GPIO_184"),
  308. PINCTRL_PIN(185, "GPIO_185"),
  309. PINCTRL_PIN(186, "GPIO_186"),
  310. PINCTRL_PIN(187, "GPIO_187"),
  311. PINCTRL_PIN(188, "GPIO_188"),
  312. PINCTRL_PIN(189, "GPIO_189"),
  313. PINCTRL_PIN(190, "GPIO_190"),
  314. PINCTRL_PIN(191, "GPIO_191"),
  315. PINCTRL_PIN(192, "GPIO_192"),
  316. PINCTRL_PIN(193, "GPIO_193"),
  317. PINCTRL_PIN(194, "GPIO_194"),
  318. PINCTRL_PIN(195, "GPIO_195"),
  319. PINCTRL_PIN(196, "GPIO_196"),
  320. PINCTRL_PIN(197, "GPIO_197"),
  321. PINCTRL_PIN(198, "GPIO_198"),
  322. PINCTRL_PIN(199, "GPIO_199"),
  323. PINCTRL_PIN(200, "UFS_RESET"),
  324. };
  325. #define DECLARE_MSM_GPIO_PINS(pin) \
  326. static const unsigned int gpio##pin##_pins[] = { pin }
  327. DECLARE_MSM_GPIO_PINS(0);
  328. DECLARE_MSM_GPIO_PINS(1);
  329. DECLARE_MSM_GPIO_PINS(2);
  330. DECLARE_MSM_GPIO_PINS(3);
  331. DECLARE_MSM_GPIO_PINS(4);
  332. DECLARE_MSM_GPIO_PINS(5);
  333. DECLARE_MSM_GPIO_PINS(6);
  334. DECLARE_MSM_GPIO_PINS(7);
  335. DECLARE_MSM_GPIO_PINS(8);
  336. DECLARE_MSM_GPIO_PINS(9);
  337. DECLARE_MSM_GPIO_PINS(10);
  338. DECLARE_MSM_GPIO_PINS(11);
  339. DECLARE_MSM_GPIO_PINS(12);
  340. DECLARE_MSM_GPIO_PINS(13);
  341. DECLARE_MSM_GPIO_PINS(14);
  342. DECLARE_MSM_GPIO_PINS(15);
  343. DECLARE_MSM_GPIO_PINS(16);
  344. DECLARE_MSM_GPIO_PINS(17);
  345. DECLARE_MSM_GPIO_PINS(18);
  346. DECLARE_MSM_GPIO_PINS(19);
  347. DECLARE_MSM_GPIO_PINS(20);
  348. DECLARE_MSM_GPIO_PINS(21);
  349. DECLARE_MSM_GPIO_PINS(22);
  350. DECLARE_MSM_GPIO_PINS(23);
  351. DECLARE_MSM_GPIO_PINS(24);
  352. DECLARE_MSM_GPIO_PINS(25);
  353. DECLARE_MSM_GPIO_PINS(26);
  354. DECLARE_MSM_GPIO_PINS(27);
  355. DECLARE_MSM_GPIO_PINS(28);
  356. DECLARE_MSM_GPIO_PINS(29);
  357. DECLARE_MSM_GPIO_PINS(30);
  358. DECLARE_MSM_GPIO_PINS(31);
  359. DECLARE_MSM_GPIO_PINS(32);
  360. DECLARE_MSM_GPIO_PINS(33);
  361. DECLARE_MSM_GPIO_PINS(34);
  362. DECLARE_MSM_GPIO_PINS(35);
  363. DECLARE_MSM_GPIO_PINS(36);
  364. DECLARE_MSM_GPIO_PINS(37);
  365. DECLARE_MSM_GPIO_PINS(38);
  366. DECLARE_MSM_GPIO_PINS(39);
  367. DECLARE_MSM_GPIO_PINS(40);
  368. DECLARE_MSM_GPIO_PINS(41);
  369. DECLARE_MSM_GPIO_PINS(42);
  370. DECLARE_MSM_GPIO_PINS(43);
  371. DECLARE_MSM_GPIO_PINS(44);
  372. DECLARE_MSM_GPIO_PINS(45);
  373. DECLARE_MSM_GPIO_PINS(46);
  374. DECLARE_MSM_GPIO_PINS(47);
  375. DECLARE_MSM_GPIO_PINS(48);
  376. DECLARE_MSM_GPIO_PINS(49);
  377. DECLARE_MSM_GPIO_PINS(50);
  378. DECLARE_MSM_GPIO_PINS(51);
  379. DECLARE_MSM_GPIO_PINS(52);
  380. DECLARE_MSM_GPIO_PINS(53);
  381. DECLARE_MSM_GPIO_PINS(54);
  382. DECLARE_MSM_GPIO_PINS(55);
  383. DECLARE_MSM_GPIO_PINS(56);
  384. DECLARE_MSM_GPIO_PINS(57);
  385. DECLARE_MSM_GPIO_PINS(58);
  386. DECLARE_MSM_GPIO_PINS(59);
  387. DECLARE_MSM_GPIO_PINS(60);
  388. DECLARE_MSM_GPIO_PINS(61);
  389. DECLARE_MSM_GPIO_PINS(62);
  390. DECLARE_MSM_GPIO_PINS(63);
  391. DECLARE_MSM_GPIO_PINS(64);
  392. DECLARE_MSM_GPIO_PINS(65);
  393. DECLARE_MSM_GPIO_PINS(66);
  394. DECLARE_MSM_GPIO_PINS(67);
  395. DECLARE_MSM_GPIO_PINS(68);
  396. DECLARE_MSM_GPIO_PINS(69);
  397. DECLARE_MSM_GPIO_PINS(70);
  398. DECLARE_MSM_GPIO_PINS(71);
  399. DECLARE_MSM_GPIO_PINS(72);
  400. DECLARE_MSM_GPIO_PINS(73);
  401. DECLARE_MSM_GPIO_PINS(74);
  402. DECLARE_MSM_GPIO_PINS(75);
  403. DECLARE_MSM_GPIO_PINS(76);
  404. DECLARE_MSM_GPIO_PINS(77);
  405. DECLARE_MSM_GPIO_PINS(78);
  406. DECLARE_MSM_GPIO_PINS(79);
  407. DECLARE_MSM_GPIO_PINS(80);
  408. DECLARE_MSM_GPIO_PINS(81);
  409. DECLARE_MSM_GPIO_PINS(82);
  410. DECLARE_MSM_GPIO_PINS(83);
  411. DECLARE_MSM_GPIO_PINS(84);
  412. DECLARE_MSM_GPIO_PINS(85);
  413. DECLARE_MSM_GPIO_PINS(86);
  414. DECLARE_MSM_GPIO_PINS(87);
  415. DECLARE_MSM_GPIO_PINS(88);
  416. DECLARE_MSM_GPIO_PINS(89);
  417. DECLARE_MSM_GPIO_PINS(90);
  418. DECLARE_MSM_GPIO_PINS(91);
  419. DECLARE_MSM_GPIO_PINS(92);
  420. DECLARE_MSM_GPIO_PINS(93);
  421. DECLARE_MSM_GPIO_PINS(94);
  422. DECLARE_MSM_GPIO_PINS(95);
  423. DECLARE_MSM_GPIO_PINS(96);
  424. DECLARE_MSM_GPIO_PINS(97);
  425. DECLARE_MSM_GPIO_PINS(98);
  426. DECLARE_MSM_GPIO_PINS(99);
  427. DECLARE_MSM_GPIO_PINS(100);
  428. DECLARE_MSM_GPIO_PINS(101);
  429. DECLARE_MSM_GPIO_PINS(102);
  430. DECLARE_MSM_GPIO_PINS(103);
  431. DECLARE_MSM_GPIO_PINS(104);
  432. DECLARE_MSM_GPIO_PINS(105);
  433. DECLARE_MSM_GPIO_PINS(106);
  434. DECLARE_MSM_GPIO_PINS(107);
  435. DECLARE_MSM_GPIO_PINS(108);
  436. DECLARE_MSM_GPIO_PINS(109);
  437. DECLARE_MSM_GPIO_PINS(110);
  438. DECLARE_MSM_GPIO_PINS(111);
  439. DECLARE_MSM_GPIO_PINS(112);
  440. DECLARE_MSM_GPIO_PINS(113);
  441. DECLARE_MSM_GPIO_PINS(114);
  442. DECLARE_MSM_GPIO_PINS(115);
  443. DECLARE_MSM_GPIO_PINS(116);
  444. DECLARE_MSM_GPIO_PINS(117);
  445. DECLARE_MSM_GPIO_PINS(118);
  446. DECLARE_MSM_GPIO_PINS(119);
  447. DECLARE_MSM_GPIO_PINS(120);
  448. DECLARE_MSM_GPIO_PINS(121);
  449. DECLARE_MSM_GPIO_PINS(122);
  450. DECLARE_MSM_GPIO_PINS(123);
  451. DECLARE_MSM_GPIO_PINS(124);
  452. DECLARE_MSM_GPIO_PINS(125);
  453. DECLARE_MSM_GPIO_PINS(126);
  454. DECLARE_MSM_GPIO_PINS(127);
  455. DECLARE_MSM_GPIO_PINS(128);
  456. DECLARE_MSM_GPIO_PINS(129);
  457. DECLARE_MSM_GPIO_PINS(130);
  458. DECLARE_MSM_GPIO_PINS(131);
  459. DECLARE_MSM_GPIO_PINS(132);
  460. DECLARE_MSM_GPIO_PINS(133);
  461. DECLARE_MSM_GPIO_PINS(134);
  462. DECLARE_MSM_GPIO_PINS(135);
  463. DECLARE_MSM_GPIO_PINS(136);
  464. DECLARE_MSM_GPIO_PINS(137);
  465. DECLARE_MSM_GPIO_PINS(138);
  466. DECLARE_MSM_GPIO_PINS(139);
  467. DECLARE_MSM_GPIO_PINS(140);
  468. DECLARE_MSM_GPIO_PINS(141);
  469. DECLARE_MSM_GPIO_PINS(142);
  470. DECLARE_MSM_GPIO_PINS(143);
  471. DECLARE_MSM_GPIO_PINS(144);
  472. DECLARE_MSM_GPIO_PINS(145);
  473. DECLARE_MSM_GPIO_PINS(146);
  474. DECLARE_MSM_GPIO_PINS(147);
  475. DECLARE_MSM_GPIO_PINS(148);
  476. DECLARE_MSM_GPIO_PINS(149);
  477. DECLARE_MSM_GPIO_PINS(150);
  478. DECLARE_MSM_GPIO_PINS(151);
  479. DECLARE_MSM_GPIO_PINS(152);
  480. DECLARE_MSM_GPIO_PINS(153);
  481. DECLARE_MSM_GPIO_PINS(154);
  482. DECLARE_MSM_GPIO_PINS(155);
  483. DECLARE_MSM_GPIO_PINS(156);
  484. DECLARE_MSM_GPIO_PINS(157);
  485. DECLARE_MSM_GPIO_PINS(158);
  486. DECLARE_MSM_GPIO_PINS(159);
  487. DECLARE_MSM_GPIO_PINS(160);
  488. DECLARE_MSM_GPIO_PINS(161);
  489. DECLARE_MSM_GPIO_PINS(162);
  490. DECLARE_MSM_GPIO_PINS(163);
  491. DECLARE_MSM_GPIO_PINS(164);
  492. DECLARE_MSM_GPIO_PINS(165);
  493. DECLARE_MSM_GPIO_PINS(166);
  494. DECLARE_MSM_GPIO_PINS(167);
  495. DECLARE_MSM_GPIO_PINS(168);
  496. DECLARE_MSM_GPIO_PINS(169);
  497. DECLARE_MSM_GPIO_PINS(170);
  498. DECLARE_MSM_GPIO_PINS(171);
  499. DECLARE_MSM_GPIO_PINS(172);
  500. DECLARE_MSM_GPIO_PINS(173);
  501. DECLARE_MSM_GPIO_PINS(174);
  502. DECLARE_MSM_GPIO_PINS(175);
  503. DECLARE_MSM_GPIO_PINS(176);
  504. DECLARE_MSM_GPIO_PINS(177);
  505. DECLARE_MSM_GPIO_PINS(178);
  506. DECLARE_MSM_GPIO_PINS(179);
  507. DECLARE_MSM_GPIO_PINS(180);
  508. DECLARE_MSM_GPIO_PINS(181);
  509. DECLARE_MSM_GPIO_PINS(182);
  510. DECLARE_MSM_GPIO_PINS(183);
  511. DECLARE_MSM_GPIO_PINS(184);
  512. DECLARE_MSM_GPIO_PINS(185);
  513. DECLARE_MSM_GPIO_PINS(186);
  514. DECLARE_MSM_GPIO_PINS(187);
  515. DECLARE_MSM_GPIO_PINS(188);
  516. DECLARE_MSM_GPIO_PINS(189);
  517. DECLARE_MSM_GPIO_PINS(190);
  518. DECLARE_MSM_GPIO_PINS(191);
  519. DECLARE_MSM_GPIO_PINS(192);
  520. DECLARE_MSM_GPIO_PINS(193);
  521. DECLARE_MSM_GPIO_PINS(194);
  522. DECLARE_MSM_GPIO_PINS(195);
  523. DECLARE_MSM_GPIO_PINS(196);
  524. DECLARE_MSM_GPIO_PINS(197);
  525. DECLARE_MSM_GPIO_PINS(198);
  526. DECLARE_MSM_GPIO_PINS(199);
  527. static const unsigned int ufs_reset_pins[] = { 200 };
  528. enum niobe_functions {
  529. msm_mux_gpio,
  530. msm_mux_RESOUT_GPIO_N,
  531. msm_mux_SYS_THROTTLE_MIRA,
  532. msm_mux_SYS_THROTTLE_MIRB,
  533. msm_mux_USB0_PHY,
  534. msm_mux_USB1_PHY,
  535. msm_mux_aoss_cti,
  536. msm_mux_atest_char0,
  537. msm_mux_atest_char1,
  538. msm_mux_atest_char2,
  539. msm_mux_atest_char3,
  540. msm_mux_atest_char_start,
  541. msm_mux_atest_usb0,
  542. msm_mux_atest_usb00,
  543. msm_mux_atest_usb01,
  544. msm_mux_atest_usb02,
  545. msm_mux_atest_usb03,
  546. msm_mux_atest_usb1,
  547. msm_mux_atest_usb10,
  548. msm_mux_atest_usb11,
  549. msm_mux_atest_usb12,
  550. msm_mux_atest_usb13,
  551. msm_mux_audio_ref_clk,
  552. msm_mux_cam_mclk,
  553. msm_mux_cci01_async_in0,
  554. msm_mux_cci01_async_in1,
  555. msm_mux_cci01_async_in2,
  556. msm_mux_cci01_timer0,
  557. msm_mux_cci01_timer1,
  558. msm_mux_cci01_timer2,
  559. msm_mux_cci01_timer3,
  560. msm_mux_cci01_timer4,
  561. msm_mux_cci0_i2c,
  562. msm_mux_cci0_i2c_scl0,
  563. msm_mux_cci0_i2c_sda0,
  564. msm_mux_cci1_i2c,
  565. msm_mux_cci1_i2c_scl2,
  566. msm_mux_cci1_i2c_sda2,
  567. msm_mux_cci23_async_in0,
  568. msm_mux_cci23_async_in1,
  569. msm_mux_cci23_async_in2,
  570. msm_mux_cci23_timer0,
  571. msm_mux_cci23_timer1,
  572. msm_mux_cci23_timer2,
  573. msm_mux_cci23_timer3,
  574. msm_mux_cci23_timer4,
  575. msm_mux_cci2_i2c_scl4,
  576. msm_mux_cci2_i2c_scl5,
  577. msm_mux_cci2_i2c_sda4,
  578. msm_mux_cci2_i2c_sda5,
  579. msm_mux_cci3_i2c_scl6,
  580. msm_mux_cci3_i2c_scl7,
  581. msm_mux_cci3_i2c_sda6,
  582. msm_mux_cci3_i2c_sda7,
  583. msm_mux_cci45_async,
  584. msm_mux_cci45_timer0,
  585. msm_mux_cci45_timer1,
  586. msm_mux_cci45_timer2,
  587. msm_mux_cci45_timer3_mira,
  588. msm_mux_cci45_timer3_mirb,
  589. msm_mux_cci45_timer4_mira,
  590. msm_mux_cci45_timer4_mirb,
  591. msm_mux_cci4_i2c,
  592. msm_mux_cci4_i2c_scl8,
  593. msm_mux_cci4_i2c_sda8,
  594. msm_mux_cci5_i2c,
  595. msm_mux_cci5_i2c_scl10,
  596. msm_mux_cci5_i2c_sda10,
  597. msm_mux_cmu_rng0,
  598. msm_mux_cmu_rng1,
  599. msm_mux_cmu_rng2,
  600. msm_mux_cmu_rng3,
  601. msm_mux_cri_trng,
  602. msm_mux_dbg_out_clk,
  603. msm_mux_ddr_bist_complete,
  604. msm_mux_ddr_bist_fail,
  605. msm_mux_ddr_bist_start,
  606. msm_mux_ddr_bist_stop,
  607. msm_mux_ddr_pxi0,
  608. msm_mux_ddr_pxi1,
  609. msm_mux_ddr_pxi2,
  610. msm_mux_ddr_pxi3,
  611. msm_mux_dp0_hot,
  612. msm_mux_edp0_hot,
  613. msm_mux_edp0_lcd,
  614. msm_mux_edp1_dpu0,
  615. msm_mux_edp1_dpu1,
  616. msm_mux_edp1_hot,
  617. msm_mux_egpio,
  618. msm_mux_ext_mclk0,
  619. msm_mux_ext_mclk1,
  620. msm_mux_gcc_gp,
  621. msm_mux_gcc_gp_clk10,
  622. msm_mux_gcc_gp_clk11,
  623. msm_mux_gcc_gp_clk4,
  624. msm_mux_gcc_gp_clk5,
  625. msm_mux_gcc_gp_clk6,
  626. msm_mux_gcc_gp_clk7,
  627. msm_mux_gcc_gp_clk8,
  628. msm_mux_gcc_gp_clk9,
  629. msm_mux_i2s0_data0,
  630. msm_mux_i2s0_data1,
  631. msm_mux_i2s0_sck,
  632. msm_mux_i2s0_ws,
  633. msm_mux_i2s2_data0,
  634. msm_mux_i2s2_data1,
  635. msm_mux_i2s2_sck,
  636. msm_mux_i2s2_ws,
  637. msm_mux_ibi_i3c,
  638. msm_mux_jitter_bist,
  639. msm_mux_mdp0_vsync0_mira,
  640. msm_mux_mdp0_vsync0_mirb,
  641. msm_mux_mdp0_vsync0_out,
  642. msm_mux_mdp0_vsync1_mira,
  643. msm_mux_mdp0_vsync1_mirb,
  644. msm_mux_mdp0_vsync1_out,
  645. msm_mux_mdp0_vsync2_out,
  646. msm_mux_mdp0_vsync3_out,
  647. msm_mux_mdp0_vsync4_out,
  648. msm_mux_mdp0_vsync5_out,
  649. msm_mux_mdp0_vsync6_out,
  650. msm_mux_mdp0_vsync7_out,
  651. msm_mux_mdp0_vsync8_out,
  652. msm_mux_mdp1_vsync0_mira,
  653. msm_mux_mdp1_vsync0_mirb,
  654. msm_mux_mdp1_vsync0_out,
  655. msm_mux_mdp1_vsync1_mira,
  656. msm_mux_mdp1_vsync1_mirb,
  657. msm_mux_mdp1_vsync1_out,
  658. msm_mux_mdp1_vsync2_out,
  659. msm_mux_mdp1_vsync3_out,
  660. msm_mux_mdp1_vsync4_out,
  661. msm_mux_mdp1_vsync5_out,
  662. msm_mux_mdp1_vsync6_out,
  663. msm_mux_mdp1_vsync7_out,
  664. msm_mux_mdp1_vsync8_out,
  665. msm_mux_pcie0_clk_req_n,
  666. msm_mux_pcie1_clk_req_n,
  667. msm_mux_pcie2_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_pwm_0,
  707. msm_mux_pwm_1,
  708. msm_mux_pwm_10,
  709. msm_mux_pwm_11,
  710. msm_mux_pwm_12,
  711. msm_mux_pwm_13,
  712. msm_mux_pwm_14,
  713. msm_mux_pwm_15,
  714. msm_mux_pwm_16,
  715. msm_mux_pwm_17,
  716. msm_mux_pwm_18,
  717. msm_mux_pwm_19,
  718. msm_mux_pwm_2,
  719. msm_mux_pwm_3,
  720. msm_mux_pwm_4,
  721. msm_mux_pwm_5,
  722. msm_mux_pwm_6,
  723. msm_mux_pwm_7,
  724. msm_mux_pwm_8,
  725. msm_mux_pwm_9,
  726. msm_mux_qdss_cti,
  727. msm_mux_qdss_gpio,
  728. msm_mux_qdss_gpio0,
  729. msm_mux_qdss_gpio1,
  730. msm_mux_qdss_gpio10,
  731. msm_mux_qdss_gpio11,
  732. msm_mux_qdss_gpio12,
  733. msm_mux_qdss_gpio13,
  734. msm_mux_qdss_gpio14,
  735. msm_mux_qdss_gpio15,
  736. msm_mux_qdss_gpio2,
  737. msm_mux_qdss_gpio3,
  738. msm_mux_qdss_gpio4,
  739. msm_mux_qdss_gpio5,
  740. msm_mux_qdss_gpio6,
  741. msm_mux_qdss_gpio7,
  742. msm_mux_qdss_gpio8,
  743. msm_mux_qdss_gpio9,
  744. msm_mux_qup1_se0_l0,
  745. msm_mux_qup1_se0_l1,
  746. msm_mux_qup1_se0_l2,
  747. msm_mux_qup1_se0_l3,
  748. msm_mux_qup1_se1_l0,
  749. msm_mux_qup1_se1_l1,
  750. msm_mux_qup1_se1_l2,
  751. msm_mux_qup1_se1_l3,
  752. msm_mux_qup1_se1_l4,
  753. msm_mux_qup1_se1_l5,
  754. msm_mux_qup1_se1_l6,
  755. msm_mux_qup1_se2_l0,
  756. msm_mux_qup1_se2_l1,
  757. msm_mux_qup1_se2_l2,
  758. msm_mux_qup1_se2_l3,
  759. msm_mux_qup1_se3_l0,
  760. msm_mux_qup1_se3_l1,
  761. msm_mux_qup1_se3_l2,
  762. msm_mux_qup1_se3_l3,
  763. msm_mux_qup1_se3_l4,
  764. msm_mux_qup2_se0_l0,
  765. msm_mux_qup2_se0_l1,
  766. msm_mux_qup2_se0_l2,
  767. msm_mux_qup2_se0_l3,
  768. msm_mux_qup2_se1_l0,
  769. msm_mux_qup2_se1_l1,
  770. msm_mux_qup2_se1_l2,
  771. msm_mux_qup2_se1_l3,
  772. msm_mux_qup2_se2_l0,
  773. msm_mux_qup2_se2_l1,
  774. msm_mux_qup2_se2_l2,
  775. msm_mux_qup2_se2_l3_mira,
  776. msm_mux_qup2_se2_l3_mirb,
  777. msm_mux_qup2_se3_l0,
  778. msm_mux_qup2_se3_l1,
  779. msm_mux_qup2_se3_l2,
  780. msm_mux_qup2_se3_l3,
  781. msm_mux_qup2_se4_l0,
  782. msm_mux_qup2_se4_l1,
  783. msm_mux_qup2_se4_l2,
  784. msm_mux_qup2_se4_l3,
  785. msm_mux_qup2_se4_l4,
  786. msm_mux_qup2_se4_l5,
  787. msm_mux_qup2_se4_l6,
  788. msm_mux_qup2_se5_l0,
  789. msm_mux_qup2_se5_l1,
  790. msm_mux_qup2_se5_l2,
  791. msm_mux_qup2_se5_l3_mira,
  792. msm_mux_qup2_se5_l3_mirb,
  793. msm_mux_qup2_se6_l0,
  794. msm_mux_qup2_se6_l1,
  795. msm_mux_qup2_se6_l2,
  796. msm_mux_qup2_se6_l3,
  797. msm_mux_qup2_se7_l0,
  798. msm_mux_qup2_se7_l1,
  799. msm_mux_qup2_se7_l2,
  800. msm_mux_qup2_se7_l3,
  801. msm_mux_qup2_se7_l4,
  802. msm_mux_qup3_se0_l0,
  803. msm_mux_qup3_se0_l1,
  804. msm_mux_qup3_se0_l2,
  805. msm_mux_qup3_se0_l3,
  806. msm_mux_qup3_se0_l6,
  807. msm_mux_qup3_se1_l0,
  808. msm_mux_qup3_se1_l1,
  809. msm_mux_qup3_se1_l2,
  810. msm_mux_qup3_se1_l3,
  811. msm_mux_qup3_se2_l0,
  812. msm_mux_qup3_se2_l1,
  813. msm_mux_qup3_se2_l2,
  814. msm_mux_qup3_se2_l3,
  815. msm_mux_qup3_se3_l0,
  816. msm_mux_qup3_se3_l1,
  817. msm_mux_qup3_se3_l2,
  818. msm_mux_qup3_se3_l3,
  819. msm_mux_sd_write_protect,
  820. msm_mux_sdc2_data,
  821. msm_mux_sdc2_clk,
  822. msm_mux_sdc2_cmd,
  823. msm_mux_sdc2_fb_clk,
  824. msm_mux_sdcc5_vdd2_on,
  825. msm_mux_tb_trig_sdc2,
  826. msm_mux_tgu_ch0_trigout,
  827. msm_mux_tgu_ch1_trigout,
  828. msm_mux_tgu_ch2_trigout,
  829. msm_mux_tgu_ch3_trigout,
  830. msm_mux_tmess_prng0,
  831. msm_mux_tmess_prng1,
  832. msm_mux_tmess_prng2,
  833. msm_mux_tmess_prng3,
  834. msm_mux_tsense_pwm1,
  835. msm_mux_tsense_pwm2,
  836. msm_mux_tsense_pwm3,
  837. msm_mux_usb0_hs,
  838. msm_mux_usb1_hs,
  839. msm_mux_vsense_trigger_mirnat,
  840. msm_mux_NA,
  841. };
  842. static const char *const gpio_groups[] = {
  843. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
  844. "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11",
  845. "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17",
  846. "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23",
  847. "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29",
  848. "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  849. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
  850. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47",
  851. "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53",
  852. "gpio54", "gpio55", "gpio56", "gpio57", "gpio58", "gpio59",
  853. "gpio60", "gpio61", "gpio62", "gpio63", "gpio64", "gpio65",
  854. "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", "gpio71",
  855. "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
  856. "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
  857. "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89",
  858. "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95",
  859. "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", "gpio101",
  860. "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107",
  861. "gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113",
  862. "gpio114", "gpio115", "gpio116", "gpio117", "gpio118", "gpio119",
  863. "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
  864. "gpio126", "gpio127", "gpio128", "gpio129", "gpio130", "gpio131",
  865. "gpio132", "gpio133", "gpio134", "gpio135", "gpio136", "gpio137",
  866. "gpio138", "gpio139", "gpio140", "gpio141", "gpio142", "gpio143",
  867. "gpio144", "gpio145", "gpio146", "gpio147", "gpio148", "gpio149",
  868. "gpio150", "gpio151", "gpio152", "gpio153", "gpio154", "gpio155",
  869. "gpio156", "gpio157", "gpio158", "gpio159", "gpio160", "gpio161",
  870. "gpio162", "gpio163", "gpio164", "gpio165", "gpio166", "gpio167",
  871. "gpio168", "gpio169", "gpio170", "gpio171", "gpio172", "gpio173",
  872. "gpio174", "gpio175", "gpio176", "gpio177", "gpio178", "gpio179",
  873. "gpio180", "gpio181", "gpio182", "gpio183", "gpio184", "gpio185",
  874. "gpio186", "gpio187", "gpio188", "gpio189", "gpio190", "gpio191",
  875. "gpio192", "gpio193", "gpio194", "gpio195", "gpio196", "gpio197",
  876. "gpio198", "gpio199",
  877. };
  878. static const char *const RESOUT_GPIO_N_groups[] = {
  879. "gpio129",
  880. };
  881. static const char *const SYS_THROTTLE_MIRA_groups[] = {
  882. "gpio129",
  883. };
  884. static const char *const SYS_THROTTLE_MIRB_groups[] = {
  885. "gpio135",
  886. };
  887. static const char *const USB0_PHY_groups[] = {
  888. "gpio80", "gpio153",
  889. };
  890. static const char *const USB1_PHY_groups[] = {
  891. "gpio151", "gpio154",
  892. };
  893. static const char *const aoss_cti_groups[] = {
  894. "gpio72", "gpio73", "gpio74", "gpio75",
  895. };
  896. static const char *const atest_char0_groups[] = {
  897. "gpio113",
  898. };
  899. static const char *const atest_char1_groups[] = {
  900. "gpio112",
  901. };
  902. static const char *const atest_char2_groups[] = {
  903. "gpio108",
  904. };
  905. static const char *const atest_char3_groups[] = {
  906. "gpio107",
  907. };
  908. static const char *const atest_char_start_groups[] = {
  909. "gpio121",
  910. };
  911. static const char *const atest_usb0_groups[] = {
  912. "gpio156",
  913. };
  914. static const char *const atest_usb00_groups[] = {
  915. "gpio65",
  916. };
  917. static const char *const atest_usb01_groups[] = {
  918. "gpio58",
  919. };
  920. static const char *const atest_usb02_groups[] = {
  921. "gpio60",
  922. };
  923. static const char *const atest_usb03_groups[] = {
  924. "gpio61",
  925. };
  926. static const char *const atest_usb1_groups[] = {
  927. "gpio157",
  928. };
  929. static const char *const atest_usb10_groups[] = {
  930. "gpio56",
  931. };
  932. static const char *const atest_usb11_groups[] = {
  933. "gpio57",
  934. };
  935. static const char *const atest_usb12_groups[] = {
  936. "gpio62",
  937. };
  938. static const char *const atest_usb13_groups[] = {
  939. "gpio59",
  940. };
  941. static const char *const audio_ref_clk_groups[] = {
  942. "gpio78",
  943. };
  944. static const char *const cam_mclk_groups[] = {
  945. "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", "gpio99",
  946. "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", "gpio105",
  947. "gpio114", "gpio120",
  948. };
  949. static const char *const cci01_async_in0_groups[] = {
  950. "gpio114",
  951. };
  952. static const char *const cci01_async_in1_groups[] = {
  953. "gpio119",
  954. };
  955. static const char *const cci01_async_in2_groups[] = {
  956. "gpio120",
  957. };
  958. static const char *const cci01_timer0_groups[] = {
  959. "gpio106",
  960. };
  961. static const char *const cci01_timer1_groups[] = {
  962. "gpio107",
  963. };
  964. static const char *const cci01_timer2_groups[] = {
  965. "gpio108",
  966. };
  967. static const char *const cci01_timer3_groups[] = {
  968. "gpio119",
  969. };
  970. static const char *const cci01_timer4_groups[] = {
  971. "gpio120",
  972. };
  973. static const char *const cci0_i2c_groups[] = {
  974. "gpio38", "gpio39", "gpio135", "gpio136",
  975. };
  976. static const char *const cci0_i2c_scl0_groups[] = {
  977. "gpio83",
  978. };
  979. static const char *const cci0_i2c_sda0_groups[] = {
  980. "gpio82",
  981. };
  982. static const char *const cci1_i2c_groups[] = {
  983. "gpio69", "gpio70", "gpio137", "gpio138",
  984. };
  985. static const char *const cci1_i2c_scl2_groups[] = {
  986. "gpio85",
  987. };
  988. static const char *const cci1_i2c_sda2_groups[] = {
  989. "gpio84",
  990. };
  991. static const char *const cci23_async_in0_groups[] = {
  992. "gpio115",
  993. };
  994. static const char *const cci23_async_in1_groups[] = {
  995. "gpio116",
  996. };
  997. static const char *const cci23_async_in2_groups[] = {
  998. "gpio121",
  999. };
  1000. static const char *const cci23_timer0_groups[] = {
  1001. "gpio109",
  1002. };
  1003. static const char *const cci23_timer1_groups[] = {
  1004. "gpio110",
  1005. };
  1006. static const char *const cci23_timer2_groups[] = {
  1007. "gpio121",
  1008. };
  1009. static const char *const cci23_timer3_groups[] = {
  1010. "gpio122",
  1011. };
  1012. static const char *const cci23_timer4_groups[] = {
  1013. "gpio123",
  1014. };
  1015. static const char *const cci2_i2c_scl4_groups[] = {
  1016. "gpio87",
  1017. };
  1018. static const char *const cci2_i2c_scl5_groups[] = {
  1019. "gpio122",
  1020. };
  1021. static const char *const cci2_i2c_sda4_groups[] = {
  1022. "gpio86",
  1023. };
  1024. static const char *const cci2_i2c_sda5_groups[] = {
  1025. "gpio123",
  1026. };
  1027. static const char *const cci3_i2c_scl6_groups[] = {
  1028. "gpio89",
  1029. };
  1030. static const char *const cci3_i2c_scl7_groups[] = {
  1031. "gpio51",
  1032. };
  1033. static const char *const cci3_i2c_sda6_groups[] = {
  1034. "gpio88",
  1035. };
  1036. static const char *const cci3_i2c_sda7_groups[] = {
  1037. "gpio50",
  1038. };
  1039. static const char *const cci45_async_groups[] = {
  1040. "gpio73", "gpio75", "gpio77", "gpio117", "gpio118", "gpio124",
  1041. };
  1042. static const char *const cci45_timer0_groups[] = {
  1043. "gpio111",
  1044. };
  1045. static const char *const cci45_timer1_groups[] = {
  1046. "gpio112",
  1047. };
  1048. static const char *const cci45_timer2_groups[] = {
  1049. "gpio113",
  1050. };
  1051. static const char *const cci45_timer3_mira_groups[] = {
  1052. "gpio124",
  1053. };
  1054. static const char *const cci45_timer3_mirb_groups[] = {
  1055. "gpio77",
  1056. };
  1057. static const char *const cci45_timer4_mira_groups[] = {
  1058. "gpio125",
  1059. };
  1060. static const char *const cci45_timer4_mirb_groups[] = {
  1061. "gpio76",
  1062. };
  1063. static const char *const cci4_i2c_groups[] = {
  1064. "gpio40", "gpio41", "gpio117", "gpio118",
  1065. };
  1066. static const char *const cci4_i2c_scl8_groups[] = {
  1067. "gpio91",
  1068. };
  1069. static const char *const cci4_i2c_sda8_groups[] = {
  1070. "gpio90",
  1071. };
  1072. static const char *const cci5_i2c_groups[] = {
  1073. "gpio42", "gpio43", "gpio124", "gpio125",
  1074. };
  1075. static const char *const cci5_i2c_scl10_groups[] = {
  1076. "gpio93",
  1077. };
  1078. static const char *const cci5_i2c_sda10_groups[] = {
  1079. "gpio92",
  1080. };
  1081. static const char *const cmu_rng0_groups[] = {
  1082. "gpio59",
  1083. };
  1084. static const char *const cmu_rng1_groups[] = {
  1085. "gpio58",
  1086. };
  1087. static const char *const cmu_rng2_groups[] = {
  1088. "gpio57",
  1089. };
  1090. static const char *const cmu_rng3_groups[] = {
  1091. "gpio56",
  1092. };
  1093. static const char *const cri_trng_groups[] = {
  1094. "gpio105",
  1095. };
  1096. static const char *const dbg_out_clk_groups[] = {
  1097. "gpio59",
  1098. };
  1099. static const char *const ddr_bist_complete_groups[] = {
  1100. "gpio87",
  1101. };
  1102. static const char *const ddr_bist_fail_groups[] = {
  1103. "gpio84",
  1104. };
  1105. static const char *const ddr_bist_start_groups[] = {
  1106. "gpio85",
  1107. };
  1108. static const char *const ddr_bist_stop_groups[] = {
  1109. "gpio86",
  1110. };
  1111. static const char *const ddr_pxi0_groups[] = {
  1112. "gpio61", "gpio62",
  1113. };
  1114. static const char *const ddr_pxi1_groups[] = {
  1115. "gpio60", "gpio65",
  1116. };
  1117. static const char *const ddr_pxi2_groups[] = {
  1118. "gpio156", "gpio157",
  1119. };
  1120. static const char *const ddr_pxi3_groups[] = {
  1121. "gpio58", "gpio59",
  1122. };
  1123. static const char *const dp0_hot_groups[] = {
  1124. "gpio50", "gpio160",
  1125. };
  1126. static const char *const edp0_hot_groups[] = {
  1127. "gpio137", "gpio156",
  1128. };
  1129. static const char *const edp0_lcd_groups[] = {
  1130. "gpio38", "gpio158",
  1131. };
  1132. static const char *const edp1_dpu0_groups[] = {
  1133. "gpio39", "gpio159",
  1134. };
  1135. static const char *const edp1_dpu1_groups[] = {
  1136. "gpio39", "gpio159",
  1137. };
  1138. static const char *const edp1_hot_groups[] = {
  1139. "gpio138", "gpio157",
  1140. };
  1141. static const char *const egpio_groups[] = {
  1142. "gpio161", "gpio162", "gpio163", "gpio164", "gpio165", "gpio166",
  1143. "gpio167", "gpio168", "gpio169", "gpio170", "gpio171", "gpio172",
  1144. "gpio173", "gpio174", "gpio175", "gpio176", "gpio177", "gpio178",
  1145. "gpio179", "gpio180", "gpio181", "gpio182", "gpio183", "gpio184",
  1146. "gpio185", "gpio186", "gpio187", "gpio188", "gpio189", "gpio190",
  1147. "gpio191", "gpio192", "gpio193", "gpio194", "gpio195", "gpio196",
  1148. "gpio197", "gpio198", "gpio199",
  1149. };
  1150. static const char *const ext_mclk0_groups[] = {
  1151. "gpio130",
  1152. };
  1153. static const char *const ext_mclk1_groups[] = {
  1154. "gpio78",
  1155. };
  1156. static const char *const gcc_gp_groups[] = {
  1157. "gpio60", "gpio61", "gpio62", "gpio120", "gpio122", "gpio123",
  1158. };
  1159. static const char *const gcc_gp_clk10_groups[] = {
  1160. "gpio128",
  1161. };
  1162. static const char *const gcc_gp_clk11_groups[] = {
  1163. "gpio127",
  1164. };
  1165. static const char *const gcc_gp_clk4_groups[] = {
  1166. "gpio72",
  1167. };
  1168. static const char *const gcc_gp_clk5_groups[] = {
  1169. "gpio74",
  1170. };
  1171. static const char *const gcc_gp_clk6_groups[] = {
  1172. "gpio136",
  1173. };
  1174. static const char *const gcc_gp_clk7_groups[] = {
  1175. "gpio76",
  1176. };
  1177. static const char *const gcc_gp_clk8_groups[] = {
  1178. "gpio22",
  1179. };
  1180. static const char *const gcc_gp_clk9_groups[] = {
  1181. "gpio65",
  1182. };
  1183. static const char *const i2s0_data0_groups[] = {
  1184. "gpio132",
  1185. };
  1186. static const char *const i2s0_data1_groups[] = {
  1187. "gpio131",
  1188. };
  1189. static const char *const i2s0_sck_groups[] = {
  1190. "gpio133",
  1191. };
  1192. static const char *const i2s0_ws_groups[] = {
  1193. "gpio134",
  1194. };
  1195. static const char *const i2s2_data0_groups[] = {
  1196. "gpio79",
  1197. };
  1198. static const char *const i2s2_data1_groups[] = {
  1199. "gpio81",
  1200. };
  1201. static const char *const i2s2_sck_groups[] = {
  1202. "gpio152",
  1203. };
  1204. static const char *const i2s2_ws_groups[] = {
  1205. "gpio150",
  1206. };
  1207. static const char *const ibi_i3c_groups[] = {
  1208. "gpio0", "gpio1", "gpio4", "gpio5", "gpio40", "gpio41",
  1209. "gpio52", "gpio53",
  1210. };
  1211. static const char *const jitter_bist_groups[] = {
  1212. "gpio56",
  1213. };
  1214. static const char *const mdp0_vsync0_mira_groups[] = {
  1215. "gpio137",
  1216. };
  1217. static const char *const mdp0_vsync0_mirb_groups[] = {
  1218. "gpio156",
  1219. };
  1220. static const char *const mdp0_vsync0_out_groups[] = {
  1221. "gpio15",
  1222. };
  1223. static const char *const mdp0_vsync1_mira_groups[] = {
  1224. "gpio138",
  1225. };
  1226. static const char *const mdp0_vsync1_mirb_groups[] = {
  1227. "gpio157",
  1228. };
  1229. static const char *const mdp0_vsync1_out_groups[] = {
  1230. "gpio76",
  1231. };
  1232. static const char *const mdp0_vsync2_out_groups[] = {
  1233. "gpio77",
  1234. };
  1235. static const char *const mdp0_vsync3_out_groups[] = {
  1236. "gpio19",
  1237. };
  1238. static const char *const mdp0_vsync4_out_groups[] = {
  1239. "gpio21",
  1240. };
  1241. static const char *const mdp0_vsync5_out_groups[] = {
  1242. "gpio18",
  1243. };
  1244. static const char *const mdp0_vsync6_out_groups[] = {
  1245. "gpio12",
  1246. };
  1247. static const char *const mdp0_vsync7_out_groups[] = {
  1248. "gpio13",
  1249. };
  1250. static const char *const mdp0_vsync8_out_groups[] = {
  1251. "gpio14",
  1252. };
  1253. static const char *const mdp1_vsync0_mira_groups[] = {
  1254. "gpio38",
  1255. };
  1256. static const char *const mdp1_vsync0_mirb_groups[] = {
  1257. "gpio158",
  1258. };
  1259. static const char *const mdp1_vsync0_out_groups[] = {
  1260. "gpio73",
  1261. };
  1262. static const char *const mdp1_vsync1_mira_groups[] = {
  1263. "gpio39",
  1264. };
  1265. static const char *const mdp1_vsync1_mirb_groups[] = {
  1266. "gpio159",
  1267. };
  1268. static const char *const mdp1_vsync1_out_groups[] = {
  1269. "gpio11",
  1270. };
  1271. static const char *const mdp1_vsync2_out_groups[] = {
  1272. "gpio72",
  1273. };
  1274. static const char *const mdp1_vsync3_out_groups[] = {
  1275. "gpio23",
  1276. };
  1277. static const char *const mdp1_vsync4_out_groups[] = {
  1278. "gpio24",
  1279. };
  1280. static const char *const mdp1_vsync5_out_groups[] = {
  1281. "gpio25",
  1282. };
  1283. static const char *const mdp1_vsync6_out_groups[] = {
  1284. "gpio26",
  1285. };
  1286. static const char *const mdp1_vsync7_out_groups[] = {
  1287. "gpio75",
  1288. };
  1289. static const char *const mdp1_vsync8_out_groups[] = {
  1290. "gpio74",
  1291. };
  1292. static const char *const pcie0_clk_req_n_groups[] = {
  1293. "gpio126",
  1294. };
  1295. static const char *const pcie1_clk_req_n_groups[] = {
  1296. "gpio139",
  1297. };
  1298. static const char *const pcie2_clk_req_n_groups[] = {
  1299. "gpio149",
  1300. };
  1301. static const char *const phase_flag0_groups[] = {
  1302. "gpio13",
  1303. };
  1304. static const char *const phase_flag1_groups[] = {
  1305. "gpio55",
  1306. };
  1307. static const char *const phase_flag10_groups[] = {
  1308. "gpio64",
  1309. };
  1310. static const char *const phase_flag11_groups[] = {
  1311. "gpio107",
  1312. };
  1313. static const char *const phase_flag12_groups[] = {
  1314. "gpio139",
  1315. };
  1316. static const char *const phase_flag13_groups[] = {
  1317. "gpio149",
  1318. };
  1319. static const char *const phase_flag14_groups[] = {
  1320. "gpio15",
  1321. };
  1322. static const char *const phase_flag15_groups[] = {
  1323. "gpio158",
  1324. };
  1325. static const char *const phase_flag16_groups[] = {
  1326. "gpio106",
  1327. };
  1328. static const char *const phase_flag17_groups[] = {
  1329. "gpio93",
  1330. };
  1331. static const char *const phase_flag18_groups[] = {
  1332. "gpio92",
  1333. };
  1334. static const char *const phase_flag19_groups[] = {
  1335. "gpio21",
  1336. };
  1337. static const char *const phase_flag2_groups[] = {
  1338. "gpio69",
  1339. };
  1340. static const char *const phase_flag20_groups[] = {
  1341. "gpio19",
  1342. };
  1343. static const char *const phase_flag21_groups[] = {
  1344. "gpio91",
  1345. };
  1346. static const char *const phase_flag22_groups[] = {
  1347. "gpio90",
  1348. };
  1349. static const char *const phase_flag23_groups[] = {
  1350. "gpio51",
  1351. };
  1352. static const char *const phase_flag24_groups[] = {
  1353. "gpio14",
  1354. };
  1355. static const char *const phase_flag25_groups[] = {
  1356. "gpio66",
  1357. };
  1358. static const char *const phase_flag26_groups[] = {
  1359. "gpio71",
  1360. };
  1361. static const char *const phase_flag27_groups[] = {
  1362. "gpio121",
  1363. };
  1364. static const char *const phase_flag28_groups[] = {
  1365. "gpio112",
  1366. };
  1367. static const char *const phase_flag29_groups[] = {
  1368. "gpio108",
  1369. };
  1370. static const char *const phase_flag3_groups[] = {
  1371. "gpio63",
  1372. };
  1373. static const char *const phase_flag30_groups[] = {
  1374. "gpio140",
  1375. };
  1376. static const char *const phase_flag31_groups[] = {
  1377. "gpio54",
  1378. };
  1379. static const char *const phase_flag4_groups[] = {
  1380. "gpio160",
  1381. };
  1382. static const char *const phase_flag5_groups[] = {
  1383. "gpio117",
  1384. };
  1385. static const char *const phase_flag6_groups[] = {
  1386. "gpio70",
  1387. };
  1388. static const char *const phase_flag7_groups[] = {
  1389. "gpio111",
  1390. };
  1391. static const char *const phase_flag8_groups[] = {
  1392. "gpio67",
  1393. };
  1394. static const char *const phase_flag9_groups[] = {
  1395. "gpio12",
  1396. };
  1397. static const char *const pll_bist_sync_groups[] = {
  1398. "gpio159",
  1399. };
  1400. static const char *const pll_clk_aux_groups[] = {
  1401. "gpio57",
  1402. };
  1403. static const char *const prng_rosc0_groups[] = {
  1404. "gpio103",
  1405. };
  1406. static const char *const prng_rosc1_groups[] = {
  1407. "gpio104",
  1408. };
  1409. static const char *const prng_rosc2_groups[] = {
  1410. "gpio102",
  1411. };
  1412. static const char *const prng_rosc3_groups[] = {
  1413. "gpio101",
  1414. };
  1415. static const char *const pwm_0_groups[] = {
  1416. "gpio135",
  1417. };
  1418. static const char *const pwm_1_groups[] = {
  1419. "gpio136",
  1420. };
  1421. static const char *const pwm_10_groups[] = {
  1422. "gpio20",
  1423. };
  1424. static const char *const pwm_11_groups[] = {
  1425. "gpio36",
  1426. };
  1427. static const char *const pwm_12_groups[] = {
  1428. "gpio51",
  1429. };
  1430. static const char *const pwm_13_groups[] = {
  1431. "gpio4",
  1432. };
  1433. static const char *const pwm_14_groups[] = {
  1434. "gpio160",
  1435. };
  1436. static const char *const pwm_15_groups[] = {
  1437. "gpio5",
  1438. };
  1439. static const char *const pwm_16_groups[] = {
  1440. "gpio128",
  1441. };
  1442. static const char *const pwm_17_groups[] = {
  1443. "gpio151",
  1444. };
  1445. static const char *const pwm_18_groups[] = {
  1446. "gpio80",
  1447. };
  1448. static const char *const pwm_19_groups[] = {
  1449. "gpio127",
  1450. };
  1451. static const char *const pwm_2_groups[] = {
  1452. "gpio73",
  1453. };
  1454. static const char *const pwm_3_groups[] = {
  1455. "gpio11",
  1456. };
  1457. static const char *const pwm_4_groups[] = {
  1458. "gpio26",
  1459. };
  1460. static const char *const pwm_5_groups[] = {
  1461. "gpio75",
  1462. };
  1463. static const char *const pwm_6_groups[] = {
  1464. "gpio153",
  1465. };
  1466. static const char *const pwm_7_groups[] = {
  1467. "gpio154",
  1468. };
  1469. static const char *const pwm_8_groups[] = {
  1470. "gpio76",
  1471. };
  1472. static const char *const pwm_9_groups[] = {
  1473. "gpio77",
  1474. };
  1475. static const char *const qdss_cti_groups[] = {
  1476. "gpio6", "gpio7", "gpio29", "gpio30", "gpio66", "gpio68",
  1477. "gpio131", "gpio133",
  1478. };
  1479. static const char *const qdss_gpio_groups[] = {
  1480. "gpio85", "gpio124", "gpio182", "gpio183",
  1481. };
  1482. static const char *const qdss_gpio0_groups[] = {
  1483. "gpio82", "gpio193",
  1484. };
  1485. static const char *const qdss_gpio1_groups[] = {
  1486. "gpio83", "gpio190",
  1487. };
  1488. static const char *const qdss_gpio10_groups[] = {
  1489. "gpio115", "gpio178",
  1490. };
  1491. static const char *const qdss_gpio11_groups[] = {
  1492. "gpio116", "gpio191",
  1493. };
  1494. static const char *const qdss_gpio12_groups[] = {
  1495. "gpio119", "gpio128",
  1496. };
  1497. static const char *const qdss_gpio13_groups[] = {
  1498. "gpio118", "gpio127",
  1499. };
  1500. static const char *const qdss_gpio14_groups[] = {
  1501. "gpio122", "gpio192",
  1502. };
  1503. static const char *const qdss_gpio15_groups[] = {
  1504. "gpio123", "gpio179",
  1505. };
  1506. static const char *const qdss_gpio2_groups[] = {
  1507. "gpio84", "gpio167",
  1508. };
  1509. static const char *const qdss_gpio3_groups[] = {
  1510. "gpio86", "gpio168",
  1511. };
  1512. static const char *const qdss_gpio4_groups[] = {
  1513. "gpio87", "gpio169",
  1514. };
  1515. static const char *const qdss_gpio5_groups[] = {
  1516. "gpio88", "gpio170",
  1517. };
  1518. static const char *const qdss_gpio6_groups[] = {
  1519. "gpio89", "gpio173",
  1520. };
  1521. static const char *const qdss_gpio7_groups[] = {
  1522. "gpio109", "gpio174",
  1523. };
  1524. static const char *const qdss_gpio8_groups[] = {
  1525. "gpio110", "gpio194",
  1526. };
  1527. static const char *const qdss_gpio9_groups[] = {
  1528. "gpio113", "gpio195",
  1529. };
  1530. static const char *const qup1_se0_l0_groups[] = {
  1531. "gpio52",
  1532. };
  1533. static const char *const qup1_se0_l1_groups[] = {
  1534. "gpio53",
  1535. };
  1536. static const char *const qup1_se0_l2_groups[] = {
  1537. "gpio54",
  1538. };
  1539. static const char *const qup1_se0_l3_groups[] = {
  1540. "gpio55",
  1541. };
  1542. static const char *const qup1_se1_l0_groups[] = {
  1543. "gpio56",
  1544. };
  1545. static const char *const qup1_se1_l1_groups[] = {
  1546. "gpio57",
  1547. };
  1548. static const char *const qup1_se1_l2_groups[] = {
  1549. "gpio58",
  1550. };
  1551. static const char *const qup1_se1_l3_groups[] = {
  1552. "gpio59",
  1553. };
  1554. static const char *const qup1_se1_l4_groups[] = {
  1555. "gpio60",
  1556. };
  1557. static const char *const qup1_se1_l5_groups[] = {
  1558. "gpio61",
  1559. };
  1560. static const char *const qup1_se1_l6_groups[] = {
  1561. "gpio62",
  1562. };
  1563. static const char *const qup1_se2_l0_groups[] = {
  1564. "gpio63",
  1565. };
  1566. static const char *const qup1_se2_l1_groups[] = {
  1567. "gpio64",
  1568. };
  1569. static const char *const qup1_se2_l2_groups[] = {
  1570. "gpio65",
  1571. };
  1572. static const char *const qup1_se2_l3_groups[] = {
  1573. "gpio66",
  1574. };
  1575. static const char *const qup1_se3_l0_groups[] = {
  1576. "gpio67",
  1577. };
  1578. static const char *const qup1_se3_l1_groups[] = {
  1579. "gpio68",
  1580. };
  1581. static const char *const qup1_se3_l2_groups[] = {
  1582. "gpio69",
  1583. };
  1584. static const char *const qup1_se3_l3_groups[] = {
  1585. "gpio70",
  1586. };
  1587. static const char *const qup1_se3_l4_groups[] = {
  1588. "gpio71",
  1589. };
  1590. static const char *const qup2_se0_l0_groups[] = {
  1591. "gpio0",
  1592. };
  1593. static const char *const qup2_se0_l1_groups[] = {
  1594. "gpio1",
  1595. };
  1596. static const char *const qup2_se0_l2_groups[] = {
  1597. "gpio2",
  1598. };
  1599. static const char *const qup2_se0_l3_groups[] = {
  1600. "gpio3",
  1601. };
  1602. static const char *const qup2_se1_l0_groups[] = {
  1603. "gpio4",
  1604. };
  1605. static const char *const qup2_se1_l1_groups[] = {
  1606. "gpio5",
  1607. };
  1608. static const char *const qup2_se1_l2_groups[] = {
  1609. "gpio6",
  1610. };
  1611. static const char *const qup2_se1_l3_groups[] = {
  1612. "gpio7",
  1613. };
  1614. static const char *const qup2_se2_l0_groups[] = {
  1615. "gpio8",
  1616. };
  1617. static const char *const qup2_se2_l1_groups[] = {
  1618. "gpio9",
  1619. };
  1620. static const char *const qup2_se2_l2_groups[] = {
  1621. "gpio10",
  1622. };
  1623. static const char *const qup2_se2_l3_mira_groups[] = {
  1624. "gpio11",
  1625. };
  1626. static const char *const qup2_se2_l3_mirb_groups[] = {
  1627. "gpio72",
  1628. };
  1629. static const char *const qup2_se3_l0_groups[] = {
  1630. "gpio12",
  1631. };
  1632. static const char *const qup2_se3_l1_groups[] = {
  1633. "gpio13",
  1634. };
  1635. static const char *const qup2_se3_l2_groups[] = {
  1636. "gpio14",
  1637. };
  1638. static const char *const qup2_se3_l3_groups[] = {
  1639. "gpio15",
  1640. };
  1641. static const char *const qup2_se4_l0_groups[] = {
  1642. "gpio16",
  1643. };
  1644. static const char *const qup2_se4_l1_groups[] = {
  1645. "gpio17",
  1646. };
  1647. static const char *const qup2_se4_l2_groups[] = {
  1648. "gpio18",
  1649. };
  1650. static const char *const qup2_se4_l3_groups[] = {
  1651. "gpio19",
  1652. };
  1653. static const char *const qup2_se4_l4_groups[] = {
  1654. "gpio20",
  1655. };
  1656. static const char *const qup2_se4_l5_groups[] = {
  1657. "gpio21",
  1658. };
  1659. static const char *const qup2_se4_l6_groups[] = {
  1660. "gpio22",
  1661. };
  1662. static const char *const qup2_se5_l0_groups[] = {
  1663. "gpio23",
  1664. };
  1665. static const char *const qup2_se5_l1_groups[] = {
  1666. "gpio24",
  1667. };
  1668. static const char *const qup2_se5_l2_groups[] = {
  1669. "gpio25",
  1670. };
  1671. static const char *const qup2_se5_l3_mira_groups[] = {
  1672. "gpio26",
  1673. };
  1674. static const char *const qup2_se5_l3_mirb_groups[] = {
  1675. "gpio74",
  1676. };
  1677. static const char *const qup2_se6_l0_groups[] = {
  1678. "gpio27",
  1679. };
  1680. static const char *const qup2_se6_l1_groups[] = {
  1681. "gpio28",
  1682. };
  1683. static const char *const qup2_se6_l2_groups[] = {
  1684. "gpio29",
  1685. };
  1686. static const char *const qup2_se6_l3_groups[] = {
  1687. "gpio30",
  1688. };
  1689. static const char *const qup2_se7_l0_groups[] = {
  1690. "gpio31",
  1691. };
  1692. static const char *const qup2_se7_l1_groups[] = {
  1693. "gpio32",
  1694. };
  1695. static const char *const qup2_se7_l2_groups[] = {
  1696. "gpio33",
  1697. };
  1698. static const char *const qup2_se7_l3_groups[] = {
  1699. "gpio34",
  1700. };
  1701. static const char *const qup2_se7_l4_groups[] = {
  1702. "gpio35",
  1703. };
  1704. static const char *const qup3_se0_l0_groups[] = {
  1705. "gpio40",
  1706. };
  1707. static const char *const qup3_se0_l1_groups[] = {
  1708. "gpio41",
  1709. };
  1710. static const char *const qup3_se0_l2_groups[] = {
  1711. "gpio42",
  1712. };
  1713. static const char *const qup3_se0_l3_groups[] = {
  1714. "gpio43",
  1715. };
  1716. static const char *const qup3_se0_l6_groups[] = {
  1717. "gpio43",
  1718. };
  1719. static const char *const qup3_se1_l0_groups[] = {
  1720. "gpio36",
  1721. };
  1722. static const char *const qup3_se1_l1_groups[] = {
  1723. "gpio37",
  1724. };
  1725. static const char *const qup3_se1_l2_groups[] = {
  1726. "gpio38",
  1727. };
  1728. static const char *const qup3_se1_l3_groups[] = {
  1729. "gpio39",
  1730. };
  1731. static const char *const qup3_se2_l0_groups[] = {
  1732. "gpio44",
  1733. };
  1734. static const char *const qup3_se2_l1_groups[] = {
  1735. "gpio45",
  1736. };
  1737. static const char *const qup3_se2_l2_groups[] = {
  1738. "gpio46",
  1739. };
  1740. static const char *const qup3_se2_l3_groups[] = {
  1741. "gpio47",
  1742. };
  1743. static const char *const qup3_se3_l0_groups[] = {
  1744. "gpio48",
  1745. };
  1746. static const char *const qup3_se3_l1_groups[] = {
  1747. "gpio49",
  1748. };
  1749. static const char *const qup3_se3_l2_groups[] = {
  1750. "gpio50",
  1751. };
  1752. static const char *const qup3_se3_l3_groups[] = {
  1753. "gpio51",
  1754. };
  1755. static const char *const sd_write_protect_groups[] = {
  1756. "gpio130",
  1757. };
  1758. static const char *const sdc2_data_groups[] = {
  1759. "gpio141", "gpio142", "gpio143", "gpio144",
  1760. };
  1761. static const char *const sdc2_clk_groups[] = {
  1762. "gpio146",
  1763. };
  1764. static const char *const sdc2_cmd_groups[] = {
  1765. "gpio145",
  1766. };
  1767. static const char *const sdc2_fb_clk_groups[] = {
  1768. "gpio147",
  1769. };
  1770. static const char *const sdcc5_vdd2_on_groups[] = {
  1771. "gpio81",
  1772. };
  1773. static const char *const tb_trig_sdc2_groups[] = {
  1774. "gpio150",
  1775. };
  1776. static const char *const tgu_ch0_trigout_groups[] = {
  1777. "gpio79",
  1778. };
  1779. static const char *const tgu_ch1_trigout_groups[] = {
  1780. "gpio152",
  1781. };
  1782. static const char *const tgu_ch2_trigout_groups[] = {
  1783. "gpio81",
  1784. };
  1785. static const char *const tgu_ch3_trigout_groups[] = {
  1786. "gpio150",
  1787. };
  1788. static const char *const tmess_prng0_groups[] = {
  1789. "gpio100",
  1790. };
  1791. static const char *const tmess_prng1_groups[] = {
  1792. "gpio99",
  1793. };
  1794. static const char *const tmess_prng2_groups[] = {
  1795. "gpio98",
  1796. };
  1797. static const char *const tmess_prng3_groups[] = {
  1798. "gpio97",
  1799. };
  1800. static const char *const tsense_pwm1_groups[] = {
  1801. "gpio7",
  1802. };
  1803. static const char *const tsense_pwm2_groups[] = {
  1804. "gpio7",
  1805. };
  1806. static const char *const tsense_pwm3_groups[] = {
  1807. "gpio7",
  1808. };
  1809. static const char *const usb0_hs_groups[] = {
  1810. "gpio30",
  1811. };
  1812. static const char *const usb1_hs_groups[] = {
  1813. "gpio29",
  1814. };
  1815. static const char *const vsense_trigger_mirnat_groups[] = {
  1816. "gpio56",
  1817. };
  1818. static const struct msm_function niobe_functions[] = {
  1819. FUNCTION(gpio),
  1820. FUNCTION(RESOUT_GPIO_N),
  1821. FUNCTION(SYS_THROTTLE_MIRA),
  1822. FUNCTION(SYS_THROTTLE_MIRB),
  1823. FUNCTION(USB0_PHY),
  1824. FUNCTION(USB1_PHY),
  1825. FUNCTION(aoss_cti),
  1826. FUNCTION(atest_char0),
  1827. FUNCTION(atest_char1),
  1828. FUNCTION(atest_char2),
  1829. FUNCTION(atest_char3),
  1830. FUNCTION(atest_char_start),
  1831. FUNCTION(atest_usb0),
  1832. FUNCTION(atest_usb00),
  1833. FUNCTION(atest_usb01),
  1834. FUNCTION(atest_usb02),
  1835. FUNCTION(atest_usb03),
  1836. FUNCTION(atest_usb1),
  1837. FUNCTION(atest_usb10),
  1838. FUNCTION(atest_usb11),
  1839. FUNCTION(atest_usb12),
  1840. FUNCTION(atest_usb13),
  1841. FUNCTION(audio_ref_clk),
  1842. FUNCTION(cam_mclk),
  1843. FUNCTION(cci01_async_in0),
  1844. FUNCTION(cci01_async_in1),
  1845. FUNCTION(cci01_async_in2),
  1846. FUNCTION(cci01_timer0),
  1847. FUNCTION(cci01_timer1),
  1848. FUNCTION(cci01_timer2),
  1849. FUNCTION(cci01_timer3),
  1850. FUNCTION(cci01_timer4),
  1851. FUNCTION(cci0_i2c),
  1852. FUNCTION(cci0_i2c_scl0),
  1853. FUNCTION(cci0_i2c_sda0),
  1854. FUNCTION(cci1_i2c),
  1855. FUNCTION(cci1_i2c_scl2),
  1856. FUNCTION(cci1_i2c_sda2),
  1857. FUNCTION(cci23_async_in0),
  1858. FUNCTION(cci23_async_in1),
  1859. FUNCTION(cci23_async_in2),
  1860. FUNCTION(cci23_timer0),
  1861. FUNCTION(cci23_timer1),
  1862. FUNCTION(cci23_timer2),
  1863. FUNCTION(cci23_timer3),
  1864. FUNCTION(cci23_timer4),
  1865. FUNCTION(cci2_i2c_scl4),
  1866. FUNCTION(cci2_i2c_scl5),
  1867. FUNCTION(cci2_i2c_sda4),
  1868. FUNCTION(cci2_i2c_sda5),
  1869. FUNCTION(cci3_i2c_scl6),
  1870. FUNCTION(cci3_i2c_scl7),
  1871. FUNCTION(cci3_i2c_sda6),
  1872. FUNCTION(cci3_i2c_sda7),
  1873. FUNCTION(cci45_async),
  1874. FUNCTION(cci45_timer0),
  1875. FUNCTION(cci45_timer1),
  1876. FUNCTION(cci45_timer2),
  1877. FUNCTION(cci45_timer3_mira),
  1878. FUNCTION(cci45_timer3_mirb),
  1879. FUNCTION(cci45_timer4_mira),
  1880. FUNCTION(cci45_timer4_mirb),
  1881. FUNCTION(cci4_i2c),
  1882. FUNCTION(cci4_i2c_scl8),
  1883. FUNCTION(cci4_i2c_sda8),
  1884. FUNCTION(cci5_i2c),
  1885. FUNCTION(cci5_i2c_scl10),
  1886. FUNCTION(cci5_i2c_sda10),
  1887. FUNCTION(cmu_rng0),
  1888. FUNCTION(cmu_rng1),
  1889. FUNCTION(cmu_rng2),
  1890. FUNCTION(cmu_rng3),
  1891. FUNCTION(cri_trng),
  1892. FUNCTION(dbg_out_clk),
  1893. FUNCTION(ddr_bist_complete),
  1894. FUNCTION(ddr_bist_fail),
  1895. FUNCTION(ddr_bist_start),
  1896. FUNCTION(ddr_bist_stop),
  1897. FUNCTION(ddr_pxi0),
  1898. FUNCTION(ddr_pxi1),
  1899. FUNCTION(ddr_pxi2),
  1900. FUNCTION(ddr_pxi3),
  1901. FUNCTION(dp0_hot),
  1902. FUNCTION(edp0_hot),
  1903. FUNCTION(edp0_lcd),
  1904. FUNCTION(edp1_dpu0),
  1905. FUNCTION(edp1_dpu1),
  1906. FUNCTION(edp1_hot),
  1907. FUNCTION(egpio),
  1908. FUNCTION(ext_mclk0),
  1909. FUNCTION(ext_mclk1),
  1910. FUNCTION(gcc_gp),
  1911. FUNCTION(gcc_gp_clk10),
  1912. FUNCTION(gcc_gp_clk11),
  1913. FUNCTION(gcc_gp_clk4),
  1914. FUNCTION(gcc_gp_clk5),
  1915. FUNCTION(gcc_gp_clk6),
  1916. FUNCTION(gcc_gp_clk7),
  1917. FUNCTION(gcc_gp_clk8),
  1918. FUNCTION(gcc_gp_clk9),
  1919. FUNCTION(i2s0_data0),
  1920. FUNCTION(i2s0_data1),
  1921. FUNCTION(i2s0_sck),
  1922. FUNCTION(i2s0_ws),
  1923. FUNCTION(i2s2_data0),
  1924. FUNCTION(i2s2_data1),
  1925. FUNCTION(i2s2_sck),
  1926. FUNCTION(i2s2_ws),
  1927. FUNCTION(ibi_i3c),
  1928. FUNCTION(jitter_bist),
  1929. FUNCTION(mdp0_vsync0_mira),
  1930. FUNCTION(mdp0_vsync0_mirb),
  1931. FUNCTION(mdp0_vsync0_out),
  1932. FUNCTION(mdp0_vsync1_mira),
  1933. FUNCTION(mdp0_vsync1_mirb),
  1934. FUNCTION(mdp0_vsync1_out),
  1935. FUNCTION(mdp0_vsync2_out),
  1936. FUNCTION(mdp0_vsync3_out),
  1937. FUNCTION(mdp0_vsync4_out),
  1938. FUNCTION(mdp0_vsync5_out),
  1939. FUNCTION(mdp0_vsync6_out),
  1940. FUNCTION(mdp0_vsync7_out),
  1941. FUNCTION(mdp0_vsync8_out),
  1942. FUNCTION(mdp1_vsync0_mira),
  1943. FUNCTION(mdp1_vsync0_mirb),
  1944. FUNCTION(mdp1_vsync0_out),
  1945. FUNCTION(mdp1_vsync1_mira),
  1946. FUNCTION(mdp1_vsync1_mirb),
  1947. FUNCTION(mdp1_vsync1_out),
  1948. FUNCTION(mdp1_vsync2_out),
  1949. FUNCTION(mdp1_vsync3_out),
  1950. FUNCTION(mdp1_vsync4_out),
  1951. FUNCTION(mdp1_vsync5_out),
  1952. FUNCTION(mdp1_vsync6_out),
  1953. FUNCTION(mdp1_vsync7_out),
  1954. FUNCTION(mdp1_vsync8_out),
  1955. FUNCTION(pcie0_clk_req_n),
  1956. FUNCTION(pcie1_clk_req_n),
  1957. FUNCTION(pcie2_clk_req_n),
  1958. FUNCTION(phase_flag0),
  1959. FUNCTION(phase_flag1),
  1960. FUNCTION(phase_flag10),
  1961. FUNCTION(phase_flag11),
  1962. FUNCTION(phase_flag12),
  1963. FUNCTION(phase_flag13),
  1964. FUNCTION(phase_flag14),
  1965. FUNCTION(phase_flag15),
  1966. FUNCTION(phase_flag16),
  1967. FUNCTION(phase_flag17),
  1968. FUNCTION(phase_flag18),
  1969. FUNCTION(phase_flag19),
  1970. FUNCTION(phase_flag2),
  1971. FUNCTION(phase_flag20),
  1972. FUNCTION(phase_flag21),
  1973. FUNCTION(phase_flag22),
  1974. FUNCTION(phase_flag23),
  1975. FUNCTION(phase_flag24),
  1976. FUNCTION(phase_flag25),
  1977. FUNCTION(phase_flag26),
  1978. FUNCTION(phase_flag27),
  1979. FUNCTION(phase_flag28),
  1980. FUNCTION(phase_flag29),
  1981. FUNCTION(phase_flag3),
  1982. FUNCTION(phase_flag30),
  1983. FUNCTION(phase_flag31),
  1984. FUNCTION(phase_flag4),
  1985. FUNCTION(phase_flag5),
  1986. FUNCTION(phase_flag6),
  1987. FUNCTION(phase_flag7),
  1988. FUNCTION(phase_flag8),
  1989. FUNCTION(phase_flag9),
  1990. FUNCTION(pll_bist_sync),
  1991. FUNCTION(pll_clk_aux),
  1992. FUNCTION(prng_rosc0),
  1993. FUNCTION(prng_rosc1),
  1994. FUNCTION(prng_rosc2),
  1995. FUNCTION(prng_rosc3),
  1996. FUNCTION(pwm_0),
  1997. FUNCTION(pwm_1),
  1998. FUNCTION(pwm_10),
  1999. FUNCTION(pwm_11),
  2000. FUNCTION(pwm_12),
  2001. FUNCTION(pwm_13),
  2002. FUNCTION(pwm_14),
  2003. FUNCTION(pwm_15),
  2004. FUNCTION(pwm_16),
  2005. FUNCTION(pwm_17),
  2006. FUNCTION(pwm_18),
  2007. FUNCTION(pwm_19),
  2008. FUNCTION(pwm_2),
  2009. FUNCTION(pwm_3),
  2010. FUNCTION(pwm_4),
  2011. FUNCTION(pwm_5),
  2012. FUNCTION(pwm_6),
  2013. FUNCTION(pwm_7),
  2014. FUNCTION(pwm_8),
  2015. FUNCTION(pwm_9),
  2016. FUNCTION(qdss_cti),
  2017. FUNCTION(qdss_gpio),
  2018. FUNCTION(qdss_gpio0),
  2019. FUNCTION(qdss_gpio1),
  2020. FUNCTION(qdss_gpio10),
  2021. FUNCTION(qdss_gpio11),
  2022. FUNCTION(qdss_gpio12),
  2023. FUNCTION(qdss_gpio13),
  2024. FUNCTION(qdss_gpio14),
  2025. FUNCTION(qdss_gpio15),
  2026. FUNCTION(qdss_gpio2),
  2027. FUNCTION(qdss_gpio3),
  2028. FUNCTION(qdss_gpio4),
  2029. FUNCTION(qdss_gpio5),
  2030. FUNCTION(qdss_gpio6),
  2031. FUNCTION(qdss_gpio7),
  2032. FUNCTION(qdss_gpio8),
  2033. FUNCTION(qdss_gpio9),
  2034. FUNCTION(qup1_se0_l0),
  2035. FUNCTION(qup1_se0_l1),
  2036. FUNCTION(qup1_se0_l2),
  2037. FUNCTION(qup1_se0_l3),
  2038. FUNCTION(qup1_se1_l0),
  2039. FUNCTION(qup1_se1_l1),
  2040. FUNCTION(qup1_se1_l2),
  2041. FUNCTION(qup1_se1_l3),
  2042. FUNCTION(qup1_se1_l4),
  2043. FUNCTION(qup1_se1_l5),
  2044. FUNCTION(qup1_se1_l6),
  2045. FUNCTION(qup1_se2_l0),
  2046. FUNCTION(qup1_se2_l1),
  2047. FUNCTION(qup1_se2_l2),
  2048. FUNCTION(qup1_se2_l3),
  2049. FUNCTION(qup1_se3_l0),
  2050. FUNCTION(qup1_se3_l1),
  2051. FUNCTION(qup1_se3_l2),
  2052. FUNCTION(qup1_se3_l3),
  2053. FUNCTION(qup1_se3_l4),
  2054. FUNCTION(qup2_se0_l0),
  2055. FUNCTION(qup2_se0_l1),
  2056. FUNCTION(qup2_se0_l2),
  2057. FUNCTION(qup2_se0_l3),
  2058. FUNCTION(qup2_se1_l0),
  2059. FUNCTION(qup2_se1_l1),
  2060. FUNCTION(qup2_se1_l2),
  2061. FUNCTION(qup2_se1_l3),
  2062. FUNCTION(qup2_se2_l0),
  2063. FUNCTION(qup2_se2_l1),
  2064. FUNCTION(qup2_se2_l2),
  2065. FUNCTION(qup2_se2_l3_mira),
  2066. FUNCTION(qup2_se2_l3_mirb),
  2067. FUNCTION(qup2_se3_l0),
  2068. FUNCTION(qup2_se3_l1),
  2069. FUNCTION(qup2_se3_l2),
  2070. FUNCTION(qup2_se3_l3),
  2071. FUNCTION(qup2_se4_l0),
  2072. FUNCTION(qup2_se4_l1),
  2073. FUNCTION(qup2_se4_l2),
  2074. FUNCTION(qup2_se4_l3),
  2075. FUNCTION(qup2_se4_l4),
  2076. FUNCTION(qup2_se4_l5),
  2077. FUNCTION(qup2_se4_l6),
  2078. FUNCTION(qup2_se5_l0),
  2079. FUNCTION(qup2_se5_l1),
  2080. FUNCTION(qup2_se5_l2),
  2081. FUNCTION(qup2_se5_l3_mira),
  2082. FUNCTION(qup2_se5_l3_mirb),
  2083. FUNCTION(qup2_se6_l0),
  2084. FUNCTION(qup2_se6_l1),
  2085. FUNCTION(qup2_se6_l2),
  2086. FUNCTION(qup2_se6_l3),
  2087. FUNCTION(qup2_se7_l0),
  2088. FUNCTION(qup2_se7_l1),
  2089. FUNCTION(qup2_se7_l2),
  2090. FUNCTION(qup2_se7_l3),
  2091. FUNCTION(qup2_se7_l4),
  2092. FUNCTION(qup3_se0_l0),
  2093. FUNCTION(qup3_se0_l1),
  2094. FUNCTION(qup3_se0_l2),
  2095. FUNCTION(qup3_se0_l3),
  2096. FUNCTION(qup3_se0_l6),
  2097. FUNCTION(qup3_se1_l0),
  2098. FUNCTION(qup3_se1_l1),
  2099. FUNCTION(qup3_se1_l2),
  2100. FUNCTION(qup3_se1_l3),
  2101. FUNCTION(qup3_se2_l0),
  2102. FUNCTION(qup3_se2_l1),
  2103. FUNCTION(qup3_se2_l2),
  2104. FUNCTION(qup3_se2_l3),
  2105. FUNCTION(qup3_se3_l0),
  2106. FUNCTION(qup3_se3_l1),
  2107. FUNCTION(qup3_se3_l2),
  2108. FUNCTION(qup3_se3_l3),
  2109. FUNCTION(sd_write_protect),
  2110. FUNCTION(sdc2_data),
  2111. FUNCTION(sdc2_clk),
  2112. FUNCTION(sdc2_cmd),
  2113. FUNCTION(sdc2_fb_clk),
  2114. FUNCTION(sdcc5_vdd2_on),
  2115. FUNCTION(tb_trig_sdc2),
  2116. FUNCTION(tgu_ch0_trigout),
  2117. FUNCTION(tgu_ch1_trigout),
  2118. FUNCTION(tgu_ch2_trigout),
  2119. FUNCTION(tgu_ch3_trigout),
  2120. FUNCTION(tmess_prng0),
  2121. FUNCTION(tmess_prng1),
  2122. FUNCTION(tmess_prng2),
  2123. FUNCTION(tmess_prng3),
  2124. FUNCTION(tsense_pwm1),
  2125. FUNCTION(tsense_pwm2),
  2126. FUNCTION(tsense_pwm3),
  2127. FUNCTION(usb0_hs),
  2128. FUNCTION(usb1_hs),
  2129. FUNCTION(vsense_trigger_mirnat),
  2130. };
  2131. /* Every pin is maintained as a single group, and missing or non-existing pin
  2132. * would be maintained as dummy group to synchronize pin group index with
  2133. * pin descriptor registered with pinctrl core.
  2134. * Clients would not be able to request these dummy pin groups.
  2135. */
  2136. static const struct msm_pingroup niobe_groups[] = {
  2137. [0] = PINGROUP(0, qup2_se0_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA, NA,
  2138. NA, 0, -1),
  2139. [1] = PINGROUP(1, qup2_se0_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA, NA,
  2140. NA, 0, -1),
  2141. [2] = PINGROUP(2, qup2_se0_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2142. 0, -1),
  2143. [3] = PINGROUP(3, qup2_se0_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2144. 0, -1),
  2145. [4] = PINGROUP(4, qup2_se1_l0, ibi_i3c, pwm_13, NA, NA, NA, NA, NA, NA,
  2146. NA, NA, 0, -1),
  2147. [5] = PINGROUP(5, qup2_se1_l1, ibi_i3c, pwm_15, NA, NA, NA, NA, NA, NA,
  2148. NA, NA, 0, -1),
  2149. [6] = PINGROUP(6, qup2_se1_l2, qdss_cti, NA, NA, NA, NA, NA, NA, NA, NA,
  2150. NA, 0, -1),
  2151. [7] = PINGROUP(7, qup2_se1_l3, qdss_cti, tsense_pwm1, tsense_pwm2,
  2152. tsense_pwm3, NA, NA, NA, NA, NA, NA, 0, -1),
  2153. [8] = PINGROUP(8, qup2_se2_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2154. 0, -1),
  2155. [9] = PINGROUP(9, qup2_se2_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2156. 0, -1),
  2157. [10] = PINGROUP(10, qup2_se2_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2158. 0, -1),
  2159. [11] = PINGROUP(11, qup2_se2_l3_mira, pwm_3, mdp1_vsync1_out, NA, NA,
  2160. NA, NA, NA, NA, NA, NA, 0, -1),
  2161. [12] = PINGROUP(12, qup2_se3_l0, mdp0_vsync6_out, NA, phase_flag9, NA,
  2162. NA, NA, NA, NA, NA, NA, 0, -1),
  2163. [13] = PINGROUP(13, qup2_se3_l1, mdp0_vsync7_out, NA, phase_flag0, NA,
  2164. NA, NA, NA, NA, NA, NA, 0, -1),
  2165. [14] = PINGROUP(14, qup2_se3_l2, mdp0_vsync8_out, NA, phase_flag24, NA,
  2166. NA, NA, NA, NA, NA, NA, 0, -1),
  2167. [15] = PINGROUP(15, qup2_se3_l3, mdp0_vsync0_out, NA, phase_flag14, NA,
  2168. NA, NA, NA, NA, NA, NA, 0, -1),
  2169. [16] = PINGROUP(16, qup2_se4_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2170. 0, -1),
  2171. [17] = PINGROUP(17, qup2_se4_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2172. 0, -1),
  2173. [18] = PINGROUP(18, qup2_se4_l2, mdp0_vsync5_out, NA, NA, NA, NA, NA,
  2174. NA, NA, NA, NA, 0, -1),
  2175. [19] = PINGROUP(19, qup2_se4_l3, mdp0_vsync3_out, NA, phase_flag20, NA,
  2176. NA, NA, NA, NA, NA, NA, 0, -1),
  2177. [20] = PINGROUP(20, qup2_se4_l4, pwm_10, NA, NA, NA, NA, NA, NA, NA, NA,
  2178. NA, 0, -1),
  2179. [21] = PINGROUP(21, qup2_se4_l5, mdp0_vsync4_out, NA, phase_flag19, NA,
  2180. NA, NA, NA, NA, NA, NA, 0, -1),
  2181. [22] = PINGROUP(22, gcc_gp_clk8, qup2_se4_l6, NA, NA, NA, NA, NA, NA,
  2182. NA, NA, NA, 0, -1),
  2183. [23] = PINGROUP(23, qup2_se5_l0, mdp1_vsync3_out, NA, NA, NA, NA, NA,
  2184. NA, NA, NA, NA, 0, -1),
  2185. [24] = PINGROUP(24, qup2_se5_l1, mdp1_vsync4_out, NA, NA, NA, NA, NA,
  2186. NA, NA, NA, NA, 0, -1),
  2187. [25] = PINGROUP(25, qup2_se5_l2, mdp1_vsync5_out, NA, NA, NA, NA, NA,
  2188. NA, NA, NA, NA, 0, -1),
  2189. [26] = PINGROUP(26, qup2_se5_l3_mira, pwm_4, mdp1_vsync6_out, NA, NA,
  2190. NA, NA, NA, NA, NA, NA, 0, -1),
  2191. [27] = PINGROUP(27, qup2_se6_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2192. 0, -1),
  2193. [28] = PINGROUP(28, qup2_se6_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2194. 0, -1),
  2195. [29] = PINGROUP(29, qup2_se6_l2, usb1_hs, qdss_cti, NA, NA, NA, NA, NA,
  2196. NA, NA, NA, 0, -1),
  2197. [30] = PINGROUP(30, qup2_se6_l3, usb0_hs, qdss_cti, NA, NA, NA, NA, NA,
  2198. NA, NA, NA, 0, -1),
  2199. [31] = PINGROUP(31, qup2_se7_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2200. 0, -1),
  2201. [32] = PINGROUP(32, qup2_se7_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2202. 0, -1),
  2203. [33] = PINGROUP(33, qup2_se7_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2204. 0, -1),
  2205. [34] = PINGROUP(34, qup2_se7_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2206. 0, -1),
  2207. [35] = PINGROUP(35, qup2_se7_l4, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2208. 0, -1),
  2209. [36] = PINGROUP(36, qup3_se1_l0, pwm_11, NA, NA, NA, NA, NA, NA, NA, NA,
  2210. NA, 0, -1),
  2211. [37] = PINGROUP(37, qup3_se1_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2212. 0, -1),
  2213. [38] = PINGROUP(38, mdp1_vsync0_mira, qup3_se1_l2, cci0_i2c, edp0_lcd,
  2214. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2215. [39] = PINGROUP(39, mdp1_vsync1_mira, qup3_se1_l3, cci0_i2c, edp1_dpu1,
  2216. edp1_dpu0, NA, NA, NA, NA, NA, NA, 0, -1),
  2217. [40] = PINGROUP(40, qup3_se0_l0, ibi_i3c, cci4_i2c, NA, NA, NA, NA, NA,
  2218. NA, NA, NA, 0, -1),
  2219. [41] = PINGROUP(41, qup3_se0_l1, ibi_i3c, cci4_i2c, NA, NA, NA, NA, NA,
  2220. NA, NA, NA, 0, -1),
  2221. [42] = PINGROUP(42, qup3_se0_l2, cci5_i2c, NA, NA, NA, NA, NA, NA, NA,
  2222. NA, NA, 0, -1),
  2223. [43] = PINGROUP(43, qup3_se0_l3, qup3_se0_l6, cci5_i2c, NA, NA, NA, NA,
  2224. NA, NA, NA, NA, 0, -1),
  2225. [44] = PINGROUP(44, qup3_se2_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2226. 0, -1),
  2227. [45] = PINGROUP(45, qup3_se2_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2228. 0, -1),
  2229. [46] = PINGROUP(46, qup3_se2_l2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2230. 0, -1),
  2231. [47] = PINGROUP(47, qup3_se2_l3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2232. 0, -1),
  2233. [48] = PINGROUP(48, qup3_se3_l0, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2234. 0, -1),
  2235. [49] = PINGROUP(49, qup3_se3_l1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2236. 0, -1),
  2237. [50] = PINGROUP(50, qup3_se3_l2, cci3_i2c_sda7, dp0_hot, NA, NA, NA, NA,
  2238. NA, NA, NA, NA, 0, -1),
  2239. [51] = PINGROUP(51, qup3_se3_l3, cci3_i2c_scl7, pwm_12, NA,
  2240. phase_flag23, NA, NA, NA, NA, NA, NA, 0, -1),
  2241. [52] = PINGROUP(52, qup1_se0_l0, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2242. NA, NA, 0, -1),
  2243. [53] = PINGROUP(53, qup1_se0_l1, ibi_i3c, NA, NA, NA, NA, NA, NA, NA,
  2244. NA, NA, 0, -1),
  2245. [54] = PINGROUP(54, qup1_se0_l2, NA, phase_flag31, NA, NA, NA, NA, NA,
  2246. NA, NA, NA, 0, -1),
  2247. [55] = PINGROUP(55, qup1_se0_l3, NA, phase_flag1, NA, NA, NA, NA, NA,
  2248. NA, NA, NA, 0, -1),
  2249. [56] = PINGROUP(56, qup1_se1_l0, jitter_bist, cmu_rng3, NA,
  2250. vsense_trigger_mirnat, atest_usb10, NA, NA, NA, NA, NA,
  2251. 0, -1),
  2252. [57] = PINGROUP(57, qup1_se1_l1, pll_clk_aux, cmu_rng2, NA, atest_usb11,
  2253. NA, NA, NA, NA, NA, NA, 0, -1),
  2254. [58] = PINGROUP(58, qup1_se1_l2, cmu_rng1, NA, atest_usb01, ddr_pxi3,
  2255. NA, NA, NA, NA, NA, NA, 0, -1),
  2256. [59] = PINGROUP(59, qup1_se1_l3, cmu_rng0, dbg_out_clk, atest_usb13,
  2257. ddr_pxi3, NA, NA, NA, NA, NA, NA, 0, -1),
  2258. [60] = PINGROUP(60, qup1_se1_l4, gcc_gp, atest_usb02, ddr_pxi1, NA, NA,
  2259. NA, NA, NA, NA, NA, 0, -1),
  2260. [61] = PINGROUP(61, qup1_se1_l5, gcc_gp, atest_usb03, ddr_pxi0, NA, NA,
  2261. NA, NA, NA, NA, NA, 0, -1),
  2262. [62] = PINGROUP(62, qup1_se1_l6, gcc_gp, atest_usb12, ddr_pxi0, NA, NA,
  2263. NA, NA, NA, NA, NA, 0, -1),
  2264. [63] = PINGROUP(63, qup1_se2_l0, NA, phase_flag3, NA, NA, NA, NA, NA,
  2265. NA, NA, NA, 0, -1),
  2266. [64] = PINGROUP(64, qup1_se2_l1, NA, phase_flag10, NA, NA, NA, NA, NA,
  2267. NA, NA, NA, 0, -1),
  2268. [65] = PINGROUP(65, qup1_se2_l2, gcc_gp_clk9, NA, atest_usb00, ddr_pxi1,
  2269. NA, NA, NA, NA, NA, NA, 0, -1),
  2270. [66] = PINGROUP(66, qup1_se2_l3, NA, phase_flag25, qdss_cti, NA, NA, NA,
  2271. NA, NA, NA, NA, 0, -1),
  2272. [67] = PINGROUP(67, qup1_se3_l0, NA, phase_flag8, NA, NA, NA, NA, NA,
  2273. NA, NA, NA, 0, -1),
  2274. [68] = PINGROUP(68, qup1_se3_l1, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  2275. NA, NA, 0, -1),
  2276. [69] = PINGROUP(69, qup1_se3_l2, cci1_i2c, NA, phase_flag2, NA, NA, NA,
  2277. NA, NA, NA, NA, 0, -1),
  2278. [70] = PINGROUP(70, qup1_se3_l3, cci1_i2c, NA, phase_flag6, NA, NA, NA,
  2279. NA, NA, NA, NA, 0, -1),
  2280. [71] = PINGROUP(71, qup1_se3_l4, NA, phase_flag26, NA, NA, NA, NA, NA,
  2281. NA, NA, NA, 0, -1),
  2282. [72] = PINGROUP(72, gcc_gp_clk4, aoss_cti, qup2_se2_l3_mirb,
  2283. mdp1_vsync2_out, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2284. [73] = PINGROUP(73, aoss_cti, cci45_async, pwm_2, mdp1_vsync0_out, NA,
  2285. NA, NA, NA, NA, NA, NA, 0, -1),
  2286. [74] = PINGROUP(74, gcc_gp_clk5, aoss_cti, qup2_se5_l3_mirb,
  2287. mdp1_vsync8_out, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2288. [75] = PINGROUP(75, aoss_cti, cci45_async, pwm_5, mdp1_vsync7_out, NA,
  2289. NA, NA, NA, NA, NA, NA, 0, -1),
  2290. [76] = PINGROUP(76, gcc_gp_clk7, cci45_timer4_mirb, pwm_8,
  2291. mdp0_vsync1_out, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2292. [77] = PINGROUP(77, cci45_async, cci45_timer3_mirb, pwm_9,
  2293. mdp0_vsync2_out, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2294. [78] = PINGROUP(78, audio_ref_clk, ext_mclk1, NA, NA, NA, NA, NA, NA,
  2295. NA, NA, NA, 0, -1),
  2296. [79] = PINGROUP(79, i2s2_data0, tgu_ch0_trigout, NA, NA, NA, NA, NA, NA,
  2297. NA, NA, NA, 0, -1),
  2298. [80] = PINGROUP(80, USB0_PHY, pwm_18, NA, NA, NA, NA, NA, NA, NA, NA,
  2299. NA, 0, -1),
  2300. [81] = PINGROUP(81, sdcc5_vdd2_on, i2s2_data1, tgu_ch2_trigout, NA, NA,
  2301. NA, NA, NA, NA, NA, NA, 0, -1),
  2302. [82] = PINGROUP(82, cci0_i2c_sda0, qdss_gpio0, NA, NA, NA, NA, NA, NA,
  2303. NA, NA, NA, 0, -1),
  2304. [83] = PINGROUP(83, cci0_i2c_scl0, qdss_gpio1, NA, NA, NA, NA, NA, NA,
  2305. NA, NA, NA, 0, -1),
  2306. [84] = PINGROUP(84, cci1_i2c_sda2, ddr_bist_fail, qdss_gpio2, NA, NA,
  2307. NA, NA, NA, NA, NA, NA, 0, -1),
  2308. [85] = PINGROUP(85, cci1_i2c_scl2, ddr_bist_start, qdss_gpio, NA, NA,
  2309. NA, NA, NA, NA, NA, NA, 0, -1),
  2310. [86] = PINGROUP(86, cci2_i2c_sda4, ddr_bist_stop, qdss_gpio3, NA, NA,
  2311. NA, NA, NA, NA, NA, NA, 0, -1),
  2312. [87] = PINGROUP(87, cci2_i2c_scl4, ddr_bist_complete, qdss_gpio4, NA,
  2313. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2314. [88] = PINGROUP(88, cci3_i2c_sda6, qdss_gpio5, NA, NA, NA, NA, NA, NA,
  2315. NA, NA, NA, 0, -1),
  2316. [89] = PINGROUP(89, cci3_i2c_scl6, qdss_gpio6, NA, NA, NA, NA, NA, NA,
  2317. NA, NA, NA, 0, -1),
  2318. [90] = PINGROUP(90, cci4_i2c_sda8, NA, phase_flag22, NA, NA, NA, NA, NA,
  2319. NA, NA, NA, 0, -1),
  2320. [91] = PINGROUP(91, cci4_i2c_scl8, NA, phase_flag21, NA, NA, NA, NA, NA,
  2321. NA, NA, NA, 0, -1),
  2322. [92] = PINGROUP(92, cci5_i2c_sda10, NA, phase_flag18, NA, NA, NA, NA,
  2323. NA, NA, NA, NA, 0, -1),
  2324. [93] = PINGROUP(93, cci5_i2c_scl10, NA, phase_flag17, NA, NA, NA, NA,
  2325. NA, NA, NA, NA, 0, -1),
  2326. [94] = PINGROUP(94, cam_mclk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2327. -1),
  2328. [95] = PINGROUP(95, cam_mclk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2329. -1),
  2330. [96] = PINGROUP(96, cam_mclk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2331. -1),
  2332. [97] = PINGROUP(97, cam_mclk, tmess_prng3, NA, NA, NA, NA, NA, NA, NA,
  2333. NA, NA, 0, -1),
  2334. [98] = PINGROUP(98, cam_mclk, tmess_prng2, NA, NA, NA, NA, NA, NA, NA,
  2335. NA, NA, 0, -1),
  2336. [99] = PINGROUP(99, cam_mclk, tmess_prng1, NA, NA, NA, NA, NA, NA, NA,
  2337. NA, NA, 0, -1),
  2338. [100] = PINGROUP(100, cam_mclk, tmess_prng0, NA, NA, NA, NA, NA, NA, NA,
  2339. NA, NA, 0, -1),
  2340. [101] = PINGROUP(101, cam_mclk, prng_rosc3, NA, NA, NA, NA, NA, NA, NA,
  2341. NA, NA, 0, -1),
  2342. [102] = PINGROUP(102, cam_mclk, prng_rosc2, NA, NA, NA, NA, NA, NA, NA,
  2343. NA, NA, 0, -1),
  2344. [103] = PINGROUP(103, cam_mclk, prng_rosc0, NA, NA, NA, NA, NA, NA, NA,
  2345. NA, NA, 0, -1),
  2346. [104] = PINGROUP(104, cam_mclk, prng_rosc1, NA, NA, NA, NA, NA, NA, NA,
  2347. NA, NA, 0, -1),
  2348. [105] = PINGROUP(105, cam_mclk, cri_trng, NA, NA, NA, NA, NA, NA, NA,
  2349. NA, NA, 0, -1),
  2350. [106] = PINGROUP(106, cci01_timer0, NA, phase_flag16, NA, NA, NA, NA,
  2351. NA, NA, NA, NA, 0, -1),
  2352. [107] = PINGROUP(107, cci01_timer1, NA, phase_flag11, atest_char3, NA,
  2353. NA, NA, NA, NA, NA, NA, 0, -1),
  2354. [108] = PINGROUP(108, cci01_timer2, NA, phase_flag29, atest_char2, NA,
  2355. NA, NA, NA, NA, NA, NA, 0, -1),
  2356. [109] = PINGROUP(109, cci23_timer0, NA, qdss_gpio7, NA, NA, NA, NA, NA,
  2357. NA, NA, NA, 0, -1),
  2358. [110] = PINGROUP(110, cci23_timer1, NA, qdss_gpio8, NA, NA, NA, NA, NA,
  2359. NA, NA, NA, 0, -1),
  2360. [111] = PINGROUP(111, cci45_timer0, NA, NA, phase_flag7, NA, NA, NA, NA,
  2361. NA, NA, NA, 0, -1),
  2362. [112] = PINGROUP(112, cci45_timer1, NA, phase_flag28, atest_char1, NA,
  2363. NA, NA, NA, NA, NA, NA, 0, -1),
  2364. [113] = PINGROUP(113, cci45_timer2, qdss_gpio9, atest_char0, NA, NA, NA,
  2365. NA, NA, NA, NA, NA, 0, -1),
  2366. [114] = PINGROUP(114, cci01_async_in0, cam_mclk, cam_mclk, NA, NA, NA,
  2367. NA, NA, NA, NA, NA, 0, -1),
  2368. [115] = PINGROUP(115, cci23_async_in0, qdss_gpio10, NA, NA, NA, NA, NA,
  2369. NA, NA, NA, NA, 0, -1),
  2370. [116] = PINGROUP(116, cci23_async_in1, qdss_gpio11, NA, NA, NA, NA, NA,
  2371. NA, NA, NA, NA, 0, -1),
  2372. [117] = PINGROUP(117, cci45_async, cci4_i2c, NA, phase_flag5, NA, NA,
  2373. NA, NA, NA, NA, NA, 0, -1),
  2374. [118] = PINGROUP(118, cci45_async, cci4_i2c, qdss_gpio13, NA, NA, NA,
  2375. NA, NA, NA, NA, NA, 0, -1),
  2376. [119] = PINGROUP(119, cci01_timer3, cci01_async_in1, qdss_gpio12, NA,
  2377. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2378. [120] = PINGROUP(120, cci01_timer4, cci01_async_in2, cam_mclk, gcc_gp,
  2379. cam_mclk, NA, NA, NA, NA, NA, NA, 0, -1),
  2380. [121] = PINGROUP(121, cci23_timer2, cci23_async_in2, NA, phase_flag27,
  2381. atest_char_start, NA, NA, NA, NA, NA, NA, 0, -1),
  2382. [122] = PINGROUP(122, cci23_timer3, cci2_i2c_scl5, gcc_gp, qdss_gpio14,
  2383. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2384. [123] = PINGROUP(123, cci23_timer4, cci2_i2c_sda5, gcc_gp, qdss_gpio15,
  2385. NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2386. [124] = PINGROUP(124, cci45_timer3_mira, cci5_i2c, cci45_async,
  2387. qdss_gpio, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2388. [125] = PINGROUP(125, cci45_timer4_mira, cci5_i2c, NA, NA, NA, NA, NA,
  2389. NA, NA, NA, NA, 0, -1),
  2390. [126] = PINGROUP(126, pcie0_clk_req_n, NA, NA, NA, NA, NA, NA, NA, NA,
  2391. NA, NA, 0, -1),
  2392. [127] = PINGROUP(127, gcc_gp_clk11, pwm_19, qdss_gpio13, NA, NA, NA, NA,
  2393. NA, NA, NA, NA, 0, -1),
  2394. [128] = PINGROUP(128, gcc_gp_clk10, pwm_16, qdss_gpio12, NA, NA, NA, NA,
  2395. NA, NA, NA, NA, 0, -1),
  2396. [129] = PINGROUP(129, RESOUT_GPIO_N, SYS_THROTTLE_MIRA, NA, NA, NA, NA,
  2397. NA, NA, NA, NA, NA, 0, -1),
  2398. [130] = PINGROUP(130, ext_mclk0, sd_write_protect, NA, NA, NA, NA, NA,
  2399. NA, NA, NA, NA, 0, -1),
  2400. [131] = PINGROUP(131, i2s0_data1, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  2401. NA, NA, 0, -1),
  2402. [132] = PINGROUP(132, i2s0_data0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2403. NA, 0, -1),
  2404. [133] = PINGROUP(133, i2s0_sck, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
  2405. NA, NA, 0, -1),
  2406. [134] = PINGROUP(134, i2s0_ws, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2407. 0, -1),
  2408. [135] = PINGROUP(135, pwm_0, SYS_THROTTLE_MIRB, cci0_i2c, NA, NA, NA,
  2409. NA, NA, NA, NA, NA, 0, -1),
  2410. [136] = PINGROUP(136, pwm_1, gcc_gp_clk6, cci0_i2c, NA, NA, NA, NA, NA,
  2411. NA, NA, NA, 0, -1),
  2412. [137] = PINGROUP(137, mdp0_vsync0_mira, cci1_i2c, edp0_hot, NA, NA, NA,
  2413. NA, NA, NA, NA, NA, 0, -1),
  2414. [138] = PINGROUP(138, mdp0_vsync1_mira, cci1_i2c, edp1_hot, NA, NA, NA,
  2415. NA, NA, NA, NA, NA, 0, -1),
  2416. [139] = PINGROUP(139, pcie1_clk_req_n, NA, phase_flag12, NA, NA, NA, NA,
  2417. NA, NA, NA, NA, 0, -1),
  2418. [140] = PINGROUP(140, NA, phase_flag30, NA, NA, NA, NA, NA, NA, NA, NA,
  2419. NA, 0, -1),
  2420. [141] = PINGROUP(141, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2421. 0, -1),
  2422. [142] = PINGROUP(142, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2423. 0, -1),
  2424. [143] = PINGROUP(143, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2425. 0, -1),
  2426. [144] = PINGROUP(144, sdc2_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2427. 0, -1),
  2428. [145] = PINGROUP(145, sdc2_cmd, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2429. 0, -1),
  2430. [146] = PINGROUP(146, sdc2_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2431. 0, -1),
  2432. [147] = PINGROUP(147, sdc2_fb_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2433. NA, 0, -1),
  2434. [148] = PINGROUP(148, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2435. -1),
  2436. [149] = PINGROUP(149, pcie2_clk_req_n, NA, phase_flag13, NA, NA, NA, NA,
  2437. NA, NA, NA, NA, 0, -1),
  2438. [150] = PINGROUP(150, tb_trig_sdc2, i2s2_ws, tgu_ch3_trigout, NA, NA,
  2439. NA, NA, NA, NA, NA, NA, 0, -1),
  2440. [151] = PINGROUP(151, USB1_PHY, pwm_17, NA, NA, NA, NA, NA, NA, NA, NA,
  2441. NA, 0, -1),
  2442. [152] = PINGROUP(152, i2s2_sck, tgu_ch1_trigout, NA, NA, NA, NA, NA, NA,
  2443. NA, NA, NA, 0, -1),
  2444. [153] = PINGROUP(153, USB0_PHY, pwm_6, NA, NA, NA, NA, NA, NA, NA, NA,
  2445. NA, 0, -1),
  2446. [154] = PINGROUP(154, USB1_PHY, pwm_7, NA, NA, NA, NA, NA, NA, NA, NA,
  2447. NA, 0, -1),
  2448. [155] = PINGROUP(155, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 0,
  2449. -1),
  2450. [156] = PINGROUP(156, mdp0_vsync0_mirb, edp0_hot, NA, atest_usb0,
  2451. ddr_pxi2, NA, NA, NA, NA, NA, NA, 0, -1),
  2452. [157] = PINGROUP(157, mdp0_vsync1_mirb, edp1_hot, NA, atest_usb1,
  2453. ddr_pxi2, NA, NA, NA, NA, NA, NA, 0, -1),
  2454. [158] = PINGROUP(158, mdp1_vsync0_mirb, edp0_lcd, NA, phase_flag15, NA,
  2455. NA, NA, NA, NA, NA, NA, 0, -1),
  2456. [159] = PINGROUP(159, mdp1_vsync1_mirb, edp1_dpu1, edp1_dpu0,
  2457. pll_bist_sync, NA, NA, NA, NA, NA, NA, NA, 0, -1),
  2458. [160] = PINGROUP(160, dp0_hot, pwm_14, NA, phase_flag4, NA, NA, NA, NA,
  2459. NA, NA, NA, 0, -1),
  2460. [161] = PINGROUP(161, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2461. -1),
  2462. [162] = PINGROUP(162, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2463. -1),
  2464. [163] = PINGROUP(163, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2465. -1),
  2466. [164] = PINGROUP(164, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2467. -1),
  2468. [165] = PINGROUP(165, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2469. -1),
  2470. [166] = PINGROUP(166, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2471. -1),
  2472. [167] = PINGROUP(167, qdss_gpio2, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2473. egpio, 0, -1),
  2474. [168] = PINGROUP(168, qdss_gpio3, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2475. egpio, 0, -1),
  2476. [169] = PINGROUP(169, qdss_gpio4, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2477. egpio, 0, -1),
  2478. [170] = PINGROUP(170, qdss_gpio5, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2479. egpio, 0, -1),
  2480. [171] = PINGROUP(171, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2481. -1),
  2482. [172] = PINGROUP(172, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2483. -1),
  2484. [173] = PINGROUP(173, qdss_gpio6, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2485. egpio, 0, -1),
  2486. [174] = PINGROUP(174, qdss_gpio7, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2487. egpio, 0, -1),
  2488. [175] = PINGROUP(175, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2489. -1),
  2490. [176] = PINGROUP(176, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2491. -1),
  2492. [177] = PINGROUP(177, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2493. -1),
  2494. [178] = PINGROUP(178, qdss_gpio10, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2495. egpio, 0, -1),
  2496. [179] = PINGROUP(179, qdss_gpio15, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2497. egpio, 0, -1),
  2498. [180] = PINGROUP(180, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2499. -1),
  2500. [181] = PINGROUP(181, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2501. -1),
  2502. [182] = PINGROUP(182, qdss_gpio, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2503. egpio, 0, -1),
  2504. [183] = PINGROUP(183, qdss_gpio, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2505. egpio, 0, -1),
  2506. [184] = PINGROUP(184, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2507. -1),
  2508. [185] = PINGROUP(185, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2509. -1),
  2510. [186] = PINGROUP(186, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2511. -1),
  2512. [187] = PINGROUP(187, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2513. -1),
  2514. [188] = PINGROUP(188, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2515. -1),
  2516. [189] = PINGROUP(189, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2517. -1),
  2518. [190] = PINGROUP(190, qdss_gpio1, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2519. egpio, 0, -1),
  2520. [191] = PINGROUP(191, qdss_gpio11, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2521. egpio, 0, -1),
  2522. [192] = PINGROUP(192, qdss_gpio14, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2523. egpio, 0, -1),
  2524. [193] = PINGROUP(193, qdss_gpio0, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2525. egpio, 0, -1),
  2526. [194] = PINGROUP(194, qdss_gpio8, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2527. egpio, 0, -1),
  2528. [195] = PINGROUP(195, qdss_gpio9, NA, NA, NA, NA, NA, NA, NA, NA, NA,
  2529. egpio, 0, -1),
  2530. [196] = PINGROUP(196, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2531. -1),
  2532. [197] = PINGROUP(197, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2533. -1),
  2534. [198] = PINGROUP(198, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2535. -1),
  2536. [199] = PINGROUP(199, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, egpio, 0,
  2537. -1),
  2538. [200] = UFS_RESET(ufs_reset, 0x1D2004, 0x1D3000),
  2539. };
  2540. static struct pinctrl_qup niobe_qup_regs[] = {
  2541. QUP_I3C(1, QUP_2_I3C_0_MODE_OFFSET),
  2542. QUP_I3C(2, QUP_2_I3C_1_MODE_OFFSET),
  2543. QUP_I3C(3, QUP_3_I3C_0_MODE_OFFSET),
  2544. QUP_I3C(4, QUP_1_I3C_0_MODE_OFFSET),
  2545. };
  2546. static const struct msm_gpio_wakeirq_map niobe_pdc_map[] = {
  2547. { 0, 76 }, { 1, 77 }, { 3, 88 }, { 4, 64 }, { 5, 63 }, { 6, 65 },
  2548. { 7, 89 }, { 8, 75 }, { 11, 128 }, { 12, 85 }, { 15, 129 }, { 19, 66 },
  2549. { 21, 123 }, { 22, 124 }, { 26, 94 }, { 29, 61 }, { 30, 72 }, { 32, 54 },
  2550. { 34, 53 }, { 36, 90 }, { 38, 143 }, { 39, 144 }, { 40, 84 }, { 41, 83 },
  2551. { 43, 99 }, { 47, 140 }, { 50, 71 }, { 51, 82 }, { 52, 104 }, { 53, 103 },
  2552. { 55, 137 }, { 59, 70 }, { 62, 115 }, { 63, 117 }, { 64, 116 }, { 66, 125 },
  2553. { 67, 119 }, { 69, 95 }, { 70, 105 }, { 71, 102 }, { 72, 93 }, { 74, 78 },
  2554. { 78, 101 }, { 79, 91 }, { 80, 92 }, { 81, 118 }, { 115, 106 }, { 116, 100 },
  2555. { 117, 87 }, { 125, 108 }, { 126, 109 }, { 129, 126 }, { 130, 127 }, { 131, 130 },
  2556. { 132, 131 }, { 133, 132 }, { 135, 74 }, { 136, 73 }, { 137, 133 }, { 138, 138 },
  2557. { 139, 60 }, { 140, 56 }, { 141, 59 }, { 142, 79 }, { 143, 112 }, { 144, 113 },
  2558. { 145, 114 }, { 147, 86 }, { 148, 55 }, { 149, 122 }, { 150, 58 }, { 151, 80 },
  2559. { 152, 69 }, { 153, 139 }, { 154, 141 }, { 156, 96 }, { 157, 97 }, { 158, 98 },
  2560. { 159, 107 }, { 160, 110 }, { 162, 142 }, { 165, 145 }, { 170, 146 }, { 172, 111 },
  2561. { 175, 81 }, { 177, 57 }, { 181, 67 }, { 183, 51 }, { 184, 52 }, { 186, 62 },
  2562. { 188, 134 }, { 191, 68 }, { 194, 135 }, { 195, 136 }, { 197, 121 }, { 199, 120 },
  2563. };
  2564. static const struct msm_pinctrl_soc_data niobe_pinctrl = {
  2565. .pins = niobe_pins,
  2566. .npins = ARRAY_SIZE(niobe_pins),
  2567. .functions = niobe_functions,
  2568. .nfunctions = ARRAY_SIZE(niobe_functions),
  2569. .groups = niobe_groups,
  2570. .ngroups = ARRAY_SIZE(niobe_groups),
  2571. .ngpios = 201,
  2572. .qup_regs = niobe_qup_regs,
  2573. .nqup_regs = ARRAY_SIZE(niobe_qup_regs),
  2574. .wakeirq_map = niobe_pdc_map,
  2575. .nwakeirq_map = ARRAY_SIZE(niobe_pdc_map),
  2576. .egpio_func = 11,
  2577. };
  2578. static const struct msm_pinctrl_soc_data niobe_vm_pinctrl = {
  2579. .pins = niobe_pins,
  2580. .npins = ARRAY_SIZE(niobe_pins),
  2581. .functions = niobe_functions,
  2582. .nfunctions = ARRAY_SIZE(niobe_functions),
  2583. .groups = niobe_groups,
  2584. .ngroups = ARRAY_SIZE(niobe_groups),
  2585. .ngpios = 201,
  2586. .egpio_func = 11,
  2587. };
  2588. static const struct of_device_id niobe_pinctrl_of_match[] = {
  2589. { .compatible = "qcom,niobe-pinctrl", .data = &niobe_pinctrl},
  2590. { .compatible = "qcom,niobe-vm-pinctrl", .data = &niobe_vm_pinctrl},
  2591. {},
  2592. };
  2593. static int niobe_pinctrl_probe(struct platform_device *pdev)
  2594. {
  2595. const struct msm_pinctrl_soc_data *pinctrl_data;
  2596. struct device *dev = &pdev->dev;
  2597. pinctrl_data = of_device_get_match_data(dev);
  2598. if (!pinctrl_data)
  2599. return -EINVAL;
  2600. return msm_pinctrl_probe(pdev, pinctrl_data);
  2601. }
  2602. static struct platform_driver niobe_pinctrl_driver = {
  2603. .driver = {
  2604. .name = "niobe-pinctrl",
  2605. .of_match_table = niobe_pinctrl_of_match,
  2606. },
  2607. .probe = niobe_pinctrl_probe,
  2608. .remove = msm_pinctrl_remove,
  2609. };
  2610. static int __init niobe_pinctrl_init(void)
  2611. {
  2612. return platform_driver_register(&niobe_pinctrl_driver);
  2613. }
  2614. arch_initcall(niobe_pinctrl_init);
  2615. static void __exit niobe_pinctrl_exit(void)
  2616. {
  2617. platform_driver_unregister(&niobe_pinctrl_driver);
  2618. }
  2619. module_exit(niobe_pinctrl_exit);
  2620. MODULE_DESCRIPTION("QTI niobe pinctrl driver");
  2621. MODULE_LICENSE("GPL");
  2622. MODULE_DEVICE_TABLE(of, niobe_pinctrl_of_match);
  2623. MODULE_SOFTDEP("pre: qcom_tlmm_vm_irqchip");