xref: /OK3568_Linux_fs/kernel/drivers/pinctrl/qcom/pinctrl-sm8250.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #include <linux/module.h>
7*4882a593Smuzhiyun #include <linux/of.h>
8*4882a593Smuzhiyun #include <linux/platform_device.h>
9*4882a593Smuzhiyun #include <linux/pinctrl/pinctrl.h>
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include "pinctrl-msm.h"
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun static const char * const sm8250_tiles[] = {
14*4882a593Smuzhiyun 	"west",
15*4882a593Smuzhiyun 	"south",
16*4882a593Smuzhiyun 	"north",
17*4882a593Smuzhiyun };
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun enum {
20*4882a593Smuzhiyun 	WEST,
21*4882a593Smuzhiyun 	SOUTH,
22*4882a593Smuzhiyun 	NORTH,
23*4882a593Smuzhiyun };
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #define FUNCTION(fname)					\
26*4882a593Smuzhiyun 	[msm_mux_##fname] = {				\
27*4882a593Smuzhiyun 		.name = #fname,				\
28*4882a593Smuzhiyun 		.groups = fname##_groups,		\
29*4882a593Smuzhiyun 		.ngroups = ARRAY_SIZE(fname##_groups),	\
30*4882a593Smuzhiyun 	}
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #define REG_SIZE 0x1000
33*4882a593Smuzhiyun #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
34*4882a593Smuzhiyun 	{						\
35*4882a593Smuzhiyun 		.name = "gpio" #id,			\
36*4882a593Smuzhiyun 		.pins = gpio##id##_pins,		\
37*4882a593Smuzhiyun 		.npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins),	\
38*4882a593Smuzhiyun 		.funcs = (int[]){			\
39*4882a593Smuzhiyun 			msm_mux_gpio, /* gpio mode */	\
40*4882a593Smuzhiyun 			msm_mux_##f1,			\
41*4882a593Smuzhiyun 			msm_mux_##f2,			\
42*4882a593Smuzhiyun 			msm_mux_##f3,			\
43*4882a593Smuzhiyun 			msm_mux_##f4,			\
44*4882a593Smuzhiyun 			msm_mux_##f5,			\
45*4882a593Smuzhiyun 			msm_mux_##f6,			\
46*4882a593Smuzhiyun 			msm_mux_##f7,			\
47*4882a593Smuzhiyun 			msm_mux_##f8,			\
48*4882a593Smuzhiyun 			msm_mux_##f9			\
49*4882a593Smuzhiyun 		},					\
50*4882a593Smuzhiyun 		.nfuncs = 10,				\
51*4882a593Smuzhiyun 		.ctl_reg = REG_SIZE * id,		\
52*4882a593Smuzhiyun 		.io_reg = REG_SIZE * id + 0x4,		\
53*4882a593Smuzhiyun 		.intr_cfg_reg = REG_SIZE * id + 0x8,	\
54*4882a593Smuzhiyun 		.intr_status_reg = REG_SIZE * id + 0xc,	\
55*4882a593Smuzhiyun 		.intr_target_reg = REG_SIZE * id + 0x8,	\
56*4882a593Smuzhiyun 		.tile = _tile,				\
57*4882a593Smuzhiyun 		.mux_bit = 2,				\
58*4882a593Smuzhiyun 		.pull_bit = 0,				\
59*4882a593Smuzhiyun 		.drv_bit = 6,				\
60*4882a593Smuzhiyun 		.oe_bit = 9,				\
61*4882a593Smuzhiyun 		.in_bit = 0,				\
62*4882a593Smuzhiyun 		.out_bit = 1,				\
63*4882a593Smuzhiyun 		.intr_enable_bit = 0,			\
64*4882a593Smuzhiyun 		.intr_status_bit = 0,			\
65*4882a593Smuzhiyun 		.intr_target_bit = 5,			\
66*4882a593Smuzhiyun 		.intr_target_kpss_val = 3,		\
67*4882a593Smuzhiyun 		.intr_raw_status_bit = 4,		\
68*4882a593Smuzhiyun 		.intr_polarity_bit = 1,			\
69*4882a593Smuzhiyun 		.intr_detection_bit = 2,		\
70*4882a593Smuzhiyun 		.intr_detection_width = 2,		\
71*4882a593Smuzhiyun 	}
72*4882a593Smuzhiyun 
73*4882a593Smuzhiyun #define SDC_PINGROUP(pg_name, ctl, pull, drv)	\
74*4882a593Smuzhiyun 	{						\
75*4882a593Smuzhiyun 		.name = #pg_name,			\
76*4882a593Smuzhiyun 		.pins = pg_name##_pins,			\
77*4882a593Smuzhiyun 		.npins = (unsigned int)ARRAY_SIZE(pg_name##_pins),	\
78*4882a593Smuzhiyun 		.ctl_reg = ctl,				\
79*4882a593Smuzhiyun 		.io_reg = 0,				\
80*4882a593Smuzhiyun 		.intr_cfg_reg = 0,			\
81*4882a593Smuzhiyun 		.intr_status_reg = 0,			\
82*4882a593Smuzhiyun 		.intr_target_reg = 0,			\
83*4882a593Smuzhiyun 		.tile = NORTH,				\
84*4882a593Smuzhiyun 		.mux_bit = -1,				\
85*4882a593Smuzhiyun 		.pull_bit = pull,			\
86*4882a593Smuzhiyun 		.drv_bit = drv,				\
87*4882a593Smuzhiyun 		.oe_bit = -1,				\
88*4882a593Smuzhiyun 		.in_bit = -1,				\
89*4882a593Smuzhiyun 		.out_bit = -1,				\
90*4882a593Smuzhiyun 		.intr_enable_bit = -1,			\
91*4882a593Smuzhiyun 		.intr_status_bit = -1,			\
92*4882a593Smuzhiyun 		.intr_target_bit = -1,			\
93*4882a593Smuzhiyun 		.intr_raw_status_bit = -1,		\
94*4882a593Smuzhiyun 		.intr_polarity_bit = -1,		\
95*4882a593Smuzhiyun 		.intr_detection_bit = -1,		\
96*4882a593Smuzhiyun 		.intr_detection_width = -1,		\
97*4882a593Smuzhiyun 	}
98*4882a593Smuzhiyun 
99*4882a593Smuzhiyun #define UFS_RESET(pg_name, offset)				\
100*4882a593Smuzhiyun 	{						\
101*4882a593Smuzhiyun 		.name = #pg_name,			\
102*4882a593Smuzhiyun 		.pins = pg_name##_pins,			\
103*4882a593Smuzhiyun 		.npins = (unsigned int)ARRAY_SIZE(pg_name##_pins),	\
104*4882a593Smuzhiyun 		.ctl_reg = offset,			\
105*4882a593Smuzhiyun 		.io_reg = offset + 0x4,			\
106*4882a593Smuzhiyun 		.intr_cfg_reg = 0,			\
107*4882a593Smuzhiyun 		.intr_status_reg = 0,			\
108*4882a593Smuzhiyun 		.intr_target_reg = 0,			\
109*4882a593Smuzhiyun 		.tile = SOUTH,				\
110*4882a593Smuzhiyun 		.mux_bit = -1,				\
111*4882a593Smuzhiyun 		.pull_bit = 3,				\
112*4882a593Smuzhiyun 		.drv_bit = 0,				\
113*4882a593Smuzhiyun 		.oe_bit = -1,				\
114*4882a593Smuzhiyun 		.in_bit = -1,				\
115*4882a593Smuzhiyun 		.out_bit = 0,				\
116*4882a593Smuzhiyun 		.intr_enable_bit = -1,			\
117*4882a593Smuzhiyun 		.intr_status_bit = -1,			\
118*4882a593Smuzhiyun 		.intr_target_bit = -1,			\
119*4882a593Smuzhiyun 		.intr_raw_status_bit = -1,		\
120*4882a593Smuzhiyun 		.intr_polarity_bit = -1,		\
121*4882a593Smuzhiyun 		.intr_detection_bit = -1,		\
122*4882a593Smuzhiyun 		.intr_detection_width = -1,		\
123*4882a593Smuzhiyun 	}
124*4882a593Smuzhiyun 
125*4882a593Smuzhiyun static const struct pinctrl_pin_desc sm8250_pins[] = {
126*4882a593Smuzhiyun 	PINCTRL_PIN(0, "GPIO_0"),
127*4882a593Smuzhiyun 	PINCTRL_PIN(1, "GPIO_1"),
128*4882a593Smuzhiyun 	PINCTRL_PIN(2, "GPIO_2"),
129*4882a593Smuzhiyun 	PINCTRL_PIN(3, "GPIO_3"),
130*4882a593Smuzhiyun 	PINCTRL_PIN(4, "GPIO_4"),
131*4882a593Smuzhiyun 	PINCTRL_PIN(5, "GPIO_5"),
132*4882a593Smuzhiyun 	PINCTRL_PIN(6, "GPIO_6"),
133*4882a593Smuzhiyun 	PINCTRL_PIN(7, "GPIO_7"),
134*4882a593Smuzhiyun 	PINCTRL_PIN(8, "GPIO_8"),
135*4882a593Smuzhiyun 	PINCTRL_PIN(9, "GPIO_9"),
136*4882a593Smuzhiyun 	PINCTRL_PIN(10, "GPIO_10"),
137*4882a593Smuzhiyun 	PINCTRL_PIN(11, "GPIO_11"),
138*4882a593Smuzhiyun 	PINCTRL_PIN(12, "GPIO_12"),
139*4882a593Smuzhiyun 	PINCTRL_PIN(13, "GPIO_13"),
140*4882a593Smuzhiyun 	PINCTRL_PIN(14, "GPIO_14"),
141*4882a593Smuzhiyun 	PINCTRL_PIN(15, "GPIO_15"),
142*4882a593Smuzhiyun 	PINCTRL_PIN(16, "GPIO_16"),
143*4882a593Smuzhiyun 	PINCTRL_PIN(17, "GPIO_17"),
144*4882a593Smuzhiyun 	PINCTRL_PIN(18, "GPIO_18"),
145*4882a593Smuzhiyun 	PINCTRL_PIN(19, "GPIO_19"),
146*4882a593Smuzhiyun 	PINCTRL_PIN(20, "GPIO_20"),
147*4882a593Smuzhiyun 	PINCTRL_PIN(21, "GPIO_21"),
148*4882a593Smuzhiyun 	PINCTRL_PIN(22, "GPIO_22"),
149*4882a593Smuzhiyun 	PINCTRL_PIN(23, "GPIO_23"),
150*4882a593Smuzhiyun 	PINCTRL_PIN(24, "GPIO_24"),
151*4882a593Smuzhiyun 	PINCTRL_PIN(25, "GPIO_25"),
152*4882a593Smuzhiyun 	PINCTRL_PIN(26, "GPIO_26"),
153*4882a593Smuzhiyun 	PINCTRL_PIN(27, "GPIO_27"),
154*4882a593Smuzhiyun 	PINCTRL_PIN(28, "GPIO_28"),
155*4882a593Smuzhiyun 	PINCTRL_PIN(29, "GPIO_29"),
156*4882a593Smuzhiyun 	PINCTRL_PIN(30, "GPIO_30"),
157*4882a593Smuzhiyun 	PINCTRL_PIN(31, "GPIO_31"),
158*4882a593Smuzhiyun 	PINCTRL_PIN(32, "GPIO_32"),
159*4882a593Smuzhiyun 	PINCTRL_PIN(33, "GPIO_33"),
160*4882a593Smuzhiyun 	PINCTRL_PIN(34, "GPIO_34"),
161*4882a593Smuzhiyun 	PINCTRL_PIN(35, "GPIO_35"),
162*4882a593Smuzhiyun 	PINCTRL_PIN(36, "GPIO_36"),
163*4882a593Smuzhiyun 	PINCTRL_PIN(37, "GPIO_37"),
164*4882a593Smuzhiyun 	PINCTRL_PIN(38, "GPIO_38"),
165*4882a593Smuzhiyun 	PINCTRL_PIN(39, "GPIO_39"),
166*4882a593Smuzhiyun 	PINCTRL_PIN(40, "GPIO_40"),
167*4882a593Smuzhiyun 	PINCTRL_PIN(41, "GPIO_41"),
168*4882a593Smuzhiyun 	PINCTRL_PIN(42, "GPIO_42"),
169*4882a593Smuzhiyun 	PINCTRL_PIN(43, "GPIO_43"),
170*4882a593Smuzhiyun 	PINCTRL_PIN(44, "GPIO_44"),
171*4882a593Smuzhiyun 	PINCTRL_PIN(45, "GPIO_45"),
172*4882a593Smuzhiyun 	PINCTRL_PIN(46, "GPIO_46"),
173*4882a593Smuzhiyun 	PINCTRL_PIN(47, "GPIO_47"),
174*4882a593Smuzhiyun 	PINCTRL_PIN(48, "GPIO_48"),
175*4882a593Smuzhiyun 	PINCTRL_PIN(49, "GPIO_49"),
176*4882a593Smuzhiyun 	PINCTRL_PIN(50, "GPIO_50"),
177*4882a593Smuzhiyun 	PINCTRL_PIN(51, "GPIO_51"),
178*4882a593Smuzhiyun 	PINCTRL_PIN(52, "GPIO_52"),
179*4882a593Smuzhiyun 	PINCTRL_PIN(53, "GPIO_53"),
180*4882a593Smuzhiyun 	PINCTRL_PIN(54, "GPIO_54"),
181*4882a593Smuzhiyun 	PINCTRL_PIN(55, "GPIO_55"),
182*4882a593Smuzhiyun 	PINCTRL_PIN(56, "GPIO_56"),
183*4882a593Smuzhiyun 	PINCTRL_PIN(57, "GPIO_57"),
184*4882a593Smuzhiyun 	PINCTRL_PIN(58, "GPIO_58"),
185*4882a593Smuzhiyun 	PINCTRL_PIN(59, "GPIO_59"),
186*4882a593Smuzhiyun 	PINCTRL_PIN(60, "GPIO_60"),
187*4882a593Smuzhiyun 	PINCTRL_PIN(61, "GPIO_61"),
188*4882a593Smuzhiyun 	PINCTRL_PIN(62, "GPIO_62"),
189*4882a593Smuzhiyun 	PINCTRL_PIN(63, "GPIO_63"),
190*4882a593Smuzhiyun 	PINCTRL_PIN(64, "GPIO_64"),
191*4882a593Smuzhiyun 	PINCTRL_PIN(65, "GPIO_65"),
192*4882a593Smuzhiyun 	PINCTRL_PIN(66, "GPIO_66"),
193*4882a593Smuzhiyun 	PINCTRL_PIN(67, "GPIO_67"),
194*4882a593Smuzhiyun 	PINCTRL_PIN(68, "GPIO_68"),
195*4882a593Smuzhiyun 	PINCTRL_PIN(69, "GPIO_69"),
196*4882a593Smuzhiyun 	PINCTRL_PIN(70, "GPIO_70"),
197*4882a593Smuzhiyun 	PINCTRL_PIN(71, "GPIO_71"),
198*4882a593Smuzhiyun 	PINCTRL_PIN(72, "GPIO_72"),
199*4882a593Smuzhiyun 	PINCTRL_PIN(73, "GPIO_73"),
200*4882a593Smuzhiyun 	PINCTRL_PIN(74, "GPIO_74"),
201*4882a593Smuzhiyun 	PINCTRL_PIN(75, "GPIO_75"),
202*4882a593Smuzhiyun 	PINCTRL_PIN(76, "GPIO_76"),
203*4882a593Smuzhiyun 	PINCTRL_PIN(77, "GPIO_77"),
204*4882a593Smuzhiyun 	PINCTRL_PIN(78, "GPIO_78"),
205*4882a593Smuzhiyun 	PINCTRL_PIN(79, "GPIO_79"),
206*4882a593Smuzhiyun 	PINCTRL_PIN(80, "GPIO_80"),
207*4882a593Smuzhiyun 	PINCTRL_PIN(81, "GPIO_81"),
208*4882a593Smuzhiyun 	PINCTRL_PIN(82, "GPIO_82"),
209*4882a593Smuzhiyun 	PINCTRL_PIN(83, "GPIO_83"),
210*4882a593Smuzhiyun 	PINCTRL_PIN(84, "GPIO_84"),
211*4882a593Smuzhiyun 	PINCTRL_PIN(85, "GPIO_85"),
212*4882a593Smuzhiyun 	PINCTRL_PIN(86, "GPIO_86"),
213*4882a593Smuzhiyun 	PINCTRL_PIN(87, "GPIO_87"),
214*4882a593Smuzhiyun 	PINCTRL_PIN(88, "GPIO_88"),
215*4882a593Smuzhiyun 	PINCTRL_PIN(89, "GPIO_89"),
216*4882a593Smuzhiyun 	PINCTRL_PIN(90, "GPIO_90"),
217*4882a593Smuzhiyun 	PINCTRL_PIN(91, "GPIO_91"),
218*4882a593Smuzhiyun 	PINCTRL_PIN(92, "GPIO_92"),
219*4882a593Smuzhiyun 	PINCTRL_PIN(93, "GPIO_93"),
220*4882a593Smuzhiyun 	PINCTRL_PIN(94, "GPIO_94"),
221*4882a593Smuzhiyun 	PINCTRL_PIN(95, "GPIO_95"),
222*4882a593Smuzhiyun 	PINCTRL_PIN(96, "GPIO_96"),
223*4882a593Smuzhiyun 	PINCTRL_PIN(97, "GPIO_97"),
224*4882a593Smuzhiyun 	PINCTRL_PIN(98, "GPIO_98"),
225*4882a593Smuzhiyun 	PINCTRL_PIN(99, "GPIO_99"),
226*4882a593Smuzhiyun 	PINCTRL_PIN(100, "GPIO_100"),
227*4882a593Smuzhiyun 	PINCTRL_PIN(101, "GPIO_101"),
228*4882a593Smuzhiyun 	PINCTRL_PIN(102, "GPIO_102"),
229*4882a593Smuzhiyun 	PINCTRL_PIN(103, "GPIO_103"),
230*4882a593Smuzhiyun 	PINCTRL_PIN(104, "GPIO_104"),
231*4882a593Smuzhiyun 	PINCTRL_PIN(105, "GPIO_105"),
232*4882a593Smuzhiyun 	PINCTRL_PIN(106, "GPIO_106"),
233*4882a593Smuzhiyun 	PINCTRL_PIN(107, "GPIO_107"),
234*4882a593Smuzhiyun 	PINCTRL_PIN(108, "GPIO_108"),
235*4882a593Smuzhiyun 	PINCTRL_PIN(109, "GPIO_109"),
236*4882a593Smuzhiyun 	PINCTRL_PIN(110, "GPIO_110"),
237*4882a593Smuzhiyun 	PINCTRL_PIN(111, "GPIO_111"),
238*4882a593Smuzhiyun 	PINCTRL_PIN(112, "GPIO_112"),
239*4882a593Smuzhiyun 	PINCTRL_PIN(113, "GPIO_113"),
240*4882a593Smuzhiyun 	PINCTRL_PIN(114, "GPIO_114"),
241*4882a593Smuzhiyun 	PINCTRL_PIN(115, "GPIO_115"),
242*4882a593Smuzhiyun 	PINCTRL_PIN(116, "GPIO_116"),
243*4882a593Smuzhiyun 	PINCTRL_PIN(117, "GPIO_117"),
244*4882a593Smuzhiyun 	PINCTRL_PIN(118, "GPIO_118"),
245*4882a593Smuzhiyun 	PINCTRL_PIN(119, "GPIO_119"),
246*4882a593Smuzhiyun 	PINCTRL_PIN(120, "GPIO_120"),
247*4882a593Smuzhiyun 	PINCTRL_PIN(121, "GPIO_121"),
248*4882a593Smuzhiyun 	PINCTRL_PIN(122, "GPIO_122"),
249*4882a593Smuzhiyun 	PINCTRL_PIN(123, "GPIO_123"),
250*4882a593Smuzhiyun 	PINCTRL_PIN(124, "GPIO_124"),
251*4882a593Smuzhiyun 	PINCTRL_PIN(125, "GPIO_125"),
252*4882a593Smuzhiyun 	PINCTRL_PIN(126, "GPIO_126"),
253*4882a593Smuzhiyun 	PINCTRL_PIN(127, "GPIO_127"),
254*4882a593Smuzhiyun 	PINCTRL_PIN(128, "GPIO_128"),
255*4882a593Smuzhiyun 	PINCTRL_PIN(129, "GPIO_129"),
256*4882a593Smuzhiyun 	PINCTRL_PIN(130, "GPIO_130"),
257*4882a593Smuzhiyun 	PINCTRL_PIN(131, "GPIO_131"),
258*4882a593Smuzhiyun 	PINCTRL_PIN(132, "GPIO_132"),
259*4882a593Smuzhiyun 	PINCTRL_PIN(133, "GPIO_133"),
260*4882a593Smuzhiyun 	PINCTRL_PIN(134, "GPIO_134"),
261*4882a593Smuzhiyun 	PINCTRL_PIN(135, "GPIO_135"),
262*4882a593Smuzhiyun 	PINCTRL_PIN(136, "GPIO_136"),
263*4882a593Smuzhiyun 	PINCTRL_PIN(137, "GPIO_137"),
264*4882a593Smuzhiyun 	PINCTRL_PIN(138, "GPIO_138"),
265*4882a593Smuzhiyun 	PINCTRL_PIN(139, "GPIO_139"),
266*4882a593Smuzhiyun 	PINCTRL_PIN(140, "GPIO_140"),
267*4882a593Smuzhiyun 	PINCTRL_PIN(141, "GPIO_141"),
268*4882a593Smuzhiyun 	PINCTRL_PIN(142, "GPIO_142"),
269*4882a593Smuzhiyun 	PINCTRL_PIN(143, "GPIO_143"),
270*4882a593Smuzhiyun 	PINCTRL_PIN(144, "GPIO_144"),
271*4882a593Smuzhiyun 	PINCTRL_PIN(145, "GPIO_145"),
272*4882a593Smuzhiyun 	PINCTRL_PIN(146, "GPIO_146"),
273*4882a593Smuzhiyun 	PINCTRL_PIN(147, "GPIO_147"),
274*4882a593Smuzhiyun 	PINCTRL_PIN(148, "GPIO_148"),
275*4882a593Smuzhiyun 	PINCTRL_PIN(149, "GPIO_149"),
276*4882a593Smuzhiyun 	PINCTRL_PIN(150, "GPIO_150"),
277*4882a593Smuzhiyun 	PINCTRL_PIN(151, "GPIO_151"),
278*4882a593Smuzhiyun 	PINCTRL_PIN(152, "GPIO_152"),
279*4882a593Smuzhiyun 	PINCTRL_PIN(153, "GPIO_153"),
280*4882a593Smuzhiyun 	PINCTRL_PIN(154, "GPIO_154"),
281*4882a593Smuzhiyun 	PINCTRL_PIN(155, "GPIO_155"),
282*4882a593Smuzhiyun 	PINCTRL_PIN(156, "GPIO_156"),
283*4882a593Smuzhiyun 	PINCTRL_PIN(157, "GPIO_157"),
284*4882a593Smuzhiyun 	PINCTRL_PIN(158, "GPIO_158"),
285*4882a593Smuzhiyun 	PINCTRL_PIN(159, "GPIO_159"),
286*4882a593Smuzhiyun 	PINCTRL_PIN(160, "GPIO_160"),
287*4882a593Smuzhiyun 	PINCTRL_PIN(161, "GPIO_161"),
288*4882a593Smuzhiyun 	PINCTRL_PIN(162, "GPIO_162"),
289*4882a593Smuzhiyun 	PINCTRL_PIN(163, "GPIO_163"),
290*4882a593Smuzhiyun 	PINCTRL_PIN(164, "GPIO_164"),
291*4882a593Smuzhiyun 	PINCTRL_PIN(165, "GPIO_165"),
292*4882a593Smuzhiyun 	PINCTRL_PIN(166, "GPIO_166"),
293*4882a593Smuzhiyun 	PINCTRL_PIN(167, "GPIO_167"),
294*4882a593Smuzhiyun 	PINCTRL_PIN(168, "GPIO_168"),
295*4882a593Smuzhiyun 	PINCTRL_PIN(169, "GPIO_169"),
296*4882a593Smuzhiyun 	PINCTRL_PIN(170, "GPIO_170"),
297*4882a593Smuzhiyun 	PINCTRL_PIN(171, "GPIO_171"),
298*4882a593Smuzhiyun 	PINCTRL_PIN(172, "GPIO_172"),
299*4882a593Smuzhiyun 	PINCTRL_PIN(173, "GPIO_173"),
300*4882a593Smuzhiyun 	PINCTRL_PIN(174, "GPIO_174"),
301*4882a593Smuzhiyun 	PINCTRL_PIN(175, "GPIO_175"),
302*4882a593Smuzhiyun 	PINCTRL_PIN(176, "GPIO_176"),
303*4882a593Smuzhiyun 	PINCTRL_PIN(177, "GPIO_177"),
304*4882a593Smuzhiyun 	PINCTRL_PIN(178, "GPIO_178"),
305*4882a593Smuzhiyun 	PINCTRL_PIN(179, "GPIO_179"),
306*4882a593Smuzhiyun 	PINCTRL_PIN(180, "SDC2_CLK"),
307*4882a593Smuzhiyun 	PINCTRL_PIN(181, "SDC2_CMD"),
308*4882a593Smuzhiyun 	PINCTRL_PIN(182, "SDC2_DATA"),
309*4882a593Smuzhiyun 	PINCTRL_PIN(183, "UFS_RESET"),
310*4882a593Smuzhiyun };
311*4882a593Smuzhiyun 
312*4882a593Smuzhiyun #define DECLARE_MSM_GPIO_PINS(pin) \
313*4882a593Smuzhiyun 	static const unsigned int gpio##pin##_pins[] = { pin }
314*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(0);
315*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(1);
316*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(2);
317*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(3);
318*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(4);
319*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(5);
320*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(6);
321*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(7);
322*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(8);
323*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(9);
324*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(10);
325*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(11);
326*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(12);
327*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(13);
328*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(14);
329*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(15);
330*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(16);
331*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(17);
332*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(18);
333*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(19);
334*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(20);
335*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(21);
336*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(22);
337*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(23);
338*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(24);
339*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(25);
340*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(26);
341*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(27);
342*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(28);
343*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(29);
344*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(30);
345*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(31);
346*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(32);
347*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(33);
348*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(34);
349*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(35);
350*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(36);
351*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(37);
352*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(38);
353*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(39);
354*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(40);
355*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(41);
356*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(42);
357*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(43);
358*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(44);
359*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(45);
360*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(46);
361*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(47);
362*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(48);
363*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(49);
364*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(50);
365*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(51);
366*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(52);
367*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(53);
368*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(54);
369*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(55);
370*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(56);
371*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(57);
372*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(58);
373*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(59);
374*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(60);
375*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(61);
376*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(62);
377*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(63);
378*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(64);
379*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(65);
380*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(66);
381*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(67);
382*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(68);
383*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(69);
384*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(70);
385*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(71);
386*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(72);
387*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(73);
388*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(74);
389*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(75);
390*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(76);
391*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(77);
392*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(78);
393*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(79);
394*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(80);
395*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(81);
396*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(82);
397*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(83);
398*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(84);
399*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(85);
400*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(86);
401*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(87);
402*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(88);
403*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(89);
404*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(90);
405*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(91);
406*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(92);
407*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(93);
408*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(94);
409*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(95);
410*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(96);
411*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(97);
412*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(98);
413*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(99);
414*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(100);
415*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(101);
416*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(102);
417*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(103);
418*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(104);
419*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(105);
420*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(106);
421*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(107);
422*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(108);
423*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(109);
424*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(110);
425*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(111);
426*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(112);
427*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(113);
428*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(114);
429*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(115);
430*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(116);
431*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(117);
432*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(118);
433*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(119);
434*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(120);
435*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(121);
436*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(122);
437*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(123);
438*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(124);
439*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(125);
440*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(126);
441*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(127);
442*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(128);
443*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(129);
444*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(130);
445*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(131);
446*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(132);
447*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(133);
448*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(134);
449*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(135);
450*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(136);
451*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(137);
452*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(138);
453*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(139);
454*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(140);
455*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(141);
456*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(142);
457*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(143);
458*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(144);
459*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(145);
460*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(146);
461*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(147);
462*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(148);
463*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(149);
464*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(150);
465*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(151);
466*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(152);
467*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(153);
468*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(154);
469*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(155);
470*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(156);
471*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(157);
472*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(158);
473*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(159);
474*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(160);
475*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(161);
476*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(162);
477*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(163);
478*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(164);
479*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(165);
480*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(166);
481*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(167);
482*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(168);
483*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(169);
484*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(170);
485*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(171);
486*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(172);
487*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(173);
488*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(174);
489*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(175);
490*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(176);
491*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(177);
492*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(178);
493*4882a593Smuzhiyun DECLARE_MSM_GPIO_PINS(179);
494*4882a593Smuzhiyun 
495*4882a593Smuzhiyun static const unsigned int ufs_reset_pins[] = { 180 };
496*4882a593Smuzhiyun static const unsigned int sdc2_clk_pins[] = { 181 };
497*4882a593Smuzhiyun static const unsigned int sdc2_cmd_pins[] = { 182 };
498*4882a593Smuzhiyun static const unsigned int sdc2_data_pins[] = { 183 };
499*4882a593Smuzhiyun 
500*4882a593Smuzhiyun enum sm8250_functions {
501*4882a593Smuzhiyun 	msm_mux_aoss_cti,
502*4882a593Smuzhiyun 	msm_mux_atest,
503*4882a593Smuzhiyun 	msm_mux_audio_ref,
504*4882a593Smuzhiyun 	msm_mux_cam_mclk,
505*4882a593Smuzhiyun 	msm_mux_cci_async,
506*4882a593Smuzhiyun 	msm_mux_cci_i2c,
507*4882a593Smuzhiyun 	msm_mux_cci_timer0,
508*4882a593Smuzhiyun 	msm_mux_cci_timer1,
509*4882a593Smuzhiyun 	msm_mux_cci_timer2,
510*4882a593Smuzhiyun 	msm_mux_cci_timer3,
511*4882a593Smuzhiyun 	msm_mux_cci_timer4,
512*4882a593Smuzhiyun 	msm_mux_cri_trng,
513*4882a593Smuzhiyun 	msm_mux_cri_trng0,
514*4882a593Smuzhiyun 	msm_mux_cri_trng1,
515*4882a593Smuzhiyun 	msm_mux_dbg_out,
516*4882a593Smuzhiyun 	msm_mux_ddr_bist,
517*4882a593Smuzhiyun 	msm_mux_ddr_pxi0,
518*4882a593Smuzhiyun 	msm_mux_ddr_pxi1,
519*4882a593Smuzhiyun 	msm_mux_ddr_pxi2,
520*4882a593Smuzhiyun 	msm_mux_ddr_pxi3,
521*4882a593Smuzhiyun 	msm_mux_dp_hot,
522*4882a593Smuzhiyun 	msm_mux_dp_lcd,
523*4882a593Smuzhiyun 	msm_mux_gcc_gp1,
524*4882a593Smuzhiyun 	msm_mux_gcc_gp2,
525*4882a593Smuzhiyun 	msm_mux_gcc_gp3,
526*4882a593Smuzhiyun 	msm_mux_gpio,
527*4882a593Smuzhiyun 	msm_mux_ibi_i3c,
528*4882a593Smuzhiyun 	msm_mux_jitter_bist,
529*4882a593Smuzhiyun 	msm_mux_lpass_slimbus,
530*4882a593Smuzhiyun 	msm_mux_mdp_vsync,
531*4882a593Smuzhiyun 	msm_mux_mdp_vsync0,
532*4882a593Smuzhiyun 	msm_mux_mdp_vsync1,
533*4882a593Smuzhiyun 	msm_mux_mdp_vsync2,
534*4882a593Smuzhiyun 	msm_mux_mdp_vsync3,
535*4882a593Smuzhiyun 	msm_mux_mi2s0_data0,
536*4882a593Smuzhiyun 	msm_mux_mi2s0_data1,
537*4882a593Smuzhiyun 	msm_mux_mi2s0_sck,
538*4882a593Smuzhiyun 	msm_mux_mi2s0_ws,
539*4882a593Smuzhiyun 	msm_mux_mi2s1_data0,
540*4882a593Smuzhiyun 	msm_mux_mi2s1_data1,
541*4882a593Smuzhiyun 	msm_mux_mi2s1_sck,
542*4882a593Smuzhiyun 	msm_mux_mi2s1_ws,
543*4882a593Smuzhiyun 	msm_mux_mi2s2_data0,
544*4882a593Smuzhiyun 	msm_mux_mi2s2_data1,
545*4882a593Smuzhiyun 	msm_mux_mi2s2_sck,
546*4882a593Smuzhiyun 	msm_mux_mi2s2_ws,
547*4882a593Smuzhiyun 	msm_mux_pci_e0,
548*4882a593Smuzhiyun 	msm_mux_pci_e1,
549*4882a593Smuzhiyun 	msm_mux_pci_e2,
550*4882a593Smuzhiyun 	msm_mux_phase_flag,
551*4882a593Smuzhiyun 	msm_mux_pll_bist,
552*4882a593Smuzhiyun 	msm_mux_pll_bypassnl,
553*4882a593Smuzhiyun 	msm_mux_pll_clk,
554*4882a593Smuzhiyun 	msm_mux_pll_reset,
555*4882a593Smuzhiyun 	msm_mux_pri_mi2s,
556*4882a593Smuzhiyun 	msm_mux_prng_rosc,
557*4882a593Smuzhiyun 	msm_mux_qdss_cti,
558*4882a593Smuzhiyun 	msm_mux_qdss_gpio,
559*4882a593Smuzhiyun 	msm_mux_qspi0,
560*4882a593Smuzhiyun 	msm_mux_qspi1,
561*4882a593Smuzhiyun 	msm_mux_qspi2,
562*4882a593Smuzhiyun 	msm_mux_qspi3,
563*4882a593Smuzhiyun 	msm_mux_qspi_clk,
564*4882a593Smuzhiyun 	msm_mux_qspi_cs,
565*4882a593Smuzhiyun 	msm_mux_qup0,
566*4882a593Smuzhiyun 	msm_mux_qup1,
567*4882a593Smuzhiyun 	msm_mux_qup10,
568*4882a593Smuzhiyun 	msm_mux_qup11,
569*4882a593Smuzhiyun 	msm_mux_qup12,
570*4882a593Smuzhiyun 	msm_mux_qup13,
571*4882a593Smuzhiyun 	msm_mux_qup14,
572*4882a593Smuzhiyun 	msm_mux_qup15,
573*4882a593Smuzhiyun 	msm_mux_qup16,
574*4882a593Smuzhiyun 	msm_mux_qup17,
575*4882a593Smuzhiyun 	msm_mux_qup18,
576*4882a593Smuzhiyun 	msm_mux_qup19,
577*4882a593Smuzhiyun 	msm_mux_qup2,
578*4882a593Smuzhiyun 	msm_mux_qup3,
579*4882a593Smuzhiyun 	msm_mux_qup4,
580*4882a593Smuzhiyun 	msm_mux_qup5,
581*4882a593Smuzhiyun 	msm_mux_qup6,
582*4882a593Smuzhiyun 	msm_mux_qup7,
583*4882a593Smuzhiyun 	msm_mux_qup8,
584*4882a593Smuzhiyun 	msm_mux_qup9,
585*4882a593Smuzhiyun 	msm_mux_qup_l4,
586*4882a593Smuzhiyun 	msm_mux_qup_l5,
587*4882a593Smuzhiyun 	msm_mux_qup_l6,
588*4882a593Smuzhiyun 	msm_mux_sd_write,
589*4882a593Smuzhiyun 	msm_mux_sdc40,
590*4882a593Smuzhiyun 	msm_mux_sdc41,
591*4882a593Smuzhiyun 	msm_mux_sdc42,
592*4882a593Smuzhiyun 	msm_mux_sdc43,
593*4882a593Smuzhiyun 	msm_mux_sdc4_clk,
594*4882a593Smuzhiyun 	msm_mux_sdc4_cmd,
595*4882a593Smuzhiyun 	msm_mux_sec_mi2s,
596*4882a593Smuzhiyun 	msm_mux_sp_cmu,
597*4882a593Smuzhiyun 	msm_mux_tgu_ch0,
598*4882a593Smuzhiyun 	msm_mux_tgu_ch1,
599*4882a593Smuzhiyun 	msm_mux_tgu_ch2,
600*4882a593Smuzhiyun 	msm_mux_tgu_ch3,
601*4882a593Smuzhiyun 	msm_mux_tsense_pwm1,
602*4882a593Smuzhiyun 	msm_mux_tsense_pwm2,
603*4882a593Smuzhiyun 	msm_mux_tsif0_clk,
604*4882a593Smuzhiyun 	msm_mux_tsif0_data,
605*4882a593Smuzhiyun 	msm_mux_tsif0_en,
606*4882a593Smuzhiyun 	msm_mux_tsif0_error,
607*4882a593Smuzhiyun 	msm_mux_tsif0_sync,
608*4882a593Smuzhiyun 	msm_mux_tsif1_clk,
609*4882a593Smuzhiyun 	msm_mux_tsif1_data,
610*4882a593Smuzhiyun 	msm_mux_tsif1_en,
611*4882a593Smuzhiyun 	msm_mux_tsif1_error,
612*4882a593Smuzhiyun 	msm_mux_tsif1_sync,
613*4882a593Smuzhiyun 	msm_mux_usb2phy_ac,
614*4882a593Smuzhiyun 	msm_mux_usb_phy,
615*4882a593Smuzhiyun 	msm_mux_vsense_trigger,
616*4882a593Smuzhiyun 	msm_mux__,
617*4882a593Smuzhiyun };
618*4882a593Smuzhiyun 
619*4882a593Smuzhiyun static const char * const tsif1_data_groups[] = {
620*4882a593Smuzhiyun 	"gpio75",
621*4882a593Smuzhiyun };
622*4882a593Smuzhiyun static const char * const sdc41_groups[] = {
623*4882a593Smuzhiyun 	"gpio75",
624*4882a593Smuzhiyun };
625*4882a593Smuzhiyun static const char * const tsif1_sync_groups[] = {
626*4882a593Smuzhiyun 	"gpio76",
627*4882a593Smuzhiyun };
628*4882a593Smuzhiyun static const char * const sdc40_groups[] = {
629*4882a593Smuzhiyun 	"gpio76",
630*4882a593Smuzhiyun };
631*4882a593Smuzhiyun static const char * const aoss_cti_groups[] = {
632*4882a593Smuzhiyun 	"gpio77",
633*4882a593Smuzhiyun };
634*4882a593Smuzhiyun static const char * const phase_flag_groups[] = {
635*4882a593Smuzhiyun 	"gpio45", "gpio46", "gpio47", "gpio48", "gpio49", "gpio50", "gpio51",
636*4882a593Smuzhiyun 	"gpio69", "gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio77",
637*4882a593Smuzhiyun 	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
638*4882a593Smuzhiyun 	"gpio103", "gpio104", "gpio115", "gpio116", "gpio117", "gpio118",
639*4882a593Smuzhiyun 	"gpio119", "gpio120", "gpio122", "gpio124", "gpio125",
640*4882a593Smuzhiyun };
641*4882a593Smuzhiyun static const char * const sd_write_groups[] = {
642*4882a593Smuzhiyun 	"gpio78",
643*4882a593Smuzhiyun };
644*4882a593Smuzhiyun static const char * const pci_e0_groups[] = {
645*4882a593Smuzhiyun 	"gpio79", "gpio80",
646*4882a593Smuzhiyun };
647*4882a593Smuzhiyun static const char * const pci_e1_groups[] = {
648*4882a593Smuzhiyun 	"gpio82", "gpio83",
649*4882a593Smuzhiyun };
650*4882a593Smuzhiyun static const char * const pci_e2_groups[] = {
651*4882a593Smuzhiyun 	"gpio85", "gpio86",
652*4882a593Smuzhiyun };
653*4882a593Smuzhiyun static const char * const tgu_ch0_groups[] = {
654*4882a593Smuzhiyun 	"gpio85",
655*4882a593Smuzhiyun };
656*4882a593Smuzhiyun static const char * const atest_groups[] = {
657*4882a593Smuzhiyun 	"gpio24", "gpio25", "gpio26", "gpio27", "gpio32", "gpio33", "gpio34",
658*4882a593Smuzhiyun 	"gpio35", "gpio36", "gpio37", "gpio85", "gpio86", "gpio87", "gpio88",
659*4882a593Smuzhiyun 	"gpio89",
660*4882a593Smuzhiyun };
661*4882a593Smuzhiyun static const char * const tgu_ch3_groups[] = {
662*4882a593Smuzhiyun 	"gpio86",
663*4882a593Smuzhiyun };
664*4882a593Smuzhiyun static const char * const tsif1_error_groups[] = {
665*4882a593Smuzhiyun 	"gpio90",
666*4882a593Smuzhiyun };
667*4882a593Smuzhiyun static const char * const tgu_ch1_groups[] = {
668*4882a593Smuzhiyun 	"gpio90",
669*4882a593Smuzhiyun };
670*4882a593Smuzhiyun static const char * const tsif0_error_groups[] = {
671*4882a593Smuzhiyun 	"gpio91",
672*4882a593Smuzhiyun };
673*4882a593Smuzhiyun static const char * const tgu_ch2_groups[] = {
674*4882a593Smuzhiyun 	"gpio91",
675*4882a593Smuzhiyun };
676*4882a593Smuzhiyun static const char * const cam_mclk_groups[] = {
677*4882a593Smuzhiyun 	"gpio94", "gpio95", "gpio96", "gpio97", "gpio98", "gpio99", "gpio100",
678*4882a593Smuzhiyun };
679*4882a593Smuzhiyun static const char * const ddr_bist_groups[] = {
680*4882a593Smuzhiyun 	"gpio94", "gpio95", "gpio143", "gpio144",
681*4882a593Smuzhiyun };
682*4882a593Smuzhiyun static const char * const pll_bypassnl_groups[] = {
683*4882a593Smuzhiyun 	"gpio96",
684*4882a593Smuzhiyun };
685*4882a593Smuzhiyun static const char * const pll_reset_groups[] = {
686*4882a593Smuzhiyun 	"gpio97",
687*4882a593Smuzhiyun };
688*4882a593Smuzhiyun static const char * const cci_i2c_groups[] = {
689*4882a593Smuzhiyun 	"gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106",
690*4882a593Smuzhiyun 	"gpio107", "gpio108",
691*4882a593Smuzhiyun };
692*4882a593Smuzhiyun static const char * const qdss_gpio_groups[] = {
693*4882a593Smuzhiyun 	"gpio94", "gpio95", "gpio96", "gpio97", "gpio98", "gpio99", "gpio100",
694*4882a593Smuzhiyun 	"gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106",
695*4882a593Smuzhiyun 	"gpio107", "gpio108", "gpio109", "gpio110", "gpio111", "gpio160",
696*4882a593Smuzhiyun 	"gpio161", "gpio162", "gpio163", "gpio164", "gpio165", "gpio166",
697*4882a593Smuzhiyun 	"gpio167", "gpio168", "gpio169", "gpio170", "gpio171", "gpio172",
698*4882a593Smuzhiyun 	"gpio173", "gpio174", "gpio175", "gpio176", "gpio177",
699*4882a593Smuzhiyun };
700*4882a593Smuzhiyun static const char * const gcc_gp1_groups[] = {
701*4882a593Smuzhiyun 	"gpio106", "gpio136",
702*4882a593Smuzhiyun };
703*4882a593Smuzhiyun static const char * const gcc_gp2_groups[] = {
704*4882a593Smuzhiyun 	"gpio107", "gpio137",
705*4882a593Smuzhiyun };
706*4882a593Smuzhiyun static const char * const gcc_gp3_groups[] = {
707*4882a593Smuzhiyun 	"gpio108", "gpio138",
708*4882a593Smuzhiyun };
709*4882a593Smuzhiyun static const char * const cci_timer0_groups[] = {
710*4882a593Smuzhiyun 	"gpio109",
711*4882a593Smuzhiyun };
712*4882a593Smuzhiyun static const char * const cci_timer1_groups[] = {
713*4882a593Smuzhiyun 	"gpio110",
714*4882a593Smuzhiyun };
715*4882a593Smuzhiyun static const char * const cci_timer2_groups[] = {
716*4882a593Smuzhiyun 	"gpio111",
717*4882a593Smuzhiyun };
718*4882a593Smuzhiyun static const char * const cci_timer3_groups[] = {
719*4882a593Smuzhiyun 	"gpio112",
720*4882a593Smuzhiyun };
721*4882a593Smuzhiyun static const char * const cci_async_groups[] = {
722*4882a593Smuzhiyun 	"gpio112", "gpio113", "gpio114",
723*4882a593Smuzhiyun };
724*4882a593Smuzhiyun static const char * const cci_timer4_groups[] = {
725*4882a593Smuzhiyun 	"gpio113",
726*4882a593Smuzhiyun };
727*4882a593Smuzhiyun static const char * const qup2_groups[] = {
728*4882a593Smuzhiyun 	"gpio115", "gpio116", "gpio117", "gpio118",
729*4882a593Smuzhiyun };
730*4882a593Smuzhiyun static const char * const qup3_groups[] = {
731*4882a593Smuzhiyun 	"gpio119", "gpio120", "gpio121", "gpio122",
732*4882a593Smuzhiyun };
733*4882a593Smuzhiyun static const char * const tsense_pwm1_groups[] = {
734*4882a593Smuzhiyun 	"gpio123",
735*4882a593Smuzhiyun };
736*4882a593Smuzhiyun static const char * const tsense_pwm2_groups[] = {
737*4882a593Smuzhiyun 	"gpio123",
738*4882a593Smuzhiyun };
739*4882a593Smuzhiyun static const char * const qup9_groups[] = {
740*4882a593Smuzhiyun 	"gpio125", "gpio126", "gpio127", "gpio128",
741*4882a593Smuzhiyun };
742*4882a593Smuzhiyun static const char * const qup10_groups[] = {
743*4882a593Smuzhiyun 	"gpio129", "gpio130", "gpio131", "gpio132",
744*4882a593Smuzhiyun };
745*4882a593Smuzhiyun static const char * const mi2s2_sck_groups[] = {
746*4882a593Smuzhiyun 	"gpio133",
747*4882a593Smuzhiyun };
748*4882a593Smuzhiyun static const char * const mi2s2_data0_groups[] = {
749*4882a593Smuzhiyun 	"gpio134",
750*4882a593Smuzhiyun };
751*4882a593Smuzhiyun static const char * const mi2s2_ws_groups[] = {
752*4882a593Smuzhiyun 	"gpio135",
753*4882a593Smuzhiyun };
754*4882a593Smuzhiyun static const char * const pri_mi2s_groups[] = {
755*4882a593Smuzhiyun 	"gpio136",
756*4882a593Smuzhiyun };
757*4882a593Smuzhiyun static const char * const sec_mi2s_groups[] = {
758*4882a593Smuzhiyun 	"gpio137",
759*4882a593Smuzhiyun };
760*4882a593Smuzhiyun static const char * const audio_ref_groups[] = {
761*4882a593Smuzhiyun 	"gpio137",
762*4882a593Smuzhiyun };
763*4882a593Smuzhiyun static const char * const mi2s2_data1_groups[] = {
764*4882a593Smuzhiyun 	"gpio137",
765*4882a593Smuzhiyun };
766*4882a593Smuzhiyun static const char * const mi2s0_sck_groups[] = {
767*4882a593Smuzhiyun 	"gpio138",
768*4882a593Smuzhiyun };
769*4882a593Smuzhiyun static const char * const mi2s0_data0_groups[] = {
770*4882a593Smuzhiyun 	"gpio139",
771*4882a593Smuzhiyun };
772*4882a593Smuzhiyun static const char * const mi2s0_data1_groups[] = {
773*4882a593Smuzhiyun 	"gpio140",
774*4882a593Smuzhiyun };
775*4882a593Smuzhiyun static const char * const mi2s0_ws_groups[] = {
776*4882a593Smuzhiyun 	"gpio141",
777*4882a593Smuzhiyun };
778*4882a593Smuzhiyun static const char * const lpass_slimbus_groups[] = {
779*4882a593Smuzhiyun 	"gpio142", "gpio143", "gpio144", "gpio145",
780*4882a593Smuzhiyun };
781*4882a593Smuzhiyun static const char * const mi2s1_sck_groups[] = {
782*4882a593Smuzhiyun 	"gpio142",
783*4882a593Smuzhiyun };
784*4882a593Smuzhiyun static const char * const mi2s1_data0_groups[] = {
785*4882a593Smuzhiyun 	"gpio143",
786*4882a593Smuzhiyun };
787*4882a593Smuzhiyun static const char * const mi2s1_data1_groups[] = {
788*4882a593Smuzhiyun 	"gpio144",
789*4882a593Smuzhiyun };
790*4882a593Smuzhiyun static const char * const mi2s1_ws_groups[] = {
791*4882a593Smuzhiyun 	"gpio145",
792*4882a593Smuzhiyun };
793*4882a593Smuzhiyun static const char * const cri_trng0_groups[] = {
794*4882a593Smuzhiyun 	"gpio159",
795*4882a593Smuzhiyun };
796*4882a593Smuzhiyun static const char * const cri_trng1_groups[] = {
797*4882a593Smuzhiyun 	"gpio160",
798*4882a593Smuzhiyun };
799*4882a593Smuzhiyun static const char * const cri_trng_groups[] = {
800*4882a593Smuzhiyun 	"gpio161",
801*4882a593Smuzhiyun };
802*4882a593Smuzhiyun static const char * const sp_cmu_groups[] = {
803*4882a593Smuzhiyun 	"gpio162",
804*4882a593Smuzhiyun };
805*4882a593Smuzhiyun static const char * const prng_rosc_groups[] = {
806*4882a593Smuzhiyun 	"gpio163",
807*4882a593Smuzhiyun };
808*4882a593Smuzhiyun static const char * const qup19_groups[] = {
809*4882a593Smuzhiyun 	"gpio0", "gpio1", "gpio2", "gpio3",
810*4882a593Smuzhiyun };
811*4882a593Smuzhiyun static const char * const gpio_groups[] = {
812*4882a593Smuzhiyun 	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
813*4882a593Smuzhiyun 	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
814*4882a593Smuzhiyun 	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
815*4882a593Smuzhiyun 	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
816*4882a593Smuzhiyun 	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
817*4882a593Smuzhiyun 	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
818*4882a593Smuzhiyun 	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
819*4882a593Smuzhiyun 	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
820*4882a593Smuzhiyun 	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
821*4882a593Smuzhiyun 	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
822*4882a593Smuzhiyun 	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
823*4882a593Smuzhiyun 	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
824*4882a593Smuzhiyun 	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
825*4882a593Smuzhiyun 	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
826*4882a593Smuzhiyun 	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
827*4882a593Smuzhiyun 	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
828*4882a593Smuzhiyun 	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
829*4882a593Smuzhiyun 	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
830*4882a593Smuzhiyun 	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
831*4882a593Smuzhiyun 	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
832*4882a593Smuzhiyun 	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
833*4882a593Smuzhiyun 	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
834*4882a593Smuzhiyun 	"gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
835*4882a593Smuzhiyun 	"gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158",
836*4882a593Smuzhiyun 	"gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
837*4882a593Smuzhiyun 	"gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170",
838*4882a593Smuzhiyun 	"gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176",
839*4882a593Smuzhiyun 	"gpio177", "gpio178", "gpio179",
840*4882a593Smuzhiyun };
841*4882a593Smuzhiyun static const char * const qdss_cti_groups[] = {
842*4882a593Smuzhiyun 	"gpio0", "gpio2", "gpio2", "gpio44", "gpio45", "gpio46", "gpio92",
843*4882a593Smuzhiyun 	"gpio93",
844*4882a593Smuzhiyun };
845*4882a593Smuzhiyun static const char * const qup1_groups[] = {
846*4882a593Smuzhiyun 	"gpio4", "gpio5", "gpio6", "gpio7",
847*4882a593Smuzhiyun };
848*4882a593Smuzhiyun static const char * const ibi_i3c_groups[] = {
849*4882a593Smuzhiyun 	"gpio4", "gpio5", "gpio24", "gpio25", "gpio28", "gpio29", "gpio40",
850*4882a593Smuzhiyun 	"gpio41",
851*4882a593Smuzhiyun };
852*4882a593Smuzhiyun static const char * const qup_l4_groups[] = {
853*4882a593Smuzhiyun 	"gpio6", "gpio14", "gpio46", "gpio123",
854*4882a593Smuzhiyun };
855*4882a593Smuzhiyun static const char * const qup_l5_groups[] = {
856*4882a593Smuzhiyun 	"gpio7", "gpio15", "gpio47", "gpio124",
857*4882a593Smuzhiyun };
858*4882a593Smuzhiyun static const char * const qup4_groups[] = {
859*4882a593Smuzhiyun 	"gpio8", "gpio9", "gpio10", "gpio11",
860*4882a593Smuzhiyun };
861*4882a593Smuzhiyun static const char * const qup5_groups[] = {
862*4882a593Smuzhiyun 	"gpio12", "gpio13", "gpio14", "gpio15",
863*4882a593Smuzhiyun };
864*4882a593Smuzhiyun static const char * const qup6_groups[] = {
865*4882a593Smuzhiyun 	"gpio16", "gpio17", "gpio18", "gpio19",
866*4882a593Smuzhiyun };
867*4882a593Smuzhiyun static const char * const qup7_groups[] = {
868*4882a593Smuzhiyun 	"gpio20", "gpio21", "gpio22", "gpio23",
869*4882a593Smuzhiyun };
870*4882a593Smuzhiyun static const char * const qup8_groups[] = {
871*4882a593Smuzhiyun 	"gpio24", "gpio25", "gpio26", "gpio27",
872*4882a593Smuzhiyun };
873*4882a593Smuzhiyun static const char * const qup0_groups[] = {
874*4882a593Smuzhiyun 	"gpio28", "gpio29", "gpio30", "gpio31",
875*4882a593Smuzhiyun };
876*4882a593Smuzhiyun static const char * const qup12_groups[] = {
877*4882a593Smuzhiyun 	"gpio32", "gpio33", "gpio34", "gpio35",
878*4882a593Smuzhiyun };
879*4882a593Smuzhiyun static const char * const qup13_groups[] = {
880*4882a593Smuzhiyun 	"gpio36", "gpio37", "gpio38", "gpio39",
881*4882a593Smuzhiyun };
882*4882a593Smuzhiyun static const char * const qup14_groups[] = {
883*4882a593Smuzhiyun 	"gpio40", "gpio41", "gpio42", "gpio43",
884*4882a593Smuzhiyun };
885*4882a593Smuzhiyun static const char * const ddr_pxi3_groups[] = {
886*4882a593Smuzhiyun 	"gpio40", "gpio43",
887*4882a593Smuzhiyun };
888*4882a593Smuzhiyun static const char * const ddr_pxi1_groups[] = {
889*4882a593Smuzhiyun 	"gpio41", "gpio42",
890*4882a593Smuzhiyun };
891*4882a593Smuzhiyun static const char * const vsense_trigger_groups[] = {
892*4882a593Smuzhiyun 	"gpio42",
893*4882a593Smuzhiyun };
894*4882a593Smuzhiyun static const char * const qup15_groups[] = {
895*4882a593Smuzhiyun 	"gpio44", "gpio45", "gpio46", "gpio47",
896*4882a593Smuzhiyun };
897*4882a593Smuzhiyun static const char * const dbg_out_groups[] = {
898*4882a593Smuzhiyun 	"gpio44",
899*4882a593Smuzhiyun };
900*4882a593Smuzhiyun static const char * const qup16_groups[] = {
901*4882a593Smuzhiyun 	"gpio48", "gpio49", "gpio50", "gpio51",
902*4882a593Smuzhiyun };
903*4882a593Smuzhiyun static const char * const qup17_groups[] = {
904*4882a593Smuzhiyun 	"gpio52", "gpio53", "gpio54", "gpio55",
905*4882a593Smuzhiyun };
906*4882a593Smuzhiyun static const char * const ddr_pxi0_groups[] = {
907*4882a593Smuzhiyun 	"gpio52", "gpio53",
908*4882a593Smuzhiyun };
909*4882a593Smuzhiyun static const char * const jitter_bist_groups[] = {
910*4882a593Smuzhiyun 	"gpio54",
911*4882a593Smuzhiyun };
912*4882a593Smuzhiyun static const char * const pll_bist_groups[] = {
913*4882a593Smuzhiyun 	"gpio55",
914*4882a593Smuzhiyun };
915*4882a593Smuzhiyun static const char * const ddr_pxi2_groups[] = {
916*4882a593Smuzhiyun 	"gpio55", "gpio56",
917*4882a593Smuzhiyun };
918*4882a593Smuzhiyun static const char * const qup18_groups[] = {
919*4882a593Smuzhiyun 	"gpio56", "gpio57", "gpio58", "gpio59",
920*4882a593Smuzhiyun };
921*4882a593Smuzhiyun static const char * const qup11_groups[] = {
922*4882a593Smuzhiyun 	"gpio60", "gpio61", "gpio62", "gpio63",
923*4882a593Smuzhiyun };
924*4882a593Smuzhiyun static const char * const usb2phy_ac_groups[] = {
925*4882a593Smuzhiyun 	"gpio64", "gpio90",
926*4882a593Smuzhiyun };
927*4882a593Smuzhiyun static const char * const qup_l6_groups[] = {
928*4882a593Smuzhiyun 	"gpio64", "gpio77", "gpio92", "gpio93",
929*4882a593Smuzhiyun };
930*4882a593Smuzhiyun static const char * const usb_phy_groups[] = {
931*4882a593Smuzhiyun 	"gpio65",
932*4882a593Smuzhiyun };
933*4882a593Smuzhiyun static const char * const pll_clk_groups[] = {
934*4882a593Smuzhiyun 	"gpio65",
935*4882a593Smuzhiyun };
936*4882a593Smuzhiyun static const char * const mdp_vsync_groups[] = {
937*4882a593Smuzhiyun 	"gpio66", "gpio67", "gpio68", "gpio122", "gpio124",
938*4882a593Smuzhiyun };
939*4882a593Smuzhiyun static const char * const dp_lcd_groups[] = {
940*4882a593Smuzhiyun 	"gpio67",
941*4882a593Smuzhiyun };
942*4882a593Smuzhiyun static const char * const dp_hot_groups[] = {
943*4882a593Smuzhiyun 	"gpio68",
944*4882a593Smuzhiyun };
945*4882a593Smuzhiyun static const char * const qspi_cs_groups[] = {
946*4882a593Smuzhiyun 	"gpio69", "gpio75",
947*4882a593Smuzhiyun };
948*4882a593Smuzhiyun static const char * const tsif0_clk_groups[] = {
949*4882a593Smuzhiyun 	"gpio69",
950*4882a593Smuzhiyun };
951*4882a593Smuzhiyun static const char * const qspi0_groups[] = {
952*4882a593Smuzhiyun 	"gpio70",
953*4882a593Smuzhiyun };
954*4882a593Smuzhiyun static const char * const tsif0_en_groups[] = {
955*4882a593Smuzhiyun 	"gpio70",
956*4882a593Smuzhiyun };
957*4882a593Smuzhiyun static const char * const mdp_vsync0_groups[] = {
958*4882a593Smuzhiyun 	"gpio70",
959*4882a593Smuzhiyun };
960*4882a593Smuzhiyun static const char * const mdp_vsync1_groups[] = {
961*4882a593Smuzhiyun 	"gpio70",
962*4882a593Smuzhiyun };
963*4882a593Smuzhiyun static const char * const mdp_vsync2_groups[] = {
964*4882a593Smuzhiyun 	"gpio70",
965*4882a593Smuzhiyun };
966*4882a593Smuzhiyun static const char * const mdp_vsync3_groups[] = {
967*4882a593Smuzhiyun 	"gpio70",
968*4882a593Smuzhiyun };
969*4882a593Smuzhiyun static const char * const qspi1_groups[] = {
970*4882a593Smuzhiyun 	"gpio71",
971*4882a593Smuzhiyun };
972*4882a593Smuzhiyun static const char * const tsif0_data_groups[] = {
973*4882a593Smuzhiyun 	"gpio71",
974*4882a593Smuzhiyun };
975*4882a593Smuzhiyun static const char * const sdc4_cmd_groups[] = {
976*4882a593Smuzhiyun 	"gpio71",
977*4882a593Smuzhiyun };
978*4882a593Smuzhiyun static const char * const qspi2_groups[] = {
979*4882a593Smuzhiyun 	"gpio72",
980*4882a593Smuzhiyun };
981*4882a593Smuzhiyun static const char * const tsif0_sync_groups[] = {
982*4882a593Smuzhiyun 	"gpio72",
983*4882a593Smuzhiyun };
984*4882a593Smuzhiyun static const char * const sdc43_groups[] = {
985*4882a593Smuzhiyun 	"gpio72",
986*4882a593Smuzhiyun };
987*4882a593Smuzhiyun static const char * const qspi_clk_groups[] = {
988*4882a593Smuzhiyun 	"gpio73",
989*4882a593Smuzhiyun };
990*4882a593Smuzhiyun static const char * const tsif1_clk_groups[] = {
991*4882a593Smuzhiyun 	"gpio73",
992*4882a593Smuzhiyun };
993*4882a593Smuzhiyun static const char * const sdc4_clk_groups[] = {
994*4882a593Smuzhiyun 	"gpio73",
995*4882a593Smuzhiyun };
996*4882a593Smuzhiyun static const char * const qspi3_groups[] = {
997*4882a593Smuzhiyun 	"gpio74",
998*4882a593Smuzhiyun };
999*4882a593Smuzhiyun static const char * const tsif1_en_groups[] = {
1000*4882a593Smuzhiyun 	"gpio74",
1001*4882a593Smuzhiyun };
1002*4882a593Smuzhiyun static const char * const sdc42_groups[] = {
1003*4882a593Smuzhiyun 	"gpio74",
1004*4882a593Smuzhiyun };
1005*4882a593Smuzhiyun 
1006*4882a593Smuzhiyun static const struct msm_function sm8250_functions[] = {
1007*4882a593Smuzhiyun 	FUNCTION(aoss_cti),
1008*4882a593Smuzhiyun 	FUNCTION(atest),
1009*4882a593Smuzhiyun 	FUNCTION(audio_ref),
1010*4882a593Smuzhiyun 	FUNCTION(cam_mclk),
1011*4882a593Smuzhiyun 	FUNCTION(cci_async),
1012*4882a593Smuzhiyun 	FUNCTION(cci_i2c),
1013*4882a593Smuzhiyun 	FUNCTION(cci_timer0),
1014*4882a593Smuzhiyun 	FUNCTION(cci_timer1),
1015*4882a593Smuzhiyun 	FUNCTION(cci_timer2),
1016*4882a593Smuzhiyun 	FUNCTION(cci_timer3),
1017*4882a593Smuzhiyun 	FUNCTION(cci_timer4),
1018*4882a593Smuzhiyun 	FUNCTION(cri_trng),
1019*4882a593Smuzhiyun 	FUNCTION(cri_trng0),
1020*4882a593Smuzhiyun 	FUNCTION(cri_trng1),
1021*4882a593Smuzhiyun 	FUNCTION(dbg_out),
1022*4882a593Smuzhiyun 	FUNCTION(ddr_bist),
1023*4882a593Smuzhiyun 	FUNCTION(ddr_pxi0),
1024*4882a593Smuzhiyun 	FUNCTION(ddr_pxi1),
1025*4882a593Smuzhiyun 	FUNCTION(ddr_pxi2),
1026*4882a593Smuzhiyun 	FUNCTION(ddr_pxi3),
1027*4882a593Smuzhiyun 	FUNCTION(dp_hot),
1028*4882a593Smuzhiyun 	FUNCTION(dp_lcd),
1029*4882a593Smuzhiyun 	FUNCTION(gcc_gp1),
1030*4882a593Smuzhiyun 	FUNCTION(gcc_gp2),
1031*4882a593Smuzhiyun 	FUNCTION(gcc_gp3),
1032*4882a593Smuzhiyun 	FUNCTION(gpio),
1033*4882a593Smuzhiyun 	FUNCTION(ibi_i3c),
1034*4882a593Smuzhiyun 	FUNCTION(jitter_bist),
1035*4882a593Smuzhiyun 	FUNCTION(lpass_slimbus),
1036*4882a593Smuzhiyun 	FUNCTION(mdp_vsync),
1037*4882a593Smuzhiyun 	FUNCTION(mdp_vsync0),
1038*4882a593Smuzhiyun 	FUNCTION(mdp_vsync1),
1039*4882a593Smuzhiyun 	FUNCTION(mdp_vsync2),
1040*4882a593Smuzhiyun 	FUNCTION(mdp_vsync3),
1041*4882a593Smuzhiyun 	FUNCTION(mi2s0_data0),
1042*4882a593Smuzhiyun 	FUNCTION(mi2s0_data1),
1043*4882a593Smuzhiyun 	FUNCTION(mi2s0_sck),
1044*4882a593Smuzhiyun 	FUNCTION(mi2s0_ws),
1045*4882a593Smuzhiyun 	FUNCTION(mi2s1_data0),
1046*4882a593Smuzhiyun 	FUNCTION(mi2s1_data1),
1047*4882a593Smuzhiyun 	FUNCTION(mi2s1_sck),
1048*4882a593Smuzhiyun 	FUNCTION(mi2s1_ws),
1049*4882a593Smuzhiyun 	FUNCTION(mi2s2_data0),
1050*4882a593Smuzhiyun 	FUNCTION(mi2s2_data1),
1051*4882a593Smuzhiyun 	FUNCTION(mi2s2_sck),
1052*4882a593Smuzhiyun 	FUNCTION(mi2s2_ws),
1053*4882a593Smuzhiyun 	FUNCTION(pci_e0),
1054*4882a593Smuzhiyun 	FUNCTION(pci_e1),
1055*4882a593Smuzhiyun 	FUNCTION(pci_e2),
1056*4882a593Smuzhiyun 	FUNCTION(phase_flag),
1057*4882a593Smuzhiyun 	FUNCTION(pll_bist),
1058*4882a593Smuzhiyun 	FUNCTION(pll_bypassnl),
1059*4882a593Smuzhiyun 	FUNCTION(pll_clk),
1060*4882a593Smuzhiyun 	FUNCTION(pll_reset),
1061*4882a593Smuzhiyun 	FUNCTION(pri_mi2s),
1062*4882a593Smuzhiyun 	FUNCTION(prng_rosc),
1063*4882a593Smuzhiyun 	FUNCTION(qdss_cti),
1064*4882a593Smuzhiyun 	FUNCTION(qdss_gpio),
1065*4882a593Smuzhiyun 	FUNCTION(qspi0),
1066*4882a593Smuzhiyun 	FUNCTION(qspi1),
1067*4882a593Smuzhiyun 	FUNCTION(qspi2),
1068*4882a593Smuzhiyun 	FUNCTION(qspi3),
1069*4882a593Smuzhiyun 	FUNCTION(qspi_clk),
1070*4882a593Smuzhiyun 	FUNCTION(qspi_cs),
1071*4882a593Smuzhiyun 	FUNCTION(qup0),
1072*4882a593Smuzhiyun 	FUNCTION(qup1),
1073*4882a593Smuzhiyun 	FUNCTION(qup10),
1074*4882a593Smuzhiyun 	FUNCTION(qup11),
1075*4882a593Smuzhiyun 	FUNCTION(qup12),
1076*4882a593Smuzhiyun 	FUNCTION(qup13),
1077*4882a593Smuzhiyun 	FUNCTION(qup14),
1078*4882a593Smuzhiyun 	FUNCTION(qup15),
1079*4882a593Smuzhiyun 	FUNCTION(qup16),
1080*4882a593Smuzhiyun 	FUNCTION(qup17),
1081*4882a593Smuzhiyun 	FUNCTION(qup18),
1082*4882a593Smuzhiyun 	FUNCTION(qup19),
1083*4882a593Smuzhiyun 	FUNCTION(qup2),
1084*4882a593Smuzhiyun 	FUNCTION(qup3),
1085*4882a593Smuzhiyun 	FUNCTION(qup4),
1086*4882a593Smuzhiyun 	FUNCTION(qup5),
1087*4882a593Smuzhiyun 	FUNCTION(qup6),
1088*4882a593Smuzhiyun 	FUNCTION(qup7),
1089*4882a593Smuzhiyun 	FUNCTION(qup8),
1090*4882a593Smuzhiyun 	FUNCTION(qup9),
1091*4882a593Smuzhiyun 	FUNCTION(qup_l4),
1092*4882a593Smuzhiyun 	FUNCTION(qup_l5),
1093*4882a593Smuzhiyun 	FUNCTION(qup_l6),
1094*4882a593Smuzhiyun 	FUNCTION(sd_write),
1095*4882a593Smuzhiyun 	FUNCTION(sdc40),
1096*4882a593Smuzhiyun 	FUNCTION(sdc41),
1097*4882a593Smuzhiyun 	FUNCTION(sdc42),
1098*4882a593Smuzhiyun 	FUNCTION(sdc43),
1099*4882a593Smuzhiyun 	FUNCTION(sdc4_clk),
1100*4882a593Smuzhiyun 	FUNCTION(sdc4_cmd),
1101*4882a593Smuzhiyun 	FUNCTION(sec_mi2s),
1102*4882a593Smuzhiyun 	FUNCTION(sp_cmu),
1103*4882a593Smuzhiyun 	FUNCTION(tgu_ch0),
1104*4882a593Smuzhiyun 	FUNCTION(tgu_ch1),
1105*4882a593Smuzhiyun 	FUNCTION(tgu_ch2),
1106*4882a593Smuzhiyun 	FUNCTION(tgu_ch3),
1107*4882a593Smuzhiyun 	FUNCTION(tsense_pwm1),
1108*4882a593Smuzhiyun 	FUNCTION(tsense_pwm2),
1109*4882a593Smuzhiyun 	FUNCTION(tsif0_clk),
1110*4882a593Smuzhiyun 	FUNCTION(tsif0_data),
1111*4882a593Smuzhiyun 	FUNCTION(tsif0_en),
1112*4882a593Smuzhiyun 	FUNCTION(tsif0_error),
1113*4882a593Smuzhiyun 	FUNCTION(tsif0_sync),
1114*4882a593Smuzhiyun 	FUNCTION(tsif1_clk),
1115*4882a593Smuzhiyun 	FUNCTION(tsif1_data),
1116*4882a593Smuzhiyun 	FUNCTION(tsif1_en),
1117*4882a593Smuzhiyun 	FUNCTION(tsif1_error),
1118*4882a593Smuzhiyun 	FUNCTION(tsif1_sync),
1119*4882a593Smuzhiyun 	FUNCTION(usb2phy_ac),
1120*4882a593Smuzhiyun 	FUNCTION(usb_phy),
1121*4882a593Smuzhiyun 	FUNCTION(vsense_trigger),
1122*4882a593Smuzhiyun };
1123*4882a593Smuzhiyun 
1124*4882a593Smuzhiyun /* Every pin is maintained as a single group, and missing or non-existing pin
1125*4882a593Smuzhiyun  * would be maintained as dummy group to synchronize pin group index with
1126*4882a593Smuzhiyun  * pin descriptor registered with pinctrl core.
1127*4882a593Smuzhiyun  * Clients would not be able to request these dummy pin groups.
1128*4882a593Smuzhiyun  */
1129*4882a593Smuzhiyun static const struct msm_pingroup sm8250_groups[] = {
1130*4882a593Smuzhiyun 	[0] = PINGROUP(0, SOUTH, qup19, qdss_cti, _, _, _, _, _, _, _),
1131*4882a593Smuzhiyun 	[1] = PINGROUP(1, SOUTH, qup19, _, _, _, _, _, _, _, _),
1132*4882a593Smuzhiyun 	[2] = PINGROUP(2, SOUTH, qup19, qdss_cti, qdss_cti, _, _, _, _, _, _),
1133*4882a593Smuzhiyun 	[3] = PINGROUP(3, SOUTH, qup19, _, _, _, _, _, _, _, _),
1134*4882a593Smuzhiyun 	[4] = PINGROUP(4, NORTH, qup1, ibi_i3c, _, _, _, _, _, _, _),
1135*4882a593Smuzhiyun 	[5] = PINGROUP(5, NORTH, qup1, ibi_i3c, _, _, _, _, _, _, _),
1136*4882a593Smuzhiyun 	[6] = PINGROUP(6, NORTH, qup1, qup_l4, _, _, _, _, _, _, _),
1137*4882a593Smuzhiyun 	[7] = PINGROUP(7, NORTH, qup1, qup_l5, _, _, _, _, _, _, _),
1138*4882a593Smuzhiyun 	[8] = PINGROUP(8, NORTH, qup4, _, _, _, _, _, _, _, _),
1139*4882a593Smuzhiyun 	[9] = PINGROUP(9, NORTH, qup4, _, _, _, _, _, _, _, _),
1140*4882a593Smuzhiyun 	[10] = PINGROUP(10, NORTH, qup4, _, _, _, _, _, _, _, _),
1141*4882a593Smuzhiyun 	[11] = PINGROUP(11, NORTH, qup4, _, _, _, _, _, _, _, _),
1142*4882a593Smuzhiyun 	[12] = PINGROUP(12, NORTH, qup5, _, _, _, _, _, _, _, _),
1143*4882a593Smuzhiyun 	[13] = PINGROUP(13, NORTH, qup5, _, _, _, _, _, _, _, _),
1144*4882a593Smuzhiyun 	[14] = PINGROUP(14, NORTH, qup5, qup_l4, _, _, _, _, _, _, _),
1145*4882a593Smuzhiyun 	[15] = PINGROUP(15, NORTH, qup5, qup_l5, _, _, _, _, _, _, _),
1146*4882a593Smuzhiyun 	[16] = PINGROUP(16, NORTH, qup6, _, _, _, _, _, _, _, _),
1147*4882a593Smuzhiyun 	[17] = PINGROUP(17, NORTH, qup6, _, _, _, _, _, _, _, _),
1148*4882a593Smuzhiyun 	[18] = PINGROUP(18, NORTH, qup6, _, _, _, _, _, _, _, _),
1149*4882a593Smuzhiyun 	[19] = PINGROUP(19, NORTH, qup6, _, _, _, _, _, _, _, _),
1150*4882a593Smuzhiyun 	[20] = PINGROUP(20, NORTH, qup7, _, _, _, _, _, _, _, _),
1151*4882a593Smuzhiyun 	[21] = PINGROUP(21, NORTH, qup7, _, _, _, _, _, _, _, _),
1152*4882a593Smuzhiyun 	[22] = PINGROUP(22, NORTH, qup7, _, _, _, _, _, _, _, _),
1153*4882a593Smuzhiyun 	[23] = PINGROUP(23, NORTH, qup7, _, _, _, _, _, _, _, _),
1154*4882a593Smuzhiyun 	[24] = PINGROUP(24, SOUTH, qup8, ibi_i3c, atest, _, _, _, _, _, _),
1155*4882a593Smuzhiyun 	[25] = PINGROUP(25, SOUTH, qup8, ibi_i3c, atest, _, _, _, _, _, _),
1156*4882a593Smuzhiyun 	[26] = PINGROUP(26, SOUTH, qup8, atest, _, _, _, _, _, _, _),
1157*4882a593Smuzhiyun 	[27] = PINGROUP(27, SOUTH, qup8, atest, _, _, _, _, _, _, _),
1158*4882a593Smuzhiyun 	[28] = PINGROUP(28, NORTH, qup0, ibi_i3c, _, _, _, _, _, _, _),
1159*4882a593Smuzhiyun 	[29] = PINGROUP(29, NORTH, qup0, ibi_i3c, _, _, _, _, _, _, _),
1160*4882a593Smuzhiyun 	[30] = PINGROUP(30, NORTH, qup0, _, _, _, _, _, _, _, _),
1161*4882a593Smuzhiyun 	[31] = PINGROUP(31, NORTH, qup0, _, _, _, _, _, _, _, _),
1162*4882a593Smuzhiyun 	[32] = PINGROUP(32, SOUTH, qup12, _, atest, _, _, _, _, _, _),
1163*4882a593Smuzhiyun 	[33] = PINGROUP(33, SOUTH, qup12, atest, _, _, _, _, _, _, _),
1164*4882a593Smuzhiyun 	[34] = PINGROUP(34, SOUTH, qup12, atest, _, _, _, _, _, _, _),
1165*4882a593Smuzhiyun 	[35] = PINGROUP(35, SOUTH, qup12, atest, _, _, _, _, _, _, _),
1166*4882a593Smuzhiyun 	[36] = PINGROUP(36, SOUTH, qup13, atest, _, _, _, _, _, _, _),
1167*4882a593Smuzhiyun 	[37] = PINGROUP(37, SOUTH, qup13, atest, _, _, _, _, _, _, _),
1168*4882a593Smuzhiyun 	[38] = PINGROUP(38, SOUTH, qup13, _, _, _, _, _, _, _, _),
1169*4882a593Smuzhiyun 	[39] = PINGROUP(39, SOUTH, qup13, _, _, _, _, _, _, _, _),
1170*4882a593Smuzhiyun 	[40] = PINGROUP(40, SOUTH, qup14, ibi_i3c, _, ddr_pxi3, _, _, _, _, _),
1171*4882a593Smuzhiyun 	[41] = PINGROUP(41, SOUTH, qup14, ibi_i3c, _, ddr_pxi1, _, _, _, _, _),
1172*4882a593Smuzhiyun 	[42] = PINGROUP(42, SOUTH, qup14, vsense_trigger, ddr_pxi1, _, _, _, _, _, _),
1173*4882a593Smuzhiyun 	[43] = PINGROUP(43, SOUTH, qup14, ddr_pxi3, _, _, _, _, _, _, _),
1174*4882a593Smuzhiyun 	[44] = PINGROUP(44, SOUTH, qup15, qdss_cti, dbg_out, _, _, _, _, _, _),
1175*4882a593Smuzhiyun 	[45] = PINGROUP(45, SOUTH, qup15, qdss_cti, phase_flag, _, _, _, _, _, _),
1176*4882a593Smuzhiyun 	[46] = PINGROUP(46, SOUTH, qup15, qup_l4, qdss_cti, phase_flag, _, _, _, _, _),
1177*4882a593Smuzhiyun 	[47] = PINGROUP(47, SOUTH, qup15, qup_l5, phase_flag, _, _, _, _, _, _),
1178*4882a593Smuzhiyun 	[48] = PINGROUP(48, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _),
1179*4882a593Smuzhiyun 	[49] = PINGROUP(49, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _),
1180*4882a593Smuzhiyun 	[50] = PINGROUP(50, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _),
1181*4882a593Smuzhiyun 	[51] = PINGROUP(51, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _),
1182*4882a593Smuzhiyun 	[52] = PINGROUP(52, SOUTH, qup17, ddr_pxi0, _, _, _, _, _, _, _),
1183*4882a593Smuzhiyun 	[53] = PINGROUP(53, SOUTH, qup17, ddr_pxi0, _, _, _, _, _, _, _),
1184*4882a593Smuzhiyun 	[54] = PINGROUP(54, SOUTH, qup17, jitter_bist, _, _, _, _, _, _, _),
1185*4882a593Smuzhiyun 	[55] = PINGROUP(55, SOUTH, qup17, pll_bist, ddr_pxi2, _, _, _, _, _, _),
1186*4882a593Smuzhiyun 	[56] = PINGROUP(56, SOUTH, qup18, ddr_pxi2, _, _, _, _, _, _, _),
1187*4882a593Smuzhiyun 	[57] = PINGROUP(57, SOUTH, qup18, _, _, _, _, _, _, _, _),
1188*4882a593Smuzhiyun 	[58] = PINGROUP(58, SOUTH, qup18, _, _, _, _, _, _, _, _),
1189*4882a593Smuzhiyun 	[59] = PINGROUP(59, SOUTH, qup18, _, _, _, _, _, _, _, _),
1190*4882a593Smuzhiyun 	[60] = PINGROUP(60, SOUTH, qup11, _, _, _, _, _, _, _, _),
1191*4882a593Smuzhiyun 	[61] = PINGROUP(61, SOUTH, qup11, _, _, _, _, _, _, _, _),
1192*4882a593Smuzhiyun 	[62] = PINGROUP(62, SOUTH, qup11, _, _, _, _, _, _, _, _),
1193*4882a593Smuzhiyun 	[63] = PINGROUP(63, SOUTH, qup11, _, _, _, _, _, _, _, _),
1194*4882a593Smuzhiyun 	[64] = PINGROUP(64, SOUTH, usb2phy_ac, qup_l6, _, _, _, _, _, _, _),
1195*4882a593Smuzhiyun 	[65] = PINGROUP(65, SOUTH, usb_phy, pll_clk, _, _, _, _, _, _, _),
1196*4882a593Smuzhiyun 	[66] = PINGROUP(66, NORTH, mdp_vsync, _, _, _, _, _, _, _, _),
1197*4882a593Smuzhiyun 	[67] = PINGROUP(67, NORTH, mdp_vsync, dp_lcd, _, _, _, _, _, _, _),
1198*4882a593Smuzhiyun 	[68] = PINGROUP(68, NORTH, mdp_vsync, dp_hot, _, _, _, _, _, _, _),
1199*4882a593Smuzhiyun 	[69] = PINGROUP(69, SOUTH, qspi_cs, tsif0_clk, phase_flag, _, _, _, _, _, _),
1200*4882a593Smuzhiyun 	[70] = PINGROUP(70, SOUTH, qspi0, tsif0_en, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, phase_flag, _, _),
1201*4882a593Smuzhiyun 	[71] = PINGROUP(71, SOUTH, qspi1, tsif0_data, sdc4_cmd, phase_flag, _, _, _, _, _),
1202*4882a593Smuzhiyun 	[72] = PINGROUP(72, SOUTH, qspi2, tsif0_sync, sdc43, phase_flag, _, _, _, _, _),
1203*4882a593Smuzhiyun 	[73] = PINGROUP(73, SOUTH, qspi_clk, tsif1_clk, sdc4_clk, phase_flag, _, _, _, _, _),
1204*4882a593Smuzhiyun 	[74] = PINGROUP(74, SOUTH, qspi3, tsif1_en, sdc42, phase_flag, _, _, _, _, _),
1205*4882a593Smuzhiyun 	[75] = PINGROUP(75, SOUTH, qspi_cs, tsif1_data, sdc41, _, _, _, _, _, _),
1206*4882a593Smuzhiyun 	[76] = PINGROUP(76, SOUTH, tsif1_sync, sdc40, _, _, _, _, _, _, _),
1207*4882a593Smuzhiyun 	[77] = PINGROUP(77, NORTH, qup_l6, aoss_cti, phase_flag, _, _, _, _, _, _),
1208*4882a593Smuzhiyun 	[78] = PINGROUP(78, NORTH, sd_write, phase_flag, _, _, _, _, _, _, _),
1209*4882a593Smuzhiyun 	[79] = PINGROUP(79, NORTH, pci_e0, phase_flag, _, _, _, _, _, _, _),
1210*4882a593Smuzhiyun 	[80] = PINGROUP(80, NORTH, pci_e0, phase_flag, _, _, _, _, _, _, _),
1211*4882a593Smuzhiyun 	[81] = PINGROUP(81, NORTH, phase_flag, _, _, _, _, _, _, _, _),
1212*4882a593Smuzhiyun 	[82] = PINGROUP(82, NORTH, pci_e1, phase_flag, _, _, _, _, _, _, _),
1213*4882a593Smuzhiyun 	[83] = PINGROUP(83, NORTH, pci_e1, phase_flag, _, _, _, _, _, _, _),
1214*4882a593Smuzhiyun 	[84] = PINGROUP(84, NORTH, phase_flag, _, _, _, _, _, _, _, _),
1215*4882a593Smuzhiyun 	[85] = PINGROUP(85, SOUTH, pci_e2, tgu_ch0, atest, _, _, _, _, _, _),
1216*4882a593Smuzhiyun 	[86] = PINGROUP(86, SOUTH, pci_e2, tgu_ch3, atest, _, _, _, _, _, _),
1217*4882a593Smuzhiyun 	[87] = PINGROUP(87, SOUTH, atest, _, _, _, _, _, _, _, _),
1218*4882a593Smuzhiyun 	[88] = PINGROUP(88, SOUTH, _, atest, _, _, _, _, _, _, _),
1219*4882a593Smuzhiyun 	[89] = PINGROUP(89, SOUTH, _, atest, _, _, _, _, _, _, _),
1220*4882a593Smuzhiyun 	[90] = PINGROUP(90, SOUTH, tsif1_error, usb2phy_ac, tgu_ch1, _, _, _, _, _, _),
1221*4882a593Smuzhiyun 	[91] = PINGROUP(91, SOUTH, tsif0_error, tgu_ch2, _, _, _, _, _, _, _),
1222*4882a593Smuzhiyun 	[92] = PINGROUP(92, NORTH, qup_l6, qdss_cti, _, _, _, _, _, _, _),
1223*4882a593Smuzhiyun 	[93] = PINGROUP(93, NORTH, qup_l6, qdss_cti, _, _, _, _, _, _, _),
1224*4882a593Smuzhiyun 	[94] = PINGROUP(94, NORTH, cam_mclk, ddr_bist, qdss_gpio, _, _, _, _, _, _),
1225*4882a593Smuzhiyun 	[95] = PINGROUP(95, NORTH, cam_mclk, ddr_bist, qdss_gpio, _, _, _, _, _, _),
1226*4882a593Smuzhiyun 	[96] = PINGROUP(96, NORTH, cam_mclk, pll_bypassnl, qdss_gpio, _, _, _, _, _, _),
1227*4882a593Smuzhiyun 	[97] = PINGROUP(97, NORTH, cam_mclk, pll_reset, qdss_gpio, _, _, _, _, _, _),
1228*4882a593Smuzhiyun 	[98] = PINGROUP(98, NORTH, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
1229*4882a593Smuzhiyun 	[99] = PINGROUP(99, NORTH, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
1230*4882a593Smuzhiyun 	[100] = PINGROUP(100, NORTH, cam_mclk, qdss_gpio, _, _, _, _, _, _, _),
1231*4882a593Smuzhiyun 	[101] = PINGROUP(101, NORTH, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1232*4882a593Smuzhiyun 	[102] = PINGROUP(102, NORTH, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1233*4882a593Smuzhiyun 	[103] = PINGROUP(103, NORTH, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
1234*4882a593Smuzhiyun 	[104] = PINGROUP(104, NORTH, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
1235*4882a593Smuzhiyun 	[105] = PINGROUP(105, NORTH, cci_i2c, qdss_gpio, _, _, _, _, _, _, _),
1236*4882a593Smuzhiyun 	[106] = PINGROUP(106, NORTH, cci_i2c, gcc_gp1, qdss_gpio, _, _, _, _, _, _),
1237*4882a593Smuzhiyun 	[107] = PINGROUP(107, NORTH, cci_i2c, gcc_gp2, qdss_gpio, _, _, _, _, _, _),
1238*4882a593Smuzhiyun 	[108] = PINGROUP(108, NORTH, cci_i2c, gcc_gp3, qdss_gpio, _, _, _, _, _, _),
1239*4882a593Smuzhiyun 	[109] = PINGROUP(109, NORTH, cci_timer0, qdss_gpio, _, _, _, _, _, _, _),
1240*4882a593Smuzhiyun 	[110] = PINGROUP(110, NORTH, cci_timer1, qdss_gpio, _, _, _, _, _, _, _),
1241*4882a593Smuzhiyun 	[111] = PINGROUP(111, NORTH, cci_timer2, qdss_gpio, _, _, _, _, _, _, _),
1242*4882a593Smuzhiyun 	[112] = PINGROUP(112, NORTH, cci_timer3, cci_async, _, _, _, _, _, _, _),
1243*4882a593Smuzhiyun 	[113] = PINGROUP(113, NORTH, cci_timer4, cci_async, _, _, _, _, _, _, _),
1244*4882a593Smuzhiyun 	[114] = PINGROUP(114, NORTH, cci_async, _, _, _, _, _, _, _, _),
1245*4882a593Smuzhiyun 	[115] = PINGROUP(115, NORTH, qup2, phase_flag, _, _, _, _, _, _, _),
1246*4882a593Smuzhiyun 	[116] = PINGROUP(116, NORTH, qup2, phase_flag, _, _, _, _, _, _, _),
1247*4882a593Smuzhiyun 	[117] = PINGROUP(117, NORTH, qup2, phase_flag, _, _, _, _, _, _, _),
1248*4882a593Smuzhiyun 	[118] = PINGROUP(118, NORTH, qup2, phase_flag, _, _, _, _, _, _, _),
1249*4882a593Smuzhiyun 	[119] = PINGROUP(119, NORTH, qup3, phase_flag, _, _, _, _, _, _, _),
1250*4882a593Smuzhiyun 	[120] = PINGROUP(120, NORTH, qup3, phase_flag, _, _, _, _, _, _, _),
1251*4882a593Smuzhiyun 	[121] = PINGROUP(121, NORTH, qup3, _, _, _, _, _, _, _, _),
1252*4882a593Smuzhiyun 	[122] = PINGROUP(122, NORTH, qup3, mdp_vsync, phase_flag, _, _, _, _, _, _),
1253*4882a593Smuzhiyun 	[123] = PINGROUP(123, NORTH, qup_l4, tsense_pwm1, tsense_pwm2, _, _, _, _, _, _),
1254*4882a593Smuzhiyun 	[124] = PINGROUP(124, NORTH, qup_l5, mdp_vsync, phase_flag, _, _, _, _, _, _),
1255*4882a593Smuzhiyun 	[125] = PINGROUP(125, SOUTH, qup9, phase_flag, _, _, _, _, _, _, _),
1256*4882a593Smuzhiyun 	[126] = PINGROUP(126, SOUTH, qup9, _, _, _, _, _, _, _, _),
1257*4882a593Smuzhiyun 	[127] = PINGROUP(127, SOUTH, qup9, _, _, _, _, _, _, _, _),
1258*4882a593Smuzhiyun 	[128] = PINGROUP(128, SOUTH, qup9, _, _, _, _, _, _, _, _),
1259*4882a593Smuzhiyun 	[129] = PINGROUP(129, SOUTH, qup10, _, _, _, _, _, _, _, _),
1260*4882a593Smuzhiyun 	[130] = PINGROUP(130, SOUTH, qup10, _, _, _, _, _, _, _, _),
1261*4882a593Smuzhiyun 	[131] = PINGROUP(131, SOUTH, qup10, _, _, _, _, _, _, _, _),
1262*4882a593Smuzhiyun 	[132] = PINGROUP(132, SOUTH, qup10, _, _, _, _, _, _, _, _),
1263*4882a593Smuzhiyun 	[133] = PINGROUP(133, WEST, mi2s2_sck, _, _, _, _, _, _, _, _),
1264*4882a593Smuzhiyun 	[134] = PINGROUP(134, WEST, mi2s2_data0, _, _, _, _, _, _, _, _),
1265*4882a593Smuzhiyun 	[135] = PINGROUP(135, WEST, mi2s2_ws, _, _, _, _, _, _, _, _),
1266*4882a593Smuzhiyun 	[136] = PINGROUP(136, WEST, pri_mi2s, gcc_gp1, _, _, _, _, _, _, _),
1267*4882a593Smuzhiyun 	[137] = PINGROUP(137, WEST, sec_mi2s, audio_ref, mi2s2_data1, gcc_gp2, _, _, _, _, _),
1268*4882a593Smuzhiyun 	[138] = PINGROUP(138, WEST, mi2s0_sck, gcc_gp3, _, _, _, _, _, _, _),
1269*4882a593Smuzhiyun 	[139] = PINGROUP(139, WEST, mi2s0_data0, _, _, _, _, _, _, _, _),
1270*4882a593Smuzhiyun 	[140] = PINGROUP(140, WEST, mi2s0_data1, _, _, _, _, _, _, _, _),
1271*4882a593Smuzhiyun 	[141] = PINGROUP(141, WEST, mi2s0_ws, _, _, _, _, _, _, _, _),
1272*4882a593Smuzhiyun 	[142] = PINGROUP(142, WEST, lpass_slimbus, mi2s1_sck, _, _, _, _, _, _, _),
1273*4882a593Smuzhiyun 	[143] = PINGROUP(143, WEST, lpass_slimbus, mi2s1_data0, ddr_bist, _, _, _, _, _, _),
1274*4882a593Smuzhiyun 	[144] = PINGROUP(144, WEST, lpass_slimbus, mi2s1_data1, ddr_bist, _, _, _, _, _, _),
1275*4882a593Smuzhiyun 	[145] = PINGROUP(145, WEST, lpass_slimbus, mi2s1_ws, _, _, _, _, _, _, _),
1276*4882a593Smuzhiyun 	[146] = PINGROUP(146, WEST, _, _, _, _, _, _, _, _, _),
1277*4882a593Smuzhiyun 	[147] = PINGROUP(147, WEST, _, _, _, _, _, _, _, _, _),
1278*4882a593Smuzhiyun 	[148] = PINGROUP(148, WEST, _, _, _, _, _, _, _, _, _),
1279*4882a593Smuzhiyun 	[149] = PINGROUP(149, WEST, _, _, _, _, _, _, _, _, _),
1280*4882a593Smuzhiyun 	[150] = PINGROUP(150, WEST, _, _, _, _, _, _, _, _, _),
1281*4882a593Smuzhiyun 	[151] = PINGROUP(151, WEST, _, _, _, _, _, _, _, _, _),
1282*4882a593Smuzhiyun 	[152] = PINGROUP(152, WEST, _, _, _, _, _, _, _, _, _),
1283*4882a593Smuzhiyun 	[153] = PINGROUP(153, WEST, _, _, _, _, _, _, _, _, _),
1284*4882a593Smuzhiyun 	[154] = PINGROUP(154, WEST, _, _, _, _, _, _, _, _, _),
1285*4882a593Smuzhiyun 	[155] = PINGROUP(155, WEST, _, _, _, _, _, _, _, _, _),
1286*4882a593Smuzhiyun 	[156] = PINGROUP(156, WEST, _, _, _, _, _, _, _, _, _),
1287*4882a593Smuzhiyun 	[157] = PINGROUP(157, WEST, _, _, _, _, _, _, _, _, _),
1288*4882a593Smuzhiyun 	[158] = PINGROUP(158, WEST, _, _, _, _, _, _, _, _, _),
1289*4882a593Smuzhiyun 	[159] = PINGROUP(159, WEST, cri_trng0, _, _, _, _, _, _, _, _),
1290*4882a593Smuzhiyun 	[160] = PINGROUP(160, WEST, cri_trng1, qdss_gpio, _, _, _, _, _, _, _),
1291*4882a593Smuzhiyun 	[161] = PINGROUP(161, WEST, cri_trng, qdss_gpio, _, _, _, _, _, _, _),
1292*4882a593Smuzhiyun 	[162] = PINGROUP(162, WEST, sp_cmu, qdss_gpio, _, _, _, _, _, _, _),
1293*4882a593Smuzhiyun 	[163] = PINGROUP(163, WEST, prng_rosc, qdss_gpio, _, _, _, _, _, _, _),
1294*4882a593Smuzhiyun 	[164] = PINGROUP(164, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1295*4882a593Smuzhiyun 	[165] = PINGROUP(165, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1296*4882a593Smuzhiyun 	[166] = PINGROUP(166, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1297*4882a593Smuzhiyun 	[167] = PINGROUP(167, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1298*4882a593Smuzhiyun 	[168] = PINGROUP(168, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1299*4882a593Smuzhiyun 	[169] = PINGROUP(169, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1300*4882a593Smuzhiyun 	[170] = PINGROUP(170, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1301*4882a593Smuzhiyun 	[171] = PINGROUP(171, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1302*4882a593Smuzhiyun 	[172] = PINGROUP(172, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1303*4882a593Smuzhiyun 	[173] = PINGROUP(173, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1304*4882a593Smuzhiyun 	[174] = PINGROUP(174, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1305*4882a593Smuzhiyun 	[175] = PINGROUP(175, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1306*4882a593Smuzhiyun 	[176] = PINGROUP(176, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1307*4882a593Smuzhiyun 	[177] = PINGROUP(177, WEST, qdss_gpio, _, _, _, _, _, _, _, _),
1308*4882a593Smuzhiyun 	[178] = PINGROUP(178, WEST, _, _, _, _, _, _, _, _, _),
1309*4882a593Smuzhiyun 	[179] = PINGROUP(179, WEST, _, _, _, _, _, _, _, _, _),
1310*4882a593Smuzhiyun 	[180] = UFS_RESET(ufs_reset, 0xb8000),
1311*4882a593Smuzhiyun 	[181] = SDC_PINGROUP(sdc2_clk, 0xb7000, 14, 6),
1312*4882a593Smuzhiyun 	[182] = SDC_PINGROUP(sdc2_cmd, 0xb7000, 11, 3),
1313*4882a593Smuzhiyun 	[183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0),
1314*4882a593Smuzhiyun };
1315*4882a593Smuzhiyun 
1316*4882a593Smuzhiyun static const struct msm_gpio_wakeirq_map sm8250_pdc_map[] = {
1317*4882a593Smuzhiyun 	{ 0, 79 }, { 1, 84 }, { 2, 80 }, { 3, 82 }, { 4, 107 }, { 7, 43 },
1318*4882a593Smuzhiyun 	{ 11, 42 }, { 14, 44 }, { 15, 52 }, { 19, 67 }, { 23, 68 }, { 24, 105 },
1319*4882a593Smuzhiyun 	{ 27, 92 }, { 28, 106 }, { 31, 69 }, { 35, 70 }, { 39, 73 },
1320*4882a593Smuzhiyun 	{ 40, 108 }, { 43, 71 }, { 45, 72 }, { 47, 83 }, { 51, 74 }, { 55, 77 },
1321*4882a593Smuzhiyun 	{ 59, 78 }, { 63, 75 }, { 64, 81 }, { 65, 87 }, { 66, 88 }, { 67, 89 },
1322*4882a593Smuzhiyun 	{ 68, 54 }, { 70, 85 }, { 77, 46 }, { 80, 90 }, { 81, 91 }, { 83, 97 },
1323*4882a593Smuzhiyun 	{ 84, 98 }, { 86, 99 }, { 87, 100 }, { 88, 101 }, { 89, 102 },
1324*4882a593Smuzhiyun 	{ 92, 103 }, { 93, 104 }, { 100, 53 }, { 103, 47 }, { 104, 48 },
1325*4882a593Smuzhiyun 	{ 108, 49 }, { 109, 94 }, { 110, 95 }, { 111, 96 }, { 112, 55 },
1326*4882a593Smuzhiyun 	{ 113, 56 }, { 118, 50 }, { 121, 51 }, { 122, 57 }, { 123, 58 },
1327*4882a593Smuzhiyun 	{ 124, 45 }, { 126, 59 }, { 128, 76 }, { 129, 86 }, { 132, 93 },
1328*4882a593Smuzhiyun 	{ 133, 65 }, { 134, 66 }, { 136, 62 }, { 137, 63 }, { 138, 64 },
1329*4882a593Smuzhiyun 	{ 142, 60 }, { 143, 61 }
1330*4882a593Smuzhiyun };
1331*4882a593Smuzhiyun 
1332*4882a593Smuzhiyun static const struct msm_pinctrl_soc_data sm8250_pinctrl = {
1333*4882a593Smuzhiyun 	.pins = sm8250_pins,
1334*4882a593Smuzhiyun 	.npins = ARRAY_SIZE(sm8250_pins),
1335*4882a593Smuzhiyun 	.functions = sm8250_functions,
1336*4882a593Smuzhiyun 	.nfunctions = ARRAY_SIZE(sm8250_functions),
1337*4882a593Smuzhiyun 	.groups = sm8250_groups,
1338*4882a593Smuzhiyun 	.ngroups = ARRAY_SIZE(sm8250_groups),
1339*4882a593Smuzhiyun 	.ngpios = 181,
1340*4882a593Smuzhiyun 	.tiles = sm8250_tiles,
1341*4882a593Smuzhiyun 	.ntiles = ARRAY_SIZE(sm8250_tiles),
1342*4882a593Smuzhiyun 	.wakeirq_map = sm8250_pdc_map,
1343*4882a593Smuzhiyun 	.nwakeirq_map = ARRAY_SIZE(sm8250_pdc_map),
1344*4882a593Smuzhiyun };
1345*4882a593Smuzhiyun 
sm8250_pinctrl_probe(struct platform_device * pdev)1346*4882a593Smuzhiyun static int sm8250_pinctrl_probe(struct platform_device *pdev)
1347*4882a593Smuzhiyun {
1348*4882a593Smuzhiyun 	return msm_pinctrl_probe(pdev, &sm8250_pinctrl);
1349*4882a593Smuzhiyun }
1350*4882a593Smuzhiyun 
1351*4882a593Smuzhiyun static const struct of_device_id sm8250_pinctrl_of_match[] = {
1352*4882a593Smuzhiyun 	{ .compatible = "qcom,sm8250-pinctrl", },
1353*4882a593Smuzhiyun 	{ },
1354*4882a593Smuzhiyun };
1355*4882a593Smuzhiyun 
1356*4882a593Smuzhiyun static struct platform_driver sm8250_pinctrl_driver = {
1357*4882a593Smuzhiyun 	.driver = {
1358*4882a593Smuzhiyun 		.name = "sm8250-pinctrl",
1359*4882a593Smuzhiyun 		.of_match_table = sm8250_pinctrl_of_match,
1360*4882a593Smuzhiyun 	},
1361*4882a593Smuzhiyun 	.probe = sm8250_pinctrl_probe,
1362*4882a593Smuzhiyun 	.remove = msm_pinctrl_remove,
1363*4882a593Smuzhiyun };
1364*4882a593Smuzhiyun 
sm8250_pinctrl_init(void)1365*4882a593Smuzhiyun static int __init sm8250_pinctrl_init(void)
1366*4882a593Smuzhiyun {
1367*4882a593Smuzhiyun 	return platform_driver_register(&sm8250_pinctrl_driver);
1368*4882a593Smuzhiyun }
1369*4882a593Smuzhiyun arch_initcall(sm8250_pinctrl_init);
1370*4882a593Smuzhiyun 
sm8250_pinctrl_exit(void)1371*4882a593Smuzhiyun static void __exit sm8250_pinctrl_exit(void)
1372*4882a593Smuzhiyun {
1373*4882a593Smuzhiyun 	platform_driver_unregister(&sm8250_pinctrl_driver);
1374*4882a593Smuzhiyun }
1375*4882a593Smuzhiyun module_exit(sm8250_pinctrl_exit);
1376*4882a593Smuzhiyun 
1377*4882a593Smuzhiyun MODULE_DESCRIPTION("QTI sm8250 pinctrl driver");
1378*4882a593Smuzhiyun MODULE_LICENSE("GPL v2");
1379*4882a593Smuzhiyun MODULE_DEVICE_TABLE(of, sm8250_pinctrl_of_match);
1380