162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2016, 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_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11)	\
1362306a36Sopenharmony_ci	{						\
1462306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
1562306a36Sopenharmony_ci			gpio##id##_pins, 		\
1662306a36Sopenharmony_ci			ARRAY_SIZE(gpio##id##_pins)),	\
1762306a36Sopenharmony_ci		.funcs = (int[]){			\
1862306a36Sopenharmony_ci			msm_mux_gpio,			\
1962306a36Sopenharmony_ci			msm_mux_##f1,			\
2062306a36Sopenharmony_ci			msm_mux_##f2,			\
2162306a36Sopenharmony_ci			msm_mux_##f3,			\
2262306a36Sopenharmony_ci			msm_mux_##f4,			\
2362306a36Sopenharmony_ci			msm_mux_##f5,			\
2462306a36Sopenharmony_ci			msm_mux_##f6,			\
2562306a36Sopenharmony_ci			msm_mux_##f7,			\
2662306a36Sopenharmony_ci			msm_mux_##f8,			\
2762306a36Sopenharmony_ci			msm_mux_##f9,			\
2862306a36Sopenharmony_ci			msm_mux_##f10,			\
2962306a36Sopenharmony_ci			msm_mux_##f11			\
3062306a36Sopenharmony_ci		},					\
3162306a36Sopenharmony_ci		.nfuncs = 12,				\
3262306a36Sopenharmony_ci		.ctl_reg = 0x1000 + 0x10 * id,		\
3362306a36Sopenharmony_ci		.io_reg = 0x1004 + 0x10 * id,		\
3462306a36Sopenharmony_ci		.intr_cfg_reg = 0x1008 + 0x10 * id,	\
3562306a36Sopenharmony_ci		.intr_status_reg = 0x100c + 0x10 * id,	\
3662306a36Sopenharmony_ci		.intr_target_reg = 0x1008 + 0x10 * id,	\
3762306a36Sopenharmony_ci		.mux_bit = 2,				\
3862306a36Sopenharmony_ci		.pull_bit = 0,				\
3962306a36Sopenharmony_ci		.drv_bit = 6,				\
4062306a36Sopenharmony_ci		.oe_bit = 9,				\
4162306a36Sopenharmony_ci		.in_bit = 0,				\
4262306a36Sopenharmony_ci		.out_bit = 1,				\
4362306a36Sopenharmony_ci		.intr_enable_bit = 0,			\
4462306a36Sopenharmony_ci		.intr_status_bit = 0,			\
4562306a36Sopenharmony_ci		.intr_target_bit = 5,			\
4662306a36Sopenharmony_ci		.intr_target_kpss_val = 4,		\
4762306a36Sopenharmony_ci		.intr_raw_status_bit = 4,		\
4862306a36Sopenharmony_ci		.intr_polarity_bit = 1,			\
4962306a36Sopenharmony_ci		.intr_detection_bit = 2,		\
5062306a36Sopenharmony_ci		.intr_detection_width = 2,		\
5162306a36Sopenharmony_ci	}
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv)		\
5462306a36Sopenharmony_ci	{						\
5562306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
5662306a36Sopenharmony_ci			pg_name##_pins, 		\
5762306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
5862306a36Sopenharmony_ci		.ctl_reg = ctl,				\
5962306a36Sopenharmony_ci		.io_reg = 0,				\
6062306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
6162306a36Sopenharmony_ci		.intr_status_reg = 0,			\
6262306a36Sopenharmony_ci		.intr_target_reg = 0,			\
6362306a36Sopenharmony_ci		.mux_bit = -1,				\
6462306a36Sopenharmony_ci		.pull_bit = pull,			\
6562306a36Sopenharmony_ci		.drv_bit = drv,				\
6662306a36Sopenharmony_ci		.oe_bit = -1,				\
6762306a36Sopenharmony_ci		.in_bit = -1,				\
6862306a36Sopenharmony_ci		.out_bit = -1,				\
6962306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
7062306a36Sopenharmony_ci		.intr_status_bit = -1,			\
7162306a36Sopenharmony_ci		.intr_target_bit = -1,			\
7262306a36Sopenharmony_ci		.intr_target_kpss_val = -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_cistatic const struct pinctrl_pin_desc msm8994_pins[] = {
7962306a36Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
8062306a36Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
8162306a36Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
8262306a36Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
8362306a36Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
8462306a36Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
8562306a36Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
8662306a36Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
8762306a36Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
8862306a36Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
8962306a36Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
9062306a36Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
9162306a36Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
9262306a36Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
9362306a36Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
9462306a36Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
9562306a36Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
9662306a36Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
9762306a36Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
9862306a36Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
9962306a36Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
10062306a36Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
10162306a36Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
10262306a36Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
10362306a36Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
10462306a36Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
10562306a36Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
10662306a36Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
10762306a36Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
10862306a36Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
10962306a36Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
11062306a36Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
11162306a36Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
11262306a36Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
11362306a36Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
11462306a36Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
11562306a36Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
11662306a36Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
11762306a36Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
11862306a36Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
11962306a36Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
12062306a36Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
12162306a36Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
12262306a36Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
12362306a36Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
12462306a36Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
12562306a36Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
12662306a36Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
12762306a36Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
12862306a36Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
12962306a36Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
13062306a36Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
13162306a36Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
13262306a36Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
13362306a36Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
13462306a36Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
13562306a36Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
13662306a36Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
13762306a36Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
13862306a36Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
13962306a36Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
14062306a36Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
14162306a36Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
14262306a36Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
14362306a36Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
14462306a36Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
14562306a36Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
14662306a36Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
14762306a36Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
14862306a36Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
14962306a36Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
15062306a36Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
15162306a36Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
15262306a36Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
15362306a36Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
15462306a36Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
15562306a36Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
15662306a36Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
15762306a36Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
15862306a36Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
15962306a36Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
16062306a36Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
16162306a36Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
16262306a36Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
16362306a36Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
16462306a36Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
16562306a36Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
16662306a36Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
16762306a36Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
16862306a36Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
16962306a36Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
17062306a36Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
17162306a36Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
17262306a36Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
17362306a36Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
17462306a36Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
17562306a36Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
17662306a36Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
17762306a36Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
17862306a36Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
17962306a36Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
18062306a36Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
18162306a36Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
18262306a36Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
18362306a36Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
18462306a36Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
18562306a36Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
18662306a36Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
18762306a36Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
18862306a36Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
18962306a36Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
19062306a36Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
19162306a36Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
19262306a36Sopenharmony_ci	PINCTRL_PIN(113, "GPIO_113"),
19362306a36Sopenharmony_ci	PINCTRL_PIN(114, "GPIO_114"),
19462306a36Sopenharmony_ci	PINCTRL_PIN(115, "GPIO_115"),
19562306a36Sopenharmony_ci	PINCTRL_PIN(116, "GPIO_116"),
19662306a36Sopenharmony_ci	PINCTRL_PIN(117, "GPIO_117"),
19762306a36Sopenharmony_ci	PINCTRL_PIN(118, "GPIO_118"),
19862306a36Sopenharmony_ci	PINCTRL_PIN(119, "GPIO_119"),
19962306a36Sopenharmony_ci	PINCTRL_PIN(120, "GPIO_120"),
20062306a36Sopenharmony_ci	PINCTRL_PIN(121, "GPIO_121"),
20162306a36Sopenharmony_ci	PINCTRL_PIN(122, "GPIO_122"),
20262306a36Sopenharmony_ci	PINCTRL_PIN(123, "GPIO_123"),
20362306a36Sopenharmony_ci	PINCTRL_PIN(124, "GPIO_124"),
20462306a36Sopenharmony_ci	PINCTRL_PIN(125, "GPIO_125"),
20562306a36Sopenharmony_ci	PINCTRL_PIN(126, "GPIO_126"),
20662306a36Sopenharmony_ci	PINCTRL_PIN(127, "GPIO_127"),
20762306a36Sopenharmony_ci	PINCTRL_PIN(128, "GPIO_128"),
20862306a36Sopenharmony_ci	PINCTRL_PIN(129, "GPIO_129"),
20962306a36Sopenharmony_ci	PINCTRL_PIN(130, "GPIO_130"),
21062306a36Sopenharmony_ci	PINCTRL_PIN(131, "GPIO_131"),
21162306a36Sopenharmony_ci	PINCTRL_PIN(132, "GPIO_132"),
21262306a36Sopenharmony_ci	PINCTRL_PIN(133, "GPIO_133"),
21362306a36Sopenharmony_ci	PINCTRL_PIN(134, "GPIO_134"),
21462306a36Sopenharmony_ci	PINCTRL_PIN(135, "GPIO_135"),
21562306a36Sopenharmony_ci	PINCTRL_PIN(136, "GPIO_136"),
21662306a36Sopenharmony_ci	PINCTRL_PIN(137, "GPIO_137"),
21762306a36Sopenharmony_ci	PINCTRL_PIN(138, "GPIO_138"),
21862306a36Sopenharmony_ci	PINCTRL_PIN(139, "GPIO_139"),
21962306a36Sopenharmony_ci	PINCTRL_PIN(140, "GPIO_140"),
22062306a36Sopenharmony_ci	PINCTRL_PIN(141, "GPIO_141"),
22162306a36Sopenharmony_ci	PINCTRL_PIN(142, "GPIO_142"),
22262306a36Sopenharmony_ci	PINCTRL_PIN(143, "GPIO_143"),
22362306a36Sopenharmony_ci	PINCTRL_PIN(144, "GPIO_144"),
22462306a36Sopenharmony_ci	PINCTRL_PIN(145, "GPIO_145"),
22562306a36Sopenharmony_ci	PINCTRL_PIN(146, "SDC1_RCLK"),
22662306a36Sopenharmony_ci	PINCTRL_PIN(147, "SDC1_CLK"),
22762306a36Sopenharmony_ci	PINCTRL_PIN(148, "SDC1_CMD"),
22862306a36Sopenharmony_ci	PINCTRL_PIN(149, "SDC1_DATA"),
22962306a36Sopenharmony_ci	PINCTRL_PIN(150, "SDC2_CLK"),
23062306a36Sopenharmony_ci	PINCTRL_PIN(151, "SDC2_CMD"),
23162306a36Sopenharmony_ci	PINCTRL_PIN(152, "SDC2_DATA"),
23262306a36Sopenharmony_ci	PINCTRL_PIN(153, "SDC3_CLK"),
23362306a36Sopenharmony_ci	PINCTRL_PIN(154, "SDC3_CMD"),
23462306a36Sopenharmony_ci	PINCTRL_PIN(155, "SDC3_DATA"),
23562306a36Sopenharmony_ci};
23662306a36Sopenharmony_ci
23762306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \
23862306a36Sopenharmony_ci	static const unsigned int gpio##pin##_pins[] = { pin }
23962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0);
24062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1);
24162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2);
24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3);
24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4);
24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5);
24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6);
24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7);
24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8);
24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9);
24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10);
25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11);
25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12);
25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13);
25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14);
25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15);
25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16);
25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17);
25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18);
25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19);
25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20);
26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21);
26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22);
26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23);
26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24);
26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25);
26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26);
26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27);
26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28);
26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29);
26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30);
27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31);
27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32);
27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33);
27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34);
27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35);
27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36);
27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37);
27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38);
27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39);
27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40);
28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41);
28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42);
28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43);
28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44);
28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45);
28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46);
28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47);
28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48);
28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49);
28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50);
29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51);
29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52);
29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53);
29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54);
29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55);
29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56);
29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57);
29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58);
29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59);
29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60);
30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61);
30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62);
30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63);
30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64);
30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65);
30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66);
30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67);
30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68);
30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69);
30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70);
31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71);
31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72);
31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73);
31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74);
31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75);
31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76);
31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77);
31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78);
31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79);
31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80);
32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81);
32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82);
32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83);
32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84);
32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85);
32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86);
32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87);
32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88);
32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89);
32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90);
33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91);
33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92);
33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93);
33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94);
33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95);
33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96);
33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97);
33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98);
33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99);
33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100);
34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101);
34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102);
34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103);
34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104);
34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105);
34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106);
34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107);
34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108);
34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109);
34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110);
35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111);
35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112);
35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113);
35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114);
35462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115);
35562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116);
35662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117);
35762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118);
35862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119);
35962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120);
36062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121);
36162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122);
36262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123);
36362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124);
36462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125);
36562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126);
36662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127);
36762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128);
36862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129);
36962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130);
37062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131);
37162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132);
37262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133);
37362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134);
37462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135);
37562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136);
37662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137);
37762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138);
37862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139);
37962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140);
38062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141);
38162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142);
38262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143);
38362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144);
38462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145);
38562306a36Sopenharmony_ci
38662306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 146 };
38762306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 147 };
38862306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 148 };
38962306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 149 };
39062306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 150 };
39162306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 151 };
39262306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 152 };
39362306a36Sopenharmony_cistatic const unsigned int sdc3_clk_pins[] = { 153 };
39462306a36Sopenharmony_cistatic const unsigned int sdc3_cmd_pins[] = { 154 };
39562306a36Sopenharmony_cistatic const unsigned int sdc3_data_pins[] = { 155 };
39662306a36Sopenharmony_ci
39762306a36Sopenharmony_cienum msm8994_functions {
39862306a36Sopenharmony_ci	msm_mux_audio_ref_clk,
39962306a36Sopenharmony_ci	msm_mux_blsp_i2c1,
40062306a36Sopenharmony_ci	msm_mux_blsp_i2c2,
40162306a36Sopenharmony_ci	msm_mux_blsp_i2c3,
40262306a36Sopenharmony_ci	msm_mux_blsp_i2c4,
40362306a36Sopenharmony_ci	msm_mux_blsp_i2c5,
40462306a36Sopenharmony_ci	msm_mux_blsp_i2c6,
40562306a36Sopenharmony_ci	msm_mux_blsp_i2c7,
40662306a36Sopenharmony_ci	msm_mux_blsp_i2c8,
40762306a36Sopenharmony_ci	msm_mux_blsp_i2c9,
40862306a36Sopenharmony_ci	msm_mux_blsp_i2c10,
40962306a36Sopenharmony_ci	msm_mux_blsp_i2c11,
41062306a36Sopenharmony_ci	msm_mux_blsp_i2c12,
41162306a36Sopenharmony_ci	msm_mux_blsp_spi1,
41262306a36Sopenharmony_ci	msm_mux_blsp_spi1_cs1,
41362306a36Sopenharmony_ci	msm_mux_blsp_spi1_cs2,
41462306a36Sopenharmony_ci	msm_mux_blsp_spi1_cs3,
41562306a36Sopenharmony_ci	msm_mux_blsp_spi2,
41662306a36Sopenharmony_ci	msm_mux_blsp_spi2_cs1,
41762306a36Sopenharmony_ci	msm_mux_blsp_spi2_cs2,
41862306a36Sopenharmony_ci	msm_mux_blsp_spi2_cs3,
41962306a36Sopenharmony_ci	msm_mux_blsp_spi3,
42062306a36Sopenharmony_ci	msm_mux_blsp_spi4,
42162306a36Sopenharmony_ci	msm_mux_blsp_spi5,
42262306a36Sopenharmony_ci	msm_mux_blsp_spi6,
42362306a36Sopenharmony_ci	msm_mux_blsp_spi7,
42462306a36Sopenharmony_ci	msm_mux_blsp_spi8,
42562306a36Sopenharmony_ci	msm_mux_blsp_spi9,
42662306a36Sopenharmony_ci	msm_mux_blsp_spi10,
42762306a36Sopenharmony_ci	msm_mux_blsp_spi10_cs1,
42862306a36Sopenharmony_ci	msm_mux_blsp_spi10_cs2,
42962306a36Sopenharmony_ci	msm_mux_blsp_spi10_cs3,
43062306a36Sopenharmony_ci	msm_mux_blsp_spi11,
43162306a36Sopenharmony_ci	msm_mux_blsp_spi12,
43262306a36Sopenharmony_ci	msm_mux_blsp_uart1,
43362306a36Sopenharmony_ci	msm_mux_blsp_uart2,
43462306a36Sopenharmony_ci	msm_mux_blsp_uart3,
43562306a36Sopenharmony_ci	msm_mux_blsp_uart4,
43662306a36Sopenharmony_ci	msm_mux_blsp_uart5,
43762306a36Sopenharmony_ci	msm_mux_blsp_uart6,
43862306a36Sopenharmony_ci	msm_mux_blsp_uart7,
43962306a36Sopenharmony_ci	msm_mux_blsp_uart8,
44062306a36Sopenharmony_ci	msm_mux_blsp_uart9,
44162306a36Sopenharmony_ci	msm_mux_blsp_uart10,
44262306a36Sopenharmony_ci	msm_mux_blsp_uart11,
44362306a36Sopenharmony_ci	msm_mux_blsp_uart12,
44462306a36Sopenharmony_ci	msm_mux_blsp_uim1,
44562306a36Sopenharmony_ci	msm_mux_blsp_uim2,
44662306a36Sopenharmony_ci	msm_mux_blsp_uim3,
44762306a36Sopenharmony_ci	msm_mux_blsp_uim4,
44862306a36Sopenharmony_ci	msm_mux_blsp_uim5,
44962306a36Sopenharmony_ci	msm_mux_blsp_uim6,
45062306a36Sopenharmony_ci	msm_mux_blsp_uim7,
45162306a36Sopenharmony_ci	msm_mux_blsp_uim8,
45262306a36Sopenharmony_ci	msm_mux_blsp_uim9,
45362306a36Sopenharmony_ci	msm_mux_blsp_uim10,
45462306a36Sopenharmony_ci	msm_mux_blsp_uim11,
45562306a36Sopenharmony_ci	msm_mux_blsp_uim12,
45662306a36Sopenharmony_ci	msm_mux_blsp11_i2c_scl_b,
45762306a36Sopenharmony_ci	msm_mux_blsp11_i2c_sda_b,
45862306a36Sopenharmony_ci	msm_mux_blsp11_uart_rx_b,
45962306a36Sopenharmony_ci	msm_mux_blsp11_uart_tx_b,
46062306a36Sopenharmony_ci	msm_mux_cam_mclk0,
46162306a36Sopenharmony_ci	msm_mux_cam_mclk1,
46262306a36Sopenharmony_ci	msm_mux_cam_mclk2,
46362306a36Sopenharmony_ci	msm_mux_cam_mclk3,
46462306a36Sopenharmony_ci	msm_mux_cci_async_in0,
46562306a36Sopenharmony_ci	msm_mux_cci_async_in1,
46662306a36Sopenharmony_ci	msm_mux_cci_async_in2,
46762306a36Sopenharmony_ci	msm_mux_cci_i2c0,
46862306a36Sopenharmony_ci	msm_mux_cci_i2c1,
46962306a36Sopenharmony_ci	msm_mux_cci_timer0,
47062306a36Sopenharmony_ci	msm_mux_cci_timer1,
47162306a36Sopenharmony_ci	msm_mux_cci_timer2,
47262306a36Sopenharmony_ci	msm_mux_cci_timer3,
47362306a36Sopenharmony_ci	msm_mux_cci_timer4,
47462306a36Sopenharmony_ci	msm_mux_gcc_gp1_clk_a,
47562306a36Sopenharmony_ci	msm_mux_gcc_gp1_clk_b,
47662306a36Sopenharmony_ci	msm_mux_gcc_gp2_clk_a,
47762306a36Sopenharmony_ci	msm_mux_gcc_gp2_clk_b,
47862306a36Sopenharmony_ci	msm_mux_gcc_gp3_clk_a,
47962306a36Sopenharmony_ci	msm_mux_gcc_gp3_clk_b,
48062306a36Sopenharmony_ci	msm_mux_gp_mn,
48162306a36Sopenharmony_ci	msm_mux_gp_pdm0,
48262306a36Sopenharmony_ci	msm_mux_gp_pdm1,
48362306a36Sopenharmony_ci	msm_mux_gp_pdm2,
48462306a36Sopenharmony_ci	msm_mux_gp0_clk,
48562306a36Sopenharmony_ci	msm_mux_gp1_clk,
48662306a36Sopenharmony_ci	msm_mux_gps_tx,
48762306a36Sopenharmony_ci	msm_mux_gsm_tx,
48862306a36Sopenharmony_ci	msm_mux_hdmi_cec,
48962306a36Sopenharmony_ci	msm_mux_hdmi_ddc,
49062306a36Sopenharmony_ci	msm_mux_hdmi_hpd,
49162306a36Sopenharmony_ci	msm_mux_hdmi_rcv,
49262306a36Sopenharmony_ci	msm_mux_mdp_vsync,
49362306a36Sopenharmony_ci	msm_mux_mss_lte,
49462306a36Sopenharmony_ci	msm_mux_nav_pps,
49562306a36Sopenharmony_ci	msm_mux_nav_tsync,
49662306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_in_a,
49762306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_in_b,
49862306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_in_c,
49962306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_in_d,
50062306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_out_a,
50162306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_out_b,
50262306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_out_c,
50362306a36Sopenharmony_ci	msm_mux_qdss_cti_trig_out_d,
50462306a36Sopenharmony_ci	msm_mux_qdss_traceclk_a,
50562306a36Sopenharmony_ci	msm_mux_qdss_traceclk_b,
50662306a36Sopenharmony_ci	msm_mux_qdss_tracectl_a,
50762306a36Sopenharmony_ci	msm_mux_qdss_tracectl_b,
50862306a36Sopenharmony_ci	msm_mux_qdss_tracedata_a,
50962306a36Sopenharmony_ci	msm_mux_qdss_tracedata_b,
51062306a36Sopenharmony_ci	msm_mux_qua_mi2s,
51162306a36Sopenharmony_ci	msm_mux_pci_e0,
51262306a36Sopenharmony_ci	msm_mux_pci_e1,
51362306a36Sopenharmony_ci	msm_mux_pri_mi2s,
51462306a36Sopenharmony_ci	msm_mux_sdc4,
51562306a36Sopenharmony_ci	msm_mux_sec_mi2s,
51662306a36Sopenharmony_ci	msm_mux_slimbus,
51762306a36Sopenharmony_ci	msm_mux_spkr_i2s,
51862306a36Sopenharmony_ci	msm_mux_ter_mi2s,
51962306a36Sopenharmony_ci	msm_mux_tsif1,
52062306a36Sopenharmony_ci	msm_mux_tsif2,
52162306a36Sopenharmony_ci	msm_mux_uim1,
52262306a36Sopenharmony_ci	msm_mux_uim2,
52362306a36Sopenharmony_ci	msm_mux_uim3,
52462306a36Sopenharmony_ci	msm_mux_uim4,
52562306a36Sopenharmony_ci	msm_mux_uim_batt_alarm,
52662306a36Sopenharmony_ci	msm_mux_gpio,
52762306a36Sopenharmony_ci	msm_mux_NA,
52862306a36Sopenharmony_ci};
52962306a36Sopenharmony_ci
53062306a36Sopenharmony_cistatic const char * const gpio_groups[] = {
53162306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
53262306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
53362306a36Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
53462306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
53562306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
53662306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
53762306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
53862306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
53962306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
54062306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
54162306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
54262306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
54362306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
54462306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
54562306a36Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
54662306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
54762306a36Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
54862306a36Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
54962306a36Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
55062306a36Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
55162306a36Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
55262306a36Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145",
55362306a36Sopenharmony_ci};
55462306a36Sopenharmony_ci
55562306a36Sopenharmony_cistatic const char * const blsp_spi1_groups[] = {
55662306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3"
55762306a36Sopenharmony_ci};
55862306a36Sopenharmony_cistatic const char * const blsp_uart1_groups[] = {
55962306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3"
56062306a36Sopenharmony_ci};
56162306a36Sopenharmony_cistatic const char * const blsp_uim1_groups[] = {
56262306a36Sopenharmony_ci	"gpio0", "gpio1"
56362306a36Sopenharmony_ci};
56462306a36Sopenharmony_cistatic const char * const hdmi_rcv_groups[] = {
56562306a36Sopenharmony_ci	"gpio0"
56662306a36Sopenharmony_ci};
56762306a36Sopenharmony_cistatic const char * const blsp_i2c1_groups[] = {
56862306a36Sopenharmony_ci	"gpio2", "gpio3"
56962306a36Sopenharmony_ci};
57062306a36Sopenharmony_cistatic const char * const blsp_spi2_groups[] = {
57162306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio6", "gpio7"
57262306a36Sopenharmony_ci};
57362306a36Sopenharmony_cistatic const char * const blsp_uart2_groups[] = {
57462306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio6", "gpio7"
57562306a36Sopenharmony_ci};
57662306a36Sopenharmony_cistatic const char * const blsp_uim2_groups[] = {
57762306a36Sopenharmony_ci	"gpio4", "gpio5"
57862306a36Sopenharmony_ci};
57962306a36Sopenharmony_cistatic const char * const qdss_cti_trig_out_b_groups[] = {
58062306a36Sopenharmony_ci	"gpio4",
58162306a36Sopenharmony_ci};
58262306a36Sopenharmony_cistatic const char * const qdss_cti_trig_in_b_groups[] = {
58362306a36Sopenharmony_ci	"gpio5",
58462306a36Sopenharmony_ci};
58562306a36Sopenharmony_cistatic const char * const blsp_i2c2_groups[] = {
58662306a36Sopenharmony_ci	"gpio6", "gpio7"
58762306a36Sopenharmony_ci};
58862306a36Sopenharmony_cistatic const char * const blsp_spi3_groups[] = {
58962306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11"
59062306a36Sopenharmony_ci};
59162306a36Sopenharmony_cistatic const char * const blsp_uart3_groups[] = {
59262306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11"
59362306a36Sopenharmony_ci};
59462306a36Sopenharmony_cistatic const char * const blsp_uim3_groups[] = {
59562306a36Sopenharmony_ci	"gpio8", "gpio9"
59662306a36Sopenharmony_ci};
59762306a36Sopenharmony_cistatic const char * const blsp_spi1_cs1_groups[] = {
59862306a36Sopenharmony_ci	"gpio8"
59962306a36Sopenharmony_ci};
60062306a36Sopenharmony_cistatic const char * const blsp_spi1_cs2_groups[] = {
60162306a36Sopenharmony_ci	"gpio9", "gpio11"
60262306a36Sopenharmony_ci};
60362306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
60462306a36Sopenharmony_ci	"gpio10", "gpio11", "gpio12"
60562306a36Sopenharmony_ci};
60662306a36Sopenharmony_cistatic const char * const blsp_i2c3_groups[] = {
60762306a36Sopenharmony_ci	"gpio10", "gpio11"
60862306a36Sopenharmony_ci};
60962306a36Sopenharmony_cistatic const char * const blsp_spi1_cs3_groups[] = {
61062306a36Sopenharmony_ci	"gpio10"
61162306a36Sopenharmony_ci};
61262306a36Sopenharmony_cistatic const char * const qdss_tracedata_b_groups[] = {
61362306a36Sopenharmony_ci	"gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18",
61462306a36Sopenharmony_ci	"gpio19", "gpio21", "gpio22", "gpio23", "gpio25", "gpio26",
61562306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio92", "gpio93",
61662306a36Sopenharmony_ci};
61762306a36Sopenharmony_cistatic const char * const cam_mclk0_groups[] = {
61862306a36Sopenharmony_ci	"gpio13"
61962306a36Sopenharmony_ci};
62062306a36Sopenharmony_cistatic const char * const cam_mclk1_groups[] = {
62162306a36Sopenharmony_ci	"gpio14"
62262306a36Sopenharmony_ci};
62362306a36Sopenharmony_cistatic const char * const cam_mclk2_groups[] = {
62462306a36Sopenharmony_ci	"gpio15"
62562306a36Sopenharmony_ci};
62662306a36Sopenharmony_cistatic const char * const cam_mclk3_groups[] = {
62762306a36Sopenharmony_ci	"gpio16"
62862306a36Sopenharmony_ci};
62962306a36Sopenharmony_cistatic const char * const cci_i2c0_groups[] = {
63062306a36Sopenharmony_ci	"gpio17", "gpio18"
63162306a36Sopenharmony_ci};
63262306a36Sopenharmony_cistatic const char * const blsp_spi4_groups[] = {
63362306a36Sopenharmony_ci	"gpio17", "gpio18", "gpio19", "gpio20"
63462306a36Sopenharmony_ci};
63562306a36Sopenharmony_cistatic const char * const blsp_uart4_groups[] = {
63662306a36Sopenharmony_ci	"gpio17", "gpio18", "gpio19", "gpio20"
63762306a36Sopenharmony_ci};
63862306a36Sopenharmony_cistatic const char * const blsp_uim4_groups[] = {
63962306a36Sopenharmony_ci	"gpio17", "gpio18"
64062306a36Sopenharmony_ci};
64162306a36Sopenharmony_cistatic const char * const cci_i2c1_groups[] = {
64262306a36Sopenharmony_ci	"gpio19", "gpio20"
64362306a36Sopenharmony_ci};
64462306a36Sopenharmony_cistatic const char * const blsp_i2c4_groups[] = {
64562306a36Sopenharmony_ci	"gpio19", "gpio20"
64662306a36Sopenharmony_ci};
64762306a36Sopenharmony_cistatic const char * const cci_timer0_groups[] = {
64862306a36Sopenharmony_ci	"gpio21"
64962306a36Sopenharmony_ci};
65062306a36Sopenharmony_cistatic const char * const blsp_spi5_groups[] = {
65162306a36Sopenharmony_ci	"gpio21", "gpio22", "gpio23", "gpio24"
65262306a36Sopenharmony_ci};
65362306a36Sopenharmony_cistatic const char * const blsp_uart5_groups[] = {
65462306a36Sopenharmony_ci	"gpio21", "gpio22", "gpio23", "gpio24"
65562306a36Sopenharmony_ci};
65662306a36Sopenharmony_cistatic const char * const blsp_uim5_groups[] = {
65762306a36Sopenharmony_ci	"gpio21", "gpio22"
65862306a36Sopenharmony_ci};
65962306a36Sopenharmony_cistatic const char * const cci_timer1_groups[] = {
66062306a36Sopenharmony_ci	"gpio22"
66162306a36Sopenharmony_ci};
66262306a36Sopenharmony_cistatic const char * const cci_timer2_groups[] = {
66362306a36Sopenharmony_ci	"gpio23"
66462306a36Sopenharmony_ci};
66562306a36Sopenharmony_cistatic const char * const blsp_i2c5_groups[] = {
66662306a36Sopenharmony_ci	"gpio23", "gpio24"
66762306a36Sopenharmony_ci};
66862306a36Sopenharmony_cistatic const char * const cci_timer3_groups[] = {
66962306a36Sopenharmony_ci	"gpio24"
67062306a36Sopenharmony_ci};
67162306a36Sopenharmony_cistatic const char * const cci_async_in1_groups[] = {
67262306a36Sopenharmony_ci	"gpio24"
67362306a36Sopenharmony_ci};
67462306a36Sopenharmony_cistatic const char * const cci_timer4_groups[] = {
67562306a36Sopenharmony_ci	"gpio25"
67662306a36Sopenharmony_ci};
67762306a36Sopenharmony_cistatic const char * const cci_async_in2_groups[] = {
67862306a36Sopenharmony_ci	"gpio25"
67962306a36Sopenharmony_ci};
68062306a36Sopenharmony_cistatic const char * const blsp_spi6_groups[] = {
68162306a36Sopenharmony_ci	"gpio25", "gpio26", "gpio27", "gpio28"
68262306a36Sopenharmony_ci};
68362306a36Sopenharmony_cistatic const char * const blsp_uart6_groups[] = {
68462306a36Sopenharmony_ci	"gpio25", "gpio26", "gpio27", "gpio28"
68562306a36Sopenharmony_ci};
68662306a36Sopenharmony_cistatic const char * const blsp_uim6_groups[] = {
68762306a36Sopenharmony_ci	"gpio25", "gpio26"
68862306a36Sopenharmony_ci};
68962306a36Sopenharmony_cistatic const char * const cci_async_in0_groups[] = {
69062306a36Sopenharmony_ci	"gpio26"
69162306a36Sopenharmony_ci};
69262306a36Sopenharmony_cistatic const char * const gp0_clk_groups[] = {
69362306a36Sopenharmony_ci	"gpio26"
69462306a36Sopenharmony_ci};
69562306a36Sopenharmony_cistatic const char * const gp1_clk_groups[] = {
69662306a36Sopenharmony_ci	"gpio27", "gpio57", "gpio78"
69762306a36Sopenharmony_ci};
69862306a36Sopenharmony_cistatic const char * const blsp_i2c6_groups[] = {
69962306a36Sopenharmony_ci	"gpio27", "gpio28"
70062306a36Sopenharmony_ci};
70162306a36Sopenharmony_cistatic const char * const qdss_tracectl_a_groups[] = {
70262306a36Sopenharmony_ci	"gpio27",
70362306a36Sopenharmony_ci};
70462306a36Sopenharmony_cistatic const char * const qdss_traceclk_a_groups[] = {
70562306a36Sopenharmony_ci	"gpio28",
70662306a36Sopenharmony_ci};
70762306a36Sopenharmony_cistatic const char * const gp_mn_groups[] = {
70862306a36Sopenharmony_ci	"gpio29"
70962306a36Sopenharmony_ci};
71062306a36Sopenharmony_cistatic const char * const hdmi_cec_groups[] = {
71162306a36Sopenharmony_ci	"gpio31"
71262306a36Sopenharmony_ci};
71362306a36Sopenharmony_cistatic const char * const hdmi_ddc_groups[] = {
71462306a36Sopenharmony_ci	"gpio32", "gpio33"
71562306a36Sopenharmony_ci};
71662306a36Sopenharmony_cistatic const char * const hdmi_hpd_groups[] = {
71762306a36Sopenharmony_ci	"gpio34"
71862306a36Sopenharmony_ci};
71962306a36Sopenharmony_cistatic const char * const uim3_groups[] = {
72062306a36Sopenharmony_ci	"gpio35", "gpio36", "gpio37", "gpio38"
72162306a36Sopenharmony_ci};
72262306a36Sopenharmony_cistatic const char * const pci_e1_groups[] = {
72362306a36Sopenharmony_ci	"gpio35", "gpio36",
72462306a36Sopenharmony_ci};
72562306a36Sopenharmony_cistatic const char * const blsp_spi7_groups[] = {
72662306a36Sopenharmony_ci	"gpio41", "gpio42", "gpio43", "gpio44"
72762306a36Sopenharmony_ci};
72862306a36Sopenharmony_cistatic const char * const blsp_uart7_groups[] = {
72962306a36Sopenharmony_ci	"gpio41", "gpio42", "gpio43", "gpio44"
73062306a36Sopenharmony_ci};
73162306a36Sopenharmony_cistatic const char * const blsp_uim7_groups[] = {
73262306a36Sopenharmony_ci	"gpio41", "gpio42"
73362306a36Sopenharmony_ci};
73462306a36Sopenharmony_cistatic const char * const qdss_cti_trig_out_c_groups[] = {
73562306a36Sopenharmony_ci	"gpio41",
73662306a36Sopenharmony_ci};
73762306a36Sopenharmony_cistatic const char * const qdss_cti_trig_in_c_groups[] = {
73862306a36Sopenharmony_ci	"gpio42",
73962306a36Sopenharmony_ci};
74062306a36Sopenharmony_cistatic const char * const blsp_i2c7_groups[] = {
74162306a36Sopenharmony_ci	"gpio43", "gpio44"
74262306a36Sopenharmony_ci};
74362306a36Sopenharmony_cistatic const char * const blsp_spi8_groups[] = {
74462306a36Sopenharmony_ci	"gpio45", "gpio46", "gpio47", "gpio48"
74562306a36Sopenharmony_ci};
74662306a36Sopenharmony_cistatic const char * const blsp_uart8_groups[] = {
74762306a36Sopenharmony_ci	"gpio45", "gpio46", "gpio47", "gpio48"
74862306a36Sopenharmony_ci};
74962306a36Sopenharmony_cistatic const char * const blsp_uim8_groups[] = {
75062306a36Sopenharmony_ci	"gpio45", "gpio46"
75162306a36Sopenharmony_ci};
75262306a36Sopenharmony_cistatic const char * const blsp_i2c8_groups[] = {
75362306a36Sopenharmony_ci	"gpio47", "gpio48"
75462306a36Sopenharmony_ci};
75562306a36Sopenharmony_cistatic const char * const blsp_spi10_cs1_groups[] = {
75662306a36Sopenharmony_ci	"gpio47", "gpio67"
75762306a36Sopenharmony_ci};
75862306a36Sopenharmony_cistatic const char * const blsp_spi10_cs2_groups[] = {
75962306a36Sopenharmony_ci	"gpio48", "gpio68"
76062306a36Sopenharmony_ci};
76162306a36Sopenharmony_cistatic const char * const uim2_groups[] = {
76262306a36Sopenharmony_ci	"gpio49", "gpio50", "gpio51", "gpio52"
76362306a36Sopenharmony_ci};
76462306a36Sopenharmony_cistatic const char * const blsp_spi9_groups[] = {
76562306a36Sopenharmony_ci	"gpio49", "gpio50", "gpio51", "gpio52"
76662306a36Sopenharmony_ci};
76762306a36Sopenharmony_cistatic const char * const blsp_uart9_groups[] = {
76862306a36Sopenharmony_ci	"gpio49", "gpio50", "gpio51", "gpio52"
76962306a36Sopenharmony_ci};
77062306a36Sopenharmony_cistatic const char * const blsp_uim9_groups[] = {
77162306a36Sopenharmony_ci	"gpio49", "gpio50"
77262306a36Sopenharmony_ci};
77362306a36Sopenharmony_cistatic const char * const blsp_i2c9_groups[] = {
77462306a36Sopenharmony_ci	"gpio51", "gpio52"
77562306a36Sopenharmony_ci};
77662306a36Sopenharmony_cistatic const char * const pci_e0_groups[] = {
77762306a36Sopenharmony_ci	"gpio53", "gpio54",
77862306a36Sopenharmony_ci};
77962306a36Sopenharmony_cistatic const char * const uim4_groups[] = {
78062306a36Sopenharmony_ci	"gpio53", "gpio54", "gpio55", "gpio56"
78162306a36Sopenharmony_ci};
78262306a36Sopenharmony_cistatic const char * const blsp_spi10_groups[] = {
78362306a36Sopenharmony_ci	"gpio53", "gpio54", "gpio55", "gpio56"
78462306a36Sopenharmony_ci};
78562306a36Sopenharmony_cistatic const char * const blsp_uart10_groups[] = {
78662306a36Sopenharmony_ci	"gpio53", "gpio54", "gpio55", "gpio56"
78762306a36Sopenharmony_ci};
78862306a36Sopenharmony_cistatic const char * const blsp_uim10_groups[] = {
78962306a36Sopenharmony_ci	"gpio53", "gpio54"
79062306a36Sopenharmony_ci};
79162306a36Sopenharmony_cistatic const char * const qdss_tracedata_a_groups[] = {
79262306a36Sopenharmony_ci	"gpio53", "gpio54", "gpio63", "gpio64", "gpio65",
79362306a36Sopenharmony_ci	"gpio66", "gpio67", "gpio74", "gpio75", "gpio76",
79462306a36Sopenharmony_ci	"gpio77", "gpio85", "gpio86", "gpio87", "gpio89",
79562306a36Sopenharmony_ci	"gpio90"
79662306a36Sopenharmony_ci};
79762306a36Sopenharmony_cistatic const char * const gp_pdm0_groups[] = {
79862306a36Sopenharmony_ci	"gpio54", "gpio95"
79962306a36Sopenharmony_ci};
80062306a36Sopenharmony_cistatic const char * const blsp_i2c10_groups[] = {
80162306a36Sopenharmony_ci	"gpio55", "gpio56"
80262306a36Sopenharmony_ci};
80362306a36Sopenharmony_cistatic const char * const qdss_cti_trig_in_a_groups[] = {
80462306a36Sopenharmony_ci	"gpio55",
80562306a36Sopenharmony_ci};
80662306a36Sopenharmony_cistatic const char * const qdss_cti_trig_out_a_groups[] = {
80762306a36Sopenharmony_ci	"gpio56",
80862306a36Sopenharmony_ci};
80962306a36Sopenharmony_cistatic const char * const qua_mi2s_groups[] = {
81062306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
81162306a36Sopenharmony_ci};
81262306a36Sopenharmony_cistatic const char * const gcc_gp1_clk_a_groups[] = {
81362306a36Sopenharmony_ci	"gpio57"
81462306a36Sopenharmony_ci};
81562306a36Sopenharmony_cistatic const char * const gcc_gp2_clk_a_groups[] = {
81662306a36Sopenharmony_ci	"gpio58"
81762306a36Sopenharmony_ci};
81862306a36Sopenharmony_cistatic const char * const gcc_gp3_clk_a_groups[] = {
81962306a36Sopenharmony_ci	"gpio59"
82062306a36Sopenharmony_ci};
82162306a36Sopenharmony_cistatic const char * const blsp_spi2_cs1_groups[] = {
82262306a36Sopenharmony_ci	"gpio62"
82362306a36Sopenharmony_ci};
82462306a36Sopenharmony_cistatic const char * const blsp_spi2_cs2_groups[] = {
82562306a36Sopenharmony_ci	"gpio63"
82662306a36Sopenharmony_ci};
82762306a36Sopenharmony_cistatic const char * const gp_pdm2_groups[] = {
82862306a36Sopenharmony_ci	"gpio63", "gpio79"
82962306a36Sopenharmony_ci};
83062306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = {
83162306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68"
83262306a36Sopenharmony_ci};
83362306a36Sopenharmony_cistatic const char * const blsp_spi2_cs3_groups[] = {
83462306a36Sopenharmony_ci	"gpio66"
83562306a36Sopenharmony_ci};
83662306a36Sopenharmony_cistatic const char * const spkr_i2s_groups[] = {
83762306a36Sopenharmony_ci	"gpio69", "gpio70", "gpio71", "gpio72"
83862306a36Sopenharmony_ci};
83962306a36Sopenharmony_cistatic const char * const audio_ref_clk_groups[] = {
84062306a36Sopenharmony_ci	"gpio69"
84162306a36Sopenharmony_ci};
84262306a36Sopenharmony_cistatic const char * const slimbus_groups[] = {
84362306a36Sopenharmony_ci	"gpio70", "gpio71"
84462306a36Sopenharmony_ci};
84562306a36Sopenharmony_cistatic const char * const ter_mi2s_groups[] = {
84662306a36Sopenharmony_ci	"gpio73", "gpio74", "gpio75", "gpio76", "gpio77"
84762306a36Sopenharmony_ci};
84862306a36Sopenharmony_cistatic const char * const gp_pdm1_groups[] = {
84962306a36Sopenharmony_ci	"gpio74", "gpio86"
85062306a36Sopenharmony_ci};
85162306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = {
85262306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82"
85362306a36Sopenharmony_ci};
85462306a36Sopenharmony_cistatic const char * const gcc_gp1_clk_b_groups[] = {
85562306a36Sopenharmony_ci	"gpio78"
85662306a36Sopenharmony_ci};
85762306a36Sopenharmony_cistatic const char * const blsp_spi11_groups[] = {
85862306a36Sopenharmony_ci	"gpio81", "gpio82", "gpio83", "gpio84"
85962306a36Sopenharmony_ci};
86062306a36Sopenharmony_cistatic const char * const blsp_uart11_groups[] = {
86162306a36Sopenharmony_ci	"gpio81", "gpio82", "gpio83", "gpio84"
86262306a36Sopenharmony_ci};
86362306a36Sopenharmony_cistatic const char * const blsp_uim11_groups[] = {
86462306a36Sopenharmony_ci	"gpio81", "gpio82"
86562306a36Sopenharmony_ci};
86662306a36Sopenharmony_cistatic const char * const gcc_gp2_clk_b_groups[] = {
86762306a36Sopenharmony_ci	"gpio81"
86862306a36Sopenharmony_ci};
86962306a36Sopenharmony_cistatic const char * const gcc_gp3_clk_b_groups[] = {
87062306a36Sopenharmony_ci	"gpio82"
87162306a36Sopenharmony_ci};
87262306a36Sopenharmony_cistatic const char * const blsp_i2c11_groups[] = {
87362306a36Sopenharmony_ci	"gpio83", "gpio84"
87462306a36Sopenharmony_ci};
87562306a36Sopenharmony_cistatic const char * const blsp_uart12_groups[] = {
87662306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88"
87762306a36Sopenharmony_ci};
87862306a36Sopenharmony_cistatic const char * const blsp_uim12_groups[] = {
87962306a36Sopenharmony_ci	"gpio85", "gpio86"
88062306a36Sopenharmony_ci};
88162306a36Sopenharmony_cistatic const char * const blsp_i2c12_groups[] = {
88262306a36Sopenharmony_ci	"gpio87", "gpio88"
88362306a36Sopenharmony_ci};
88462306a36Sopenharmony_cistatic const char * const blsp_spi12_groups[] = {
88562306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88"
88662306a36Sopenharmony_ci};
88762306a36Sopenharmony_cistatic const char * const tsif1_groups[] = {
88862306a36Sopenharmony_ci	"gpio89", "gpio90", "gpio91", "gpio110", "gpio111"
88962306a36Sopenharmony_ci};
89062306a36Sopenharmony_cistatic const char * const blsp_spi10_cs3_groups[] = {
89162306a36Sopenharmony_ci	"gpio90"
89262306a36Sopenharmony_ci};
89362306a36Sopenharmony_cistatic const char * const sdc4_groups[] = {
89462306a36Sopenharmony_ci	"gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96"
89562306a36Sopenharmony_ci};
89662306a36Sopenharmony_cistatic const char * const qdss_traceclk_b_groups[] = {
89762306a36Sopenharmony_ci	"gpio91",
89862306a36Sopenharmony_ci};
89962306a36Sopenharmony_cistatic const char * const tsif2_groups[] = {
90062306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96"
90162306a36Sopenharmony_ci};
90262306a36Sopenharmony_cistatic const char * const qdss_tracectl_b_groups[] = {
90362306a36Sopenharmony_ci	"gpio94",
90462306a36Sopenharmony_ci};
90562306a36Sopenharmony_cistatic const char * const qdss_cti_trig_out_d_groups[] = {
90662306a36Sopenharmony_ci	"gpio95",
90762306a36Sopenharmony_ci};
90862306a36Sopenharmony_cistatic const char * const qdss_cti_trig_in_d_groups[] = {
90962306a36Sopenharmony_ci	"gpio96",
91062306a36Sopenharmony_ci};
91162306a36Sopenharmony_cistatic const char * const uim1_groups[] = {
91262306a36Sopenharmony_ci	"gpio97", "gpio98", "gpio99", "gpio100"
91362306a36Sopenharmony_ci};
91462306a36Sopenharmony_cistatic const char * const uim_batt_alarm_groups[] = {
91562306a36Sopenharmony_ci	"gpio101"
91662306a36Sopenharmony_ci};
91762306a36Sopenharmony_cistatic const char * const blsp11_uart_tx_b_groups[] = {
91862306a36Sopenharmony_ci	"gpio111"
91962306a36Sopenharmony_ci};
92062306a36Sopenharmony_cistatic const char * const blsp11_uart_rx_b_groups[] = {
92162306a36Sopenharmony_ci	"gpio112"
92262306a36Sopenharmony_ci};
92362306a36Sopenharmony_cistatic const char * const blsp11_i2c_sda_b_groups[] = {
92462306a36Sopenharmony_ci	"gpio113"
92562306a36Sopenharmony_ci};
92662306a36Sopenharmony_cistatic const char * const blsp11_i2c_scl_b_groups[] = {
92762306a36Sopenharmony_ci	"gpio114"
92862306a36Sopenharmony_ci};
92962306a36Sopenharmony_cistatic const char * const gsm_tx_groups[] = {
93062306a36Sopenharmony_ci	"gpio126", "gpio131", "gpio132", "gpio133"
93162306a36Sopenharmony_ci};
93262306a36Sopenharmony_cistatic const char * const nav_tsync_groups[] = {
93362306a36Sopenharmony_ci	"gpio127"
93462306a36Sopenharmony_ci};
93562306a36Sopenharmony_cistatic const char * const nav_pps_groups[] = {
93662306a36Sopenharmony_ci	"gpio127"
93762306a36Sopenharmony_ci};
93862306a36Sopenharmony_cistatic const char * const gps_tx_groups[] = {
93962306a36Sopenharmony_ci	"gpio130"
94062306a36Sopenharmony_ci};
94162306a36Sopenharmony_cistatic const char * const mss_lte_groups[] = {
94262306a36Sopenharmony_ci	"gpio134", "gpio135"
94362306a36Sopenharmony_ci};
94462306a36Sopenharmony_ci
94562306a36Sopenharmony_cistatic const struct pinfunction msm8994_functions[] = {
94662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(audio_ref_clk),
94762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c1),
94862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c2),
94962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c3),
95062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c4),
95162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c5),
95262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c6),
95362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c7),
95462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c8),
95562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c9),
95662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c10),
95762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c11),
95862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c12),
95962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi1),
96062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi1_cs1),
96162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi1_cs2),
96262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi1_cs3),
96362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi2),
96462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi2_cs1),
96562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi2_cs2),
96662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi2_cs3),
96762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi3),
96862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi4),
96962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi5),
97062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi6),
97162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi7),
97262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi8),
97362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi9),
97462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi10),
97562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi10_cs1),
97662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi10_cs2),
97762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi10_cs3),
97862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi11),
97962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi12),
98062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart1),
98162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart2),
98262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart3),
98362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart4),
98462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart5),
98562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart6),
98662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart7),
98762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart8),
98862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart9),
98962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart10),
99062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart11),
99162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart12),
99262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim1),
99362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim2),
99462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim3),
99562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim4),
99662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim5),
99762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim6),
99862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim7),
99962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim8),
100062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim9),
100162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim10),
100262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim11),
100362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uim12),
100462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp11_i2c_scl_b),
100562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp11_i2c_sda_b),
100662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp11_uart_rx_b),
100762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp11_uart_tx_b),
100862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk0),
100962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk1),
101062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk2),
101162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk3),
101262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_async_in0),
101362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_async_in1),
101462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_async_in2),
101562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_i2c0),
101662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_i2c1),
101762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer0),
101862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer1),
101962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer2),
102062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer3),
102162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci_timer4),
102262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1_clk_a),
102362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1_clk_b),
102462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2_clk_a),
102562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2_clk_b),
102662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3_clk_a),
102762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3_clk_b),
102862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_mn),
102962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm0),
103062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm1),
103162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm2),
103262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp0_clk),
103362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp1_clk),
103462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gps_tx),
103562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsm_tx),
103662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_cec),
103762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_ddc),
103862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_hpd),
103962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_rcv),
104062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync),
104162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mss_lte),
104262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_pps),
104362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(nav_tsync),
104462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_in_a),
104562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_in_b),
104662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_in_c),
104762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_in_d),
104862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_out_a),
104962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_out_b),
105062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_out_c),
105162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_cti_trig_out_d),
105262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_traceclk_a),
105362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_traceclk_b),
105462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracectl_a),
105562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracectl_b),
105662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracedata_a),
105762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracedata_b),
105862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qua_mi2s),
105962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pci_e0),
106062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pci_e1),
106162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pri_mi2s),
106262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc4),
106362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sec_mi2s),
106462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(slimbus),
106562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(spkr_i2s),
106662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ter_mi2s),
106762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsif1),
106862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsif2),
106962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim_batt_alarm),
107062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1),
107162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2),
107262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim3),
107362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim4),
107462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
107562306a36Sopenharmony_ci};
107662306a36Sopenharmony_ci
107762306a36Sopenharmony_cistatic const struct msm_pingroup msm8994_groups[] = {
107862306a36Sopenharmony_ci	PINGROUP(0,   blsp_spi1, blsp_uart1, blsp_uim1, hdmi_rcv, NA, NA, NA,
107962306a36Sopenharmony_ci		 NA, NA, NA, NA),
108062306a36Sopenharmony_ci	PINGROUP(1,   blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA,
108162306a36Sopenharmony_ci		 NA, NA),
108262306a36Sopenharmony_ci	PINGROUP(2,   blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA,
108362306a36Sopenharmony_ci		 NA, NA),
108462306a36Sopenharmony_ci	PINGROUP(3,   blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA,
108562306a36Sopenharmony_ci		 NA, NA),
108662306a36Sopenharmony_ci	PINGROUP(4,   blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti_trig_out_b,
108762306a36Sopenharmony_ci		 NA, NA, NA, NA, NA, NA),
108862306a36Sopenharmony_ci	PINGROUP(5,   blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti_trig_in_b,
108962306a36Sopenharmony_ci		 NA, NA, NA, NA, NA, NA),
109062306a36Sopenharmony_ci	PINGROUP(6,   blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA,
109162306a36Sopenharmony_ci		 NA, NA),
109262306a36Sopenharmony_ci	PINGROUP(7,   blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA,
109362306a36Sopenharmony_ci		 NA, NA),
109462306a36Sopenharmony_ci	PINGROUP(8,   blsp_spi3, blsp_uart3, blsp_uim3, blsp_spi1_cs1, NA, NA,
109562306a36Sopenharmony_ci		 NA, NA, NA, NA, NA),
109662306a36Sopenharmony_ci	PINGROUP(9,   blsp_spi3, blsp_uart3, blsp_uim3, blsp_spi1_cs2, NA, NA,
109762306a36Sopenharmony_ci		 NA, NA, NA, NA, NA),
109862306a36Sopenharmony_ci	PINGROUP(10,  mdp_vsync, blsp_spi3, blsp_uart3, blsp_i2c3,
109962306a36Sopenharmony_ci		 blsp_spi1_cs3, NA, NA, NA, NA, NA, NA),
110062306a36Sopenharmony_ci	PINGROUP(11,  mdp_vsync, blsp_spi3, blsp_uart3, blsp_i2c3,
110162306a36Sopenharmony_ci		 blsp_spi1_cs2, NA, NA, NA, NA, NA, NA),
110262306a36Sopenharmony_ci	PINGROUP(12,  mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110362306a36Sopenharmony_ci	PINGROUP(13,  cam_mclk0, NA, NA, qdss_tracedata_b, NA, NA, NA, NA, NA,
110462306a36Sopenharmony_ci		 NA, NA),
110562306a36Sopenharmony_ci	PINGROUP(14,  cam_mclk1, NA, NA, qdss_tracedata_b, NA, NA, NA, NA, NA,
110662306a36Sopenharmony_ci		 NA, NA),
110762306a36Sopenharmony_ci	PINGROUP(15,  cam_mclk2, NA, qdss_tracedata_b, NA, NA, NA, NA, NA, NA,
110862306a36Sopenharmony_ci		 NA, NA),
110962306a36Sopenharmony_ci	PINGROUP(16,  cam_mclk3, NA, qdss_tracedata_b, NA, NA, NA, NA, NA, NA,
111062306a36Sopenharmony_ci		 NA, NA),
111162306a36Sopenharmony_ci	PINGROUP(17,  cci_i2c0, blsp_spi4, blsp_uart4, blsp_uim4, NA,
111262306a36Sopenharmony_ci		 qdss_tracedata_b, NA, NA, NA, NA, NA),
111362306a36Sopenharmony_ci	PINGROUP(18,  cci_i2c0, blsp_spi4, blsp_uart4, blsp_uim4, NA,
111462306a36Sopenharmony_ci		 qdss_tracedata_b, NA, NA, NA, NA, NA),
111562306a36Sopenharmony_ci	PINGROUP(19,  cci_i2c1, blsp_spi4, blsp_uart4, blsp_i2c4, NA,
111662306a36Sopenharmony_ci		 qdss_tracedata_b, NA, NA, NA, NA, NA),
111762306a36Sopenharmony_ci	PINGROUP(20,  cci_i2c1, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA,
111862306a36Sopenharmony_ci		 NA, NA, NA, NA),
111962306a36Sopenharmony_ci	PINGROUP(21,  cci_timer0, blsp_spi5, blsp_uart5, blsp_uim5, NA,
112062306a36Sopenharmony_ci		 qdss_tracedata_b, NA, NA, NA, NA, NA),
112162306a36Sopenharmony_ci	PINGROUP(22,  cci_timer1, blsp_spi5, blsp_uart5, blsp_uim5, NA,
112262306a36Sopenharmony_ci		 qdss_tracedata_b, NA, NA, NA, NA, NA),
112362306a36Sopenharmony_ci	PINGROUP(23,  cci_timer2, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA,
112462306a36Sopenharmony_ci		 qdss_tracedata_b, NA, NA, NA, NA),
112562306a36Sopenharmony_ci	PINGROUP(24,  cci_timer3, cci_async_in1, blsp_spi5, blsp_uart5,
112662306a36Sopenharmony_ci		 blsp_i2c5, NA, NA, NA, NA, NA, NA),
112762306a36Sopenharmony_ci	PINGROUP(25,  cci_timer4, cci_async_in2, blsp_spi6, blsp_uart6,
112862306a36Sopenharmony_ci		 blsp_uim6, NA, NA, qdss_tracedata_b, NA, NA, NA),
112962306a36Sopenharmony_ci	PINGROUP(26,  cci_async_in0, blsp_spi6, blsp_uart6, blsp_uim6, gp0_clk,
113062306a36Sopenharmony_ci		 NA, qdss_tracedata_b, NA, NA, NA, NA),
113162306a36Sopenharmony_ci	PINGROUP(27,  blsp_spi6, blsp_uart6, blsp_i2c6, gp1_clk,
113262306a36Sopenharmony_ci		 qdss_tracectl_a, NA, NA, NA, NA, NA, NA),
113362306a36Sopenharmony_ci	PINGROUP(28,  blsp_spi6, blsp_uart6, blsp_i2c6, qdss_traceclk_a, NA,
113462306a36Sopenharmony_ci		 NA, NA, NA, NA, NA, NA),
113562306a36Sopenharmony_ci	PINGROUP(29,  gp_mn, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113662306a36Sopenharmony_ci	PINGROUP(30,  NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113762306a36Sopenharmony_ci	PINGROUP(31,  hdmi_cec, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113862306a36Sopenharmony_ci	PINGROUP(32,  hdmi_ddc, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113962306a36Sopenharmony_ci	PINGROUP(33,  hdmi_ddc, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114062306a36Sopenharmony_ci	PINGROUP(34,  hdmi_hpd, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114162306a36Sopenharmony_ci	PINGROUP(35,  uim3, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114262306a36Sopenharmony_ci	PINGROUP(36,  uim3, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114362306a36Sopenharmony_ci	PINGROUP(37,  uim3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114462306a36Sopenharmony_ci	PINGROUP(38,  uim3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114562306a36Sopenharmony_ci	PINGROUP(39,  NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114662306a36Sopenharmony_ci	PINGROUP(40,  NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114762306a36Sopenharmony_ci	PINGROUP(41,  blsp_spi7, blsp_uart7, blsp_uim7, qdss_cti_trig_out_c,
114862306a36Sopenharmony_ci		 NA, NA, NA, NA, NA, NA, NA),
114962306a36Sopenharmony_ci	PINGROUP(42,  blsp_spi7, blsp_uart7, blsp_uim7, qdss_cti_trig_in_c, NA,
115062306a36Sopenharmony_ci		 NA, NA, NA, NA, NA, NA),
115162306a36Sopenharmony_ci	PINGROUP(43,  blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA, NA, NA, NA,
115262306a36Sopenharmony_ci		 NA, NA),
115362306a36Sopenharmony_ci	PINGROUP(44,  blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA, NA, NA, NA,
115462306a36Sopenharmony_ci		 NA, NA),
115562306a36Sopenharmony_ci	PINGROUP(45,  blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA, NA, NA,
115662306a36Sopenharmony_ci		 NA, NA),
115762306a36Sopenharmony_ci	PINGROUP(46,  blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA, NA, NA,
115862306a36Sopenharmony_ci		 NA, NA),
115962306a36Sopenharmony_ci	PINGROUP(47,  blsp_spi8, blsp_uart8, blsp_i2c8, blsp_spi10_cs1, NA, NA,
116062306a36Sopenharmony_ci		 NA, NA, NA, NA, NA),
116162306a36Sopenharmony_ci	PINGROUP(48,  blsp_spi8, blsp_uart8, blsp_i2c8, blsp_spi10_cs2, NA, NA,
116262306a36Sopenharmony_ci		 NA, NA, NA, NA, NA),
116362306a36Sopenharmony_ci	PINGROUP(49,  uim2, blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA, NA,
116462306a36Sopenharmony_ci		 NA, NA, NA),
116562306a36Sopenharmony_ci	PINGROUP(50,  uim2, blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA, NA,
116662306a36Sopenharmony_ci		 NA, NA, NA),
116762306a36Sopenharmony_ci	PINGROUP(51,  uim2, blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA, NA,
116862306a36Sopenharmony_ci		 NA, NA, NA),
116962306a36Sopenharmony_ci	PINGROUP(52,  uim2, blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA, NA,
117062306a36Sopenharmony_ci		 NA, NA, NA),
117162306a36Sopenharmony_ci	PINGROUP(53,  uim4, pci_e0, blsp_spi10, blsp_uart10, blsp_uim10, NA,
117262306a36Sopenharmony_ci		 NA, qdss_tracedata_a, NA, NA, NA),
117362306a36Sopenharmony_ci	PINGROUP(54,  uim4, pci_e0, blsp_spi10, blsp_uart10, blsp_uim10,
117462306a36Sopenharmony_ci		 gp_pdm0, NA, NA, qdss_tracedata_a, NA, NA),
117562306a36Sopenharmony_ci	PINGROUP(55,  uim4, blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA, NA,
117662306a36Sopenharmony_ci		 qdss_cti_trig_in_a, NA, NA, NA),
117762306a36Sopenharmony_ci	PINGROUP(56,  uim4, blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA,
117862306a36Sopenharmony_ci		 qdss_cti_trig_out_a, NA, NA, NA, NA),
117962306a36Sopenharmony_ci	PINGROUP(57,  qua_mi2s, gcc_gp1_clk_a, NA, NA, qdss_tracedata_b, NA, NA,
118062306a36Sopenharmony_ci		 NA, NA, NA, NA),
118162306a36Sopenharmony_ci	PINGROUP(58,  qua_mi2s, gcc_gp2_clk_a, NA, NA, qdss_tracedata_b, NA, NA,
118262306a36Sopenharmony_ci		 NA, NA, NA, NA),
118362306a36Sopenharmony_ci	PINGROUP(59,  qua_mi2s, gcc_gp3_clk_a, NA, NA, NA, NA, NA, NA, NA, NA,
118462306a36Sopenharmony_ci		 NA),
118562306a36Sopenharmony_ci	PINGROUP(60,  qua_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118662306a36Sopenharmony_ci	PINGROUP(61,  qua_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118762306a36Sopenharmony_ci	PINGROUP(62,  qua_mi2s, blsp_spi2_cs1, NA, NA, NA, NA, NA, NA, NA, NA,
118862306a36Sopenharmony_ci		 NA),
118962306a36Sopenharmony_ci	PINGROUP(63,  qua_mi2s, blsp_spi2_cs2, gp_pdm2, NA, NA, NA, NA, NA,
119062306a36Sopenharmony_ci		 qdss_tracedata_a, NA, NA),
119162306a36Sopenharmony_ci	PINGROUP(64,  pri_mi2s, NA, NA, NA, qdss_tracedata_a, NA, NA, NA, NA,
119262306a36Sopenharmony_ci		 NA, NA),
119362306a36Sopenharmony_ci	PINGROUP(65,  pri_mi2s, NA, NA, NA, qdss_tracedata_a, NA, NA, NA, NA,
119462306a36Sopenharmony_ci		 NA, NA),
119562306a36Sopenharmony_ci	PINGROUP(66,  pri_mi2s, blsp_spi2_cs3, NA, NA, NA, qdss_tracedata_a,
119662306a36Sopenharmony_ci		 NA, NA, NA, NA, NA),
119762306a36Sopenharmony_ci	PINGROUP(67,  pri_mi2s, blsp_spi10_cs1, NA, NA, NA, qdss_tracedata_a,
119862306a36Sopenharmony_ci		 NA, NA, NA, NA, NA),
119962306a36Sopenharmony_ci	PINGROUP(68,  pri_mi2s, blsp_spi10_cs2, NA, NA, NA, NA, NA, NA, NA, NA,
120062306a36Sopenharmony_ci		 NA),
120162306a36Sopenharmony_ci	PINGROUP(69,  spkr_i2s, audio_ref_clk, NA, NA, NA, NA, NA, NA, NA, NA,
120262306a36Sopenharmony_ci		 NA),
120362306a36Sopenharmony_ci	PINGROUP(70,  slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120462306a36Sopenharmony_ci	PINGROUP(71,  slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120562306a36Sopenharmony_ci	PINGROUP(72,  spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120662306a36Sopenharmony_ci	PINGROUP(73,  ter_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120762306a36Sopenharmony_ci	PINGROUP(74,  ter_mi2s, gp_pdm1, NA, NA, NA, qdss_tracedata_a, NA, NA,
120862306a36Sopenharmony_ci		 NA, NA, NA),
120962306a36Sopenharmony_ci	PINGROUP(75,  ter_mi2s, NA, NA, qdss_tracedata_a, NA, NA, NA, NA, NA,
121062306a36Sopenharmony_ci		 NA, NA),
121162306a36Sopenharmony_ci	PINGROUP(76,  ter_mi2s, NA, NA, qdss_tracedata_a, NA, NA, NA, NA, NA,
121262306a36Sopenharmony_ci		 NA, NA),
121362306a36Sopenharmony_ci	PINGROUP(77,  ter_mi2s, NA, NA, qdss_tracedata_a, NA, NA, NA, NA, NA,
121462306a36Sopenharmony_ci		 NA, NA),
121562306a36Sopenharmony_ci	PINGROUP(78,  sec_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA, NA,
121662306a36Sopenharmony_ci		 NA),
121762306a36Sopenharmony_ci	PINGROUP(79,  sec_mi2s, gp_pdm2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
121862306a36Sopenharmony_ci	PINGROUP(80,  sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
121962306a36Sopenharmony_ci	PINGROUP(81,  sec_mi2s, blsp_spi11, blsp_uart11, blsp_uim11,
122062306a36Sopenharmony_ci		 gcc_gp2_clk_b, NA, NA, NA, NA, NA, NA),
122162306a36Sopenharmony_ci	PINGROUP(82,  sec_mi2s, blsp_spi11, blsp_uart11, blsp_uim11,
122262306a36Sopenharmony_ci		 gcc_gp3_clk_b, NA, NA, NA, NA, NA, NA),
122362306a36Sopenharmony_ci	PINGROUP(83,  blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA, NA,
122462306a36Sopenharmony_ci		 NA, NA, NA),
122562306a36Sopenharmony_ci	PINGROUP(84,  blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA, NA,
122662306a36Sopenharmony_ci		 NA, NA, NA),
122762306a36Sopenharmony_ci	PINGROUP(85,  blsp_spi12, blsp_uart12, blsp_uim12, NA, NA,
122862306a36Sopenharmony_ci		 qdss_tracedata_a, NA, NA, NA, NA, NA),
122962306a36Sopenharmony_ci	PINGROUP(86,  blsp_spi12, blsp_uart12, blsp_uim12, gp_pdm1, NA,
123062306a36Sopenharmony_ci		 qdss_tracedata_a, NA, NA, NA, NA, NA),
123162306a36Sopenharmony_ci	PINGROUP(87,  blsp_spi12, blsp_uart12, blsp_i2c12, NA,
123262306a36Sopenharmony_ci		 qdss_tracedata_a, NA, NA, NA, NA, NA, NA),
123362306a36Sopenharmony_ci	PINGROUP(88,  blsp_spi12, blsp_uart12, blsp_i2c12, NA, NA, NA, NA, NA,
123462306a36Sopenharmony_ci		 NA, NA, NA),
123562306a36Sopenharmony_ci	PINGROUP(89,  tsif1, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA,
123662306a36Sopenharmony_ci		 NA),
123762306a36Sopenharmony_ci	PINGROUP(90,  tsif1, blsp_spi10_cs3, qdss_tracedata_a, NA, NA, NA, NA,
123862306a36Sopenharmony_ci		 NA, NA, NA, NA),
123962306a36Sopenharmony_ci	PINGROUP(91,  tsif1, sdc4, NA, NA, NA, NA, qdss_traceclk_b, NA, NA, NA,
124062306a36Sopenharmony_ci		 NA),
124162306a36Sopenharmony_ci	PINGROUP(92,  tsif2, sdc4, NA, NA, qdss_tracedata_b, NA, NA, NA, NA,
124262306a36Sopenharmony_ci		 NA, NA),
124362306a36Sopenharmony_ci	PINGROUP(93,  tsif2, sdc4, NA, NA, NA, NA, qdss_tracedata_b, NA, NA,
124462306a36Sopenharmony_ci		 NA, NA),
124562306a36Sopenharmony_ci	PINGROUP(94,  tsif2, sdc4, NA, NA, NA, NA, qdss_tracectl_b, NA, NA, NA,
124662306a36Sopenharmony_ci		 NA),
124762306a36Sopenharmony_ci	PINGROUP(95,  tsif2, sdc4, gp_pdm0, NA, NA, NA, qdss_cti_trig_out_d,
124862306a36Sopenharmony_ci		 NA, NA, NA, NA),
124962306a36Sopenharmony_ci	PINGROUP(96,  tsif2, sdc4, qdss_cti_trig_in_d, NA, NA, NA, NA, NA, NA,
125062306a36Sopenharmony_ci		 NA, NA),
125162306a36Sopenharmony_ci	PINGROUP(97,  uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125262306a36Sopenharmony_ci	PINGROUP(98,  uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125362306a36Sopenharmony_ci	PINGROUP(99,  uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125462306a36Sopenharmony_ci	PINGROUP(100, uim1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125562306a36Sopenharmony_ci	PINGROUP(101, uim_batt_alarm, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125662306a36Sopenharmony_ci	PINGROUP(102, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125762306a36Sopenharmony_ci	PINGROUP(103, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125862306a36Sopenharmony_ci	PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
125962306a36Sopenharmony_ci	PINGROUP(105, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
126062306a36Sopenharmony_ci	PINGROUP(106, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
126162306a36Sopenharmony_ci	PINGROUP(107, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
126262306a36Sopenharmony_ci	PINGROUP(108, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
126362306a36Sopenharmony_ci	PINGROUP(109, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
126462306a36Sopenharmony_ci	PINGROUP(110, tsif1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
126562306a36Sopenharmony_ci	PINGROUP(111, tsif1, blsp11_uart_tx_b, NA, NA, NA, NA, NA, NA, NA, NA,
126662306a36Sopenharmony_ci		 NA),
126762306a36Sopenharmony_ci	PINGROUP(112, blsp11_uart_rx_b, NA, NA, NA, NA, NA, NA, NA, NA, NA,
126862306a36Sopenharmony_ci		 NA),
126962306a36Sopenharmony_ci	PINGROUP(113, blsp11_i2c_sda_b, NA, NA, NA, NA, NA, NA, NA, NA, NA,
127062306a36Sopenharmony_ci		 NA),
127162306a36Sopenharmony_ci	PINGROUP(114, blsp11_i2c_scl_b, NA, NA, NA, NA, NA, NA, NA, NA, NA,
127262306a36Sopenharmony_ci		 NA),
127362306a36Sopenharmony_ci	PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
127462306a36Sopenharmony_ci	PINGROUP(116, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
127562306a36Sopenharmony_ci	PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
127662306a36Sopenharmony_ci	PINGROUP(118, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
127762306a36Sopenharmony_ci	PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
127862306a36Sopenharmony_ci	PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
127962306a36Sopenharmony_ci	PINGROUP(121, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128062306a36Sopenharmony_ci	PINGROUP(122, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128162306a36Sopenharmony_ci	PINGROUP(123, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128262306a36Sopenharmony_ci	PINGROUP(124, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128362306a36Sopenharmony_ci	PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128462306a36Sopenharmony_ci	PINGROUP(126, NA, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128562306a36Sopenharmony_ci	PINGROUP(127, NA, nav_tsync, nav_pps, NA, NA, NA, NA, NA, NA, NA,
128662306a36Sopenharmony_ci		 NA),
128762306a36Sopenharmony_ci	PINGROUP(128, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128862306a36Sopenharmony_ci	PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
128962306a36Sopenharmony_ci	PINGROUP(130, gps_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129062306a36Sopenharmony_ci	PINGROUP(131, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129162306a36Sopenharmony_ci	PINGROUP(132, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129262306a36Sopenharmony_ci	PINGROUP(133, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129362306a36Sopenharmony_ci	PINGROUP(134, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129462306a36Sopenharmony_ci	PINGROUP(135, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129562306a36Sopenharmony_ci	PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129662306a36Sopenharmony_ci	PINGROUP(137, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129762306a36Sopenharmony_ci	PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129862306a36Sopenharmony_ci	PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
129962306a36Sopenharmony_ci	PINGROUP(140, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
130062306a36Sopenharmony_ci	PINGROUP(141, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
130162306a36Sopenharmony_ci	PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
130262306a36Sopenharmony_ci	PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
130362306a36Sopenharmony_ci	PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
130462306a36Sopenharmony_ci	PINGROUP(145, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
130562306a36Sopenharmony_ci	SDC_PINGROUP(sdc1_rclk, 0x2044, 15, 0),
130662306a36Sopenharmony_ci	SDC_PINGROUP(sdc1_clk, 0x2044, 13, 6),
130762306a36Sopenharmony_ci	SDC_PINGROUP(sdc1_cmd, 0x2044, 11, 3),
130862306a36Sopenharmony_ci	SDC_PINGROUP(sdc1_data, 0x2044, 9, 0),
130962306a36Sopenharmony_ci	SDC_PINGROUP(sdc2_clk, 0x2048, 14, 6),
131062306a36Sopenharmony_ci	SDC_PINGROUP(sdc2_cmd, 0x2048, 11, 3),
131162306a36Sopenharmony_ci	SDC_PINGROUP(sdc2_data, 0x2048, 9, 0),
131262306a36Sopenharmony_ci	SDC_PINGROUP(sdc3_clk, 0x206c, 14, 6),
131362306a36Sopenharmony_ci	SDC_PINGROUP(sdc3_cmd, 0x206c, 11, 3),
131462306a36Sopenharmony_ci	SDC_PINGROUP(sdc3_data, 0x206c, 9, 0),
131562306a36Sopenharmony_ci};
131662306a36Sopenharmony_ci
131762306a36Sopenharmony_ci#define NUM_GPIO_PINGROUPS 146
131862306a36Sopenharmony_ci
131962306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8994_pinctrl = {
132062306a36Sopenharmony_ci	.pins = msm8994_pins,
132162306a36Sopenharmony_ci	.npins = ARRAY_SIZE(msm8994_pins),
132262306a36Sopenharmony_ci	.functions = msm8994_functions,
132362306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(msm8994_functions),
132462306a36Sopenharmony_ci	.groups = msm8994_groups,
132562306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(msm8994_groups),
132662306a36Sopenharmony_ci	.ngpios = NUM_GPIO_PINGROUPS,
132762306a36Sopenharmony_ci};
132862306a36Sopenharmony_ci
132962306a36Sopenharmony_cistatic int msm8994_pinctrl_probe(struct platform_device *pdev)
133062306a36Sopenharmony_ci{
133162306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, &msm8994_pinctrl);
133262306a36Sopenharmony_ci}
133362306a36Sopenharmony_ci
133462306a36Sopenharmony_cistatic const struct of_device_id msm8994_pinctrl_of_match[] = {
133562306a36Sopenharmony_ci	{ .compatible = "qcom,msm8992-pinctrl", },
133662306a36Sopenharmony_ci	{ .compatible = "qcom,msm8994-pinctrl", },
133762306a36Sopenharmony_ci	{ }
133862306a36Sopenharmony_ci};
133962306a36Sopenharmony_ci
134062306a36Sopenharmony_cistatic struct platform_driver msm8994_pinctrl_driver = {
134162306a36Sopenharmony_ci	.driver = {
134262306a36Sopenharmony_ci		.name = "msm8994-pinctrl",
134362306a36Sopenharmony_ci		.of_match_table = msm8994_pinctrl_of_match,
134462306a36Sopenharmony_ci	},
134562306a36Sopenharmony_ci	.probe = msm8994_pinctrl_probe,
134662306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
134762306a36Sopenharmony_ci};
134862306a36Sopenharmony_ci
134962306a36Sopenharmony_cistatic int __init msm8994_pinctrl_init(void)
135062306a36Sopenharmony_ci{
135162306a36Sopenharmony_ci	return platform_driver_register(&msm8994_pinctrl_driver);
135262306a36Sopenharmony_ci}
135362306a36Sopenharmony_ciarch_initcall(msm8994_pinctrl_init);
135462306a36Sopenharmony_ci
135562306a36Sopenharmony_cistatic void __exit msm8994_pinctrl_exit(void)
135662306a36Sopenharmony_ci{
135762306a36Sopenharmony_ci	platform_driver_unregister(&msm8994_pinctrl_driver);
135862306a36Sopenharmony_ci}
135962306a36Sopenharmony_cimodule_exit(msm8994_pinctrl_exit);
136062306a36Sopenharmony_ci
136162306a36Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm MSM8994 pinctrl driver");
136262306a36Sopenharmony_ciMODULE_LICENSE("GPL v2");
136362306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8994_pinctrl_of_match);
1364