1*0f936752SRohit Agarwal // SPDX-License-Identifier: GPL-2.0-only
2*0f936752SRohit Agarwal /*
3*0f936752SRohit Agarwal  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4*0f936752SRohit Agarwal  */
5*0f936752SRohit Agarwal 
6*0f936752SRohit Agarwal #include <linux/module.h>
7*0f936752SRohit Agarwal #include <linux/of.h>
8*0f936752SRohit Agarwal #include <linux/platform_device.h>
9*0f936752SRohit Agarwal #include "pinctrl-msm.h"
10*0f936752SRohit Agarwal 
11*0f936752SRohit Agarwal #define REG_BASE	0x100000
12*0f936752SRohit Agarwal #define REG_SIZE	0x1000
13*0f936752SRohit Agarwal 
14*0f936752SRohit Agarwal #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10)		\
15*0f936752SRohit Agarwal 	{								\
16*0f936752SRohit Agarwal 		.grp = PINCTRL_PINGROUP("gpio"#id, gpio##id##_pins,	\
17*0f936752SRohit Agarwal 			(unsigned int)ARRAY_SIZE(gpio##id##_pins)),	\
18*0f936752SRohit Agarwal 		.ctl_reg = REG_BASE + REG_SIZE * id,			\
19*0f936752SRohit Agarwal 		.io_reg = REG_BASE + 0x4 + REG_SIZE * id,		\
20*0f936752SRohit Agarwal 		.intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id,		\
21*0f936752SRohit Agarwal 		.intr_status_reg = REG_BASE + 0xc + REG_SIZE * id,	\
22*0f936752SRohit Agarwal 		.intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id,	\
23*0f936752SRohit Agarwal 		.mux_bit = 2,						\
24*0f936752SRohit Agarwal 		.pull_bit = 0,						\
25*0f936752SRohit Agarwal 		.drv_bit = 6,						\
26*0f936752SRohit Agarwal 		.egpio_enable = 12,					\
27*0f936752SRohit Agarwal 		.egpio_present = 11,					\
28*0f936752SRohit Agarwal 		.oe_bit = 9,						\
29*0f936752SRohit Agarwal 		.in_bit = 0,						\
30*0f936752SRohit Agarwal 		.out_bit = 1,						\
31*0f936752SRohit Agarwal 		.intr_enable_bit = 0,					\
32*0f936752SRohit Agarwal 		.intr_status_bit = 0,					\
33*0f936752SRohit Agarwal 		.intr_target_bit = 5,					\
34*0f936752SRohit Agarwal 		.intr_target_kpss_val = 3,				\
35*0f936752SRohit Agarwal 		.intr_raw_status_bit = 4,				\
36*0f936752SRohit Agarwal 		.intr_polarity_bit = 1,					\
37*0f936752SRohit Agarwal 		.intr_detection_bit = 2,				\
38*0f936752SRohit Agarwal 		.intr_detection_width = 2,				\
39*0f936752SRohit Agarwal 		.funcs = (int[]){					\
40*0f936752SRohit Agarwal 			msm_mux_gpio, /* gpio mode */			\
41*0f936752SRohit Agarwal 			msm_mux_##f1,					\
42*0f936752SRohit Agarwal 			msm_mux_##f2,					\
43*0f936752SRohit Agarwal 			msm_mux_##f3,					\
44*0f936752SRohit Agarwal 			msm_mux_##f4,					\
45*0f936752SRohit Agarwal 			msm_mux_##f5,					\
46*0f936752SRohit Agarwal 			msm_mux_##f6,					\
47*0f936752SRohit Agarwal 			msm_mux_##f7,					\
48*0f936752SRohit Agarwal 			msm_mux_##f8,					\
49*0f936752SRohit Agarwal 			msm_mux_##f9,					\
50*0f936752SRohit Agarwal 			msm_mux_##f10					\
51*0f936752SRohit Agarwal 		},							\
52*0f936752SRohit Agarwal 		.nfuncs = 11,						\
53*0f936752SRohit Agarwal 	}
54*0f936752SRohit Agarwal 
55*0f936752SRohit Agarwal #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)			\
56*0f936752SRohit Agarwal 	{								\
57*0f936752SRohit Agarwal 		.grp = PINCTRL_PINGROUP(#pg_name, pg_name##_pins,	\
58*0f936752SRohit Agarwal 			(unsigned int)ARRAY_SIZE(pg_name##_pins)),	\
59*0f936752SRohit Agarwal 		.ctl_reg = ctl,						\
60*0f936752SRohit Agarwal 		.io_reg = 0,						\
61*0f936752SRohit Agarwal 		.intr_cfg_reg = 0,					\
62*0f936752SRohit Agarwal 		.intr_status_reg = 0,					\
63*0f936752SRohit Agarwal 		.intr_target_reg = 0,					\
64*0f936752SRohit Agarwal 		.mux_bit = -1,						\
65*0f936752SRohit Agarwal 		.pull_bit = pull,					\
66*0f936752SRohit Agarwal 		.drv_bit = drv,						\
67*0f936752SRohit Agarwal 		.oe_bit = -1,						\
68*0f936752SRohit Agarwal 		.in_bit = -1,						\
69*0f936752SRohit Agarwal 		.out_bit = -1,						\
70*0f936752SRohit Agarwal 		.intr_enable_bit = -1,					\
71*0f936752SRohit Agarwal 		.intr_status_bit = -1,					\
72*0f936752SRohit Agarwal 		.intr_target_bit = -1,					\
73*0f936752SRohit Agarwal 		.intr_raw_status_bit = -1,				\
74*0f936752SRohit Agarwal 		.intr_polarity_bit = -1,				\
75*0f936752SRohit Agarwal 		.intr_detection_bit = -1,				\
76*0f936752SRohit Agarwal 		.intr_detection_width = -1,				\
77*0f936752SRohit Agarwal 	}
78*0f936752SRohit Agarwal 
79*0f936752SRohit Agarwal static const struct pinctrl_pin_desc sdx75_pins[] = {
80*0f936752SRohit Agarwal 	PINCTRL_PIN(0, "GPIO_0"),
81*0f936752SRohit Agarwal 	PINCTRL_PIN(1, "GPIO_1"),
82*0f936752SRohit Agarwal 	PINCTRL_PIN(2, "GPIO_2"),
83*0f936752SRohit Agarwal 	PINCTRL_PIN(3, "GPIO_3"),
84*0f936752SRohit Agarwal 	PINCTRL_PIN(4, "GPIO_4"),
85*0f936752SRohit Agarwal 	PINCTRL_PIN(5, "GPIO_5"),
86*0f936752SRohit Agarwal 	PINCTRL_PIN(6, "GPIO_6"),
87*0f936752SRohit Agarwal 	PINCTRL_PIN(7, "GPIO_7"),
88*0f936752SRohit Agarwal 	PINCTRL_PIN(8, "GPIO_8"),
89*0f936752SRohit Agarwal 	PINCTRL_PIN(9, "GPIO_9"),
90*0f936752SRohit Agarwal 	PINCTRL_PIN(10, "GPIO_10"),
91*0f936752SRohit Agarwal 	PINCTRL_PIN(11, "GPIO_11"),
92*0f936752SRohit Agarwal 	PINCTRL_PIN(12, "GPIO_12"),
93*0f936752SRohit Agarwal 	PINCTRL_PIN(13, "GPIO_13"),
94*0f936752SRohit Agarwal 	PINCTRL_PIN(14, "GPIO_14"),
95*0f936752SRohit Agarwal 	PINCTRL_PIN(15, "GPIO_15"),
96*0f936752SRohit Agarwal 	PINCTRL_PIN(16, "GPIO_16"),
97*0f936752SRohit Agarwal 	PINCTRL_PIN(17, "GPIO_17"),
98*0f936752SRohit Agarwal 	PINCTRL_PIN(18, "GPIO_18"),
99*0f936752SRohit Agarwal 	PINCTRL_PIN(19, "GPIO_19"),
100*0f936752SRohit Agarwal 	PINCTRL_PIN(20, "GPIO_20"),
101*0f936752SRohit Agarwal 	PINCTRL_PIN(21, "GPIO_21"),
102*0f936752SRohit Agarwal 	PINCTRL_PIN(22, "GPIO_22"),
103*0f936752SRohit Agarwal 	PINCTRL_PIN(23, "GPIO_23"),
104*0f936752SRohit Agarwal 	PINCTRL_PIN(24, "GPIO_24"),
105*0f936752SRohit Agarwal 	PINCTRL_PIN(25, "GPIO_25"),
106*0f936752SRohit Agarwal 	PINCTRL_PIN(26, "GPIO_26"),
107*0f936752SRohit Agarwal 	PINCTRL_PIN(27, "GPIO_27"),
108*0f936752SRohit Agarwal 	PINCTRL_PIN(28, "GPIO_28"),
109*0f936752SRohit Agarwal 	PINCTRL_PIN(29, "GPIO_29"),
110*0f936752SRohit Agarwal 	PINCTRL_PIN(30, "GPIO_30"),
111*0f936752SRohit Agarwal 	PINCTRL_PIN(31, "GPIO_31"),
112*0f936752SRohit Agarwal 	PINCTRL_PIN(32, "GPIO_32"),
113*0f936752SRohit Agarwal 	PINCTRL_PIN(33, "GPIO_33"),
114*0f936752SRohit Agarwal 	PINCTRL_PIN(34, "GPIO_34"),
115*0f936752SRohit Agarwal 	PINCTRL_PIN(35, "GPIO_35"),
116*0f936752SRohit Agarwal 	PINCTRL_PIN(36, "GPIO_36"),
117*0f936752SRohit Agarwal 	PINCTRL_PIN(37, "GPIO_37"),
118*0f936752SRohit Agarwal 	PINCTRL_PIN(38, "GPIO_38"),
119*0f936752SRohit Agarwal 	PINCTRL_PIN(39, "GPIO_39"),
120*0f936752SRohit Agarwal 	PINCTRL_PIN(40, "GPIO_40"),
121*0f936752SRohit Agarwal 	PINCTRL_PIN(41, "GPIO_41"),
122*0f936752SRohit Agarwal 	PINCTRL_PIN(42, "GPIO_42"),
123*0f936752SRohit Agarwal 	PINCTRL_PIN(43, "GPIO_43"),
124*0f936752SRohit Agarwal 	PINCTRL_PIN(44, "GPIO_44"),
125*0f936752SRohit Agarwal 	PINCTRL_PIN(45, "GPIO_45"),
126*0f936752SRohit Agarwal 	PINCTRL_PIN(46, "GPIO_46"),
127*0f936752SRohit Agarwal 	PINCTRL_PIN(47, "GPIO_47"),
128*0f936752SRohit Agarwal 	PINCTRL_PIN(48, "GPIO_48"),
129*0f936752SRohit Agarwal 	PINCTRL_PIN(49, "GPIO_49"),
130*0f936752SRohit Agarwal 	PINCTRL_PIN(50, "GPIO_50"),
131*0f936752SRohit Agarwal 	PINCTRL_PIN(51, "GPIO_51"),
132*0f936752SRohit Agarwal 	PINCTRL_PIN(52, "GPIO_52"),
133*0f936752SRohit Agarwal 	PINCTRL_PIN(53, "GPIO_53"),
134*0f936752SRohit Agarwal 	PINCTRL_PIN(54, "GPIO_54"),
135*0f936752SRohit Agarwal 	PINCTRL_PIN(55, "GPIO_55"),
136*0f936752SRohit Agarwal 	PINCTRL_PIN(56, "GPIO_56"),
137*0f936752SRohit Agarwal 	PINCTRL_PIN(57, "GPIO_57"),
138*0f936752SRohit Agarwal 	PINCTRL_PIN(58, "GPIO_58"),
139*0f936752SRohit Agarwal 	PINCTRL_PIN(59, "GPIO_59"),
140*0f936752SRohit Agarwal 	PINCTRL_PIN(60, "GPIO_60"),
141*0f936752SRohit Agarwal 	PINCTRL_PIN(61, "GPIO_61"),
142*0f936752SRohit Agarwal 	PINCTRL_PIN(62, "GPIO_62"),
143*0f936752SRohit Agarwal 	PINCTRL_PIN(63, "GPIO_63"),
144*0f936752SRohit Agarwal 	PINCTRL_PIN(64, "GPIO_64"),
145*0f936752SRohit Agarwal 	PINCTRL_PIN(65, "GPIO_65"),
146*0f936752SRohit Agarwal 	PINCTRL_PIN(66, "GPIO_66"),
147*0f936752SRohit Agarwal 	PINCTRL_PIN(67, "GPIO_67"),
148*0f936752SRohit Agarwal 	PINCTRL_PIN(68, "GPIO_68"),
149*0f936752SRohit Agarwal 	PINCTRL_PIN(69, "GPIO_69"),
150*0f936752SRohit Agarwal 	PINCTRL_PIN(70, "GPIO_70"),
151*0f936752SRohit Agarwal 	PINCTRL_PIN(71, "GPIO_71"),
152*0f936752SRohit Agarwal 	PINCTRL_PIN(72, "GPIO_72"),
153*0f936752SRohit Agarwal 	PINCTRL_PIN(73, "GPIO_73"),
154*0f936752SRohit Agarwal 	PINCTRL_PIN(74, "GPIO_74"),
155*0f936752SRohit Agarwal 	PINCTRL_PIN(75, "GPIO_75"),
156*0f936752SRohit Agarwal 	PINCTRL_PIN(76, "GPIO_76"),
157*0f936752SRohit Agarwal 	PINCTRL_PIN(77, "GPIO_77"),
158*0f936752SRohit Agarwal 	PINCTRL_PIN(78, "GPIO_78"),
159*0f936752SRohit Agarwal 	PINCTRL_PIN(79, "GPIO_79"),
160*0f936752SRohit Agarwal 	PINCTRL_PIN(80, "GPIO_80"),
161*0f936752SRohit Agarwal 	PINCTRL_PIN(81, "GPIO_81"),
162*0f936752SRohit Agarwal 	PINCTRL_PIN(82, "GPIO_82"),
163*0f936752SRohit Agarwal 	PINCTRL_PIN(83, "GPIO_83"),
164*0f936752SRohit Agarwal 	PINCTRL_PIN(84, "GPIO_84"),
165*0f936752SRohit Agarwal 	PINCTRL_PIN(85, "GPIO_85"),
166*0f936752SRohit Agarwal 	PINCTRL_PIN(86, "GPIO_86"),
167*0f936752SRohit Agarwal 	PINCTRL_PIN(87, "GPIO_87"),
168*0f936752SRohit Agarwal 	PINCTRL_PIN(88, "GPIO_88"),
169*0f936752SRohit Agarwal 	PINCTRL_PIN(89, "GPIO_89"),
170*0f936752SRohit Agarwal 	PINCTRL_PIN(90, "GPIO_90"),
171*0f936752SRohit Agarwal 	PINCTRL_PIN(91, "GPIO_91"),
172*0f936752SRohit Agarwal 	PINCTRL_PIN(92, "GPIO_92"),
173*0f936752SRohit Agarwal 	PINCTRL_PIN(93, "GPIO_93"),
174*0f936752SRohit Agarwal 	PINCTRL_PIN(94, "GPIO_94"),
175*0f936752SRohit Agarwal 	PINCTRL_PIN(95, "GPIO_95"),
176*0f936752SRohit Agarwal 	PINCTRL_PIN(96, "GPIO_96"),
177*0f936752SRohit Agarwal 	PINCTRL_PIN(97, "GPIO_97"),
178*0f936752SRohit Agarwal 	PINCTRL_PIN(98, "GPIO_98"),
179*0f936752SRohit Agarwal 	PINCTRL_PIN(99, "GPIO_99"),
180*0f936752SRohit Agarwal 	PINCTRL_PIN(100, "GPIO_100"),
181*0f936752SRohit Agarwal 	PINCTRL_PIN(101, "GPIO_101"),
182*0f936752SRohit Agarwal 	PINCTRL_PIN(102, "GPIO_102"),
183*0f936752SRohit Agarwal 	PINCTRL_PIN(103, "GPIO_103"),
184*0f936752SRohit Agarwal 	PINCTRL_PIN(104, "GPIO_104"),
185*0f936752SRohit Agarwal 	PINCTRL_PIN(105, "GPIO_105"),
186*0f936752SRohit Agarwal 	PINCTRL_PIN(106, "GPIO_106"),
187*0f936752SRohit Agarwal 	PINCTRL_PIN(107, "GPIO_107"),
188*0f936752SRohit Agarwal 	PINCTRL_PIN(108, "GPIO_108"),
189*0f936752SRohit Agarwal 	PINCTRL_PIN(109, "GPIO_109"),
190*0f936752SRohit Agarwal 	PINCTRL_PIN(110, "GPIO_110"),
191*0f936752SRohit Agarwal 	PINCTRL_PIN(111, "GPIO_111"),
192*0f936752SRohit Agarwal 	PINCTRL_PIN(112, "GPIO_112"),
193*0f936752SRohit Agarwal 	PINCTRL_PIN(113, "GPIO_113"),
194*0f936752SRohit Agarwal 	PINCTRL_PIN(114, "GPIO_114"),
195*0f936752SRohit Agarwal 	PINCTRL_PIN(115, "GPIO_115"),
196*0f936752SRohit Agarwal 	PINCTRL_PIN(116, "GPIO_116"),
197*0f936752SRohit Agarwal 	PINCTRL_PIN(117, "GPIO_117"),
198*0f936752SRohit Agarwal 	PINCTRL_PIN(118, "GPIO_118"),
199*0f936752SRohit Agarwal 	PINCTRL_PIN(119, "GPIO_119"),
200*0f936752SRohit Agarwal 	PINCTRL_PIN(120, "GPIO_120"),
201*0f936752SRohit Agarwal 	PINCTRL_PIN(121, "GPIO_121"),
202*0f936752SRohit Agarwal 	PINCTRL_PIN(122, "GPIO_122"),
203*0f936752SRohit Agarwal 	PINCTRL_PIN(123, "GPIO_123"),
204*0f936752SRohit Agarwal 	PINCTRL_PIN(124, "GPIO_124"),
205*0f936752SRohit Agarwal 	PINCTRL_PIN(125, "GPIO_125"),
206*0f936752SRohit Agarwal 	PINCTRL_PIN(126, "GPIO_126"),
207*0f936752SRohit Agarwal 	PINCTRL_PIN(127, "GPIO_127"),
208*0f936752SRohit Agarwal 	PINCTRL_PIN(128, "GPIO_128"),
209*0f936752SRohit Agarwal 	PINCTRL_PIN(129, "GPIO_129"),
210*0f936752SRohit Agarwal 	PINCTRL_PIN(130, "GPIO_130"),
211*0f936752SRohit Agarwal 	PINCTRL_PIN(131, "GPIO_131"),
212*0f936752SRohit Agarwal 	PINCTRL_PIN(132, "GPIO_132"),
213*0f936752SRohit Agarwal 	PINCTRL_PIN(133, "SDC1_RCLK"),
214*0f936752SRohit Agarwal 	PINCTRL_PIN(134, "SDC1_CLK"),
215*0f936752SRohit Agarwal 	PINCTRL_PIN(135, "SDC1_CMD"),
216*0f936752SRohit Agarwal 	PINCTRL_PIN(136, "SDC1_DATA"),
217*0f936752SRohit Agarwal 	PINCTRL_PIN(137, "SDC2_CLK"),
218*0f936752SRohit Agarwal 	PINCTRL_PIN(138, "SDC2_CMD"),
219*0f936752SRohit Agarwal 	PINCTRL_PIN(139, "SDC2_DATA"),
220*0f936752SRohit Agarwal };
221*0f936752SRohit Agarwal 
222*0f936752SRohit Agarwal #define DECLARE_MSM_GPIO_PINS(pin)			 \
223*0f936752SRohit Agarwal 	static const unsigned int gpio##pin##_pins[] = {pin}
224*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(0);
225*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(1);
226*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(2);
227*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(3);
228*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(4);
229*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(5);
230*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(6);
231*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(7);
232*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(8);
233*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(9);
234*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(10);
235*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(11);
236*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(12);
237*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(13);
238*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(14);
239*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(15);
240*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(16);
241*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(17);
242*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(18);
243*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(19);
244*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(20);
245*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(21);
246*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(22);
247*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(23);
248*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(24);
249*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(25);
250*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(26);
251*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(27);
252*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(28);
253*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(29);
254*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(30);
255*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(31);
256*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(32);
257*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(33);
258*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(34);
259*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(35);
260*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(36);
261*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(37);
262*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(38);
263*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(39);
264*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(40);
265*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(41);
266*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(42);
267*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(43);
268*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(44);
269*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(45);
270*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(46);
271*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(47);
272*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(48);
273*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(49);
274*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(50);
275*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(51);
276*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(52);
277*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(53);
278*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(54);
279*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(55);
280*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(56);
281*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(57);
282*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(58);
283*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(59);
284*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(60);
285*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(61);
286*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(62);
287*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(63);
288*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(64);
289*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(65);
290*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(66);
291*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(67);
292*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(68);
293*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(69);
294*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(70);
295*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(71);
296*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(72);
297*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(73);
298*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(74);
299*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(75);
300*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(76);
301*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(77);
302*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(78);
303*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(79);
304*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(80);
305*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(81);
306*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(82);
307*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(83);
308*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(84);
309*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(85);
310*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(86);
311*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(87);
312*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(88);
313*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(89);
314*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(90);
315*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(91);
316*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(92);
317*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(93);
318*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(94);
319*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(95);
320*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(96);
321*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(97);
322*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(98);
323*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(99);
324*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(100);
325*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(101);
326*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(102);
327*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(103);
328*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(104);
329*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(105);
330*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(106);
331*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(107);
332*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(108);
333*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(109);
334*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(110);
335*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(111);
336*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(112);
337*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(113);
338*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(114);
339*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(115);
340*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(116);
341*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(117);
342*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(118);
343*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(119);
344*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(120);
345*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(121);
346*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(122);
347*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(123);
348*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(124);
349*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(125);
350*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(126);
351*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(127);
352*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(128);
353*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(129);
354*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(130);
355*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(131);
356*0f936752SRohit Agarwal DECLARE_MSM_GPIO_PINS(132);
357*0f936752SRohit Agarwal 
358*0f936752SRohit Agarwal static const unsigned int sdc1_rclk_pins[] = {133};
359*0f936752SRohit Agarwal static const unsigned int sdc1_clk_pins[] = {134};
360*0f936752SRohit Agarwal static const unsigned int sdc1_cmd_pins[] = {135};
361*0f936752SRohit Agarwal static const unsigned int sdc1_data_pins[] = {136};
362*0f936752SRohit Agarwal static const unsigned int sdc2_clk_pins[] = {137};
363*0f936752SRohit Agarwal static const unsigned int sdc2_cmd_pins[] = {138};
364*0f936752SRohit Agarwal static const unsigned int sdc2_data_pins[] = {139};
365*0f936752SRohit Agarwal 
366*0f936752SRohit Agarwal enum sdx75_functions {
367*0f936752SRohit Agarwal 	msm_mux_adsp_ext,
368*0f936752SRohit Agarwal 	msm_mux_atest_char,
369*0f936752SRohit Agarwal 	msm_mux_audio_ref_clk,
370*0f936752SRohit Agarwal 	msm_mux_bimc_dte,
371*0f936752SRohit Agarwal 	msm_mux_char_exec,
372*0f936752SRohit Agarwal 	msm_mux_coex_uart2,
373*0f936752SRohit Agarwal 	msm_mux_coex_uart,
374*0f936752SRohit Agarwal 	msm_mux_cri_trng,
375*0f936752SRohit Agarwal 	msm_mux_cri_trng0,
376*0f936752SRohit Agarwal 	msm_mux_cri_trng1,
377*0f936752SRohit Agarwal 	msm_mux_dbg_out_clk,
378*0f936752SRohit Agarwal 	msm_mux_ddr_bist,
379*0f936752SRohit Agarwal 	msm_mux_ddr_pxi0,
380*0f936752SRohit Agarwal 	msm_mux_ebi0_wrcdc,
381*0f936752SRohit Agarwal 	msm_mux_ebi2_a,
382*0f936752SRohit Agarwal 	msm_mux_ebi2_lcd,
383*0f936752SRohit Agarwal 	msm_mux_ebi2_lcd_te,
384*0f936752SRohit Agarwal 	msm_mux_emac0_mcg,
385*0f936752SRohit Agarwal 	msm_mux_emac0_ptp,
386*0f936752SRohit Agarwal 	msm_mux_emac1_mcg,
387*0f936752SRohit Agarwal 	msm_mux_emac1_ptp,
388*0f936752SRohit Agarwal 	msm_mux_emac_cdc,
389*0f936752SRohit Agarwal 	msm_mux_emac_pps_in,
390*0f936752SRohit Agarwal 	msm_mux_eth0_mdc,
391*0f936752SRohit Agarwal 	msm_mux_eth0_mdio,
392*0f936752SRohit Agarwal 	msm_mux_eth1_mdc,
393*0f936752SRohit Agarwal 	msm_mux_eth1_mdio,
394*0f936752SRohit Agarwal 	msm_mux_ext_dbg,
395*0f936752SRohit Agarwal 	msm_mux_gcc_125_clk,
396*0f936752SRohit Agarwal 	msm_mux_gcc_gp1_clk,
397*0f936752SRohit Agarwal 	msm_mux_gcc_gp2_clk,
398*0f936752SRohit Agarwal 	msm_mux_gcc_gp3_clk,
399*0f936752SRohit Agarwal 	msm_mux_gcc_plltest,
400*0f936752SRohit Agarwal 	msm_mux_gpio,
401*0f936752SRohit Agarwal 	msm_mux_i2s_mclk,
402*0f936752SRohit Agarwal 	msm_mux_jitter_bist,
403*0f936752SRohit Agarwal 	msm_mux_ldo_en,
404*0f936752SRohit Agarwal 	msm_mux_ldo_update,
405*0f936752SRohit Agarwal 	msm_mux_m_voc,
406*0f936752SRohit Agarwal 	msm_mux_mgpi_clk,
407*0f936752SRohit Agarwal 	msm_mux_native_char,
408*0f936752SRohit Agarwal 	msm_mux_native_tsens,
409*0f936752SRohit Agarwal 	msm_mux_native_tsense,
410*0f936752SRohit Agarwal 	msm_mux_nav_dr_sync,
411*0f936752SRohit Agarwal 	msm_mux_nav_gpio,
412*0f936752SRohit Agarwal 	msm_mux_pa_indicator,
413*0f936752SRohit Agarwal 	msm_mux_pci_e,
414*0f936752SRohit Agarwal 	msm_mux_pcie0_clkreq_n,
415*0f936752SRohit Agarwal 	msm_mux_pcie1_clkreq_n,
416*0f936752SRohit Agarwal 	msm_mux_pcie2_clkreq_n,
417*0f936752SRohit Agarwal 	msm_mux_pll_bist_sync,
418*0f936752SRohit Agarwal 	msm_mux_pll_clk_aux,
419*0f936752SRohit Agarwal 	msm_mux_pll_ref_clk,
420*0f936752SRohit Agarwal 	msm_mux_pri_mi2s,
421*0f936752SRohit Agarwal 	msm_mux_prng_rosc,
422*0f936752SRohit Agarwal 	msm_mux_qdss_cti,
423*0f936752SRohit Agarwal 	msm_mux_qdss_gpio,
424*0f936752SRohit Agarwal 	msm_mux_qlink0_b_en,
425*0f936752SRohit Agarwal 	msm_mux_qlink0_b_req,
426*0f936752SRohit Agarwal 	msm_mux_qlink0_l_en,
427*0f936752SRohit Agarwal 	msm_mux_qlink0_l_req,
428*0f936752SRohit Agarwal 	msm_mux_qlink0_wmss,
429*0f936752SRohit Agarwal 	msm_mux_qlink1_l_en,
430*0f936752SRohit Agarwal 	msm_mux_qlink1_l_req,
431*0f936752SRohit Agarwal 	msm_mux_qlink1_wmss,
432*0f936752SRohit Agarwal 	msm_mux_qup_se0,
433*0f936752SRohit Agarwal 	msm_mux_qup_se1_l2_mira,
434*0f936752SRohit Agarwal 	msm_mux_qup_se1_l2_mirb,
435*0f936752SRohit Agarwal 	msm_mux_qup_se1_l3_mira,
436*0f936752SRohit Agarwal 	msm_mux_qup_se1_l3_mirb,
437*0f936752SRohit Agarwal 	msm_mux_qup_se2,
438*0f936752SRohit Agarwal 	msm_mux_qup_se3,
439*0f936752SRohit Agarwal 	msm_mux_qup_se4,
440*0f936752SRohit Agarwal 	msm_mux_qup_se5,
441*0f936752SRohit Agarwal 	msm_mux_qup_se6,
442*0f936752SRohit Agarwal 	msm_mux_qup_se7,
443*0f936752SRohit Agarwal 	msm_mux_qup_se8,
444*0f936752SRohit Agarwal 	msm_mux_rgmii_rx_ctl,
445*0f936752SRohit Agarwal 	msm_mux_rgmii_rxc,
446*0f936752SRohit Agarwal 	msm_mux_rgmii_rxd,
447*0f936752SRohit Agarwal 	msm_mux_rgmii_tx_ctl,
448*0f936752SRohit Agarwal 	msm_mux_rgmii_txc,
449*0f936752SRohit Agarwal 	msm_mux_rgmii_txd,
450*0f936752SRohit Agarwal 	msm_mux_sd_card,
451*0f936752SRohit Agarwal 	msm_mux_sdc1_tb,
452*0f936752SRohit Agarwal 	msm_mux_sdc2_tb_trig,
453*0f936752SRohit Agarwal 	msm_mux_sec_mi2s,
454*0f936752SRohit Agarwal 	msm_mux_sgmii_phy_intr0_n,
455*0f936752SRohit Agarwal 	msm_mux_sgmii_phy_intr1_n,
456*0f936752SRohit Agarwal 	msm_mux_spmi_coex,
457*0f936752SRohit Agarwal 	msm_mux_spmi_vgi,
458*0f936752SRohit Agarwal 	msm_mux_tgu_ch0_trigout,
459*0f936752SRohit Agarwal 	msm_mux_tmess_prng0,
460*0f936752SRohit Agarwal 	msm_mux_tmess_prng1,
461*0f936752SRohit Agarwal 	msm_mux_tmess_prng2,
462*0f936752SRohit Agarwal 	msm_mux_tmess_prng3,
463*0f936752SRohit Agarwal 	msm_mux_tri_mi2s,
464*0f936752SRohit Agarwal 	msm_mux_uim1_clk,
465*0f936752SRohit Agarwal 	msm_mux_uim1_data,
466*0f936752SRohit Agarwal 	msm_mux_uim1_present,
467*0f936752SRohit Agarwal 	msm_mux_uim1_reset,
468*0f936752SRohit Agarwal 	msm_mux_uim2_clk,
469*0f936752SRohit Agarwal 	msm_mux_uim2_data,
470*0f936752SRohit Agarwal 	msm_mux_uim2_present,
471*0f936752SRohit Agarwal 	msm_mux_uim2_reset,
472*0f936752SRohit Agarwal 	msm_mux_usb2phy_ac_en,
473*0f936752SRohit Agarwal 	msm_mux_vsense_trigger_mirnat,
474*0f936752SRohit Agarwal 	msm_mux__,
475*0f936752SRohit Agarwal };
476*0f936752SRohit Agarwal 
477*0f936752SRohit Agarwal static const char *const gpio_groups[] = {
478*0f936752SRohit Agarwal 	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6",
479*0f936752SRohit Agarwal 	"gpio7", "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13",
480*0f936752SRohit Agarwal 	"gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20",
481*0f936752SRohit Agarwal 	"gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27",
482*0f936752SRohit Agarwal 	"gpio28", "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34",
483*0f936752SRohit Agarwal 	"gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
484*0f936752SRohit Agarwal 	"gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48",
485*0f936752SRohit Agarwal 	"gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55",
486*0f936752SRohit Agarwal 	"gpio56", "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62",
487*0f936752SRohit Agarwal 	"gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69",
488*0f936752SRohit Agarwal 	"gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76",
489*0f936752SRohit Agarwal 	"gpio77", "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
490*0f936752SRohit Agarwal 	"gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90",
491*0f936752SRohit Agarwal 	"gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97",
492*0f936752SRohit Agarwal 	"gpio98", "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
493*0f936752SRohit Agarwal 	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", "gpio111",
494*0f936752SRohit Agarwal 	"gpio112", "gpio113", "gpio114", "gpio115", "gpio116", "gpio117", "gpio118",
495*0f936752SRohit Agarwal 	"gpio119", "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
496*0f936752SRohit Agarwal 	"gpio126", "gpio127", "gpio128", "gpio129", "gpio130", "gpio131", "gpio132",
497*0f936752SRohit Agarwal };
498*0f936752SRohit Agarwal static const char *const adsp_ext_groups[] = {
499*0f936752SRohit Agarwal 	"gpio59", "gpio68",
500*0f936752SRohit Agarwal };
501*0f936752SRohit Agarwal static const char *const atest_char_groups[] = {
502*0f936752SRohit Agarwal 	"gpio24", "gpio25", "gpio26", "gpio41", "gpio63",
503*0f936752SRohit Agarwal };
504*0f936752SRohit Agarwal static const char *const audio_ref_clk_groups[] = {
505*0f936752SRohit Agarwal 	"gpio126",
506*0f936752SRohit Agarwal };
507*0f936752SRohit Agarwal static const char *const bimc_dte_groups[] = {
508*0f936752SRohit Agarwal 	"gpio14", "gpio15", "gpio61", "gpio59",
509*0f936752SRohit Agarwal };
510*0f936752SRohit Agarwal static const char *const char_exec_groups[] = {
511*0f936752SRohit Agarwal 	"gpio6", "gpio7",
512*0f936752SRohit Agarwal };
513*0f936752SRohit Agarwal static const char *const coex_uart2_groups[] = {
514*0f936752SRohit Agarwal 	"gpio48", "gpio49", "gpio90", "gpio91",
515*0f936752SRohit Agarwal };
516*0f936752SRohit Agarwal static const char *const coex_uart_groups[] = {
517*0f936752SRohit Agarwal 	"gpio46", "gpio47",
518*0f936752SRohit Agarwal };
519*0f936752SRohit Agarwal static const char *const cri_trng_groups[] = {
520*0f936752SRohit Agarwal 	"gpio36",
521*0f936752SRohit Agarwal };
522*0f936752SRohit Agarwal static const char *const cri_trng0_groups[] = {
523*0f936752SRohit Agarwal 	"gpio31",
524*0f936752SRohit Agarwal };
525*0f936752SRohit Agarwal static const char *const cri_trng1_groups[] = {
526*0f936752SRohit Agarwal 	"gpio32",
527*0f936752SRohit Agarwal };
528*0f936752SRohit Agarwal static const char *const dbg_out_clk_groups[] = {
529*0f936752SRohit Agarwal 	"gpio26",
530*0f936752SRohit Agarwal };
531*0f936752SRohit Agarwal static const char *const ddr_bist_groups[] = {
532*0f936752SRohit Agarwal 	"gpio46", "gpio47", "gpio48", "gpio49",
533*0f936752SRohit Agarwal };
534*0f936752SRohit Agarwal static const char *const ddr_pxi0_groups[] = {
535*0f936752SRohit Agarwal 	"gpio45", "gpio46",
536*0f936752SRohit Agarwal };
537*0f936752SRohit Agarwal static const char *const ebi0_wrcdc_groups[] = {
538*0f936752SRohit Agarwal 	"gpio0", "gpio2",
539*0f936752SRohit Agarwal };
540*0f936752SRohit Agarwal static const char *const ebi2_a_groups[] = {
541*0f936752SRohit Agarwal 	"gpio100",
542*0f936752SRohit Agarwal };
543*0f936752SRohit Agarwal static const char *const ebi2_lcd_groups[] = {
544*0f936752SRohit Agarwal 	"gpio99", "gpio101",
545*0f936752SRohit Agarwal };
546*0f936752SRohit Agarwal static const char *const ebi2_lcd_te_groups[] = {
547*0f936752SRohit Agarwal 	"gpio98",
548*0f936752SRohit Agarwal };
549*0f936752SRohit Agarwal static const char *const emac0_mcg_groups[] = {
550*0f936752SRohit Agarwal 	"gpio83", "gpio84", "gpio85", "gpio89",
551*0f936752SRohit Agarwal };
552*0f936752SRohit Agarwal static const char *const emac0_ptp_groups[] = {
553*0f936752SRohit Agarwal 	"gpio35", "gpio83", "gpio84", "gpio85", "gpio89", "gpio119", "gpio123",
554*0f936752SRohit Agarwal };
555*0f936752SRohit Agarwal static const char *const emac1_mcg_groups[] = {
556*0f936752SRohit Agarwal 	"gpio90", "gpio92", "gpio93", "gpio122",
557*0f936752SRohit Agarwal };
558*0f936752SRohit Agarwal static const char *const emac1_ptp_groups[] = {
559*0f936752SRohit Agarwal 	"gpio112", "gpio113", "gpio114", "gpio115",
560*0f936752SRohit Agarwal };
561*0f936752SRohit Agarwal static const char *const emac_cdc_groups[] = {
562*0f936752SRohit Agarwal 	"gpio38", "gpio39",
563*0f936752SRohit Agarwal };
564*0f936752SRohit Agarwal static const char *const emac_pps_in_groups[] = {
565*0f936752SRohit Agarwal 	"gpio127",
566*0f936752SRohit Agarwal };
567*0f936752SRohit Agarwal static const char *const eth0_mdc_groups[] = {
568*0f936752SRohit Agarwal 	"gpio94",
569*0f936752SRohit Agarwal };
570*0f936752SRohit Agarwal static const char *const eth0_mdio_groups[] = {
571*0f936752SRohit Agarwal 	"gpio95",
572*0f936752SRohit Agarwal };
573*0f936752SRohit Agarwal static const char *const eth1_mdc_groups[] = {
574*0f936752SRohit Agarwal 	"gpio106",
575*0f936752SRohit Agarwal };
576*0f936752SRohit Agarwal static const char *const eth1_mdio_groups[] = {
577*0f936752SRohit Agarwal 	"gpio107",
578*0f936752SRohit Agarwal };
579*0f936752SRohit Agarwal static const char *const ext_dbg_groups[] = {
580*0f936752SRohit Agarwal 	"gpio12", "gpio13", "gpio14", "gpio15",
581*0f936752SRohit Agarwal };
582*0f936752SRohit Agarwal static const char *const gcc_125_clk_groups[] = {
583*0f936752SRohit Agarwal 	"gpio25",
584*0f936752SRohit Agarwal };
585*0f936752SRohit Agarwal static const char *const gcc_gp1_clk_groups[] = {
586*0f936752SRohit Agarwal 	"gpio39",
587*0f936752SRohit Agarwal };
588*0f936752SRohit Agarwal static const char *const gcc_gp2_clk_groups[] = {
589*0f936752SRohit Agarwal 	"gpio40",
590*0f936752SRohit Agarwal };
591*0f936752SRohit Agarwal static const char *const gcc_gp3_clk_groups[] = {
592*0f936752SRohit Agarwal 	"gpio41",
593*0f936752SRohit Agarwal };
594*0f936752SRohit Agarwal static const char *const gcc_plltest_groups[] = {
595*0f936752SRohit Agarwal 	"gpio81", "gpio82",
596*0f936752SRohit Agarwal };
597*0f936752SRohit Agarwal static const char *const i2s_mclk_groups[] = {
598*0f936752SRohit Agarwal 	"gpio74",
599*0f936752SRohit Agarwal };
600*0f936752SRohit Agarwal static const char *const jitter_bist_groups[] = {
601*0f936752SRohit Agarwal 	"gpio41",
602*0f936752SRohit Agarwal };
603*0f936752SRohit Agarwal static const char *const ldo_en_groups[] = {
604*0f936752SRohit Agarwal 	"gpio8",
605*0f936752SRohit Agarwal };
606*0f936752SRohit Agarwal static const char *const ldo_update_groups[] = {
607*0f936752SRohit Agarwal 	"gpio62",
608*0f936752SRohit Agarwal };
609*0f936752SRohit Agarwal static const char *const m_voc_groups[] = {
610*0f936752SRohit Agarwal 	"gpio62", "gpio63", "gpio64", "gpio65", "gpio71",
611*0f936752SRohit Agarwal };
612*0f936752SRohit Agarwal static const char *const mgpi_clk_groups[] = {
613*0f936752SRohit Agarwal 	"gpio39", "gpio40",
614*0f936752SRohit Agarwal };
615*0f936752SRohit Agarwal static const char *const native_char_groups[] = {
616*0f936752SRohit Agarwal 	"gpio29", "gpio33", "gpio57", "gpio66", "gpio67",
617*0f936752SRohit Agarwal };
618*0f936752SRohit Agarwal static const char *const native_tsens_groups[] = {
619*0f936752SRohit Agarwal 	"gpio38",
620*0f936752SRohit Agarwal };
621*0f936752SRohit Agarwal static const char *const native_tsense_groups[] = {
622*0f936752SRohit Agarwal 	"gpio64", "gpio76",
623*0f936752SRohit Agarwal };
624*0f936752SRohit Agarwal static const char *const nav_dr_sync_groups[] = {
625*0f936752SRohit Agarwal 	"gpio36",
626*0f936752SRohit Agarwal };
627*0f936752SRohit Agarwal static const char *const nav_gpio_groups[] = {
628*0f936752SRohit Agarwal 	"gpio35", "gpio36", "gpio104",
629*0f936752SRohit Agarwal };
630*0f936752SRohit Agarwal static const char *const pa_indicator_groups[] = {
631*0f936752SRohit Agarwal 	"gpio58",
632*0f936752SRohit Agarwal };
633*0f936752SRohit Agarwal static const char *const pci_e_groups[] = {
634*0f936752SRohit Agarwal 	"gpio42",
635*0f936752SRohit Agarwal };
636*0f936752SRohit Agarwal static const char *const pcie0_clkreq_n_groups[] = {
637*0f936752SRohit Agarwal 	"gpio43",
638*0f936752SRohit Agarwal };
639*0f936752SRohit Agarwal static const char *const pcie1_clkreq_n_groups[] = {
640*0f936752SRohit Agarwal 	"gpio124",
641*0f936752SRohit Agarwal };
642*0f936752SRohit Agarwal static const char *const pcie2_clkreq_n_groups[] = {
643*0f936752SRohit Agarwal 	"gpio121",
644*0f936752SRohit Agarwal };
645*0f936752SRohit Agarwal static const char *const pll_bist_sync_groups[] = {
646*0f936752SRohit Agarwal 	"gpio38",
647*0f936752SRohit Agarwal };
648*0f936752SRohit Agarwal static const char *const pll_clk_aux_groups[] = {
649*0f936752SRohit Agarwal 	"gpio40",
650*0f936752SRohit Agarwal };
651*0f936752SRohit Agarwal static const char *const pll_ref_clk_groups[] = {
652*0f936752SRohit Agarwal 	"gpio37",
653*0f936752SRohit Agarwal };
654*0f936752SRohit Agarwal static const char *const pri_mi2s_groups[] = {
655*0f936752SRohit Agarwal 	"gpio16", "gpio17", "gpio18", "gpio19",
656*0f936752SRohit Agarwal };
657*0f936752SRohit Agarwal static const char *const prng_rosc_groups[] = {
658*0f936752SRohit Agarwal 	"gpio27", "gpio36", "gpio37", "gpio38",
659*0f936752SRohit Agarwal };
660*0f936752SRohit Agarwal static const char *const qdss_cti_groups[] = {
661*0f936752SRohit Agarwal 	"gpio16", "gpio17", "gpio52", "gpio53", "gpio56",
662*0f936752SRohit Agarwal 	"gpio57", "gpio59", "gpio60", "gpio78", "gpio79",
663*0f936752SRohit Agarwal };
664*0f936752SRohit Agarwal static const char *const qdss_gpio_groups[] = {
665*0f936752SRohit Agarwal 	"gpio82", "gpio83", "gpio84", "gpio85", "gpio94",
666*0f936752SRohit Agarwal 	"gpio95", "gpio96", "gpio97", "gpio110", "gpio111",
667*0f936752SRohit Agarwal 	"gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
668*0f936752SRohit Agarwal 	"gpio117", "gpio118", "gpio119",
669*0f936752SRohit Agarwal };
670*0f936752SRohit Agarwal static const char *const qlink0_b_en_groups[] = {
671*0f936752SRohit Agarwal 	"gpio40",
672*0f936752SRohit Agarwal };
673*0f936752SRohit Agarwal static const char *const qlink0_b_req_groups[] = {
674*0f936752SRohit Agarwal 	"gpio41",
675*0f936752SRohit Agarwal };
676*0f936752SRohit Agarwal static const char *const qlink0_l_en_groups[] = {
677*0f936752SRohit Agarwal 	"gpio37",
678*0f936752SRohit Agarwal };
679*0f936752SRohit Agarwal static const char *const qlink0_l_req_groups[] = {
680*0f936752SRohit Agarwal 	"gpio38",
681*0f936752SRohit Agarwal };
682*0f936752SRohit Agarwal static const char *const qlink0_wmss_groups[] = {
683*0f936752SRohit Agarwal 	"gpio39",
684*0f936752SRohit Agarwal };
685*0f936752SRohit Agarwal static const char *const qlink1_l_en_groups[] = {
686*0f936752SRohit Agarwal 	"gpio26",
687*0f936752SRohit Agarwal };
688*0f936752SRohit Agarwal static const char *const qlink1_l_req_groups[] = {
689*0f936752SRohit Agarwal 	"gpio27",
690*0f936752SRohit Agarwal };
691*0f936752SRohit Agarwal static const char *const qlink1_wmss_groups[] = {
692*0f936752SRohit Agarwal 	"gpio28",
693*0f936752SRohit Agarwal };
694*0f936752SRohit Agarwal static const char *const qup_se0_groups[] = {
695*0f936752SRohit Agarwal 	"gpio8", "gpio9", "gpio10", "gpio11",
696*0f936752SRohit Agarwal };
697*0f936752SRohit Agarwal static const char *const qup_se1_l2_mira_groups[] = {
698*0f936752SRohit Agarwal 	"gpio12",
699*0f936752SRohit Agarwal };
700*0f936752SRohit Agarwal static const char *const qup_se1_l2_mirb_groups[] = {
701*0f936752SRohit Agarwal 	"gpio16",
702*0f936752SRohit Agarwal };
703*0f936752SRohit Agarwal static const char *const qup_se1_l3_mira_groups[] = {
704*0f936752SRohit Agarwal 	"gpio13",
705*0f936752SRohit Agarwal };
706*0f936752SRohit Agarwal static const char *const qup_se1_l3_mirb_groups[] = {
707*0f936752SRohit Agarwal 	"gpio17",
708*0f936752SRohit Agarwal };
709*0f936752SRohit Agarwal static const char *const qup_se2_groups[] = {
710*0f936752SRohit Agarwal 	"gpio14", "gpio15", "gpio16", "gpio17",
711*0f936752SRohit Agarwal };
712*0f936752SRohit Agarwal static const char *const qup_se3_groups[] = {
713*0f936752SRohit Agarwal 	"gpio52", "gpio53", "gpio54", "gpio55",
714*0f936752SRohit Agarwal };
715*0f936752SRohit Agarwal static const char *const qup_se4_groups[] = {
716*0f936752SRohit Agarwal 	"gpio64", "gpio65",
717*0f936752SRohit Agarwal };
718*0f936752SRohit Agarwal static const char *const qup_se5_groups[] = {
719*0f936752SRohit Agarwal 	"gpio110", "gpio111",
720*0f936752SRohit Agarwal };
721*0f936752SRohit Agarwal static const char *const qup_se6_groups[] = {
722*0f936752SRohit Agarwal 	"gpio112", "gpio113", "gpio114", "gpio115",
723*0f936752SRohit Agarwal };
724*0f936752SRohit Agarwal static const char *const qup_se7_groups[] = {
725*0f936752SRohit Agarwal 	"gpio116", "gpio117", "gpio118", "gpio119",
726*0f936752SRohit Agarwal };
727*0f936752SRohit Agarwal static const char *const qup_se8_groups[] = {
728*0f936752SRohit Agarwal 	"gpio124", "gpio125",
729*0f936752SRohit Agarwal };
730*0f936752SRohit Agarwal static const char *const rgmii_rx_ctl_groups[] = {
731*0f936752SRohit Agarwal 	"gpio93",
732*0f936752SRohit Agarwal };
733*0f936752SRohit Agarwal static const char *const rgmii_rxc_groups[] = {
734*0f936752SRohit Agarwal 	"gpio88",
735*0f936752SRohit Agarwal };
736*0f936752SRohit Agarwal static const char *const rgmii_rxd_groups[] = {
737*0f936752SRohit Agarwal 	"gpio89", "gpio90", "gpio91", "gpio92",
738*0f936752SRohit Agarwal };
739*0f936752SRohit Agarwal static const char *const rgmii_tx_ctl_groups[] = {
740*0f936752SRohit Agarwal 	"gpio87",
741*0f936752SRohit Agarwal };
742*0f936752SRohit Agarwal static const char *const rgmii_txc_groups[] = {
743*0f936752SRohit Agarwal 	"gpio82",
744*0f936752SRohit Agarwal };
745*0f936752SRohit Agarwal static const char *const rgmii_txd_groups[] = {
746*0f936752SRohit Agarwal 	"gpio83", "gpio84", "gpio85", "gpio86",
747*0f936752SRohit Agarwal };
748*0f936752SRohit Agarwal static const char *const sd_card_groups[] = {
749*0f936752SRohit Agarwal 	"gpio105",
750*0f936752SRohit Agarwal };
751*0f936752SRohit Agarwal static const char *const sdc1_tb_groups[] = {
752*0f936752SRohit Agarwal 	"gpio84", "gpio130",
753*0f936752SRohit Agarwal };
754*0f936752SRohit Agarwal static const char *const sdc2_tb_trig_groups[] = {
755*0f936752SRohit Agarwal 	"gpio129",
756*0f936752SRohit Agarwal };
757*0f936752SRohit Agarwal static const char *const sec_mi2s_groups[] = {
758*0f936752SRohit Agarwal 	"gpio20", "gpio21", "gpio22", "gpio23",
759*0f936752SRohit Agarwal };
760*0f936752SRohit Agarwal static const char *const sgmii_phy_intr0_n_groups[] = {
761*0f936752SRohit Agarwal 	"gpio97",
762*0f936752SRohit Agarwal };
763*0f936752SRohit Agarwal static const char *const sgmii_phy_intr1_n_groups[] = {
764*0f936752SRohit Agarwal 	"gpio109",
765*0f936752SRohit Agarwal };
766*0f936752SRohit Agarwal static const char *const spmi_coex_groups[] = {
767*0f936752SRohit Agarwal 	"gpio48", "gpio49",
768*0f936752SRohit Agarwal };
769*0f936752SRohit Agarwal static const char *const spmi_vgi_groups[] = {
770*0f936752SRohit Agarwal 	"gpio50", "gpio51",
771*0f936752SRohit Agarwal };
772*0f936752SRohit Agarwal static const char *const tgu_ch0_trigout_groups[] = {
773*0f936752SRohit Agarwal 	"gpio55",
774*0f936752SRohit Agarwal };
775*0f936752SRohit Agarwal static const char *const tmess_prng0_groups[] = {
776*0f936752SRohit Agarwal 	"gpio28",
777*0f936752SRohit Agarwal };
778*0f936752SRohit Agarwal static const char *const tmess_prng1_groups[] = {
779*0f936752SRohit Agarwal 	"gpio29",
780*0f936752SRohit Agarwal };
781*0f936752SRohit Agarwal static const char *const tmess_prng2_groups[] = {
782*0f936752SRohit Agarwal 	"gpio30",
783*0f936752SRohit Agarwal };
784*0f936752SRohit Agarwal static const char *const tmess_prng3_groups[] = {
785*0f936752SRohit Agarwal 	"gpio31",
786*0f936752SRohit Agarwal };
787*0f936752SRohit Agarwal static const char *const tri_mi2s_groups[] = {
788*0f936752SRohit Agarwal 	"gpio98", "gpio99", "gpio100", "gpio101",
789*0f936752SRohit Agarwal };
790*0f936752SRohit Agarwal static const char *const uim1_clk_groups[] = {
791*0f936752SRohit Agarwal 	"gpio7",
792*0f936752SRohit Agarwal };
793*0f936752SRohit Agarwal static const char *const uim1_data_groups[] = {
794*0f936752SRohit Agarwal 	"gpio4",
795*0f936752SRohit Agarwal };
796*0f936752SRohit Agarwal static const char *const uim1_present_groups[] = {
797*0f936752SRohit Agarwal 	"gpio5",
798*0f936752SRohit Agarwal };
799*0f936752SRohit Agarwal static const char *const uim1_reset_groups[] = {
800*0f936752SRohit Agarwal 	"gpio6",
801*0f936752SRohit Agarwal };
802*0f936752SRohit Agarwal static const char *const uim2_clk_groups[] = {
803*0f936752SRohit Agarwal 	"gpio3",
804*0f936752SRohit Agarwal };
805*0f936752SRohit Agarwal static const char *const uim2_data_groups[] = {
806*0f936752SRohit Agarwal 	"gpio0",
807*0f936752SRohit Agarwal };
808*0f936752SRohit Agarwal static const char *const uim2_present_groups[] = {
809*0f936752SRohit Agarwal 	"gpio1",
810*0f936752SRohit Agarwal };
811*0f936752SRohit Agarwal static const char *const uim2_reset_groups[] = {
812*0f936752SRohit Agarwal 	"gpio2",
813*0f936752SRohit Agarwal };
814*0f936752SRohit Agarwal static const char *const usb2phy_ac_en_groups[] = {
815*0f936752SRohit Agarwal 	"gpio80",
816*0f936752SRohit Agarwal };
817*0f936752SRohit Agarwal static const char *const vsense_trigger_mirnat_groups[] = {
818*0f936752SRohit Agarwal 	"gpio37",
819*0f936752SRohit Agarwal };
820*0f936752SRohit Agarwal 
821*0f936752SRohit Agarwal static const struct pinfunction sdx75_functions[] = {
822*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(adsp_ext),
823*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(atest_char),
824*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(audio_ref_clk),
825*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(bimc_dte),
826*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(char_exec),
827*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(coex_uart2),
828*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(coex_uart),
829*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(cri_trng),
830*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(cri_trng0),
831*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(cri_trng1),
832*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(dbg_out_clk),
833*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ddr_bist),
834*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ddr_pxi0),
835*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ebi0_wrcdc),
836*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ebi2_a),
837*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ebi2_lcd),
838*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ebi2_lcd_te),
839*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(emac0_mcg),
840*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(emac0_ptp),
841*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(emac1_mcg),
842*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(emac1_ptp),
843*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(emac_cdc),
844*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(emac_pps_in),
845*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(eth0_mdc),
846*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(eth0_mdio),
847*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(eth1_mdc),
848*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(eth1_mdio),
849*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ext_dbg),
850*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(gcc_125_clk),
851*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(gcc_gp1_clk),
852*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(gcc_gp2_clk),
853*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(gcc_gp3_clk),
854*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(gcc_plltest),
855*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(gpio),
856*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(i2s_mclk),
857*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(jitter_bist),
858*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ldo_en),
859*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(ldo_update),
860*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(m_voc),
861*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(mgpi_clk),
862*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(native_char),
863*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(native_tsens),
864*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(native_tsense),
865*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(nav_dr_sync),
866*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(nav_gpio),
867*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pa_indicator),
868*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pci_e),
869*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pcie0_clkreq_n),
870*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pcie1_clkreq_n),
871*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pcie2_clkreq_n),
872*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pll_bist_sync),
873*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pll_clk_aux),
874*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pll_ref_clk),
875*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(pri_mi2s),
876*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(prng_rosc),
877*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qdss_cti),
878*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qdss_gpio),
879*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink0_b_en),
880*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink0_b_req),
881*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink0_l_en),
882*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink0_l_req),
883*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink1_l_en),
884*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink1_l_req),
885*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink0_wmss),
886*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qlink1_wmss),
887*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se0),
888*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se1_l2_mira),
889*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se1_l2_mirb),
890*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se1_l3_mira),
891*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se1_l3_mirb),
892*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se2),
893*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se3),
894*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se4),
895*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se5),
896*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se6),
897*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se7),
898*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(qup_se8),
899*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(rgmii_rx_ctl),
900*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(rgmii_rxc),
901*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(rgmii_rxd),
902*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(rgmii_tx_ctl),
903*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(rgmii_txc),
904*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(rgmii_txd),
905*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(sd_card),
906*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(sdc1_tb),
907*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(sdc2_tb_trig),
908*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(sec_mi2s),
909*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(sgmii_phy_intr0_n),
910*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(sgmii_phy_intr1_n),
911*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(spmi_coex),
912*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(spmi_vgi),
913*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(tgu_ch0_trigout),
914*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(tmess_prng0),
915*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(tmess_prng1),
916*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(tmess_prng2),
917*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(tmess_prng3),
918*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(tri_mi2s),
919*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim1_clk),
920*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim1_data),
921*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim1_present),
922*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim1_reset),
923*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim2_clk),
924*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim2_data),
925*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim2_present),
926*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(uim2_reset),
927*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(usb2phy_ac_en),
928*0f936752SRohit Agarwal 	MSM_PIN_FUNCTION(vsense_trigger_mirnat),
929*0f936752SRohit Agarwal };
930*0f936752SRohit Agarwal 
931*0f936752SRohit Agarwal static const struct msm_pingroup sdx75_groups[] = {
932*0f936752SRohit Agarwal 	[0] = PINGROUP(0, uim2_data, ebi0_wrcdc, _, _, _, _, _, _, _, _),
933*0f936752SRohit Agarwal 	[1] = PINGROUP(1, uim2_present, _, _, _, _, _, _, _, _, _),
934*0f936752SRohit Agarwal 	[2] = PINGROUP(2, uim2_reset, ebi0_wrcdc, _, _, _, _, _, _, _, _),
935*0f936752SRohit Agarwal 	[3] = PINGROUP(3, uim2_clk, _, _, _, _, _, _, _, _, _),
936*0f936752SRohit Agarwal 	[4] = PINGROUP(4, uim1_data, _, _, _, _, _, _, _, _, _),
937*0f936752SRohit Agarwal 	[5] = PINGROUP(5, uim1_present, _, _, _, _, _, _, _, _, _),
938*0f936752SRohit Agarwal 	[6] = PINGROUP(6, uim1_reset, char_exec, _, _, _, _, _, _, _, _),
939*0f936752SRohit Agarwal 	[7] = PINGROUP(7, uim1_clk, char_exec, _, _, _, _, _, _, _, _),
940*0f936752SRohit Agarwal 	[8] = PINGROUP(8, qup_se0, ldo_en, _, _, _, _, _, _, _, _),
941*0f936752SRohit Agarwal 	[9] = PINGROUP(9, qup_se0, _, _, _, _, _, _, _, _, _),
942*0f936752SRohit Agarwal 	[10] = PINGROUP(10, qup_se0, _, _, _, _, _, _, _, _, _),
943*0f936752SRohit Agarwal 	[11] = PINGROUP(11, qup_se0, _, _, _, _, _, _, _, _, _),
944*0f936752SRohit Agarwal 	[12] = PINGROUP(12, qup_se1_l2_mira, ext_dbg, _, _, _, _, _, _, _, _),
945*0f936752SRohit Agarwal 	[13] = PINGROUP(13, qup_se1_l3_mira, ext_dbg, _, _, _, _, _, _,	_, _),
946*0f936752SRohit Agarwal 	[14] = PINGROUP(14, qup_se2, ext_dbg, bimc_dte, _, _, _, _, _, _, _),
947*0f936752SRohit Agarwal 	[15] = PINGROUP(15, qup_se2, ext_dbg, bimc_dte, _, _, _, _, _, _, _),
948*0f936752SRohit Agarwal 	[16] = PINGROUP(16, pri_mi2s, qup_se2, qup_se1_l2_mirb, qdss_cti, qdss_cti, _, _, _, _, _),
949*0f936752SRohit Agarwal 	[17] = PINGROUP(17, pri_mi2s, qup_se2, qup_se1_l3_mirb, qdss_cti, qdss_cti, _, _, _, _, _),
950*0f936752SRohit Agarwal 	[18] = PINGROUP(18, pri_mi2s, _, _, _, _, _, _, _, _, _),
951*0f936752SRohit Agarwal 	[19] = PINGROUP(19, pri_mi2s, _, _, _, _, _, _, _, _, _),
952*0f936752SRohit Agarwal 	[20] = PINGROUP(20, sec_mi2s, _, _, _, _, _, _, _, _, _),
953*0f936752SRohit Agarwal 	[21] = PINGROUP(21, sec_mi2s, _, _, _, _, _, _, _, _, _),
954*0f936752SRohit Agarwal 	[22] = PINGROUP(22, sec_mi2s, _, _, _, _, _, _, _, _, _),
955*0f936752SRohit Agarwal 	[23] = PINGROUP(23, sec_mi2s, _, _, _, _, _, _, _, _, _),
956*0f936752SRohit Agarwal 	[24] = PINGROUP(24, _, atest_char, _, _, _, _, _, _, _, _),
957*0f936752SRohit Agarwal 	[25] = PINGROUP(25, gcc_125_clk, _, atest_char, _, _, _, _, _,	_, _),
958*0f936752SRohit Agarwal 	[26] = PINGROUP(26, _, _, qlink1_l_en, dbg_out_clk, atest_char, _, _, _, _, _),
959*0f936752SRohit Agarwal 	[27] = PINGROUP(27, _, _, qlink1_l_req, prng_rosc, _, _, _, _,	_, _),
960*0f936752SRohit Agarwal 	[28] = PINGROUP(28, _, qlink1_wmss, tmess_prng0, _, _, _, _, _,	_, _),
961*0f936752SRohit Agarwal 	[29] = PINGROUP(29, _, _, _, native_char, tmess_prng1, _, _, _, _, _),
962*0f936752SRohit Agarwal 	[30] = PINGROUP(30, _, _, _, tmess_prng2, _, _, _, _, _, _),
963*0f936752SRohit Agarwal 	[31] = PINGROUP(31, _, _, cri_trng0, _, tmess_prng3, _, _, _, _, _),
964*0f936752SRohit Agarwal 	[32] = PINGROUP(32, _, _, cri_trng1, _, _, _, _, _, _, _),
965*0f936752SRohit Agarwal 	[33] = PINGROUP(33, _, _, native_char, _, _, _, _, _, _, _),
966*0f936752SRohit Agarwal 	[34] = PINGROUP(34, _, _, _, _, _, _, _, _, _, _),
967*0f936752SRohit Agarwal 	[35] = PINGROUP(35, nav_gpio, emac0_ptp, emac0_ptp, _, _, _, _, _, _, _),
968*0f936752SRohit Agarwal 	[36] = PINGROUP(36, nav_gpio, nav_dr_sync, nav_gpio, cri_trng, prng_rosc, _, _, _, _, _),
969*0f936752SRohit Agarwal 	[37] = PINGROUP(37, qlink0_l_en, _, pll_ref_clk, prng_rosc, vsense_trigger_mirnat, _, _, _, _, _),
970*0f936752SRohit Agarwal 	[38] = PINGROUP(38, qlink0_l_req, _, pll_bist_sync, prng_rosc, _, emac_cdc, _, native_tsens, _, _),
971*0f936752SRohit Agarwal 	[39] = PINGROUP(39, qlink0_wmss, _, mgpi_clk, gcc_gp1_clk, _, emac_cdc, _, _, _, _),
972*0f936752SRohit Agarwal 	[40] = PINGROUP(40, qlink0_b_en, _, mgpi_clk, pll_clk_aux, gcc_gp2_clk, _, _, _, _, _),
973*0f936752SRohit Agarwal 	[41] = PINGROUP(41, qlink0_b_req, _, jitter_bist, gcc_gp3_clk, _, _, atest_char, _, _, _),
974*0f936752SRohit Agarwal 	[42] = PINGROUP(42, pci_e, _, _, _, _, _, _, _, _, _),
975*0f936752SRohit Agarwal 	[43] = PINGROUP(43, pcie0_clkreq_n, _, _, _, _, _, _, _, _, _),
976*0f936752SRohit Agarwal 	[44] = PINGROUP(44, _, _, _, _, _, _, _, _, _, _),
977*0f936752SRohit Agarwal 	[45] = PINGROUP(45, ddr_pxi0, _, _, _, _, _, _, _, _, _),
978*0f936752SRohit Agarwal 	[46] = PINGROUP(46, coex_uart, ddr_bist, ddr_pxi0, _, _, _, _, _, _, _),
979*0f936752SRohit Agarwal 	[47] = PINGROUP(47, coex_uart, ddr_bist, _, _, _, _, _, _, _, _),
980*0f936752SRohit Agarwal 	[48] = PINGROUP(48, coex_uart2, spmi_coex, ddr_bist, _, _, _, _, _, _, _),
981*0f936752SRohit Agarwal 	[49] = PINGROUP(49, coex_uart2, spmi_coex, ddr_bist, _, _, _, _, _, _, _),
982*0f936752SRohit Agarwal 	[50] = PINGROUP(50, spmi_vgi, _, _, _, _, _, _, _, _, _),
983*0f936752SRohit Agarwal 	[51] = PINGROUP(51, spmi_vgi, _, _, _, _, _, _, _, _, _),
984*0f936752SRohit Agarwal 	[52] = PINGROUP(52, qup_se3, qdss_cti, qdss_cti, _, _, _, _, _, _, _),
985*0f936752SRohit Agarwal 	[53] = PINGROUP(53, qup_se3, qdss_cti, qdss_cti, _, _, _, _, _, _, _),
986*0f936752SRohit Agarwal 	[54] = PINGROUP(54, qup_se3, _, _, _, _, _, _, _, _, _),
987*0f936752SRohit Agarwal 	[55] = PINGROUP(55, qup_se3, tgu_ch0_trigout, _, _, _, _, _, _, _, _),
988*0f936752SRohit Agarwal 	[56] = PINGROUP(56, qdss_cti, qdss_cti, _, _, _, _, _, _, _, _),
989*0f936752SRohit Agarwal 	[57] = PINGROUP(57, qdss_cti, qdss_cti, _, native_char, _, _, _, _, _, _),
990*0f936752SRohit Agarwal 	[58] = PINGROUP(58, _, pa_indicator, _, _, _, _, _, _, _, _),
991*0f936752SRohit Agarwal 	[59] = PINGROUP(59, adsp_ext, qdss_cti, _, bimc_dte, _, _, _, _, _, _),
992*0f936752SRohit Agarwal 	[60] = PINGROUP(60, qdss_cti, _, _, _, _, _, _, _, _, _),
993*0f936752SRohit Agarwal 	[61] = PINGROUP(61, _, bimc_dte, _, _, _, _, _, _, _, _),
994*0f936752SRohit Agarwal 	[62] = PINGROUP(62, m_voc, ldo_update, _, _, _, _, _, _, _, _),
995*0f936752SRohit Agarwal 	[63] = PINGROUP(63, m_voc, _, atest_char, _, _, _, _, _, _, _),
996*0f936752SRohit Agarwal 	[64] = PINGROUP(64, qup_se4, m_voc, _, native_tsense, _, _, _, _, _, _),
997*0f936752SRohit Agarwal 	[65] = PINGROUP(65, qup_se4, m_voc, _, _, _, _, _, _, _, _),
998*0f936752SRohit Agarwal 	[66] = PINGROUP(66, _, native_char, _, _, _, _, _, _, _, _),
999*0f936752SRohit Agarwal 	[67] = PINGROUP(67, _, native_char, _, _, _, _, _, _, _, _),
1000*0f936752SRohit Agarwal 	[68] = PINGROUP(68, adsp_ext, _, _, _, _, _, _, _, _, _),
1001*0f936752SRohit Agarwal 	[69] = PINGROUP(69, _, _, _, _, _, _, _, _, _, _),
1002*0f936752SRohit Agarwal 	[70] = PINGROUP(70, _, _, _, _, _, _, _, _, _, _),
1003*0f936752SRohit Agarwal 	[71] = PINGROUP(71, m_voc, _, _, _, _, _, _, _, _, _),
1004*0f936752SRohit Agarwal 	[72] = PINGROUP(72, _, _, _, _, _, _, _, _, _, _),
1005*0f936752SRohit Agarwal 	[73] = PINGROUP(73, _, _, _, _, _, _, _, _, _, _),
1006*0f936752SRohit Agarwal 	[74] = PINGROUP(74, i2s_mclk, _, _, _, _, _, _, _, _, _),
1007*0f936752SRohit Agarwal 	[75] = PINGROUP(75, _, _, _, _, _, _, _, _, _, _),
1008*0f936752SRohit Agarwal 	[76] = PINGROUP(76, native_tsense, _, _, _, _, _, _, _, _, _),
1009*0f936752SRohit Agarwal 	[77] = PINGROUP(77, _, _, _, _, _, _, _, _, _, _),
1010*0f936752SRohit Agarwal 	[78] = PINGROUP(78, qdss_cti, qdss_cti, _, _, _, _, _, _, _, _),
1011*0f936752SRohit Agarwal 	[79] = PINGROUP(79, qdss_cti, qdss_cti, _, _, _, _, _, _, _, _),
1012*0f936752SRohit Agarwal 	[80] = PINGROUP(80, usb2phy_ac_en, _, _, _, _, _, _, _, _, _),
1013*0f936752SRohit Agarwal 	[81] = PINGROUP(81, gcc_plltest, _, _, _, _, _, _, _, _, _),
1014*0f936752SRohit Agarwal 	[82] = PINGROUP(82, rgmii_txc, gcc_plltest, qdss_gpio, _, _, _, _, _, _, _),
1015*0f936752SRohit Agarwal 	[83] = PINGROUP(83, rgmii_txd, emac0_ptp, emac0_ptp, emac0_mcg, qdss_gpio, _, _, _, _, _),
1016*0f936752SRohit Agarwal 	[84] = PINGROUP(84, rgmii_txd, emac0_ptp, emac0_mcg, qdss_gpio, _, sdc1_tb, _, _, _, _),
1017*0f936752SRohit Agarwal 	[85] = PINGROUP(85, rgmii_txd, emac0_ptp, emac0_mcg, qdss_gpio, _, _, _, _, _, _),
1018*0f936752SRohit Agarwal 	[86] = PINGROUP(86, rgmii_txd, _, _, _, _, _, _, _, _, _),
1019*0f936752SRohit Agarwal 	[87] = PINGROUP(87, rgmii_tx_ctl, _, _, _, _, _, _, _, _, _),
1020*0f936752SRohit Agarwal 	[88] = PINGROUP(88, rgmii_rxc, _, _, _, _, _, _, _, _, _),
1021*0f936752SRohit Agarwal 	[89] = PINGROUP(89, rgmii_rxd, emac0_ptp, emac0_ptp, emac0_mcg, _, _, _, _, _, _),
1022*0f936752SRohit Agarwal 	[90] = PINGROUP(90, rgmii_rxd, coex_uart2, emac1_mcg, _, _, _, _, _, _, _),
1023*0f936752SRohit Agarwal 	[91] = PINGROUP(91, rgmii_rxd, coex_uart2, _, _, _, _, _, _, _, _),
1024*0f936752SRohit Agarwal 	[92] = PINGROUP(92, rgmii_rxd, emac1_mcg, _, _, _, _, _, _, _, _),
1025*0f936752SRohit Agarwal 	[93] = PINGROUP(93, rgmii_rx_ctl, emac1_mcg, _, _, _, _, _, _, _, _),
1026*0f936752SRohit Agarwal 	[94] = PINGROUP(94, eth0_mdc, qdss_gpio, _, _, _, _, _, _, _, _),
1027*0f936752SRohit Agarwal 	[95] = PINGROUP(95, eth0_mdio, qdss_gpio, _, _, _, _, _, _, _, _),
1028*0f936752SRohit Agarwal 	[96] = PINGROUP(96, qdss_gpio, _, _, _, _, _, _, _, _, _),
1029*0f936752SRohit Agarwal 	[97] = PINGROUP(97, sgmii_phy_intr0_n, _, qdss_gpio, _, _, _, _, _, _, _),
1030*0f936752SRohit Agarwal 	[98] = PINGROUP(98, tri_mi2s, ebi2_lcd_te, _, _, _, _, _, _, _, _),
1031*0f936752SRohit Agarwal 	[99] = PINGROUP(99, tri_mi2s, ebi2_lcd, _, _, _, _, _, _, _, _),
1032*0f936752SRohit Agarwal 	[100] = PINGROUP(100, tri_mi2s, ebi2_a, _, _, _, _, _, _, _, _),
1033*0f936752SRohit Agarwal 	[101] = PINGROUP(101, tri_mi2s, ebi2_lcd, _, _, _, _, _, _, _, _),
1034*0f936752SRohit Agarwal 	[102] = PINGROUP(102, _, _, _, _, _, _, _, _, _, _),
1035*0f936752SRohit Agarwal 	[103] =	PINGROUP(103, _, _, _, _, _, _, _, _, _, _),
1036*0f936752SRohit Agarwal 	[104] = PINGROUP(104, nav_gpio, _, _, _, _, _, _, _, _, _),
1037*0f936752SRohit Agarwal 	[105] = PINGROUP(105, sd_card, _, _, _, _, _, _, _, _, _),
1038*0f936752SRohit Agarwal 	[106] = PINGROUP(106, eth1_mdc, _, _, _, _, _, _, _, _, _),
1039*0f936752SRohit Agarwal 	[107] = PINGROUP(107, eth1_mdio, _, _, _, _, _, _, _, _, _),
1040*0f936752SRohit Agarwal 	[108] =	PINGROUP(108, _, _, _, _, _, _, _, _, _, _),
1041*0f936752SRohit Agarwal 	[109] = PINGROUP(109, sgmii_phy_intr1_n, _, _, _, _, _, _, _, _, _),
1042*0f936752SRohit Agarwal 	[110] = PINGROUP(110, qup_se5, qdss_gpio, _, _, _, _, _, _, _, _),
1043*0f936752SRohit Agarwal 	[111] = PINGROUP(111, qup_se5, qdss_gpio, _, _, _, _, _, _, _, _),
1044*0f936752SRohit Agarwal 	[112] = PINGROUP(112, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
1045*0f936752SRohit Agarwal 	[113] = PINGROUP(113, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
1046*0f936752SRohit Agarwal 	[114] = PINGROUP(114, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
1047*0f936752SRohit Agarwal 	[115] = PINGROUP(115, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
1048*0f936752SRohit Agarwal 	[116] = PINGROUP(116, qup_se7, qdss_gpio, _, _, _, _, _, _, _, _),
1049*0f936752SRohit Agarwal 	[117] = PINGROUP(117, qup_se7, qdss_gpio, _, _, _, _, _, _, _, _),
1050*0f936752SRohit Agarwal 	[118] = PINGROUP(118, qup_se7, qdss_gpio, _, _, _, _, _, _, _, _),
1051*0f936752SRohit Agarwal 	[119] = PINGROUP(119, qup_se7, emac0_ptp, qdss_gpio, _, _, _, _, _, _, _),
1052*0f936752SRohit Agarwal 	[120] = PINGROUP(120, _, _, _, _, _, _, _, _, _, _),
1053*0f936752SRohit Agarwal 	[121] = PINGROUP(121, pcie2_clkreq_n, _, _, _, _, _, _, _, _, _),
1054*0f936752SRohit Agarwal 	[122] = PINGROUP(122, emac1_mcg, _, _, _, _, _, _, _, _, _),
1055*0f936752SRohit Agarwal 	[123] = PINGROUP(123, emac0_ptp, emac0_ptp, emac0_ptp, emac0_ptp, _, _, _, _, _, _),
1056*0f936752SRohit Agarwal 	[124] = PINGROUP(124, pcie1_clkreq_n, qup_se8, _, _, _, _, _, _, _, _),
1057*0f936752SRohit Agarwal 	[125] = PINGROUP(125, qup_se8, _, _, _, _, _, _, _, _, _),
1058*0f936752SRohit Agarwal 	[126] = PINGROUP(126, audio_ref_clk, _, _, _, _, _, _, _, _, _),
1059*0f936752SRohit Agarwal 	[127] = PINGROUP(127, emac_pps_in, _, _, _, _, _, _, _, _, _),
1060*0f936752SRohit Agarwal 	[128] =	PINGROUP(128, _, _, _, _, _, _, _, _, _, _),
1061*0f936752SRohit Agarwal 	[129] = PINGROUP(129, sdc2_tb_trig, _, _, _, _, _, _, _, _, _),
1062*0f936752SRohit Agarwal 	[130] = PINGROUP(130, sdc1_tb, _, _, _, _, _, _, _, _, _),
1063*0f936752SRohit Agarwal 	[131] = PINGROUP(131, _, _, _, _, _, _, _, _, _, _),
1064*0f936752SRohit Agarwal 	[132] =	PINGROUP(132, _, _, _, _, _, _, _, _, _, _),
1065*0f936752SRohit Agarwal 	[133] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x19a000, 16, 0),
1066*0f936752SRohit Agarwal 	[134] = SDC_QDSD_PINGROUP(sdc1_clk, 0x19a000, 14, 6),
1067*0f936752SRohit Agarwal 	[135] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x19a000, 11, 3),
1068*0f936752SRohit Agarwal 	[136] = SDC_QDSD_PINGROUP(sdc1_data, 0x19a000, 9, 0),
1069*0f936752SRohit Agarwal 	[137] = SDC_QDSD_PINGROUP(sdc2_clk, 0x19b000, 14, 6),
1070*0f936752SRohit Agarwal 	[138] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x19b000, 11, 3),
1071*0f936752SRohit Agarwal 	[139] = SDC_QDSD_PINGROUP(sdc2_data, 0x19b000, 9, 0),
1072*0f936752SRohit Agarwal };
1073*0f936752SRohit Agarwal 
1074*0f936752SRohit Agarwal static const struct msm_gpio_wakeirq_map sdx75_pdc_map[] = {
1075*0f936752SRohit Agarwal 	{ 1, 57 }, { 2, 91 }, {5, 52 }, { 6, 109 }, { 9, 129 }, { 11, 62 },
1076*0f936752SRohit Agarwal 	{ 13, 84 }, { 15, 87 }, { 17, 88 }, { 18, 89 }, { 19, 90 }, { 20, 92 },
1077*0f936752SRohit Agarwal 	{ 21, 93 }, { 22, 94 }, { 23, 95 }, { 25, 96 }, { 27, 97 }, { 35, 58 },
1078*0f936752SRohit Agarwal 	{ 36, 53 }, { 38, 98 }, { 39, 99 }, { 40, 100 }, { 41, 101 }, { 42, 54 },
1079*0f936752SRohit Agarwal 	{ 43, 56 }, { 44, 71 }, { 46, 60 }, { 47, 61 }, { 49, 47 }, { 50, 126 },
1080*0f936752SRohit Agarwal 	{ 51, 55 }, { 52, 102 }, { 53, 141 }, { 54, 104 }, { 55, 105 }, { 56, 106 },
1081*0f936752SRohit Agarwal 	{ 57, 107 }, { 59, 108 }, { 60, 110 }, { 62, 111 }, { 63, 112 }, { 64, 113 },
1082*0f936752SRohit Agarwal 	{ 65, 114 }, { 67, 115 }, { 68, 116 }, { 69, 117 }, { 70, 118 }, { 71, 119 },
1083*0f936752SRohit Agarwal 	{ 72, 120 }, { 75, 121 }, { 76, 122 }, { 78, 123 }, { 79, 124 }, { 80, 125 },
1084*0f936752SRohit Agarwal 	{ 81, 50 }, { 85, 127 }, { 87, 128 }, { 91, 130 }, { 92, 131 }, { 93, 132 },
1085*0f936752SRohit Agarwal 	{ 94, 133 }, { 95, 134 }, { 97, 135 }, { 98, 136 }, { 101, 64 }, { 103, 51 },
1086*0f936752SRohit Agarwal 	{ 105, 65 }, { 106, 66 }, { 107, 67 }, { 108, 68 }, { 109, 69 }, { 111, 70 },
1087*0f936752SRohit Agarwal 	{ 113, 59 }, { 115, 72 }, { 116, 73 }, { 117, 74 }, { 118, 75 }, { 119, 76 },
1088*0f936752SRohit Agarwal 	{ 120, 77 }, { 121, 78 }, { 123, 79 }, { 124, 80 }, { 125, 63 }, { 127, 81 },
1089*0f936752SRohit Agarwal 	{ 128, 82 }, { 129, 83 }, { 130, 85 }, { 132, 86 },
1090*0f936752SRohit Agarwal };
1091*0f936752SRohit Agarwal 
1092*0f936752SRohit Agarwal static const struct msm_pinctrl_soc_data sdx75_pinctrl = {
1093*0f936752SRohit Agarwal 	.pins = sdx75_pins,
1094*0f936752SRohit Agarwal 	.npins = ARRAY_SIZE(sdx75_pins),
1095*0f936752SRohit Agarwal 	.functions = sdx75_functions,
1096*0f936752SRohit Agarwal 	.nfunctions = ARRAY_SIZE(sdx75_functions),
1097*0f936752SRohit Agarwal 	.groups = sdx75_groups,
1098*0f936752SRohit Agarwal 	.ngroups = ARRAY_SIZE(sdx75_groups),
1099*0f936752SRohit Agarwal 	.ngpios = 133,
1100*0f936752SRohit Agarwal 	.wakeirq_map = sdx75_pdc_map,
1101*0f936752SRohit Agarwal 	.nwakeirq_map = ARRAY_SIZE(sdx75_pdc_map),
1102*0f936752SRohit Agarwal };
1103*0f936752SRohit Agarwal 
1104*0f936752SRohit Agarwal static const struct of_device_id sdx75_pinctrl_of_match[] = {
1105*0f936752SRohit Agarwal 	{ .compatible = "qcom,sdx75-tlmm", .data = &sdx75_pinctrl },
1106*0f936752SRohit Agarwal 	{ }
1107*0f936752SRohit Agarwal };
1108*0f936752SRohit Agarwal MODULE_DEVICE_TABLE(of, sdx75_pinctrl_of_match);
1109*0f936752SRohit Agarwal 
sdx75_pinctrl_probe(struct platform_device * pdev)1110*0f936752SRohit Agarwal static int sdx75_pinctrl_probe(struct platform_device *pdev)
1111*0f936752SRohit Agarwal {
1112*0f936752SRohit Agarwal 	const struct msm_pinctrl_soc_data *pinctrl_data;
1113*0f936752SRohit Agarwal 
1114*0f936752SRohit Agarwal 	pinctrl_data = of_device_get_match_data(&pdev->dev);
1115*0f936752SRohit Agarwal 	if (!pinctrl_data)
1116*0f936752SRohit Agarwal 		return -EINVAL;
1117*0f936752SRohit Agarwal 
1118*0f936752SRohit Agarwal 	return msm_pinctrl_probe(pdev, pinctrl_data);
1119*0f936752SRohit Agarwal }
1120*0f936752SRohit Agarwal 
1121*0f936752SRohit Agarwal static struct platform_driver sdx75_pinctrl_driver = {
1122*0f936752SRohit Agarwal 	.driver = {
1123*0f936752SRohit Agarwal 		.name = "sdx75-tlmm",
1124*0f936752SRohit Agarwal 		.of_match_table = sdx75_pinctrl_of_match,
1125*0f936752SRohit Agarwal 	},
1126*0f936752SRohit Agarwal 	.probe = sdx75_pinctrl_probe,
1127*0f936752SRohit Agarwal 	.remove = msm_pinctrl_remove,
1128*0f936752SRohit Agarwal };
1129*0f936752SRohit Agarwal 
sdx75_pinctrl_init(void)1130*0f936752SRohit Agarwal static int __init sdx75_pinctrl_init(void)
1131*0f936752SRohit Agarwal {
1132*0f936752SRohit Agarwal 	return platform_driver_register(&sdx75_pinctrl_driver);
1133*0f936752SRohit Agarwal }
1134*0f936752SRohit Agarwal arch_initcall(sdx75_pinctrl_init);
1135*0f936752SRohit Agarwal 
sdx75_pinctrl_exit(void)1136*0f936752SRohit Agarwal static void __exit sdx75_pinctrl_exit(void)
1137*0f936752SRohit Agarwal {
1138*0f936752SRohit Agarwal 	platform_driver_unregister(&sdx75_pinctrl_driver);
1139*0f936752SRohit Agarwal }
1140*0f936752SRohit Agarwal module_exit(sdx75_pinctrl_exit);
1141*0f936752SRohit Agarwal 
1142*0f936752SRohit Agarwal MODULE_DESCRIPTION("QTI sdx75 pinctrl driver");
1143*0f936752SRohit Agarwal MODULE_LICENSE("GPL");
1144