18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2015, Sony Mobile Communications AB.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/module.h>
78c2ecf20Sopenharmony_ci#include <linux/of.h>
88c2ecf20Sopenharmony_ci#include <linux/platform_device.h>
98c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include "pinctrl-msm.h"
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc msm8660_pins[] = {
148c2ecf20Sopenharmony_ci	PINCTRL_PIN(0, "GPIO_0"),
158c2ecf20Sopenharmony_ci	PINCTRL_PIN(1, "GPIO_1"),
168c2ecf20Sopenharmony_ci	PINCTRL_PIN(2, "GPIO_2"),
178c2ecf20Sopenharmony_ci	PINCTRL_PIN(3, "GPIO_3"),
188c2ecf20Sopenharmony_ci	PINCTRL_PIN(4, "GPIO_4"),
198c2ecf20Sopenharmony_ci	PINCTRL_PIN(5, "GPIO_5"),
208c2ecf20Sopenharmony_ci	PINCTRL_PIN(6, "GPIO_6"),
218c2ecf20Sopenharmony_ci	PINCTRL_PIN(7, "GPIO_7"),
228c2ecf20Sopenharmony_ci	PINCTRL_PIN(8, "GPIO_8"),
238c2ecf20Sopenharmony_ci	PINCTRL_PIN(9, "GPIO_9"),
248c2ecf20Sopenharmony_ci	PINCTRL_PIN(10, "GPIO_10"),
258c2ecf20Sopenharmony_ci	PINCTRL_PIN(11, "GPIO_11"),
268c2ecf20Sopenharmony_ci	PINCTRL_PIN(12, "GPIO_12"),
278c2ecf20Sopenharmony_ci	PINCTRL_PIN(13, "GPIO_13"),
288c2ecf20Sopenharmony_ci	PINCTRL_PIN(14, "GPIO_14"),
298c2ecf20Sopenharmony_ci	PINCTRL_PIN(15, "GPIO_15"),
308c2ecf20Sopenharmony_ci	PINCTRL_PIN(16, "GPIO_16"),
318c2ecf20Sopenharmony_ci	PINCTRL_PIN(17, "GPIO_17"),
328c2ecf20Sopenharmony_ci	PINCTRL_PIN(18, "GPIO_18"),
338c2ecf20Sopenharmony_ci	PINCTRL_PIN(19, "GPIO_19"),
348c2ecf20Sopenharmony_ci	PINCTRL_PIN(20, "GPIO_20"),
358c2ecf20Sopenharmony_ci	PINCTRL_PIN(21, "GPIO_21"),
368c2ecf20Sopenharmony_ci	PINCTRL_PIN(22, "GPIO_22"),
378c2ecf20Sopenharmony_ci	PINCTRL_PIN(23, "GPIO_23"),
388c2ecf20Sopenharmony_ci	PINCTRL_PIN(24, "GPIO_24"),
398c2ecf20Sopenharmony_ci	PINCTRL_PIN(25, "GPIO_25"),
408c2ecf20Sopenharmony_ci	PINCTRL_PIN(26, "GPIO_26"),
418c2ecf20Sopenharmony_ci	PINCTRL_PIN(27, "GPIO_27"),
428c2ecf20Sopenharmony_ci	PINCTRL_PIN(28, "GPIO_28"),
438c2ecf20Sopenharmony_ci	PINCTRL_PIN(29, "GPIO_29"),
448c2ecf20Sopenharmony_ci	PINCTRL_PIN(30, "GPIO_30"),
458c2ecf20Sopenharmony_ci	PINCTRL_PIN(31, "GPIO_31"),
468c2ecf20Sopenharmony_ci	PINCTRL_PIN(32, "GPIO_32"),
478c2ecf20Sopenharmony_ci	PINCTRL_PIN(33, "GPIO_33"),
488c2ecf20Sopenharmony_ci	PINCTRL_PIN(34, "GPIO_34"),
498c2ecf20Sopenharmony_ci	PINCTRL_PIN(35, "GPIO_35"),
508c2ecf20Sopenharmony_ci	PINCTRL_PIN(36, "GPIO_36"),
518c2ecf20Sopenharmony_ci	PINCTRL_PIN(37, "GPIO_37"),
528c2ecf20Sopenharmony_ci	PINCTRL_PIN(38, "GPIO_38"),
538c2ecf20Sopenharmony_ci	PINCTRL_PIN(39, "GPIO_39"),
548c2ecf20Sopenharmony_ci	PINCTRL_PIN(40, "GPIO_40"),
558c2ecf20Sopenharmony_ci	PINCTRL_PIN(41, "GPIO_41"),
568c2ecf20Sopenharmony_ci	PINCTRL_PIN(42, "GPIO_42"),
578c2ecf20Sopenharmony_ci	PINCTRL_PIN(43, "GPIO_43"),
588c2ecf20Sopenharmony_ci	PINCTRL_PIN(44, "GPIO_44"),
598c2ecf20Sopenharmony_ci	PINCTRL_PIN(45, "GPIO_45"),
608c2ecf20Sopenharmony_ci	PINCTRL_PIN(46, "GPIO_46"),
618c2ecf20Sopenharmony_ci	PINCTRL_PIN(47, "GPIO_47"),
628c2ecf20Sopenharmony_ci	PINCTRL_PIN(48, "GPIO_48"),
638c2ecf20Sopenharmony_ci	PINCTRL_PIN(49, "GPIO_49"),
648c2ecf20Sopenharmony_ci	PINCTRL_PIN(50, "GPIO_50"),
658c2ecf20Sopenharmony_ci	PINCTRL_PIN(51, "GPIO_51"),
668c2ecf20Sopenharmony_ci	PINCTRL_PIN(52, "GPIO_52"),
678c2ecf20Sopenharmony_ci	PINCTRL_PIN(53, "GPIO_53"),
688c2ecf20Sopenharmony_ci	PINCTRL_PIN(54, "GPIO_54"),
698c2ecf20Sopenharmony_ci	PINCTRL_PIN(55, "GPIO_55"),
708c2ecf20Sopenharmony_ci	PINCTRL_PIN(56, "GPIO_56"),
718c2ecf20Sopenharmony_ci	PINCTRL_PIN(57, "GPIO_57"),
728c2ecf20Sopenharmony_ci	PINCTRL_PIN(58, "GPIO_58"),
738c2ecf20Sopenharmony_ci	PINCTRL_PIN(59, "GPIO_59"),
748c2ecf20Sopenharmony_ci	PINCTRL_PIN(60, "GPIO_60"),
758c2ecf20Sopenharmony_ci	PINCTRL_PIN(61, "GPIO_61"),
768c2ecf20Sopenharmony_ci	PINCTRL_PIN(62, "GPIO_62"),
778c2ecf20Sopenharmony_ci	PINCTRL_PIN(63, "GPIO_63"),
788c2ecf20Sopenharmony_ci	PINCTRL_PIN(64, "GPIO_64"),
798c2ecf20Sopenharmony_ci	PINCTRL_PIN(65, "GPIO_65"),
808c2ecf20Sopenharmony_ci	PINCTRL_PIN(66, "GPIO_66"),
818c2ecf20Sopenharmony_ci	PINCTRL_PIN(67, "GPIO_67"),
828c2ecf20Sopenharmony_ci	PINCTRL_PIN(68, "GPIO_68"),
838c2ecf20Sopenharmony_ci	PINCTRL_PIN(69, "GPIO_69"),
848c2ecf20Sopenharmony_ci	PINCTRL_PIN(70, "GPIO_70"),
858c2ecf20Sopenharmony_ci	PINCTRL_PIN(71, "GPIO_71"),
868c2ecf20Sopenharmony_ci	PINCTRL_PIN(72, "GPIO_72"),
878c2ecf20Sopenharmony_ci	PINCTRL_PIN(73, "GPIO_73"),
888c2ecf20Sopenharmony_ci	PINCTRL_PIN(74, "GPIO_74"),
898c2ecf20Sopenharmony_ci	PINCTRL_PIN(75, "GPIO_75"),
908c2ecf20Sopenharmony_ci	PINCTRL_PIN(76, "GPIO_76"),
918c2ecf20Sopenharmony_ci	PINCTRL_PIN(77, "GPIO_77"),
928c2ecf20Sopenharmony_ci	PINCTRL_PIN(78, "GPIO_78"),
938c2ecf20Sopenharmony_ci	PINCTRL_PIN(79, "GPIO_79"),
948c2ecf20Sopenharmony_ci	PINCTRL_PIN(80, "GPIO_80"),
958c2ecf20Sopenharmony_ci	PINCTRL_PIN(81, "GPIO_81"),
968c2ecf20Sopenharmony_ci	PINCTRL_PIN(82, "GPIO_82"),
978c2ecf20Sopenharmony_ci	PINCTRL_PIN(83, "GPIO_83"),
988c2ecf20Sopenharmony_ci	PINCTRL_PIN(84, "GPIO_84"),
998c2ecf20Sopenharmony_ci	PINCTRL_PIN(85, "GPIO_85"),
1008c2ecf20Sopenharmony_ci	PINCTRL_PIN(86, "GPIO_86"),
1018c2ecf20Sopenharmony_ci	PINCTRL_PIN(87, "GPIO_87"),
1028c2ecf20Sopenharmony_ci	PINCTRL_PIN(88, "GPIO_88"),
1038c2ecf20Sopenharmony_ci	PINCTRL_PIN(89, "GPIO_89"),
1048c2ecf20Sopenharmony_ci	PINCTRL_PIN(90, "GPIO_90"),
1058c2ecf20Sopenharmony_ci	PINCTRL_PIN(91, "GPIO_91"),
1068c2ecf20Sopenharmony_ci	PINCTRL_PIN(92, "GPIO_92"),
1078c2ecf20Sopenharmony_ci	PINCTRL_PIN(93, "GPIO_93"),
1088c2ecf20Sopenharmony_ci	PINCTRL_PIN(94, "GPIO_94"),
1098c2ecf20Sopenharmony_ci	PINCTRL_PIN(95, "GPIO_95"),
1108c2ecf20Sopenharmony_ci	PINCTRL_PIN(96, "GPIO_96"),
1118c2ecf20Sopenharmony_ci	PINCTRL_PIN(97, "GPIO_97"),
1128c2ecf20Sopenharmony_ci	PINCTRL_PIN(98, "GPIO_98"),
1138c2ecf20Sopenharmony_ci	PINCTRL_PIN(99, "GPIO_99"),
1148c2ecf20Sopenharmony_ci	PINCTRL_PIN(100, "GPIO_100"),
1158c2ecf20Sopenharmony_ci	PINCTRL_PIN(101, "GPIO_101"),
1168c2ecf20Sopenharmony_ci	PINCTRL_PIN(102, "GPIO_102"),
1178c2ecf20Sopenharmony_ci	PINCTRL_PIN(103, "GPIO_103"),
1188c2ecf20Sopenharmony_ci	PINCTRL_PIN(104, "GPIO_104"),
1198c2ecf20Sopenharmony_ci	PINCTRL_PIN(105, "GPIO_105"),
1208c2ecf20Sopenharmony_ci	PINCTRL_PIN(106, "GPIO_106"),
1218c2ecf20Sopenharmony_ci	PINCTRL_PIN(107, "GPIO_107"),
1228c2ecf20Sopenharmony_ci	PINCTRL_PIN(108, "GPIO_108"),
1238c2ecf20Sopenharmony_ci	PINCTRL_PIN(109, "GPIO_109"),
1248c2ecf20Sopenharmony_ci	PINCTRL_PIN(110, "GPIO_110"),
1258c2ecf20Sopenharmony_ci	PINCTRL_PIN(111, "GPIO_111"),
1268c2ecf20Sopenharmony_ci	PINCTRL_PIN(112, "GPIO_112"),
1278c2ecf20Sopenharmony_ci	PINCTRL_PIN(113, "GPIO_113"),
1288c2ecf20Sopenharmony_ci	PINCTRL_PIN(114, "GPIO_114"),
1298c2ecf20Sopenharmony_ci	PINCTRL_PIN(115, "GPIO_115"),
1308c2ecf20Sopenharmony_ci	PINCTRL_PIN(116, "GPIO_116"),
1318c2ecf20Sopenharmony_ci	PINCTRL_PIN(117, "GPIO_117"),
1328c2ecf20Sopenharmony_ci	PINCTRL_PIN(118, "GPIO_118"),
1338c2ecf20Sopenharmony_ci	PINCTRL_PIN(119, "GPIO_119"),
1348c2ecf20Sopenharmony_ci	PINCTRL_PIN(120, "GPIO_120"),
1358c2ecf20Sopenharmony_ci	PINCTRL_PIN(121, "GPIO_121"),
1368c2ecf20Sopenharmony_ci	PINCTRL_PIN(122, "GPIO_122"),
1378c2ecf20Sopenharmony_ci	PINCTRL_PIN(123, "GPIO_123"),
1388c2ecf20Sopenharmony_ci	PINCTRL_PIN(124, "GPIO_124"),
1398c2ecf20Sopenharmony_ci	PINCTRL_PIN(125, "GPIO_125"),
1408c2ecf20Sopenharmony_ci	PINCTRL_PIN(126, "GPIO_126"),
1418c2ecf20Sopenharmony_ci	PINCTRL_PIN(127, "GPIO_127"),
1428c2ecf20Sopenharmony_ci	PINCTRL_PIN(128, "GPIO_128"),
1438c2ecf20Sopenharmony_ci	PINCTRL_PIN(129, "GPIO_129"),
1448c2ecf20Sopenharmony_ci	PINCTRL_PIN(130, "GPIO_130"),
1458c2ecf20Sopenharmony_ci	PINCTRL_PIN(131, "GPIO_131"),
1468c2ecf20Sopenharmony_ci	PINCTRL_PIN(132, "GPIO_132"),
1478c2ecf20Sopenharmony_ci	PINCTRL_PIN(133, "GPIO_133"),
1488c2ecf20Sopenharmony_ci	PINCTRL_PIN(134, "GPIO_134"),
1498c2ecf20Sopenharmony_ci	PINCTRL_PIN(135, "GPIO_135"),
1508c2ecf20Sopenharmony_ci	PINCTRL_PIN(136, "GPIO_136"),
1518c2ecf20Sopenharmony_ci	PINCTRL_PIN(137, "GPIO_137"),
1528c2ecf20Sopenharmony_ci	PINCTRL_PIN(138, "GPIO_138"),
1538c2ecf20Sopenharmony_ci	PINCTRL_PIN(139, "GPIO_139"),
1548c2ecf20Sopenharmony_ci	PINCTRL_PIN(140, "GPIO_140"),
1558c2ecf20Sopenharmony_ci	PINCTRL_PIN(141, "GPIO_141"),
1568c2ecf20Sopenharmony_ci	PINCTRL_PIN(142, "GPIO_142"),
1578c2ecf20Sopenharmony_ci	PINCTRL_PIN(143, "GPIO_143"),
1588c2ecf20Sopenharmony_ci	PINCTRL_PIN(144, "GPIO_144"),
1598c2ecf20Sopenharmony_ci	PINCTRL_PIN(145, "GPIO_145"),
1608c2ecf20Sopenharmony_ci	PINCTRL_PIN(146, "GPIO_146"),
1618c2ecf20Sopenharmony_ci	PINCTRL_PIN(147, "GPIO_147"),
1628c2ecf20Sopenharmony_ci	PINCTRL_PIN(148, "GPIO_148"),
1638c2ecf20Sopenharmony_ci	PINCTRL_PIN(149, "GPIO_149"),
1648c2ecf20Sopenharmony_ci	PINCTRL_PIN(150, "GPIO_150"),
1658c2ecf20Sopenharmony_ci	PINCTRL_PIN(151, "GPIO_151"),
1668c2ecf20Sopenharmony_ci	PINCTRL_PIN(152, "GPIO_152"),
1678c2ecf20Sopenharmony_ci	PINCTRL_PIN(153, "GPIO_153"),
1688c2ecf20Sopenharmony_ci	PINCTRL_PIN(154, "GPIO_154"),
1698c2ecf20Sopenharmony_ci	PINCTRL_PIN(155, "GPIO_155"),
1708c2ecf20Sopenharmony_ci	PINCTRL_PIN(156, "GPIO_156"),
1718c2ecf20Sopenharmony_ci	PINCTRL_PIN(157, "GPIO_157"),
1728c2ecf20Sopenharmony_ci	PINCTRL_PIN(158, "GPIO_158"),
1738c2ecf20Sopenharmony_ci	PINCTRL_PIN(159, "GPIO_159"),
1748c2ecf20Sopenharmony_ci	PINCTRL_PIN(160, "GPIO_160"),
1758c2ecf20Sopenharmony_ci	PINCTRL_PIN(161, "GPIO_161"),
1768c2ecf20Sopenharmony_ci	PINCTRL_PIN(162, "GPIO_162"),
1778c2ecf20Sopenharmony_ci	PINCTRL_PIN(163, "GPIO_163"),
1788c2ecf20Sopenharmony_ci	PINCTRL_PIN(164, "GPIO_164"),
1798c2ecf20Sopenharmony_ci	PINCTRL_PIN(165, "GPIO_165"),
1808c2ecf20Sopenharmony_ci	PINCTRL_PIN(166, "GPIO_166"),
1818c2ecf20Sopenharmony_ci	PINCTRL_PIN(167, "GPIO_167"),
1828c2ecf20Sopenharmony_ci	PINCTRL_PIN(168, "GPIO_168"),
1838c2ecf20Sopenharmony_ci	PINCTRL_PIN(169, "GPIO_169"),
1848c2ecf20Sopenharmony_ci	PINCTRL_PIN(170, "GPIO_170"),
1858c2ecf20Sopenharmony_ci	PINCTRL_PIN(171, "GPIO_171"),
1868c2ecf20Sopenharmony_ci	PINCTRL_PIN(172, "GPIO_172"),
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ci	PINCTRL_PIN(173, "SDC4_CLK"),
1898c2ecf20Sopenharmony_ci	PINCTRL_PIN(174, "SDC4_CMD"),
1908c2ecf20Sopenharmony_ci	PINCTRL_PIN(175, "SDC4_DATA"),
1918c2ecf20Sopenharmony_ci	PINCTRL_PIN(176, "SDC3_CLK"),
1928c2ecf20Sopenharmony_ci	PINCTRL_PIN(177, "SDC3_CMD"),
1938c2ecf20Sopenharmony_ci	PINCTRL_PIN(178, "SDC3_DATA"),
1948c2ecf20Sopenharmony_ci};
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci#define DECLARE_MSM_GPIO_PIN(pin) static const unsigned int gpio##pin##_pins[] = { pin }
1978c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(0);
1988c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(1);
1998c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(2);
2008c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(3);
2018c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(4);
2028c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(5);
2038c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(6);
2048c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(7);
2058c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(8);
2068c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(9);
2078c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(10);
2088c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(11);
2098c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(12);
2108c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(13);
2118c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(14);
2128c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(15);
2138c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(16);
2148c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(17);
2158c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(18);
2168c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(19);
2178c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(20);
2188c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(21);
2198c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(22);
2208c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(23);
2218c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(24);
2228c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(25);
2238c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(26);
2248c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(27);
2258c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(28);
2268c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(29);
2278c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(30);
2288c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(31);
2298c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(32);
2308c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(33);
2318c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(34);
2328c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(35);
2338c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(36);
2348c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(37);
2358c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(38);
2368c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(39);
2378c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(40);
2388c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(41);
2398c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(42);
2408c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(43);
2418c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(44);
2428c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(45);
2438c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(46);
2448c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(47);
2458c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(48);
2468c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(49);
2478c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(50);
2488c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(51);
2498c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(52);
2508c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(53);
2518c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(54);
2528c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(55);
2538c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(56);
2548c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(57);
2558c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(58);
2568c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(59);
2578c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(60);
2588c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(61);
2598c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(62);
2608c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(63);
2618c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(64);
2628c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(65);
2638c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(66);
2648c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(67);
2658c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(68);
2668c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(69);
2678c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(70);
2688c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(71);
2698c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(72);
2708c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(73);
2718c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(74);
2728c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(75);
2738c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(76);
2748c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(77);
2758c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(78);
2768c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(79);
2778c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(80);
2788c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(81);
2798c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(82);
2808c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(83);
2818c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(84);
2828c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(85);
2838c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(86);
2848c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(87);
2858c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(88);
2868c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(89);
2878c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(90);
2888c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(91);
2898c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(92);
2908c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(93);
2918c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(94);
2928c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(95);
2938c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(96);
2948c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(97);
2958c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(98);
2968c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(99);
2978c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(100);
2988c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(101);
2998c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(102);
3008c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(103);
3018c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(104);
3028c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(105);
3038c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(106);
3048c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(107);
3058c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(108);
3068c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(109);
3078c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(110);
3088c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(111);
3098c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(112);
3108c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(113);
3118c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(114);
3128c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(115);
3138c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(116);
3148c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(117);
3158c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(118);
3168c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(119);
3178c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(120);
3188c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(121);
3198c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(122);
3208c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(123);
3218c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(124);
3228c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(125);
3238c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(126);
3248c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(127);
3258c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(128);
3268c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(129);
3278c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(130);
3288c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(131);
3298c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(132);
3308c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(133);
3318c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(134);
3328c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(135);
3338c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(136);
3348c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(137);
3358c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(138);
3368c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(139);
3378c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(140);
3388c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(141);
3398c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(142);
3408c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(143);
3418c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(144);
3428c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(145);
3438c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(146);
3448c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(147);
3458c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(148);
3468c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(149);
3478c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(150);
3488c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(151);
3498c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(152);
3508c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(153);
3518c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(154);
3528c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(155);
3538c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(156);
3548c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(157);
3558c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(158);
3568c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(159);
3578c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(160);
3588c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(161);
3598c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(162);
3608c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(163);
3618c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(164);
3628c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(165);
3638c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(166);
3648c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(167);
3658c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(168);
3668c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(169);
3678c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(170);
3688c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(171);
3698c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PIN(172);
3708c2ecf20Sopenharmony_ci
3718c2ecf20Sopenharmony_cistatic const unsigned int sdc4_clk_pins[] = { 173 };
3728c2ecf20Sopenharmony_cistatic const unsigned int sdc4_cmd_pins[] = { 174 };
3738c2ecf20Sopenharmony_cistatic const unsigned int sdc4_data_pins[] = { 175 };
3748c2ecf20Sopenharmony_cistatic const unsigned int sdc3_clk_pins[] = { 176 };
3758c2ecf20Sopenharmony_cistatic const unsigned int sdc3_cmd_pins[] = { 177 };
3768c2ecf20Sopenharmony_cistatic const unsigned int sdc3_data_pins[] = { 178 };
3778c2ecf20Sopenharmony_ci
3788c2ecf20Sopenharmony_ci#define FUNCTION(fname)					\
3798c2ecf20Sopenharmony_ci	[MSM_MUX_##fname] = {				\
3808c2ecf20Sopenharmony_ci		.name = #fname,				\
3818c2ecf20Sopenharmony_ci		.groups = fname##_groups,		\
3828c2ecf20Sopenharmony_ci		.ngroups = ARRAY_SIZE(fname##_groups),	\
3838c2ecf20Sopenharmony_ci	}
3848c2ecf20Sopenharmony_ci
3858c2ecf20Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7) \
3868c2ecf20Sopenharmony_ci	{						\
3878c2ecf20Sopenharmony_ci		.name = "gpio" #id,			\
3888c2ecf20Sopenharmony_ci		.pins = gpio##id##_pins,		\
3898c2ecf20Sopenharmony_ci		.npins = ARRAY_SIZE(gpio##id##_pins),	\
3908c2ecf20Sopenharmony_ci		.funcs = (int[]){			\
3918c2ecf20Sopenharmony_ci			MSM_MUX_gpio,			\
3928c2ecf20Sopenharmony_ci			MSM_MUX_##f1,			\
3938c2ecf20Sopenharmony_ci			MSM_MUX_##f2,			\
3948c2ecf20Sopenharmony_ci			MSM_MUX_##f3,			\
3958c2ecf20Sopenharmony_ci			MSM_MUX_##f4,			\
3968c2ecf20Sopenharmony_ci			MSM_MUX_##f5,			\
3978c2ecf20Sopenharmony_ci			MSM_MUX_##f6,			\
3988c2ecf20Sopenharmony_ci			MSM_MUX_##f7,			\
3998c2ecf20Sopenharmony_ci		},					\
4008c2ecf20Sopenharmony_ci		.nfuncs = 8,				\
4018c2ecf20Sopenharmony_ci		.ctl_reg = 0x1000 + 0x10 * id,		\
4028c2ecf20Sopenharmony_ci		.io_reg = 0x1004 + 0x10 * id,		\
4038c2ecf20Sopenharmony_ci		.intr_cfg_reg = 0x1008 + 0x10 * id,	\
4048c2ecf20Sopenharmony_ci		.intr_status_reg = 0x100c + 0x10 * id,	\
4058c2ecf20Sopenharmony_ci		.intr_target_reg = 0x400 + 0x4 * id,	\
4068c2ecf20Sopenharmony_ci		.mux_bit = 2,				\
4078c2ecf20Sopenharmony_ci		.pull_bit = 0,				\
4088c2ecf20Sopenharmony_ci		.drv_bit = 6,				\
4098c2ecf20Sopenharmony_ci		.oe_bit = 9,				\
4108c2ecf20Sopenharmony_ci		.in_bit = 0,				\
4118c2ecf20Sopenharmony_ci		.out_bit = 1,				\
4128c2ecf20Sopenharmony_ci		.intr_enable_bit = 0,			\
4138c2ecf20Sopenharmony_ci		.intr_status_bit = 0,			\
4148c2ecf20Sopenharmony_ci		.intr_ack_high = 1,			\
4158c2ecf20Sopenharmony_ci		.intr_target_bit = 0,			\
4168c2ecf20Sopenharmony_ci		.intr_target_kpss_val = 4,		\
4178c2ecf20Sopenharmony_ci		.intr_raw_status_bit = 3,		\
4188c2ecf20Sopenharmony_ci		.intr_polarity_bit = 1,			\
4198c2ecf20Sopenharmony_ci		.intr_detection_bit = 2,		\
4208c2ecf20Sopenharmony_ci		.intr_detection_width = 1,		\
4218c2ecf20Sopenharmony_ci	}
4228c2ecf20Sopenharmony_ci
4238c2ecf20Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv)		\
4248c2ecf20Sopenharmony_ci	{						\
4258c2ecf20Sopenharmony_ci		.name = #pg_name,			\
4268c2ecf20Sopenharmony_ci		.pins = pg_name##_pins,			\
4278c2ecf20Sopenharmony_ci		.npins = ARRAY_SIZE(pg_name##_pins),	\
4288c2ecf20Sopenharmony_ci		.ctl_reg = ctl,				\
4298c2ecf20Sopenharmony_ci		.io_reg = 0,				\
4308c2ecf20Sopenharmony_ci		.intr_cfg_reg = 0,			\
4318c2ecf20Sopenharmony_ci		.intr_status_reg = 0,			\
4328c2ecf20Sopenharmony_ci		.intr_target_reg = 0,			\
4338c2ecf20Sopenharmony_ci		.mux_bit = -1,				\
4348c2ecf20Sopenharmony_ci		.pull_bit = pull,			\
4358c2ecf20Sopenharmony_ci		.drv_bit = drv,				\
4368c2ecf20Sopenharmony_ci		.oe_bit = -1,				\
4378c2ecf20Sopenharmony_ci		.in_bit = -1,				\
4388c2ecf20Sopenharmony_ci		.out_bit = -1,				\
4398c2ecf20Sopenharmony_ci		.intr_enable_bit = -1,			\
4408c2ecf20Sopenharmony_ci		.intr_status_bit = -1,			\
4418c2ecf20Sopenharmony_ci		.intr_target_bit = -1,			\
4428c2ecf20Sopenharmony_ci		.intr_target_kpss_val = -1,		\
4438c2ecf20Sopenharmony_ci		.intr_raw_status_bit = -1,		\
4448c2ecf20Sopenharmony_ci		.intr_polarity_bit = -1,		\
4458c2ecf20Sopenharmony_ci		.intr_detection_bit = -1,		\
4468c2ecf20Sopenharmony_ci		.intr_detection_width = -1,		\
4478c2ecf20Sopenharmony_ci	}
4488c2ecf20Sopenharmony_ci
4498c2ecf20Sopenharmony_cienum msm8660_functions {
4508c2ecf20Sopenharmony_ci	MSM_MUX_gpio,
4518c2ecf20Sopenharmony_ci	MSM_MUX_cam_mclk,
4528c2ecf20Sopenharmony_ci	MSM_MUX_dsub,
4538c2ecf20Sopenharmony_ci	MSM_MUX_ext_gps,
4548c2ecf20Sopenharmony_ci	MSM_MUX_gp_clk_0a,
4558c2ecf20Sopenharmony_ci	MSM_MUX_gp_clk_0b,
4568c2ecf20Sopenharmony_ci	MSM_MUX_gp_clk_1a,
4578c2ecf20Sopenharmony_ci	MSM_MUX_gp_clk_1b,
4588c2ecf20Sopenharmony_ci	MSM_MUX_gp_clk_2a,
4598c2ecf20Sopenharmony_ci	MSM_MUX_gp_clk_2b,
4608c2ecf20Sopenharmony_ci	MSM_MUX_gp_mn,
4618c2ecf20Sopenharmony_ci	MSM_MUX_gsbi1,
4628c2ecf20Sopenharmony_ci	MSM_MUX_gsbi1_spi_cs1_n,
4638c2ecf20Sopenharmony_ci	MSM_MUX_gsbi1_spi_cs2a_n,
4648c2ecf20Sopenharmony_ci	MSM_MUX_gsbi1_spi_cs2b_n,
4658c2ecf20Sopenharmony_ci	MSM_MUX_gsbi1_spi_cs3_n,
4668c2ecf20Sopenharmony_ci	MSM_MUX_gsbi2,
4678c2ecf20Sopenharmony_ci	MSM_MUX_gsbi2_spi_cs1_n,
4688c2ecf20Sopenharmony_ci	MSM_MUX_gsbi2_spi_cs2_n,
4698c2ecf20Sopenharmony_ci	MSM_MUX_gsbi2_spi_cs3_n,
4708c2ecf20Sopenharmony_ci	MSM_MUX_gsbi3,
4718c2ecf20Sopenharmony_ci	MSM_MUX_gsbi3_spi_cs1_n,
4728c2ecf20Sopenharmony_ci	MSM_MUX_gsbi3_spi_cs2_n,
4738c2ecf20Sopenharmony_ci	MSM_MUX_gsbi3_spi_cs3_n,
4748c2ecf20Sopenharmony_ci	MSM_MUX_gsbi4,
4758c2ecf20Sopenharmony_ci	MSM_MUX_gsbi5,
4768c2ecf20Sopenharmony_ci	MSM_MUX_gsbi6,
4778c2ecf20Sopenharmony_ci	MSM_MUX_gsbi7,
4788c2ecf20Sopenharmony_ci	MSM_MUX_gsbi8,
4798c2ecf20Sopenharmony_ci	MSM_MUX_gsbi9,
4808c2ecf20Sopenharmony_ci	MSM_MUX_gsbi10,
4818c2ecf20Sopenharmony_ci	MSM_MUX_gsbi11,
4828c2ecf20Sopenharmony_ci	MSM_MUX_gsbi12,
4838c2ecf20Sopenharmony_ci	MSM_MUX_hdmi,
4848c2ecf20Sopenharmony_ci	MSM_MUX_i2s,
4858c2ecf20Sopenharmony_ci	MSM_MUX_lcdc,
4868c2ecf20Sopenharmony_ci	MSM_MUX_mdp_vsync,
4878c2ecf20Sopenharmony_ci	MSM_MUX_mi2s,
4888c2ecf20Sopenharmony_ci	MSM_MUX_pcm,
4898c2ecf20Sopenharmony_ci	MSM_MUX_ps_hold,
4908c2ecf20Sopenharmony_ci	MSM_MUX_sdc1,
4918c2ecf20Sopenharmony_ci	MSM_MUX_sdc2,
4928c2ecf20Sopenharmony_ci	MSM_MUX_sdc5,
4938c2ecf20Sopenharmony_ci	MSM_MUX_tsif1,
4948c2ecf20Sopenharmony_ci	MSM_MUX_tsif2,
4958c2ecf20Sopenharmony_ci	MSM_MUX_usb_fs1,
4968c2ecf20Sopenharmony_ci	MSM_MUX_usb_fs1_oe_n,
4978c2ecf20Sopenharmony_ci	MSM_MUX_usb_fs2,
4988c2ecf20Sopenharmony_ci	MSM_MUX_usb_fs2_oe_n,
4998c2ecf20Sopenharmony_ci	MSM_MUX_vfe,
5008c2ecf20Sopenharmony_ci	MSM_MUX_vsens_alarm,
5018c2ecf20Sopenharmony_ci	MSM_MUX_ebi2cs,
5028c2ecf20Sopenharmony_ci	MSM_MUX_ebi2,
5038c2ecf20Sopenharmony_ci	MSM_MUX__,
5048c2ecf20Sopenharmony_ci};
5058c2ecf20Sopenharmony_ci
5068c2ecf20Sopenharmony_cistatic const char * const gpio_groups[] = {
5078c2ecf20Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
5088c2ecf20Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
5098c2ecf20Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
5108c2ecf20Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
5118c2ecf20Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
5128c2ecf20Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
5138c2ecf20Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
5148c2ecf20Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
5158c2ecf20Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
5168c2ecf20Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
5178c2ecf20Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
5188c2ecf20Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
5198c2ecf20Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
5208c2ecf20Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
5218c2ecf20Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
5228c2ecf20Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
5238c2ecf20Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
5248c2ecf20Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
5258c2ecf20Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
5268c2ecf20Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
5278c2ecf20Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
5288c2ecf20Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
5298c2ecf20Sopenharmony_ci	"gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152",
5308c2ecf20Sopenharmony_ci	"gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158",
5318c2ecf20Sopenharmony_ci	"gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
5328c2ecf20Sopenharmony_ci	"gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170",
5338c2ecf20Sopenharmony_ci	"gpio171", "gpio172"
5348c2ecf20Sopenharmony_ci};
5358c2ecf20Sopenharmony_ci
5368c2ecf20Sopenharmony_cistatic const char * const cam_mclk_groups[] = {
5378c2ecf20Sopenharmony_ci	"gpio32"
5388c2ecf20Sopenharmony_ci};
5398c2ecf20Sopenharmony_cistatic const char * const dsub_groups[] = {
5408c2ecf20Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
5418c2ecf20Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
5428c2ecf20Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
5438c2ecf20Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27"
5448c2ecf20Sopenharmony_ci};
5458c2ecf20Sopenharmony_cistatic const char * const ext_gps_groups[] = {
5468c2ecf20Sopenharmony_ci	"gpio66", "gpio67", "gpio68", "gpio69"
5478c2ecf20Sopenharmony_ci};
5488c2ecf20Sopenharmony_cistatic const char * const gp_clk_0a_groups[] = {
5498c2ecf20Sopenharmony_ci	"gpio30"
5508c2ecf20Sopenharmony_ci};
5518c2ecf20Sopenharmony_cistatic const char * const gp_clk_0b_groups[] = {
5528c2ecf20Sopenharmony_ci	"gpio115"
5538c2ecf20Sopenharmony_ci};
5548c2ecf20Sopenharmony_cistatic const char * const gp_clk_1a_groups[] = {
5558c2ecf20Sopenharmony_ci	"gpio31"
5568c2ecf20Sopenharmony_ci};
5578c2ecf20Sopenharmony_cistatic const char * const gp_clk_1b_groups[] = {
5588c2ecf20Sopenharmony_ci	"gpio122"
5598c2ecf20Sopenharmony_ci};
5608c2ecf20Sopenharmony_cistatic const char * const gp_clk_2a_groups[] = {
5618c2ecf20Sopenharmony_ci	"gpio103"
5628c2ecf20Sopenharmony_ci};
5638c2ecf20Sopenharmony_cistatic const char * const gp_clk_2b_groups[] = {
5648c2ecf20Sopenharmony_ci	"gpio70"
5658c2ecf20Sopenharmony_ci};
5668c2ecf20Sopenharmony_cistatic const char * const gp_mn_groups[] = {
5678c2ecf20Sopenharmony_ci	"gpio29"
5688c2ecf20Sopenharmony_ci};
5698c2ecf20Sopenharmony_cistatic const char * const gsbi1_groups[] = {
5708c2ecf20Sopenharmony_ci	"gpio33", "gpio34", "gpio35", "gpio36"
5718c2ecf20Sopenharmony_ci};
5728c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs1_n_groups[] = {
5738c2ecf20Sopenharmony_ci};
5748c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs2a_n_groups[] = {
5758c2ecf20Sopenharmony_ci};
5768c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs2b_n_groups[] = {
5778c2ecf20Sopenharmony_ci};
5788c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs3_n_groups[] = {
5798c2ecf20Sopenharmony_ci};
5808c2ecf20Sopenharmony_cistatic const char * const gsbi2_groups[] = {
5818c2ecf20Sopenharmony_ci	"gpio37", "gpio38", "gpio39", "gpio40"
5828c2ecf20Sopenharmony_ci};
5838c2ecf20Sopenharmony_cistatic const char * const gsbi2_spi_cs1_n_groups[] = {
5848c2ecf20Sopenharmony_ci	"gpio123"
5858c2ecf20Sopenharmony_ci};
5868c2ecf20Sopenharmony_cistatic const char * const gsbi2_spi_cs2_n_groups[] = {
5878c2ecf20Sopenharmony_ci	"gpio124"
5888c2ecf20Sopenharmony_ci};
5898c2ecf20Sopenharmony_cistatic const char * const gsbi2_spi_cs3_n_groups[] = {
5908c2ecf20Sopenharmony_ci	"gpio125"
5918c2ecf20Sopenharmony_ci};
5928c2ecf20Sopenharmony_cistatic const char * const gsbi3_groups[] = {
5938c2ecf20Sopenharmony_ci	"gpio41", "gpio42", "gpio43", "gpio44"
5948c2ecf20Sopenharmony_ci};
5958c2ecf20Sopenharmony_cistatic const char * const gsbi3_spi_cs1_n_groups[] = {
5968c2ecf20Sopenharmony_ci	"gpio62"
5978c2ecf20Sopenharmony_ci};
5988c2ecf20Sopenharmony_cistatic const char * const gsbi3_spi_cs2_n_groups[] = {
5998c2ecf20Sopenharmony_ci	"gpio45"
6008c2ecf20Sopenharmony_ci};
6018c2ecf20Sopenharmony_cistatic const char * const gsbi3_spi_cs3_n_groups[] = {
6028c2ecf20Sopenharmony_ci	"gpio46"
6038c2ecf20Sopenharmony_ci};
6048c2ecf20Sopenharmony_cistatic const char * const gsbi4_groups[] = {
6058c2ecf20Sopenharmony_ci	"gpio45", "gpio56", "gpio47", "gpio48"
6068c2ecf20Sopenharmony_ci};
6078c2ecf20Sopenharmony_cistatic const char * const gsbi5_groups[] = {
6088c2ecf20Sopenharmony_ci	"gpio49", "gpio50", "gpio51", "gpio52"
6098c2ecf20Sopenharmony_ci};
6108c2ecf20Sopenharmony_cistatic const char * const gsbi6_groups[] = {
6118c2ecf20Sopenharmony_ci	"gpio53", "gpio54", "gpio55", "gpio56"
6128c2ecf20Sopenharmony_ci};
6138c2ecf20Sopenharmony_cistatic const char * const gsbi7_groups[] = {
6148c2ecf20Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60"
6158c2ecf20Sopenharmony_ci};
6168c2ecf20Sopenharmony_cistatic const char * const gsbi8_groups[] = {
6178c2ecf20Sopenharmony_ci	"gpio62", "gpio63", "gpio64", "gpio65"
6188c2ecf20Sopenharmony_ci};
6198c2ecf20Sopenharmony_cistatic const char * const gsbi9_groups[] = {
6208c2ecf20Sopenharmony_ci	"gpio66", "gpio67", "gpio68", "gpio69"
6218c2ecf20Sopenharmony_ci};
6228c2ecf20Sopenharmony_cistatic const char * const gsbi10_groups[] = {
6238c2ecf20Sopenharmony_ci	"gpio70", "gpio71", "gpio72", "gpio73"
6248c2ecf20Sopenharmony_ci};
6258c2ecf20Sopenharmony_cistatic const char * const gsbi11_groups[] = {
6268c2ecf20Sopenharmony_ci	"gpio103", "gpio104", "gpio105", "gpio106"
6278c2ecf20Sopenharmony_ci};
6288c2ecf20Sopenharmony_cistatic const char * const gsbi12_groups[] = {
6298c2ecf20Sopenharmony_ci	"gpio115", "gpio116", "gpio117", "gpio118"
6308c2ecf20Sopenharmony_ci};
6318c2ecf20Sopenharmony_cistatic const char * const hdmi_groups[] = {
6328c2ecf20Sopenharmony_ci	"gpio169", "gpio170", "gpio171", "gpio172"
6338c2ecf20Sopenharmony_ci};
6348c2ecf20Sopenharmony_cistatic const char * const i2s_groups[] = {
6358c2ecf20Sopenharmony_ci	"gpio108", "gpio109", "gpio110", "gpio115", "gpio116", "gpio117",
6368c2ecf20Sopenharmony_ci	"gpio118", "gpio119", "gpio120", "gpio121", "gpio122"
6378c2ecf20Sopenharmony_ci};
6388c2ecf20Sopenharmony_cistatic const char * const lcdc_groups[] = {
6398c2ecf20Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
6408c2ecf20Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
6418c2ecf20Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
6428c2ecf20Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27"
6438c2ecf20Sopenharmony_ci};
6448c2ecf20Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
6458c2ecf20Sopenharmony_ci	"gpio28", "gpio39", "gpio41"
6468c2ecf20Sopenharmony_ci};
6478c2ecf20Sopenharmony_cistatic const char * const mi2s_groups[] = {
6488c2ecf20Sopenharmony_ci	"gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106",
6498c2ecf20Sopenharmony_ci	"gpio107"
6508c2ecf20Sopenharmony_ci};
6518c2ecf20Sopenharmony_cistatic const char * const pcm_groups[] = {
6528c2ecf20Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114"
6538c2ecf20Sopenharmony_ci};
6548c2ecf20Sopenharmony_cistatic const char * const ps_hold_groups[] = {
6558c2ecf20Sopenharmony_ci	"gpio92"
6568c2ecf20Sopenharmony_ci};
6578c2ecf20Sopenharmony_cistatic const char * const sdc1_groups[] = {
6588c2ecf20Sopenharmony_ci	"gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164",
6598c2ecf20Sopenharmony_ci	"gpio165", "gpio166", "gpio167", "gpio168"
6608c2ecf20Sopenharmony_ci};
6618c2ecf20Sopenharmony_cistatic const char * const sdc2_groups[] = {
6628c2ecf20Sopenharmony_ci	"gpio143", "gpio144", "gpio145", "gpio146", "gpio147", "gpio148",
6638c2ecf20Sopenharmony_ci	"gpio149", "gpio150", "gpio151", "gpio152"
6648c2ecf20Sopenharmony_ci};
6658c2ecf20Sopenharmony_cistatic const char * const sdc5_groups[] = {
6668c2ecf20Sopenharmony_ci	"gpio95", "gpio96", "gpio97", "gpio98", "gpio99", "gpio100"
6678c2ecf20Sopenharmony_ci};
6688c2ecf20Sopenharmony_cistatic const char * const tsif1_groups[] = {
6698c2ecf20Sopenharmony_ci	"gpio93", "gpio94", "gpio95", "gpio96"
6708c2ecf20Sopenharmony_ci};
6718c2ecf20Sopenharmony_cistatic const char * const tsif2_groups[] = {
6728c2ecf20Sopenharmony_ci	"gpio97", "gpio98", "gpio99", "gpio100"
6738c2ecf20Sopenharmony_ci};
6748c2ecf20Sopenharmony_cistatic const char * const usb_fs1_groups[] = {
6758c2ecf20Sopenharmony_ci	"gpio49", "gpio50", "gpio51"
6768c2ecf20Sopenharmony_ci};
6778c2ecf20Sopenharmony_cistatic const char * const usb_fs1_oe_n_groups[] = {
6788c2ecf20Sopenharmony_ci	"gpio51"
6798c2ecf20Sopenharmony_ci};
6808c2ecf20Sopenharmony_cistatic const char * const usb_fs2_groups[] = {
6818c2ecf20Sopenharmony_ci	"gpio71", "gpio72", "gpio73"
6828c2ecf20Sopenharmony_ci};
6838c2ecf20Sopenharmony_cistatic const char * const usb_fs2_oe_n_groups[] = {
6848c2ecf20Sopenharmony_ci	"gpio73"
6858c2ecf20Sopenharmony_ci};
6868c2ecf20Sopenharmony_cistatic const char * const vfe_groups[] = {
6878c2ecf20Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio42", "gpio46", "gpio105", "gpio106",
6888c2ecf20Sopenharmony_ci	"gpio117"
6898c2ecf20Sopenharmony_ci};
6908c2ecf20Sopenharmony_cistatic const char * const vsens_alarm_groups[] = {
6918c2ecf20Sopenharmony_ci	"gpio127"
6928c2ecf20Sopenharmony_ci};
6938c2ecf20Sopenharmony_cistatic const char * const ebi2cs_groups[] = {
6948c2ecf20Sopenharmony_ci	"gpio39", /* CS1A */
6958c2ecf20Sopenharmony_ci	"gpio40", /* CS2A */
6968c2ecf20Sopenharmony_ci	"gpio123", /* CS1B */
6978c2ecf20Sopenharmony_ci	"gpio124", /* CS2B */
6988c2ecf20Sopenharmony_ci	"gpio131", /* CS5 */
6998c2ecf20Sopenharmony_ci	"gpio132", /* CS4 */
7008c2ecf20Sopenharmony_ci	"gpio133", /* CS3 */
7018c2ecf20Sopenharmony_ci	"gpio134", /* CS0 */
7028c2ecf20Sopenharmony_ci};
7038c2ecf20Sopenharmony_cistatic const char * const ebi2_groups[] = {
7048c2ecf20Sopenharmony_ci	/* ADDR9 & ADDR8 */
7058c2ecf20Sopenharmony_ci	"gpio37", "gpio38",
7068c2ecf20Sopenharmony_ci	/* ADDR7 - ADDR 0 */
7078c2ecf20Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126",
7088c2ecf20Sopenharmony_ci	"gpio127", "gpio128", "gpio129", "gpio130",
7098c2ecf20Sopenharmony_ci	/* (muxed address+data) AD15 - AD0 */
7108c2ecf20Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139",
7118c2ecf20Sopenharmony_ci	"gpio140", "gpio141", "gpio142", "gpio143", "gpio144",
7128c2ecf20Sopenharmony_ci	"gpio145", "gpio146", "gpio147", "gpio148", "gpio149",
7138c2ecf20Sopenharmony_ci	"gpio150",
7148c2ecf20Sopenharmony_ci	"gpio151", /* OE output enable */
7158c2ecf20Sopenharmony_ci	"gpio152", /* clock */
7168c2ecf20Sopenharmony_ci	"gpio153", /* ADV */
7178c2ecf20Sopenharmony_ci	"gpio154", /* WAIT (input) */
7188c2ecf20Sopenharmony_ci	"gpio155", /* UB Upper Byte Enable */
7198c2ecf20Sopenharmony_ci	"gpio156", /* LB Lower Byte Enable */
7208c2ecf20Sopenharmony_ci	"gpio157", /* WE Write Enable */
7218c2ecf20Sopenharmony_ci	"gpio158", /* busy */
7228c2ecf20Sopenharmony_ci};
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_cistatic const struct msm_function msm8660_functions[] = {
7258c2ecf20Sopenharmony_ci	FUNCTION(gpio),
7268c2ecf20Sopenharmony_ci	FUNCTION(cam_mclk),
7278c2ecf20Sopenharmony_ci	FUNCTION(dsub),
7288c2ecf20Sopenharmony_ci	FUNCTION(ext_gps),
7298c2ecf20Sopenharmony_ci	FUNCTION(gp_clk_0a),
7308c2ecf20Sopenharmony_ci	FUNCTION(gp_clk_0b),
7318c2ecf20Sopenharmony_ci	FUNCTION(gp_clk_1a),
7328c2ecf20Sopenharmony_ci	FUNCTION(gp_clk_1b),
7338c2ecf20Sopenharmony_ci	FUNCTION(gp_clk_2a),
7348c2ecf20Sopenharmony_ci	FUNCTION(gp_clk_2b),
7358c2ecf20Sopenharmony_ci	FUNCTION(gp_mn),
7368c2ecf20Sopenharmony_ci	FUNCTION(gsbi1),
7378c2ecf20Sopenharmony_ci	FUNCTION(gsbi1_spi_cs1_n),
7388c2ecf20Sopenharmony_ci	FUNCTION(gsbi1_spi_cs2a_n),
7398c2ecf20Sopenharmony_ci	FUNCTION(gsbi1_spi_cs2b_n),
7408c2ecf20Sopenharmony_ci	FUNCTION(gsbi1_spi_cs3_n),
7418c2ecf20Sopenharmony_ci	FUNCTION(gsbi2),
7428c2ecf20Sopenharmony_ci	FUNCTION(gsbi2_spi_cs1_n),
7438c2ecf20Sopenharmony_ci	FUNCTION(gsbi2_spi_cs2_n),
7448c2ecf20Sopenharmony_ci	FUNCTION(gsbi2_spi_cs3_n),
7458c2ecf20Sopenharmony_ci	FUNCTION(gsbi3),
7468c2ecf20Sopenharmony_ci	FUNCTION(gsbi3_spi_cs1_n),
7478c2ecf20Sopenharmony_ci	FUNCTION(gsbi3_spi_cs2_n),
7488c2ecf20Sopenharmony_ci	FUNCTION(gsbi3_spi_cs3_n),
7498c2ecf20Sopenharmony_ci	FUNCTION(gsbi4),
7508c2ecf20Sopenharmony_ci	FUNCTION(gsbi5),
7518c2ecf20Sopenharmony_ci	FUNCTION(gsbi6),
7528c2ecf20Sopenharmony_ci	FUNCTION(gsbi7),
7538c2ecf20Sopenharmony_ci	FUNCTION(gsbi8),
7548c2ecf20Sopenharmony_ci	FUNCTION(gsbi9),
7558c2ecf20Sopenharmony_ci	FUNCTION(gsbi10),
7568c2ecf20Sopenharmony_ci	FUNCTION(gsbi11),
7578c2ecf20Sopenharmony_ci	FUNCTION(gsbi12),
7588c2ecf20Sopenharmony_ci	FUNCTION(hdmi),
7598c2ecf20Sopenharmony_ci	FUNCTION(i2s),
7608c2ecf20Sopenharmony_ci	FUNCTION(lcdc),
7618c2ecf20Sopenharmony_ci	FUNCTION(mdp_vsync),
7628c2ecf20Sopenharmony_ci	FUNCTION(mi2s),
7638c2ecf20Sopenharmony_ci	FUNCTION(pcm),
7648c2ecf20Sopenharmony_ci	FUNCTION(ps_hold),
7658c2ecf20Sopenharmony_ci	FUNCTION(sdc1),
7668c2ecf20Sopenharmony_ci	FUNCTION(sdc2),
7678c2ecf20Sopenharmony_ci	FUNCTION(sdc5),
7688c2ecf20Sopenharmony_ci	FUNCTION(tsif1),
7698c2ecf20Sopenharmony_ci	FUNCTION(tsif2),
7708c2ecf20Sopenharmony_ci	FUNCTION(usb_fs1),
7718c2ecf20Sopenharmony_ci	FUNCTION(usb_fs1_oe_n),
7728c2ecf20Sopenharmony_ci	FUNCTION(usb_fs2),
7738c2ecf20Sopenharmony_ci	FUNCTION(usb_fs2_oe_n),
7748c2ecf20Sopenharmony_ci	FUNCTION(vfe),
7758c2ecf20Sopenharmony_ci	FUNCTION(vsens_alarm),
7768c2ecf20Sopenharmony_ci	FUNCTION(ebi2cs), /* for EBI2 chip selects */
7778c2ecf20Sopenharmony_ci	FUNCTION(ebi2), /* for general EBI2 pins */
7788c2ecf20Sopenharmony_ci};
7798c2ecf20Sopenharmony_ci
7808c2ecf20Sopenharmony_cistatic const struct msm_pingroup msm8660_groups[] = {
7818c2ecf20Sopenharmony_ci	PINGROUP(0, lcdc, dsub, _, _, _, _, _),
7828c2ecf20Sopenharmony_ci	PINGROUP(1, lcdc, dsub, _, _, _, _, _),
7838c2ecf20Sopenharmony_ci	PINGROUP(2, lcdc, dsub, _, _, _, _, _),
7848c2ecf20Sopenharmony_ci	PINGROUP(3, lcdc, dsub, _, _, _, _, _),
7858c2ecf20Sopenharmony_ci	PINGROUP(4, lcdc, dsub, _, _, _, _, _),
7868c2ecf20Sopenharmony_ci	PINGROUP(5, lcdc, dsub, _, _, _, _, _),
7878c2ecf20Sopenharmony_ci	PINGROUP(6, lcdc, dsub, _, _, _, _, _),
7888c2ecf20Sopenharmony_ci	PINGROUP(7, lcdc, dsub, _, _, _, _, _),
7898c2ecf20Sopenharmony_ci	PINGROUP(8, lcdc, dsub, _, _, _, _, _),
7908c2ecf20Sopenharmony_ci	PINGROUP(9, lcdc, dsub, _, _, _, _, _),
7918c2ecf20Sopenharmony_ci	PINGROUP(10, lcdc, dsub, _, _, _, _, _),
7928c2ecf20Sopenharmony_ci	PINGROUP(11, lcdc, dsub, _, _, _, _, _),
7938c2ecf20Sopenharmony_ci	PINGROUP(12, lcdc, dsub, _, _, _, _, _),
7948c2ecf20Sopenharmony_ci	PINGROUP(13, lcdc, dsub, _, _, _, _, _),
7958c2ecf20Sopenharmony_ci	PINGROUP(14, lcdc, dsub, _, _, _, _, _),
7968c2ecf20Sopenharmony_ci	PINGROUP(15, lcdc, dsub, _, _, _, _, _),
7978c2ecf20Sopenharmony_ci	PINGROUP(16, lcdc, dsub, _, _, _, _, _),
7988c2ecf20Sopenharmony_ci	PINGROUP(17, lcdc, dsub, _, _, _, _, _),
7998c2ecf20Sopenharmony_ci	PINGROUP(18, lcdc, dsub, _, _, _, _, _),
8008c2ecf20Sopenharmony_ci	PINGROUP(19, lcdc, dsub, _, _, _, _, _),
8018c2ecf20Sopenharmony_ci	PINGROUP(20, lcdc, dsub, _, _, _, _, _),
8028c2ecf20Sopenharmony_ci	PINGROUP(21, lcdc, dsub, _, _, _, _, _),
8038c2ecf20Sopenharmony_ci	PINGROUP(22, lcdc, dsub, _, _, _, _, _),
8048c2ecf20Sopenharmony_ci	PINGROUP(23, lcdc, dsub, _, _, _, _, _),
8058c2ecf20Sopenharmony_ci	PINGROUP(24, lcdc, dsub, _, _, _, _, _),
8068c2ecf20Sopenharmony_ci	PINGROUP(25, lcdc, dsub, _, _, _, _, _),
8078c2ecf20Sopenharmony_ci	PINGROUP(26, lcdc, dsub, _, _, _, _, _),
8088c2ecf20Sopenharmony_ci	PINGROUP(27, lcdc, dsub, _, _, _, _, _),
8098c2ecf20Sopenharmony_ci	PINGROUP(28, mdp_vsync, _, _, _, _, _, _),
8108c2ecf20Sopenharmony_ci	PINGROUP(29, vfe, gp_mn, _, _, _, _, _),
8118c2ecf20Sopenharmony_ci	PINGROUP(30, vfe, gp_clk_0a, _, _, _, _, _),
8128c2ecf20Sopenharmony_ci	PINGROUP(31, vfe, gp_clk_1a, _, _, _, _, _),
8138c2ecf20Sopenharmony_ci	PINGROUP(32, cam_mclk, _, _, _, _, _, _),
8148c2ecf20Sopenharmony_ci	PINGROUP(33, gsbi1, _, _, _, _, _, _),
8158c2ecf20Sopenharmony_ci	PINGROUP(34, gsbi1, _, _, _, _, _, _),
8168c2ecf20Sopenharmony_ci	PINGROUP(35, gsbi1, _, _, _, _, _, _),
8178c2ecf20Sopenharmony_ci	PINGROUP(36, gsbi1, _, _, _, _, _, _),
8188c2ecf20Sopenharmony_ci	PINGROUP(37, gsbi2, ebi2, _, _, _, _, _),
8198c2ecf20Sopenharmony_ci	PINGROUP(38, gsbi2, ebi2, _, _, _, _, _),
8208c2ecf20Sopenharmony_ci	PINGROUP(39, gsbi2, ebi2cs, mdp_vsync, _, _, _, _),
8218c2ecf20Sopenharmony_ci	PINGROUP(40, gsbi2, ebi2cs, _, _, _, _, _),
8228c2ecf20Sopenharmony_ci	PINGROUP(41, gsbi3, mdp_vsync, _, _, _, _, _),
8238c2ecf20Sopenharmony_ci	PINGROUP(42, gsbi3, vfe, _, _, _, _, _),
8248c2ecf20Sopenharmony_ci	PINGROUP(43, gsbi3, _, _, _, _, _, _),
8258c2ecf20Sopenharmony_ci	PINGROUP(44, gsbi3, _, _, _, _, _, _),
8268c2ecf20Sopenharmony_ci	PINGROUP(45, gsbi4, gsbi3_spi_cs2_n, _, _, _, _, _),
8278c2ecf20Sopenharmony_ci	PINGROUP(46, gsbi4, gsbi3_spi_cs3_n, vfe, _, _, _, _),
8288c2ecf20Sopenharmony_ci	PINGROUP(47, gsbi4, _, _, _, _, _, _),
8298c2ecf20Sopenharmony_ci	PINGROUP(48, gsbi4, _, _, _, _, _, _),
8308c2ecf20Sopenharmony_ci	PINGROUP(49, gsbi5, usb_fs1, _, _, _, _, _),
8318c2ecf20Sopenharmony_ci	PINGROUP(50, gsbi5, usb_fs1, _, _, _, _, _),
8328c2ecf20Sopenharmony_ci	PINGROUP(51, gsbi5, usb_fs1, usb_fs1_oe_n, _, _, _, _),
8338c2ecf20Sopenharmony_ci	PINGROUP(52, gsbi5, _, _, _, _, _, _),
8348c2ecf20Sopenharmony_ci	PINGROUP(53, gsbi6, _, _, _, _, _, _),
8358c2ecf20Sopenharmony_ci	PINGROUP(54, gsbi6, _, _, _, _, _, _),
8368c2ecf20Sopenharmony_ci	PINGROUP(55, gsbi6, _, _, _, _, _, _),
8378c2ecf20Sopenharmony_ci	PINGROUP(56, gsbi6, _, _, _, _, _, _),
8388c2ecf20Sopenharmony_ci	PINGROUP(57, gsbi7, _, _, _, _, _, _),
8398c2ecf20Sopenharmony_ci	PINGROUP(58, gsbi7, _, _, _, _, _, _),
8408c2ecf20Sopenharmony_ci	PINGROUP(59, gsbi7, _, _, _, _, _, _),
8418c2ecf20Sopenharmony_ci	PINGROUP(60, gsbi7, _, _, _, _, _, _),
8428c2ecf20Sopenharmony_ci	PINGROUP(61, _, _, _, _, _, _, _),
8438c2ecf20Sopenharmony_ci	PINGROUP(62, gsbi8, gsbi3_spi_cs1_n, gsbi1_spi_cs2a_n, _, _, _, _),
8448c2ecf20Sopenharmony_ci	PINGROUP(63, gsbi8, gsbi1_spi_cs1_n, _, _, _, _, _),
8458c2ecf20Sopenharmony_ci	PINGROUP(64, gsbi8, gsbi1_spi_cs2b_n, _, _, _, _, _),
8468c2ecf20Sopenharmony_ci	PINGROUP(65, gsbi8, gsbi1_spi_cs3_n, _, _, _, _, _),
8478c2ecf20Sopenharmony_ci	PINGROUP(66, gsbi9, ext_gps, _, _, _, _, _),
8488c2ecf20Sopenharmony_ci	PINGROUP(67, gsbi9, ext_gps, _, _, _, _, _),
8498c2ecf20Sopenharmony_ci	PINGROUP(68, gsbi9, ext_gps, _, _, _, _, _),
8508c2ecf20Sopenharmony_ci	PINGROUP(69, gsbi9, ext_gps, _, _, _, _, _),
8518c2ecf20Sopenharmony_ci	PINGROUP(70, gsbi10, gp_clk_2b, _, _, _, _, _),
8528c2ecf20Sopenharmony_ci	PINGROUP(71, gsbi10, usb_fs2, _, _, _, _, _),
8538c2ecf20Sopenharmony_ci	PINGROUP(72, gsbi10, usb_fs2, _, _, _, _, _),
8548c2ecf20Sopenharmony_ci	PINGROUP(73, gsbi10, usb_fs2, usb_fs2_oe_n, _, _, _, _),
8558c2ecf20Sopenharmony_ci	PINGROUP(74, _, _, _, _, _, _, _),
8568c2ecf20Sopenharmony_ci	PINGROUP(75, _, _, _, _, _, _, _),
8578c2ecf20Sopenharmony_ci	PINGROUP(76, _, _, _, _, _, _, _),
8588c2ecf20Sopenharmony_ci	PINGROUP(77, _, _, _, _, _, _, _),
8598c2ecf20Sopenharmony_ci	PINGROUP(78, _, _, _, _, _, _, _),
8608c2ecf20Sopenharmony_ci	PINGROUP(79, _, _, _, _, _, _, _),
8618c2ecf20Sopenharmony_ci	PINGROUP(80, _, _, _, _, _, _, _),
8628c2ecf20Sopenharmony_ci	PINGROUP(81, _, _, _, _, _, _, _),
8638c2ecf20Sopenharmony_ci	PINGROUP(82, _, _, _, _, _, _, _),
8648c2ecf20Sopenharmony_ci	PINGROUP(83, _, _, _, _, _, _, _),
8658c2ecf20Sopenharmony_ci	PINGROUP(84, _, _, _, _, _, _, _),
8668c2ecf20Sopenharmony_ci	PINGROUP(85, _, _, _, _, _, _, _),
8678c2ecf20Sopenharmony_ci	PINGROUP(86, _, _, _, _, _, _, _),
8688c2ecf20Sopenharmony_ci	PINGROUP(87, _, _, _, _, _, _, _),
8698c2ecf20Sopenharmony_ci	PINGROUP(88, _, _, _, _, _, _, _),
8708c2ecf20Sopenharmony_ci	PINGROUP(89, _, _, _, _, _, _, _),
8718c2ecf20Sopenharmony_ci	PINGROUP(90, _, _, _, _, _, _, _),
8728c2ecf20Sopenharmony_ci	PINGROUP(91, _, _, _, _, _, _, _),
8738c2ecf20Sopenharmony_ci	PINGROUP(92, ps_hold, _, _, _, _, _, _),
8748c2ecf20Sopenharmony_ci	PINGROUP(93, tsif1, _, _, _, _, _, _),
8758c2ecf20Sopenharmony_ci	PINGROUP(94, tsif1, _, _, _, _, _, _),
8768c2ecf20Sopenharmony_ci	PINGROUP(95, tsif1, sdc5, _, _, _, _, _),
8778c2ecf20Sopenharmony_ci	PINGROUP(96, tsif1, sdc5, _, _, _, _, _),
8788c2ecf20Sopenharmony_ci	PINGROUP(97, tsif2, sdc5, _, _, _, _, _),
8798c2ecf20Sopenharmony_ci	PINGROUP(98, tsif2, sdc5, _, _, _, _, _),
8808c2ecf20Sopenharmony_ci	PINGROUP(99, tsif2, sdc5, _, _, _, _, _),
8818c2ecf20Sopenharmony_ci	PINGROUP(100, tsif2, sdc5, _, _, _, _, _),
8828c2ecf20Sopenharmony_ci	PINGROUP(101, mi2s, _, _, _, _, _, _),
8838c2ecf20Sopenharmony_ci	PINGROUP(102, mi2s, _, _, _, _, _, _),
8848c2ecf20Sopenharmony_ci	PINGROUP(103, mi2s, gsbi11, gp_clk_2a, _, _, _, _),
8858c2ecf20Sopenharmony_ci	PINGROUP(104, mi2s, gsbi11, _, _, _, _, _),
8868c2ecf20Sopenharmony_ci	PINGROUP(105, mi2s, gsbi11, vfe, _, _, _, _),
8878c2ecf20Sopenharmony_ci	PINGROUP(106, mi2s, gsbi11, vfe, _, _, _, _),
8888c2ecf20Sopenharmony_ci	PINGROUP(107, mi2s, _, _, _, _, _, _),
8898c2ecf20Sopenharmony_ci	PINGROUP(108, i2s, _, _, _, _, _, _),
8908c2ecf20Sopenharmony_ci	PINGROUP(109, i2s, _, _, _, _, _, _),
8918c2ecf20Sopenharmony_ci	PINGROUP(110, i2s, _, _, _, _, _, _),
8928c2ecf20Sopenharmony_ci	PINGROUP(111, pcm, _, _, _, _, _, _),
8938c2ecf20Sopenharmony_ci	PINGROUP(112, pcm, _, _, _, _, _, _),
8948c2ecf20Sopenharmony_ci	PINGROUP(113, pcm, _, _, _, _, _, _),
8958c2ecf20Sopenharmony_ci	PINGROUP(114, pcm, _, _, _, _, _, _),
8968c2ecf20Sopenharmony_ci	PINGROUP(115, i2s, gsbi12, gp_clk_0b, _, _, _, _),
8978c2ecf20Sopenharmony_ci	PINGROUP(116, i2s, gsbi12, _, _, _, _, _),
8988c2ecf20Sopenharmony_ci	PINGROUP(117, i2s, gsbi12, vfe, _, _, _, _),
8998c2ecf20Sopenharmony_ci	PINGROUP(118, i2s, gsbi12, _, _, _, _, _),
9008c2ecf20Sopenharmony_ci	PINGROUP(119, i2s, _, _, _, _, _, _),
9018c2ecf20Sopenharmony_ci	PINGROUP(120, i2s, _, _, _, _, _, _),
9028c2ecf20Sopenharmony_ci	PINGROUP(121, i2s, _, _, _, _, _, _),
9038c2ecf20Sopenharmony_ci	PINGROUP(122, i2s, gp_clk_1b, _, _, _, _, _),
9048c2ecf20Sopenharmony_ci	PINGROUP(123, ebi2, gsbi2_spi_cs1_n, ebi2cs, _, _, _, _),
9058c2ecf20Sopenharmony_ci	PINGROUP(124, ebi2, gsbi2_spi_cs2_n, ebi2cs, _, _, _, _),
9068c2ecf20Sopenharmony_ci	PINGROUP(125, ebi2, gsbi2_spi_cs3_n, _, _, _, _, _),
9078c2ecf20Sopenharmony_ci	PINGROUP(126, ebi2, _, _, _, _, _, _),
9088c2ecf20Sopenharmony_ci	PINGROUP(127, ebi2, vsens_alarm, _, _, _, _, _),
9098c2ecf20Sopenharmony_ci	PINGROUP(128, ebi2, _, _, _, _, _, _),
9108c2ecf20Sopenharmony_ci	PINGROUP(129, ebi2, _, _, _, _, _, _),
9118c2ecf20Sopenharmony_ci	PINGROUP(130, ebi2, _, _, _, _, _, _),
9128c2ecf20Sopenharmony_ci	PINGROUP(131, ebi2cs, _, _, _, _, _, _),
9138c2ecf20Sopenharmony_ci	PINGROUP(132, ebi2cs, _, _, _, _, _, _),
9148c2ecf20Sopenharmony_ci	PINGROUP(133, ebi2cs, _, _, _, _, _, _),
9158c2ecf20Sopenharmony_ci	PINGROUP(134, ebi2cs, _, _, _, _, _, _),
9168c2ecf20Sopenharmony_ci	PINGROUP(135, ebi2, _, _, _, _, _, _),
9178c2ecf20Sopenharmony_ci	PINGROUP(136, ebi2, _, _, _, _, _, _),
9188c2ecf20Sopenharmony_ci	PINGROUP(137, ebi2, _, _, _, _, _, _),
9198c2ecf20Sopenharmony_ci	PINGROUP(138, ebi2, _, _, _, _, _, _),
9208c2ecf20Sopenharmony_ci	PINGROUP(139, ebi2, _, _, _, _, _, _),
9218c2ecf20Sopenharmony_ci	PINGROUP(140, ebi2, _, _, _, _, _, _),
9228c2ecf20Sopenharmony_ci	PINGROUP(141, ebi2, _, _, _, _, _, _),
9238c2ecf20Sopenharmony_ci	PINGROUP(142, ebi2, _, _, _, _, _, _),
9248c2ecf20Sopenharmony_ci	PINGROUP(143, ebi2, sdc2, _, _, _, _, _),
9258c2ecf20Sopenharmony_ci	PINGROUP(144, ebi2, sdc2, _, _, _, _, _),
9268c2ecf20Sopenharmony_ci	PINGROUP(145, ebi2, sdc2, _, _, _, _, _),
9278c2ecf20Sopenharmony_ci	PINGROUP(146, ebi2, sdc2, _, _, _, _, _),
9288c2ecf20Sopenharmony_ci	PINGROUP(147, ebi2, sdc2, _, _, _, _, _),
9298c2ecf20Sopenharmony_ci	PINGROUP(148, ebi2, sdc2, _, _, _, _, _),
9308c2ecf20Sopenharmony_ci	PINGROUP(149, ebi2, sdc2, _, _, _, _, _),
9318c2ecf20Sopenharmony_ci	PINGROUP(150, ebi2, sdc2, _, _, _, _, _),
9328c2ecf20Sopenharmony_ci	PINGROUP(151, ebi2, sdc2, _, _, _, _, _),
9338c2ecf20Sopenharmony_ci	PINGROUP(152, ebi2, sdc2, _, _, _, _, _),
9348c2ecf20Sopenharmony_ci	PINGROUP(153, ebi2, _, _, _, _, _, _),
9358c2ecf20Sopenharmony_ci	PINGROUP(154, ebi2, _, _, _, _, _, _),
9368c2ecf20Sopenharmony_ci	PINGROUP(155, ebi2, _, _, _, _, _, _),
9378c2ecf20Sopenharmony_ci	PINGROUP(156, ebi2, _, _, _, _, _, _),
9388c2ecf20Sopenharmony_ci	PINGROUP(157, ebi2, _, _, _, _, _, _),
9398c2ecf20Sopenharmony_ci	PINGROUP(158, ebi2, _, _, _, _, _, _),
9408c2ecf20Sopenharmony_ci	PINGROUP(159, sdc1, _, _, _, _, _, _),
9418c2ecf20Sopenharmony_ci	PINGROUP(160, sdc1, _, _, _, _, _, _),
9428c2ecf20Sopenharmony_ci	PINGROUP(161, sdc1, _, _, _, _, _, _),
9438c2ecf20Sopenharmony_ci	PINGROUP(162, sdc1, _, _, _, _, _, _),
9448c2ecf20Sopenharmony_ci	PINGROUP(163, sdc1, _, _, _, _, _, _),
9458c2ecf20Sopenharmony_ci	PINGROUP(164, sdc1, _, _, _, _, _, _),
9468c2ecf20Sopenharmony_ci	PINGROUP(165, sdc1, _, _, _, _, _, _),
9478c2ecf20Sopenharmony_ci	PINGROUP(166, sdc1, _, _, _, _, _, _),
9488c2ecf20Sopenharmony_ci	PINGROUP(167, sdc1, _, _, _, _, _, _),
9498c2ecf20Sopenharmony_ci	PINGROUP(168, sdc1, _, _, _, _, _, _),
9508c2ecf20Sopenharmony_ci	PINGROUP(169, hdmi, _, _, _, _, _, _),
9518c2ecf20Sopenharmony_ci	PINGROUP(170, hdmi, _, _, _, _, _, _),
9528c2ecf20Sopenharmony_ci	PINGROUP(171, hdmi, _, _, _, _, _, _),
9538c2ecf20Sopenharmony_ci	PINGROUP(172, hdmi, _, _, _, _, _, _),
9548c2ecf20Sopenharmony_ci
9558c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc4_clk, 0x20a0, -1, 6),
9568c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc4_cmd, 0x20a0, 11, 3),
9578c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc4_data, 0x20a0, 9, 0),
9588c2ecf20Sopenharmony_ci
9598c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc3_clk, 0x20a4, -1, 6),
9608c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc3_cmd, 0x20a4, 11, 3),
9618c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc3_data, 0x20a4, 9, 0),
9628c2ecf20Sopenharmony_ci};
9638c2ecf20Sopenharmony_ci
9648c2ecf20Sopenharmony_ci#define NUM_GPIO_PINGROUPS 173
9658c2ecf20Sopenharmony_ci
9668c2ecf20Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8660_pinctrl = {
9678c2ecf20Sopenharmony_ci	.pins = msm8660_pins,
9688c2ecf20Sopenharmony_ci	.npins = ARRAY_SIZE(msm8660_pins),
9698c2ecf20Sopenharmony_ci	.functions = msm8660_functions,
9708c2ecf20Sopenharmony_ci	.nfunctions = ARRAY_SIZE(msm8660_functions),
9718c2ecf20Sopenharmony_ci	.groups = msm8660_groups,
9728c2ecf20Sopenharmony_ci	.ngroups = ARRAY_SIZE(msm8660_groups),
9738c2ecf20Sopenharmony_ci	.ngpios = NUM_GPIO_PINGROUPS,
9748c2ecf20Sopenharmony_ci};
9758c2ecf20Sopenharmony_ci
9768c2ecf20Sopenharmony_cistatic int msm8660_pinctrl_probe(struct platform_device *pdev)
9778c2ecf20Sopenharmony_ci{
9788c2ecf20Sopenharmony_ci	return msm_pinctrl_probe(pdev, &msm8660_pinctrl);
9798c2ecf20Sopenharmony_ci}
9808c2ecf20Sopenharmony_ci
9818c2ecf20Sopenharmony_cistatic const struct of_device_id msm8660_pinctrl_of_match[] = {
9828c2ecf20Sopenharmony_ci	{ .compatible = "qcom,msm8660-pinctrl", },
9838c2ecf20Sopenharmony_ci	{ },
9848c2ecf20Sopenharmony_ci};
9858c2ecf20Sopenharmony_ci
9868c2ecf20Sopenharmony_cistatic struct platform_driver msm8660_pinctrl_driver = {
9878c2ecf20Sopenharmony_ci	.driver = {
9888c2ecf20Sopenharmony_ci		.name = "msm8660-pinctrl",
9898c2ecf20Sopenharmony_ci		.of_match_table = msm8660_pinctrl_of_match,
9908c2ecf20Sopenharmony_ci	},
9918c2ecf20Sopenharmony_ci	.probe = msm8660_pinctrl_probe,
9928c2ecf20Sopenharmony_ci	.remove = msm_pinctrl_remove,
9938c2ecf20Sopenharmony_ci};
9948c2ecf20Sopenharmony_ci
9958c2ecf20Sopenharmony_cistatic int __init msm8660_pinctrl_init(void)
9968c2ecf20Sopenharmony_ci{
9978c2ecf20Sopenharmony_ci	return platform_driver_register(&msm8660_pinctrl_driver);
9988c2ecf20Sopenharmony_ci}
9998c2ecf20Sopenharmony_ciarch_initcall(msm8660_pinctrl_init);
10008c2ecf20Sopenharmony_ci
10018c2ecf20Sopenharmony_cistatic void __exit msm8660_pinctrl_exit(void)
10028c2ecf20Sopenharmony_ci{
10038c2ecf20Sopenharmony_ci	platform_driver_unregister(&msm8660_pinctrl_driver);
10048c2ecf20Sopenharmony_ci}
10058c2ecf20Sopenharmony_cimodule_exit(msm8660_pinctrl_exit);
10068c2ecf20Sopenharmony_ci
10078c2ecf20Sopenharmony_ciMODULE_AUTHOR("Bjorn Andersson <bjorn.andersson@sonymobile.com>");
10088c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm MSM8660 pinctrl driver");
10098c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2");
10108c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8660_pinctrl_of_match);
1011