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