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