xref: /linux/drivers/pinctrl/qcom/pinctrl-x1e80100.c (revision bba2c3615bd6cfee7456d1130f2e6b01b3f4e9ba)
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4  */
5 
6 #include <linux/module.h>
7 #include <linux/of.h>
8 #include <linux/platform_device.h>
9 
10 #include "pinctrl-msm.h"
11 
12 #define REG_SIZE 0x1000
13 
14 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9)	\
15 	{					        \
16 		.grp = PINCTRL_PINGROUP("gpio" #id,	\
17 			gpio##id##_pins,		\
18 			ARRAY_SIZE(gpio##id##_pins)),	\
19 		.funcs = (int[]){			\
20 			msm_mux_gpio, /* gpio mode */	\
21 			msm_mux_##f1,			\
22 			msm_mux_##f2,			\
23 			msm_mux_##f3,			\
24 			msm_mux_##f4,			\
25 			msm_mux_##f5,			\
26 			msm_mux_##f6,			\
27 			msm_mux_##f7,			\
28 			msm_mux_##f8,			\
29 			msm_mux_##f9			\
30 		},				        \
31 		.nfuncs = 10,				\
32 		.ctl_reg = REG_SIZE * id,			\
33 		.io_reg = 0x4 + REG_SIZE * id,		\
34 		.intr_cfg_reg = 0x8 + REG_SIZE * id,		\
35 		.intr_status_reg = 0xc + REG_SIZE * id,	\
36 		.mux_bit = 2,			\
37 		.pull_bit = 0,			\
38 		.drv_bit = 6,			\
39 		.i2c_pull_bit = 13,		\
40 		.egpio_enable = 12,		\
41 		.egpio_present = 11,		\
42 		.oe_bit = 9,			\
43 		.in_bit = 0,			\
44 		.out_bit = 1,			\
45 		.intr_enable_bit = 0,		\
46 		.intr_status_bit = 0,		\
47 		.intr_target_bit = 5,		\
48 		.intr_target_kpss_val = 3,	\
49 		.intr_raw_status_bit = 4,	\
50 		.intr_polarity_bit = 1,		\
51 		.intr_detection_bit = 2,	\
52 		.intr_detection_width = 2,	\
53 	}
54 
55 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)	\
56 	{					        \
57 		.grp = PINCTRL_PINGROUP(#pg_name,	\
58 			pg_name##_pins,			\
59 			ARRAY_SIZE(pg_name##_pins)),	\
60 		.ctl_reg = ctl,				\
61 		.io_reg = 0,				\
62 		.intr_cfg_reg = 0,			\
63 		.intr_status_reg = 0,			\
64 		.mux_bit = -1,				\
65 		.pull_bit = pull,			\
66 		.drv_bit = drv,				\
67 		.oe_bit = -1,				\
68 		.in_bit = -1,				\
69 		.out_bit = -1,				\
70 		.intr_enable_bit = -1,			\
71 		.intr_status_bit = -1,			\
72 		.intr_target_bit = -1,			\
73 		.intr_raw_status_bit = -1,		\
74 		.intr_polarity_bit = -1,		\
75 		.intr_detection_bit = -1,		\
76 		.intr_detection_width = -1,		\
77 	}
78 
79 #define UFS_RESET(pg_name, offset)				\
80 	{					        \
81 		.grp = PINCTRL_PINGROUP(#pg_name,	\
82 			pg_name##_pins,			\
83 			ARRAY_SIZE(pg_name##_pins)),	\
84 		.ctl_reg = offset,			\
85 		.io_reg = offset + 0x4,			\
86 		.intr_cfg_reg = 0,			\
87 		.intr_status_reg = 0,			\
88 		.mux_bit = -1,				\
89 		.pull_bit = 3,				\
90 		.drv_bit = 0,				\
91 		.oe_bit = -1,				\
92 		.in_bit = -1,				\
93 		.out_bit = 0,				\
94 		.intr_enable_bit = -1,			\
95 		.intr_status_bit = -1,			\
96 		.intr_target_bit = -1,			\
97 		.intr_raw_status_bit = -1,		\
98 		.intr_polarity_bit = -1,		\
99 		.intr_detection_bit = -1,		\
100 		.intr_detection_width = -1,		\
101 	}
102 
103 static const struct pinctrl_pin_desc x1e80100_pins[] = {
104 	PINCTRL_PIN(0, "GPIO_0"),
105 	PINCTRL_PIN(1, "GPIO_1"),
106 	PINCTRL_PIN(2, "GPIO_2"),
107 	PINCTRL_PIN(3, "GPIO_3"),
108 	PINCTRL_PIN(4, "GPIO_4"),
109 	PINCTRL_PIN(5, "GPIO_5"),
110 	PINCTRL_PIN(6, "GPIO_6"),
111 	PINCTRL_PIN(7, "GPIO_7"),
112 	PINCTRL_PIN(8, "GPIO_8"),
113 	PINCTRL_PIN(9, "GPIO_9"),
114 	PINCTRL_PIN(10, "GPIO_10"),
115 	PINCTRL_PIN(11, "GPIO_11"),
116 	PINCTRL_PIN(12, "GPIO_12"),
117 	PINCTRL_PIN(13, "GPIO_13"),
118 	PINCTRL_PIN(14, "GPIO_14"),
119 	PINCTRL_PIN(15, "GPIO_15"),
120 	PINCTRL_PIN(16, "GPIO_16"),
121 	PINCTRL_PIN(17, "GPIO_17"),
122 	PINCTRL_PIN(18, "GPIO_18"),
123 	PINCTRL_PIN(19, "GPIO_19"),
124 	PINCTRL_PIN(20, "GPIO_20"),
125 	PINCTRL_PIN(21, "GPIO_21"),
126 	PINCTRL_PIN(22, "GPIO_22"),
127 	PINCTRL_PIN(23, "GPIO_23"),
128 	PINCTRL_PIN(24, "GPIO_24"),
129 	PINCTRL_PIN(25, "GPIO_25"),
130 	PINCTRL_PIN(26, "GPIO_26"),
131 	PINCTRL_PIN(27, "GPIO_27"),
132 	PINCTRL_PIN(28, "GPIO_28"),
133 	PINCTRL_PIN(29, "GPIO_29"),
134 	PINCTRL_PIN(30, "GPIO_30"),
135 	PINCTRL_PIN(31, "GPIO_31"),
136 	PINCTRL_PIN(32, "GPIO_32"),
137 	PINCTRL_PIN(33, "GPIO_33"),
138 	PINCTRL_PIN(34, "GPIO_34"),
139 	PINCTRL_PIN(35, "GPIO_35"),
140 	PINCTRL_PIN(36, "GPIO_36"),
141 	PINCTRL_PIN(37, "GPIO_37"),
142 	PINCTRL_PIN(38, "GPIO_38"),
143 	PINCTRL_PIN(39, "GPIO_39"),
144 	PINCTRL_PIN(40, "GPIO_40"),
145 	PINCTRL_PIN(41, "GPIO_41"),
146 	PINCTRL_PIN(42, "GPIO_42"),
147 	PINCTRL_PIN(43, "GPIO_43"),
148 	PINCTRL_PIN(44, "GPIO_44"),
149 	PINCTRL_PIN(45, "GPIO_45"),
150 	PINCTRL_PIN(46, "GPIO_46"),
151 	PINCTRL_PIN(47, "GPIO_47"),
152 	PINCTRL_PIN(48, "GPIO_48"),
153 	PINCTRL_PIN(49, "GPIO_49"),
154 	PINCTRL_PIN(50, "GPIO_50"),
155 	PINCTRL_PIN(51, "GPIO_51"),
156 	PINCTRL_PIN(52, "GPIO_52"),
157 	PINCTRL_PIN(53, "GPIO_53"),
158 	PINCTRL_PIN(54, "GPIO_54"),
159 	PINCTRL_PIN(55, "GPIO_55"),
160 	PINCTRL_PIN(56, "GPIO_56"),
161 	PINCTRL_PIN(57, "GPIO_57"),
162 	PINCTRL_PIN(58, "GPIO_58"),
163 	PINCTRL_PIN(59, "GPIO_59"),
164 	PINCTRL_PIN(60, "GPIO_60"),
165 	PINCTRL_PIN(61, "GPIO_61"),
166 	PINCTRL_PIN(62, "GPIO_62"),
167 	PINCTRL_PIN(63, "GPIO_63"),
168 	PINCTRL_PIN(64, "GPIO_64"),
169 	PINCTRL_PIN(65, "GPIO_65"),
170 	PINCTRL_PIN(66, "GPIO_66"),
171 	PINCTRL_PIN(67, "GPIO_67"),
172 	PINCTRL_PIN(68, "GPIO_68"),
173 	PINCTRL_PIN(69, "GPIO_69"),
174 	PINCTRL_PIN(70, "GPIO_70"),
175 	PINCTRL_PIN(71, "GPIO_71"),
176 	PINCTRL_PIN(72, "GPIO_72"),
177 	PINCTRL_PIN(73, "GPIO_73"),
178 	PINCTRL_PIN(74, "GPIO_74"),
179 	PINCTRL_PIN(75, "GPIO_75"),
180 	PINCTRL_PIN(76, "GPIO_76"),
181 	PINCTRL_PIN(77, "GPIO_77"),
182 	PINCTRL_PIN(78, "GPIO_78"),
183 	PINCTRL_PIN(79, "GPIO_79"),
184 	PINCTRL_PIN(80, "GPIO_80"),
185 	PINCTRL_PIN(81, "GPIO_81"),
186 	PINCTRL_PIN(82, "GPIO_82"),
187 	PINCTRL_PIN(83, "GPIO_83"),
188 	PINCTRL_PIN(84, "GPIO_84"),
189 	PINCTRL_PIN(85, "GPIO_85"),
190 	PINCTRL_PIN(86, "GPIO_86"),
191 	PINCTRL_PIN(87, "GPIO_87"),
192 	PINCTRL_PIN(88, "GPIO_88"),
193 	PINCTRL_PIN(89, "GPIO_89"),
194 	PINCTRL_PIN(90, "GPIO_90"),
195 	PINCTRL_PIN(91, "GPIO_91"),
196 	PINCTRL_PIN(92, "GPIO_92"),
197 	PINCTRL_PIN(93, "GPIO_93"),
198 	PINCTRL_PIN(94, "GPIO_94"),
199 	PINCTRL_PIN(95, "GPIO_95"),
200 	PINCTRL_PIN(96, "GPIO_96"),
201 	PINCTRL_PIN(97, "GPIO_97"),
202 	PINCTRL_PIN(98, "GPIO_98"),
203 	PINCTRL_PIN(99, "GPIO_99"),
204 	PINCTRL_PIN(100, "GPIO_100"),
205 	PINCTRL_PIN(101, "GPIO_101"),
206 	PINCTRL_PIN(102, "GPIO_102"),
207 	PINCTRL_PIN(103, "GPIO_103"),
208 	PINCTRL_PIN(104, "GPIO_104"),
209 	PINCTRL_PIN(105, "GPIO_105"),
210 	PINCTRL_PIN(106, "GPIO_106"),
211 	PINCTRL_PIN(107, "GPIO_107"),
212 	PINCTRL_PIN(108, "GPIO_108"),
213 	PINCTRL_PIN(109, "GPIO_109"),
214 	PINCTRL_PIN(110, "GPIO_110"),
215 	PINCTRL_PIN(111, "GPIO_111"),
216 	PINCTRL_PIN(112, "GPIO_112"),
217 	PINCTRL_PIN(113, "GPIO_113"),
218 	PINCTRL_PIN(114, "GPIO_114"),
219 	PINCTRL_PIN(115, "GPIO_115"),
220 	PINCTRL_PIN(116, "GPIO_116"),
221 	PINCTRL_PIN(117, "GPIO_117"),
222 	PINCTRL_PIN(118, "GPIO_118"),
223 	PINCTRL_PIN(119, "GPIO_119"),
224 	PINCTRL_PIN(120, "GPIO_120"),
225 	PINCTRL_PIN(121, "GPIO_121"),
226 	PINCTRL_PIN(122, "GPIO_122"),
227 	PINCTRL_PIN(123, "GPIO_123"),
228 	PINCTRL_PIN(124, "GPIO_124"),
229 	PINCTRL_PIN(125, "GPIO_125"),
230 	PINCTRL_PIN(126, "GPIO_126"),
231 	PINCTRL_PIN(127, "GPIO_127"),
232 	PINCTRL_PIN(128, "GPIO_128"),
233 	PINCTRL_PIN(129, "GPIO_129"),
234 	PINCTRL_PIN(130, "GPIO_130"),
235 	PINCTRL_PIN(131, "GPIO_131"),
236 	PINCTRL_PIN(132, "GPIO_132"),
237 	PINCTRL_PIN(133, "GPIO_133"),
238 	PINCTRL_PIN(134, "GPIO_134"),
239 	PINCTRL_PIN(135, "GPIO_135"),
240 	PINCTRL_PIN(136, "GPIO_136"),
241 	PINCTRL_PIN(137, "GPIO_137"),
242 	PINCTRL_PIN(138, "GPIO_138"),
243 	PINCTRL_PIN(139, "GPIO_139"),
244 	PINCTRL_PIN(140, "GPIO_140"),
245 	PINCTRL_PIN(141, "GPIO_141"),
246 	PINCTRL_PIN(142, "GPIO_142"),
247 	PINCTRL_PIN(143, "GPIO_143"),
248 	PINCTRL_PIN(144, "GPIO_144"),
249 	PINCTRL_PIN(145, "GPIO_145"),
250 	PINCTRL_PIN(146, "GPIO_146"),
251 	PINCTRL_PIN(147, "GPIO_147"),
252 	PINCTRL_PIN(148, "GPIO_148"),
253 	PINCTRL_PIN(149, "GPIO_149"),
254 	PINCTRL_PIN(150, "GPIO_150"),
255 	PINCTRL_PIN(151, "GPIO_151"),
256 	PINCTRL_PIN(152, "GPIO_152"),
257 	PINCTRL_PIN(153, "GPIO_153"),
258 	PINCTRL_PIN(154, "GPIO_154"),
259 	PINCTRL_PIN(155, "GPIO_155"),
260 	PINCTRL_PIN(156, "GPIO_156"),
261 	PINCTRL_PIN(157, "GPIO_157"),
262 	PINCTRL_PIN(158, "GPIO_158"),
263 	PINCTRL_PIN(159, "GPIO_159"),
264 	PINCTRL_PIN(160, "GPIO_160"),
265 	PINCTRL_PIN(161, "GPIO_161"),
266 	PINCTRL_PIN(162, "GPIO_162"),
267 	PINCTRL_PIN(163, "GPIO_163"),
268 	PINCTRL_PIN(164, "GPIO_164"),
269 	PINCTRL_PIN(165, "GPIO_165"),
270 	PINCTRL_PIN(166, "GPIO_166"),
271 	PINCTRL_PIN(167, "GPIO_167"),
272 	PINCTRL_PIN(168, "GPIO_168"),
273 	PINCTRL_PIN(169, "GPIO_169"),
274 	PINCTRL_PIN(170, "GPIO_170"),
275 	PINCTRL_PIN(171, "GPIO_171"),
276 	PINCTRL_PIN(172, "GPIO_172"),
277 	PINCTRL_PIN(173, "GPIO_173"),
278 	PINCTRL_PIN(174, "GPIO_174"),
279 	PINCTRL_PIN(175, "GPIO_175"),
280 	PINCTRL_PIN(176, "GPIO_176"),
281 	PINCTRL_PIN(177, "GPIO_177"),
282 	PINCTRL_PIN(178, "GPIO_178"),
283 	PINCTRL_PIN(179, "GPIO_179"),
284 	PINCTRL_PIN(180, "GPIO_180"),
285 	PINCTRL_PIN(181, "GPIO_181"),
286 	PINCTRL_PIN(182, "GPIO_182"),
287 	PINCTRL_PIN(183, "GPIO_183"),
288 	PINCTRL_PIN(184, "GPIO_184"),
289 	PINCTRL_PIN(185, "GPIO_185"),
290 	PINCTRL_PIN(186, "GPIO_186"),
291 	PINCTRL_PIN(187, "GPIO_187"),
292 	PINCTRL_PIN(188, "GPIO_188"),
293 	PINCTRL_PIN(189, "GPIO_189"),
294 	PINCTRL_PIN(190, "GPIO_190"),
295 	PINCTRL_PIN(191, "GPIO_191"),
296 	PINCTRL_PIN(192, "GPIO_192"),
297 	PINCTRL_PIN(193, "GPIO_193"),
298 	PINCTRL_PIN(194, "GPIO_194"),
299 	PINCTRL_PIN(195, "GPIO_195"),
300 	PINCTRL_PIN(196, "GPIO_196"),
301 	PINCTRL_PIN(197, "GPIO_197"),
302 	PINCTRL_PIN(198, "GPIO_198"),
303 	PINCTRL_PIN(199, "GPIO_199"),
304 	PINCTRL_PIN(200, "GPIO_200"),
305 	PINCTRL_PIN(201, "GPIO_201"),
306 	PINCTRL_PIN(202, "GPIO_202"),
307 	PINCTRL_PIN(203, "GPIO_203"),
308 	PINCTRL_PIN(204, "GPIO_204"),
309 	PINCTRL_PIN(205, "GPIO_205"),
310 	PINCTRL_PIN(206, "GPIO_206"),
311 	PINCTRL_PIN(207, "GPIO_207"),
312 	PINCTRL_PIN(208, "GPIO_208"),
313 	PINCTRL_PIN(209, "GPIO_209"),
314 	PINCTRL_PIN(210, "GPIO_210"),
315 	PINCTRL_PIN(211, "GPIO_211"),
316 	PINCTRL_PIN(212, "GPIO_212"),
317 	PINCTRL_PIN(213, "GPIO_213"),
318 	PINCTRL_PIN(214, "GPIO_214"),
319 	PINCTRL_PIN(215, "GPIO_215"),
320 	PINCTRL_PIN(216, "GPIO_216"),
321 	PINCTRL_PIN(217, "GPIO_217"),
322 	PINCTRL_PIN(218, "GPIO_218"),
323 	PINCTRL_PIN(219, "GPIO_219"),
324 	PINCTRL_PIN(220, "GPIO_220"),
325 	PINCTRL_PIN(221, "GPIO_221"),
326 	PINCTRL_PIN(222, "GPIO_222"),
327 	PINCTRL_PIN(223, "GPIO_223"),
328 	PINCTRL_PIN(224, "GPIO_224"),
329 	PINCTRL_PIN(225, "GPIO_225"),
330 	PINCTRL_PIN(226, "GPIO_226"),
331 	PINCTRL_PIN(227, "GPIO_227"),
332 	PINCTRL_PIN(228, "GPIO_228"),
333 	PINCTRL_PIN(229, "GPIO_229"),
334 	PINCTRL_PIN(230, "GPIO_230"),
335 	PINCTRL_PIN(231, "GPIO_231"),
336 	PINCTRL_PIN(232, "GPIO_232"),
337 	PINCTRL_PIN(233, "GPIO_233"),
338 	PINCTRL_PIN(234, "GPIO_234"),
339 	PINCTRL_PIN(235, "GPIO_235"),
340 	PINCTRL_PIN(236, "GPIO_236"),
341 	PINCTRL_PIN(237, "GPIO_237"),
342 	PINCTRL_PIN(238, "UFS_RESET"),
343 	PINCTRL_PIN(239, "SDC2_CLK"),
344 	PINCTRL_PIN(240, "SDC2_CMD"),
345 	PINCTRL_PIN(241, "SDC2_DATA"),
346 };
347 
348 #define DECLARE_MSM_GPIO_PINS(pin) \
349 	static const unsigned int gpio##pin##_pins[] = { pin }
350 DECLARE_MSM_GPIO_PINS(0);
351 DECLARE_MSM_GPIO_PINS(1);
352 DECLARE_MSM_GPIO_PINS(2);
353 DECLARE_MSM_GPIO_PINS(3);
354 DECLARE_MSM_GPIO_PINS(4);
355 DECLARE_MSM_GPIO_PINS(5);
356 DECLARE_MSM_GPIO_PINS(6);
357 DECLARE_MSM_GPIO_PINS(7);
358 DECLARE_MSM_GPIO_PINS(8);
359 DECLARE_MSM_GPIO_PINS(9);
360 DECLARE_MSM_GPIO_PINS(10);
361 DECLARE_MSM_GPIO_PINS(11);
362 DECLARE_MSM_GPIO_PINS(12);
363 DECLARE_MSM_GPIO_PINS(13);
364 DECLARE_MSM_GPIO_PINS(14);
365 DECLARE_MSM_GPIO_PINS(15);
366 DECLARE_MSM_GPIO_PINS(16);
367 DECLARE_MSM_GPIO_PINS(17);
368 DECLARE_MSM_GPIO_PINS(18);
369 DECLARE_MSM_GPIO_PINS(19);
370 DECLARE_MSM_GPIO_PINS(20);
371 DECLARE_MSM_GPIO_PINS(21);
372 DECLARE_MSM_GPIO_PINS(22);
373 DECLARE_MSM_GPIO_PINS(23);
374 DECLARE_MSM_GPIO_PINS(24);
375 DECLARE_MSM_GPIO_PINS(25);
376 DECLARE_MSM_GPIO_PINS(26);
377 DECLARE_MSM_GPIO_PINS(27);
378 DECLARE_MSM_GPIO_PINS(28);
379 DECLARE_MSM_GPIO_PINS(29);
380 DECLARE_MSM_GPIO_PINS(30);
381 DECLARE_MSM_GPIO_PINS(31);
382 DECLARE_MSM_GPIO_PINS(32);
383 DECLARE_MSM_GPIO_PINS(33);
384 DECLARE_MSM_GPIO_PINS(34);
385 DECLARE_MSM_GPIO_PINS(35);
386 DECLARE_MSM_GPIO_PINS(36);
387 DECLARE_MSM_GPIO_PINS(37);
388 DECLARE_MSM_GPIO_PINS(38);
389 DECLARE_MSM_GPIO_PINS(39);
390 DECLARE_MSM_GPIO_PINS(40);
391 DECLARE_MSM_GPIO_PINS(41);
392 DECLARE_MSM_GPIO_PINS(42);
393 DECLARE_MSM_GPIO_PINS(43);
394 DECLARE_MSM_GPIO_PINS(44);
395 DECLARE_MSM_GPIO_PINS(45);
396 DECLARE_MSM_GPIO_PINS(46);
397 DECLARE_MSM_GPIO_PINS(47);
398 DECLARE_MSM_GPIO_PINS(48);
399 DECLARE_MSM_GPIO_PINS(49);
400 DECLARE_MSM_GPIO_PINS(50);
401 DECLARE_MSM_GPIO_PINS(51);
402 DECLARE_MSM_GPIO_PINS(52);
403 DECLARE_MSM_GPIO_PINS(53);
404 DECLARE_MSM_GPIO_PINS(54);
405 DECLARE_MSM_GPIO_PINS(55);
406 DECLARE_MSM_GPIO_PINS(56);
407 DECLARE_MSM_GPIO_PINS(57);
408 DECLARE_MSM_GPIO_PINS(58);
409 DECLARE_MSM_GPIO_PINS(59);
410 DECLARE_MSM_GPIO_PINS(60);
411 DECLARE_MSM_GPIO_PINS(61);
412 DECLARE_MSM_GPIO_PINS(62);
413 DECLARE_MSM_GPIO_PINS(63);
414 DECLARE_MSM_GPIO_PINS(64);
415 DECLARE_MSM_GPIO_PINS(65);
416 DECLARE_MSM_GPIO_PINS(66);
417 DECLARE_MSM_GPIO_PINS(67);
418 DECLARE_MSM_GPIO_PINS(68);
419 DECLARE_MSM_GPIO_PINS(69);
420 DECLARE_MSM_GPIO_PINS(70);
421 DECLARE_MSM_GPIO_PINS(71);
422 DECLARE_MSM_GPIO_PINS(72);
423 DECLARE_MSM_GPIO_PINS(73);
424 DECLARE_MSM_GPIO_PINS(74);
425 DECLARE_MSM_GPIO_PINS(75);
426 DECLARE_MSM_GPIO_PINS(76);
427 DECLARE_MSM_GPIO_PINS(77);
428 DECLARE_MSM_GPIO_PINS(78);
429 DECLARE_MSM_GPIO_PINS(79);
430 DECLARE_MSM_GPIO_PINS(80);
431 DECLARE_MSM_GPIO_PINS(81);
432 DECLARE_MSM_GPIO_PINS(82);
433 DECLARE_MSM_GPIO_PINS(83);
434 DECLARE_MSM_GPIO_PINS(84);
435 DECLARE_MSM_GPIO_PINS(85);
436 DECLARE_MSM_GPIO_PINS(86);
437 DECLARE_MSM_GPIO_PINS(87);
438 DECLARE_MSM_GPIO_PINS(88);
439 DECLARE_MSM_GPIO_PINS(89);
440 DECLARE_MSM_GPIO_PINS(90);
441 DECLARE_MSM_GPIO_PINS(91);
442 DECLARE_MSM_GPIO_PINS(92);
443 DECLARE_MSM_GPIO_PINS(93);
444 DECLARE_MSM_GPIO_PINS(94);
445 DECLARE_MSM_GPIO_PINS(95);
446 DECLARE_MSM_GPIO_PINS(96);
447 DECLARE_MSM_GPIO_PINS(97);
448 DECLARE_MSM_GPIO_PINS(98);
449 DECLARE_MSM_GPIO_PINS(99);
450 DECLARE_MSM_GPIO_PINS(100);
451 DECLARE_MSM_GPIO_PINS(101);
452 DECLARE_MSM_GPIO_PINS(102);
453 DECLARE_MSM_GPIO_PINS(103);
454 DECLARE_MSM_GPIO_PINS(104);
455 DECLARE_MSM_GPIO_PINS(105);
456 DECLARE_MSM_GPIO_PINS(106);
457 DECLARE_MSM_GPIO_PINS(107);
458 DECLARE_MSM_GPIO_PINS(108);
459 DECLARE_MSM_GPIO_PINS(109);
460 DECLARE_MSM_GPIO_PINS(110);
461 DECLARE_MSM_GPIO_PINS(111);
462 DECLARE_MSM_GPIO_PINS(112);
463 DECLARE_MSM_GPIO_PINS(113);
464 DECLARE_MSM_GPIO_PINS(114);
465 DECLARE_MSM_GPIO_PINS(115);
466 DECLARE_MSM_GPIO_PINS(116);
467 DECLARE_MSM_GPIO_PINS(117);
468 DECLARE_MSM_GPIO_PINS(118);
469 DECLARE_MSM_GPIO_PINS(119);
470 DECLARE_MSM_GPIO_PINS(120);
471 DECLARE_MSM_GPIO_PINS(121);
472 DECLARE_MSM_GPIO_PINS(122);
473 DECLARE_MSM_GPIO_PINS(123);
474 DECLARE_MSM_GPIO_PINS(124);
475 DECLARE_MSM_GPIO_PINS(125);
476 DECLARE_MSM_GPIO_PINS(126);
477 DECLARE_MSM_GPIO_PINS(127);
478 DECLARE_MSM_GPIO_PINS(128);
479 DECLARE_MSM_GPIO_PINS(129);
480 DECLARE_MSM_GPIO_PINS(130);
481 DECLARE_MSM_GPIO_PINS(131);
482 DECLARE_MSM_GPIO_PINS(132);
483 DECLARE_MSM_GPIO_PINS(133);
484 DECLARE_MSM_GPIO_PINS(134);
485 DECLARE_MSM_GPIO_PINS(135);
486 DECLARE_MSM_GPIO_PINS(136);
487 DECLARE_MSM_GPIO_PINS(137);
488 DECLARE_MSM_GPIO_PINS(138);
489 DECLARE_MSM_GPIO_PINS(139);
490 DECLARE_MSM_GPIO_PINS(140);
491 DECLARE_MSM_GPIO_PINS(141);
492 DECLARE_MSM_GPIO_PINS(142);
493 DECLARE_MSM_GPIO_PINS(143);
494 DECLARE_MSM_GPIO_PINS(144);
495 DECLARE_MSM_GPIO_PINS(145);
496 DECLARE_MSM_GPIO_PINS(146);
497 DECLARE_MSM_GPIO_PINS(147);
498 DECLARE_MSM_GPIO_PINS(148);
499 DECLARE_MSM_GPIO_PINS(149);
500 DECLARE_MSM_GPIO_PINS(150);
501 DECLARE_MSM_GPIO_PINS(151);
502 DECLARE_MSM_GPIO_PINS(152);
503 DECLARE_MSM_GPIO_PINS(153);
504 DECLARE_MSM_GPIO_PINS(154);
505 DECLARE_MSM_GPIO_PINS(155);
506 DECLARE_MSM_GPIO_PINS(156);
507 DECLARE_MSM_GPIO_PINS(157);
508 DECLARE_MSM_GPIO_PINS(158);
509 DECLARE_MSM_GPIO_PINS(159);
510 DECLARE_MSM_GPIO_PINS(160);
511 DECLARE_MSM_GPIO_PINS(161);
512 DECLARE_MSM_GPIO_PINS(162);
513 DECLARE_MSM_GPIO_PINS(163);
514 DECLARE_MSM_GPIO_PINS(164);
515 DECLARE_MSM_GPIO_PINS(165);
516 DECLARE_MSM_GPIO_PINS(166);
517 DECLARE_MSM_GPIO_PINS(167);
518 DECLARE_MSM_GPIO_PINS(168);
519 DECLARE_MSM_GPIO_PINS(169);
520 DECLARE_MSM_GPIO_PINS(170);
521 DECLARE_MSM_GPIO_PINS(171);
522 DECLARE_MSM_GPIO_PINS(172);
523 DECLARE_MSM_GPIO_PINS(173);
524 DECLARE_MSM_GPIO_PINS(174);
525 DECLARE_MSM_GPIO_PINS(175);
526 DECLARE_MSM_GPIO_PINS(176);
527 DECLARE_MSM_GPIO_PINS(177);
528 DECLARE_MSM_GPIO_PINS(178);
529 DECLARE_MSM_GPIO_PINS(179);
530 DECLARE_MSM_GPIO_PINS(180);
531 DECLARE_MSM_GPIO_PINS(181);
532 DECLARE_MSM_GPIO_PINS(182);
533 DECLARE_MSM_GPIO_PINS(183);
534 DECLARE_MSM_GPIO_PINS(184);
535 DECLARE_MSM_GPIO_PINS(185);
536 DECLARE_MSM_GPIO_PINS(186);
537 DECLARE_MSM_GPIO_PINS(187);
538 DECLARE_MSM_GPIO_PINS(188);
539 DECLARE_MSM_GPIO_PINS(189);
540 DECLARE_MSM_GPIO_PINS(190);
541 DECLARE_MSM_GPIO_PINS(191);
542 DECLARE_MSM_GPIO_PINS(192);
543 DECLARE_MSM_GPIO_PINS(193);
544 DECLARE_MSM_GPIO_PINS(194);
545 DECLARE_MSM_GPIO_PINS(195);
546 DECLARE_MSM_GPIO_PINS(196);
547 DECLARE_MSM_GPIO_PINS(197);
548 DECLARE_MSM_GPIO_PINS(198);
549 DECLARE_MSM_GPIO_PINS(199);
550 DECLARE_MSM_GPIO_PINS(200);
551 DECLARE_MSM_GPIO_PINS(201);
552 DECLARE_MSM_GPIO_PINS(202);
553 DECLARE_MSM_GPIO_PINS(203);
554 DECLARE_MSM_GPIO_PINS(204);
555 DECLARE_MSM_GPIO_PINS(205);
556 DECLARE_MSM_GPIO_PINS(206);
557 DECLARE_MSM_GPIO_PINS(207);
558 DECLARE_MSM_GPIO_PINS(208);
559 DECLARE_MSM_GPIO_PINS(209);
560 DECLARE_MSM_GPIO_PINS(210);
561 DECLARE_MSM_GPIO_PINS(211);
562 DECLARE_MSM_GPIO_PINS(212);
563 DECLARE_MSM_GPIO_PINS(213);
564 DECLARE_MSM_GPIO_PINS(214);
565 DECLARE_MSM_GPIO_PINS(215);
566 DECLARE_MSM_GPIO_PINS(216);
567 DECLARE_MSM_GPIO_PINS(217);
568 DECLARE_MSM_GPIO_PINS(218);
569 DECLARE_MSM_GPIO_PINS(219);
570 DECLARE_MSM_GPIO_PINS(220);
571 DECLARE_MSM_GPIO_PINS(221);
572 DECLARE_MSM_GPIO_PINS(222);
573 DECLARE_MSM_GPIO_PINS(223);
574 DECLARE_MSM_GPIO_PINS(224);
575 DECLARE_MSM_GPIO_PINS(225);
576 DECLARE_MSM_GPIO_PINS(226);
577 DECLARE_MSM_GPIO_PINS(227);
578 DECLARE_MSM_GPIO_PINS(228);
579 DECLARE_MSM_GPIO_PINS(229);
580 DECLARE_MSM_GPIO_PINS(230);
581 DECLARE_MSM_GPIO_PINS(231);
582 DECLARE_MSM_GPIO_PINS(232);
583 DECLARE_MSM_GPIO_PINS(233);
584 DECLARE_MSM_GPIO_PINS(234);
585 DECLARE_MSM_GPIO_PINS(235);
586 DECLARE_MSM_GPIO_PINS(236);
587 DECLARE_MSM_GPIO_PINS(237);
588 
589 static const unsigned int ufs_reset_pins[] = { 238 };
590 static const unsigned int sdc2_clk_pins[] = { 239 };
591 static const unsigned int sdc2_cmd_pins[] = { 240 };
592 static const unsigned int sdc2_data_pins[] = { 241 };
593 
594 enum x1e80100_functions {
595 	msm_mux_gpio,
596 	msm_mux_RESOUT_GPIO,
597 	msm_mux_aon_cci,
598 	msm_mux_aoss_cti,
599 	msm_mux_atest_char,
600 	msm_mux_atest_char0,
601 	msm_mux_atest_char1,
602 	msm_mux_atest_char2,
603 	msm_mux_atest_char3,
604 	msm_mux_atest_usb,
605 	msm_mux_audio_ext,
606 	msm_mux_audio_ref,
607 	msm_mux_cam_aon,
608 	msm_mux_cam_mclk,
609 	msm_mux_cci_async,
610 	msm_mux_cci_i2c,
611 	msm_mux_cci_timer0,
612 	msm_mux_cci_timer1,
613 	msm_mux_cci_timer2,
614 	msm_mux_cci_timer3,
615 	msm_mux_cci_timer4,
616 	msm_mux_cmu_rng0,
617 	msm_mux_cmu_rng1,
618 	msm_mux_cmu_rng2,
619 	msm_mux_cmu_rng3,
620 	msm_mux_cri_trng,
621 	msm_mux_dbg_out,
622 	msm_mux_ddr_bist,
623 	msm_mux_ddr_pxi0,
624 	msm_mux_ddr_pxi1,
625 	msm_mux_ddr_pxi2,
626 	msm_mux_ddr_pxi3,
627 	msm_mux_ddr_pxi4,
628 	msm_mux_ddr_pxi5,
629 	msm_mux_ddr_pxi6,
630 	msm_mux_ddr_pxi7,
631 	msm_mux_edp0_hot,
632 	msm_mux_edp0_lcd,
633 	msm_mux_edp1_hot,
634 	msm_mux_edp1_lcd,
635 	msm_mux_eusb0_ac,
636 	msm_mux_eusb1_ac,
637 	msm_mux_eusb2_ac,
638 	msm_mux_eusb3_ac,
639 	msm_mux_eusb5_ac,
640 	msm_mux_eusb6_ac,
641 	msm_mux_gcc_gp1,
642 	msm_mux_gcc_gp2,
643 	msm_mux_gcc_gp3,
644 	msm_mux_i2s0_data0,
645 	msm_mux_i2s0_data1,
646 	msm_mux_i2s0_sck,
647 	msm_mux_i2s0_ws,
648 	msm_mux_i2s1_data0,
649 	msm_mux_i2s1_data1,
650 	msm_mux_i2s1_sck,
651 	msm_mux_i2s1_ws,
652 	msm_mux_ibi_i3c,
653 	msm_mux_jitter_bist,
654 	msm_mux_mdp_vsync0,
655 	msm_mux_mdp_vsync1,
656 	msm_mux_mdp_vsync2,
657 	msm_mux_mdp_vsync3,
658 	msm_mux_mdp_vsync4,
659 	msm_mux_mdp_vsync5,
660 	msm_mux_mdp_vsync6,
661 	msm_mux_mdp_vsync7,
662 	msm_mux_mdp_vsync8,
663 	msm_mux_pcie3_clk,
664 	msm_mux_pcie4_clk,
665 	msm_mux_pcie5_clk,
666 	msm_mux_pcie6a_clk,
667 	msm_mux_pcie6b_clk,
668 	msm_mux_phase_flag,
669 	msm_mux_pll_bist,
670 	msm_mux_pll_clk,
671 	msm_mux_prng_rosc0,
672 	msm_mux_prng_rosc1,
673 	msm_mux_prng_rosc2,
674 	msm_mux_prng_rosc3,
675 	msm_mux_qdss_cti,
676 	msm_mux_qdss_gpio,
677 	msm_mux_qspi00,
678 	msm_mux_qspi01,
679 	msm_mux_qspi02,
680 	msm_mux_qspi03,
681 	msm_mux_qspi0_clk,
682 	msm_mux_qspi0_cs0,
683 	msm_mux_qspi0_cs1,
684 	msm_mux_qup0_se0,
685 	msm_mux_qup0_se1,
686 	msm_mux_qup0_se2,
687 	msm_mux_qup0_se3,
688 	msm_mux_qup0_se4,
689 	msm_mux_qup0_se5,
690 	msm_mux_qup0_se6,
691 	msm_mux_qup0_se7,
692 	msm_mux_qup1_se0,
693 	msm_mux_qup1_se1,
694 	msm_mux_qup1_se2,
695 	msm_mux_qup1_se3,
696 	msm_mux_qup1_se4,
697 	msm_mux_qup1_se5,
698 	msm_mux_qup1_se6,
699 	msm_mux_qup1_se7,
700 	msm_mux_qup2_se0,
701 	msm_mux_qup2_se1,
702 	msm_mux_qup2_se2,
703 	msm_mux_qup2_se3,
704 	msm_mux_qup2_se4,
705 	msm_mux_qup2_se5,
706 	msm_mux_qup2_se6,
707 	msm_mux_qup2_se7,
708 	msm_mux_sd_write,
709 	msm_mux_sdc4_clk,
710 	msm_mux_sdc4_cmd,
711 	msm_mux_sdc4_data0,
712 	msm_mux_sdc4_data1,
713 	msm_mux_sdc4_data2,
714 	msm_mux_sdc4_data3,
715 	msm_mux_sys_throttle,
716 	msm_mux_tb_trig,
717 	msm_mux_tgu_ch0,
718 	msm_mux_tgu_ch1,
719 	msm_mux_tgu_ch2,
720 	msm_mux_tgu_ch3,
721 	msm_mux_tgu_ch4,
722 	msm_mux_tgu_ch5,
723 	msm_mux_tgu_ch6,
724 	msm_mux_tgu_ch7,
725 	msm_mux_tmess_prng0,
726 	msm_mux_tmess_prng1,
727 	msm_mux_tmess_prng2,
728 	msm_mux_tmess_prng3,
729 	msm_mux_tsense_pwm1,
730 	msm_mux_tsense_pwm2,
731 	msm_mux_tsense_pwm3,
732 	msm_mux_tsense_pwm4,
733 	msm_mux_usb0_dp,
734 	msm_mux_usb0_phy,
735 	msm_mux_usb0_sbrx,
736 	msm_mux_usb0_sbtx,
737 	msm_mux_usb1_dp,
738 	msm_mux_usb1_phy,
739 	msm_mux_usb1_sbrx,
740 	msm_mux_usb1_sbtx,
741 	msm_mux_usb2_dp,
742 	msm_mux_usb2_phy,
743 	msm_mux_usb2_sbrx,
744 	msm_mux_usb2_sbtx,
745 	msm_mux_vsense_trigger,
746 	msm_mux__,
747 };
748 
749 static const char * const gpio_groups[] = {
750 	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
751 	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
752 	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
753 	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
754 	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
755 	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
756 	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
757 	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
758 	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
759 	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
760 	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
761 	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
762 	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
763 	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
764 	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
765 	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
766 	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
767 	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
768 	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
769 	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
770 	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
771 	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
772 	"gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
773 	"gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158",
774 	"gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
775 	"gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170",
776 	"gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176",
777 	"gpio177", "gpio178", "gpio179", "gpio180", "gpio181", "gpio182",
778 	"gpio183", "gpio184", "gpio185", "gpio186", "gpio187", "gpio188",
779 	"gpio189", "gpio190", "gpio191", "gpio192", "gpio193", "gpio194",
780 	"gpio195", "gpio196", "gpio197", "gpio198", "gpio199", "gpio200",
781 	"gpio201", "gpio202", "gpio203", "gpio204", "gpio205", "gpio206",
782 	"gpio207", "gpio208", "gpio209", "gpio210", "gpio211", "gpio212",
783 	"gpio213", "gpio214", "gpio215", "gpio216", "gpio217", "gpio218",
784 	"gpio219", "gpio220", "gpio221", "gpio222", "gpio223", "gpio224",
785 	"gpio225", "gpio226", "gpio227", "gpio228", "gpio229", "gpio230",
786 	"gpio231", "gpio232", "gpio233", "gpio234", "gpio235", "gpio236",
787 	"gpio237",
788 };
789 
790 static const char * const RESOUT_GPIO_groups[] = {
791 	"gpio160",
792 };
793 
794 static const char * const aon_cci_groups[] = {
795 	"gpio235", "gpio236",
796 };
797 
798 static const char * const aoss_cti_groups[] = {
799 	"gpio60", "gpio61", "gpio62", "gpio63",
800 };
801 
802 static const char * const atest_char_groups[] = {
803 	"gpio181",
804 };
805 
806 static const char * const atest_char0_groups[] = {
807 	"gpio185",
808 };
809 
810 static const char * const atest_char1_groups[] = {
811 	"gpio184",
812 };
813 
814 static const char * const atest_char2_groups[] = {
815 	"gpio188",
816 };
817 
818 static const char * const atest_char3_groups[] = {
819 	"gpio182",
820 };
821 
822 static const char * const atest_usb_groups[] = {
823 	"gpio9", "gpio10", "gpio35", "gpio38", "gpio41", "gpio42",
824 	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48",
825 	"gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54",
826 	"gpio58", "gpio59", "gpio65", "gpio66", "gpio67", "gpio72",
827 	"gpio73", "gpio74", "gpio75", "gpio80", "gpio81", "gpio83",
828 };
829 
830 static const char * const audio_ext_groups[] = {
831 	"gpio134", "gpio142",
832 };
833 
834 static const char * const audio_ref_groups[] = {
835 	"gpio142",
836 };
837 
838 static const char * const cam_aon_groups[] = {
839 	"gpio100",
840 };
841 
842 static const char * const cam_mclk_groups[] = {
843 	"gpio96", "gpio97", "gpio98", "gpio99",
844 };
845 
846 static const char * const cci_async_groups[] = {
847 	"gpio111", "gpio112", "gpio113",
848 };
849 
850 static const char * const cci_i2c_groups[] = {
851 	"gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106",
852 };
853 
854 static const char * const cci_timer0_groups[] = {
855 	"gpio109",
856 };
857 
858 static const char * const cci_timer1_groups[] = {
859 	"gpio110",
860 };
861 
862 static const char * const cci_timer2_groups[] = {
863 	"gpio111",
864 };
865 
866 static const char * const cci_timer3_groups[] = {
867 	"gpio112",
868 };
869 
870 static const char * const cci_timer4_groups[] = {
871 	"gpio113",
872 };
873 
874 static const char * const cmu_rng0_groups[] = {
875 	"gpio48",
876 };
877 
878 static const char * const cmu_rng1_groups[] = {
879 	"gpio47",
880 };
881 
882 static const char * const cmu_rng2_groups[] = {
883 	"gpio46",
884 };
885 
886 static const char * const cmu_rng3_groups[] = {
887 	"gpio45",
888 };
889 
890 static const char * const cri_trng_groups[] = {
891 	"gpio187",
892 };
893 
894 static const char * const dbg_out_groups[] = {
895 	"gpio51",
896 };
897 
898 static const char * const ddr_bist_groups[] = {
899 	"gpio54", "gpio55", "gpio56", "gpio57",
900 };
901 
902 static const char * const ddr_pxi0_groups[] = {
903 	"gpio9", "gpio38",
904 };
905 
906 static const char * const ddr_pxi1_groups[] = {
907 	"gpio10", "gpio41",
908 };
909 
910 static const char * const ddr_pxi2_groups[] = {
911 	"gpio42", "gpio43",
912 };
913 
914 static const char * const ddr_pxi3_groups[] = {
915 	"gpio44", "gpio45",
916 };
917 
918 static const char * const ddr_pxi4_groups[] = {
919 	"gpio46", "gpio47",
920 };
921 
922 static const char * const ddr_pxi5_groups[] = {
923 	"gpio48", "gpio49",
924 };
925 
926 static const char * const ddr_pxi6_groups[] = {
927 	"gpio50", "gpio51",
928 };
929 
930 static const char * const ddr_pxi7_groups[] = {
931 	"gpio52", "gpio53",
932 };
933 
934 static const char * const edp0_hot_groups[] = {
935 	"gpio119",
936 };
937 
938 static const char * const edp0_lcd_groups[] = {
939 	"gpio120",
940 };
941 
942 static const char * const edp1_hot_groups[] = {
943 	"gpio120",
944 };
945 
946 static const char * const edp1_lcd_groups[] = {
947 	"gpio115", "gpio119",
948 };
949 
950 static const char * const eusb0_ac_groups[] = {
951 	"gpio168",
952 };
953 
954 static const char * const eusb1_ac_groups[] = {
955 	"gpio177",
956 };
957 
958 static const char * const eusb2_ac_groups[] = {
959 	"gpio186",
960 };
961 
962 static const char * const eusb3_ac_groups[] = {
963 	"gpio169",
964 };
965 
966 static const char * const eusb5_ac_groups[] = {
967 	"gpio187",
968 };
969 
970 static const char * const eusb6_ac_groups[] = {
971 	"gpio178",
972 };
973 
974 static const char * const gcc_gp1_groups[] = {
975 	"gpio71", "gpio72",
976 };
977 
978 static const char * const gcc_gp2_groups[] = {
979 	"gpio64", "gpio73",
980 };
981 
982 static const char * const gcc_gp3_groups[] = {
983 	"gpio74", "gpio82",
984 };
985 
986 static const char * const i2s0_data0_groups[] = {
987 	"gpio136",
988 };
989 
990 static const char * const i2s0_data1_groups[] = {
991 	"gpio137",
992 };
993 
994 static const char * const i2s0_sck_groups[] = {
995 	"gpio135",
996 };
997 
998 static const char * const i2s0_ws_groups[] = {
999 	"gpio138",
1000 };
1001 
1002 static const char * const i2s1_data0_groups[] = {
1003 	"gpio140",
1004 };
1005 
1006 static const char * const i2s1_data1_groups[] = {
1007 	"gpio142",
1008 };
1009 
1010 static const char * const i2s1_sck_groups[] = {
1011 	"gpio139",
1012 };
1013 
1014 static const char * const i2s1_ws_groups[] = {
1015 	"gpio141",
1016 };
1017 
1018 static const char * const ibi_i3c_groups[] = {
1019 	"gpio0", "gpio1", "gpio32", "gpio33", "gpio36", "gpio37", "gpio68",
1020 	"gpio69",
1021 };
1022 
1023 static const char * const jitter_bist_groups[] = {
1024 	"gpio42",
1025 };
1026 
1027 static const char * const mdp_vsync0_groups[] = {
1028 	"gpio114",
1029 };
1030 
1031 static const char * const mdp_vsync1_groups[] = {
1032 	"gpio114",
1033 };
1034 
1035 static const char * const mdp_vsync2_groups[] = {
1036 	"gpio115",
1037 };
1038 
1039 static const char * const mdp_vsync3_groups[] = {
1040 	"gpio115",
1041 };
1042 
1043 static const char * const mdp_vsync4_groups[] = {
1044 	"gpio109",
1045 };
1046 
1047 static const char * const mdp_vsync5_groups[] = {
1048 	"gpio110",
1049 };
1050 
1051 static const char * const mdp_vsync6_groups[] = {
1052 	"gpio111",
1053 };
1054 
1055 static const char * const mdp_vsync7_groups[] = {
1056 	"gpio112",
1057 };
1058 
1059 static const char * const mdp_vsync8_groups[] = {
1060 	"gpio113",
1061 };
1062 
1063 static const char * const pcie3_clk_groups[] = {
1064 	"gpio144",
1065 };
1066 
1067 static const char * const pcie4_clk_groups[] = {
1068 	"gpio147",
1069 };
1070 
1071 static const char * const pcie5_clk_groups[] = {
1072 	"gpio150",
1073 };
1074 
1075 static const char * const pcie6a_clk_groups[] = {
1076 	"gpio153",
1077 };
1078 
1079 static const char * const pcie6b_clk_groups[] = {
1080 	"gpio156",
1081 };
1082 
1083 static const char * const phase_flag_groups[] = {
1084 	"gpio6", "gpio7", "gpio8", "gpio11", "gpio12", "gpio13",
1085 	"gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19",
1086 	"gpio20", "gpio21", "gpio22", "gpio23", "gpio24", "gpio25",
1087 	"gpio26", "gpio27", "gpio39", "gpio40", "gpio76", "gpio77",
1088 	"gpio78", "gpio181", "gpio182", "gpio184", "gpio185",
1089 	"gpio186", "gpio187", "gpio188",
1090 };
1091 
1092 static const char * const pll_bist_groups[] = {
1093 	"gpio28",
1094 };
1095 
1096 static const char * const pll_clk_groups[] = {
1097 	"gpio35",
1098 };
1099 
1100 static const char * const prng_rosc0_groups[] = {
1101 	"gpio186",
1102 };
1103 
1104 static const char * const prng_rosc1_groups[] = {
1105 	"gpio188",
1106 };
1107 
1108 static const char * const prng_rosc2_groups[] = {
1109 	"gpio182",
1110 };
1111 
1112 static const char * const prng_rosc3_groups[] = {
1113 	"gpio181",
1114 };
1115 
1116 static const char * const qdss_cti_groups[] = {
1117 	"gpio18", "gpio19", "gpio23", "gpio27", "gpio161", "gpio162",
1118 	"gpio215", "gpio217",
1119 };
1120 
1121 static const char * const qdss_gpio_groups[] = {
1122 	"gpio96", "gpio97", "gpio98", "gpio99", "gpio100", "gpio101",
1123 	"gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107",
1124 	"gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113",
1125 	"gpio219", "gpio220", "gpio221", "gpio222", "gpio223", "gpio224",
1126 	"gpio225", "gpio226", "gpio227", "gpio228", "gpio229", "gpio230",
1127 	"gpio231", "gpio232", "gpio233", "gpio234", "gpio235", "gpio236",
1128 };
1129 
1130 static const char * const qspi00_groups[] = {
1131 	"gpio128",
1132 };
1133 
1134 static const char * const qspi01_groups[] = {
1135 	"gpio129",
1136 };
1137 
1138 static const char * const qspi02_groups[] = {
1139 	"gpio130",
1140 };
1141 
1142 static const char * const qspi03_groups[] = {
1143 	"gpio131",
1144 };
1145 
1146 static const char * const qspi0_clk_groups[] = {
1147 	"gpio127",
1148 };
1149 
1150 static const char * const qspi0_cs0_groups[] = {
1151 	"gpio132",
1152 };
1153 
1154 static const char * const qspi0_cs1_groups[] = {
1155 	"gpio133",
1156 };
1157 
1158 static const char * const qup0_se0_groups[] = {
1159 	"gpio0", "gpio1", "gpio2", "gpio3",
1160 };
1161 
1162 static const char * const qup0_se1_groups[] = {
1163 	"gpio4", "gpio5", "gpio6", "gpio7",
1164 };
1165 
1166 static const char * const qup0_se2_groups[] = {
1167 	"gpio8", "gpio9", "gpio10", "gpio11", "gpio17", "gpio18", "gpio19",
1168 };
1169 
1170 static const char * const qup0_se3_groups[] = {
1171 	"gpio12", "gpio13", "gpio14", "gpio15", "gpio21", "gpio22", "gpio23",
1172 };
1173 
1174 static const char * const qup0_se4_groups[] = {
1175 	"gpio16", "gpio17", "gpio18", "gpio19",
1176 };
1177 
1178 static const char * const qup0_se5_groups[] = {
1179 	"gpio20", "gpio21", "gpio22", "gpio23",
1180 };
1181 
1182 static const char * const qup0_se6_groups[] = {
1183 	"gpio24", "gpio25", "gpio26", "gpio27",
1184 };
1185 
1186 static const char * const qup0_se7_groups[] = {
1187 	"gpio12", "gpio13", "gpio14", "gpio15",
1188 };
1189 
1190 static const char * const qup1_se0_groups[] = {
1191 	"gpio32", "gpio33", "gpio34", "gpio35",
1192 };
1193 
1194 static const char * const qup1_se1_groups[] = {
1195 	"gpio36", "gpio37", "gpio38", "gpio39",
1196 };
1197 
1198 static const char * const qup1_se2_groups[] = {
1199 	"gpio40", "gpio41", "gpio42", "gpio43", "gpio49", "gpio50", "gpio51",
1200 };
1201 
1202 static const char * const qup1_se3_groups[] = {
1203 	"gpio33", "gpio34", "gpio35", "gpio44", "gpio45", "gpio46", "gpio47",
1204 };
1205 
1206 static const char * const qup1_se4_groups[] = {
1207 	"gpio48", "gpio49", "gpio50", "gpio51",
1208 };
1209 
1210 static const char * const qup1_se5_groups[] = {
1211 	"gpio52", "gpio53", "gpio54", "gpio55",
1212 };
1213 
1214 static const char * const qup1_se6_groups[] = {
1215 	"gpio56", "gpio57", "gpio58", "gpio59",
1216 };
1217 
1218 static const char * const qup1_se7_groups[] = {
1219 	"gpio52", "gpio53", "gpio54", "gpio55",
1220 };
1221 
1222 static const char * const qup2_se0_groups[] = {
1223 	"gpio64", "gpio65", "gpio66", "gpio67",
1224 };
1225 
1226 static const char * const qup2_se1_groups[] = {
1227 	"gpio68", "gpio69", "gpio70", "gpio71",
1228 };
1229 
1230 static const char * const qup2_se2_groups[] = {
1231 	"gpio72", "gpio73", "gpio74", "gpio75", "gpio81", "gpio82", "gpio83",
1232 };
1233 
1234 static const char * const qup2_se3_groups[] = {
1235 	"gpio65", "gpio66", "gpio67", "gpio76", "gpio77", "gpio78", "gpio79",
1236 };
1237 
1238 static const char * const qup2_se4_groups[] = {
1239 	"gpio80", "gpio81", "gpio82", "gpio83",
1240 };
1241 
1242 static const char * const qup2_se5_groups[] = {
1243 	"gpio84", "gpio85", "gpio86", "gpio87",
1244 };
1245 
1246 static const char * const qup2_se6_groups[] = {
1247 	"gpio88", "gpio89", "gpio90", "gpio91",
1248 };
1249 
1250 static const char * const qup2_se7_groups[] = {
1251 	"gpio84", "gpio85", "gpio86", "gpio87",
1252 };
1253 
1254 static const char * const sd_write_groups[] = {
1255 	"gpio162",
1256 };
1257 
1258 static const char * const sdc4_clk_groups[] = {
1259 	"gpio127",
1260 };
1261 
1262 static const char * const sdc4_cmd_groups[] = {
1263 	"gpio132",
1264 };
1265 
1266 static const char * const sdc4_data0_groups[] = {
1267 	"gpio128",
1268 };
1269 
1270 static const char * const sdc4_data1_groups[] = {
1271 	"gpio129",
1272 };
1273 
1274 static const char * const sdc4_data2_groups[] = {
1275 	"gpio130",
1276 };
1277 
1278 static const char * const sdc4_data3_groups[] = {
1279 	"gpio131",
1280 };
1281 
1282 static const char * const sys_throttle_groups[] = {
1283 	"gpio39", "gpio94",
1284 };
1285 
1286 static const char * const tb_trig_groups[] = {
1287 	"gpio133", "gpio137",
1288 };
1289 
1290 static const char * const tgu_ch0_groups[] = {
1291 	"gpio81",
1292 };
1293 
1294 static const char * const tgu_ch1_groups[] = {
1295 	"gpio65",
1296 };
1297 
1298 static const char * const tgu_ch2_groups[] = {
1299 	"gpio66",
1300 };
1301 
1302 static const char * const tgu_ch3_groups[] = {
1303 	"gpio67",
1304 };
1305 
1306 static const char * const tgu_ch4_groups[] = {
1307 	"gpio68",
1308 };
1309 
1310 static const char * const tgu_ch5_groups[] = {
1311 	"gpio69",
1312 };
1313 
1314 static const char * const tgu_ch6_groups[] = {
1315 	"gpio83",
1316 };
1317 
1318 static const char * const tgu_ch7_groups[] = {
1319 	"gpio80",
1320 };
1321 
1322 static const char * const tmess_prng0_groups[] = {
1323 	"gpio92",
1324 };
1325 
1326 static const char * const tmess_prng1_groups[] = {
1327 	"gpio93",
1328 };
1329 
1330 static const char * const tmess_prng2_groups[] = {
1331 	"gpio94",
1332 };
1333 
1334 static const char * const tmess_prng3_groups[] = {
1335 	"gpio95",
1336 };
1337 
1338 static const char * const tsense_pwm1_groups[] = {
1339 	"gpio34",
1340 };
1341 
1342 static const char * const tsense_pwm2_groups[] = {
1343 	"gpio34",
1344 };
1345 
1346 static const char * const tsense_pwm3_groups[] = {
1347 	"gpio34",
1348 };
1349 
1350 static const char * const tsense_pwm4_groups[] = {
1351 	"gpio34",
1352 };
1353 
1354 static const char * const usb0_dp_groups[] = {
1355 	"gpio122",
1356 };
1357 
1358 static const char * const usb0_phy_groups[] = {
1359 	"gpio121",
1360 };
1361 
1362 static const char * const usb0_sbrx_groups[] = {
1363 	"gpio163",
1364 };
1365 
1366 static const char * const usb0_sbtx_groups[] = {
1367 	"gpio164", "gpio165",
1368 };
1369 
1370 static const char * const usb1_dp_groups[] = {
1371 	"gpio124",
1372 };
1373 
1374 static const char * const usb1_phy_groups[] = {
1375 	"gpio123",
1376 };
1377 
1378 static const char * const usb1_sbrx_groups[] = {
1379 	"gpio172",
1380 };
1381 
1382 static const char * const usb1_sbtx_groups[] = {
1383 	"gpio173", "gpio174",
1384 };
1385 
1386 static const char * const usb2_dp_groups[] = {
1387 	"gpio126",
1388 };
1389 
1390 static const char * const usb2_phy_groups[] = {
1391 	"gpio125",
1392 };
1393 
1394 static const char * const usb2_sbrx_groups[] = {
1395 	"gpio181",
1396 };
1397 
1398 static const char * const usb2_sbtx_groups[] = {
1399 	"gpio182", "gpio183",
1400 };
1401 
1402 static const char * const vsense_trigger_groups[] = {
1403 	"gpio38",
1404 };
1405 
1406 static const struct pinfunction x1e80100_functions[] = {
1407 	MSM_GPIO_PIN_FUNCTION(gpio),
1408 	MSM_PIN_FUNCTION(RESOUT_GPIO),
1409 	MSM_PIN_FUNCTION(aon_cci),
1410 	MSM_PIN_FUNCTION(aoss_cti),
1411 	MSM_PIN_FUNCTION(atest_char),
1412 	MSM_PIN_FUNCTION(atest_char0),
1413 	MSM_PIN_FUNCTION(atest_char1),
1414 	MSM_PIN_FUNCTION(atest_char2),
1415 	MSM_PIN_FUNCTION(atest_char3),
1416 	MSM_PIN_FUNCTION(atest_usb),
1417 	MSM_PIN_FUNCTION(audio_ext),
1418 	MSM_PIN_FUNCTION(audio_ref),
1419 	MSM_PIN_FUNCTION(cam_aon),
1420 	MSM_PIN_FUNCTION(cam_mclk),
1421 	MSM_PIN_FUNCTION(cci_async),
1422 	MSM_PIN_FUNCTION(cci_i2c),
1423 	MSM_PIN_FUNCTION(cci_timer0),
1424 	MSM_PIN_FUNCTION(cci_timer1),
1425 	MSM_PIN_FUNCTION(cci_timer2),
1426 	MSM_PIN_FUNCTION(cci_timer3),
1427 	MSM_PIN_FUNCTION(cci_timer4),
1428 	MSM_PIN_FUNCTION(cmu_rng0),
1429 	MSM_PIN_FUNCTION(cmu_rng1),
1430 	MSM_PIN_FUNCTION(cmu_rng2),
1431 	MSM_PIN_FUNCTION(cmu_rng3),
1432 	MSM_PIN_FUNCTION(cri_trng),
1433 	MSM_PIN_FUNCTION(dbg_out),
1434 	MSM_PIN_FUNCTION(ddr_bist),
1435 	MSM_PIN_FUNCTION(ddr_pxi0),
1436 	MSM_PIN_FUNCTION(ddr_pxi1),
1437 	MSM_PIN_FUNCTION(ddr_pxi2),
1438 	MSM_PIN_FUNCTION(ddr_pxi3),
1439 	MSM_PIN_FUNCTION(ddr_pxi4),
1440 	MSM_PIN_FUNCTION(ddr_pxi5),
1441 	MSM_PIN_FUNCTION(ddr_pxi6),
1442 	MSM_PIN_FUNCTION(ddr_pxi7),
1443 	MSM_PIN_FUNCTION(edp0_hot),
1444 	MSM_PIN_FUNCTION(edp0_lcd),
1445 	MSM_PIN_FUNCTION(edp1_hot),
1446 	MSM_PIN_FUNCTION(edp1_lcd),
1447 	MSM_PIN_FUNCTION(eusb0_ac),
1448 	MSM_PIN_FUNCTION(eusb1_ac),
1449 	MSM_PIN_FUNCTION(eusb2_ac),
1450 	MSM_PIN_FUNCTION(eusb3_ac),
1451 	MSM_PIN_FUNCTION(eusb5_ac),
1452 	MSM_PIN_FUNCTION(eusb6_ac),
1453 	MSM_PIN_FUNCTION(gcc_gp1),
1454 	MSM_PIN_FUNCTION(gcc_gp2),
1455 	MSM_PIN_FUNCTION(gcc_gp3),
1456 	MSM_PIN_FUNCTION(i2s0_data0),
1457 	MSM_PIN_FUNCTION(i2s0_data1),
1458 	MSM_PIN_FUNCTION(i2s0_sck),
1459 	MSM_PIN_FUNCTION(i2s0_ws),
1460 	MSM_PIN_FUNCTION(i2s1_data0),
1461 	MSM_PIN_FUNCTION(i2s1_data1),
1462 	MSM_PIN_FUNCTION(i2s1_sck),
1463 	MSM_PIN_FUNCTION(i2s1_ws),
1464 	MSM_PIN_FUNCTION(ibi_i3c),
1465 	MSM_PIN_FUNCTION(jitter_bist),
1466 	MSM_PIN_FUNCTION(mdp_vsync0),
1467 	MSM_PIN_FUNCTION(mdp_vsync1),
1468 	MSM_PIN_FUNCTION(mdp_vsync2),
1469 	MSM_PIN_FUNCTION(mdp_vsync3),
1470 	MSM_PIN_FUNCTION(mdp_vsync4),
1471 	MSM_PIN_FUNCTION(mdp_vsync5),
1472 	MSM_PIN_FUNCTION(mdp_vsync6),
1473 	MSM_PIN_FUNCTION(mdp_vsync7),
1474 	MSM_PIN_FUNCTION(mdp_vsync8),
1475 	MSM_PIN_FUNCTION(pcie3_clk),
1476 	MSM_PIN_FUNCTION(pcie4_clk),
1477 	MSM_PIN_FUNCTION(pcie5_clk),
1478 	MSM_PIN_FUNCTION(pcie6a_clk),
1479 	MSM_PIN_FUNCTION(pcie6b_clk),
1480 	MSM_PIN_FUNCTION(phase_flag),
1481 	MSM_PIN_FUNCTION(pll_bist),
1482 	MSM_PIN_FUNCTION(pll_clk),
1483 	MSM_PIN_FUNCTION(prng_rosc0),
1484 	MSM_PIN_FUNCTION(prng_rosc1),
1485 	MSM_PIN_FUNCTION(prng_rosc2),
1486 	MSM_PIN_FUNCTION(prng_rosc3),
1487 	MSM_PIN_FUNCTION(qdss_cti),
1488 	MSM_PIN_FUNCTION(qdss_gpio),
1489 	MSM_PIN_FUNCTION(qspi00),
1490 	MSM_PIN_FUNCTION(qspi01),
1491 	MSM_PIN_FUNCTION(qspi02),
1492 	MSM_PIN_FUNCTION(qspi03),
1493 	MSM_PIN_FUNCTION(qspi0_clk),
1494 	MSM_PIN_FUNCTION(qspi0_cs0),
1495 	MSM_PIN_FUNCTION(qspi0_cs1),
1496 	MSM_PIN_FUNCTION(qup0_se0),
1497 	MSM_PIN_FUNCTION(qup0_se1),
1498 	MSM_PIN_FUNCTION(qup0_se2),
1499 	MSM_PIN_FUNCTION(qup0_se3),
1500 	MSM_PIN_FUNCTION(qup0_se4),
1501 	MSM_PIN_FUNCTION(qup0_se5),
1502 	MSM_PIN_FUNCTION(qup0_se6),
1503 	MSM_PIN_FUNCTION(qup0_se7),
1504 	MSM_PIN_FUNCTION(qup1_se0),
1505 	MSM_PIN_FUNCTION(qup1_se1),
1506 	MSM_PIN_FUNCTION(qup1_se2),
1507 	MSM_PIN_FUNCTION(qup1_se3),
1508 	MSM_PIN_FUNCTION(qup1_se4),
1509 	MSM_PIN_FUNCTION(qup1_se5),
1510 	MSM_PIN_FUNCTION(qup1_se6),
1511 	MSM_PIN_FUNCTION(qup1_se7),
1512 	MSM_PIN_FUNCTION(qup2_se0),
1513 	MSM_PIN_FUNCTION(qup2_se1),
1514 	MSM_PIN_FUNCTION(qup2_se2),
1515 	MSM_PIN_FUNCTION(qup2_se3),
1516 	MSM_PIN_FUNCTION(qup2_se4),
1517 	MSM_PIN_FUNCTION(qup2_se5),
1518 	MSM_PIN_FUNCTION(qup2_se6),
1519 	MSM_PIN_FUNCTION(qup2_se7),
1520 	MSM_PIN_FUNCTION(sd_write),
1521 	MSM_PIN_FUNCTION(sdc4_clk),
1522 	MSM_PIN_FUNCTION(sdc4_cmd),
1523 	MSM_PIN_FUNCTION(sdc4_data0),
1524 	MSM_PIN_FUNCTION(sdc4_data1),
1525 	MSM_PIN_FUNCTION(sdc4_data2),
1526 	MSM_PIN_FUNCTION(sdc4_data3),
1527 	MSM_PIN_FUNCTION(sys_throttle),
1528 	MSM_PIN_FUNCTION(tb_trig),
1529 	MSM_PIN_FUNCTION(tgu_ch0),
1530 	MSM_PIN_FUNCTION(tgu_ch1),
1531 	MSM_PIN_FUNCTION(tgu_ch2),
1532 	MSM_PIN_FUNCTION(tgu_ch3),
1533 	MSM_PIN_FUNCTION(tgu_ch4),
1534 	MSM_PIN_FUNCTION(tgu_ch5),
1535 	MSM_PIN_FUNCTION(tgu_ch6),
1536 	MSM_PIN_FUNCTION(tgu_ch7),
1537 	MSM_PIN_FUNCTION(tmess_prng0),
1538 	MSM_PIN_FUNCTION(tmess_prng1),
1539 	MSM_PIN_FUNCTION(tmess_prng2),
1540 	MSM_PIN_FUNCTION(tmess_prng3),
1541 	MSM_PIN_FUNCTION(tsense_pwm1),
1542 	MSM_PIN_FUNCTION(tsense_pwm2),
1543 	MSM_PIN_FUNCTION(tsense_pwm3),
1544 	MSM_PIN_FUNCTION(tsense_pwm4),
1545 	MSM_PIN_FUNCTION(usb0_dp),
1546 	MSM_PIN_FUNCTION(usb0_phy),
1547 	MSM_PIN_FUNCTION(usb0_sbrx),
1548 	MSM_PIN_FUNCTION(usb0_sbtx),
1549 	MSM_PIN_FUNCTION(usb1_dp),
1550 	MSM_PIN_FUNCTION(usb1_phy),
1551 	MSM_PIN_FUNCTION(usb1_sbrx),
1552 	MSM_PIN_FUNCTION(usb1_sbtx),
1553 	MSM_PIN_FUNCTION(usb2_dp),
1554 	MSM_PIN_FUNCTION(usb2_phy),
1555 	MSM_PIN_FUNCTION(usb2_sbrx),
1556 	MSM_PIN_FUNCTION(usb2_sbtx),
1557 	MSM_PIN_FUNCTION(vsense_trigger),
1558 };
1559 
1560 /*
1561  * Every pin is maintained as a single group, and missing or non-existing pin
1562  * would be maintained as dummy group to synchronize pin group index with
1563  * pin descriptor registered with pinctrl core.
1564  * Clients would not be able to request these dummy pin groups.
1565  */
1566 static const struct msm_pingroup x1e80100_groups[] = {
1567 	[0] = PINGROUP(0, qup0_se0, ibi_i3c, _, _, _, _, _, _, _),
1568 	[1] = PINGROUP(1, qup0_se0, ibi_i3c, _, _, _, _, _, _, _),
1569 	[2] = PINGROUP(2, qup0_se0, _, _, _, _, _, _, _, _),
1570 	[3] = PINGROUP(3, qup0_se0, _, _, _, _, _, _, _, _),
1571 	[4] = PINGROUP(4, qup0_se1, _, _, _, _, _, _, _, _),
1572 	[5] = PINGROUP(5, qup0_se1, _, _, _, _, _, _, _, _),
1573 	[6] = PINGROUP(6, qup0_se1, phase_flag, _, _, _, _, _, _, _),
1574 	[7] = PINGROUP(7, qup0_se1, phase_flag, _, _, _, _, _, _, _),
1575 	[8] = PINGROUP(8, qup0_se2, phase_flag, _, _, _, _, _, _, _),
1576 	[9] = PINGROUP(9, qup0_se2, _, atest_usb, ddr_pxi0, _, _, _, _, _),
1577 	[10] = PINGROUP(10, qup0_se2, _, atest_usb, ddr_pxi1, _, _, _, _, _),
1578 	[11] = PINGROUP(11, qup0_se2, phase_flag, _, _, _, _, _, _, _),
1579 	[12] = PINGROUP(12, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
1580 	[13] = PINGROUP(13, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
1581 	[14] = PINGROUP(14, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
1582 	[15] = PINGROUP(15, qup0_se3, qup0_se7, phase_flag, _, _, _, _, _, _),
1583 	[16] = PINGROUP(16, qup0_se4, phase_flag, _, _, _, _, _, _, _),
1584 	[17] = PINGROUP(17, qup0_se4, qup0_se2, phase_flag, _, _, _, _, _, _),
1585 	[18] = PINGROUP(18, qup0_se4, qup0_se2, phase_flag, _, qdss_cti, _, _, _, _),
1586 	[19] = PINGROUP(19, qup0_se4, qup0_se2, phase_flag, _, qdss_cti, _, _, _, _),
1587 	[20] = PINGROUP(20, qup0_se5, _, phase_flag, _, _, _, _, _, _),
1588 	[21] = PINGROUP(21, qup0_se5, qup0_se3, _, phase_flag, _, _, _, _, _),
1589 	[22] = PINGROUP(22, qup0_se5, qup0_se3, _, phase_flag, _, _, _, _, _),
1590 	[23] = PINGROUP(23, qup0_se5, qup0_se3, phase_flag, _, qdss_cti, _, _, _, _),
1591 	[24] = PINGROUP(24, qup0_se6, phase_flag, _, _, _, _, _, _, _),
1592 	[25] = PINGROUP(25, qup0_se6, phase_flag, _, _, _, _, _, _, _),
1593 	[26] = PINGROUP(26, qup0_se6, phase_flag, _, _, _, _, _, _, _),
1594 	[27] = PINGROUP(27, qup0_se6, phase_flag, _, qdss_cti, _, _, _, _, _),
1595 	[28] = PINGROUP(28, pll_bist, _, _, _, _, _, _, _, _),
1596 	[29] = PINGROUP(29, _, _, _, _, _, _, _, _, _),
1597 	[30] = PINGROUP(30, _, _, _, _, _, _, _, _, _),
1598 	[31] = PINGROUP(31, _, _, _, _, _, _, _, _, _),
1599 	[32] = PINGROUP(32, qup1_se0, ibi_i3c, _, _, _, _, _, _, _),
1600 	[33] = PINGROUP(33, qup1_se0, ibi_i3c, qup1_se3, _, _, _, _, _, _),
1601 	[34] = PINGROUP(34, qup1_se0, qup1_se3, tsense_pwm1, tsense_pwm2, tsense_pwm3, tsense_pwm4, _, _, _),
1602 	[35] = PINGROUP(35, qup1_se0, qup1_se3, pll_clk, atest_usb, _, _, _, _, _),
1603 	[36] = PINGROUP(36, qup1_se1, ibi_i3c, _, _, _, _, _, _, _),
1604 	[37] = PINGROUP(37, qup1_se1, ibi_i3c, _, _, _, _, _, _, _),
1605 	[38] = PINGROUP(38, qup1_se1, vsense_trigger, atest_usb, ddr_pxi0, _, _, _, _, _),
1606 	[39] = PINGROUP(39, qup1_se1, sys_throttle, phase_flag, _, _, _, _, _, _),
1607 	[40] = PINGROUP(40, qup1_se2, phase_flag, _, _, _, _, _, _, _),
1608 	[41] = PINGROUP(41, qup1_se2, atest_usb, ddr_pxi1, _, _, _, _, _, _),
1609 	[42] = PINGROUP(42, qup1_se2, jitter_bist, atest_usb, ddr_pxi2, _, _, _, _, _),
1610 	[43] = PINGROUP(43, qup1_se2, _, atest_usb, ddr_pxi2, _, _, _, _, _),
1611 	[44] = PINGROUP(44, qup1_se3, _, atest_usb, ddr_pxi3, _, _, _, _, _),
1612 	[45] = PINGROUP(45, qup1_se3, cmu_rng3, _, atest_usb, ddr_pxi3, _, _, _, _),
1613 	[46] = PINGROUP(46, qup1_se3, cmu_rng2, _, atest_usb, ddr_pxi4, _, _, _, _),
1614 	[47] = PINGROUP(47, qup1_se3, cmu_rng1, _, atest_usb, ddr_pxi4, _, _, _, _),
1615 	[48] = PINGROUP(48, qup1_se4, cmu_rng0, _, atest_usb, ddr_pxi5, _, _, _, _),
1616 	[49] = PINGROUP(49, qup1_se4, qup1_se2, _, atest_usb, ddr_pxi5, _, _, _, _),
1617 	[50] = PINGROUP(50, qup1_se4, qup1_se2, _, atest_usb, ddr_pxi6, _, _, _, _),
1618 	[51] = PINGROUP(51, qup1_se4, qup1_se2, dbg_out, atest_usb, ddr_pxi6, _, _, _, _),
1619 	[52] = PINGROUP(52, qup1_se5, qup1_se7, atest_usb, ddr_pxi7, _, _, _, _, _),
1620 	[53] = PINGROUP(53, qup1_se5, qup1_se7, _, atest_usb, ddr_pxi7, _, _, _, _),
1621 	[54] = PINGROUP(54, qup1_se5, qup1_se7, ddr_bist, atest_usb, _, _, _, _, _),
1622 	[55] = PINGROUP(55, qup1_se5, qup1_se7, ddr_bist, _, _, _, _, _, _),
1623 	[56] = PINGROUP(56, qup1_se6, ddr_bist, _, _, _, _, _, _, _),
1624 	[57] = PINGROUP(57, qup1_se6, ddr_bist, _, _, _, _, _, _, _),
1625 	[58] = PINGROUP(58, qup1_se6, atest_usb, _, _, _, _, _, _, _),
1626 	[59] = PINGROUP(59, qup1_se6, atest_usb, _, _, _, _, _, _, _),
1627 	[60] = PINGROUP(60, aoss_cti, _, _, _, _, _, _, _, _),
1628 	[61] = PINGROUP(61, aoss_cti, _, _, _, _, _, _, _, _),
1629 	[62] = PINGROUP(62, aoss_cti, _, _, _, _, _, _, _, _),
1630 	[63] = PINGROUP(63, aoss_cti, _, _, _, _, _, _, _, _),
1631 	[64] = PINGROUP(64, qup2_se0, gcc_gp2, _, _, _, _, _, _, _),
1632 	[65] = PINGROUP(65, qup2_se0, qup2_se3, tgu_ch1, atest_usb, _, _, _, _, _),
1633 	[66] = PINGROUP(66, qup2_se0, qup2_se3, tgu_ch2, atest_usb, _, _, _, _, _),
1634 	[67] = PINGROUP(67, qup2_se0, qup2_se3, tgu_ch3, atest_usb, _, _, _, _, _),
1635 	[68] = PINGROUP(68, qup2_se1, ibi_i3c, tgu_ch4, _, _, _, _, _, _),
1636 	[69] = PINGROUP(69, qup2_se1, ibi_i3c, tgu_ch5, _, _, _, _, _, _),
1637 	[70] = PINGROUP(70, qup2_se1, _, _, _, _, _, _, _, _),
1638 	[71] = PINGROUP(71, qup2_se1, gcc_gp1, _, _, _, _, _, _, _),
1639 	[72] = PINGROUP(72, qup2_se2, gcc_gp1, atest_usb, _, _, _, _, _, _),
1640 	[73] = PINGROUP(73, qup2_se2, gcc_gp2, atest_usb, _, _, _, _, _, _),
1641 	[74] = PINGROUP(74, qup2_se2, gcc_gp3, atest_usb, _, _, _, _, _, _),
1642 	[75] = PINGROUP(75, qup2_se2, atest_usb, _, _, _, _, _, _, _),
1643 	[76] = PINGROUP(76, qup2_se3, phase_flag, _, _, _, _, _, _, _),
1644 	[77] = PINGROUP(77, qup2_se3, phase_flag, _, _, _, _, _, _, _),
1645 	[78] = PINGROUP(78, qup2_se3, phase_flag, _, _, _, _, _, _, _),
1646 	[79] = PINGROUP(79, qup2_se3, _, _, _, _, _, _, _, _),
1647 	[80] = PINGROUP(80, qup2_se4, tgu_ch7, atest_usb, _, _, _, _, _, _),
1648 	[81] = PINGROUP(81, qup2_se4, qup2_se2, tgu_ch0, atest_usb, _, _, _, _, _),
1649 	[82] = PINGROUP(82, qup2_se4, qup2_se2, gcc_gp3, _, _, _, _, _, _),
1650 	[83] = PINGROUP(83, qup2_se4, qup2_se2, tgu_ch6, atest_usb, _, _, _, _, _),
1651 	[84] = PINGROUP(84, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
1652 	[85] = PINGROUP(85, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
1653 	[86] = PINGROUP(86, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
1654 	[87] = PINGROUP(87, qup2_se5, qup2_se7, _, _, _, _, _, _, _),
1655 	[88] = PINGROUP(88, qup2_se6, _, _, _, _, _, _, _, _),
1656 	[89] = PINGROUP(89, qup2_se6, _, _, _, _, _, _, _, _),
1657 	[90] = PINGROUP(90, qup2_se6, _, _, _, _, _, _, _, _),
1658 	[91] = PINGROUP(91, qup2_se6, _, _, _, _, _, _, _, _),
1659 	[92] = PINGROUP(92, tmess_prng0, _, _, _, _, _, _, _, _),
1660 	[93] = PINGROUP(93, tmess_prng1, _, _, _, _, _, _, _, _),
1661 	[94] = PINGROUP(94, sys_throttle, tmess_prng2, _, _, _, _, _, _, _),
1662 	[95] = PINGROUP(95, tmess_prng3, _, _, _, _, _, _, _, _),
1663 	[96] = PINGROUP(96, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
1664 	[97] = PINGROUP(97, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
1665 	[98] = PINGROUP(98, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
1666 	[99] = PINGROUP(99, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
1667 	[100] = PINGROUP(100, cam_aon, qdss_gpio, _, _, _, _, _, _, _),
1668 	[101] = PINGROUP(101, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1669 	[102] = PINGROUP(102, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1670 	[103] = PINGROUP(103, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1671 	[104] = PINGROUP(104, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1672 	[105] = PINGROUP(105, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1673 	[106] = PINGROUP(106, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1674 	[107] = PINGROUP(107, qdss_gpio, _, _, _, _, _, _, _, _),
1675 	[108] = PINGROUP(108, qdss_gpio, _, _, _, _, _, _, _, _),
1676 	[109] = PINGROUP(109, cci_timer0, mdp_vsync4, qdss_gpio, _, _, _, _, _, _),
1677 	[110] = PINGROUP(110, cci_timer1, mdp_vsync5, qdss_gpio, _, _, _, _, _, _),
1678 	[111] = PINGROUP(111, cci_timer2, cci_async, mdp_vsync6, qdss_gpio, _, _, _, _, _),
1679 	[112] = PINGROUP(112, cci_timer3, cci_async, mdp_vsync7, qdss_gpio, _, _, _, _, _),
1680 	[113] = PINGROUP(113, cci_timer4, cci_async, mdp_vsync8, qdss_gpio, _, _, _, _, _),
1681 	[114] = PINGROUP(114, mdp_vsync0, mdp_vsync1, _, _, _, _, _, _, _),
1682 	[115] = PINGROUP(115, mdp_vsync3, mdp_vsync2, edp1_lcd, _, _, _, _, _, _),
1683 	[116] = PINGROUP(116, _, _, _, _, _, _, _, _, _),
1684 	[117] = PINGROUP(117, _, _, _, _, _, _, _, _, _),
1685 	[118] = PINGROUP(118, _, _, _, _, _, _, _, _, _),
1686 	[119] = PINGROUP(119, edp0_hot, edp1_lcd, _, _, _, _, _, _, _),
1687 	[120] = PINGROUP(120, edp1_hot, edp0_lcd, _, _, _, _, _, _, _),
1688 	[121] = PINGROUP(121, usb0_phy, _, _, _, _, _, _, _, _),
1689 	[122] = PINGROUP(122, usb0_dp, _, _, _, _, _, _, _, _),
1690 	[123] = PINGROUP(123, usb1_phy, _, _, _, _, _, _, _, _),
1691 	[124] = PINGROUP(124, usb1_dp, _, _, _, _, _, _, _, _),
1692 	[125] = PINGROUP(125, usb2_phy, _, _, _, _, _, _, _, _),
1693 	[126] = PINGROUP(126, usb2_dp, _, _, _, _, _, _, _, _),
1694 	[127] = PINGROUP(127, qspi0_clk, sdc4_clk, _, _, _, _, _, _, _),
1695 	[128] = PINGROUP(128, qspi00, sdc4_data0, _, _, _, _, _, _, _),
1696 	[129] = PINGROUP(129, qspi01, sdc4_data1, _, _, _, _, _, _, _),
1697 	[130] = PINGROUP(130, qspi02, sdc4_data2, _, _, _, _, _, _, _),
1698 	[131] = PINGROUP(131, qspi03, sdc4_data3, _, _, _, _, _, _, _),
1699 	[132] = PINGROUP(132, qspi0_cs0, sdc4_cmd, _, _, _, _, _, _, _),
1700 	[133] = PINGROUP(133, qspi0_cs1, tb_trig, _, _, _, _, _, _, _),
1701 	[134] = PINGROUP(134, audio_ext, _, _, _, _, _, _, _, _),
1702 	[135] = PINGROUP(135, i2s0_sck, _, _, _, _, _, _, _, _),
1703 	[136] = PINGROUP(136, i2s0_data0, _, _, _, _, _, _, _, _),
1704 	[137] = PINGROUP(137, i2s0_data1, tb_trig, _, _, _, _, _, _, _),
1705 	[138] = PINGROUP(138, i2s0_ws, _, _, _, _, _, _, _, _),
1706 	[139] = PINGROUP(139, i2s1_sck, _, _, _, _, _, _, _, _),
1707 	[140] = PINGROUP(140, i2s1_data0, _, _, _, _, _, _, _, _),
1708 	[141] = PINGROUP(141, i2s1_ws, _, _, _, _, _, _, _, _),
1709 	[142] = PINGROUP(142, i2s1_data1, audio_ext, audio_ref, _, _, _, _, _, _),
1710 	[143] = PINGROUP(143, _, _, _, _, _, _, _, _, _),
1711 	[144] = PINGROUP(144, pcie3_clk, _, _, _, _, _, _, _, _),
1712 	[145] = PINGROUP(145, _, _, _, _, _, _, _, _, _),
1713 	[146] = PINGROUP(146, _, _, _, _, _, _, _, _, _),
1714 	[147] = PINGROUP(147, pcie4_clk, _, _, _, _, _, _, _, _),
1715 	[148] = PINGROUP(148, _, _, _, _, _, _, _, _, _),
1716 	[149] = PINGROUP(149, _, _, _, _, _, _, _, _, _),
1717 	[150] = PINGROUP(150, pcie5_clk, _, _, _, _, _, _, _, _),
1718 	[151] = PINGROUP(151, _, _, _, _, _, _, _, _, _),
1719 	[152] = PINGROUP(152, _, _, _, _, _, _, _, _, _),
1720 	[153] = PINGROUP(153, pcie6a_clk, _, _, _, _, _, _, _, _),
1721 	[154] = PINGROUP(154, _, _, _, _, _, _, _, _, _),
1722 	[155] = PINGROUP(155, _, _, _, _, _, _, _, _, _),
1723 	[156] = PINGROUP(156, pcie6b_clk, _, _, _, _, _, _, _, _),
1724 	[157] = PINGROUP(157, _, _, _, _, _, _, _, _, _),
1725 	[158] = PINGROUP(158, _, _, _, _, _, _, _, _, _),
1726 	[159] = PINGROUP(159, _, _, _, _, _, _, _, _, _),
1727 	[160] = PINGROUP(160, RESOUT_GPIO, _, _, _, _, _, _, _, _),
1728 	[161] = PINGROUP(161, qdss_cti, _, _, _, _, _, _, _, _),
1729 	[162] = PINGROUP(162, sd_write, qdss_cti, _, _, _, _, _, _, _),
1730 	[163] = PINGROUP(163, usb0_sbrx, _, _, _, _, _, _, _, _),
1731 	[164] = PINGROUP(164, usb0_sbtx, _, _, _, _, _, _, _, _),
1732 	[165] = PINGROUP(165, usb0_sbtx, _, _, _, _, _, _, _, _),
1733 	[166] = PINGROUP(166, _, _, _, _, _, _, _, _, _),
1734 	[167] = PINGROUP(167, _, _, _, _, _, _, _, _, _),
1735 	[168] = PINGROUP(168, eusb0_ac, _, _, _, _, _, _, _, _),
1736 	[169] = PINGROUP(169, eusb3_ac, _, _, _, _, _, _, _, _),
1737 	[170] = PINGROUP(170, _, _, _, _, _, _, _, _, _),
1738 	[171] = PINGROUP(171, _, _, _, _, _, _, _, _, _),
1739 	[172] = PINGROUP(172, usb1_sbrx, _, _, _, _, _, _, _, _),
1740 	[173] = PINGROUP(173, usb1_sbtx, _, _, _, _, _, _, _, _),
1741 	[174] = PINGROUP(174, usb1_sbtx, _, _, _, _, _, _, _, _),
1742 	[175] = PINGROUP(175, _, _, _, _, _, _, _, _, _),
1743 	[176] = PINGROUP(176, _, _, _, _, _, _, _, _, _),
1744 	[177] = PINGROUP(177, eusb1_ac, _, _, _, _, _, _, _, _),
1745 	[178] = PINGROUP(178, eusb6_ac, _, _, _, _, _, _, _, _),
1746 	[179] = PINGROUP(179, _, _, _, _, _, _, _, _, _),
1747 	[180] = PINGROUP(180, _, _, _, _, _, _, _, _, _),
1748 	[181] = PINGROUP(181, usb2_sbrx, prng_rosc3, phase_flag, _, atest_char, _, _, _, _),
1749 	[182] = PINGROUP(182, usb2_sbtx, prng_rosc2, phase_flag, _, atest_char3, _, _, _, _),
1750 	[183] = PINGROUP(183, usb2_sbtx, _, _, _, _, _, _, _, _),
1751 	[184] = PINGROUP(184, phase_flag, _, atest_char1, _, _, _, _, _, _),
1752 	[185] = PINGROUP(185, phase_flag, _, atest_char0, _, _, _, _, _, _),
1753 	[186] = PINGROUP(186, eusb2_ac, prng_rosc0, phase_flag, _, _, _, _, _, _),
1754 	[187] = PINGROUP(187, eusb5_ac, cri_trng, phase_flag, _, _, _, _, _, _),
1755 	[188] = PINGROUP(188, prng_rosc1, phase_flag, _, atest_char2, _, _, _, _, _),
1756 	[189] = PINGROUP(189, _, _, _, _, _, _, _, _, _),
1757 	[190] = PINGROUP(190, _, _, _, _, _, _, _, _, _),
1758 	[191] = PINGROUP(191, _, _, _, _, _, _, _, _, _),
1759 	[192] = PINGROUP(192, _, _, _, _, _, _, _, _, _),
1760 	[193] = PINGROUP(193, _, _, _, _, _, _, _, _, _),
1761 	[194] = PINGROUP(194, _, _, _, _, _, _, _, _, _),
1762 	[195] = PINGROUP(195, _, _, _, _, _, _, _, _, _),
1763 	[196] = PINGROUP(196, _, _, _, _, _, _, _, _, _),
1764 	[197] = PINGROUP(197, _, _, _, _, _, _, _, _, _),
1765 	[198] = PINGROUP(198, _, _, _, _, _, _, _, _, _),
1766 	[199] = PINGROUP(199, _, _, _, _, _, _, _, _, _),
1767 	[200] = PINGROUP(200, _, _, _, _, _, _, _, _, _),
1768 	[201] = PINGROUP(201, _, _, _, _, _, _, _, _, _),
1769 	[202] = PINGROUP(202, _, _, _, _, _, _, _, _, _),
1770 	[203] = PINGROUP(203, _, _, _, _, _, _, _, _, _),
1771 	[204] = PINGROUP(204, _, _, _, _, _, _, _, _, _),
1772 	[205] = PINGROUP(205, _, _, _, _, _, _, _, _, _),
1773 	[206] = PINGROUP(206, _, _, _, _, _, _, _, _, _),
1774 	[207] = PINGROUP(207, _, _, _, _, _, _, _, _, _),
1775 	[208] = PINGROUP(208, _, _, _, _, _, _, _, _, _),
1776 	[209] = PINGROUP(209, _, _, _, _, _, _, _, _, _),
1777 	[210] = PINGROUP(210, _, _, _, _, _, _, _, _, _),
1778 	[211] = PINGROUP(211, _, _, _, _, _, _, _, _, _),
1779 	[212] = PINGROUP(212, _, _, _, _, _, _, _, _, _),
1780 	[213] = PINGROUP(213, _, _, _, _, _, _, _, _, _),
1781 	[214] = PINGROUP(214, _, _, _, _, _, _, _, _, _),
1782 	[215] = PINGROUP(215, _, qdss_cti, _, _, _, _, _, _, _),
1783 	[216] = PINGROUP(216, _, _, _, _, _, _, _, _, _),
1784 	[217] = PINGROUP(217, _, qdss_cti, _, _, _, _, _, _, _),
1785 	[218] = PINGROUP(218, _, _, _, _, _, _, _, _, _),
1786 	[219] = PINGROUP(219, _, qdss_gpio, _, _, _, _, _, _, _),
1787 	[220] = PINGROUP(220, _, qdss_gpio, _, _, _, _, _, _, _),
1788 	[221] = PINGROUP(221, _, qdss_gpio, _, _, _, _, _, _, _),
1789 	[222] = PINGROUP(222, _, qdss_gpio, _, _, _, _, _, _, _),
1790 	[223] = PINGROUP(223, _, qdss_gpio, _, _, _, _, _, _, _),
1791 	[224] = PINGROUP(224, _, qdss_gpio, _, _, _, _, _, _, _),
1792 	[225] = PINGROUP(225, _, qdss_gpio, _, _, _, _, _, _, _),
1793 	[226] = PINGROUP(226, _, qdss_gpio, _, _, _, _, _, _, _),
1794 	[227] = PINGROUP(227, _, qdss_gpio, _, _, _, _, _, _, _),
1795 	[228] = PINGROUP(228, _, qdss_gpio, _, _, _, _, _, _, _),
1796 	[229] = PINGROUP(229, qdss_gpio, _, _, _, _, _, _, _, _),
1797 	[230] = PINGROUP(230, qdss_gpio, _, _, _, _, _, _, _, _),
1798 	[231] = PINGROUP(231, qdss_gpio, _, _, _, _, _, _, _, _),
1799 	[232] = PINGROUP(232, qdss_gpio, _, _, _, _, _, _, _, _),
1800 	[233] = PINGROUP(233, qdss_gpio, _, _, _, _, _, _, _, _),
1801 	[234] = PINGROUP(234, qdss_gpio, _, _, _, _, _, _, _, _),
1802 	[235] = PINGROUP(235, aon_cci, qdss_gpio, _, _, _, _, _, _, _),
1803 	[236] = PINGROUP(236, aon_cci, qdss_gpio, _, _, _, _, _, _, _),
1804 	[237] = PINGROUP(237, _, _, _, _, _, _, _, _, _),
1805 	[238] = UFS_RESET(ufs_reset, 0xf9000),
1806 	[239] = SDC_QDSD_PINGROUP(sdc2_clk, 0xf2000, 14, 6),
1807 	[240] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xf2000, 11, 3),
1808 	[241] = SDC_QDSD_PINGROUP(sdc2_data, 0xf2000, 9, 0),
1809 };
1810 
1811 static const struct msm_gpio_wakeirq_map x1e80100_pdc_map[] = {
1812 	{ 0, 72 }, { 2, 70 }, { 3, 71 }, { 6, 123 }, { 7, 67 }, { 11, 85 },
1813 	{ 13, 86 }, { 15, 68 }, { 18, 122 }, { 19, 69 }, { 21, 158 }, { 23, 143 },
1814 	{ 24, 126 }, { 26, 129 }, { 27, 144 }, { 28, 77 }, { 29, 78 }, { 30, 92 },
1815 	{ 31, 159 }, { 32, 145 }, { 33, 115 }, { 34, 130 }, { 35, 146 }, { 36, 147 },
1816 	{ 38, 113 }, { 39, 80 }, { 43, 148 }, { 47, 149 }, { 51, 79 }, { 53, 89 },
1817 	{ 55, 81 }, { 59, 87 }, { 64, 90 }, { 65, 106 }, { 66, 142 }, { 67, 88 },
1818 	{ 68, 151 }, { 71, 91 }, { 75, 152 }, { 79, 153 }, { 80, 125 }, { 81, 128 },
1819 	{ 83, 154 }, { 84, 137 }, { 85, 155 }, { 87, 156 }, { 91, 157 }, { 92, 138 },
1820 	{ 93, 139 }, { 94, 140 }, { 95, 141 }, { 113, 84 }, { 121, 73 }, { 123, 74 },
1821 	{ 125, 75 }, { 129, 76 }, { 131, 82 }, { 134, 83 }, { 141, 93 }, { 144, 94 },
1822 	{ 145, 95 }, { 147, 96 }, { 148, 97 }, { 150, 102 }, { 151, 103 }, { 153, 104 },
1823 	{ 154, 100 }, { 156, 105 }, { 157, 107 }, { 163, 98 }, { 166, 112 }, { 172, 99 },
1824 	{ 175, 114 }, { 181, 101 }, { 184, 116 }, { 193, 117 }, { 196, 108 }, { 203, 133 },
1825 	{ 208, 134 }, { 212, 120 }, { 213, 150 }, { 214, 121 }, { 215, 118 }, { 217, 109 },
1826 	{ 219, 119 }, { 220, 110 }, { 221, 111 }, { 222, 124 }, { 224, 131 }, { 225, 132 },
1827 	{ 228, 135 }, { 230, 136 }, { 232, 162 },
1828 };
1829 
1830 static const struct msm_pinctrl_soc_data x1e80100_pinctrl = {
1831 	.pins = x1e80100_pins,
1832 	.npins = ARRAY_SIZE(x1e80100_pins),
1833 	.functions = x1e80100_functions,
1834 	.nfunctions = ARRAY_SIZE(x1e80100_functions),
1835 	.groups = x1e80100_groups,
1836 	.ngroups = ARRAY_SIZE(x1e80100_groups),
1837 	.ngpios = 239,
1838 	.wakeirq_map = x1e80100_pdc_map,
1839 	/* TODO: Enabling PDC currently breaks GPIO interrupts */
1840 	.nwakeirq_map = 0,
1841 	/* .nwakeirq_map = ARRAY_SIZE(x1e80100_pdc_map), */
1842 	.egpio_func = 9,
1843 };
1844 
1845 static int x1e80100_pinctrl_probe(struct platform_device *pdev)
1846 {
1847 	return msm_pinctrl_probe(pdev, &x1e80100_pinctrl);
1848 }
1849 
1850 static const struct of_device_id x1e80100_pinctrl_of_match[] = {
1851 	{ .compatible = "qcom,x1e80100-tlmm", },
1852 	{ },
1853 };
1854 MODULE_DEVICE_TABLE(of, x1e80100_pinctrl_of_match);
1855 
1856 static struct platform_driver x1e80100_pinctrl_driver = {
1857 	.driver = {
1858 		.name = "x1e80100-tlmm",
1859 		.of_match_table = x1e80100_pinctrl_of_match,
1860 	},
1861 	.probe = x1e80100_pinctrl_probe,
1862 };
1863 
1864 static int __init x1e80100_pinctrl_init(void)
1865 {
1866 	return platform_driver_register(&x1e80100_pinctrl_driver);
1867 }
1868 arch_initcall(x1e80100_pinctrl_init);
1869 
1870 static void __exit x1e80100_pinctrl_exit(void)
1871 {
1872 	platform_driver_unregister(&x1e80100_pinctrl_driver);
1873 }
1874 module_exit(x1e80100_pinctrl_exit);
1875 
1876 MODULE_DESCRIPTION("QTI X1E80100 TLMM pinctrl driver");
1877 MODULE_LICENSE("GPL");
1878