162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2023 Qualcomm Innovation Center, Inc. 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#include "pinctrl-msm.h"
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define REG_BASE	0x100000
1262306a36Sopenharmony_ci#define REG_SIZE	0x1000
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10)		\
1562306a36Sopenharmony_ci	{								\
1662306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio"#id, gpio##id##_pins,	\
1762306a36Sopenharmony_ci			(unsigned int)ARRAY_SIZE(gpio##id##_pins)),	\
1862306a36Sopenharmony_ci		.ctl_reg = REG_BASE + REG_SIZE * id,			\
1962306a36Sopenharmony_ci		.io_reg = REG_BASE + 0x4 + REG_SIZE * id,		\
2062306a36Sopenharmony_ci		.intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id,		\
2162306a36Sopenharmony_ci		.intr_status_reg = REG_BASE + 0xc + REG_SIZE * id,	\
2262306a36Sopenharmony_ci		.intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id,	\
2362306a36Sopenharmony_ci		.mux_bit = 2,						\
2462306a36Sopenharmony_ci		.pull_bit = 0,						\
2562306a36Sopenharmony_ci		.drv_bit = 6,						\
2662306a36Sopenharmony_ci		.egpio_enable = 12,					\
2762306a36Sopenharmony_ci		.egpio_present = 11,					\
2862306a36Sopenharmony_ci		.oe_bit = 9,						\
2962306a36Sopenharmony_ci		.in_bit = 0,						\
3062306a36Sopenharmony_ci		.out_bit = 1,						\
3162306a36Sopenharmony_ci		.intr_enable_bit = 0,					\
3262306a36Sopenharmony_ci		.intr_status_bit = 0,					\
3362306a36Sopenharmony_ci		.intr_target_bit = 5,					\
3462306a36Sopenharmony_ci		.intr_target_kpss_val = 3,				\
3562306a36Sopenharmony_ci		.intr_raw_status_bit = 4,				\
3662306a36Sopenharmony_ci		.intr_polarity_bit = 1,					\
3762306a36Sopenharmony_ci		.intr_detection_bit = 2,				\
3862306a36Sopenharmony_ci		.intr_detection_width = 2,				\
3962306a36Sopenharmony_ci		.funcs = (int[]){					\
4062306a36Sopenharmony_ci			msm_mux_gpio, /* gpio mode */			\
4162306a36Sopenharmony_ci			msm_mux_##f1,					\
4262306a36Sopenharmony_ci			msm_mux_##f2,					\
4362306a36Sopenharmony_ci			msm_mux_##f3,					\
4462306a36Sopenharmony_ci			msm_mux_##f4,					\
4562306a36Sopenharmony_ci			msm_mux_##f5,					\
4662306a36Sopenharmony_ci			msm_mux_##f6,					\
4762306a36Sopenharmony_ci			msm_mux_##f7,					\
4862306a36Sopenharmony_ci			msm_mux_##f8,					\
4962306a36Sopenharmony_ci			msm_mux_##f9,					\
5062306a36Sopenharmony_ci			msm_mux_##f10					\
5162306a36Sopenharmony_ci		},							\
5262306a36Sopenharmony_ci		.nfuncs = 11,						\
5362306a36Sopenharmony_ci	}
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)			\
5662306a36Sopenharmony_ci	{								\
5762306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, pg_name##_pins,	\
5862306a36Sopenharmony_ci			(unsigned int)ARRAY_SIZE(pg_name##_pins)),	\
5962306a36Sopenharmony_ci		.ctl_reg = ctl,						\
6062306a36Sopenharmony_ci		.io_reg = 0,						\
6162306a36Sopenharmony_ci		.intr_cfg_reg = 0,					\
6262306a36Sopenharmony_ci		.intr_status_reg = 0,					\
6362306a36Sopenharmony_ci		.intr_target_reg = 0,					\
6462306a36Sopenharmony_ci		.mux_bit = -1,						\
6562306a36Sopenharmony_ci		.pull_bit = pull,					\
6662306a36Sopenharmony_ci		.drv_bit = drv,						\
6762306a36Sopenharmony_ci		.oe_bit = -1,						\
6862306a36Sopenharmony_ci		.in_bit = -1,						\
6962306a36Sopenharmony_ci		.out_bit = -1,						\
7062306a36Sopenharmony_ci		.intr_enable_bit = -1,					\
7162306a36Sopenharmony_ci		.intr_status_bit = -1,					\
7262306a36Sopenharmony_ci		.intr_target_bit = -1,					\
7362306a36Sopenharmony_ci		.intr_raw_status_bit = -1,				\
7462306a36Sopenharmony_ci		.intr_polarity_bit = -1,				\
7562306a36Sopenharmony_ci		.intr_detection_bit = -1,				\
7662306a36Sopenharmony_ci		.intr_detection_width = -1,				\
7762306a36Sopenharmony_ci	}
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_cistatic const struct pinctrl_pin_desc sdx75_pins[] = {
8062306a36Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
8162306a36Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
8262306a36Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
8362306a36Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
8462306a36Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
8562306a36Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
8662306a36Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
8762306a36Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
8862306a36Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
8962306a36Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
9062306a36Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
9162306a36Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
9262306a36Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
9362306a36Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
9462306a36Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
9562306a36Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
9662306a36Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
9762306a36Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
9862306a36Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
9962306a36Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
10062306a36Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
10162306a36Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
10262306a36Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
10362306a36Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
10462306a36Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
10562306a36Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
10662306a36Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
10762306a36Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
10862306a36Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
10962306a36Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
11062306a36Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
11162306a36Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
11262306a36Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
11362306a36Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
11462306a36Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
11562306a36Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
11662306a36Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
11762306a36Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
11862306a36Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
11962306a36Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
12062306a36Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
12162306a36Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
12262306a36Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
12362306a36Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
12462306a36Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
12562306a36Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
12662306a36Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
12762306a36Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
12862306a36Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
12962306a36Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
13062306a36Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
13162306a36Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
13262306a36Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
13362306a36Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
13462306a36Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
13562306a36Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
13662306a36Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
13762306a36Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
13862306a36Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
13962306a36Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
14062306a36Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
14162306a36Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
14262306a36Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
14362306a36Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
14462306a36Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
14562306a36Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
14662306a36Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
14762306a36Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
14862306a36Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
14962306a36Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
15062306a36Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
15162306a36Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
15262306a36Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
15362306a36Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
15462306a36Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
15562306a36Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
15662306a36Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
15762306a36Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
15862306a36Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
15962306a36Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
16062306a36Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
16162306a36Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
16262306a36Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
16362306a36Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
16462306a36Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
16562306a36Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
16662306a36Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
16762306a36Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
16862306a36Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
16962306a36Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
17062306a36Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
17162306a36Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
17262306a36Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
17362306a36Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
17462306a36Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
17562306a36Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
17662306a36Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
17762306a36Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
17862306a36Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
17962306a36Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
18062306a36Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
18162306a36Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
18262306a36Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
18362306a36Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
18462306a36Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
18562306a36Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
18662306a36Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
18762306a36Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
18862306a36Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
18962306a36Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
19062306a36Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
19162306a36Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
19262306a36Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
19362306a36Sopenharmony_ci	PINCTRL_PIN(113, "GPIO_113"),
19462306a36Sopenharmony_ci	PINCTRL_PIN(114, "GPIO_114"),
19562306a36Sopenharmony_ci	PINCTRL_PIN(115, "GPIO_115"),
19662306a36Sopenharmony_ci	PINCTRL_PIN(116, "GPIO_116"),
19762306a36Sopenharmony_ci	PINCTRL_PIN(117, "GPIO_117"),
19862306a36Sopenharmony_ci	PINCTRL_PIN(118, "GPIO_118"),
19962306a36Sopenharmony_ci	PINCTRL_PIN(119, "GPIO_119"),
20062306a36Sopenharmony_ci	PINCTRL_PIN(120, "GPIO_120"),
20162306a36Sopenharmony_ci	PINCTRL_PIN(121, "GPIO_121"),
20262306a36Sopenharmony_ci	PINCTRL_PIN(122, "GPIO_122"),
20362306a36Sopenharmony_ci	PINCTRL_PIN(123, "GPIO_123"),
20462306a36Sopenharmony_ci	PINCTRL_PIN(124, "GPIO_124"),
20562306a36Sopenharmony_ci	PINCTRL_PIN(125, "GPIO_125"),
20662306a36Sopenharmony_ci	PINCTRL_PIN(126, "GPIO_126"),
20762306a36Sopenharmony_ci	PINCTRL_PIN(127, "GPIO_127"),
20862306a36Sopenharmony_ci	PINCTRL_PIN(128, "GPIO_128"),
20962306a36Sopenharmony_ci	PINCTRL_PIN(129, "GPIO_129"),
21062306a36Sopenharmony_ci	PINCTRL_PIN(130, "GPIO_130"),
21162306a36Sopenharmony_ci	PINCTRL_PIN(131, "GPIO_131"),
21262306a36Sopenharmony_ci	PINCTRL_PIN(132, "GPIO_132"),
21362306a36Sopenharmony_ci	PINCTRL_PIN(133, "SDC1_RCLK"),
21462306a36Sopenharmony_ci	PINCTRL_PIN(134, "SDC1_CLK"),
21562306a36Sopenharmony_ci	PINCTRL_PIN(135, "SDC1_CMD"),
21662306a36Sopenharmony_ci	PINCTRL_PIN(136, "SDC1_DATA"),
21762306a36Sopenharmony_ci	PINCTRL_PIN(137, "SDC2_CLK"),
21862306a36Sopenharmony_ci	PINCTRL_PIN(138, "SDC2_CMD"),
21962306a36Sopenharmony_ci	PINCTRL_PIN(139, "SDC2_DATA"),
22062306a36Sopenharmony_ci};
22162306a36Sopenharmony_ci
22262306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin)			 \
22362306a36Sopenharmony_ci	static const unsigned int gpio##pin##_pins[] = {pin}
22462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0);
22562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1);
22662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2);
22762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3);
22862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4);
22962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5);
23062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6);
23162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7);
23262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8);
23362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9);
23462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10);
23562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11);
23662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12);
23762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13);
23862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14);
23962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15);
24062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16);
24162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17);
24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18);
24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19);
24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20);
24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21);
24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22);
24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23);
24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24);
24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25);
25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26);
25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27);
25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28);
25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29);
25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30);
25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31);
25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32);
25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33);
25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34);
25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35);
26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36);
26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37);
26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38);
26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39);
26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40);
26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41);
26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42);
26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43);
26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44);
26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45);
27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46);
27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47);
27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48);
27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49);
27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50);
27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51);
27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52);
27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53);
27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54);
27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55);
28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56);
28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57);
28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58);
28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59);
28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60);
28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61);
28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62);
28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63);
28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64);
28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65);
29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66);
29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67);
29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68);
29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69);
29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70);
29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71);
29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72);
29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73);
29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74);
29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75);
30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76);
30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77);
30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78);
30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79);
30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80);
30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81);
30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82);
30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83);
30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84);
30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85);
31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86);
31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87);
31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88);
31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89);
31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90);
31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91);
31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92);
31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93);
31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94);
31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95);
32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96);
32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97);
32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98);
32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99);
32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100);
32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101);
32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102);
32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103);
32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104);
32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105);
33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106);
33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107);
33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108);
33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109);
33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110);
33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111);
33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112);
33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113);
33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114);
33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115);
34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116);
34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117);
34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118);
34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119);
34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120);
34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121);
34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122);
34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123);
34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124);
34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125);
35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126);
35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127);
35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128);
35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129);
35462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130);
35562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131);
35662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132);
35762306a36Sopenharmony_ci
35862306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = {133};
35962306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = {134};
36062306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = {135};
36162306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = {136};
36262306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = {137};
36362306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = {138};
36462306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = {139};
36562306a36Sopenharmony_ci
36662306a36Sopenharmony_cienum sdx75_functions {
36762306a36Sopenharmony_ci	msm_mux_adsp_ext,
36862306a36Sopenharmony_ci	msm_mux_atest_char,
36962306a36Sopenharmony_ci	msm_mux_audio_ref_clk,
37062306a36Sopenharmony_ci	msm_mux_bimc_dte,
37162306a36Sopenharmony_ci	msm_mux_char_exec,
37262306a36Sopenharmony_ci	msm_mux_coex_uart2,
37362306a36Sopenharmony_ci	msm_mux_coex_uart,
37462306a36Sopenharmony_ci	msm_mux_cri_trng,
37562306a36Sopenharmony_ci	msm_mux_cri_trng0,
37662306a36Sopenharmony_ci	msm_mux_cri_trng1,
37762306a36Sopenharmony_ci	msm_mux_dbg_out_clk,
37862306a36Sopenharmony_ci	msm_mux_ddr_bist,
37962306a36Sopenharmony_ci	msm_mux_ddr_pxi0,
38062306a36Sopenharmony_ci	msm_mux_ebi0_wrcdc,
38162306a36Sopenharmony_ci	msm_mux_ebi2_a,
38262306a36Sopenharmony_ci	msm_mux_ebi2_lcd,
38362306a36Sopenharmony_ci	msm_mux_ebi2_lcd_te,
38462306a36Sopenharmony_ci	msm_mux_emac0_mcg,
38562306a36Sopenharmony_ci	msm_mux_emac0_ptp,
38662306a36Sopenharmony_ci	msm_mux_emac1_mcg,
38762306a36Sopenharmony_ci	msm_mux_emac1_ptp,
38862306a36Sopenharmony_ci	msm_mux_emac_cdc,
38962306a36Sopenharmony_ci	msm_mux_emac_pps_in,
39062306a36Sopenharmony_ci	msm_mux_eth0_mdc,
39162306a36Sopenharmony_ci	msm_mux_eth0_mdio,
39262306a36Sopenharmony_ci	msm_mux_eth1_mdc,
39362306a36Sopenharmony_ci	msm_mux_eth1_mdio,
39462306a36Sopenharmony_ci	msm_mux_ext_dbg,
39562306a36Sopenharmony_ci	msm_mux_gcc_125_clk,
39662306a36Sopenharmony_ci	msm_mux_gcc_gp1_clk,
39762306a36Sopenharmony_ci	msm_mux_gcc_gp2_clk,
39862306a36Sopenharmony_ci	msm_mux_gcc_gp3_clk,
39962306a36Sopenharmony_ci	msm_mux_gcc_plltest,
40062306a36Sopenharmony_ci	msm_mux_gpio,
40162306a36Sopenharmony_ci	msm_mux_i2s_mclk,
40262306a36Sopenharmony_ci	msm_mux_jitter_bist,
40362306a36Sopenharmony_ci	msm_mux_ldo_en,
40462306a36Sopenharmony_ci	msm_mux_ldo_update,
40562306a36Sopenharmony_ci	msm_mux_m_voc,
40662306a36Sopenharmony_ci	msm_mux_mgpi_clk,
40762306a36Sopenharmony_ci	msm_mux_native_char,
40862306a36Sopenharmony_ci	msm_mux_native_tsens,
40962306a36Sopenharmony_ci	msm_mux_native_tsense,
41062306a36Sopenharmony_ci	msm_mux_nav_dr_sync,
41162306a36Sopenharmony_ci	msm_mux_nav_gpio,
41262306a36Sopenharmony_ci	msm_mux_pa_indicator,
41362306a36Sopenharmony_ci	msm_mux_pci_e,
41462306a36Sopenharmony_ci	msm_mux_pcie0_clkreq_n,
41562306a36Sopenharmony_ci	msm_mux_pcie1_clkreq_n,
41662306a36Sopenharmony_ci	msm_mux_pcie2_clkreq_n,
41762306a36Sopenharmony_ci	msm_mux_pll_bist_sync,
41862306a36Sopenharmony_ci	msm_mux_pll_clk_aux,
41962306a36Sopenharmony_ci	msm_mux_pll_ref_clk,
42062306a36Sopenharmony_ci	msm_mux_pri_mi2s,
42162306a36Sopenharmony_ci	msm_mux_prng_rosc,
42262306a36Sopenharmony_ci	msm_mux_qdss_cti,
42362306a36Sopenharmony_ci	msm_mux_qdss_gpio,
42462306a36Sopenharmony_ci	msm_mux_qlink0_b_en,
42562306a36Sopenharmony_ci	msm_mux_qlink0_b_req,
42662306a36Sopenharmony_ci	msm_mux_qlink0_l_en,
42762306a36Sopenharmony_ci	msm_mux_qlink0_l_req,
42862306a36Sopenharmony_ci	msm_mux_qlink0_wmss,
42962306a36Sopenharmony_ci	msm_mux_qlink1_l_en,
43062306a36Sopenharmony_ci	msm_mux_qlink1_l_req,
43162306a36Sopenharmony_ci	msm_mux_qlink1_wmss,
43262306a36Sopenharmony_ci	msm_mux_qup_se0,
43362306a36Sopenharmony_ci	msm_mux_qup_se1_l2_mira,
43462306a36Sopenharmony_ci	msm_mux_qup_se1_l2_mirb,
43562306a36Sopenharmony_ci	msm_mux_qup_se1_l3_mira,
43662306a36Sopenharmony_ci	msm_mux_qup_se1_l3_mirb,
43762306a36Sopenharmony_ci	msm_mux_qup_se2,
43862306a36Sopenharmony_ci	msm_mux_qup_se3,
43962306a36Sopenharmony_ci	msm_mux_qup_se4,
44062306a36Sopenharmony_ci	msm_mux_qup_se5,
44162306a36Sopenharmony_ci	msm_mux_qup_se6,
44262306a36Sopenharmony_ci	msm_mux_qup_se7,
44362306a36Sopenharmony_ci	msm_mux_qup_se8,
44462306a36Sopenharmony_ci	msm_mux_rgmii_rx_ctl,
44562306a36Sopenharmony_ci	msm_mux_rgmii_rxc,
44662306a36Sopenharmony_ci	msm_mux_rgmii_rxd,
44762306a36Sopenharmony_ci	msm_mux_rgmii_tx_ctl,
44862306a36Sopenharmony_ci	msm_mux_rgmii_txc,
44962306a36Sopenharmony_ci	msm_mux_rgmii_txd,
45062306a36Sopenharmony_ci	msm_mux_sd_card,
45162306a36Sopenharmony_ci	msm_mux_sdc1_tb,
45262306a36Sopenharmony_ci	msm_mux_sdc2_tb_trig,
45362306a36Sopenharmony_ci	msm_mux_sec_mi2s,
45462306a36Sopenharmony_ci	msm_mux_sgmii_phy_intr0_n,
45562306a36Sopenharmony_ci	msm_mux_sgmii_phy_intr1_n,
45662306a36Sopenharmony_ci	msm_mux_spmi_coex,
45762306a36Sopenharmony_ci	msm_mux_spmi_vgi,
45862306a36Sopenharmony_ci	msm_mux_tgu_ch0_trigout,
45962306a36Sopenharmony_ci	msm_mux_tmess_prng0,
46062306a36Sopenharmony_ci	msm_mux_tmess_prng1,
46162306a36Sopenharmony_ci	msm_mux_tmess_prng2,
46262306a36Sopenharmony_ci	msm_mux_tmess_prng3,
46362306a36Sopenharmony_ci	msm_mux_tri_mi2s,
46462306a36Sopenharmony_ci	msm_mux_uim1_clk,
46562306a36Sopenharmony_ci	msm_mux_uim1_data,
46662306a36Sopenharmony_ci	msm_mux_uim1_present,
46762306a36Sopenharmony_ci	msm_mux_uim1_reset,
46862306a36Sopenharmony_ci	msm_mux_uim2_clk,
46962306a36Sopenharmony_ci	msm_mux_uim2_data,
47062306a36Sopenharmony_ci	msm_mux_uim2_present,
47162306a36Sopenharmony_ci	msm_mux_uim2_reset,
47262306a36Sopenharmony_ci	msm_mux_usb2phy_ac_en,
47362306a36Sopenharmony_ci	msm_mux_vsense_trigger_mirnat,
47462306a36Sopenharmony_ci	msm_mux__,
47562306a36Sopenharmony_ci};
47662306a36Sopenharmony_ci
47762306a36Sopenharmony_cistatic const char *const gpio_groups[] = {
47862306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6",
47962306a36Sopenharmony_ci	"gpio7", "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13",
48062306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20",
48162306a36Sopenharmony_ci	"gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27",
48262306a36Sopenharmony_ci	"gpio28", "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34",
48362306a36Sopenharmony_ci	"gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41",
48462306a36Sopenharmony_ci	"gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48",
48562306a36Sopenharmony_ci	"gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55",
48662306a36Sopenharmony_ci	"gpio56", "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62",
48762306a36Sopenharmony_ci	"gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69",
48862306a36Sopenharmony_ci	"gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76",
48962306a36Sopenharmony_ci	"gpio77", "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
49062306a36Sopenharmony_ci	"gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90",
49162306a36Sopenharmony_ci	"gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97",
49262306a36Sopenharmony_ci	"gpio98", "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
49362306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", "gpio111",
49462306a36Sopenharmony_ci	"gpio112", "gpio113", "gpio114", "gpio115", "gpio116", "gpio117", "gpio118",
49562306a36Sopenharmony_ci	"gpio119", "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
49662306a36Sopenharmony_ci	"gpio126", "gpio127", "gpio128", "gpio129", "gpio130", "gpio131", "gpio132",
49762306a36Sopenharmony_ci};
49862306a36Sopenharmony_cistatic const char *const adsp_ext_groups[] = {
49962306a36Sopenharmony_ci	"gpio59", "gpio68",
50062306a36Sopenharmony_ci};
50162306a36Sopenharmony_cistatic const char *const atest_char_groups[] = {
50262306a36Sopenharmony_ci	"gpio24", "gpio25", "gpio26", "gpio41", "gpio63",
50362306a36Sopenharmony_ci};
50462306a36Sopenharmony_cistatic const char *const audio_ref_clk_groups[] = {
50562306a36Sopenharmony_ci	"gpio126",
50662306a36Sopenharmony_ci};
50762306a36Sopenharmony_cistatic const char *const bimc_dte_groups[] = {
50862306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio61", "gpio59",
50962306a36Sopenharmony_ci};
51062306a36Sopenharmony_cistatic const char *const char_exec_groups[] = {
51162306a36Sopenharmony_ci	"gpio6", "gpio7",
51262306a36Sopenharmony_ci};
51362306a36Sopenharmony_cistatic const char *const coex_uart2_groups[] = {
51462306a36Sopenharmony_ci	"gpio48", "gpio49", "gpio90", "gpio91",
51562306a36Sopenharmony_ci};
51662306a36Sopenharmony_cistatic const char *const coex_uart_groups[] = {
51762306a36Sopenharmony_ci	"gpio46", "gpio47",
51862306a36Sopenharmony_ci};
51962306a36Sopenharmony_cistatic const char *const cri_trng_groups[] = {
52062306a36Sopenharmony_ci	"gpio36",
52162306a36Sopenharmony_ci};
52262306a36Sopenharmony_cistatic const char *const cri_trng0_groups[] = {
52362306a36Sopenharmony_ci	"gpio31",
52462306a36Sopenharmony_ci};
52562306a36Sopenharmony_cistatic const char *const cri_trng1_groups[] = {
52662306a36Sopenharmony_ci	"gpio32",
52762306a36Sopenharmony_ci};
52862306a36Sopenharmony_cistatic const char *const dbg_out_clk_groups[] = {
52962306a36Sopenharmony_ci	"gpio26",
53062306a36Sopenharmony_ci};
53162306a36Sopenharmony_cistatic const char *const ddr_bist_groups[] = {
53262306a36Sopenharmony_ci	"gpio46", "gpio47", "gpio48", "gpio49",
53362306a36Sopenharmony_ci};
53462306a36Sopenharmony_cistatic const char *const ddr_pxi0_groups[] = {
53562306a36Sopenharmony_ci	"gpio45", "gpio46",
53662306a36Sopenharmony_ci};
53762306a36Sopenharmony_cistatic const char *const ebi0_wrcdc_groups[] = {
53862306a36Sopenharmony_ci	"gpio0", "gpio2",
53962306a36Sopenharmony_ci};
54062306a36Sopenharmony_cistatic const char *const ebi2_a_groups[] = {
54162306a36Sopenharmony_ci	"gpio100",
54262306a36Sopenharmony_ci};
54362306a36Sopenharmony_cistatic const char *const ebi2_lcd_groups[] = {
54462306a36Sopenharmony_ci	"gpio99", "gpio101",
54562306a36Sopenharmony_ci};
54662306a36Sopenharmony_cistatic const char *const ebi2_lcd_te_groups[] = {
54762306a36Sopenharmony_ci	"gpio98",
54862306a36Sopenharmony_ci};
54962306a36Sopenharmony_cistatic const char *const emac0_mcg_groups[] = {
55062306a36Sopenharmony_ci	"gpio83", "gpio84", "gpio85", "gpio89",
55162306a36Sopenharmony_ci};
55262306a36Sopenharmony_cistatic const char *const emac0_ptp_groups[] = {
55362306a36Sopenharmony_ci	"gpio35", "gpio83", "gpio84", "gpio85", "gpio89", "gpio119", "gpio123",
55462306a36Sopenharmony_ci};
55562306a36Sopenharmony_cistatic const char *const emac1_mcg_groups[] = {
55662306a36Sopenharmony_ci	"gpio90", "gpio92", "gpio93", "gpio122",
55762306a36Sopenharmony_ci};
55862306a36Sopenharmony_cistatic const char *const emac1_ptp_groups[] = {
55962306a36Sopenharmony_ci	"gpio112", "gpio113", "gpio114", "gpio115",
56062306a36Sopenharmony_ci};
56162306a36Sopenharmony_cistatic const char *const emac_cdc_groups[] = {
56262306a36Sopenharmony_ci	"gpio38", "gpio39",
56362306a36Sopenharmony_ci};
56462306a36Sopenharmony_cistatic const char *const emac_pps_in_groups[] = {
56562306a36Sopenharmony_ci	"gpio127",
56662306a36Sopenharmony_ci};
56762306a36Sopenharmony_cistatic const char *const eth0_mdc_groups[] = {
56862306a36Sopenharmony_ci	"gpio94",
56962306a36Sopenharmony_ci};
57062306a36Sopenharmony_cistatic const char *const eth0_mdio_groups[] = {
57162306a36Sopenharmony_ci	"gpio95",
57262306a36Sopenharmony_ci};
57362306a36Sopenharmony_cistatic const char *const eth1_mdc_groups[] = {
57462306a36Sopenharmony_ci	"gpio106",
57562306a36Sopenharmony_ci};
57662306a36Sopenharmony_cistatic const char *const eth1_mdio_groups[] = {
57762306a36Sopenharmony_ci	"gpio107",
57862306a36Sopenharmony_ci};
57962306a36Sopenharmony_cistatic const char *const ext_dbg_groups[] = {
58062306a36Sopenharmony_ci	"gpio12", "gpio13", "gpio14", "gpio15",
58162306a36Sopenharmony_ci};
58262306a36Sopenharmony_cistatic const char *const gcc_125_clk_groups[] = {
58362306a36Sopenharmony_ci	"gpio25",
58462306a36Sopenharmony_ci};
58562306a36Sopenharmony_cistatic const char *const gcc_gp1_clk_groups[] = {
58662306a36Sopenharmony_ci	"gpio39",
58762306a36Sopenharmony_ci};
58862306a36Sopenharmony_cistatic const char *const gcc_gp2_clk_groups[] = {
58962306a36Sopenharmony_ci	"gpio40",
59062306a36Sopenharmony_ci};
59162306a36Sopenharmony_cistatic const char *const gcc_gp3_clk_groups[] = {
59262306a36Sopenharmony_ci	"gpio41",
59362306a36Sopenharmony_ci};
59462306a36Sopenharmony_cistatic const char *const gcc_plltest_groups[] = {
59562306a36Sopenharmony_ci	"gpio81", "gpio82",
59662306a36Sopenharmony_ci};
59762306a36Sopenharmony_cistatic const char *const i2s_mclk_groups[] = {
59862306a36Sopenharmony_ci	"gpio74",
59962306a36Sopenharmony_ci};
60062306a36Sopenharmony_cistatic const char *const jitter_bist_groups[] = {
60162306a36Sopenharmony_ci	"gpio41",
60262306a36Sopenharmony_ci};
60362306a36Sopenharmony_cistatic const char *const ldo_en_groups[] = {
60462306a36Sopenharmony_ci	"gpio8",
60562306a36Sopenharmony_ci};
60662306a36Sopenharmony_cistatic const char *const ldo_update_groups[] = {
60762306a36Sopenharmony_ci	"gpio62",
60862306a36Sopenharmony_ci};
60962306a36Sopenharmony_cistatic const char *const m_voc_groups[] = {
61062306a36Sopenharmony_ci	"gpio62", "gpio63", "gpio64", "gpio65", "gpio71",
61162306a36Sopenharmony_ci};
61262306a36Sopenharmony_cistatic const char *const mgpi_clk_groups[] = {
61362306a36Sopenharmony_ci	"gpio39", "gpio40",
61462306a36Sopenharmony_ci};
61562306a36Sopenharmony_cistatic const char *const native_char_groups[] = {
61662306a36Sopenharmony_ci	"gpio29", "gpio33", "gpio57", "gpio66", "gpio67",
61762306a36Sopenharmony_ci};
61862306a36Sopenharmony_cistatic const char *const native_tsens_groups[] = {
61962306a36Sopenharmony_ci	"gpio38",
62062306a36Sopenharmony_ci};
62162306a36Sopenharmony_cistatic const char *const native_tsense_groups[] = {
62262306a36Sopenharmony_ci	"gpio64", "gpio76",
62362306a36Sopenharmony_ci};
62462306a36Sopenharmony_cistatic const char *const nav_dr_sync_groups[] = {
62562306a36Sopenharmony_ci	"gpio36",
62662306a36Sopenharmony_ci};
62762306a36Sopenharmony_cistatic const char *const nav_gpio_groups[] = {
62862306a36Sopenharmony_ci	"gpio35", "gpio36", "gpio104",
62962306a36Sopenharmony_ci};
63062306a36Sopenharmony_cistatic const char *const pa_indicator_groups[] = {
63162306a36Sopenharmony_ci	"gpio58",
63262306a36Sopenharmony_ci};
63362306a36Sopenharmony_cistatic const char *const pci_e_groups[] = {
63462306a36Sopenharmony_ci	"gpio42",
63562306a36Sopenharmony_ci};
63662306a36Sopenharmony_cistatic const char *const pcie0_clkreq_n_groups[] = {
63762306a36Sopenharmony_ci	"gpio43",
63862306a36Sopenharmony_ci};
63962306a36Sopenharmony_cistatic const char *const pcie1_clkreq_n_groups[] = {
64062306a36Sopenharmony_ci	"gpio124",
64162306a36Sopenharmony_ci};
64262306a36Sopenharmony_cistatic const char *const pcie2_clkreq_n_groups[] = {
64362306a36Sopenharmony_ci	"gpio121",
64462306a36Sopenharmony_ci};
64562306a36Sopenharmony_cistatic const char *const pll_bist_sync_groups[] = {
64662306a36Sopenharmony_ci	"gpio38",
64762306a36Sopenharmony_ci};
64862306a36Sopenharmony_cistatic const char *const pll_clk_aux_groups[] = {
64962306a36Sopenharmony_ci	"gpio40",
65062306a36Sopenharmony_ci};
65162306a36Sopenharmony_cistatic const char *const pll_ref_clk_groups[] = {
65262306a36Sopenharmony_ci	"gpio37",
65362306a36Sopenharmony_ci};
65462306a36Sopenharmony_cistatic const char *const pri_mi2s_groups[] = {
65562306a36Sopenharmony_ci	"gpio16", "gpio17", "gpio18", "gpio19",
65662306a36Sopenharmony_ci};
65762306a36Sopenharmony_cistatic const char *const prng_rosc_groups[] = {
65862306a36Sopenharmony_ci	"gpio27", "gpio36", "gpio37", "gpio38",
65962306a36Sopenharmony_ci};
66062306a36Sopenharmony_cistatic const char *const qdss_cti_groups[] = {
66162306a36Sopenharmony_ci	"gpio16", "gpio17", "gpio52", "gpio53", "gpio56",
66262306a36Sopenharmony_ci	"gpio57", "gpio59", "gpio60", "gpio78", "gpio79",
66362306a36Sopenharmony_ci};
66462306a36Sopenharmony_cistatic const char *const qdss_gpio_groups[] = {
66562306a36Sopenharmony_ci	"gpio82", "gpio83", "gpio84", "gpio85", "gpio94",
66662306a36Sopenharmony_ci	"gpio95", "gpio96", "gpio97", "gpio110", "gpio111",
66762306a36Sopenharmony_ci	"gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
66862306a36Sopenharmony_ci	"gpio117", "gpio118", "gpio119",
66962306a36Sopenharmony_ci};
67062306a36Sopenharmony_cistatic const char *const qlink0_b_en_groups[] = {
67162306a36Sopenharmony_ci	"gpio40",
67262306a36Sopenharmony_ci};
67362306a36Sopenharmony_cistatic const char *const qlink0_b_req_groups[] = {
67462306a36Sopenharmony_ci	"gpio41",
67562306a36Sopenharmony_ci};
67662306a36Sopenharmony_cistatic const char *const qlink0_l_en_groups[] = {
67762306a36Sopenharmony_ci	"gpio37",
67862306a36Sopenharmony_ci};
67962306a36Sopenharmony_cistatic const char *const qlink0_l_req_groups[] = {
68062306a36Sopenharmony_ci	"gpio38",
68162306a36Sopenharmony_ci};
68262306a36Sopenharmony_cistatic const char *const qlink0_wmss_groups[] = {
68362306a36Sopenharmony_ci	"gpio39",
68462306a36Sopenharmony_ci};
68562306a36Sopenharmony_cistatic const char *const qlink1_l_en_groups[] = {
68662306a36Sopenharmony_ci	"gpio26",
68762306a36Sopenharmony_ci};
68862306a36Sopenharmony_cistatic const char *const qlink1_l_req_groups[] = {
68962306a36Sopenharmony_ci	"gpio27",
69062306a36Sopenharmony_ci};
69162306a36Sopenharmony_cistatic const char *const qlink1_wmss_groups[] = {
69262306a36Sopenharmony_ci	"gpio28",
69362306a36Sopenharmony_ci};
69462306a36Sopenharmony_cistatic const char *const qup_se0_groups[] = {
69562306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11",
69662306a36Sopenharmony_ci};
69762306a36Sopenharmony_cistatic const char *const qup_se1_l2_mira_groups[] = {
69862306a36Sopenharmony_ci	"gpio12",
69962306a36Sopenharmony_ci};
70062306a36Sopenharmony_cistatic const char *const qup_se1_l2_mirb_groups[] = {
70162306a36Sopenharmony_ci	"gpio16",
70262306a36Sopenharmony_ci};
70362306a36Sopenharmony_cistatic const char *const qup_se1_l3_mira_groups[] = {
70462306a36Sopenharmony_ci	"gpio13",
70562306a36Sopenharmony_ci};
70662306a36Sopenharmony_cistatic const char *const qup_se1_l3_mirb_groups[] = {
70762306a36Sopenharmony_ci	"gpio17",
70862306a36Sopenharmony_ci};
70962306a36Sopenharmony_cistatic const char *const qup_se2_groups[] = {
71062306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio16", "gpio17",
71162306a36Sopenharmony_ci};
71262306a36Sopenharmony_cistatic const char *const qup_se3_groups[] = {
71362306a36Sopenharmony_ci	"gpio52", "gpio53", "gpio54", "gpio55",
71462306a36Sopenharmony_ci};
71562306a36Sopenharmony_cistatic const char *const qup_se4_groups[] = {
71662306a36Sopenharmony_ci	"gpio64", "gpio65",
71762306a36Sopenharmony_ci};
71862306a36Sopenharmony_cistatic const char *const qup_se5_groups[] = {
71962306a36Sopenharmony_ci	"gpio110", "gpio111",
72062306a36Sopenharmony_ci};
72162306a36Sopenharmony_cistatic const char *const qup_se6_groups[] = {
72262306a36Sopenharmony_ci	"gpio112", "gpio113", "gpio114", "gpio115",
72362306a36Sopenharmony_ci};
72462306a36Sopenharmony_cistatic const char *const qup_se7_groups[] = {
72562306a36Sopenharmony_ci	"gpio116", "gpio117", "gpio118", "gpio119",
72662306a36Sopenharmony_ci};
72762306a36Sopenharmony_cistatic const char *const qup_se8_groups[] = {
72862306a36Sopenharmony_ci	"gpio124", "gpio125",
72962306a36Sopenharmony_ci};
73062306a36Sopenharmony_cistatic const char *const rgmii_rx_ctl_groups[] = {
73162306a36Sopenharmony_ci	"gpio93",
73262306a36Sopenharmony_ci};
73362306a36Sopenharmony_cistatic const char *const rgmii_rxc_groups[] = {
73462306a36Sopenharmony_ci	"gpio88",
73562306a36Sopenharmony_ci};
73662306a36Sopenharmony_cistatic const char *const rgmii_rxd_groups[] = {
73762306a36Sopenharmony_ci	"gpio89", "gpio90", "gpio91", "gpio92",
73862306a36Sopenharmony_ci};
73962306a36Sopenharmony_cistatic const char *const rgmii_tx_ctl_groups[] = {
74062306a36Sopenharmony_ci	"gpio87",
74162306a36Sopenharmony_ci};
74262306a36Sopenharmony_cistatic const char *const rgmii_txc_groups[] = {
74362306a36Sopenharmony_ci	"gpio82",
74462306a36Sopenharmony_ci};
74562306a36Sopenharmony_cistatic const char *const rgmii_txd_groups[] = {
74662306a36Sopenharmony_ci	"gpio83", "gpio84", "gpio85", "gpio86",
74762306a36Sopenharmony_ci};
74862306a36Sopenharmony_cistatic const char *const sd_card_groups[] = {
74962306a36Sopenharmony_ci	"gpio105",
75062306a36Sopenharmony_ci};
75162306a36Sopenharmony_cistatic const char *const sdc1_tb_groups[] = {
75262306a36Sopenharmony_ci	"gpio84", "gpio130",
75362306a36Sopenharmony_ci};
75462306a36Sopenharmony_cistatic const char *const sdc2_tb_trig_groups[] = {
75562306a36Sopenharmony_ci	"gpio129",
75662306a36Sopenharmony_ci};
75762306a36Sopenharmony_cistatic const char *const sec_mi2s_groups[] = {
75862306a36Sopenharmony_ci	"gpio20", "gpio21", "gpio22", "gpio23",
75962306a36Sopenharmony_ci};
76062306a36Sopenharmony_cistatic const char *const sgmii_phy_intr0_n_groups[] = {
76162306a36Sopenharmony_ci	"gpio97",
76262306a36Sopenharmony_ci};
76362306a36Sopenharmony_cistatic const char *const sgmii_phy_intr1_n_groups[] = {
76462306a36Sopenharmony_ci	"gpio109",
76562306a36Sopenharmony_ci};
76662306a36Sopenharmony_cistatic const char *const spmi_coex_groups[] = {
76762306a36Sopenharmony_ci	"gpio48", "gpio49",
76862306a36Sopenharmony_ci};
76962306a36Sopenharmony_cistatic const char *const spmi_vgi_groups[] = {
77062306a36Sopenharmony_ci	"gpio50", "gpio51",
77162306a36Sopenharmony_ci};
77262306a36Sopenharmony_cistatic const char *const tgu_ch0_trigout_groups[] = {
77362306a36Sopenharmony_ci	"gpio55",
77462306a36Sopenharmony_ci};
77562306a36Sopenharmony_cistatic const char *const tmess_prng0_groups[] = {
77662306a36Sopenharmony_ci	"gpio28",
77762306a36Sopenharmony_ci};
77862306a36Sopenharmony_cistatic const char *const tmess_prng1_groups[] = {
77962306a36Sopenharmony_ci	"gpio29",
78062306a36Sopenharmony_ci};
78162306a36Sopenharmony_cistatic const char *const tmess_prng2_groups[] = {
78262306a36Sopenharmony_ci	"gpio30",
78362306a36Sopenharmony_ci};
78462306a36Sopenharmony_cistatic const char *const tmess_prng3_groups[] = {
78562306a36Sopenharmony_ci	"gpio31",
78662306a36Sopenharmony_ci};
78762306a36Sopenharmony_cistatic const char *const tri_mi2s_groups[] = {
78862306a36Sopenharmony_ci	"gpio98", "gpio99", "gpio100", "gpio101",
78962306a36Sopenharmony_ci};
79062306a36Sopenharmony_cistatic const char *const uim1_clk_groups[] = {
79162306a36Sopenharmony_ci	"gpio7",
79262306a36Sopenharmony_ci};
79362306a36Sopenharmony_cistatic const char *const uim1_data_groups[] = {
79462306a36Sopenharmony_ci	"gpio4",
79562306a36Sopenharmony_ci};
79662306a36Sopenharmony_cistatic const char *const uim1_present_groups[] = {
79762306a36Sopenharmony_ci	"gpio5",
79862306a36Sopenharmony_ci};
79962306a36Sopenharmony_cistatic const char *const uim1_reset_groups[] = {
80062306a36Sopenharmony_ci	"gpio6",
80162306a36Sopenharmony_ci};
80262306a36Sopenharmony_cistatic const char *const uim2_clk_groups[] = {
80362306a36Sopenharmony_ci	"gpio3",
80462306a36Sopenharmony_ci};
80562306a36Sopenharmony_cistatic const char *const uim2_data_groups[] = {
80662306a36Sopenharmony_ci	"gpio0",
80762306a36Sopenharmony_ci};
80862306a36Sopenharmony_cistatic const char *const uim2_present_groups[] = {
80962306a36Sopenharmony_ci	"gpio1",
81062306a36Sopenharmony_ci};
81162306a36Sopenharmony_cistatic const char *const uim2_reset_groups[] = {
81262306a36Sopenharmony_ci	"gpio2",
81362306a36Sopenharmony_ci};
81462306a36Sopenharmony_cistatic const char *const usb2phy_ac_en_groups[] = {
81562306a36Sopenharmony_ci	"gpio80",
81662306a36Sopenharmony_ci};
81762306a36Sopenharmony_cistatic const char *const vsense_trigger_mirnat_groups[] = {
81862306a36Sopenharmony_ci	"gpio37",
81962306a36Sopenharmony_ci};
82062306a36Sopenharmony_ci
82162306a36Sopenharmony_cistatic const struct pinfunction sdx75_functions[] = {
82262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(adsp_ext),
82362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(atest_char),
82462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(audio_ref_clk),
82562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(bimc_dte),
82662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(char_exec),
82762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(coex_uart2),
82862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(coex_uart),
82962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng),
83062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng0),
83162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cri_trng1),
83262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dbg_out_clk),
83362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_bist),
83462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ddr_pxi0),
83562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ebi0_wrcdc),
83662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ebi2_a),
83762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ebi2_lcd),
83862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ebi2_lcd_te),
83962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(emac0_mcg),
84062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(emac0_ptp),
84162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(emac1_mcg),
84262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(emac1_ptp),
84362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(emac_cdc),
84462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(emac_pps_in),
84562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(eth0_mdc),
84662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(eth0_mdio),
84762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(eth1_mdc),
84862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(eth1_mdio),
84962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ext_dbg),
85062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_125_clk),
85162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1_clk),
85262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2_clk),
85362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3_clk),
85462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_plltest),
85562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
85662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(i2s_mclk),
85762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(jitter_bist),
85862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ldo_en),
85962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ldo_update),
86062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(m_voc),
86162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mgpi_clk),
86262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(native_char),
86362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(native_tsens),
86462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(native_tsense),
86562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_dr_sync),
86662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_gpio),
86762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pa_indicator),
86862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pci_e),
86962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pcie0_clkreq_n),
87062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pcie1_clkreq_n),
87162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pcie2_clkreq_n),
87262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_bist_sync),
87362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_clk_aux),
87462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pll_ref_clk),
87562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pri_mi2s),
87662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(prng_rosc),
87762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti),
87862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_gpio),
87962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_b_en),
88062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_b_req),
88162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_l_en),
88262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_l_req),
88362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_l_en),
88462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_l_req),
88562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink0_wmss),
88662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qlink1_wmss),
88762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se0),
88862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se1_l2_mira),
88962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se1_l2_mirb),
89062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se1_l3_mira),
89162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se1_l3_mirb),
89262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se2),
89362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se3),
89462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se4),
89562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se5),
89662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se6),
89762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se7),
89862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qup_se8),
89962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rgmii_rx_ctl),
90062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rgmii_rxc),
90162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rgmii_rxd),
90262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rgmii_tx_ctl),
90362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rgmii_txc),
90462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rgmii_txd),
90562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sd_card),
90662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc1_tb),
90762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc2_tb_trig),
90862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sec_mi2s),
90962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sgmii_phy_intr0_n),
91062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sgmii_phy_intr1_n),
91162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(spmi_coex),
91262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(spmi_vgi),
91362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tgu_ch0_trigout),
91462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng0),
91562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng1),
91662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng2),
91762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tmess_prng3),
91862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tri_mi2s),
91962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_clk),
92062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_data),
92162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_present),
92262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_reset),
92362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_clk),
92462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_data),
92562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_present),
92662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_reset),
92762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb2phy_ac_en),
92862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vsense_trigger_mirnat),
92962306a36Sopenharmony_ci};
93062306a36Sopenharmony_ci
93162306a36Sopenharmony_cistatic const struct msm_pingroup sdx75_groups[] = {
93262306a36Sopenharmony_ci	[0] = PINGROUP(0, uim2_data, ebi0_wrcdc, _, _, _, _, _, _, _, _),
93362306a36Sopenharmony_ci	[1] = PINGROUP(1, uim2_present, _, _, _, _, _, _, _, _, _),
93462306a36Sopenharmony_ci	[2] = PINGROUP(2, uim2_reset, ebi0_wrcdc, _, _, _, _, _, _, _, _),
93562306a36Sopenharmony_ci	[3] = PINGROUP(3, uim2_clk, _, _, _, _, _, _, _, _, _),
93662306a36Sopenharmony_ci	[4] = PINGROUP(4, uim1_data, _, _, _, _, _, _, _, _, _),
93762306a36Sopenharmony_ci	[5] = PINGROUP(5, uim1_present, _, _, _, _, _, _, _, _, _),
93862306a36Sopenharmony_ci	[6] = PINGROUP(6, uim1_reset, char_exec, _, _, _, _, _, _, _, _),
93962306a36Sopenharmony_ci	[7] = PINGROUP(7, uim1_clk, char_exec, _, _, _, _, _, _, _, _),
94062306a36Sopenharmony_ci	[8] = PINGROUP(8, qup_se0, ldo_en, _, _, _, _, _, _, _, _),
94162306a36Sopenharmony_ci	[9] = PINGROUP(9, qup_se0, _, _, _, _, _, _, _, _, _),
94262306a36Sopenharmony_ci	[10] = PINGROUP(10, qup_se0, _, _, _, _, _, _, _, _, _),
94362306a36Sopenharmony_ci	[11] = PINGROUP(11, qup_se0, _, _, _, _, _, _, _, _, _),
94462306a36Sopenharmony_ci	[12] = PINGROUP(12, qup_se1_l2_mira, ext_dbg, _, _, _, _, _, _, _, _),
94562306a36Sopenharmony_ci	[13] = PINGROUP(13, qup_se1_l3_mira, ext_dbg, _, _, _, _, _, _,	_, _),
94662306a36Sopenharmony_ci	[14] = PINGROUP(14, qup_se2, ext_dbg, bimc_dte, _, _, _, _, _, _, _),
94762306a36Sopenharmony_ci	[15] = PINGROUP(15, qup_se2, ext_dbg, bimc_dte, _, _, _, _, _, _, _),
94862306a36Sopenharmony_ci	[16] = PINGROUP(16, pri_mi2s, qup_se2, qup_se1_l2_mirb, qdss_cti, qdss_cti, _, _, _, _, _),
94962306a36Sopenharmony_ci	[17] = PINGROUP(17, pri_mi2s, qup_se2, qup_se1_l3_mirb, qdss_cti, qdss_cti, _, _, _, _, _),
95062306a36Sopenharmony_ci	[18] = PINGROUP(18, pri_mi2s, _, _, _, _, _, _, _, _, _),
95162306a36Sopenharmony_ci	[19] = PINGROUP(19, pri_mi2s, _, _, _, _, _, _, _, _, _),
95262306a36Sopenharmony_ci	[20] = PINGROUP(20, sec_mi2s, _, _, _, _, _, _, _, _, _),
95362306a36Sopenharmony_ci	[21] = PINGROUP(21, sec_mi2s, _, _, _, _, _, _, _, _, _),
95462306a36Sopenharmony_ci	[22] = PINGROUP(22, sec_mi2s, _, _, _, _, _, _, _, _, _),
95562306a36Sopenharmony_ci	[23] = PINGROUP(23, sec_mi2s, _, _, _, _, _, _, _, _, _),
95662306a36Sopenharmony_ci	[24] = PINGROUP(24, _, atest_char, _, _, _, _, _, _, _, _),
95762306a36Sopenharmony_ci	[25] = PINGROUP(25, gcc_125_clk, _, atest_char, _, _, _, _, _,	_, _),
95862306a36Sopenharmony_ci	[26] = PINGROUP(26, _, _, qlink1_l_en, dbg_out_clk, atest_char, _, _, _, _, _),
95962306a36Sopenharmony_ci	[27] = PINGROUP(27, _, _, qlink1_l_req, prng_rosc, _, _, _, _,	_, _),
96062306a36Sopenharmony_ci	[28] = PINGROUP(28, _, qlink1_wmss, tmess_prng0, _, _, _, _, _,	_, _),
96162306a36Sopenharmony_ci	[29] = PINGROUP(29, _, _, _, native_char, tmess_prng1, _, _, _, _, _),
96262306a36Sopenharmony_ci	[30] = PINGROUP(30, _, _, _, tmess_prng2, _, _, _, _, _, _),
96362306a36Sopenharmony_ci	[31] = PINGROUP(31, _, _, cri_trng0, _, tmess_prng3, _, _, _, _, _),
96462306a36Sopenharmony_ci	[32] = PINGROUP(32, _, _, cri_trng1, _, _, _, _, _, _, _),
96562306a36Sopenharmony_ci	[33] = PINGROUP(33, _, _, native_char, _, _, _, _, _, _, _),
96662306a36Sopenharmony_ci	[34] = PINGROUP(34, _, _, _, _, _, _, _, _, _, _),
96762306a36Sopenharmony_ci	[35] = PINGROUP(35, nav_gpio, emac0_ptp, emac0_ptp, _, _, _, _, _, _, _),
96862306a36Sopenharmony_ci	[36] = PINGROUP(36, nav_gpio, nav_dr_sync, nav_gpio, cri_trng, prng_rosc, _, _, _, _, _),
96962306a36Sopenharmony_ci	[37] = PINGROUP(37, qlink0_l_en, _, pll_ref_clk, prng_rosc, vsense_trigger_mirnat, _, _, _, _, _),
97062306a36Sopenharmony_ci	[38] = PINGROUP(38, qlink0_l_req, _, pll_bist_sync, prng_rosc, _, emac_cdc, _, native_tsens, _, _),
97162306a36Sopenharmony_ci	[39] = PINGROUP(39, qlink0_wmss, _, mgpi_clk, gcc_gp1_clk, _, emac_cdc, _, _, _, _),
97262306a36Sopenharmony_ci	[40] = PINGROUP(40, qlink0_b_en, _, mgpi_clk, pll_clk_aux, gcc_gp2_clk, _, _, _, _, _),
97362306a36Sopenharmony_ci	[41] = PINGROUP(41, qlink0_b_req, _, jitter_bist, gcc_gp3_clk, _, _, atest_char, _, _, _),
97462306a36Sopenharmony_ci	[42] = PINGROUP(42, pci_e, _, _, _, _, _, _, _, _, _),
97562306a36Sopenharmony_ci	[43] = PINGROUP(43, pcie0_clkreq_n, _, _, _, _, _, _, _, _, _),
97662306a36Sopenharmony_ci	[44] = PINGROUP(44, _, _, _, _, _, _, _, _, _, _),
97762306a36Sopenharmony_ci	[45] = PINGROUP(45, ddr_pxi0, _, _, _, _, _, _, _, _, _),
97862306a36Sopenharmony_ci	[46] = PINGROUP(46, coex_uart, ddr_bist, ddr_pxi0, _, _, _, _, _, _, _),
97962306a36Sopenharmony_ci	[47] = PINGROUP(47, coex_uart, ddr_bist, _, _, _, _, _, _, _, _),
98062306a36Sopenharmony_ci	[48] = PINGROUP(48, coex_uart2, spmi_coex, ddr_bist, _, _, _, _, _, _, _),
98162306a36Sopenharmony_ci	[49] = PINGROUP(49, coex_uart2, spmi_coex, ddr_bist, _, _, _, _, _, _, _),
98262306a36Sopenharmony_ci	[50] = PINGROUP(50, spmi_vgi, _, _, _, _, _, _, _, _, _),
98362306a36Sopenharmony_ci	[51] = PINGROUP(51, spmi_vgi, _, _, _, _, _, _, _, _, _),
98462306a36Sopenharmony_ci	[52] = PINGROUP(52, qup_se3, qdss_cti, qdss_cti, _, _, _, _, _, _, _),
98562306a36Sopenharmony_ci	[53] = PINGROUP(53, qup_se3, qdss_cti, qdss_cti, _, _, _, _, _, _, _),
98662306a36Sopenharmony_ci	[54] = PINGROUP(54, qup_se3, _, _, _, _, _, _, _, _, _),
98762306a36Sopenharmony_ci	[55] = PINGROUP(55, qup_se3, tgu_ch0_trigout, _, _, _, _, _, _, _, _),
98862306a36Sopenharmony_ci	[56] = PINGROUP(56, qdss_cti, qdss_cti, _, _, _, _, _, _, _, _),
98962306a36Sopenharmony_ci	[57] = PINGROUP(57, qdss_cti, qdss_cti, _, native_char, _, _, _, _, _, _),
99062306a36Sopenharmony_ci	[58] = PINGROUP(58, _, pa_indicator, _, _, _, _, _, _, _, _),
99162306a36Sopenharmony_ci	[59] = PINGROUP(59, adsp_ext, qdss_cti, _, bimc_dte, _, _, _, _, _, _),
99262306a36Sopenharmony_ci	[60] = PINGROUP(60, qdss_cti, _, _, _, _, _, _, _, _, _),
99362306a36Sopenharmony_ci	[61] = PINGROUP(61, _, bimc_dte, _, _, _, _, _, _, _, _),
99462306a36Sopenharmony_ci	[62] = PINGROUP(62, m_voc, ldo_update, _, _, _, _, _, _, _, _),
99562306a36Sopenharmony_ci	[63] = PINGROUP(63, m_voc, _, atest_char, _, _, _, _, _, _, _),
99662306a36Sopenharmony_ci	[64] = PINGROUP(64, qup_se4, m_voc, _, native_tsense, _, _, _, _, _, _),
99762306a36Sopenharmony_ci	[65] = PINGROUP(65, qup_se4, m_voc, _, _, _, _, _, _, _, _),
99862306a36Sopenharmony_ci	[66] = PINGROUP(66, _, native_char, _, _, _, _, _, _, _, _),
99962306a36Sopenharmony_ci	[67] = PINGROUP(67, _, native_char, _, _, _, _, _, _, _, _),
100062306a36Sopenharmony_ci	[68] = PINGROUP(68, adsp_ext, _, _, _, _, _, _, _, _, _),
100162306a36Sopenharmony_ci	[69] = PINGROUP(69, _, _, _, _, _, _, _, _, _, _),
100262306a36Sopenharmony_ci	[70] = PINGROUP(70, _, _, _, _, _, _, _, _, _, _),
100362306a36Sopenharmony_ci	[71] = PINGROUP(71, m_voc, _, _, _, _, _, _, _, _, _),
100462306a36Sopenharmony_ci	[72] = PINGROUP(72, _, _, _, _, _, _, _, _, _, _),
100562306a36Sopenharmony_ci	[73] = PINGROUP(73, _, _, _, _, _, _, _, _, _, _),
100662306a36Sopenharmony_ci	[74] = PINGROUP(74, i2s_mclk, _, _, _, _, _, _, _, _, _),
100762306a36Sopenharmony_ci	[75] = PINGROUP(75, _, _, _, _, _, _, _, _, _, _),
100862306a36Sopenharmony_ci	[76] = PINGROUP(76, native_tsense, _, _, _, _, _, _, _, _, _),
100962306a36Sopenharmony_ci	[77] = PINGROUP(77, _, _, _, _, _, _, _, _, _, _),
101062306a36Sopenharmony_ci	[78] = PINGROUP(78, qdss_cti, qdss_cti, _, _, _, _, _, _, _, _),
101162306a36Sopenharmony_ci	[79] = PINGROUP(79, qdss_cti, qdss_cti, _, _, _, _, _, _, _, _),
101262306a36Sopenharmony_ci	[80] = PINGROUP(80, usb2phy_ac_en, _, _, _, _, _, _, _, _, _),
101362306a36Sopenharmony_ci	[81] = PINGROUP(81, gcc_plltest, _, _, _, _, _, _, _, _, _),
101462306a36Sopenharmony_ci	[82] = PINGROUP(82, rgmii_txc, gcc_plltest, qdss_gpio, _, _, _, _, _, _, _),
101562306a36Sopenharmony_ci	[83] = PINGROUP(83, rgmii_txd, emac0_ptp, emac0_ptp, emac0_mcg, qdss_gpio, _, _, _, _, _),
101662306a36Sopenharmony_ci	[84] = PINGROUP(84, rgmii_txd, emac0_ptp, emac0_mcg, qdss_gpio, _, sdc1_tb, _, _, _, _),
101762306a36Sopenharmony_ci	[85] = PINGROUP(85, rgmii_txd, emac0_ptp, emac0_mcg, qdss_gpio, _, _, _, _, _, _),
101862306a36Sopenharmony_ci	[86] = PINGROUP(86, rgmii_txd, _, _, _, _, _, _, _, _, _),
101962306a36Sopenharmony_ci	[87] = PINGROUP(87, rgmii_tx_ctl, _, _, _, _, _, _, _, _, _),
102062306a36Sopenharmony_ci	[88] = PINGROUP(88, rgmii_rxc, _, _, _, _, _, _, _, _, _),
102162306a36Sopenharmony_ci	[89] = PINGROUP(89, rgmii_rxd, emac0_ptp, emac0_ptp, emac0_mcg, _, _, _, _, _, _),
102262306a36Sopenharmony_ci	[90] = PINGROUP(90, rgmii_rxd, coex_uart2, emac1_mcg, _, _, _, _, _, _, _),
102362306a36Sopenharmony_ci	[91] = PINGROUP(91, rgmii_rxd, coex_uart2, _, _, _, _, _, _, _, _),
102462306a36Sopenharmony_ci	[92] = PINGROUP(92, rgmii_rxd, emac1_mcg, _, _, _, _, _, _, _, _),
102562306a36Sopenharmony_ci	[93] = PINGROUP(93, rgmii_rx_ctl, emac1_mcg, _, _, _, _, _, _, _, _),
102662306a36Sopenharmony_ci	[94] = PINGROUP(94, eth0_mdc, qdss_gpio, _, _, _, _, _, _, _, _),
102762306a36Sopenharmony_ci	[95] = PINGROUP(95, eth0_mdio, qdss_gpio, _, _, _, _, _, _, _, _),
102862306a36Sopenharmony_ci	[96] = PINGROUP(96, qdss_gpio, _, _, _, _, _, _, _, _, _),
102962306a36Sopenharmony_ci	[97] = PINGROUP(97, sgmii_phy_intr0_n, _, qdss_gpio, _, _, _, _, _, _, _),
103062306a36Sopenharmony_ci	[98] = PINGROUP(98, tri_mi2s, ebi2_lcd_te, _, _, _, _, _, _, _, _),
103162306a36Sopenharmony_ci	[99] = PINGROUP(99, tri_mi2s, ebi2_lcd, _, _, _, _, _, _, _, _),
103262306a36Sopenharmony_ci	[100] = PINGROUP(100, tri_mi2s, ebi2_a, _, _, _, _, _, _, _, _),
103362306a36Sopenharmony_ci	[101] = PINGROUP(101, tri_mi2s, ebi2_lcd, _, _, _, _, _, _, _, _),
103462306a36Sopenharmony_ci	[102] = PINGROUP(102, _, _, _, _, _, _, _, _, _, _),
103562306a36Sopenharmony_ci	[103] =	PINGROUP(103, _, _, _, _, _, _, _, _, _, _),
103662306a36Sopenharmony_ci	[104] = PINGROUP(104, nav_gpio, _, _, _, _, _, _, _, _, _),
103762306a36Sopenharmony_ci	[105] = PINGROUP(105, sd_card, _, _, _, _, _, _, _, _, _),
103862306a36Sopenharmony_ci	[106] = PINGROUP(106, eth1_mdc, _, _, _, _, _, _, _, _, _),
103962306a36Sopenharmony_ci	[107] = PINGROUP(107, eth1_mdio, _, _, _, _, _, _, _, _, _),
104062306a36Sopenharmony_ci	[108] =	PINGROUP(108, _, _, _, _, _, _, _, _, _, _),
104162306a36Sopenharmony_ci	[109] = PINGROUP(109, sgmii_phy_intr1_n, _, _, _, _, _, _, _, _, _),
104262306a36Sopenharmony_ci	[110] = PINGROUP(110, qup_se5, qdss_gpio, _, _, _, _, _, _, _, _),
104362306a36Sopenharmony_ci	[111] = PINGROUP(111, qup_se5, qdss_gpio, _, _, _, _, _, _, _, _),
104462306a36Sopenharmony_ci	[112] = PINGROUP(112, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
104562306a36Sopenharmony_ci	[113] = PINGROUP(113, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
104662306a36Sopenharmony_ci	[114] = PINGROUP(114, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
104762306a36Sopenharmony_ci	[115] = PINGROUP(115, qup_se6, emac1_ptp, emac1_ptp, qdss_gpio, _, _, _, _, _, _),
104862306a36Sopenharmony_ci	[116] = PINGROUP(116, qup_se7, qdss_gpio, _, _, _, _, _, _, _, _),
104962306a36Sopenharmony_ci	[117] = PINGROUP(117, qup_se7, qdss_gpio, _, _, _, _, _, _, _, _),
105062306a36Sopenharmony_ci	[118] = PINGROUP(118, qup_se7, qdss_gpio, _, _, _, _, _, _, _, _),
105162306a36Sopenharmony_ci	[119] = PINGROUP(119, qup_se7, emac0_ptp, qdss_gpio, _, _, _, _, _, _, _),
105262306a36Sopenharmony_ci	[120] = PINGROUP(120, _, _, _, _, _, _, _, _, _, _),
105362306a36Sopenharmony_ci	[121] = PINGROUP(121, pcie2_clkreq_n, _, _, _, _, _, _, _, _, _),
105462306a36Sopenharmony_ci	[122] = PINGROUP(122, emac1_mcg, _, _, _, _, _, _, _, _, _),
105562306a36Sopenharmony_ci	[123] = PINGROUP(123, emac0_ptp, emac0_ptp, emac0_ptp, emac0_ptp, _, _, _, _, _, _),
105662306a36Sopenharmony_ci	[124] = PINGROUP(124, pcie1_clkreq_n, qup_se8, _, _, _, _, _, _, _, _),
105762306a36Sopenharmony_ci	[125] = PINGROUP(125, qup_se8, _, _, _, _, _, _, _, _, _),
105862306a36Sopenharmony_ci	[126] = PINGROUP(126, audio_ref_clk, _, _, _, _, _, _, _, _, _),
105962306a36Sopenharmony_ci	[127] = PINGROUP(127, emac_pps_in, _, _, _, _, _, _, _, _, _),
106062306a36Sopenharmony_ci	[128] =	PINGROUP(128, _, _, _, _, _, _, _, _, _, _),
106162306a36Sopenharmony_ci	[129] = PINGROUP(129, sdc2_tb_trig, _, _, _, _, _, _, _, _, _),
106262306a36Sopenharmony_ci	[130] = PINGROUP(130, sdc1_tb, _, _, _, _, _, _, _, _, _),
106362306a36Sopenharmony_ci	[131] = PINGROUP(131, _, _, _, _, _, _, _, _, _, _),
106462306a36Sopenharmony_ci	[132] =	PINGROUP(132, _, _, _, _, _, _, _, _, _, _),
106562306a36Sopenharmony_ci	[133] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x19a000, 16, 0),
106662306a36Sopenharmony_ci	[134] = SDC_QDSD_PINGROUP(sdc1_clk, 0x19a000, 14, 6),
106762306a36Sopenharmony_ci	[135] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x19a000, 11, 3),
106862306a36Sopenharmony_ci	[136] = SDC_QDSD_PINGROUP(sdc1_data, 0x19a000, 9, 0),
106962306a36Sopenharmony_ci	[137] = SDC_QDSD_PINGROUP(sdc2_clk, 0x19b000, 14, 6),
107062306a36Sopenharmony_ci	[138] = SDC_QDSD_PINGROUP(sdc2_cmd, 0x19b000, 11, 3),
107162306a36Sopenharmony_ci	[139] = SDC_QDSD_PINGROUP(sdc2_data, 0x19b000, 9, 0),
107262306a36Sopenharmony_ci};
107362306a36Sopenharmony_ci
107462306a36Sopenharmony_cistatic const struct msm_gpio_wakeirq_map sdx75_pdc_map[] = {
107562306a36Sopenharmony_ci	{ 1, 57 }, { 2, 91 }, {5, 52 }, { 6, 109 }, { 9, 129 }, { 11, 62 },
107662306a36Sopenharmony_ci	{ 13, 84 }, { 15, 87 }, { 17, 88 }, { 18, 89 }, { 19, 90 }, { 20, 92 },
107762306a36Sopenharmony_ci	{ 21, 93 }, { 22, 94 }, { 23, 95 }, { 25, 96 }, { 27, 97 }, { 35, 58 },
107862306a36Sopenharmony_ci	{ 36, 53 }, { 38, 98 }, { 39, 99 }, { 40, 100 }, { 41, 101 }, { 42, 54 },
107962306a36Sopenharmony_ci	{ 43, 56 }, { 44, 71 }, { 46, 60 }, { 47, 61 }, { 49, 47 }, { 50, 126 },
108062306a36Sopenharmony_ci	{ 51, 55 }, { 52, 102 }, { 53, 141 }, { 54, 104 }, { 55, 105 }, { 56, 106 },
108162306a36Sopenharmony_ci	{ 57, 107 }, { 59, 108 }, { 60, 110 }, { 62, 111 }, { 63, 112 }, { 64, 113 },
108262306a36Sopenharmony_ci	{ 65, 114 }, { 67, 115 }, { 68, 116 }, { 69, 117 }, { 70, 118 }, { 71, 119 },
108362306a36Sopenharmony_ci	{ 72, 120 }, { 75, 121 }, { 76, 122 }, { 78, 123 }, { 79, 124 }, { 80, 125 },
108462306a36Sopenharmony_ci	{ 81, 50 }, { 85, 127 }, { 87, 128 }, { 91, 130 }, { 92, 131 }, { 93, 132 },
108562306a36Sopenharmony_ci	{ 94, 133 }, { 95, 134 }, { 97, 135 }, { 98, 136 }, { 101, 64 }, { 103, 51 },
108662306a36Sopenharmony_ci	{ 105, 65 }, { 106, 66 }, { 107, 67 }, { 108, 68 }, { 109, 69 }, { 111, 70 },
108762306a36Sopenharmony_ci	{ 113, 59 }, { 115, 72 }, { 116, 73 }, { 117, 74 }, { 118, 75 }, { 119, 76 },
108862306a36Sopenharmony_ci	{ 120, 77 }, { 121, 78 }, { 123, 79 }, { 124, 80 }, { 125, 63 }, { 127, 81 },
108962306a36Sopenharmony_ci	{ 128, 82 }, { 129, 83 }, { 130, 85 }, { 132, 86 },
109062306a36Sopenharmony_ci};
109162306a36Sopenharmony_ci
109262306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data sdx75_pinctrl = {
109362306a36Sopenharmony_ci	.pins = sdx75_pins,
109462306a36Sopenharmony_ci	.npins = ARRAY_SIZE(sdx75_pins),
109562306a36Sopenharmony_ci	.functions = sdx75_functions,
109662306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(sdx75_functions),
109762306a36Sopenharmony_ci	.groups = sdx75_groups,
109862306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(sdx75_groups),
109962306a36Sopenharmony_ci	.ngpios = 133,
110062306a36Sopenharmony_ci	.wakeirq_map = sdx75_pdc_map,
110162306a36Sopenharmony_ci	.nwakeirq_map = ARRAY_SIZE(sdx75_pdc_map),
110262306a36Sopenharmony_ci};
110362306a36Sopenharmony_ci
110462306a36Sopenharmony_cistatic const struct of_device_id sdx75_pinctrl_of_match[] = {
110562306a36Sopenharmony_ci	{ .compatible = "qcom,sdx75-tlmm", .data = &sdx75_pinctrl },
110662306a36Sopenharmony_ci	{ }
110762306a36Sopenharmony_ci};
110862306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, sdx75_pinctrl_of_match);
110962306a36Sopenharmony_ci
111062306a36Sopenharmony_cistatic int sdx75_pinctrl_probe(struct platform_device *pdev)
111162306a36Sopenharmony_ci{
111262306a36Sopenharmony_ci	const struct msm_pinctrl_soc_data *pinctrl_data;
111362306a36Sopenharmony_ci
111462306a36Sopenharmony_ci	pinctrl_data = of_device_get_match_data(&pdev->dev);
111562306a36Sopenharmony_ci	if (!pinctrl_data)
111662306a36Sopenharmony_ci		return -EINVAL;
111762306a36Sopenharmony_ci
111862306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, pinctrl_data);
111962306a36Sopenharmony_ci}
112062306a36Sopenharmony_ci
112162306a36Sopenharmony_cistatic struct platform_driver sdx75_pinctrl_driver = {
112262306a36Sopenharmony_ci	.driver = {
112362306a36Sopenharmony_ci		.name = "sdx75-tlmm",
112462306a36Sopenharmony_ci		.of_match_table = sdx75_pinctrl_of_match,
112562306a36Sopenharmony_ci	},
112662306a36Sopenharmony_ci	.probe = sdx75_pinctrl_probe,
112762306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
112862306a36Sopenharmony_ci};
112962306a36Sopenharmony_ci
113062306a36Sopenharmony_cistatic int __init sdx75_pinctrl_init(void)
113162306a36Sopenharmony_ci{
113262306a36Sopenharmony_ci	return platform_driver_register(&sdx75_pinctrl_driver);
113362306a36Sopenharmony_ci}
113462306a36Sopenharmony_ciarch_initcall(sdx75_pinctrl_init);
113562306a36Sopenharmony_ci
113662306a36Sopenharmony_cistatic void __exit sdx75_pinctrl_exit(void)
113762306a36Sopenharmony_ci{
113862306a36Sopenharmony_ci	platform_driver_unregister(&sdx75_pinctrl_driver);
113962306a36Sopenharmony_ci}
114062306a36Sopenharmony_cimodule_exit(sdx75_pinctrl_exit);
114162306a36Sopenharmony_ci
114262306a36Sopenharmony_ciMODULE_DESCRIPTION("QTI sdx75 pinctrl driver");
114362306a36Sopenharmony_ciMODULE_LICENSE("GPL");
1144