162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2019, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#include <linux/module.h>
762306a36Sopenharmony_ci#include <linux/of.h>
862306a36Sopenharmony_ci#include <linux/platform_device.h>
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#include "pinctrl-msm.h"
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_cistatic const char * const sm6115_tiles[] = {
1362306a36Sopenharmony_ci	"south",
1462306a36Sopenharmony_ci	"east",
1562306a36Sopenharmony_ci	"west"
1662306a36Sopenharmony_ci};
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_cienum {
1962306a36Sopenharmony_ci	SOUTH,
2062306a36Sopenharmony_ci	EAST,
2162306a36Sopenharmony_ci	WEST
2262306a36Sopenharmony_ci};
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9)	\
2562306a36Sopenharmony_ci	{						\
2662306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
2762306a36Sopenharmony_ci			gpio##id##_pins, 		\
2862306a36Sopenharmony_ci			ARRAY_SIZE(gpio##id##_pins)),	\
2962306a36Sopenharmony_ci		.funcs = (int[]){			\
3062306a36Sopenharmony_ci			msm_mux_gpio, /* gpio mode */	\
3162306a36Sopenharmony_ci			msm_mux_##f1,			\
3262306a36Sopenharmony_ci			msm_mux_##f2,			\
3362306a36Sopenharmony_ci			msm_mux_##f3,			\
3462306a36Sopenharmony_ci			msm_mux_##f4,			\
3562306a36Sopenharmony_ci			msm_mux_##f5,			\
3662306a36Sopenharmony_ci			msm_mux_##f6,			\
3762306a36Sopenharmony_ci			msm_mux_##f7,			\
3862306a36Sopenharmony_ci			msm_mux_##f8,			\
3962306a36Sopenharmony_ci			msm_mux_##f9			\
4062306a36Sopenharmony_ci		},					\
4162306a36Sopenharmony_ci		.nfuncs = 10,				\
4262306a36Sopenharmony_ci		.ctl_reg = 0x1000 * id,		\
4362306a36Sopenharmony_ci		.io_reg = 0x4 + 0x1000 * id,		\
4462306a36Sopenharmony_ci		.intr_cfg_reg = 0x8 + 0x1000 * id,	\
4562306a36Sopenharmony_ci		.intr_status_reg = 0xc + 0x1000 * id,	\
4662306a36Sopenharmony_ci		.intr_target_reg = 0x8 + 0x1000 * id,	\
4762306a36Sopenharmony_ci		.tile = _tile,			\
4862306a36Sopenharmony_ci		.mux_bit = 2,			\
4962306a36Sopenharmony_ci		.pull_bit = 0,			\
5062306a36Sopenharmony_ci		.drv_bit = 6,			\
5162306a36Sopenharmony_ci		.oe_bit = 9,			\
5262306a36Sopenharmony_ci		.in_bit = 0,			\
5362306a36Sopenharmony_ci		.out_bit = 1,			\
5462306a36Sopenharmony_ci		.intr_enable_bit = 0,		\
5562306a36Sopenharmony_ci		.intr_status_bit = 0,		\
5662306a36Sopenharmony_ci		.intr_target_bit = 5,		\
5762306a36Sopenharmony_ci		.intr_target_kpss_val = 3,	\
5862306a36Sopenharmony_ci		.intr_raw_status_bit = 4,	\
5962306a36Sopenharmony_ci		.intr_polarity_bit = 1,		\
6062306a36Sopenharmony_ci		.intr_detection_bit = 2,	\
6162306a36Sopenharmony_ci		.intr_detection_width = 2,	\
6262306a36Sopenharmony_ci	}
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci#define SDC_QDSD_PINGROUP(pg_name, _tile, ctl, pull, drv)	\
6562306a36Sopenharmony_ci	{						\
6662306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
6762306a36Sopenharmony_ci			pg_name##_pins, 		\
6862306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
6962306a36Sopenharmony_ci		.ctl_reg = ctl,				\
7062306a36Sopenharmony_ci		.io_reg = 0,				\
7162306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
7262306a36Sopenharmony_ci		.intr_status_reg = 0,			\
7362306a36Sopenharmony_ci		.intr_target_reg = 0,			\
7462306a36Sopenharmony_ci		.tile = _tile,				\
7562306a36Sopenharmony_ci		.mux_bit = -1,				\
7662306a36Sopenharmony_ci		.pull_bit = pull,			\
7762306a36Sopenharmony_ci		.drv_bit = drv,				\
7862306a36Sopenharmony_ci		.oe_bit = -1,				\
7962306a36Sopenharmony_ci		.in_bit = -1,				\
8062306a36Sopenharmony_ci		.out_bit = -1,				\
8162306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
8262306a36Sopenharmony_ci		.intr_status_bit = -1,			\
8362306a36Sopenharmony_ci		.intr_target_bit = -1,			\
8462306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
8562306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
8662306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
8762306a36Sopenharmony_ci		.intr_detection_width = -1,		\
8862306a36Sopenharmony_ci	}
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ci#define UFS_RESET(pg_name, offset)			\
9162306a36Sopenharmony_ci	{						\
9262306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
9362306a36Sopenharmony_ci			pg_name##_pins, 		\
9462306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
9562306a36Sopenharmony_ci		.ctl_reg = offset,			\
9662306a36Sopenharmony_ci		.io_reg = offset + 0x4,			\
9762306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
9862306a36Sopenharmony_ci		.intr_status_reg = 0,			\
9962306a36Sopenharmony_ci		.intr_target_reg = 0,			\
10062306a36Sopenharmony_ci		.tile = WEST,				\
10162306a36Sopenharmony_ci		.mux_bit = -1,				\
10262306a36Sopenharmony_ci		.pull_bit = 3,				\
10362306a36Sopenharmony_ci		.drv_bit = 0,				\
10462306a36Sopenharmony_ci		.oe_bit = -1,				\
10562306a36Sopenharmony_ci		.in_bit = -1,				\
10662306a36Sopenharmony_ci		.out_bit = 0,				\
10762306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
10862306a36Sopenharmony_ci		.intr_status_bit = -1,			\
10962306a36Sopenharmony_ci		.intr_target_bit = -1,			\
11062306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
11162306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
11262306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
11362306a36Sopenharmony_ci		.intr_detection_width = -1,		\
11462306a36Sopenharmony_ci	}
11562306a36Sopenharmony_cistatic const struct pinctrl_pin_desc sm6115_pins[] = {
11662306a36Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
11762306a36Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
11862306a36Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
11962306a36Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
12062306a36Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
12162306a36Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
12262306a36Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
12362306a36Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
12462306a36Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
12562306a36Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
12662306a36Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
12762306a36Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
12862306a36Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
12962306a36Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
13062306a36Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
13162306a36Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
13262306a36Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
13362306a36Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
13462306a36Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
13562306a36Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
13662306a36Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
13762306a36Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
13862306a36Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
13962306a36Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
14062306a36Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
14162306a36Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
14262306a36Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
14362306a36Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
14462306a36Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
14562306a36Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
14662306a36Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
14762306a36Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
14862306a36Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
14962306a36Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
15062306a36Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
15162306a36Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
15262306a36Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
15362306a36Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
15462306a36Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
15562306a36Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
15662306a36Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
15762306a36Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
15862306a36Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
15962306a36Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
16062306a36Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
16162306a36Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
16262306a36Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
16362306a36Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
16462306a36Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
16562306a36Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
16662306a36Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
16762306a36Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
16862306a36Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
16962306a36Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
17062306a36Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
17162306a36Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
17262306a36Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
17362306a36Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
17462306a36Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
17562306a36Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
17662306a36Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
17762306a36Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
17862306a36Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
17962306a36Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
18062306a36Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
18162306a36Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
18262306a36Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
18362306a36Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
18462306a36Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
18562306a36Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
18662306a36Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
18762306a36Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
18862306a36Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
18962306a36Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
19062306a36Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
19162306a36Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
19262306a36Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
19362306a36Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
19462306a36Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
19562306a36Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
19662306a36Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
19762306a36Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
19862306a36Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
19962306a36Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
20062306a36Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
20162306a36Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
20262306a36Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
20362306a36Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
20462306a36Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
20562306a36Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
20662306a36Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
20762306a36Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
20862306a36Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
20962306a36Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
21062306a36Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
21162306a36Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
21262306a36Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
21362306a36Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
21462306a36Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
21562306a36Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
21662306a36Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
21762306a36Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
21862306a36Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
21962306a36Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
22062306a36Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
22162306a36Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
22262306a36Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
22362306a36Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
22462306a36Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
22562306a36Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
22662306a36Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
22762306a36Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
22862306a36Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
22962306a36Sopenharmony_ci	PINCTRL_PIN(113, "UFS_RESET"),
23062306a36Sopenharmony_ci	PINCTRL_PIN(114, "SDC1_RCLK"),
23162306a36Sopenharmony_ci	PINCTRL_PIN(115, "SDC1_CLK"),
23262306a36Sopenharmony_ci	PINCTRL_PIN(116, "SDC1_CMD"),
23362306a36Sopenharmony_ci	PINCTRL_PIN(117, "SDC1_DATA"),
23462306a36Sopenharmony_ci	PINCTRL_PIN(118, "SDC2_CLK"),
23562306a36Sopenharmony_ci	PINCTRL_PIN(119, "SDC2_CMD"),
23662306a36Sopenharmony_ci	PINCTRL_PIN(120, "SDC2_DATA"),
23762306a36Sopenharmony_ci};
23862306a36Sopenharmony_ci
23962306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \
24062306a36Sopenharmony_ci	static const unsigned int gpio##pin##_pins[] = { pin }
24162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0);
24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1);
24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2);
24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3);
24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4);
24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5);
24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6);
24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7);
24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8);
25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9);
25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10);
25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11);
25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12);
25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13);
25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14);
25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15);
25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16);
25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17);
25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18);
26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19);
26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20);
26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21);
26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22);
26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23);
26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24);
26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25);
26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26);
26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27);
26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28);
27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29);
27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30);
27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31);
27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32);
27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33);
27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34);
27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35);
27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36);
27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37);
27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38);
28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39);
28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40);
28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41);
28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42);
28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43);
28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44);
28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45);
28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46);
28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47);
28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48);
29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49);
29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50);
29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51);
29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52);
29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53);
29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54);
29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55);
29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56);
29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57);
29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58);
30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59);
30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60);
30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61);
30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62);
30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63);
30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64);
30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65);
30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66);
30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67);
30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68);
31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69);
31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70);
31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71);
31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72);
31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73);
31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74);
31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75);
31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76);
31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77);
31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78);
32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79);
32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80);
32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81);
32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82);
32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83);
32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84);
32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85);
32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86);
32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87);
32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88);
33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89);
33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90);
33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91);
33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92);
33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93);
33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94);
33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95);
33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96);
33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97);
33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98);
34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99);
34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100);
34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101);
34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102);
34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103);
34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104);
34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105);
34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106);
34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107);
34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108);
35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109);
35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110);
35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111);
35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112);
35462306a36Sopenharmony_ci
35562306a36Sopenharmony_cistatic const unsigned int ufs_reset_pins[] = { 113 };
35662306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 114 };
35762306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 115 };
35862306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 116 };
35962306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 117 };
36062306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 118 };
36162306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 119 };
36262306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 120 };
36362306a36Sopenharmony_ci
36462306a36Sopenharmony_cienum sm6115_functions {
36562306a36Sopenharmony_ci	msm_mux_adsp_ext,
36662306a36Sopenharmony_ci	msm_mux_agera_pll,
36762306a36Sopenharmony_ci	msm_mux_atest,
36862306a36Sopenharmony_ci	msm_mux_cam_mclk,
36962306a36Sopenharmony_ci	msm_mux_cci_async,
37062306a36Sopenharmony_ci	msm_mux_cci_i2c,
37162306a36Sopenharmony_ci	msm_mux_cci_timer,
37262306a36Sopenharmony_ci	msm_mux_cri_trng,
37362306a36Sopenharmony_ci	msm_mux_dac_calib,
37462306a36Sopenharmony_ci	msm_mux_dbg_out,
37562306a36Sopenharmony_ci	msm_mux_ddr_bist,
37662306a36Sopenharmony_ci	msm_mux_ddr_pxi0,
37762306a36Sopenharmony_ci	msm_mux_ddr_pxi1,
37862306a36Sopenharmony_ci	msm_mux_ddr_pxi2,
37962306a36Sopenharmony_ci	msm_mux_ddr_pxi3,
38062306a36Sopenharmony_ci	msm_mux_gcc_gp1,
38162306a36Sopenharmony_ci	msm_mux_gcc_gp2,
38262306a36Sopenharmony_ci	msm_mux_gcc_gp3,
38362306a36Sopenharmony_ci	msm_mux_gpio,
38462306a36Sopenharmony_ci	msm_mux_gp_pdm0,
38562306a36Sopenharmony_ci	msm_mux_gp_pdm1,
38662306a36Sopenharmony_ci	msm_mux_gp_pdm2,
38762306a36Sopenharmony_ci	msm_mux_gsm0_tx,
38862306a36Sopenharmony_ci	msm_mux_gsm1_tx,
38962306a36Sopenharmony_ci	msm_mux_jitter_bist,
39062306a36Sopenharmony_ci	msm_mux_mdp_vsync,
39162306a36Sopenharmony_ci	msm_mux_mdp_vsync_out_0,
39262306a36Sopenharmony_ci	msm_mux_mdp_vsync_out_1,
39362306a36Sopenharmony_ci	msm_mux_mpm_pwr,
39462306a36Sopenharmony_ci	msm_mux_mss_lte,
39562306a36Sopenharmony_ci	msm_mux_m_voc,
39662306a36Sopenharmony_ci	msm_mux_nav_gpio,
39762306a36Sopenharmony_ci	msm_mux_pa_indicator,
39862306a36Sopenharmony_ci	msm_mux_pbs,
39962306a36Sopenharmony_ci	msm_mux_pbs_out,
40062306a36Sopenharmony_ci	msm_mux_phase_flag,
40162306a36Sopenharmony_ci	msm_mux_pll_bist,
40262306a36Sopenharmony_ci	msm_mux_pll_bypassnl,
40362306a36Sopenharmony_ci	msm_mux_pll_reset,
40462306a36Sopenharmony_ci	msm_mux_prng_rosc,
40562306a36Sopenharmony_ci	msm_mux_qdss_cti,
40662306a36Sopenharmony_ci	msm_mux_qdss_gpio,
40762306a36Sopenharmony_ci	msm_mux_qup0,
40862306a36Sopenharmony_ci	msm_mux_qup1,
40962306a36Sopenharmony_ci	msm_mux_qup2,
41062306a36Sopenharmony_ci	msm_mux_qup3,
41162306a36Sopenharmony_ci	msm_mux_qup4,
41262306a36Sopenharmony_ci	msm_mux_qup5,
41362306a36Sopenharmony_ci	msm_mux_sdc1_tb,
41462306a36Sopenharmony_ci	msm_mux_sdc2_tb,
41562306a36Sopenharmony_ci	msm_mux_sd_write,
41662306a36Sopenharmony_ci	msm_mux_ssbi_wtr1,
41762306a36Sopenharmony_ci	msm_mux_tgu,
41862306a36Sopenharmony_ci	msm_mux_tsense_pwm,
41962306a36Sopenharmony_ci	msm_mux_uim1_clk,
42062306a36Sopenharmony_ci	msm_mux_uim1_data,
42162306a36Sopenharmony_ci	msm_mux_uim1_present,
42262306a36Sopenharmony_ci	msm_mux_uim1_reset,
42362306a36Sopenharmony_ci	msm_mux_uim2_clk,
42462306a36Sopenharmony_ci	msm_mux_uim2_data,
42562306a36Sopenharmony_ci	msm_mux_uim2_present,
42662306a36Sopenharmony_ci	msm_mux_uim2_reset,
42762306a36Sopenharmony_ci	msm_mux_usb_phy,
42862306a36Sopenharmony_ci	msm_mux_vfr_1,
42962306a36Sopenharmony_ci	msm_mux_vsense_trigger,
43062306a36Sopenharmony_ci	msm_mux_wlan1_adc0,
43162306a36Sopenharmony_ci	msm_mux_wlan1_adc1,
43262306a36Sopenharmony_ci	msm_mux__,
43362306a36Sopenharmony_ci};
43462306a36Sopenharmony_ci
43562306a36Sopenharmony_cistatic const char * const qup0_groups[] = {
43662306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio82", "gpio86",
43762306a36Sopenharmony_ci};
43862306a36Sopenharmony_cistatic const char * const gpio_groups[] = {
43962306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
44062306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
44162306a36Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
44262306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
44362306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
44462306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
44562306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
44662306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
44762306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
44862306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
44962306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
45062306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
45162306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
45262306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
45362306a36Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
45462306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
45562306a36Sopenharmony_ci	"gpio111", "gpio112",
45662306a36Sopenharmony_ci};
45762306a36Sopenharmony_cistatic const char * const ddr_bist_groups[] = {
45862306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
45962306a36Sopenharmony_ci};
46062306a36Sopenharmony_cistatic const char * const phase_flag_groups[] = {
46162306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6",
46262306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio16", "gpio17", "gpio22", "gpio23", "gpio24",
46362306a36Sopenharmony_ci	"gpio25", "gpio26", "gpio29", "gpio30", "gpio31", "gpio32", "gpio33",
46462306a36Sopenharmony_ci	"gpio35", "gpio36", "gpio43", "gpio44", "gpio45", "gpio63", "gpio64",
46562306a36Sopenharmony_ci	"gpio102", "gpio103", "gpio104", "gpio105",
46662306a36Sopenharmony_ci};
46762306a36Sopenharmony_cistatic const char * const qdss_gpio_groups[] = {
46862306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio8", "gpio9", "gpio10",
46962306a36Sopenharmony_ci	"gpio11", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19",
47062306a36Sopenharmony_ci	"gpio20", "gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26",
47162306a36Sopenharmony_ci	"gpio47", "gpio48", "gpio69", "gpio70", "gpio87", "gpio90", "gpio91",
47262306a36Sopenharmony_ci	"gpio94", "gpio95", "gpio104", "gpio105", "gpio106", "gpio107",
47362306a36Sopenharmony_ci	"gpio109", "gpio110",
47462306a36Sopenharmony_ci};
47562306a36Sopenharmony_cistatic const char * const atest_groups[] = {
47662306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6",
47762306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio29", "gpio30",
47862306a36Sopenharmony_ci	"gpio31", "gpio32", "gpio33", "gpio86", "gpio87", "gpio88", "gpio89",
47962306a36Sopenharmony_ci	"gpio100", "gpio101",
48062306a36Sopenharmony_ci};
48162306a36Sopenharmony_cistatic const char * const mpm_pwr_groups[] = {
48262306a36Sopenharmony_ci	"gpio1",
48362306a36Sopenharmony_ci};
48462306a36Sopenharmony_cistatic const char * const m_voc_groups[] = {
48562306a36Sopenharmony_ci	"gpio0",
48662306a36Sopenharmony_ci};
48762306a36Sopenharmony_cistatic const char * const dac_calib_groups[] = {
48862306a36Sopenharmony_ci	"gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio14", "gpio15",
48962306a36Sopenharmony_ci	"gpio16", "gpio17", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26",
49062306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio80", "gpio81",
49162306a36Sopenharmony_ci	"gpio82", "gpio102", "gpio103", "gpio104", "gpio105"
49262306a36Sopenharmony_ci};
49362306a36Sopenharmony_cistatic const char * const qup1_groups[] = {
49462306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio69", "gpio70",
49562306a36Sopenharmony_ci};
49662306a36Sopenharmony_cistatic const char * const cri_trng_groups[] = {
49762306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio18",
49862306a36Sopenharmony_ci};
49962306a36Sopenharmony_cistatic const char * const qup2_groups[] = {
50062306a36Sopenharmony_ci	"gpio6", "gpio7", "gpio71", "gpio80",
50162306a36Sopenharmony_ci};
50262306a36Sopenharmony_cistatic const char * const qup3_groups[] = {
50362306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11",
50462306a36Sopenharmony_ci};
50562306a36Sopenharmony_cistatic const char * const pbs_out_groups[] = {
50662306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio52",
50762306a36Sopenharmony_ci};
50862306a36Sopenharmony_cistatic const char * const pll_bist_groups[] = {
50962306a36Sopenharmony_ci	"gpio8", "gpio9",
51062306a36Sopenharmony_ci};
51162306a36Sopenharmony_cistatic const char * const tsense_pwm_groups[] = {
51262306a36Sopenharmony_ci	"gpio8",
51362306a36Sopenharmony_ci};
51462306a36Sopenharmony_cistatic const char * const agera_pll_groups[] = {
51562306a36Sopenharmony_ci	"gpio10", "gpio11",
51662306a36Sopenharmony_ci};
51762306a36Sopenharmony_cistatic const char * const pbs_groups[] = {
51862306a36Sopenharmony_ci	"gpio10", "gpio11", "gpio18", "gpio19", "gpio20", "gpio21", "gpio22",
51962306a36Sopenharmony_ci	"gpio23", "gpio24", "gpio25", "gpio26", "gpio47", "gpio48", "gpio87",
52062306a36Sopenharmony_ci	"gpio90", "gpio91",
52162306a36Sopenharmony_ci};
52262306a36Sopenharmony_cistatic const char * const qup4_groups[] = {
52362306a36Sopenharmony_ci	"gpio12", "gpio13", "gpio96", "gpio97",
52462306a36Sopenharmony_ci};
52562306a36Sopenharmony_cistatic const char * const tgu_groups[] = {
52662306a36Sopenharmony_ci	"gpio12", "gpio13", "gpio14", "gpio15",
52762306a36Sopenharmony_ci};
52862306a36Sopenharmony_cistatic const char * const qup5_groups[] = {
52962306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio16", "gpio17",
53062306a36Sopenharmony_ci};
53162306a36Sopenharmony_cistatic const char * const sdc2_tb_groups[] = {
53262306a36Sopenharmony_ci	"gpio18",
53362306a36Sopenharmony_ci};
53462306a36Sopenharmony_cistatic const char * const sdc1_tb_groups[] = {
53562306a36Sopenharmony_ci	"gpio19",
53662306a36Sopenharmony_ci};
53762306a36Sopenharmony_cistatic const char * const cam_mclk_groups[] = {
53862306a36Sopenharmony_ci	"gpio20", "gpio21", "gpio27", "gpio28",
53962306a36Sopenharmony_ci};
54062306a36Sopenharmony_cistatic const char * const adsp_ext_groups[] = {
54162306a36Sopenharmony_ci	"gpio21",
54262306a36Sopenharmony_ci};
54362306a36Sopenharmony_cistatic const char * const cci_i2c_groups[] = {
54462306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio29", "gpio30",
54562306a36Sopenharmony_ci};
54662306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = {
54762306a36Sopenharmony_ci	"gpio22", "gpio23",
54862306a36Sopenharmony_ci};
54962306a36Sopenharmony_cistatic const char * const cci_timer_groups[] = {
55062306a36Sopenharmony_ci	"gpio24", "gpio25", "gpio28", "gpio32",
55162306a36Sopenharmony_ci};
55262306a36Sopenharmony_cistatic const char * const gcc_gp1_groups[] = {
55362306a36Sopenharmony_ci	"gpio24", "gpio86",
55462306a36Sopenharmony_ci};
55562306a36Sopenharmony_cistatic const char * const cci_async_groups[] = {
55662306a36Sopenharmony_ci	"gpio25",
55762306a36Sopenharmony_ci};
55862306a36Sopenharmony_cistatic const char * const vsense_trigger_groups[] = {
55962306a36Sopenharmony_ci	"gpio26",
56062306a36Sopenharmony_ci};
56162306a36Sopenharmony_cistatic const char * const qdss_cti_groups[] = {
56262306a36Sopenharmony_ci	"gpio27", "gpio28", "gpio72", "gpio73", "gpio96", "gpio97",
56362306a36Sopenharmony_ci};
56462306a36Sopenharmony_cistatic const char * const gp_pdm0_groups[] = {
56562306a36Sopenharmony_ci	"gpio31", "gpio95",
56662306a36Sopenharmony_ci};
56762306a36Sopenharmony_cistatic const char * const gp_pdm1_groups[] = {
56862306a36Sopenharmony_ci	"gpio32", "gpio96",
56962306a36Sopenharmony_ci};
57062306a36Sopenharmony_cistatic const char * const gp_pdm2_groups[] = {
57162306a36Sopenharmony_ci	"gpio33", "gpio97",
57262306a36Sopenharmony_ci};
57362306a36Sopenharmony_cistatic const char * const nav_gpio_groups[] = {
57462306a36Sopenharmony_ci	"gpio42", "gpio47", "gpio52", "gpio95", "gpio96", "gpio97", "gpio106",
57562306a36Sopenharmony_ci	"gpio107", "gpio108",
57662306a36Sopenharmony_ci};
57762306a36Sopenharmony_cistatic const char * const vfr_1_groups[] = {
57862306a36Sopenharmony_ci	"gpio48",
57962306a36Sopenharmony_ci};
58062306a36Sopenharmony_cistatic const char * const pa_indicator_groups[] = {
58162306a36Sopenharmony_ci	"gpio49",
58262306a36Sopenharmony_ci};
58362306a36Sopenharmony_cistatic const char * const gsm1_tx_groups[] = {
58462306a36Sopenharmony_ci	"gpio53",
58562306a36Sopenharmony_ci};
58662306a36Sopenharmony_cistatic const char * const ssbi_wtr1_groups[] = {
58762306a36Sopenharmony_ci	"gpio59", "gpio60",
58862306a36Sopenharmony_ci};
58962306a36Sopenharmony_cistatic const char * const pll_bypassnl_groups[] = {
59062306a36Sopenharmony_ci	"gpio62",
59162306a36Sopenharmony_ci};
59262306a36Sopenharmony_cistatic const char * const pll_reset_groups[] = {
59362306a36Sopenharmony_ci	"gpio63",
59462306a36Sopenharmony_ci};
59562306a36Sopenharmony_cistatic const char * const ddr_pxi0_groups[] = {
59662306a36Sopenharmony_ci	"gpio63", "gpio64",
59762306a36Sopenharmony_ci};
59862306a36Sopenharmony_cistatic const char * const gsm0_tx_groups[] = {
59962306a36Sopenharmony_ci	"gpio64",
60062306a36Sopenharmony_ci};
60162306a36Sopenharmony_cistatic const char * const gcc_gp2_groups[] = {
60262306a36Sopenharmony_ci	"gpio69", "gpio107",
60362306a36Sopenharmony_ci};
60462306a36Sopenharmony_cistatic const char * const ddr_pxi1_groups[] = {
60562306a36Sopenharmony_ci	"gpio69", "gpio70",
60662306a36Sopenharmony_ci};
60762306a36Sopenharmony_cistatic const char * const gcc_gp3_groups[] = {
60862306a36Sopenharmony_ci	"gpio70", "gpio106",
60962306a36Sopenharmony_ci};
61062306a36Sopenharmony_cistatic const char * const dbg_out_groups[] = {
61162306a36Sopenharmony_ci	"gpio71",
61262306a36Sopenharmony_ci};
61362306a36Sopenharmony_cistatic const char * const uim2_data_groups[] = {
61462306a36Sopenharmony_ci	"gpio72",
61562306a36Sopenharmony_ci};
61662306a36Sopenharmony_cistatic const char * const uim2_clk_groups[] = {
61762306a36Sopenharmony_ci	"gpio73",
61862306a36Sopenharmony_ci};
61962306a36Sopenharmony_cistatic const char * const uim2_reset_groups[] = {
62062306a36Sopenharmony_ci	"gpio74",
62162306a36Sopenharmony_ci};
62262306a36Sopenharmony_cistatic const char * const uim2_present_groups[] = {
62362306a36Sopenharmony_ci	"gpio75",
62462306a36Sopenharmony_ci};
62562306a36Sopenharmony_cistatic const char * const uim1_data_groups[] = {
62662306a36Sopenharmony_ci	"gpio76",
62762306a36Sopenharmony_ci};
62862306a36Sopenharmony_cistatic const char * const uim1_clk_groups[] = {
62962306a36Sopenharmony_ci	"gpio77",
63062306a36Sopenharmony_ci};
63162306a36Sopenharmony_cistatic const char * const uim1_reset_groups[] = {
63262306a36Sopenharmony_ci	"gpio78",
63362306a36Sopenharmony_ci};
63462306a36Sopenharmony_cistatic const char * const uim1_present_groups[] = {
63562306a36Sopenharmony_ci	"gpio79",
63662306a36Sopenharmony_ci};
63762306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
63862306a36Sopenharmony_ci	"gpio81", "gpio96", "gpio97",
63962306a36Sopenharmony_ci};
64062306a36Sopenharmony_cistatic const char * const mdp_vsync_out_0_groups[] = {
64162306a36Sopenharmony_ci	"gpio81",
64262306a36Sopenharmony_ci};
64362306a36Sopenharmony_cistatic const char * const mdp_vsync_out_1_groups[] = {
64462306a36Sopenharmony_ci	"gpio81",
64562306a36Sopenharmony_ci};
64662306a36Sopenharmony_cistatic const char * const usb_phy_groups[] = {
64762306a36Sopenharmony_ci	"gpio89",
64862306a36Sopenharmony_ci};
64962306a36Sopenharmony_cistatic const char * const mss_lte_groups[] = {
65062306a36Sopenharmony_ci	"gpio90", "gpio91",
65162306a36Sopenharmony_ci};
65262306a36Sopenharmony_cistatic const char * const wlan1_adc0_groups[] = {
65362306a36Sopenharmony_ci	"gpio94",
65462306a36Sopenharmony_ci};
65562306a36Sopenharmony_cistatic const char * const wlan1_adc1_groups[] = {
65662306a36Sopenharmony_ci	"gpio95",
65762306a36Sopenharmony_ci};
65862306a36Sopenharmony_cistatic const char * const sd_write_groups[] = {
65962306a36Sopenharmony_ci	"gpio96",
66062306a36Sopenharmony_ci};
66162306a36Sopenharmony_cistatic const char * const jitter_bist_groups[] = {
66262306a36Sopenharmony_ci	"gpio96", "gpio97",
66362306a36Sopenharmony_ci};
66462306a36Sopenharmony_cistatic const char * const ddr_pxi2_groups[] = {
66562306a36Sopenharmony_ci	"gpio102", "gpio103",
66662306a36Sopenharmony_ci};
66762306a36Sopenharmony_cistatic const char * const ddr_pxi3_groups[] = {
66862306a36Sopenharmony_ci	"gpio104", "gpio105",
66962306a36Sopenharmony_ci};
67062306a36Sopenharmony_ci
67162306a36Sopenharmony_cistatic const struct pinfunction sm6115_functions[] = {
67262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(adsp_ext),
67362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(agera_pll),
67462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest),
67562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk),
67662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_async),
67762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_i2c),
67862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer),
67962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng),
68062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dac_calib),
68162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dbg_out),
68262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_bist),
68362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi0),
68462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi1),
68562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi2),
68662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi3),
68762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1),
68862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2),
68962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3),
69062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
69162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm0),
69262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm1),
69362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm2),
69462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsm0_tx),
69562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsm1_tx),
69662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(jitter_bist),
69762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync),
69862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync_out_0),
69962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync_out_1),
70062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mpm_pwr),
70162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_lte),
70262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(m_voc),
70362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_gpio),
70462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pa_indicator),
70562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pbs),
70662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pbs_out),
70762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(phase_flag),
70862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_bist),
70962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_bypassnl),
71062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_reset),
71162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(prng_rosc),
71262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti),
71362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio),
71462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup0),
71562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup1),
71662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup2),
71762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup3),
71862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup4),
71962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup5),
72062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc1_tb),
72162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc2_tb),
72262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sd_write),
72362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi_wtr1),
72462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu),
72562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsense_pwm),
72662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_clk),
72762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_data),
72862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_present),
72962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_reset),
73062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_clk),
73162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_data),
73262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_present),
73362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_reset),
73462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_phy),
73562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfr_1),
73662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vsense_trigger),
73762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wlan1_adc0),
73862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wlan1_adc1),
73962306a36Sopenharmony_ci};
74062306a36Sopenharmony_ci
74162306a36Sopenharmony_ci/* Every pin is maintained as a single group, and missing or non-existing pin
74262306a36Sopenharmony_ci * would be maintained as dummy group to synchronize pin group index with
74362306a36Sopenharmony_ci * pin descriptor registered with pinctrl core.
74462306a36Sopenharmony_ci * Clients would not be able to request these dummy pin groups.
74562306a36Sopenharmony_ci */
74662306a36Sopenharmony_cistatic const struct msm_pingroup sm6115_groups[] = {
74762306a36Sopenharmony_ci	[0] = PINGROUP(0, WEST, qup0, m_voc, ddr_bist, _, phase_flag, qdss_gpio, atest, _, _),
74862306a36Sopenharmony_ci	[1] = PINGROUP(1, WEST, qup0, mpm_pwr, ddr_bist, _, phase_flag, qdss_gpio, atest, _, _),
74962306a36Sopenharmony_ci	[2] = PINGROUP(2, WEST, qup0, ddr_bist, _, phase_flag, qdss_gpio, dac_calib, atest, _, _),
75062306a36Sopenharmony_ci	[3] = PINGROUP(3, WEST, qup0, ddr_bist, _, phase_flag, qdss_gpio, dac_calib, atest, _, _),
75162306a36Sopenharmony_ci	[4] = PINGROUP(4, WEST, qup1, cri_trng, _, phase_flag, dac_calib, atest, _, _, _),
75262306a36Sopenharmony_ci	[5] = PINGROUP(5, WEST, qup1, cri_trng, _, phase_flag, dac_calib, atest, _, _, _),
75362306a36Sopenharmony_ci	[6] = PINGROUP(6, WEST, qup2, _, phase_flag, dac_calib, atest, _, _, _, _),
75462306a36Sopenharmony_ci	[7] = PINGROUP(7, WEST, qup2, _, _, _, _, _, _, _, _),
75562306a36Sopenharmony_ci	[8] = PINGROUP(8, EAST, qup3, pbs_out, pll_bist, _, qdss_gpio, _, tsense_pwm, _, _),
75662306a36Sopenharmony_ci	[9] = PINGROUP(9, EAST, qup3, pbs_out, pll_bist, _, qdss_gpio, _, _, _, _),
75762306a36Sopenharmony_ci	[10] = PINGROUP(10, EAST, qup3, agera_pll, _, pbs, qdss_gpio, _, _, _, _),
75862306a36Sopenharmony_ci	[11] = PINGROUP(11, EAST, qup3, agera_pll, _, pbs, qdss_gpio, _, _, _, _),
75962306a36Sopenharmony_ci	[12] = PINGROUP(12, WEST, qup4, tgu, _, _, _, _, _, _, _),
76062306a36Sopenharmony_ci	[13] = PINGROUP(13, WEST, qup4, tgu, _, _, _, _, _, _, _),
76162306a36Sopenharmony_ci	[14] = PINGROUP(14, WEST, qup5, tgu, _, phase_flag, qdss_gpio, dac_calib, _, _, _),
76262306a36Sopenharmony_ci	[15] = PINGROUP(15, WEST, qup5, tgu, _, phase_flag, qdss_gpio, dac_calib, _, _, _),
76362306a36Sopenharmony_ci	[16] = PINGROUP(16, WEST, qup5, _, phase_flag, qdss_gpio, dac_calib, _, _, _, _),
76462306a36Sopenharmony_ci	[17] = PINGROUP(17, WEST, qup5, _, phase_flag, qdss_gpio, dac_calib, _, _, _, _),
76562306a36Sopenharmony_ci	[18] = PINGROUP(18, EAST, sdc2_tb, cri_trng, pbs, qdss_gpio, _, _, _, _, _),
76662306a36Sopenharmony_ci	[19] = PINGROUP(19, EAST, sdc1_tb, pbs, qdss_gpio, _, _, _, _, _, _),
76762306a36Sopenharmony_ci	[20] = PINGROUP(20, EAST, cam_mclk, pbs, qdss_gpio, _, _, _, _, _, _),
76862306a36Sopenharmony_ci	[21] = PINGROUP(21, EAST, cam_mclk, adsp_ext, pbs, qdss_gpio, _, _, _, _, _),
76962306a36Sopenharmony_ci	[22] = PINGROUP(22, EAST, cci_i2c, prng_rosc, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
77062306a36Sopenharmony_ci	[23] = PINGROUP(23, EAST, cci_i2c, prng_rosc, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
77162306a36Sopenharmony_ci	[24] = PINGROUP(24, EAST, cci_timer, gcc_gp1, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
77262306a36Sopenharmony_ci	[25] = PINGROUP(25, EAST, cci_async, cci_timer, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, _),
77362306a36Sopenharmony_ci	[26] = PINGROUP(26, EAST, _, pbs, phase_flag, qdss_gpio, dac_calib, atest, vsense_trigger, _, _),
77462306a36Sopenharmony_ci	[27] = PINGROUP(27, EAST, cam_mclk, qdss_cti, _, _, _, _, _, _, _),
77562306a36Sopenharmony_ci	[28] = PINGROUP(28, EAST, cam_mclk, cci_timer, qdss_cti, _, _, _, _, _, _),
77662306a36Sopenharmony_ci	[29] = PINGROUP(29, EAST, cci_i2c, _, phase_flag, dac_calib, atest, _, _, _, _),
77762306a36Sopenharmony_ci	[30] = PINGROUP(30, EAST, cci_i2c, _, phase_flag, dac_calib, atest, _, _, _, _),
77862306a36Sopenharmony_ci	[31] = PINGROUP(31, EAST, gp_pdm0, _, phase_flag, dac_calib, atest, _, _, _, _),
77962306a36Sopenharmony_ci	[32] = PINGROUP(32, EAST, cci_timer, gp_pdm1, _, phase_flag, dac_calib, atest, _, _, _),
78062306a36Sopenharmony_ci	[33] = PINGROUP(33, EAST, gp_pdm2, _, phase_flag, dac_calib, atest, _, _, _, _),
78162306a36Sopenharmony_ci	[34] = PINGROUP(34, EAST, _, _, _, _, _, _, _, _, _),
78262306a36Sopenharmony_ci	[35] = PINGROUP(35, EAST, _, phase_flag, _, _, _, _, _, _, _),
78362306a36Sopenharmony_ci	[36] = PINGROUP(36, EAST, _, phase_flag, _, _, _, _, _, _, _),
78462306a36Sopenharmony_ci	[37] = PINGROUP(37, EAST, _, _, _, _, _, _, _, _, _),
78562306a36Sopenharmony_ci	[38] = PINGROUP(38, EAST, _, _, _, _, _, _, _, _, _),
78662306a36Sopenharmony_ci	[39] = PINGROUP(39, EAST, _, _, _, _, _, _, _, _, _),
78762306a36Sopenharmony_ci	[40] = PINGROUP(40, EAST, _, _, _, _, _, _, _, _, _),
78862306a36Sopenharmony_ci	[41] = PINGROUP(41, EAST, _, _, _, _, _, _, _, _, _),
78962306a36Sopenharmony_ci	[42] = PINGROUP(42, EAST, _, nav_gpio, _, _, _, _, _, _, _),
79062306a36Sopenharmony_ci	[43] = PINGROUP(43, EAST, _, _, phase_flag, _, _, _, _, _, _),
79162306a36Sopenharmony_ci	[44] = PINGROUP(44, EAST, _, _, phase_flag, _, _, _, _, _, _),
79262306a36Sopenharmony_ci	[45] = PINGROUP(45, EAST, _, _, phase_flag, _, _, _, _, _, _),
79362306a36Sopenharmony_ci	[46] = PINGROUP(46, EAST, _, _, _, _, _, _, _, _, _),
79462306a36Sopenharmony_ci	[47] = PINGROUP(47, EAST, _, nav_gpio, pbs, qdss_gpio, _, _, _, _, _),
79562306a36Sopenharmony_ci	[48] = PINGROUP(48, EAST, _, vfr_1, _, pbs, qdss_gpio, _, _, _, _),
79662306a36Sopenharmony_ci	[49] = PINGROUP(49, EAST, _, pa_indicator, _, _, _, _, _, _, _),
79762306a36Sopenharmony_ci	[50] = PINGROUP(50, EAST, _, _, _, _, _, _, _, _, _),
79862306a36Sopenharmony_ci	[51] = PINGROUP(51, EAST, _, _, _, _, _, _, _, _, _),
79962306a36Sopenharmony_ci	[52] = PINGROUP(52, EAST, _, nav_gpio, pbs_out, _, _, _, _, _, _),
80062306a36Sopenharmony_ci	[53] = PINGROUP(53, EAST, _, gsm1_tx, _, _, _, _, _, _, _),
80162306a36Sopenharmony_ci	[54] = PINGROUP(54, EAST, _, _, _, _, _, _, _, _, _),
80262306a36Sopenharmony_ci	[55] = PINGROUP(55, EAST, _, _, _, _, _, _, _, _, _),
80362306a36Sopenharmony_ci	[56] = PINGROUP(56, EAST, _, _, _, _, _, _, _, _, _),
80462306a36Sopenharmony_ci	[57] = PINGROUP(57, EAST, _, _, _, _, _, _, _, _, _),
80562306a36Sopenharmony_ci	[58] = PINGROUP(58, EAST, _, _, _, _, _, _, _, _, _),
80662306a36Sopenharmony_ci	[59] = PINGROUP(59, EAST, _, ssbi_wtr1, _, _, _, _, _, _, _),
80762306a36Sopenharmony_ci	[60] = PINGROUP(60, EAST, _, ssbi_wtr1, _, _, _, _, _, _, _),
80862306a36Sopenharmony_ci	[61] = PINGROUP(61, EAST, _, _, _, _, _, _, _, _, _),
80962306a36Sopenharmony_ci	[62] = PINGROUP(62, EAST, _, pll_bypassnl, _, _, _, _, _, _, _),
81062306a36Sopenharmony_ci	[63] = PINGROUP(63, EAST, pll_reset, _, phase_flag, ddr_pxi0, _, _, _, _, _),
81162306a36Sopenharmony_ci	[64] = PINGROUP(64, EAST, gsm0_tx, _, phase_flag, ddr_pxi0, _, _, _, _, _),
81262306a36Sopenharmony_ci	[65] = PINGROUP(65, WEST, _, _, _, _, _, _, _, _, _),
81362306a36Sopenharmony_ci	[66] = PINGROUP(66, WEST, _, _, _, _, _, _, _, _, _),
81462306a36Sopenharmony_ci	[67] = PINGROUP(67, WEST, _, _, _, _, _, _, _, _, _),
81562306a36Sopenharmony_ci	[68] = PINGROUP(68, WEST, _, _, _, _, _, _, _, _, _),
81662306a36Sopenharmony_ci	[69] = PINGROUP(69, WEST, qup1, gcc_gp2, qdss_gpio, ddr_pxi1, _, _, _, _, _),
81762306a36Sopenharmony_ci	[70] = PINGROUP(70, WEST, qup1, gcc_gp3, qdss_gpio, ddr_pxi1, _, _, _, _, _),
81862306a36Sopenharmony_ci	[71] = PINGROUP(71, WEST, qup2, dbg_out, _, _, _, _, _, _, _),
81962306a36Sopenharmony_ci	[72] = PINGROUP(72, SOUTH, uim2_data, qdss_cti, _, _, _, _, _, _, _),
82062306a36Sopenharmony_ci	[73] = PINGROUP(73, SOUTH, uim2_clk, _, qdss_cti, _, _, _, _, _, _),
82162306a36Sopenharmony_ci	[74] = PINGROUP(74, SOUTH, uim2_reset, _, _, _, _, _, _, _, _),
82262306a36Sopenharmony_ci	[75] = PINGROUP(75, SOUTH, uim2_present, _, _, _, _, _, _, _, _),
82362306a36Sopenharmony_ci	[76] = PINGROUP(76, SOUTH, uim1_data, _, _, _, _, _, _, _, _),
82462306a36Sopenharmony_ci	[77] = PINGROUP(77, SOUTH, uim1_clk, _, _, _, _, _, _, _, _),
82562306a36Sopenharmony_ci	[78] = PINGROUP(78, SOUTH, uim1_reset, _, _, _, _, _, _, _, _),
82662306a36Sopenharmony_ci	[79] = PINGROUP(79, SOUTH, uim1_present, _, _, _, _, _, _, _, _),
82762306a36Sopenharmony_ci	[80] = PINGROUP(80, WEST, qup2, dac_calib, _, _, _, _, _, _, _),
82862306a36Sopenharmony_ci	[81] = PINGROUP(81, WEST, mdp_vsync_out_0, mdp_vsync_out_1, mdp_vsync, dac_calib, _, _, _, _, _),
82962306a36Sopenharmony_ci	[82] = PINGROUP(82, WEST, qup0, dac_calib, _, _, _, _, _, _, _),
83062306a36Sopenharmony_ci	[83] = PINGROUP(83, WEST, _, _, _, _, _, _, _, _, _),
83162306a36Sopenharmony_ci	[84] = PINGROUP(84, WEST, _, _, _, _, _, _, _, _, _),
83262306a36Sopenharmony_ci	[85] = PINGROUP(85, WEST, _, _, _, _, _, _, _, _, _),
83362306a36Sopenharmony_ci	[86] = PINGROUP(86, WEST, qup0, gcc_gp1, atest, _, _, _, _, _, _),
83462306a36Sopenharmony_ci	[87] = PINGROUP(87, EAST, pbs, qdss_gpio, _, _, _, _, _, _, _),
83562306a36Sopenharmony_ci	[88] = PINGROUP(88, EAST, _, _, _, _, _, _, _, _, _),
83662306a36Sopenharmony_ci	[89] = PINGROUP(89, WEST, usb_phy, atest, _, _, _, _, _, _, _),
83762306a36Sopenharmony_ci	[90] = PINGROUP(90, EAST, mss_lte, pbs, qdss_gpio, _, _, _, _, _, _),
83862306a36Sopenharmony_ci	[91] = PINGROUP(91, EAST, mss_lte, pbs, qdss_gpio, _, _, _, _, _, _),
83962306a36Sopenharmony_ci	[92] = PINGROUP(92, WEST, _, _, _, _, _, _, _, _, _),
84062306a36Sopenharmony_ci	[93] = PINGROUP(93, WEST, _, _, _, _, _, _, _, _, _),
84162306a36Sopenharmony_ci	[94] = PINGROUP(94, WEST, _, qdss_gpio, wlan1_adc0, _, _, _, _, _, _),
84262306a36Sopenharmony_ci	[95] = PINGROUP(95, WEST, nav_gpio, gp_pdm0, qdss_gpio, wlan1_adc1, _, _, _, _, _),
84362306a36Sopenharmony_ci	[96] = PINGROUP(96, WEST, qup4, nav_gpio, mdp_vsync, gp_pdm1, sd_write, jitter_bist, qdss_cti, qdss_cti, _),
84462306a36Sopenharmony_ci	[97] = PINGROUP(97, WEST, qup4, nav_gpio, mdp_vsync, gp_pdm2, jitter_bist, qdss_cti, qdss_cti, _, _),
84562306a36Sopenharmony_ci	[98] = PINGROUP(98, SOUTH, _, _, _, _, _, _, _, _, _),
84662306a36Sopenharmony_ci	[99] = PINGROUP(99, SOUTH, _, _, _, _, _, _, _, _, _),
84762306a36Sopenharmony_ci	[100] = PINGROUP(100, SOUTH, atest, _, _, _, _, _, _, _, _),
84862306a36Sopenharmony_ci	[101] = PINGROUP(101, SOUTH, atest, _, _, _, _, _, _, _, _),
84962306a36Sopenharmony_ci	[102] = PINGROUP(102, SOUTH, _, phase_flag, dac_calib, ddr_pxi2, _, _, _, _, _),
85062306a36Sopenharmony_ci	[103] = PINGROUP(103, SOUTH, _, phase_flag, dac_calib, ddr_pxi2, _, _, _, _, _),
85162306a36Sopenharmony_ci	[104] = PINGROUP(104, SOUTH, _, phase_flag, qdss_gpio, dac_calib, ddr_pxi3, _, _, _, _),
85262306a36Sopenharmony_ci	[105] = PINGROUP(105, SOUTH, _, phase_flag, qdss_gpio, dac_calib, ddr_pxi3, _, _, _, _),
85362306a36Sopenharmony_ci	[106] = PINGROUP(106, SOUTH, nav_gpio, gcc_gp3, qdss_gpio, _, _, _, _, _, _),
85462306a36Sopenharmony_ci	[107] = PINGROUP(107, SOUTH, nav_gpio, gcc_gp2, qdss_gpio, _, _, _, _, _, _),
85562306a36Sopenharmony_ci	[108] = PINGROUP(108, SOUTH, nav_gpio, _, _, _, _, _, _, _, _),
85662306a36Sopenharmony_ci	[109] = PINGROUP(109, SOUTH, _, qdss_gpio, _, _, _, _, _, _, _),
85762306a36Sopenharmony_ci	[110] = PINGROUP(110, SOUTH, _, qdss_gpio, _, _, _, _, _, _, _),
85862306a36Sopenharmony_ci	[111] = PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _),
85962306a36Sopenharmony_ci	[112] = PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _),
86062306a36Sopenharmony_ci	[113] = UFS_RESET(ufs_reset, 0x78000),
86162306a36Sopenharmony_ci	[114] = SDC_QDSD_PINGROUP(sdc1_rclk, WEST, 0x75000, 15, 0),
86262306a36Sopenharmony_ci	[115] = SDC_QDSD_PINGROUP(sdc1_clk, WEST, 0x75000, 13, 6),
86362306a36Sopenharmony_ci	[116] = SDC_QDSD_PINGROUP(sdc1_cmd, WEST, 0x75000, 11, 3),
86462306a36Sopenharmony_ci	[117] = SDC_QDSD_PINGROUP(sdc1_data, WEST, 0x75000, 9, 0),
86562306a36Sopenharmony_ci	[118] = SDC_QDSD_PINGROUP(sdc2_clk, SOUTH, 0x73000, 14, 6),
86662306a36Sopenharmony_ci	[119] = SDC_QDSD_PINGROUP(sdc2_cmd, SOUTH, 0x73000, 11, 3),
86762306a36Sopenharmony_ci	[120] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0x73000, 9, 0),
86862306a36Sopenharmony_ci};
86962306a36Sopenharmony_ci
87062306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data sm6115_tlmm = {
87162306a36Sopenharmony_ci	.pins = sm6115_pins,
87262306a36Sopenharmony_ci	.npins = ARRAY_SIZE(sm6115_pins),
87362306a36Sopenharmony_ci	.functions = sm6115_functions,
87462306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(sm6115_functions),
87562306a36Sopenharmony_ci	.groups = sm6115_groups,
87662306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(sm6115_groups),
87762306a36Sopenharmony_ci	.ngpios = 114,
87862306a36Sopenharmony_ci	.tiles = sm6115_tiles,
87962306a36Sopenharmony_ci	.ntiles = ARRAY_SIZE(sm6115_tiles),
88062306a36Sopenharmony_ci};
88162306a36Sopenharmony_ci
88262306a36Sopenharmony_cistatic int sm6115_tlmm_probe(struct platform_device *pdev)
88362306a36Sopenharmony_ci{
88462306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, &sm6115_tlmm);
88562306a36Sopenharmony_ci}
88662306a36Sopenharmony_ci
88762306a36Sopenharmony_cistatic const struct of_device_id sm6115_tlmm_of_match[] = {
88862306a36Sopenharmony_ci	{ .compatible = "qcom,sm6115-tlmm", },
88962306a36Sopenharmony_ci	{ }
89062306a36Sopenharmony_ci};
89162306a36Sopenharmony_ci
89262306a36Sopenharmony_cistatic struct platform_driver sm6115_tlmm_driver = {
89362306a36Sopenharmony_ci	.driver = {
89462306a36Sopenharmony_ci		.name = "sm6115-tlmm",
89562306a36Sopenharmony_ci		.of_match_table = sm6115_tlmm_of_match,
89662306a36Sopenharmony_ci	},
89762306a36Sopenharmony_ci	.probe = sm6115_tlmm_probe,
89862306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
89962306a36Sopenharmony_ci};
90062306a36Sopenharmony_ci
90162306a36Sopenharmony_cistatic int __init sm6115_tlmm_init(void)
90262306a36Sopenharmony_ci{
90362306a36Sopenharmony_ci	return platform_driver_register(&sm6115_tlmm_driver);
90462306a36Sopenharmony_ci}
90562306a36Sopenharmony_ciarch_initcall(sm6115_tlmm_init);
90662306a36Sopenharmony_ci
90762306a36Sopenharmony_cistatic void __exit sm6115_tlmm_exit(void)
90862306a36Sopenharmony_ci{
90962306a36Sopenharmony_ci	platform_driver_unregister(&sm6115_tlmm_driver);
91062306a36Sopenharmony_ci}
91162306a36Sopenharmony_cimodule_exit(sm6115_tlmm_exit);
91262306a36Sopenharmony_ci
91362306a36Sopenharmony_ciMODULE_DESCRIPTION("QTI sm6115 tlmm driver");
91462306a36Sopenharmony_ciMODULE_LICENSE("GPL v2");
91562306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, sm6115_tlmm_of_match);
916