162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 2016, AngeloGioacchino Del Regno <kholk11@gmail.com>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#include <linux/module.h>
962306a36Sopenharmony_ci#include <linux/of.h>
1062306a36Sopenharmony_ci#include <linux/platform_device.h>
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#include "pinctrl-msm.h"
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci#define REG_BASE 0x0
1562306a36Sopenharmony_ci#define REG_SIZE 0x1000
1662306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9)	\
1762306a36Sopenharmony_ci	{					        \
1862306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
1962306a36Sopenharmony_ci			gpio##id##_pins, 		\
2062306a36Sopenharmony_ci			ARRAY_SIZE(gpio##id##_pins)),	\
2162306a36Sopenharmony_ci		.funcs = (int[]){			\
2262306a36Sopenharmony_ci			msm_mux_gpio, /* gpio mode */	\
2362306a36Sopenharmony_ci			msm_mux_##f1,			\
2462306a36Sopenharmony_ci			msm_mux_##f2,			\
2562306a36Sopenharmony_ci			msm_mux_##f3,			\
2662306a36Sopenharmony_ci			msm_mux_##f4,			\
2762306a36Sopenharmony_ci			msm_mux_##f5,			\
2862306a36Sopenharmony_ci			msm_mux_##f6,			\
2962306a36Sopenharmony_ci			msm_mux_##f7,			\
3062306a36Sopenharmony_ci			msm_mux_##f8,			\
3162306a36Sopenharmony_ci			msm_mux_##f9			\
3262306a36Sopenharmony_ci		},				        \
3362306a36Sopenharmony_ci		.nfuncs = 10,				\
3462306a36Sopenharmony_ci		.ctl_reg = REG_BASE + REG_SIZE * id,			\
3562306a36Sopenharmony_ci		.io_reg = REG_BASE + 0x4 + REG_SIZE * id,		\
3662306a36Sopenharmony_ci		.intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id,		\
3762306a36Sopenharmony_ci		.intr_status_reg = REG_BASE + 0xc + REG_SIZE * id,	\
3862306a36Sopenharmony_ci		.intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id,	\
3962306a36Sopenharmony_ci		.mux_bit = 2,			\
4062306a36Sopenharmony_ci		.pull_bit = 0,			\
4162306a36Sopenharmony_ci		.drv_bit = 6,			\
4262306a36Sopenharmony_ci		.oe_bit = 9,			\
4362306a36Sopenharmony_ci		.in_bit = 0,			\
4462306a36Sopenharmony_ci		.out_bit = 1,			\
4562306a36Sopenharmony_ci		.intr_enable_bit = 0,		\
4662306a36Sopenharmony_ci		.intr_status_bit = 0,		\
4762306a36Sopenharmony_ci		.intr_target_bit = 5,		\
4862306a36Sopenharmony_ci		.intr_target_kpss_val = 4,	\
4962306a36Sopenharmony_ci		.intr_raw_status_bit = 4,	\
5062306a36Sopenharmony_ci		.intr_polarity_bit = 1,		\
5162306a36Sopenharmony_ci		.intr_detection_bit = 2,	\
5262306a36Sopenharmony_ci		.intr_detection_width = 2,	\
5362306a36Sopenharmony_ci	}
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv)	\
5662306a36Sopenharmony_ci	{					        \
5762306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
5862306a36Sopenharmony_ci			pg_name##_pins, 		\
5962306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
6062306a36Sopenharmony_ci		.ctl_reg = ctl,				\
6162306a36Sopenharmony_ci		.io_reg = 0,				\
6262306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
6362306a36Sopenharmony_ci		.intr_status_reg = 0,			\
6462306a36Sopenharmony_ci		.intr_target_reg = 0,			\
6562306a36Sopenharmony_ci		.mux_bit = -1,				\
6662306a36Sopenharmony_ci		.pull_bit = pull,			\
6762306a36Sopenharmony_ci		.drv_bit = drv,				\
6862306a36Sopenharmony_ci		.oe_bit = -1,				\
6962306a36Sopenharmony_ci		.in_bit = -1,				\
7062306a36Sopenharmony_ci		.out_bit = -1,				\
7162306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
7262306a36Sopenharmony_ci		.intr_status_bit = -1,			\
7362306a36Sopenharmony_ci		.intr_target_bit = -1,			\
7462306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
7562306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
7662306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
7762306a36Sopenharmony_ci		.intr_detection_width = -1,		\
7862306a36Sopenharmony_ci	}
7962306a36Sopenharmony_cistatic const struct pinctrl_pin_desc msm8976_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, "GPIO_133"),
21462306a36Sopenharmony_ci	PINCTRL_PIN(134, "GPIO_134"),
21562306a36Sopenharmony_ci	PINCTRL_PIN(135, "GPIO_135"),
21662306a36Sopenharmony_ci	PINCTRL_PIN(136, "GPIO_136"),
21762306a36Sopenharmony_ci	PINCTRL_PIN(137, "GPIO_137"),
21862306a36Sopenharmony_ci	PINCTRL_PIN(138, "GPIO_138"),
21962306a36Sopenharmony_ci	PINCTRL_PIN(139, "GPIO_139"),
22062306a36Sopenharmony_ci	PINCTRL_PIN(140, "GPIO_140"),
22162306a36Sopenharmony_ci	PINCTRL_PIN(141, "GPIO_141"),
22262306a36Sopenharmony_ci	PINCTRL_PIN(142, "GPIO_142"),
22362306a36Sopenharmony_ci	PINCTRL_PIN(143, "GPIO_143"),
22462306a36Sopenharmony_ci	PINCTRL_PIN(144, "GPIO_144"),
22562306a36Sopenharmony_ci	PINCTRL_PIN(145, "SDC1_CLK"),
22662306a36Sopenharmony_ci	PINCTRL_PIN(146, "SDC1_CMD"),
22762306a36Sopenharmony_ci	PINCTRL_PIN(147, "SDC1_DATA"),
22862306a36Sopenharmony_ci	PINCTRL_PIN(148, "SDC1_RCLK"),
22962306a36Sopenharmony_ci	PINCTRL_PIN(149, "SDC2_CLK"),
23062306a36Sopenharmony_ci	PINCTRL_PIN(150, "SDC2_CMD"),
23162306a36Sopenharmony_ci	PINCTRL_PIN(151, "SDC2_DATA"),
23262306a36Sopenharmony_ci	PINCTRL_PIN(152, "QDSD_CLK"),
23362306a36Sopenharmony_ci	PINCTRL_PIN(153, "QDSD_CMD"),
23462306a36Sopenharmony_ci	PINCTRL_PIN(154, "QDSD_DATA0"),
23562306a36Sopenharmony_ci	PINCTRL_PIN(155, "QDSD_DATA1"),
23662306a36Sopenharmony_ci	PINCTRL_PIN(156, "QDSD_DATA2"),
23762306a36Sopenharmony_ci	PINCTRL_PIN(157, "QDSD_DATA3"),
23862306a36Sopenharmony_ci};
23962306a36Sopenharmony_ci
24062306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \
24162306a36Sopenharmony_ci	static const unsigned int gpio##pin##_pins[] = { pin }
24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0);
24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1);
24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2);
24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3);
24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4);
24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5);
24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6);
24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7);
25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8);
25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9);
25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10);
25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11);
25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12);
25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13);
25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14);
25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15);
25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16);
25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17);
26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18);
26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19);
26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20);
26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21);
26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22);
26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23);
26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24);
26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25);
26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26);
26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27);
27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28);
27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29);
27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30);
27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31);
27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32);
27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33);
27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34);
27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35);
27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36);
27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37);
28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38);
28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39);
28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40);
28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41);
28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42);
28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43);
28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44);
28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45);
28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46);
28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47);
29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48);
29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49);
29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50);
29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51);
29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52);
29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53);
29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54);
29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55);
29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56);
29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57);
30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58);
30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59);
30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60);
30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61);
30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62);
30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63);
30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64);
30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65);
30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66);
30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67);
31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68);
31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69);
31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70);
31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71);
31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72);
31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73);
31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74);
31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75);
31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76);
31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77);
32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78);
32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79);
32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80);
32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81);
32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82);
32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83);
32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84);
32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85);
32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86);
32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87);
33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88);
33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89);
33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90);
33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91);
33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92);
33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93);
33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94);
33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95);
33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96);
33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97);
34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98);
34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99);
34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100);
34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101);
34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102);
34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103);
34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104);
34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105);
34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106);
34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107);
35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108);
35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109);
35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110);
35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111);
35462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112);
35562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113);
35662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114);
35762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115);
35862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116);
35962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117);
36062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118);
36162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119);
36262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120);
36362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121);
36462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122);
36562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123);
36662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124);
36762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125);
36862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126);
36962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127);
37062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128);
37162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129);
37262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130);
37362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131);
37462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132);
37562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133);
37662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134);
37762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135);
37862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136);
37962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137);
38062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138);
38162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139);
38262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140);
38362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141);
38462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142);
38562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143);
38662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144);
38762306a36Sopenharmony_ci
38862306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 145 };
38962306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 146 };
39062306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 147 };
39162306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 148 };
39262306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 149 };
39362306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 150 };
39462306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 151 };
39562306a36Sopenharmony_cistatic const unsigned int qdsd_clk_pins[] = { 152 };
39662306a36Sopenharmony_cistatic const unsigned int qdsd_cmd_pins[] = { 153 };
39762306a36Sopenharmony_cistatic const unsigned int qdsd_data0_pins[] = { 154 };
39862306a36Sopenharmony_cistatic const unsigned int qdsd_data1_pins[] = { 155 };
39962306a36Sopenharmony_cistatic const unsigned int qdsd_data2_pins[] = { 156 };
40062306a36Sopenharmony_cistatic const unsigned int qdsd_data3_pins[] = { 157 };
40162306a36Sopenharmony_ci
40262306a36Sopenharmony_cienum msm8976_functions {
40362306a36Sopenharmony_ci	msm_mux_gpio,
40462306a36Sopenharmony_ci	msm_mux_blsp_uart1,
40562306a36Sopenharmony_ci	msm_mux_blsp_spi1,
40662306a36Sopenharmony_ci	msm_mux_smb_int,
40762306a36Sopenharmony_ci	msm_mux_blsp_i2c1,
40862306a36Sopenharmony_ci	msm_mux_blsp_spi2,
40962306a36Sopenharmony_ci	msm_mux_blsp_uart2,
41062306a36Sopenharmony_ci	msm_mux_blsp_i2c2,
41162306a36Sopenharmony_ci	msm_mux_gcc_gp1_clk_b,
41262306a36Sopenharmony_ci	msm_mux_blsp_spi3,
41362306a36Sopenharmony_ci	msm_mux_qdss_tracedata_b,
41462306a36Sopenharmony_ci	msm_mux_blsp_i2c3,
41562306a36Sopenharmony_ci	msm_mux_gcc_gp2_clk_b,
41662306a36Sopenharmony_ci	msm_mux_gcc_gp3_clk_b,
41762306a36Sopenharmony_ci	msm_mux_blsp_spi4,
41862306a36Sopenharmony_ci	msm_mux_cap_int,
41962306a36Sopenharmony_ci	msm_mux_blsp_i2c4,
42062306a36Sopenharmony_ci	msm_mux_blsp_spi5,
42162306a36Sopenharmony_ci	msm_mux_blsp_uart5,
42262306a36Sopenharmony_ci	msm_mux_qdss_traceclk_a,
42362306a36Sopenharmony_ci	msm_mux_m_voc,
42462306a36Sopenharmony_ci	msm_mux_blsp_i2c5,
42562306a36Sopenharmony_ci	msm_mux_qdss_tracectl_a,
42662306a36Sopenharmony_ci	msm_mux_qdss_tracedata_a,
42762306a36Sopenharmony_ci	msm_mux_blsp_spi6,
42862306a36Sopenharmony_ci	msm_mux_blsp_uart6,
42962306a36Sopenharmony_ci	msm_mux_qdss_tracectl_b,
43062306a36Sopenharmony_ci	msm_mux_blsp_i2c6,
43162306a36Sopenharmony_ci	msm_mux_qdss_traceclk_b,
43262306a36Sopenharmony_ci	msm_mux_mdp_vsync,
43362306a36Sopenharmony_ci	msm_mux_pri_mi2s_mclk_a,
43462306a36Sopenharmony_ci	msm_mux_sec_mi2s_mclk_a,
43562306a36Sopenharmony_ci	msm_mux_cam_mclk,
43662306a36Sopenharmony_ci	msm_mux_cci0_i2c,
43762306a36Sopenharmony_ci	msm_mux_cci1_i2c,
43862306a36Sopenharmony_ci	msm_mux_blsp1_spi,
43962306a36Sopenharmony_ci	msm_mux_blsp3_spi,
44062306a36Sopenharmony_ci	msm_mux_gcc_gp1_clk_a,
44162306a36Sopenharmony_ci	msm_mux_gcc_gp2_clk_a,
44262306a36Sopenharmony_ci	msm_mux_gcc_gp3_clk_a,
44362306a36Sopenharmony_ci	msm_mux_uim_batt,
44462306a36Sopenharmony_ci	msm_mux_sd_write,
44562306a36Sopenharmony_ci	msm_mux_uim1_data,
44662306a36Sopenharmony_ci	msm_mux_uim1_clk,
44762306a36Sopenharmony_ci	msm_mux_uim1_reset,
44862306a36Sopenharmony_ci	msm_mux_uim1_present,
44962306a36Sopenharmony_ci	msm_mux_uim2_data,
45062306a36Sopenharmony_ci	msm_mux_uim2_clk,
45162306a36Sopenharmony_ci	msm_mux_uim2_reset,
45262306a36Sopenharmony_ci	msm_mux_uim2_present,
45362306a36Sopenharmony_ci	msm_mux_ts_xvdd,
45462306a36Sopenharmony_ci	msm_mux_mipi_dsi0,
45562306a36Sopenharmony_ci	msm_mux_us_euro,
45662306a36Sopenharmony_ci	msm_mux_ts_resout,
45762306a36Sopenharmony_ci	msm_mux_ts_sample,
45862306a36Sopenharmony_ci	msm_mux_sec_mi2s_mclk_b,
45962306a36Sopenharmony_ci	msm_mux_pri_mi2s,
46062306a36Sopenharmony_ci	msm_mux_codec_reset,
46162306a36Sopenharmony_ci	msm_mux_cdc_pdm0,
46262306a36Sopenharmony_ci	msm_mux_us_emitter,
46362306a36Sopenharmony_ci	msm_mux_pri_mi2s_mclk_b,
46462306a36Sopenharmony_ci	msm_mux_pri_mi2s_mclk_c,
46562306a36Sopenharmony_ci	msm_mux_lpass_slimbus,
46662306a36Sopenharmony_ci	msm_mux_lpass_slimbus0,
46762306a36Sopenharmony_ci	msm_mux_lpass_slimbus1,
46862306a36Sopenharmony_ci	msm_mux_codec_int1,
46962306a36Sopenharmony_ci	msm_mux_codec_int2,
47062306a36Sopenharmony_ci	msm_mux_wcss_bt,
47162306a36Sopenharmony_ci	msm_mux_sdc3,
47262306a36Sopenharmony_ci	msm_mux_wcss_wlan2,
47362306a36Sopenharmony_ci	msm_mux_wcss_wlan1,
47462306a36Sopenharmony_ci	msm_mux_wcss_wlan0,
47562306a36Sopenharmony_ci	msm_mux_wcss_wlan,
47662306a36Sopenharmony_ci	msm_mux_wcss_fm,
47762306a36Sopenharmony_ci	msm_mux_key_volp,
47862306a36Sopenharmony_ci	msm_mux_key_snapshot,
47962306a36Sopenharmony_ci	msm_mux_key_focus,
48062306a36Sopenharmony_ci	msm_mux_key_home,
48162306a36Sopenharmony_ci	msm_mux_pwr_down,
48262306a36Sopenharmony_ci	msm_mux_dmic0_clk,
48362306a36Sopenharmony_ci	msm_mux_hdmi_int,
48462306a36Sopenharmony_ci	msm_mux_dmic0_data,
48562306a36Sopenharmony_ci	msm_mux_wsa_vi,
48662306a36Sopenharmony_ci	msm_mux_wsa_en,
48762306a36Sopenharmony_ci	msm_mux_blsp_spi8,
48862306a36Sopenharmony_ci	msm_mux_wsa_irq,
48962306a36Sopenharmony_ci	msm_mux_blsp_i2c8,
49062306a36Sopenharmony_ci	msm_mux_pa_indicator,
49162306a36Sopenharmony_ci	msm_mux_modem_tsync,
49262306a36Sopenharmony_ci	msm_mux_ssbi_wtr1,
49362306a36Sopenharmony_ci	msm_mux_gsm1_tx,
49462306a36Sopenharmony_ci	msm_mux_gsm0_tx,
49562306a36Sopenharmony_ci	msm_mux_sdcard_det,
49662306a36Sopenharmony_ci	msm_mux_sec_mi2s,
49762306a36Sopenharmony_ci	msm_mux_ss_switch,
49862306a36Sopenharmony_ci	msm_mux_NA,
49962306a36Sopenharmony_ci};
50062306a36Sopenharmony_ci
50162306a36Sopenharmony_cistatic const char * const gpio_groups[] = {
50262306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
50362306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
50462306a36Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
50562306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
50662306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
50762306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
50862306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
50962306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
51062306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
51162306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
51262306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
51362306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
51462306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
51562306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
51662306a36Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
51762306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
51862306a36Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
51962306a36Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
52062306a36Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
52162306a36Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
52262306a36Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
52362306a36Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144",
52462306a36Sopenharmony_ci};
52562306a36Sopenharmony_cistatic const char * const blsp_uart1_groups[] = {
52662306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
52762306a36Sopenharmony_ci};
52862306a36Sopenharmony_cistatic const char * const blsp_spi1_groups[] = {
52962306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3",
53062306a36Sopenharmony_ci};
53162306a36Sopenharmony_cistatic const char * const smb_int_groups[] = {
53262306a36Sopenharmony_ci	"gpio1",
53362306a36Sopenharmony_ci};
53462306a36Sopenharmony_cistatic const char * const blsp_i2c1_groups[] = {
53562306a36Sopenharmony_ci	"gpio2", "gpio3",
53662306a36Sopenharmony_ci};
53762306a36Sopenharmony_cistatic const char * const blsp_spi2_groups[] = {
53862306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio6", "gpio7",
53962306a36Sopenharmony_ci};
54062306a36Sopenharmony_cistatic const char * const blsp_uart2_groups[] = {
54162306a36Sopenharmony_ci	"gpio4", "gpio5", "gpio6", "gpio7",
54262306a36Sopenharmony_ci};
54362306a36Sopenharmony_cistatic const char * const blsp_i2c2_groups[] = {
54462306a36Sopenharmony_ci	"gpio6", "gpio7",
54562306a36Sopenharmony_ci};
54662306a36Sopenharmony_cistatic const char * const gcc_gp1_clk_b_groups[] = {
54762306a36Sopenharmony_ci	"gpio105",
54862306a36Sopenharmony_ci};
54962306a36Sopenharmony_cistatic const char * const blsp_spi3_groups[] = {
55062306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11",
55162306a36Sopenharmony_ci};
55262306a36Sopenharmony_cistatic const char * const qdss_tracedata_b_groups[] = {
55362306a36Sopenharmony_ci	"gpio26", "gpio27", "gpio28", "gpio29", "gpio30",
55462306a36Sopenharmony_ci	"gpio31", "gpio33", "gpio34", "gpio35", "gpio36", "gpio37", "gpio38",
55562306a36Sopenharmony_ci	"gpio116", "gpio126", "gpio128", "gpio129",
55662306a36Sopenharmony_ci};
55762306a36Sopenharmony_cistatic const char * const blsp_i2c3_groups[] = {
55862306a36Sopenharmony_ci	"gpio10", "gpio11",
55962306a36Sopenharmony_ci};
56062306a36Sopenharmony_cistatic const char * const gcc_gp2_clk_b_groups[] = {
56162306a36Sopenharmony_ci	"gpio12",
56262306a36Sopenharmony_ci};
56362306a36Sopenharmony_cistatic const char * const gcc_gp3_clk_b_groups[] = {
56462306a36Sopenharmony_ci	"gpio13",
56562306a36Sopenharmony_ci};
56662306a36Sopenharmony_cistatic const char * const blsp_spi4_groups[] = {
56762306a36Sopenharmony_ci	"gpio12", "gpio13", "gpio14", "gpio15",
56862306a36Sopenharmony_ci};
56962306a36Sopenharmony_cistatic const char * const cap_int_groups[] = {
57062306a36Sopenharmony_ci	"gpio13",
57162306a36Sopenharmony_ci};
57262306a36Sopenharmony_cistatic const char * const blsp_i2c4_groups[] = {
57362306a36Sopenharmony_ci	"gpio14", "gpio15",
57462306a36Sopenharmony_ci};
57562306a36Sopenharmony_cistatic const char * const blsp_spi5_groups[] = {
57662306a36Sopenharmony_ci	"gpio134", "gpio135", "gpio136", "gpio137",
57762306a36Sopenharmony_ci};
57862306a36Sopenharmony_cistatic const char * const blsp_uart5_groups[] = {
57962306a36Sopenharmony_ci	"gpio134", "gpio135", "gpio136", "gpio137",
58062306a36Sopenharmony_ci};
58162306a36Sopenharmony_cistatic const char * const qdss_traceclk_a_groups[] = {
58262306a36Sopenharmony_ci	"gpio46",
58362306a36Sopenharmony_ci};
58462306a36Sopenharmony_cistatic const char * const m_voc_groups[] = {
58562306a36Sopenharmony_ci	"gpio123", "gpio124",
58662306a36Sopenharmony_ci};
58762306a36Sopenharmony_cistatic const char * const blsp_i2c5_groups[] = {
58862306a36Sopenharmony_ci	"gpio136", "gpio137",
58962306a36Sopenharmony_ci};
59062306a36Sopenharmony_cistatic const char * const qdss_tracectl_a_groups[] = {
59162306a36Sopenharmony_ci	"gpio45",
59262306a36Sopenharmony_ci};
59362306a36Sopenharmony_cistatic const char * const qdss_tracedata_a_groups[] = {
59462306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio39", "gpio40", "gpio41", "gpio42",
59562306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio47", "gpio48", "gpio62", "gpio69", "gpio120",
59662306a36Sopenharmony_ci	"gpio121", "gpio130", "gpio131",
59762306a36Sopenharmony_ci};
59862306a36Sopenharmony_cistatic const char * const blsp_spi6_groups[] = {
59962306a36Sopenharmony_ci	"gpio20", "gpio21", "gpio22", "gpio23",
60062306a36Sopenharmony_ci};
60162306a36Sopenharmony_cistatic const char * const blsp_uart6_groups[] = {
60262306a36Sopenharmony_ci	"gpio20", "gpio21", "gpio22", "gpio23",
60362306a36Sopenharmony_ci};
60462306a36Sopenharmony_cistatic const char * const qdss_tracectl_b_groups[] = {
60562306a36Sopenharmony_ci	"gpio5",
60662306a36Sopenharmony_ci};
60762306a36Sopenharmony_cistatic const char * const blsp_i2c6_groups[] = {
60862306a36Sopenharmony_ci	"gpio22", "gpio23",
60962306a36Sopenharmony_ci};
61062306a36Sopenharmony_cistatic const char * const qdss_traceclk_b_groups[] = {
61162306a36Sopenharmony_ci	"gpio5",
61262306a36Sopenharmony_ci};
61362306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
61462306a36Sopenharmony_ci	"gpio24", "gpio25",
61562306a36Sopenharmony_ci};
61662306a36Sopenharmony_cistatic const char * const pri_mi2s_mclk_a_groups[] = {
61762306a36Sopenharmony_ci	"gpio126",
61862306a36Sopenharmony_ci};
61962306a36Sopenharmony_cistatic const char * const sec_mi2s_mclk_a_groups[] = {
62062306a36Sopenharmony_ci	"gpio62",
62162306a36Sopenharmony_ci};
62262306a36Sopenharmony_cistatic const char * const cam_mclk_groups[] = {
62362306a36Sopenharmony_ci	"gpio26", "gpio27", "gpio28",
62462306a36Sopenharmony_ci};
62562306a36Sopenharmony_cistatic const char * const cci0_i2c_groups[] = {
62662306a36Sopenharmony_ci	"gpio30", "gpio29",
62762306a36Sopenharmony_ci};
62862306a36Sopenharmony_cistatic const char * const cci1_i2c_groups[] = {
62962306a36Sopenharmony_ci	"gpio104", "gpio103",
63062306a36Sopenharmony_ci};
63162306a36Sopenharmony_cistatic const char * const blsp1_spi_groups[] = {
63262306a36Sopenharmony_ci	"gpio101",
63362306a36Sopenharmony_ci};
63462306a36Sopenharmony_cistatic const char * const blsp3_spi_groups[] = {
63562306a36Sopenharmony_ci	"gpio106", "gpio107",
63662306a36Sopenharmony_ci};
63762306a36Sopenharmony_cistatic const char * const gcc_gp1_clk_a_groups[] = {
63862306a36Sopenharmony_ci	"gpio49",
63962306a36Sopenharmony_ci};
64062306a36Sopenharmony_cistatic const char * const gcc_gp2_clk_a_groups[] = {
64162306a36Sopenharmony_ci	"gpio50",
64262306a36Sopenharmony_ci};
64362306a36Sopenharmony_cistatic const char * const gcc_gp3_clk_a_groups[] = {
64462306a36Sopenharmony_ci	"gpio51",
64562306a36Sopenharmony_ci};
64662306a36Sopenharmony_cistatic const char * const uim_batt_groups[] = {
64762306a36Sopenharmony_ci	"gpio61",
64862306a36Sopenharmony_ci};
64962306a36Sopenharmony_cistatic const char * const sd_write_groups[] = {
65062306a36Sopenharmony_ci	"gpio50",
65162306a36Sopenharmony_ci};
65262306a36Sopenharmony_cistatic const char * const uim2_data_groups[] = {
65362306a36Sopenharmony_ci	"gpio51",
65462306a36Sopenharmony_ci};
65562306a36Sopenharmony_cistatic const char * const uim2_clk_groups[] = {
65662306a36Sopenharmony_ci	"gpio52",
65762306a36Sopenharmony_ci};
65862306a36Sopenharmony_cistatic const char * const uim2_reset_groups[] = {
65962306a36Sopenharmony_ci	"gpio53",
66062306a36Sopenharmony_ci};
66162306a36Sopenharmony_cistatic const char * const uim2_present_groups[] = {
66262306a36Sopenharmony_ci	"gpio54",
66362306a36Sopenharmony_ci};
66462306a36Sopenharmony_cistatic const char * const uim1_data_groups[] = {
66562306a36Sopenharmony_ci	"gpio55",
66662306a36Sopenharmony_ci};
66762306a36Sopenharmony_cistatic const char * const uim1_clk_groups[] = {
66862306a36Sopenharmony_ci	"gpio56",
66962306a36Sopenharmony_ci};
67062306a36Sopenharmony_cistatic const char * const uim1_reset_groups[] = {
67162306a36Sopenharmony_ci	"gpio57",
67262306a36Sopenharmony_ci};
67362306a36Sopenharmony_cistatic const char * const uim1_present_groups[] = {
67462306a36Sopenharmony_ci	"gpio58",
67562306a36Sopenharmony_ci};
67662306a36Sopenharmony_cistatic const char * const ts_xvdd_groups[] = {
67762306a36Sopenharmony_ci	"gpio60",
67862306a36Sopenharmony_ci};
67962306a36Sopenharmony_cistatic const char * const mipi_dsi0_groups[] = {
68062306a36Sopenharmony_ci	"gpio61",
68162306a36Sopenharmony_ci};
68262306a36Sopenharmony_cistatic const char * const us_euro_groups[] = {
68362306a36Sopenharmony_ci	"gpio63",
68462306a36Sopenharmony_ci};
68562306a36Sopenharmony_cistatic const char * const ts_resout_groups[] = {
68662306a36Sopenharmony_ci	"gpio64",
68762306a36Sopenharmony_ci};
68862306a36Sopenharmony_cistatic const char * const ts_sample_groups[] = {
68962306a36Sopenharmony_ci	"gpio65",
69062306a36Sopenharmony_ci};
69162306a36Sopenharmony_cistatic const char * const sec_mi2s_mclk_b_groups[] = {
69262306a36Sopenharmony_ci	"gpio66",
69362306a36Sopenharmony_ci};
69462306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = {
69562306a36Sopenharmony_ci	"gpio122", "gpio123", "gpio124", "gpio125", "gpio127",
69662306a36Sopenharmony_ci};
69762306a36Sopenharmony_cistatic const char * const codec_reset_groups[] = {
69862306a36Sopenharmony_ci	"gpio67",
69962306a36Sopenharmony_ci};
70062306a36Sopenharmony_cistatic const char * const cdc_pdm0_groups[] = {
70162306a36Sopenharmony_ci	"gpio116", "gpio117", "gpio118", "gpio119", "gpio120", "gpio121",
70262306a36Sopenharmony_ci};
70362306a36Sopenharmony_cistatic const char * const us_emitter_groups[] = {
70462306a36Sopenharmony_ci	"gpio68",
70562306a36Sopenharmony_ci};
70662306a36Sopenharmony_cistatic const char * const pri_mi2s_mclk_b_groups[] = {
70762306a36Sopenharmony_ci	"gpio62",
70862306a36Sopenharmony_ci};
70962306a36Sopenharmony_cistatic const char * const pri_mi2s_mclk_c_groups[] = {
71062306a36Sopenharmony_ci	"gpio116",
71162306a36Sopenharmony_ci};
71262306a36Sopenharmony_cistatic const char * const lpass_slimbus_groups[] = {
71362306a36Sopenharmony_ci	"gpio117",
71462306a36Sopenharmony_ci};
71562306a36Sopenharmony_cistatic const char * const lpass_slimbus0_groups[] = {
71662306a36Sopenharmony_ci	"gpio118",
71762306a36Sopenharmony_ci};
71862306a36Sopenharmony_cistatic const char * const lpass_slimbus1_groups[] = {
71962306a36Sopenharmony_ci	"gpio119",
72062306a36Sopenharmony_ci};
72162306a36Sopenharmony_cistatic const char * const codec_int1_groups[] = {
72262306a36Sopenharmony_ci	"gpio73",
72362306a36Sopenharmony_ci};
72462306a36Sopenharmony_cistatic const char * const codec_int2_groups[] = {
72562306a36Sopenharmony_ci	"gpio74",
72662306a36Sopenharmony_ci};
72762306a36Sopenharmony_cistatic const char * const wcss_bt_groups[] = {
72862306a36Sopenharmony_ci	"gpio39", "gpio47", "gpio48",
72962306a36Sopenharmony_ci};
73062306a36Sopenharmony_cistatic const char * const sdc3_groups[] = {
73162306a36Sopenharmony_ci	"gpio39", "gpio40", "gpio41",
73262306a36Sopenharmony_ci	"gpio42", "gpio43", "gpio44",
73362306a36Sopenharmony_ci};
73462306a36Sopenharmony_cistatic const char * const wcss_wlan2_groups[] = {
73562306a36Sopenharmony_ci	"gpio40",
73662306a36Sopenharmony_ci};
73762306a36Sopenharmony_cistatic const char * const wcss_wlan1_groups[] = {
73862306a36Sopenharmony_ci	"gpio41",
73962306a36Sopenharmony_ci};
74062306a36Sopenharmony_cistatic const char * const wcss_wlan0_groups[] = {
74162306a36Sopenharmony_ci	"gpio42",
74262306a36Sopenharmony_ci};
74362306a36Sopenharmony_cistatic const char * const wcss_wlan_groups[] = {
74462306a36Sopenharmony_ci	"gpio43", "gpio44",
74562306a36Sopenharmony_ci};
74662306a36Sopenharmony_cistatic const char * const wcss_fm_groups[] = {
74762306a36Sopenharmony_ci	"gpio45", "gpio46",
74862306a36Sopenharmony_ci};
74962306a36Sopenharmony_cistatic const char * const key_volp_groups[] = {
75062306a36Sopenharmony_ci	"gpio85",
75162306a36Sopenharmony_ci};
75262306a36Sopenharmony_cistatic const char * const key_snapshot_groups[] = {
75362306a36Sopenharmony_ci	"gpio86",
75462306a36Sopenharmony_ci};
75562306a36Sopenharmony_cistatic const char * const key_focus_groups[] = {
75662306a36Sopenharmony_ci	"gpio87",
75762306a36Sopenharmony_ci};
75862306a36Sopenharmony_cistatic const char * const key_home_groups[] = {
75962306a36Sopenharmony_ci	"gpio88",
76062306a36Sopenharmony_ci};
76162306a36Sopenharmony_cistatic const char * const pwr_down_groups[] = {
76262306a36Sopenharmony_ci	"gpio89",
76362306a36Sopenharmony_ci};
76462306a36Sopenharmony_cistatic const char * const dmic0_clk_groups[] = {
76562306a36Sopenharmony_ci	"gpio66",
76662306a36Sopenharmony_ci};
76762306a36Sopenharmony_cistatic const char * const hdmi_int_groups[] = {
76862306a36Sopenharmony_ci	"gpio90",
76962306a36Sopenharmony_ci};
77062306a36Sopenharmony_cistatic const char * const dmic0_data_groups[] = {
77162306a36Sopenharmony_ci	"gpio67",
77262306a36Sopenharmony_ci};
77362306a36Sopenharmony_cistatic const char * const wsa_vi_groups[] = {
77462306a36Sopenharmony_ci	"gpio108", "gpio109",
77562306a36Sopenharmony_ci};
77662306a36Sopenharmony_cistatic const char * const wsa_en_groups[] = {
77762306a36Sopenharmony_ci	"gpio96",
77862306a36Sopenharmony_ci};
77962306a36Sopenharmony_cistatic const char * const blsp_spi8_groups[] = {
78062306a36Sopenharmony_ci	"gpio16", "gpio17", "gpio18", "gpio19",
78162306a36Sopenharmony_ci};
78262306a36Sopenharmony_cistatic const char * const wsa_irq_groups[] = {
78362306a36Sopenharmony_ci	"gpio97",
78462306a36Sopenharmony_ci};
78562306a36Sopenharmony_cistatic const char * const blsp_i2c8_groups[] = {
78662306a36Sopenharmony_ci	"gpio18", "gpio19",
78762306a36Sopenharmony_ci};
78862306a36Sopenharmony_cistatic const char * const pa_indicator_groups[] = {
78962306a36Sopenharmony_ci	"gpio92",
79062306a36Sopenharmony_ci};
79162306a36Sopenharmony_cistatic const char * const modem_tsync_groups[] = {
79262306a36Sopenharmony_ci	"gpio93",
79362306a36Sopenharmony_ci};
79462306a36Sopenharmony_cistatic const char * const ssbi_wtr1_groups[] = {
79562306a36Sopenharmony_ci	"gpio79", "gpio94",
79662306a36Sopenharmony_ci};
79762306a36Sopenharmony_cistatic const char * const gsm1_tx_groups[] = {
79862306a36Sopenharmony_ci	"gpio95",
79962306a36Sopenharmony_ci};
80062306a36Sopenharmony_cistatic const char * const gsm0_tx_groups[] = {
80162306a36Sopenharmony_ci	"gpio99",
80262306a36Sopenharmony_ci};
80362306a36Sopenharmony_cistatic const char * const sdcard_det_groups[] = {
80462306a36Sopenharmony_ci	"gpio133",
80562306a36Sopenharmony_ci};
80662306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = {
80762306a36Sopenharmony_ci	"gpio102", "gpio105", "gpio134", "gpio135",
80862306a36Sopenharmony_ci};
80962306a36Sopenharmony_ci
81062306a36Sopenharmony_cistatic const char * const ss_switch_groups[] = {
81162306a36Sopenharmony_ci	"gpio139",
81262306a36Sopenharmony_ci};
81362306a36Sopenharmony_ci
81462306a36Sopenharmony_cistatic const struct pinfunction msm8976_functions[] = {
81562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
81662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi1),
81762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(smb_int),
81862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c1),
81962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi2),
82062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart1),
82162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart2),
82262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c2),
82362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1_clk_b),
82462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi3),
82562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracedata_b),
82662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c3),
82762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2_clk_b),
82862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3_clk_b),
82962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi4),
83062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cap_int),
83162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c4),
83262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi5),
83362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart5),
83462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_traceclk_a),
83562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(m_voc),
83662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c5),
83762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracectl_a),
83862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracedata_a),
83962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi6),
84062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_uart6),
84162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_tracectl_b),
84262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c6),
84362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(qdss_traceclk_b),
84462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync),
84562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pri_mi2s_mclk_a),
84662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sec_mi2s_mclk_a),
84762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk),
84862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci0_i2c),
84962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cci1_i2c),
85062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp1_spi),
85162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp3_spi),
85262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp1_clk_a),
85362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp2_clk_a),
85462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gcc_gp3_clk_a),
85562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim_batt),
85662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sd_write),
85762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_data),
85862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_clk),
85962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_reset),
86062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim1_present),
86162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_data),
86262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_clk),
86362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_reset),
86462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(uim2_present),
86562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ts_xvdd),
86662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mipi_dsi0),
86762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(us_euro),
86862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ts_resout),
86962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ts_sample),
87062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sec_mi2s_mclk_b),
87162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pri_mi2s),
87262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(codec_reset),
87362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cdc_pdm0),
87462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(us_emitter),
87562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pri_mi2s_mclk_b),
87662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pri_mi2s_mclk_c),
87762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(lpass_slimbus),
87862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(lpass_slimbus0),
87962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(lpass_slimbus1),
88062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(codec_int1),
88162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(codec_int2),
88262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wcss_bt),
88362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc3),
88462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wcss_wlan2),
88562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wcss_wlan1),
88662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wcss_wlan0),
88762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wcss_wlan),
88862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wcss_fm),
88962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(key_volp),
89062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(key_snapshot),
89162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(key_focus),
89262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(key_home),
89362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pwr_down),
89462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dmic0_clk),
89562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_int),
89662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(dmic0_data),
89762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wsa_vi),
89862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wsa_en),
89962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_spi8),
90062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wsa_irq),
90162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(blsp_i2c8),
90262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pa_indicator),
90362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(modem_tsync),
90462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi_wtr1),
90562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsm1_tx),
90662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsm0_tx),
90762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdcard_det),
90862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sec_mi2s),
90962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ss_switch),
91062306a36Sopenharmony_ci};
91162306a36Sopenharmony_ci
91262306a36Sopenharmony_cistatic const struct msm_pingroup msm8976_groups[] = {
91362306a36Sopenharmony_ci	PINGROUP(0, blsp_spi1, blsp_uart1, NA, NA, NA, NA, NA, NA, NA),
91462306a36Sopenharmony_ci	PINGROUP(1, blsp_spi1, blsp_uart1, NA, NA, NA, NA, NA, NA, NA),
91562306a36Sopenharmony_ci	PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA),
91662306a36Sopenharmony_ci	PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA),
91762306a36Sopenharmony_ci	PINGROUP(4, blsp_spi2, blsp_uart2, NA, NA, NA, qdss_tracectl_b, NA, NA, NA),
91862306a36Sopenharmony_ci	PINGROUP(5, blsp_spi2, blsp_uart2, NA, NA, NA, qdss_traceclk_b, NA, NA, NA),
91962306a36Sopenharmony_ci	PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA),
92062306a36Sopenharmony_ci	PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA),
92162306a36Sopenharmony_ci	PINGROUP(8, blsp_spi3, NA, NA, NA, NA, qdss_tracedata_a, NA, NA, NA),
92262306a36Sopenharmony_ci	PINGROUP(9, blsp_spi3, NA, NA, NA, qdss_tracedata_a, NA, NA, NA, NA),
92362306a36Sopenharmony_ci	PINGROUP(10, blsp_spi3, NA, blsp_i2c3, NA, NA, qdss_tracedata_a, NA, NA, NA),
92462306a36Sopenharmony_ci	PINGROUP(11, blsp_spi3, NA, blsp_i2c3, NA, NA, NA, NA, NA, NA),
92562306a36Sopenharmony_ci	PINGROUP(12, blsp_spi4, NA, gcc_gp2_clk_b, NA, NA, NA, NA, NA, NA),
92662306a36Sopenharmony_ci	PINGROUP(13, blsp_spi4, NA, gcc_gp3_clk_b, NA, NA, NA, NA, NA, NA),
92762306a36Sopenharmony_ci	PINGROUP(14, blsp_spi4, NA, blsp_i2c4, NA, NA, NA, NA, NA, NA),
92862306a36Sopenharmony_ci	PINGROUP(15, blsp_spi4, NA, blsp_i2c4, NA, NA, NA, NA, NA, NA),
92962306a36Sopenharmony_ci	PINGROUP(16, blsp_spi8, NA, NA, NA, NA, NA, NA, NA, NA),
93062306a36Sopenharmony_ci	PINGROUP(17, blsp_spi8, NA, NA, NA, NA, NA, NA, NA, NA),
93162306a36Sopenharmony_ci	PINGROUP(18, blsp_spi8, NA, blsp_i2c8, NA, NA, NA, NA, NA, NA),
93262306a36Sopenharmony_ci	PINGROUP(19, blsp_spi8, NA, blsp_i2c8, NA, NA, NA, NA, NA, NA),
93362306a36Sopenharmony_ci	PINGROUP(20, blsp_spi6, blsp_uart6, NA, NA, NA, NA, NA, NA, NA),
93462306a36Sopenharmony_ci	PINGROUP(21, blsp_spi6, blsp_uart6, NA, NA, NA, NA, NA, NA, NA),
93562306a36Sopenharmony_ci	PINGROUP(22, blsp_spi6, blsp_uart6, blsp_i2c6, NA, NA, NA, NA, NA, NA),
93662306a36Sopenharmony_ci	PINGROUP(23, blsp_spi6, blsp_uart6, blsp_i2c6, NA, NA, NA, NA, NA, NA),
93762306a36Sopenharmony_ci	PINGROUP(24, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA),
93862306a36Sopenharmony_ci	PINGROUP(25, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA),
93962306a36Sopenharmony_ci	PINGROUP(26, cam_mclk, NA, NA, NA, NA, qdss_tracedata_b, NA, NA, NA),
94062306a36Sopenharmony_ci	PINGROUP(27, cam_mclk, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA),
94162306a36Sopenharmony_ci	PINGROUP(28, cam_mclk, NA, NA, NA, NA, qdss_tracedata_b, NA, NA, NA),
94262306a36Sopenharmony_ci	PINGROUP(29, cci0_i2c, NA, NA, NA, NA, qdss_tracedata_b, NA, NA, NA),
94362306a36Sopenharmony_ci	PINGROUP(30, cci0_i2c, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA),
94462306a36Sopenharmony_ci	PINGROUP(31, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA),
94562306a36Sopenharmony_ci	PINGROUP(32, NA, NA, NA, NA, NA, NA, NA, NA, NA),
94662306a36Sopenharmony_ci	PINGROUP(33, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA),
94762306a36Sopenharmony_ci	PINGROUP(34, NA, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b),
94862306a36Sopenharmony_ci	PINGROUP(35, NA, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b),
94962306a36Sopenharmony_ci	PINGROUP(36, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA),
95062306a36Sopenharmony_ci	PINGROUP(37, NA, NA, NA, qdss_tracedata_b, NA, NA, NA, NA, NA),
95162306a36Sopenharmony_ci	PINGROUP(38, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA),
95262306a36Sopenharmony_ci	PINGROUP(39, wcss_bt, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA),
95362306a36Sopenharmony_ci	PINGROUP(40, wcss_wlan2, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA),
95462306a36Sopenharmony_ci	PINGROUP(41, wcss_wlan1, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA),
95562306a36Sopenharmony_ci	PINGROUP(42, wcss_wlan0, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA),
95662306a36Sopenharmony_ci	PINGROUP(43, wcss_wlan, sdc3, NA, NA, qdss_tracedata_a, NA, NA, NA, NA),
95762306a36Sopenharmony_ci	PINGROUP(44, wcss_wlan, sdc3, NA, NA, NA, NA, NA, NA, NA),
95862306a36Sopenharmony_ci	PINGROUP(45, wcss_fm, NA, qdss_tracectl_a, NA, NA, NA, NA, NA, NA),
95962306a36Sopenharmony_ci	PINGROUP(46, wcss_fm, NA, NA, qdss_traceclk_a, NA, NA, NA, NA, NA),
96062306a36Sopenharmony_ci	PINGROUP(47, wcss_bt, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA),
96162306a36Sopenharmony_ci	PINGROUP(48, wcss_bt, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA),
96262306a36Sopenharmony_ci	PINGROUP(49, NA, NA, gcc_gp1_clk_a, NA, NA, NA, NA, NA, NA),
96362306a36Sopenharmony_ci	PINGROUP(50, NA, sd_write, gcc_gp2_clk_a, NA, NA, NA, NA, NA, NA),
96462306a36Sopenharmony_ci	PINGROUP(51, uim2_data, gcc_gp3_clk_a, NA, NA, NA, NA, NA, NA, NA),
96562306a36Sopenharmony_ci	PINGROUP(52, uim2_clk, NA, NA, NA, NA, NA, NA, NA, NA),
96662306a36Sopenharmony_ci	PINGROUP(53, uim2_reset, NA, NA, NA, NA, NA, NA, NA, NA),
96762306a36Sopenharmony_ci	PINGROUP(54, uim2_present, NA, NA, NA, NA, NA, NA, NA, NA),
96862306a36Sopenharmony_ci	PINGROUP(55, uim1_data, NA, NA, NA, NA, NA, NA, NA, NA),
96962306a36Sopenharmony_ci	PINGROUP(56, uim1_clk, NA, NA, NA, NA, NA, NA, NA, NA),
97062306a36Sopenharmony_ci	PINGROUP(57, uim1_reset, NA, NA, NA, NA, NA, NA, NA, NA),
97162306a36Sopenharmony_ci	PINGROUP(58, uim1_present, NA, NA, NA, NA, NA, NA, NA, NA),
97262306a36Sopenharmony_ci	PINGROUP(59, NA, NA, NA, NA, NA, NA, NA, NA, NA),
97362306a36Sopenharmony_ci	PINGROUP(60, NA, NA, NA, NA, NA, NA, NA, NA, NA),
97462306a36Sopenharmony_ci	PINGROUP(61, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA),
97562306a36Sopenharmony_ci	PINGROUP(62, sec_mi2s_mclk_a, pri_mi2s_mclk_b, qdss_tracedata_a, NA, NA, NA, NA, NA, NA),
97662306a36Sopenharmony_ci	PINGROUP(63, NA, NA, NA, NA, NA, NA, NA, NA, NA),
97762306a36Sopenharmony_ci	PINGROUP(64, NA, NA, NA, NA, NA, NA, NA, NA, NA),
97862306a36Sopenharmony_ci	PINGROUP(65, NA, NA, NA, NA, NA, NA, NA, NA, NA),
97962306a36Sopenharmony_ci	PINGROUP(66, dmic0_clk, NA, NA, NA, NA, NA, NA, NA, NA),
98062306a36Sopenharmony_ci	PINGROUP(67, dmic0_data, NA, NA, NA, NA, NA, NA, NA, NA),
98162306a36Sopenharmony_ci	PINGROUP(68, NA, NA, NA, NA, NA, NA, NA, NA, NA),
98262306a36Sopenharmony_ci	PINGROUP(69, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA, NA),
98362306a36Sopenharmony_ci	PINGROUP(70, NA, NA, NA, NA, NA, NA, NA, NA, NA),
98462306a36Sopenharmony_ci	PINGROUP(71, NA, NA, NA, NA, NA, NA, NA, NA, NA),
98562306a36Sopenharmony_ci	PINGROUP(72, NA, NA, NA, NA, NA, NA, NA, NA, NA),
98662306a36Sopenharmony_ci	PINGROUP(73, NA, NA, NA, NA, NA, NA, NA, NA, NA),
98762306a36Sopenharmony_ci	PINGROUP(74, NA, NA, NA, NA, NA, NA, NA, NA, NA),
98862306a36Sopenharmony_ci	PINGROUP(75, NA, NA, NA, NA, NA, NA, NA, NA, NA),
98962306a36Sopenharmony_ci	PINGROUP(76, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99062306a36Sopenharmony_ci	PINGROUP(77, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99162306a36Sopenharmony_ci	PINGROUP(78, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99262306a36Sopenharmony_ci	PINGROUP(79, NA, ssbi_wtr1, NA, NA, NA, NA, NA, NA, NA),
99362306a36Sopenharmony_ci	PINGROUP(80, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99462306a36Sopenharmony_ci	PINGROUP(81, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99562306a36Sopenharmony_ci	PINGROUP(82, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99662306a36Sopenharmony_ci	PINGROUP(83, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99762306a36Sopenharmony_ci	PINGROUP(84, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99862306a36Sopenharmony_ci	PINGROUP(85, NA, NA, NA, NA, NA, NA, NA, NA, NA),
99962306a36Sopenharmony_ci	PINGROUP(86, NA, NA, NA, NA, NA, NA, NA, NA, NA),
100062306a36Sopenharmony_ci	PINGROUP(87, NA, NA, NA, NA, NA, NA, NA, NA, NA),
100162306a36Sopenharmony_ci	PINGROUP(88, NA, NA, NA, NA, NA, NA, NA, NA, NA),
100262306a36Sopenharmony_ci	PINGROUP(89, NA, NA, NA, NA, NA, NA, NA, NA, NA),
100362306a36Sopenharmony_ci	PINGROUP(90, NA, NA, NA, NA, NA, NA, NA, NA, NA),
100462306a36Sopenharmony_ci	PINGROUP(91, NA, NA, NA, NA, NA, NA, NA, NA, NA),
100562306a36Sopenharmony_ci	PINGROUP(92, NA, NA, pa_indicator, NA, NA, NA, NA, NA, NA),
100662306a36Sopenharmony_ci	PINGROUP(93, NA, modem_tsync, NA, NA, NA, NA, NA, NA, NA),
100762306a36Sopenharmony_ci	PINGROUP(94, NA, ssbi_wtr1, NA, NA, NA, NA, NA, NA, NA),
100862306a36Sopenharmony_ci	PINGROUP(95, NA, gsm1_tx, NA, NA, NA, NA, NA, NA, NA),
100962306a36Sopenharmony_ci	PINGROUP(96, NA, NA, NA, NA, NA, NA, NA, NA, NA),
101062306a36Sopenharmony_ci	PINGROUP(97, NA, NA, NA, NA, NA, NA, NA, NA, NA),
101162306a36Sopenharmony_ci	PINGROUP(98, NA, NA, NA, NA, NA, NA, NA, NA, NA),
101262306a36Sopenharmony_ci	PINGROUP(99, gsm0_tx, NA, NA, NA, NA, NA, NA, NA, NA),
101362306a36Sopenharmony_ci	PINGROUP(100, NA, NA, NA, NA, NA, NA, NA, NA, NA),
101462306a36Sopenharmony_ci	PINGROUP(101, blsp1_spi, NA, NA, NA, NA, NA, NA, NA, NA),
101562306a36Sopenharmony_ci	PINGROUP(102, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
101662306a36Sopenharmony_ci	PINGROUP(103, cci1_i2c, NA, NA, NA, NA, NA, NA, NA, NA),
101762306a36Sopenharmony_ci	PINGROUP(104, cci1_i2c, NA, NA, NA, NA, NA, NA, NA, NA),
101862306a36Sopenharmony_ci	PINGROUP(105, sec_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA),
101962306a36Sopenharmony_ci	PINGROUP(106, blsp3_spi, NA, NA, NA, NA, NA, NA, NA, NA),
102062306a36Sopenharmony_ci	PINGROUP(107, blsp3_spi, NA, NA, NA, NA, NA, NA, NA, NA),
102162306a36Sopenharmony_ci	PINGROUP(108, wsa_vi, NA, NA, NA, NA, NA, NA, NA, NA),
102262306a36Sopenharmony_ci	PINGROUP(109, wsa_vi, NA, NA, NA, NA, NA, NA, NA, NA),
102362306a36Sopenharmony_ci	PINGROUP(110, NA, NA, NA, NA,  NA, NA, NA, NA, NA),
102462306a36Sopenharmony_ci	PINGROUP(111, NA, NA, NA, NA, NA, NA, NA, NA, NA),
102562306a36Sopenharmony_ci	PINGROUP(112, NA, NA, NA, NA, NA, NA, NA, NA, NA),
102662306a36Sopenharmony_ci	PINGROUP(113, NA, NA, NA, NA, NA, NA, NA, NA, NA),
102762306a36Sopenharmony_ci	PINGROUP(114, NA, NA, NA, NA, NA, NA, NA, NA, NA),
102862306a36Sopenharmony_ci	PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA),
102962306a36Sopenharmony_ci	PINGROUP(116, pri_mi2s_mclk_c, cdc_pdm0, NA, NA, NA, qdss_tracedata_b, NA, NA, NA),
103062306a36Sopenharmony_ci	PINGROUP(117, lpass_slimbus, cdc_pdm0, NA, NA, NA, NA, NA, NA, NA),
103162306a36Sopenharmony_ci	PINGROUP(118, lpass_slimbus0, cdc_pdm0, NA, NA, NA, NA, NA, NA, NA),
103262306a36Sopenharmony_ci	PINGROUP(119, lpass_slimbus1, cdc_pdm0, NA, NA, NA, NA, NA, NA, NA),
103362306a36Sopenharmony_ci	PINGROUP(120, cdc_pdm0, NA, NA, NA, NA, NA, NA, qdss_tracedata_a, NA),
103462306a36Sopenharmony_ci	PINGROUP(121, cdc_pdm0, NA, NA, NA, NA, NA, NA, qdss_tracedata_a, NA),
103562306a36Sopenharmony_ci	PINGROUP(122, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
103662306a36Sopenharmony_ci	PINGROUP(123, pri_mi2s, m_voc, NA, NA, NA, NA, NA, NA, NA),
103762306a36Sopenharmony_ci	PINGROUP(124, pri_mi2s, m_voc, NA, NA, NA, NA, NA, NA, NA),
103862306a36Sopenharmony_ci	PINGROUP(125, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
103962306a36Sopenharmony_ci	PINGROUP(126, pri_mi2s_mclk_a, sec_mi2s_mclk_b, NA, NA, NA, NA, NA, NA, qdss_tracedata_b),
104062306a36Sopenharmony_ci	PINGROUP(127, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
104162306a36Sopenharmony_ci	PINGROUP(128, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA),
104262306a36Sopenharmony_ci	PINGROUP(129, qdss_tracedata_b, NA, NA, NA, NA, NA, NA, NA, NA),
104362306a36Sopenharmony_ci	PINGROUP(130, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA, NA),
104462306a36Sopenharmony_ci	PINGROUP(131, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA, NA),
104562306a36Sopenharmony_ci	PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA),
104662306a36Sopenharmony_ci	PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA),
104762306a36Sopenharmony_ci	PINGROUP(134, blsp_spi5, blsp_uart5, sec_mi2s, NA, NA, NA, NA, NA, NA),
104862306a36Sopenharmony_ci	PINGROUP(135, blsp_spi5, blsp_uart5, sec_mi2s, NA, NA, NA, NA, NA, NA),
104962306a36Sopenharmony_ci	PINGROUP(136, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA),
105062306a36Sopenharmony_ci	PINGROUP(137, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA),
105162306a36Sopenharmony_ci	PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA),
105262306a36Sopenharmony_ci	PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA),
105362306a36Sopenharmony_ci	PINGROUP(140, NA, NA, NA, NA, NA, NA, NA, NA, NA),
105462306a36Sopenharmony_ci	PINGROUP(141, NA, NA, NA, NA, NA, NA, NA, NA, NA),
105562306a36Sopenharmony_ci	PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA),
105662306a36Sopenharmony_ci	PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA),
105762306a36Sopenharmony_ci	PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA),
105862306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(sdc1_clk, 0x10a000, 13, 6),
105962306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(sdc1_cmd, 0x10a000, 11, 3),
106062306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(sdc1_data, 0x10a000, 9, 0),
106162306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(sdc1_rclk, 0x10a000, 15, 0),
106262306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(sdc2_clk, 0x109000, 14, 6),
106362306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(sdc2_cmd, 0x109000, 11, 3),
106462306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(sdc2_data, 0x109000, 9, 0),
106562306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(qdsd_clk, 0x19c000, 3, 0),
106662306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(qdsd_cmd, 0x19c000, 8, 5),
106762306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(qdsd_data0, 0x19c000, 13, 10),
106862306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(qdsd_data1, 0x19c000, 18, 15),
106962306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(qdsd_data2, 0x19c000, 23, 20),
107062306a36Sopenharmony_ci	SDC_QDSD_PINGROUP(qdsd_data3, 0x19c000, 28, 25),
107162306a36Sopenharmony_ci};
107262306a36Sopenharmony_ci
107362306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8976_pinctrl = {
107462306a36Sopenharmony_ci	.pins = msm8976_pins,
107562306a36Sopenharmony_ci	.npins = ARRAY_SIZE(msm8976_pins),
107662306a36Sopenharmony_ci	.functions = msm8976_functions,
107762306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(msm8976_functions),
107862306a36Sopenharmony_ci	.groups = msm8976_groups,
107962306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(msm8976_groups),
108062306a36Sopenharmony_ci	.ngpios = 145,
108162306a36Sopenharmony_ci};
108262306a36Sopenharmony_ci
108362306a36Sopenharmony_cistatic int msm8976_pinctrl_probe(struct platform_device *pdev)
108462306a36Sopenharmony_ci{
108562306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, &msm8976_pinctrl);
108662306a36Sopenharmony_ci}
108762306a36Sopenharmony_ci
108862306a36Sopenharmony_cistatic const struct of_device_id msm8976_pinctrl_of_match[] = {
108962306a36Sopenharmony_ci	{ .compatible = "qcom,msm8976-pinctrl", },
109062306a36Sopenharmony_ci	{ },
109162306a36Sopenharmony_ci};
109262306a36Sopenharmony_ci
109362306a36Sopenharmony_cistatic struct platform_driver msm8976_pinctrl_driver = {
109462306a36Sopenharmony_ci	.driver = {
109562306a36Sopenharmony_ci		.name = "msm8976-pinctrl",
109662306a36Sopenharmony_ci		.of_match_table = msm8976_pinctrl_of_match,
109762306a36Sopenharmony_ci	},
109862306a36Sopenharmony_ci	.probe = msm8976_pinctrl_probe,
109962306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
110062306a36Sopenharmony_ci};
110162306a36Sopenharmony_ci
110262306a36Sopenharmony_cistatic int __init msm8976_pinctrl_init(void)
110362306a36Sopenharmony_ci{
110462306a36Sopenharmony_ci	return platform_driver_register(&msm8976_pinctrl_driver);
110562306a36Sopenharmony_ci}
110662306a36Sopenharmony_ciarch_initcall(msm8976_pinctrl_init);
110762306a36Sopenharmony_ci
110862306a36Sopenharmony_cistatic void __exit msm8976_pinctrl_exit(void)
110962306a36Sopenharmony_ci{
111062306a36Sopenharmony_ci	platform_driver_unregister(&msm8976_pinctrl_driver);
111162306a36Sopenharmony_ci}
111262306a36Sopenharmony_cimodule_exit(msm8976_pinctrl_exit);
111362306a36Sopenharmony_ci
111462306a36Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm msm8976 pinctrl driver");
111562306a36Sopenharmony_ciMODULE_LICENSE("GPL v2");
111662306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8976_pinctrl_of_match);
1117