162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2014, Sony Mobile Communications AB.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#include <linux/module.h>
762306a36Sopenharmony_ci#include <linux/of.h>
862306a36Sopenharmony_ci#include <linux/platform_device.h>
962306a36Sopenharmony_ci#include <linux/pinctrl/pinmux.h>
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include "pinctrl-msm.h"
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_cistatic const struct pinctrl_pin_desc msm8960_pins[] = {
1462306a36Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
1562306a36Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
1662306a36Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
1762306a36Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
1862306a36Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
1962306a36Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
2062306a36Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
2162306a36Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
2262306a36Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
2362306a36Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
2462306a36Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
2562306a36Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
2662306a36Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
2762306a36Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
2862306a36Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
2962306a36Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
3062306a36Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
3162306a36Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
3262306a36Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
3362306a36Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
3462306a36Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
3562306a36Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
3662306a36Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
3762306a36Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
3862306a36Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
3962306a36Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
4062306a36Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
4162306a36Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
4262306a36Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
4362306a36Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
4462306a36Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
4562306a36Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
4662306a36Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
4762306a36Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
4862306a36Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
4962306a36Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
5062306a36Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
5162306a36Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
5262306a36Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
5362306a36Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
5462306a36Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
5562306a36Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
5662306a36Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
5762306a36Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
5862306a36Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
5962306a36Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
6062306a36Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
6162306a36Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
6262306a36Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
6362306a36Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
6462306a36Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
6562306a36Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
6662306a36Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
6762306a36Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
6862306a36Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
6962306a36Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
7062306a36Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
7162306a36Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
7262306a36Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
7362306a36Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
7462306a36Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
7562306a36Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
7662306a36Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
7762306a36Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
7862306a36Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
7962306a36Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
8062306a36Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
8162306a36Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
8262306a36Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
8362306a36Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
8462306a36Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
8562306a36Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
8662306a36Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
8762306a36Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
8862306a36Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
8962306a36Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
9062306a36Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
9162306a36Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
9262306a36Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
9362306a36Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
9462306a36Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
9562306a36Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
9662306a36Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
9762306a36Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
9862306a36Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
9962306a36Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
10062306a36Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
10162306a36Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
10262306a36Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
10362306a36Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
10462306a36Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
10562306a36Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
10662306a36Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
10762306a36Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
10862306a36Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
10962306a36Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
11062306a36Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
11162306a36Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
11262306a36Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
11362306a36Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
11462306a36Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
11562306a36Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
11662306a36Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
11762306a36Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
11862306a36Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
11962306a36Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
12062306a36Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
12162306a36Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
12262306a36Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
12362306a36Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
12462306a36Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
12562306a36Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
12662306a36Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
12762306a36Sopenharmony_ci	PINCTRL_PIN(113, "GPIO_113"),
12862306a36Sopenharmony_ci	PINCTRL_PIN(114, "GPIO_114"),
12962306a36Sopenharmony_ci	PINCTRL_PIN(115, "GPIO_115"),
13062306a36Sopenharmony_ci	PINCTRL_PIN(116, "GPIO_116"),
13162306a36Sopenharmony_ci	PINCTRL_PIN(117, "GPIO_117"),
13262306a36Sopenharmony_ci	PINCTRL_PIN(118, "GPIO_118"),
13362306a36Sopenharmony_ci	PINCTRL_PIN(119, "GPIO_119"),
13462306a36Sopenharmony_ci	PINCTRL_PIN(120, "GPIO_120"),
13562306a36Sopenharmony_ci	PINCTRL_PIN(121, "GPIO_121"),
13662306a36Sopenharmony_ci	PINCTRL_PIN(122, "GPIO_122"),
13762306a36Sopenharmony_ci	PINCTRL_PIN(123, "GPIO_123"),
13862306a36Sopenharmony_ci	PINCTRL_PIN(124, "GPIO_124"),
13962306a36Sopenharmony_ci	PINCTRL_PIN(125, "GPIO_125"),
14062306a36Sopenharmony_ci	PINCTRL_PIN(126, "GPIO_126"),
14162306a36Sopenharmony_ci	PINCTRL_PIN(127, "GPIO_127"),
14262306a36Sopenharmony_ci	PINCTRL_PIN(128, "GPIO_128"),
14362306a36Sopenharmony_ci	PINCTRL_PIN(129, "GPIO_129"),
14462306a36Sopenharmony_ci	PINCTRL_PIN(130, "GPIO_130"),
14562306a36Sopenharmony_ci	PINCTRL_PIN(131, "GPIO_131"),
14662306a36Sopenharmony_ci	PINCTRL_PIN(132, "GPIO_132"),
14762306a36Sopenharmony_ci	PINCTRL_PIN(133, "GPIO_133"),
14862306a36Sopenharmony_ci	PINCTRL_PIN(134, "GPIO_134"),
14962306a36Sopenharmony_ci	PINCTRL_PIN(135, "GPIO_135"),
15062306a36Sopenharmony_ci	PINCTRL_PIN(136, "GPIO_136"),
15162306a36Sopenharmony_ci	PINCTRL_PIN(137, "GPIO_137"),
15262306a36Sopenharmony_ci	PINCTRL_PIN(138, "GPIO_138"),
15362306a36Sopenharmony_ci	PINCTRL_PIN(139, "GPIO_139"),
15462306a36Sopenharmony_ci	PINCTRL_PIN(140, "GPIO_140"),
15562306a36Sopenharmony_ci	PINCTRL_PIN(141, "GPIO_141"),
15662306a36Sopenharmony_ci	PINCTRL_PIN(142, "GPIO_142"),
15762306a36Sopenharmony_ci	PINCTRL_PIN(143, "GPIO_143"),
15862306a36Sopenharmony_ci	PINCTRL_PIN(144, "GPIO_144"),
15962306a36Sopenharmony_ci	PINCTRL_PIN(145, "GPIO_145"),
16062306a36Sopenharmony_ci	PINCTRL_PIN(146, "GPIO_146"),
16162306a36Sopenharmony_ci	PINCTRL_PIN(147, "GPIO_147"),
16262306a36Sopenharmony_ci	PINCTRL_PIN(148, "GPIO_148"),
16362306a36Sopenharmony_ci	PINCTRL_PIN(149, "GPIO_149"),
16462306a36Sopenharmony_ci	PINCTRL_PIN(150, "GPIO_150"),
16562306a36Sopenharmony_ci	PINCTRL_PIN(151, "GPIO_151"),
16662306a36Sopenharmony_ci
16762306a36Sopenharmony_ci	PINCTRL_PIN(152, "SDC1_CLK"),
16862306a36Sopenharmony_ci	PINCTRL_PIN(153, "SDC1_CMD"),
16962306a36Sopenharmony_ci	PINCTRL_PIN(154, "SDC1_DATA"),
17062306a36Sopenharmony_ci	PINCTRL_PIN(155, "SDC3_CLK"),
17162306a36Sopenharmony_ci	PINCTRL_PIN(156, "SDC3_CMD"),
17262306a36Sopenharmony_ci	PINCTRL_PIN(157, "SDC3_DATA"),
17362306a36Sopenharmony_ci};
17462306a36Sopenharmony_ci
17562306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin }
17662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0);
17762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1);
17862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2);
17962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3);
18062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4);
18162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5);
18262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6);
18362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7);
18462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8);
18562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9);
18662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10);
18762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11);
18862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12);
18962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13);
19062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14);
19162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15);
19262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16);
19362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17);
19462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18);
19562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19);
19662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20);
19762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21);
19862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22);
19962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23);
20062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24);
20162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25);
20262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26);
20362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27);
20462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28);
20562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29);
20662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30);
20762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31);
20862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32);
20962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33);
21062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34);
21162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35);
21262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36);
21362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37);
21462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38);
21562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39);
21662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40);
21762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41);
21862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42);
21962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43);
22062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44);
22162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45);
22262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46);
22362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47);
22462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48);
22562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49);
22662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50);
22762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51);
22862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52);
22962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53);
23062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54);
23162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55);
23262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56);
23362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57);
23462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58);
23562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59);
23662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60);
23762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61);
23862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62);
23962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63);
24062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64);
24162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65);
24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66);
24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67);
24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68);
24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69);
24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70);
24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71);
24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72);
24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73);
25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74);
25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75);
25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76);
25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77);
25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78);
25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79);
25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80);
25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81);
25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82);
25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83);
26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84);
26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85);
26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86);
26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87);
26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88);
26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89);
26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90);
26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91);
26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92);
26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93);
27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94);
27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95);
27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96);
27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97);
27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98);
27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99);
27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100);
27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101);
27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102);
27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103);
28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104);
28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105);
28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106);
28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107);
28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108);
28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109);
28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110);
28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111);
28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112);
28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113);
29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114);
29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115);
29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116);
29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117);
29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118);
29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119);
29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120);
29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121);
29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122);
29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123);
30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124);
30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125);
30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126);
30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127);
30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128);
30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129);
30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130);
30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131);
30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132);
30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133);
31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134);
31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135);
31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136);
31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137);
31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138);
31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139);
31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140);
31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141);
31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142);
31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143);
32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144);
32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145);
32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(146);
32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(147);
32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(148);
32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(149);
32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(150);
32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(151);
32862306a36Sopenharmony_ci
32962306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 152 };
33062306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 153 };
33162306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 154 };
33262306a36Sopenharmony_cistatic const unsigned int sdc3_clk_pins[] = { 155 };
33362306a36Sopenharmony_cistatic const unsigned int sdc3_cmd_pins[] = { 156 };
33462306a36Sopenharmony_cistatic const unsigned int sdc3_data_pins[] = { 157 };
33562306a36Sopenharmony_ci
33662306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11) \
33762306a36Sopenharmony_ci	{						\
33862306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP("gpio" #id, 	\
33962306a36Sopenharmony_ci			gpio##id##_pins, 		\
34062306a36Sopenharmony_ci			ARRAY_SIZE(gpio##id##_pins)),	\
34162306a36Sopenharmony_ci		.funcs = (int[]){			\
34262306a36Sopenharmony_ci			msm_mux_gpio,			\
34362306a36Sopenharmony_ci			msm_mux_##f1,			\
34462306a36Sopenharmony_ci			msm_mux_##f2,			\
34562306a36Sopenharmony_ci			msm_mux_##f3,			\
34662306a36Sopenharmony_ci			msm_mux_##f4,			\
34762306a36Sopenharmony_ci			msm_mux_##f5,			\
34862306a36Sopenharmony_ci			msm_mux_##f6,			\
34962306a36Sopenharmony_ci			msm_mux_##f7,			\
35062306a36Sopenharmony_ci			msm_mux_##f8,			\
35162306a36Sopenharmony_ci			msm_mux_##f9,			\
35262306a36Sopenharmony_ci			msm_mux_##f10,			\
35362306a36Sopenharmony_ci			msm_mux_##f11			\
35462306a36Sopenharmony_ci		},					\
35562306a36Sopenharmony_ci		.nfuncs = 12,				\
35662306a36Sopenharmony_ci		.ctl_reg = 0x1000 + 0x10 * id,		\
35762306a36Sopenharmony_ci		.io_reg = 0x1004 + 0x10 * id,		\
35862306a36Sopenharmony_ci		.intr_cfg_reg = 0x1008 + 0x10 * id,	\
35962306a36Sopenharmony_ci		.intr_status_reg = 0x100c + 0x10 * id,	\
36062306a36Sopenharmony_ci		.intr_target_reg = 0x400 + 0x4 * id,	\
36162306a36Sopenharmony_ci		.mux_bit = 2,				\
36262306a36Sopenharmony_ci		.pull_bit = 0,				\
36362306a36Sopenharmony_ci		.drv_bit = 6,				\
36462306a36Sopenharmony_ci		.oe_bit = 9,				\
36562306a36Sopenharmony_ci		.in_bit = 0,				\
36662306a36Sopenharmony_ci		.out_bit = 1,				\
36762306a36Sopenharmony_ci		.intr_enable_bit = 0,			\
36862306a36Sopenharmony_ci		.intr_status_bit = 0,			\
36962306a36Sopenharmony_ci		.intr_ack_high = 1,			\
37062306a36Sopenharmony_ci		.intr_target_bit = 0,			\
37162306a36Sopenharmony_ci		.intr_target_kpss_val = 4,		\
37262306a36Sopenharmony_ci		.intr_raw_status_bit = 3,		\
37362306a36Sopenharmony_ci		.intr_polarity_bit = 1,			\
37462306a36Sopenharmony_ci		.intr_detection_bit = 2,		\
37562306a36Sopenharmony_ci		.intr_detection_width = 1,		\
37662306a36Sopenharmony_ci	}
37762306a36Sopenharmony_ci
37862306a36Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv)		\
37962306a36Sopenharmony_ci	{						\
38062306a36Sopenharmony_ci		.grp = PINCTRL_PINGROUP(#pg_name, 	\
38162306a36Sopenharmony_ci			pg_name##_pins, 		\
38262306a36Sopenharmony_ci			ARRAY_SIZE(pg_name##_pins)),	\
38362306a36Sopenharmony_ci		.ctl_reg = ctl,				\
38462306a36Sopenharmony_ci		.io_reg = 0,				\
38562306a36Sopenharmony_ci		.intr_cfg_reg = 0,			\
38662306a36Sopenharmony_ci		.intr_status_reg = 0,			\
38762306a36Sopenharmony_ci		.intr_target_reg = 0,			\
38862306a36Sopenharmony_ci		.mux_bit = -1,				\
38962306a36Sopenharmony_ci		.pull_bit = pull,			\
39062306a36Sopenharmony_ci		.drv_bit = drv,				\
39162306a36Sopenharmony_ci		.oe_bit = -1,				\
39262306a36Sopenharmony_ci		.in_bit = -1,				\
39362306a36Sopenharmony_ci		.out_bit = -1,				\
39462306a36Sopenharmony_ci		.intr_enable_bit = -1,			\
39562306a36Sopenharmony_ci		.intr_status_bit = -1,			\
39662306a36Sopenharmony_ci		.intr_target_bit = -1,			\
39762306a36Sopenharmony_ci		.intr_target_kpss_val = -1,		\
39862306a36Sopenharmony_ci		.intr_raw_status_bit = -1,		\
39962306a36Sopenharmony_ci		.intr_polarity_bit = -1,		\
40062306a36Sopenharmony_ci		.intr_detection_bit = -1,		\
40162306a36Sopenharmony_ci		.intr_detection_width = -1,		\
40262306a36Sopenharmony_ci	}
40362306a36Sopenharmony_ci
40462306a36Sopenharmony_cienum msm8960_functions {
40562306a36Sopenharmony_ci	msm_mux_audio_pcm,
40662306a36Sopenharmony_ci	msm_mux_bt,
40762306a36Sopenharmony_ci	msm_mux_cam_mclk0,
40862306a36Sopenharmony_ci	msm_mux_cam_mclk1,
40962306a36Sopenharmony_ci	msm_mux_cam_mclk2,
41062306a36Sopenharmony_ci	msm_mux_codec_mic_i2s,
41162306a36Sopenharmony_ci	msm_mux_codec_spkr_i2s,
41262306a36Sopenharmony_ci	msm_mux_ext_gps,
41362306a36Sopenharmony_ci	msm_mux_fm,
41462306a36Sopenharmony_ci	msm_mux_gps_blanking,
41562306a36Sopenharmony_ci	msm_mux_gps_pps_in,
41662306a36Sopenharmony_ci	msm_mux_gps_pps_out,
41762306a36Sopenharmony_ci	msm_mux_gp_clk_0a,
41862306a36Sopenharmony_ci	msm_mux_gp_clk_0b,
41962306a36Sopenharmony_ci	msm_mux_gp_clk_1a,
42062306a36Sopenharmony_ci	msm_mux_gp_clk_1b,
42162306a36Sopenharmony_ci	msm_mux_gp_clk_2a,
42262306a36Sopenharmony_ci	msm_mux_gp_clk_2b,
42362306a36Sopenharmony_ci	msm_mux_gp_mn,
42462306a36Sopenharmony_ci	msm_mux_gp_pdm_0a,
42562306a36Sopenharmony_ci	msm_mux_gp_pdm_0b,
42662306a36Sopenharmony_ci	msm_mux_gp_pdm_1a,
42762306a36Sopenharmony_ci	msm_mux_gp_pdm_1b,
42862306a36Sopenharmony_ci	msm_mux_gp_pdm_2a,
42962306a36Sopenharmony_ci	msm_mux_gp_pdm_2b,
43062306a36Sopenharmony_ci	msm_mux_gpio,
43162306a36Sopenharmony_ci	msm_mux_gsbi1,
43262306a36Sopenharmony_ci	msm_mux_gsbi1_spi_cs1_n,
43362306a36Sopenharmony_ci	msm_mux_gsbi1_spi_cs2a_n,
43462306a36Sopenharmony_ci	msm_mux_gsbi1_spi_cs2b_n,
43562306a36Sopenharmony_ci	msm_mux_gsbi1_spi_cs3_n,
43662306a36Sopenharmony_ci	msm_mux_gsbi2,
43762306a36Sopenharmony_ci	msm_mux_gsbi2_spi_cs1_n,
43862306a36Sopenharmony_ci	msm_mux_gsbi2_spi_cs2_n,
43962306a36Sopenharmony_ci	msm_mux_gsbi2_spi_cs3_n,
44062306a36Sopenharmony_ci	msm_mux_gsbi3,
44162306a36Sopenharmony_ci	msm_mux_gsbi4,
44262306a36Sopenharmony_ci	msm_mux_gsbi4_3d_cam_i2c_l,
44362306a36Sopenharmony_ci	msm_mux_gsbi4_3d_cam_i2c_r,
44462306a36Sopenharmony_ci	msm_mux_gsbi5,
44562306a36Sopenharmony_ci	msm_mux_gsbi5_3d_cam_i2c_l,
44662306a36Sopenharmony_ci	msm_mux_gsbi5_3d_cam_i2c_r,
44762306a36Sopenharmony_ci	msm_mux_gsbi6,
44862306a36Sopenharmony_ci	msm_mux_gsbi7,
44962306a36Sopenharmony_ci	msm_mux_gsbi8,
45062306a36Sopenharmony_ci	msm_mux_gsbi9,
45162306a36Sopenharmony_ci	msm_mux_gsbi10,
45262306a36Sopenharmony_ci	msm_mux_gsbi11,
45362306a36Sopenharmony_ci	msm_mux_gsbi11_spi_cs1a_n,
45462306a36Sopenharmony_ci	msm_mux_gsbi11_spi_cs1b_n,
45562306a36Sopenharmony_ci	msm_mux_gsbi11_spi_cs2a_n,
45662306a36Sopenharmony_ci	msm_mux_gsbi11_spi_cs2b_n,
45762306a36Sopenharmony_ci	msm_mux_gsbi11_spi_cs3_n,
45862306a36Sopenharmony_ci	msm_mux_gsbi12,
45962306a36Sopenharmony_ci	msm_mux_hdmi_cec,
46062306a36Sopenharmony_ci	msm_mux_hdmi_ddc_clock,
46162306a36Sopenharmony_ci	msm_mux_hdmi_ddc_data,
46262306a36Sopenharmony_ci	msm_mux_hdmi_hot_plug_detect,
46362306a36Sopenharmony_ci	msm_mux_hsic,
46462306a36Sopenharmony_ci	msm_mux_mdp_vsync,
46562306a36Sopenharmony_ci	msm_mux_mi2s,
46662306a36Sopenharmony_ci	msm_mux_mic_i2s,
46762306a36Sopenharmony_ci	msm_mux_pmb_clk,
46862306a36Sopenharmony_ci	msm_mux_pmb_ext_ctrl,
46962306a36Sopenharmony_ci	msm_mux_ps_hold,
47062306a36Sopenharmony_ci	msm_mux_rpm_wdog,
47162306a36Sopenharmony_ci	msm_mux_sdc2,
47262306a36Sopenharmony_ci	msm_mux_sdc4,
47362306a36Sopenharmony_ci	msm_mux_sdc5,
47462306a36Sopenharmony_ci	msm_mux_slimbus1,
47562306a36Sopenharmony_ci	msm_mux_slimbus2,
47662306a36Sopenharmony_ci	msm_mux_spkr_i2s,
47762306a36Sopenharmony_ci	msm_mux_ssbi1,
47862306a36Sopenharmony_ci	msm_mux_ssbi2,
47962306a36Sopenharmony_ci	msm_mux_ssbi_ext_gps,
48062306a36Sopenharmony_ci	msm_mux_ssbi_pmic2,
48162306a36Sopenharmony_ci	msm_mux_ssbi_qpa1,
48262306a36Sopenharmony_ci	msm_mux_ssbi_ts,
48362306a36Sopenharmony_ci	msm_mux_tsif1,
48462306a36Sopenharmony_ci	msm_mux_tsif2,
48562306a36Sopenharmony_ci	msm_mux_ts_eoc,
48662306a36Sopenharmony_ci	msm_mux_usb_fs1,
48762306a36Sopenharmony_ci	msm_mux_usb_fs1_oe,
48862306a36Sopenharmony_ci	msm_mux_usb_fs1_oe_n,
48962306a36Sopenharmony_ci	msm_mux_usb_fs2,
49062306a36Sopenharmony_ci	msm_mux_usb_fs2_oe,
49162306a36Sopenharmony_ci	msm_mux_usb_fs2_oe_n,
49262306a36Sopenharmony_ci	msm_mux_vfe_camif_timer1_a,
49362306a36Sopenharmony_ci	msm_mux_vfe_camif_timer1_b,
49462306a36Sopenharmony_ci	msm_mux_vfe_camif_timer2,
49562306a36Sopenharmony_ci	msm_mux_vfe_camif_timer3_a,
49662306a36Sopenharmony_ci	msm_mux_vfe_camif_timer3_b,
49762306a36Sopenharmony_ci	msm_mux_vfe_camif_timer4_a,
49862306a36Sopenharmony_ci	msm_mux_vfe_camif_timer4_b,
49962306a36Sopenharmony_ci	msm_mux_vfe_camif_timer4_c,
50062306a36Sopenharmony_ci	msm_mux_vfe_camif_timer5_a,
50162306a36Sopenharmony_ci	msm_mux_vfe_camif_timer5_b,
50262306a36Sopenharmony_ci	msm_mux_vfe_camif_timer6_a,
50362306a36Sopenharmony_ci	msm_mux_vfe_camif_timer6_b,
50462306a36Sopenharmony_ci	msm_mux_vfe_camif_timer6_c,
50562306a36Sopenharmony_ci	msm_mux_vfe_camif_timer7_a,
50662306a36Sopenharmony_ci	msm_mux_vfe_camif_timer7_b,
50762306a36Sopenharmony_ci	msm_mux_vfe_camif_timer7_c,
50862306a36Sopenharmony_ci	msm_mux_wlan,
50962306a36Sopenharmony_ci	msm_mux_NA,
51062306a36Sopenharmony_ci};
51162306a36Sopenharmony_ci
51262306a36Sopenharmony_cistatic const char * const audio_pcm_groups[] = {
51362306a36Sopenharmony_ci	"gpio63", "gpio64", "gpio65", "gpio66"
51462306a36Sopenharmony_ci};
51562306a36Sopenharmony_ci
51662306a36Sopenharmony_cistatic const char * const bt_groups[] = {
51762306a36Sopenharmony_ci	"gpio28", "gpio29", "gpio83"
51862306a36Sopenharmony_ci};
51962306a36Sopenharmony_ci
52062306a36Sopenharmony_cistatic const char * const cam_mclk0_groups[] = {
52162306a36Sopenharmony_ci	"gpio5"
52262306a36Sopenharmony_ci};
52362306a36Sopenharmony_ci
52462306a36Sopenharmony_cistatic const char * const cam_mclk1_groups[] = {
52562306a36Sopenharmony_ci	"gpio4"
52662306a36Sopenharmony_ci};
52762306a36Sopenharmony_ci
52862306a36Sopenharmony_cistatic const char * const cam_mclk2_groups[] = {
52962306a36Sopenharmony_ci	"gpio2"
53062306a36Sopenharmony_ci};
53162306a36Sopenharmony_ci
53262306a36Sopenharmony_cistatic const char * const codec_mic_i2s_groups[] = {
53362306a36Sopenharmony_ci	"gpio54", "gpio55", "gpio56", "gpio57", "gpio58"
53462306a36Sopenharmony_ci};
53562306a36Sopenharmony_ci
53662306a36Sopenharmony_cistatic const char * const codec_spkr_i2s_groups[] = {
53762306a36Sopenharmony_ci	"gpio59", "gpio60", "gpio61", "gpio62"
53862306a36Sopenharmony_ci};
53962306a36Sopenharmony_ci
54062306a36Sopenharmony_cistatic const char * const ext_gps_groups[] = {
54162306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25"
54262306a36Sopenharmony_ci};
54362306a36Sopenharmony_ci
54462306a36Sopenharmony_cistatic const char * const fm_groups[] = {
54562306a36Sopenharmony_ci	"gpio26", "gpio27"
54662306a36Sopenharmony_ci};
54762306a36Sopenharmony_ci
54862306a36Sopenharmony_cistatic const char * const gps_blanking_groups[] = {
54962306a36Sopenharmony_ci	"gpio137"
55062306a36Sopenharmony_ci};
55162306a36Sopenharmony_ci
55262306a36Sopenharmony_cistatic const char * const gps_pps_in_groups[] = {
55362306a36Sopenharmony_ci	"gpio37"
55462306a36Sopenharmony_ci};
55562306a36Sopenharmony_ci
55662306a36Sopenharmony_cistatic const char * const gps_pps_out_groups[] = {
55762306a36Sopenharmony_ci	"gpio37"
55862306a36Sopenharmony_ci};
55962306a36Sopenharmony_ci
56062306a36Sopenharmony_cistatic const char * const gp_clk_0a_groups[] = {
56162306a36Sopenharmony_ci	"gpio3"
56262306a36Sopenharmony_ci};
56362306a36Sopenharmony_ci
56462306a36Sopenharmony_cistatic const char * const gp_clk_0b_groups[] = {
56562306a36Sopenharmony_ci	"gpio54"
56662306a36Sopenharmony_ci};
56762306a36Sopenharmony_ci
56862306a36Sopenharmony_cistatic const char * const gp_clk_1a_groups[] = {
56962306a36Sopenharmony_ci	"gpio4"
57062306a36Sopenharmony_ci};
57162306a36Sopenharmony_ci
57262306a36Sopenharmony_cistatic const char * const gp_clk_1b_groups[] = {
57362306a36Sopenharmony_ci	"gpio70"
57462306a36Sopenharmony_ci};
57562306a36Sopenharmony_ci
57662306a36Sopenharmony_cistatic const char * const gp_clk_2a_groups[] = {
57762306a36Sopenharmony_ci	"gpio52"
57862306a36Sopenharmony_ci};
57962306a36Sopenharmony_ci
58062306a36Sopenharmony_cistatic const char * const gp_clk_2b_groups[] = {
58162306a36Sopenharmony_ci	"gpio37"
58262306a36Sopenharmony_ci};
58362306a36Sopenharmony_ci
58462306a36Sopenharmony_cistatic const char * const gp_mn_groups[] = {
58562306a36Sopenharmony_ci	"gpio2"
58662306a36Sopenharmony_ci};
58762306a36Sopenharmony_ci
58862306a36Sopenharmony_cistatic const char * const gp_pdm_0a_groups[] = {
58962306a36Sopenharmony_ci	"gpio58"
59062306a36Sopenharmony_ci};
59162306a36Sopenharmony_ci
59262306a36Sopenharmony_cistatic const char * const gp_pdm_0b_groups[] = {
59362306a36Sopenharmony_ci	"gpio39"
59462306a36Sopenharmony_ci};
59562306a36Sopenharmony_ci
59662306a36Sopenharmony_cistatic const char * const gp_pdm_1a_groups[] = {
59762306a36Sopenharmony_ci	"gpio94"
59862306a36Sopenharmony_ci};
59962306a36Sopenharmony_ci
60062306a36Sopenharmony_cistatic const char * const gp_pdm_1b_groups[] = {
60162306a36Sopenharmony_ci	"gpio64"
60262306a36Sopenharmony_ci};
60362306a36Sopenharmony_ci
60462306a36Sopenharmony_cistatic const char * const gp_pdm_2a_groups[] = {
60562306a36Sopenharmony_ci	"gpio69"
60662306a36Sopenharmony_ci};
60762306a36Sopenharmony_ci
60862306a36Sopenharmony_cistatic const char * const gp_pdm_2b_groups[] = {
60962306a36Sopenharmony_ci	"gpio53"
61062306a36Sopenharmony_ci};
61162306a36Sopenharmony_ci
61262306a36Sopenharmony_cistatic const char * const gpio_groups[] = {
61362306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
61462306a36Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
61562306a36Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
61662306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
61762306a36Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
61862306a36Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
61962306a36Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
62062306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
62162306a36Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
62262306a36Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
62362306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
62462306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
62562306a36Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
62662306a36Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
62762306a36Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
62862306a36Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
62962306a36Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
63062306a36Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
63162306a36Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
63262306a36Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
63362306a36Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
63462306a36Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
63562306a36Sopenharmony_ci	"gpio147", "gpio148", "gpio149", "gpio150", "gpio151"
63662306a36Sopenharmony_ci};
63762306a36Sopenharmony_ci
63862306a36Sopenharmony_cistatic const char * const gsbi1_groups[] = {
63962306a36Sopenharmony_ci	"gpio6", "gpio7", "gpio8", "gpio9"
64062306a36Sopenharmony_ci};
64162306a36Sopenharmony_ci
64262306a36Sopenharmony_cistatic const char * const gsbi1_spi_cs1_n_groups[] = {
64362306a36Sopenharmony_ci	"gpio14"
64462306a36Sopenharmony_ci};
64562306a36Sopenharmony_ci
64662306a36Sopenharmony_cistatic const char * const gsbi1_spi_cs2a_n_groups[] = {
64762306a36Sopenharmony_ci	"gpio15"
64862306a36Sopenharmony_ci};
64962306a36Sopenharmony_ci
65062306a36Sopenharmony_cistatic const char * const gsbi1_spi_cs2b_n_groups[] = {
65162306a36Sopenharmony_ci	"gpio17"
65262306a36Sopenharmony_ci};
65362306a36Sopenharmony_ci
65462306a36Sopenharmony_cistatic const char * const gsbi1_spi_cs3_n_groups[] = {
65562306a36Sopenharmony_ci	"gpio16"
65662306a36Sopenharmony_ci};
65762306a36Sopenharmony_ci
65862306a36Sopenharmony_cistatic const char * const gsbi2_groups[] = {
65962306a36Sopenharmony_ci	"gpio10", "gpio11", "gpio12", "gpio13"
66062306a36Sopenharmony_ci};
66162306a36Sopenharmony_ci
66262306a36Sopenharmony_cistatic const char * const gsbi2_spi_cs1_n_groups[] = {
66362306a36Sopenharmony_ci	"gpio52"
66462306a36Sopenharmony_ci};
66562306a36Sopenharmony_ci
66662306a36Sopenharmony_cistatic const char * const gsbi2_spi_cs2_n_groups[] = {
66762306a36Sopenharmony_ci	"gpio68"
66862306a36Sopenharmony_ci};
66962306a36Sopenharmony_ci
67062306a36Sopenharmony_cistatic const char * const gsbi2_spi_cs3_n_groups[] = {
67162306a36Sopenharmony_ci	"gpio56"
67262306a36Sopenharmony_ci};
67362306a36Sopenharmony_ci
67462306a36Sopenharmony_cistatic const char * const gsbi3_groups[] = {
67562306a36Sopenharmony_ci	"gpio14", "gpio15", "gpio16", "gpio17"
67662306a36Sopenharmony_ci};
67762306a36Sopenharmony_ci
67862306a36Sopenharmony_cistatic const char * const gsbi4_groups[] = {
67962306a36Sopenharmony_ci	"gpio18", "gpio19", "gpio20", "gpio21"
68062306a36Sopenharmony_ci};
68162306a36Sopenharmony_ci
68262306a36Sopenharmony_cistatic const char * const gsbi4_3d_cam_i2c_l_groups[] = {
68362306a36Sopenharmony_ci	"gpio18", "gpio19"
68462306a36Sopenharmony_ci};
68562306a36Sopenharmony_ci
68662306a36Sopenharmony_cistatic const char * const gsbi4_3d_cam_i2c_r_groups[] = {
68762306a36Sopenharmony_ci	"gpio20", "gpio21"
68862306a36Sopenharmony_ci};
68962306a36Sopenharmony_ci
69062306a36Sopenharmony_cistatic const char * const gsbi5_groups[] = {
69162306a36Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25"
69262306a36Sopenharmony_ci};
69362306a36Sopenharmony_ci
69462306a36Sopenharmony_cistatic const char * const gsbi5_3d_cam_i2c_l_groups[] = {
69562306a36Sopenharmony_ci	"gpio22", "gpio23"
69662306a36Sopenharmony_ci};
69762306a36Sopenharmony_ci
69862306a36Sopenharmony_cistatic const char * const gsbi5_3d_cam_i2c_r_groups[] = {
69962306a36Sopenharmony_ci	"gpio24", "gpio25"
70062306a36Sopenharmony_ci};
70162306a36Sopenharmony_ci
70262306a36Sopenharmony_cistatic const char * const gsbi6_groups[] = {
70362306a36Sopenharmony_ci	"gpio26", "gpio27", "gpio28", "gpio29"
70462306a36Sopenharmony_ci};
70562306a36Sopenharmony_ci
70662306a36Sopenharmony_cistatic const char * const gsbi7_groups[] = {
70762306a36Sopenharmony_ci	"gpio30", "gpio31", "gpio32", "gpio33"
70862306a36Sopenharmony_ci};
70962306a36Sopenharmony_ci
71062306a36Sopenharmony_cistatic const char * const gsbi8_groups[] = {
71162306a36Sopenharmony_ci	"gpio34", "gpio35", "gpio36", "gpio37"
71262306a36Sopenharmony_ci};
71362306a36Sopenharmony_ci
71462306a36Sopenharmony_cistatic const char * const gsbi9_groups[] = {
71562306a36Sopenharmony_ci	"gpio93", "gpio94", "gpio95", "gpio96"
71662306a36Sopenharmony_ci};
71762306a36Sopenharmony_ci
71862306a36Sopenharmony_cistatic const char * const gsbi10_groups[] = {
71962306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74"
72062306a36Sopenharmony_ci};
72162306a36Sopenharmony_ci
72262306a36Sopenharmony_cistatic const char * const gsbi11_groups[] = {
72362306a36Sopenharmony_ci	"gpio38", "gpio39", "gpio40", "gpio41"
72462306a36Sopenharmony_ci};
72562306a36Sopenharmony_ci
72662306a36Sopenharmony_cistatic const char * const gsbi11_spi_cs1a_n_groups[] = {
72762306a36Sopenharmony_ci	"gpio36"
72862306a36Sopenharmony_ci};
72962306a36Sopenharmony_ci
73062306a36Sopenharmony_cistatic const char * const gsbi11_spi_cs1b_n_groups[] = {
73162306a36Sopenharmony_ci	"gpio18"
73262306a36Sopenharmony_ci};
73362306a36Sopenharmony_ci
73462306a36Sopenharmony_cistatic const char * const gsbi11_spi_cs2a_n_groups[] = {
73562306a36Sopenharmony_ci	"gpio37"
73662306a36Sopenharmony_ci};
73762306a36Sopenharmony_ci
73862306a36Sopenharmony_cistatic const char * const gsbi11_spi_cs2b_n_groups[] = {
73962306a36Sopenharmony_ci	"gpio19"
74062306a36Sopenharmony_ci};
74162306a36Sopenharmony_ci
74262306a36Sopenharmony_cistatic const char * const gsbi11_spi_cs3_n_groups[] = {
74362306a36Sopenharmony_ci	"gpio76"
74462306a36Sopenharmony_ci};
74562306a36Sopenharmony_ci
74662306a36Sopenharmony_cistatic const char * const gsbi12_groups[] = {
74762306a36Sopenharmony_ci	"gpio42", "gpio43", "gpio44", "gpio45"
74862306a36Sopenharmony_ci};
74962306a36Sopenharmony_ci
75062306a36Sopenharmony_cistatic const char * const hdmi_cec_groups[] = {
75162306a36Sopenharmony_ci	"gpio99"
75262306a36Sopenharmony_ci};
75362306a36Sopenharmony_ci
75462306a36Sopenharmony_cistatic const char * const hdmi_ddc_clock_groups[] = {
75562306a36Sopenharmony_ci	"gpio100"
75662306a36Sopenharmony_ci};
75762306a36Sopenharmony_ci
75862306a36Sopenharmony_cistatic const char * const hdmi_ddc_data_groups[] = {
75962306a36Sopenharmony_ci	"gpio101"
76062306a36Sopenharmony_ci};
76162306a36Sopenharmony_ci
76262306a36Sopenharmony_cistatic const char * const hdmi_hot_plug_detect_groups[] = {
76362306a36Sopenharmony_ci	"gpio102"
76462306a36Sopenharmony_ci};
76562306a36Sopenharmony_ci
76662306a36Sopenharmony_cistatic const char * const hsic_groups[] = {
76762306a36Sopenharmony_ci	"gpio150", "gpio151"
76862306a36Sopenharmony_ci};
76962306a36Sopenharmony_ci
77062306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
77162306a36Sopenharmony_ci	"gpio0", "gpio1", "gpio19"
77262306a36Sopenharmony_ci};
77362306a36Sopenharmony_ci
77462306a36Sopenharmony_cistatic const char * const mi2s_groups[] = {
77562306a36Sopenharmony_ci	"gpio47", "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53"
77662306a36Sopenharmony_ci};
77762306a36Sopenharmony_ci
77862306a36Sopenharmony_cistatic const char * const mic_i2s_groups[] = {
77962306a36Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74"
78062306a36Sopenharmony_ci};
78162306a36Sopenharmony_ci
78262306a36Sopenharmony_cistatic const char * const pmb_clk_groups[] = {
78362306a36Sopenharmony_ci	"gpio21", "gpio86", "gpio112"
78462306a36Sopenharmony_ci};
78562306a36Sopenharmony_ci
78662306a36Sopenharmony_cistatic const char * const pmb_ext_ctrl_groups[] = {
78762306a36Sopenharmony_ci	"gpio4", "gpio5"
78862306a36Sopenharmony_ci};
78962306a36Sopenharmony_ci
79062306a36Sopenharmony_cistatic const char * const ps_hold_groups[] = {
79162306a36Sopenharmony_ci	"gpio108"
79262306a36Sopenharmony_ci};
79362306a36Sopenharmony_ci
79462306a36Sopenharmony_cistatic const char * const rpm_wdog_groups[] = {
79562306a36Sopenharmony_ci	"gpio12"
79662306a36Sopenharmony_ci};
79762306a36Sopenharmony_ci
79862306a36Sopenharmony_cistatic const char * const sdc2_groups[] = {
79962306a36Sopenharmony_ci	"gpio89", "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95",
80062306a36Sopenharmony_ci	"gpio96", "gpio97", "gpio98"
80162306a36Sopenharmony_ci};
80262306a36Sopenharmony_ci
80362306a36Sopenharmony_cistatic const char * const sdc4_groups[] = {
80462306a36Sopenharmony_ci	"gpio83", "gpio84", "gpio85", "gpio86", "gpio87", "gpio88"
80562306a36Sopenharmony_ci};
80662306a36Sopenharmony_ci
80762306a36Sopenharmony_cistatic const char * const sdc5_groups[] = {
80862306a36Sopenharmony_ci	"gpio77", "gpio78", "gpio79", "gpio80", "gpio81", "gpio82"
80962306a36Sopenharmony_ci};
81062306a36Sopenharmony_ci
81162306a36Sopenharmony_cistatic const char * const slimbus1_groups[] = {
81262306a36Sopenharmony_ci	"gpio50", "gpio51", "gpio60", "gpio61"
81362306a36Sopenharmony_ci};
81462306a36Sopenharmony_ci
81562306a36Sopenharmony_cistatic const char * const slimbus2_groups[] = {
81662306a36Sopenharmony_ci	"gpio42", "gpio43"
81762306a36Sopenharmony_ci};
81862306a36Sopenharmony_ci
81962306a36Sopenharmony_cistatic const char * const spkr_i2s_groups[] = {
82062306a36Sopenharmony_ci	"gpio67", "gpio68", "gpio69", "gpio70"
82162306a36Sopenharmony_ci};
82262306a36Sopenharmony_ci
82362306a36Sopenharmony_cistatic const char * const ssbi1_groups[] = {
82462306a36Sopenharmony_ci	"gpio141", "gpio143"
82562306a36Sopenharmony_ci};
82662306a36Sopenharmony_ci
82762306a36Sopenharmony_cistatic const char * const ssbi2_groups[] = {
82862306a36Sopenharmony_ci	"gpio140", "gpio142"
82962306a36Sopenharmony_ci};
83062306a36Sopenharmony_ci
83162306a36Sopenharmony_cistatic const char * const ssbi_ext_gps_groups[] = {
83262306a36Sopenharmony_ci	"gpio23"
83362306a36Sopenharmony_ci};
83462306a36Sopenharmony_ci
83562306a36Sopenharmony_cistatic const char * const ssbi_pmic2_groups[] = {
83662306a36Sopenharmony_ci	"gpio149"
83762306a36Sopenharmony_ci};
83862306a36Sopenharmony_ci
83962306a36Sopenharmony_cistatic const char * const ssbi_qpa1_groups[] = {
84062306a36Sopenharmony_ci	"gpio131"
84162306a36Sopenharmony_ci};
84262306a36Sopenharmony_ci
84362306a36Sopenharmony_cistatic const char * const ssbi_ts_groups[] = {
84462306a36Sopenharmony_ci	"gpio10"
84562306a36Sopenharmony_ci};
84662306a36Sopenharmony_ci
84762306a36Sopenharmony_cistatic const char * const tsif1_groups[] = {
84862306a36Sopenharmony_ci	"gpio75", "gpio76", "gpio77", "gpio82"
84962306a36Sopenharmony_ci};
85062306a36Sopenharmony_ci
85162306a36Sopenharmony_cistatic const char * const tsif2_groups[] = {
85262306a36Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81"
85362306a36Sopenharmony_ci};
85462306a36Sopenharmony_ci
85562306a36Sopenharmony_cistatic const char * const ts_eoc_groups[] = {
85662306a36Sopenharmony_ci	"gpio11"
85762306a36Sopenharmony_ci};
85862306a36Sopenharmony_ci
85962306a36Sopenharmony_cistatic const char * const usb_fs1_groups[] = {
86062306a36Sopenharmony_ci	"gpio32", "gpio33"
86162306a36Sopenharmony_ci};
86262306a36Sopenharmony_ci
86362306a36Sopenharmony_cistatic const char * const usb_fs1_oe_groups[] = {
86462306a36Sopenharmony_ci	"gpio31"
86562306a36Sopenharmony_ci};
86662306a36Sopenharmony_ci
86762306a36Sopenharmony_cistatic const char * const usb_fs1_oe_n_groups[] = {
86862306a36Sopenharmony_ci	"gpio31"
86962306a36Sopenharmony_ci};
87062306a36Sopenharmony_ci
87162306a36Sopenharmony_cistatic const char * const usb_fs2_groups[] = {
87262306a36Sopenharmony_ci	"gpio34", "gpio35"
87362306a36Sopenharmony_ci};
87462306a36Sopenharmony_ci
87562306a36Sopenharmony_cistatic const char * const usb_fs2_oe_groups[] = {
87662306a36Sopenharmony_ci	"gpio36"
87762306a36Sopenharmony_ci};
87862306a36Sopenharmony_ci
87962306a36Sopenharmony_cistatic const char * const usb_fs2_oe_n_groups[] = {
88062306a36Sopenharmony_ci	"gpio36"
88162306a36Sopenharmony_ci};
88262306a36Sopenharmony_ci
88362306a36Sopenharmony_cistatic const char * const vfe_camif_timer1_a_groups[] = {
88462306a36Sopenharmony_ci	"gpio2"
88562306a36Sopenharmony_ci};
88662306a36Sopenharmony_ci
88762306a36Sopenharmony_cistatic const char * const vfe_camif_timer1_b_groups[] = {
88862306a36Sopenharmony_ci	"gpio38"
88962306a36Sopenharmony_ci};
89062306a36Sopenharmony_ci
89162306a36Sopenharmony_cistatic const char * const vfe_camif_timer2_groups[] = {
89262306a36Sopenharmony_ci	"gpio3"
89362306a36Sopenharmony_ci};
89462306a36Sopenharmony_ci
89562306a36Sopenharmony_cistatic const char * const vfe_camif_timer3_a_groups[] = {
89662306a36Sopenharmony_ci	"gpio4"
89762306a36Sopenharmony_ci};
89862306a36Sopenharmony_ci
89962306a36Sopenharmony_cistatic const char * const vfe_camif_timer3_b_groups[] = {
90062306a36Sopenharmony_ci	"gpio151"
90162306a36Sopenharmony_ci};
90262306a36Sopenharmony_ci
90362306a36Sopenharmony_cistatic const char * const vfe_camif_timer4_a_groups[] = {
90462306a36Sopenharmony_ci	"gpio65"
90562306a36Sopenharmony_ci};
90662306a36Sopenharmony_ci
90762306a36Sopenharmony_cistatic const char * const vfe_camif_timer4_b_groups[] = {
90862306a36Sopenharmony_ci	"gpio150"
90962306a36Sopenharmony_ci};
91062306a36Sopenharmony_ci
91162306a36Sopenharmony_cistatic const char * const vfe_camif_timer4_c_groups[] = {
91262306a36Sopenharmony_ci	"gpio10"
91362306a36Sopenharmony_ci};
91462306a36Sopenharmony_ci
91562306a36Sopenharmony_cistatic const char * const vfe_camif_timer5_a_groups[] = {
91662306a36Sopenharmony_ci	"gpio66"
91762306a36Sopenharmony_ci};
91862306a36Sopenharmony_ci
91962306a36Sopenharmony_cistatic const char * const vfe_camif_timer5_b_groups[] = {
92062306a36Sopenharmony_ci	"gpio39"
92162306a36Sopenharmony_ci};
92262306a36Sopenharmony_ci
92362306a36Sopenharmony_cistatic const char * const vfe_camif_timer6_a_groups[] = {
92462306a36Sopenharmony_ci	"gpio71"
92562306a36Sopenharmony_ci};
92662306a36Sopenharmony_ci
92762306a36Sopenharmony_cistatic const char * const vfe_camif_timer6_b_groups[] = {
92862306a36Sopenharmony_ci	"gpio0"
92962306a36Sopenharmony_ci};
93062306a36Sopenharmony_ci
93162306a36Sopenharmony_cistatic const char * const vfe_camif_timer6_c_groups[] = {
93262306a36Sopenharmony_ci	"gpio18"
93362306a36Sopenharmony_ci};
93462306a36Sopenharmony_ci
93562306a36Sopenharmony_cistatic const char * const vfe_camif_timer7_a_groups[] = {
93662306a36Sopenharmony_ci	"gpio67"
93762306a36Sopenharmony_ci};
93862306a36Sopenharmony_ci
93962306a36Sopenharmony_cistatic const char * const vfe_camif_timer7_b_groups[] = {
94062306a36Sopenharmony_ci	"gpio1"
94162306a36Sopenharmony_ci};
94262306a36Sopenharmony_ci
94362306a36Sopenharmony_cistatic const char * const vfe_camif_timer7_c_groups[] = {
94462306a36Sopenharmony_ci	"gpio19"
94562306a36Sopenharmony_ci};
94662306a36Sopenharmony_ci
94762306a36Sopenharmony_cistatic const char * const wlan_groups[] = {
94862306a36Sopenharmony_ci	"gpio84", "gpio85", "gpio86", "gpio87", "gpio88"
94962306a36Sopenharmony_ci};
95062306a36Sopenharmony_ci
95162306a36Sopenharmony_cistatic const struct pinfunction msm8960_functions[] = {
95262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(audio_pcm),
95362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(bt),
95462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk0),
95562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk1),
95662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(cam_mclk2),
95762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(codec_mic_i2s),
95862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(codec_spkr_i2s),
95962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ext_gps),
96062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(fm),
96162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gps_blanking),
96262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gps_pps_in),
96362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gps_pps_out),
96462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_clk_0a),
96562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_clk_0b),
96662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_clk_1a),
96762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_clk_1b),
96862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_clk_2a),
96962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_clk_2b),
97062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_mn),
97162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm_0a),
97262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm_0b),
97362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm_1a),
97462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm_1b),
97562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm_2a),
97662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gp_pdm_2b),
97762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gpio),
97862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi1),
97962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi1_spi_cs1_n),
98062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi1_spi_cs2a_n),
98162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi1_spi_cs2b_n),
98262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi1_spi_cs3_n),
98362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi2),
98462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi2_spi_cs1_n),
98562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi2_spi_cs2_n),
98662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi2_spi_cs3_n),
98762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi3),
98862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi4),
98962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi4_3d_cam_i2c_l),
99062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi4_3d_cam_i2c_r),
99162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi5),
99262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi5_3d_cam_i2c_l),
99362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi5_3d_cam_i2c_r),
99462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi6),
99562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi7),
99662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi8),
99762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi9),
99862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi10),
99962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi11),
100062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi11_spi_cs1a_n),
100162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi11_spi_cs1b_n),
100262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi11_spi_cs2a_n),
100362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi11_spi_cs2b_n),
100462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi11_spi_cs3_n),
100562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(gsbi12),
100662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_cec),
100762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_ddc_clock),
100862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_ddc_data),
100962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hdmi_hot_plug_detect),
101062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(hsic),
101162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mdp_vsync),
101262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mi2s),
101362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(mic_i2s),
101462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pmb_clk),
101562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(pmb_ext_ctrl),
101662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ps_hold),
101762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(rpm_wdog),
101862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc2),
101962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc4),
102062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(sdc5),
102162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(slimbus1),
102262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(slimbus2),
102362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(spkr_i2s),
102462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi1),
102562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi2),
102662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi_ext_gps),
102762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi_pmic2),
102862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi_qpa1),
102962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ssbi_ts),
103062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsif1),
103162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(tsif2),
103262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(ts_eoc),
103362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_fs1),
103462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_fs1_oe),
103562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_fs1_oe_n),
103662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_fs2),
103762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_fs2_oe),
103862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(usb_fs2_oe_n),
103962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer1_a),
104062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer1_b),
104162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer2),
104262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer3_a),
104362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer3_b),
104462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer4_a),
104562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer4_b),
104662306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer4_c),
104762306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer5_a),
104862306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer5_b),
104962306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer6_a),
105062306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer6_b),
105162306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer6_c),
105262306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer7_a),
105362306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer7_b),
105462306a36Sopenharmony_ci	MSM_PIN_FUNCTION(vfe_camif_timer7_c),
105562306a36Sopenharmony_ci	MSM_PIN_FUNCTION(wlan),
105662306a36Sopenharmony_ci};
105762306a36Sopenharmony_ci
105862306a36Sopenharmony_cistatic const struct msm_pingroup msm8960_groups[] = {
105962306a36Sopenharmony_ci	PINGROUP(0, mdp_vsync, vfe_camif_timer6_b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106062306a36Sopenharmony_ci	PINGROUP(1, mdp_vsync, vfe_camif_timer7_b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106162306a36Sopenharmony_ci	PINGROUP(2, vfe_camif_timer1_a, gp_mn, NA, cam_mclk2, NA, NA, NA, NA, NA, NA, NA),
106262306a36Sopenharmony_ci	PINGROUP(3, vfe_camif_timer2, gp_clk_0a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106362306a36Sopenharmony_ci	PINGROUP(4, vfe_camif_timer3_a, cam_mclk1, gp_clk_1a, pmb_ext_ctrl, NA, NA, NA, NA, NA, NA, NA),
106462306a36Sopenharmony_ci	PINGROUP(5, cam_mclk0, pmb_ext_ctrl, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106562306a36Sopenharmony_ci	PINGROUP(6, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106662306a36Sopenharmony_ci	PINGROUP(7, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106762306a36Sopenharmony_ci	PINGROUP(8, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106862306a36Sopenharmony_ci	PINGROUP(9, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
106962306a36Sopenharmony_ci	PINGROUP(10, gsbi2, ssbi_ts, NA, vfe_camif_timer4_c, NA, NA, NA, NA, NA, NA, NA),
107062306a36Sopenharmony_ci	PINGROUP(11, gsbi2, ts_eoc, NA, NA, NA, NA, NA, NA, NA, NA, NA),
107162306a36Sopenharmony_ci	PINGROUP(12, gsbi2, rpm_wdog, NA, NA, NA, NA, NA, NA, NA, NA, NA),
107262306a36Sopenharmony_ci	PINGROUP(13, gsbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
107362306a36Sopenharmony_ci	PINGROUP(14, gsbi3, gsbi1_spi_cs1_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
107462306a36Sopenharmony_ci	PINGROUP(15, gsbi3, gsbi1_spi_cs2a_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
107562306a36Sopenharmony_ci	PINGROUP(16, gsbi3, gsbi1_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
107662306a36Sopenharmony_ci	PINGROUP(17, gsbi3, gsbi1_spi_cs2b_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
107762306a36Sopenharmony_ci	PINGROUP(18, gsbi4, gsbi11_spi_cs1b_n, NA, NA, gsbi4_3d_cam_i2c_l, vfe_camif_timer6_c, NA, NA, NA, NA, NA),
107862306a36Sopenharmony_ci	PINGROUP(19, gsbi4, gsbi11_spi_cs2b_n, NA, mdp_vsync, NA, gsbi4_3d_cam_i2c_l, vfe_camif_timer7_c, NA, NA, NA, NA),
107962306a36Sopenharmony_ci	PINGROUP(20, gsbi4, gsbi4_3d_cam_i2c_r, NA, NA, NA, NA, NA, NA, NA, NA, NA),
108062306a36Sopenharmony_ci	PINGROUP(21, gsbi4, pmb_clk, gsbi4_3d_cam_i2c_r, NA, NA, NA, NA, NA, NA, NA, NA),
108162306a36Sopenharmony_ci	PINGROUP(22, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_l, NA),
108262306a36Sopenharmony_ci	PINGROUP(23, gsbi5, ssbi_ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_l, NA),
108362306a36Sopenharmony_ci	PINGROUP(24, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_r, NA),
108462306a36Sopenharmony_ci	PINGROUP(25, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_r, NA),
108562306a36Sopenharmony_ci	PINGROUP(26, fm, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
108662306a36Sopenharmony_ci	PINGROUP(27, fm, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
108762306a36Sopenharmony_ci	PINGROUP(28, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
108862306a36Sopenharmony_ci	PINGROUP(29, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
108962306a36Sopenharmony_ci	PINGROUP(30, gsbi7, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
109062306a36Sopenharmony_ci	PINGROUP(31, gsbi7, usb_fs1_oe, usb_fs1_oe_n, NA, NA, NA, NA, NA, NA, NA, NA),
109162306a36Sopenharmony_ci	PINGROUP(32, gsbi7, usb_fs1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
109262306a36Sopenharmony_ci	PINGROUP(33, gsbi7, usb_fs1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
109362306a36Sopenharmony_ci	PINGROUP(34, gsbi8, usb_fs2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
109462306a36Sopenharmony_ci	PINGROUP(35, gsbi8, usb_fs2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
109562306a36Sopenharmony_ci	PINGROUP(36, gsbi8, usb_fs2_oe, usb_fs2_oe_n, gsbi11_spi_cs1a_n, NA, NA, NA, NA, NA, NA, NA),
109662306a36Sopenharmony_ci	PINGROUP(37, gsbi8, gps_pps_out, gps_pps_in, gsbi11_spi_cs2a_n, gp_clk_2b, NA, NA, NA, NA, NA, NA),
109762306a36Sopenharmony_ci	PINGROUP(38, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, vfe_camif_timer1_b, NA),
109862306a36Sopenharmony_ci	PINGROUP(39, gsbi11, gp_pdm_0b, NA, NA, NA, NA, NA, NA, NA, NA, vfe_camif_timer5_b),
109962306a36Sopenharmony_ci	PINGROUP(40, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110062306a36Sopenharmony_ci	PINGROUP(41, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110162306a36Sopenharmony_ci	PINGROUP(42, gsbi12, slimbus2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110262306a36Sopenharmony_ci	PINGROUP(43, gsbi12, slimbus2, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110362306a36Sopenharmony_ci	PINGROUP(44, gsbi12, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110462306a36Sopenharmony_ci	PINGROUP(45, gsbi12, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110562306a36Sopenharmony_ci	PINGROUP(46, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110662306a36Sopenharmony_ci	PINGROUP(47, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110762306a36Sopenharmony_ci	PINGROUP(48, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110862306a36Sopenharmony_ci	PINGROUP(49, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
110962306a36Sopenharmony_ci	PINGROUP(50, mi2s, slimbus1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111062306a36Sopenharmony_ci	PINGROUP(51, mi2s, slimbus1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111162306a36Sopenharmony_ci	PINGROUP(52, mi2s, gp_clk_2a, gsbi2_spi_cs1_n, NA, NA, NA, NA, NA, NA, NA, NA),
111262306a36Sopenharmony_ci	PINGROUP(53, mi2s, gp_pdm_2b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111362306a36Sopenharmony_ci	PINGROUP(54, codec_mic_i2s, gp_clk_0b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111462306a36Sopenharmony_ci	PINGROUP(55, codec_mic_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111562306a36Sopenharmony_ci	PINGROUP(56, codec_mic_i2s, gsbi2_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111662306a36Sopenharmony_ci	PINGROUP(57, codec_mic_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111762306a36Sopenharmony_ci	PINGROUP(58, codec_mic_i2s, gp_pdm_0a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111862306a36Sopenharmony_ci	PINGROUP(59, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
111962306a36Sopenharmony_ci	PINGROUP(60, slimbus1, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112062306a36Sopenharmony_ci	PINGROUP(61, slimbus1, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112162306a36Sopenharmony_ci	PINGROUP(62, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112262306a36Sopenharmony_ci	PINGROUP(63, audio_pcm, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112362306a36Sopenharmony_ci	PINGROUP(64, audio_pcm, gp_pdm_1b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112462306a36Sopenharmony_ci	PINGROUP(65, audio_pcm, vfe_camif_timer4_a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112562306a36Sopenharmony_ci	PINGROUP(66, audio_pcm, vfe_camif_timer5_a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112662306a36Sopenharmony_ci	PINGROUP(67, spkr_i2s, vfe_camif_timer7_a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112762306a36Sopenharmony_ci	PINGROUP(68, spkr_i2s, gsbi2_spi_cs2_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112862306a36Sopenharmony_ci	PINGROUP(69, spkr_i2s, gp_pdm_2a, NA, NA, NA, NA, NA, NA, NA, NA, NA),
112962306a36Sopenharmony_ci	PINGROUP(70, spkr_i2s, gp_clk_1b, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113062306a36Sopenharmony_ci	PINGROUP(71, mic_i2s, gsbi10, vfe_camif_timer6_a, NA, NA, NA, NA, NA, NA, NA, NA),
113162306a36Sopenharmony_ci	PINGROUP(72, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113262306a36Sopenharmony_ci	PINGROUP(73, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113362306a36Sopenharmony_ci	PINGROUP(74, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113462306a36Sopenharmony_ci	PINGROUP(75, tsif1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113562306a36Sopenharmony_ci	PINGROUP(76, tsif1, gsbi11_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113662306a36Sopenharmony_ci	PINGROUP(77, tsif1, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113762306a36Sopenharmony_ci	PINGROUP(78, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113862306a36Sopenharmony_ci	PINGROUP(79, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
113962306a36Sopenharmony_ci	PINGROUP(80, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114062306a36Sopenharmony_ci	PINGROUP(81, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114162306a36Sopenharmony_ci	PINGROUP(82, tsif1, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114262306a36Sopenharmony_ci	PINGROUP(83, bt, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114362306a36Sopenharmony_ci	PINGROUP(84, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114462306a36Sopenharmony_ci	PINGROUP(85, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114562306a36Sopenharmony_ci	PINGROUP(86, wlan, sdc4, pmb_clk, NA, NA, NA, NA, NA, NA, NA, NA),
114662306a36Sopenharmony_ci	PINGROUP(87, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114762306a36Sopenharmony_ci	PINGROUP(88, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114862306a36Sopenharmony_ci	PINGROUP(89, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
114962306a36Sopenharmony_ci	PINGROUP(90, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115062306a36Sopenharmony_ci	PINGROUP(91, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115162306a36Sopenharmony_ci	PINGROUP(92, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115262306a36Sopenharmony_ci	PINGROUP(93, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115362306a36Sopenharmony_ci	PINGROUP(94, sdc2, gsbi9, gp_pdm_1a, NA, NA, NA, NA, NA, NA, NA, NA),
115462306a36Sopenharmony_ci	PINGROUP(95, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115562306a36Sopenharmony_ci	PINGROUP(96, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115662306a36Sopenharmony_ci	PINGROUP(97, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115762306a36Sopenharmony_ci	PINGROUP(98, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115862306a36Sopenharmony_ci	PINGROUP(99, hdmi_cec, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
115962306a36Sopenharmony_ci	PINGROUP(100, hdmi_ddc_clock, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116062306a36Sopenharmony_ci	PINGROUP(101, hdmi_ddc_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116162306a36Sopenharmony_ci	PINGROUP(102, hdmi_hot_plug_detect, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116262306a36Sopenharmony_ci	PINGROUP(103, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116362306a36Sopenharmony_ci	PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116462306a36Sopenharmony_ci	PINGROUP(105, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116562306a36Sopenharmony_ci	PINGROUP(106, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116662306a36Sopenharmony_ci	PINGROUP(107, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116762306a36Sopenharmony_ci	PINGROUP(108, ps_hold, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116862306a36Sopenharmony_ci	PINGROUP(109, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
116962306a36Sopenharmony_ci	PINGROUP(110, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117062306a36Sopenharmony_ci	PINGROUP(111, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117162306a36Sopenharmony_ci	PINGROUP(112, NA, pmb_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117262306a36Sopenharmony_ci	PINGROUP(113, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117362306a36Sopenharmony_ci	PINGROUP(114, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117462306a36Sopenharmony_ci	PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117562306a36Sopenharmony_ci	PINGROUP(116, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117662306a36Sopenharmony_ci	PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117762306a36Sopenharmony_ci	PINGROUP(118, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117862306a36Sopenharmony_ci	PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
117962306a36Sopenharmony_ci	PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118062306a36Sopenharmony_ci	PINGROUP(121, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118162306a36Sopenharmony_ci	PINGROUP(122, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118262306a36Sopenharmony_ci	PINGROUP(123, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118362306a36Sopenharmony_ci	PINGROUP(124, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118462306a36Sopenharmony_ci	PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118562306a36Sopenharmony_ci	PINGROUP(126, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118662306a36Sopenharmony_ci	PINGROUP(127, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118762306a36Sopenharmony_ci	PINGROUP(128, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118862306a36Sopenharmony_ci	PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
118962306a36Sopenharmony_ci	PINGROUP(130, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119062306a36Sopenharmony_ci	PINGROUP(131, NA, ssbi_qpa1, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119162306a36Sopenharmony_ci	PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119262306a36Sopenharmony_ci	PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119362306a36Sopenharmony_ci	PINGROUP(134, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119462306a36Sopenharmony_ci	PINGROUP(135, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119562306a36Sopenharmony_ci	PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119662306a36Sopenharmony_ci	PINGROUP(137, gps_blanking, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119762306a36Sopenharmony_ci	PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119862306a36Sopenharmony_ci	PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
119962306a36Sopenharmony_ci	PINGROUP(140, ssbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120062306a36Sopenharmony_ci	PINGROUP(141, ssbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120162306a36Sopenharmony_ci	PINGROUP(142, ssbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120262306a36Sopenharmony_ci	PINGROUP(143, ssbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120362306a36Sopenharmony_ci	PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120462306a36Sopenharmony_ci	PINGROUP(145, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120562306a36Sopenharmony_ci	PINGROUP(146, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120662306a36Sopenharmony_ci	PINGROUP(147, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120762306a36Sopenharmony_ci	PINGROUP(148, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120862306a36Sopenharmony_ci	PINGROUP(149, ssbi_pmic2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
120962306a36Sopenharmony_ci	PINGROUP(150, hsic, NA, vfe_camif_timer4_b, NA, NA, NA, NA, NA, NA, NA, NA),
121062306a36Sopenharmony_ci	PINGROUP(151, hsic, NA, vfe_camif_timer3_b, NA, NA, NA, NA, NA, NA, NA, NA),
121162306a36Sopenharmony_ci
121262306a36Sopenharmony_ci	SDC_PINGROUP(sdc1_clk, 0x20a0, 13, 6),
121362306a36Sopenharmony_ci	SDC_PINGROUP(sdc1_cmd, 0x20a0, 11, 3),
121462306a36Sopenharmony_ci	SDC_PINGROUP(sdc1_data, 0x20a0, 9, 0),
121562306a36Sopenharmony_ci
121662306a36Sopenharmony_ci	SDC_PINGROUP(sdc3_clk, 0x20a4, 14, 6),
121762306a36Sopenharmony_ci	SDC_PINGROUP(sdc3_cmd, 0x20a4, 11, 3),
121862306a36Sopenharmony_ci	SDC_PINGROUP(sdc3_data, 0x20a4, 9, 0),
121962306a36Sopenharmony_ci};
122062306a36Sopenharmony_ci
122162306a36Sopenharmony_ci#define NUM_GPIO_PINGROUPS 152
122262306a36Sopenharmony_ci
122362306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8960_pinctrl = {
122462306a36Sopenharmony_ci	.pins = msm8960_pins,
122562306a36Sopenharmony_ci	.npins = ARRAY_SIZE(msm8960_pins),
122662306a36Sopenharmony_ci	.functions = msm8960_functions,
122762306a36Sopenharmony_ci	.nfunctions = ARRAY_SIZE(msm8960_functions),
122862306a36Sopenharmony_ci	.groups = msm8960_groups,
122962306a36Sopenharmony_ci	.ngroups = ARRAY_SIZE(msm8960_groups),
123062306a36Sopenharmony_ci	.ngpios = NUM_GPIO_PINGROUPS,
123162306a36Sopenharmony_ci};
123262306a36Sopenharmony_ci
123362306a36Sopenharmony_cistatic int msm8960_pinctrl_probe(struct platform_device *pdev)
123462306a36Sopenharmony_ci{
123562306a36Sopenharmony_ci	return msm_pinctrl_probe(pdev, &msm8960_pinctrl);
123662306a36Sopenharmony_ci}
123762306a36Sopenharmony_ci
123862306a36Sopenharmony_cistatic const struct of_device_id msm8960_pinctrl_of_match[] = {
123962306a36Sopenharmony_ci	{ .compatible = "qcom,msm8960-pinctrl", },
124062306a36Sopenharmony_ci	{ },
124162306a36Sopenharmony_ci};
124262306a36Sopenharmony_ci
124362306a36Sopenharmony_cistatic struct platform_driver msm8960_pinctrl_driver = {
124462306a36Sopenharmony_ci	.driver = {
124562306a36Sopenharmony_ci		.name = "msm8960-pinctrl",
124662306a36Sopenharmony_ci		.of_match_table = msm8960_pinctrl_of_match,
124762306a36Sopenharmony_ci	},
124862306a36Sopenharmony_ci	.probe = msm8960_pinctrl_probe,
124962306a36Sopenharmony_ci	.remove = msm_pinctrl_remove,
125062306a36Sopenharmony_ci};
125162306a36Sopenharmony_ci
125262306a36Sopenharmony_cistatic int __init msm8960_pinctrl_init(void)
125362306a36Sopenharmony_ci{
125462306a36Sopenharmony_ci	return platform_driver_register(&msm8960_pinctrl_driver);
125562306a36Sopenharmony_ci}
125662306a36Sopenharmony_ciarch_initcall(msm8960_pinctrl_init);
125762306a36Sopenharmony_ci
125862306a36Sopenharmony_cistatic void __exit msm8960_pinctrl_exit(void)
125962306a36Sopenharmony_ci{
126062306a36Sopenharmony_ci	platform_driver_unregister(&msm8960_pinctrl_driver);
126162306a36Sopenharmony_ci}
126262306a36Sopenharmony_cimodule_exit(msm8960_pinctrl_exit);
126362306a36Sopenharmony_ci
126462306a36Sopenharmony_ciMODULE_AUTHOR("Bjorn Andersson <bjorn.andersson@sonymobile.com>");
126562306a36Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm MSM8960 pinctrl driver");
126662306a36Sopenharmony_ciMODULE_LICENSE("GPL v2");
126762306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8960_pinctrl_of_match);
1268