1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
6 #include <linux/module.h>
8 #include <linux/platform_device.h>
9 #include <linux/pinctrl/pinctrl.h>
11 #include "pinctrl-msm.h"
13 static const char * const qcs404_tiles[] = {
25 #define FUNCTION(fname) \
26 [msm_mux_##fname] = { \
28 .groups = fname##_groups, \
29 .ngroups = ARRAY_SIZE(fname##_groups), \
32 #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
35 .pins = gpio##id##_pins, \
36 .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
38 msm_mux_gpio, /* gpio mode */ \
50 .ctl_reg = 0x1000 * id, \
51 .io_reg = 0x1000 * id + 0x4, \
52 .intr_cfg_reg = 0x1000 * id + 0x8, \
53 .intr_status_reg = 0x1000 * id + 0xc, \
54 .intr_target_reg = 0x1000 * id + 0x8, \
62 .intr_enable_bit = 0, \
63 .intr_status_bit = 0, \
64 .intr_target_bit = 5, \
65 .intr_target_kpss_val = 4, \
66 .intr_raw_status_bit = 4, \
67 .intr_polarity_bit = 1, \
68 .intr_detection_bit = 2, \
69 .intr_detection_width = 2, \
72 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
75 .pins = pg_name##_pins, \
76 .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
80 .intr_status_reg = 0, \
81 .intr_target_reg = 0, \
89 .intr_enable_bit = -1, \
90 .intr_status_bit = -1, \
91 .intr_target_bit = -1, \
92 .intr_raw_status_bit = -1, \
93 .intr_polarity_bit = -1, \
94 .intr_detection_bit = -1, \
95 .intr_detection_width = -1, \
98 #define UFS_RESET(pg_name, offset) \
101 .pins = pg_name##_pins, \
102 .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \
104 .io_reg = offset + 0x4, \
106 .intr_status_reg = 0, \
107 .intr_target_reg = 0, \
115 .intr_enable_bit = -1, \
116 .intr_status_bit = -1, \
117 .intr_target_bit = -1, \
118 .intr_raw_status_bit = -1, \
119 .intr_polarity_bit = -1, \
120 .intr_detection_bit = -1, \
121 .intr_detection_width = -1, \
123 static const struct pinctrl_pin_desc qcs404_pins[] = {
124 PINCTRL_PIN(0, "GPIO_0"),
125 PINCTRL_PIN(1, "GPIO_1"),
126 PINCTRL_PIN(2, "GPIO_2"),
127 PINCTRL_PIN(3, "GPIO_3"),
128 PINCTRL_PIN(4, "GPIO_4"),
129 PINCTRL_PIN(5, "GPIO_5"),
130 PINCTRL_PIN(6, "GPIO_6"),
131 PINCTRL_PIN(7, "GPIO_7"),
132 PINCTRL_PIN(8, "GPIO_8"),
133 PINCTRL_PIN(9, "GPIO_9"),
134 PINCTRL_PIN(10, "GPIO_10"),
135 PINCTRL_PIN(11, "GPIO_11"),
136 PINCTRL_PIN(12, "GPIO_12"),
137 PINCTRL_PIN(13, "GPIO_13"),
138 PINCTRL_PIN(14, "GPIO_14"),
139 PINCTRL_PIN(15, "GPIO_15"),
140 PINCTRL_PIN(16, "GPIO_16"),
141 PINCTRL_PIN(17, "GPIO_17"),
142 PINCTRL_PIN(18, "GPIO_18"),
143 PINCTRL_PIN(19, "GPIO_19"),
144 PINCTRL_PIN(20, "GPIO_20"),
145 PINCTRL_PIN(21, "GPIO_21"),
146 PINCTRL_PIN(22, "GPIO_22"),
147 PINCTRL_PIN(23, "GPIO_23"),
148 PINCTRL_PIN(24, "GPIO_24"),
149 PINCTRL_PIN(25, "GPIO_25"),
150 PINCTRL_PIN(26, "GPIO_26"),
151 PINCTRL_PIN(27, "GPIO_27"),
152 PINCTRL_PIN(28, "GPIO_28"),
153 PINCTRL_PIN(29, "GPIO_29"),
154 PINCTRL_PIN(30, "GPIO_30"),
155 PINCTRL_PIN(31, "GPIO_31"),
156 PINCTRL_PIN(32, "GPIO_32"),
157 PINCTRL_PIN(33, "GPIO_33"),
158 PINCTRL_PIN(34, "GPIO_34"),
159 PINCTRL_PIN(35, "GPIO_35"),
160 PINCTRL_PIN(36, "GPIO_36"),
161 PINCTRL_PIN(37, "GPIO_37"),
162 PINCTRL_PIN(38, "GPIO_38"),
163 PINCTRL_PIN(39, "GPIO_39"),
164 PINCTRL_PIN(40, "GPIO_40"),
165 PINCTRL_PIN(41, "GPIO_41"),
166 PINCTRL_PIN(42, "GPIO_42"),
167 PINCTRL_PIN(43, "GPIO_43"),
168 PINCTRL_PIN(44, "GPIO_44"),
169 PINCTRL_PIN(45, "GPIO_45"),
170 PINCTRL_PIN(46, "GPIO_46"),
171 PINCTRL_PIN(47, "GPIO_47"),
172 PINCTRL_PIN(48, "GPIO_48"),
173 PINCTRL_PIN(49, "GPIO_49"),
174 PINCTRL_PIN(50, "GPIO_50"),
175 PINCTRL_PIN(51, "GPIO_51"),
176 PINCTRL_PIN(52, "GPIO_52"),
177 PINCTRL_PIN(53, "GPIO_53"),
178 PINCTRL_PIN(54, "GPIO_54"),
179 PINCTRL_PIN(55, "GPIO_55"),
180 PINCTRL_PIN(56, "GPIO_56"),
181 PINCTRL_PIN(57, "GPIO_57"),
182 PINCTRL_PIN(58, "GPIO_58"),
183 PINCTRL_PIN(59, "GPIO_59"),
184 PINCTRL_PIN(60, "GPIO_60"),
185 PINCTRL_PIN(61, "GPIO_61"),
186 PINCTRL_PIN(62, "GPIO_62"),
187 PINCTRL_PIN(63, "GPIO_63"),
188 PINCTRL_PIN(64, "GPIO_64"),
189 PINCTRL_PIN(65, "GPIO_65"),
190 PINCTRL_PIN(66, "GPIO_66"),
191 PINCTRL_PIN(67, "GPIO_67"),
192 PINCTRL_PIN(68, "GPIO_68"),
193 PINCTRL_PIN(69, "GPIO_69"),
194 PINCTRL_PIN(70, "GPIO_70"),
195 PINCTRL_PIN(71, "GPIO_71"),
196 PINCTRL_PIN(72, "GPIO_72"),
197 PINCTRL_PIN(73, "GPIO_73"),
198 PINCTRL_PIN(74, "GPIO_74"),
199 PINCTRL_PIN(75, "GPIO_75"),
200 PINCTRL_PIN(76, "GPIO_76"),
201 PINCTRL_PIN(77, "GPIO_77"),
202 PINCTRL_PIN(78, "GPIO_78"),
203 PINCTRL_PIN(79, "GPIO_79"),
204 PINCTRL_PIN(80, "GPIO_80"),
205 PINCTRL_PIN(81, "GPIO_81"),
206 PINCTRL_PIN(82, "GPIO_82"),
207 PINCTRL_PIN(83, "GPIO_83"),
208 PINCTRL_PIN(84, "GPIO_84"),
209 PINCTRL_PIN(85, "GPIO_85"),
210 PINCTRL_PIN(86, "GPIO_86"),
211 PINCTRL_PIN(87, "GPIO_87"),
212 PINCTRL_PIN(88, "GPIO_88"),
213 PINCTRL_PIN(89, "GPIO_89"),
214 PINCTRL_PIN(90, "GPIO_90"),
215 PINCTRL_PIN(91, "GPIO_91"),
216 PINCTRL_PIN(92, "GPIO_92"),
217 PINCTRL_PIN(93, "GPIO_93"),
218 PINCTRL_PIN(94, "GPIO_94"),
219 PINCTRL_PIN(95, "GPIO_95"),
220 PINCTRL_PIN(96, "GPIO_96"),
221 PINCTRL_PIN(97, "GPIO_97"),
222 PINCTRL_PIN(98, "GPIO_98"),
223 PINCTRL_PIN(99, "GPIO_99"),
224 PINCTRL_PIN(100, "GPIO_100"),
225 PINCTRL_PIN(101, "GPIO_101"),
226 PINCTRL_PIN(102, "GPIO_102"),
227 PINCTRL_PIN(103, "GPIO_103"),
228 PINCTRL_PIN(104, "GPIO_104"),
229 PINCTRL_PIN(105, "GPIO_105"),
230 PINCTRL_PIN(106, "GPIO_106"),
231 PINCTRL_PIN(107, "GPIO_107"),
232 PINCTRL_PIN(108, "GPIO_108"),
233 PINCTRL_PIN(109, "GPIO_109"),
234 PINCTRL_PIN(110, "GPIO_110"),
235 PINCTRL_PIN(111, "GPIO_111"),
236 PINCTRL_PIN(112, "GPIO_112"),
237 PINCTRL_PIN(113, "GPIO_113"),
238 PINCTRL_PIN(114, "GPIO_114"),
239 PINCTRL_PIN(115, "GPIO_115"),
240 PINCTRL_PIN(116, "GPIO_116"),
241 PINCTRL_PIN(117, "GPIO_117"),
242 PINCTRL_PIN(118, "GPIO_118"),
243 PINCTRL_PIN(119, "GPIO_119"),
244 PINCTRL_PIN(120, "SDC1_RCLK"),
245 PINCTRL_PIN(121, "SDC1_CLK"),
246 PINCTRL_PIN(122, "SDC1_CMD"),
247 PINCTRL_PIN(123, "SDC1_DATA"),
248 PINCTRL_PIN(124, "SDC2_CLK"),
249 PINCTRL_PIN(125, "SDC2_CMD"),
250 PINCTRL_PIN(126, "SDC2_DATA"),
253 #define DECLARE_MSM_GPIO_PINS(pin) \
254 static const unsigned int gpio##pin##_pins[] = { pin }
255 DECLARE_MSM_GPIO_PINS(0);
256 DECLARE_MSM_GPIO_PINS(1);
257 DECLARE_MSM_GPIO_PINS(2);
258 DECLARE_MSM_GPIO_PINS(3);
259 DECLARE_MSM_GPIO_PINS(4);
260 DECLARE_MSM_GPIO_PINS(5);
261 DECLARE_MSM_GPIO_PINS(6);
262 DECLARE_MSM_GPIO_PINS(7);
263 DECLARE_MSM_GPIO_PINS(8);
264 DECLARE_MSM_GPIO_PINS(9);
265 DECLARE_MSM_GPIO_PINS(10);
266 DECLARE_MSM_GPIO_PINS(11);
267 DECLARE_MSM_GPIO_PINS(12);
268 DECLARE_MSM_GPIO_PINS(13);
269 DECLARE_MSM_GPIO_PINS(14);
270 DECLARE_MSM_GPIO_PINS(15);
271 DECLARE_MSM_GPIO_PINS(16);
272 DECLARE_MSM_GPIO_PINS(17);
273 DECLARE_MSM_GPIO_PINS(18);
274 DECLARE_MSM_GPIO_PINS(19);
275 DECLARE_MSM_GPIO_PINS(20);
276 DECLARE_MSM_GPIO_PINS(21);
277 DECLARE_MSM_GPIO_PINS(22);
278 DECLARE_MSM_GPIO_PINS(23);
279 DECLARE_MSM_GPIO_PINS(24);
280 DECLARE_MSM_GPIO_PINS(25);
281 DECLARE_MSM_GPIO_PINS(26);
282 DECLARE_MSM_GPIO_PINS(27);
283 DECLARE_MSM_GPIO_PINS(28);
284 DECLARE_MSM_GPIO_PINS(29);
285 DECLARE_MSM_GPIO_PINS(30);
286 DECLARE_MSM_GPIO_PINS(31);
287 DECLARE_MSM_GPIO_PINS(32);
288 DECLARE_MSM_GPIO_PINS(33);
289 DECLARE_MSM_GPIO_PINS(34);
290 DECLARE_MSM_GPIO_PINS(35);
291 DECLARE_MSM_GPIO_PINS(36);
292 DECLARE_MSM_GPIO_PINS(37);
293 DECLARE_MSM_GPIO_PINS(38);
294 DECLARE_MSM_GPIO_PINS(39);
295 DECLARE_MSM_GPIO_PINS(40);
296 DECLARE_MSM_GPIO_PINS(41);
297 DECLARE_MSM_GPIO_PINS(42);
298 DECLARE_MSM_GPIO_PINS(43);
299 DECLARE_MSM_GPIO_PINS(44);
300 DECLARE_MSM_GPIO_PINS(45);
301 DECLARE_MSM_GPIO_PINS(46);
302 DECLARE_MSM_GPIO_PINS(47);
303 DECLARE_MSM_GPIO_PINS(48);
304 DECLARE_MSM_GPIO_PINS(49);
305 DECLARE_MSM_GPIO_PINS(50);
306 DECLARE_MSM_GPIO_PINS(51);
307 DECLARE_MSM_GPIO_PINS(52);
308 DECLARE_MSM_GPIO_PINS(53);
309 DECLARE_MSM_GPIO_PINS(54);
310 DECLARE_MSM_GPIO_PINS(55);
311 DECLARE_MSM_GPIO_PINS(56);
312 DECLARE_MSM_GPIO_PINS(57);
313 DECLARE_MSM_GPIO_PINS(58);
314 DECLARE_MSM_GPIO_PINS(59);
315 DECLARE_MSM_GPIO_PINS(60);
316 DECLARE_MSM_GPIO_PINS(61);
317 DECLARE_MSM_GPIO_PINS(62);
318 DECLARE_MSM_GPIO_PINS(63);
319 DECLARE_MSM_GPIO_PINS(64);
320 DECLARE_MSM_GPIO_PINS(65);
321 DECLARE_MSM_GPIO_PINS(66);
322 DECLARE_MSM_GPIO_PINS(67);
323 DECLARE_MSM_GPIO_PINS(68);
324 DECLARE_MSM_GPIO_PINS(69);
325 DECLARE_MSM_GPIO_PINS(70);
326 DECLARE_MSM_GPIO_PINS(71);
327 DECLARE_MSM_GPIO_PINS(72);
328 DECLARE_MSM_GPIO_PINS(73);
329 DECLARE_MSM_GPIO_PINS(74);
330 DECLARE_MSM_GPIO_PINS(75);
331 DECLARE_MSM_GPIO_PINS(76);
332 DECLARE_MSM_GPIO_PINS(77);
333 DECLARE_MSM_GPIO_PINS(78);
334 DECLARE_MSM_GPIO_PINS(79);
335 DECLARE_MSM_GPIO_PINS(80);
336 DECLARE_MSM_GPIO_PINS(81);
337 DECLARE_MSM_GPIO_PINS(82);
338 DECLARE_MSM_GPIO_PINS(83);
339 DECLARE_MSM_GPIO_PINS(84);
340 DECLARE_MSM_GPIO_PINS(85);
341 DECLARE_MSM_GPIO_PINS(86);
342 DECLARE_MSM_GPIO_PINS(87);
343 DECLARE_MSM_GPIO_PINS(88);
344 DECLARE_MSM_GPIO_PINS(89);
345 DECLARE_MSM_GPIO_PINS(90);
346 DECLARE_MSM_GPIO_PINS(91);
347 DECLARE_MSM_GPIO_PINS(92);
348 DECLARE_MSM_GPIO_PINS(93);
349 DECLARE_MSM_GPIO_PINS(94);
350 DECLARE_MSM_GPIO_PINS(95);
351 DECLARE_MSM_GPIO_PINS(96);
352 DECLARE_MSM_GPIO_PINS(97);
353 DECLARE_MSM_GPIO_PINS(98);
354 DECLARE_MSM_GPIO_PINS(99);
355 DECLARE_MSM_GPIO_PINS(100);
356 DECLARE_MSM_GPIO_PINS(101);
357 DECLARE_MSM_GPIO_PINS(102);
358 DECLARE_MSM_GPIO_PINS(103);
359 DECLARE_MSM_GPIO_PINS(104);
360 DECLARE_MSM_GPIO_PINS(105);
361 DECLARE_MSM_GPIO_PINS(106);
362 DECLARE_MSM_GPIO_PINS(107);
363 DECLARE_MSM_GPIO_PINS(108);
364 DECLARE_MSM_GPIO_PINS(109);
365 DECLARE_MSM_GPIO_PINS(110);
366 DECLARE_MSM_GPIO_PINS(111);
367 DECLARE_MSM_GPIO_PINS(112);
368 DECLARE_MSM_GPIO_PINS(113);
369 DECLARE_MSM_GPIO_PINS(114);
370 DECLARE_MSM_GPIO_PINS(115);
371 DECLARE_MSM_GPIO_PINS(116);
372 DECLARE_MSM_GPIO_PINS(117);
373 DECLARE_MSM_GPIO_PINS(118);
374 DECLARE_MSM_GPIO_PINS(119);
376 static const unsigned int sdc1_rclk_pins[] = { 120 };
377 static const unsigned int sdc1_clk_pins[] = { 121 };
378 static const unsigned int sdc1_cmd_pins[] = { 122 };
379 static const unsigned int sdc1_data_pins[] = { 123 };
380 static const unsigned int sdc2_clk_pins[] = { 124 };
381 static const unsigned int sdc2_cmd_pins[] = { 125 };
382 static const unsigned int sdc2_data_pins[] = { 126 };
384 enum qcs404_functions {
388 msm_mux_blsp_uart_tx_a2,
391 msm_mux_qdss_cti_trig_in_a0,
392 msm_mux_blsp_uart_rx_a2,
393 msm_mux_qdss_tracectl_a,
396 msm_mux_blsp_i2c_sda_a2,
397 msm_mux_qdss_tracedata_a,
398 msm_mux_blsp_i2c_scl_a2,
399 msm_mux_qdss_tracectl_b,
400 msm_mux_qdss_cti_trig_in_b0,
402 msm_mux_blsp_spi_mosi_a1,
403 msm_mux_blsp_spi_miso_a1,
404 msm_mux_qdss_tracedata_b,
406 msm_mux_blsp_spi_cs_n_a1,
408 msm_mux_blsp_spi_clk_a1,
417 msm_mux_gcc_gp1_clk_b,
419 msm_mux_gcc_gp2_clk_b,
422 msm_mux_gcc_gp3_clk_b,
424 msm_mux_qdss_traceclk_b,
432 msm_mux_blsp_uart_tx_b2,
433 msm_mux_gcc_gp3_clk_a,
435 msm_mux_blsp_uart_rx_b2,
436 msm_mux_blsp_i2c_sda_b2,
437 msm_mux_blsp_i2c_scl_b2,
439 msm_mux_i2s_3_data0_a,
441 msm_mux_i2s_3_data1_a,
442 msm_mux_i2s_3_data2_a,
445 msm_mux_i2s_3_data3_a,
466 msm_mux_blsp_spi_mosi_b1,
470 msm_mux_blsp_spi_miso_b1,
471 msm_mux_qdss_cti_trig_out_b0,
475 msm_mux_blsp_spi_cs_n_b1,
479 msm_mux_blsp_spi_clk_b1,
483 msm_mux_qdss_traceclk_a,
495 msm_mux_i2s_3_data0_b,
499 msm_mux_i2s_3_data1_b,
503 msm_mux_i2s_3_data2_b,
508 msm_mux_i2s_3_data3_b,
530 msm_mux_qdss_cti_trig_out_b1,
545 msm_mux_gcc_gp1_clk_a,
546 msm_mux_qdss_cti_trig_in_b1,
547 msm_mux_gcc_gp2_clk_a,
552 msm_mux_qdss_cti_trig_in_a1,
556 msm_mux_qdss_cti_trig_out_a0,
559 msm_mux_qdss_cti_trig_out_a1,
571 static const char * const gpio_groups[] = {
572 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
573 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
574 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
575 "gpio21", "gpio21", "gpio22", "gpio22", "gpio23", "gpio23", "gpio24",
576 "gpio25", "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31",
577 "gpio32", "gpio33", "gpio34", "gpio35", "gpio36", "gpio36", "gpio36",
578 "gpio36", "gpio37", "gpio37", "gpio37", "gpio38", "gpio38", "gpio38",
579 "gpio39", "gpio39", "gpio40", "gpio40", "gpio41", "gpio41", "gpio41",
580 "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48",
581 "gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55",
582 "gpio56", "gpio57", "gpio58", "gpio59", "gpio59", "gpio60", "gpio61",
583 "gpio62", "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68",
584 "gpio69", "gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio75",
585 "gpio76", "gpio77", "gpio77", "gpio78", "gpio78", "gpio78", "gpio79",
586 "gpio79", "gpio79", "gpio80", "gpio81", "gpio81", "gpio82", "gpio83",
587 "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90",
588 "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97",
589 "gpio98", "gpio99", "gpio100", "gpio101", "gpio102", "gpio103",
590 "gpio104", "gpio105", "gpio106", "gpio107", "gpio108", "gpio108",
591 "gpio108", "gpio109", "gpio109", "gpio110", "gpio111", "gpio112",
592 "gpio113", "gpio114", "gpio115", "gpio116", "gpio117", "gpio118",
596 static const char * const hdmi_tx_groups[] = {
600 static const char * const hdmi_ddc_groups[] = {
604 static const char * const blsp_uart_tx_a2_groups[] = {
608 static const char * const blsp_spi2_groups[] = {
609 "gpio17", "gpio18", "gpio19", "gpio20",
612 static const char * const m_voc_groups[] = {
616 static const char * const qdss_cti_trig_in_a0_groups[] = {
620 static const char * const blsp_uart_rx_a2_groups[] = {
624 static const char * const qdss_tracectl_a_groups[] = {
628 static const char * const blsp_uart2_groups[] = {
632 static const char * const aud_cdc_groups[] = {
636 static const char * const blsp_i2c_sda_a2_groups[] = {
640 static const char * const qdss_tracedata_a_groups[] = {
641 "gpio19", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio30",
642 "gpio31", "gpio32", "gpio36", "gpio38", "gpio39", "gpio42", "gpio43",
646 static const char * const blsp_i2c_scl_a2_groups[] = {
650 static const char * const qdss_tracectl_b_groups[] = {
654 static const char * const qdss_cti_trig_in_b0_groups[] = {
658 static const char * const blsp_uart1_groups[] = {
659 "gpio22", "gpio23", "gpio24", "gpio25",
662 static const char * const blsp_spi_mosi_a1_groups[] = {
666 static const char * const blsp_spi_miso_a1_groups[] = {
670 static const char * const qdss_tracedata_b_groups[] = {
671 "gpio23", "gpio35", "gpio40", "gpio41", "gpio44", "gpio45", "gpio46",
672 "gpio47", "gpio49", "gpio50", "gpio55", "gpio61", "gpio62", "gpio85",
676 static const char * const blsp_i2c1_groups[] = {
680 static const char * const blsp_spi_cs_n_a1_groups[] = {
684 static const char * const gcc_plltest_groups[] = {
688 static const char * const blsp_spi_clk_a1_groups[] = {
692 static const char * const rgb_data0_groups[] = {
696 static const char * const blsp_uart5_groups[] = {
697 "gpio26", "gpio27", "gpio28", "gpio29",
700 static const char * const blsp_spi5_groups[] = {
701 "gpio26", "gpio27", "gpio28", "gpio29", "gpio44", "gpio45", "gpio46",
704 static const char * const adsp_ext_groups[] = {
708 static const char * const rgb_data1_groups[] = {
712 static const char * const prng_rosc_groups[] = {
716 static const char * const rgb_data2_groups[] = {
720 static const char * const blsp_i2c5_groups[] = {
724 static const char * const gcc_gp1_clk_b_groups[] = {
728 static const char * const rgb_data3_groups[] = {
732 static const char * const gcc_gp2_clk_b_groups[] = {
736 static const char * const blsp_spi0_groups[] = {
737 "gpio30", "gpio31", "gpio32", "gpio33",
740 static const char * const blsp_uart0_groups[] = {
741 "gpio30", "gpio31", "gpio32", "gpio33",
744 static const char * const gcc_gp3_clk_b_groups[] = {
748 static const char * const blsp_i2c0_groups[] = {
752 static const char * const qdss_traceclk_b_groups[] = {
756 static const char * const pcie_clk_groups[] = {
760 static const char * const nfc_irq_groups[] = {
764 static const char * const blsp_spi4_groups[] = {
765 "gpio37", "gpio38", "gpio117", "gpio118",
768 static const char * const nfc_dwl_groups[] = {
772 static const char * const audio_ts_groups[] = {
776 static const char * const rgb_data4_groups[] = {
780 static const char * const spi_lcd_groups[] = {
784 static const char * const blsp_uart_tx_b2_groups[] = {
788 static const char * const gcc_gp3_clk_a_groups[] = {
792 static const char * const rgb_data5_groups[] = {
796 static const char * const blsp_uart_rx_b2_groups[] = {
800 static const char * const blsp_i2c_sda_b2_groups[] = {
804 static const char * const blsp_i2c_scl_b2_groups[] = {
808 static const char * const pwm_led11_groups[] = {
812 static const char * const i2s_3_data0_a_groups[] = {
816 static const char * const ebi2_lcd_groups[] = {
817 "gpio106", "gpio107", "gpio108", "gpio109",
820 static const char * const i2s_3_data1_a_groups[] = {
824 static const char * const i2s_3_data2_a_groups[] = {
828 static const char * const atest_char_groups[] = {
832 static const char * const pwm_led3_groups[] = {
836 static const char * const i2s_3_data3_a_groups[] = {
840 static const char * const pwm_led4_groups[] = {
844 static const char * const i2s_4_groups[] = {
845 "gpio110", "gpio111", "gpio111", "gpio112", "gpio112", "gpio113",
846 "gpio113", "gpio114", "gpio114", "gpio115", "gpio115", "gpio116",
849 static const char * const ebi2_a_groups[] = {
853 static const char * const dsd_clk_b_groups[] = {
857 static const char * const pwm_led5_groups[] = {
861 static const char * const pwm_led6_groups[] = {
865 static const char * const pwm_led7_groups[] = {
869 static const char * const pwm_led8_groups[] = {
873 static const char * const pwm_led24_groups[] = {
877 static const char * const spkr_dac0_groups[] = {
881 static const char * const blsp_i2c4_groups[] = {
882 "gpio117", "gpio118",
885 static const char * const pwm_led9_groups[] = {
889 static const char * const pwm_led10_groups[] = {
893 static const char * const spdifrx_opt_groups[] = {
897 static const char * const pwm_led12_groups[] = {
901 static const char * const pwm_led13_groups[] = {
905 static const char * const pwm_led14_groups[] = {
909 static const char * const wlan1_adc1_groups[] = {
913 static const char * const rgb_data_b0_groups[] = {
917 static const char * const pwm_led15_groups[] = {
921 static const char * const blsp_spi_mosi_b1_groups[] = {
925 static const char * const wlan1_adc0_groups[] = {
929 static const char * const rgb_data_b1_groups[] = {
933 static const char * const pwm_led16_groups[] = {
937 static const char * const blsp_spi_miso_b1_groups[] = {
941 static const char * const qdss_cti_trig_out_b0_groups[] = {
945 static const char * const wlan2_adc1_groups[] = {
949 static const char * const rgb_data_b2_groups[] = {
953 static const char * const pwm_led17_groups[] = {
957 static const char * const blsp_spi_cs_n_b1_groups[] = {
961 static const char * const wlan2_adc0_groups[] = {
965 static const char * const rgb_data_b3_groups[] = {
969 static const char * const pwm_led18_groups[] = {
973 static const char * const blsp_spi_clk_b1_groups[] = {
977 static const char * const rgb_data_b4_groups[] = {
981 static const char * const pwm_led19_groups[] = {
985 static const char * const ext_mclk1_b_groups[] = {
989 static const char * const qdss_traceclk_a_groups[] = {
993 static const char * const rgb_data_b5_groups[] = {
997 static const char * const pwm_led20_groups[] = {
1001 static const char * const atest_char3_groups[] = {
1005 static const char * const i2s_3_sck_b_groups[] = {
1009 static const char * const ldo_update_groups[] = {
1013 static const char * const bimc_dte0_groups[] = {
1017 static const char * const rgb_hsync_groups[] = {
1021 static const char * const pwm_led21_groups[] = {
1025 static const char * const i2s_3_ws_b_groups[] = {
1029 static const char * const dbg_out_groups[] = {
1033 static const char * const rgb_vsync_groups[] = {
1037 static const char * const i2s_3_data0_b_groups[] = {
1041 static const char * const ldo_en_groups[] = {
1045 static const char * const hdmi_dtest_groups[] = {
1049 static const char * const rgb_de_groups[] = {
1053 static const char * const i2s_3_data1_b_groups[] = {
1057 static const char * const hdmi_lbk9_groups[] = {
1061 static const char * const rgb_clk_groups[] = {
1065 static const char * const atest_char1_groups[] = {
1069 static const char * const i2s_3_data2_b_groups[] = {
1073 static const char * const ebi_cdc_groups[] = {
1074 "gpio56", "gpio58", "gpio106", "gpio107", "gpio108", "gpio111",
1077 static const char * const hdmi_lbk8_groups[] = {
1081 static const char * const rgb_mdp_groups[] = {
1085 static const char * const atest_char0_groups[] = {
1089 static const char * const i2s_3_data3_b_groups[] = {
1093 static const char * const hdmi_lbk7_groups[] = {
1097 static const char * const rgb_data_b6_groups[] = {
1101 static const char * const rgb_data_b7_groups[] = {
1105 static const char * const hdmi_lbk6_groups[] = {
1109 static const char * const rgmii_int_groups[] = {
1113 static const char * const cri_trng1_groups[] = {
1117 static const char * const rgmii_wol_groups[] = {
1121 static const char * const cri_trng0_groups[] = {
1125 static const char * const gcc_tlmm_groups[] = {
1129 static const char * const rgmii_ck_groups[] = {
1133 static const char * const rgmii_tx_groups[] = {
1134 "gpio64", "gpio65", "gpio66", "gpio67",
1137 static const char * const hdmi_lbk5_groups[] = {
1141 static const char * const hdmi_pixel_groups[] = {
1145 static const char * const hdmi_rcv_groups[] = {
1149 static const char * const hdmi_lbk4_groups[] = {
1153 static const char * const rgmii_ctl_groups[] = {
1157 static const char * const ext_lpass_groups[] = {
1161 static const char * const rgmii_rx_groups[] = {
1162 "gpio70", "gpio71", "gpio72", "gpio73",
1165 static const char * const cri_trng_groups[] = {
1169 static const char * const hdmi_lbk3_groups[] = {
1173 static const char * const hdmi_lbk2_groups[] = {
1177 static const char * const qdss_cti_trig_out_b1_groups[] = {
1181 static const char * const rgmii_mdio_groups[] = {
1185 static const char * const hdmi_lbk1_groups[] = {
1189 static const char * const rgmii_mdc_groups[] = {
1193 static const char * const hdmi_lbk0_groups[] = {
1197 static const char * const ir_in_groups[] = {
1201 static const char * const wsa_en_groups[] = {
1205 static const char * const rgb_data6_groups[] = {
1209 static const char * const rgb_data7_groups[] = {
1213 static const char * const atest_char2_groups[] = {
1217 static const char * const ebi_ch0_groups[] = {
1221 static const char * const blsp_uart3_groups[] = {
1222 "gpio82", "gpio83", "gpio84", "gpio85",
1225 static const char * const blsp_spi3_groups[] = {
1226 "gpio82", "gpio83", "gpio84", "gpio85",
1229 static const char * const sd_write_groups[] = {
1233 static const char * const blsp_i2c3_groups[] = {
1237 static const char * const gcc_gp1_clk_a_groups[] = {
1241 static const char * const qdss_cti_trig_in_b1_groups[] = {
1245 static const char * const gcc_gp2_clk_a_groups[] = {
1249 static const char * const ext_mclk0_groups[] = {
1253 static const char * const mclk_in1_groups[] = {
1257 static const char * const i2s_1_groups[] = {
1258 "gpio87", "gpio88", "gpio88", "gpio89", "gpio89", "gpio90", "gpio90",
1259 "gpio91", "gpio91", "gpio92", "gpio92", "gpio93", "gpio93", "gpio94",
1260 "gpio94", "gpio95", "gpio95", "gpio96",
1263 static const char * const dsd_clk_a_groups[] = {
1267 static const char * const qdss_cti_trig_in_a1_groups[] = {
1271 static const char * const rgmi_dll1_groups[] = {
1275 static const char * const pwm_led22_groups[] = {
1279 static const char * const pwm_led23_groups[] = {
1283 static const char * const qdss_cti_trig_out_a0_groups[] = {
1287 static const char * const rgmi_dll2_groups[] = {
1291 static const char * const pwm_led1_groups[] = {
1295 static const char * const qdss_cti_trig_out_a1_groups[] = {
1299 static const char * const pwm_led2_groups[] = {
1303 static const char * const i2s_2_groups[] = {
1304 "gpio97", "gpio98", "gpio99", "gpio100", "gpio101", "gpio102",
1307 static const char * const pll_bist_groups[] = {
1311 static const char * const ext_mclk1_a_groups[] = {
1315 static const char * const mclk_in2_groups[] = {
1319 static const char * const bimc_dte1_groups[] = {
1320 "gpio103", "gpio109",
1323 static const char * const i2s_3_sck_a_groups[] = {
1327 static const char * const i2s_3_ws_a_groups[] = {
1331 static const struct msm_function qcs404_functions[] = {
1335 FUNCTION(blsp_uart_tx_a2),
1336 FUNCTION(blsp_spi2),
1338 FUNCTION(qdss_cti_trig_in_a0),
1339 FUNCTION(blsp_uart_rx_a2),
1340 FUNCTION(qdss_tracectl_a),
1341 FUNCTION(blsp_uart2),
1343 FUNCTION(blsp_i2c_sda_a2),
1344 FUNCTION(qdss_tracedata_a),
1345 FUNCTION(blsp_i2c_scl_a2),
1346 FUNCTION(qdss_tracectl_b),
1347 FUNCTION(qdss_cti_trig_in_b0),
1348 FUNCTION(blsp_uart1),
1349 FUNCTION(blsp_spi_mosi_a1),
1350 FUNCTION(blsp_spi_miso_a1),
1351 FUNCTION(qdss_tracedata_b),
1352 FUNCTION(blsp_i2c1),
1353 FUNCTION(blsp_spi_cs_n_a1),
1354 FUNCTION(gcc_plltest),
1355 FUNCTION(blsp_spi_clk_a1),
1356 FUNCTION(rgb_data0),
1357 FUNCTION(blsp_uart5),
1358 FUNCTION(blsp_spi5),
1360 FUNCTION(rgb_data1),
1361 FUNCTION(prng_rosc),
1362 FUNCTION(rgb_data2),
1363 FUNCTION(blsp_i2c5),
1364 FUNCTION(gcc_gp1_clk_b),
1365 FUNCTION(rgb_data3),
1366 FUNCTION(gcc_gp2_clk_b),
1367 FUNCTION(blsp_spi0),
1368 FUNCTION(blsp_uart0),
1369 FUNCTION(gcc_gp3_clk_b),
1370 FUNCTION(blsp_i2c0),
1371 FUNCTION(qdss_traceclk_b),
1374 FUNCTION(blsp_spi4),
1377 FUNCTION(rgb_data4),
1379 FUNCTION(blsp_uart_tx_b2),
1380 FUNCTION(gcc_gp3_clk_a),
1381 FUNCTION(rgb_data5),
1382 FUNCTION(blsp_uart_rx_b2),
1383 FUNCTION(blsp_i2c_sda_b2),
1384 FUNCTION(blsp_i2c_scl_b2),
1385 FUNCTION(pwm_led11),
1386 FUNCTION(i2s_3_data0_a),
1388 FUNCTION(i2s_3_data1_a),
1389 FUNCTION(i2s_3_data2_a),
1390 FUNCTION(atest_char),
1392 FUNCTION(i2s_3_data3_a),
1396 FUNCTION(dsd_clk_b),
1401 FUNCTION(pwm_led24),
1402 FUNCTION(spkr_dac0),
1403 FUNCTION(blsp_i2c4),
1405 FUNCTION(pwm_led10),
1406 FUNCTION(spdifrx_opt),
1407 FUNCTION(pwm_led12),
1408 FUNCTION(pwm_led13),
1409 FUNCTION(pwm_led14),
1410 FUNCTION(wlan1_adc1),
1411 FUNCTION(rgb_data_b0),
1412 FUNCTION(pwm_led15),
1413 FUNCTION(blsp_spi_mosi_b1),
1414 FUNCTION(wlan1_adc0),
1415 FUNCTION(rgb_data_b1),
1416 FUNCTION(pwm_led16),
1417 FUNCTION(blsp_spi_miso_b1),
1418 FUNCTION(qdss_cti_trig_out_b0),
1419 FUNCTION(wlan2_adc1),
1420 FUNCTION(rgb_data_b2),
1421 FUNCTION(pwm_led17),
1422 FUNCTION(blsp_spi_cs_n_b1),
1423 FUNCTION(wlan2_adc0),
1424 FUNCTION(rgb_data_b3),
1425 FUNCTION(pwm_led18),
1426 FUNCTION(blsp_spi_clk_b1),
1427 FUNCTION(rgb_data_b4),
1428 FUNCTION(pwm_led19),
1429 FUNCTION(ext_mclk1_b),
1430 FUNCTION(qdss_traceclk_a),
1431 FUNCTION(rgb_data_b5),
1432 FUNCTION(pwm_led20),
1433 FUNCTION(atest_char3),
1434 FUNCTION(i2s_3_sck_b),
1435 FUNCTION(ldo_update),
1436 FUNCTION(bimc_dte0),
1437 FUNCTION(rgb_hsync),
1438 FUNCTION(pwm_led21),
1439 FUNCTION(i2s_3_ws_b),
1441 FUNCTION(rgb_vsync),
1442 FUNCTION(i2s_3_data0_b),
1444 FUNCTION(hdmi_dtest),
1446 FUNCTION(i2s_3_data1_b),
1447 FUNCTION(hdmi_lbk9),
1449 FUNCTION(atest_char1),
1450 FUNCTION(i2s_3_data2_b),
1452 FUNCTION(hdmi_lbk8),
1454 FUNCTION(atest_char0),
1455 FUNCTION(i2s_3_data3_b),
1456 FUNCTION(hdmi_lbk7),
1457 FUNCTION(rgb_data_b6),
1458 FUNCTION(rgb_data_b7),
1459 FUNCTION(hdmi_lbk6),
1460 FUNCTION(rgmii_int),
1461 FUNCTION(cri_trng1),
1462 FUNCTION(rgmii_wol),
1463 FUNCTION(cri_trng0),
1467 FUNCTION(hdmi_lbk5),
1468 FUNCTION(hdmi_pixel),
1470 FUNCTION(hdmi_lbk4),
1471 FUNCTION(rgmii_ctl),
1472 FUNCTION(ext_lpass),
1475 FUNCTION(hdmi_lbk3),
1476 FUNCTION(hdmi_lbk2),
1477 FUNCTION(qdss_cti_trig_out_b1),
1478 FUNCTION(rgmii_mdio),
1479 FUNCTION(hdmi_lbk1),
1480 FUNCTION(rgmii_mdc),
1481 FUNCTION(hdmi_lbk0),
1484 FUNCTION(rgb_data6),
1485 FUNCTION(rgb_data7),
1486 FUNCTION(atest_char2),
1488 FUNCTION(blsp_uart3),
1489 FUNCTION(blsp_spi3),
1491 FUNCTION(blsp_i2c3),
1492 FUNCTION(gcc_gp1_clk_a),
1493 FUNCTION(qdss_cti_trig_in_b1),
1494 FUNCTION(gcc_gp2_clk_a),
1495 FUNCTION(ext_mclk0),
1498 FUNCTION(dsd_clk_a),
1499 FUNCTION(qdss_cti_trig_in_a1),
1500 FUNCTION(rgmi_dll1),
1501 FUNCTION(pwm_led22),
1502 FUNCTION(pwm_led23),
1503 FUNCTION(qdss_cti_trig_out_a0),
1504 FUNCTION(rgmi_dll2),
1506 FUNCTION(qdss_cti_trig_out_a1),
1510 FUNCTION(ext_mclk1_a),
1512 FUNCTION(bimc_dte1),
1513 FUNCTION(i2s_3_sck_a),
1514 FUNCTION(i2s_3_ws_a),
1517 /* Every pin is maintained as a single group, and missing or non-existing pin
1518 * would be maintained as dummy group to synchronize pin group index with
1519 * pin descriptor registered with pinctrl core.
1520 * Clients would not be able to request these dummy pin groups.
1522 static const struct msm_pingroup qcs404_groups[] = {
1523 [0] = PINGROUP(0, SOUTH, _, _, _, _, _, _, _, _, _),
1524 [1] = PINGROUP(1, SOUTH, _, _, _, _, _, _, _, _, _),
1525 [2] = PINGROUP(2, SOUTH, _, _, _, _, _, _, _, _, _),
1526 [3] = PINGROUP(3, SOUTH, _, _, _, _, _, _, _, _, _),
1527 [4] = PINGROUP(4, SOUTH, _, _, _, _, _, _, _, _, _),
1528 [5] = PINGROUP(5, SOUTH, _, _, _, _, _, _, _, _, _),
1529 [6] = PINGROUP(6, SOUTH, _, _, _, _, _, _, _, _, _),
1530 [7] = PINGROUP(7, SOUTH, _, _, _, _, _, _, _, _, _),
1531 [8] = PINGROUP(8, SOUTH, _, _, _, _, _, _, _, _, _),
1532 [9] = PINGROUP(9, SOUTH, _, _, _, _, _, _, _, _, _),
1533 [10] = PINGROUP(10, SOUTH, _, _, _, _, _, _, _, _, _),
1534 [11] = PINGROUP(11, SOUTH, _, _, _, _, _, _, _, _, _),
1535 [12] = PINGROUP(12, SOUTH, _, _, _, _, _, _, _, _, _),
1536 [13] = PINGROUP(13, SOUTH, _, _, _, _, _, _, _, _, _),
1537 [14] = PINGROUP(14, SOUTH, hdmi_tx, _, _, _, _, _, _, _, _),
1538 [15] = PINGROUP(15, SOUTH, hdmi_ddc, _, _, _, _, _, _, _, _),
1539 [16] = PINGROUP(16, SOUTH, hdmi_ddc, _, _, _, _, _, _, _, _),
1540 [17] = PINGROUP(17, NORTH, blsp_uart_tx_a2, blsp_spi2, m_voc, _, _, _, _, _, _),
1541 [18] = PINGROUP(18, NORTH, blsp_uart_rx_a2, blsp_spi2, _, _, _, _, _, qdss_tracectl_a, _),
1542 [19] = PINGROUP(19, NORTH, blsp_uart2, aud_cdc, blsp_i2c_sda_a2, blsp_spi2, _, qdss_tracedata_a, _, _, _),
1543 [20] = PINGROUP(20, NORTH, blsp_uart2, aud_cdc, blsp_i2c_scl_a2, blsp_spi2, _, _, _, _, _),
1544 [21] = PINGROUP(21, SOUTH, m_voc, _, _, _, _, _, _, _, qdss_cti_trig_in_b0),
1545 [22] = PINGROUP(22, NORTH, blsp_uart1, blsp_spi_mosi_a1, _, _, _, _, _, _, _),
1546 [23] = PINGROUP(23, NORTH, blsp_uart1, blsp_spi_miso_a1, _, _, _, _, _, qdss_tracedata_b, _),
1547 [24] = PINGROUP(24, NORTH, blsp_uart1, blsp_i2c1, blsp_spi_cs_n_a1, gcc_plltest, _, _, _, _, _),
1548 [25] = PINGROUP(25, NORTH, blsp_uart1, blsp_i2c1, blsp_spi_clk_a1, gcc_plltest, _, _, _, _, _),
1549 [26] = PINGROUP(26, EAST, rgb_data0, blsp_uart5, blsp_spi5, adsp_ext, _, _, _, _, _),
1550 [27] = PINGROUP(27, EAST, rgb_data1, blsp_uart5, blsp_spi5, prng_rosc, _, _, _, _, _),
1551 [28] = PINGROUP(28, EAST, rgb_data2, blsp_uart5, blsp_i2c5, blsp_spi5, gcc_gp1_clk_b, _, _, _, _),
1552 [29] = PINGROUP(29, EAST, rgb_data3, blsp_uart5, blsp_i2c5, blsp_spi5, gcc_gp2_clk_b, _, _, _, _),
1553 [30] = PINGROUP(30, NORTH, blsp_spi0, blsp_uart0, gcc_gp3_clk_b, _, _, _, _, _, _),
1554 [31] = PINGROUP(31, NORTH, blsp_spi0, blsp_uart0, _, _, _, _, _, _, _),
1555 [32] = PINGROUP(32, NORTH, blsp_spi0, blsp_uart0, blsp_i2c0, _, _, _, _, _, _),
1556 [33] = PINGROUP(33, NORTH, blsp_spi0, blsp_uart0, blsp_i2c0, _, _, _, _, _, _),
1557 [34] = PINGROUP(34, SOUTH, _, qdss_traceclk_b, _, _, _, _, _, _, _),
1558 [35] = PINGROUP(35, SOUTH, pcie_clk, _, qdss_tracedata_b, _, _, _, _, _, _),
1559 [36] = PINGROUP(36, NORTH, _, _, _, _, _, _, qdss_tracedata_a, _, _),
1560 [37] = PINGROUP(37, NORTH, nfc_irq, blsp_spi4, _, _, _, _, _, _, _),
1561 [38] = PINGROUP(38, NORTH, nfc_dwl, blsp_spi4, audio_ts, _, _, _, _, _, _),
1562 [39] = PINGROUP(39, EAST, rgb_data4, spi_lcd, blsp_uart_tx_b2, gcc_gp3_clk_a, qdss_tracedata_a, _, _, _, _),
1563 [40] = PINGROUP(40, EAST, rgb_data5, spi_lcd, blsp_uart_rx_b2, _, qdss_tracedata_b, _, _, _, _),
1564 [41] = PINGROUP(41, EAST, rgb_data0, blsp_i2c_sda_b2, _, qdss_tracedata_b, _, _, _, _, _),
1565 [42] = PINGROUP(42, EAST, rgb_data1, blsp_i2c_scl_b2, _, _, _, _, _, qdss_tracedata_a, _),
1566 [43] = PINGROUP(43, EAST, rgb_data2, pwm_led11, _, _, _, _, _, _, _),
1567 [44] = PINGROUP(44, EAST, rgb_data3, pwm_led12, blsp_spi5, _, _, _, _, _, _),
1568 [45] = PINGROUP(45, EAST, rgb_data4, pwm_led13, blsp_spi5, qdss_tracedata_b, _, _, _, _, _),
1569 [46] = PINGROUP(46, EAST, rgb_data5, pwm_led14, blsp_spi5, qdss_tracedata_b, _, wlan1_adc1, _, _, _),
1570 [47] = PINGROUP(47, EAST, rgb_data_b0, pwm_led15, blsp_spi_mosi_b1, qdss_tracedata_b, _, wlan1_adc0, _, _, _),
1571 [48] = PINGROUP(48, EAST, rgb_data_b1, pwm_led16, blsp_spi_miso_b1, _, qdss_cti_trig_out_b0, _, wlan2_adc1, _, _),
1572 [49] = PINGROUP(49, EAST, rgb_data_b2, pwm_led17, blsp_spi_cs_n_b1, _, qdss_tracedata_b, _, wlan2_adc0, _, _),
1573 [50] = PINGROUP(50, EAST, rgb_data_b3, pwm_led18, blsp_spi_clk_b1, qdss_tracedata_b, _, _, _, _, _),
1574 [51] = PINGROUP(51, EAST, rgb_data_b4, pwm_led19, ext_mclk1_b, qdss_traceclk_a, _, _, _, _, _),
1575 [52] = PINGROUP(52, EAST, rgb_data_b5, pwm_led20, atest_char3, i2s_3_sck_b, ldo_update, bimc_dte0, _, _, _),
1576 [53] = PINGROUP(53, EAST, rgb_hsync, pwm_led21, i2s_3_ws_b, dbg_out, _, _, _, _, _),
1577 [54] = PINGROUP(54, EAST, rgb_vsync, i2s_3_data0_b, ldo_en, bimc_dte0, _, hdmi_dtest, _, _, _),
1578 [55] = PINGROUP(55, EAST, rgb_de, i2s_3_data1_b, _, qdss_tracedata_b, _, hdmi_lbk9, _, _, _),
1579 [56] = PINGROUP(56, EAST, rgb_clk, atest_char1, i2s_3_data2_b, ebi_cdc, _, hdmi_lbk8, _, _, _),
1580 [57] = PINGROUP(57, EAST, rgb_mdp, atest_char0, i2s_3_data3_b, _, hdmi_lbk7, _, _, _, _),
1581 [58] = PINGROUP(58, EAST, rgb_data_b6, _, ebi_cdc, _, _, _, _, _, _),
1582 [59] = PINGROUP(59, EAST, rgb_data_b7, _, hdmi_lbk6, _, _, _, _, _, _),
1583 [60] = PINGROUP(60, NORTH, _, _, _, _, _, _, _, _, _),
1584 [61] = PINGROUP(61, NORTH, rgmii_int, cri_trng1, qdss_tracedata_b, _, _, _, _, _, _),
1585 [62] = PINGROUP(62, NORTH, rgmii_wol, cri_trng0, qdss_tracedata_b, gcc_tlmm, _, _, _, _, _),
1586 [63] = PINGROUP(63, NORTH, rgmii_ck, _, _, _, _, _, _, _, _),
1587 [64] = PINGROUP(64, NORTH, rgmii_tx, _, hdmi_lbk5, _, _, _, _, _, _),
1588 [65] = PINGROUP(65, NORTH, rgmii_tx, _, hdmi_pixel, _, _, _, _, _, _),
1589 [66] = PINGROUP(66, NORTH, rgmii_tx, _, hdmi_rcv, _, _, _, _, _, _),
1590 [67] = PINGROUP(67, NORTH, rgmii_tx, _, hdmi_lbk4, _, _, _, _, _, _),
1591 [68] = PINGROUP(68, NORTH, rgmii_ctl, _, _, _, _, _, _, _, _),
1592 [69] = PINGROUP(69, NORTH, rgmii_ck, ext_lpass, _, _, _, _, _, _, _),
1593 [70] = PINGROUP(70, NORTH, rgmii_rx, cri_trng, _, _, _, _, _, _, _),
1594 [71] = PINGROUP(71, NORTH, rgmii_rx, _, hdmi_lbk3, _, _, _, _, _, _),
1595 [72] = PINGROUP(72, NORTH, rgmii_rx, _, hdmi_lbk2, _, _, _, _, _, _),
1596 [73] = PINGROUP(73, NORTH, rgmii_rx, _, _, _, _, qdss_cti_trig_out_b1, _, _, _),
1597 [74] = PINGROUP(74, NORTH, rgmii_ctl, _, _, _, _, _, _, _, _),
1598 [75] = PINGROUP(75, NORTH, rgmii_mdio, _, hdmi_lbk1, _, _, _, _, _, _),
1599 [76] = PINGROUP(76, NORTH, rgmii_mdc, _, _, _, _, _, hdmi_lbk0, _, _),
1600 [77] = PINGROUP(77, NORTH, ir_in, wsa_en, _, _, _, _, _, _, _),
1601 [78] = PINGROUP(78, EAST, rgb_data6, _, _, _, _, _, _, _, _),
1602 [79] = PINGROUP(79, EAST, rgb_data7, _, _, _, _, _, _, _, _),
1603 [80] = PINGROUP(80, EAST, rgb_data6, atest_char2, _, _, _, _, _, _, _),
1604 [81] = PINGROUP(81, EAST, rgb_data7, ebi_ch0, _, _, _, _, _, _, _),
1605 [82] = PINGROUP(82, NORTH, blsp_uart3, blsp_spi3, sd_write, _, _, _, _, _, qdss_tracedata_a),
1606 [83] = PINGROUP(83, NORTH, blsp_uart3, blsp_spi3, _, _, _, _, qdss_tracedata_a, _, _),
1607 [84] = PINGROUP(84, NORTH, blsp_uart3, blsp_i2c3, blsp_spi3, gcc_gp1_clk_a, qdss_cti_trig_in_b1, _, _, _, _),
1608 [85] = PINGROUP(85, NORTH, blsp_uart3, blsp_i2c3, blsp_spi3, gcc_gp2_clk_a, qdss_tracedata_b, _, _, _, _),
1609 [86] = PINGROUP(86, EAST, ext_mclk0, mclk_in1, _, _, _, _, _, _, _),
1610 [87] = PINGROUP(87, EAST, i2s_1, dsd_clk_a, _, _, _, _, _, _, _),
1611 [88] = PINGROUP(88, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _),
1612 [89] = PINGROUP(89, EAST, i2s_1, i2s_1, _, _, _, _, _, _, qdss_tracedata_b),
1613 [90] = PINGROUP(90, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _),
1614 [91] = PINGROUP(91, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _),
1615 [92] = PINGROUP(92, EAST, i2s_1, i2s_1, _, _, _, _, _, qdss_cti_trig_in_a1, _),
1616 [93] = PINGROUP(93, EAST, i2s_1, pwm_led22, i2s_1, _, _, _, _, _, qdss_tracedata_b),
1617 [94] = PINGROUP(94, EAST, i2s_1, pwm_led23, i2s_1, _, qdss_cti_trig_out_a0, _, rgmi_dll2, _, _),
1618 [95] = PINGROUP(95, EAST, i2s_1, pwm_led1, i2s_1, _, qdss_cti_trig_out_a1, _, _, _, _),
1619 [96] = PINGROUP(96, EAST, i2s_1, pwm_led2, _, _, _, _, _, _, _),
1620 [97] = PINGROUP(97, EAST, i2s_2, _, _, _, _, _, _, _, _),
1621 [98] = PINGROUP(98, EAST, i2s_2, _, _, _, _, _, _, _, _),
1622 [99] = PINGROUP(99, EAST, i2s_2, _, _, _, _, _, _, _, _),
1623 [100] = PINGROUP(100, EAST, i2s_2, pll_bist, _, _, _, _, _, _, _),
1624 [101] = PINGROUP(101, EAST, i2s_2, _, _, _, _, _, _, _, _),
1625 [102] = PINGROUP(102, EAST, i2s_2, _, _, _, _, _, _, _, _),
1626 [103] = PINGROUP(103, EAST, ext_mclk1_a, mclk_in2, bimc_dte1, _, _, _, _, _, _),
1627 [104] = PINGROUP(104, EAST, i2s_3_sck_a, _, _, _, _, _, _, _, _),
1628 [105] = PINGROUP(105, EAST, i2s_3_ws_a, _, _, _, _, _, _, _, _),
1629 [106] = PINGROUP(106, EAST, i2s_3_data0_a, ebi2_lcd, _, _, ebi_cdc, _, _, _, _),
1630 [107] = PINGROUP(107, EAST, i2s_3_data1_a, ebi2_lcd, _, _, ebi_cdc, _, _, _, _),
1631 [108] = PINGROUP(108, EAST, i2s_3_data2_a, ebi2_lcd, atest_char, pwm_led3, ebi_cdc, _, _, _, _),
1632 [109] = PINGROUP(109, EAST, i2s_3_data3_a, ebi2_lcd, pwm_led4, bimc_dte1, _, _, _, _, _),
1633 [110] = PINGROUP(110, EAST, i2s_4, ebi2_a, dsd_clk_b, pwm_led5, _, _, _, _, _),
1634 [111] = PINGROUP(111, EAST, i2s_4, i2s_4, pwm_led6, ebi_cdc, _, _, _, _, _),
1635 [112] = PINGROUP(112, EAST, i2s_4, i2s_4, pwm_led7, _, _, _, _, _, _),
1636 [113] = PINGROUP(113, EAST, i2s_4, i2s_4, pwm_led8, _, _, _, _, _, _),
1637 [114] = PINGROUP(114, EAST, i2s_4, i2s_4, pwm_led24, _, _, _, _, _, _),
1638 [115] = PINGROUP(115, EAST, i2s_4, i2s_4, _, _, _, _, _, _, _),
1639 [116] = PINGROUP(116, EAST, i2s_4, spkr_dac0, _, _, _, _, _, _, _),
1640 [117] = PINGROUP(117, NORTH, blsp_i2c4, blsp_spi4, pwm_led9, _, _, _, _, _, _),
1641 [118] = PINGROUP(118, NORTH, blsp_i2c4, blsp_spi4, pwm_led10, _, _, _, _, _, _),
1642 [119] = PINGROUP(119, EAST, spdifrx_opt, _, _, _, _, _, _, _, _),
1643 [120] = SDC_QDSD_PINGROUP(sdc1_rclk, 0xc2000, 15, 0),
1644 [121] = SDC_QDSD_PINGROUP(sdc1_clk, 0xc2000, 13, 6),
1645 [122] = SDC_QDSD_PINGROUP(sdc1_cmd, 0xc2000, 11, 3),
1646 [123] = SDC_QDSD_PINGROUP(sdc1_data, 0xc2000, 9, 0),
1647 [124] = SDC_QDSD_PINGROUP(sdc2_clk, 0xc3000, 14, 6),
1648 [125] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xc3000, 11, 3),
1649 [126] = SDC_QDSD_PINGROUP(sdc2_data, 0xc3000, 9, 0),
1652 static const struct msm_pinctrl_soc_data qcs404_pinctrl = {
1653 .pins = qcs404_pins,
1654 .npins = ARRAY_SIZE(qcs404_pins),
1655 .functions = qcs404_functions,
1656 .nfunctions = ARRAY_SIZE(qcs404_functions),
1657 .groups = qcs404_groups,
1658 .ngroups = ARRAY_SIZE(qcs404_groups),
1660 .tiles = qcs404_tiles,
1661 .ntiles = ARRAY_SIZE(qcs404_tiles),
1664 static int qcs404_pinctrl_probe(struct platform_device *pdev)
1666 return msm_pinctrl_probe(pdev, &qcs404_pinctrl);
1669 static const struct of_device_id qcs404_pinctrl_of_match[] = {
1670 { .compatible = "qcom,qcs404-pinctrl", },
1674 static struct platform_driver qcs404_pinctrl_driver = {
1676 .name = "qcs404-pinctrl",
1677 .of_match_table = qcs404_pinctrl_of_match,
1679 .probe = qcs404_pinctrl_probe,
1680 .remove = msm_pinctrl_remove,
1683 static int __init qcs404_pinctrl_init(void)
1685 return platform_driver_register(&qcs404_pinctrl_driver);
1687 arch_initcall(qcs404_pinctrl_init);
1689 static void __exit qcs404_pinctrl_exit(void)
1691 platform_driver_unregister(&qcs404_pinctrl_driver);
1693 module_exit(qcs404_pinctrl_exit);
1695 MODULE_DESCRIPTION("Qualcomm QCS404 pinctrl driver");
1696 MODULE_LICENSE("GPL v2");
1697 MODULE_DEVICE_TABLE(of, qcs404_pinctrl_of_match);