blob: e77dcd9204616336bbba06bfd1d3d85604ea8d8f [file] [log] [blame]
Kyle Yan6c2752f2017-09-27 16:29:45 -07001/*
2 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include <linux/module.h>
15#include <linux/of.h>
16#include <linux/platform_device.h>
17#include <linux/pinctrl/pinctrl.h>
18
19#include "pinctrl-msm.h"
20
21#define FUNCTION(fname) \
22 [msm_mux_##fname] = { \
23 .name = #fname, \
24 .groups = fname##_groups, \
25 .ngroups = ARRAY_SIZE(fname##_groups), \
26 }
27
28#define NORTH 0x00500000
29#define SOUTH 0x00900000
30#define EAST 0x00100000
31#define REG_SIZE 0x1000
32#define PINGROUP(id, base, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10) \
33 { \
34 .name = "gpio" #id, \
35 .pins = gpio##id##_pins, \
36 .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
37 .funcs = (int[]){ \
38 msm_mux_gpio, /* gpio mode */ \
39 msm_mux_##f1, \
40 msm_mux_##f2, \
41 msm_mux_##f3, \
42 msm_mux_##f4, \
43 msm_mux_##f5, \
44 msm_mux_##f6, \
45 msm_mux_##f7, \
46 msm_mux_##f8, \
47 msm_mux_##f9, \
48 msm_mux_##f10 \
49 }, \
50 .nfuncs = 11, \
51 .ctl_reg = base + REG_SIZE * id, \
52 .io_reg = base + 0x4 + REG_SIZE * id, \
53 .intr_cfg_reg = base + 0x8 + REG_SIZE * id, \
54 .intr_status_reg = base + 0xc + REG_SIZE * id, \
55 .intr_target_reg = base + 0x8 + REG_SIZE * id, \
Archana Sathyakumar40d25502017-10-06 11:59:34 -060056 .dir_conn_reg = (base == NORTH) ? base + 0xa4000 : \
57 ((base == SOUTH) ? base + 0xa8000 : base + 0x9e000), \
Kyle Yan6c2752f2017-09-27 16:29:45 -070058 .mux_bit = 2, \
59 .pull_bit = 0, \
60 .drv_bit = 6, \
61 .oe_bit = 9, \
62 .in_bit = 0, \
63 .out_bit = 1, \
64 .intr_enable_bit = 0, \
65 .intr_status_bit = 0, \
66 .intr_target_bit = 5, \
67 .intr_target_kpss_val = 3, \
68 .intr_raw_status_bit = 4, \
69 .intr_polarity_bit = 1, \
70 .intr_detection_bit = 2, \
71 .intr_detection_width = 2, \
Archana Sathyakumar40d25502017-10-06 11:59:34 -060072 .dir_conn_en_bit = 8, \
Kyle Yan6c2752f2017-09-27 16:29:45 -070073 }
74
75#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
76 { \
77 .name = #pg_name, \
78 .pins = pg_name##_pins, \
79 .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
80 .ctl_reg = ctl, \
81 .io_reg = 0, \
82 .intr_cfg_reg = 0, \
83 .intr_status_reg = 0, \
84 .intr_target_reg = 0, \
85 .mux_bit = -1, \
86 .pull_bit = pull, \
87 .drv_bit = drv, \
88 .oe_bit = -1, \
89 .in_bit = -1, \
90 .out_bit = -1, \
91 .intr_enable_bit = -1, \
92 .intr_status_bit = -1, \
93 .intr_target_bit = -1, \
94 .intr_raw_status_bit = -1, \
95 .intr_polarity_bit = -1, \
96 .intr_detection_bit = -1, \
97 .intr_detection_width = -1, \
98 }
99
100#define UFS_RESET(pg_name, offset) \
101 { \
102 .name = #pg_name, \
103 .pins = pg_name##_pins, \
104 .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
105 .ctl_reg = offset, \
106 .io_reg = offset + 0x4, \
107 .intr_cfg_reg = 0, \
108 .intr_status_reg = 0, \
109 .intr_target_reg = 0, \
110 .mux_bit = -1, \
111 .pull_bit = 3, \
112 .drv_bit = 0, \
113 .oe_bit = -1, \
114 .in_bit = -1, \
115 .out_bit = 0, \
116 .intr_enable_bit = -1, \
117 .intr_status_bit = -1, \
118 .intr_target_bit = -1, \
119 .intr_raw_status_bit = -1, \
120 .intr_polarity_bit = -1, \
121 .intr_detection_bit = -1, \
122 .intr_detection_width = -1, \
123 }
124static const struct pinctrl_pin_desc sdm845_pins[] = {
125 PINCTRL_PIN(0, "GPIO_0"),
126 PINCTRL_PIN(1, "GPIO_1"),
127 PINCTRL_PIN(2, "GPIO_2"),
128 PINCTRL_PIN(3, "GPIO_3"),
129 PINCTRL_PIN(4, "GPIO_4"),
130 PINCTRL_PIN(5, "GPIO_5"),
131 PINCTRL_PIN(6, "GPIO_6"),
132 PINCTRL_PIN(7, "GPIO_7"),
133 PINCTRL_PIN(8, "GPIO_8"),
134 PINCTRL_PIN(9, "GPIO_9"),
135 PINCTRL_PIN(10, "GPIO_10"),
136 PINCTRL_PIN(11, "GPIO_11"),
137 PINCTRL_PIN(12, "GPIO_12"),
138 PINCTRL_PIN(13, "GPIO_13"),
139 PINCTRL_PIN(14, "GPIO_14"),
140 PINCTRL_PIN(15, "GPIO_15"),
141 PINCTRL_PIN(16, "GPIO_16"),
142 PINCTRL_PIN(17, "GPIO_17"),
143 PINCTRL_PIN(18, "GPIO_18"),
144 PINCTRL_PIN(19, "GPIO_19"),
145 PINCTRL_PIN(20, "GPIO_20"),
146 PINCTRL_PIN(21, "GPIO_21"),
147 PINCTRL_PIN(22, "GPIO_22"),
148 PINCTRL_PIN(23, "GPIO_23"),
149 PINCTRL_PIN(24, "GPIO_24"),
150 PINCTRL_PIN(25, "GPIO_25"),
151 PINCTRL_PIN(26, "GPIO_26"),
152 PINCTRL_PIN(27, "GPIO_27"),
153 PINCTRL_PIN(28, "GPIO_28"),
154 PINCTRL_PIN(29, "GPIO_29"),
155 PINCTRL_PIN(30, "GPIO_30"),
156 PINCTRL_PIN(31, "GPIO_31"),
157 PINCTRL_PIN(32, "GPIO_32"),
158 PINCTRL_PIN(33, "GPIO_33"),
159 PINCTRL_PIN(34, "GPIO_34"),
160 PINCTRL_PIN(35, "GPIO_35"),
161 PINCTRL_PIN(36, "GPIO_36"),
162 PINCTRL_PIN(37, "GPIO_37"),
163 PINCTRL_PIN(38, "GPIO_38"),
164 PINCTRL_PIN(39, "GPIO_39"),
165 PINCTRL_PIN(40, "GPIO_40"),
166 PINCTRL_PIN(41, "GPIO_41"),
167 PINCTRL_PIN(42, "GPIO_42"),
168 PINCTRL_PIN(43, "GPIO_43"),
169 PINCTRL_PIN(44, "GPIO_44"),
170 PINCTRL_PIN(45, "GPIO_45"),
171 PINCTRL_PIN(46, "GPIO_46"),
172 PINCTRL_PIN(47, "GPIO_47"),
173 PINCTRL_PIN(48, "GPIO_48"),
174 PINCTRL_PIN(49, "GPIO_49"),
175 PINCTRL_PIN(50, "GPIO_50"),
176 PINCTRL_PIN(51, "GPIO_51"),
177 PINCTRL_PIN(52, "GPIO_52"),
178 PINCTRL_PIN(53, "GPIO_53"),
179 PINCTRL_PIN(54, "GPIO_54"),
180 PINCTRL_PIN(55, "GPIO_55"),
181 PINCTRL_PIN(56, "GPIO_56"),
182 PINCTRL_PIN(57, "GPIO_57"),
183 PINCTRL_PIN(58, "GPIO_58"),
184 PINCTRL_PIN(59, "GPIO_59"),
185 PINCTRL_PIN(60, "GPIO_60"),
186 PINCTRL_PIN(61, "GPIO_61"),
187 PINCTRL_PIN(62, "GPIO_62"),
188 PINCTRL_PIN(63, "GPIO_63"),
189 PINCTRL_PIN(64, "GPIO_64"),
190 PINCTRL_PIN(65, "GPIO_65"),
191 PINCTRL_PIN(66, "GPIO_66"),
192 PINCTRL_PIN(67, "GPIO_67"),
193 PINCTRL_PIN(68, "GPIO_68"),
194 PINCTRL_PIN(69, "GPIO_69"),
195 PINCTRL_PIN(70, "GPIO_70"),
196 PINCTRL_PIN(71, "GPIO_71"),
197 PINCTRL_PIN(72, "GPIO_72"),
198 PINCTRL_PIN(73, "GPIO_73"),
199 PINCTRL_PIN(74, "GPIO_74"),
200 PINCTRL_PIN(75, "GPIO_75"),
201 PINCTRL_PIN(76, "GPIO_76"),
202 PINCTRL_PIN(77, "GPIO_77"),
203 PINCTRL_PIN(78, "GPIO_78"),
204 PINCTRL_PIN(79, "GPIO_79"),
205 PINCTRL_PIN(80, "GPIO_80"),
206 PINCTRL_PIN(81, "GPIO_81"),
207 PINCTRL_PIN(82, "GPIO_82"),
208 PINCTRL_PIN(83, "GPIO_83"),
209 PINCTRL_PIN(84, "GPIO_84"),
210 PINCTRL_PIN(85, "GPIO_85"),
211 PINCTRL_PIN(86, "GPIO_86"),
212 PINCTRL_PIN(87, "GPIO_87"),
213 PINCTRL_PIN(88, "GPIO_88"),
214 PINCTRL_PIN(89, "GPIO_89"),
215 PINCTRL_PIN(90, "GPIO_90"),
216 PINCTRL_PIN(91, "GPIO_91"),
217 PINCTRL_PIN(92, "GPIO_92"),
218 PINCTRL_PIN(93, "GPIO_93"),
219 PINCTRL_PIN(94, "GPIO_94"),
220 PINCTRL_PIN(95, "GPIO_95"),
221 PINCTRL_PIN(96, "GPIO_96"),
222 PINCTRL_PIN(97, "GPIO_97"),
223 PINCTRL_PIN(98, "GPIO_98"),
224 PINCTRL_PIN(99, "GPIO_99"),
225 PINCTRL_PIN(100, "GPIO_100"),
226 PINCTRL_PIN(101, "GPIO_101"),
227 PINCTRL_PIN(102, "GPIO_102"),
228 PINCTRL_PIN(103, "GPIO_103"),
229 PINCTRL_PIN(104, "GPIO_104"),
230 PINCTRL_PIN(105, "GPIO_105"),
231 PINCTRL_PIN(106, "GPIO_106"),
232 PINCTRL_PIN(107, "GPIO_107"),
233 PINCTRL_PIN(108, "GPIO_108"),
234 PINCTRL_PIN(109, "GPIO_109"),
235 PINCTRL_PIN(110, "GPIO_110"),
236 PINCTRL_PIN(111, "GPIO_111"),
237 PINCTRL_PIN(112, "GPIO_112"),
238 PINCTRL_PIN(113, "GPIO_113"),
239 PINCTRL_PIN(114, "GPIO_114"),
240 PINCTRL_PIN(115, "GPIO_115"),
241 PINCTRL_PIN(116, "GPIO_116"),
242 PINCTRL_PIN(117, "GPIO_117"),
243 PINCTRL_PIN(118, "GPIO_118"),
244 PINCTRL_PIN(119, "GPIO_119"),
245 PINCTRL_PIN(120, "GPIO_120"),
246 PINCTRL_PIN(121, "GPIO_121"),
247 PINCTRL_PIN(122, "GPIO_122"),
248 PINCTRL_PIN(123, "GPIO_123"),
249 PINCTRL_PIN(124, "GPIO_124"),
250 PINCTRL_PIN(125, "GPIO_125"),
251 PINCTRL_PIN(126, "GPIO_126"),
252 PINCTRL_PIN(127, "GPIO_127"),
253 PINCTRL_PIN(128, "GPIO_128"),
254 PINCTRL_PIN(129, "GPIO_129"),
255 PINCTRL_PIN(130, "GPIO_130"),
256 PINCTRL_PIN(131, "GPIO_131"),
257 PINCTRL_PIN(132, "GPIO_132"),
258 PINCTRL_PIN(133, "GPIO_133"),
259 PINCTRL_PIN(134, "GPIO_134"),
260 PINCTRL_PIN(135, "GPIO_135"),
261 PINCTRL_PIN(136, "GPIO_136"),
262 PINCTRL_PIN(137, "GPIO_137"),
263 PINCTRL_PIN(138, "GPIO_138"),
264 PINCTRL_PIN(139, "GPIO_139"),
265 PINCTRL_PIN(140, "GPIO_140"),
266 PINCTRL_PIN(141, "GPIO_141"),
267 PINCTRL_PIN(142, "GPIO_142"),
268 PINCTRL_PIN(143, "GPIO_143"),
269 PINCTRL_PIN(144, "GPIO_144"),
270 PINCTRL_PIN(145, "GPIO_145"),
271 PINCTRL_PIN(146, "GPIO_146"),
272 PINCTRL_PIN(147, "GPIO_147"),
273 PINCTRL_PIN(148, "GPIO_148"),
274 PINCTRL_PIN(149, "GPIO_149"),
275 PINCTRL_PIN(150, "SDC2_CLK"),
276 PINCTRL_PIN(151, "SDC2_CMD"),
277 PINCTRL_PIN(152, "SDC2_DATA"),
278 PINCTRL_PIN(153, "UFS_RESET"),
279};
280
281#define DECLARE_MSM_GPIO_PINS(pin) \
282 static const unsigned int gpio##pin##_pins[] = { pin }
283DECLARE_MSM_GPIO_PINS(0);
284DECLARE_MSM_GPIO_PINS(1);
285DECLARE_MSM_GPIO_PINS(2);
286DECLARE_MSM_GPIO_PINS(3);
287DECLARE_MSM_GPIO_PINS(4);
288DECLARE_MSM_GPIO_PINS(5);
289DECLARE_MSM_GPIO_PINS(6);
290DECLARE_MSM_GPIO_PINS(7);
291DECLARE_MSM_GPIO_PINS(8);
292DECLARE_MSM_GPIO_PINS(9);
293DECLARE_MSM_GPIO_PINS(10);
294DECLARE_MSM_GPIO_PINS(11);
295DECLARE_MSM_GPIO_PINS(12);
296DECLARE_MSM_GPIO_PINS(13);
297DECLARE_MSM_GPIO_PINS(14);
298DECLARE_MSM_GPIO_PINS(15);
299DECLARE_MSM_GPIO_PINS(16);
300DECLARE_MSM_GPIO_PINS(17);
301DECLARE_MSM_GPIO_PINS(18);
302DECLARE_MSM_GPIO_PINS(19);
303DECLARE_MSM_GPIO_PINS(20);
304DECLARE_MSM_GPIO_PINS(21);
305DECLARE_MSM_GPIO_PINS(22);
306DECLARE_MSM_GPIO_PINS(23);
307DECLARE_MSM_GPIO_PINS(24);
308DECLARE_MSM_GPIO_PINS(25);
309DECLARE_MSM_GPIO_PINS(26);
310DECLARE_MSM_GPIO_PINS(27);
311DECLARE_MSM_GPIO_PINS(28);
312DECLARE_MSM_GPIO_PINS(29);
313DECLARE_MSM_GPIO_PINS(30);
314DECLARE_MSM_GPIO_PINS(31);
315DECLARE_MSM_GPIO_PINS(32);
316DECLARE_MSM_GPIO_PINS(33);
317DECLARE_MSM_GPIO_PINS(34);
318DECLARE_MSM_GPIO_PINS(35);
319DECLARE_MSM_GPIO_PINS(36);
320DECLARE_MSM_GPIO_PINS(37);
321DECLARE_MSM_GPIO_PINS(38);
322DECLARE_MSM_GPIO_PINS(39);
323DECLARE_MSM_GPIO_PINS(40);
324DECLARE_MSM_GPIO_PINS(41);
325DECLARE_MSM_GPIO_PINS(42);
326DECLARE_MSM_GPIO_PINS(43);
327DECLARE_MSM_GPIO_PINS(44);
328DECLARE_MSM_GPIO_PINS(45);
329DECLARE_MSM_GPIO_PINS(46);
330DECLARE_MSM_GPIO_PINS(47);
331DECLARE_MSM_GPIO_PINS(48);
332DECLARE_MSM_GPIO_PINS(49);
333DECLARE_MSM_GPIO_PINS(50);
334DECLARE_MSM_GPIO_PINS(51);
335DECLARE_MSM_GPIO_PINS(52);
336DECLARE_MSM_GPIO_PINS(53);
337DECLARE_MSM_GPIO_PINS(54);
338DECLARE_MSM_GPIO_PINS(55);
339DECLARE_MSM_GPIO_PINS(56);
340DECLARE_MSM_GPIO_PINS(57);
341DECLARE_MSM_GPIO_PINS(58);
342DECLARE_MSM_GPIO_PINS(59);
343DECLARE_MSM_GPIO_PINS(60);
344DECLARE_MSM_GPIO_PINS(61);
345DECLARE_MSM_GPIO_PINS(62);
346DECLARE_MSM_GPIO_PINS(63);
347DECLARE_MSM_GPIO_PINS(64);
348DECLARE_MSM_GPIO_PINS(65);
349DECLARE_MSM_GPIO_PINS(66);
350DECLARE_MSM_GPIO_PINS(67);
351DECLARE_MSM_GPIO_PINS(68);
352DECLARE_MSM_GPIO_PINS(69);
353DECLARE_MSM_GPIO_PINS(70);
354DECLARE_MSM_GPIO_PINS(71);
355DECLARE_MSM_GPIO_PINS(72);
356DECLARE_MSM_GPIO_PINS(73);
357DECLARE_MSM_GPIO_PINS(74);
358DECLARE_MSM_GPIO_PINS(75);
359DECLARE_MSM_GPIO_PINS(76);
360DECLARE_MSM_GPIO_PINS(77);
361DECLARE_MSM_GPIO_PINS(78);
362DECLARE_MSM_GPIO_PINS(79);
363DECLARE_MSM_GPIO_PINS(80);
364DECLARE_MSM_GPIO_PINS(81);
365DECLARE_MSM_GPIO_PINS(82);
366DECLARE_MSM_GPIO_PINS(83);
367DECLARE_MSM_GPIO_PINS(84);
368DECLARE_MSM_GPIO_PINS(85);
369DECLARE_MSM_GPIO_PINS(86);
370DECLARE_MSM_GPIO_PINS(87);
371DECLARE_MSM_GPIO_PINS(88);
372DECLARE_MSM_GPIO_PINS(89);
373DECLARE_MSM_GPIO_PINS(90);
374DECLARE_MSM_GPIO_PINS(91);
375DECLARE_MSM_GPIO_PINS(92);
376DECLARE_MSM_GPIO_PINS(93);
377DECLARE_MSM_GPIO_PINS(94);
378DECLARE_MSM_GPIO_PINS(95);
379DECLARE_MSM_GPIO_PINS(96);
380DECLARE_MSM_GPIO_PINS(97);
381DECLARE_MSM_GPIO_PINS(98);
382DECLARE_MSM_GPIO_PINS(99);
383DECLARE_MSM_GPIO_PINS(100);
384DECLARE_MSM_GPIO_PINS(101);
385DECLARE_MSM_GPIO_PINS(102);
386DECLARE_MSM_GPIO_PINS(103);
387DECLARE_MSM_GPIO_PINS(104);
388DECLARE_MSM_GPIO_PINS(105);
389DECLARE_MSM_GPIO_PINS(106);
390DECLARE_MSM_GPIO_PINS(107);
391DECLARE_MSM_GPIO_PINS(108);
392DECLARE_MSM_GPIO_PINS(109);
393DECLARE_MSM_GPIO_PINS(110);
394DECLARE_MSM_GPIO_PINS(111);
395DECLARE_MSM_GPIO_PINS(112);
396DECLARE_MSM_GPIO_PINS(113);
397DECLARE_MSM_GPIO_PINS(114);
398DECLARE_MSM_GPIO_PINS(115);
399DECLARE_MSM_GPIO_PINS(116);
400DECLARE_MSM_GPIO_PINS(117);
401DECLARE_MSM_GPIO_PINS(118);
402DECLARE_MSM_GPIO_PINS(119);
403DECLARE_MSM_GPIO_PINS(120);
404DECLARE_MSM_GPIO_PINS(121);
405DECLARE_MSM_GPIO_PINS(122);
406DECLARE_MSM_GPIO_PINS(123);
407DECLARE_MSM_GPIO_PINS(124);
408DECLARE_MSM_GPIO_PINS(125);
409DECLARE_MSM_GPIO_PINS(126);
410DECLARE_MSM_GPIO_PINS(127);
411DECLARE_MSM_GPIO_PINS(128);
412DECLARE_MSM_GPIO_PINS(129);
413DECLARE_MSM_GPIO_PINS(130);
414DECLARE_MSM_GPIO_PINS(131);
415DECLARE_MSM_GPIO_PINS(132);
416DECLARE_MSM_GPIO_PINS(133);
417DECLARE_MSM_GPIO_PINS(134);
418DECLARE_MSM_GPIO_PINS(135);
419DECLARE_MSM_GPIO_PINS(136);
420DECLARE_MSM_GPIO_PINS(137);
421DECLARE_MSM_GPIO_PINS(138);
422DECLARE_MSM_GPIO_PINS(139);
423DECLARE_MSM_GPIO_PINS(140);
424DECLARE_MSM_GPIO_PINS(141);
425DECLARE_MSM_GPIO_PINS(142);
426DECLARE_MSM_GPIO_PINS(143);
427DECLARE_MSM_GPIO_PINS(144);
428DECLARE_MSM_GPIO_PINS(145);
429DECLARE_MSM_GPIO_PINS(146);
430DECLARE_MSM_GPIO_PINS(147);
431DECLARE_MSM_GPIO_PINS(148);
432DECLARE_MSM_GPIO_PINS(149);
433
434static const unsigned int sdc2_clk_pins[] = { 150 };
435static const unsigned int sdc2_cmd_pins[] = { 151 };
436static const unsigned int sdc2_data_pins[] = { 152 };
437static const unsigned int ufs_reset_pins[] = { 153 };
438
439enum sdm845_functions {
440 msm_mux_ddr_pxi3,
441 msm_mux_cam_mclk,
442 msm_mux_pll_bypassnl,
443 msm_mux_qdss_gpio0,
444 msm_mux_pll_reset,
445 msm_mux_qdss_gpio1,
446 msm_mux_qdss_gpio2,
447 msm_mux_qdss_gpio3,
448 msm_mux_cci_i2c,
449 msm_mux_qup1,
450 msm_mux_qdss_gpio4,
451 msm_mux_qdss_gpio5,
452 msm_mux_qdss_gpio6,
453 msm_mux_qdss_gpio7,
454 msm_mux_cci_timer0,
455 msm_mux_gcc_gp2,
456 msm_mux_qdss_gpio8,
457 msm_mux_cci_timer1,
458 msm_mux_gcc_gp3,
459 msm_mux_qdss_gpio,
460 msm_mux_cci_timer2,
461 msm_mux_qdss_gpio9,
462 msm_mux_cci_timer3,
463 msm_mux_cci_async,
464 msm_mux_qdss_gpio10,
465 msm_mux_cci_timer4,
466 msm_mux_qdss_gpio11,
467 msm_mux_qdss_gpio12,
468 msm_mux_qup2,
469 msm_mux_qdss_gpio13,
470 msm_mux_qdss_gpio14,
471 msm_mux_phase_flag1,
472 msm_mux_qdss_gpio15,
473 msm_mux_phase_flag2,
474 msm_mux_qup11,
475 msm_mux_qup14,
476 msm_mux_pci_e0,
477 msm_mux_jitter_bist,
478 msm_mux_pll_bist,
479 msm_mux_atest_tsens,
480 msm_mux_agera_pll,
481 msm_mux_usb_phy,
482 msm_mux_lpass_slimbus,
483 msm_mux_sd_write,
484 msm_mux_tsif1_error,
485 msm_mux_qup3,
486 msm_mux_qup6,
487 msm_mux_qup12,
488 msm_mux_phase_flag16,
489 msm_mux_qup10,
490 msm_mux_phase_flag11,
491 msm_mux_phase_flag12,
492 msm_mux_phase_flag13,
493 msm_mux_phase_flag17,
494 msm_mux_qua_mi2s,
495 msm_mux_gcc_gp1,
496 msm_mux_phase_flag18,
497 msm_mux_phase_flag19,
498 msm_mux_phase_flag20,
499 msm_mux_cri_trng0,
500 msm_mux_phase_flag21,
501 msm_mux_cri_trng1,
502 msm_mux_phase_flag22,
503 msm_mux_cri_trng,
504 msm_mux_phase_flag23,
505 msm_mux_phase_flag24,
506 msm_mux_pri_mi2s,
507 msm_mux_sp_cmu,
508 msm_mux_phase_flag25,
509 msm_mux_qup8,
510 msm_mux_pri_mi2s_ws,
511 msm_mux_spkr_i2s,
512 msm_mux_audio_ref,
513 msm_mux_tsense_pwm1,
514 msm_mux_tsense_pwm2,
515 msm_mux_btfm_slimbus,
516 msm_mux_atest_usb2,
517 msm_mux_ter_mi2s,
518 msm_mux_phase_flag7,
519 msm_mux_atest_usb23,
520 msm_mux_phase_flag8,
521 msm_mux_atest_usb22,
522 msm_mux_phase_flag9,
523 msm_mux_atest_usb21,
524 msm_mux_phase_flag4,
525 msm_mux_atest_usb20,
526 msm_mux_sec_mi2s,
527 msm_mux_qup15,
528 msm_mux_qup5,
529 msm_mux_tsif1_clk,
530 msm_mux_qup4,
531 msm_mux_qspi_cs,
532 msm_mux_tgu_ch3,
533 msm_mux_phase_flag10,
534 msm_mux_tsif1_en,
535 msm_mux_mdp_vsync0,
536 msm_mux_mdp_vsync1,
537 msm_mux_mdp_vsync2,
538 msm_mux_mdp_vsync3,
539 msm_mux_tgu_ch0,
540 msm_mux_phase_flag0,
541 msm_mux_tsif1_data,
542 msm_mux_sdc4_cmd,
543 msm_mux_qspi0,
544 msm_mux_tgu_ch1,
545 msm_mux_tsif2_error,
546 msm_mux_sdc43,
547 msm_mux_qspi1,
548 msm_mux_vfr_1,
549 msm_mux_tgu_ch2,
550 msm_mux_tsif2_clk,
551 msm_mux_sdc4_clk,
552 msm_mux_qup7,
553 msm_mux_qspi2,
554 msm_mux_tsif2_en,
555 msm_mux_sdc42,
556 msm_mux_qspi3,
557 msm_mux_tsif2_data,
558 msm_mux_sdc41,
559 msm_mux_qspi_clk,
560 msm_mux_tsif2_sync,
561 msm_mux_sdc40,
562 msm_mux_phase_flag3,
563 msm_mux_ldo_en,
564 msm_mux_ldo_update,
565 msm_mux_phase_flag14,
566 msm_mux_phase_flag15,
567 msm_mux_pci_e1,
568 msm_mux_prng_rosc,
569 msm_mux_phase_flag5,
570 msm_mux_uim2_data,
571 msm_mux_qup13,
572 msm_mux_uim2_clk,
573 msm_mux_uim2_reset,
574 msm_mux_uim2_present,
575 msm_mux_uim1_data,
576 msm_mux_uim1_clk,
577 msm_mux_uim1_reset,
578 msm_mux_uim1_present,
579 msm_mux_uim_batt,
580 msm_mux_edp_hot,
581 msm_mux_nav_pps,
582 msm_mux_atest_char,
583 msm_mux_adsp_ext,
584 msm_mux_atest_char3,
585 msm_mux_atest_char2,
586 msm_mux_atest_char1,
587 msm_mux_atest_char0,
588 msm_mux_qlink_request,
589 msm_mux_qlink_enable,
590 msm_mux_pa_indicator,
591 msm_mux_phase_flag26,
592 msm_mux_phase_flag27,
593 msm_mux_phase_flag28,
594 msm_mux_phase_flag6,
595 msm_mux_phase_flag29,
596 msm_mux_phase_flag30,
597 msm_mux_phase_flag31,
598 msm_mux_mss_lte,
599 msm_mux_qup0,
600 msm_mux_gpio,
601 msm_mux_qup9,
602 msm_mux_qdss_cti,
603 msm_mux_ddr_pxi0,
604 msm_mux_ddr_bist,
605 msm_mux_atest_tsens2,
606 msm_mux_vsense_trigger,
607 msm_mux_atest_usb1,
608 msm_mux_qup_l4,
609 msm_mux_wlan1_adc1,
610 msm_mux_atest_usb13,
611 msm_mux_ddr_pxi1,
612 msm_mux_qup_l5,
613 msm_mux_wlan1_adc0,
614 msm_mux_atest_usb12,
615 msm_mux_mdp_vsync,
616 msm_mux_qup_l6,
617 msm_mux_wlan2_adc1,
618 msm_mux_atest_usb11,
619 msm_mux_ddr_pxi2,
620 msm_mux_edp_lcd,
621 msm_mux_dbg_out,
622 msm_mux_wlan2_adc0,
623 msm_mux_atest_usb10,
624 msm_mux_m_voc,
625 msm_mux_tsif1_sync,
626 msm_mux_NA,
627};
628
629static const char * const ddr_pxi3_groups[] = {
630 "gpio12", "gpio13",
631};
632static const char * const cam_mclk_groups[] = {
633 "gpio13", "gpio14", "gpio15", "gpio16",
634};
635static const char * const pll_bypassnl_groups[] = {
636 "gpio13",
637};
638static const char * const qdss_gpio0_groups[] = {
639 "gpio13", "gpio117",
640};
641static const char * const pll_reset_groups[] = {
642 "gpio14",
643};
644static const char * const qdss_gpio1_groups[] = {
645 "gpio14", "gpio118",
646};
647static const char * const qdss_gpio2_groups[] = {
648 "gpio15", "gpio119",
649};
650static const char * const qdss_gpio3_groups[] = {
651 "gpio16", "gpio120",
652};
653static const char * const cci_i2c_groups[] = {
654 "gpio17", "gpio18", "gpio19", "gpio20",
655};
656static const char * const qup1_groups[] = {
657 "gpio17", "gpio18", "gpio19", "gpio20",
658};
659static const char * const qdss_gpio4_groups[] = {
660 "gpio17", "gpio121",
661};
662static const char * const qdss_gpio5_groups[] = {
663 "gpio18", "gpio122",
664};
665static const char * const qdss_gpio6_groups[] = {
666 "gpio19", "gpio41",
667};
668static const char * const qdss_gpio7_groups[] = {
669 "gpio20", "gpio42",
670};
671static const char * const cci_timer0_groups[] = {
672 "gpio21",
673};
674static const char * const gcc_gp2_groups[] = {
675 "gpio21", "gpio58",
676};
677static const char * const qdss_gpio8_groups[] = {
678 "gpio21", "gpio75",
679};
680static const char * const cci_timer1_groups[] = {
681 "gpio22",
682};
683static const char * const gcc_gp3_groups[] = {
684 "gpio22", "gpio59",
685};
686static const char * const qdss_gpio_groups[] = {
687 "gpio22", "gpio30", "gpio123", "gpio124",
688};
689static const char * const cci_timer2_groups[] = {
690 "gpio23",
691};
692static const char * const qdss_gpio9_groups[] = {
693 "gpio23", "gpio76",
694};
695static const char * const cci_timer3_groups[] = {
696 "gpio24",
697};
698static const char * const cci_async_groups[] = {
699 "gpio24", "gpio25", "gpio26",
700};
701static const char * const qdss_gpio10_groups[] = {
702 "gpio24", "gpio77",
703};
704static const char * const cci_timer4_groups[] = {
705 "gpio25",
706};
707static const char * const qdss_gpio11_groups[] = {
708 "gpio25", "gpio79",
709};
710static const char * const qdss_gpio12_groups[] = {
711 "gpio26", "gpio80",
712};
713static const char * const qup2_groups[] = {
714 "gpio27", "gpio28", "gpio29", "gpio30",
715};
716static const char * const qdss_gpio13_groups[] = {
717 "gpio27", "gpio93",
718};
719static const char * const qdss_gpio14_groups[] = {
720 "gpio28", "gpio43",
721};
722static const char * const phase_flag1_groups[] = {
723 "gpio29",
724};
725static const char * const qdss_gpio15_groups[] = {
726 "gpio29", "gpio44",
727};
728static const char * const phase_flag2_groups[] = {
729 "gpio30",
730};
731static const char * const qup11_groups[] = {
732 "gpio31", "gpio32", "gpio33", "gpio34",
733};
734static const char * const qup14_groups[] = {
735 "gpio31", "gpio32", "gpio33", "gpio34",
736};
737static const char * const pci_e0_groups[] = {
738 "gpio35", "gpio36",
739};
740static const char * const jitter_bist_groups[] = {
741 "gpio35",
742};
743static const char * const pll_bist_groups[] = {
744 "gpio36",
745};
746static const char * const atest_tsens_groups[] = {
747 "gpio36",
748};
749static const char * const agera_pll_groups[] = {
750 "gpio37",
751};
752static const char * const usb_phy_groups[] = {
753 "gpio38",
754};
755static const char * const lpass_slimbus_groups[] = {
756 "gpio39", "gpio70", "gpio71", "gpio72",
757};
758static const char * const sd_write_groups[] = {
759 "gpio40",
760};
761static const char * const tsif1_error_groups[] = {
762 "gpio40",
763};
764static const char * const qup3_groups[] = {
765 "gpio41", "gpio42", "gpio43", "gpio44",
766};
767static const char * const qup6_groups[] = {
768 "gpio45", "gpio46", "gpio47", "gpio48",
769};
770static const char * const qup12_groups[] = {
771 "gpio49", "gpio50", "gpio51", "gpio52",
772};
773static const char * const phase_flag16_groups[] = {
774 "gpio52",
775};
776static const char * const qup10_groups[] = {
777 "gpio53", "gpio54", "gpio55", "gpio56",
778};
779static const char * const phase_flag11_groups[] = {
780 "gpio53",
781};
782static const char * const phase_flag12_groups[] = {
783 "gpio54",
784};
785static const char * const phase_flag13_groups[] = {
786 "gpio55",
787};
788static const char * const phase_flag17_groups[] = {
789 "gpio56",
790};
791static const char * const qua_mi2s_groups[] = {
792 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
793};
794static const char * const gcc_gp1_groups[] = {
795 "gpio57", "gpio78",
796};
797static const char * const phase_flag18_groups[] = {
798 "gpio57",
799};
800static const char * const phase_flag19_groups[] = {
801 "gpio58",
802};
803static const char * const phase_flag20_groups[] = {
804 "gpio59",
805};
806static const char * const cri_trng0_groups[] = {
807 "gpio60",
808};
809static const char * const phase_flag21_groups[] = {
810 "gpio60",
811};
812static const char * const cri_trng1_groups[] = {
813 "gpio61",
814};
815static const char * const phase_flag22_groups[] = {
816 "gpio61",
817};
818static const char * const cri_trng_groups[] = {
819 "gpio62",
820};
821static const char * const phase_flag23_groups[] = {
822 "gpio62",
823};
824static const char * const phase_flag24_groups[] = {
825 "gpio63",
826};
827static const char * const pri_mi2s_groups[] = {
828 "gpio64", "gpio65", "gpio67", "gpio68",
829};
830static const char * const sp_cmu_groups[] = {
831 "gpio64",
832};
833static const char * const phase_flag25_groups[] = {
834 "gpio64",
835};
836static const char * const qup8_groups[] = {
837 "gpio65", "gpio66", "gpio67", "gpio68",
838};
839static const char * const pri_mi2s_ws_groups[] = {
840 "gpio66",
841};
842static const char * const spkr_i2s_groups[] = {
843 "gpio69", "gpio70", "gpio71", "gpio72",
844};
845static const char * const audio_ref_groups[] = {
846 "gpio69",
847};
848static const char * const tsense_pwm1_groups[] = {
849 "gpio71",
850};
851static const char * const tsense_pwm2_groups[] = {
852 "gpio71",
853};
854static const char * const btfm_slimbus_groups[] = {
855 "gpio73", "gpio74",
856};
857static const char * const atest_usb2_groups[] = {
858 "gpio73",
859};
860static const char * const ter_mi2s_groups[] = {
861 "gpio74", "gpio75", "gpio76", "gpio77", "gpio78",
862};
863static const char * const phase_flag7_groups[] = {
864 "gpio74",
865};
866static const char * const atest_usb23_groups[] = {
867 "gpio74",
868};
869static const char * const phase_flag8_groups[] = {
870 "gpio75",
871};
872static const char * const atest_usb22_groups[] = {
873 "gpio75",
874};
875static const char * const phase_flag9_groups[] = {
876 "gpio76",
877};
878static const char * const atest_usb21_groups[] = {
879 "gpio76",
880};
881static const char * const phase_flag4_groups[] = {
882 "gpio77",
883};
884static const char * const atest_usb20_groups[] = {
885 "gpio77",
886};
887static const char * const sec_mi2s_groups[] = {
888 "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
889};
890static const char * const qup15_groups[] = {
891 "gpio81", "gpio82", "gpio83", "gpio84",
892};
893static const char * const qup5_groups[] = {
894 "gpio85", "gpio86", "gpio87", "gpio88",
895};
896static const char * const tsif1_clk_groups[] = {
897 "gpio89",
898};
899static const char * const qup4_groups[] = {
900 "gpio89", "gpio90", "gpio91", "gpio92",
901};
902static const char * const qspi_cs_groups[] = {
903 "gpio89", "gpio90",
904};
905static const char * const tgu_ch3_groups[] = {
906 "gpio89",
907};
908static const char * const phase_flag10_groups[] = {
909 "gpio89",
910};
911static const char * const tsif1_en_groups[] = {
912 "gpio90",
913};
914static const char * const mdp_vsync0_groups[] = {
915 "gpio90",
916};
917static const char * const mdp_vsync1_groups[] = {
918 "gpio90",
919};
920static const char * const mdp_vsync2_groups[] = {
921 "gpio90",
922};
923static const char * const mdp_vsync3_groups[] = {
924 "gpio90",
925};
926static const char * const tgu_ch0_groups[] = {
927 "gpio90",
928};
929static const char * const phase_flag0_groups[] = {
930 "gpio90",
931};
932static const char * const tsif1_data_groups[] = {
933 "gpio91",
934};
935static const char * const sdc4_cmd_groups[] = {
936 "gpio91",
937};
938static const char * const qspi0_groups[] = {
939 "gpio91",
940};
941static const char * const tgu_ch1_groups[] = {
942 "gpio91",
943};
944static const char * const tsif2_error_groups[] = {
945 "gpio92",
946};
947static const char * const sdc43_groups[] = {
948 "gpio92",
949};
950static const char * const qspi1_groups[] = {
951 "gpio92",
952};
953static const char * const vfr_1_groups[] = {
954 "gpio92",
955};
956static const char * const tgu_ch2_groups[] = {
957 "gpio92",
958};
959static const char * const tsif2_clk_groups[] = {
960 "gpio93",
961};
962static const char * const sdc4_clk_groups[] = {
963 "gpio93",
964};
965static const char * const qup7_groups[] = {
966 "gpio93", "gpio94", "gpio95", "gpio96",
967};
968static const char * const qspi2_groups[] = {
969 "gpio93",
970};
971static const char * const tsif2_en_groups[] = {
972 "gpio94",
973};
974static const char * const sdc42_groups[] = {
975 "gpio94",
976};
977static const char * const qspi3_groups[] = {
978 "gpio94",
979};
980static const char * const tsif2_data_groups[] = {
981 "gpio95",
982};
983static const char * const sdc41_groups[] = {
984 "gpio95",
985};
986static const char * const qspi_clk_groups[] = {
987 "gpio95",
988};
989static const char * const tsif2_sync_groups[] = {
990 "gpio96",
991};
992static const char * const sdc40_groups[] = {
993 "gpio96",
994};
995static const char * const phase_flag3_groups[] = {
996 "gpio96",
997};
998static const char * const ldo_en_groups[] = {
999 "gpio97",
1000};
1001static const char * const ldo_update_groups[] = {
1002 "gpio98",
1003};
1004static const char * const phase_flag14_groups[] = {
1005 "gpio99",
1006};
1007static const char * const phase_flag15_groups[] = {
1008 "gpio100",
1009};
1010static const char * const pci_e1_groups[] = {
1011 "gpio102", "gpio103",
1012};
1013static const char * const prng_rosc_groups[] = {
1014 "gpio102",
1015};
1016static const char * const phase_flag5_groups[] = {
1017 "gpio103",
1018};
1019static const char * const uim2_data_groups[] = {
1020 "gpio105",
1021};
1022static const char * const qup13_groups[] = {
1023 "gpio105", "gpio106", "gpio107", "gpio108",
1024};
1025static const char * const uim2_clk_groups[] = {
1026 "gpio106",
1027};
1028static const char * const uim2_reset_groups[] = {
1029 "gpio107",
1030};
1031static const char * const uim2_present_groups[] = {
1032 "gpio108",
1033};
1034static const char * const uim1_data_groups[] = {
1035 "gpio109",
1036};
1037static const char * const uim1_clk_groups[] = {
1038 "gpio110",
1039};
1040static const char * const uim1_reset_groups[] = {
1041 "gpio111",
1042};
1043static const char * const uim1_present_groups[] = {
1044 "gpio112",
1045};
1046static const char * const uim_batt_groups[] = {
1047 "gpio113",
1048};
1049static const char * const edp_hot_groups[] = {
1050 "gpio113",
1051};
1052static const char * const nav_pps_groups[] = {
1053 "gpio114", "gpio114", "gpio115", "gpio115", "gpio128", "gpio128",
1054 "gpio129", "gpio129", "gpio143", "gpio143",
1055};
1056static const char * const atest_char_groups[] = {
1057 "gpio117",
1058};
1059static const char * const adsp_ext_groups[] = {
1060 "gpio118",
1061};
1062static const char * const atest_char3_groups[] = {
1063 "gpio118",
1064};
1065static const char * const atest_char2_groups[] = {
1066 "gpio119",
1067};
1068static const char * const atest_char1_groups[] = {
1069 "gpio120",
1070};
1071static const char * const atest_char0_groups[] = {
1072 "gpio121",
1073};
1074static const char * const qlink_request_groups[] = {
1075 "gpio130",
1076};
1077static const char * const qlink_enable_groups[] = {
1078 "gpio131",
1079};
1080static const char * const pa_indicator_groups[] = {
1081 "gpio135",
1082};
1083static const char * const phase_flag26_groups[] = {
1084 "gpio137",
1085};
1086static const char * const phase_flag27_groups[] = {
1087 "gpio138",
1088};
1089static const char * const phase_flag28_groups[] = {
1090 "gpio139",
1091};
1092static const char * const phase_flag6_groups[] = {
1093 "gpio140",
1094};
1095static const char * const phase_flag29_groups[] = {
1096 "gpio141",
1097};
1098static const char * const phase_flag30_groups[] = {
1099 "gpio142",
1100};
1101static const char * const phase_flag31_groups[] = {
1102 "gpio143",
1103};
1104static const char * const mss_lte_groups[] = {
1105 "gpio144", "gpio145",
1106};
1107static const char * const qup0_groups[] = {
1108 "gpio0", "gpio1", "gpio2", "gpio3",
1109};
1110static const char * const gpio_groups[] = {
1111 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
1112 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
1113 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
1114 "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
1115 "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
1116 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
1117 "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
1118 "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
1119 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
1120 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
1121 "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
1122 "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
1123 "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
1124 "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
1125 "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
1126 "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
1127 "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
1128 "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
1129 "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
1130 "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
1131 "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
1132 "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
1133 "gpio147", "gpio148", "gpio149",
1134};
1135static const char * const qup9_groups[] = {
1136 "gpio4", "gpio5", "gpio6", "gpio7",
1137};
1138static const char * const qdss_cti_groups[] = {
1139 "gpio4", "gpio5", "gpio51", "gpio52", "gpio62", "gpio63", "gpio90",
1140 "gpio91",
1141};
1142static const char * const ddr_pxi0_groups[] = {
1143 "gpio6", "gpio7",
1144};
1145static const char * const ddr_bist_groups[] = {
1146 "gpio7", "gpio8", "gpio9", "gpio10",
1147};
1148static const char * const atest_tsens2_groups[] = {
1149 "gpio7",
1150};
1151static const char * const vsense_trigger_groups[] = {
1152 "gpio7",
1153};
1154static const char * const atest_usb1_groups[] = {
1155 "gpio7",
1156};
1157static const char * const qup_l4_groups[] = {
1158 "gpio8", "gpio35", "gpio105", "gpio123",
1159};
1160static const char * const wlan1_adc1_groups[] = {
1161 "gpio8",
1162};
1163static const char * const atest_usb13_groups[] = {
1164 "gpio8",
1165};
1166static const char * const ddr_pxi1_groups[] = {
1167 "gpio8", "gpio9",
1168};
1169static const char * const qup_l5_groups[] = {
1170 "gpio9", "gpio36", "gpio106", "gpio124",
1171};
1172static const char * const wlan1_adc0_groups[] = {
1173 "gpio9",
1174};
1175static const char * const atest_usb12_groups[] = {
1176 "gpio9",
1177};
1178static const char * const mdp_vsync_groups[] = {
1179 "gpio10", "gpio11", "gpio12", "gpio97", "gpio98",
1180};
1181static const char * const qup_l6_groups[] = {
1182 "gpio10", "gpio37", "gpio107", "gpio125",
1183};
1184static const char * const wlan2_adc1_groups[] = {
1185 "gpio10",
1186};
1187static const char * const atest_usb11_groups[] = {
1188 "gpio10",
1189};
1190static const char * const ddr_pxi2_groups[] = {
1191 "gpio10", "gpio11",
1192};
1193static const char * const edp_lcd_groups[] = {
1194 "gpio11",
1195};
1196static const char * const dbg_out_groups[] = {
1197 "gpio11",
1198};
1199static const char * const wlan2_adc0_groups[] = {
1200 "gpio11",
1201};
1202static const char * const atest_usb10_groups[] = {
1203 "gpio11",
1204};
1205static const char * const m_voc_groups[] = {
1206 "gpio12",
1207};
1208static const char * const tsif1_sync_groups[] = {
1209 "gpio12",
1210};
1211
1212static const struct msm_function sdm845_functions[] = {
1213 FUNCTION(ddr_pxi3),
1214 FUNCTION(cam_mclk),
1215 FUNCTION(pll_bypassnl),
1216 FUNCTION(qdss_gpio0),
1217 FUNCTION(pll_reset),
1218 FUNCTION(qdss_gpio1),
1219 FUNCTION(qdss_gpio2),
1220 FUNCTION(qdss_gpio3),
1221 FUNCTION(cci_i2c),
1222 FUNCTION(qup1),
1223 FUNCTION(qdss_gpio4),
1224 FUNCTION(qdss_gpio5),
1225 FUNCTION(qdss_gpio6),
1226 FUNCTION(qdss_gpio7),
1227 FUNCTION(cci_timer0),
1228 FUNCTION(gcc_gp2),
1229 FUNCTION(qdss_gpio8),
1230 FUNCTION(cci_timer1),
1231 FUNCTION(gcc_gp3),
1232 FUNCTION(qdss_gpio),
1233 FUNCTION(cci_timer2),
1234 FUNCTION(qdss_gpio9),
1235 FUNCTION(cci_timer3),
1236 FUNCTION(cci_async),
1237 FUNCTION(qdss_gpio10),
1238 FUNCTION(cci_timer4),
1239 FUNCTION(qdss_gpio11),
1240 FUNCTION(qdss_gpio12),
1241 FUNCTION(qup2),
1242 FUNCTION(qdss_gpio13),
1243 FUNCTION(qdss_gpio14),
1244 FUNCTION(phase_flag1),
1245 FUNCTION(qdss_gpio15),
1246 FUNCTION(phase_flag2),
1247 FUNCTION(qup11),
1248 FUNCTION(qup14),
1249 FUNCTION(pci_e0),
1250 FUNCTION(jitter_bist),
1251 FUNCTION(pll_bist),
1252 FUNCTION(atest_tsens),
1253 FUNCTION(agera_pll),
1254 FUNCTION(usb_phy),
1255 FUNCTION(lpass_slimbus),
1256 FUNCTION(sd_write),
1257 FUNCTION(tsif1_error),
1258 FUNCTION(qup3),
1259 FUNCTION(qup6),
1260 FUNCTION(qup12),
1261 FUNCTION(phase_flag16),
1262 FUNCTION(qup10),
1263 FUNCTION(phase_flag11),
1264 FUNCTION(phase_flag12),
1265 FUNCTION(phase_flag13),
1266 FUNCTION(phase_flag17),
1267 FUNCTION(qua_mi2s),
1268 FUNCTION(gcc_gp1),
1269 FUNCTION(phase_flag18),
1270 FUNCTION(phase_flag19),
1271 FUNCTION(phase_flag20),
1272 FUNCTION(cri_trng0),
1273 FUNCTION(phase_flag21),
1274 FUNCTION(cri_trng1),
1275 FUNCTION(phase_flag22),
1276 FUNCTION(cri_trng),
1277 FUNCTION(phase_flag23),
1278 FUNCTION(phase_flag24),
1279 FUNCTION(pri_mi2s),
1280 FUNCTION(sp_cmu),
1281 FUNCTION(phase_flag25),
1282 FUNCTION(qup8),
1283 FUNCTION(pri_mi2s_ws),
1284 FUNCTION(spkr_i2s),
1285 FUNCTION(audio_ref),
1286 FUNCTION(tsense_pwm1),
1287 FUNCTION(tsense_pwm2),
1288 FUNCTION(btfm_slimbus),
1289 FUNCTION(atest_usb2),
1290 FUNCTION(ter_mi2s),
1291 FUNCTION(phase_flag7),
1292 FUNCTION(atest_usb23),
1293 FUNCTION(phase_flag8),
1294 FUNCTION(atest_usb22),
1295 FUNCTION(phase_flag9),
1296 FUNCTION(atest_usb21),
1297 FUNCTION(phase_flag4),
1298 FUNCTION(atest_usb20),
1299 FUNCTION(sec_mi2s),
1300 FUNCTION(qup15),
1301 FUNCTION(qup5),
1302 FUNCTION(tsif1_clk),
1303 FUNCTION(qup4),
1304 FUNCTION(qspi_cs),
1305 FUNCTION(tgu_ch3),
1306 FUNCTION(phase_flag10),
1307 FUNCTION(tsif1_en),
1308 FUNCTION(mdp_vsync0),
1309 FUNCTION(mdp_vsync1),
1310 FUNCTION(mdp_vsync2),
1311 FUNCTION(mdp_vsync3),
1312 FUNCTION(tgu_ch0),
1313 FUNCTION(phase_flag0),
1314 FUNCTION(tsif1_data),
1315 FUNCTION(sdc4_cmd),
1316 FUNCTION(qspi0),
1317 FUNCTION(tgu_ch1),
1318 FUNCTION(tsif2_error),
1319 FUNCTION(sdc43),
1320 FUNCTION(qspi1),
1321 FUNCTION(vfr_1),
1322 FUNCTION(tgu_ch2),
1323 FUNCTION(tsif2_clk),
1324 FUNCTION(sdc4_clk),
1325 FUNCTION(qup7),
1326 FUNCTION(qspi2),
1327 FUNCTION(tsif2_en),
1328 FUNCTION(sdc42),
1329 FUNCTION(qspi3),
1330 FUNCTION(tsif2_data),
1331 FUNCTION(sdc41),
1332 FUNCTION(qspi_clk),
1333 FUNCTION(tsif2_sync),
1334 FUNCTION(sdc40),
1335 FUNCTION(phase_flag3),
1336 FUNCTION(ldo_en),
1337 FUNCTION(ldo_update),
1338 FUNCTION(phase_flag14),
1339 FUNCTION(phase_flag15),
1340 FUNCTION(pci_e1),
1341 FUNCTION(prng_rosc),
1342 FUNCTION(phase_flag5),
1343 FUNCTION(uim2_data),
1344 FUNCTION(qup13),
1345 FUNCTION(uim2_clk),
1346 FUNCTION(uim2_reset),
1347 FUNCTION(uim2_present),
1348 FUNCTION(uim1_data),
1349 FUNCTION(uim1_clk),
1350 FUNCTION(uim1_reset),
1351 FUNCTION(uim1_present),
1352 FUNCTION(uim_batt),
1353 FUNCTION(edp_hot),
1354 FUNCTION(nav_pps),
1355 FUNCTION(atest_char),
1356 FUNCTION(adsp_ext),
1357 FUNCTION(atest_char3),
1358 FUNCTION(atest_char2),
1359 FUNCTION(atest_char1),
1360 FUNCTION(atest_char0),
1361 FUNCTION(qlink_request),
1362 FUNCTION(qlink_enable),
1363 FUNCTION(pa_indicator),
1364 FUNCTION(phase_flag26),
1365 FUNCTION(phase_flag27),
1366 FUNCTION(phase_flag28),
1367 FUNCTION(phase_flag6),
1368 FUNCTION(phase_flag29),
1369 FUNCTION(phase_flag30),
1370 FUNCTION(phase_flag31),
1371 FUNCTION(mss_lte),
1372 FUNCTION(qup0),
1373 FUNCTION(gpio),
1374 FUNCTION(qup9),
1375 FUNCTION(qdss_cti),
1376 FUNCTION(ddr_pxi0),
1377 FUNCTION(ddr_bist),
1378 FUNCTION(atest_tsens2),
1379 FUNCTION(vsense_trigger),
1380 FUNCTION(atest_usb1),
1381 FUNCTION(qup_l4),
1382 FUNCTION(wlan1_adc1),
1383 FUNCTION(atest_usb13),
1384 FUNCTION(ddr_pxi1),
1385 FUNCTION(qup_l5),
1386 FUNCTION(wlan1_adc0),
1387 FUNCTION(atest_usb12),
1388 FUNCTION(mdp_vsync),
1389 FUNCTION(qup_l6),
1390 FUNCTION(wlan2_adc1),
1391 FUNCTION(atest_usb11),
1392 FUNCTION(ddr_pxi2),
1393 FUNCTION(edp_lcd),
1394 FUNCTION(dbg_out),
1395 FUNCTION(wlan2_adc0),
1396 FUNCTION(atest_usb10),
1397 FUNCTION(m_voc),
1398 FUNCTION(tsif1_sync),
1399};
1400
1401/* Every pin is maintained as a single group, and missing or non-existing pin
1402 * would be maintained as dummy group to synchronize pin group index with
1403 * pin descriptor registered with pinctrl core.
1404 * Clients would not be able to request these dummy pin groups.
1405 */
1406static const struct msm_pingroup sdm845_groups[] = {
1407 [0] = PINGROUP(0, EAST, qup0, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1408 [1] = PINGROUP(1, EAST, qup0, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1409 [2] = PINGROUP(2, EAST, qup0, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1410 [3] = PINGROUP(3, EAST, qup0, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1411 [4] = PINGROUP(4, NORTH, qup9, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
1412 NA),
1413 [5] = PINGROUP(5, NORTH, qup9, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
1414 NA),
1415 [6] = PINGROUP(6, NORTH, qup9, NA, ddr_pxi0, NA, NA, NA, NA, NA, NA,
1416 NA),
1417 [7] = PINGROUP(7, NORTH, qup9, ddr_bist, NA, atest_tsens2,
1418 vsense_trigger, atest_usb1, ddr_pxi0, NA, NA, NA),
1419 [8] = PINGROUP(8, EAST, qup_l4, NA, ddr_bist, NA, NA, wlan1_adc1,
1420 atest_usb13, ddr_pxi1, NA, NA),
1421 [9] = PINGROUP(9, EAST, qup_l5, ddr_bist, NA, wlan1_adc0, atest_usb12,
1422 ddr_pxi1, NA, NA, NA, NA),
1423 [10] = PINGROUP(10, EAST, mdp_vsync, qup_l6, ddr_bist, wlan2_adc1,
1424 atest_usb11, ddr_pxi2, NA, NA, NA, NA),
1425 [11] = PINGROUP(11, EAST, mdp_vsync, edp_lcd, dbg_out, wlan2_adc0,
1426 atest_usb10, ddr_pxi2, NA, NA, NA, NA),
1427 [12] = PINGROUP(12, SOUTH, mdp_vsync, m_voc, tsif1_sync, ddr_pxi3, NA,
1428 NA, NA, NA, NA, NA),
1429 [13] = PINGROUP(13, SOUTH, cam_mclk, pll_bypassnl, qdss_gpio0,
1430 ddr_pxi3, NA, NA, NA, NA, NA, NA),
1431 [14] = PINGROUP(14, SOUTH, cam_mclk, pll_reset, qdss_gpio1, NA, NA, NA,
1432 NA, NA, NA, NA),
1433 [15] = PINGROUP(15, SOUTH, cam_mclk, qdss_gpio2, NA, NA, NA, NA, NA,
1434 NA, NA, NA),
1435 [16] = PINGROUP(16, SOUTH, cam_mclk, qdss_gpio3, NA, NA, NA, NA, NA,
1436 NA, NA, NA),
1437 [17] = PINGROUP(17, SOUTH, cci_i2c, qup1, qdss_gpio4, NA, NA, NA, NA,
1438 NA, NA, NA),
1439 [18] = PINGROUP(18, SOUTH, cci_i2c, qup1, NA, qdss_gpio5, NA, NA, NA,
1440 NA, NA, NA),
1441 [19] = PINGROUP(19, SOUTH, cci_i2c, qup1, NA, qdss_gpio6, NA, NA, NA,
1442 NA, NA, NA),
1443 [20] = PINGROUP(20, SOUTH, cci_i2c, qup1, NA, qdss_gpio7, NA, NA, NA,
1444 NA, NA, NA),
1445 [21] = PINGROUP(21, SOUTH, cci_timer0, gcc_gp2, qdss_gpio8, NA, NA, NA,
1446 NA, NA, NA, NA),
1447 [22] = PINGROUP(22, SOUTH, cci_timer1, gcc_gp3, qdss_gpio, NA, NA, NA,
1448 NA, NA, NA, NA),
1449 [23] = PINGROUP(23, SOUTH, cci_timer2, qdss_gpio9, NA, NA, NA, NA, NA,
1450 NA, NA, NA),
1451 [24] = PINGROUP(24, SOUTH, cci_timer3, cci_async, qdss_gpio10, NA, NA,
1452 NA, NA, NA, NA, NA),
1453 [25] = PINGROUP(25, SOUTH, cci_timer4, cci_async, qdss_gpio11, NA, NA,
1454 NA, NA, NA, NA, NA),
1455 [26] = PINGROUP(26, SOUTH, cci_async, qdss_gpio12, NA, NA, NA, NA, NA,
1456 NA, NA, NA),
1457 [27] = PINGROUP(27, EAST, qup2, qdss_gpio13, NA, NA, NA, NA, NA, NA,
1458 NA, NA),
1459 [28] = PINGROUP(28, EAST, qup2, qdss_gpio14, NA, NA, NA, NA, NA, NA,
1460 NA, NA),
1461 [29] = PINGROUP(29, EAST, qup2, NA, phase_flag1, qdss_gpio15, NA, NA,
1462 NA, NA, NA, NA),
1463 [30] = PINGROUP(30, EAST, qup2, phase_flag2, qdss_gpio, NA, NA, NA, NA,
1464 NA, NA, NA),
1465 [31] = PINGROUP(31, NORTH, qup11, qup14, NA, NA, NA, NA, NA, NA, NA,
1466 NA),
1467 [32] = PINGROUP(32, NORTH, qup11, qup14, NA, NA, NA, NA, NA, NA, NA,
1468 NA),
1469 [33] = PINGROUP(33, NORTH, qup11, qup14, NA, NA, NA, NA, NA, NA, NA,
1470 NA),
1471 [34] = PINGROUP(34, NORTH, qup11, qup14, NA, NA, NA, NA, NA, NA, NA,
1472 NA),
1473 [35] = PINGROUP(35, SOUTH, pci_e0, qup_l4, jitter_bist, NA, NA, NA, NA,
1474 NA, NA, NA),
1475 [36] = PINGROUP(36, SOUTH, pci_e0, qup_l5, pll_bist, NA, atest_tsens,
1476 NA, NA, NA, NA, NA),
1477 [37] = PINGROUP(37, SOUTH, qup_l6, agera_pll, NA, NA, NA, NA, NA, NA,
1478 NA, NA),
1479 [38] = PINGROUP(38, NORTH, usb_phy, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1480 [39] = PINGROUP(39, EAST, lpass_slimbus, NA, NA, NA, NA, NA, NA, NA,
1481 NA, NA),
1482 [40] = PINGROUP(40, SOUTH, sd_write, tsif1_error, NA, NA, NA, NA, NA,
1483 NA, NA, NA),
1484 [41] = PINGROUP(41, EAST, qup3, NA, qdss_gpio6, NA, NA, NA, NA, NA, NA,
1485 NA),
1486 [42] = PINGROUP(42, EAST, qup3, NA, qdss_gpio7, NA, NA, NA, NA, NA, NA,
1487 NA),
1488 [43] = PINGROUP(43, EAST, qup3, NA, qdss_gpio14, NA, NA, NA, NA, NA,
1489 NA, NA),
1490 [44] = PINGROUP(44, EAST, qup3, NA, qdss_gpio15, NA, NA, NA, NA, NA,
1491 NA, NA),
1492 [45] = PINGROUP(45, EAST, qup6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1493 [46] = PINGROUP(46, EAST, qup6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1494 [47] = PINGROUP(47, EAST, qup6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1495 [48] = PINGROUP(48, EAST, qup6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1496 [49] = PINGROUP(49, NORTH, qup12, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1497 [50] = PINGROUP(50, NORTH, qup12, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1498 [51] = PINGROUP(51, NORTH, qup12, qdss_cti, NA, NA, NA, NA, NA, NA, NA,
1499 NA),
1500 [52] = PINGROUP(52, NORTH, qup12, phase_flag16, qdss_cti, NA, NA, NA,
1501 NA, NA, NA, NA),
1502 [53] = PINGROUP(53, NORTH, qup10, phase_flag11, NA, NA, NA, NA, NA, NA,
1503 NA, NA),
1504 [54] = PINGROUP(54, NORTH, qup10, NA, phase_flag12, NA, NA, NA, NA, NA,
1505 NA, NA),
1506 [55] = PINGROUP(55, NORTH, qup10, phase_flag13, NA, NA, NA, NA, NA, NA,
1507 NA, NA),
1508 [56] = PINGROUP(56, NORTH, qup10, phase_flag17, NA, NA, NA, NA, NA, NA,
1509 NA, NA),
1510 [57] = PINGROUP(57, NORTH, qua_mi2s, gcc_gp1, phase_flag18, NA, NA, NA,
1511 NA, NA, NA, NA),
1512 [58] = PINGROUP(58, NORTH, qua_mi2s, gcc_gp2, phase_flag19, NA, NA, NA,
1513 NA, NA, NA, NA),
1514 [59] = PINGROUP(59, NORTH, qua_mi2s, gcc_gp3, phase_flag20, NA, NA, NA,
1515 NA, NA, NA, NA),
1516 [60] = PINGROUP(60, NORTH, qua_mi2s, cri_trng0, phase_flag21, NA, NA,
1517 NA, NA, NA, NA, NA),
1518 [61] = PINGROUP(61, NORTH, qua_mi2s, cri_trng1, phase_flag22, NA, NA,
1519 NA, NA, NA, NA, NA),
1520 [62] = PINGROUP(62, NORTH, qua_mi2s, cri_trng, phase_flag23, qdss_cti,
1521 NA, NA, NA, NA, NA, NA),
1522 [63] = PINGROUP(63, NORTH, qua_mi2s, NA, phase_flag24, qdss_cti, NA,
1523 NA, NA, NA, NA, NA),
1524 [64] = PINGROUP(64, NORTH, pri_mi2s, sp_cmu, phase_flag25, NA, NA, NA,
1525 NA, NA, NA, NA),
1526 [65] = PINGROUP(65, NORTH, pri_mi2s, qup8, NA, NA, NA, NA, NA, NA, NA,
1527 NA),
1528 [66] = PINGROUP(66, NORTH, pri_mi2s_ws, qup8, NA, NA, NA, NA, NA, NA,
1529 NA, NA),
1530 [67] = PINGROUP(67, NORTH, pri_mi2s, qup8, NA, NA, NA, NA, NA, NA, NA,
1531 NA),
1532 [68] = PINGROUP(68, NORTH, pri_mi2s, qup8, NA, NA, NA, NA, NA, NA, NA,
1533 NA),
1534 [69] = PINGROUP(69, EAST, spkr_i2s, audio_ref, NA, NA, NA, NA, NA, NA,
1535 NA, NA),
1536 [70] = PINGROUP(70, EAST, lpass_slimbus, spkr_i2s, NA, NA, NA, NA, NA,
1537 NA, NA, NA),
1538 [71] = PINGROUP(71, EAST, lpass_slimbus, spkr_i2s, tsense_pwm1,
1539 tsense_pwm2, NA, NA, NA, NA, NA, NA),
1540 [72] = PINGROUP(72, EAST, lpass_slimbus, spkr_i2s, NA, NA, NA, NA, NA,
1541 NA, NA, NA),
1542 [73] = PINGROUP(73, EAST, btfm_slimbus, atest_usb2, NA, NA, NA, NA, NA,
1543 NA, NA, NA),
1544 [74] = PINGROUP(74, EAST, btfm_slimbus, ter_mi2s, phase_flag7,
1545 atest_usb23, NA, NA, NA, NA, NA, NA),
1546 [75] = PINGROUP(75, EAST, ter_mi2s, phase_flag8, qdss_gpio8,
1547 atest_usb22, NA, NA, NA, NA, NA, NA),
1548 [76] = PINGROUP(76, EAST, ter_mi2s, phase_flag9, qdss_gpio9,
1549 atest_usb21, NA, NA, NA, NA, NA, NA),
1550 [77] = PINGROUP(77, EAST, ter_mi2s, phase_flag4, qdss_gpio10,
1551 atest_usb20, NA, NA, NA, NA, NA, NA),
1552 [78] = PINGROUP(78, EAST, ter_mi2s, gcc_gp1, NA, NA, NA, NA, NA, NA,
1553 NA, NA),
1554 [79] = PINGROUP(79, NORTH, sec_mi2s, NA, NA, qdss_gpio11, NA, NA, NA,
1555 NA, NA, NA),
1556 [80] = PINGROUP(80, NORTH, sec_mi2s, NA, qdss_gpio12, NA, NA, NA, NA,
1557 NA, NA, NA),
1558 [81] = PINGROUP(81, NORTH, sec_mi2s, qup15, NA, NA, NA, NA, NA, NA, NA,
1559 NA),
1560 [82] = PINGROUP(82, NORTH, sec_mi2s, qup15, NA, NA, NA, NA, NA, NA, NA,
1561 NA),
1562 [83] = PINGROUP(83, NORTH, sec_mi2s, qup15, NA, NA, NA, NA, NA, NA, NA,
1563 NA),
1564 [84] = PINGROUP(84, NORTH, qup15, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1565 [85] = PINGROUP(85, EAST, qup5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1566 [86] = PINGROUP(86, EAST, qup5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1567 [87] = PINGROUP(87, EAST, qup5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1568 [88] = PINGROUP(88, EAST, qup5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1569 [89] = PINGROUP(89, SOUTH, tsif1_clk, qup4, qspi_cs, tgu_ch3,
1570 phase_flag10, NA, NA, NA, NA, NA),
1571 [90] = PINGROUP(90, SOUTH, tsif1_en, mdp_vsync0, qup4, qspi_cs,
1572 mdp_vsync1, mdp_vsync2, mdp_vsync3, tgu_ch0,
1573 phase_flag0, qdss_cti),
1574 [91] = PINGROUP(91, SOUTH, tsif1_data, sdc4_cmd, qup4, qspi0, tgu_ch1,
1575 NA, qdss_cti, NA, NA, NA),
1576 [92] = PINGROUP(92, SOUTH, tsif2_error, sdc43, qup4, qspi1, vfr_1,
1577 tgu_ch2, NA, NA, NA, NA),
1578 [93] = PINGROUP(93, SOUTH, tsif2_clk, sdc4_clk, qup7, qspi2, NA,
1579 qdss_gpio13, NA, NA, NA, NA),
1580 [94] = PINGROUP(94, SOUTH, tsif2_en, sdc42, qup7, qspi3, NA, NA, NA,
1581 NA, NA, NA),
1582 [95] = PINGROUP(95, SOUTH, tsif2_data, sdc41, qup7, qspi_clk, NA, NA,
1583 NA, NA, NA, NA),
1584 [96] = PINGROUP(96, SOUTH, tsif2_sync, sdc40, qup7, phase_flag3, NA,
1585 NA, NA, NA, NA, NA),
1586 [97] = PINGROUP(97, NORTH, NA, NA, mdp_vsync, ldo_en, NA, NA, NA, NA,
1587 NA, NA),
1588 [98] = PINGROUP(98, NORTH, NA, mdp_vsync, ldo_update, NA, NA, NA, NA,
1589 NA, NA, NA),
1590 [99] = PINGROUP(99, NORTH, phase_flag14, NA, NA, NA, NA, NA, NA, NA,
1591 NA, NA),
1592 [100] = PINGROUP(100, NORTH, phase_flag15, NA, NA, NA, NA, NA, NA, NA,
1593 NA, NA),
1594 [101] = PINGROUP(101, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1595 [102] = PINGROUP(102, NORTH, pci_e1, prng_rosc, NA, NA, NA, NA, NA, NA,
1596 NA, NA),
1597 [103] = PINGROUP(103, NORTH, pci_e1, phase_flag5, NA, NA, NA, NA, NA,
1598 NA, NA, NA),
1599 [104] = PINGROUP(104, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1600 [105] = PINGROUP(105, NORTH, uim2_data, qup13, qup_l4, NA, NA, NA, NA,
1601 NA, NA, NA),
1602 [106] = PINGROUP(106, NORTH, uim2_clk, qup13, qup_l5, NA, NA, NA, NA,
1603 NA, NA, NA),
1604 [107] = PINGROUP(107, NORTH, uim2_reset, qup13, qup_l6, NA, NA, NA, NA,
1605 NA, NA, NA),
1606 [108] = PINGROUP(108, NORTH, uim2_present, qup13, NA, NA, NA, NA, NA,
1607 NA, NA, NA),
1608 [109] = PINGROUP(109, NORTH, uim1_data, NA, NA, NA, NA, NA, NA, NA, NA,
1609 NA),
1610 [110] = PINGROUP(110, NORTH, uim1_clk, NA, NA, NA, NA, NA, NA, NA, NA,
1611 NA),
1612 [111] = PINGROUP(111, NORTH, uim1_reset, NA, NA, NA, NA, NA, NA, NA,
1613 NA, NA),
1614 [112] = PINGROUP(112, NORTH, uim1_present, NA, NA, NA, NA, NA, NA, NA,
1615 NA, NA),
1616 [113] = PINGROUP(113, NORTH, uim_batt, edp_hot, NA, NA, NA, NA, NA, NA,
1617 NA, NA),
1618 [114] = PINGROUP(114, NORTH, NA, nav_pps, nav_pps, NA, NA, NA, NA, NA,
1619 NA, NA),
1620 [115] = PINGROUP(115, NORTH, NA, nav_pps, nav_pps, NA, NA, NA, NA, NA,
1621 NA, NA),
1622 [116] = PINGROUP(116, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1623 [117] = PINGROUP(117, NORTH, NA, qdss_gpio0, atest_char, NA, NA, NA,
1624 NA, NA, NA, NA),
1625 [118] = PINGROUP(118, NORTH, adsp_ext, NA, qdss_gpio1, atest_char3, NA,
1626 NA, NA, NA, NA, NA),
1627 [119] = PINGROUP(119, NORTH, NA, qdss_gpio2, atest_char2, NA, NA, NA,
1628 NA, NA, NA, NA),
1629 [120] = PINGROUP(120, NORTH, NA, qdss_gpio3, atest_char1, NA, NA, NA,
1630 NA, NA, NA, NA),
1631 [121] = PINGROUP(121, NORTH, NA, qdss_gpio4, atest_char0, NA, NA, NA,
1632 NA, NA, NA, NA),
1633 [122] = PINGROUP(122, EAST, NA, qdss_gpio5, NA, NA, NA, NA, NA, NA, NA,
1634 NA),
1635 [123] = PINGROUP(123, EAST, qup_l4, NA, qdss_gpio, NA, NA, NA, NA, NA,
1636 NA, NA),
1637 [124] = PINGROUP(124, EAST, qup_l5, NA, qdss_gpio, NA, NA, NA, NA, NA,
1638 NA, NA),
1639 [125] = PINGROUP(125, EAST, qup_l6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1640 [126] = PINGROUP(126, EAST, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1641 [127] = PINGROUP(127, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1642 [128] = PINGROUP(128, NORTH, nav_pps, nav_pps, NA, NA, NA, NA, NA, NA,
1643 NA, NA),
1644 [129] = PINGROUP(129, NORTH, nav_pps, nav_pps, NA, NA, NA, NA, NA, NA,
1645 NA, NA),
1646 [130] = PINGROUP(130, NORTH, qlink_request, NA, NA, NA, NA, NA, NA, NA,
1647 NA, NA),
1648 [131] = PINGROUP(131, NORTH, qlink_enable, NA, NA, NA, NA, NA, NA, NA,
1649 NA, NA),
1650 [132] = PINGROUP(132, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1651 [133] = PINGROUP(133, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1652 [134] = PINGROUP(134, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1653 [135] = PINGROUP(135, NORTH, NA, pa_indicator, NA, NA, NA, NA, NA, NA,
1654 NA, NA),
1655 [136] = PINGROUP(136, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1656 [137] = PINGROUP(137, NORTH, NA, NA, phase_flag26, NA, NA, NA, NA, NA,
1657 NA, NA),
1658 [138] = PINGROUP(138, NORTH, NA, NA, phase_flag27, NA, NA, NA, NA, NA,
1659 NA, NA),
1660 [139] = PINGROUP(139, NORTH, NA, phase_flag28, NA, NA, NA, NA, NA, NA,
1661 NA, NA),
1662 [140] = PINGROUP(140, NORTH, NA, NA, phase_flag6, NA, NA, NA, NA, NA,
1663 NA, NA),
1664 [141] = PINGROUP(141, NORTH, NA, phase_flag29, NA, NA, NA, NA, NA, NA,
1665 NA, NA),
1666 [142] = PINGROUP(142, NORTH, NA, phase_flag30, NA, NA, NA, NA, NA, NA,
1667 NA, NA),
1668 [143] = PINGROUP(143, NORTH, NA, nav_pps, nav_pps, NA, phase_flag31,
1669 NA, NA, NA, NA, NA),
1670 [144] = PINGROUP(144, NORTH, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA,
1671 NA),
1672 [145] = PINGROUP(145, NORTH, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA,
1673 NA),
1674 [146] = PINGROUP(146, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1675 [147] = PINGROUP(147, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1676 [148] = PINGROUP(148, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1677 [149] = PINGROUP(149, NORTH, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1678 [150] = SDC_QDSD_PINGROUP(sdc2_clk, 0x99a000, 14, 6),
1679 [151] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x99a000, 11, 3),
1680 [152] = SDC_QDSD_PINGROUP(sdc2_data, 0x99a000, 9, 0),
1681 [153] = UFS_RESET(ufs_reset, 0x99f000),
1682};
1683
1684static const struct msm_dir_conn sdm845_dir_conn[] = {
1685 {1, 510},
1686 {3, 511},
1687 {5, 512},
1688 {10, 513},
1689 {11, 514},
1690 {20, 515},
1691 {22, 516},
1692 {24, 517},
1693 {26, 518},
1694 {30, 519},
Mahesh Sivasubramaniand416b172017-10-05 10:37:40 -06001695 {31, 632},
Kyle Yan6c2752f2017-09-27 16:29:45 -07001696 {32, 521},
1697 {34, 522},
1698 {36, 523},
1699 {37, 524},
1700 {38, 525},
1701 {39, 526},
1702 {40, 527},
Mahesh Sivasubramanian77c00822017-10-05 10:37:40 -06001703 {41, 630},
Kyle Yan6c2752f2017-09-27 16:29:45 -07001704 {43, 529},
1705 {44, 530},
1706 {46, 531},
1707 {48, 532},
Mahesh Sivasubramaniand416b172017-10-05 10:37:40 -06001708 {49, 633 },
Kyle Yan6c2752f2017-09-27 16:29:45 -07001709 {52, 534},
1710 {53, 535},
1711 {54, 536},
1712 {56, 537},
1713 {57, 538},
1714 {58, 539},
1715 {59, 540},
1716 {60, 541},
1717 {61, 542},
1718 {62, 543},
1719 {63, 544},
1720 {64, 545},
1721 {66, 546},
1722 {68, 547},
1723 {71, 548},
1724 {73, 549},
1725 {77, 550},
1726 {78, 551},
1727 {79, 552},
1728 {80, 553},
1729 {84, 554},
1730 {85, 555},
1731 {86, 556},
1732 {88, 557},
Mahesh Sivasubramaniand416b172017-10-05 10:37:40 -06001733 {89, 631},
Kyle Yan6c2752f2017-09-27 16:29:45 -07001734 {91, 559},
1735 {92, 560},
1736 {95, 561},
1737 {96, 562},
1738 {97, 563},
1739 {101, 564},
1740 {103, 565},
1741 {104, 566},
1742 {115, 570},
1743 {116, 571},
1744 {117, 572},
1745 {118, 573},
1746 {119, 609},
1747 {120, 610},
1748 {121, 611},
1749 {122, 612},
1750 {123, 613},
1751 {124, 614},
1752 {125, 615},
Archana Sathyakumar40d25502017-10-06 11:59:34 -06001753 {126, 616},
Kyle Yan6c2752f2017-09-27 16:29:45 -07001754 {127, 617},
1755 {128, 618},
1756 {129, 619},
1757 {130, 620},
1758 {132, 621},
1759 {133, 622},
1760 {145, 623},
Archana Sathyakumar40d25502017-10-06 11:59:34 -06001761 {0, 216},
1762 {0, 215},
1763 {0, 214},
1764 {0, 213},
1765 {0, 212},
1766 {0, 211},
1767 {0, 210},
1768 {0, 209},
Kyle Yan6c2752f2017-09-27 16:29:45 -07001769};
1770
1771static const struct msm_pinctrl_soc_data sdm845_pinctrl = {
1772 .pins = sdm845_pins,
1773 .npins = ARRAY_SIZE(sdm845_pins),
1774 .functions = sdm845_functions,
1775 .nfunctions = ARRAY_SIZE(sdm845_functions),
1776 .groups = sdm845_groups,
1777 .ngroups = ARRAY_SIZE(sdm845_groups),
1778 .ngpios = 150,
1779 .dir_conn = sdm845_dir_conn,
1780 .n_dir_conns = ARRAY_SIZE(sdm845_dir_conn),
Archana Sathyakumar40d25502017-10-06 11:59:34 -06001781 .dir_conn_irq_base = 216,
Kyle Yan6c2752f2017-09-27 16:29:45 -07001782};
1783
1784static int sdm845_pinctrl_probe(struct platform_device *pdev)
1785{
1786 return msm_pinctrl_probe(pdev, &sdm845_pinctrl);
1787}
1788
1789static const struct of_device_id sdm845_pinctrl_of_match[] = {
1790 { .compatible = "qcom,sdm845-pinctrl-v2", },
1791 { },
1792};
1793
1794static struct platform_driver sdm845_pinctrl_driver = {
1795 .driver = {
1796 .name = "sdm845-v2-pinctrl",
1797 .owner = THIS_MODULE,
1798 .of_match_table = sdm845_pinctrl_of_match,
1799 },
1800 .probe = sdm845_pinctrl_probe,
1801 .remove = msm_pinctrl_remove,
1802};
1803
1804static int __init sdm845_pinctrl_init(void)
1805{
1806 return platform_driver_register(&sdm845_pinctrl_driver);
1807}
1808arch_initcall(sdm845_pinctrl_init);
1809
1810static void __exit sdm845_pinctrl_exit(void)
1811{
1812 platform_driver_unregister(&sdm845_pinctrl_driver);
1813}
1814module_exit(sdm845_pinctrl_exit);
1815
1816MODULE_DESCRIPTION("QTI sdm845-v2 pinctrl driver");
1817MODULE_LICENSE("GPL v2");
1818MODULE_DEVICE_TABLE(of, sdm845_pinctrl_of_match);