This source file includes following definitions.
- msm8996_pinctrl_probe
- msm8996_pinctrl_init
- msm8996_pinctrl_exit
1
2
3
4
5
6 #include <linux/module.h>
7 #include <linux/of.h>
8 #include <linux/platform_device.h>
9 #include <linux/pinctrl/pinctrl.h>
10
11 #include "pinctrl-msm.h"
12
13 #define FUNCTION(fname) \
14 [msm_mux_##fname] = { \
15 .name = #fname, \
16 .groups = fname##_groups, \
17 .ngroups = ARRAY_SIZE(fname##_groups), \
18 }
19
20 #define REG_BASE 0x0
21 #define REG_SIZE 0x1000
22 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
23 { \
24 .name = "gpio" #id, \
25 .pins = gpio##id##_pins, \
26 .npins = (unsigned)ARRAY_SIZE(gpio##id##_pins), \
27 .funcs = (int[]){ \
28 msm_mux_gpio, \
29 msm_mux_##f1, \
30 msm_mux_##f2, \
31 msm_mux_##f3, \
32 msm_mux_##f4, \
33 msm_mux_##f5, \
34 msm_mux_##f6, \
35 msm_mux_##f7, \
36 msm_mux_##f8, \
37 msm_mux_##f9 \
38 }, \
39 .nfuncs = 10, \
40 .ctl_reg = REG_BASE + REG_SIZE * id, \
41 .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \
42 .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \
43 .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \
44 .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \
45 .mux_bit = 2, \
46 .pull_bit = 0, \
47 .drv_bit = 6, \
48 .oe_bit = 9, \
49 .in_bit = 0, \
50 .out_bit = 1, \
51 .intr_enable_bit = 0, \
52 .intr_status_bit = 0, \
53 .intr_target_bit = 5, \
54 .intr_target_kpss_val = 3, \
55 .intr_raw_status_bit = 4, \
56 .intr_polarity_bit = 1, \
57 .intr_detection_bit = 2, \
58 .intr_detection_width = 2, \
59 }
60
61 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
62 { \
63 .name = #pg_name, \
64 .pins = pg_name##_pins, \
65 .npins = (unsigned)ARRAY_SIZE(pg_name##_pins), \
66 .ctl_reg = ctl, \
67 .io_reg = 0, \
68 .intr_cfg_reg = 0, \
69 .intr_status_reg = 0, \
70 .intr_target_reg = 0, \
71 .mux_bit = -1, \
72 .pull_bit = pull, \
73 .drv_bit = drv, \
74 .oe_bit = -1, \
75 .in_bit = -1, \
76 .out_bit = -1, \
77 .intr_enable_bit = -1, \
78 .intr_status_bit = -1, \
79 .intr_target_bit = -1, \
80 .intr_raw_status_bit = -1, \
81 .intr_polarity_bit = -1, \
82 .intr_detection_bit = -1, \
83 .intr_detection_width = -1, \
84 }
85 static const struct pinctrl_pin_desc msm8996_pins[] = {
86 PINCTRL_PIN(0, "GPIO_0"),
87 PINCTRL_PIN(1, "GPIO_1"),
88 PINCTRL_PIN(2, "GPIO_2"),
89 PINCTRL_PIN(3, "GPIO_3"),
90 PINCTRL_PIN(4, "GPIO_4"),
91 PINCTRL_PIN(5, "GPIO_5"),
92 PINCTRL_PIN(6, "GPIO_6"),
93 PINCTRL_PIN(7, "GPIO_7"),
94 PINCTRL_PIN(8, "GPIO_8"),
95 PINCTRL_PIN(9, "GPIO_9"),
96 PINCTRL_PIN(10, "GPIO_10"),
97 PINCTRL_PIN(11, "GPIO_11"),
98 PINCTRL_PIN(12, "GPIO_12"),
99 PINCTRL_PIN(13, "GPIO_13"),
100 PINCTRL_PIN(14, "GPIO_14"),
101 PINCTRL_PIN(15, "GPIO_15"),
102 PINCTRL_PIN(16, "GPIO_16"),
103 PINCTRL_PIN(17, "GPIO_17"),
104 PINCTRL_PIN(18, "GPIO_18"),
105 PINCTRL_PIN(19, "GPIO_19"),
106 PINCTRL_PIN(20, "GPIO_20"),
107 PINCTRL_PIN(21, "GPIO_21"),
108 PINCTRL_PIN(22, "GPIO_22"),
109 PINCTRL_PIN(23, "GPIO_23"),
110 PINCTRL_PIN(24, "GPIO_24"),
111 PINCTRL_PIN(25, "GPIO_25"),
112 PINCTRL_PIN(26, "GPIO_26"),
113 PINCTRL_PIN(27, "GPIO_27"),
114 PINCTRL_PIN(28, "GPIO_28"),
115 PINCTRL_PIN(29, "GPIO_29"),
116 PINCTRL_PIN(30, "GPIO_30"),
117 PINCTRL_PIN(31, "GPIO_31"),
118 PINCTRL_PIN(32, "GPIO_32"),
119 PINCTRL_PIN(33, "GPIO_33"),
120 PINCTRL_PIN(34, "GPIO_34"),
121 PINCTRL_PIN(35, "GPIO_35"),
122 PINCTRL_PIN(36, "GPIO_36"),
123 PINCTRL_PIN(37, "GPIO_37"),
124 PINCTRL_PIN(38, "GPIO_38"),
125 PINCTRL_PIN(39, "GPIO_39"),
126 PINCTRL_PIN(40, "GPIO_40"),
127 PINCTRL_PIN(41, "GPIO_41"),
128 PINCTRL_PIN(42, "GPIO_42"),
129 PINCTRL_PIN(43, "GPIO_43"),
130 PINCTRL_PIN(44, "GPIO_44"),
131 PINCTRL_PIN(45, "GPIO_45"),
132 PINCTRL_PIN(46, "GPIO_46"),
133 PINCTRL_PIN(47, "GPIO_47"),
134 PINCTRL_PIN(48, "GPIO_48"),
135 PINCTRL_PIN(49, "GPIO_49"),
136 PINCTRL_PIN(50, "GPIO_50"),
137 PINCTRL_PIN(51, "GPIO_51"),
138 PINCTRL_PIN(52, "GPIO_52"),
139 PINCTRL_PIN(53, "GPIO_53"),
140 PINCTRL_PIN(54, "GPIO_54"),
141 PINCTRL_PIN(55, "GPIO_55"),
142 PINCTRL_PIN(56, "GPIO_56"),
143 PINCTRL_PIN(57, "GPIO_57"),
144 PINCTRL_PIN(58, "GPIO_58"),
145 PINCTRL_PIN(59, "GPIO_59"),
146 PINCTRL_PIN(60, "GPIO_60"),
147 PINCTRL_PIN(61, "GPIO_61"),
148 PINCTRL_PIN(62, "GPIO_62"),
149 PINCTRL_PIN(63, "GPIO_63"),
150 PINCTRL_PIN(64, "GPIO_64"),
151 PINCTRL_PIN(65, "GPIO_65"),
152 PINCTRL_PIN(66, "GPIO_66"),
153 PINCTRL_PIN(67, "GPIO_67"),
154 PINCTRL_PIN(68, "GPIO_68"),
155 PINCTRL_PIN(69, "GPIO_69"),
156 PINCTRL_PIN(70, "GPIO_70"),
157 PINCTRL_PIN(71, "GPIO_71"),
158 PINCTRL_PIN(72, "GPIO_72"),
159 PINCTRL_PIN(73, "GPIO_73"),
160 PINCTRL_PIN(74, "GPIO_74"),
161 PINCTRL_PIN(75, "GPIO_75"),
162 PINCTRL_PIN(76, "GPIO_76"),
163 PINCTRL_PIN(77, "GPIO_77"),
164 PINCTRL_PIN(78, "GPIO_78"),
165 PINCTRL_PIN(79, "GPIO_79"),
166 PINCTRL_PIN(80, "GPIO_80"),
167 PINCTRL_PIN(81, "GPIO_81"),
168 PINCTRL_PIN(82, "GPIO_82"),
169 PINCTRL_PIN(83, "GPIO_83"),
170 PINCTRL_PIN(84, "GPIO_84"),
171 PINCTRL_PIN(85, "GPIO_85"),
172 PINCTRL_PIN(86, "GPIO_86"),
173 PINCTRL_PIN(87, "GPIO_87"),
174 PINCTRL_PIN(88, "GPIO_88"),
175 PINCTRL_PIN(89, "GPIO_89"),
176 PINCTRL_PIN(90, "GPIO_90"),
177 PINCTRL_PIN(91, "GPIO_91"),
178 PINCTRL_PIN(92, "GPIO_92"),
179 PINCTRL_PIN(93, "GPIO_93"),
180 PINCTRL_PIN(94, "GPIO_94"),
181 PINCTRL_PIN(95, "GPIO_95"),
182 PINCTRL_PIN(96, "GPIO_96"),
183 PINCTRL_PIN(97, "GPIO_97"),
184 PINCTRL_PIN(98, "GPIO_98"),
185 PINCTRL_PIN(99, "GPIO_99"),
186 PINCTRL_PIN(100, "GPIO_100"),
187 PINCTRL_PIN(101, "GPIO_101"),
188 PINCTRL_PIN(102, "GPIO_102"),
189 PINCTRL_PIN(103, "GPIO_103"),
190 PINCTRL_PIN(104, "GPIO_104"),
191 PINCTRL_PIN(105, "GPIO_105"),
192 PINCTRL_PIN(106, "GPIO_106"),
193 PINCTRL_PIN(107, "GPIO_107"),
194 PINCTRL_PIN(108, "GPIO_108"),
195 PINCTRL_PIN(109, "GPIO_109"),
196 PINCTRL_PIN(110, "GPIO_110"),
197 PINCTRL_PIN(111, "GPIO_111"),
198 PINCTRL_PIN(112, "GPIO_112"),
199 PINCTRL_PIN(113, "GPIO_113"),
200 PINCTRL_PIN(114, "GPIO_114"),
201 PINCTRL_PIN(115, "GPIO_115"),
202 PINCTRL_PIN(116, "GPIO_116"),
203 PINCTRL_PIN(117, "GPIO_117"),
204 PINCTRL_PIN(118, "GPIO_118"),
205 PINCTRL_PIN(119, "GPIO_119"),
206 PINCTRL_PIN(120, "GPIO_120"),
207 PINCTRL_PIN(121, "GPIO_121"),
208 PINCTRL_PIN(122, "GPIO_122"),
209 PINCTRL_PIN(123, "GPIO_123"),
210 PINCTRL_PIN(124, "GPIO_124"),
211 PINCTRL_PIN(125, "GPIO_125"),
212 PINCTRL_PIN(126, "GPIO_126"),
213 PINCTRL_PIN(127, "GPIO_127"),
214 PINCTRL_PIN(128, "GPIO_128"),
215 PINCTRL_PIN(129, "GPIO_129"),
216 PINCTRL_PIN(130, "GPIO_130"),
217 PINCTRL_PIN(131, "GPIO_131"),
218 PINCTRL_PIN(132, "GPIO_132"),
219 PINCTRL_PIN(133, "GPIO_133"),
220 PINCTRL_PIN(134, "GPIO_134"),
221 PINCTRL_PIN(135, "GPIO_135"),
222 PINCTRL_PIN(136, "GPIO_136"),
223 PINCTRL_PIN(137, "GPIO_137"),
224 PINCTRL_PIN(138, "GPIO_138"),
225 PINCTRL_PIN(139, "GPIO_139"),
226 PINCTRL_PIN(140, "GPIO_140"),
227 PINCTRL_PIN(141, "GPIO_141"),
228 PINCTRL_PIN(142, "GPIO_142"),
229 PINCTRL_PIN(143, "GPIO_143"),
230 PINCTRL_PIN(144, "GPIO_144"),
231 PINCTRL_PIN(145, "GPIO_145"),
232 PINCTRL_PIN(146, "GPIO_146"),
233 PINCTRL_PIN(147, "GPIO_147"),
234 PINCTRL_PIN(148, "GPIO_148"),
235 PINCTRL_PIN(149, "GPIO_149"),
236 PINCTRL_PIN(150, "SDC1_CLK"),
237 PINCTRL_PIN(151, "SDC1_CMD"),
238 PINCTRL_PIN(152, "SDC1_DATA"),
239 PINCTRL_PIN(153, "SDC2_CLK"),
240 PINCTRL_PIN(154, "SDC2_CMD"),
241 PINCTRL_PIN(155, "SDC2_DATA"),
242 PINCTRL_PIN(156, "SDC1_RCLK"),
243 };
244
245 #define DECLARE_MSM_GPIO_PINS(pin) \
246 static const unsigned int gpio##pin##_pins[] = { pin }
247 DECLARE_MSM_GPIO_PINS(0);
248 DECLARE_MSM_GPIO_PINS(1);
249 DECLARE_MSM_GPIO_PINS(2);
250 DECLARE_MSM_GPIO_PINS(3);
251 DECLARE_MSM_GPIO_PINS(4);
252 DECLARE_MSM_GPIO_PINS(5);
253 DECLARE_MSM_GPIO_PINS(6);
254 DECLARE_MSM_GPIO_PINS(7);
255 DECLARE_MSM_GPIO_PINS(8);
256 DECLARE_MSM_GPIO_PINS(9);
257 DECLARE_MSM_GPIO_PINS(10);
258 DECLARE_MSM_GPIO_PINS(11);
259 DECLARE_MSM_GPIO_PINS(12);
260 DECLARE_MSM_GPIO_PINS(13);
261 DECLARE_MSM_GPIO_PINS(14);
262 DECLARE_MSM_GPIO_PINS(15);
263 DECLARE_MSM_GPIO_PINS(16);
264 DECLARE_MSM_GPIO_PINS(17);
265 DECLARE_MSM_GPIO_PINS(18);
266 DECLARE_MSM_GPIO_PINS(19);
267 DECLARE_MSM_GPIO_PINS(20);
268 DECLARE_MSM_GPIO_PINS(21);
269 DECLARE_MSM_GPIO_PINS(22);
270 DECLARE_MSM_GPIO_PINS(23);
271 DECLARE_MSM_GPIO_PINS(24);
272 DECLARE_MSM_GPIO_PINS(25);
273 DECLARE_MSM_GPIO_PINS(26);
274 DECLARE_MSM_GPIO_PINS(27);
275 DECLARE_MSM_GPIO_PINS(28);
276 DECLARE_MSM_GPIO_PINS(29);
277 DECLARE_MSM_GPIO_PINS(30);
278 DECLARE_MSM_GPIO_PINS(31);
279 DECLARE_MSM_GPIO_PINS(32);
280 DECLARE_MSM_GPIO_PINS(33);
281 DECLARE_MSM_GPIO_PINS(34);
282 DECLARE_MSM_GPIO_PINS(35);
283 DECLARE_MSM_GPIO_PINS(36);
284 DECLARE_MSM_GPIO_PINS(37);
285 DECLARE_MSM_GPIO_PINS(38);
286 DECLARE_MSM_GPIO_PINS(39);
287 DECLARE_MSM_GPIO_PINS(40);
288 DECLARE_MSM_GPIO_PINS(41);
289 DECLARE_MSM_GPIO_PINS(42);
290 DECLARE_MSM_GPIO_PINS(43);
291 DECLARE_MSM_GPIO_PINS(44);
292 DECLARE_MSM_GPIO_PINS(45);
293 DECLARE_MSM_GPIO_PINS(46);
294 DECLARE_MSM_GPIO_PINS(47);
295 DECLARE_MSM_GPIO_PINS(48);
296 DECLARE_MSM_GPIO_PINS(49);
297 DECLARE_MSM_GPIO_PINS(50);
298 DECLARE_MSM_GPIO_PINS(51);
299 DECLARE_MSM_GPIO_PINS(52);
300 DECLARE_MSM_GPIO_PINS(53);
301 DECLARE_MSM_GPIO_PINS(54);
302 DECLARE_MSM_GPIO_PINS(55);
303 DECLARE_MSM_GPIO_PINS(56);
304 DECLARE_MSM_GPIO_PINS(57);
305 DECLARE_MSM_GPIO_PINS(58);
306 DECLARE_MSM_GPIO_PINS(59);
307 DECLARE_MSM_GPIO_PINS(60);
308 DECLARE_MSM_GPIO_PINS(61);
309 DECLARE_MSM_GPIO_PINS(62);
310 DECLARE_MSM_GPIO_PINS(63);
311 DECLARE_MSM_GPIO_PINS(64);
312 DECLARE_MSM_GPIO_PINS(65);
313 DECLARE_MSM_GPIO_PINS(66);
314 DECLARE_MSM_GPIO_PINS(67);
315 DECLARE_MSM_GPIO_PINS(68);
316 DECLARE_MSM_GPIO_PINS(69);
317 DECLARE_MSM_GPIO_PINS(70);
318 DECLARE_MSM_GPIO_PINS(71);
319 DECLARE_MSM_GPIO_PINS(72);
320 DECLARE_MSM_GPIO_PINS(73);
321 DECLARE_MSM_GPIO_PINS(74);
322 DECLARE_MSM_GPIO_PINS(75);
323 DECLARE_MSM_GPIO_PINS(76);
324 DECLARE_MSM_GPIO_PINS(77);
325 DECLARE_MSM_GPIO_PINS(78);
326 DECLARE_MSM_GPIO_PINS(79);
327 DECLARE_MSM_GPIO_PINS(80);
328 DECLARE_MSM_GPIO_PINS(81);
329 DECLARE_MSM_GPIO_PINS(82);
330 DECLARE_MSM_GPIO_PINS(83);
331 DECLARE_MSM_GPIO_PINS(84);
332 DECLARE_MSM_GPIO_PINS(85);
333 DECLARE_MSM_GPIO_PINS(86);
334 DECLARE_MSM_GPIO_PINS(87);
335 DECLARE_MSM_GPIO_PINS(88);
336 DECLARE_MSM_GPIO_PINS(89);
337 DECLARE_MSM_GPIO_PINS(90);
338 DECLARE_MSM_GPIO_PINS(91);
339 DECLARE_MSM_GPIO_PINS(92);
340 DECLARE_MSM_GPIO_PINS(93);
341 DECLARE_MSM_GPIO_PINS(94);
342 DECLARE_MSM_GPIO_PINS(95);
343 DECLARE_MSM_GPIO_PINS(96);
344 DECLARE_MSM_GPIO_PINS(97);
345 DECLARE_MSM_GPIO_PINS(98);
346 DECLARE_MSM_GPIO_PINS(99);
347 DECLARE_MSM_GPIO_PINS(100);
348 DECLARE_MSM_GPIO_PINS(101);
349 DECLARE_MSM_GPIO_PINS(102);
350 DECLARE_MSM_GPIO_PINS(103);
351 DECLARE_MSM_GPIO_PINS(104);
352 DECLARE_MSM_GPIO_PINS(105);
353 DECLARE_MSM_GPIO_PINS(106);
354 DECLARE_MSM_GPIO_PINS(107);
355 DECLARE_MSM_GPIO_PINS(108);
356 DECLARE_MSM_GPIO_PINS(109);
357 DECLARE_MSM_GPIO_PINS(110);
358 DECLARE_MSM_GPIO_PINS(111);
359 DECLARE_MSM_GPIO_PINS(112);
360 DECLARE_MSM_GPIO_PINS(113);
361 DECLARE_MSM_GPIO_PINS(114);
362 DECLARE_MSM_GPIO_PINS(115);
363 DECLARE_MSM_GPIO_PINS(116);
364 DECLARE_MSM_GPIO_PINS(117);
365 DECLARE_MSM_GPIO_PINS(118);
366 DECLARE_MSM_GPIO_PINS(119);
367 DECLARE_MSM_GPIO_PINS(120);
368 DECLARE_MSM_GPIO_PINS(121);
369 DECLARE_MSM_GPIO_PINS(122);
370 DECLARE_MSM_GPIO_PINS(123);
371 DECLARE_MSM_GPIO_PINS(124);
372 DECLARE_MSM_GPIO_PINS(125);
373 DECLARE_MSM_GPIO_PINS(126);
374 DECLARE_MSM_GPIO_PINS(127);
375 DECLARE_MSM_GPIO_PINS(128);
376 DECLARE_MSM_GPIO_PINS(129);
377 DECLARE_MSM_GPIO_PINS(130);
378 DECLARE_MSM_GPIO_PINS(131);
379 DECLARE_MSM_GPIO_PINS(132);
380 DECLARE_MSM_GPIO_PINS(133);
381 DECLARE_MSM_GPIO_PINS(134);
382 DECLARE_MSM_GPIO_PINS(135);
383 DECLARE_MSM_GPIO_PINS(136);
384 DECLARE_MSM_GPIO_PINS(137);
385 DECLARE_MSM_GPIO_PINS(138);
386 DECLARE_MSM_GPIO_PINS(139);
387 DECLARE_MSM_GPIO_PINS(140);
388 DECLARE_MSM_GPIO_PINS(141);
389 DECLARE_MSM_GPIO_PINS(142);
390 DECLARE_MSM_GPIO_PINS(143);
391 DECLARE_MSM_GPIO_PINS(144);
392 DECLARE_MSM_GPIO_PINS(145);
393 DECLARE_MSM_GPIO_PINS(146);
394 DECLARE_MSM_GPIO_PINS(147);
395 DECLARE_MSM_GPIO_PINS(148);
396 DECLARE_MSM_GPIO_PINS(149);
397
398 static const unsigned int sdc1_clk_pins[] = { 150 };
399 static const unsigned int sdc1_cmd_pins[] = { 151 };
400 static const unsigned int sdc1_data_pins[] = { 152 };
401 static const unsigned int sdc2_clk_pins[] = { 153 };
402 static const unsigned int sdc2_cmd_pins[] = { 154 };
403 static const unsigned int sdc2_data_pins[] = { 155 };
404 static const unsigned int sdc1_rclk_pins[] = { 156 };
405
406 enum msm8996_functions {
407 msm_mux_adsp_ext,
408 msm_mux_atest_bbrx0,
409 msm_mux_atest_bbrx1,
410 msm_mux_atest_char,
411 msm_mux_atest_char0,
412 msm_mux_atest_char1,
413 msm_mux_atest_char2,
414 msm_mux_atest_char3,
415 msm_mux_atest_gpsadc0,
416 msm_mux_atest_gpsadc1,
417 msm_mux_atest_tsens,
418 msm_mux_atest_tsens2,
419 msm_mux_atest_usb1,
420 msm_mux_atest_usb10,
421 msm_mux_atest_usb11,
422 msm_mux_atest_usb12,
423 msm_mux_atest_usb13,
424 msm_mux_atest_usb2,
425 msm_mux_atest_usb20,
426 msm_mux_atest_usb21,
427 msm_mux_atest_usb22,
428 msm_mux_atest_usb23,
429 msm_mux_audio_ref,
430 msm_mux_bimc_dte0,
431 msm_mux_bimc_dte1,
432 msm_mux_blsp10_spi,
433 msm_mux_blsp11_i2c_scl_b,
434 msm_mux_blsp11_i2c_sda_b,
435 msm_mux_blsp11_uart_rx_b,
436 msm_mux_blsp11_uart_tx_b,
437 msm_mux_blsp1_spi,
438 msm_mux_blsp2_spi,
439 msm_mux_blsp_i2c1,
440 msm_mux_blsp_i2c10,
441 msm_mux_blsp_i2c11,
442 msm_mux_blsp_i2c12,
443 msm_mux_blsp_i2c2,
444 msm_mux_blsp_i2c3,
445 msm_mux_blsp_i2c4,
446 msm_mux_blsp_i2c5,
447 msm_mux_blsp_i2c6,
448 msm_mux_blsp_i2c7,
449 msm_mux_blsp_i2c8,
450 msm_mux_blsp_i2c9,
451 msm_mux_blsp_spi1,
452 msm_mux_blsp_spi10,
453 msm_mux_blsp_spi11,
454 msm_mux_blsp_spi12,
455 msm_mux_blsp_spi2,
456 msm_mux_blsp_spi3,
457 msm_mux_blsp_spi4,
458 msm_mux_blsp_spi5,
459 msm_mux_blsp_spi6,
460 msm_mux_blsp_spi7,
461 msm_mux_blsp_spi8,
462 msm_mux_blsp_spi9,
463 msm_mux_blsp_uart1,
464 msm_mux_blsp_uart10,
465 msm_mux_blsp_uart11,
466 msm_mux_blsp_uart12,
467 msm_mux_blsp_uart2,
468 msm_mux_blsp_uart3,
469 msm_mux_blsp_uart4,
470 msm_mux_blsp_uart5,
471 msm_mux_blsp_uart6,
472 msm_mux_blsp_uart7,
473 msm_mux_blsp_uart8,
474 msm_mux_blsp_uart9,
475 msm_mux_blsp_uim1,
476 msm_mux_blsp_uim10,
477 msm_mux_blsp_uim11,
478 msm_mux_blsp_uim12,
479 msm_mux_blsp_uim2,
480 msm_mux_blsp_uim3,
481 msm_mux_blsp_uim4,
482 msm_mux_blsp_uim5,
483 msm_mux_blsp_uim6,
484 msm_mux_blsp_uim7,
485 msm_mux_blsp_uim8,
486 msm_mux_blsp_uim9,
487 msm_mux_btfm_slimbus,
488 msm_mux_cam_mclk,
489 msm_mux_cci_async,
490 msm_mux_cci_i2c,
491 msm_mux_cci_timer0,
492 msm_mux_cci_timer1,
493 msm_mux_cci_timer2,
494 msm_mux_cci_timer3,
495 msm_mux_cci_timer4,
496 msm_mux_cri_trng,
497 msm_mux_cri_trng0,
498 msm_mux_cri_trng1,
499 msm_mux_dac_calib0,
500 msm_mux_dac_calib1,
501 msm_mux_dac_calib10,
502 msm_mux_dac_calib11,
503 msm_mux_dac_calib12,
504 msm_mux_dac_calib13,
505 msm_mux_dac_calib14,
506 msm_mux_dac_calib15,
507 msm_mux_dac_calib16,
508 msm_mux_dac_calib17,
509 msm_mux_dac_calib18,
510 msm_mux_dac_calib19,
511 msm_mux_dac_calib2,
512 msm_mux_dac_calib20,
513 msm_mux_dac_calib21,
514 msm_mux_dac_calib22,
515 msm_mux_dac_calib23,
516 msm_mux_dac_calib24,
517 msm_mux_dac_calib25,
518 msm_mux_dac_calib26,
519 msm_mux_dac_calib3,
520 msm_mux_dac_calib4,
521 msm_mux_dac_calib5,
522 msm_mux_dac_calib6,
523 msm_mux_dac_calib7,
524 msm_mux_dac_calib8,
525 msm_mux_dac_calib9,
526 msm_mux_dac_gpio,
527 msm_mux_dbg_out,
528 msm_mux_ddr_bist,
529 msm_mux_edp_hot,
530 msm_mux_edp_lcd,
531 msm_mux_gcc_gp1_clk_a,
532 msm_mux_gcc_gp1_clk_b,
533 msm_mux_gcc_gp2_clk_a,
534 msm_mux_gcc_gp2_clk_b,
535 msm_mux_gcc_gp3_clk_a,
536 msm_mux_gcc_gp3_clk_b,
537 msm_mux_gsm_tx,
538 msm_mux_hdmi_cec,
539 msm_mux_hdmi_ddc,
540 msm_mux_hdmi_hot,
541 msm_mux_hdmi_rcv,
542 msm_mux_isense_dbg,
543 msm_mux_ldo_en,
544 msm_mux_ldo_update,
545 msm_mux_lpass_slimbus,
546 msm_mux_m_voc,
547 msm_mux_mdp_vsync,
548 msm_mux_mdp_vsync_p_b,
549 msm_mux_mdp_vsync_s_b,
550 msm_mux_modem_tsync,
551 msm_mux_mss_lte,
552 msm_mux_nav_dr,
553 msm_mux_nav_pps,
554 msm_mux_pa_indicator,
555 msm_mux_pci_e0,
556 msm_mux_pci_e1,
557 msm_mux_pci_e2,
558 msm_mux_pll_bypassnl,
559 msm_mux_pll_reset,
560 msm_mux_pri_mi2s,
561 msm_mux_prng_rosc,
562 msm_mux_pwr_crypto,
563 msm_mux_pwr_modem,
564 msm_mux_pwr_nav,
565 msm_mux_qdss_cti,
566 msm_mux_qdss_cti_trig_in_a,
567 msm_mux_qdss_cti_trig_in_b,
568 msm_mux_qdss_cti_trig_out_a,
569 msm_mux_qdss_cti_trig_out_b,
570 msm_mux_qdss_stm0,
571 msm_mux_qdss_stm1,
572 msm_mux_qdss_stm10,
573 msm_mux_qdss_stm11,
574 msm_mux_qdss_stm12,
575 msm_mux_qdss_stm13,
576 msm_mux_qdss_stm14,
577 msm_mux_qdss_stm15,
578 msm_mux_qdss_stm16,
579 msm_mux_qdss_stm17,
580 msm_mux_qdss_stm18,
581 msm_mux_qdss_stm19,
582 msm_mux_qdss_stm2,
583 msm_mux_qdss_stm20,
584 msm_mux_qdss_stm21,
585 msm_mux_qdss_stm22,
586 msm_mux_qdss_stm23,
587 msm_mux_qdss_stm24,
588 msm_mux_qdss_stm25,
589 msm_mux_qdss_stm26,
590 msm_mux_qdss_stm27,
591 msm_mux_qdss_stm28,
592 msm_mux_qdss_stm29,
593 msm_mux_qdss_stm3,
594 msm_mux_qdss_stm30,
595 msm_mux_qdss_stm31,
596 msm_mux_qdss_stm4,
597 msm_mux_qdss_stm5,
598 msm_mux_qdss_stm6,
599 msm_mux_qdss_stm7,
600 msm_mux_qdss_stm8,
601 msm_mux_qdss_stm9,
602 msm_mux_qdss_traceclk_a,
603 msm_mux_qdss_traceclk_b,
604 msm_mux_qdss_tracectl_a,
605 msm_mux_qdss_tracectl_b,
606 msm_mux_qdss_tracedata_11,
607 msm_mux_qdss_tracedata_12,
608 msm_mux_qdss_tracedata_a,
609 msm_mux_qdss_tracedata_b,
610 msm_mux_qspi0,
611 msm_mux_qspi1,
612 msm_mux_qspi2,
613 msm_mux_qspi3,
614 msm_mux_qspi_clk,
615 msm_mux_qspi_cs,
616 msm_mux_qua_mi2s,
617 msm_mux_sd_card,
618 msm_mux_sd_write,
619 msm_mux_sdc40,
620 msm_mux_sdc41,
621 msm_mux_sdc42,
622 msm_mux_sdc43,
623 msm_mux_sdc4_clk,
624 msm_mux_sdc4_cmd,
625 msm_mux_sec_mi2s,
626 msm_mux_spkr_i2s,
627 msm_mux_ssbi1,
628 msm_mux_ssbi2,
629 msm_mux_ssc_irq,
630 msm_mux_ter_mi2s,
631 msm_mux_tsense_pwm1,
632 msm_mux_tsense_pwm2,
633 msm_mux_tsif1_clk,
634 msm_mux_tsif1_data,
635 msm_mux_tsif1_en,
636 msm_mux_tsif1_error,
637 msm_mux_tsif1_sync,
638 msm_mux_tsif2_clk,
639 msm_mux_tsif2_data,
640 msm_mux_tsif2_en,
641 msm_mux_tsif2_error,
642 msm_mux_tsif2_sync,
643 msm_mux_uim1,
644 msm_mux_uim2,
645 msm_mux_uim3,
646 msm_mux_uim4,
647 msm_mux_uim_batt,
648 msm_mux_vfr_1,
649 msm_mux_gpio,
650 msm_mux_NA,
651 };
652
653 static const char * const gpio_groups[] = {
654 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
655 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
656 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
657 "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
658 "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
659 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
660 "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
661 "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
662 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
663 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
664 "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
665 "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
666 "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
667 "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
668 "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
669 "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
670 "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
671 "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
672 "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
673 "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
674 "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
675 "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
676 "gpio147", "gpio148", "gpio149"
677 };
678
679
680 static const char * const blsp_uart1_groups[] = {
681 "gpio0", "gpio1", "gpio2", "gpio3",
682 };
683 static const char * const blsp_spi1_groups[] = {
684 "gpio0", "gpio1", "gpio2", "gpio3",
685 };
686 static const char * const blsp_i2c1_groups[] = {
687 "gpio2", "gpio3",
688 };
689 static const char * const blsp_uim1_groups[] = {
690 "gpio0", "gpio1",
691 };
692 static const char * const atest_tsens_groups[] = {
693 "gpio3",
694 };
695 static const char * const bimc_dte1_groups[] = {
696 "gpio3", "gpio5",
697 };
698 static const char * const blsp_spi8_groups[] = {
699 "gpio4", "gpio5", "gpio6", "gpio7",
700 };
701 static const char * const blsp_uart8_groups[] = {
702 "gpio4", "gpio5", "gpio6", "gpio7",
703 };
704 static const char * const blsp_uim8_groups[] = {
705 "gpio4", "gpio5",
706 };
707 static const char * const qdss_cti_trig_out_b_groups[] = {
708 "gpio4",
709 };
710 static const char * const dac_calib0_groups[] = {
711 "gpio4", "gpio41",
712 };
713 static const char * const bimc_dte0_groups[] = {
714 "gpio4", "gpio6",
715 };
716 static const char * const qdss_cti_trig_in_b_groups[] = {
717 "gpio5",
718 };
719 static const char * const dac_calib1_groups[] = {
720 "gpio5", "gpio42",
721 };
722 static const char * const dac_calib2_groups[] = {
723 "gpio6", "gpio43",
724 };
725 static const char * const atest_tsens2_groups[] = {
726 "gpio7",
727 };
728 static const char * const blsp_spi10_groups[] = {
729 "gpio8", "gpio9", "gpio10", "gpio11",
730 };
731 static const char * const blsp_uart10_groups[] = {
732 "gpio8", "gpio9", "gpio10", "gpio11",
733 };
734 static const char * const blsp_uim10_groups[] = {
735 "gpio8", "gpio9",
736 };
737 static const char * const atest_bbrx1_groups[] = {
738 "gpio8",
739 };
740 static const char * const atest_usb12_groups[] = {
741 "gpio9",
742 };
743 static const char * const mdp_vsync_groups[] = {
744 "gpio10", "gpio11", "gpio12",
745 };
746 static const char * const edp_lcd_groups[] = {
747 "gpio10",
748 };
749 static const char * const blsp_i2c10_groups[] = {
750 "gpio10", "gpio11",
751 };
752 static const char * const atest_usb11_groups[] = {
753 "gpio10",
754 };
755 static const char * const atest_gpsadc0_groups[] = {
756 "gpio11",
757 };
758 static const char * const edp_hot_groups[] = {
759 "gpio11",
760 };
761 static const char * const atest_usb10_groups[] = {
762 "gpio11",
763 };
764 static const char * const m_voc_groups[] = {
765 "gpio12",
766 };
767 static const char * const dac_gpio_groups[] = {
768 "gpio12",
769 };
770 static const char * const atest_char_groups[] = {
771 "gpio12",
772 };
773 static const char * const cam_mclk_groups[] = {
774 "gpio13", "gpio14", "gpio15", "gpio16",
775 };
776 static const char * const pll_bypassnl_groups[] = {
777 "gpio13",
778 };
779 static const char * const qdss_stm7_groups[] = {
780 "gpio13",
781 };
782 static const char * const blsp_i2c8_groups[] = {
783 "gpio6", "gpio7",
784 };
785 static const char * const atest_usb1_groups[] = {
786 "gpio7",
787 };
788 static const char * const atest_usb13_groups[] = {
789 "gpio8",
790 };
791 static const char * const atest_bbrx0_groups[] = {
792 "gpio9",
793 };
794 static const char * const atest_gpsadc1_groups[] = {
795 "gpio10",
796 };
797 static const char * const qdss_tracedata_b_groups[] = {
798 "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19",
799 "gpio21", "gpio22", "gpio23", "gpio26", "gpio29", "gpio57", "gpio58",
800 "gpio92", "gpio93",
801 };
802 static const char * const pll_reset_groups[] = {
803 "gpio14",
804 };
805 static const char * const qdss_stm6_groups[] = {
806 "gpio14",
807 };
808 static const char * const qdss_stm5_groups[] = {
809 "gpio15",
810 };
811 static const char * const qdss_stm4_groups[] = {
812 "gpio16",
813 };
814 static const char * const atest_usb2_groups[] = {
815 "gpio16",
816 };
817 static const char * const dac_calib3_groups[] = {
818 "gpio17", "gpio44",
819 };
820 static const char * const cci_i2c_groups[] = {
821 "gpio17", "gpio18", "gpio19", "gpio20",
822 };
823 static const char * const qdss_stm3_groups[] = {
824 "gpio17",
825 };
826 static const char * const atest_usb23_groups[] = {
827 "gpio17",
828 };
829 static const char * const atest_char3_groups[] = {
830 "gpio17",
831 };
832 static const char * const dac_calib4_groups[] = {
833 "gpio18", "gpio45",
834 };
835 static const char * const qdss_stm2_groups[] = {
836 "gpio18",
837 };
838 static const char * const atest_usb22_groups[] = {
839 "gpio18",
840 };
841 static const char * const atest_char2_groups[] = {
842 "gpio18",
843 };
844 static const char * const dac_calib5_groups[] = {
845 "gpio19", "gpio46",
846 };
847 static const char * const qdss_stm1_groups[] = {
848 "gpio19",
849 };
850 static const char * const atest_usb21_groups[] = {
851 "gpio19",
852 };
853 static const char * const atest_char1_groups[] = {
854 "gpio19",
855 };
856 static const char * const dac_calib6_groups[] = {
857 "gpio20", "gpio47",
858 };
859 static const char * const dbg_out_groups[] = {
860 "gpio20",
861 };
862 static const char * const qdss_stm0_groups[] = {
863 "gpio20",
864 };
865 static const char * const atest_usb20_groups[] = {
866 "gpio20",
867 };
868 static const char * const atest_char0_groups[] = {
869 "gpio20",
870 };
871 static const char * const dac_calib7_groups[] = {
872 "gpio21", "gpio48",
873 };
874 static const char * const cci_timer0_groups[] = {
875 "gpio21",
876 };
877 static const char * const qdss_stm13_groups[] = {
878 "gpio21",
879 };
880 static const char * const dac_calib8_groups[] = {
881 "gpio22", "gpio49",
882 };
883 static const char * const cci_timer1_groups[] = {
884 "gpio22",
885 };
886 static const char * const qdss_stm12_groups[] = {
887 "gpio22",
888 };
889 static const char * const dac_calib9_groups[] = {
890 "gpio23", "gpio50",
891 };
892 static const char * const cci_timer2_groups[] = {
893 "gpio23",
894 };
895 static const char * const qdss_stm11_groups[] = {
896 "gpio23",
897 };
898 static const char * const dac_calib10_groups[] = {
899 "gpio24", "gpio51",
900 };
901 static const char * const cci_timer3_groups[] = {
902 "gpio24",
903 };
904 static const char * const cci_async_groups[] = {
905 "gpio24", "gpio25", "gpio26",
906 };
907 static const char * const blsp1_spi_groups[] = {
908 "gpio24", "gpio27", "gpio28", "gpio90",
909 };
910 static const char * const qdss_stm10_groups[] = {
911 "gpio24",
912 };
913 static const char * const qdss_cti_trig_in_a_groups[] = {
914 "gpio24",
915 };
916 static const char * const dac_calib11_groups[] = {
917 "gpio25", "gpio52",
918 };
919 static const char * const cci_timer4_groups[] = {
920 "gpio25",
921 };
922 static const char * const blsp_spi6_groups[] = {
923 "gpio25", "gpio26", "gpio27", "gpio28",
924 };
925 static const char * const blsp_uart6_groups[] = {
926 "gpio25", "gpio26", "gpio27", "gpio28",
927 };
928 static const char * const blsp_uim6_groups[] = {
929 "gpio25", "gpio26",
930 };
931 static const char * const blsp2_spi_groups[] = {
932 "gpio25", "gpio29", "gpio30",
933 };
934 static const char * const qdss_stm9_groups[] = {
935 "gpio25",
936 };
937 static const char * const qdss_cti_trig_out_a_groups[] = {
938 "gpio25",
939 };
940 static const char * const dac_calib12_groups[] = {
941 "gpio26", "gpio53",
942 };
943 static const char * const qdss_stm8_groups[] = {
944 "gpio26",
945 };
946 static const char * const dac_calib13_groups[] = {
947 "gpio27", "gpio54",
948 };
949 static const char * const blsp_i2c6_groups[] = {
950 "gpio27", "gpio28",
951 };
952 static const char * const qdss_tracectl_a_groups[] = {
953 "gpio27",
954 };
955 static const char * const dac_calib14_groups[] = {
956 "gpio28", "gpio55",
957 };
958 static const char * const qdss_traceclk_a_groups[] = {
959 "gpio28",
960 };
961 static const char * const dac_calib15_groups[] = {
962 "gpio29", "gpio56",
963 };
964 static const char * const dac_calib16_groups[] = {
965 "gpio30", "gpio57",
966 };
967 static const char * const hdmi_rcv_groups[] = {
968 "gpio30",
969 };
970 static const char * const dac_calib17_groups[] = {
971 "gpio31", "gpio58",
972 };
973 static const char * const pwr_modem_groups[] = {
974 "gpio31",
975 };
976 static const char * const hdmi_cec_groups[] = {
977 "gpio31",
978 };
979 static const char * const pwr_nav_groups[] = {
980 "gpio32",
981 };
982 static const char * const dac_calib18_groups[] = {
983 "gpio32", "gpio59",
984 };
985 static const char * const hdmi_ddc_groups[] = {
986 "gpio32", "gpio33",
987 };
988 static const char * const pwr_crypto_groups[] = {
989 "gpio33",
990 };
991 static const char * const dac_calib19_groups[] = {
992 "gpio33", "gpio60",
993 };
994 static const char * const dac_calib20_groups[] = {
995 "gpio34", "gpio61",
996 };
997 static const char * const hdmi_hot_groups[] = {
998 "gpio34",
999 };
1000 static const char * const dac_calib21_groups[] = {
1001 "gpio35", "gpio62",
1002 };
1003 static const char * const pci_e0_groups[] = {
1004 "gpio35", "gpio36",
1005 };
1006 static const char * const dac_calib22_groups[] = {
1007 "gpio36", "gpio63",
1008 };
1009 static const char * const dac_calib23_groups[] = {
1010 "gpio37", "gpio64",
1011 };
1012 static const char * const blsp_i2c2_groups[] = {
1013 "gpio43", "gpio44",
1014 };
1015 static const char * const blsp_spi3_groups[] = {
1016 "gpio45", "gpio46", "gpio47", "gpio48",
1017 };
1018 static const char * const blsp_uart3_groups[] = {
1019 "gpio45", "gpio46", "gpio47", "gpio48",
1020 };
1021 static const char * const blsp_uim3_groups[] = {
1022 "gpio45", "gpio46",
1023 };
1024 static const char * const blsp_i2c3_groups[] = {
1025 "gpio47", "gpio48",
1026 };
1027 static const char * const dac_calib24_groups[] = {
1028 "gpio38", "gpio65",
1029 };
1030 static const char * const dac_calib25_groups[] = {
1031 "gpio39", "gpio66",
1032 };
1033 static const char * const tsif1_sync_groups[] = {
1034 "gpio39",
1035 };
1036 static const char * const sd_write_groups[] = {
1037 "gpio40",
1038 };
1039 static const char * const tsif1_error_groups[] = {
1040 "gpio40",
1041 };
1042 static const char * const blsp_spi2_groups[] = {
1043 "gpio41", "gpio42", "gpio43", "gpio44",
1044 };
1045 static const char * const blsp_uart2_groups[] = {
1046 "gpio41", "gpio42", "gpio43", "gpio44",
1047 };
1048 static const char * const blsp_uim2_groups[] = {
1049 "gpio41", "gpio42",
1050 };
1051 static const char * const qdss_cti_groups[] = {
1052 "gpio41", "gpio42", "gpio100", "gpio101",
1053 };
1054 static const char * const uim3_groups[] = {
1055 "gpio49", "gpio50", "gpio51", "gpio52",
1056 };
1057 static const char * const blsp_spi9_groups[] = {
1058 "gpio49", "gpio50", "gpio51", "gpio52",
1059 };
1060 static const char * const blsp_uart9_groups[] = {
1061 "gpio49", "gpio50", "gpio51", "gpio52",
1062 };
1063 static const char * const blsp_uim9_groups[] = {
1064 "gpio49", "gpio50",
1065 };
1066 static const char * const blsp10_spi_groups[] = {
1067 "gpio49", "gpio50", "gpio51", "gpio52", "gpio88",
1068 };
1069 static const char * const blsp_i2c9_groups[] = {
1070 "gpio51", "gpio52",
1071 };
1072 static const char * const blsp_spi7_groups[] = {
1073 "gpio53", "gpio54", "gpio55", "gpio56",
1074 };
1075 static const char * const blsp_uart7_groups[] = {
1076 "gpio53", "gpio54", "gpio55", "gpio56",
1077 };
1078 static const char * const blsp_uim7_groups[] = {
1079 "gpio53", "gpio54",
1080 };
1081 static const char * const qdss_tracedata_a_groups[] = {
1082 "gpio53", "gpio54", "gpio63", "gpio64", "gpio65", "gpio66", "gpio67",
1083 "gpio74", "gpio75", "gpio76", "gpio77", "gpio85", "gpio86", "gpio87",
1084 "gpio89", "gpio90",
1085 };
1086 static const char * const blsp_i2c7_groups[] = {
1087 "gpio55", "gpio56",
1088 };
1089 static const char * const qua_mi2s_groups[] = {
1090 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
1091 };
1092 static const char * const gcc_gp1_clk_a_groups[] = {
1093 "gpio57",
1094 };
1095 static const char * const uim4_groups[] = {
1096 "gpio58", "gpio59", "gpio60", "gpio61",
1097 };
1098 static const char * const blsp_spi11_groups[] = {
1099 "gpio58", "gpio59", "gpio60", "gpio61",
1100 };
1101 static const char * const blsp_uart11_groups[] = {
1102 "gpio58", "gpio59", "gpio60", "gpio61",
1103 };
1104 static const char * const blsp_uim11_groups[] = {
1105 "gpio58", "gpio59",
1106 };
1107 static const char * const gcc_gp2_clk_a_groups[] = {
1108 "gpio58",
1109 };
1110 static const char * const gcc_gp3_clk_a_groups[] = {
1111 "gpio59",
1112 };
1113 static const char * const blsp_i2c11_groups[] = {
1114 "gpio60", "gpio61",
1115 };
1116 static const char * const cri_trng0_groups[] = {
1117 "gpio60",
1118 };
1119 static const char * const cri_trng1_groups[] = {
1120 "gpio61",
1121 };
1122 static const char * const cri_trng_groups[] = {
1123 "gpio62",
1124 };
1125 static const char * const qdss_stm18_groups[] = {
1126 "gpio63",
1127 };
1128 static const char * const pri_mi2s_groups[] = {
1129 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68",
1130 };
1131 static const char * const qdss_stm17_groups[] = {
1132 "gpio64",
1133 };
1134 static const char * const blsp_spi4_groups[] = {
1135 "gpio65", "gpio66", "gpio67", "gpio68",
1136 };
1137 static const char * const blsp_uart4_groups[] = {
1138 "gpio65", "gpio66", "gpio67", "gpio68",
1139 };
1140 static const char * const blsp_uim4_groups[] = {
1141 "gpio65", "gpio66",
1142 };
1143 static const char * const qdss_stm16_groups[] = {
1144 "gpio65",
1145 };
1146 static const char * const qdss_stm15_groups[] = {
1147 "gpio66",
1148 };
1149 static const char * const dac_calib26_groups[] = {
1150 "gpio67",
1151 };
1152 static const char * const blsp_i2c4_groups[] = {
1153 "gpio67", "gpio68",
1154 };
1155 static const char * const qdss_stm14_groups[] = {
1156 "gpio67",
1157 };
1158 static const char * const spkr_i2s_groups[] = {
1159 "gpio69", "gpio70", "gpio71", "gpio72",
1160 };
1161 static const char * const audio_ref_groups[] = {
1162 "gpio69",
1163 };
1164 static const char * const lpass_slimbus_groups[] = {
1165 "gpio70", "gpio71", "gpio72",
1166 };
1167 static const char * const isense_dbg_groups[] = {
1168 "gpio70",
1169 };
1170 static const char * const tsense_pwm1_groups[] = {
1171 "gpio71",
1172 };
1173 static const char * const tsense_pwm2_groups[] = {
1174 "gpio71",
1175 };
1176 static const char * const btfm_slimbus_groups[] = {
1177 "gpio73", "gpio74",
1178 };
1179 static const char * const ter_mi2s_groups[] = {
1180 "gpio74", "gpio75", "gpio76", "gpio77", "gpio78",
1181 };
1182 static const char * const qdss_stm22_groups[] = {
1183 "gpio74",
1184 };
1185 static const char * const qdss_stm21_groups[] = {
1186 "gpio75",
1187 };
1188 static const char * const qdss_stm20_groups[] = {
1189 "gpio76",
1190 };
1191 static const char * const qdss_stm19_groups[] = {
1192 "gpio77",
1193 };
1194 static const char * const ssc_irq_groups[] = {
1195 "gpio78", "gpio79", "gpio80", "gpio117", "gpio118", "gpio119",
1196 "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
1197 };
1198 static const char * const gcc_gp1_clk_b_groups[] = {
1199 "gpio78",
1200 };
1201 static const char * const sec_mi2s_groups[] = {
1202 "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
1203 };
1204 static const char * const blsp_spi5_groups[] = {
1205 "gpio81", "gpio82", "gpio83", "gpio84",
1206 };
1207 static const char * const blsp_uart5_groups[] = {
1208 "gpio81", "gpio82", "gpio83", "gpio84",
1209 };
1210 static const char * const blsp_uim5_groups[] = {
1211 "gpio81", "gpio82",
1212 };
1213 static const char * const gcc_gp2_clk_b_groups[] = {
1214 "gpio81",
1215 };
1216 static const char * const gcc_gp3_clk_b_groups[] = {
1217 "gpio82",
1218 };
1219 static const char * const blsp_i2c5_groups[] = {
1220 "gpio83", "gpio84",
1221 };
1222 static const char * const blsp_spi12_groups[] = {
1223 "gpio85", "gpio86", "gpio87", "gpio88",
1224 };
1225 static const char * const blsp_uart12_groups[] = {
1226 "gpio85", "gpio86", "gpio87", "gpio88",
1227 };
1228 static const char * const blsp_uim12_groups[] = {
1229 "gpio85", "gpio86",
1230 };
1231 static const char * const qdss_stm25_groups[] = {
1232 "gpio85",
1233 };
1234 static const char * const qdss_stm31_groups[] = {
1235 "gpio86",
1236 };
1237 static const char * const blsp_i2c12_groups[] = {
1238 "gpio87", "gpio88",
1239 };
1240 static const char * const qdss_stm30_groups[] = {
1241 "gpio87",
1242 };
1243 static const char * const qdss_stm29_groups[] = {
1244 "gpio88",
1245 };
1246 static const char * const tsif1_clk_groups[] = {
1247 "gpio89",
1248 };
1249 static const char * const qdss_stm28_groups[] = {
1250 "gpio89",
1251 };
1252 static const char * const tsif1_en_groups[] = {
1253 "gpio90",
1254 };
1255 static const char * const tsif1_data_groups[] = {
1256 "gpio91",
1257 };
1258 static const char * const sdc4_cmd_groups[] = {
1259 "gpio91",
1260 };
1261 static const char * const qdss_stm27_groups[] = {
1262 "gpio91",
1263 };
1264 static const char * const qdss_traceclk_b_groups[] = {
1265 "gpio91",
1266 };
1267 static const char * const tsif2_error_groups[] = {
1268 "gpio92",
1269 };
1270 static const char * const sdc43_groups[] = {
1271 "gpio92",
1272 };
1273 static const char * const vfr_1_groups[] = {
1274 "gpio92",
1275 };
1276 static const char * const qdss_stm26_groups[] = {
1277 "gpio92",
1278 };
1279 static const char * const tsif2_clk_groups[] = {
1280 "gpio93",
1281 };
1282 static const char * const sdc4_clk_groups[] = {
1283 "gpio93",
1284 };
1285 static const char * const qdss_stm24_groups[] = {
1286 "gpio93",
1287 };
1288 static const char * const tsif2_en_groups[] = {
1289 "gpio94",
1290 };
1291 static const char * const sdc42_groups[] = {
1292 "gpio94",
1293 };
1294 static const char * const qdss_stm23_groups[] = {
1295 "gpio94",
1296 };
1297 static const char * const qdss_tracectl_b_groups[] = {
1298 "gpio94",
1299 };
1300 static const char * const sd_card_groups[] = {
1301 "gpio95",
1302 };
1303 static const char * const tsif2_data_groups[] = {
1304 "gpio95",
1305 };
1306 static const char * const sdc41_groups[] = {
1307 "gpio95",
1308 };
1309 static const char * const tsif2_sync_groups[] = {
1310 "gpio96",
1311 };
1312 static const char * const sdc40_groups[] = {
1313 "gpio96",
1314 };
1315 static const char * const mdp_vsync_p_b_groups[] = {
1316 "gpio97",
1317 };
1318 static const char * const ldo_en_groups[] = {
1319 "gpio97",
1320 };
1321 static const char * const mdp_vsync_s_b_groups[] = {
1322 "gpio98",
1323 };
1324 static const char * const ldo_update_groups[] = {
1325 "gpio98",
1326 };
1327 static const char * const blsp11_uart_tx_b_groups[] = {
1328 "gpio100",
1329 };
1330 static const char * const blsp11_uart_rx_b_groups[] = {
1331 "gpio101",
1332 };
1333 static const char * const blsp11_i2c_sda_b_groups[] = {
1334 "gpio102",
1335 };
1336 static const char * const prng_rosc_groups[] = {
1337 "gpio102",
1338 };
1339 static const char * const blsp11_i2c_scl_b_groups[] = {
1340 "gpio103",
1341 };
1342 static const char * const uim2_groups[] = {
1343 "gpio105", "gpio106", "gpio107", "gpio108",
1344 };
1345 static const char * const uim1_groups[] = {
1346 "gpio109", "gpio110", "gpio111", "gpio112",
1347 };
1348 static const char * const uim_batt_groups[] = {
1349 "gpio113",
1350 };
1351 static const char * const pci_e2_groups[] = {
1352 "gpio114", "gpio115", "gpio116",
1353 };
1354 static const char * const pa_indicator_groups[] = {
1355 "gpio116",
1356 };
1357 static const char * const adsp_ext_groups[] = {
1358 "gpio118",
1359 };
1360 static const char * const ddr_bist_groups[] = {
1361 "gpio121", "gpio122", "gpio123", "gpio124",
1362 };
1363 static const char * const qdss_tracedata_11_groups[] = {
1364 "gpio123",
1365 };
1366 static const char * const qdss_tracedata_12_groups[] = {
1367 "gpio124",
1368 };
1369 static const char * const modem_tsync_groups[] = {
1370 "gpio128",
1371 };
1372 static const char * const nav_dr_groups[] = {
1373 "gpio128",
1374 };
1375 static const char * const nav_pps_groups[] = {
1376 "gpio128",
1377 };
1378 static const char * const pci_e1_groups[] = {
1379 "gpio130", "gpio131", "gpio132",
1380 };
1381 static const char * const gsm_tx_groups[] = {
1382 "gpio134", "gpio135",
1383 };
1384 static const char * const qspi_cs_groups[] = {
1385 "gpio138", "gpio141",
1386 };
1387 static const char * const ssbi2_groups[] = {
1388 "gpio139",
1389 };
1390 static const char * const ssbi1_groups[] = {
1391 "gpio140",
1392 };
1393 static const char * const mss_lte_groups[] = {
1394 "gpio144", "gpio145",
1395 };
1396 static const char * const qspi_clk_groups[] = {
1397 "gpio145",
1398 };
1399 static const char * const qspi0_groups[] = {
1400 "gpio146",
1401 };
1402 static const char * const qspi1_groups[] = {
1403 "gpio147",
1404 };
1405 static const char * const qspi2_groups[] = {
1406 "gpio148",
1407 };
1408 static const char * const qspi3_groups[] = {
1409 "gpio149",
1410 };
1411
1412 static const struct msm_function msm8996_functions[] = {
1413 FUNCTION(adsp_ext),
1414 FUNCTION(atest_bbrx0),
1415 FUNCTION(atest_bbrx1),
1416 FUNCTION(atest_char),
1417 FUNCTION(atest_char0),
1418 FUNCTION(atest_char1),
1419 FUNCTION(atest_char2),
1420 FUNCTION(atest_char3),
1421 FUNCTION(atest_gpsadc0),
1422 FUNCTION(atest_gpsadc1),
1423 FUNCTION(atest_tsens),
1424 FUNCTION(atest_tsens2),
1425 FUNCTION(atest_usb1),
1426 FUNCTION(atest_usb10),
1427 FUNCTION(atest_usb11),
1428 FUNCTION(atest_usb12),
1429 FUNCTION(atest_usb13),
1430 FUNCTION(atest_usb2),
1431 FUNCTION(atest_usb20),
1432 FUNCTION(atest_usb21),
1433 FUNCTION(atest_usb22),
1434 FUNCTION(atest_usb23),
1435 FUNCTION(audio_ref),
1436 FUNCTION(bimc_dte0),
1437 FUNCTION(bimc_dte1),
1438 FUNCTION(blsp10_spi),
1439 FUNCTION(blsp11_i2c_scl_b),
1440 FUNCTION(blsp11_i2c_sda_b),
1441 FUNCTION(blsp11_uart_rx_b),
1442 FUNCTION(blsp11_uart_tx_b),
1443 FUNCTION(blsp1_spi),
1444 FUNCTION(blsp2_spi),
1445 FUNCTION(blsp_i2c1),
1446 FUNCTION(blsp_i2c10),
1447 FUNCTION(blsp_i2c11),
1448 FUNCTION(blsp_i2c12),
1449 FUNCTION(blsp_i2c2),
1450 FUNCTION(blsp_i2c3),
1451 FUNCTION(blsp_i2c4),
1452 FUNCTION(blsp_i2c5),
1453 FUNCTION(blsp_i2c6),
1454 FUNCTION(blsp_i2c7),
1455 FUNCTION(blsp_i2c8),
1456 FUNCTION(blsp_i2c9),
1457 FUNCTION(blsp_spi1),
1458 FUNCTION(blsp_spi10),
1459 FUNCTION(blsp_spi11),
1460 FUNCTION(blsp_spi12),
1461 FUNCTION(blsp_spi2),
1462 FUNCTION(blsp_spi3),
1463 FUNCTION(blsp_spi4),
1464 FUNCTION(blsp_spi5),
1465 FUNCTION(blsp_spi6),
1466 FUNCTION(blsp_spi7),
1467 FUNCTION(blsp_spi8),
1468 FUNCTION(blsp_spi9),
1469 FUNCTION(blsp_uart1),
1470 FUNCTION(blsp_uart10),
1471 FUNCTION(blsp_uart11),
1472 FUNCTION(blsp_uart12),
1473 FUNCTION(blsp_uart2),
1474 FUNCTION(blsp_uart3),
1475 FUNCTION(blsp_uart4),
1476 FUNCTION(blsp_uart5),
1477 FUNCTION(blsp_uart6),
1478 FUNCTION(blsp_uart7),
1479 FUNCTION(blsp_uart8),
1480 FUNCTION(blsp_uart9),
1481 FUNCTION(blsp_uim1),
1482 FUNCTION(blsp_uim10),
1483 FUNCTION(blsp_uim11),
1484 FUNCTION(blsp_uim12),
1485 FUNCTION(blsp_uim2),
1486 FUNCTION(blsp_uim3),
1487 FUNCTION(blsp_uim4),
1488 FUNCTION(blsp_uim5),
1489 FUNCTION(blsp_uim6),
1490 FUNCTION(blsp_uim7),
1491 FUNCTION(blsp_uim8),
1492 FUNCTION(blsp_uim9),
1493 FUNCTION(btfm_slimbus),
1494 FUNCTION(cam_mclk),
1495 FUNCTION(cci_async),
1496 FUNCTION(cci_i2c),
1497 FUNCTION(cci_timer0),
1498 FUNCTION(cci_timer1),
1499 FUNCTION(cci_timer2),
1500 FUNCTION(cci_timer3),
1501 FUNCTION(cci_timer4),
1502 FUNCTION(cri_trng),
1503 FUNCTION(cri_trng0),
1504 FUNCTION(cri_trng1),
1505 FUNCTION(dac_calib0),
1506 FUNCTION(dac_calib1),
1507 FUNCTION(dac_calib10),
1508 FUNCTION(dac_calib11),
1509 FUNCTION(dac_calib12),
1510 FUNCTION(dac_calib13),
1511 FUNCTION(dac_calib14),
1512 FUNCTION(dac_calib15),
1513 FUNCTION(dac_calib16),
1514 FUNCTION(dac_calib17),
1515 FUNCTION(dac_calib18),
1516 FUNCTION(dac_calib19),
1517 FUNCTION(dac_calib2),
1518 FUNCTION(dac_calib20),
1519 FUNCTION(dac_calib21),
1520 FUNCTION(dac_calib22),
1521 FUNCTION(dac_calib23),
1522 FUNCTION(dac_calib24),
1523 FUNCTION(dac_calib25),
1524 FUNCTION(dac_calib26),
1525 FUNCTION(dac_calib3),
1526 FUNCTION(dac_calib4),
1527 FUNCTION(dac_calib5),
1528 FUNCTION(dac_calib6),
1529 FUNCTION(dac_calib7),
1530 FUNCTION(dac_calib8),
1531 FUNCTION(dac_calib9),
1532 FUNCTION(dac_gpio),
1533 FUNCTION(dbg_out),
1534 FUNCTION(ddr_bist),
1535 FUNCTION(edp_hot),
1536 FUNCTION(edp_lcd),
1537 FUNCTION(gcc_gp1_clk_a),
1538 FUNCTION(gcc_gp1_clk_b),
1539 FUNCTION(gcc_gp2_clk_a),
1540 FUNCTION(gcc_gp2_clk_b),
1541 FUNCTION(gcc_gp3_clk_a),
1542 FUNCTION(gcc_gp3_clk_b),
1543 FUNCTION(gpio),
1544 FUNCTION(gsm_tx),
1545 FUNCTION(hdmi_cec),
1546 FUNCTION(hdmi_ddc),
1547 FUNCTION(hdmi_hot),
1548 FUNCTION(hdmi_rcv),
1549 FUNCTION(isense_dbg),
1550 FUNCTION(ldo_en),
1551 FUNCTION(ldo_update),
1552 FUNCTION(lpass_slimbus),
1553 FUNCTION(m_voc),
1554 FUNCTION(mdp_vsync),
1555 FUNCTION(mdp_vsync_p_b),
1556 FUNCTION(mdp_vsync_s_b),
1557 FUNCTION(modem_tsync),
1558 FUNCTION(mss_lte),
1559 FUNCTION(nav_dr),
1560 FUNCTION(nav_pps),
1561 FUNCTION(pa_indicator),
1562 FUNCTION(pci_e0),
1563 FUNCTION(pci_e1),
1564 FUNCTION(pci_e2),
1565 FUNCTION(pll_bypassnl),
1566 FUNCTION(pll_reset),
1567 FUNCTION(pri_mi2s),
1568 FUNCTION(prng_rosc),
1569 FUNCTION(pwr_crypto),
1570 FUNCTION(pwr_modem),
1571 FUNCTION(pwr_nav),
1572 FUNCTION(qdss_cti),
1573 FUNCTION(qdss_cti_trig_in_a),
1574 FUNCTION(qdss_cti_trig_in_b),
1575 FUNCTION(qdss_cti_trig_out_a),
1576 FUNCTION(qdss_cti_trig_out_b),
1577 FUNCTION(qdss_stm0),
1578 FUNCTION(qdss_stm1),
1579 FUNCTION(qdss_stm10),
1580 FUNCTION(qdss_stm11),
1581 FUNCTION(qdss_stm12),
1582 FUNCTION(qdss_stm13),
1583 FUNCTION(qdss_stm14),
1584 FUNCTION(qdss_stm15),
1585 FUNCTION(qdss_stm16),
1586 FUNCTION(qdss_stm17),
1587 FUNCTION(qdss_stm18),
1588 FUNCTION(qdss_stm19),
1589 FUNCTION(qdss_stm2),
1590 FUNCTION(qdss_stm20),
1591 FUNCTION(qdss_stm21),
1592 FUNCTION(qdss_stm22),
1593 FUNCTION(qdss_stm23),
1594 FUNCTION(qdss_stm24),
1595 FUNCTION(qdss_stm25),
1596 FUNCTION(qdss_stm26),
1597 FUNCTION(qdss_stm27),
1598 FUNCTION(qdss_stm28),
1599 FUNCTION(qdss_stm29),
1600 FUNCTION(qdss_stm3),
1601 FUNCTION(qdss_stm30),
1602 FUNCTION(qdss_stm31),
1603 FUNCTION(qdss_stm4),
1604 FUNCTION(qdss_stm5),
1605 FUNCTION(qdss_stm6),
1606 FUNCTION(qdss_stm7),
1607 FUNCTION(qdss_stm8),
1608 FUNCTION(qdss_stm9),
1609 FUNCTION(qdss_traceclk_a),
1610 FUNCTION(qdss_traceclk_b),
1611 FUNCTION(qdss_tracectl_a),
1612 FUNCTION(qdss_tracectl_b),
1613 FUNCTION(qdss_tracedata_11),
1614 FUNCTION(qdss_tracedata_12),
1615 FUNCTION(qdss_tracedata_a),
1616 FUNCTION(qdss_tracedata_b),
1617 FUNCTION(qspi0),
1618 FUNCTION(qspi1),
1619 FUNCTION(qspi2),
1620 FUNCTION(qspi3),
1621 FUNCTION(qspi_clk),
1622 FUNCTION(qspi_cs),
1623 FUNCTION(qua_mi2s),
1624 FUNCTION(sd_card),
1625 FUNCTION(sd_write),
1626 FUNCTION(sdc40),
1627 FUNCTION(sdc41),
1628 FUNCTION(sdc42),
1629 FUNCTION(sdc43),
1630 FUNCTION(sdc4_clk),
1631 FUNCTION(sdc4_cmd),
1632 FUNCTION(sec_mi2s),
1633 FUNCTION(spkr_i2s),
1634 FUNCTION(ssbi1),
1635 FUNCTION(ssbi2),
1636 FUNCTION(ssc_irq),
1637 FUNCTION(ter_mi2s),
1638 FUNCTION(tsense_pwm1),
1639 FUNCTION(tsense_pwm2),
1640 FUNCTION(tsif1_clk),
1641 FUNCTION(tsif1_data),
1642 FUNCTION(tsif1_en),
1643 FUNCTION(tsif1_error),
1644 FUNCTION(tsif1_sync),
1645 FUNCTION(tsif2_clk),
1646 FUNCTION(tsif2_data),
1647 FUNCTION(tsif2_en),
1648 FUNCTION(tsif2_error),
1649 FUNCTION(tsif2_sync),
1650 FUNCTION(uim1),
1651 FUNCTION(uim2),
1652 FUNCTION(uim3),
1653 FUNCTION(uim4),
1654 FUNCTION(uim_batt),
1655 FUNCTION(vfr_1),
1656 };
1657
1658 static const struct msm_pingroup msm8996_groups[] = {
1659 PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA),
1660 PINGROUP(1, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA),
1661 PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA),
1662 PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, atest_tsens,
1663 bimc_dte1, NA, NA, NA),
1664 PINGROUP(4, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_out_b,
1665 dac_calib0, bimc_dte0, NA, NA),
1666 PINGROUP(5, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_in_b,
1667 dac_calib1, bimc_dte1, NA, NA),
1668 PINGROUP(6, blsp_spi8, blsp_uart8, blsp_i2c8, NA, dac_calib2,
1669 bimc_dte0, NA, NA, NA),
1670 PINGROUP(7, blsp_spi8, blsp_uart8, blsp_i2c8, NA, atest_tsens2,
1671 atest_usb1, NA, NA, NA),
1672 PINGROUP(8, blsp_spi10, blsp_uart10, blsp_uim10, NA, atest_bbrx1,
1673 atest_usb13, NA, NA, NA),
1674 PINGROUP(9, blsp_spi10, blsp_uart10, blsp_uim10, atest_bbrx0,
1675 atest_usb12, NA, NA, NA, NA),
1676 PINGROUP(10, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10,
1677 atest_gpsadc1, atest_usb11, NA, NA, NA),
1678 PINGROUP(11, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10,
1679 atest_gpsadc0, atest_usb10, NA, NA, NA),
1680 PINGROUP(12, mdp_vsync, m_voc, dac_gpio, atest_char, NA, NA, NA, NA,
1681 NA),
1682 PINGROUP(13, cam_mclk, pll_bypassnl, qdss_stm7, qdss_tracedata_b, NA,
1683 NA, NA, NA, NA),
1684 PINGROUP(14, cam_mclk, pll_reset, qdss_stm6, qdss_tracedata_b, NA, NA,
1685 NA, NA, NA),
1686 PINGROUP(15, cam_mclk, qdss_stm5, qdss_tracedata_b, NA, NA, NA, NA, NA,
1687 NA),
1688 PINGROUP(16, cam_mclk, qdss_stm4, qdss_tracedata_b, NA, atest_usb2, NA,
1689 NA, NA, NA),
1690 PINGROUP(17, cci_i2c, qdss_stm3, qdss_tracedata_b, dac_calib3,
1691 atest_usb23, atest_char3, NA, NA, NA),
1692 PINGROUP(18, cci_i2c, qdss_stm2, qdss_tracedata_b, dac_calib4,
1693 atest_usb22, atest_char2, NA, NA, NA),
1694 PINGROUP(19, cci_i2c, qdss_stm1, qdss_tracedata_b, dac_calib5,
1695 atest_usb21, atest_char1, NA, NA, NA),
1696 PINGROUP(20, cci_i2c, dbg_out, qdss_stm0, dac_calib6, atest_usb20,
1697 atest_char0, NA, NA, NA),
1698 PINGROUP(21, cci_timer0, qdss_stm13, qdss_tracedata_b, dac_calib7, NA,
1699 NA, NA, NA, NA),
1700 PINGROUP(22, cci_timer1, qdss_stm12, qdss_tracedata_b, dac_calib8, NA,
1701 NA, NA, NA, NA),
1702 PINGROUP(23, cci_timer2, blsp1_spi, qdss_stm11, qdss_tracedata_b,
1703 dac_calib9, NA, NA, NA, NA),
1704 PINGROUP(24, cci_timer3, cci_async, blsp1_spi, qdss_stm10,
1705 qdss_cti_trig_in_a, dac_calib10, NA, NA, NA),
1706 PINGROUP(25, cci_timer4, cci_async, blsp_spi6, blsp_uart6, blsp_uim6,
1707 blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11),
1708 PINGROUP(26, cci_async, blsp_spi6, blsp_uart6, blsp_uim6, qdss_stm8,
1709 qdss_tracedata_b, dac_calib12, NA, NA),
1710 PINGROUP(27, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi,
1711 qdss_tracectl_a, dac_calib13, NA, NA, NA),
1712 PINGROUP(28, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi,
1713 qdss_traceclk_a, dac_calib14, NA, NA, NA),
1714 PINGROUP(29, blsp2_spi, NA, qdss_tracedata_b, dac_calib15, NA, NA, NA,
1715 NA, NA),
1716 PINGROUP(30, hdmi_rcv, blsp2_spi, dac_calib16, NA, NA, NA, NA, NA, NA),
1717 PINGROUP(31, hdmi_cec, pwr_modem, dac_calib17, NA, NA, NA, NA, NA, NA),
1718 PINGROUP(32, hdmi_ddc, pwr_nav, NA, dac_calib18, NA, NA, NA, NA, NA),
1719 PINGROUP(33, hdmi_ddc, pwr_crypto, NA, dac_calib19, NA, NA, NA, NA, NA),
1720 PINGROUP(34, hdmi_hot, NA, dac_calib20, NA, NA, NA, NA, NA, NA),
1721 PINGROUP(35, pci_e0, NA, dac_calib21, NA, NA, NA, NA, NA, NA),
1722 PINGROUP(36, pci_e0, NA, dac_calib22, NA, NA, NA, NA, NA, NA),
1723 PINGROUP(37, NA, dac_calib23, NA, NA, NA, NA, NA, NA, NA),
1724 PINGROUP(38, NA, dac_calib24, NA, NA, NA, NA, NA, NA, NA),
1725 PINGROUP(39, tsif1_sync, NA, dac_calib25, NA, NA, NA, NA, NA, NA),
1726 PINGROUP(40, sd_write, tsif1_error, NA, NA, NA, NA, NA, NA, NA),
1727 PINGROUP(41, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti,
1728 dac_calib0, NA, NA, NA),
1729 PINGROUP(42, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti,
1730 dac_calib1, NA, NA, NA),
1731 PINGROUP(43, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib2, NA, NA,
1732 NA, NA),
1733 PINGROUP(44, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib3, NA, NA,
1734 NA, NA),
1735 PINGROUP(45, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib4, NA, NA,
1736 NA, NA),
1737 PINGROUP(46, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib5, NA, NA,
1738 NA, NA),
1739 PINGROUP(47, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib6, NA, NA, NA,
1740 NA, NA),
1741 PINGROUP(48, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib7, NA, NA, NA,
1742 NA, NA),
1743 PINGROUP(49, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi,
1744 dac_calib8, NA, NA, NA),
1745 PINGROUP(50, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi,
1746 dac_calib9, NA, NA, NA),
1747 PINGROUP(51, uim3, blsp_spi9, blsp_uart9, blsp_i2c9, blsp10_spi,
1748 dac_calib10, NA, NA, NA),
1749 PINGROUP(52, uim3, blsp_spi9, blsp_uart9, blsp_i2c9,
1750 blsp10_spi, dac_calib11, NA, NA, NA),
1751 PINGROUP(53, blsp_spi7, blsp_uart7, blsp_uim7, NA, qdss_tracedata_a,
1752 dac_calib12, NA, NA, NA),
1753 PINGROUP(54, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA,
1754 qdss_tracedata_a, dac_calib13, NA, NA),
1755 PINGROUP(55, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib14, NA, NA,
1756 NA, NA),
1757 PINGROUP(56, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib15, NA, NA,
1758 NA, NA),
1759 PINGROUP(57, qua_mi2s, gcc_gp1_clk_a, NA, qdss_tracedata_b,
1760 dac_calib16, NA, NA, NA, NA),
1761 PINGROUP(58, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11,
1762 gcc_gp2_clk_a, NA, qdss_tracedata_b, dac_calib17),
1763 PINGROUP(59, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11,
1764 gcc_gp3_clk_a, NA, dac_calib18, NA),
1765 PINGROUP(60, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_i2c11,
1766 cri_trng0, NA, dac_calib19, NA),
1767 PINGROUP(61, qua_mi2s, uim4, blsp_spi11, blsp_uart11,
1768 blsp_i2c11, cri_trng1, NA, dac_calib20, NA),
1769 PINGROUP(62, qua_mi2s, cri_trng, NA, dac_calib21, NA, NA, NA, NA, NA),
1770 PINGROUP(63, qua_mi2s, NA, NA, qdss_stm18, qdss_tracedata_a,
1771 dac_calib22, NA, NA, NA),
1772 PINGROUP(64, pri_mi2s, NA, qdss_stm17, qdss_tracedata_a, dac_calib23,
1773 NA, NA, NA, NA),
1774 PINGROUP(65, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA,
1775 qdss_stm16, qdss_tracedata_a, dac_calib24, NA),
1776 PINGROUP(66, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA,
1777 qdss_stm15, qdss_tracedata_a, dac_calib25, NA),
1778 PINGROUP(67, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, qdss_stm14,
1779 qdss_tracedata_a, dac_calib26, NA, NA),
1780 PINGROUP(68, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA,
1781 NA, NA),
1782 PINGROUP(69, spkr_i2s, audio_ref, NA, NA, NA, NA, NA, NA, NA),
1783 PINGROUP(70, lpass_slimbus, spkr_i2s, isense_dbg, NA, NA, NA, NA, NA,
1784 NA),
1785 PINGROUP(71, lpass_slimbus, spkr_i2s, tsense_pwm1, tsense_pwm2, NA, NA,
1786 NA, NA, NA),
1787 PINGROUP(72, lpass_slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA),
1788 PINGROUP(73, btfm_slimbus, NA, NA, NA, NA, NA, NA, NA, NA),
1789 PINGROUP(74, btfm_slimbus, ter_mi2s, qdss_stm22, qdss_tracedata_a, NA,
1790 NA, NA, NA, NA),
1791 PINGROUP(75, ter_mi2s, qdss_stm21, qdss_tracedata_a, NA, NA, NA, NA,
1792 NA, NA),
1793 PINGROUP(76, ter_mi2s, qdss_stm20, qdss_tracedata_a, NA, NA, NA, NA,
1794 NA, NA),
1795 PINGROUP(77, ter_mi2s, qdss_stm19, qdss_tracedata_a, NA, NA, NA, NA,
1796 NA, NA),
1797 PINGROUP(78, ter_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA),
1798 PINGROUP(79, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
1799 PINGROUP(80, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
1800 PINGROUP(81, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b,
1801 NA, NA, NA, NA),
1802 PINGROUP(82, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp3_clk_b,
1803 NA, NA, NA, NA),
1804 PINGROUP(83, sec_mi2s, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA,
1805 NA, NA),
1806 PINGROUP(84, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA),
1807 PINGROUP(85, blsp_spi12, blsp_uart12, blsp_uim12, NA, qdss_stm25,
1808 qdss_tracedata_a, NA, NA, NA),
1809 PINGROUP(86, blsp_spi12, blsp_uart12, blsp_uim12, NA, NA, qdss_stm31,
1810 qdss_tracedata_a, NA, NA),
1811 PINGROUP(87, blsp_spi12, blsp_uart12, blsp_i2c12, NA, qdss_stm30,
1812 qdss_tracedata_a, NA, NA, NA),
1813 PINGROUP(88, blsp_spi12, blsp_uart12, blsp_i2c12, blsp10_spi, NA,
1814 qdss_stm29, NA, NA, NA),
1815 PINGROUP(89, tsif1_clk, qdss_stm28, qdss_tracedata_a, NA, NA, NA, NA,
1816 NA, NA),
1817 PINGROUP(90, tsif1_en, blsp1_spi, qdss_tracedata_a, NA, NA, NA, NA, NA,
1818 NA),
1819 PINGROUP(91, tsif1_data, sdc4_cmd, qdss_stm27, qdss_traceclk_b, NA, NA,
1820 NA, NA, NA),
1821 PINGROUP(92, tsif2_error, sdc43, vfr_1, qdss_stm26, qdss_tracedata_b,
1822 NA, NA, NA, NA),
1823 PINGROUP(93, tsif2_clk, sdc4_clk, NA, qdss_stm24, qdss_tracedata_b, NA,
1824 NA, NA, NA),
1825 PINGROUP(94, tsif2_en, sdc42, NA, qdss_stm23, qdss_tracectl_b, NA, NA,
1826 NA, NA),
1827 PINGROUP(95, tsif2_data, sdc41, NA, NA, NA, NA, NA, NA, NA),
1828 PINGROUP(96, tsif2_sync, sdc40, NA, NA, NA, NA, NA, NA, NA),
1829 PINGROUP(97, NA, NA, mdp_vsync_p_b, ldo_en, NA, NA, NA, NA, NA),
1830 PINGROUP(98, NA, NA, mdp_vsync_s_b, ldo_update, NA, NA, NA, NA, NA),
1831 PINGROUP(99, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1832 PINGROUP(100, NA, NA, blsp11_uart_tx_b, qdss_cti, NA, NA, NA, NA, NA),
1833 PINGROUP(101, NA, blsp11_uart_rx_b, qdss_cti, NA, NA, NA, NA, NA, NA),
1834 PINGROUP(102, NA, blsp11_i2c_sda_b, prng_rosc, NA, NA, NA, NA, NA, NA),
1835 PINGROUP(103, NA, blsp11_i2c_scl_b, NA, NA, NA, NA, NA, NA, NA),
1836 PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1837 PINGROUP(105, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1838 PINGROUP(106, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1839 PINGROUP(107, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1840 PINGROUP(108, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1841 PINGROUP(109, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1842 PINGROUP(110, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1843 PINGROUP(111, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1844 PINGROUP(112, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1845 PINGROUP(113, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA),
1846 PINGROUP(114, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA),
1847 PINGROUP(115, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA),
1848 PINGROUP(116, NA, pa_indicator, NA, NA, NA, NA, NA, NA, NA),
1849 PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1850 PINGROUP(118, adsp_ext, NA, NA, NA, NA, NA, NA, NA, NA),
1851 PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1852 PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1853 PINGROUP(121, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA),
1854 PINGROUP(122, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA),
1855 PINGROUP(123, ddr_bist, qdss_tracedata_11, NA, NA, NA, NA, NA, NA, NA),
1856 PINGROUP(124, ddr_bist, qdss_tracedata_12, NA, NA, NA, NA, NA, NA, NA),
1857 PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1858 PINGROUP(126, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1859 PINGROUP(127, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1860 PINGROUP(128, NA, modem_tsync, nav_dr, nav_pps, NA, NA, NA, NA, NA),
1861 PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1862 PINGROUP(130, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA),
1863 PINGROUP(131, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA),
1864 PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1865 PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1866 PINGROUP(134, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA),
1867 PINGROUP(135, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA),
1868 PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1869 PINGROUP(137, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1870 PINGROUP(138, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA),
1871 PINGROUP(139, NA, ssbi2, NA, NA, NA, NA, NA, NA, NA),
1872 PINGROUP(140, NA, ssbi1, NA, NA, NA, NA, NA, NA, NA),
1873 PINGROUP(141, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA),
1874 PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1875 PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1876 PINGROUP(144, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA),
1877 PINGROUP(145, mss_lte, qspi_clk, NA, NA, NA, NA, NA, NA, NA),
1878 PINGROUP(146, NA, qspi0, NA, NA, NA, NA, NA, NA, NA),
1879 PINGROUP(147, NA, qspi1, NA, NA, NA, NA, NA, NA, NA),
1880 PINGROUP(148, NA, qspi2, NA, NA, NA, NA, NA, NA, NA),
1881 PINGROUP(149, NA, qspi3, NA, NA, NA, NA, NA, NA, NA),
1882 SDC_QDSD_PINGROUP(sdc1_clk, 0x12c000, 13, 6),
1883 SDC_QDSD_PINGROUP(sdc1_cmd, 0x12c000, 11, 3),
1884 SDC_QDSD_PINGROUP(sdc1_data, 0x12c000, 9, 0),
1885 SDC_QDSD_PINGROUP(sdc2_clk, 0x12d000, 14, 6),
1886 SDC_QDSD_PINGROUP(sdc2_cmd, 0x12d000, 11, 3),
1887 SDC_QDSD_PINGROUP(sdc2_data, 0x12d000, 9, 0),
1888 SDC_QDSD_PINGROUP(sdc1_rclk, 0x12c000, 15, 0),
1889 };
1890
1891 static const struct msm_pinctrl_soc_data msm8996_pinctrl = {
1892 .pins = msm8996_pins,
1893 .npins = ARRAY_SIZE(msm8996_pins),
1894 .functions = msm8996_functions,
1895 .nfunctions = ARRAY_SIZE(msm8996_functions),
1896 .groups = msm8996_groups,
1897 .ngroups = ARRAY_SIZE(msm8996_groups),
1898 .ngpios = 150,
1899 };
1900
1901 static int msm8996_pinctrl_probe(struct platform_device *pdev)
1902 {
1903 return msm_pinctrl_probe(pdev, &msm8996_pinctrl);
1904 }
1905
1906 static const struct of_device_id msm8996_pinctrl_of_match[] = {
1907 { .compatible = "qcom,msm8996-pinctrl", },
1908 { }
1909 };
1910
1911 static struct platform_driver msm8996_pinctrl_driver = {
1912 .driver = {
1913 .name = "msm8996-pinctrl",
1914 .of_match_table = msm8996_pinctrl_of_match,
1915 },
1916 .probe = msm8996_pinctrl_probe,
1917 .remove = msm_pinctrl_remove,
1918 };
1919
1920 static int __init msm8996_pinctrl_init(void)
1921 {
1922 return platform_driver_register(&msm8996_pinctrl_driver);
1923 }
1924 arch_initcall(msm8996_pinctrl_init);
1925
1926 static void __exit msm8996_pinctrl_exit(void)
1927 {
1928 platform_driver_unregister(&msm8996_pinctrl_driver);
1929 }
1930 module_exit(msm8996_pinctrl_exit);
1931
1932 MODULE_DESCRIPTION("Qualcomm msm8996 pinctrl driver");
1933 MODULE_LICENSE("GPL v2");
1934 MODULE_DEVICE_TABLE(of, msm8996_pinctrl_of_match);