162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2021, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
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#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9)	\
1562306a36Sopenharmony_ci	{					        \
1662306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
1762306a36Sopenharmony_ci			gpio##id##_pins, 		\
1862306a36Sopenharmony_ci			ARRAY_SIZE(gpio##id##_pins)),	\
1962306a36Sopenharmony_ci		.funcs = (int[]){			\
2062306a36Sopenharmony_ci			msm_mux_gpio, /* gpio mode */	\
2162306a36Sopenharmony_ci			msm_mux_##f1,			\
2262306a36Sopenharmony_ci			msm_mux_##f2,			\
2362306a36Sopenharmony_ci			msm_mux_##f3,			\
2462306a36Sopenharmony_ci			msm_mux_##f4,			\
2562306a36Sopenharmony_ci			msm_mux_##f5,			\
2662306a36Sopenharmony_ci			msm_mux_##f6,			\
2762306a36Sopenharmony_ci			msm_mux_##f7,			\
2862306a36Sopenharmony_ci			msm_mux_##f8,			\
2962306a36Sopenharmony_ci			msm_mux_##f9			\
3062306a36Sopenharmony_ci		},				        \
3162306a36Sopenharmony_ci		.nfuncs = 10,				\
3262306a36Sopenharmony_ci		.ctl_reg = REG_SIZE * id,			\
3362306a36Sopenharmony_ci		.io_reg = 0x4 + REG_SIZE * id,		\
3462306a36Sopenharmony_ci		.intr_cfg_reg = 0x8 + REG_SIZE * id,		\
3562306a36Sopenharmony_ci		.intr_status_reg = 0xc + REG_SIZE * id,	\
3662306a36Sopenharmony_ci		.intr_target_reg = 0x8 + REG_SIZE * id,	\
3762306a36Sopenharmony_ci		.mux_bit = 2,			\
3862306a36Sopenharmony_ci		.pull_bit = 0,			\
3962306a36Sopenharmony_ci		.drv_bit = 6,			\
4062306a36Sopenharmony_ci		.oe_bit = 9,			\
4162306a36Sopenharmony_ci		.in_bit = 0,			\
4262306a36Sopenharmony_ci		.out_bit = 1,			\
4362306a36Sopenharmony_ci		.intr_enable_bit = 0,		\
4462306a36Sopenharmony_ci		.intr_status_bit = 0,		\
4562306a36Sopenharmony_ci		.intr_target_bit = 5,		\
4662306a36Sopenharmony_ci		.intr_target_kpss_val = 3,	\
4762306a36Sopenharmony_ci		.intr_raw_status_bit = 4,	\
4862306a36Sopenharmony_ci		.intr_polarity_bit = 1,		\
4962306a36Sopenharmony_ci		.intr_detection_bit = 2,	\
5062306a36Sopenharmony_ci		.intr_detection_width = 2,	\
5162306a36Sopenharmony_ci	}
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv)	\
5462306a36Sopenharmony_ci	{					        \
5562306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
5662306a36Sopenharmony_ci			pg_name##_pins, 		\
5762306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
5862306a36Sopenharmony_ci		.ctl_reg = ctl,				\
5962306a36Sopenharmony_ci		.io_reg = 0,				\
6062306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
6162306a36Sopenharmony_ci		.intr_status_reg = 0,			\
6262306a36Sopenharmony_ci		.intr_target_reg = 0,			\
6362306a36Sopenharmony_ci		.mux_bit = -1,				\
6462306a36Sopenharmony_ci		.pull_bit = pull,			\
6562306a36Sopenharmony_ci		.drv_bit = drv,				\
6662306a36Sopenharmony_ci		.oe_bit = -1,				\
6762306a36Sopenharmony_ci		.in_bit = -1,				\
6862306a36Sopenharmony_ci		.out_bit = -1,				\
6962306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
7062306a36Sopenharmony_ci		.intr_status_bit = -1,			\
7162306a36Sopenharmony_ci		.intr_target_bit = -1,			\
7262306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
7362306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
7462306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
7562306a36Sopenharmony_ci		.intr_detection_width = -1,		\
7662306a36Sopenharmony_ci	}
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ci#define UFS_RESET(pg_name, offset)				\
7962306a36Sopenharmony_ci	{					        \
8062306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
8162306a36Sopenharmony_ci			pg_name##_pins, 		\
8262306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
8362306a36Sopenharmony_ci		.ctl_reg = offset,			\
8462306a36Sopenharmony_ci		.io_reg = offset + 0x4,			\
8562306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
8662306a36Sopenharmony_ci		.intr_status_reg = 0,			\
8762306a36Sopenharmony_ci		.intr_target_reg = 0,			\
8862306a36Sopenharmony_ci		.mux_bit = -1,				\
8962306a36Sopenharmony_ci		.pull_bit = 3,				\
9062306a36Sopenharmony_ci		.drv_bit = 0,				\
9162306a36Sopenharmony_ci		.oe_bit = -1,				\
9262306a36Sopenharmony_ci		.in_bit = -1,				\
9362306a36Sopenharmony_ci		.out_bit = 0,				\
9462306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
9562306a36Sopenharmony_ci		.intr_status_bit = -1,			\
9662306a36Sopenharmony_ci		.intr_target_bit = -1,			\
9762306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
9862306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
9962306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
10062306a36Sopenharmony_ci		.intr_detection_width = -1,		\
10162306a36Sopenharmony_ci	}
10262306a36Sopenharmony_cistatic const struct pinctrl_pin_desc sm6350_pins[] = {
10362306a36Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
10462306a36Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
10562306a36Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
10662306a36Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
10762306a36Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
10862306a36Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
10962306a36Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
11062306a36Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
11162306a36Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
11262306a36Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
11362306a36Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
11462306a36Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
11562306a36Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
11662306a36Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
11762306a36Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
11862306a36Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
11962306a36Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
12062306a36Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
12162306a36Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
12262306a36Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
12362306a36Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
12462306a36Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
12562306a36Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
12662306a36Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
12762306a36Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
12862306a36Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
12962306a36Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
13062306a36Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
13162306a36Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
13262306a36Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
13362306a36Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
13462306a36Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
13562306a36Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
13662306a36Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
13762306a36Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
13862306a36Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
13962306a36Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
14062306a36Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
14162306a36Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
14262306a36Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
14362306a36Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
14462306a36Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
14562306a36Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
14662306a36Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
14762306a36Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
14862306a36Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
14962306a36Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
15062306a36Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
15162306a36Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
15262306a36Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
15362306a36Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
15462306a36Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
15562306a36Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
15662306a36Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
15762306a36Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
15862306a36Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
15962306a36Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
16062306a36Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
16162306a36Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
16262306a36Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
16362306a36Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
16462306a36Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
16562306a36Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
16662306a36Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
16762306a36Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
16862306a36Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
16962306a36Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
17062306a36Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
17162306a36Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
17262306a36Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
17362306a36Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
17462306a36Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
17562306a36Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
17662306a36Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
17762306a36Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
17862306a36Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
17962306a36Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
18062306a36Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
18162306a36Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
18262306a36Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
18362306a36Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
18462306a36Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
18562306a36Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
18662306a36Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
18762306a36Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
18862306a36Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
18962306a36Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
19062306a36Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
19162306a36Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
19262306a36Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
19362306a36Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
19462306a36Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
19562306a36Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
19662306a36Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
19762306a36Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
19862306a36Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
19962306a36Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
20062306a36Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
20162306a36Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
20262306a36Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
20362306a36Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
20462306a36Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
20562306a36Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
20662306a36Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
20762306a36Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
20862306a36Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
20962306a36Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
21062306a36Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
21162306a36Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
21262306a36Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
21362306a36Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
21462306a36Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
21562306a36Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
21662306a36Sopenharmony_ci	PINCTRL_PIN(113, "GPIO_113"),
21762306a36Sopenharmony_ci	PINCTRL_PIN(114, "GPIO_114"),
21862306a36Sopenharmony_ci	PINCTRL_PIN(115, "GPIO_115"),
21962306a36Sopenharmony_ci	PINCTRL_PIN(116, "GPIO_116"),
22062306a36Sopenharmony_ci	PINCTRL_PIN(117, "GPIO_117"),
22162306a36Sopenharmony_ci	PINCTRL_PIN(118, "GPIO_118"),
22262306a36Sopenharmony_ci	PINCTRL_PIN(119, "GPIO_119"),
22362306a36Sopenharmony_ci	PINCTRL_PIN(120, "GPIO_120"),
22462306a36Sopenharmony_ci	PINCTRL_PIN(121, "GPIO_121"),
22562306a36Sopenharmony_ci	PINCTRL_PIN(122, "GPIO_122"),
22662306a36Sopenharmony_ci	PINCTRL_PIN(123, "GPIO_123"),
22762306a36Sopenharmony_ci	PINCTRL_PIN(124, "GPIO_124"),
22862306a36Sopenharmony_ci	PINCTRL_PIN(125, "GPIO_125"),
22962306a36Sopenharmony_ci	PINCTRL_PIN(126, "GPIO_126"),
23062306a36Sopenharmony_ci	PINCTRL_PIN(127, "GPIO_127"),
23162306a36Sopenharmony_ci	PINCTRL_PIN(128, "GPIO_128"),
23262306a36Sopenharmony_ci	PINCTRL_PIN(129, "GPIO_129"),
23362306a36Sopenharmony_ci	PINCTRL_PIN(130, "GPIO_130"),
23462306a36Sopenharmony_ci	PINCTRL_PIN(131, "GPIO_131"),
23562306a36Sopenharmony_ci	PINCTRL_PIN(132, "GPIO_132"),
23662306a36Sopenharmony_ci	PINCTRL_PIN(133, "GPIO_133"),
23762306a36Sopenharmony_ci	PINCTRL_PIN(134, "GPIO_134"),
23862306a36Sopenharmony_ci	PINCTRL_PIN(135, "GPIO_135"),
23962306a36Sopenharmony_ci	PINCTRL_PIN(136, "GPIO_136"),
24062306a36Sopenharmony_ci	PINCTRL_PIN(137, "GPIO_137"),
24162306a36Sopenharmony_ci	PINCTRL_PIN(138, "GPIO_138"),
24262306a36Sopenharmony_ci	PINCTRL_PIN(139, "GPIO_139"),
24362306a36Sopenharmony_ci	PINCTRL_PIN(140, "GPIO_140"),
24462306a36Sopenharmony_ci	PINCTRL_PIN(141, "GPIO_141"),
24562306a36Sopenharmony_ci	PINCTRL_PIN(142, "GPIO_142"),
24662306a36Sopenharmony_ci	PINCTRL_PIN(143, "GPIO_143"),
24762306a36Sopenharmony_ci	PINCTRL_PIN(144, "GPIO_144"),
24862306a36Sopenharmony_ci	PINCTRL_PIN(145, "GPIO_145"),
24962306a36Sopenharmony_ci	PINCTRL_PIN(146, "GPIO_146"),
25062306a36Sopenharmony_ci	PINCTRL_PIN(147, "GPIO_147"),
25162306a36Sopenharmony_ci	PINCTRL_PIN(148, "GPIO_148"),
25262306a36Sopenharmony_ci	PINCTRL_PIN(149, "GPIO_149"),
25362306a36Sopenharmony_ci	PINCTRL_PIN(150, "GPIO_150"),
25462306a36Sopenharmony_ci	PINCTRL_PIN(151, "GPIO_151"),
25562306a36Sopenharmony_ci	PINCTRL_PIN(152, "GPIO_152"),
25662306a36Sopenharmony_ci	PINCTRL_PIN(153, "GPIO_153"),
25762306a36Sopenharmony_ci	PINCTRL_PIN(154, "GPIO_154"),
25862306a36Sopenharmony_ci	PINCTRL_PIN(155, "GPIO_155"),
25962306a36Sopenharmony_ci	PINCTRL_PIN(156, "UFS_RESET"),
26062306a36Sopenharmony_ci	PINCTRL_PIN(157, "SDC1_RCLK"),
26162306a36Sopenharmony_ci	PINCTRL_PIN(158, "SDC1_CLK"),
26262306a36Sopenharmony_ci	PINCTRL_PIN(159, "SDC1_CMD"),
26362306a36Sopenharmony_ci	PINCTRL_PIN(160, "SDC1_DATA"),
26462306a36Sopenharmony_ci	PINCTRL_PIN(161, "SDC2_CLK"),
26562306a36Sopenharmony_ci	PINCTRL_PIN(162, "SDC2_CMD"),
26662306a36Sopenharmony_ci	PINCTRL_PIN(163, "SDC2_DATA"),
26762306a36Sopenharmony_ci};
26862306a36Sopenharmony_ci
26962306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \
27062306a36Sopenharmony_ci	static const unsigned int gpio##pin##_pins[] = { pin }
27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0);
27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1);
27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2);
27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3);
27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4);
27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5);
27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6);
27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7);
27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8);
28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9);
28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10);
28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11);
28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12);
28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13);
28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14);
28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15);
28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16);
28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17);
28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18);
29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19);
29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20);
29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21);
29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22);
29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23);
29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24);
29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25);
29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26);
29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27);
29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28);
30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29);
30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30);
30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31);
30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32);
30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33);
30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34);
30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35);
30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36);
30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37);
30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38);
31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39);
31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40);
31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41);
31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42);
31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43);
31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44);
31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45);
31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46);
31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47);
31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48);
32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49);
32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50);
32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51);
32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52);
32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53);
32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54);
32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55);
32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56);
32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57);
32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58);
33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59);
33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60);
33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61);
33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62);
33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63);
33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64);
33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65);
33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66);
33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67);
33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68);
34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69);
34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70);
34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71);
34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72);
34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73);
34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74);
34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75);
34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76);
34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77);
34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78);
35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79);
35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80);
35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81);
35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82);
35462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83);
35562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84);
35662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85);
35762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86);
35862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87);
35962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88);
36062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89);
36162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90);
36262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91);
36362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92);
36462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93);
36562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94);
36662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95);
36762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96);
36862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97);
36962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98);
37062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99);
37162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100);
37262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101);
37362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102);
37462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103);
37562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104);
37662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105);
37762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106);
37862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107);
37962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108);
38062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109);
38162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110);
38262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111);
38362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112);
38462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113);
38562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114);
38662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115);
38762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116);
38862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117);
38962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118);
39062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119);
39162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120);
39262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121);
39362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122);
39462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123);
39562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124);
39662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125);
39762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126);
39862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127);
39962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128);
40062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129);
40162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130);
40262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131);
40362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132);
40462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133);
40562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134);
40662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135);
40762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136);
40862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137);
40962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138);
41062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139);
41162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140);
41262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141);
41362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142);
41462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143);
41562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144);
41662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145);
41762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(146);
41862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(147);
41962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(148);
42062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(149);
42162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(150);
42262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(151);
42362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(152);
42462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(153);
42562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(154);
42662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(155);
42762306a36Sopenharmony_ci
42862306a36Sopenharmony_cistatic const unsigned int ufs_reset_pins[] = { 156 };
42962306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 157 };
43062306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 158 };
43162306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 159 };
43262306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 160 };
43362306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 161 };
43462306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 162 };
43562306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 163 };
43662306a36Sopenharmony_ci
43762306a36Sopenharmony_cienum sm6350_functions {
43862306a36Sopenharmony_ci	msm_mux_adsp_ext,
43962306a36Sopenharmony_ci	msm_mux_agera_pll,
44062306a36Sopenharmony_ci	msm_mux_atest_char,
44162306a36Sopenharmony_ci	msm_mux_atest_char0,
44262306a36Sopenharmony_ci	msm_mux_atest_char1,
44362306a36Sopenharmony_ci	msm_mux_atest_char2,
44462306a36Sopenharmony_ci	msm_mux_atest_char3,
44562306a36Sopenharmony_ci	msm_mux_atest_tsens,
44662306a36Sopenharmony_ci	msm_mux_atest_tsens2,
44762306a36Sopenharmony_ci	msm_mux_atest_usb,
44862306a36Sopenharmony_ci	msm_mux_audio_ref,
44962306a36Sopenharmony_ci	msm_mux_btfm_slimbus,
45062306a36Sopenharmony_ci	msm_mux_cam_mclk0,
45162306a36Sopenharmony_ci	msm_mux_cam_mclk1,
45262306a36Sopenharmony_ci	msm_mux_cam_mclk2,
45362306a36Sopenharmony_ci	msm_mux_cam_mclk3,
45462306a36Sopenharmony_ci	msm_mux_cam_mclk4,
45562306a36Sopenharmony_ci	msm_mux_cci_async,
45662306a36Sopenharmony_ci	msm_mux_cci_i2c,
45762306a36Sopenharmony_ci	msm_mux_cci_timer0,
45862306a36Sopenharmony_ci	msm_mux_cci_timer1,
45962306a36Sopenharmony_ci	msm_mux_cci_timer2,
46062306a36Sopenharmony_ci	msm_mux_cci_timer3,
46162306a36Sopenharmony_ci	msm_mux_cci_timer4,
46262306a36Sopenharmony_ci	msm_mux_cri_trng,
46362306a36Sopenharmony_ci	msm_mux_dbg_out,
46462306a36Sopenharmony_ci	msm_mux_ddr_bist,
46562306a36Sopenharmony_ci	msm_mux_ddr_pxi0,
46662306a36Sopenharmony_ci	msm_mux_ddr_pxi1,
46762306a36Sopenharmony_ci	msm_mux_ddr_pxi2,
46862306a36Sopenharmony_ci	msm_mux_ddr_pxi3,
46962306a36Sopenharmony_ci	msm_mux_dp_hot,
47062306a36Sopenharmony_ci	msm_mux_edp_lcd,
47162306a36Sopenharmony_ci	msm_mux_gcc_gp1,
47262306a36Sopenharmony_ci	msm_mux_gcc_gp2,
47362306a36Sopenharmony_ci	msm_mux_gcc_gp3,
47462306a36Sopenharmony_ci	msm_mux_gp_pdm0,
47562306a36Sopenharmony_ci	msm_mux_gp_pdm1,
47662306a36Sopenharmony_ci	msm_mux_gp_pdm2,
47762306a36Sopenharmony_ci	msm_mux_gpio,
47862306a36Sopenharmony_ci	msm_mux_gps_tx,
47962306a36Sopenharmony_ci	msm_mux_ibi_i3c,
48062306a36Sopenharmony_ci	msm_mux_jitter_bist,
48162306a36Sopenharmony_ci	msm_mux_ldo_en,
48262306a36Sopenharmony_ci	msm_mux_ldo_update,
48362306a36Sopenharmony_ci	msm_mux_lpass_ext,
48462306a36Sopenharmony_ci	msm_mux_m_voc,
48562306a36Sopenharmony_ci	msm_mux_mclk,
48662306a36Sopenharmony_ci	msm_mux_mdp_vsync,
48762306a36Sopenharmony_ci	msm_mux_mdp_vsync0,
48862306a36Sopenharmony_ci	msm_mux_mdp_vsync1,
48962306a36Sopenharmony_ci	msm_mux_mdp_vsync2,
49062306a36Sopenharmony_ci	msm_mux_mdp_vsync3,
49162306a36Sopenharmony_ci	msm_mux_mi2s_0,
49262306a36Sopenharmony_ci	msm_mux_mi2s_1,
49362306a36Sopenharmony_ci	msm_mux_mi2s_2,
49462306a36Sopenharmony_ci	msm_mux_mss_lte,
49562306a36Sopenharmony_ci	msm_mux_nav_gpio,
49662306a36Sopenharmony_ci	msm_mux_nav_pps,
49762306a36Sopenharmony_ci	msm_mux_pa_indicator,
49862306a36Sopenharmony_ci	msm_mux_pcie0_clk,
49962306a36Sopenharmony_ci	msm_mux_phase_flag,
50062306a36Sopenharmony_ci	msm_mux_pll_bist,
50162306a36Sopenharmony_ci	msm_mux_pll_bypassnl,
50262306a36Sopenharmony_ci	msm_mux_pll_reset,
50362306a36Sopenharmony_ci	msm_mux_prng_rosc,
50462306a36Sopenharmony_ci	msm_mux_qdss_cti,
50562306a36Sopenharmony_ci	msm_mux_qdss_gpio,
50662306a36Sopenharmony_ci	msm_mux_qdss_gpio0,
50762306a36Sopenharmony_ci	msm_mux_qdss_gpio1,
50862306a36Sopenharmony_ci	msm_mux_qdss_gpio10,
50962306a36Sopenharmony_ci	msm_mux_qdss_gpio11,
51062306a36Sopenharmony_ci	msm_mux_qdss_gpio12,
51162306a36Sopenharmony_ci	msm_mux_qdss_gpio13,
51262306a36Sopenharmony_ci	msm_mux_qdss_gpio14,
51362306a36Sopenharmony_ci	msm_mux_qdss_gpio15,
51462306a36Sopenharmony_ci	msm_mux_qdss_gpio2,
51562306a36Sopenharmony_ci	msm_mux_qdss_gpio3,
51662306a36Sopenharmony_ci	msm_mux_qdss_gpio4,
51762306a36Sopenharmony_ci	msm_mux_qdss_gpio5,
51862306a36Sopenharmony_ci	msm_mux_qdss_gpio6,
51962306a36Sopenharmony_ci	msm_mux_qdss_gpio7,
52062306a36Sopenharmony_ci	msm_mux_qdss_gpio8,
52162306a36Sopenharmony_ci	msm_mux_qdss_gpio9,
52262306a36Sopenharmony_ci	msm_mux_qlink0_enable,
52362306a36Sopenharmony_ci	msm_mux_qlink0_request,
52462306a36Sopenharmony_ci	msm_mux_qlink0_wmss,
52562306a36Sopenharmony_ci	msm_mux_qlink1_enable,
52662306a36Sopenharmony_ci	msm_mux_qlink1_request,
52762306a36Sopenharmony_ci	msm_mux_qlink1_wmss,
52862306a36Sopenharmony_ci	msm_mux_qup00,
52962306a36Sopenharmony_ci	msm_mux_qup01,
53062306a36Sopenharmony_ci	msm_mux_qup02,
53162306a36Sopenharmony_ci	msm_mux_qup10,
53262306a36Sopenharmony_ci	msm_mux_qup11,
53362306a36Sopenharmony_ci	msm_mux_qup12,
53462306a36Sopenharmony_ci	msm_mux_qup13_f1,
53562306a36Sopenharmony_ci	msm_mux_qup13_f2,
53662306a36Sopenharmony_ci	msm_mux_qup14,
53762306a36Sopenharmony_ci	msm_mux_rffe0_clk,
53862306a36Sopenharmony_ci	msm_mux_rffe0_data,
53962306a36Sopenharmony_ci	msm_mux_rffe1_clk,
54062306a36Sopenharmony_ci	msm_mux_rffe1_data,
54162306a36Sopenharmony_ci	msm_mux_rffe2_clk,
54262306a36Sopenharmony_ci	msm_mux_rffe2_data,
54362306a36Sopenharmony_ci	msm_mux_rffe3_clk,
54462306a36Sopenharmony_ci	msm_mux_rffe3_data,
54562306a36Sopenharmony_ci	msm_mux_rffe4_clk,
54662306a36Sopenharmony_ci	msm_mux_rffe4_data,
54762306a36Sopenharmony_ci	msm_mux_sd_write,
54862306a36Sopenharmony_ci	msm_mux_sdc1_tb,
54962306a36Sopenharmony_ci	msm_mux_sdc2_tb,
55062306a36Sopenharmony_ci	msm_mux_sp_cmu,
55162306a36Sopenharmony_ci	msm_mux_tgu_ch0,
55262306a36Sopenharmony_ci	msm_mux_tgu_ch1,
55362306a36Sopenharmony_ci	msm_mux_tgu_ch2,
55462306a36Sopenharmony_ci	msm_mux_tgu_ch3,
55562306a36Sopenharmony_ci	msm_mux_tsense_pwm1,
55662306a36Sopenharmony_ci	msm_mux_tsense_pwm2,
55762306a36Sopenharmony_ci	msm_mux_uim1_clk,
55862306a36Sopenharmony_ci	msm_mux_uim1_data,
55962306a36Sopenharmony_ci	msm_mux_uim1_present,
56062306a36Sopenharmony_ci	msm_mux_uim1_reset,
56162306a36Sopenharmony_ci	msm_mux_uim2_clk,
56262306a36Sopenharmony_ci	msm_mux_uim2_data,
56362306a36Sopenharmony_ci	msm_mux_uim2_present,
56462306a36Sopenharmony_ci	msm_mux_uim2_reset,
56562306a36Sopenharmony_ci	msm_mux_usb_phy,
56662306a36Sopenharmony_ci	msm_mux_vfr_1,
56762306a36Sopenharmony_ci	msm_mux_vsense_trigger,
56862306a36Sopenharmony_ci	msm_mux_wlan1_adc0,
56962306a36Sopenharmony_ci	msm_mux_wlan1_adc1,
57062306a36Sopenharmony_ci	msm_mux_wlan2_adc0,
57162306a36Sopenharmony_ci	msm_mux_wlan2_adc1,
57262306a36Sopenharmony_ci	msm_mux__,
57362306a36Sopenharmony_ci};
57462306a36Sopenharmony_ci
57562306a36Sopenharmony_cistatic const char * const ibi_i3c_groups[] = {
57662306a36Sopenharmony_ci	"gpio0", "gpio1",
57762306a36Sopenharmony_ci};
57862306a36Sopenharmony_cistatic const char * const gpio_groups[] = {
57962306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
58062306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
58162306a36Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
58262306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
58362306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
58462306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
58562306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
58662306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
58762306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
58862306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
58962306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
59062306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
59162306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
59262306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
59362306a36Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
59462306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
59562306a36Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
59662306a36Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
59762306a36Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
59862306a36Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
59962306a36Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
60062306a36Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
60162306a36Sopenharmony_ci	"gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
60262306a36Sopenharmony_ci	"gpio153", "gpio154", "gpio155",
60362306a36Sopenharmony_ci};
60462306a36Sopenharmony_cistatic const char * const cri_trng_groups[] = {
60562306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2",
60662306a36Sopenharmony_ci};
60762306a36Sopenharmony_cistatic const char * const qup00_groups[] = {
60862306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
60962306a36Sopenharmony_ci};
61062306a36Sopenharmony_cistatic const char * const cci_i2c_groups[] = {
61162306a36Sopenharmony_ci	"gpio2", "gpio3", "gpio39", "gpio40", "gpio41", "gpio42", "gpio43",
61262306a36Sopenharmony_ci	"gpio44",
61362306a36Sopenharmony_ci};
61462306a36Sopenharmony_cistatic const char * const qdss_cti_groups[] = {
61562306a36Sopenharmony_ci	"gpio2", "gpio3", "gpio6", "gpio7", "gpio61", "gpio62", "gpio86",
61662306a36Sopenharmony_ci	"gpio87",
61762306a36Sopenharmony_ci};
61862306a36Sopenharmony_cistatic const char * const sp_cmu_groups[] = {
61962306a36Sopenharmony_ci	"gpio3",
62062306a36Sopenharmony_ci};
62162306a36Sopenharmony_cistatic const char * const dbg_out_groups[] = {
62262306a36Sopenharmony_ci	"gpio3",
62362306a36Sopenharmony_ci};
62462306a36Sopenharmony_cistatic const char * const qup14_groups[] = {
62562306a36Sopenharmony_ci	"gpio4", "gpio4", "gpio5", "gpio5",
62662306a36Sopenharmony_ci};
62762306a36Sopenharmony_cistatic const char * const sdc1_tb_groups[] = {
62862306a36Sopenharmony_ci	"gpio4",
62962306a36Sopenharmony_ci};
63062306a36Sopenharmony_cistatic const char * const sdc2_tb_groups[] = {
63162306a36Sopenharmony_ci	"gpio5",
63262306a36Sopenharmony_ci};
63362306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
63462306a36Sopenharmony_ci	"gpio6", "gpio23", "gpio24", "gpio27", "gpio28",
63562306a36Sopenharmony_ci};
63662306a36Sopenharmony_cistatic const char * const gp_pdm1_groups[] = {
63762306a36Sopenharmony_ci	"gpio8", "gpio52",
63862306a36Sopenharmony_ci};
63962306a36Sopenharmony_cistatic const char * const qdss_gpio_groups[] = {
64062306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio63", "gpio64",
64162306a36Sopenharmony_ci};
64262306a36Sopenharmony_cistatic const char * const m_voc_groups[] = {
64362306a36Sopenharmony_ci	"gpio12",
64462306a36Sopenharmony_ci};
64562306a36Sopenharmony_cistatic const char * const dp_hot_groups[] = {
64662306a36Sopenharmony_ci	"gpio12", "gpio118",
64762306a36Sopenharmony_ci};
64862306a36Sopenharmony_cistatic const char * const phase_flag_groups[] = {
64962306a36Sopenharmony_ci	"gpio12", "gpio17", "gpio18", "gpio34", "gpio35",
65062306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40",
65162306a36Sopenharmony_ci	"gpio41", "gpio42", "gpio43", "gpio44", "gpio45",
65262306a36Sopenharmony_ci	"gpio46", "gpio47", "gpio48", "gpio49", "gpio50",
65362306a36Sopenharmony_ci	"gpio51", "gpio52", "gpio53", "gpio56", "gpio57",
65462306a36Sopenharmony_ci	"gpio60", "gpio61", "gpio62", "gpio63", "gpio64",
65562306a36Sopenharmony_ci	"gpio67", "gpio68",
65662306a36Sopenharmony_ci};
65762306a36Sopenharmony_cistatic const char * const qup10_groups[] = {
65862306a36Sopenharmony_ci	"gpio13", "gpio14", "gpio15", "gpio16", "gpio17",
65962306a36Sopenharmony_ci};
66062306a36Sopenharmony_cistatic const char * const pll_bypassnl_groups[] = {
66162306a36Sopenharmony_ci	"gpio13",
66262306a36Sopenharmony_ci};
66362306a36Sopenharmony_cistatic const char * const pll_reset_groups[] = {
66462306a36Sopenharmony_ci	"gpio14",
66562306a36Sopenharmony_ci};
66662306a36Sopenharmony_cistatic const char * const qup12_groups[] = {
66762306a36Sopenharmony_ci	"gpio19", "gpio19", "gpio20", "gpio20",
66862306a36Sopenharmony_ci};
66962306a36Sopenharmony_cistatic const char * const ddr_bist_groups[] = {
67062306a36Sopenharmony_ci	"gpio19", "gpio20", "gpio21", "gpio22",
67162306a36Sopenharmony_ci};
67262306a36Sopenharmony_cistatic const char * const gcc_gp2_groups[] = {
67362306a36Sopenharmony_ci	"gpio21",
67462306a36Sopenharmony_ci};
67562306a36Sopenharmony_cistatic const char * const gcc_gp3_groups[] = {
67662306a36Sopenharmony_ci	"gpio22",
67762306a36Sopenharmony_ci};
67862306a36Sopenharmony_cistatic const char * const edp_lcd_groups[] = {
67962306a36Sopenharmony_ci	"gpio23",
68062306a36Sopenharmony_ci};
68162306a36Sopenharmony_cistatic const char * const qup13_f1_groups[] = {
68262306a36Sopenharmony_ci	"gpio25", "gpio26",
68362306a36Sopenharmony_ci};
68462306a36Sopenharmony_cistatic const char * const qup13_f2_groups[] = {
68562306a36Sopenharmony_ci	"gpio25", "gpio26",
68662306a36Sopenharmony_ci};
68762306a36Sopenharmony_cistatic const char * const qup11_groups[] = {
68862306a36Sopenharmony_ci	"gpio27", "gpio27", "gpio28", "gpio28",
68962306a36Sopenharmony_ci};
69062306a36Sopenharmony_cistatic const char * const pll_bist_groups[] = {
69162306a36Sopenharmony_ci	"gpio27",
69262306a36Sopenharmony_ci};
69362306a36Sopenharmony_cistatic const char * const qdss_gpio14_groups[] = {
69462306a36Sopenharmony_ci	"gpio27", "gpio36",
69562306a36Sopenharmony_ci};
69662306a36Sopenharmony_cistatic const char * const qdss_gpio15_groups[] = {
69762306a36Sopenharmony_ci	"gpio28", "gpio37",
69862306a36Sopenharmony_ci};
69962306a36Sopenharmony_cistatic const char * const cam_mclk0_groups[] = {
70062306a36Sopenharmony_ci	"gpio29",
70162306a36Sopenharmony_ci};
70262306a36Sopenharmony_cistatic const char * const cam_mclk1_groups[] = {
70362306a36Sopenharmony_ci	"gpio30",
70462306a36Sopenharmony_ci};
70562306a36Sopenharmony_cistatic const char * const cam_mclk2_groups[] = {
70662306a36Sopenharmony_ci	"gpio31",
70762306a36Sopenharmony_ci};
70862306a36Sopenharmony_cistatic const char * const cam_mclk3_groups[] = {
70962306a36Sopenharmony_ci	"gpio32",
71062306a36Sopenharmony_ci};
71162306a36Sopenharmony_cistatic const char * const cam_mclk4_groups[] = {
71262306a36Sopenharmony_ci	"gpio33",
71362306a36Sopenharmony_ci};
71462306a36Sopenharmony_cistatic const char * const cci_timer0_groups[] = {
71562306a36Sopenharmony_ci	"gpio34",
71662306a36Sopenharmony_ci};
71762306a36Sopenharmony_cistatic const char * const qdss_gpio12_groups[] = {
71862306a36Sopenharmony_ci	"gpio34", "gpio52",
71962306a36Sopenharmony_ci};
72062306a36Sopenharmony_cistatic const char * const cci_timer1_groups[] = {
72162306a36Sopenharmony_ci	"gpio35",
72262306a36Sopenharmony_ci};
72362306a36Sopenharmony_cistatic const char * const cci_async_groups[] = {
72462306a36Sopenharmony_ci	"gpio35", "gpio36", "gpio48", "gpio52", "gpio53",
72562306a36Sopenharmony_ci};
72662306a36Sopenharmony_cistatic const char * const qdss_gpio13_groups[] = {
72762306a36Sopenharmony_ci	"gpio35", "gpio53",
72862306a36Sopenharmony_ci};
72962306a36Sopenharmony_cistatic const char * const cci_timer2_groups[] = {
73062306a36Sopenharmony_ci	"gpio36",
73162306a36Sopenharmony_ci};
73262306a36Sopenharmony_cistatic const char * const cci_timer3_groups[] = {
73362306a36Sopenharmony_ci	"gpio37",
73462306a36Sopenharmony_ci};
73562306a36Sopenharmony_cistatic const char * const gp_pdm0_groups[] = {
73662306a36Sopenharmony_ci	"gpio37", "gpio68",
73762306a36Sopenharmony_ci};
73862306a36Sopenharmony_cistatic const char * const cci_timer4_groups[] = {
73962306a36Sopenharmony_ci	"gpio38",
74062306a36Sopenharmony_ci};
74162306a36Sopenharmony_cistatic const char * const qdss_gpio2_groups[] = {
74262306a36Sopenharmony_ci	"gpio38", "gpio41",
74362306a36Sopenharmony_ci};
74462306a36Sopenharmony_cistatic const char * const qdss_gpio0_groups[] = {
74562306a36Sopenharmony_ci	"gpio39", "gpio65",
74662306a36Sopenharmony_ci};
74762306a36Sopenharmony_cistatic const char * const qdss_gpio1_groups[] = {
74862306a36Sopenharmony_ci	"gpio40", "gpio66",
74962306a36Sopenharmony_ci};
75062306a36Sopenharmony_cistatic const char * const qdss_gpio3_groups[] = {
75162306a36Sopenharmony_ci	"gpio42", "gpio47",
75262306a36Sopenharmony_ci};
75362306a36Sopenharmony_cistatic const char * const qdss_gpio4_groups[] = {
75462306a36Sopenharmony_ci	"gpio43", "gpio88",
75562306a36Sopenharmony_ci};
75662306a36Sopenharmony_cistatic const char * const qdss_gpio5_groups[] = {
75762306a36Sopenharmony_ci	"gpio44", "gpio89",
75862306a36Sopenharmony_ci};
75962306a36Sopenharmony_cistatic const char * const qup02_groups[] = {
76062306a36Sopenharmony_ci	"gpio45", "gpio46", "gpio48", "gpio56", "gpio57",
76162306a36Sopenharmony_ci};
76262306a36Sopenharmony_cistatic const char * const qdss_gpio6_groups[] = {
76362306a36Sopenharmony_ci	"gpio45", "gpio90",
76462306a36Sopenharmony_ci};
76562306a36Sopenharmony_cistatic const char * const qdss_gpio7_groups[] = {
76662306a36Sopenharmony_ci	"gpio46", "gpio91",
76762306a36Sopenharmony_ci};
76862306a36Sopenharmony_cistatic const char * const mdp_vsync0_groups[] = {
76962306a36Sopenharmony_ci	"gpio47",
77062306a36Sopenharmony_ci};
77162306a36Sopenharmony_cistatic const char * const mdp_vsync1_groups[] = {
77262306a36Sopenharmony_ci	"gpio48",
77362306a36Sopenharmony_ci};
77462306a36Sopenharmony_cistatic const char * const gcc_gp1_groups[] = {
77562306a36Sopenharmony_ci	"gpio48", "gpio58",
77662306a36Sopenharmony_ci};
77762306a36Sopenharmony_cistatic const char * const qdss_gpio8_groups[] = {
77862306a36Sopenharmony_ci	"gpio48", "gpio92",
77962306a36Sopenharmony_ci};
78062306a36Sopenharmony_cistatic const char * const vfr_1_groups[] = {
78162306a36Sopenharmony_ci	"gpio49",
78262306a36Sopenharmony_ci};
78362306a36Sopenharmony_cistatic const char * const qdss_gpio9_groups[] = {
78462306a36Sopenharmony_ci	"gpio49", "gpio93",
78562306a36Sopenharmony_ci};
78662306a36Sopenharmony_cistatic const char * const qdss_gpio10_groups[] = {
78762306a36Sopenharmony_ci	"gpio50", "gpio56",
78862306a36Sopenharmony_ci};
78962306a36Sopenharmony_cistatic const char * const qdss_gpio11_groups[] = {
79062306a36Sopenharmony_ci	"gpio51", "gpio57",
79162306a36Sopenharmony_ci};
79262306a36Sopenharmony_cistatic const char * const mdp_vsync2_groups[] = {
79362306a36Sopenharmony_ci	"gpio56",
79462306a36Sopenharmony_ci};
79562306a36Sopenharmony_cistatic const char * const mdp_vsync3_groups[] = {
79662306a36Sopenharmony_ci	"gpio57",
79762306a36Sopenharmony_ci};
79862306a36Sopenharmony_cistatic const char * const gp_pdm2_groups[] = {
79962306a36Sopenharmony_ci	"gpio57",
80062306a36Sopenharmony_ci};
80162306a36Sopenharmony_cistatic const char * const audio_ref_groups[] = {
80262306a36Sopenharmony_ci	"gpio60",
80362306a36Sopenharmony_ci};
80462306a36Sopenharmony_cistatic const char * const lpass_ext_groups[] = {
80562306a36Sopenharmony_ci	"gpio60", "gpio93",
80662306a36Sopenharmony_ci};
80762306a36Sopenharmony_cistatic const char * const mi2s_2_groups[] = {
80862306a36Sopenharmony_ci	"gpio60", "gpio72", "gpio73", "gpio74",
80962306a36Sopenharmony_ci};
81062306a36Sopenharmony_cistatic const char * const qup01_groups[] = {
81162306a36Sopenharmony_ci	"gpio61", "gpio62", "gpio63", "gpio64",
81262306a36Sopenharmony_ci};
81362306a36Sopenharmony_cistatic const char * const tgu_ch0_groups[] = {
81462306a36Sopenharmony_ci	"gpio61",
81562306a36Sopenharmony_ci};
81662306a36Sopenharmony_cistatic const char * const tgu_ch1_groups[] = {
81762306a36Sopenharmony_ci	"gpio62",
81862306a36Sopenharmony_ci};
81962306a36Sopenharmony_cistatic const char * const tgu_ch2_groups[] = {
82062306a36Sopenharmony_ci	"gpio63",
82162306a36Sopenharmony_ci};
82262306a36Sopenharmony_cistatic const char * const tgu_ch3_groups[] = {
82362306a36Sopenharmony_ci	"gpio64",
82462306a36Sopenharmony_ci};
82562306a36Sopenharmony_cistatic const char * const mss_lte_groups[] = {
82662306a36Sopenharmony_ci	"gpio65", "gpio66",
82762306a36Sopenharmony_ci};
82862306a36Sopenharmony_cistatic const char * const btfm_slimbus_groups[] = {
82962306a36Sopenharmony_ci	"gpio67", "gpio68", "gpio86", "gpio87",
83062306a36Sopenharmony_ci};
83162306a36Sopenharmony_cistatic const char * const mi2s_1_groups[] = {
83262306a36Sopenharmony_ci	"gpio67", "gpio68", "gpio86", "gpio87",
83362306a36Sopenharmony_ci};
83462306a36Sopenharmony_cistatic const char * const uim2_data_groups[] = {
83562306a36Sopenharmony_ci	"gpio75",
83662306a36Sopenharmony_ci};
83762306a36Sopenharmony_cistatic const char * const uim2_clk_groups[] = {
83862306a36Sopenharmony_ci	"gpio76",
83962306a36Sopenharmony_ci};
84062306a36Sopenharmony_cistatic const char * const uim2_reset_groups[] = {
84162306a36Sopenharmony_ci	"gpio77",
84262306a36Sopenharmony_ci};
84362306a36Sopenharmony_cistatic const char * const uim2_present_groups[] = {
84462306a36Sopenharmony_ci	"gpio78",
84562306a36Sopenharmony_ci};
84662306a36Sopenharmony_cistatic const char * const uim1_data_groups[] = {
84762306a36Sopenharmony_ci	"gpio79",
84862306a36Sopenharmony_ci};
84962306a36Sopenharmony_cistatic const char * const uim1_clk_groups[] = {
85062306a36Sopenharmony_ci	"gpio80",
85162306a36Sopenharmony_ci};
85262306a36Sopenharmony_cistatic const char * const uim1_reset_groups[] = {
85362306a36Sopenharmony_ci	"gpio81",
85462306a36Sopenharmony_ci};
85562306a36Sopenharmony_cistatic const char * const uim1_present_groups[] = {
85662306a36Sopenharmony_ci	"gpio82",
85762306a36Sopenharmony_ci};
85862306a36Sopenharmony_cistatic const char * const atest_usb_groups[] = {
85962306a36Sopenharmony_ci	"gpio83", "gpio84", "gpio85", "gpio86",
86062306a36Sopenharmony_ci	"gpio87", "gpio88", "gpio89", "gpio90",
86162306a36Sopenharmony_ci	"gpio91", "gpio92",
86262306a36Sopenharmony_ci};
86362306a36Sopenharmony_cistatic const char * const sd_write_groups[] = {
86462306a36Sopenharmony_ci	"gpio85",
86562306a36Sopenharmony_ci};
86662306a36Sopenharmony_cistatic const char * const ddr_pxi0_groups[] = {
86762306a36Sopenharmony_ci	"gpio86", "gpio90",
86862306a36Sopenharmony_ci};
86962306a36Sopenharmony_cistatic const char * const adsp_ext_groups[] = {
87062306a36Sopenharmony_ci	"gpio87",
87162306a36Sopenharmony_ci};
87262306a36Sopenharmony_cistatic const char * const ddr_pxi1_groups[] = {
87362306a36Sopenharmony_ci	"gpio87", "gpio91",
87462306a36Sopenharmony_ci};
87562306a36Sopenharmony_cistatic const char * const mi2s_0_groups[] = {
87662306a36Sopenharmony_ci	"gpio88", "gpio89", "gpio90", "gpio91",
87762306a36Sopenharmony_ci};
87862306a36Sopenharmony_cistatic const char * const ddr_pxi2_groups[] = {
87962306a36Sopenharmony_ci	"gpio88", "gpio92",
88062306a36Sopenharmony_ci};
88162306a36Sopenharmony_cistatic const char * const tsense_pwm1_groups[] = {
88262306a36Sopenharmony_ci	"gpio88",
88362306a36Sopenharmony_ci};
88462306a36Sopenharmony_cistatic const char * const tsense_pwm2_groups[] = {
88562306a36Sopenharmony_ci	"gpio88",
88662306a36Sopenharmony_ci};
88762306a36Sopenharmony_cistatic const char * const agera_pll_groups[] = {
88862306a36Sopenharmony_ci	"gpio89",
88962306a36Sopenharmony_ci};
89062306a36Sopenharmony_cistatic const char * const vsense_trigger_groups[] = {
89162306a36Sopenharmony_ci	"gpio89",
89262306a36Sopenharmony_ci};
89362306a36Sopenharmony_cistatic const char * const ddr_pxi3_groups[] = {
89462306a36Sopenharmony_ci	"gpio89", "gpio93",
89562306a36Sopenharmony_ci};
89662306a36Sopenharmony_cistatic const char * const jitter_bist_groups[] = {
89762306a36Sopenharmony_ci	"gpio90",
89862306a36Sopenharmony_ci};
89962306a36Sopenharmony_cistatic const char * const wlan1_adc0_groups[] = {
90062306a36Sopenharmony_ci	"gpio90",
90162306a36Sopenharmony_ci};
90262306a36Sopenharmony_cistatic const char * const wlan2_adc0_groups[] = {
90362306a36Sopenharmony_ci	"gpio91",
90462306a36Sopenharmony_ci};
90562306a36Sopenharmony_cistatic const char * const atest_tsens_groups[] = {
90662306a36Sopenharmony_ci	"gpio92",
90762306a36Sopenharmony_ci};
90862306a36Sopenharmony_cistatic const char * const wlan1_adc1_groups[] = {
90962306a36Sopenharmony_ci	"gpio92",
91062306a36Sopenharmony_ci};
91162306a36Sopenharmony_cistatic const char * const mclk_groups[] = {
91262306a36Sopenharmony_ci	"gpio93",
91362306a36Sopenharmony_ci};
91462306a36Sopenharmony_cistatic const char * const atest_tsens2_groups[] = {
91562306a36Sopenharmony_ci	"gpio93",
91662306a36Sopenharmony_ci};
91762306a36Sopenharmony_cistatic const char * const wlan2_adc1_groups[] = {
91862306a36Sopenharmony_ci	"gpio93",
91962306a36Sopenharmony_ci};
92062306a36Sopenharmony_cistatic const char * const ldo_en_groups[] = {
92162306a36Sopenharmony_ci	"gpio95",
92262306a36Sopenharmony_ci};
92362306a36Sopenharmony_cistatic const char * const atest_char_groups[] = {
92462306a36Sopenharmony_ci	"gpio95",
92562306a36Sopenharmony_ci};
92662306a36Sopenharmony_cistatic const char * const ldo_update_groups[] = {
92762306a36Sopenharmony_ci	"gpio96",
92862306a36Sopenharmony_ci};
92962306a36Sopenharmony_cistatic const char * const atest_char0_groups[] = {
93062306a36Sopenharmony_ci	"gpio96",
93162306a36Sopenharmony_ci};
93262306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = {
93362306a36Sopenharmony_ci	"gpio97",
93462306a36Sopenharmony_ci};
93562306a36Sopenharmony_cistatic const char * const atest_char1_groups[] = {
93662306a36Sopenharmony_ci	"gpio97",
93762306a36Sopenharmony_ci};
93862306a36Sopenharmony_cistatic const char * const atest_char2_groups[] = {
93962306a36Sopenharmony_ci	"gpio98",
94062306a36Sopenharmony_ci};
94162306a36Sopenharmony_cistatic const char * const atest_char3_groups[] = {
94262306a36Sopenharmony_ci	"gpio99",
94362306a36Sopenharmony_ci};
94462306a36Sopenharmony_cistatic const char * const nav_gpio_groups[] = {
94562306a36Sopenharmony_ci	"gpio101", "gpio102",
94662306a36Sopenharmony_ci};
94762306a36Sopenharmony_cistatic const char * const nav_pps_groups[] = {
94862306a36Sopenharmony_ci	"gpio101", "gpio101", "gpio102", "gpio102",
94962306a36Sopenharmony_ci};
95062306a36Sopenharmony_cistatic const char * const gps_tx_groups[] = {
95162306a36Sopenharmony_ci	"gpio101", "gpio102", "gpio107", "gpio108",
95262306a36Sopenharmony_ci};
95362306a36Sopenharmony_cistatic const char * const qlink0_wmss_groups[] = {
95462306a36Sopenharmony_ci	"gpio103",
95562306a36Sopenharmony_ci};
95662306a36Sopenharmony_cistatic const char * const qlink0_request_groups[] = {
95762306a36Sopenharmony_ci	"gpio104",
95862306a36Sopenharmony_ci};
95962306a36Sopenharmony_cistatic const char * const qlink0_enable_groups[] = {
96062306a36Sopenharmony_ci	"gpio105",
96162306a36Sopenharmony_ci};
96262306a36Sopenharmony_cistatic const char * const qlink1_wmss_groups[] = {
96362306a36Sopenharmony_ci	"gpio106",
96462306a36Sopenharmony_ci};
96562306a36Sopenharmony_cistatic const char * const qlink1_request_groups[] = {
96662306a36Sopenharmony_ci	"gpio107",
96762306a36Sopenharmony_ci};
96862306a36Sopenharmony_cistatic const char * const qlink1_enable_groups[] = {
96962306a36Sopenharmony_ci	"gpio108",
97062306a36Sopenharmony_ci};
97162306a36Sopenharmony_cistatic const char * const rffe0_data_groups[] = {
97262306a36Sopenharmony_ci	"gpio109",
97362306a36Sopenharmony_ci};
97462306a36Sopenharmony_cistatic const char * const rffe0_clk_groups[] = {
97562306a36Sopenharmony_ci	"gpio110",
97662306a36Sopenharmony_ci};
97762306a36Sopenharmony_cistatic const char * const rffe1_data_groups[] = {
97862306a36Sopenharmony_ci	"gpio111",
97962306a36Sopenharmony_ci};
98062306a36Sopenharmony_cistatic const char * const rffe1_clk_groups[] = {
98162306a36Sopenharmony_ci	"gpio112",
98262306a36Sopenharmony_ci};
98362306a36Sopenharmony_cistatic const char * const rffe2_data_groups[] = {
98462306a36Sopenharmony_ci	"gpio113",
98562306a36Sopenharmony_ci};
98662306a36Sopenharmony_cistatic const char * const rffe2_clk_groups[] = {
98762306a36Sopenharmony_ci	"gpio114",
98862306a36Sopenharmony_ci};
98962306a36Sopenharmony_cistatic const char * const rffe3_data_groups[] = {
99062306a36Sopenharmony_ci	"gpio115",
99162306a36Sopenharmony_ci};
99262306a36Sopenharmony_cistatic const char * const rffe3_clk_groups[] = {
99362306a36Sopenharmony_ci	"gpio116",
99462306a36Sopenharmony_ci};
99562306a36Sopenharmony_cistatic const char * const rffe4_data_groups[] = {
99662306a36Sopenharmony_ci	"gpio117",
99762306a36Sopenharmony_ci};
99862306a36Sopenharmony_cistatic const char * const rffe4_clk_groups[] = {
99962306a36Sopenharmony_ci	"gpio118",
100062306a36Sopenharmony_ci};
100162306a36Sopenharmony_cistatic const char * const pa_indicator_groups[] = {
100262306a36Sopenharmony_ci	"gpio118",
100362306a36Sopenharmony_ci};
100462306a36Sopenharmony_cistatic const char * const pcie0_clk_groups[] = {
100562306a36Sopenharmony_ci	"gpio122",
100662306a36Sopenharmony_ci};
100762306a36Sopenharmony_cistatic const char * const usb_phy_groups[] = {
100862306a36Sopenharmony_ci	"gpio124",
100962306a36Sopenharmony_ci};
101062306a36Sopenharmony_ci
101162306a36Sopenharmony_cistatic const struct pinfunction sm6350_functions[] = {
101262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(adsp_ext),
101362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(agera_pll),
101462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char),
101562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char0),
101662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char1),
101762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char2),
101862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char3),
101962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_tsens),
102062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_tsens2),
102162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_usb),
102262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(audio_ref),
102362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(btfm_slimbus),
102462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk0),
102562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk1),
102662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk2),
102762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk3),
102862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk4),
102962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_async),
103062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_i2c),
103162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer0),
103262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer1),
103362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer2),
103462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer3),
103562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer4),
103662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng),
103762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dbg_out),
103862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_bist),
103962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi0),
104062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi1),
104162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi2),
104262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi3),
104362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dp_hot),
104462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(edp_lcd),
104562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1),
104662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2),
104762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3),
104862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm0),
104962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm1),
105062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm2),
105162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
105262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gps_tx),
105362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ibi_i3c),
105462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(jitter_bist),
105562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ldo_en),
105662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ldo_update),
105762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(lpass_ext),
105862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(m_voc),
105962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mclk),
106062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync),
106162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync0),
106262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync1),
106362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync2),
106462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync3),
106562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s_0),
106662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s_1),
106762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s_2),
106862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_lte),
106962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_gpio),
107062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_pps),
107162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pa_indicator),
107262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pcie0_clk),
107362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(phase_flag),
107462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_bist),
107562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_bypassnl),
107662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_reset),
107762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(prng_rosc),
107862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti),
107962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio),
108062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio0),
108162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio1),
108262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio10),
108362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio11),
108462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio12),
108562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio13),
108662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio14),
108762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio15),
108862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio2),
108962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio3),
109062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio4),
109162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio5),
109262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio6),
109362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio7),
109462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio8),
109562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio9),
109662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_enable),
109762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_request),
109862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_wmss),
109962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_enable),
110062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_request),
110162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_wmss),
110262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup00),
110362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup01),
110462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup02),
110562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup10),
110662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup11),
110762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup12),
110862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup13_f1),
110962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup13_f2),
111062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup14),
111162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe0_clk),
111262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe0_data),
111362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe1_clk),
111462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe1_data),
111562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe2_clk),
111662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe2_data),
111762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe3_clk),
111862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe3_data),
111962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe4_clk),
112062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rffe4_data),
112162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sd_write),
112262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc1_tb),
112362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc2_tb),
112462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sp_cmu),
112562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch0),
112662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch1),
112762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch2),
112862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch3),
112962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsense_pwm1),
113062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsense_pwm2),
113162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_clk),
113262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_data),
113362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_present),
113462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_reset),
113562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_clk),
113662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_data),
113762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_present),
113862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_reset),
113962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_phy),
114062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfr_1),
114162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vsense_trigger),
114262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wlan1_adc0),
114362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wlan1_adc1),
114462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wlan2_adc0),
114562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wlan2_adc1),
114662306a36Sopenharmony_ci};
114762306a36Sopenharmony_ci
114862306a36Sopenharmony_ci/*
114962306a36Sopenharmony_ci * Every pin is maintained as a single group, and missing or non-existing pin
115062306a36Sopenharmony_ci * would be maintained as dummy group to synchronize pin group index with
115162306a36Sopenharmony_ci * pin descriptor registered with pinctrl core.
115262306a36Sopenharmony_ci * Clients would not be able to request these dummy pin groups.
115362306a36Sopenharmony_ci */
115462306a36Sopenharmony_cistatic const struct msm_pingroup sm6350_groups[] = {
115562306a36Sopenharmony_ci	[0] = PINGROUP(0, ibi_i3c, qup00, cri_trng, _, _, _, _, _, _),
115662306a36Sopenharmony_ci	[1] = PINGROUP(1, ibi_i3c, qup00, cri_trng, _, _, _, _, _, _),
115762306a36Sopenharmony_ci	[2] = PINGROUP(2, qup00, cci_i2c, cri_trng, qdss_cti, _, _, _, _, _),
115862306a36Sopenharmony_ci	[3] = PINGROUP(3, qup00, cci_i2c, sp_cmu, dbg_out, qdss_cti, _, _, _, _),
115962306a36Sopenharmony_ci	[4] = PINGROUP(4, qup14, qup14, sdc1_tb, _, _, _, _, _, _),
116062306a36Sopenharmony_ci	[5] = PINGROUP(5, qup14, qup14, sdc2_tb, _, _, _, _, _, _),
116162306a36Sopenharmony_ci	[6] = PINGROUP(6, mdp_vsync, qdss_cti, _, _, _, _, _, _, _),
116262306a36Sopenharmony_ci	[7] = PINGROUP(7, qdss_cti, _, _, _, _, _, _, _, _),
116362306a36Sopenharmony_ci	[8] = PINGROUP(8, gp_pdm1, qdss_gpio, _, _, _, _, _, _, _),
116462306a36Sopenharmony_ci	[9] = PINGROUP(9, qdss_gpio, _, _, _, _, _, _, _, _),
116562306a36Sopenharmony_ci	[10] = PINGROUP(10, _, _, _, _, _, _, _, _, _),
116662306a36Sopenharmony_ci	[11] = PINGROUP(11, _, _, _, _, _, _, _, _, _),
116762306a36Sopenharmony_ci	[12] = PINGROUP(12, m_voc, dp_hot, _, phase_flag, _, _, _, _, _),
116862306a36Sopenharmony_ci	[13] = PINGROUP(13, qup10, pll_bypassnl, _, _, _, _, _, _, _),
116962306a36Sopenharmony_ci	[14] = PINGROUP(14, qup10, pll_reset, _, _, _, _, _, _, _),
117062306a36Sopenharmony_ci	[15] = PINGROUP(15, qup10, _, _, _, _, _, _, _, _),
117162306a36Sopenharmony_ci	[16] = PINGROUP(16, qup10, _, _, _, _, _, _, _, _),
117262306a36Sopenharmony_ci	[17] = PINGROUP(17, _, phase_flag, qup10, _, _, _, _, _, _),
117362306a36Sopenharmony_ci	[18] = PINGROUP(18, _, phase_flag, _, _, _, _, _, _, _),
117462306a36Sopenharmony_ci	[19] = PINGROUP(19, qup12, qup12, ddr_bist, _, _, _, _, _, _),
117562306a36Sopenharmony_ci	[20] = PINGROUP(20, qup12, qup12, ddr_bist, _, _, _, _, _, _),
117662306a36Sopenharmony_ci	[21] = PINGROUP(21, gcc_gp2, ddr_bist, _, _, _, _, _, _, _),
117762306a36Sopenharmony_ci	[22] = PINGROUP(22, gcc_gp3, ddr_bist, _, _, _, _, _, _, _),
117862306a36Sopenharmony_ci	[23] = PINGROUP(23, mdp_vsync, edp_lcd, _, _, _, _, _, _, _),
117962306a36Sopenharmony_ci	[24] = PINGROUP(24, mdp_vsync, _, _, _, _, _, _, _, _),
118062306a36Sopenharmony_ci	[25] = PINGROUP(25, qup13_f1, qup13_f2, _, _, _, _, _, _, _),
118162306a36Sopenharmony_ci	[26] = PINGROUP(26, qup13_f1, qup13_f2, _, _, _, _, _, _, _),
118262306a36Sopenharmony_ci	[27] = PINGROUP(27, qup11, qup11, mdp_vsync, pll_bist, _, qdss_gpio14, _, _, _),
118362306a36Sopenharmony_ci	[28] = PINGROUP(28, qup11, qup11, mdp_vsync, _, qdss_gpio15, _, _, _, _),
118462306a36Sopenharmony_ci	[29] = PINGROUP(29, cam_mclk0, _, _, _, _, _, _, _, _),
118562306a36Sopenharmony_ci	[30] = PINGROUP(30, cam_mclk1, _, _, _, _, _, _, _, _),
118662306a36Sopenharmony_ci	[31] = PINGROUP(31, cam_mclk2, _, _, _, _, _, _, _, _),
118762306a36Sopenharmony_ci	[32] = PINGROUP(32, cam_mclk3, _, _, _, _, _, _, _, _),
118862306a36Sopenharmony_ci	[33] = PINGROUP(33, cam_mclk4, _, _, _, _, _, _, _, _),
118962306a36Sopenharmony_ci	[34] = PINGROUP(34, cci_timer0, _, phase_flag, qdss_gpio12, _, _, _, _, _),
119062306a36Sopenharmony_ci	[35] = PINGROUP(35, cci_timer1, cci_async, _, phase_flag, qdss_gpio13, _, _, _, _),
119162306a36Sopenharmony_ci	[36] = PINGROUP(36, cci_timer2, cci_async, _, phase_flag, qdss_gpio14, _, _, _, _),
119262306a36Sopenharmony_ci	[37] = PINGROUP(37, cci_timer3, gp_pdm0, _, phase_flag, qdss_gpio15, _, _, _, _),
119362306a36Sopenharmony_ci	[38] = PINGROUP(38, cci_timer4, _, phase_flag, qdss_gpio2, _, _, _, _, _),
119462306a36Sopenharmony_ci	[39] = PINGROUP(39, cci_i2c, _, phase_flag, qdss_gpio0, _, _, _, _, _),
119562306a36Sopenharmony_ci	[40] = PINGROUP(40, cci_i2c, _, phase_flag, qdss_gpio1, _, _, _, _, _),
119662306a36Sopenharmony_ci	[41] = PINGROUP(41, cci_i2c, _, phase_flag, qdss_gpio2, _, _, _, _, _),
119762306a36Sopenharmony_ci	[42] = PINGROUP(42, cci_i2c, _, phase_flag, qdss_gpio3, _, _, _, _, _),
119862306a36Sopenharmony_ci	[43] = PINGROUP(43, cci_i2c, _, phase_flag, qdss_gpio4, _, _, _, _, _),
119962306a36Sopenharmony_ci	[44] = PINGROUP(44, cci_i2c, _, phase_flag, qdss_gpio5, _, _, _, _, _),
120062306a36Sopenharmony_ci	[45] = PINGROUP(45, qup02, _, phase_flag, qdss_gpio6, _, _, _, _, _),
120162306a36Sopenharmony_ci	[46] = PINGROUP(46, qup02, _, phase_flag, qdss_gpio7, _, _, _, _, _),
120262306a36Sopenharmony_ci	[47] = PINGROUP(47, mdp_vsync0, _, phase_flag, qdss_gpio3, _, _, _, _, _),
120362306a36Sopenharmony_ci	[48] = PINGROUP(48, cci_async, mdp_vsync1, gcc_gp1, _, phase_flag, qdss_gpio8, qup02, _, _),
120462306a36Sopenharmony_ci	[49] = PINGROUP(49, vfr_1, _, phase_flag, qdss_gpio9, _, _, _, _, _),
120562306a36Sopenharmony_ci	[50] = PINGROUP(50, _, phase_flag, qdss_gpio10, _, _, _, _, _, _),
120662306a36Sopenharmony_ci	[51] = PINGROUP(51, _, phase_flag, qdss_gpio11, _, _, _, _, _, _),
120762306a36Sopenharmony_ci	[52] = PINGROUP(52, cci_async, gp_pdm1, _, phase_flag, qdss_gpio12, _, _, _, _),
120862306a36Sopenharmony_ci	[53] = PINGROUP(53, cci_async, _, phase_flag, qdss_gpio13, _, _, _, _, _),
120962306a36Sopenharmony_ci	[54] = PINGROUP(54, _, _, _, _, _, _, _, _, _),
121062306a36Sopenharmony_ci	[55] = PINGROUP(55, _, _, _, _, _, _, _, _, _),
121162306a36Sopenharmony_ci	[56] = PINGROUP(56, qup02, mdp_vsync2, _, phase_flag, qdss_gpio10, _, _, _, _),
121262306a36Sopenharmony_ci	[57] = PINGROUP(57, qup02, mdp_vsync3, gp_pdm2, _, phase_flag, qdss_gpio11, _, _, _),
121362306a36Sopenharmony_ci	[58] = PINGROUP(58, gcc_gp1, _, _, _, _, _, _, _, _),
121462306a36Sopenharmony_ci	[59] = PINGROUP(59, _, _, _, _, _, _, _, _, _),
121562306a36Sopenharmony_ci	[60] = PINGROUP(60, audio_ref, lpass_ext, mi2s_2, _, phase_flag, _, _, _, _),
121662306a36Sopenharmony_ci	[61] = PINGROUP(61, qup01, tgu_ch0, _, phase_flag, qdss_cti, _, _, _, _),
121762306a36Sopenharmony_ci	[62] = PINGROUP(62, qup01, tgu_ch1, _, phase_flag, qdss_cti, _, _, _, _),
121862306a36Sopenharmony_ci	[63] = PINGROUP(63, qup01, tgu_ch2, _, phase_flag, qdss_gpio, _, _, _, _),
121962306a36Sopenharmony_ci	[64] = PINGROUP(64, qup01, tgu_ch3, _, phase_flag, qdss_gpio, _, _, _, _),
122062306a36Sopenharmony_ci	[65] = PINGROUP(65, mss_lte, _, qdss_gpio0, _, _, _, _, _, _),
122162306a36Sopenharmony_ci	[66] = PINGROUP(66, mss_lte, _, qdss_gpio1, _, _, _, _, _, _),
122262306a36Sopenharmony_ci	[67] = PINGROUP(67, btfm_slimbus, mi2s_1, _, phase_flag, _, _, _, _, _),
122362306a36Sopenharmony_ci	[68] = PINGROUP(68, btfm_slimbus, mi2s_1, gp_pdm0, _, phase_flag, _, _, _, _),
122462306a36Sopenharmony_ci	[69] = PINGROUP(69, _, _, _, _, _, _, _, _, _),
122562306a36Sopenharmony_ci	[70] = PINGROUP(70, _, _, _, _, _, _, _, _, _),
122662306a36Sopenharmony_ci	[71] = PINGROUP(71, _, _, _, _, _, _, _, _, _),
122762306a36Sopenharmony_ci	[72] = PINGROUP(72, mi2s_2, _, _, _, _, _, _, _, _),
122862306a36Sopenharmony_ci	[73] = PINGROUP(73, mi2s_2, _, _, _, _, _, _, _, _),
122962306a36Sopenharmony_ci	[74] = PINGROUP(74, mi2s_2, _, _, _, _, _, _, _, _),
123062306a36Sopenharmony_ci	[75] = PINGROUP(75, uim2_data, _, _, _, _, _, _, _, _),
123162306a36Sopenharmony_ci	[76] = PINGROUP(76, uim2_clk, _, _, _, _, _, _, _, _),
123262306a36Sopenharmony_ci	[77] = PINGROUP(77, uim2_reset, _, _, _, _, _, _, _, _),
123362306a36Sopenharmony_ci	[78] = PINGROUP(78, uim2_present, _, _, _, _, _, _, _, _),
123462306a36Sopenharmony_ci	[79] = PINGROUP(79, uim1_data, _, _, _, _, _, _, _, _),
123562306a36Sopenharmony_ci	[80] = PINGROUP(80, uim1_clk, _, _, _, _, _, _, _, _),
123662306a36Sopenharmony_ci	[81] = PINGROUP(81, uim1_reset, _, _, _, _, _, _, _, _),
123762306a36Sopenharmony_ci	[82] = PINGROUP(82, uim1_present, _, _, _, _, _, _, _, _),
123862306a36Sopenharmony_ci	[83] = PINGROUP(83, atest_usb, _, _, _, _, _, _, _, _),
123962306a36Sopenharmony_ci	[84] = PINGROUP(84, _, atest_usb, _, _, _, _, _, _, _),
124062306a36Sopenharmony_ci	[85] = PINGROUP(85, sd_write, _, atest_usb, _, _, _, _, _, _),
124162306a36Sopenharmony_ci	[86] = PINGROUP(86, btfm_slimbus, mi2s_1, _, qdss_cti, atest_usb, ddr_pxi0, _, _, _),
124262306a36Sopenharmony_ci	[87] = PINGROUP(87, btfm_slimbus, mi2s_1, adsp_ext, _, qdss_cti, atest_usb, ddr_pxi1, _, _),
124362306a36Sopenharmony_ci	[88] = PINGROUP(88, mi2s_0, _, qdss_gpio4, _, atest_usb, ddr_pxi2,
124462306a36Sopenharmony_ci			tsense_pwm1, tsense_pwm2, _),
124562306a36Sopenharmony_ci	[89] = PINGROUP(89, mi2s_0, agera_pll, _, qdss_gpio5, _,
124662306a36Sopenharmony_ci			vsense_trigger, atest_usb, ddr_pxi3, _),
124762306a36Sopenharmony_ci	[90] = PINGROUP(90, mi2s_0, jitter_bist, _, qdss_gpio6, _,
124862306a36Sopenharmony_ci			wlan1_adc0, atest_usb, ddr_pxi0, _),
124962306a36Sopenharmony_ci	[91] = PINGROUP(91, mi2s_0, _, qdss_gpio7, _, wlan2_adc0,
125062306a36Sopenharmony_ci			atest_usb, ddr_pxi1, _, _),
125162306a36Sopenharmony_ci	[92] = PINGROUP(92, _, qdss_gpio8, atest_tsens, wlan1_adc1,
125262306a36Sopenharmony_ci			atest_usb, ddr_pxi2, _, _, _),
125362306a36Sopenharmony_ci	[93] = PINGROUP(93, mclk, lpass_ext, _, qdss_gpio9, atest_tsens2,
125462306a36Sopenharmony_ci			wlan2_adc1, ddr_pxi3, _, _),
125562306a36Sopenharmony_ci	[94] = PINGROUP(94, _, _, _, _, _, _, _, _, _),
125662306a36Sopenharmony_ci	[95] = PINGROUP(95, ldo_en, _, atest_char, _, _, _, _, _, _),
125762306a36Sopenharmony_ci	[96] = PINGROUP(96, ldo_update, _, atest_char0, _, _, _, _, _, _),
125862306a36Sopenharmony_ci	[97] = PINGROUP(97, prng_rosc, _, atest_char1, _, _, _, _, _, _),
125962306a36Sopenharmony_ci	[98] = PINGROUP(98, _, atest_char2, _, _, _, _, _, _, _),
126062306a36Sopenharmony_ci	[99] = PINGROUP(99, _, atest_char3, _, _, _, _, _, _, _),
126162306a36Sopenharmony_ci	[100] = PINGROUP(100, _, _, _, _, _, _, _, _, _),
126262306a36Sopenharmony_ci	[101] = PINGROUP(101, nav_gpio, nav_pps, nav_pps, gps_tx, _, _, _, _, _),
126362306a36Sopenharmony_ci	[102] = PINGROUP(102, nav_gpio, nav_pps, nav_pps, gps_tx, _, _, _, _, _),
126462306a36Sopenharmony_ci	[103] = PINGROUP(103, qlink0_wmss, _, _, _, _, _, _, _, _),
126562306a36Sopenharmony_ci	[104] = PINGROUP(104, qlink0_request, _, _, _, _, _, _, _, _),
126662306a36Sopenharmony_ci	[105] = PINGROUP(105, qlink0_enable, _, _, _, _, _, _, _, _),
126762306a36Sopenharmony_ci	[106] = PINGROUP(106, qlink1_wmss, _, _, _, _, _, _, _, _),
126862306a36Sopenharmony_ci	[107] = PINGROUP(107, qlink1_request, gps_tx, _, _, _, _, _, _, _),
126962306a36Sopenharmony_ci	[108] = PINGROUP(108, qlink1_enable, gps_tx, _, _, _, _, _, _, _),
127062306a36Sopenharmony_ci	[109] = PINGROUP(109, rffe0_data, _, _, _, _, _, _, _, _),
127162306a36Sopenharmony_ci	[110] = PINGROUP(110, rffe0_clk, _, _, _, _, _, _, _, _),
127262306a36Sopenharmony_ci	[111] = PINGROUP(111, rffe1_data, _, _, _, _, _, _, _, _),
127362306a36Sopenharmony_ci	[112] = PINGROUP(112, rffe1_clk, _, _, _, _, _, _, _, _),
127462306a36Sopenharmony_ci	[113] = PINGROUP(113, rffe2_data, _, _, _, _, _, _, _, _),
127562306a36Sopenharmony_ci	[114] = PINGROUP(114, rffe2_clk, _, _, _, _, _, _, _, _),
127662306a36Sopenharmony_ci	[115] = PINGROUP(115, rffe3_data, _, _, _, _, _, _, _, _),
127762306a36Sopenharmony_ci	[116] = PINGROUP(116, rffe3_clk, _, _, _, _, _, _, _, _),
127862306a36Sopenharmony_ci	[117] = PINGROUP(117, rffe4_data, _, _, _, _, _, _, _, _),
127962306a36Sopenharmony_ci	[118] = PINGROUP(118, rffe4_clk, _, pa_indicator, dp_hot, _, _, _, _, _),
128062306a36Sopenharmony_ci	[119] = PINGROUP(119, _, _, _, _, _, _, _, _, _),
128162306a36Sopenharmony_ci	[120] = PINGROUP(120, _, _, _, _, _, _, _, _, _),
128262306a36Sopenharmony_ci	[121] = PINGROUP(121, _, _, _, _, _, _, _, _, _),
128362306a36Sopenharmony_ci	[122] = PINGROUP(122, pcie0_clk, _, _, _, _, _, _, _, _),
128462306a36Sopenharmony_ci	[123] = PINGROUP(123, _, _, _, _, _, _, _, _, _),
128562306a36Sopenharmony_ci	[124] = PINGROUP(124, usb_phy, _, _, _, _, _, _, _, _),
128662306a36Sopenharmony_ci	[125] = PINGROUP(125, _, _, _, _, _, _, _, _, _),
128762306a36Sopenharmony_ci	[126] = PINGROUP(126, _, _, _, _, _, _, _, _, _),
128862306a36Sopenharmony_ci	[127] = PINGROUP(127, _, _, _, _, _, _, _, _, _),
128962306a36Sopenharmony_ci	[128] = PINGROUP(128, _, _, _, _, _, _, _, _, _),
129062306a36Sopenharmony_ci	[129] = PINGROUP(129, _, _, _, _, _, _, _, _, _),
129162306a36Sopenharmony_ci	[130] = PINGROUP(130, _, _, _, _, _, _, _, _, _),
129262306a36Sopenharmony_ci	[131] = PINGROUP(131, _, _, _, _, _, _, _, _, _),
129362306a36Sopenharmony_ci	[132] = PINGROUP(132, _, _, _, _, _, _, _, _, _),
129462306a36Sopenharmony_ci	[133] = PINGROUP(133, _, _, _, _, _, _, _, _, _),
129562306a36Sopenharmony_ci	[134] = PINGROUP(134, _, _, _, _, _, _, _, _, _),
129662306a36Sopenharmony_ci	[135] = PINGROUP(135, _, _, _, _, _, _, _, _, _),
129762306a36Sopenharmony_ci	[136] = PINGROUP(136, _, _, _, _, _, _, _, _, _),
129862306a36Sopenharmony_ci	[137] = PINGROUP(137, _, _, _, _, _, _, _, _, _),
129962306a36Sopenharmony_ci	[138] = PINGROUP(138, _, _, _, _, _, _, _, _, _),
130062306a36Sopenharmony_ci	[139] = PINGROUP(139, _, _, _, _, _, _, _, _, _),
130162306a36Sopenharmony_ci	[140] = PINGROUP(140, _, _, _, _, _, _, _, _, _),
130262306a36Sopenharmony_ci	[141] = PINGROUP(141, _, _, _, _, _, _, _, _, _),
130362306a36Sopenharmony_ci	[142] = PINGROUP(142, _, _, _, _, _, _, _, _, _),
130462306a36Sopenharmony_ci	[143] = PINGROUP(143, _, _, _, _, _, _, _, _, _),
130562306a36Sopenharmony_ci	[144] = PINGROUP(144, _, _, _, _, _, _, _, _, _),
130662306a36Sopenharmony_ci	[145] = PINGROUP(145, _, _, _, _, _, _, _, _, _),
130762306a36Sopenharmony_ci	[146] = PINGROUP(146, _, _, _, _, _, _, _, _, _),
130862306a36Sopenharmony_ci	[147] = PINGROUP(147, _, _, _, _, _, _, _, _, _),
130962306a36Sopenharmony_ci	[148] = PINGROUP(148, _, _, _, _, _, _, _, _, _),
131062306a36Sopenharmony_ci	[149] = PINGROUP(149, _, _, _, _, _, _, _, _, _),
131162306a36Sopenharmony_ci	[150] = PINGROUP(150, _, _, _, _, _, _, _, _, _),
131262306a36Sopenharmony_ci	[151] = PINGROUP(151, _, _, _, _, _, _, _, _, _),
131362306a36Sopenharmony_ci	[152] = PINGROUP(152, _, _, _, _, _, _, _, _, _),
131462306a36Sopenharmony_ci	[153] = PINGROUP(153, _, _, _, _, _, _, _, _, _),
131562306a36Sopenharmony_ci	[154] = PINGROUP(154, _, _, _, _, _, _, _, _, _),
131662306a36Sopenharmony_ci	[155] = PINGROUP(155, _, _, _, _, _, _, _, _, _),
131762306a36Sopenharmony_ci	[156] = UFS_RESET(ufs_reset, 0xae000),
131862306a36Sopenharmony_ci	[157] = SDC_PINGROUP(sdc1_rclk, 0xa1000, 15, 0),
131962306a36Sopenharmony_ci	[158] = SDC_PINGROUP(sdc1_clk, 0xa0000, 13, 6),
132062306a36Sopenharmony_ci	[159] = SDC_PINGROUP(sdc1_cmd, 0xa0000, 11, 3),
132162306a36Sopenharmony_ci	[160] = SDC_PINGROUP(sdc1_data, 0xa0000, 9, 0),
132262306a36Sopenharmony_ci	[161] = SDC_PINGROUP(sdc2_clk, 0xa2000, 14, 6),
132362306a36Sopenharmony_ci	[162] = SDC_PINGROUP(sdc2_cmd, 0xa2000, 11, 3),
132462306a36Sopenharmony_ci	[163] = SDC_PINGROUP(sdc2_data, 0xa2000, 9, 0),
132562306a36Sopenharmony_ci};
132662306a36Sopenharmony_ci
132762306a36Sopenharmony_cistatic const struct msm_gpio_wakeirq_map sm6350_pdc_map[] = {
132862306a36Sopenharmony_ci	{ 3, 126 }, { 4, 151 }, { 7, 58 }, { 8, 113 }, { 9, 66 }, { 11, 106 },
132962306a36Sopenharmony_ci	{ 12, 59 }, { 13, 112 }, { 16, 73 }, { 17, 74 }, { 18, 75 }, { 19, 76 },
133062306a36Sopenharmony_ci	{ 21, 130 }, { 22, 96 }, { 23, 146 }, { 24, 114 }, { 25, 83 },
133162306a36Sopenharmony_ci	{ 27, 84 }, { 28, 85 }, { 34, 147 }, { 35, 92 }, { 36, 93 }, { 37, 94 },
133262306a36Sopenharmony_ci	{ 38, 68 }, { 48, 100 }, { 50, 57 }, { 51, 81 }, { 52, 80 }, { 53, 69 },
133362306a36Sopenharmony_ci	{ 54, 71 }, { 55, 70 }, { 57, 152 }, { 58, 115 }, { 59, 116 }, { 60, 117 },
133462306a36Sopenharmony_ci	{ 61, 118 }, { 62, 119 }, { 64, 121 }, { 66, 127 }, { 67, 128 },
133562306a36Sopenharmony_ci	{ 69, 60 }, { 73, 78 }, { 78, 135 }, { 82, 138 }, { 83, 140 },
133662306a36Sopenharmony_ci	{ 84, 141 }, { 85, 98 }, { 87, 88 }, { 88, 107 }, { 89, 109 },
133762306a36Sopenharmony_ci	{ 90, 110 }, { 91, 111 }, { 92, 149 }, { 93, 101 }, { 94, 61 },
133862306a36Sopenharmony_ci	{ 95, 65 }, { 96, 95 }, { 97, 72 }, { 98, 145 }, { 99, 150 },
133962306a36Sopenharmony_ci	{ 100, 108 }, { 104, 129 }, { 107, 131 }, { 110, 132 }, { 112, 133 },
134062306a36Sopenharmony_ci	{ 114, 134 }, { 116, 136 }, { 118, 137 }, { 122, 97 }, { 123, 99 },
134162306a36Sopenharmony_ci	{ 124, 148 }, { 125, 82 }, { 128, 144 }, { 129, 86 }, { 131, 87 },
134262306a36Sopenharmony_ci	{ 133, 142 }, { 134, 143 }, { 136, 102 }, { 137, 91 }, { 138, 77 },
134362306a36Sopenharmony_ci	{ 139, 79 }, { 140, 90 }, { 142, 103 }, { 144, 105 }, { 147, 104 },
134462306a36Sopenharmony_ci	{ 153, 120 }, { 155, 67 }
134562306a36Sopenharmony_ci};
134662306a36Sopenharmony_ci
134762306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data sm6350_tlmm = {
134862306a36Sopenharmony_ci	.pins = sm6350_pins,
134962306a36Sopenharmony_ci	.npins = ARRAY_SIZE(sm6350_pins),
135062306a36Sopenharmony_ci	.functions = sm6350_functions,
135162306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(sm6350_functions),
135262306a36Sopenharmony_ci	.groups = sm6350_groups,
135362306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(sm6350_groups),
135462306a36Sopenharmony_ci	.ngpios = 157,
135562306a36Sopenharmony_ci	.wakeirq_map = sm6350_pdc_map,
135662306a36Sopenharmony_ci	.nwakeirq_map = ARRAY_SIZE(sm6350_pdc_map),
135762306a36Sopenharmony_ci	.wakeirq_dual_edge_errata = true,
135862306a36Sopenharmony_ci};
135962306a36Sopenharmony_ci
136062306a36Sopenharmony_cistatic int sm6350_tlmm_probe(struct platform_device *pdev)
136162306a36Sopenharmony_ci{
136262306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, &sm6350_tlmm);
136362306a36Sopenharmony_ci}
136462306a36Sopenharmony_ci
136562306a36Sopenharmony_cistatic const struct of_device_id sm6350_tlmm_of_match[] = {
136662306a36Sopenharmony_ci	{ .compatible = "qcom,sm6350-tlmm" },
136762306a36Sopenharmony_ci	{ },
136862306a36Sopenharmony_ci};
136962306a36Sopenharmony_ci
137062306a36Sopenharmony_cistatic struct platform_driver sm6350_tlmm_driver = {
137162306a36Sopenharmony_ci	.driver = {
137262306a36Sopenharmony_ci		.name = "sm6350-tlmm",
137362306a36Sopenharmony_ci		.of_match_table = sm6350_tlmm_of_match,
137462306a36Sopenharmony_ci	},
137562306a36Sopenharmony_ci	.probe = sm6350_tlmm_probe,
137662306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
137762306a36Sopenharmony_ci};
137862306a36Sopenharmony_ci
137962306a36Sopenharmony_cistatic int __init sm6350_tlmm_init(void)
138062306a36Sopenharmony_ci{
138162306a36Sopenharmony_ci	return platform_driver_register(&sm6350_tlmm_driver);
138262306a36Sopenharmony_ci}
138362306a36Sopenharmony_ciarch_initcall(sm6350_tlmm_init);
138462306a36Sopenharmony_ci
138562306a36Sopenharmony_cistatic void __exit sm6350_tlmm_exit(void)
138662306a36Sopenharmony_ci{
138762306a36Sopenharmony_ci	platform_driver_unregister(&sm6350_tlmm_driver);
138862306a36Sopenharmony_ci}
138962306a36Sopenharmony_cimodule_exit(sm6350_tlmm_exit);
139062306a36Sopenharmony_ci
139162306a36Sopenharmony_ciMODULE_DESCRIPTION("QTI SM6350 TLMM driver");
139262306a36Sopenharmony_ciMODULE_LICENSE("GPL v2");
139362306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, sm6350_tlmm_of_match);
1394