162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci * Copyright (c) 2020-2021, Linaro Limited
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#include <linux/module.h>
862306a36Sopenharmony_ci#include <linux/of.h>
962306a36Sopenharmony_ci#include <linux/platform_device.h>
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include "pinctrl-msm.h"
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define REG_SIZE 0x1000
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
1662306a36Sopenharmony_ci	{					        \
1762306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
1862306a36Sopenharmony_ci			gpio##id##_pins, 		\
1962306a36Sopenharmony_ci			ARRAY_SIZE(gpio##id##_pins)),	\
2062306a36Sopenharmony_ci		.funcs = (int[]){			\
2162306a36Sopenharmony_ci			msm_mux_gpio, /* gpio mode */	\
2262306a36Sopenharmony_ci			msm_mux_##f1,			\
2362306a36Sopenharmony_ci			msm_mux_##f2,			\
2462306a36Sopenharmony_ci			msm_mux_##f3,			\
2562306a36Sopenharmony_ci			msm_mux_##f4,			\
2662306a36Sopenharmony_ci			msm_mux_##f5,			\
2762306a36Sopenharmony_ci			msm_mux_##f6,			\
2862306a36Sopenharmony_ci			msm_mux_##f7,			\
2962306a36Sopenharmony_ci			msm_mux_##f8,			\
3062306a36Sopenharmony_ci			msm_mux_##f9			\
3162306a36Sopenharmony_ci		},				        \
3262306a36Sopenharmony_ci		.nfuncs = 10,				\
3362306a36Sopenharmony_ci		.ctl_reg = REG_SIZE * id,		\
3462306a36Sopenharmony_ci		.io_reg = REG_SIZE * id + 0x4,		\
3562306a36Sopenharmony_ci		.intr_cfg_reg = REG_SIZE * id + 0x8,	\
3662306a36Sopenharmony_ci		.intr_status_reg = REG_SIZE * id + 0xc,	\
3762306a36Sopenharmony_ci		.intr_target_reg = REG_SIZE * id + 0x8,	\
3862306a36Sopenharmony_ci		.mux_bit = 2,			\
3962306a36Sopenharmony_ci		.pull_bit = 0,			\
4062306a36Sopenharmony_ci		.drv_bit = 6,			\
4162306a36Sopenharmony_ci		.oe_bit = 9,			\
4262306a36Sopenharmony_ci		.in_bit = 0,			\
4362306a36Sopenharmony_ci		.out_bit = 1,			\
4462306a36Sopenharmony_ci		.intr_enable_bit = 0,		\
4562306a36Sopenharmony_ci		.intr_status_bit = 0,		\
4662306a36Sopenharmony_ci		.intr_target_bit = 5,		\
4762306a36Sopenharmony_ci		.intr_target_kpss_val = 3,	\
4862306a36Sopenharmony_ci		.intr_raw_status_bit = 4,	\
4962306a36Sopenharmony_ci		.intr_polarity_bit = 1,		\
5062306a36Sopenharmony_ci		.intr_detection_bit = 2,	\
5162306a36Sopenharmony_ci		.intr_detection_width = 2,	\
5262306a36Sopenharmony_ci	}
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv)	\
5562306a36Sopenharmony_ci	{					        \
5662306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
5762306a36Sopenharmony_ci			pg_name##_pins, 		\
5862306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
5962306a36Sopenharmony_ci		.ctl_reg = ctl,				\
6062306a36Sopenharmony_ci		.io_reg = 0,				\
6162306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
6262306a36Sopenharmony_ci		.intr_status_reg = 0,			\
6362306a36Sopenharmony_ci		.intr_target_reg = 0,			\
6462306a36Sopenharmony_ci		.mux_bit = -1,				\
6562306a36Sopenharmony_ci		.pull_bit = pull,			\
6662306a36Sopenharmony_ci		.drv_bit = drv,				\
6762306a36Sopenharmony_ci		.oe_bit = -1,				\
6862306a36Sopenharmony_ci		.in_bit = -1,				\
6962306a36Sopenharmony_ci		.out_bit = -1,				\
7062306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
7162306a36Sopenharmony_ci		.intr_status_bit = -1,			\
7262306a36Sopenharmony_ci		.intr_target_bit = -1,			\
7362306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
7462306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
7562306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
7662306a36Sopenharmony_ci		.intr_detection_width = -1,		\
7762306a36Sopenharmony_ci	}
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ci#define UFS_RESET(pg_name, offset)				\
8062306a36Sopenharmony_ci	{					        \
8162306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
8262306a36Sopenharmony_ci			pg_name##_pins, 		\
8362306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
8462306a36Sopenharmony_ci		.ctl_reg = offset,			\
8562306a36Sopenharmony_ci		.io_reg = offset + 0x4,			\
8662306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
8762306a36Sopenharmony_ci		.intr_status_reg = 0,			\
8862306a36Sopenharmony_ci		.intr_target_reg = 0,			\
8962306a36Sopenharmony_ci		.mux_bit = -1,				\
9062306a36Sopenharmony_ci		.pull_bit = 3,				\
9162306a36Sopenharmony_ci		.drv_bit = 0,				\
9262306a36Sopenharmony_ci		.oe_bit = -1,				\
9362306a36Sopenharmony_ci		.in_bit = -1,				\
9462306a36Sopenharmony_ci		.out_bit = 0,				\
9562306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
9662306a36Sopenharmony_ci		.intr_status_bit = -1,			\
9762306a36Sopenharmony_ci		.intr_target_bit = -1,			\
9862306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
9962306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
10062306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
10162306a36Sopenharmony_ci		.intr_detection_width = -1,		\
10262306a36Sopenharmony_ci	}
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_cistatic const struct pinctrl_pin_desc sm8350_pins[] = {
10562306a36Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
10662306a36Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
10762306a36Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
10862306a36Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
10962306a36Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
11062306a36Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
11162306a36Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
11262306a36Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
11362306a36Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
11462306a36Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
11562306a36Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
11662306a36Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
11762306a36Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
11862306a36Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
11962306a36Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
12062306a36Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
12162306a36Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
12262306a36Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
12362306a36Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
12462306a36Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
12562306a36Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
12662306a36Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
12762306a36Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
12862306a36Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
12962306a36Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
13062306a36Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
13162306a36Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
13262306a36Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
13362306a36Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
13462306a36Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
13562306a36Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
13662306a36Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
13762306a36Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
13862306a36Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
13962306a36Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
14062306a36Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
14162306a36Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
14262306a36Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
14362306a36Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
14462306a36Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
14562306a36Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
14662306a36Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
14762306a36Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
14862306a36Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
14962306a36Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
15062306a36Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
15162306a36Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
15262306a36Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
15362306a36Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
15462306a36Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
15562306a36Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
15662306a36Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
15762306a36Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
15862306a36Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
15962306a36Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
16062306a36Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
16162306a36Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
16262306a36Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
16362306a36Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
16462306a36Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
16562306a36Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
16662306a36Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
16762306a36Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
16862306a36Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
16962306a36Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
17062306a36Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
17162306a36Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
17262306a36Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
17362306a36Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
17462306a36Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
17562306a36Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
17662306a36Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
17762306a36Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
17862306a36Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
17962306a36Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
18062306a36Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
18162306a36Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
18262306a36Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
18362306a36Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
18462306a36Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
18562306a36Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
18662306a36Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
18762306a36Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
18862306a36Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
18962306a36Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
19062306a36Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
19162306a36Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
19262306a36Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
19362306a36Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
19462306a36Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
19562306a36Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
19662306a36Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
19762306a36Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
19862306a36Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
19962306a36Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
20062306a36Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
20162306a36Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
20262306a36Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
20362306a36Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
20462306a36Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
20562306a36Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
20662306a36Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
20762306a36Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
20862306a36Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
20962306a36Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
21062306a36Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
21162306a36Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
21262306a36Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
21362306a36Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
21462306a36Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
21562306a36Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
21662306a36Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
21762306a36Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
21862306a36Sopenharmony_ci	PINCTRL_PIN(113, "GPIO_113"),
21962306a36Sopenharmony_ci	PINCTRL_PIN(114, "GPIO_114"),
22062306a36Sopenharmony_ci	PINCTRL_PIN(115, "GPIO_115"),
22162306a36Sopenharmony_ci	PINCTRL_PIN(116, "GPIO_116"),
22262306a36Sopenharmony_ci	PINCTRL_PIN(117, "GPIO_117"),
22362306a36Sopenharmony_ci	PINCTRL_PIN(118, "GPIO_118"),
22462306a36Sopenharmony_ci	PINCTRL_PIN(119, "GPIO_119"),
22562306a36Sopenharmony_ci	PINCTRL_PIN(120, "GPIO_120"),
22662306a36Sopenharmony_ci	PINCTRL_PIN(121, "GPIO_121"),
22762306a36Sopenharmony_ci	PINCTRL_PIN(122, "GPIO_122"),
22862306a36Sopenharmony_ci	PINCTRL_PIN(123, "GPIO_123"),
22962306a36Sopenharmony_ci	PINCTRL_PIN(124, "GPIO_124"),
23062306a36Sopenharmony_ci	PINCTRL_PIN(125, "GPIO_125"),
23162306a36Sopenharmony_ci	PINCTRL_PIN(126, "GPIO_126"),
23262306a36Sopenharmony_ci	PINCTRL_PIN(127, "GPIO_127"),
23362306a36Sopenharmony_ci	PINCTRL_PIN(128, "GPIO_128"),
23462306a36Sopenharmony_ci	PINCTRL_PIN(129, "GPIO_129"),
23562306a36Sopenharmony_ci	PINCTRL_PIN(130, "GPIO_130"),
23662306a36Sopenharmony_ci	PINCTRL_PIN(131, "GPIO_131"),
23762306a36Sopenharmony_ci	PINCTRL_PIN(132, "GPIO_132"),
23862306a36Sopenharmony_ci	PINCTRL_PIN(133, "GPIO_133"),
23962306a36Sopenharmony_ci	PINCTRL_PIN(134, "GPIO_134"),
24062306a36Sopenharmony_ci	PINCTRL_PIN(135, "GPIO_135"),
24162306a36Sopenharmony_ci	PINCTRL_PIN(136, "GPIO_136"),
24262306a36Sopenharmony_ci	PINCTRL_PIN(137, "GPIO_137"),
24362306a36Sopenharmony_ci	PINCTRL_PIN(138, "GPIO_138"),
24462306a36Sopenharmony_ci	PINCTRL_PIN(139, "GPIO_139"),
24562306a36Sopenharmony_ci	PINCTRL_PIN(140, "GPIO_140"),
24662306a36Sopenharmony_ci	PINCTRL_PIN(141, "GPIO_141"),
24762306a36Sopenharmony_ci	PINCTRL_PIN(142, "GPIO_142"),
24862306a36Sopenharmony_ci	PINCTRL_PIN(143, "GPIO_143"),
24962306a36Sopenharmony_ci	PINCTRL_PIN(144, "GPIO_144"),
25062306a36Sopenharmony_ci	PINCTRL_PIN(145, "GPIO_145"),
25162306a36Sopenharmony_ci	PINCTRL_PIN(146, "GPIO_146"),
25262306a36Sopenharmony_ci	PINCTRL_PIN(147, "GPIO_147"),
25362306a36Sopenharmony_ci	PINCTRL_PIN(148, "GPIO_148"),
25462306a36Sopenharmony_ci	PINCTRL_PIN(149, "GPIO_149"),
25562306a36Sopenharmony_ci	PINCTRL_PIN(150, "GPIO_150"),
25662306a36Sopenharmony_ci	PINCTRL_PIN(151, "GPIO_151"),
25762306a36Sopenharmony_ci	PINCTRL_PIN(152, "GPIO_152"),
25862306a36Sopenharmony_ci	PINCTRL_PIN(153, "GPIO_153"),
25962306a36Sopenharmony_ci	PINCTRL_PIN(154, "GPIO_154"),
26062306a36Sopenharmony_ci	PINCTRL_PIN(155, "GPIO_155"),
26162306a36Sopenharmony_ci	PINCTRL_PIN(156, "GPIO_156"),
26262306a36Sopenharmony_ci	PINCTRL_PIN(157, "GPIO_157"),
26362306a36Sopenharmony_ci	PINCTRL_PIN(158, "GPIO_158"),
26462306a36Sopenharmony_ci	PINCTRL_PIN(159, "GPIO_159"),
26562306a36Sopenharmony_ci	PINCTRL_PIN(160, "GPIO_160"),
26662306a36Sopenharmony_ci	PINCTRL_PIN(161, "GPIO_161"),
26762306a36Sopenharmony_ci	PINCTRL_PIN(162, "GPIO_162"),
26862306a36Sopenharmony_ci	PINCTRL_PIN(163, "GPIO_163"),
26962306a36Sopenharmony_ci	PINCTRL_PIN(164, "GPIO_164"),
27062306a36Sopenharmony_ci	PINCTRL_PIN(165, "GPIO_165"),
27162306a36Sopenharmony_ci	PINCTRL_PIN(166, "GPIO_166"),
27262306a36Sopenharmony_ci	PINCTRL_PIN(167, "GPIO_167"),
27362306a36Sopenharmony_ci	PINCTRL_PIN(168, "GPIO_168"),
27462306a36Sopenharmony_ci	PINCTRL_PIN(169, "GPIO_169"),
27562306a36Sopenharmony_ci	PINCTRL_PIN(170, "GPIO_170"),
27662306a36Sopenharmony_ci	PINCTRL_PIN(171, "GPIO_171"),
27762306a36Sopenharmony_ci	PINCTRL_PIN(172, "GPIO_172"),
27862306a36Sopenharmony_ci	PINCTRL_PIN(173, "GPIO_173"),
27962306a36Sopenharmony_ci	PINCTRL_PIN(174, "GPIO_174"),
28062306a36Sopenharmony_ci	PINCTRL_PIN(175, "GPIO_175"),
28162306a36Sopenharmony_ci	PINCTRL_PIN(176, "GPIO_176"),
28262306a36Sopenharmony_ci	PINCTRL_PIN(177, "GPIO_177"),
28362306a36Sopenharmony_ci	PINCTRL_PIN(178, "GPIO_178"),
28462306a36Sopenharmony_ci	PINCTRL_PIN(179, "GPIO_179"),
28562306a36Sopenharmony_ci	PINCTRL_PIN(180, "GPIO_180"),
28662306a36Sopenharmony_ci	PINCTRL_PIN(181, "GPIO_181"),
28762306a36Sopenharmony_ci	PINCTRL_PIN(182, "GPIO_182"),
28862306a36Sopenharmony_ci	PINCTRL_PIN(183, "GPIO_183"),
28962306a36Sopenharmony_ci	PINCTRL_PIN(184, "GPIO_184"),
29062306a36Sopenharmony_ci	PINCTRL_PIN(185, "GPIO_185"),
29162306a36Sopenharmony_ci	PINCTRL_PIN(186, "GPIO_186"),
29262306a36Sopenharmony_ci	PINCTRL_PIN(187, "GPIO_187"),
29362306a36Sopenharmony_ci	PINCTRL_PIN(188, "GPIO_188"),
29462306a36Sopenharmony_ci	PINCTRL_PIN(189, "GPIO_189"),
29562306a36Sopenharmony_ci	PINCTRL_PIN(190, "GPIO_190"),
29662306a36Sopenharmony_ci	PINCTRL_PIN(191, "GPIO_191"),
29762306a36Sopenharmony_ci	PINCTRL_PIN(192, "GPIO_192"),
29862306a36Sopenharmony_ci	PINCTRL_PIN(193, "GPIO_193"),
29962306a36Sopenharmony_ci	PINCTRL_PIN(194, "GPIO_194"),
30062306a36Sopenharmony_ci	PINCTRL_PIN(195, "GPIO_195"),
30162306a36Sopenharmony_ci	PINCTRL_PIN(196, "GPIO_196"),
30262306a36Sopenharmony_ci	PINCTRL_PIN(197, "GPIO_197"),
30362306a36Sopenharmony_ci	PINCTRL_PIN(198, "GPIO_198"),
30462306a36Sopenharmony_ci	PINCTRL_PIN(199, "GPIO_199"),
30562306a36Sopenharmony_ci	PINCTRL_PIN(200, "GPIO_200"),
30662306a36Sopenharmony_ci	PINCTRL_PIN(201, "GPIO_201"),
30762306a36Sopenharmony_ci	PINCTRL_PIN(202, "GPIO_202"),
30862306a36Sopenharmony_ci	PINCTRL_PIN(203, "UFS_RESET"),
30962306a36Sopenharmony_ci	PINCTRL_PIN(204, "SDC2_CLK"),
31062306a36Sopenharmony_ci	PINCTRL_PIN(205, "SDC2_CMD"),
31162306a36Sopenharmony_ci	PINCTRL_PIN(206, "SDC2_DATA"),
31262306a36Sopenharmony_ci};
31362306a36Sopenharmony_ci
31462306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \
31562306a36Sopenharmony_ci	static const unsigned int gpio##pin##_pins[] = { pin }
31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0);
31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1);
31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2);
31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3);
32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4);
32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5);
32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6);
32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7);
32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8);
32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9);
32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10);
32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11);
32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12);
32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13);
33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14);
33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15);
33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16);
33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17);
33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18);
33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19);
33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20);
33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21);
33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22);
33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23);
34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24);
34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25);
34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26);
34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27);
34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28);
34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29);
34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30);
34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31);
34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32);
34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33);
35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34);
35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35);
35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36);
35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37);
35462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38);
35562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39);
35662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40);
35762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41);
35862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42);
35962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43);
36062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44);
36162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45);
36262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46);
36362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47);
36462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48);
36562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49);
36662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50);
36762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51);
36862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52);
36962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53);
37062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54);
37162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55);
37262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56);
37362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57);
37462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58);
37562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59);
37662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60);
37762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61);
37862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62);
37962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63);
38062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64);
38162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65);
38262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66);
38362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67);
38462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68);
38562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69);
38662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70);
38762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71);
38862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72);
38962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73);
39062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74);
39162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75);
39262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76);
39362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77);
39462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78);
39562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79);
39662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80);
39762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81);
39862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82);
39962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83);
40062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84);
40162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85);
40262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86);
40362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87);
40462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88);
40562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89);
40662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90);
40762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91);
40862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92);
40962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93);
41062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94);
41162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95);
41262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96);
41362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97);
41462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98);
41562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99);
41662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100);
41762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101);
41862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102);
41962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103);
42062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104);
42162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105);
42262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106);
42362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107);
42462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108);
42562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109);
42662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110);
42762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111);
42862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112);
42962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113);
43062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114);
43162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115);
43262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116);
43362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117);
43462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118);
43562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119);
43662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120);
43762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121);
43862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122);
43962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123);
44062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124);
44162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125);
44262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126);
44362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127);
44462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128);
44562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129);
44662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130);
44762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131);
44862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132);
44962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133);
45062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134);
45162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135);
45262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136);
45362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137);
45462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138);
45562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139);
45662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140);
45762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141);
45862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142);
45962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143);
46062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144);
46162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145);
46262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(146);
46362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(147);
46462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(148);
46562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(149);
46662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(150);
46762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(151);
46862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(152);
46962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(153);
47062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(154);
47162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(155);
47262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(156);
47362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(157);
47462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(158);
47562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(159);
47662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(160);
47762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(161);
47862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(162);
47962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(163);
48062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(164);
48162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(165);
48262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(166);
48362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(167);
48462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(168);
48562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(169);
48662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(170);
48762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(171);
48862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(172);
48962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(173);
49062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(174);
49162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(175);
49262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(176);
49362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(177);
49462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(178);
49562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(179);
49662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(180);
49762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(181);
49862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(182);
49962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(183);
50062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(184);
50162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(185);
50262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(186);
50362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(187);
50462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(188);
50562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(189);
50662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(190);
50762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(191);
50862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(192);
50962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(193);
51062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(194);
51162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(195);
51262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(196);
51362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(197);
51462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(198);
51562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(199);
51662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(200);
51762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(201);
51862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(202);
51962306a36Sopenharmony_ci
52062306a36Sopenharmony_cistatic const unsigned int ufs_reset_pins[] = { 203 };
52162306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 204 };
52262306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 205 };
52362306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 206 };
52462306a36Sopenharmony_ci
52562306a36Sopenharmony_cienum sm8350_functions {
52662306a36Sopenharmony_ci	msm_mux_atest_char,
52762306a36Sopenharmony_ci	msm_mux_atest_usb,
52862306a36Sopenharmony_ci	msm_mux_audio_ref,
52962306a36Sopenharmony_ci	msm_mux_cam_mclk,
53062306a36Sopenharmony_ci	msm_mux_cci_async,
53162306a36Sopenharmony_ci	msm_mux_cci_i2c,
53262306a36Sopenharmony_ci	msm_mux_cci_timer,
53362306a36Sopenharmony_ci	msm_mux_cmu_rng,
53462306a36Sopenharmony_ci	msm_mux_coex_uart1,
53562306a36Sopenharmony_ci	msm_mux_coex_uart2,
53662306a36Sopenharmony_ci	msm_mux_cri_trng,
53762306a36Sopenharmony_ci	msm_mux_cri_trng0,
53862306a36Sopenharmony_ci	msm_mux_cri_trng1,
53962306a36Sopenharmony_ci	msm_mux_dbg_out,
54062306a36Sopenharmony_ci	msm_mux_ddr_bist,
54162306a36Sopenharmony_ci	msm_mux_ddr_pxi0,
54262306a36Sopenharmony_ci	msm_mux_ddr_pxi1,
54362306a36Sopenharmony_ci	msm_mux_ddr_pxi2,
54462306a36Sopenharmony_ci	msm_mux_ddr_pxi3,
54562306a36Sopenharmony_ci	msm_mux_dp_hot,
54662306a36Sopenharmony_ci	msm_mux_dp_lcd,
54762306a36Sopenharmony_ci	msm_mux_gcc_gp1,
54862306a36Sopenharmony_ci	msm_mux_gcc_gp2,
54962306a36Sopenharmony_ci	msm_mux_gcc_gp3,
55062306a36Sopenharmony_ci	msm_mux_gpio,
55162306a36Sopenharmony_ci	msm_mux_ibi_i3c,
55262306a36Sopenharmony_ci	msm_mux_jitter_bist,
55362306a36Sopenharmony_ci	msm_mux_lpass_slimbus,
55462306a36Sopenharmony_ci	msm_mux_mdp_vsync,
55562306a36Sopenharmony_ci	msm_mux_mdp_vsync0,
55662306a36Sopenharmony_ci	msm_mux_mdp_vsync1,
55762306a36Sopenharmony_ci	msm_mux_mdp_vsync2,
55862306a36Sopenharmony_ci	msm_mux_mdp_vsync3,
55962306a36Sopenharmony_ci	msm_mux_mi2s0_data0,
56062306a36Sopenharmony_ci	msm_mux_mi2s0_data1,
56162306a36Sopenharmony_ci	msm_mux_mi2s0_sck,
56262306a36Sopenharmony_ci	msm_mux_mi2s0_ws,
56362306a36Sopenharmony_ci	msm_mux_mi2s1_data0,
56462306a36Sopenharmony_ci	msm_mux_mi2s1_data1,
56562306a36Sopenharmony_ci	msm_mux_mi2s1_sck,
56662306a36Sopenharmony_ci	msm_mux_mi2s1_ws,
56762306a36Sopenharmony_ci	msm_mux_mi2s2_data0,
56862306a36Sopenharmony_ci	msm_mux_mi2s2_data1,
56962306a36Sopenharmony_ci	msm_mux_mi2s2_sck,
57062306a36Sopenharmony_ci	msm_mux_mi2s2_ws,
57162306a36Sopenharmony_ci	msm_mux_mss_grfc0,
57262306a36Sopenharmony_ci	msm_mux_mss_grfc1,
57362306a36Sopenharmony_ci	msm_mux_mss_grfc10,
57462306a36Sopenharmony_ci	msm_mux_mss_grfc11,
57562306a36Sopenharmony_ci	msm_mux_mss_grfc12,
57662306a36Sopenharmony_ci	msm_mux_mss_grfc2,
57762306a36Sopenharmony_ci	msm_mux_mss_grfc3,
57862306a36Sopenharmony_ci	msm_mux_mss_grfc4,
57962306a36Sopenharmony_ci	msm_mux_mss_grfc5,
58062306a36Sopenharmony_ci	msm_mux_mss_grfc6,
58162306a36Sopenharmony_ci	msm_mux_mss_grfc7,
58262306a36Sopenharmony_ci	msm_mux_mss_grfc8,
58362306a36Sopenharmony_ci	msm_mux_mss_grfc9,
58462306a36Sopenharmony_ci	msm_mux_nav_gpio,
58562306a36Sopenharmony_ci	msm_mux_pa_indicator,
58662306a36Sopenharmony_ci	msm_mux_pcie0_clkreqn,
58762306a36Sopenharmony_ci	msm_mux_pcie1_clkreqn,
58862306a36Sopenharmony_ci	msm_mux_phase_flag,
58962306a36Sopenharmony_ci	msm_mux_pll_bist,
59062306a36Sopenharmony_ci	msm_mux_pll_clk,
59162306a36Sopenharmony_ci	msm_mux_pri_mi2s,
59262306a36Sopenharmony_ci	msm_mux_prng_rosc,
59362306a36Sopenharmony_ci	msm_mux_qdss_cti,
59462306a36Sopenharmony_ci	msm_mux_qdss_gpio,
59562306a36Sopenharmony_ci	msm_mux_qlink0_enable,
59662306a36Sopenharmony_ci	msm_mux_qlink0_request,
59762306a36Sopenharmony_ci	msm_mux_qlink0_wmss,
59862306a36Sopenharmony_ci	msm_mux_qlink1_enable,
59962306a36Sopenharmony_ci	msm_mux_qlink1_request,
60062306a36Sopenharmony_ci	msm_mux_qlink1_wmss,
60162306a36Sopenharmony_ci	msm_mux_qlink2_enable,
60262306a36Sopenharmony_ci	msm_mux_qlink2_request,
60362306a36Sopenharmony_ci	msm_mux_qlink2_wmss,
60462306a36Sopenharmony_ci	msm_mux_qspi0,
60562306a36Sopenharmony_ci	msm_mux_qspi1,
60662306a36Sopenharmony_ci	msm_mux_qspi2,
60762306a36Sopenharmony_ci	msm_mux_qspi3,
60862306a36Sopenharmony_ci	msm_mux_qspi_clk,
60962306a36Sopenharmony_ci	msm_mux_qspi_cs,
61062306a36Sopenharmony_ci	msm_mux_qup0,
61162306a36Sopenharmony_ci	msm_mux_qup1,
61262306a36Sopenharmony_ci	msm_mux_qup10,
61362306a36Sopenharmony_ci	msm_mux_qup11,
61462306a36Sopenharmony_ci	msm_mux_qup12,
61562306a36Sopenharmony_ci	msm_mux_qup13,
61662306a36Sopenharmony_ci	msm_mux_qup14,
61762306a36Sopenharmony_ci	msm_mux_qup15,
61862306a36Sopenharmony_ci	msm_mux_qup16,
61962306a36Sopenharmony_ci	msm_mux_qup17,
62062306a36Sopenharmony_ci	msm_mux_qup18,
62162306a36Sopenharmony_ci	msm_mux_qup19,
62262306a36Sopenharmony_ci	msm_mux_qup2,
62362306a36Sopenharmony_ci	msm_mux_qup3,
62462306a36Sopenharmony_ci	msm_mux_qup4,
62562306a36Sopenharmony_ci	msm_mux_qup5,
62662306a36Sopenharmony_ci	msm_mux_qup6,
62762306a36Sopenharmony_ci	msm_mux_qup7,
62862306a36Sopenharmony_ci	msm_mux_qup8,
62962306a36Sopenharmony_ci	msm_mux_qup9,
63062306a36Sopenharmony_ci	msm_mux_qup_l4,
63162306a36Sopenharmony_ci	msm_mux_qup_l5,
63262306a36Sopenharmony_ci	msm_mux_qup_l6,
63362306a36Sopenharmony_ci	msm_mux_sd_write,
63462306a36Sopenharmony_ci	msm_mux_sdc40,
63562306a36Sopenharmony_ci	msm_mux_sdc41,
63662306a36Sopenharmony_ci	msm_mux_sdc42,
63762306a36Sopenharmony_ci	msm_mux_sdc43,
63862306a36Sopenharmony_ci	msm_mux_sdc4_clk,
63962306a36Sopenharmony_ci	msm_mux_sdc4_cmd,
64062306a36Sopenharmony_ci	msm_mux_sec_mi2s,
64162306a36Sopenharmony_ci	msm_mux_tb_trig,
64262306a36Sopenharmony_ci	msm_mux_tgu_ch0,
64362306a36Sopenharmony_ci	msm_mux_tgu_ch1,
64462306a36Sopenharmony_ci	msm_mux_tgu_ch2,
64562306a36Sopenharmony_ci	msm_mux_tgu_ch3,
64662306a36Sopenharmony_ci	msm_mux_tsense_pwm1,
64762306a36Sopenharmony_ci	msm_mux_tsense_pwm2,
64862306a36Sopenharmony_ci	msm_mux_uim0_clk,
64962306a36Sopenharmony_ci	msm_mux_uim0_data,
65062306a36Sopenharmony_ci	msm_mux_uim0_present,
65162306a36Sopenharmony_ci	msm_mux_uim0_reset,
65262306a36Sopenharmony_ci	msm_mux_uim1_clk,
65362306a36Sopenharmony_ci	msm_mux_uim1_data,
65462306a36Sopenharmony_ci	msm_mux_uim1_present,
65562306a36Sopenharmony_ci	msm_mux_uim1_reset,
65662306a36Sopenharmony_ci	msm_mux_usb2phy_ac,
65762306a36Sopenharmony_ci	msm_mux_usb_phy,
65862306a36Sopenharmony_ci	msm_mux_vfr_0,
65962306a36Sopenharmony_ci	msm_mux_vfr_1,
66062306a36Sopenharmony_ci	msm_mux_vsense_trigger,
66162306a36Sopenharmony_ci	msm_mux__,
66262306a36Sopenharmony_ci};
66362306a36Sopenharmony_ci
66462306a36Sopenharmony_cistatic const char * const gpio_groups[] = {
66562306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
66662306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
66762306a36Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
66862306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
66962306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
67062306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
67162306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
67262306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
67362306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
67462306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
67562306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
67662306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
67762306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
67862306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
67962306a36Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
68062306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
68162306a36Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
68262306a36Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
68362306a36Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
68462306a36Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
68562306a36Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
68662306a36Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
68762306a36Sopenharmony_ci	"gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
68862306a36Sopenharmony_ci	"gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158",
68962306a36Sopenharmony_ci	"gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
69062306a36Sopenharmony_ci	"gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170",
69162306a36Sopenharmony_ci	"gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176",
69262306a36Sopenharmony_ci	"gpio177", "gpio178", "gpio179", "gpio180", "gpio181", "gpio182",
69362306a36Sopenharmony_ci	"gpio183", "gpio184", "gpio185", "gpio186", "gpio187", "gpio188",
69462306a36Sopenharmony_ci	"gpio189", "gpio190", "gpio191", "gpio192", "gpio193", "gpio194",
69562306a36Sopenharmony_ci	"gpio195", "gpio196", "gpio197", "gpio198", "gpio199", "gpio200",
69662306a36Sopenharmony_ci	"gpio201", "gpio202",
69762306a36Sopenharmony_ci};
69862306a36Sopenharmony_ci
69962306a36Sopenharmony_cistatic const char * const atest_char_groups[] = {
70062306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio115", "gpio117",
70162306a36Sopenharmony_ci};
70262306a36Sopenharmony_ci
70362306a36Sopenharmony_cistatic const char * const atest_usb_groups[] = {
70462306a36Sopenharmony_ci	"gpio55", "gpio80", "gpio81", "gpio151", "gpio152",
70562306a36Sopenharmony_ci	"gpio153", "gpio154", "gpio158", "gpio159", "gpio161",
70662306a36Sopenharmony_ci};
70762306a36Sopenharmony_ci
70862306a36Sopenharmony_cistatic const char * const audio_ref_groups[] = {
70962306a36Sopenharmony_ci	"gpio124",
71062306a36Sopenharmony_ci};
71162306a36Sopenharmony_ci
71262306a36Sopenharmony_cistatic const char * const cam_mclk_groups[] = {
71362306a36Sopenharmony_ci	"gpio100", "gpio101", "gpio102", "gpio103", "gpio104", "gpio105",
71462306a36Sopenharmony_ci};
71562306a36Sopenharmony_ci
71662306a36Sopenharmony_cistatic const char * const cci_async_groups[] = {
71762306a36Sopenharmony_ci	"gpio106", "gpio118", "gpio119",
71862306a36Sopenharmony_ci};
71962306a36Sopenharmony_ci
72062306a36Sopenharmony_cistatic const char * const cci_i2c_groups[] = {
72162306a36Sopenharmony_ci	"gpio107", "gpio108", "gpio109", "gpio110", "gpio111", "gpio112",
72262306a36Sopenharmony_ci	"gpio113", "gpio114",
72362306a36Sopenharmony_ci};
72462306a36Sopenharmony_ci
72562306a36Sopenharmony_cistatic const char * const cci_timer_groups[] = {
72662306a36Sopenharmony_ci	"gpio115", "gpio116", "gpio117", "gpio118", "gpio119",
72762306a36Sopenharmony_ci};
72862306a36Sopenharmony_ci
72962306a36Sopenharmony_cistatic const char * const cmu_rng_groups[] = {
73062306a36Sopenharmony_ci	"gpio174", "gpio175", "gpio176", "gpio177",
73162306a36Sopenharmony_ci};
73262306a36Sopenharmony_ci
73362306a36Sopenharmony_cistatic const char * const coex_uart1_groups[] = {
73462306a36Sopenharmony_ci	"gpio151", "gpio152",
73562306a36Sopenharmony_ci};
73662306a36Sopenharmony_ci
73762306a36Sopenharmony_cistatic const char * const coex_uart2_groups[] = {
73862306a36Sopenharmony_ci	"gpio153", "gpio154",
73962306a36Sopenharmony_ci};
74062306a36Sopenharmony_ci
74162306a36Sopenharmony_cistatic const char * const cri_trng_groups[] = {
74262306a36Sopenharmony_ci	"gpio186",
74362306a36Sopenharmony_ci};
74462306a36Sopenharmony_ci
74562306a36Sopenharmony_cistatic const char * const cri_trng0_groups[] = {
74662306a36Sopenharmony_ci	"gpio183",
74762306a36Sopenharmony_ci};
74862306a36Sopenharmony_ci
74962306a36Sopenharmony_cistatic const char * const cri_trng1_groups[] = {
75062306a36Sopenharmony_ci	"gpio184",
75162306a36Sopenharmony_ci};
75262306a36Sopenharmony_ci
75362306a36Sopenharmony_cistatic const char * const dbg_out_groups[] = {
75462306a36Sopenharmony_ci	"gpio14",
75562306a36Sopenharmony_ci};
75662306a36Sopenharmony_ci
75762306a36Sopenharmony_cistatic const char * const ddr_bist_groups[] = {
75862306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio40", "gpio41",
75962306a36Sopenharmony_ci};
76062306a36Sopenharmony_ci
76162306a36Sopenharmony_cistatic const char * const ddr_pxi0_groups[] = {
76262306a36Sopenharmony_ci	"gpio51", "gpio52",
76362306a36Sopenharmony_ci};
76462306a36Sopenharmony_ci
76562306a36Sopenharmony_cistatic const char * const ddr_pxi1_groups[] = {
76662306a36Sopenharmony_ci	"gpio48", "gpio49",
76762306a36Sopenharmony_ci};
76862306a36Sopenharmony_ci
76962306a36Sopenharmony_cistatic const char * const ddr_pxi2_groups[] = {
77062306a36Sopenharmony_ci	"gpio45", "gpio47",
77162306a36Sopenharmony_ci};
77262306a36Sopenharmony_ci
77362306a36Sopenharmony_cistatic const char * const ddr_pxi3_groups[] = {
77462306a36Sopenharmony_ci	"gpio43", "gpio44",
77562306a36Sopenharmony_ci};
77662306a36Sopenharmony_ci
77762306a36Sopenharmony_cistatic const char * const dp_hot_groups[] = {
77862306a36Sopenharmony_ci	"gpio87",
77962306a36Sopenharmony_ci};
78062306a36Sopenharmony_ci
78162306a36Sopenharmony_cistatic const char * const dp_lcd_groups[] = {
78262306a36Sopenharmony_ci	"gpio83",
78362306a36Sopenharmony_ci};
78462306a36Sopenharmony_ci
78562306a36Sopenharmony_cistatic const char * const gcc_gp1_groups[] = {
78662306a36Sopenharmony_ci	"gpio115", "gpio129",
78762306a36Sopenharmony_ci};
78862306a36Sopenharmony_ci
78962306a36Sopenharmony_cistatic const char * const gcc_gp2_groups[] = {
79062306a36Sopenharmony_ci	"gpio116", "gpio130",
79162306a36Sopenharmony_ci};
79262306a36Sopenharmony_ci
79362306a36Sopenharmony_cistatic const char * const gcc_gp3_groups[] = {
79462306a36Sopenharmony_ci	"gpio117", "gpio131",
79562306a36Sopenharmony_ci};
79662306a36Sopenharmony_ci
79762306a36Sopenharmony_cistatic const char * const ibi_i3c_groups[] = {
79862306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio56", "gpio57", "gpio60", "gpio61",
79962306a36Sopenharmony_ci};
80062306a36Sopenharmony_ci
80162306a36Sopenharmony_cistatic const char * const jitter_bist_groups[] = {
80262306a36Sopenharmony_ci	"gpio80",
80362306a36Sopenharmony_ci};
80462306a36Sopenharmony_ci
80562306a36Sopenharmony_cistatic const char * const lpass_slimbus_groups[] = {
80662306a36Sopenharmony_ci	"gpio129", "gpio130",
80762306a36Sopenharmony_ci};
80862306a36Sopenharmony_ci
80962306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
81062306a36Sopenharmony_ci	"gpio15", "gpio26", "gpio82", "gpio83", "gpio84",
81162306a36Sopenharmony_ci};
81262306a36Sopenharmony_ci
81362306a36Sopenharmony_cistatic const char * const mdp_vsync0_groups[] = {
81462306a36Sopenharmony_ci	"gpio86",
81562306a36Sopenharmony_ci};
81662306a36Sopenharmony_ci
81762306a36Sopenharmony_cistatic const char * const mdp_vsync1_groups[] = {
81862306a36Sopenharmony_ci	"gpio86",
81962306a36Sopenharmony_ci};
82062306a36Sopenharmony_ci
82162306a36Sopenharmony_cistatic const char * const mdp_vsync2_groups[] = {
82262306a36Sopenharmony_ci	"gpio87",
82362306a36Sopenharmony_ci};
82462306a36Sopenharmony_ci
82562306a36Sopenharmony_cistatic const char * const mdp_vsync3_groups[] = {
82662306a36Sopenharmony_ci	"gpio87",
82762306a36Sopenharmony_ci};
82862306a36Sopenharmony_ci
82962306a36Sopenharmony_cistatic const char * const mi2s0_data0_groups[] = {
83062306a36Sopenharmony_ci	"gpio126",
83162306a36Sopenharmony_ci};
83262306a36Sopenharmony_ci
83362306a36Sopenharmony_cistatic const char * const mi2s0_data1_groups[] = {
83462306a36Sopenharmony_ci	"gpio127",
83562306a36Sopenharmony_ci};
83662306a36Sopenharmony_ci
83762306a36Sopenharmony_cistatic const char * const mi2s0_sck_groups[] = {
83862306a36Sopenharmony_ci	"gpio125",
83962306a36Sopenharmony_ci};
84062306a36Sopenharmony_ci
84162306a36Sopenharmony_cistatic const char * const mi2s0_ws_groups[] = {
84262306a36Sopenharmony_ci	"gpio128",
84362306a36Sopenharmony_ci};
84462306a36Sopenharmony_ci
84562306a36Sopenharmony_cistatic const char * const mi2s1_data0_groups[] = {
84662306a36Sopenharmony_ci	"gpio130",
84762306a36Sopenharmony_ci};
84862306a36Sopenharmony_ci
84962306a36Sopenharmony_cistatic const char * const mi2s1_data1_groups[] = {
85062306a36Sopenharmony_ci	"gpio131",
85162306a36Sopenharmony_ci};
85262306a36Sopenharmony_ci
85362306a36Sopenharmony_cistatic const char * const mi2s1_sck_groups[] = {
85462306a36Sopenharmony_ci	"gpio129",
85562306a36Sopenharmony_ci};
85662306a36Sopenharmony_ci
85762306a36Sopenharmony_cistatic const char * const mi2s1_ws_groups[] = {
85862306a36Sopenharmony_ci	"gpio132",
85962306a36Sopenharmony_ci};
86062306a36Sopenharmony_ci
86162306a36Sopenharmony_cistatic const char * const mi2s2_data0_groups[] = {
86262306a36Sopenharmony_ci	"gpio121",
86362306a36Sopenharmony_ci};
86462306a36Sopenharmony_ci
86562306a36Sopenharmony_cistatic const char * const mi2s2_data1_groups[] = {
86662306a36Sopenharmony_ci	"gpio124",
86762306a36Sopenharmony_ci};
86862306a36Sopenharmony_ci
86962306a36Sopenharmony_cistatic const char * const mi2s2_sck_groups[] = {
87062306a36Sopenharmony_ci	"gpio120",
87162306a36Sopenharmony_ci};
87262306a36Sopenharmony_ci
87362306a36Sopenharmony_cistatic const char * const mi2s2_ws_groups[] = {
87462306a36Sopenharmony_ci	"gpio122",
87562306a36Sopenharmony_ci};
87662306a36Sopenharmony_ci
87762306a36Sopenharmony_cistatic const char * const mss_grfc0_groups[] = {
87862306a36Sopenharmony_ci	"gpio141", "gpio158",
87962306a36Sopenharmony_ci};
88062306a36Sopenharmony_ci
88162306a36Sopenharmony_cistatic const char * const mss_grfc1_groups[] = {
88262306a36Sopenharmony_ci	"gpio142",
88362306a36Sopenharmony_ci};
88462306a36Sopenharmony_ci
88562306a36Sopenharmony_cistatic const char * const mss_grfc10_groups[] = {
88662306a36Sopenharmony_ci	"gpio153",
88762306a36Sopenharmony_ci};
88862306a36Sopenharmony_ci
88962306a36Sopenharmony_cistatic const char * const mss_grfc11_groups[] = {
89062306a36Sopenharmony_ci	"gpio154",
89162306a36Sopenharmony_ci};
89262306a36Sopenharmony_ci
89362306a36Sopenharmony_cistatic const char * const mss_grfc12_groups[] = {
89462306a36Sopenharmony_ci	"gpio157",
89562306a36Sopenharmony_ci};
89662306a36Sopenharmony_ci
89762306a36Sopenharmony_cistatic const char * const mss_grfc2_groups[] = {
89862306a36Sopenharmony_ci	"gpio143",
89962306a36Sopenharmony_ci};
90062306a36Sopenharmony_ci
90162306a36Sopenharmony_cistatic const char * const mss_grfc3_groups[] = {
90262306a36Sopenharmony_ci	"gpio144",
90362306a36Sopenharmony_ci};
90462306a36Sopenharmony_ci
90562306a36Sopenharmony_cistatic const char * const mss_grfc4_groups[] = {
90662306a36Sopenharmony_ci	"gpio145",
90762306a36Sopenharmony_ci};
90862306a36Sopenharmony_ci
90962306a36Sopenharmony_cistatic const char * const mss_grfc5_groups[] = {
91062306a36Sopenharmony_ci	"gpio146",
91162306a36Sopenharmony_ci};
91262306a36Sopenharmony_ci
91362306a36Sopenharmony_cistatic const char * const mss_grfc6_groups[] = {
91462306a36Sopenharmony_ci	"gpio147",
91562306a36Sopenharmony_ci};
91662306a36Sopenharmony_ci
91762306a36Sopenharmony_cistatic const char * const mss_grfc7_groups[] = {
91862306a36Sopenharmony_ci	"gpio148",
91962306a36Sopenharmony_ci};
92062306a36Sopenharmony_ci
92162306a36Sopenharmony_cistatic const char * const mss_grfc8_groups[] = {
92262306a36Sopenharmony_ci	"gpio149",
92362306a36Sopenharmony_ci};
92462306a36Sopenharmony_ci
92562306a36Sopenharmony_cistatic const char * const mss_grfc9_groups[] = {
92662306a36Sopenharmony_ci	"gpio150",
92762306a36Sopenharmony_ci};
92862306a36Sopenharmony_ci
92962306a36Sopenharmony_cistatic const char * const nav_gpio_groups[] = {
93062306a36Sopenharmony_ci	"gpio155", "gpio156", "gpio157",
93162306a36Sopenharmony_ci};
93262306a36Sopenharmony_ci
93362306a36Sopenharmony_cistatic const char * const pa_indicator_groups[] = {
93462306a36Sopenharmony_ci	"gpio157",
93562306a36Sopenharmony_ci};
93662306a36Sopenharmony_ci
93762306a36Sopenharmony_cistatic const char * const pcie0_clkreqn_groups[] = {
93862306a36Sopenharmony_ci	"gpio95",
93962306a36Sopenharmony_ci};
94062306a36Sopenharmony_ci
94162306a36Sopenharmony_cistatic const char * const pcie1_clkreqn_groups[] = {
94262306a36Sopenharmony_ci	"gpio98",
94362306a36Sopenharmony_ci};
94462306a36Sopenharmony_ci
94562306a36Sopenharmony_cistatic const char * const phase_flag_groups[] = {
94662306a36Sopenharmony_ci	"gpio12", "gpio13", "gpio16", "gpio17", "gpio28", "gpio29", "gpio30",
94762306a36Sopenharmony_ci	"gpio31", "gpio32", "gpio33", "gpio34", "gpio35", "gpio72", "gpio73",
94862306a36Sopenharmony_ci	"gpio74", "gpio75", "gpio76", "gpio77", "gpio78", "gpio79", "gpio103",
94962306a36Sopenharmony_ci	"gpio104", "gpio105", "gpio106", "gpio107", "gpio108", "gpio109",
95062306a36Sopenharmony_ci	"gpio110", "gpio111", "gpio112", "gpio113", "gpio114",
95162306a36Sopenharmony_ci};
95262306a36Sopenharmony_ci
95362306a36Sopenharmony_cistatic const char * const pll_bist_groups[] = {
95462306a36Sopenharmony_ci	"gpio81",
95562306a36Sopenharmony_ci};
95662306a36Sopenharmony_ci
95762306a36Sopenharmony_cistatic const char * const pll_clk_groups[] = {
95862306a36Sopenharmony_ci	"gpio81",
95962306a36Sopenharmony_ci};
96062306a36Sopenharmony_ci
96162306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = {
96262306a36Sopenharmony_ci	"gpio123",
96362306a36Sopenharmony_ci};
96462306a36Sopenharmony_ci
96562306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = {
96662306a36Sopenharmony_ci	"gpio185",
96762306a36Sopenharmony_ci};
96862306a36Sopenharmony_ci
96962306a36Sopenharmony_cistatic const char * const qdss_cti_groups[] = {
97062306a36Sopenharmony_ci	"gpio14", "gpio27", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", "gpio92",
97162306a36Sopenharmony_ci};
97262306a36Sopenharmony_ci
97362306a36Sopenharmony_cistatic const char * const qdss_gpio_groups[] = {
97462306a36Sopenharmony_ci	"gpio100", "gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107",
97562306a36Sopenharmony_ci	"gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113", "gpio114", "gpio115",
97662306a36Sopenharmony_ci	"gpio116", "gpio117", "gpio183", "gpio184", "gpio185", "gpio186", "gpio187", "gpio188",
97762306a36Sopenharmony_ci	"gpio189", "gpio190", "gpio191", "gpio192", "gpio193", "gpio194", "gpio195", "gpio196",
97862306a36Sopenharmony_ci	"gpio197", "gpio198", "gpio199", "gpio200",
97962306a36Sopenharmony_ci};
98062306a36Sopenharmony_ci
98162306a36Sopenharmony_cistatic const char * const qlink0_enable_groups[] = {
98262306a36Sopenharmony_ci	"gpio160",
98362306a36Sopenharmony_ci};
98462306a36Sopenharmony_ci
98562306a36Sopenharmony_cistatic const char * const qlink0_request_groups[] = {
98662306a36Sopenharmony_ci	"gpio159",
98762306a36Sopenharmony_ci};
98862306a36Sopenharmony_ci
98962306a36Sopenharmony_cistatic const char * const qlink0_wmss_groups[] = {
99062306a36Sopenharmony_ci	"gpio161",
99162306a36Sopenharmony_ci};
99262306a36Sopenharmony_ci
99362306a36Sopenharmony_cistatic const char * const qlink1_enable_groups[] = {
99462306a36Sopenharmony_ci	"gpio163",
99562306a36Sopenharmony_ci};
99662306a36Sopenharmony_ci
99762306a36Sopenharmony_cistatic const char * const qlink1_request_groups[] = {
99862306a36Sopenharmony_ci	"gpio162",
99962306a36Sopenharmony_ci};
100062306a36Sopenharmony_ci
100162306a36Sopenharmony_cistatic const char * const qlink1_wmss_groups[] = {
100262306a36Sopenharmony_ci	"gpio164",
100362306a36Sopenharmony_ci};
100462306a36Sopenharmony_ci
100562306a36Sopenharmony_cistatic const char * const qlink2_enable_groups[] = {
100662306a36Sopenharmony_ci	"gpio166",
100762306a36Sopenharmony_ci};
100862306a36Sopenharmony_ci
100962306a36Sopenharmony_cistatic const char * const qlink2_request_groups[] = {
101062306a36Sopenharmony_ci	"gpio165",
101162306a36Sopenharmony_ci};
101262306a36Sopenharmony_ci
101362306a36Sopenharmony_cistatic const char * const qlink2_wmss_groups[] = {
101462306a36Sopenharmony_ci	"gpio167",
101562306a36Sopenharmony_ci};
101662306a36Sopenharmony_ci
101762306a36Sopenharmony_cistatic const char * const qspi0_groups[] = {
101862306a36Sopenharmony_ci	"gpio44",
101962306a36Sopenharmony_ci};
102062306a36Sopenharmony_ci
102162306a36Sopenharmony_cistatic const char * const qspi1_groups[] = {
102262306a36Sopenharmony_ci	"gpio45",
102362306a36Sopenharmony_ci};
102462306a36Sopenharmony_ci
102562306a36Sopenharmony_cistatic const char * const qspi2_groups[] = {
102662306a36Sopenharmony_ci	"gpio48",
102762306a36Sopenharmony_ci};
102862306a36Sopenharmony_ci
102962306a36Sopenharmony_cistatic const char * const qspi3_groups[] = {
103062306a36Sopenharmony_ci	"gpio49",
103162306a36Sopenharmony_ci};
103262306a36Sopenharmony_ci
103362306a36Sopenharmony_cistatic const char * const qspi_clk_groups[] = {
103462306a36Sopenharmony_ci	"gpio50",
103562306a36Sopenharmony_ci};
103662306a36Sopenharmony_ci
103762306a36Sopenharmony_cistatic const char * const qspi_cs_groups[] = {
103862306a36Sopenharmony_ci	"gpio47", "gpio51",
103962306a36Sopenharmony_ci};
104062306a36Sopenharmony_ci
104162306a36Sopenharmony_cistatic const char * const qup0_groups[] = {
104262306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio6", "gpio7",
104362306a36Sopenharmony_ci};
104462306a36Sopenharmony_ci
104562306a36Sopenharmony_cistatic const char * const qup1_groups[] = {
104662306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11",
104762306a36Sopenharmony_ci};
104862306a36Sopenharmony_ci
104962306a36Sopenharmony_cistatic const char * const qup10_groups[] = {
105062306a36Sopenharmony_ci	"gpio44", "gpio45", "gpio46", "gpio47",
105162306a36Sopenharmony_ci};
105262306a36Sopenharmony_ci
105362306a36Sopenharmony_cistatic const char * const qup11_groups[] = {
105462306a36Sopenharmony_ci	"gpio48", "gpio49", "gpio50", "gpio51",
105562306a36Sopenharmony_ci};
105662306a36Sopenharmony_ci
105762306a36Sopenharmony_cistatic const char * const qup12_groups[] = {
105862306a36Sopenharmony_ci	"gpio52", "gpio53", "gpio54", "gpio55",
105962306a36Sopenharmony_ci};
106062306a36Sopenharmony_ci
106162306a36Sopenharmony_cistatic const char * const qup13_groups[] = {
106262306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
106362306a36Sopenharmony_ci};
106462306a36Sopenharmony_ci
106562306a36Sopenharmony_cistatic const char * const qup14_groups[] = {
106662306a36Sopenharmony_ci	"gpio56", "gpio57", "gpio58", "gpio59",
106762306a36Sopenharmony_ci};
106862306a36Sopenharmony_ci
106962306a36Sopenharmony_cistatic const char * const qup15_groups[] = {
107062306a36Sopenharmony_ci	"gpio60", "gpio61", "gpio62", "gpio63",
107162306a36Sopenharmony_ci};
107262306a36Sopenharmony_ci
107362306a36Sopenharmony_cistatic const char * const qup16_groups[] = {
107462306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67",
107562306a36Sopenharmony_ci};
107662306a36Sopenharmony_ci
107762306a36Sopenharmony_cistatic const char * const qup17_groups[] = {
107862306a36Sopenharmony_ci	"gpio72", "gpio73", "gpio74", "gpio75",
107962306a36Sopenharmony_ci};
108062306a36Sopenharmony_ci
108162306a36Sopenharmony_cistatic const char * const qup18_groups[] = {
108262306a36Sopenharmony_ci	"gpio68", "gpio69", "gpio70", "gpio71",
108362306a36Sopenharmony_ci};
108462306a36Sopenharmony_ci
108562306a36Sopenharmony_cistatic const char * const qup19_groups[] = {
108662306a36Sopenharmony_ci	"gpio76", "gpio77", "gpio78", "gpio79",
108762306a36Sopenharmony_ci};
108862306a36Sopenharmony_ci
108962306a36Sopenharmony_cistatic const char * const qup2_groups[] = {
109062306a36Sopenharmony_ci	"gpio12", "gpio13", "gpio14", "gpio15",
109162306a36Sopenharmony_ci};
109262306a36Sopenharmony_ci
109362306a36Sopenharmony_cistatic const char * const qup3_groups[] = {
109462306a36Sopenharmony_ci	"gpio16", "gpio17", "gpio18", "gpio19",
109562306a36Sopenharmony_ci};
109662306a36Sopenharmony_ci
109762306a36Sopenharmony_cistatic const char * const qup4_groups[] = {
109862306a36Sopenharmony_ci	"gpio20", "gpio21", "gpio22", "gpio23",
109962306a36Sopenharmony_ci};
110062306a36Sopenharmony_ci
110162306a36Sopenharmony_cistatic const char * const qup5_groups[] = {
110262306a36Sopenharmony_ci	"gpio24", "gpio25", "gpio26", "gpio27",
110362306a36Sopenharmony_ci};
110462306a36Sopenharmony_ci
110562306a36Sopenharmony_cistatic const char * const qup6_groups[] = {
110662306a36Sopenharmony_ci	"gpio28", "gpio29", "gpio30", "gpio31",
110762306a36Sopenharmony_ci};
110862306a36Sopenharmony_ci
110962306a36Sopenharmony_cistatic const char * const qup7_groups[] = {
111062306a36Sopenharmony_ci	"gpio32", "gpio33", "gpio34", "gpio35",
111162306a36Sopenharmony_ci};
111262306a36Sopenharmony_ci
111362306a36Sopenharmony_cistatic const char * const qup8_groups[] = {
111462306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39",
111562306a36Sopenharmony_ci};
111662306a36Sopenharmony_ci
111762306a36Sopenharmony_cistatic const char * const qup9_groups[] = {
111862306a36Sopenharmony_ci	"gpio40", "gpio41", "gpio42", "gpio43",
111962306a36Sopenharmony_ci};
112062306a36Sopenharmony_ci
112162306a36Sopenharmony_cistatic const char * const qup_l4_groups[] = {
112262306a36Sopenharmony_ci	"gpio2", "gpio6", "gpio58", "gpio63",
112362306a36Sopenharmony_ci};
112462306a36Sopenharmony_ci
112562306a36Sopenharmony_cistatic const char * const qup_l5_groups[] = {
112662306a36Sopenharmony_ci	"gpio3", "gpio7", "gpio59", "gpio66",
112762306a36Sopenharmony_ci};
112862306a36Sopenharmony_ci
112962306a36Sopenharmony_cistatic const char * const qup_l6_groups[] = {
113062306a36Sopenharmony_ci	"gpio10", "gpio42", "gpio62", "gpio67",
113162306a36Sopenharmony_ci};
113262306a36Sopenharmony_ci
113362306a36Sopenharmony_cistatic const char * const sd_write_groups[] = {
113462306a36Sopenharmony_ci	"gpio93",
113562306a36Sopenharmony_ci};
113662306a36Sopenharmony_ci
113762306a36Sopenharmony_cistatic const char * const sdc40_groups[] = {
113862306a36Sopenharmony_ci	"gpio44",
113962306a36Sopenharmony_ci};
114062306a36Sopenharmony_ci
114162306a36Sopenharmony_cistatic const char * const sdc41_groups[] = {
114262306a36Sopenharmony_ci	"gpio45",
114362306a36Sopenharmony_ci};
114462306a36Sopenharmony_ci
114562306a36Sopenharmony_cistatic const char * const sdc42_groups[] = {
114662306a36Sopenharmony_ci	"gpio48",
114762306a36Sopenharmony_ci};
114862306a36Sopenharmony_ci
114962306a36Sopenharmony_cistatic const char * const sdc43_groups[] = {
115062306a36Sopenharmony_ci	"gpio49",
115162306a36Sopenharmony_ci};
115262306a36Sopenharmony_ci
115362306a36Sopenharmony_cistatic const char * const sdc4_clk_groups[] = {
115462306a36Sopenharmony_ci	"gpio50",
115562306a36Sopenharmony_ci};
115662306a36Sopenharmony_ci
115762306a36Sopenharmony_cistatic const char * const sdc4_cmd_groups[] = {
115862306a36Sopenharmony_ci	"gpio51",
115962306a36Sopenharmony_ci};
116062306a36Sopenharmony_ci
116162306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = {
116262306a36Sopenharmony_ci	"gpio124",
116362306a36Sopenharmony_ci};
116462306a36Sopenharmony_ci
116562306a36Sopenharmony_cistatic const char * const tb_trig_groups[] = {
116662306a36Sopenharmony_ci	"gpio64", "gpio136",
116762306a36Sopenharmony_ci};
116862306a36Sopenharmony_ci
116962306a36Sopenharmony_cistatic const char * const tgu_ch0_groups[] = {
117062306a36Sopenharmony_ci	"gpio99",
117162306a36Sopenharmony_ci};
117262306a36Sopenharmony_ci
117362306a36Sopenharmony_cistatic const char * const tgu_ch1_groups[] = {
117462306a36Sopenharmony_ci	"gpio100",
117562306a36Sopenharmony_ci};
117662306a36Sopenharmony_ci
117762306a36Sopenharmony_cistatic const char * const tgu_ch2_groups[] = {
117862306a36Sopenharmony_ci	"gpio101",
117962306a36Sopenharmony_ci};
118062306a36Sopenharmony_ci
118162306a36Sopenharmony_cistatic const char * const tgu_ch3_groups[] = {
118262306a36Sopenharmony_ci	"gpio102",
118362306a36Sopenharmony_ci};
118462306a36Sopenharmony_ci
118562306a36Sopenharmony_cistatic const char * const tsense_pwm1_groups[] = {
118662306a36Sopenharmony_ci	"gpio88",
118762306a36Sopenharmony_ci};
118862306a36Sopenharmony_ci
118962306a36Sopenharmony_cistatic const char * const tsense_pwm2_groups[] = {
119062306a36Sopenharmony_ci	"gpio88",
119162306a36Sopenharmony_ci};
119262306a36Sopenharmony_ci
119362306a36Sopenharmony_cistatic const char * const uim0_clk_groups[] = {
119462306a36Sopenharmony_ci	"gpio138",
119562306a36Sopenharmony_ci};
119662306a36Sopenharmony_ci
119762306a36Sopenharmony_cistatic const char * const uim0_data_groups[] = {
119862306a36Sopenharmony_ci	"gpio137",
119962306a36Sopenharmony_ci};
120062306a36Sopenharmony_ci
120162306a36Sopenharmony_cistatic const char * const uim0_present_groups[] = {
120262306a36Sopenharmony_ci	"gpio140",
120362306a36Sopenharmony_ci};
120462306a36Sopenharmony_ci
120562306a36Sopenharmony_cistatic const char * const uim0_reset_groups[] = {
120662306a36Sopenharmony_ci	"gpio139",
120762306a36Sopenharmony_ci};
120862306a36Sopenharmony_ci
120962306a36Sopenharmony_cistatic const char * const uim1_clk_groups[] = {
121062306a36Sopenharmony_ci	"gpio134",
121162306a36Sopenharmony_ci};
121262306a36Sopenharmony_ci
121362306a36Sopenharmony_cistatic const char * const uim1_data_groups[] = {
121462306a36Sopenharmony_ci	"gpio133",
121562306a36Sopenharmony_ci};
121662306a36Sopenharmony_ci
121762306a36Sopenharmony_cistatic const char * const uim1_present_groups[] = {
121862306a36Sopenharmony_ci	"gpio136",
121962306a36Sopenharmony_ci};
122062306a36Sopenharmony_ci
122162306a36Sopenharmony_cistatic const char * const uim1_reset_groups[] = {
122262306a36Sopenharmony_ci	"gpio135",
122362306a36Sopenharmony_ci};
122462306a36Sopenharmony_ci
122562306a36Sopenharmony_cistatic const char * const usb2phy_ac_groups[] = {
122662306a36Sopenharmony_ci	"gpio39", "gpio80",
122762306a36Sopenharmony_ci};
122862306a36Sopenharmony_ci
122962306a36Sopenharmony_cistatic const char * const usb_phy_groups[] = {
123062306a36Sopenharmony_ci	"gpio81",
123162306a36Sopenharmony_ci};
123262306a36Sopenharmony_ci
123362306a36Sopenharmony_cistatic const char * const vfr_0_groups[] = {
123462306a36Sopenharmony_ci	"gpio84",
123562306a36Sopenharmony_ci};
123662306a36Sopenharmony_ci
123762306a36Sopenharmony_cistatic const char * const vfr_1_groups[] = {
123862306a36Sopenharmony_ci	"gpio90",
123962306a36Sopenharmony_ci};
124062306a36Sopenharmony_ci
124162306a36Sopenharmony_cistatic const char * const vsense_trigger_groups[] = {
124262306a36Sopenharmony_ci	"gpio78",
124362306a36Sopenharmony_ci};
124462306a36Sopenharmony_ci
124562306a36Sopenharmony_cistatic const struct pinfunction sm8350_functions[] = {
124662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char),
124762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_usb),
124862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(audio_ref),
124962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk),
125062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_async),
125162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_i2c),
125262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer),
125362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cmu_rng),
125462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(coex_uart1),
125562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(coex_uart2),
125662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng),
125762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng0),
125862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng1),
125962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dbg_out),
126062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_bist),
126162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi0),
126262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi1),
126362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi2),
126462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi3),
126562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dp_hot),
126662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dp_lcd),
126762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1),
126862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2),
126962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3),
127062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
127162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ibi_i3c),
127262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(jitter_bist),
127362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(lpass_slimbus),
127462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync),
127562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync0),
127662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync1),
127762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync2),
127862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync3),
127962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s0_data0),
128062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s0_data1),
128162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s0_sck),
128262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s0_ws),
128362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s1_data0),
128462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s1_data1),
128562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s1_sck),
128662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s1_ws),
128762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s2_data0),
128862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s2_data1),
128962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s2_sck),
129062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s2_ws),
129162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc0),
129262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc1),
129362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc10),
129462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc11),
129562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc12),
129662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc2),
129762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc3),
129862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc4),
129962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc5),
130062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc6),
130162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc7),
130262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc8),
130362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_grfc9),
130462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_gpio),
130562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pa_indicator),
130662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pcie0_clkreqn),
130762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pcie1_clkreqn),
130862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(phase_flag),
130962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_bist),
131062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_clk),
131162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pri_mi2s),
131262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(prng_rosc),
131362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti),
131462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio),
131562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_enable),
131662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_request),
131762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_wmss),
131862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_enable),
131962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_request),
132062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_wmss),
132162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink2_enable),
132262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink2_request),
132362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink2_wmss),
132462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi0),
132562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi1),
132662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi2),
132762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi3),
132862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi_clk),
132962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi_cs),
133062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup0),
133162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup1),
133262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup10),
133362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup11),
133462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup12),
133562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup13),
133662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup14),
133762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup15),
133862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup16),
133962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup17),
134062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup18),
134162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup19),
134262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup2),
134362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup3),
134462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup4),
134562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup5),
134662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup6),
134762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup7),
134862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup8),
134962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup9),
135062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_l4),
135162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_l5),
135262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_l6),
135362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sd_write),
135462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc40),
135562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc41),
135662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc42),
135762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc43),
135862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc4_clk),
135962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc4_cmd),
136062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sec_mi2s),
136162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tb_trig),
136262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch0),
136362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch1),
136462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch2),
136562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch3),
136662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsense_pwm1),
136762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsense_pwm2),
136862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim0_clk),
136962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim0_data),
137062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim0_present),
137162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim0_reset),
137262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_clk),
137362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_data),
137462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_present),
137562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_reset),
137662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb2phy_ac),
137762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_phy),
137862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfr_0),
137962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfr_1),
138062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vsense_trigger),
138162306a36Sopenharmony_ci};
138262306a36Sopenharmony_ci
138362306a36Sopenharmony_ci/* Every pin is maintained as a single group, and missing or non-existing pin
138462306a36Sopenharmony_ci * would be maintained as dummy group to synchronize pin group index with
138562306a36Sopenharmony_ci * pin descriptor registered with pinctrl core.
138662306a36Sopenharmony_ci * Clients would not be able to request these dummy pin groups.
138762306a36Sopenharmony_ci */
138862306a36Sopenharmony_cistatic const struct msm_pingroup sm8350_groups[] = {
138962306a36Sopenharmony_ci	[0] = PINGROUP(0, qup13, _, _, _, _, _, _, _, _),
139062306a36Sopenharmony_ci	[1] = PINGROUP(1, qup13, _, _, _, _, _, _, _, _),
139162306a36Sopenharmony_ci	[2] = PINGROUP(2, qup13, qup_l4, _, _, _, _, _, _, _),
139262306a36Sopenharmony_ci	[3] = PINGROUP(3, qup13, qup_l5, _, _, _, _, _, _, _),
139362306a36Sopenharmony_ci	[4] = PINGROUP(4, qup0, _, _, _, _, _, _, _, _),
139462306a36Sopenharmony_ci	[5] = PINGROUP(5, qup0, _, _, _, _, _, _, _, _),
139562306a36Sopenharmony_ci	[6] = PINGROUP(6, qup0, qup_l4, _, _, _, _, _, _, _),
139662306a36Sopenharmony_ci	[7] = PINGROUP(7, qup0, qup_l5, _, _, _, _, _, _, _),
139762306a36Sopenharmony_ci	[8] = PINGROUP(8, qup1, _, _, _, _, _, _, _, _),
139862306a36Sopenharmony_ci	[9] = PINGROUP(9, qup1, _, _, _, _, _, _, _, _),
139962306a36Sopenharmony_ci	[10] = PINGROUP(10, qup1, qup_l6, _, _, _, _, _, _, _),
140062306a36Sopenharmony_ci	[11] = PINGROUP(11, qup1, _, _, _, _, _, _, _, _),
140162306a36Sopenharmony_ci	[12] = PINGROUP(12, qup2, phase_flag, _, _, _, _, _, _, _),
140262306a36Sopenharmony_ci	[13] = PINGROUP(13, qup2, phase_flag, _, _, _, _, _, _, _),
140362306a36Sopenharmony_ci	[14] = PINGROUP(14, qup2, qdss_cti, dbg_out, _, _, _, _, _, _),
140462306a36Sopenharmony_ci	[15] = PINGROUP(15, qup2, mdp_vsync, _, _, _, _, _, _, _),
140562306a36Sopenharmony_ci	[16] = PINGROUP(16, qup3, phase_flag, _, _, _, _, _, _, _),
140662306a36Sopenharmony_ci	[17] = PINGROUP(17, qup3, phase_flag, _, _, _, _, _, _, _),
140762306a36Sopenharmony_ci	[18] = PINGROUP(18, qup3, _, _, _, _, _, _, _, _),
140862306a36Sopenharmony_ci	[19] = PINGROUP(19, qup3, _, _, _, _, _, _, _, _),
140962306a36Sopenharmony_ci	[20] = PINGROUP(20, qup4, _, _, _, _, _, _, _, _),
141062306a36Sopenharmony_ci	[21] = PINGROUP(21, qup4, _, _, _, _, _, _, _, _),
141162306a36Sopenharmony_ci	[22] = PINGROUP(22, qup4, _, _, _, _, _, _, _, _),
141262306a36Sopenharmony_ci	[23] = PINGROUP(23, qup4, _, _, _, _, _, _, _, _),
141362306a36Sopenharmony_ci	[24] = PINGROUP(24, qup5, _, _, _, _, _, _, _, _),
141462306a36Sopenharmony_ci	[25] = PINGROUP(25, qup5, _, _, _, _, _, _, _, _),
141562306a36Sopenharmony_ci	[26] = PINGROUP(26, qup5, mdp_vsync, _, _, _, _, _, _, _),
141662306a36Sopenharmony_ci	[27] = PINGROUP(27, qup5, qdss_cti, _, _, _, _, _, _, _),
141762306a36Sopenharmony_ci	[28] = PINGROUP(28, qup6, phase_flag, _, _, _, _, _, _, _),
141862306a36Sopenharmony_ci	[29] = PINGROUP(29, qup6, phase_flag, _, _, _, _, _, _, _),
141962306a36Sopenharmony_ci	[30] = PINGROUP(30, qup6, phase_flag, _, _, _, _, _, _, _),
142062306a36Sopenharmony_ci	[31] = PINGROUP(31, qup6, phase_flag, _, _, _, _, _, _, _),
142162306a36Sopenharmony_ci	[32] = PINGROUP(32, qup7, phase_flag, _, _, _, _, _, _, _),
142262306a36Sopenharmony_ci	[33] = PINGROUP(33, qup7, phase_flag, _, _, _, _, _, _, _),
142362306a36Sopenharmony_ci	[34] = PINGROUP(34, qup7, phase_flag, _, _, _, _, _, _, _),
142462306a36Sopenharmony_ci	[35] = PINGROUP(35, qup7, phase_flag, _, _, _, _, _, _, _),
142562306a36Sopenharmony_ci	[36] = PINGROUP(36, qup8, ibi_i3c, ddr_bist, _, _, _, _, _, _),
142662306a36Sopenharmony_ci	[37] = PINGROUP(37, qup8, ibi_i3c, ddr_bist, _, _, _, _, _, _),
142762306a36Sopenharmony_ci	[38] = PINGROUP(38, qup8, _, _, _, _, _, _, _, _),
142862306a36Sopenharmony_ci	[39] = PINGROUP(39, qup8, usb2phy_ac, _, _, _, _, _, _, _),
142962306a36Sopenharmony_ci	[40] = PINGROUP(40, qup9, ddr_bist, _, _, _, _, _, _, _),
143062306a36Sopenharmony_ci	[41] = PINGROUP(41, qup9, ddr_bist, _, _, _, _, _, _, _),
143162306a36Sopenharmony_ci	[42] = PINGROUP(42, qup9, qup_l6, _, _, _, _, _, _, _),
143262306a36Sopenharmony_ci	[43] = PINGROUP(43, qup9, ddr_pxi3, _, _, _, _, _, _, _),
143362306a36Sopenharmony_ci	[44] = PINGROUP(44, qup10, qspi0, sdc40, ddr_pxi3, _, _, _, _, _),
143462306a36Sopenharmony_ci	[45] = PINGROUP(45, qup10, qspi1, sdc41, ddr_pxi2, _, _, _, _, _),
143562306a36Sopenharmony_ci	[46] = PINGROUP(46, qup10, _, _, _, _, _, _, _, _),
143662306a36Sopenharmony_ci	[47] = PINGROUP(47, qup10, qspi_cs, ddr_pxi2, _, _, _, _, _, _),
143762306a36Sopenharmony_ci	[48] = PINGROUP(48, qup11, qspi2, sdc42, ddr_pxi1, _, _, _, _, _),
143862306a36Sopenharmony_ci	[49] = PINGROUP(49, qup11, qspi3, sdc43, ddr_pxi1, _, _, _, _, _),
143962306a36Sopenharmony_ci	[50] = PINGROUP(50, qup11, qspi_clk, sdc4_clk, _, _, _, _, _, _),
144062306a36Sopenharmony_ci	[51] = PINGROUP(51, qup11, qspi_cs, sdc4_cmd, ddr_pxi0, _, _, _, _, _),
144162306a36Sopenharmony_ci	[52] = PINGROUP(52, qup12, ddr_pxi0, _, _, _, _, _, _, _),
144262306a36Sopenharmony_ci	[53] = PINGROUP(53, qup12, _, _, _, _, _, _, _, _),
144362306a36Sopenharmony_ci	[54] = PINGROUP(54, qup12, _, _, _, _, _, _, _, _),
144462306a36Sopenharmony_ci	[55] = PINGROUP(55, qup12, atest_usb, _, _, _, _, _, _, _),
144562306a36Sopenharmony_ci	[56] = PINGROUP(56, qup14, ibi_i3c, _, _, _, _, _, _, _),
144662306a36Sopenharmony_ci	[57] = PINGROUP(57, qup14, ibi_i3c, _, _, _, _, _, _, _),
144762306a36Sopenharmony_ci	[58] = PINGROUP(58, qup14, qup_l4, _, _, _, _, _, _, _),
144862306a36Sopenharmony_ci	[59] = PINGROUP(59, qup14, qup_l5, _, _, _, _, _, _, _),
144962306a36Sopenharmony_ci	[60] = PINGROUP(60, qup15, ibi_i3c, _, _, _, _, _, _, _),
145062306a36Sopenharmony_ci	[61] = PINGROUP(61, qup15, ibi_i3c, _, _, _, _, _, _, _),
145162306a36Sopenharmony_ci	[62] = PINGROUP(62, qup15, qup_l6, _, _, _, _, _, _, _),
145262306a36Sopenharmony_ci	[63] = PINGROUP(63, qup15, qup_l4, _, _, _, _, _, _, _),
145362306a36Sopenharmony_ci	[64] = PINGROUP(64, qup16, tb_trig, _, _, _, _, _, _, _),
145462306a36Sopenharmony_ci	[65] = PINGROUP(65, qup16, _, _, _, _, _, _, _, _),
145562306a36Sopenharmony_ci	[66] = PINGROUP(66, qup16, qup_l5, _, _, _, _, _, _, _),
145662306a36Sopenharmony_ci	[67] = PINGROUP(67, qup16, qup_l6, _, _, _, _, _, _, _),
145762306a36Sopenharmony_ci	[68] = PINGROUP(68, qup18, _, _, _, _, _, _, _, _),
145862306a36Sopenharmony_ci	[69] = PINGROUP(69, qup18, _, _, _, _, _, _, _, _),
145962306a36Sopenharmony_ci	[70] = PINGROUP(70, qup18, _, _, _, _, _, _, _, _),
146062306a36Sopenharmony_ci	[71] = PINGROUP(71, qup18, _, _, _, _, _, _, _, _),
146162306a36Sopenharmony_ci	[72] = PINGROUP(72, qup17, phase_flag, _, _, _, _, _, _, _),
146262306a36Sopenharmony_ci	[73] = PINGROUP(73, qup17, phase_flag, _, _, _, _, _, _, _),
146362306a36Sopenharmony_ci	[74] = PINGROUP(74, qup17, phase_flag, _, _, _, _, _, _, _),
146462306a36Sopenharmony_ci	[75] = PINGROUP(75, qup17, phase_flag, _, _, _, _, _, _, _),
146562306a36Sopenharmony_ci	[76] = PINGROUP(76, qup19, phase_flag, _, _, _, _, _, _, _),
146662306a36Sopenharmony_ci	[77] = PINGROUP(77, qup19, phase_flag, _, _, _, _, _, _, _),
146762306a36Sopenharmony_ci	[78] = PINGROUP(78, qup19, phase_flag, _, vsense_trigger, _, _, _, _, _),
146862306a36Sopenharmony_ci	[79] = PINGROUP(79, qup19, phase_flag, _, _, _, _, _, _, _),
146962306a36Sopenharmony_ci	[80] = PINGROUP(80, usb2phy_ac, jitter_bist, atest_usb, _, _, _, _, _, _),
147062306a36Sopenharmony_ci	[81] = PINGROUP(81, usb_phy, pll_bist, pll_clk, atest_usb, _, _, _, _, _),
147162306a36Sopenharmony_ci	[82] = PINGROUP(82, mdp_vsync, _, _, _, _, _, _, _, _),
147262306a36Sopenharmony_ci	[83] = PINGROUP(83, mdp_vsync, dp_lcd, _, _, _, _, _, _, _),
147362306a36Sopenharmony_ci	[84] = PINGROUP(84, mdp_vsync, vfr_0, _, _, _, _, _, _, _),
147462306a36Sopenharmony_ci	[85] = PINGROUP(85, atest_char, _, _, _, _, _, _, _, _),
147562306a36Sopenharmony_ci	[86] = PINGROUP(86, mdp_vsync0, mdp_vsync1, atest_char, _, _, _, _, _, _),
147662306a36Sopenharmony_ci	[87] = PINGROUP(87, dp_hot, mdp_vsync2, mdp_vsync3, qdss_cti, atest_char, _, _, _, _),
147762306a36Sopenharmony_ci	[88] = PINGROUP(88, qdss_cti, tsense_pwm1, tsense_pwm2, _, _, _, _, _, _),
147862306a36Sopenharmony_ci	[89] = PINGROUP(89, qdss_cti, _, _, _, _, _, _, _, _),
147962306a36Sopenharmony_ci	[90] = PINGROUP(90, vfr_1, qdss_cti, _, _, _, _, _, _, _),
148062306a36Sopenharmony_ci	[91] = PINGROUP(91, qdss_cti, _, _, _, _, _, _, _, _),
148162306a36Sopenharmony_ci	[92] = PINGROUP(92, qdss_cti, _, _, _, _, _, _, _, _),
148262306a36Sopenharmony_ci	[93] = PINGROUP(93, sd_write, _, _, _, _, _, _, _, _),
148362306a36Sopenharmony_ci	[94] = PINGROUP(94, _, _, _, _, _, _, _, _, _),
148462306a36Sopenharmony_ci	[95] = PINGROUP(95, pcie0_clkreqn, _, _, _, _, _, _, _, _),
148562306a36Sopenharmony_ci	[96] = PINGROUP(96, _, _, _, _, _, _, _, _, _),
148662306a36Sopenharmony_ci	[97] = PINGROUP(97, _, _, _, _, _, _, _, _, _),
148762306a36Sopenharmony_ci	[98] = PINGROUP(98, pcie1_clkreqn, _, _, _, _, _, _, _, _),
148862306a36Sopenharmony_ci	[99] = PINGROUP(99, tgu_ch0, _, _, _, _, _, _, _, _),
148962306a36Sopenharmony_ci	[100] = PINGROUP(100, cam_mclk, tgu_ch1, qdss_gpio, _, _, _, _, _, _),
149062306a36Sopenharmony_ci	[101] = PINGROUP(101, cam_mclk, tgu_ch2, qdss_gpio, _, _, _, _, _, _),
149162306a36Sopenharmony_ci	[102] = PINGROUP(102, cam_mclk, tgu_ch3, qdss_gpio, _, _, _, _, _, _),
149262306a36Sopenharmony_ci	[103] = PINGROUP(103, cam_mclk, phase_flag, _, qdss_gpio, _, _, _, _, _),
149362306a36Sopenharmony_ci	[104] = PINGROUP(104, cam_mclk, phase_flag, _, qdss_gpio, _, _, _, _, _),
149462306a36Sopenharmony_ci	[105] = PINGROUP(105, cam_mclk, phase_flag, _, qdss_gpio, _, _, _, _, _),
149562306a36Sopenharmony_ci	[106] = PINGROUP(106, cci_async, phase_flag, _, qdss_gpio, _, _, _, _, _),
149662306a36Sopenharmony_ci	[107] = PINGROUP(107, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
149762306a36Sopenharmony_ci	[108] = PINGROUP(108, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
149862306a36Sopenharmony_ci	[109] = PINGROUP(109, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
149962306a36Sopenharmony_ci	[110] = PINGROUP(110, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
150062306a36Sopenharmony_ci	[111] = PINGROUP(111, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
150162306a36Sopenharmony_ci	[112] = PINGROUP(112, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
150262306a36Sopenharmony_ci	[113] = PINGROUP(113, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
150362306a36Sopenharmony_ci	[114] = PINGROUP(114, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _),
150462306a36Sopenharmony_ci	[115] = PINGROUP(115, cci_timer, gcc_gp1, qdss_gpio, atest_char, _, _, _, _, _),
150562306a36Sopenharmony_ci	[116] = PINGROUP(116, cci_timer, gcc_gp2, qdss_gpio, _, _, _, _, _, _),
150662306a36Sopenharmony_ci	[117] = PINGROUP(117, cci_timer, gcc_gp3, qdss_gpio, atest_char, _, _, _, _, _),
150762306a36Sopenharmony_ci	[118] = PINGROUP(118, cci_timer, cci_async, _, _, _, _, _, _, _),
150862306a36Sopenharmony_ci	[119] = PINGROUP(119, cci_timer, cci_async, _, _, _, _, _, _, _),
150962306a36Sopenharmony_ci	[120] = PINGROUP(120, mi2s2_sck, _, _, _, _, _, _, _, _),
151062306a36Sopenharmony_ci	[121] = PINGROUP(121, mi2s2_data0, _, _, _, _, _, _, _, _),
151162306a36Sopenharmony_ci	[122] = PINGROUP(122, mi2s2_ws, _, _, _, _, _, _, _, _),
151262306a36Sopenharmony_ci	[123] = PINGROUP(123, pri_mi2s, _, _, _, _, _, _, _, _),
151362306a36Sopenharmony_ci	[124] = PINGROUP(124, sec_mi2s, audio_ref, mi2s2_data1, _, _, _, _, _, _),
151462306a36Sopenharmony_ci	[125] = PINGROUP(125, mi2s0_sck, _, _, _, _, _, _, _, _),
151562306a36Sopenharmony_ci	[126] = PINGROUP(126, mi2s0_data0, _, _, _, _, _, _, _, _),
151662306a36Sopenharmony_ci	[127] = PINGROUP(127, mi2s0_data1, _, _, _, _, _, _, _, _),
151762306a36Sopenharmony_ci	[128] = PINGROUP(128, mi2s0_ws, _, _, _, _, _, _, _, _),
151862306a36Sopenharmony_ci	[129] = PINGROUP(129, lpass_slimbus, mi2s1_sck, gcc_gp1, _, _, _, _, _, _),
151962306a36Sopenharmony_ci	[130] = PINGROUP(130, lpass_slimbus, mi2s1_data0, gcc_gp2, _, _, _, _, _, _),
152062306a36Sopenharmony_ci	[131] = PINGROUP(131, mi2s1_data1, gcc_gp3, _, _, _, _, _, _, _),
152162306a36Sopenharmony_ci	[132] = PINGROUP(132, mi2s1_ws, _, _, _, _, _, _, _, _),
152262306a36Sopenharmony_ci	[133] = PINGROUP(133, uim1_data, _, _, _, _, _, _, _, _),
152362306a36Sopenharmony_ci	[134] = PINGROUP(134, uim1_clk, _, _, _, _, _, _, _, _),
152462306a36Sopenharmony_ci	[135] = PINGROUP(135, uim1_reset, _, _, _, _, _, _, _, _),
152562306a36Sopenharmony_ci	[136] = PINGROUP(136, uim1_present, tb_trig, _, _, _, _, _, _, _),
152662306a36Sopenharmony_ci	[137] = PINGROUP(137, uim0_data, _, _, _, _, _, _, _, _),
152762306a36Sopenharmony_ci	[138] = PINGROUP(138, uim0_clk, _, _, _, _, _, _, _, _),
152862306a36Sopenharmony_ci	[139] = PINGROUP(139, uim0_reset, _, _, _, _, _, _, _, _),
152962306a36Sopenharmony_ci	[140] = PINGROUP(140, uim0_present, _, _, _, _, _, _, _, _),
153062306a36Sopenharmony_ci	[141] = PINGROUP(141, _, mss_grfc0, _, _, _, _, _, _, _),
153162306a36Sopenharmony_ci	[142] = PINGROUP(142, _, mss_grfc1, _, _, _, _, _, _, _),
153262306a36Sopenharmony_ci	[143] = PINGROUP(143, _, mss_grfc2, _, _, _, _, _, _, _),
153362306a36Sopenharmony_ci	[144] = PINGROUP(144, _, mss_grfc3, _, _, _, _, _, _, _),
153462306a36Sopenharmony_ci	[145] = PINGROUP(145, _, mss_grfc4, _, _, _, _, _, _, _),
153562306a36Sopenharmony_ci	[146] = PINGROUP(146, _, mss_grfc5, _, _, _, _, _, _, _),
153662306a36Sopenharmony_ci	[147] = PINGROUP(147, _, mss_grfc6, _, _, _, _, _, _, _),
153762306a36Sopenharmony_ci	[148] = PINGROUP(148, _, mss_grfc7, _, _, _, _, _, _, _),
153862306a36Sopenharmony_ci	[149] = PINGROUP(149, _, mss_grfc8, _, _, _, _, _, _, _),
153962306a36Sopenharmony_ci	[150] = PINGROUP(150, _, mss_grfc9, _, _, _, _, _, _, _),
154062306a36Sopenharmony_ci	[151] = PINGROUP(151, coex_uart1, atest_usb, _, _, _, _, _, _, _),
154162306a36Sopenharmony_ci	[152] = PINGROUP(152, coex_uart1, atest_usb, _, _, _, _, _, _, _),
154262306a36Sopenharmony_ci	[153] = PINGROUP(153, coex_uart2, mss_grfc10, atest_usb, _, _, _, _, _, _),
154362306a36Sopenharmony_ci	[154] = PINGROUP(154, coex_uart2, mss_grfc11, atest_usb, _, _, _, _, _, _),
154462306a36Sopenharmony_ci	[155] = PINGROUP(155, nav_gpio, _, _, _, _, _, _, _, _),
154562306a36Sopenharmony_ci	[156] = PINGROUP(156, nav_gpio, _, _, _, _, _, _, _, _),
154662306a36Sopenharmony_ci	[157] = PINGROUP(157, mss_grfc12, pa_indicator, nav_gpio, _, _, _, _, _, _),
154762306a36Sopenharmony_ci	[158] = PINGROUP(158, mss_grfc0, atest_usb, _, _, _, _, _, _, _),
154862306a36Sopenharmony_ci	[159] = PINGROUP(159, qlink0_request, atest_usb, _, _, _, _, _, _, _),
154962306a36Sopenharmony_ci	[160] = PINGROUP(160, qlink0_enable, _, _, _, _, _, _, _, _),
155062306a36Sopenharmony_ci	[161] = PINGROUP(161, qlink0_wmss, atest_usb, _, _, _, _, _, _, _),
155162306a36Sopenharmony_ci	[162] = PINGROUP(162, qlink1_request, _, _, _, _, _, _, _, _),
155262306a36Sopenharmony_ci	[163] = PINGROUP(163, qlink1_enable, _, _, _, _, _, _, _, _),
155362306a36Sopenharmony_ci	[164] = PINGROUP(164, qlink1_wmss, _, _, _, _, _, _, _, _),
155462306a36Sopenharmony_ci	[165] = PINGROUP(165, qlink2_request, _, _, _, _, _, _, _, _),
155562306a36Sopenharmony_ci	[166] = PINGROUP(166, qlink2_enable, _, _, _, _, _, _, _, _),
155662306a36Sopenharmony_ci	[167] = PINGROUP(167, qlink2_wmss, _, _, _, _, _, _, _, _),
155762306a36Sopenharmony_ci	[168] = PINGROUP(168, _, _, _, _, _, _, _, _, _),
155862306a36Sopenharmony_ci	[169] = PINGROUP(169, _, _, _, _, _, _, _, _, _),
155962306a36Sopenharmony_ci	[170] = PINGROUP(170, _, _, _, _, _, _, _, _, _),
156062306a36Sopenharmony_ci	[171] = PINGROUP(171, _, _, _, _, _, _, _, _, _),
156162306a36Sopenharmony_ci	[172] = PINGROUP(172, _, _, _, _, _, _, _, _, _),
156262306a36Sopenharmony_ci	[173] = PINGROUP(173, _, _, _, _, _, _, _, _, _),
156362306a36Sopenharmony_ci	[174] = PINGROUP(174, cmu_rng, _, _, _, _, _, _, _, _),
156462306a36Sopenharmony_ci	[175] = PINGROUP(175, cmu_rng, _, _, _, _, _, _, _, _),
156562306a36Sopenharmony_ci	[176] = PINGROUP(176, cmu_rng, _, _, _, _, _, _, _, _),
156662306a36Sopenharmony_ci	[177] = PINGROUP(177, cmu_rng, _, _, _, _, _, _, _, _),
156762306a36Sopenharmony_ci	[178] = PINGROUP(178, _, _, _, _, _, _, _, _, _),
156862306a36Sopenharmony_ci	[179] = PINGROUP(179, _, _, _, _, _, _, _, _, _),
156962306a36Sopenharmony_ci	[180] = PINGROUP(180, _, _, _, _, _, _, _, _, _),
157062306a36Sopenharmony_ci	[181] = PINGROUP(181, _, _, _, _, _, _, _, _, _),
157162306a36Sopenharmony_ci	[182] = PINGROUP(182, _, _, _, _, _, _, _, _, _),
157262306a36Sopenharmony_ci	[183] = PINGROUP(183, cri_trng0, qdss_gpio, _, _, _, _, _, _, _),
157362306a36Sopenharmony_ci	[184] = PINGROUP(184, cri_trng1, qdss_gpio, _, _, _, _, _, _, _),
157462306a36Sopenharmony_ci	[185] = PINGROUP(185, prng_rosc, qdss_gpio, _, _, _, _, _, _, _),
157562306a36Sopenharmony_ci	[186] = PINGROUP(186, cri_trng, qdss_gpio, _, _, _, _, _, _, _),
157662306a36Sopenharmony_ci	[187] = PINGROUP(187, qdss_gpio, _, _, _, _, _, _, _, _),
157762306a36Sopenharmony_ci	[188] = PINGROUP(188, qdss_gpio, _, _, _, _, _, _, _, _),
157862306a36Sopenharmony_ci	[189] = PINGROUP(189, qdss_gpio, _, _, _, _, _, _, _, _),
157962306a36Sopenharmony_ci	[190] = PINGROUP(190, qdss_gpio, _, _, _, _, _, _, _, _),
158062306a36Sopenharmony_ci	[191] = PINGROUP(191, qdss_gpio, _, _, _, _, _, _, _, _),
158162306a36Sopenharmony_ci	[192] = PINGROUP(192, qdss_gpio, _, _, _, _, _, _, _, _),
158262306a36Sopenharmony_ci	[193] = PINGROUP(193, qdss_gpio, _, _, _, _, _, _, _, _),
158362306a36Sopenharmony_ci	[194] = PINGROUP(194, qdss_gpio, _, _, _, _, _, _, _, _),
158462306a36Sopenharmony_ci	[195] = PINGROUP(195, qdss_gpio, _, _, _, _, _, _, _, _),
158562306a36Sopenharmony_ci	[196] = PINGROUP(196, qdss_gpio, _, _, _, _, _, _, _, _),
158662306a36Sopenharmony_ci	[197] = PINGROUP(197, qdss_gpio, _, _, _, _, _, _, _, _),
158762306a36Sopenharmony_ci	[198] = PINGROUP(198, qdss_gpio, _, _, _, _, _, _, _, _),
158862306a36Sopenharmony_ci	[199] = PINGROUP(199, qdss_gpio, _, _, _, _, _, _, _, _),
158962306a36Sopenharmony_ci	[200] = PINGROUP(200, qdss_gpio, _, _, _, _, _, _, _, _),
159062306a36Sopenharmony_ci	[201] = PINGROUP(201, _, _, _, _, _, _, _, _, _),
159162306a36Sopenharmony_ci	[202] = PINGROUP(202, _, _, _, _, _, _, _, _, _),
159262306a36Sopenharmony_ci	[203] = UFS_RESET(ufs_reset, 0xd8000),
159362306a36Sopenharmony_ci	[204] = SDC_PINGROUP(sdc2_clk, 0xcf000, 14, 6),
159462306a36Sopenharmony_ci	[205] = SDC_PINGROUP(sdc2_cmd, 0xcf000, 11, 3),
159562306a36Sopenharmony_ci	[206] = SDC_PINGROUP(sdc2_data, 0xcf000, 9, 0),
159662306a36Sopenharmony_ci};
159762306a36Sopenharmony_ci
159862306a36Sopenharmony_cistatic const struct msm_gpio_wakeirq_map sm8350_pdc_map[] = {
159962306a36Sopenharmony_ci	{ 2, 117 }, { 7, 82 }, { 11, 83 }, { 14, 80 }, { 15, 146 },
160062306a36Sopenharmony_ci	{ 19, 121 }, { 23, 84 }, { 26, 86 }, { 27, 75 }, { 31, 85 },
160162306a36Sopenharmony_ci	{ 32, 97 }, { 34, 98 }, { 35, 131 }, { 36, 79 }, { 38, 99 },
160262306a36Sopenharmony_ci	{ 39, 92 }, { 40, 101 }, { 43, 137 }, { 44, 102 }, { 46, 96 },
160362306a36Sopenharmony_ci	{ 47, 93 }, { 50, 108 }, { 51, 127 }, { 55, 128 }, { 56, 81 },
160462306a36Sopenharmony_ci	{ 59, 112 }, { 60, 119 }, { 63, 73 }, { 67, 74 }, { 71, 134 },
160562306a36Sopenharmony_ci	{ 75, 103 }, { 79, 104 }, { 80, 126 }, { 81, 139 }, { 82, 140 },
160662306a36Sopenharmony_ci	{ 83, 141 }, { 84, 124 }, { 85, 109 }, { 86, 143 }, { 87, 138 },
160762306a36Sopenharmony_ci	{ 88, 122 }, { 89, 113 }, { 90, 114 }, { 91, 115 }, { 92, 76 },
160862306a36Sopenharmony_ci	{ 95, 147 }, { 96, 148 }, { 98, 149 }, { 99, 150 }, { 115, 125 },
160962306a36Sopenharmony_ci	{ 116, 106 }, { 117, 105 }, { 118, 116 }, { 119, 123 }, { 130, 145 },
161062306a36Sopenharmony_ci	{ 136, 72 }, { 140, 100 }, { 151, 110 }, { 153, 95 }, { 155, 107 },
161162306a36Sopenharmony_ci	{ 156, 94 }, { 157, 111 }, { 159, 118 }, { 162, 77 }, { 165, 78 },
161262306a36Sopenharmony_ci	{ 169, 70 }, { 172, 132 }, { 174, 87 }, { 175, 88 }, { 177, 89 },
161362306a36Sopenharmony_ci	{ 179, 120 }, { 180, 129 }, { 183, 90 }, { 185, 136 }, { 187, 142 },
161462306a36Sopenharmony_ci	{ 190, 144 }, { 198, 91 }, { 200, 133 }, { 202, 135 },
161562306a36Sopenharmony_ci};
161662306a36Sopenharmony_ci
161762306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data sm8350_tlmm = {
161862306a36Sopenharmony_ci	.pins = sm8350_pins,
161962306a36Sopenharmony_ci	.npins = ARRAY_SIZE(sm8350_pins),
162062306a36Sopenharmony_ci	.functions = sm8350_functions,
162162306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(sm8350_functions),
162262306a36Sopenharmony_ci	.groups = sm8350_groups,
162362306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(sm8350_groups),
162462306a36Sopenharmony_ci	.ngpios = 204,
162562306a36Sopenharmony_ci	.wakeirq_map = sm8350_pdc_map,
162662306a36Sopenharmony_ci	.nwakeirq_map = ARRAY_SIZE(sm8350_pdc_map),
162762306a36Sopenharmony_ci};
162862306a36Sopenharmony_ci
162962306a36Sopenharmony_cistatic int sm8350_tlmm_probe(struct platform_device *pdev)
163062306a36Sopenharmony_ci{
163162306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, &sm8350_tlmm);
163262306a36Sopenharmony_ci}
163362306a36Sopenharmony_ci
163462306a36Sopenharmony_cistatic const struct of_device_id sm8350_tlmm_of_match[] = {
163562306a36Sopenharmony_ci	{ .compatible = "qcom,sm8350-tlmm", },
163662306a36Sopenharmony_ci	{ },
163762306a36Sopenharmony_ci};
163862306a36Sopenharmony_ci
163962306a36Sopenharmony_cistatic struct platform_driver sm8350_tlmm_driver = {
164062306a36Sopenharmony_ci	.driver = {
164162306a36Sopenharmony_ci		.name = "sm8350-tlmm",
164262306a36Sopenharmony_ci		.of_match_table = sm8350_tlmm_of_match,
164362306a36Sopenharmony_ci	},
164462306a36Sopenharmony_ci	.probe = sm8350_tlmm_probe,
164562306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
164662306a36Sopenharmony_ci};
164762306a36Sopenharmony_ci
164862306a36Sopenharmony_cistatic int __init sm8350_tlmm_init(void)
164962306a36Sopenharmony_ci{
165062306a36Sopenharmony_ci	return platform_driver_register(&sm8350_tlmm_driver);
165162306a36Sopenharmony_ci}
165262306a36Sopenharmony_ciarch_initcall(sm8350_tlmm_init);
165362306a36Sopenharmony_ci
165462306a36Sopenharmony_cistatic void __exit sm8350_tlmm_exit(void)
165562306a36Sopenharmony_ci{
165662306a36Sopenharmony_ci	platform_driver_unregister(&sm8350_tlmm_driver);
165762306a36Sopenharmony_ci}
165862306a36Sopenharmony_cimodule_exit(sm8350_tlmm_exit);
165962306a36Sopenharmony_ci
166062306a36Sopenharmony_ciMODULE_DESCRIPTION("QTI SM8350 TLMM driver");
166162306a36Sopenharmony_ciMODULE_LICENSE("GPL v2");
166262306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, sm8350_tlmm_of_match);
1663