xref: /linux/drivers/pinctrl/qcom/pinctrl-msm8953.c (revision ca1c2ddff00480c213903a1479b56203536e92de)
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2020, The Linux Foundation. All rights reserved.
3 
4 #include <linux/module.h>
5 #include <linux/of.h>
6 #include <linux/platform_device.h>
7 
8 #include "pinctrl-msm.h"
9 
10 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9)	\
11 	{							\
12 		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
13 			gpio##id##_pins, 		\
14 			ARRAY_SIZE(gpio##id##_pins)),	\
15 		.funcs = (int[]){				\
16 			msm_mux_gpio, /* gpio mode */		\
17 			msm_mux_##f1,				\
18 			msm_mux_##f2,				\
19 			msm_mux_##f3,				\
20 			msm_mux_##f4,				\
21 			msm_mux_##f5,				\
22 			msm_mux_##f6,				\
23 			msm_mux_##f7,				\
24 			msm_mux_##f8,				\
25 			msm_mux_##f9				\
26 		},						\
27 		.nfuncs = 10,					\
28 		.ctl_reg = 0x1000 * id,				\
29 		.io_reg = 0x4 + 0x1000 * id,			\
30 		.intr_cfg_reg = 0x8 + 0x1000 * id,		\
31 		.intr_status_reg = 0xc + 0x1000 * id,		\
32 		.mux_bit = 2,					\
33 		.pull_bit = 0,					\
34 		.drv_bit = 6,					\
35 		.oe_bit = 9,					\
36 		.in_bit = 0,					\
37 		.out_bit = 1,					\
38 		.intr_enable_bit = 0,				\
39 		.intr_status_bit = 0,				\
40 		.intr_target_bit = 5,				\
41 		.intr_target_kpss_val = 4,			\
42 		.intr_raw_status_bit = 4,			\
43 		.intr_polarity_bit = 1,				\
44 		.intr_detection_bit = 2,			\
45 		.intr_detection_width = 2,			\
46 	}
47 
48 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)	\
49 	{					        \
50 		.grp = PINCTRL_PINGROUP(#pg_name, 	\
51 			pg_name##_pins, 		\
52 			ARRAY_SIZE(pg_name##_pins)),	\
53 		.ctl_reg = ctl,				\
54 		.io_reg = 0,				\
55 		.intr_cfg_reg = 0,			\
56 		.intr_status_reg = 0,			\
57 		.mux_bit = -1,				\
58 		.pull_bit = pull,			\
59 		.drv_bit = drv,				\
60 		.oe_bit = -1,				\
61 		.in_bit = -1,				\
62 		.out_bit = -1,				\
63 		.intr_enable_bit = -1,			\
64 		.intr_status_bit = -1,			\
65 		.intr_target_bit = -1,			\
66 		.intr_raw_status_bit = -1,		\
67 		.intr_polarity_bit = -1,		\
68 		.intr_detection_bit = -1,		\
69 		.intr_detection_width = -1,		\
70 	}
71 
72 static const struct pinctrl_pin_desc msm8953_pins[] = {
73 	PINCTRL_PIN(0, "GPIO_0"),
74 	PINCTRL_PIN(1, "GPIO_1"),
75 	PINCTRL_PIN(2, "GPIO_2"),
76 	PINCTRL_PIN(3, "GPIO_3"),
77 	PINCTRL_PIN(4, "GPIO_4"),
78 	PINCTRL_PIN(5, "GPIO_5"),
79 	PINCTRL_PIN(6, "GPIO_6"),
80 	PINCTRL_PIN(7, "GPIO_7"),
81 	PINCTRL_PIN(8, "GPIO_8"),
82 	PINCTRL_PIN(9, "GPIO_9"),
83 	PINCTRL_PIN(10, "GPIO_10"),
84 	PINCTRL_PIN(11, "GPIO_11"),
85 	PINCTRL_PIN(12, "GPIO_12"),
86 	PINCTRL_PIN(13, "GPIO_13"),
87 	PINCTRL_PIN(14, "GPIO_14"),
88 	PINCTRL_PIN(15, "GPIO_15"),
89 	PINCTRL_PIN(16, "GPIO_16"),
90 	PINCTRL_PIN(17, "GPIO_17"),
91 	PINCTRL_PIN(18, "GPIO_18"),
92 	PINCTRL_PIN(19, "GPIO_19"),
93 	PINCTRL_PIN(20, "GPIO_20"),
94 	PINCTRL_PIN(21, "GPIO_21"),
95 	PINCTRL_PIN(22, "GPIO_22"),
96 	PINCTRL_PIN(23, "GPIO_23"),
97 	PINCTRL_PIN(24, "GPIO_24"),
98 	PINCTRL_PIN(25, "GPIO_25"),
99 	PINCTRL_PIN(26, "GPIO_26"),
100 	PINCTRL_PIN(27, "GPIO_27"),
101 	PINCTRL_PIN(28, "GPIO_28"),
102 	PINCTRL_PIN(29, "GPIO_29"),
103 	PINCTRL_PIN(30, "GPIO_30"),
104 	PINCTRL_PIN(31, "GPIO_31"),
105 	PINCTRL_PIN(32, "GPIO_32"),
106 	PINCTRL_PIN(33, "GPIO_33"),
107 	PINCTRL_PIN(34, "GPIO_34"),
108 	PINCTRL_PIN(35, "GPIO_35"),
109 	PINCTRL_PIN(36, "GPIO_36"),
110 	PINCTRL_PIN(37, "GPIO_37"),
111 	PINCTRL_PIN(38, "GPIO_38"),
112 	PINCTRL_PIN(39, "GPIO_39"),
113 	PINCTRL_PIN(40, "GPIO_40"),
114 	PINCTRL_PIN(41, "GPIO_41"),
115 	PINCTRL_PIN(42, "GPIO_42"),
116 	PINCTRL_PIN(43, "GPIO_43"),
117 	PINCTRL_PIN(44, "GPIO_44"),
118 	PINCTRL_PIN(45, "GPIO_45"),
119 	PINCTRL_PIN(46, "GPIO_46"),
120 	PINCTRL_PIN(47, "GPIO_47"),
121 	PINCTRL_PIN(48, "GPIO_48"),
122 	PINCTRL_PIN(49, "GPIO_49"),
123 	PINCTRL_PIN(50, "GPIO_50"),
124 	PINCTRL_PIN(51, "GPIO_51"),
125 	PINCTRL_PIN(52, "GPIO_52"),
126 	PINCTRL_PIN(53, "GPIO_53"),
127 	PINCTRL_PIN(54, "GPIO_54"),
128 	PINCTRL_PIN(55, "GPIO_55"),
129 	PINCTRL_PIN(56, "GPIO_56"),
130 	PINCTRL_PIN(57, "GPIO_57"),
131 	PINCTRL_PIN(58, "GPIO_58"),
132 	PINCTRL_PIN(59, "GPIO_59"),
133 	PINCTRL_PIN(60, "GPIO_60"),
134 	PINCTRL_PIN(61, "GPIO_61"),
135 	PINCTRL_PIN(62, "GPIO_62"),
136 	PINCTRL_PIN(63, "GPIO_63"),
137 	PINCTRL_PIN(64, "GPIO_64"),
138 	PINCTRL_PIN(65, "GPIO_65"),
139 	PINCTRL_PIN(66, "GPIO_66"),
140 	PINCTRL_PIN(67, "GPIO_67"),
141 	PINCTRL_PIN(68, "GPIO_68"),
142 	PINCTRL_PIN(69, "GPIO_69"),
143 	PINCTRL_PIN(70, "GPIO_70"),
144 	PINCTRL_PIN(71, "GPIO_71"),
145 	PINCTRL_PIN(72, "GPIO_72"),
146 	PINCTRL_PIN(73, "GPIO_73"),
147 	PINCTRL_PIN(74, "GPIO_74"),
148 	PINCTRL_PIN(75, "GPIO_75"),
149 	PINCTRL_PIN(76, "GPIO_76"),
150 	PINCTRL_PIN(77, "GPIO_77"),
151 	PINCTRL_PIN(78, "GPIO_78"),
152 	PINCTRL_PIN(79, "GPIO_79"),
153 	PINCTRL_PIN(80, "GPIO_80"),
154 	PINCTRL_PIN(81, "GPIO_81"),
155 	PINCTRL_PIN(82, "GPIO_82"),
156 	PINCTRL_PIN(83, "GPIO_83"),
157 	PINCTRL_PIN(84, "GPIO_84"),
158 	PINCTRL_PIN(85, "GPIO_85"),
159 	PINCTRL_PIN(86, "GPIO_86"),
160 	PINCTRL_PIN(87, "GPIO_87"),
161 	PINCTRL_PIN(88, "GPIO_88"),
162 	PINCTRL_PIN(89, "GPIO_89"),
163 	PINCTRL_PIN(90, "GPIO_90"),
164 	PINCTRL_PIN(91, "GPIO_91"),
165 	PINCTRL_PIN(92, "GPIO_92"),
166 	PINCTRL_PIN(93, "GPIO_93"),
167 	PINCTRL_PIN(94, "GPIO_94"),
168 	PINCTRL_PIN(95, "GPIO_95"),
169 	PINCTRL_PIN(96, "GPIO_96"),
170 	PINCTRL_PIN(97, "GPIO_97"),
171 	PINCTRL_PIN(98, "GPIO_98"),
172 	PINCTRL_PIN(99, "GPIO_99"),
173 	PINCTRL_PIN(100, "GPIO_100"),
174 	PINCTRL_PIN(101, "GPIO_101"),
175 	PINCTRL_PIN(102, "GPIO_102"),
176 	PINCTRL_PIN(103, "GPIO_103"),
177 	PINCTRL_PIN(104, "GPIO_104"),
178 	PINCTRL_PIN(105, "GPIO_105"),
179 	PINCTRL_PIN(106, "GPIO_106"),
180 	PINCTRL_PIN(107, "GPIO_107"),
181 	PINCTRL_PIN(108, "GPIO_108"),
182 	PINCTRL_PIN(109, "GPIO_109"),
183 	PINCTRL_PIN(110, "GPIO_110"),
184 	PINCTRL_PIN(111, "GPIO_111"),
185 	PINCTRL_PIN(112, "GPIO_112"),
186 	PINCTRL_PIN(113, "GPIO_113"),
187 	PINCTRL_PIN(114, "GPIO_114"),
188 	PINCTRL_PIN(115, "GPIO_115"),
189 	PINCTRL_PIN(116, "GPIO_116"),
190 	PINCTRL_PIN(117, "GPIO_117"),
191 	PINCTRL_PIN(118, "GPIO_118"),
192 	PINCTRL_PIN(119, "GPIO_119"),
193 	PINCTRL_PIN(120, "GPIO_120"),
194 	PINCTRL_PIN(121, "GPIO_121"),
195 	PINCTRL_PIN(122, "GPIO_122"),
196 	PINCTRL_PIN(123, "GPIO_123"),
197 	PINCTRL_PIN(124, "GPIO_124"),
198 	PINCTRL_PIN(125, "GPIO_125"),
199 	PINCTRL_PIN(126, "GPIO_126"),
200 	PINCTRL_PIN(127, "GPIO_127"),
201 	PINCTRL_PIN(128, "GPIO_128"),
202 	PINCTRL_PIN(129, "GPIO_129"),
203 	PINCTRL_PIN(130, "GPIO_130"),
204 	PINCTRL_PIN(131, "GPIO_131"),
205 	PINCTRL_PIN(132, "GPIO_132"),
206 	PINCTRL_PIN(133, "GPIO_133"),
207 	PINCTRL_PIN(134, "GPIO_134"),
208 	PINCTRL_PIN(135, "GPIO_135"),
209 	PINCTRL_PIN(136, "GPIO_136"),
210 	PINCTRL_PIN(137, "GPIO_137"),
211 	PINCTRL_PIN(138, "GPIO_138"),
212 	PINCTRL_PIN(139, "GPIO_139"),
213 	PINCTRL_PIN(140, "GPIO_140"),
214 	PINCTRL_PIN(141, "GPIO_141"),
215 	PINCTRL_PIN(142, "SDC1_CLK"),
216 	PINCTRL_PIN(143, "SDC1_CMD"),
217 	PINCTRL_PIN(144, "SDC1_DATA"),
218 	PINCTRL_PIN(145, "SDC1_RCLK"),
219 	PINCTRL_PIN(146, "SDC2_CLK"),
220 	PINCTRL_PIN(147, "SDC2_CMD"),
221 	PINCTRL_PIN(148, "SDC2_DATA"),
222 	PINCTRL_PIN(149, "QDSD_CLK"),
223 	PINCTRL_PIN(150, "QDSD_CMD"),
224 	PINCTRL_PIN(151, "QDSD_DATA0"),
225 	PINCTRL_PIN(152, "QDSD_DATA1"),
226 	PINCTRL_PIN(153, "QDSD_DATA2"),
227 	PINCTRL_PIN(154, "QDSD_DATA3"),
228 };
229 
230 #define DECLARE_MSM_GPIO_PINS(pin) \
231 	static const unsigned int gpio##pin##_pins[] = { pin }
232 DECLARE_MSM_GPIO_PINS(0);
233 DECLARE_MSM_GPIO_PINS(1);
234 DECLARE_MSM_GPIO_PINS(2);
235 DECLARE_MSM_GPIO_PINS(3);
236 DECLARE_MSM_GPIO_PINS(4);
237 DECLARE_MSM_GPIO_PINS(5);
238 DECLARE_MSM_GPIO_PINS(6);
239 DECLARE_MSM_GPIO_PINS(7);
240 DECLARE_MSM_GPIO_PINS(8);
241 DECLARE_MSM_GPIO_PINS(9);
242 DECLARE_MSM_GPIO_PINS(10);
243 DECLARE_MSM_GPIO_PINS(11);
244 DECLARE_MSM_GPIO_PINS(12);
245 DECLARE_MSM_GPIO_PINS(13);
246 DECLARE_MSM_GPIO_PINS(14);
247 DECLARE_MSM_GPIO_PINS(15);
248 DECLARE_MSM_GPIO_PINS(16);
249 DECLARE_MSM_GPIO_PINS(17);
250 DECLARE_MSM_GPIO_PINS(18);
251 DECLARE_MSM_GPIO_PINS(19);
252 DECLARE_MSM_GPIO_PINS(20);
253 DECLARE_MSM_GPIO_PINS(21);
254 DECLARE_MSM_GPIO_PINS(22);
255 DECLARE_MSM_GPIO_PINS(23);
256 DECLARE_MSM_GPIO_PINS(24);
257 DECLARE_MSM_GPIO_PINS(25);
258 DECLARE_MSM_GPIO_PINS(26);
259 DECLARE_MSM_GPIO_PINS(27);
260 DECLARE_MSM_GPIO_PINS(28);
261 DECLARE_MSM_GPIO_PINS(29);
262 DECLARE_MSM_GPIO_PINS(30);
263 DECLARE_MSM_GPIO_PINS(31);
264 DECLARE_MSM_GPIO_PINS(32);
265 DECLARE_MSM_GPIO_PINS(33);
266 DECLARE_MSM_GPIO_PINS(34);
267 DECLARE_MSM_GPIO_PINS(35);
268 DECLARE_MSM_GPIO_PINS(36);
269 DECLARE_MSM_GPIO_PINS(37);
270 DECLARE_MSM_GPIO_PINS(38);
271 DECLARE_MSM_GPIO_PINS(39);
272 DECLARE_MSM_GPIO_PINS(40);
273 DECLARE_MSM_GPIO_PINS(41);
274 DECLARE_MSM_GPIO_PINS(42);
275 DECLARE_MSM_GPIO_PINS(43);
276 DECLARE_MSM_GPIO_PINS(44);
277 DECLARE_MSM_GPIO_PINS(45);
278 DECLARE_MSM_GPIO_PINS(46);
279 DECLARE_MSM_GPIO_PINS(47);
280 DECLARE_MSM_GPIO_PINS(48);
281 DECLARE_MSM_GPIO_PINS(49);
282 DECLARE_MSM_GPIO_PINS(50);
283 DECLARE_MSM_GPIO_PINS(51);
284 DECLARE_MSM_GPIO_PINS(52);
285 DECLARE_MSM_GPIO_PINS(53);
286 DECLARE_MSM_GPIO_PINS(54);
287 DECLARE_MSM_GPIO_PINS(55);
288 DECLARE_MSM_GPIO_PINS(56);
289 DECLARE_MSM_GPIO_PINS(57);
290 DECLARE_MSM_GPIO_PINS(58);
291 DECLARE_MSM_GPIO_PINS(59);
292 DECLARE_MSM_GPIO_PINS(60);
293 DECLARE_MSM_GPIO_PINS(61);
294 DECLARE_MSM_GPIO_PINS(62);
295 DECLARE_MSM_GPIO_PINS(63);
296 DECLARE_MSM_GPIO_PINS(64);
297 DECLARE_MSM_GPIO_PINS(65);
298 DECLARE_MSM_GPIO_PINS(66);
299 DECLARE_MSM_GPIO_PINS(67);
300 DECLARE_MSM_GPIO_PINS(68);
301 DECLARE_MSM_GPIO_PINS(69);
302 DECLARE_MSM_GPIO_PINS(70);
303 DECLARE_MSM_GPIO_PINS(71);
304 DECLARE_MSM_GPIO_PINS(72);
305 DECLARE_MSM_GPIO_PINS(73);
306 DECLARE_MSM_GPIO_PINS(74);
307 DECLARE_MSM_GPIO_PINS(75);
308 DECLARE_MSM_GPIO_PINS(76);
309 DECLARE_MSM_GPIO_PINS(77);
310 DECLARE_MSM_GPIO_PINS(78);
311 DECLARE_MSM_GPIO_PINS(79);
312 DECLARE_MSM_GPIO_PINS(80);
313 DECLARE_MSM_GPIO_PINS(81);
314 DECLARE_MSM_GPIO_PINS(82);
315 DECLARE_MSM_GPIO_PINS(83);
316 DECLARE_MSM_GPIO_PINS(84);
317 DECLARE_MSM_GPIO_PINS(85);
318 DECLARE_MSM_GPIO_PINS(86);
319 DECLARE_MSM_GPIO_PINS(87);
320 DECLARE_MSM_GPIO_PINS(88);
321 DECLARE_MSM_GPIO_PINS(89);
322 DECLARE_MSM_GPIO_PINS(90);
323 DECLARE_MSM_GPIO_PINS(91);
324 DECLARE_MSM_GPIO_PINS(92);
325 DECLARE_MSM_GPIO_PINS(93);
326 DECLARE_MSM_GPIO_PINS(94);
327 DECLARE_MSM_GPIO_PINS(95);
328 DECLARE_MSM_GPIO_PINS(96);
329 DECLARE_MSM_GPIO_PINS(97);
330 DECLARE_MSM_GPIO_PINS(98);
331 DECLARE_MSM_GPIO_PINS(99);
332 DECLARE_MSM_GPIO_PINS(100);
333 DECLARE_MSM_GPIO_PINS(101);
334 DECLARE_MSM_GPIO_PINS(102);
335 DECLARE_MSM_GPIO_PINS(103);
336 DECLARE_MSM_GPIO_PINS(104);
337 DECLARE_MSM_GPIO_PINS(105);
338 DECLARE_MSM_GPIO_PINS(106);
339 DECLARE_MSM_GPIO_PINS(107);
340 DECLARE_MSM_GPIO_PINS(108);
341 DECLARE_MSM_GPIO_PINS(109);
342 DECLARE_MSM_GPIO_PINS(110);
343 DECLARE_MSM_GPIO_PINS(111);
344 DECLARE_MSM_GPIO_PINS(112);
345 DECLARE_MSM_GPIO_PINS(113);
346 DECLARE_MSM_GPIO_PINS(114);
347 DECLARE_MSM_GPIO_PINS(115);
348 DECLARE_MSM_GPIO_PINS(116);
349 DECLARE_MSM_GPIO_PINS(117);
350 DECLARE_MSM_GPIO_PINS(118);
351 DECLARE_MSM_GPIO_PINS(119);
352 DECLARE_MSM_GPIO_PINS(120);
353 DECLARE_MSM_GPIO_PINS(121);
354 DECLARE_MSM_GPIO_PINS(122);
355 DECLARE_MSM_GPIO_PINS(123);
356 DECLARE_MSM_GPIO_PINS(124);
357 DECLARE_MSM_GPIO_PINS(125);
358 DECLARE_MSM_GPIO_PINS(126);
359 DECLARE_MSM_GPIO_PINS(127);
360 DECLARE_MSM_GPIO_PINS(128);
361 DECLARE_MSM_GPIO_PINS(129);
362 DECLARE_MSM_GPIO_PINS(130);
363 DECLARE_MSM_GPIO_PINS(131);
364 DECLARE_MSM_GPIO_PINS(132);
365 DECLARE_MSM_GPIO_PINS(133);
366 DECLARE_MSM_GPIO_PINS(134);
367 DECLARE_MSM_GPIO_PINS(135);
368 DECLARE_MSM_GPIO_PINS(136);
369 DECLARE_MSM_GPIO_PINS(137);
370 DECLARE_MSM_GPIO_PINS(138);
371 DECLARE_MSM_GPIO_PINS(139);
372 DECLARE_MSM_GPIO_PINS(140);
373 DECLARE_MSM_GPIO_PINS(141);
374 
375 static const unsigned int qdsd_clk_pins[] = { 142 };
376 static const unsigned int qdsd_cmd_pins[] = { 143 };
377 static const unsigned int qdsd_data0_pins[] = { 144 };
378 static const unsigned int qdsd_data1_pins[] = { 145 };
379 static const unsigned int qdsd_data2_pins[] = { 146 };
380 static const unsigned int qdsd_data3_pins[] = { 147 };
381 static const unsigned int sdc1_clk_pins[] = { 148 };
382 static const unsigned int sdc1_cmd_pins[] = { 149 };
383 static const unsigned int sdc1_data_pins[] = { 150 };
384 static const unsigned int sdc1_rclk_pins[] = { 151 };
385 static const unsigned int sdc2_clk_pins[] = { 152 };
386 static const unsigned int sdc2_cmd_pins[] = { 153 };
387 static const unsigned int sdc2_data_pins[] = { 154 };
388 
389 enum msm8953_functions {
390 	msm_mux_accel_int,
391 	msm_mux_adsp_ext,
392 	msm_mux_alsp_int,
393 	msm_mux_atest_bbrx0,
394 	msm_mux_atest_bbrx1,
395 	msm_mux_atest_char,
396 	msm_mux_atest_char0,
397 	msm_mux_atest_char1,
398 	msm_mux_atest_char2,
399 	msm_mux_atest_char3,
400 	msm_mux_atest_gpsadc_dtest0_native,
401 	msm_mux_atest_gpsadc_dtest1_native,
402 	msm_mux_atest_tsens,
403 	msm_mux_atest_wlan0,
404 	msm_mux_atest_wlan1,
405 	msm_mux_bimc_dte0,
406 	msm_mux_bimc_dte1,
407 	msm_mux_blsp1_spi,
408 	msm_mux_blsp3_spi,
409 	msm_mux_blsp6_spi,
410 	msm_mux_blsp7_spi,
411 	msm_mux_blsp_i2c1,
412 	msm_mux_blsp_i2c2,
413 	msm_mux_blsp_i2c3,
414 	msm_mux_blsp_i2c4,
415 	msm_mux_blsp_i2c5,
416 	msm_mux_blsp_i2c6,
417 	msm_mux_blsp_i2c7,
418 	msm_mux_blsp_i2c8,
419 	msm_mux_blsp_spi1,
420 	msm_mux_blsp_spi2,
421 	msm_mux_blsp_spi3,
422 	msm_mux_blsp_spi4,
423 	msm_mux_blsp_spi5,
424 	msm_mux_blsp_spi6,
425 	msm_mux_blsp_spi7,
426 	msm_mux_blsp_spi8,
427 	msm_mux_blsp_uart2,
428 	msm_mux_blsp_uart4,
429 	msm_mux_blsp_uart5,
430 	msm_mux_blsp_uart6,
431 	msm_mux_cam0_ldo,
432 	msm_mux_cam1_ldo,
433 	msm_mux_cam1_rst,
434 	msm_mux_cam1_standby,
435 	msm_mux_cam2_rst,
436 	msm_mux_cam2_standby,
437 	msm_mux_cam3_rst,
438 	msm_mux_cam3_standby,
439 	msm_mux_cam_irq,
440 	msm_mux_cam_mclk,
441 	msm_mux_cap_int,
442 	msm_mux_cci_async,
443 	msm_mux_cci_i2c,
444 	msm_mux_cci_timer0,
445 	msm_mux_cci_timer1,
446 	msm_mux_cci_timer2,
447 	msm_mux_cci_timer3,
448 	msm_mux_cci_timer4,
449 	msm_mux_cdc_pdm0,
450 	msm_mux_codec_int1,
451 	msm_mux_codec_int2,
452 	msm_mux_codec_reset,
453 	msm_mux_cri_trng,
454 	msm_mux_cri_trng0,
455 	msm_mux_cri_trng1,
456 	msm_mux_dac_calib0,
457 	msm_mux_dac_calib1,
458 	msm_mux_dac_calib2,
459 	msm_mux_dac_calib3,
460 	msm_mux_dac_calib4,
461 	msm_mux_dac_calib5,
462 	msm_mux_dac_calib6,
463 	msm_mux_dac_calib7,
464 	msm_mux_dac_calib8,
465 	msm_mux_dac_calib9,
466 	msm_mux_dac_calib10,
467 	msm_mux_dac_calib11,
468 	msm_mux_dac_calib12,
469 	msm_mux_dac_calib13,
470 	msm_mux_dac_calib14,
471 	msm_mux_dac_calib15,
472 	msm_mux_dac_calib16,
473 	msm_mux_dac_calib17,
474 	msm_mux_dac_calib18,
475 	msm_mux_dac_calib19,
476 	msm_mux_dac_calib20,
477 	msm_mux_dac_calib21,
478 	msm_mux_dac_calib22,
479 	msm_mux_dac_calib23,
480 	msm_mux_dac_calib24,
481 	msm_mux_dac_calib25,
482 	msm_mux_dbg_out,
483 	msm_mux_ddr_bist,
484 	msm_mux_dmic0_clk,
485 	msm_mux_dmic0_data,
486 	msm_mux_ebi_cdc,
487 	msm_mux_ebi_ch0,
488 	msm_mux_ext_lpass,
489 	msm_mux_flash_strobe,
490 	msm_mux_fp_int,
491 	msm_mux_gcc_gp1_clk_a,
492 	msm_mux_gcc_gp1_clk_b,
493 	msm_mux_gcc_gp2_clk_a,
494 	msm_mux_gcc_gp2_clk_b,
495 	msm_mux_gcc_gp3_clk_a,
496 	msm_mux_gcc_gp3_clk_b,
497 	msm_mux_gcc_plltest,
498 	msm_mux_gcc_tlmm,
499 	msm_mux_gpio,
500 	msm_mux_gsm0_tx,
501 	msm_mux_gsm1_tx,
502 	msm_mux_gyro_int,
503 	msm_mux_hall_int,
504 	msm_mux_hdmi_int,
505 	msm_mux_key_focus,
506 	msm_mux_key_home,
507 	msm_mux_key_snapshot,
508 	msm_mux_key_volp,
509 	msm_mux_ldo_en,
510 	msm_mux_ldo_update,
511 	msm_mux_lpass_slimbus,
512 	msm_mux_lpass_slimbus0,
513 	msm_mux_lpass_slimbus1,
514 	msm_mux_m_voc,
515 	msm_mux_mag_int,
516 	msm_mux_mdp_vsync,
517 	msm_mux_mipi_dsi0,
518 	msm_mux_modem_tsync,
519 	msm_mux_mss_lte,
520 	msm_mux_nav_pps,
521 	msm_mux_nav_pps_in_a,
522 	msm_mux_nav_pps_in_b,
523 	msm_mux_nav_tsync,
524 	msm_mux_nfc_disable,
525 	msm_mux_nfc_dwl,
526 	msm_mux_nfc_irq,
527 	msm_mux_ois_sync,
528 	msm_mux_pa_indicator,
529 	msm_mux_pbs0,
530 	msm_mux_pbs1,
531 	msm_mux_pbs2,
532 	msm_mux_pressure_int,
533 	msm_mux_pri_mi2s,
534 	msm_mux_pri_mi2s_mclk_a,
535 	msm_mux_pri_mi2s_mclk_b,
536 	msm_mux_pri_mi2s_ws,
537 	msm_mux_prng_rosc,
538 	msm_mux_pwr_crypto_enabled_a,
539 	msm_mux_pwr_crypto_enabled_b,
540 	msm_mux_pwr_down,
541 	msm_mux_pwr_modem_enabled_a,
542 	msm_mux_pwr_modem_enabled_b,
543 	msm_mux_pwr_nav_enabled_a,
544 	msm_mux_pwr_nav_enabled_b,
545 	msm_mux_qdss_cti_trig_in_a0,
546 	msm_mux_qdss_cti_trig_in_a1,
547 	msm_mux_qdss_cti_trig_in_b0,
548 	msm_mux_qdss_cti_trig_in_b1,
549 	msm_mux_qdss_cti_trig_out_a0,
550 	msm_mux_qdss_cti_trig_out_a1,
551 	msm_mux_qdss_cti_trig_out_b0,
552 	msm_mux_qdss_cti_trig_out_b1,
553 	msm_mux_qdss_traceclk_a,
554 	msm_mux_qdss_traceclk_b,
555 	msm_mux_qdss_tracectl_a,
556 	msm_mux_qdss_tracectl_b,
557 	msm_mux_qdss_tracedata_a,
558 	msm_mux_qdss_tracedata_b,
559 	msm_mux_sd_write,
560 	msm_mux_sdcard_det,
561 	msm_mux_sec_mi2s,
562 	msm_mux_sec_mi2s_mclk_a,
563 	msm_mux_sec_mi2s_mclk_b,
564 	msm_mux_smb_int,
565 	msm_mux_ss_switch,
566 	msm_mux_ssbi_wtr1,
567 	msm_mux_ts_resout,
568 	msm_mux_ts_sample,
569 	msm_mux_ts_xvdd,
570 	msm_mux_tsens_max,
571 	msm_mux_uim1_clk,
572 	msm_mux_uim1_data,
573 	msm_mux_uim1_present,
574 	msm_mux_uim1_reset,
575 	msm_mux_uim2_clk,
576 	msm_mux_uim2_data,
577 	msm_mux_uim2_present,
578 	msm_mux_uim2_reset,
579 	msm_mux_uim_batt,
580 	msm_mux_us_emitter,
581 	msm_mux_us_euro,
582 	msm_mux_wcss_bt,
583 	msm_mux_wcss_fm,
584 	msm_mux_wcss_wlan,
585 	msm_mux_wcss_wlan0,
586 	msm_mux_wcss_wlan1,
587 	msm_mux_wcss_wlan2,
588 	msm_mux_wsa_en,
589 	msm_mux_wsa_io,
590 	msm_mux_wsa_irq,
591 	msm_mux__,
592 };
593 
594 static const char * const accel_int_groups[] = {
595 	"gpio42",
596 };
597 
598 static const char * const adsp_ext_groups[] = {
599 	"gpio1",
600 };
601 
602 static const char * const alsp_int_groups[] = {
603 	"gpio43",
604 };
605 
606 static const char * const atest_bbrx0_groups[] = {
607 	"gpio17",
608 };
609 
610 static const char * const atest_bbrx1_groups[] = {
611 	"gpio16",
612 };
613 
614 static const char * const atest_char0_groups[] = {
615 	"gpio68",
616 };
617 
618 static const char * const atest_char1_groups[] = {
619 	"gpio67",
620 };
621 
622 static const char * const atest_char2_groups[] = {
623 	"gpio75",
624 };
625 
626 static const char * const atest_char3_groups[] = {
627 	"gpio63",
628 };
629 
630 static const char * const atest_char_groups[] = {
631 	"gpio120",
632 };
633 
634 static const char * const atest_gpsadc_dtest0_native_groups[] = {
635 	"gpio7",
636 };
637 
638 static const char * const atest_gpsadc_dtest1_native_groups[] = {
639 	"gpio18",
640 };
641 
642 static const char * const atest_tsens_groups[] = {
643 	"gpio120",
644 };
645 
646 static const char * const atest_wlan0_groups[] = {
647 	"gpio22",
648 };
649 
650 static const char * const atest_wlan1_groups[] = {
651 	"gpio23",
652 };
653 
654 static const char * const bimc_dte0_groups[] = {
655 	"gpio63", "gpio65",
656 };
657 
658 static const char * const bimc_dte1_groups[] = {
659 	"gpio121", "gpio122",
660 };
661 
662 static const char * const blsp1_spi_groups[] = {
663 	"gpio35", "gpio36",
664 };
665 
666 static const char * const blsp3_spi_groups[] = {
667 	"gpio41", "gpio50",
668 };
669 
670 static const char * const blsp6_spi_groups[] = {
671 	"gpio47", "gpio48",
672 };
673 
674 static const char * const blsp7_spi_groups[] = {
675 	"gpio89", "gpio90",
676 };
677 
678 static const char * const blsp_i2c1_groups[] = {
679 	"gpio2", "gpio3",
680 };
681 
682 static const char * const blsp_i2c2_groups[] = {
683 	"gpio6", "gpio7",
684 };
685 
686 static const char * const blsp_i2c3_groups[] = {
687 	"gpio10", "gpio11",
688 };
689 
690 static const char * const blsp_i2c4_groups[] = {
691 	"gpio14", "gpio15",
692 };
693 
694 static const char * const blsp_i2c5_groups[] = {
695 	"gpio18", "gpio19",
696 };
697 
698 static const char * const blsp_i2c6_groups[] = {
699 	"gpio22", "gpio23",
700 };
701 
702 static const char * const blsp_i2c7_groups[] = {
703 	"gpio135", "gpio136",
704 };
705 
706 static const char * const blsp_i2c8_groups[] = {
707 	"gpio98", "gpio99",
708 };
709 
710 static const char * const blsp_spi1_groups[] = {
711 	"gpio0", "gpio1", "gpio2", "gpio3",
712 };
713 
714 static const char * const blsp_spi2_groups[] = {
715 	"gpio4", "gpio5", "gpio6", "gpio7",
716 };
717 
718 static const char * const blsp_spi3_groups[] = {
719 	"gpio8", "gpio9", "gpio10", "gpio11",
720 };
721 
722 static const char * const blsp_spi4_groups[] = {
723 	"gpio12", "gpio13", "gpio14", "gpio15",
724 };
725 
726 static const char * const blsp_spi5_groups[] = {
727 	"gpio16", "gpio17", "gpio18", "gpio19",
728 };
729 
730 static const char * const blsp_spi6_groups[] = {
731 	"gpio20", "gpio21", "gpio22", "gpio23",
732 };
733 
734 static const char * const blsp_spi7_groups[] = {
735 	"gpio135", "gpio136", "gpio137", "gpio138",
736 };
737 
738 static const char * const blsp_spi8_groups[] = {
739 	"gpio96", "gpio97", "gpio98", "gpio99",
740 };
741 
742 static const char * const blsp_uart2_groups[] = {
743 	"gpio4", "gpio5", "gpio6", "gpio7",
744 };
745 
746 static const char * const blsp_uart4_groups[] = {
747 	"gpio12", "gpio13", "gpio14", "gpio15",
748 };
749 
750 static const char * const blsp_uart5_groups[] = {
751 	"gpio16", "gpio17", "gpio18", "gpio19",
752 };
753 
754 static const char * const blsp_uart6_groups[] = {
755 	"gpio20", "gpio21", "gpio22", "gpio23",
756 };
757 
758 static const char * const cam0_ldo_groups[] = {
759 	"gpio50",
760 };
761 
762 static const char * const cam1_ldo_groups[] = {
763 	"gpio134",
764 };
765 
766 static const char * const cam1_rst_groups[] = {
767 	"gpio40",
768 };
769 
770 static const char * const cam1_standby_groups[] = {
771 	"gpio39",
772 };
773 
774 static const char * const cam2_rst_groups[] = {
775 	"gpio129",
776 };
777 
778 static const char * const cam2_standby_groups[] = {
779 	"gpio130",
780 };
781 
782 static const char * const cam3_rst_groups[] = {
783 	"gpio131",
784 };
785 
786 static const char * const cam3_standby_groups[] = {
787 	"gpio132",
788 };
789 
790 static const char * const cam_irq_groups[] = {
791 	"gpio35",
792 };
793 
794 static const char * const cam_mclk_groups[] = {
795 	"gpio26", "gpio27", "gpio28", "gpio128",
796 };
797 
798 static const char * const cap_int_groups[] = {
799 	"gpio13",
800 };
801 
802 static const char * const cci_async_groups[] = {
803 	"gpio38",
804 };
805 
806 static const char * const cci_i2c_groups[] = {
807 	"gpio29", "gpio30", "gpio31", "gpio32",
808 };
809 
810 static const char * const cci_timer0_groups[] = {
811 	"gpio33",
812 };
813 
814 static const char * const cci_timer1_groups[] = {
815 	"gpio34",
816 };
817 
818 static const char * const cci_timer2_groups[] = {
819 	"gpio35",
820 };
821 
822 static const char * const cci_timer3_groups[] = {
823 	"gpio36",
824 };
825 
826 static const char * const cci_timer4_groups[] = {
827 	"gpio41",
828 };
829 
830 static const char * const cdc_pdm0_groups[] = {
831 	"gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72", "gpio73",
832 	"gpio74",
833 };
834 
835 static const char * const codec_int1_groups[] = {
836 	"gpio73",
837 };
838 
839 static const char * const codec_int2_groups[] = {
840 	"gpio74",
841 };
842 
843 static const char * const codec_reset_groups[] = {
844 	"gpio67",
845 };
846 
847 static const char * const cri_trng0_groups[] = {
848 	"gpio85",
849 };
850 
851 static const char * const cri_trng1_groups[] = {
852 	"gpio86",
853 };
854 
855 static const char * const cri_trng_groups[] = {
856 	"gpio87",
857 };
858 
859 static const char * const dac_calib0_groups[] = {
860 	"gpio4",
861 };
862 
863 static const char * const dac_calib1_groups[] = {
864 	"gpio12",
865 };
866 
867 static const char * const dac_calib2_groups[] = {
868 	"gpio13",
869 };
870 
871 static const char * const dac_calib3_groups[] = {
872 	"gpio28",
873 };
874 
875 static const char * const dac_calib4_groups[] = {
876 	"gpio29",
877 };
878 
879 static const char * const dac_calib5_groups[] = {
880 	"gpio39",
881 };
882 
883 static const char * const dac_calib6_groups[] = {
884 	"gpio40",
885 };
886 
887 static const char * const dac_calib7_groups[] = {
888 	"gpio41",
889 };
890 
891 static const char * const dac_calib8_groups[] = {
892 	"gpio42",
893 };
894 
895 static const char * const dac_calib9_groups[] = {
896 	"gpio43",
897 };
898 
899 static const char * const dac_calib10_groups[] = {
900 	"gpio44",
901 };
902 
903 static const char * const dac_calib11_groups[] = {
904 	"gpio45",
905 };
906 
907 static const char * const dac_calib12_groups[] = {
908 	"gpio46",
909 };
910 
911 static const char * const dac_calib13_groups[] = {
912 	"gpio47",
913 };
914 
915 static const char * const dac_calib14_groups[] = {
916 	"gpio48",
917 };
918 
919 static const char * const dac_calib15_groups[] = {
920 	"gpio20",
921 };
922 
923 static const char * const dac_calib16_groups[] = {
924 	"gpio21",
925 };
926 
927 static const char * const dac_calib17_groups[] = {
928 	"gpio67",
929 };
930 
931 static const char * const dac_calib18_groups[] = {
932 	"gpio115",
933 };
934 
935 static const char * const dac_calib19_groups[] = {
936 	"gpio30",
937 };
938 
939 static const char * const dac_calib20_groups[] = {
940 	"gpio128",
941 };
942 
943 static const char * const dac_calib21_groups[] = {
944 	"gpio129",
945 };
946 
947 static const char * const dac_calib22_groups[] = {
948 	"gpio130",
949 };
950 
951 static const char * const dac_calib23_groups[] = {
952 	"gpio131",
953 };
954 
955 static const char * const dac_calib24_groups[] = {
956 	"gpio132",
957 };
958 
959 static const char * const dac_calib25_groups[] = {
960 	"gpio133",
961 };
962 
963 static const char * const dbg_out_groups[] = {
964 	"gpio63",
965 };
966 
967 static const char * const ddr_bist_groups[] = {
968 	"gpio129", "gpio130", "gpio131", "gpio132",
969 };
970 
971 static const char * const dmic0_clk_groups[] = {
972 	"gpio89",
973 };
974 
975 static const char * const dmic0_data_groups[] = {
976 	"gpio90",
977 };
978 
979 static const char * const ebi_cdc_groups[] = {
980 	"gpio67", "gpio69", "gpio118", "gpio119", "gpio120", "gpio123",
981 };
982 
983 static const char * const ebi_ch0_groups[] = {
984 	"gpio75",
985 };
986 
987 static const char * const ext_lpass_groups[] = {
988 	"gpio81",
989 };
990 
991 static const char * const flash_strobe_groups[] = {
992 	"gpio33", "gpio34",
993 };
994 
995 static const char * const fp_int_groups[] = {
996 	"gpio48",
997 };
998 
999 static const char * const gcc_gp1_clk_a_groups[] = {
1000 	"gpio42",
1001 };
1002 
1003 static const char * const gcc_gp1_clk_b_groups[] = {
1004 	"gpio6", "gpio41",
1005 };
1006 
1007 static const char * const gcc_gp2_clk_a_groups[] = {
1008 	"gpio43",
1009 };
1010 
1011 static const char * const gcc_gp2_clk_b_groups[] = {
1012 	"gpio10",
1013 };
1014 
1015 static const char * const gcc_gp3_clk_a_groups[] = {
1016 	"gpio44",
1017 };
1018 
1019 static const char * const gcc_gp3_clk_b_groups[] = {
1020 	"gpio11",
1021 };
1022 
1023 static const char * const gcc_plltest_groups[] = {
1024 	"gpio98", "gpio99",
1025 };
1026 
1027 static const char * const gcc_tlmm_groups[] = {
1028 	"gpio87",
1029 };
1030 
1031 static const char * const gpio_groups[] = {
1032 	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
1033 	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
1034 	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
1035 	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
1036 	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
1037 	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
1038 	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
1039 	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
1040 	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
1041 	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
1042 	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
1043 	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
1044 	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
1045 	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
1046 	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
1047 	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
1048 	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
1049 	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
1050 	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
1051 	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
1052 	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
1053 	"gpio141",
1054 };
1055 
1056 static const char * const gsm0_tx_groups[] = {
1057 	"gpio117",
1058 };
1059 
1060 static const char * const gsm1_tx_groups[] = {
1061 	"gpio115",
1062 };
1063 
1064 static const char * const gyro_int_groups[] = {
1065 	"gpio45",
1066 };
1067 
1068 static const char * const hall_int_groups[] = {
1069 	"gpio12",
1070 };
1071 
1072 static const char * const hdmi_int_groups[] = {
1073 	"gpio90",
1074 };
1075 
1076 static const char * const key_focus_groups[] = {
1077 	"gpio87",
1078 };
1079 
1080 static const char * const key_home_groups[] = {
1081 	"gpio88",
1082 };
1083 
1084 static const char * const key_snapshot_groups[] = {
1085 	"gpio86",
1086 };
1087 
1088 static const char * const key_volp_groups[] = {
1089 	"gpio85",
1090 };
1091 
1092 static const char * const ldo_en_groups[] = {
1093 	"gpio5",
1094 };
1095 
1096 static const char * const ldo_update_groups[] = {
1097 	"gpio4",
1098 };
1099 
1100 static const char * const lpass_slimbus0_groups[] = {
1101 	"gpio71",
1102 };
1103 
1104 static const char * const lpass_slimbus1_groups[] = {
1105 	"gpio72",
1106 };
1107 
1108 static const char * const lpass_slimbus_groups[] = {
1109 	"gpio70",
1110 };
1111 
1112 static const char * const m_voc_groups[] = {
1113 	"gpio17", "gpio21",
1114 };
1115 
1116 static const char * const mag_int_groups[] = {
1117 	"gpio44",
1118 };
1119 
1120 static const char * const mdp_vsync_groups[] = {
1121 	"gpio24", "gpio25",
1122 };
1123 
1124 static const char * const mipi_dsi0_groups[] = {
1125 	"gpio61",
1126 };
1127 
1128 static const char * const modem_tsync_groups[] = {
1129 	"gpio113",
1130 };
1131 
1132 static const char * const mss_lte_groups[] = {
1133 	"gpio82", "gpio83",
1134 };
1135 
1136 static const char * const nav_pps_groups[] = {
1137 	"gpio113",
1138 };
1139 
1140 static const char * const nav_pps_in_a_groups[] = {
1141 	"gpio111",
1142 };
1143 
1144 static const char * const nav_pps_in_b_groups[] = {
1145 	"gpio113",
1146 };
1147 
1148 static const char * const nav_tsync_groups[] = {
1149 	"gpio113",
1150 };
1151 
1152 static const char * const nfc_disable_groups[] = {
1153 	"gpio16",
1154 };
1155 
1156 static const char * const nfc_dwl_groups[] = {
1157 	"gpio62",
1158 };
1159 
1160 static const char * const nfc_irq_groups[] = {
1161 	"gpio17",
1162 };
1163 
1164 static const char * const ois_sync_groups[] = {
1165 	"gpio36",
1166 };
1167 
1168 static const char * const pa_indicator_groups[] = {
1169 	"gpio112",
1170 };
1171 
1172 static const char * const pbs0_groups[] = {
1173 	"gpio85",
1174 };
1175 
1176 static const char * const pbs1_groups[] = {
1177 	"gpio86",
1178 };
1179 
1180 static const char * const pbs2_groups[] = {
1181 	"gpio87",
1182 };
1183 
1184 static const char * const pressure_int_groups[] = {
1185 	"gpio46",
1186 };
1187 
1188 static const char * const pri_mi2s_groups[] = {
1189 	"gpio66", "gpio88", "gpio91", "gpio93", "gpio94", "gpio95",
1190 };
1191 
1192 static const char * const pri_mi2s_mclk_a_groups[] = {
1193 	"gpio25",
1194 };
1195 
1196 static const char * const pri_mi2s_mclk_b_groups[] = {
1197 	"gpio69",
1198 };
1199 
1200 static const char * const pri_mi2s_ws_groups[] = {
1201 	"gpio92",
1202 };
1203 
1204 static const char * const prng_rosc_groups[] = {
1205 	"gpio2",
1206 };
1207 
1208 static const char * const pwr_crypto_enabled_a_groups[] = {
1209 	"gpio36",
1210 };
1211 
1212 static const char * const pwr_crypto_enabled_b_groups[] = {
1213 	"gpio13",
1214 };
1215 
1216 static const char * const pwr_down_groups[] = {
1217 	"gpio89",
1218 };
1219 
1220 static const char * const pwr_modem_enabled_a_groups[] = {
1221 	"gpio29",
1222 };
1223 
1224 static const char * const pwr_modem_enabled_b_groups[] = {
1225 	"gpio9",
1226 };
1227 
1228 static const char * const pwr_nav_enabled_a_groups[] = {
1229 	"gpio35",
1230 };
1231 
1232 static const char * const pwr_nav_enabled_b_groups[] = {
1233 	"gpio12",
1234 };
1235 
1236 static const char * const qdss_cti_trig_in_a0_groups[] = {
1237 	"gpio17",
1238 };
1239 
1240 static const char * const qdss_cti_trig_in_a1_groups[] = {
1241 	"gpio91",
1242 };
1243 
1244 static const char * const qdss_cti_trig_in_b0_groups[] = {
1245 	"gpio21",
1246 };
1247 
1248 static const char * const qdss_cti_trig_in_b1_groups[] = {
1249 	"gpio48",
1250 };
1251 
1252 static const char * const qdss_cti_trig_out_a0_groups[] = {
1253 	"gpio41",
1254 };
1255 
1256 static const char * const qdss_cti_trig_out_a1_groups[] = {
1257 	"gpio3",
1258 };
1259 
1260 static const char * const qdss_cti_trig_out_b0_groups[] = {
1261 	"gpio2",
1262 };
1263 
1264 static const char * const qdss_cti_trig_out_b1_groups[] = {
1265 	"gpio25",
1266 };
1267 
1268 static const char * const qdss_traceclk_a_groups[] = {
1269 	"gpio16",
1270 };
1271 
1272 static const char * const qdss_traceclk_b_groups[] = {
1273 	"gpio22",
1274 };
1275 
1276 static const char * const qdss_tracectl_a_groups[] = {
1277 	"gpio18",
1278 };
1279 
1280 static const char * const qdss_tracectl_b_groups[] = {
1281 	"gpio20",
1282 };
1283 
1284 static const char * const qdss_tracedata_a_groups[] = {
1285 	"gpio19", "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31",
1286 	"gpio32", "gpio33", "gpio34", "gpio35", "gpio36", "gpio38", "gpio39",
1287 	"gpio40", "gpio50",
1288 };
1289 
1290 static const char * const qdss_tracedata_b_groups[] = {
1291 	"gpio8", "gpio9", "gpio12", "gpio13", "gpio23", "gpio42", "gpio43",
1292 	"gpio44", "gpio45", "gpio46", "gpio47", "gpio66", "gpio86", "gpio87",
1293 	"gpio88", "gpio92",
1294 };
1295 
1296 static const char * const sd_write_groups[] = {
1297 	"gpio50",
1298 };
1299 
1300 static const char * const sdcard_det_groups[] = {
1301 	"gpio133",
1302 };
1303 
1304 static const char * const sec_mi2s_groups[] = {
1305 	"gpio135", "gpio136", "gpio137", "gpio138",
1306 };
1307 
1308 static const char * const sec_mi2s_mclk_a_groups[] = {
1309 	"gpio25",
1310 };
1311 
1312 static const char * const sec_mi2s_mclk_b_groups[] = {
1313 	"gpio66",
1314 };
1315 
1316 static const char * const smb_int_groups[] = {
1317 	"gpio1",
1318 };
1319 
1320 static const char * const ss_switch_groups[] = {
1321 	"gpio139",
1322 };
1323 
1324 static const char * const ssbi_wtr1_groups[] = {
1325 	"gpio114", "gpio123",
1326 };
1327 
1328 static const char * const ts_resout_groups[] = {
1329 	"gpio64",
1330 };
1331 
1332 static const char * const ts_sample_groups[] = {
1333 	"gpio65",
1334 };
1335 
1336 static const char * const ts_xvdd_groups[] = {
1337 	"gpio60",
1338 };
1339 
1340 static const char * const tsens_max_groups[] = {
1341 	"gpio139",
1342 };
1343 
1344 static const char * const uim1_clk_groups[] = {
1345 	"gpio52",
1346 };
1347 
1348 static const char * const uim1_data_groups[] = {
1349 	"gpio51",
1350 };
1351 
1352 static const char * const uim1_present_groups[] = {
1353 	"gpio54",
1354 };
1355 
1356 static const char * const uim1_reset_groups[] = {
1357 	"gpio53",
1358 };
1359 
1360 static const char * const uim2_clk_groups[] = {
1361 	"gpio56",
1362 };
1363 
1364 static const char * const uim2_data_groups[] = {
1365 	"gpio55",
1366 };
1367 
1368 static const char * const uim2_present_groups[] = {
1369 	"gpio58",
1370 };
1371 
1372 static const char * const uim2_reset_groups[] = {
1373 	"gpio57",
1374 };
1375 
1376 static const char * const uim_batt_groups[] = {
1377 	"gpio49",
1378 };
1379 
1380 static const char * const us_emitter_groups[] = {
1381 	"gpio68",
1382 };
1383 
1384 static const char * const us_euro_groups[] = {
1385 	"gpio63",
1386 };
1387 
1388 static const char * const wcss_bt_groups[] = {
1389 	"gpio75", "gpio83", "gpio84",
1390 };
1391 
1392 static const char * const wcss_fm_groups[] = {
1393 	"gpio81", "gpio82",
1394 };
1395 
1396 static const char * const wcss_wlan0_groups[] = {
1397 	"gpio78",
1398 };
1399 
1400 static const char * const wcss_wlan1_groups[] = {
1401 	"gpio77",
1402 };
1403 
1404 static const char * const wcss_wlan2_groups[] = {
1405 	"gpio76",
1406 };
1407 
1408 static const char * const wcss_wlan_groups[] = {
1409 	"gpio79", "gpio80",
1410 };
1411 
1412 static const char * const wsa_en_groups[] = {
1413 	"gpio96",
1414 };
1415 
1416 static const char * const wsa_io_groups[] = {
1417 	"gpio94", "gpio95",
1418 };
1419 
1420 static const char * const wsa_irq_groups[] = {
1421 	"gpio97",
1422 };
1423 
1424 static const struct pinfunction msm8953_functions[] = {
1425 	MSM_PIN_FUNCTION(accel_int),
1426 	MSM_PIN_FUNCTION(adsp_ext),
1427 	MSM_PIN_FUNCTION(alsp_int),
1428 	MSM_PIN_FUNCTION(atest_bbrx0),
1429 	MSM_PIN_FUNCTION(atest_bbrx1),
1430 	MSM_PIN_FUNCTION(atest_char),
1431 	MSM_PIN_FUNCTION(atest_char0),
1432 	MSM_PIN_FUNCTION(atest_char1),
1433 	MSM_PIN_FUNCTION(atest_char2),
1434 	MSM_PIN_FUNCTION(atest_char3),
1435 	MSM_PIN_FUNCTION(atest_gpsadc_dtest0_native),
1436 	MSM_PIN_FUNCTION(atest_gpsadc_dtest1_native),
1437 	MSM_PIN_FUNCTION(atest_tsens),
1438 	MSM_PIN_FUNCTION(atest_wlan0),
1439 	MSM_PIN_FUNCTION(atest_wlan1),
1440 	MSM_PIN_FUNCTION(bimc_dte0),
1441 	MSM_PIN_FUNCTION(bimc_dte1),
1442 	MSM_PIN_FUNCTION(blsp1_spi),
1443 	MSM_PIN_FUNCTION(blsp3_spi),
1444 	MSM_PIN_FUNCTION(blsp6_spi),
1445 	MSM_PIN_FUNCTION(blsp7_spi),
1446 	MSM_PIN_FUNCTION(blsp_i2c1),
1447 	MSM_PIN_FUNCTION(blsp_i2c2),
1448 	MSM_PIN_FUNCTION(blsp_i2c3),
1449 	MSM_PIN_FUNCTION(blsp_i2c4),
1450 	MSM_PIN_FUNCTION(blsp_i2c5),
1451 	MSM_PIN_FUNCTION(blsp_i2c6),
1452 	MSM_PIN_FUNCTION(blsp_i2c7),
1453 	MSM_PIN_FUNCTION(blsp_i2c8),
1454 	MSM_PIN_FUNCTION(blsp_spi1),
1455 	MSM_PIN_FUNCTION(blsp_spi2),
1456 	MSM_PIN_FUNCTION(blsp_spi3),
1457 	MSM_PIN_FUNCTION(blsp_spi4),
1458 	MSM_PIN_FUNCTION(blsp_spi5),
1459 	MSM_PIN_FUNCTION(blsp_spi6),
1460 	MSM_PIN_FUNCTION(blsp_spi7),
1461 	MSM_PIN_FUNCTION(blsp_spi8),
1462 	MSM_PIN_FUNCTION(blsp_uart2),
1463 	MSM_PIN_FUNCTION(blsp_uart4),
1464 	MSM_PIN_FUNCTION(blsp_uart5),
1465 	MSM_PIN_FUNCTION(blsp_uart6),
1466 	MSM_PIN_FUNCTION(cam0_ldo),
1467 	MSM_PIN_FUNCTION(cam1_ldo),
1468 	MSM_PIN_FUNCTION(cam1_rst),
1469 	MSM_PIN_FUNCTION(cam1_standby),
1470 	MSM_PIN_FUNCTION(cam2_rst),
1471 	MSM_PIN_FUNCTION(cam2_standby),
1472 	MSM_PIN_FUNCTION(cam3_rst),
1473 	MSM_PIN_FUNCTION(cam3_standby),
1474 	MSM_PIN_FUNCTION(cam_irq),
1475 	MSM_PIN_FUNCTION(cam_mclk),
1476 	MSM_PIN_FUNCTION(cap_int),
1477 	MSM_PIN_FUNCTION(cci_async),
1478 	MSM_PIN_FUNCTION(cci_i2c),
1479 	MSM_PIN_FUNCTION(cci_timer0),
1480 	MSM_PIN_FUNCTION(cci_timer1),
1481 	MSM_PIN_FUNCTION(cci_timer2),
1482 	MSM_PIN_FUNCTION(cci_timer3),
1483 	MSM_PIN_FUNCTION(cci_timer4),
1484 	MSM_PIN_FUNCTION(cdc_pdm0),
1485 	MSM_PIN_FUNCTION(codec_int1),
1486 	MSM_PIN_FUNCTION(codec_int2),
1487 	MSM_PIN_FUNCTION(codec_reset),
1488 	MSM_PIN_FUNCTION(cri_trng),
1489 	MSM_PIN_FUNCTION(cri_trng0),
1490 	MSM_PIN_FUNCTION(cri_trng1),
1491 	MSM_PIN_FUNCTION(dac_calib0),
1492 	MSM_PIN_FUNCTION(dac_calib1),
1493 	MSM_PIN_FUNCTION(dac_calib10),
1494 	MSM_PIN_FUNCTION(dac_calib11),
1495 	MSM_PIN_FUNCTION(dac_calib12),
1496 	MSM_PIN_FUNCTION(dac_calib13),
1497 	MSM_PIN_FUNCTION(dac_calib14),
1498 	MSM_PIN_FUNCTION(dac_calib15),
1499 	MSM_PIN_FUNCTION(dac_calib16),
1500 	MSM_PIN_FUNCTION(dac_calib17),
1501 	MSM_PIN_FUNCTION(dac_calib18),
1502 	MSM_PIN_FUNCTION(dac_calib19),
1503 	MSM_PIN_FUNCTION(dac_calib2),
1504 	MSM_PIN_FUNCTION(dac_calib20),
1505 	MSM_PIN_FUNCTION(dac_calib21),
1506 	MSM_PIN_FUNCTION(dac_calib22),
1507 	MSM_PIN_FUNCTION(dac_calib23),
1508 	MSM_PIN_FUNCTION(dac_calib24),
1509 	MSM_PIN_FUNCTION(dac_calib25),
1510 	MSM_PIN_FUNCTION(dac_calib3),
1511 	MSM_PIN_FUNCTION(dac_calib4),
1512 	MSM_PIN_FUNCTION(dac_calib5),
1513 	MSM_PIN_FUNCTION(dac_calib6),
1514 	MSM_PIN_FUNCTION(dac_calib7),
1515 	MSM_PIN_FUNCTION(dac_calib8),
1516 	MSM_PIN_FUNCTION(dac_calib9),
1517 	MSM_PIN_FUNCTION(dbg_out),
1518 	MSM_PIN_FUNCTION(ddr_bist),
1519 	MSM_PIN_FUNCTION(dmic0_clk),
1520 	MSM_PIN_FUNCTION(dmic0_data),
1521 	MSM_PIN_FUNCTION(ebi_cdc),
1522 	MSM_PIN_FUNCTION(ebi_ch0),
1523 	MSM_PIN_FUNCTION(ext_lpass),
1524 	MSM_PIN_FUNCTION(flash_strobe),
1525 	MSM_PIN_FUNCTION(fp_int),
1526 	MSM_PIN_FUNCTION(gcc_gp1_clk_a),
1527 	MSM_PIN_FUNCTION(gcc_gp1_clk_b),
1528 	MSM_PIN_FUNCTION(gcc_gp2_clk_a),
1529 	MSM_PIN_FUNCTION(gcc_gp2_clk_b),
1530 	MSM_PIN_FUNCTION(gcc_gp3_clk_a),
1531 	MSM_PIN_FUNCTION(gcc_gp3_clk_b),
1532 	MSM_PIN_FUNCTION(gcc_plltest),
1533 	MSM_PIN_FUNCTION(gcc_tlmm),
1534 	MSM_GPIO_PIN_FUNCTION(gpio),
1535 	MSM_PIN_FUNCTION(gsm0_tx),
1536 	MSM_PIN_FUNCTION(gsm1_tx),
1537 	MSM_PIN_FUNCTION(gyro_int),
1538 	MSM_PIN_FUNCTION(hall_int),
1539 	MSM_PIN_FUNCTION(hdmi_int),
1540 	MSM_PIN_FUNCTION(key_focus),
1541 	MSM_PIN_FUNCTION(key_home),
1542 	MSM_PIN_FUNCTION(key_snapshot),
1543 	MSM_PIN_FUNCTION(key_volp),
1544 	MSM_PIN_FUNCTION(ldo_en),
1545 	MSM_PIN_FUNCTION(ldo_update),
1546 	MSM_PIN_FUNCTION(lpass_slimbus),
1547 	MSM_PIN_FUNCTION(lpass_slimbus0),
1548 	MSM_PIN_FUNCTION(lpass_slimbus1),
1549 	MSM_PIN_FUNCTION(m_voc),
1550 	MSM_PIN_FUNCTION(mag_int),
1551 	MSM_PIN_FUNCTION(mdp_vsync),
1552 	MSM_PIN_FUNCTION(mipi_dsi0),
1553 	MSM_PIN_FUNCTION(modem_tsync),
1554 	MSM_PIN_FUNCTION(mss_lte),
1555 	MSM_PIN_FUNCTION(nav_pps),
1556 	MSM_PIN_FUNCTION(nav_pps_in_a),
1557 	MSM_PIN_FUNCTION(nav_pps_in_b),
1558 	MSM_PIN_FUNCTION(nav_tsync),
1559 	MSM_PIN_FUNCTION(nfc_disable),
1560 	MSM_PIN_FUNCTION(nfc_dwl),
1561 	MSM_PIN_FUNCTION(nfc_irq),
1562 	MSM_PIN_FUNCTION(ois_sync),
1563 	MSM_PIN_FUNCTION(pa_indicator),
1564 	MSM_PIN_FUNCTION(pbs0),
1565 	MSM_PIN_FUNCTION(pbs1),
1566 	MSM_PIN_FUNCTION(pbs2),
1567 	MSM_PIN_FUNCTION(pressure_int),
1568 	MSM_PIN_FUNCTION(pri_mi2s),
1569 	MSM_PIN_FUNCTION(pri_mi2s_mclk_a),
1570 	MSM_PIN_FUNCTION(pri_mi2s_mclk_b),
1571 	MSM_PIN_FUNCTION(pri_mi2s_ws),
1572 	MSM_PIN_FUNCTION(prng_rosc),
1573 	MSM_PIN_FUNCTION(pwr_crypto_enabled_a),
1574 	MSM_PIN_FUNCTION(pwr_crypto_enabled_b),
1575 	MSM_PIN_FUNCTION(pwr_down),
1576 	MSM_PIN_FUNCTION(pwr_modem_enabled_a),
1577 	MSM_PIN_FUNCTION(pwr_modem_enabled_b),
1578 	MSM_PIN_FUNCTION(pwr_nav_enabled_a),
1579 	MSM_PIN_FUNCTION(pwr_nav_enabled_b),
1580 	MSM_PIN_FUNCTION(qdss_cti_trig_in_a0),
1581 	MSM_PIN_FUNCTION(qdss_cti_trig_in_a1),
1582 	MSM_PIN_FUNCTION(qdss_cti_trig_in_b0),
1583 	MSM_PIN_FUNCTION(qdss_cti_trig_in_b1),
1584 	MSM_PIN_FUNCTION(qdss_cti_trig_out_a0),
1585 	MSM_PIN_FUNCTION(qdss_cti_trig_out_a1),
1586 	MSM_PIN_FUNCTION(qdss_cti_trig_out_b0),
1587 	MSM_PIN_FUNCTION(qdss_cti_trig_out_b1),
1588 	MSM_PIN_FUNCTION(qdss_traceclk_a),
1589 	MSM_PIN_FUNCTION(qdss_traceclk_b),
1590 	MSM_PIN_FUNCTION(qdss_tracectl_a),
1591 	MSM_PIN_FUNCTION(qdss_tracectl_b),
1592 	MSM_PIN_FUNCTION(qdss_tracedata_a),
1593 	MSM_PIN_FUNCTION(qdss_tracedata_b),
1594 	MSM_PIN_FUNCTION(sd_write),
1595 	MSM_PIN_FUNCTION(sdcard_det),
1596 	MSM_PIN_FUNCTION(sec_mi2s),
1597 	MSM_PIN_FUNCTION(sec_mi2s_mclk_a),
1598 	MSM_PIN_FUNCTION(sec_mi2s_mclk_b),
1599 	MSM_PIN_FUNCTION(smb_int),
1600 	MSM_PIN_FUNCTION(ss_switch),
1601 	MSM_PIN_FUNCTION(ssbi_wtr1),
1602 	MSM_PIN_FUNCTION(ts_resout),
1603 	MSM_PIN_FUNCTION(ts_sample),
1604 	MSM_PIN_FUNCTION(ts_xvdd),
1605 	MSM_PIN_FUNCTION(tsens_max),
1606 	MSM_PIN_FUNCTION(uim1_clk),
1607 	MSM_PIN_FUNCTION(uim1_data),
1608 	MSM_PIN_FUNCTION(uim1_present),
1609 	MSM_PIN_FUNCTION(uim1_reset),
1610 	MSM_PIN_FUNCTION(uim2_clk),
1611 	MSM_PIN_FUNCTION(uim2_data),
1612 	MSM_PIN_FUNCTION(uim2_present),
1613 	MSM_PIN_FUNCTION(uim2_reset),
1614 	MSM_PIN_FUNCTION(uim_batt),
1615 	MSM_PIN_FUNCTION(us_emitter),
1616 	MSM_PIN_FUNCTION(us_euro),
1617 	MSM_PIN_FUNCTION(wcss_bt),
1618 	MSM_PIN_FUNCTION(wcss_fm),
1619 	MSM_PIN_FUNCTION(wcss_wlan),
1620 	MSM_PIN_FUNCTION(wcss_wlan0),
1621 	MSM_PIN_FUNCTION(wcss_wlan1),
1622 	MSM_PIN_FUNCTION(wcss_wlan2),
1623 	MSM_PIN_FUNCTION(wsa_en),
1624 	MSM_PIN_FUNCTION(wsa_io),
1625 	MSM_PIN_FUNCTION(wsa_irq),
1626 };
1627 
1628 static const struct msm_pingroup msm8953_groups[] = {
1629 	PINGROUP(0, blsp_spi1, _, _, _, _, _, _, _, _),
1630 	PINGROUP(1, blsp_spi1, adsp_ext, _, _, _, _, _, _, _),
1631 	PINGROUP(2, blsp_spi1, blsp_i2c1, prng_rosc, _, _, _, qdss_cti_trig_out_b0, _, _),
1632 	PINGROUP(3, blsp_spi1, blsp_i2c1, _, _, _, qdss_cti_trig_out_a1, _, _, _),
1633 	PINGROUP(4, blsp_spi2, blsp_uart2, ldo_update, _, dac_calib0, _, _, _, _),
1634 	PINGROUP(5, blsp_spi2, blsp_uart2, ldo_en, _, _, _, _, _, _),
1635 	PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, gcc_gp1_clk_b, _, _, _, _, _),
1636 	PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, _, atest_gpsadc_dtest0_native, _, _, _, _),
1637 	PINGROUP(8, blsp_spi3, _, _, qdss_tracedata_b, _, _, _, _, _),
1638 	PINGROUP(9, blsp_spi3, pwr_modem_enabled_b, _, _, qdss_tracedata_b, _, _, _, _),
1639 	PINGROUP(10, blsp_spi3, blsp_i2c3, gcc_gp2_clk_b, _, _, _, _, _, _),
1640 	PINGROUP(11, blsp_spi3, blsp_i2c3, gcc_gp3_clk_b, _, _, _, _, _, _),
1641 	PINGROUP(12, blsp_spi4, blsp_uart4, pwr_nav_enabled_b, _, _,
1642 		 qdss_tracedata_b, _, dac_calib1, _),
1643 	PINGROUP(13, blsp_spi4, blsp_uart4, pwr_crypto_enabled_b, _, _, _,
1644 		 qdss_tracedata_b, _, dac_calib2),
1645 	PINGROUP(14, blsp_spi4, blsp_uart4, blsp_i2c4, _, _, _, _, _, _),
1646 	PINGROUP(15, blsp_spi4, blsp_uart4, blsp_i2c4, _, _, _, _, _, _),
1647 	PINGROUP(16, blsp_spi5, blsp_uart5, _, _, qdss_traceclk_a, _, atest_bbrx1, _, _),
1648 	PINGROUP(17, blsp_spi5, blsp_uart5, m_voc, qdss_cti_trig_in_a0, _, atest_bbrx0, _, _, _),
1649 	PINGROUP(18, blsp_spi5, blsp_uart5, blsp_i2c5,
1650 		 qdss_tracectl_a, _, atest_gpsadc_dtest1_native, _, _, _),
1651 	PINGROUP(19, blsp_spi5, blsp_uart5, blsp_i2c5, qdss_tracedata_a, _, _, _, _, _),
1652 	PINGROUP(20, blsp_spi6, blsp_uart6, _, _, _, qdss_tracectl_b, _, dac_calib15, _),
1653 	PINGROUP(21, blsp_spi6, blsp_uart6, m_voc, _, _, _, qdss_cti_trig_in_b0, _, dac_calib16),
1654 	PINGROUP(22, blsp_spi6, blsp_uart6, blsp_i2c6, qdss_traceclk_b, _, atest_wlan0, _, _, _),
1655 	PINGROUP(23, blsp_spi6, blsp_uart6, blsp_i2c6, qdss_tracedata_b, _, atest_wlan1, _, _, _),
1656 	PINGROUP(24, mdp_vsync, _, _, _, _, _, _, _, _),
1657 	PINGROUP(25, mdp_vsync, pri_mi2s_mclk_a, sec_mi2s_mclk_a,
1658 		 qdss_cti_trig_out_b1, _, _, _, _, _),
1659 	PINGROUP(26, cam_mclk, _, _, _, qdss_tracedata_a, _, _, _, _),
1660 	PINGROUP(27, cam_mclk, _, _, _, qdss_tracedata_a, _, _, _, _),
1661 	PINGROUP(28, cam_mclk, _, _, _, qdss_tracedata_a, _, dac_calib3, _, _),
1662 	PINGROUP(29, cci_i2c, pwr_modem_enabled_a, _, _, _, qdss_tracedata_a, _, dac_calib4, _),
1663 	PINGROUP(30, cci_i2c, _, _, _, qdss_tracedata_a, _, dac_calib19, _, _),
1664 	PINGROUP(31, cci_i2c, _, _, _, qdss_tracedata_a, _, _, _, _),
1665 	PINGROUP(32, cci_i2c, _, _, _, qdss_tracedata_a, _, _, _, _),
1666 	PINGROUP(33, cci_timer0, _, _, _, _, qdss_tracedata_a, _, _, _),
1667 	PINGROUP(34, cci_timer1, _, _, _, _, qdss_tracedata_a, _, _, _),
1668 	PINGROUP(35, cci_timer2, blsp1_spi, pwr_nav_enabled_a, _, _, _, qdss_tracedata_a, _, _),
1669 	PINGROUP(36, cci_timer3, blsp1_spi, _, pwr_crypto_enabled_a, _, _, _, qdss_tracedata_a, _),
1670 	PINGROUP(37, _, _, _, _, _, _, _, _, _),
1671 	PINGROUP(38, cci_async, _, qdss_tracedata_a, _, _, _, _, _, _),
1672 	PINGROUP(39, _, _, _, qdss_tracedata_a, _, dac_calib5, _, _, _),
1673 	PINGROUP(40, _, _, qdss_tracedata_a, _, dac_calib6, _, _, _, _),
1674 	PINGROUP(41, cci_timer4, blsp3_spi, gcc_gp1_clk_b, _, _,
1675 		 qdss_cti_trig_out_a0, _, dac_calib7, _),
1676 	PINGROUP(42, gcc_gp1_clk_a, qdss_tracedata_b, _, dac_calib8, _, _, _, _, _),
1677 	PINGROUP(43, gcc_gp2_clk_a, qdss_tracedata_b, _, dac_calib9, _, _, _, _, _),
1678 	PINGROUP(44, gcc_gp3_clk_a, qdss_tracedata_b, _, dac_calib10, _, _, _, _, _),
1679 	PINGROUP(45, _, qdss_tracedata_b, _, dac_calib11, _, _, _, _, _),
1680 	PINGROUP(46, qdss_tracedata_b, _, dac_calib12, _, _, _, _, _, _),
1681 	PINGROUP(47, blsp6_spi, qdss_tracedata_b, _, dac_calib13, _, _, _, _, _),
1682 	PINGROUP(48, blsp6_spi, _, qdss_cti_trig_in_b1, _, dac_calib14, _, _, _, _),
1683 	PINGROUP(49, uim_batt, _, _, _, _, _, _, _, _),
1684 	PINGROUP(50, blsp3_spi, sd_write, _, _, _, qdss_tracedata_a, _, _, _),
1685 	PINGROUP(51, uim1_data, _, _, _, _, _, _, _, _),
1686 	PINGROUP(52, uim1_clk, _, _, _, _, _, _, _, _),
1687 	PINGROUP(53, uim1_reset, _, _, _, _, _, _, _, _),
1688 	PINGROUP(54, uim1_present, _, _, _, _, _, _, _, _),
1689 	PINGROUP(55, uim2_data, _, _, _, _, _, _, _, _),
1690 	PINGROUP(56, uim2_clk, _, _, _, _, _, _, _, _),
1691 	PINGROUP(57, uim2_reset, _, _, _, _, _, _, _, _),
1692 	PINGROUP(58, uim2_present, _, _, _, _, _, _, _, _),
1693 	PINGROUP(59, _, _, _, _, _, _, _, _, _),
1694 	PINGROUP(60, _, _, _, _, _, _, _, _, _),
1695 	PINGROUP(61, _, _, _, _, _, _, _, _, _),
1696 	PINGROUP(62, _, _, _, _, _, _, _, _, _),
1697 	PINGROUP(63, atest_char3, dbg_out, bimc_dte0, _, _, _, _, _, _),
1698 	PINGROUP(64, _, _, _, _, _, _, _, _, _),
1699 	PINGROUP(65, bimc_dte0, _, _, _, _, _, _, _, _),
1700 	PINGROUP(66, sec_mi2s_mclk_b, pri_mi2s, _, qdss_tracedata_b, _, _, _, _, _),
1701 	PINGROUP(67, cdc_pdm0, atest_char1, ebi_cdc, _, dac_calib17, _, _, _, _),
1702 	PINGROUP(68, cdc_pdm0, atest_char0, _, _, _, _, _, _, _),
1703 	PINGROUP(69, cdc_pdm0, pri_mi2s_mclk_b, ebi_cdc, _, _, _, _, _, _),
1704 	PINGROUP(70, lpass_slimbus, cdc_pdm0, _, _, _, _, _, _, _),
1705 	PINGROUP(71, lpass_slimbus0, cdc_pdm0, _, _, _, _, _, _, _),
1706 	PINGROUP(72, lpass_slimbus1, cdc_pdm0, _, _, _, _, _, _, _),
1707 	PINGROUP(73, cdc_pdm0, _, _, _, _, _, _, _, _),
1708 	PINGROUP(74, cdc_pdm0, _, _, _, _, _, _, _, _),
1709 	PINGROUP(75, wcss_bt, atest_char2, _, ebi_ch0, _, _, _, _, _),
1710 	PINGROUP(76, wcss_wlan2, _, _, _, _, _, _, _, _),
1711 	PINGROUP(77, wcss_wlan1, _, _, _, _, _, _, _, _),
1712 	PINGROUP(78, wcss_wlan0, _, _, _, _, _, _, _, _),
1713 	PINGROUP(79, wcss_wlan, _, _, _, _, _, _, _, _),
1714 	PINGROUP(80, wcss_wlan, _, _, _, _, _, _, _, _),
1715 	PINGROUP(81, wcss_fm, ext_lpass, _, _, _, _, _, _, _),
1716 	PINGROUP(82, wcss_fm, mss_lte, _, _, _, _, _, _, _),
1717 	PINGROUP(83, wcss_bt, mss_lte, _, _, _, _, _, _, _),
1718 	PINGROUP(84, wcss_bt, _, _, _, _, _, _, _, _),
1719 	PINGROUP(85, pbs0, cri_trng0, _, _, _, _, _, _, _),
1720 	PINGROUP(86, pbs1, cri_trng1, qdss_tracedata_b, _, _, _, _, _, _),
1721 	PINGROUP(87, pbs2, cri_trng, qdss_tracedata_b, gcc_tlmm, _, _, _, _, _),
1722 	PINGROUP(88, pri_mi2s, _, _, _, qdss_tracedata_b, _, _, _, _),
1723 	PINGROUP(89, dmic0_clk, blsp7_spi, _, _, _, _, _, _, _),
1724 	PINGROUP(90, dmic0_data, blsp7_spi, _, _, _, _, _, _, _),
1725 	PINGROUP(91, pri_mi2s, _, _, _, qdss_cti_trig_in_a1, _, _, _, _),
1726 	PINGROUP(92, pri_mi2s_ws, _, _, _, qdss_tracedata_b, _, _, _, _),
1727 	PINGROUP(93, pri_mi2s, _, _, _, _, _, _, _, _),
1728 	PINGROUP(94, wsa_io, pri_mi2s, _, _, _, _, _, _, _),
1729 	PINGROUP(95, wsa_io, pri_mi2s, _, _, _, _, _, _, _),
1730 	PINGROUP(96, blsp_spi8, _, _, _, _, _, _, _, _),
1731 	PINGROUP(97, blsp_spi8, _, _, _, _, _, _, _, _),
1732 	PINGROUP(98, blsp_i2c8, blsp_spi8, gcc_plltest, _, _, _, _, _, _),
1733 	PINGROUP(99, blsp_i2c8, blsp_spi8, gcc_plltest, _, _, _, _, _, _),
1734 	PINGROUP(100, _, _, _, _, _, _, _, _, _),
1735 	PINGROUP(101, _, _, _, _, _, _, _, _, _),
1736 	PINGROUP(102, _, _, _, _, _, _, _, _, _),
1737 	PINGROUP(103, _, _, _, _, _, _, _, _, _),
1738 	PINGROUP(104, _, _, _, _, _, _, _, _, _),
1739 	PINGROUP(105, _, _, _, _, _, _, _, _, _),
1740 	PINGROUP(106, _, _, _, _, _, _, _, _, _),
1741 	PINGROUP(107, _, _, _, _, _, _, _, _, _),
1742 	PINGROUP(108, _, _, _, _, _, _, _, _, _),
1743 	PINGROUP(109, _, _, _, _, _, _, _, _, _),
1744 	PINGROUP(110, _, _, _, _, _, _, _, _, _),
1745 	PINGROUP(111, _, _, nav_pps_in_a, _, _, _, _, _, _),
1746 	PINGROUP(112, _, pa_indicator, _, _, _, _, _, _, _),
1747 	PINGROUP(113, _, nav_pps_in_b, nav_pps, modem_tsync, nav_tsync, _, _, _, _),
1748 	PINGROUP(114, _, ssbi_wtr1, _, _, _, _, _, _, _),
1749 	PINGROUP(115, _, gsm1_tx, _, dac_calib18, _, _, _, _, _),
1750 	PINGROUP(116, _, _, _, _, _, _, _, _, _),
1751 	PINGROUP(117, gsm0_tx, _, _, _, _, _, _, _, _),
1752 	PINGROUP(118, _, ebi_cdc, _, _, _, _, _, _, _),
1753 	PINGROUP(119, _, ebi_cdc, _, _, _, _, _, _, _),
1754 	PINGROUP(120, _, atest_char, ebi_cdc, _, atest_tsens, _, _, _, _),
1755 	PINGROUP(121, _, _, _, bimc_dte1, _, _, _, _, _),
1756 	PINGROUP(122, _, _, _, bimc_dte1, _, _, _, _, _),
1757 	PINGROUP(123, _, ssbi_wtr1, ebi_cdc, _, _, _, _, _, _),
1758 	PINGROUP(124, _, _, _, _, _, _, _, _, _),
1759 	PINGROUP(125, _, _, _, _, _, _, _, _, _),
1760 	PINGROUP(126, _, _, _, _, _, _, _, _, _),
1761 	PINGROUP(127, _, _, _, _, _, _, _, _, _),
1762 	PINGROUP(128, cam_mclk, _, dac_calib20, _, _, _, _, _, _),
1763 	PINGROUP(129, ddr_bist, _, dac_calib21, _, _, _, _, _, _),
1764 	PINGROUP(130, ddr_bist, _, dac_calib22, _, _, _, _, _, _),
1765 	PINGROUP(131, ddr_bist, _, dac_calib23, _, _, _, _, _, _),
1766 	PINGROUP(132, ddr_bist, _, dac_calib24, _, _, _, _, _, _),
1767 	PINGROUP(133, _, dac_calib25, _, _, _, _, _, _, _),
1768 	PINGROUP(134, _, _, _, _, _, _, _, _, _),
1769 	PINGROUP(135, sec_mi2s, blsp_spi7, blsp_i2c7, _, _, _, _, _, _),
1770 	PINGROUP(136, sec_mi2s, blsp_spi7, blsp_i2c7, _, _, _, _, _, _),
1771 	PINGROUP(137, sec_mi2s, blsp_spi7, _, _, _, _, _, _, _),
1772 	PINGROUP(138, sec_mi2s, blsp_spi7, _, _, _, _, _, _, _),
1773 	PINGROUP(139, tsens_max, _, _, _, _, _, _, _, _),
1774 	PINGROUP(140, _, _, _, _, _, _, _, _, _),
1775 	PINGROUP(141, _, _, _, _, _, _, _, _, _),
1776 	SDC_QDSD_PINGROUP(qdsd_clk, 0x19c000, 3, 0),
1777 	SDC_QDSD_PINGROUP(qdsd_cmd, 0x19c000, 8, 5),
1778 	SDC_QDSD_PINGROUP(qdsd_data0, 0x19c000, 13, 10),
1779 	SDC_QDSD_PINGROUP(qdsd_data1, 0x19c000, 18, 15),
1780 	SDC_QDSD_PINGROUP(qdsd_data2, 0x19c000, 23, 20),
1781 	SDC_QDSD_PINGROUP(qdsd_data3, 0x19c000, 28, 25),
1782 	SDC_QDSD_PINGROUP(sdc1_clk, 0x10a000, 13, 6),
1783 	SDC_QDSD_PINGROUP(sdc1_cmd, 0x10a000, 11, 3),
1784 	SDC_QDSD_PINGROUP(sdc1_data, 0x10a000, 9, 0),
1785 	SDC_QDSD_PINGROUP(sdc1_rclk, 0x10a000, 15, 0),
1786 	SDC_QDSD_PINGROUP(sdc2_clk, 0x109000, 14, 6),
1787 	SDC_QDSD_PINGROUP(sdc2_cmd, 0x109000, 11, 3),
1788 	SDC_QDSD_PINGROUP(sdc2_data, 0x109000, 9, 0),
1789 };
1790 
1791 static const struct msm_pinctrl_soc_data msm8953_pinctrl = {
1792 	.pins = msm8953_pins,
1793 	.npins = ARRAY_SIZE(msm8953_pins),
1794 	.functions = msm8953_functions,
1795 	.nfunctions = ARRAY_SIZE(msm8953_functions),
1796 	.groups = msm8953_groups,
1797 	.ngroups = ARRAY_SIZE(msm8953_groups),
1798 	.ngpios = 142,
1799 };
1800 
1801 static int msm8953_pinctrl_probe(struct platform_device *pdev)
1802 {
1803 	return msm_pinctrl_probe(pdev, &msm8953_pinctrl);
1804 }
1805 
1806 static const struct of_device_id msm8953_pinctrl_of_match[] = {
1807 	{ .compatible = "qcom,msm8953-pinctrl", },
1808 	{ },
1809 };
1810 
1811 static struct platform_driver msm8953_pinctrl_driver = {
1812 	.driver = {
1813 		.name = "msm8953-pinctrl",
1814 		.of_match_table = msm8953_pinctrl_of_match,
1815 	},
1816 	.probe = msm8953_pinctrl_probe,
1817 };
1818 
1819 static int __init msm8953_pinctrl_init(void)
1820 {
1821 	return platform_driver_register(&msm8953_pinctrl_driver);
1822 }
1823 arch_initcall(msm8953_pinctrl_init);
1824 
1825 static void __exit msm8953_pinctrl_exit(void)
1826 {
1827 	platform_driver_unregister(&msm8953_pinctrl_driver);
1828 }
1829 module_exit(msm8953_pinctrl_exit);
1830 
1831 MODULE_DESCRIPTION("QTI msm8953 pinctrl driver");
1832 MODULE_LICENSE("GPL v2");
1833 MODULE_DEVICE_TABLE(of, msm8953_pinctrl_of_match);
1834