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) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
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_BASE 0x100000
1462306a36Sopenharmony_ci#define REG_SIZE 0x1000
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9)	\
1762306a36Sopenharmony_ci	{					        \
1862306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
1962306a36Sopenharmony_ci			gpio##id##_pins, 		\
2062306a36Sopenharmony_ci			ARRAY_SIZE(gpio##id##_pins)),	\
2162306a36Sopenharmony_ci		.funcs = (int[]){			\
2262306a36Sopenharmony_ci			msm_mux_gpio, /* gpio mode */	\
2362306a36Sopenharmony_ci			msm_mux_##f1,			\
2462306a36Sopenharmony_ci			msm_mux_##f2,			\
2562306a36Sopenharmony_ci			msm_mux_##f3,			\
2662306a36Sopenharmony_ci			msm_mux_##f4,			\
2762306a36Sopenharmony_ci			msm_mux_##f5,			\
2862306a36Sopenharmony_ci			msm_mux_##f6,			\
2962306a36Sopenharmony_ci			msm_mux_##f7,			\
3062306a36Sopenharmony_ci			msm_mux_##f8,			\
3162306a36Sopenharmony_ci			msm_mux_##f9			\
3262306a36Sopenharmony_ci		},				        \
3362306a36Sopenharmony_ci		.nfuncs = 10,				\
3462306a36Sopenharmony_ci		.ctl_reg = REG_BASE + REG_SIZE * id,			\
3562306a36Sopenharmony_ci		.io_reg = REG_BASE + 0x4 + REG_SIZE * id,		\
3662306a36Sopenharmony_ci		.intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id,		\
3762306a36Sopenharmony_ci		.intr_status_reg = REG_BASE + 0xc + REG_SIZE * id,	\
3862306a36Sopenharmony_ci		.intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id,	\
3962306a36Sopenharmony_ci		.mux_bit = 2,			\
4062306a36Sopenharmony_ci		.pull_bit = 0,			\
4162306a36Sopenharmony_ci		.drv_bit = 6,			\
4262306a36Sopenharmony_ci		.oe_bit = 9,			\
4362306a36Sopenharmony_ci		.in_bit = 0,			\
4462306a36Sopenharmony_ci		.out_bit = 1,			\
4562306a36Sopenharmony_ci		.intr_enable_bit = 0,		\
4662306a36Sopenharmony_ci		.intr_status_bit = 0,		\
4762306a36Sopenharmony_ci		.intr_target_bit = 5,		\
4862306a36Sopenharmony_ci		.intr_target_kpss_val = 3,	\
4962306a36Sopenharmony_ci		.intr_raw_status_bit = 4,	\
5062306a36Sopenharmony_ci		.intr_polarity_bit = 1,		\
5162306a36Sopenharmony_ci		.intr_detection_bit = 2,	\
5262306a36Sopenharmony_ci		.intr_detection_width = 2,	\
5362306a36Sopenharmony_ci	}
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)	\
5662306a36Sopenharmony_ci	{					        \
5762306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
5862306a36Sopenharmony_ci			pg_name##_pins, 		\
5962306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
6062306a36Sopenharmony_ci		.ctl_reg = REG_BASE + ctl,				\
6162306a36Sopenharmony_ci		.io_reg = 0,				\
6262306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
6362306a36Sopenharmony_ci		.intr_status_reg = 0,			\
6462306a36Sopenharmony_ci		.intr_target_reg = 0,			\
6562306a36Sopenharmony_ci		.mux_bit = -1,				\
6662306a36Sopenharmony_ci		.pull_bit = pull,			\
6762306a36Sopenharmony_ci		.drv_bit = drv,				\
6862306a36Sopenharmony_ci		.oe_bit = -1,				\
6962306a36Sopenharmony_ci		.in_bit = -1,				\
7062306a36Sopenharmony_ci		.out_bit = -1,				\
7162306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
7262306a36Sopenharmony_ci		.intr_status_bit = -1,			\
7362306a36Sopenharmony_ci		.intr_target_bit = -1,			\
7462306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
7562306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
7662306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
7762306a36Sopenharmony_ci		.intr_detection_width = -1,		\
7862306a36Sopenharmony_ci	}
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci#define UFS_RESET(pg_name, offset)				\
8162306a36Sopenharmony_ci	{					        \
8262306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
8362306a36Sopenharmony_ci			pg_name##_pins, 		\
8462306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
8562306a36Sopenharmony_ci		.ctl_reg = offset,			\
8662306a36Sopenharmony_ci		.io_reg = offset + 0x4,			\
8762306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
8862306a36Sopenharmony_ci		.intr_status_reg = 0,			\
8962306a36Sopenharmony_ci		.intr_target_reg = 0,			\
9062306a36Sopenharmony_ci		.mux_bit = -1,				\
9162306a36Sopenharmony_ci		.pull_bit = 3,				\
9262306a36Sopenharmony_ci		.drv_bit = 0,				\
9362306a36Sopenharmony_ci		.oe_bit = -1,				\
9462306a36Sopenharmony_ci		.in_bit = -1,				\
9562306a36Sopenharmony_ci		.out_bit = 0,				\
9662306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
9762306a36Sopenharmony_ci		.intr_status_bit = -1,			\
9862306a36Sopenharmony_ci		.intr_target_bit = -1,			\
9962306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
10062306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
10162306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
10262306a36Sopenharmony_ci		.intr_detection_width = -1,		\
10362306a36Sopenharmony_ci	}
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci#define QUP_I3C(qup_mode, qup_offset)			\
10662306a36Sopenharmony_ci	{						\
10762306a36Sopenharmony_ci		.mode = qup_mode,			\
10862306a36Sopenharmony_ci		.offset = qup_offset,			\
10962306a36Sopenharmony_ci	}
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_cistatic const struct pinctrl_pin_desc qdu1000_pins[] = {
11262306a36Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
11362306a36Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
11462306a36Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
11562306a36Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
11662306a36Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
11762306a36Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
11862306a36Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
11962306a36Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
12062306a36Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
12162306a36Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
12262306a36Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
12362306a36Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
12462306a36Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
12562306a36Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
12662306a36Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
12762306a36Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
12862306a36Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
12962306a36Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
13062306a36Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
13162306a36Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
13262306a36Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
13362306a36Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
13462306a36Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
13562306a36Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
13662306a36Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
13762306a36Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
13862306a36Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
13962306a36Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
14062306a36Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
14162306a36Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
14262306a36Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
14362306a36Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
14462306a36Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
14562306a36Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
14662306a36Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
14762306a36Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
14862306a36Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
14962306a36Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
15062306a36Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
15162306a36Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
15262306a36Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
15362306a36Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
15462306a36Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
15562306a36Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
15662306a36Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
15762306a36Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
15862306a36Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
15962306a36Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
16062306a36Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
16162306a36Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
16262306a36Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
16362306a36Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
16462306a36Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
16562306a36Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
16662306a36Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
16762306a36Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
16862306a36Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
16962306a36Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
17062306a36Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
17162306a36Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
17262306a36Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
17362306a36Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
17462306a36Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
17562306a36Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
17662306a36Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
17762306a36Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
17862306a36Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
17962306a36Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
18062306a36Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
18162306a36Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
18262306a36Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
18362306a36Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
18462306a36Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
18562306a36Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
18662306a36Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
18762306a36Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
18862306a36Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
18962306a36Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
19062306a36Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
19162306a36Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
19262306a36Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
19362306a36Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
19462306a36Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
19562306a36Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
19662306a36Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
19762306a36Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
19862306a36Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
19962306a36Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
20062306a36Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
20162306a36Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
20262306a36Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
20362306a36Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
20462306a36Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
20562306a36Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
20662306a36Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
20762306a36Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
20862306a36Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
20962306a36Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
21062306a36Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
21162306a36Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
21262306a36Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
21362306a36Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
21462306a36Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
21562306a36Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
21662306a36Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
21762306a36Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
21862306a36Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
21962306a36Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
22062306a36Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
22162306a36Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
22262306a36Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
22362306a36Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
22462306a36Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
22562306a36Sopenharmony_ci	PINCTRL_PIN(113, "GPIO_113"),
22662306a36Sopenharmony_ci	PINCTRL_PIN(114, "GPIO_114"),
22762306a36Sopenharmony_ci	PINCTRL_PIN(115, "GPIO_115"),
22862306a36Sopenharmony_ci	PINCTRL_PIN(116, "GPIO_116"),
22962306a36Sopenharmony_ci	PINCTRL_PIN(117, "GPIO_117"),
23062306a36Sopenharmony_ci	PINCTRL_PIN(118, "GPIO_118"),
23162306a36Sopenharmony_ci	PINCTRL_PIN(119, "GPIO_119"),
23262306a36Sopenharmony_ci	PINCTRL_PIN(120, "GPIO_120"),
23362306a36Sopenharmony_ci	PINCTRL_PIN(121, "GPIO_121"),
23462306a36Sopenharmony_ci	PINCTRL_PIN(122, "GPIO_122"),
23562306a36Sopenharmony_ci	PINCTRL_PIN(123, "GPIO_123"),
23662306a36Sopenharmony_ci	PINCTRL_PIN(124, "GPIO_124"),
23762306a36Sopenharmony_ci	PINCTRL_PIN(125, "GPIO_125"),
23862306a36Sopenharmony_ci	PINCTRL_PIN(126, "GPIO_126"),
23962306a36Sopenharmony_ci	PINCTRL_PIN(127, "GPIO_127"),
24062306a36Sopenharmony_ci	PINCTRL_PIN(128, "GPIO_128"),
24162306a36Sopenharmony_ci	PINCTRL_PIN(129, "GPIO_129"),
24262306a36Sopenharmony_ci	PINCTRL_PIN(130, "GPIO_130"),
24362306a36Sopenharmony_ci	PINCTRL_PIN(131, "GPIO_131"),
24462306a36Sopenharmony_ci	PINCTRL_PIN(132, "GPIO_132"),
24562306a36Sopenharmony_ci	PINCTRL_PIN(133, "GPIO_133"),
24662306a36Sopenharmony_ci	PINCTRL_PIN(134, "GPIO_134"),
24762306a36Sopenharmony_ci	PINCTRL_PIN(135, "GPIO_135"),
24862306a36Sopenharmony_ci	PINCTRL_PIN(136, "GPIO_136"),
24962306a36Sopenharmony_ci	PINCTRL_PIN(137, "GPIO_137"),
25062306a36Sopenharmony_ci	PINCTRL_PIN(138, "GPIO_138"),
25162306a36Sopenharmony_ci	PINCTRL_PIN(139, "GPIO_139"),
25262306a36Sopenharmony_ci	PINCTRL_PIN(140, "GPIO_140"),
25362306a36Sopenharmony_ci	PINCTRL_PIN(141, "GPIO_141"),
25462306a36Sopenharmony_ci	PINCTRL_PIN(142, "GPIO_142"),
25562306a36Sopenharmony_ci	PINCTRL_PIN(143, "GPIO_143"),
25662306a36Sopenharmony_ci	PINCTRL_PIN(144, "GPIO_144"),
25762306a36Sopenharmony_ci	PINCTRL_PIN(145, "GPIO_145"),
25862306a36Sopenharmony_ci	PINCTRL_PIN(146, "GPIO_146"),
25962306a36Sopenharmony_ci	PINCTRL_PIN(147, "GPIO_147"),
26062306a36Sopenharmony_ci	PINCTRL_PIN(148, "GPIO_148"),
26162306a36Sopenharmony_ci	PINCTRL_PIN(149, "GPIO_149"),
26262306a36Sopenharmony_ci	PINCTRL_PIN(150, "GPIO_150"),
26362306a36Sopenharmony_ci	PINCTRL_PIN(151, "SDC1_RCLK"),
26462306a36Sopenharmony_ci	PINCTRL_PIN(152, "SDC1_CLK"),
26562306a36Sopenharmony_ci	PINCTRL_PIN(153, "SDC1_CMD"),
26662306a36Sopenharmony_ci	PINCTRL_PIN(154, "SDC1_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_ci
42362306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 151 };
42462306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 152 };
42562306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 153 };
42662306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 154 };
42762306a36Sopenharmony_ci
42862306a36Sopenharmony_cienum qdu1000_functions {
42962306a36Sopenharmony_ci	msm_mux_gpio,
43062306a36Sopenharmony_ci	msm_mux_cmo_pri,
43162306a36Sopenharmony_ci	msm_mux_si5518_int,
43262306a36Sopenharmony_ci	msm_mux_atest_char,
43362306a36Sopenharmony_ci	msm_mux_atest_usb,
43462306a36Sopenharmony_ci	msm_mux_char_exec,
43562306a36Sopenharmony_ci	msm_mux_cmu_rng,
43662306a36Sopenharmony_ci	msm_mux_dbg_out_clk,
43762306a36Sopenharmony_ci	msm_mux_ddr_bist,
43862306a36Sopenharmony_ci	msm_mux_ddr_pxi0,
43962306a36Sopenharmony_ci	msm_mux_ddr_pxi1,
44062306a36Sopenharmony_ci	msm_mux_ddr_pxi2,
44162306a36Sopenharmony_ci	msm_mux_ddr_pxi3,
44262306a36Sopenharmony_ci	msm_mux_ddr_pxi4,
44362306a36Sopenharmony_ci	msm_mux_ddr_pxi5,
44462306a36Sopenharmony_ci	msm_mux_ddr_pxi6,
44562306a36Sopenharmony_ci	msm_mux_ddr_pxi7,
44662306a36Sopenharmony_ci	msm_mux_eth012_int_n,
44762306a36Sopenharmony_ci	msm_mux_eth345_int_n,
44862306a36Sopenharmony_ci	msm_mux_eth6_int_n,
44962306a36Sopenharmony_ci	msm_mux_gcc_gp1,
45062306a36Sopenharmony_ci	msm_mux_gcc_gp2,
45162306a36Sopenharmony_ci	msm_mux_gcc_gp3,
45262306a36Sopenharmony_ci	msm_mux_gps_pps_in,
45362306a36Sopenharmony_ci	msm_mux_hardsync_pps_in,
45462306a36Sopenharmony_ci	msm_mux_intr_c,
45562306a36Sopenharmony_ci	msm_mux_jitter_bist_ref,
45662306a36Sopenharmony_ci	msm_mux_pcie_clkreqn,
45762306a36Sopenharmony_ci	msm_mux_phase_flag,
45862306a36Sopenharmony_ci	msm_mux_pll_bist,
45962306a36Sopenharmony_ci	msm_mux_pll_clk,
46062306a36Sopenharmony_ci	msm_mux_prng_rosc,
46162306a36Sopenharmony_ci	msm_mux_qdss_cti,
46262306a36Sopenharmony_ci	msm_mux_qdss_gpio,
46362306a36Sopenharmony_ci	msm_mux_qlink0_enable,
46462306a36Sopenharmony_ci	msm_mux_qlink0_request,
46562306a36Sopenharmony_ci	msm_mux_qlink0_wmss,
46662306a36Sopenharmony_ci	msm_mux_qlink1_enable,
46762306a36Sopenharmony_ci	msm_mux_qlink1_request,
46862306a36Sopenharmony_ci	msm_mux_qlink1_wmss,
46962306a36Sopenharmony_ci	msm_mux_qlink2_enable,
47062306a36Sopenharmony_ci	msm_mux_qlink2_request,
47162306a36Sopenharmony_ci	msm_mux_qlink2_wmss,
47262306a36Sopenharmony_ci	msm_mux_qlink3_enable,
47362306a36Sopenharmony_ci	msm_mux_qlink3_request,
47462306a36Sopenharmony_ci	msm_mux_qlink3_wmss,
47562306a36Sopenharmony_ci	msm_mux_qlink4_enable,
47662306a36Sopenharmony_ci	msm_mux_qlink4_request,
47762306a36Sopenharmony_ci	msm_mux_qlink4_wmss,
47862306a36Sopenharmony_ci	msm_mux_qlink5_enable,
47962306a36Sopenharmony_ci	msm_mux_qlink5_request,
48062306a36Sopenharmony_ci	msm_mux_qlink5_wmss,
48162306a36Sopenharmony_ci	msm_mux_qlink6_enable,
48262306a36Sopenharmony_ci	msm_mux_qlink6_request,
48362306a36Sopenharmony_ci	msm_mux_qlink6_wmss,
48462306a36Sopenharmony_ci	msm_mux_qlink7_enable,
48562306a36Sopenharmony_ci	msm_mux_qlink7_request,
48662306a36Sopenharmony_ci	msm_mux_qlink7_wmss,
48762306a36Sopenharmony_ci	msm_mux_qspi_clk,
48862306a36Sopenharmony_ci	msm_mux_qspi_cs,
48962306a36Sopenharmony_ci	msm_mux_qspi0,
49062306a36Sopenharmony_ci	msm_mux_qspi1,
49162306a36Sopenharmony_ci	msm_mux_qspi2,
49262306a36Sopenharmony_ci	msm_mux_qspi3,
49362306a36Sopenharmony_ci	msm_mux_qup00,
49462306a36Sopenharmony_ci	msm_mux_qup01,
49562306a36Sopenharmony_ci	msm_mux_qup02,
49662306a36Sopenharmony_ci	msm_mux_qup03,
49762306a36Sopenharmony_ci	msm_mux_qup04,
49862306a36Sopenharmony_ci	msm_mux_qup05,
49962306a36Sopenharmony_ci	msm_mux_qup06,
50062306a36Sopenharmony_ci	msm_mux_qup07,
50162306a36Sopenharmony_ci	msm_mux_qup08,
50262306a36Sopenharmony_ci	msm_mux_qup10,
50362306a36Sopenharmony_ci	msm_mux_qup11,
50462306a36Sopenharmony_ci	msm_mux_qup12,
50562306a36Sopenharmony_ci	msm_mux_qup13,
50662306a36Sopenharmony_ci	msm_mux_qup14,
50762306a36Sopenharmony_ci	msm_mux_qup15,
50862306a36Sopenharmony_ci	msm_mux_qup16,
50962306a36Sopenharmony_ci	msm_mux_qup17,
51062306a36Sopenharmony_ci	msm_mux_qup20,
51162306a36Sopenharmony_ci	msm_mux_qup21,
51262306a36Sopenharmony_ci	msm_mux_qup22,
51362306a36Sopenharmony_ci	msm_mux_smb_alert,
51462306a36Sopenharmony_ci	msm_mux_smb_clk,
51562306a36Sopenharmony_ci	msm_mux_smb_dat,
51662306a36Sopenharmony_ci	msm_mux_tb_trig,
51762306a36Sopenharmony_ci	msm_mux_tgu_ch0,
51862306a36Sopenharmony_ci	msm_mux_tgu_ch1,
51962306a36Sopenharmony_ci	msm_mux_tgu_ch2,
52062306a36Sopenharmony_ci	msm_mux_tgu_ch3,
52162306a36Sopenharmony_ci	msm_mux_tgu_ch4,
52262306a36Sopenharmony_ci	msm_mux_tgu_ch5,
52362306a36Sopenharmony_ci	msm_mux_tgu_ch6,
52462306a36Sopenharmony_ci	msm_mux_tgu_ch7,
52562306a36Sopenharmony_ci	msm_mux_tmess_prng0,
52662306a36Sopenharmony_ci	msm_mux_tmess_prng1,
52762306a36Sopenharmony_ci	msm_mux_tmess_prng2,
52862306a36Sopenharmony_ci	msm_mux_tmess_prng3,
52962306a36Sopenharmony_ci	msm_mux_tod_pps_in,
53062306a36Sopenharmony_ci	msm_mux_tsense_pwm1,
53162306a36Sopenharmony_ci	msm_mux_tsense_pwm2,
53262306a36Sopenharmony_ci	msm_mux_usb2phy_ac,
53362306a36Sopenharmony_ci	msm_mux_usb_con_det,
53462306a36Sopenharmony_ci	msm_mux_usb_dfp_en,
53562306a36Sopenharmony_ci	msm_mux_usb_phy,
53662306a36Sopenharmony_ci	msm_mux_vfr_0,
53762306a36Sopenharmony_ci	msm_mux_vfr_1,
53862306a36Sopenharmony_ci	msm_mux_vsense_trigger,
53962306a36Sopenharmony_ci	msm_mux__,
54062306a36Sopenharmony_ci};
54162306a36Sopenharmony_ci
54262306a36Sopenharmony_cistatic const char * const gpio_groups[] = {
54362306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
54462306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
54562306a36Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
54662306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
54762306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
54862306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
54962306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
55062306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
55162306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
55262306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
55362306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
55462306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
55562306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
55662306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
55762306a36Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
55862306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
55962306a36Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
56062306a36Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
56162306a36Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
56262306a36Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
56362306a36Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
56462306a36Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
56562306a36Sopenharmony_ci	"gpio147", "gpio148", "gpio149", "gpio150",
56662306a36Sopenharmony_ci};
56762306a36Sopenharmony_cistatic const char * const cmo_pri_groups[] = {
56862306a36Sopenharmony_ci	"gpio103",
56962306a36Sopenharmony_ci};
57062306a36Sopenharmony_cistatic const char * const si5518_int_groups[] = {
57162306a36Sopenharmony_ci	"gpio44",
57262306a36Sopenharmony_ci};
57362306a36Sopenharmony_cistatic const char * const atest_char_groups[] = {
57462306a36Sopenharmony_ci	"gpio89", "gpio90", "gpio91", "gpio92", "gpio95",
57562306a36Sopenharmony_ci};
57662306a36Sopenharmony_cistatic const char * const atest_usb_groups[] = {
57762306a36Sopenharmony_ci	"gpio114", "gpio115", "gpio116", "gpio117", "gpio118",
57862306a36Sopenharmony_ci};
57962306a36Sopenharmony_cistatic const char * const char_exec_groups[] = {
58062306a36Sopenharmony_ci	"gpio99", "gpio100",
58162306a36Sopenharmony_ci};
58262306a36Sopenharmony_cistatic const char * const cmu_rng_groups[] = {
58362306a36Sopenharmony_ci	"gpio89", "gpio90", "gpio91", "gpio92",
58462306a36Sopenharmony_ci};
58562306a36Sopenharmony_cistatic const char * const dbg_out_clk_groups[] = {
58662306a36Sopenharmony_ci	"gpio136",
58762306a36Sopenharmony_ci};
58862306a36Sopenharmony_cistatic const char * const ddr_bist_groups[] = {
58962306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
59062306a36Sopenharmony_ci};
59162306a36Sopenharmony_cistatic const char * const ddr_pxi0_groups[] = {
59262306a36Sopenharmony_ci	"gpio114", "gpio115",
59362306a36Sopenharmony_ci};
59462306a36Sopenharmony_cistatic const char * const ddr_pxi1_groups[] = {
59562306a36Sopenharmony_ci	"gpio116", "gpio117",
59662306a36Sopenharmony_ci};
59762306a36Sopenharmony_cistatic const char * const ddr_pxi2_groups[] = {
59862306a36Sopenharmony_ci	"gpio118", "gpio119",
59962306a36Sopenharmony_ci};
60062306a36Sopenharmony_cistatic const char * const ddr_pxi3_groups[] = {
60162306a36Sopenharmony_ci	"gpio120", "gpio121",
60262306a36Sopenharmony_ci};
60362306a36Sopenharmony_cistatic const char * const ddr_pxi4_groups[] = {
60462306a36Sopenharmony_ci	"gpio122", "gpio123",
60562306a36Sopenharmony_ci};
60662306a36Sopenharmony_cistatic const char * const ddr_pxi5_groups[] = {
60762306a36Sopenharmony_ci	"gpio124", "gpio125",
60862306a36Sopenharmony_ci};
60962306a36Sopenharmony_cistatic const char * const ddr_pxi6_groups[] = {
61062306a36Sopenharmony_ci	"gpio126", "gpio127",
61162306a36Sopenharmony_ci};
61262306a36Sopenharmony_cistatic const char * const ddr_pxi7_groups[] = {
61362306a36Sopenharmony_ci	"gpio128", "gpio129",
61462306a36Sopenharmony_ci};
61562306a36Sopenharmony_cistatic const char * const eth012_int_n_groups[] = {
61662306a36Sopenharmony_ci	"gpio86",
61762306a36Sopenharmony_ci};
61862306a36Sopenharmony_cistatic const char * const eth345_int_n_groups[] = {
61962306a36Sopenharmony_ci	"gpio87",
62062306a36Sopenharmony_ci};
62162306a36Sopenharmony_cistatic const char * const eth6_int_n_groups[] = {
62262306a36Sopenharmony_ci	"gpio88",
62362306a36Sopenharmony_ci};
62462306a36Sopenharmony_cistatic const char * const gcc_gp1_groups[] = {
62562306a36Sopenharmony_ci	"gpio86", "gpio134",
62662306a36Sopenharmony_ci};
62762306a36Sopenharmony_cistatic const char * const gcc_gp2_groups[] = {
62862306a36Sopenharmony_ci	"gpio87", "gpio135",
62962306a36Sopenharmony_ci};
63062306a36Sopenharmony_cistatic const char * const gcc_gp3_groups[] = {
63162306a36Sopenharmony_ci	"gpio88", "gpio136",
63262306a36Sopenharmony_ci};
63362306a36Sopenharmony_cistatic const char * const gps_pps_in_groups[] = {
63462306a36Sopenharmony_ci	"gpio49",
63562306a36Sopenharmony_ci};
63662306a36Sopenharmony_cistatic const char * const hardsync_pps_in_groups[] = {
63762306a36Sopenharmony_ci	"gpio47",
63862306a36Sopenharmony_ci};
63962306a36Sopenharmony_cistatic const char * const intr_c_groups[] = {
64062306a36Sopenharmony_ci	"gpio26", "gpio27", "gpio28", "gpio141", "gpio142", "gpio143",
64162306a36Sopenharmony_ci};
64262306a36Sopenharmony_cistatic const char * const jitter_bist_ref_groups[] = {
64362306a36Sopenharmony_ci	"gpio130",
64462306a36Sopenharmony_ci};
64562306a36Sopenharmony_cistatic const char * const pcie_clkreqn_groups[] = {
64662306a36Sopenharmony_ci	"gpio98", "gpio99", "gpio100",
64762306a36Sopenharmony_ci};
64862306a36Sopenharmony_cistatic const char * const phase_flag_groups[] = {
64962306a36Sopenharmony_ci	"gpio6", "gpio7", "gpio8", "gpio9", "gpio16", "gpio17", "gpio18",
65062306a36Sopenharmony_ci	"gpio19", "gpio20", "gpio22", "gpio21", "gpio23", "gpio24", "gpio25",
65162306a36Sopenharmony_ci	"gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
65262306a36Sopenharmony_ci	"gpio33", "gpio42", "gpio43", "gpio89", "gpio90", "gpio91", "gpio92",
65362306a36Sopenharmony_ci	"gpio95", "gpio96", "gpio97", "gpio102",
65462306a36Sopenharmony_ci};
65562306a36Sopenharmony_cistatic const char * const pll_bist_groups[] = {
65662306a36Sopenharmony_ci	"gpio20",
65762306a36Sopenharmony_ci};
65862306a36Sopenharmony_cistatic const char * const pll_clk_groups[] = {
65962306a36Sopenharmony_ci	"gpio98",
66062306a36Sopenharmony_ci};
66162306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = {
66262306a36Sopenharmony_ci	"gpio18", "gpio19", "gpio20", "gpio21",
66362306a36Sopenharmony_ci};
66462306a36Sopenharmony_cistatic const char * const qdss_cti_groups[] = {
66562306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio48",
66662306a36Sopenharmony_ci	"gpio49", "gpio86", "gpio87", "gpio93", "gpio94", "gpio130", "gpio131",
66762306a36Sopenharmony_ci	"gpio132", "gpio133", "gpio134", "gpio135", "gpio144", "gpio145",
66862306a36Sopenharmony_ci};
66962306a36Sopenharmony_cistatic const char * const qdss_gpio_groups[] = {
67062306a36Sopenharmony_ci	"gpio6", "gpio7", "gpio8", "gpio9", "gpio16", "gpio17", "gpio18",
67162306a36Sopenharmony_ci	"gpio19", "gpio20", "gpio21", "gpio22", "gpio23", "gpio25", "gpio26",
67262306a36Sopenharmony_ci	"gpio27", "gpio28", "gpio24", "gpio29", "gpio30", "gpio31", "gpio32",
67362306a36Sopenharmony_ci	"gpio33", "gpio34", "gpio35", "gpio42", "gpio43", "gpio88", "gpio89",
67462306a36Sopenharmony_ci	"gpio90", "gpio91", "gpio92", "gpio95", "gpio96", "gpio97", "gpio102",
67562306a36Sopenharmony_ci	"gpio103",
67662306a36Sopenharmony_ci};
67762306a36Sopenharmony_cistatic const char * const qlink0_enable_groups[] = {
67862306a36Sopenharmony_ci	"gpio67",
67962306a36Sopenharmony_ci};
68062306a36Sopenharmony_cistatic const char * const qlink0_request_groups[] = {
68162306a36Sopenharmony_ci	"gpio66",
68262306a36Sopenharmony_ci};
68362306a36Sopenharmony_cistatic const char * const qlink0_wmss_groups[] = {
68462306a36Sopenharmony_ci	"gpio82",
68562306a36Sopenharmony_ci};
68662306a36Sopenharmony_cistatic const char * const qlink1_enable_groups[] = {
68762306a36Sopenharmony_ci	"gpio69",
68862306a36Sopenharmony_ci};
68962306a36Sopenharmony_cistatic const char * const qlink1_request_groups[] = {
69062306a36Sopenharmony_ci	"gpio68",
69162306a36Sopenharmony_ci};
69262306a36Sopenharmony_cistatic const char * const qlink1_wmss_groups[] = {
69362306a36Sopenharmony_ci	"gpio83",
69462306a36Sopenharmony_ci};
69562306a36Sopenharmony_cistatic const char * const qlink2_enable_groups[] = {
69662306a36Sopenharmony_ci	"gpio71",
69762306a36Sopenharmony_ci};
69862306a36Sopenharmony_cistatic const char * const qlink2_request_groups[] = {
69962306a36Sopenharmony_ci	"gpio70",
70062306a36Sopenharmony_ci};
70162306a36Sopenharmony_cistatic const char * const qlink2_wmss_groups[] = {
70262306a36Sopenharmony_ci	"gpio138",
70362306a36Sopenharmony_ci};
70462306a36Sopenharmony_cistatic const char * const qlink3_enable_groups[] = {
70562306a36Sopenharmony_ci	"gpio73",
70662306a36Sopenharmony_ci};
70762306a36Sopenharmony_cistatic const char * const qlink3_request_groups[] = {
70862306a36Sopenharmony_ci	"gpio72",
70962306a36Sopenharmony_ci};
71062306a36Sopenharmony_cistatic const char * const qlink3_wmss_groups[] = {
71162306a36Sopenharmony_ci	"gpio139",
71262306a36Sopenharmony_ci};
71362306a36Sopenharmony_cistatic const char * const qlink4_enable_groups[] = {
71462306a36Sopenharmony_ci	"gpio75",
71562306a36Sopenharmony_ci};
71662306a36Sopenharmony_cistatic const char * const qlink4_request_groups[] = {
71762306a36Sopenharmony_ci	"gpio74",
71862306a36Sopenharmony_ci};
71962306a36Sopenharmony_cistatic const char * const qlink4_wmss_groups[] = {
72062306a36Sopenharmony_ci	"gpio84",
72162306a36Sopenharmony_ci};
72262306a36Sopenharmony_cistatic const char * const qlink5_enable_groups[] = {
72362306a36Sopenharmony_ci	"gpio77",
72462306a36Sopenharmony_ci};
72562306a36Sopenharmony_cistatic const char * const qlink5_request_groups[] = {
72662306a36Sopenharmony_ci	"gpio76",
72762306a36Sopenharmony_ci};
72862306a36Sopenharmony_cistatic const char * const qlink5_wmss_groups[] = {
72962306a36Sopenharmony_ci	"gpio85",
73062306a36Sopenharmony_ci};
73162306a36Sopenharmony_cistatic const char * const qlink6_enable_groups[] = {
73262306a36Sopenharmony_ci	"gpio79",
73362306a36Sopenharmony_ci};
73462306a36Sopenharmony_cistatic const char * const qlink6_request_groups[] = {
73562306a36Sopenharmony_ci	"gpio78",
73662306a36Sopenharmony_ci};
73762306a36Sopenharmony_cistatic const char * const qlink6_wmss_groups[] = {
73862306a36Sopenharmony_ci	"gpio56",
73962306a36Sopenharmony_ci};
74062306a36Sopenharmony_cistatic const char * const qlink7_enable_groups[] = {
74162306a36Sopenharmony_ci	"gpio81",
74262306a36Sopenharmony_ci};
74362306a36Sopenharmony_cistatic const char * const qlink7_request_groups[] = {
74462306a36Sopenharmony_ci	"gpio80",
74562306a36Sopenharmony_ci};
74662306a36Sopenharmony_cistatic const char * const qlink7_wmss_groups[] = {
74762306a36Sopenharmony_ci	"gpio57",
74862306a36Sopenharmony_ci};
74962306a36Sopenharmony_cistatic const char * const qspi0_groups[] = {
75062306a36Sopenharmony_ci	"gpio114",
75162306a36Sopenharmony_ci};
75262306a36Sopenharmony_cistatic const char * const qspi1_groups[] = {
75362306a36Sopenharmony_ci	"gpio115",
75462306a36Sopenharmony_ci};
75562306a36Sopenharmony_cistatic const char * const qspi2_groups[] = {
75662306a36Sopenharmony_ci	"gpio116",
75762306a36Sopenharmony_ci};
75862306a36Sopenharmony_cistatic const char * const qspi3_groups[] = {
75962306a36Sopenharmony_ci	"gpio117",
76062306a36Sopenharmony_ci};
76162306a36Sopenharmony_cistatic const char * const qspi_clk_groups[] = {
76262306a36Sopenharmony_ci	"gpio126",
76362306a36Sopenharmony_ci};
76462306a36Sopenharmony_cistatic const char * const qspi_cs_groups[] = {
76562306a36Sopenharmony_ci	"gpio125",
76662306a36Sopenharmony_ci};
76762306a36Sopenharmony_cistatic const char * const qup00_groups[] = {
76862306a36Sopenharmony_ci	"gpio6", "gpio7", "gpio8", "gpio9",
76962306a36Sopenharmony_ci};
77062306a36Sopenharmony_cistatic const char * const qup01_groups[] = {
77162306a36Sopenharmony_ci	"gpio10", "gpio11", "gpio12", "gpio13",
77262306a36Sopenharmony_ci};
77362306a36Sopenharmony_cistatic const char * const qup02_groups[] = {
77462306a36Sopenharmony_ci	"gpio10", "gpio11", "gpio12", "gpio13",
77562306a36Sopenharmony_ci};
77662306a36Sopenharmony_cistatic const char * const qup03_groups[] = {
77762306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio16", "gpio17",
77862306a36Sopenharmony_ci};
77962306a36Sopenharmony_cistatic const char * const qup04_groups[] = {
78062306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio16", "gpio17",
78162306a36Sopenharmony_ci};
78262306a36Sopenharmony_cistatic const char * const qup05_groups[] = {
78362306a36Sopenharmony_ci	"gpio130", "gpio131", "gpio132", "gpio133",
78462306a36Sopenharmony_ci};
78562306a36Sopenharmony_cistatic const char * const qup06_groups[] = {
78662306a36Sopenharmony_ci	"gpio130", "gpio131", "gpio132", "gpio133",
78762306a36Sopenharmony_ci};
78862306a36Sopenharmony_cistatic const char * const qup07_groups[] = {
78962306a36Sopenharmony_ci	"gpio134", "gpio135",
79062306a36Sopenharmony_ci};
79162306a36Sopenharmony_cistatic const char * const qup08_groups[] = {
79262306a36Sopenharmony_ci	"gpio134", "gpio135",
79362306a36Sopenharmony_ci};
79462306a36Sopenharmony_cistatic const char * const qup10_groups[] = {
79562306a36Sopenharmony_ci	"gpio18", "gpio19", "gpio20", "gpio21",
79662306a36Sopenharmony_ci};
79762306a36Sopenharmony_cistatic const char * const qup11_groups[] = {
79862306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25",
79962306a36Sopenharmony_ci};
80062306a36Sopenharmony_cistatic const char * const qup12_groups[] = {
80162306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25",
80262306a36Sopenharmony_ci};
80362306a36Sopenharmony_cistatic const char * const qup13_groups[] = {
80462306a36Sopenharmony_ci	"gpio26", "gpio27", "gpio28", "gpio29",
80562306a36Sopenharmony_ci};
80662306a36Sopenharmony_cistatic const char * const qup14_groups[] = {
80762306a36Sopenharmony_ci	"gpio26", "gpio27", "gpio28", "gpio29",
80862306a36Sopenharmony_ci};
80962306a36Sopenharmony_cistatic const char * const qup15_groups[] = {
81062306a36Sopenharmony_ci	"gpio30", "gpio31", "gpio32", "gpio33",
81162306a36Sopenharmony_ci};
81262306a36Sopenharmony_cistatic const char * const qup16_groups[] = {
81362306a36Sopenharmony_ci	"gpio29", "gpio34", "gpio35", "gpio36", "gpio37", "gpio38", "gpio39",
81462306a36Sopenharmony_ci};
81562306a36Sopenharmony_cistatic const char * const qup17_groups[] = {
81662306a36Sopenharmony_ci	"gpio12", "gpio13", "gpio14", "gpio30", "gpio31", "gpio40", "gpio41",
81762306a36Sopenharmony_ci};
81862306a36Sopenharmony_cistatic const char * const qup20_groups[] = {
81962306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
82062306a36Sopenharmony_ci};
82162306a36Sopenharmony_cistatic const char * const qup21_groups[] = {
82262306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
82362306a36Sopenharmony_ci};
82462306a36Sopenharmony_cistatic const char * const qup22_groups[] = {
82562306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio128", "gpio129",
82662306a36Sopenharmony_ci};
82762306a36Sopenharmony_cistatic const char * const smb_alert_groups[] = {
82862306a36Sopenharmony_ci	"gpio88", "gpio101",
82962306a36Sopenharmony_ci};
83062306a36Sopenharmony_cistatic const char * const smb_clk_groups[] = {
83162306a36Sopenharmony_ci	"gpio133",
83262306a36Sopenharmony_ci};
83362306a36Sopenharmony_cistatic const char * const smb_dat_groups[] = {
83462306a36Sopenharmony_ci	"gpio132",
83562306a36Sopenharmony_ci};
83662306a36Sopenharmony_cistatic const char * const tb_trig_groups[] = {
83762306a36Sopenharmony_ci	"gpio114",
83862306a36Sopenharmony_ci};
83962306a36Sopenharmony_cistatic const char * const tgu_ch0_groups[] = {
84062306a36Sopenharmony_ci	"gpio6",
84162306a36Sopenharmony_ci};
84262306a36Sopenharmony_cistatic const char * const tgu_ch1_groups[] = {
84362306a36Sopenharmony_ci	"gpio7",
84462306a36Sopenharmony_ci};
84562306a36Sopenharmony_cistatic const char * const tgu_ch2_groups[] = {
84662306a36Sopenharmony_ci	"gpio8",
84762306a36Sopenharmony_ci};
84862306a36Sopenharmony_cistatic const char * const tgu_ch3_groups[] = {
84962306a36Sopenharmony_ci	"gpio9",
85062306a36Sopenharmony_ci};
85162306a36Sopenharmony_cistatic const char * const tgu_ch4_groups[] = {
85262306a36Sopenharmony_ci	"gpio44",
85362306a36Sopenharmony_ci};
85462306a36Sopenharmony_cistatic const char * const tgu_ch5_groups[] = {
85562306a36Sopenharmony_ci	"gpio45",
85662306a36Sopenharmony_ci};
85762306a36Sopenharmony_cistatic const char * const tgu_ch6_groups[] = {
85862306a36Sopenharmony_ci	"gpio46",
85962306a36Sopenharmony_ci};
86062306a36Sopenharmony_cistatic const char * const tgu_ch7_groups[] = {
86162306a36Sopenharmony_ci	"gpio47",
86262306a36Sopenharmony_ci};
86362306a36Sopenharmony_cistatic const char * const tmess_prng0_groups[] = {
86462306a36Sopenharmony_ci	"gpio33",
86562306a36Sopenharmony_ci};
86662306a36Sopenharmony_cistatic const char * const tmess_prng1_groups[] = {
86762306a36Sopenharmony_ci	"gpio32",
86862306a36Sopenharmony_ci};
86962306a36Sopenharmony_cistatic const char * const tmess_prng2_groups[] = {
87062306a36Sopenharmony_ci	"gpio31",
87162306a36Sopenharmony_ci};
87262306a36Sopenharmony_cistatic const char * const tmess_prng3_groups[] = {
87362306a36Sopenharmony_ci	"gpio30",
87462306a36Sopenharmony_ci};
87562306a36Sopenharmony_cistatic const char * const tod_pps_in_groups[] = {
87662306a36Sopenharmony_ci	"gpio48",
87762306a36Sopenharmony_ci};
87862306a36Sopenharmony_cistatic const char * const tsense_pwm1_groups[] = {
87962306a36Sopenharmony_ci	"gpio2",
88062306a36Sopenharmony_ci};
88162306a36Sopenharmony_cistatic const char * const tsense_pwm2_groups[] = {
88262306a36Sopenharmony_ci	"gpio3",
88362306a36Sopenharmony_ci};
88462306a36Sopenharmony_cistatic const char * const usb2phy_ac_groups[] = {
88562306a36Sopenharmony_ci	"gpio90",
88662306a36Sopenharmony_ci};
88762306a36Sopenharmony_cistatic const char * const usb_con_det_groups[] = {
88862306a36Sopenharmony_ci	"gpio42",
88962306a36Sopenharmony_ci};
89062306a36Sopenharmony_cistatic const char * const usb_dfp_en_groups[] = {
89162306a36Sopenharmony_ci	"gpio43",
89262306a36Sopenharmony_ci};
89362306a36Sopenharmony_cistatic const char * const usb_phy_groups[] = {
89462306a36Sopenharmony_ci	"gpio91",
89562306a36Sopenharmony_ci};
89662306a36Sopenharmony_cistatic const char * const vfr_0_groups[] = {
89762306a36Sopenharmony_ci	"gpio93",
89862306a36Sopenharmony_ci};
89962306a36Sopenharmony_cistatic const char * const vfr_1_groups[] = {
90062306a36Sopenharmony_ci	"gpio94",
90162306a36Sopenharmony_ci};
90262306a36Sopenharmony_cistatic const char * const vsense_trigger_groups[] = {
90362306a36Sopenharmony_ci	"gpio135",
90462306a36Sopenharmony_ci};
90562306a36Sopenharmony_ci
90662306a36Sopenharmony_cistatic const struct pinfunction qdu1000_functions[] = {
90762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
90862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cmo_pri),
90962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(si5518_int),
91062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char),
91162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_usb),
91262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(char_exec),
91362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cmu_rng),
91462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dbg_out_clk),
91562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_bist),
91662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi0),
91762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi1),
91862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi2),
91962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi3),
92062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi4),
92162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi5),
92262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi6),
92362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi7),
92462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(eth012_int_n),
92562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(eth345_int_n),
92662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(eth6_int_n),
92762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1),
92862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2),
92962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3),
93062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gps_pps_in),
93162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hardsync_pps_in),
93262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(intr_c),
93362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(jitter_bist_ref),
93462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pcie_clkreqn),
93562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(phase_flag),
93662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_bist),
93762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_clk),
93862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(prng_rosc),
93962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti),
94062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio),
94162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_enable),
94262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_request),
94362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_wmss),
94462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_enable),
94562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_request),
94662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_wmss),
94762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink2_enable),
94862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink2_request),
94962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink2_wmss),
95062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink3_enable),
95162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink3_request),
95262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink3_wmss),
95362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink4_enable),
95462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink4_request),
95562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink4_wmss),
95662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink5_enable),
95762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink5_request),
95862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink5_wmss),
95962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink6_enable),
96062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink6_request),
96162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink6_wmss),
96262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink7_enable),
96362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink7_request),
96462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink7_wmss),
96562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi0),
96662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi1),
96762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi2),
96862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi3),
96962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi_clk),
97062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qspi_cs),
97162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup00),
97262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup01),
97362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup02),
97462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup03),
97562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup04),
97662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup05),
97762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup06),
97862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup07),
97962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup08),
98062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup10),
98162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup11),
98262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup12),
98362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup13),
98462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup14),
98562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup15),
98662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup16),
98762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup17),
98862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup20),
98962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup21),
99062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup22),
99162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(smb_alert),
99262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(smb_clk),
99362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(smb_dat),
99462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tb_trig),
99562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch0),
99662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch1),
99762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch2),
99862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch3),
99962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch4),
100062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch5),
100162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch6),
100262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch7),
100362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng0),
100462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng1),
100562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng2),
100662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng3),
100762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tod_pps_in),
100862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsense_pwm1),
100962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsense_pwm2),
101062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb2phy_ac),
101162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_con_det),
101262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_dfp_en),
101362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_phy),
101462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfr_0),
101562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfr_1),
101662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vsense_trigger),
101762306a36Sopenharmony_ci};
101862306a36Sopenharmony_ci
101962306a36Sopenharmony_ci/*
102062306a36Sopenharmony_ci * Every pin is maintained as a single group, and missing or non-existing pin
102162306a36Sopenharmony_ci * would be maintained as dummy group to synchronize pin group index with
102262306a36Sopenharmony_ci * pin descriptor registered with pinctrl core.
102362306a36Sopenharmony_ci * Clients would not be able to request these dummy pin groups.
102462306a36Sopenharmony_ci */
102562306a36Sopenharmony_cistatic const struct msm_pingroup qdu1000_groups[] = {
102662306a36Sopenharmony_ci	[0] = PINGROUP(0, qup20, qup21, ddr_bist, _, _, _, _, _, _),
102762306a36Sopenharmony_ci	[1] = PINGROUP(1, qup20, qup21, ddr_bist, _, _, _, _, _, _),
102862306a36Sopenharmony_ci	[2] = PINGROUP(2, qup21, qup20, ddr_bist, _,
102962306a36Sopenharmony_ci		       tsense_pwm1, _, _, _, _),
103062306a36Sopenharmony_ci	[3] = PINGROUP(3, qup21, qup20, ddr_bist, _,
103162306a36Sopenharmony_ci		       tsense_pwm2, _, _, _, _),
103262306a36Sopenharmony_ci	[4] = PINGROUP(4, qup22, _, _, _, _, _, _, _, _),
103362306a36Sopenharmony_ci	[5] = PINGROUP(5, qup22, _, _, _, _, _, _, _, _),
103462306a36Sopenharmony_ci	[6] = PINGROUP(6, qup00, tgu_ch0, phase_flag, _,
103562306a36Sopenharmony_ci		       qdss_gpio, _, _, _, _),
103662306a36Sopenharmony_ci	[7] = PINGROUP(7, qup00, tgu_ch1, phase_flag, _,
103762306a36Sopenharmony_ci		       qdss_gpio, _, _, _, _),
103862306a36Sopenharmony_ci	[8] = PINGROUP(8, qup00, tgu_ch2, phase_flag, _,
103962306a36Sopenharmony_ci		       qdss_gpio, _, _, _, _),
104062306a36Sopenharmony_ci	[9] = PINGROUP(9, qup00, tgu_ch3, phase_flag, _,
104162306a36Sopenharmony_ci		       qdss_gpio, _, _, _, _),
104262306a36Sopenharmony_ci	[10] = PINGROUP(10, qup01, qup02, _, _, _, _, _, _, _),
104362306a36Sopenharmony_ci	[11] = PINGROUP(11, qup01, qup02, _, _, _, _, _, _, _),
104462306a36Sopenharmony_ci	[12] = PINGROUP(12, qup02, qup01, qup17, _, _, _, _, _, _),
104562306a36Sopenharmony_ci	[13] = PINGROUP(13, qup02, qup01, qup17, _, _, _, _, _, _),
104662306a36Sopenharmony_ci	[14] = PINGROUP(14, qup03, qup04, qup17, _, _, _, _, _, _),
104762306a36Sopenharmony_ci	[15] = PINGROUP(15, qup03, qup04, _, _, _, _, _, _, _),
104862306a36Sopenharmony_ci	[16] = PINGROUP(16, qup04, qup03, phase_flag, _,
104962306a36Sopenharmony_ci			qdss_gpio, _, _, _, _),
105062306a36Sopenharmony_ci	[17] = PINGROUP(17, qup04, qup03, phase_flag, _,
105162306a36Sopenharmony_ci			qdss_gpio, _, _, _, _),
105262306a36Sopenharmony_ci	[18] = PINGROUP(18, qup10, prng_rosc, phase_flag,
105362306a36Sopenharmony_ci			_, qdss_gpio, _, _, _, _),
105462306a36Sopenharmony_ci	[19] = PINGROUP(19, qup10, prng_rosc, phase_flag,
105562306a36Sopenharmony_ci			_, qdss_gpio, _, _, _, _),
105662306a36Sopenharmony_ci	[20] = PINGROUP(20, qup10, prng_rosc, pll_bist,
105762306a36Sopenharmony_ci			phase_flag, _, qdss_gpio, _, _, _),
105862306a36Sopenharmony_ci	[21] = PINGROUP(21, qup10, prng_rosc, phase_flag,
105962306a36Sopenharmony_ci			_, qdss_gpio, _, _, _, _),
106062306a36Sopenharmony_ci	[22] = PINGROUP(22, qup11, qup12, phase_flag, _,
106162306a36Sopenharmony_ci			qdss_gpio, _, _, _, _),
106262306a36Sopenharmony_ci	[23] = PINGROUP(23, qup11, qup12, phase_flag, _,
106362306a36Sopenharmony_ci			qdss_gpio, _, _, _, _),
106462306a36Sopenharmony_ci	[24] = PINGROUP(24, qup12, qup11, phase_flag, _,
106562306a36Sopenharmony_ci			qdss_gpio, _, _, _, _),
106662306a36Sopenharmony_ci	[25] = PINGROUP(25, qup12, qup11, phase_flag, _,
106762306a36Sopenharmony_ci			qdss_gpio, _, _, _, _),
106862306a36Sopenharmony_ci	[26] = PINGROUP(26, qup13, qup14, intr_c,
106962306a36Sopenharmony_ci			phase_flag, _, qdss_gpio, _, _, _),
107062306a36Sopenharmony_ci	[27] = PINGROUP(27, qup13, qup14, intr_c,
107162306a36Sopenharmony_ci			phase_flag, _, qdss_gpio, _, _, _),
107262306a36Sopenharmony_ci	[28] = PINGROUP(28, qup14, qup13, intr_c,
107362306a36Sopenharmony_ci			phase_flag, _, qdss_gpio, _, _, _),
107462306a36Sopenharmony_ci	[29] = PINGROUP(29, qup14, qup13, qup16,
107562306a36Sopenharmony_ci			phase_flag, _, qdss_gpio, _, _, _),
107662306a36Sopenharmony_ci	[30] = PINGROUP(30, qup17, qup15, tmess_prng3,
107762306a36Sopenharmony_ci			phase_flag, _, qdss_gpio, _, _, _),
107862306a36Sopenharmony_ci	[31] = PINGROUP(31, qup17, qup15, tmess_prng2,
107962306a36Sopenharmony_ci			phase_flag, _, qdss_gpio, _, _, _),
108062306a36Sopenharmony_ci	[32] = PINGROUP(32, qup15, tmess_prng1, phase_flag,
108162306a36Sopenharmony_ci			_, qdss_gpio, _, _, _, _),
108262306a36Sopenharmony_ci	[33] = PINGROUP(33, qup15, tmess_prng0, phase_flag,
108362306a36Sopenharmony_ci			_, qdss_gpio, _, _, _, _),
108462306a36Sopenharmony_ci	[34] = PINGROUP(34, qup16, qdss_gpio, _, _, _, _, _, _, _),
108562306a36Sopenharmony_ci	[35] = PINGROUP(35, qup16, qdss_gpio, _, _, _, _, _, _, _),
108662306a36Sopenharmony_ci	[36] = PINGROUP(36, qup16, qdss_cti, _, _, _, _, _, _, _),
108762306a36Sopenharmony_ci	[37] = PINGROUP(37, qup16, qdss_cti, _, _, _, _, _, _, _),
108862306a36Sopenharmony_ci	[38] = PINGROUP(38, qup16, qdss_cti, _, _, _, _, _, _, _),
108962306a36Sopenharmony_ci	[39] = PINGROUP(39, qup16, qdss_cti, _, _, _, _, _, _, _),
109062306a36Sopenharmony_ci	[40] = PINGROUP(40, qup17, qdss_cti, _, _, _, _, _, _, _),
109162306a36Sopenharmony_ci	[41] = PINGROUP(41, qup17, qdss_cti, _, _, _, _, _, _, _),
109262306a36Sopenharmony_ci	[42] = PINGROUP(42, usb_con_det, phase_flag, _,
109362306a36Sopenharmony_ci			qdss_gpio, _, _, _, _, _),
109462306a36Sopenharmony_ci	[43] = PINGROUP(43, usb_dfp_en, phase_flag, _,
109562306a36Sopenharmony_ci			qdss_gpio, _, _, _, _, _),
109662306a36Sopenharmony_ci	[44] = PINGROUP(44, si5518_int, tgu_ch4, _, _, _, _, _, _, _),
109762306a36Sopenharmony_ci	[45] = PINGROUP(45, tgu_ch5, _, _, _, _, _, _, _, _),
109862306a36Sopenharmony_ci	[46] = PINGROUP(46, tgu_ch6, _, _, _, _, _, _, _, _),
109962306a36Sopenharmony_ci	[47] = PINGROUP(47, hardsync_pps_in, tgu_ch7, _, _, _, _, _, _, _),
110062306a36Sopenharmony_ci	[48] = PINGROUP(48, tod_pps_in, qdss_cti, _, _, _, _, _, _, _),
110162306a36Sopenharmony_ci	[49] = PINGROUP(49, gps_pps_in, qdss_cti, _, _, _, _, _, _, _),
110262306a36Sopenharmony_ci	[50] = PINGROUP(50, _, _, _, _, _, _, _, _, _),
110362306a36Sopenharmony_ci	[51] = PINGROUP(51, _, _, _, _, _, _, _, _, _),
110462306a36Sopenharmony_ci	[52] = PINGROUP(52, _, _, _, _, _, _, _, _, _),
110562306a36Sopenharmony_ci	[53] = PINGROUP(53, _, _, _, _, _, _, _, _, _),
110662306a36Sopenharmony_ci	[54] = PINGROUP(54, _, _, _, _, _, _, _, _, _),
110762306a36Sopenharmony_ci	[55] = PINGROUP(55, _, _, _, _, _, _, _, _, _),
110862306a36Sopenharmony_ci	[56] = PINGROUP(56, _, qlink6_wmss, _, _, _, _, _, _, _),
110962306a36Sopenharmony_ci	[57] = PINGROUP(57, _, qlink7_wmss, _, _, _, _, _, _, _),
111062306a36Sopenharmony_ci	[58] = PINGROUP(58, _, _, _, _, _, _, _, _, _),
111162306a36Sopenharmony_ci	[59] = PINGROUP(59, _, _, _, _, _, _, _, _, _),
111262306a36Sopenharmony_ci	[60] = PINGROUP(60, _, _, _, _, _, _, _, _, _),
111362306a36Sopenharmony_ci	[61] = PINGROUP(61, _, _, _, _, _, _, _, _, _),
111462306a36Sopenharmony_ci	[62] = PINGROUP(62, _, _, _, _, _, _, _, _, _),
111562306a36Sopenharmony_ci	[63] = PINGROUP(63, _, _, _, _, _, _, _, _, _),
111662306a36Sopenharmony_ci	[64] = PINGROUP(64, _, _, _, _, _, _, _, _, _),
111762306a36Sopenharmony_ci	[65] = PINGROUP(65, _, _, _, _, _, _, _, _, _),
111862306a36Sopenharmony_ci	[66] = PINGROUP(66, qlink0_request, _, _, _, _, _, _, _, _),
111962306a36Sopenharmony_ci	[67] = PINGROUP(67, qlink0_enable, _, _, _, _, _, _, _, _),
112062306a36Sopenharmony_ci	[68] = PINGROUP(68, qlink1_request, _, _, _, _, _, _, _, _),
112162306a36Sopenharmony_ci	[69] = PINGROUP(69, qlink1_enable, _, _, _, _, _, _, _, _),
112262306a36Sopenharmony_ci	[70] = PINGROUP(70, qlink2_request, _, _, _, _, _, _, _, _),
112362306a36Sopenharmony_ci	[71] = PINGROUP(71, qlink2_enable, _, _, _, _, _, _, _, _),
112462306a36Sopenharmony_ci	[72] = PINGROUP(72, qlink3_request, _, _, _, _, _, _, _, _),
112562306a36Sopenharmony_ci	[73] = PINGROUP(73, qlink3_enable, _, _, _, _, _, _, _, _),
112662306a36Sopenharmony_ci	[74] = PINGROUP(74, qlink4_request, _, _, _, _, _, _, _, _),
112762306a36Sopenharmony_ci	[75] = PINGROUP(75, qlink4_enable, _, _, _, _, _, _, _, _),
112862306a36Sopenharmony_ci	[76] = PINGROUP(76, qlink5_request, _, _, _, _, _, _, _, _),
112962306a36Sopenharmony_ci	[77] = PINGROUP(77, qlink5_enable, _, _, _, _, _, _, _, _),
113062306a36Sopenharmony_ci	[78] = PINGROUP(78, qlink6_request, _, _, _, _, _, _, _, _),
113162306a36Sopenharmony_ci	[79] = PINGROUP(79, qlink6_enable, _, _, _, _, _, _, _, _),
113262306a36Sopenharmony_ci	[80] = PINGROUP(80, qlink7_request, _, _, _, _, _, _, _, _),
113362306a36Sopenharmony_ci	[81] = PINGROUP(81, qlink7_enable, _, _, _, _, _, _, _, _),
113462306a36Sopenharmony_ci	[82] = PINGROUP(82, qlink0_wmss, _, _, _, _, _, _, _, _),
113562306a36Sopenharmony_ci	[83] = PINGROUP(83, qlink1_wmss, _, _, _, _, _, _, _, _),
113662306a36Sopenharmony_ci	[84] = PINGROUP(84, qlink4_wmss, _, _, _, _, _, _, _, _),
113762306a36Sopenharmony_ci	[85] = PINGROUP(85, qlink5_wmss, _, _, _, _, _, _, _, _),
113862306a36Sopenharmony_ci	[86] = PINGROUP(86, eth012_int_n, gcc_gp1, _, qdss_cti, _, _, _, _, _),
113962306a36Sopenharmony_ci	[87] = PINGROUP(87, eth345_int_n, gcc_gp2, _, qdss_cti, _, _, _, _, _),
114062306a36Sopenharmony_ci	[88] = PINGROUP(88, eth6_int_n, smb_alert, gcc_gp3, _,
114162306a36Sopenharmony_ci			qdss_gpio, _, _, _, _),
114262306a36Sopenharmony_ci	[89] = PINGROUP(89, phase_flag, cmu_rng, _,
114362306a36Sopenharmony_ci			qdss_gpio, atest_char, _, _, _, _),
114462306a36Sopenharmony_ci	[90] = PINGROUP(90, usb2phy_ac, phase_flag,
114562306a36Sopenharmony_ci			cmu_rng, _, qdss_gpio,
114662306a36Sopenharmony_ci			atest_char, _, _, _),
114762306a36Sopenharmony_ci	[91] = PINGROUP(91, usb_phy, phase_flag, cmu_rng,
114862306a36Sopenharmony_ci			_, qdss_gpio, atest_char, _, _, _),
114962306a36Sopenharmony_ci	[92] = PINGROUP(92, phase_flag, cmu_rng, _,
115062306a36Sopenharmony_ci			qdss_gpio, atest_char, _, _, _, _),
115162306a36Sopenharmony_ci	[93] = PINGROUP(93, vfr_0, qdss_cti, _, _, _, _, _, _, _),
115262306a36Sopenharmony_ci	[94] = PINGROUP(94, vfr_1, qdss_cti, _, _, _, _, _, _, _),
115362306a36Sopenharmony_ci	[95] = PINGROUP(95, phase_flag, _, qdss_gpio,
115462306a36Sopenharmony_ci			atest_char, _, _, _, _, _),
115562306a36Sopenharmony_ci	[96] = PINGROUP(96, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
115662306a36Sopenharmony_ci	[97] = PINGROUP(97, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
115762306a36Sopenharmony_ci	[98] = PINGROUP(98, pll_clk, _, _, _, _, _, _, _, _),
115862306a36Sopenharmony_ci	[99] = PINGROUP(99, pcie_clkreqn, char_exec, _, _, _, _, _, _, _),
115962306a36Sopenharmony_ci	[100] = PINGROUP(100, char_exec, _, _, _, _, _, _, _, _),
116062306a36Sopenharmony_ci	[101] = PINGROUP(101, smb_alert, _, _, _, _, _, _, _, _),
116162306a36Sopenharmony_ci	[102] = PINGROUP(102, phase_flag, _, qdss_gpio, _, _, _, _, _, _),
116262306a36Sopenharmony_ci	[103] = PINGROUP(103, cmo_pri, qdss_gpio, _, _, _, _, _, _, _),
116362306a36Sopenharmony_ci	[104] = PINGROUP(104, _, _, _, _, _, _, _, _, _),
116462306a36Sopenharmony_ci	[105] = PINGROUP(105, _, _, _, _, _, _, _, _, _),
116562306a36Sopenharmony_ci	[106] = PINGROUP(106, _, _, _, _, _, _, _, _, _),
116662306a36Sopenharmony_ci	[107] = PINGROUP(107, _, _, _, _, _, _, _, _, _),
116762306a36Sopenharmony_ci	[108] = PINGROUP(108, _, _, _, _, _, _, _, _, _),
116862306a36Sopenharmony_ci	[109] = PINGROUP(109, _, _, _, _, _, _, _, _, _),
116962306a36Sopenharmony_ci	[110] = PINGROUP(110, _, _, _, _, _, _, _, _, _),
117062306a36Sopenharmony_ci	[111] = PINGROUP(111, _, _, _, _, _, _, _, _, _),
117162306a36Sopenharmony_ci	[112] = PINGROUP(112, _, _, _, _, _, _, _, _, _),
117262306a36Sopenharmony_ci	[113] = PINGROUP(113, _, _, _, _, _, _, _, _, _),
117362306a36Sopenharmony_ci	[114] = PINGROUP(114, qspi0, tb_trig, _,
117462306a36Sopenharmony_ci			 atest_usb, ddr_pxi0, _, _, _, _),
117562306a36Sopenharmony_ci	[115] = PINGROUP(115, qspi1, _, atest_usb,
117662306a36Sopenharmony_ci			 ddr_pxi0, _, _, _, _, _),
117762306a36Sopenharmony_ci	[116] = PINGROUP(116, qspi2, _, atest_usb,
117862306a36Sopenharmony_ci			 ddr_pxi1, _, _, _, _, _),
117962306a36Sopenharmony_ci	[117] = PINGROUP(117, qspi3, _, atest_usb,
118062306a36Sopenharmony_ci			 ddr_pxi1, _, _, _, _, _),
118162306a36Sopenharmony_ci	[118] = PINGROUP(118, _, atest_usb, ddr_pxi2, _, _, _, _, _, _),
118262306a36Sopenharmony_ci	[119] = PINGROUP(119, _, _, ddr_pxi2, _, _, _, _, _, _),
118362306a36Sopenharmony_ci	[120] = PINGROUP(120, _, _, ddr_pxi3, _, _, _, _, _, _),
118462306a36Sopenharmony_ci	[121] = PINGROUP(121, _, ddr_pxi3, _, _, _, _, _, _, _),
118562306a36Sopenharmony_ci	[122] = PINGROUP(122, _, ddr_pxi4, _, _, _, _, _, _, _),
118662306a36Sopenharmony_ci	[123] = PINGROUP(123, _, ddr_pxi4, _, _, _, _, _, _, _),
118762306a36Sopenharmony_ci	[124] = PINGROUP(124, _, ddr_pxi5, _, _, _, _, _, _, _),
118862306a36Sopenharmony_ci	[125] = PINGROUP(125, qspi_cs, _, ddr_pxi5, _, _, _, _, _, _),
118962306a36Sopenharmony_ci	[126] = PINGROUP(126, qspi_clk, _, ddr_pxi6, _, _, _, _, _, _),
119062306a36Sopenharmony_ci	[127] = PINGROUP(127, _, ddr_pxi6, _, _, _, _, _, _, _),
119162306a36Sopenharmony_ci	[128] = PINGROUP(128, qup22, _, ddr_pxi7, _, _, _, _, _, _),
119262306a36Sopenharmony_ci	[129] = PINGROUP(129, qup22, ddr_pxi7, _, _, _, _, _, _, _),
119362306a36Sopenharmony_ci	[130] = PINGROUP(130, qup05, qup06, jitter_bist_ref,
119462306a36Sopenharmony_ci			 qdss_cti, _, _, _, _, _),
119562306a36Sopenharmony_ci	[131] = PINGROUP(131, qup05, qup06, qdss_cti, _, _, _, _, _, _),
119662306a36Sopenharmony_ci	[132] = PINGROUP(132, qup06, qup05, smb_dat,
119762306a36Sopenharmony_ci			 qdss_cti, _, _, _, _, _),
119862306a36Sopenharmony_ci	[133] = PINGROUP(133, qup06, qup05, smb_clk,
119962306a36Sopenharmony_ci			 qdss_cti, _, _, _, _, _),
120062306a36Sopenharmony_ci	[134] = PINGROUP(134, qup08, qup07, gcc_gp1, _,
120162306a36Sopenharmony_ci			 qdss_cti, _, _, _, _),
120262306a36Sopenharmony_ci	[135] = PINGROUP(135, qup08, qup07, gcc_gp2, _,
120362306a36Sopenharmony_ci			 qdss_cti, vsense_trigger, _, _, _),
120462306a36Sopenharmony_ci	[136] = PINGROUP(136, gcc_gp3, dbg_out_clk, _, _, _, _, _, _, _),
120562306a36Sopenharmony_ci	[137] = PINGROUP(137, _, _, _, _, _, _, _, _, _),
120662306a36Sopenharmony_ci	[138] = PINGROUP(138, qlink2_wmss, _, _, _, _, _, _, _, _),
120762306a36Sopenharmony_ci	[139] = PINGROUP(139, qlink3_wmss, _, _, _, _, _, _, _, _),
120862306a36Sopenharmony_ci	[140] = PINGROUP(140, _, _, _, _, _, _, _, _, _),
120962306a36Sopenharmony_ci	[141] = PINGROUP(141, intr_c, _, _, _, _, _, _, _, _),
121062306a36Sopenharmony_ci	[142] = PINGROUP(142, intr_c, _, _, _, _, _, _, _, _),
121162306a36Sopenharmony_ci	[143] = PINGROUP(143, intr_c, _, _, _, _, _, _, _, _),
121262306a36Sopenharmony_ci	[144] = PINGROUP(144, qdss_cti, _, _, _, _, _, _, _, _),
121362306a36Sopenharmony_ci	[145] = PINGROUP(145, qdss_cti, _, _, _, _, _, _, _, _),
121462306a36Sopenharmony_ci	[146] = PINGROUP(146, _, _, _, _, _, _, _, _, _),
121562306a36Sopenharmony_ci	[147] = PINGROUP(147, _, _, _, _, _, _, _, _, _),
121662306a36Sopenharmony_ci	[148] = PINGROUP(148, _, _, _, _, _, _, _, _, _),
121762306a36Sopenharmony_ci	[149] = PINGROUP(149, _, _, _, _, _, _, _, _, _),
121862306a36Sopenharmony_ci	[150] = PINGROUP(150, _, _, _, _, _, _, _, _, _),
121962306a36Sopenharmony_ci	[151] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x9e000, 0, 0),
122062306a36Sopenharmony_ci	[152] = SDC_QDSD_PINGROUP(sdc1_clk, 0x9d000, 13, 6),
122162306a36Sopenharmony_ci	[153] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x9d000, 11, 3),
122262306a36Sopenharmony_ci	[154] = SDC_QDSD_PINGROUP(sdc1_data, 0x9d000, 9, 0),
122362306a36Sopenharmony_ci};
122462306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data qdu1000_tlmm = {
122562306a36Sopenharmony_ci	.pins = qdu1000_pins,
122662306a36Sopenharmony_ci	.npins = ARRAY_SIZE(qdu1000_pins),
122762306a36Sopenharmony_ci	.functions = qdu1000_functions,
122862306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(qdu1000_functions),
122962306a36Sopenharmony_ci	.groups = qdu1000_groups,
123062306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(qdu1000_groups),
123162306a36Sopenharmony_ci	.ngpios = 151,
123262306a36Sopenharmony_ci};
123362306a36Sopenharmony_ci
123462306a36Sopenharmony_cistatic int qdu1000_tlmm_probe(struct platform_device *pdev)
123562306a36Sopenharmony_ci{
123662306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, &qdu1000_tlmm);
123762306a36Sopenharmony_ci}
123862306a36Sopenharmony_ci
123962306a36Sopenharmony_cistatic const struct of_device_id qdu1000_tlmm_of_match[] = {
124062306a36Sopenharmony_ci	{ .compatible = "qcom,qdu1000-tlmm", },
124162306a36Sopenharmony_ci	{ },
124262306a36Sopenharmony_ci};
124362306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, qdu1000_tlmm_of_match);
124462306a36Sopenharmony_ci
124562306a36Sopenharmony_cistatic struct platform_driver qdu1000_tlmm_driver = {
124662306a36Sopenharmony_ci	.driver = {
124762306a36Sopenharmony_ci		.name = "qdu1000-tlmm",
124862306a36Sopenharmony_ci		.of_match_table = qdu1000_tlmm_of_match,
124962306a36Sopenharmony_ci	},
125062306a36Sopenharmony_ci	.probe = qdu1000_tlmm_probe,
125162306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
125262306a36Sopenharmony_ci};
125362306a36Sopenharmony_ci
125462306a36Sopenharmony_cistatic int __init qdu1000_tlmm_init(void)
125562306a36Sopenharmony_ci{
125662306a36Sopenharmony_ci	return platform_driver_register(&qdu1000_tlmm_driver);
125762306a36Sopenharmony_ci}
125862306a36Sopenharmony_ciarch_initcall(qdu1000_tlmm_init);
125962306a36Sopenharmony_ci
126062306a36Sopenharmony_cistatic void __exit qdu1000_tlmm_exit(void)
126162306a36Sopenharmony_ci{
126262306a36Sopenharmony_ci	platform_driver_unregister(&qdu1000_tlmm_driver);
126362306a36Sopenharmony_ci}
126462306a36Sopenharmony_cimodule_exit(qdu1000_tlmm_exit);
126562306a36Sopenharmony_ci
126662306a36Sopenharmony_ciMODULE_DESCRIPTION("QTI QDU1000 TLMM driver");
126762306a36Sopenharmony_ciMODULE_LICENSE("GPL");
1268