pinctrl-qcs404.c 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2018, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/platform_device.h>
  8. #include <linux/pinctrl/pinctrl.h>
  9. #include "pinctrl-msm.h"
  10. static const char * const qcs404_tiles[] = {
  11. "north",
  12. "south",
  13. "east"
  14. };
  15. enum {
  16. NORTH,
  17. SOUTH,
  18. EAST
  19. };
  20. #define FUNCTION(fname) \
  21. [msm_mux_##fname] = { \
  22. .name = #fname, \
  23. .groups = fname##_groups, \
  24. .ngroups = ARRAY_SIZE(fname##_groups), \
  25. }
  26. #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  27. { \
  28. .name = "gpio" #id, \
  29. .pins = gpio##id##_pins, \
  30. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  31. .funcs = (int[]){ \
  32. msm_mux_gpio, /* gpio mode */ \
  33. msm_mux_##f1, \
  34. msm_mux_##f2, \
  35. msm_mux_##f3, \
  36. msm_mux_##f4, \
  37. msm_mux_##f5, \
  38. msm_mux_##f6, \
  39. msm_mux_##f7, \
  40. msm_mux_##f8, \
  41. msm_mux_##f9 \
  42. }, \
  43. .nfuncs = 10, \
  44. .ctl_reg = 0x1000 * id, \
  45. .io_reg = 0x1000 * id + 0x4, \
  46. .intr_cfg_reg = 0x1000 * id + 0x8, \
  47. .intr_status_reg = 0x1000 * id + 0xc, \
  48. .intr_target_reg = 0x1000 * id + 0x8, \
  49. .tile = _tile, \
  50. .mux_bit = 2, \
  51. .pull_bit = 0, \
  52. .drv_bit = 6, \
  53. .oe_bit = 9, \
  54. .in_bit = 0, \
  55. .out_bit = 1, \
  56. .intr_enable_bit = 0, \
  57. .intr_status_bit = 0, \
  58. .intr_target_bit = 5, \
  59. .intr_target_kpss_val = 4, \
  60. .intr_raw_status_bit = 4, \
  61. .intr_polarity_bit = 1, \
  62. .intr_detection_bit = 2, \
  63. .intr_detection_width = 2, \
  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. .tile = SOUTH, \
  76. .mux_bit = -1, \
  77. .pull_bit = pull, \
  78. .drv_bit = drv, \
  79. .oe_bit = -1, \
  80. .in_bit = -1, \
  81. .out_bit = -1, \
  82. .intr_enable_bit = -1, \
  83. .intr_status_bit = -1, \
  84. .intr_target_bit = -1, \
  85. .intr_raw_status_bit = -1, \
  86. .intr_polarity_bit = -1, \
  87. .intr_detection_bit = -1, \
  88. .intr_detection_width = -1, \
  89. }
  90. static const struct pinctrl_pin_desc qcs404_pins[] = {
  91. PINCTRL_PIN(0, "GPIO_0"),
  92. PINCTRL_PIN(1, "GPIO_1"),
  93. PINCTRL_PIN(2, "GPIO_2"),
  94. PINCTRL_PIN(3, "GPIO_3"),
  95. PINCTRL_PIN(4, "GPIO_4"),
  96. PINCTRL_PIN(5, "GPIO_5"),
  97. PINCTRL_PIN(6, "GPIO_6"),
  98. PINCTRL_PIN(7, "GPIO_7"),
  99. PINCTRL_PIN(8, "GPIO_8"),
  100. PINCTRL_PIN(9, "GPIO_9"),
  101. PINCTRL_PIN(10, "GPIO_10"),
  102. PINCTRL_PIN(11, "GPIO_11"),
  103. PINCTRL_PIN(12, "GPIO_12"),
  104. PINCTRL_PIN(13, "GPIO_13"),
  105. PINCTRL_PIN(14, "GPIO_14"),
  106. PINCTRL_PIN(15, "GPIO_15"),
  107. PINCTRL_PIN(16, "GPIO_16"),
  108. PINCTRL_PIN(17, "GPIO_17"),
  109. PINCTRL_PIN(18, "GPIO_18"),
  110. PINCTRL_PIN(19, "GPIO_19"),
  111. PINCTRL_PIN(20, "GPIO_20"),
  112. PINCTRL_PIN(21, "GPIO_21"),
  113. PINCTRL_PIN(22, "GPIO_22"),
  114. PINCTRL_PIN(23, "GPIO_23"),
  115. PINCTRL_PIN(24, "GPIO_24"),
  116. PINCTRL_PIN(25, "GPIO_25"),
  117. PINCTRL_PIN(26, "GPIO_26"),
  118. PINCTRL_PIN(27, "GPIO_27"),
  119. PINCTRL_PIN(28, "GPIO_28"),
  120. PINCTRL_PIN(29, "GPIO_29"),
  121. PINCTRL_PIN(30, "GPIO_30"),
  122. PINCTRL_PIN(31, "GPIO_31"),
  123. PINCTRL_PIN(32, "GPIO_32"),
  124. PINCTRL_PIN(33, "GPIO_33"),
  125. PINCTRL_PIN(34, "GPIO_34"),
  126. PINCTRL_PIN(35, "GPIO_35"),
  127. PINCTRL_PIN(36, "GPIO_36"),
  128. PINCTRL_PIN(37, "GPIO_37"),
  129. PINCTRL_PIN(38, "GPIO_38"),
  130. PINCTRL_PIN(39, "GPIO_39"),
  131. PINCTRL_PIN(40, "GPIO_40"),
  132. PINCTRL_PIN(41, "GPIO_41"),
  133. PINCTRL_PIN(42, "GPIO_42"),
  134. PINCTRL_PIN(43, "GPIO_43"),
  135. PINCTRL_PIN(44, "GPIO_44"),
  136. PINCTRL_PIN(45, "GPIO_45"),
  137. PINCTRL_PIN(46, "GPIO_46"),
  138. PINCTRL_PIN(47, "GPIO_47"),
  139. PINCTRL_PIN(48, "GPIO_48"),
  140. PINCTRL_PIN(49, "GPIO_49"),
  141. PINCTRL_PIN(50, "GPIO_50"),
  142. PINCTRL_PIN(51, "GPIO_51"),
  143. PINCTRL_PIN(52, "GPIO_52"),
  144. PINCTRL_PIN(53, "GPIO_53"),
  145. PINCTRL_PIN(54, "GPIO_54"),
  146. PINCTRL_PIN(55, "GPIO_55"),
  147. PINCTRL_PIN(56, "GPIO_56"),
  148. PINCTRL_PIN(57, "GPIO_57"),
  149. PINCTRL_PIN(58, "GPIO_58"),
  150. PINCTRL_PIN(59, "GPIO_59"),
  151. PINCTRL_PIN(60, "GPIO_60"),
  152. PINCTRL_PIN(61, "GPIO_61"),
  153. PINCTRL_PIN(62, "GPIO_62"),
  154. PINCTRL_PIN(63, "GPIO_63"),
  155. PINCTRL_PIN(64, "GPIO_64"),
  156. PINCTRL_PIN(65, "GPIO_65"),
  157. PINCTRL_PIN(66, "GPIO_66"),
  158. PINCTRL_PIN(67, "GPIO_67"),
  159. PINCTRL_PIN(68, "GPIO_68"),
  160. PINCTRL_PIN(69, "GPIO_69"),
  161. PINCTRL_PIN(70, "GPIO_70"),
  162. PINCTRL_PIN(71, "GPIO_71"),
  163. PINCTRL_PIN(72, "GPIO_72"),
  164. PINCTRL_PIN(73, "GPIO_73"),
  165. PINCTRL_PIN(74, "GPIO_74"),
  166. PINCTRL_PIN(75, "GPIO_75"),
  167. PINCTRL_PIN(76, "GPIO_76"),
  168. PINCTRL_PIN(77, "GPIO_77"),
  169. PINCTRL_PIN(78, "GPIO_78"),
  170. PINCTRL_PIN(79, "GPIO_79"),
  171. PINCTRL_PIN(80, "GPIO_80"),
  172. PINCTRL_PIN(81, "GPIO_81"),
  173. PINCTRL_PIN(82, "GPIO_82"),
  174. PINCTRL_PIN(83, "GPIO_83"),
  175. PINCTRL_PIN(84, "GPIO_84"),
  176. PINCTRL_PIN(85, "GPIO_85"),
  177. PINCTRL_PIN(86, "GPIO_86"),
  178. PINCTRL_PIN(87, "GPIO_87"),
  179. PINCTRL_PIN(88, "GPIO_88"),
  180. PINCTRL_PIN(89, "GPIO_89"),
  181. PINCTRL_PIN(90, "GPIO_90"),
  182. PINCTRL_PIN(91, "GPIO_91"),
  183. PINCTRL_PIN(92, "GPIO_92"),
  184. PINCTRL_PIN(93, "GPIO_93"),
  185. PINCTRL_PIN(94, "GPIO_94"),
  186. PINCTRL_PIN(95, "GPIO_95"),
  187. PINCTRL_PIN(96, "GPIO_96"),
  188. PINCTRL_PIN(97, "GPIO_97"),
  189. PINCTRL_PIN(98, "GPIO_98"),
  190. PINCTRL_PIN(99, "GPIO_99"),
  191. PINCTRL_PIN(100, "GPIO_100"),
  192. PINCTRL_PIN(101, "GPIO_101"),
  193. PINCTRL_PIN(102, "GPIO_102"),
  194. PINCTRL_PIN(103, "GPIO_103"),
  195. PINCTRL_PIN(104, "GPIO_104"),
  196. PINCTRL_PIN(105, "GPIO_105"),
  197. PINCTRL_PIN(106, "GPIO_106"),
  198. PINCTRL_PIN(107, "GPIO_107"),
  199. PINCTRL_PIN(108, "GPIO_108"),
  200. PINCTRL_PIN(109, "GPIO_109"),
  201. PINCTRL_PIN(110, "GPIO_110"),
  202. PINCTRL_PIN(111, "GPIO_111"),
  203. PINCTRL_PIN(112, "GPIO_112"),
  204. PINCTRL_PIN(113, "GPIO_113"),
  205. PINCTRL_PIN(114, "GPIO_114"),
  206. PINCTRL_PIN(115, "GPIO_115"),
  207. PINCTRL_PIN(116, "GPIO_116"),
  208. PINCTRL_PIN(117, "GPIO_117"),
  209. PINCTRL_PIN(118, "GPIO_118"),
  210. PINCTRL_PIN(119, "GPIO_119"),
  211. PINCTRL_PIN(120, "SDC1_RCLK"),
  212. PINCTRL_PIN(121, "SDC1_CLK"),
  213. PINCTRL_PIN(122, "SDC1_CMD"),
  214. PINCTRL_PIN(123, "SDC1_DATA"),
  215. PINCTRL_PIN(124, "SDC2_CLK"),
  216. PINCTRL_PIN(125, "SDC2_CMD"),
  217. PINCTRL_PIN(126, "SDC2_DATA"),
  218. };
  219. #define DECLARE_MSM_GPIO_PINS(pin) \
  220. static const unsigned int gpio##pin##_pins[] = { pin }
  221. DECLARE_MSM_GPIO_PINS(0);
  222. DECLARE_MSM_GPIO_PINS(1);
  223. DECLARE_MSM_GPIO_PINS(2);
  224. DECLARE_MSM_GPIO_PINS(3);
  225. DECLARE_MSM_GPIO_PINS(4);
  226. DECLARE_MSM_GPIO_PINS(5);
  227. DECLARE_MSM_GPIO_PINS(6);
  228. DECLARE_MSM_GPIO_PINS(7);
  229. DECLARE_MSM_GPIO_PINS(8);
  230. DECLARE_MSM_GPIO_PINS(9);
  231. DECLARE_MSM_GPIO_PINS(10);
  232. DECLARE_MSM_GPIO_PINS(11);
  233. DECLARE_MSM_GPIO_PINS(12);
  234. DECLARE_MSM_GPIO_PINS(13);
  235. DECLARE_MSM_GPIO_PINS(14);
  236. DECLARE_MSM_GPIO_PINS(15);
  237. DECLARE_MSM_GPIO_PINS(16);
  238. DECLARE_MSM_GPIO_PINS(17);
  239. DECLARE_MSM_GPIO_PINS(18);
  240. DECLARE_MSM_GPIO_PINS(19);
  241. DECLARE_MSM_GPIO_PINS(20);
  242. DECLARE_MSM_GPIO_PINS(21);
  243. DECLARE_MSM_GPIO_PINS(22);
  244. DECLARE_MSM_GPIO_PINS(23);
  245. DECLARE_MSM_GPIO_PINS(24);
  246. DECLARE_MSM_GPIO_PINS(25);
  247. DECLARE_MSM_GPIO_PINS(26);
  248. DECLARE_MSM_GPIO_PINS(27);
  249. DECLARE_MSM_GPIO_PINS(28);
  250. DECLARE_MSM_GPIO_PINS(29);
  251. DECLARE_MSM_GPIO_PINS(30);
  252. DECLARE_MSM_GPIO_PINS(31);
  253. DECLARE_MSM_GPIO_PINS(32);
  254. DECLARE_MSM_GPIO_PINS(33);
  255. DECLARE_MSM_GPIO_PINS(34);
  256. DECLARE_MSM_GPIO_PINS(35);
  257. DECLARE_MSM_GPIO_PINS(36);
  258. DECLARE_MSM_GPIO_PINS(37);
  259. DECLARE_MSM_GPIO_PINS(38);
  260. DECLARE_MSM_GPIO_PINS(39);
  261. DECLARE_MSM_GPIO_PINS(40);
  262. DECLARE_MSM_GPIO_PINS(41);
  263. DECLARE_MSM_GPIO_PINS(42);
  264. DECLARE_MSM_GPIO_PINS(43);
  265. DECLARE_MSM_GPIO_PINS(44);
  266. DECLARE_MSM_GPIO_PINS(45);
  267. DECLARE_MSM_GPIO_PINS(46);
  268. DECLARE_MSM_GPIO_PINS(47);
  269. DECLARE_MSM_GPIO_PINS(48);
  270. DECLARE_MSM_GPIO_PINS(49);
  271. DECLARE_MSM_GPIO_PINS(50);
  272. DECLARE_MSM_GPIO_PINS(51);
  273. DECLARE_MSM_GPIO_PINS(52);
  274. DECLARE_MSM_GPIO_PINS(53);
  275. DECLARE_MSM_GPIO_PINS(54);
  276. DECLARE_MSM_GPIO_PINS(55);
  277. DECLARE_MSM_GPIO_PINS(56);
  278. DECLARE_MSM_GPIO_PINS(57);
  279. DECLARE_MSM_GPIO_PINS(58);
  280. DECLARE_MSM_GPIO_PINS(59);
  281. DECLARE_MSM_GPIO_PINS(60);
  282. DECLARE_MSM_GPIO_PINS(61);
  283. DECLARE_MSM_GPIO_PINS(62);
  284. DECLARE_MSM_GPIO_PINS(63);
  285. DECLARE_MSM_GPIO_PINS(64);
  286. DECLARE_MSM_GPIO_PINS(65);
  287. DECLARE_MSM_GPIO_PINS(66);
  288. DECLARE_MSM_GPIO_PINS(67);
  289. DECLARE_MSM_GPIO_PINS(68);
  290. DECLARE_MSM_GPIO_PINS(69);
  291. DECLARE_MSM_GPIO_PINS(70);
  292. DECLARE_MSM_GPIO_PINS(71);
  293. DECLARE_MSM_GPIO_PINS(72);
  294. DECLARE_MSM_GPIO_PINS(73);
  295. DECLARE_MSM_GPIO_PINS(74);
  296. DECLARE_MSM_GPIO_PINS(75);
  297. DECLARE_MSM_GPIO_PINS(76);
  298. DECLARE_MSM_GPIO_PINS(77);
  299. DECLARE_MSM_GPIO_PINS(78);
  300. DECLARE_MSM_GPIO_PINS(79);
  301. DECLARE_MSM_GPIO_PINS(80);
  302. DECLARE_MSM_GPIO_PINS(81);
  303. DECLARE_MSM_GPIO_PINS(82);
  304. DECLARE_MSM_GPIO_PINS(83);
  305. DECLARE_MSM_GPIO_PINS(84);
  306. DECLARE_MSM_GPIO_PINS(85);
  307. DECLARE_MSM_GPIO_PINS(86);
  308. DECLARE_MSM_GPIO_PINS(87);
  309. DECLARE_MSM_GPIO_PINS(88);
  310. DECLARE_MSM_GPIO_PINS(89);
  311. DECLARE_MSM_GPIO_PINS(90);
  312. DECLARE_MSM_GPIO_PINS(91);
  313. DECLARE_MSM_GPIO_PINS(92);
  314. DECLARE_MSM_GPIO_PINS(93);
  315. DECLARE_MSM_GPIO_PINS(94);
  316. DECLARE_MSM_GPIO_PINS(95);
  317. DECLARE_MSM_GPIO_PINS(96);
  318. DECLARE_MSM_GPIO_PINS(97);
  319. DECLARE_MSM_GPIO_PINS(98);
  320. DECLARE_MSM_GPIO_PINS(99);
  321. DECLARE_MSM_GPIO_PINS(100);
  322. DECLARE_MSM_GPIO_PINS(101);
  323. DECLARE_MSM_GPIO_PINS(102);
  324. DECLARE_MSM_GPIO_PINS(103);
  325. DECLARE_MSM_GPIO_PINS(104);
  326. DECLARE_MSM_GPIO_PINS(105);
  327. DECLARE_MSM_GPIO_PINS(106);
  328. DECLARE_MSM_GPIO_PINS(107);
  329. DECLARE_MSM_GPIO_PINS(108);
  330. DECLARE_MSM_GPIO_PINS(109);
  331. DECLARE_MSM_GPIO_PINS(110);
  332. DECLARE_MSM_GPIO_PINS(111);
  333. DECLARE_MSM_GPIO_PINS(112);
  334. DECLARE_MSM_GPIO_PINS(113);
  335. DECLARE_MSM_GPIO_PINS(114);
  336. DECLARE_MSM_GPIO_PINS(115);
  337. DECLARE_MSM_GPIO_PINS(116);
  338. DECLARE_MSM_GPIO_PINS(117);
  339. DECLARE_MSM_GPIO_PINS(118);
  340. DECLARE_MSM_GPIO_PINS(119);
  341. static const unsigned int sdc1_rclk_pins[] = { 120 };
  342. static const unsigned int sdc1_clk_pins[] = { 121 };
  343. static const unsigned int sdc1_cmd_pins[] = { 122 };
  344. static const unsigned int sdc1_data_pins[] = { 123 };
  345. static const unsigned int sdc2_clk_pins[] = { 124 };
  346. static const unsigned int sdc2_cmd_pins[] = { 125 };
  347. static const unsigned int sdc2_data_pins[] = { 126 };
  348. enum qcs404_functions {
  349. msm_mux_gpio,
  350. msm_mux_hdmi_tx,
  351. msm_mux_hdmi_ddc,
  352. msm_mux_blsp_uart_tx_a2,
  353. msm_mux_blsp_spi2,
  354. msm_mux_m_voc,
  355. msm_mux_qdss_cti_trig_in_a0,
  356. msm_mux_blsp_uart_rx_a2,
  357. msm_mux_qdss_tracectl_a,
  358. msm_mux_blsp_uart2,
  359. msm_mux_aud_cdc,
  360. msm_mux_blsp_i2c_sda_a2,
  361. msm_mux_qdss_tracedata_a,
  362. msm_mux_blsp_i2c_scl_a2,
  363. msm_mux_qdss_tracectl_b,
  364. msm_mux_qdss_cti_trig_in_b0,
  365. msm_mux_blsp_uart1,
  366. msm_mux_blsp_spi_mosi_a1,
  367. msm_mux_blsp_spi_miso_a1,
  368. msm_mux_qdss_tracedata_b,
  369. msm_mux_blsp_i2c1,
  370. msm_mux_blsp_spi_cs_n_a1,
  371. msm_mux_gcc_plltest,
  372. msm_mux_blsp_spi_clk_a1,
  373. msm_mux_rgb_data0,
  374. msm_mux_blsp_uart5,
  375. msm_mux_blsp_spi5,
  376. msm_mux_adsp_ext,
  377. msm_mux_rgb_data1,
  378. msm_mux_prng_rosc,
  379. msm_mux_rgb_data2,
  380. msm_mux_blsp_i2c5,
  381. msm_mux_gcc_gp1_clk_b,
  382. msm_mux_rgb_data3,
  383. msm_mux_gcc_gp2_clk_b,
  384. msm_mux_blsp_spi0,
  385. msm_mux_blsp_uart0,
  386. msm_mux_gcc_gp3_clk_b,
  387. msm_mux_blsp_i2c0,
  388. msm_mux_qdss_traceclk_b,
  389. msm_mux_pcie_clk,
  390. msm_mux_nfc_irq,
  391. msm_mux_blsp_spi4,
  392. msm_mux_nfc_dwl,
  393. msm_mux_audio_ts,
  394. msm_mux_rgb_data4,
  395. msm_mux_spi_lcd,
  396. msm_mux_blsp_uart_tx_b2,
  397. msm_mux_gcc_gp3_clk_a,
  398. msm_mux_rgb_data5,
  399. msm_mux_blsp_uart_rx_b2,
  400. msm_mux_blsp_i2c_sda_b2,
  401. msm_mux_blsp_i2c_scl_b2,
  402. msm_mux_pwm_led11,
  403. msm_mux_i2s_3_data0_a,
  404. msm_mux_ebi2_lcd,
  405. msm_mux_i2s_3_data1_a,
  406. msm_mux_i2s_3_data2_a,
  407. msm_mux_atest_char,
  408. msm_mux_pwm_led3,
  409. msm_mux_i2s_3_data3_a,
  410. msm_mux_pwm_led4,
  411. msm_mux_i2s_4,
  412. msm_mux_ebi2_a,
  413. msm_mux_dsd_clk_b,
  414. msm_mux_pwm_led5,
  415. msm_mux_pwm_led6,
  416. msm_mux_pwm_led7,
  417. msm_mux_pwm_led8,
  418. msm_mux_pwm_led24,
  419. msm_mux_spkr_dac0,
  420. msm_mux_blsp_i2c4,
  421. msm_mux_pwm_led9,
  422. msm_mux_pwm_led10,
  423. msm_mux_spdifrx_opt,
  424. msm_mux_pwm_led12,
  425. msm_mux_pwm_led13,
  426. msm_mux_pwm_led14,
  427. msm_mux_wlan1_adc1,
  428. msm_mux_rgb_data_b0,
  429. msm_mux_pwm_led15,
  430. msm_mux_blsp_spi_mosi_b1,
  431. msm_mux_wlan1_adc0,
  432. msm_mux_rgb_data_b1,
  433. msm_mux_pwm_led16,
  434. msm_mux_blsp_spi_miso_b1,
  435. msm_mux_qdss_cti_trig_out_b0,
  436. msm_mux_wlan2_adc1,
  437. msm_mux_rgb_data_b2,
  438. msm_mux_pwm_led17,
  439. msm_mux_blsp_spi_cs_n_b1,
  440. msm_mux_wlan2_adc0,
  441. msm_mux_rgb_data_b3,
  442. msm_mux_pwm_led18,
  443. msm_mux_blsp_spi_clk_b1,
  444. msm_mux_rgb_data_b4,
  445. msm_mux_pwm_led19,
  446. msm_mux_ext_mclk1_b,
  447. msm_mux_qdss_traceclk_a,
  448. msm_mux_rgb_data_b5,
  449. msm_mux_pwm_led20,
  450. msm_mux_atest_char3,
  451. msm_mux_i2s_3_sck_b,
  452. msm_mux_ldo_update,
  453. msm_mux_bimc_dte0,
  454. msm_mux_rgb_hsync,
  455. msm_mux_pwm_led21,
  456. msm_mux_i2s_3_ws_b,
  457. msm_mux_dbg_out,
  458. msm_mux_rgb_vsync,
  459. msm_mux_i2s_3_data0_b,
  460. msm_mux_ldo_en,
  461. msm_mux_hdmi_dtest,
  462. msm_mux_rgb_de,
  463. msm_mux_i2s_3_data1_b,
  464. msm_mux_hdmi_lbk9,
  465. msm_mux_rgb_clk,
  466. msm_mux_atest_char1,
  467. msm_mux_i2s_3_data2_b,
  468. msm_mux_ebi_cdc,
  469. msm_mux_hdmi_lbk8,
  470. msm_mux_rgb_mdp,
  471. msm_mux_atest_char0,
  472. msm_mux_i2s_3_data3_b,
  473. msm_mux_hdmi_lbk7,
  474. msm_mux_rgb_data_b6,
  475. msm_mux_rgb_data_b7,
  476. msm_mux_hdmi_lbk6,
  477. msm_mux_rgmii_int,
  478. msm_mux_cri_trng1,
  479. msm_mux_rgmii_wol,
  480. msm_mux_cri_trng0,
  481. msm_mux_gcc_tlmm,
  482. msm_mux_rgmii_ck,
  483. msm_mux_rgmii_tx,
  484. msm_mux_hdmi_lbk5,
  485. msm_mux_hdmi_pixel,
  486. msm_mux_hdmi_rcv,
  487. msm_mux_hdmi_lbk4,
  488. msm_mux_rgmii_ctl,
  489. msm_mux_ext_lpass,
  490. msm_mux_rgmii_rx,
  491. msm_mux_cri_trng,
  492. msm_mux_hdmi_lbk3,
  493. msm_mux_hdmi_lbk2,
  494. msm_mux_qdss_cti_trig_out_b1,
  495. msm_mux_rgmii_mdio,
  496. msm_mux_hdmi_lbk1,
  497. msm_mux_rgmii_mdc,
  498. msm_mux_hdmi_lbk0,
  499. msm_mux_ir_in,
  500. msm_mux_wsa_en,
  501. msm_mux_rgb_data6,
  502. msm_mux_rgb_data7,
  503. msm_mux_atest_char2,
  504. msm_mux_ebi_ch0,
  505. msm_mux_blsp_uart3,
  506. msm_mux_blsp_spi3,
  507. msm_mux_sd_write,
  508. msm_mux_blsp_i2c3,
  509. msm_mux_gcc_gp1_clk_a,
  510. msm_mux_qdss_cti_trig_in_b1,
  511. msm_mux_gcc_gp2_clk_a,
  512. msm_mux_ext_mclk0,
  513. msm_mux_mclk_in1,
  514. msm_mux_i2s_1,
  515. msm_mux_dsd_clk_a,
  516. msm_mux_qdss_cti_trig_in_a1,
  517. msm_mux_rgmi_dll1,
  518. msm_mux_pwm_led22,
  519. msm_mux_pwm_led23,
  520. msm_mux_qdss_cti_trig_out_a0,
  521. msm_mux_rgmi_dll2,
  522. msm_mux_pwm_led1,
  523. msm_mux_qdss_cti_trig_out_a1,
  524. msm_mux_pwm_led2,
  525. msm_mux_i2s_2,
  526. msm_mux_pll_bist,
  527. msm_mux_ext_mclk1_a,
  528. msm_mux_mclk_in2,
  529. msm_mux_bimc_dte1,
  530. msm_mux_i2s_3_sck_a,
  531. msm_mux_i2s_3_ws_a,
  532. msm_mux__,
  533. };
  534. static const char * const gpio_groups[] = {
  535. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  536. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  537. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  538. "gpio21", "gpio21", "gpio22", "gpio22", "gpio23", "gpio23", "gpio24",
  539. "gpio25", "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31",
  540. "gpio32", "gpio33", "gpio34", "gpio35", "gpio36", "gpio36", "gpio36",
  541. "gpio36", "gpio37", "gpio37", "gpio37", "gpio38", "gpio38", "gpio38",
  542. "gpio39", "gpio39", "gpio40", "gpio40", "gpio41", "gpio41", "gpio41",
  543. "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48",
  544. "gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55",
  545. "gpio56", "gpio57", "gpio58", "gpio59", "gpio59", "gpio60", "gpio61",
  546. "gpio62", "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68",
  547. "gpio69", "gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio75",
  548. "gpio76", "gpio77", "gpio77", "gpio78", "gpio78", "gpio78", "gpio79",
  549. "gpio79", "gpio79", "gpio80", "gpio81", "gpio81", "gpio82", "gpio83",
  550. "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90",
  551. "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97",
  552. "gpio98", "gpio99", "gpio100", "gpio101", "gpio102", "gpio103",
  553. "gpio104", "gpio105", "gpio106", "gpio107", "gpio108", "gpio108",
  554. "gpio108", "gpio109", "gpio109", "gpio110", "gpio111", "gpio112",
  555. "gpio113", "gpio114", "gpio115", "gpio116", "gpio117", "gpio118",
  556. "gpio119",
  557. };
  558. static const char * const hdmi_tx_groups[] = {
  559. "gpio14",
  560. };
  561. static const char * const hdmi_ddc_groups[] = {
  562. "gpio15", "gpio16",
  563. };
  564. static const char * const blsp_uart_tx_a2_groups[] = {
  565. "gpio17",
  566. };
  567. static const char * const blsp_spi2_groups[] = {
  568. "gpio17", "gpio18", "gpio19", "gpio20",
  569. };
  570. static const char * const m_voc_groups[] = {
  571. "gpio17", "gpio21",
  572. };
  573. static const char * const qdss_cti_trig_in_a0_groups[] = {
  574. "gpio17",
  575. };
  576. static const char * const blsp_uart_rx_a2_groups[] = {
  577. "gpio18",
  578. };
  579. static const char * const qdss_tracectl_a_groups[] = {
  580. "gpio18",
  581. };
  582. static const char * const blsp_uart2_groups[] = {
  583. "gpio19", "gpio20",
  584. };
  585. static const char * const aud_cdc_groups[] = {
  586. "gpio19", "gpio20",
  587. };
  588. static const char * const blsp_i2c_sda_a2_groups[] = {
  589. "gpio19",
  590. };
  591. static const char * const qdss_tracedata_a_groups[] = {
  592. "gpio19", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio30",
  593. "gpio31", "gpio32", "gpio36", "gpio38", "gpio39", "gpio42", "gpio43",
  594. "gpio82", "gpio83",
  595. };
  596. static const char * const blsp_i2c_scl_a2_groups[] = {
  597. "gpio20",
  598. };
  599. static const char * const qdss_tracectl_b_groups[] = {
  600. "gpio20",
  601. };
  602. static const char * const qdss_cti_trig_in_b0_groups[] = {
  603. "gpio21",
  604. };
  605. static const char * const blsp_uart1_groups[] = {
  606. "gpio22", "gpio23", "gpio24", "gpio25",
  607. };
  608. static const char * const blsp_spi_mosi_a1_groups[] = {
  609. "gpio22",
  610. };
  611. static const char * const blsp_spi_miso_a1_groups[] = {
  612. "gpio23",
  613. };
  614. static const char * const qdss_tracedata_b_groups[] = {
  615. "gpio23", "gpio35", "gpio40", "gpio41", "gpio44", "gpio45", "gpio46",
  616. "gpio47", "gpio49", "gpio50", "gpio55", "gpio61", "gpio62", "gpio85",
  617. "gpio89", "gpio93",
  618. };
  619. static const char * const blsp_i2c1_groups[] = {
  620. "gpio24", "gpio25",
  621. };
  622. static const char * const blsp_spi_cs_n_a1_groups[] = {
  623. "gpio24",
  624. };
  625. static const char * const gcc_plltest_groups[] = {
  626. "gpio24", "gpio25",
  627. };
  628. static const char * const blsp_spi_clk_a1_groups[] = {
  629. "gpio25",
  630. };
  631. static const char * const rgb_data0_groups[] = {
  632. "gpio26", "gpio41",
  633. };
  634. static const char * const blsp_uart5_groups[] = {
  635. "gpio26", "gpio27", "gpio28", "gpio29",
  636. };
  637. static const char * const blsp_spi5_groups[] = {
  638. "gpio26", "gpio27", "gpio28", "gpio29", "gpio44", "gpio45", "gpio46",
  639. };
  640. static const char * const adsp_ext_groups[] = {
  641. "gpio26",
  642. };
  643. static const char * const rgb_data1_groups[] = {
  644. "gpio27", "gpio42",
  645. };
  646. static const char * const prng_rosc_groups[] = {
  647. "gpio27",
  648. };
  649. static const char * const rgb_data2_groups[] = {
  650. "gpio28", "gpio43",
  651. };
  652. static const char * const blsp_i2c5_groups[] = {
  653. "gpio28", "gpio29",
  654. };
  655. static const char * const gcc_gp1_clk_b_groups[] = {
  656. "gpio28",
  657. };
  658. static const char * const rgb_data3_groups[] = {
  659. "gpio29", "gpio44",
  660. };
  661. static const char * const gcc_gp2_clk_b_groups[] = {
  662. "gpio29",
  663. };
  664. static const char * const blsp_spi0_groups[] = {
  665. "gpio30", "gpio31", "gpio32", "gpio33",
  666. };
  667. static const char * const blsp_uart0_groups[] = {
  668. "gpio30", "gpio31", "gpio32", "gpio33",
  669. };
  670. static const char * const gcc_gp3_clk_b_groups[] = {
  671. "gpio30",
  672. };
  673. static const char * const blsp_i2c0_groups[] = {
  674. "gpio32", "gpio33",
  675. };
  676. static const char * const qdss_traceclk_b_groups[] = {
  677. "gpio34",
  678. };
  679. static const char * const pcie_clk_groups[] = {
  680. "gpio35",
  681. };
  682. static const char * const nfc_irq_groups[] = {
  683. "gpio37",
  684. };
  685. static const char * const blsp_spi4_groups[] = {
  686. "gpio37", "gpio38", "gpio117", "gpio118",
  687. };
  688. static const char * const nfc_dwl_groups[] = {
  689. "gpio38",
  690. };
  691. static const char * const audio_ts_groups[] = {
  692. "gpio38",
  693. };
  694. static const char * const rgb_data4_groups[] = {
  695. "gpio39", "gpio45",
  696. };
  697. static const char * const spi_lcd_groups[] = {
  698. "gpio39", "gpio40",
  699. };
  700. static const char * const blsp_uart_tx_b2_groups[] = {
  701. "gpio39",
  702. };
  703. static const char * const gcc_gp3_clk_a_groups[] = {
  704. "gpio39",
  705. };
  706. static const char * const rgb_data5_groups[] = {
  707. "gpio40", "gpio46",
  708. };
  709. static const char * const blsp_uart_rx_b2_groups[] = {
  710. "gpio40",
  711. };
  712. static const char * const blsp_i2c_sda_b2_groups[] = {
  713. "gpio41",
  714. };
  715. static const char * const blsp_i2c_scl_b2_groups[] = {
  716. "gpio42",
  717. };
  718. static const char * const pwm_led11_groups[] = {
  719. "gpio43",
  720. };
  721. static const char * const i2s_3_data0_a_groups[] = {
  722. "gpio106",
  723. };
  724. static const char * const ebi2_lcd_groups[] = {
  725. "gpio106", "gpio107", "gpio108", "gpio109",
  726. };
  727. static const char * const i2s_3_data1_a_groups[] = {
  728. "gpio107",
  729. };
  730. static const char * const i2s_3_data2_a_groups[] = {
  731. "gpio108",
  732. };
  733. static const char * const atest_char_groups[] = {
  734. "gpio108",
  735. };
  736. static const char * const pwm_led3_groups[] = {
  737. "gpio108",
  738. };
  739. static const char * const i2s_3_data3_a_groups[] = {
  740. "gpio109",
  741. };
  742. static const char * const pwm_led4_groups[] = {
  743. "gpio109",
  744. };
  745. static const char * const i2s_4_groups[] = {
  746. "gpio110", "gpio111", "gpio111", "gpio112", "gpio112", "gpio113",
  747. "gpio113", "gpio114", "gpio114", "gpio115", "gpio115", "gpio116",
  748. };
  749. static const char * const ebi2_a_groups[] = {
  750. "gpio110",
  751. };
  752. static const char * const dsd_clk_b_groups[] = {
  753. "gpio110",
  754. };
  755. static const char * const pwm_led5_groups[] = {
  756. "gpio110",
  757. };
  758. static const char * const pwm_led6_groups[] = {
  759. "gpio111",
  760. };
  761. static const char * const pwm_led7_groups[] = {
  762. "gpio112",
  763. };
  764. static const char * const pwm_led8_groups[] = {
  765. "gpio113",
  766. };
  767. static const char * const pwm_led24_groups[] = {
  768. "gpio114",
  769. };
  770. static const char * const spkr_dac0_groups[] = {
  771. "gpio116",
  772. };
  773. static const char * const blsp_i2c4_groups[] = {
  774. "gpio117", "gpio118",
  775. };
  776. static const char * const pwm_led9_groups[] = {
  777. "gpio117",
  778. };
  779. static const char * const pwm_led10_groups[] = {
  780. "gpio118",
  781. };
  782. static const char * const spdifrx_opt_groups[] = {
  783. "gpio119",
  784. };
  785. static const char * const pwm_led12_groups[] = {
  786. "gpio44",
  787. };
  788. static const char * const pwm_led13_groups[] = {
  789. "gpio45",
  790. };
  791. static const char * const pwm_led14_groups[] = {
  792. "gpio46",
  793. };
  794. static const char * const wlan1_adc1_groups[] = {
  795. "gpio46",
  796. };
  797. static const char * const rgb_data_b0_groups[] = {
  798. "gpio47",
  799. };
  800. static const char * const pwm_led15_groups[] = {
  801. "gpio47",
  802. };
  803. static const char * const blsp_spi_mosi_b1_groups[] = {
  804. "gpio47",
  805. };
  806. static const char * const wlan1_adc0_groups[] = {
  807. "gpio47",
  808. };
  809. static const char * const rgb_data_b1_groups[] = {
  810. "gpio48",
  811. };
  812. static const char * const pwm_led16_groups[] = {
  813. "gpio48",
  814. };
  815. static const char * const blsp_spi_miso_b1_groups[] = {
  816. "gpio48",
  817. };
  818. static const char * const qdss_cti_trig_out_b0_groups[] = {
  819. "gpio48",
  820. };
  821. static const char * const wlan2_adc1_groups[] = {
  822. "gpio48",
  823. };
  824. static const char * const rgb_data_b2_groups[] = {
  825. "gpio49",
  826. };
  827. static const char * const pwm_led17_groups[] = {
  828. "gpio49",
  829. };
  830. static const char * const blsp_spi_cs_n_b1_groups[] = {
  831. "gpio49",
  832. };
  833. static const char * const wlan2_adc0_groups[] = {
  834. "gpio49",
  835. };
  836. static const char * const rgb_data_b3_groups[] = {
  837. "gpio50",
  838. };
  839. static const char * const pwm_led18_groups[] = {
  840. "gpio50",
  841. };
  842. static const char * const blsp_spi_clk_b1_groups[] = {
  843. "gpio50",
  844. };
  845. static const char * const rgb_data_b4_groups[] = {
  846. "gpio51",
  847. };
  848. static const char * const pwm_led19_groups[] = {
  849. "gpio51",
  850. };
  851. static const char * const ext_mclk1_b_groups[] = {
  852. "gpio51",
  853. };
  854. static const char * const qdss_traceclk_a_groups[] = {
  855. "gpio51",
  856. };
  857. static const char * const rgb_data_b5_groups[] = {
  858. "gpio52",
  859. };
  860. static const char * const pwm_led20_groups[] = {
  861. "gpio52",
  862. };
  863. static const char * const atest_char3_groups[] = {
  864. "gpio52",
  865. };
  866. static const char * const i2s_3_sck_b_groups[] = {
  867. "gpio52",
  868. };
  869. static const char * const ldo_update_groups[] = {
  870. "gpio52",
  871. };
  872. static const char * const bimc_dte0_groups[] = {
  873. "gpio52", "gpio54",
  874. };
  875. static const char * const rgb_hsync_groups[] = {
  876. "gpio53",
  877. };
  878. static const char * const pwm_led21_groups[] = {
  879. "gpio53",
  880. };
  881. static const char * const i2s_3_ws_b_groups[] = {
  882. "gpio53",
  883. };
  884. static const char * const dbg_out_groups[] = {
  885. "gpio53",
  886. };
  887. static const char * const rgb_vsync_groups[] = {
  888. "gpio54",
  889. };
  890. static const char * const i2s_3_data0_b_groups[] = {
  891. "gpio54",
  892. };
  893. static const char * const ldo_en_groups[] = {
  894. "gpio54",
  895. };
  896. static const char * const hdmi_dtest_groups[] = {
  897. "gpio54",
  898. };
  899. static const char * const rgb_de_groups[] = {
  900. "gpio55",
  901. };
  902. static const char * const i2s_3_data1_b_groups[] = {
  903. "gpio55",
  904. };
  905. static const char * const hdmi_lbk9_groups[] = {
  906. "gpio55",
  907. };
  908. static const char * const rgb_clk_groups[] = {
  909. "gpio56",
  910. };
  911. static const char * const atest_char1_groups[] = {
  912. "gpio56",
  913. };
  914. static const char * const i2s_3_data2_b_groups[] = {
  915. "gpio56",
  916. };
  917. static const char * const ebi_cdc_groups[] = {
  918. "gpio56", "gpio58", "gpio106", "gpio107", "gpio108", "gpio111",
  919. };
  920. static const char * const hdmi_lbk8_groups[] = {
  921. "gpio56",
  922. };
  923. static const char * const rgb_mdp_groups[] = {
  924. "gpio57",
  925. };
  926. static const char * const atest_char0_groups[] = {
  927. "gpio57",
  928. };
  929. static const char * const i2s_3_data3_b_groups[] = {
  930. "gpio57",
  931. };
  932. static const char * const hdmi_lbk7_groups[] = {
  933. "gpio57",
  934. };
  935. static const char * const rgb_data_b6_groups[] = {
  936. "gpio58",
  937. };
  938. static const char * const rgb_data_b7_groups[] = {
  939. "gpio59",
  940. };
  941. static const char * const hdmi_lbk6_groups[] = {
  942. "gpio59",
  943. };
  944. static const char * const rgmii_int_groups[] = {
  945. "gpio61",
  946. };
  947. static const char * const cri_trng1_groups[] = {
  948. "gpio61",
  949. };
  950. static const char * const rgmii_wol_groups[] = {
  951. "gpio62",
  952. };
  953. static const char * const cri_trng0_groups[] = {
  954. "gpio62",
  955. };
  956. static const char * const gcc_tlmm_groups[] = {
  957. "gpio62",
  958. };
  959. static const char * const rgmii_ck_groups[] = {
  960. "gpio63", "gpio69",
  961. };
  962. static const char * const rgmii_tx_groups[] = {
  963. "gpio64", "gpio65", "gpio66", "gpio67",
  964. };
  965. static const char * const hdmi_lbk5_groups[] = {
  966. "gpio64",
  967. };
  968. static const char * const hdmi_pixel_groups[] = {
  969. "gpio65",
  970. };
  971. static const char * const hdmi_rcv_groups[] = {
  972. "gpio66",
  973. };
  974. static const char * const hdmi_lbk4_groups[] = {
  975. "gpio67",
  976. };
  977. static const char * const rgmii_ctl_groups[] = {
  978. "gpio68", "gpio74",
  979. };
  980. static const char * const ext_lpass_groups[] = {
  981. "gpio69",
  982. };
  983. static const char * const rgmii_rx_groups[] = {
  984. "gpio70", "gpio71", "gpio72", "gpio73",
  985. };
  986. static const char * const cri_trng_groups[] = {
  987. "gpio70",
  988. };
  989. static const char * const hdmi_lbk3_groups[] = {
  990. "gpio71",
  991. };
  992. static const char * const hdmi_lbk2_groups[] = {
  993. "gpio72",
  994. };
  995. static const char * const qdss_cti_trig_out_b1_groups[] = {
  996. "gpio73",
  997. };
  998. static const char * const rgmii_mdio_groups[] = {
  999. "gpio75",
  1000. };
  1001. static const char * const hdmi_lbk1_groups[] = {
  1002. "gpio75",
  1003. };
  1004. static const char * const rgmii_mdc_groups[] = {
  1005. "gpio76",
  1006. };
  1007. static const char * const hdmi_lbk0_groups[] = {
  1008. "gpio76",
  1009. };
  1010. static const char * const ir_in_groups[] = {
  1011. "gpio77",
  1012. };
  1013. static const char * const wsa_en_groups[] = {
  1014. "gpio77",
  1015. };
  1016. static const char * const rgb_data6_groups[] = {
  1017. "gpio78", "gpio80",
  1018. };
  1019. static const char * const rgb_data7_groups[] = {
  1020. "gpio79", "gpio81",
  1021. };
  1022. static const char * const atest_char2_groups[] = {
  1023. "gpio80",
  1024. };
  1025. static const char * const ebi_ch0_groups[] = {
  1026. "gpio81",
  1027. };
  1028. static const char * const blsp_uart3_groups[] = {
  1029. "gpio82", "gpio83", "gpio84", "gpio85",
  1030. };
  1031. static const char * const blsp_spi3_groups[] = {
  1032. "gpio82", "gpio83", "gpio84", "gpio85",
  1033. };
  1034. static const char * const sd_write_groups[] = {
  1035. "gpio82",
  1036. };
  1037. static const char * const blsp_i2c3_groups[] = {
  1038. "gpio84", "gpio85",
  1039. };
  1040. static const char * const gcc_gp1_clk_a_groups[] = {
  1041. "gpio84",
  1042. };
  1043. static const char * const qdss_cti_trig_in_b1_groups[] = {
  1044. "gpio84",
  1045. };
  1046. static const char * const gcc_gp2_clk_a_groups[] = {
  1047. "gpio85",
  1048. };
  1049. static const char * const ext_mclk0_groups[] = {
  1050. "gpio86",
  1051. };
  1052. static const char * const mclk_in1_groups[] = {
  1053. "gpio86",
  1054. };
  1055. static const char * const i2s_1_groups[] = {
  1056. "gpio87", "gpio88", "gpio88", "gpio89", "gpio89", "gpio90", "gpio90",
  1057. "gpio91", "gpio91", "gpio92", "gpio92", "gpio93", "gpio93", "gpio94",
  1058. "gpio94", "gpio95", "gpio95", "gpio96",
  1059. };
  1060. static const char * const dsd_clk_a_groups[] = {
  1061. "gpio87",
  1062. };
  1063. static const char * const qdss_cti_trig_in_a1_groups[] = {
  1064. "gpio92",
  1065. };
  1066. static const char * const rgmi_dll1_groups[] = {
  1067. "gpio92",
  1068. };
  1069. static const char * const pwm_led22_groups[] = {
  1070. "gpio93",
  1071. };
  1072. static const char * const pwm_led23_groups[] = {
  1073. "gpio94",
  1074. };
  1075. static const char * const qdss_cti_trig_out_a0_groups[] = {
  1076. "gpio94",
  1077. };
  1078. static const char * const rgmi_dll2_groups[] = {
  1079. "gpio94",
  1080. };
  1081. static const char * const pwm_led1_groups[] = {
  1082. "gpio95",
  1083. };
  1084. static const char * const qdss_cti_trig_out_a1_groups[] = {
  1085. "gpio95",
  1086. };
  1087. static const char * const pwm_led2_groups[] = {
  1088. "gpio96",
  1089. };
  1090. static const char * const i2s_2_groups[] = {
  1091. "gpio97", "gpio98", "gpio99", "gpio100", "gpio101", "gpio102",
  1092. };
  1093. static const char * const pll_bist_groups[] = {
  1094. "gpio100",
  1095. };
  1096. static const char * const ext_mclk1_a_groups[] = {
  1097. "gpio103",
  1098. };
  1099. static const char * const mclk_in2_groups[] = {
  1100. "gpio103",
  1101. };
  1102. static const char * const bimc_dte1_groups[] = {
  1103. "gpio103", "gpio109",
  1104. };
  1105. static const char * const i2s_3_sck_a_groups[] = {
  1106. "gpio104",
  1107. };
  1108. static const char * const i2s_3_ws_a_groups[] = {
  1109. "gpio105",
  1110. };
  1111. static const struct msm_function qcs404_functions[] = {
  1112. FUNCTION(gpio),
  1113. FUNCTION(hdmi_tx),
  1114. FUNCTION(hdmi_ddc),
  1115. FUNCTION(blsp_uart_tx_a2),
  1116. FUNCTION(blsp_spi2),
  1117. FUNCTION(m_voc),
  1118. FUNCTION(qdss_cti_trig_in_a0),
  1119. FUNCTION(blsp_uart_rx_a2),
  1120. FUNCTION(qdss_tracectl_a),
  1121. FUNCTION(blsp_uart2),
  1122. FUNCTION(aud_cdc),
  1123. FUNCTION(blsp_i2c_sda_a2),
  1124. FUNCTION(qdss_tracedata_a),
  1125. FUNCTION(blsp_i2c_scl_a2),
  1126. FUNCTION(qdss_tracectl_b),
  1127. FUNCTION(qdss_cti_trig_in_b0),
  1128. FUNCTION(blsp_uart1),
  1129. FUNCTION(blsp_spi_mosi_a1),
  1130. FUNCTION(blsp_spi_miso_a1),
  1131. FUNCTION(qdss_tracedata_b),
  1132. FUNCTION(blsp_i2c1),
  1133. FUNCTION(blsp_spi_cs_n_a1),
  1134. FUNCTION(gcc_plltest),
  1135. FUNCTION(blsp_spi_clk_a1),
  1136. FUNCTION(rgb_data0),
  1137. FUNCTION(blsp_uart5),
  1138. FUNCTION(blsp_spi5),
  1139. FUNCTION(adsp_ext),
  1140. FUNCTION(rgb_data1),
  1141. FUNCTION(prng_rosc),
  1142. FUNCTION(rgb_data2),
  1143. FUNCTION(blsp_i2c5),
  1144. FUNCTION(gcc_gp1_clk_b),
  1145. FUNCTION(rgb_data3),
  1146. FUNCTION(gcc_gp2_clk_b),
  1147. FUNCTION(blsp_spi0),
  1148. FUNCTION(blsp_uart0),
  1149. FUNCTION(gcc_gp3_clk_b),
  1150. FUNCTION(blsp_i2c0),
  1151. FUNCTION(qdss_traceclk_b),
  1152. FUNCTION(pcie_clk),
  1153. FUNCTION(nfc_irq),
  1154. FUNCTION(blsp_spi4),
  1155. FUNCTION(nfc_dwl),
  1156. FUNCTION(audio_ts),
  1157. FUNCTION(rgb_data4),
  1158. FUNCTION(spi_lcd),
  1159. FUNCTION(blsp_uart_tx_b2),
  1160. FUNCTION(gcc_gp3_clk_a),
  1161. FUNCTION(rgb_data5),
  1162. FUNCTION(blsp_uart_rx_b2),
  1163. FUNCTION(blsp_i2c_sda_b2),
  1164. FUNCTION(blsp_i2c_scl_b2),
  1165. FUNCTION(pwm_led11),
  1166. FUNCTION(i2s_3_data0_a),
  1167. FUNCTION(ebi2_lcd),
  1168. FUNCTION(i2s_3_data1_a),
  1169. FUNCTION(i2s_3_data2_a),
  1170. FUNCTION(atest_char),
  1171. FUNCTION(pwm_led3),
  1172. FUNCTION(i2s_3_data3_a),
  1173. FUNCTION(pwm_led4),
  1174. FUNCTION(i2s_4),
  1175. FUNCTION(ebi2_a),
  1176. FUNCTION(dsd_clk_b),
  1177. FUNCTION(pwm_led5),
  1178. FUNCTION(pwm_led6),
  1179. FUNCTION(pwm_led7),
  1180. FUNCTION(pwm_led8),
  1181. FUNCTION(pwm_led24),
  1182. FUNCTION(spkr_dac0),
  1183. FUNCTION(blsp_i2c4),
  1184. FUNCTION(pwm_led9),
  1185. FUNCTION(pwm_led10),
  1186. FUNCTION(spdifrx_opt),
  1187. FUNCTION(pwm_led12),
  1188. FUNCTION(pwm_led13),
  1189. FUNCTION(pwm_led14),
  1190. FUNCTION(wlan1_adc1),
  1191. FUNCTION(rgb_data_b0),
  1192. FUNCTION(pwm_led15),
  1193. FUNCTION(blsp_spi_mosi_b1),
  1194. FUNCTION(wlan1_adc0),
  1195. FUNCTION(rgb_data_b1),
  1196. FUNCTION(pwm_led16),
  1197. FUNCTION(blsp_spi_miso_b1),
  1198. FUNCTION(qdss_cti_trig_out_b0),
  1199. FUNCTION(wlan2_adc1),
  1200. FUNCTION(rgb_data_b2),
  1201. FUNCTION(pwm_led17),
  1202. FUNCTION(blsp_spi_cs_n_b1),
  1203. FUNCTION(wlan2_adc0),
  1204. FUNCTION(rgb_data_b3),
  1205. FUNCTION(pwm_led18),
  1206. FUNCTION(blsp_spi_clk_b1),
  1207. FUNCTION(rgb_data_b4),
  1208. FUNCTION(pwm_led19),
  1209. FUNCTION(ext_mclk1_b),
  1210. FUNCTION(qdss_traceclk_a),
  1211. FUNCTION(rgb_data_b5),
  1212. FUNCTION(pwm_led20),
  1213. FUNCTION(atest_char3),
  1214. FUNCTION(i2s_3_sck_b),
  1215. FUNCTION(ldo_update),
  1216. FUNCTION(bimc_dte0),
  1217. FUNCTION(rgb_hsync),
  1218. FUNCTION(pwm_led21),
  1219. FUNCTION(i2s_3_ws_b),
  1220. FUNCTION(dbg_out),
  1221. FUNCTION(rgb_vsync),
  1222. FUNCTION(i2s_3_data0_b),
  1223. FUNCTION(ldo_en),
  1224. FUNCTION(hdmi_dtest),
  1225. FUNCTION(rgb_de),
  1226. FUNCTION(i2s_3_data1_b),
  1227. FUNCTION(hdmi_lbk9),
  1228. FUNCTION(rgb_clk),
  1229. FUNCTION(atest_char1),
  1230. FUNCTION(i2s_3_data2_b),
  1231. FUNCTION(ebi_cdc),
  1232. FUNCTION(hdmi_lbk8),
  1233. FUNCTION(rgb_mdp),
  1234. FUNCTION(atest_char0),
  1235. FUNCTION(i2s_3_data3_b),
  1236. FUNCTION(hdmi_lbk7),
  1237. FUNCTION(rgb_data_b6),
  1238. FUNCTION(rgb_data_b7),
  1239. FUNCTION(hdmi_lbk6),
  1240. FUNCTION(rgmii_int),
  1241. FUNCTION(cri_trng1),
  1242. FUNCTION(rgmii_wol),
  1243. FUNCTION(cri_trng0),
  1244. FUNCTION(gcc_tlmm),
  1245. FUNCTION(rgmii_ck),
  1246. FUNCTION(rgmii_tx),
  1247. FUNCTION(hdmi_lbk5),
  1248. FUNCTION(hdmi_pixel),
  1249. FUNCTION(hdmi_rcv),
  1250. FUNCTION(hdmi_lbk4),
  1251. FUNCTION(rgmii_ctl),
  1252. FUNCTION(ext_lpass),
  1253. FUNCTION(rgmii_rx),
  1254. FUNCTION(cri_trng),
  1255. FUNCTION(hdmi_lbk3),
  1256. FUNCTION(hdmi_lbk2),
  1257. FUNCTION(qdss_cti_trig_out_b1),
  1258. FUNCTION(rgmii_mdio),
  1259. FUNCTION(hdmi_lbk1),
  1260. FUNCTION(rgmii_mdc),
  1261. FUNCTION(hdmi_lbk0),
  1262. FUNCTION(ir_in),
  1263. FUNCTION(wsa_en),
  1264. FUNCTION(rgb_data6),
  1265. FUNCTION(rgb_data7),
  1266. FUNCTION(atest_char2),
  1267. FUNCTION(ebi_ch0),
  1268. FUNCTION(blsp_uart3),
  1269. FUNCTION(blsp_spi3),
  1270. FUNCTION(sd_write),
  1271. FUNCTION(blsp_i2c3),
  1272. FUNCTION(gcc_gp1_clk_a),
  1273. FUNCTION(qdss_cti_trig_in_b1),
  1274. FUNCTION(gcc_gp2_clk_a),
  1275. FUNCTION(ext_mclk0),
  1276. FUNCTION(mclk_in1),
  1277. FUNCTION(i2s_1),
  1278. FUNCTION(dsd_clk_a),
  1279. FUNCTION(qdss_cti_trig_in_a1),
  1280. FUNCTION(rgmi_dll1),
  1281. FUNCTION(pwm_led22),
  1282. FUNCTION(pwm_led23),
  1283. FUNCTION(qdss_cti_trig_out_a0),
  1284. FUNCTION(rgmi_dll2),
  1285. FUNCTION(pwm_led1),
  1286. FUNCTION(qdss_cti_trig_out_a1),
  1287. FUNCTION(pwm_led2),
  1288. FUNCTION(i2s_2),
  1289. FUNCTION(pll_bist),
  1290. FUNCTION(ext_mclk1_a),
  1291. FUNCTION(mclk_in2),
  1292. FUNCTION(bimc_dte1),
  1293. FUNCTION(i2s_3_sck_a),
  1294. FUNCTION(i2s_3_ws_a),
  1295. };
  1296. /* Every pin is maintained as a single group, and missing or non-existing pin
  1297. * would be maintained as dummy group to synchronize pin group index with
  1298. * pin descriptor registered with pinctrl core.
  1299. * Clients would not be able to request these dummy pin groups.
  1300. */
  1301. static const struct msm_pingroup qcs404_groups[] = {
  1302. [0] = PINGROUP(0, SOUTH, _, _, _, _, _, _, _, _, _),
  1303. [1] = PINGROUP(1, SOUTH, _, _, _, _, _, _, _, _, _),
  1304. [2] = PINGROUP(2, SOUTH, _, _, _, _, _, _, _, _, _),
  1305. [3] = PINGROUP(3, SOUTH, _, _, _, _, _, _, _, _, _),
  1306. [4] = PINGROUP(4, SOUTH, _, _, _, _, _, _, _, _, _),
  1307. [5] = PINGROUP(5, SOUTH, _, _, _, _, _, _, _, _, _),
  1308. [6] = PINGROUP(6, SOUTH, _, _, _, _, _, _, _, _, _),
  1309. [7] = PINGROUP(7, SOUTH, _, _, _, _, _, _, _, _, _),
  1310. [8] = PINGROUP(8, SOUTH, _, _, _, _, _, _, _, _, _),
  1311. [9] = PINGROUP(9, SOUTH, _, _, _, _, _, _, _, _, _),
  1312. [10] = PINGROUP(10, SOUTH, _, _, _, _, _, _, _, _, _),
  1313. [11] = PINGROUP(11, SOUTH, _, _, _, _, _, _, _, _, _),
  1314. [12] = PINGROUP(12, SOUTH, _, _, _, _, _, _, _, _, _),
  1315. [13] = PINGROUP(13, SOUTH, _, _, _, _, _, _, _, _, _),
  1316. [14] = PINGROUP(14, SOUTH, hdmi_tx, _, _, _, _, _, _, _, _),
  1317. [15] = PINGROUP(15, SOUTH, hdmi_ddc, _, _, _, _, _, _, _, _),
  1318. [16] = PINGROUP(16, SOUTH, hdmi_ddc, _, _, _, _, _, _, _, _),
  1319. [17] = PINGROUP(17, NORTH, blsp_uart_tx_a2, blsp_spi2, m_voc, _, _, _, _, _, _),
  1320. [18] = PINGROUP(18, NORTH, blsp_uart_rx_a2, blsp_spi2, _, _, _, _, _, qdss_tracectl_a, _),
  1321. [19] = PINGROUP(19, NORTH, blsp_uart2, aud_cdc, blsp_i2c_sda_a2, blsp_spi2, _, qdss_tracedata_a, _, _, _),
  1322. [20] = PINGROUP(20, NORTH, blsp_uart2, aud_cdc, blsp_i2c_scl_a2, blsp_spi2, _, _, _, _, _),
  1323. [21] = PINGROUP(21, SOUTH, m_voc, _, _, _, _, _, _, _, qdss_cti_trig_in_b0),
  1324. [22] = PINGROUP(22, NORTH, blsp_uart1, blsp_spi_mosi_a1, _, _, _, _, _, _, _),
  1325. [23] = PINGROUP(23, NORTH, blsp_uart1, blsp_spi_miso_a1, _, _, _, _, _, qdss_tracedata_b, _),
  1326. [24] = PINGROUP(24, NORTH, blsp_uart1, blsp_i2c1, blsp_spi_cs_n_a1, gcc_plltest, _, _, _, _, _),
  1327. [25] = PINGROUP(25, NORTH, blsp_uart1, blsp_i2c1, blsp_spi_clk_a1, gcc_plltest, _, _, _, _, _),
  1328. [26] = PINGROUP(26, EAST, rgb_data0, blsp_uart5, blsp_spi5, adsp_ext, _, _, _, _, _),
  1329. [27] = PINGROUP(27, EAST, rgb_data1, blsp_uart5, blsp_spi5, prng_rosc, _, _, _, _, _),
  1330. [28] = PINGROUP(28, EAST, rgb_data2, blsp_uart5, blsp_i2c5, blsp_spi5, gcc_gp1_clk_b, _, _, _, _),
  1331. [29] = PINGROUP(29, EAST, rgb_data3, blsp_uart5, blsp_i2c5, blsp_spi5, gcc_gp2_clk_b, _, _, _, _),
  1332. [30] = PINGROUP(30, NORTH, blsp_spi0, blsp_uart0, gcc_gp3_clk_b, _, _, _, _, _, _),
  1333. [31] = PINGROUP(31, NORTH, blsp_spi0, blsp_uart0, _, _, _, _, _, _, _),
  1334. [32] = PINGROUP(32, NORTH, blsp_spi0, blsp_uart0, blsp_i2c0, _, _, _, _, _, _),
  1335. [33] = PINGROUP(33, NORTH, blsp_spi0, blsp_uart0, blsp_i2c0, _, _, _, _, _, _),
  1336. [34] = PINGROUP(34, SOUTH, _, qdss_traceclk_b, _, _, _, _, _, _, _),
  1337. [35] = PINGROUP(35, SOUTH, pcie_clk, _, qdss_tracedata_b, _, _, _, _, _, _),
  1338. [36] = PINGROUP(36, NORTH, _, _, _, _, _, _, qdss_tracedata_a, _, _),
  1339. [37] = PINGROUP(37, NORTH, nfc_irq, blsp_spi4, _, _, _, _, _, _, _),
  1340. [38] = PINGROUP(38, NORTH, nfc_dwl, blsp_spi4, audio_ts, _, _, _, _, _, _),
  1341. [39] = PINGROUP(39, EAST, rgb_data4, spi_lcd, blsp_uart_tx_b2, gcc_gp3_clk_a, qdss_tracedata_a, _, _, _, _),
  1342. [40] = PINGROUP(40, EAST, rgb_data5, spi_lcd, blsp_uart_rx_b2, _, qdss_tracedata_b, _, _, _, _),
  1343. [41] = PINGROUP(41, EAST, rgb_data0, blsp_i2c_sda_b2, _, qdss_tracedata_b, _, _, _, _, _),
  1344. [42] = PINGROUP(42, EAST, rgb_data1, blsp_i2c_scl_b2, _, _, _, _, _, qdss_tracedata_a, _),
  1345. [43] = PINGROUP(43, EAST, rgb_data2, pwm_led11, _, _, _, _, _, _, _),
  1346. [44] = PINGROUP(44, EAST, rgb_data3, pwm_led12, blsp_spi5, _, _, _, _, _, _),
  1347. [45] = PINGROUP(45, EAST, rgb_data4, pwm_led13, blsp_spi5, qdss_tracedata_b, _, _, _, _, _),
  1348. [46] = PINGROUP(46, EAST, rgb_data5, pwm_led14, blsp_spi5, qdss_tracedata_b, _, wlan1_adc1, _, _, _),
  1349. [47] = PINGROUP(47, EAST, rgb_data_b0, pwm_led15, blsp_spi_mosi_b1, qdss_tracedata_b, _, wlan1_adc0, _, _, _),
  1350. [48] = PINGROUP(48, EAST, rgb_data_b1, pwm_led16, blsp_spi_miso_b1, _, qdss_cti_trig_out_b0, _, wlan2_adc1, _, _),
  1351. [49] = PINGROUP(49, EAST, rgb_data_b2, pwm_led17, blsp_spi_cs_n_b1, _, qdss_tracedata_b, _, wlan2_adc0, _, _),
  1352. [50] = PINGROUP(50, EAST, rgb_data_b3, pwm_led18, blsp_spi_clk_b1, qdss_tracedata_b, _, _, _, _, _),
  1353. [51] = PINGROUP(51, EAST, rgb_data_b4, pwm_led19, ext_mclk1_b, qdss_traceclk_a, _, _, _, _, _),
  1354. [52] = PINGROUP(52, EAST, rgb_data_b5, pwm_led20, atest_char3, i2s_3_sck_b, ldo_update, bimc_dte0, _, _, _),
  1355. [53] = PINGROUP(53, EAST, rgb_hsync, pwm_led21, i2s_3_ws_b, dbg_out, _, _, _, _, _),
  1356. [54] = PINGROUP(54, EAST, rgb_vsync, i2s_3_data0_b, ldo_en, bimc_dte0, _, hdmi_dtest, _, _, _),
  1357. [55] = PINGROUP(55, EAST, rgb_de, i2s_3_data1_b, _, qdss_tracedata_b, _, hdmi_lbk9, _, _, _),
  1358. [56] = PINGROUP(56, EAST, rgb_clk, atest_char1, i2s_3_data2_b, ebi_cdc, _, hdmi_lbk8, _, _, _),
  1359. [57] = PINGROUP(57, EAST, rgb_mdp, atest_char0, i2s_3_data3_b, _, hdmi_lbk7, _, _, _, _),
  1360. [58] = PINGROUP(58, EAST, rgb_data_b6, _, ebi_cdc, _, _, _, _, _, _),
  1361. [59] = PINGROUP(59, EAST, rgb_data_b7, _, hdmi_lbk6, _, _, _, _, _, _),
  1362. [60] = PINGROUP(60, NORTH, _, _, _, _, _, _, _, _, _),
  1363. [61] = PINGROUP(61, NORTH, rgmii_int, cri_trng1, qdss_tracedata_b, _, _, _, _, _, _),
  1364. [62] = PINGROUP(62, NORTH, rgmii_wol, cri_trng0, qdss_tracedata_b, gcc_tlmm, _, _, _, _, _),
  1365. [63] = PINGROUP(63, NORTH, rgmii_ck, _, _, _, _, _, _, _, _),
  1366. [64] = PINGROUP(64, NORTH, rgmii_tx, _, hdmi_lbk5, _, _, _, _, _, _),
  1367. [65] = PINGROUP(65, NORTH, rgmii_tx, _, hdmi_pixel, _, _, _, _, _, _),
  1368. [66] = PINGROUP(66, NORTH, rgmii_tx, _, hdmi_rcv, _, _, _, _, _, _),
  1369. [67] = PINGROUP(67, NORTH, rgmii_tx, _, hdmi_lbk4, _, _, _, _, _, _),
  1370. [68] = PINGROUP(68, NORTH, rgmii_ctl, _, _, _, _, _, _, _, _),
  1371. [69] = PINGROUP(69, NORTH, rgmii_ck, ext_lpass, _, _, _, _, _, _, _),
  1372. [70] = PINGROUP(70, NORTH, rgmii_rx, cri_trng, _, _, _, _, _, _, _),
  1373. [71] = PINGROUP(71, NORTH, rgmii_rx, _, hdmi_lbk3, _, _, _, _, _, _),
  1374. [72] = PINGROUP(72, NORTH, rgmii_rx, _, hdmi_lbk2, _, _, _, _, _, _),
  1375. [73] = PINGROUP(73, NORTH, rgmii_rx, _, _, _, _, qdss_cti_trig_out_b1, _, _, _),
  1376. [74] = PINGROUP(74, NORTH, rgmii_ctl, _, _, _, _, _, _, _, _),
  1377. [75] = PINGROUP(75, NORTH, rgmii_mdio, _, hdmi_lbk1, _, _, _, _, _, _),
  1378. [76] = PINGROUP(76, NORTH, rgmii_mdc, _, _, _, _, _, hdmi_lbk0, _, _),
  1379. [77] = PINGROUP(77, NORTH, ir_in, wsa_en, _, _, _, _, _, _, _),
  1380. [78] = PINGROUP(78, EAST, rgb_data6, _, _, _, _, _, _, _, _),
  1381. [79] = PINGROUP(79, EAST, rgb_data7, _, _, _, _, _, _, _, _),
  1382. [80] = PINGROUP(80, EAST, rgb_data6, atest_char2, _, _, _, _, _, _, _),
  1383. [81] = PINGROUP(81, EAST, rgb_data7, ebi_ch0, _, _, _, _, _, _, _),
  1384. [82] = PINGROUP(82, NORTH, blsp_uart3, blsp_spi3, sd_write, _, _, _, _, _, qdss_tracedata_a),
  1385. [83] = PINGROUP(83, NORTH, blsp_uart3, blsp_spi3, _, _, _, _, qdss_tracedata_a, _, _),
  1386. [84] = PINGROUP(84, NORTH, blsp_uart3, blsp_i2c3, blsp_spi3, gcc_gp1_clk_a, qdss_cti_trig_in_b1, _, _, _, _),
  1387. [85] = PINGROUP(85, NORTH, blsp_uart3, blsp_i2c3, blsp_spi3, gcc_gp2_clk_a, qdss_tracedata_b, _, _, _, _),
  1388. [86] = PINGROUP(86, EAST, ext_mclk0, mclk_in1, _, _, _, _, _, _, _),
  1389. [87] = PINGROUP(87, EAST, i2s_1, dsd_clk_a, _, _, _, _, _, _, _),
  1390. [88] = PINGROUP(88, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _),
  1391. [89] = PINGROUP(89, EAST, i2s_1, i2s_1, _, _, _, _, _, _, qdss_tracedata_b),
  1392. [90] = PINGROUP(90, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _),
  1393. [91] = PINGROUP(91, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _),
  1394. [92] = PINGROUP(92, EAST, i2s_1, i2s_1, _, _, _, _, _, qdss_cti_trig_in_a1, _),
  1395. [93] = PINGROUP(93, EAST, i2s_1, pwm_led22, i2s_1, _, _, _, _, _, qdss_tracedata_b),
  1396. [94] = PINGROUP(94, EAST, i2s_1, pwm_led23, i2s_1, _, qdss_cti_trig_out_a0, _, rgmi_dll2, _, _),
  1397. [95] = PINGROUP(95, EAST, i2s_1, pwm_led1, i2s_1, _, qdss_cti_trig_out_a1, _, _, _, _),
  1398. [96] = PINGROUP(96, EAST, i2s_1, pwm_led2, _, _, _, _, _, _, _),
  1399. [97] = PINGROUP(97, EAST, i2s_2, _, _, _, _, _, _, _, _),
  1400. [98] = PINGROUP(98, EAST, i2s_2, _, _, _, _, _, _, _, _),
  1401. [99] = PINGROUP(99, EAST, i2s_2, _, _, _, _, _, _, _, _),
  1402. [100] = PINGROUP(100, EAST, i2s_2, pll_bist, _, _, _, _, _, _, _),
  1403. [101] = PINGROUP(101, EAST, i2s_2, _, _, _, _, _, _, _, _),
  1404. [102] = PINGROUP(102, EAST, i2s_2, _, _, _, _, _, _, _, _),
  1405. [103] = PINGROUP(103, EAST, ext_mclk1_a, mclk_in2, bimc_dte1, _, _, _, _, _, _),
  1406. [104] = PINGROUP(104, EAST, i2s_3_sck_a, _, _, _, _, _, _, _, _),
  1407. [105] = PINGROUP(105, EAST, i2s_3_ws_a, _, _, _, _, _, _, _, _),
  1408. [106] = PINGROUP(106, EAST, i2s_3_data0_a, ebi2_lcd, _, _, ebi_cdc, _, _, _, _),
  1409. [107] = PINGROUP(107, EAST, i2s_3_data1_a, ebi2_lcd, _, _, ebi_cdc, _, _, _, _),
  1410. [108] = PINGROUP(108, EAST, i2s_3_data2_a, ebi2_lcd, atest_char, pwm_led3, ebi_cdc, _, _, _, _),
  1411. [109] = PINGROUP(109, EAST, i2s_3_data3_a, ebi2_lcd, pwm_led4, bimc_dte1, _, _, _, _, _),
  1412. [110] = PINGROUP(110, EAST, i2s_4, ebi2_a, dsd_clk_b, pwm_led5, _, _, _, _, _),
  1413. [111] = PINGROUP(111, EAST, i2s_4, i2s_4, pwm_led6, ebi_cdc, _, _, _, _, _),
  1414. [112] = PINGROUP(112, EAST, i2s_4, i2s_4, pwm_led7, _, _, _, _, _, _),
  1415. [113] = PINGROUP(113, EAST, i2s_4, i2s_4, pwm_led8, _, _, _, _, _, _),
  1416. [114] = PINGROUP(114, EAST, i2s_4, i2s_4, pwm_led24, _, _, _, _, _, _),
  1417. [115] = PINGROUP(115, EAST, i2s_4, i2s_4, _, _, _, _, _, _, _),
  1418. [116] = PINGROUP(116, EAST, i2s_4, spkr_dac0, _, _, _, _, _, _, _),
  1419. [117] = PINGROUP(117, NORTH, blsp_i2c4, blsp_spi4, pwm_led9, _, _, _, _, _, _),
  1420. [118] = PINGROUP(118, NORTH, blsp_i2c4, blsp_spi4, pwm_led10, _, _, _, _, _, _),
  1421. [119] = PINGROUP(119, EAST, spdifrx_opt, _, _, _, _, _, _, _, _),
  1422. [120] = SDC_QDSD_PINGROUP(sdc1_rclk, 0xc2000, 15, 0),
  1423. [121] = SDC_QDSD_PINGROUP(sdc1_clk, 0xc2000, 13, 6),
  1424. [122] = SDC_QDSD_PINGROUP(sdc1_cmd, 0xc2000, 11, 3),
  1425. [123] = SDC_QDSD_PINGROUP(sdc1_data, 0xc2000, 9, 0),
  1426. [124] = SDC_QDSD_PINGROUP(sdc2_clk, 0xc3000, 14, 6),
  1427. [125] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xc3000, 11, 3),
  1428. [126] = SDC_QDSD_PINGROUP(sdc2_data, 0xc3000, 9, 0),
  1429. };
  1430. static const struct msm_pinctrl_soc_data qcs404_pinctrl = {
  1431. .pins = qcs404_pins,
  1432. .npins = ARRAY_SIZE(qcs404_pins),
  1433. .functions = qcs404_functions,
  1434. .nfunctions = ARRAY_SIZE(qcs404_functions),
  1435. .groups = qcs404_groups,
  1436. .ngroups = ARRAY_SIZE(qcs404_groups),
  1437. .ngpios = 120,
  1438. .tiles = qcs404_tiles,
  1439. .ntiles = ARRAY_SIZE(qcs404_tiles),
  1440. };
  1441. static int qcs404_pinctrl_probe(struct platform_device *pdev)
  1442. {
  1443. return msm_pinctrl_probe(pdev, &qcs404_pinctrl);
  1444. }
  1445. static const struct of_device_id qcs404_pinctrl_of_match[] = {
  1446. { .compatible = "qcom,qcs404-pinctrl", },
  1447. { },
  1448. };
  1449. static struct platform_driver qcs404_pinctrl_driver = {
  1450. .driver = {
  1451. .name = "qcs404-pinctrl",
  1452. .of_match_table = qcs404_pinctrl_of_match,
  1453. },
  1454. .probe = qcs404_pinctrl_probe,
  1455. .remove = msm_pinctrl_remove,
  1456. };
  1457. static int __init qcs404_pinctrl_init(void)
  1458. {
  1459. return platform_driver_register(&qcs404_pinctrl_driver);
  1460. }
  1461. arch_initcall(qcs404_pinctrl_init);
  1462. static void __exit qcs404_pinctrl_exit(void)
  1463. {
  1464. platform_driver_unregister(&qcs404_pinctrl_driver);
  1465. }
  1466. module_exit(qcs404_pinctrl_exit);
  1467. MODULE_DESCRIPTION("Qualcomm QCS404 pinctrl driver");
  1468. MODULE_LICENSE("GPL v2");
  1469. MODULE_DEVICE_TABLE(of, qcs404_pinctrl_of_match);