18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2014, The Linux Foundation. All rights reserved.
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 apq8084_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
1628c2ecf20Sopenharmony_ci	PINCTRL_PIN(147, "SDC1_CLK"),
1638c2ecf20Sopenharmony_ci	PINCTRL_PIN(148, "SDC1_CMD"),
1648c2ecf20Sopenharmony_ci	PINCTRL_PIN(149, "SDC1_DATA"),
1658c2ecf20Sopenharmony_ci	PINCTRL_PIN(150, "SDC2_CLK"),
1668c2ecf20Sopenharmony_ci	PINCTRL_PIN(151, "SDC2_CMD"),
1678c2ecf20Sopenharmony_ci	PINCTRL_PIN(152, "SDC2_DATA"),
1688c2ecf20Sopenharmony_ci};
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_ci#define DECLARE_APQ_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin }
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(0);
1738c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(1);
1748c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(2);
1758c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(3);
1768c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(4);
1778c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(5);
1788c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(6);
1798c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(7);
1808c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(8);
1818c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(9);
1828c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(10);
1838c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(11);
1848c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(12);
1858c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(13);
1868c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(14);
1878c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(15);
1888c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(16);
1898c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(17);
1908c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(18);
1918c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(19);
1928c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(20);
1938c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(21);
1948c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(22);
1958c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(23);
1968c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(24);
1978c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(25);
1988c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(26);
1998c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(27);
2008c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(28);
2018c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(29);
2028c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(30);
2038c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(31);
2048c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(32);
2058c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(33);
2068c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(34);
2078c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(35);
2088c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(36);
2098c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(37);
2108c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(38);
2118c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(39);
2128c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(40);
2138c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(41);
2148c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(42);
2158c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(43);
2168c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(44);
2178c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(45);
2188c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(46);
2198c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(47);
2208c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(48);
2218c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(49);
2228c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(50);
2238c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(51);
2248c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(52);
2258c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(53);
2268c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(54);
2278c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(55);
2288c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(56);
2298c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(57);
2308c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(58);
2318c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(59);
2328c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(60);
2338c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(61);
2348c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(62);
2358c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(63);
2368c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(64);
2378c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(65);
2388c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(66);
2398c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(67);
2408c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(68);
2418c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(69);
2428c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(70);
2438c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(71);
2448c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(72);
2458c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(73);
2468c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(74);
2478c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(75);
2488c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(76);
2498c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(77);
2508c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(78);
2518c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(79);
2528c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(80);
2538c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(81);
2548c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(82);
2558c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(83);
2568c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(84);
2578c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(85);
2588c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(86);
2598c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(87);
2608c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(88);
2618c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(89);
2628c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(90);
2638c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(91);
2648c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(92);
2658c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(93);
2668c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(94);
2678c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(95);
2688c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(96);
2698c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(97);
2708c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(98);
2718c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(99);
2728c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(100);
2738c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(101);
2748c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(102);
2758c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(103);
2768c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(104);
2778c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(105);
2788c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(106);
2798c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(107);
2808c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(108);
2818c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(109);
2828c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(110);
2838c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(111);
2848c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(112);
2858c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(113);
2868c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(114);
2878c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(115);
2888c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(116);
2898c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(117);
2908c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(118);
2918c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(119);
2928c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(120);
2938c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(121);
2948c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(122);
2958c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(123);
2968c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(124);
2978c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(125);
2988c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(126);
2998c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(127);
3008c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(128);
3018c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(129);
3028c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(130);
3038c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(131);
3048c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(132);
3058c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(133);
3068c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(134);
3078c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(135);
3088c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(136);
3098c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(137);
3108c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(138);
3118c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(139);
3128c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(140);
3138c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(141);
3148c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(142);
3158c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(143);
3168c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(144);
3178c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(145);
3188c2ecf20Sopenharmony_ciDECLARE_APQ_GPIO_PINS(146);
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 147 };
3218c2ecf20Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 148 };
3228c2ecf20Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 149 };
3238c2ecf20Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 150 };
3248c2ecf20Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 151 };
3258c2ecf20Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 152 };
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ci#define FUNCTION(fname)					\
3288c2ecf20Sopenharmony_ci	[APQ_MUX_##fname] = {				\
3298c2ecf20Sopenharmony_ci		.name = #fname,				\
3308c2ecf20Sopenharmony_ci		.groups = fname##_groups,		\
3318c2ecf20Sopenharmony_ci		.ngroups = ARRAY_SIZE(fname##_groups),	\
3328c2ecf20Sopenharmony_ci	}
3338c2ecf20Sopenharmony_ci
3348c2ecf20Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7)        \
3358c2ecf20Sopenharmony_ci	{						\
3368c2ecf20Sopenharmony_ci		.name = "gpio" #id,			\
3378c2ecf20Sopenharmony_ci		.pins = gpio##id##_pins,		\
3388c2ecf20Sopenharmony_ci		.npins = ARRAY_SIZE(gpio##id##_pins),	\
3398c2ecf20Sopenharmony_ci		.funcs = (int[]){			\
3408c2ecf20Sopenharmony_ci			APQ_MUX_gpio,			\
3418c2ecf20Sopenharmony_ci			APQ_MUX_##f1,			\
3428c2ecf20Sopenharmony_ci			APQ_MUX_##f2,			\
3438c2ecf20Sopenharmony_ci			APQ_MUX_##f3,			\
3448c2ecf20Sopenharmony_ci			APQ_MUX_##f4,			\
3458c2ecf20Sopenharmony_ci			APQ_MUX_##f5,			\
3468c2ecf20Sopenharmony_ci			APQ_MUX_##f6,			\
3478c2ecf20Sopenharmony_ci			APQ_MUX_##f7			\
3488c2ecf20Sopenharmony_ci		},					\
3498c2ecf20Sopenharmony_ci		.nfuncs = 8,				\
3508c2ecf20Sopenharmony_ci		.ctl_reg = 0x1000 + 0x10 * id,		\
3518c2ecf20Sopenharmony_ci		.io_reg = 0x1004 + 0x10 * id,		\
3528c2ecf20Sopenharmony_ci		.intr_cfg_reg = 0x1008 + 0x10 * id,	\
3538c2ecf20Sopenharmony_ci		.intr_status_reg = 0x100c + 0x10 * id,	\
3548c2ecf20Sopenharmony_ci		.intr_target_reg = 0x1008 + 0x10 * id,	\
3558c2ecf20Sopenharmony_ci		.mux_bit = 2,				\
3568c2ecf20Sopenharmony_ci		.pull_bit = 0,				\
3578c2ecf20Sopenharmony_ci		.drv_bit = 6,				\
3588c2ecf20Sopenharmony_ci		.oe_bit = 9,				\
3598c2ecf20Sopenharmony_ci		.in_bit = 0,				\
3608c2ecf20Sopenharmony_ci		.out_bit = 1,				\
3618c2ecf20Sopenharmony_ci		.intr_enable_bit = 0,			\
3628c2ecf20Sopenharmony_ci		.intr_status_bit = 0,			\
3638c2ecf20Sopenharmony_ci		.intr_ack_high = 0,			\
3648c2ecf20Sopenharmony_ci		.intr_target_bit = 5,			\
3658c2ecf20Sopenharmony_ci		.intr_target_kpss_val = 3,		\
3668c2ecf20Sopenharmony_ci		.intr_raw_status_bit = 4,		\
3678c2ecf20Sopenharmony_ci		.intr_polarity_bit = 1,			\
3688c2ecf20Sopenharmony_ci		.intr_detection_bit = 2,		\
3698c2ecf20Sopenharmony_ci		.intr_detection_width = 2,		\
3708c2ecf20Sopenharmony_ci	}
3718c2ecf20Sopenharmony_ci
3728c2ecf20Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv)		\
3738c2ecf20Sopenharmony_ci	{						\
3748c2ecf20Sopenharmony_ci		.name = #pg_name,	                \
3758c2ecf20Sopenharmony_ci		.pins = pg_name##_pins,                 \
3768c2ecf20Sopenharmony_ci		.npins = ARRAY_SIZE(pg_name##_pins),    \
3778c2ecf20Sopenharmony_ci		.ctl_reg = ctl,                         \
3788c2ecf20Sopenharmony_ci		.io_reg = 0,                            \
3798c2ecf20Sopenharmony_ci		.intr_cfg_reg = 0,                      \
3808c2ecf20Sopenharmony_ci		.intr_status_reg = 0,                   \
3818c2ecf20Sopenharmony_ci		.intr_target_reg = 0,                   \
3828c2ecf20Sopenharmony_ci		.mux_bit = -1,                          \
3838c2ecf20Sopenharmony_ci		.pull_bit = pull,                       \
3848c2ecf20Sopenharmony_ci		.drv_bit = drv,                         \
3858c2ecf20Sopenharmony_ci		.oe_bit = -1,                           \
3868c2ecf20Sopenharmony_ci		.in_bit = -1,                           \
3878c2ecf20Sopenharmony_ci		.out_bit = -1,                          \
3888c2ecf20Sopenharmony_ci		.intr_enable_bit = -1,                  \
3898c2ecf20Sopenharmony_ci		.intr_status_bit = -1,                  \
3908c2ecf20Sopenharmony_ci		.intr_target_bit = -1,                  \
3918c2ecf20Sopenharmony_ci		.intr_target_kpss_val = -1,		\
3928c2ecf20Sopenharmony_ci		.intr_raw_status_bit = -1,              \
3938c2ecf20Sopenharmony_ci		.intr_polarity_bit = -1,                \
3948c2ecf20Sopenharmony_ci		.intr_detection_bit = -1,               \
3958c2ecf20Sopenharmony_ci		.intr_detection_width = -1,             \
3968c2ecf20Sopenharmony_ci	}
3978c2ecf20Sopenharmony_ci
3988c2ecf20Sopenharmony_cienum apq8084_functions {
3998c2ecf20Sopenharmony_ci	APQ_MUX_adsp_ext,
4008c2ecf20Sopenharmony_ci	APQ_MUX_audio_ref,
4018c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c1,
4028c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c2,
4038c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c3,
4048c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c4,
4058c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c5,
4068c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c6,
4078c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c7,
4088c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c8,
4098c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c9,
4108c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c10,
4118c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c11,
4128c2ecf20Sopenharmony_ci	APQ_MUX_blsp_i2c12,
4138c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi1,
4148c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi1_cs1,
4158c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi1_cs2,
4168c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi1_cs3,
4178c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi2,
4188c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi3,
4198c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi3_cs1,
4208c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi3_cs2,
4218c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi3_cs3,
4228c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi4,
4238c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi5,
4248c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi6,
4258c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi7,
4268c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi8,
4278c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi9,
4288c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi10,
4298c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi10_cs1,
4308c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi10_cs2,
4318c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi10_cs3,
4328c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi11,
4338c2ecf20Sopenharmony_ci	APQ_MUX_blsp_spi12,
4348c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart1,
4358c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart2,
4368c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart3,
4378c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart4,
4388c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart5,
4398c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart6,
4408c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart7,
4418c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart8,
4428c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart9,
4438c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart10,
4448c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart11,
4458c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uart12,
4468c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim1,
4478c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim2,
4488c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim3,
4498c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim4,
4508c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim5,
4518c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim6,
4528c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim7,
4538c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim8,
4548c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim9,
4558c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim10,
4568c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim11,
4578c2ecf20Sopenharmony_ci	APQ_MUX_blsp_uim12,
4588c2ecf20Sopenharmony_ci	APQ_MUX_cam_mclk0,
4598c2ecf20Sopenharmony_ci	APQ_MUX_cam_mclk1,
4608c2ecf20Sopenharmony_ci	APQ_MUX_cam_mclk2,
4618c2ecf20Sopenharmony_ci	APQ_MUX_cam_mclk3,
4628c2ecf20Sopenharmony_ci	APQ_MUX_cci_async,
4638c2ecf20Sopenharmony_ci	APQ_MUX_cci_async_in0,
4648c2ecf20Sopenharmony_ci	APQ_MUX_cci_i2c0,
4658c2ecf20Sopenharmony_ci	APQ_MUX_cci_i2c1,
4668c2ecf20Sopenharmony_ci	APQ_MUX_cci_timer0,
4678c2ecf20Sopenharmony_ci	APQ_MUX_cci_timer1,
4688c2ecf20Sopenharmony_ci	APQ_MUX_cci_timer2,
4698c2ecf20Sopenharmony_ci	APQ_MUX_cci_timer3,
4708c2ecf20Sopenharmony_ci	APQ_MUX_cci_timer4,
4718c2ecf20Sopenharmony_ci	APQ_MUX_edp_hpd,
4728c2ecf20Sopenharmony_ci	APQ_MUX_gcc_gp1,
4738c2ecf20Sopenharmony_ci	APQ_MUX_gcc_gp2,
4748c2ecf20Sopenharmony_ci	APQ_MUX_gcc_gp3,
4758c2ecf20Sopenharmony_ci	APQ_MUX_gcc_obt,
4768c2ecf20Sopenharmony_ci	APQ_MUX_gcc_vtt,
4778c2ecf20Sopenharmony_ci	APQ_MUX_gp_mn,
4788c2ecf20Sopenharmony_ci	APQ_MUX_gp_pdm0,
4798c2ecf20Sopenharmony_ci	APQ_MUX_gp_pdm1,
4808c2ecf20Sopenharmony_ci	APQ_MUX_gp_pdm2,
4818c2ecf20Sopenharmony_ci	APQ_MUX_gp0_clk,
4828c2ecf20Sopenharmony_ci	APQ_MUX_gp1_clk,
4838c2ecf20Sopenharmony_ci	APQ_MUX_gpio,
4848c2ecf20Sopenharmony_ci	APQ_MUX_hdmi_cec,
4858c2ecf20Sopenharmony_ci	APQ_MUX_hdmi_ddc,
4868c2ecf20Sopenharmony_ci	APQ_MUX_hdmi_dtest,
4878c2ecf20Sopenharmony_ci	APQ_MUX_hdmi_hpd,
4888c2ecf20Sopenharmony_ci	APQ_MUX_hdmi_rcv,
4898c2ecf20Sopenharmony_ci	APQ_MUX_hsic,
4908c2ecf20Sopenharmony_ci	APQ_MUX_ldo_en,
4918c2ecf20Sopenharmony_ci	APQ_MUX_ldo_update,
4928c2ecf20Sopenharmony_ci	APQ_MUX_mdp_vsync,
4938c2ecf20Sopenharmony_ci	APQ_MUX_pci_e0,
4948c2ecf20Sopenharmony_ci	APQ_MUX_pci_e0_n,
4958c2ecf20Sopenharmony_ci	APQ_MUX_pci_e0_rst,
4968c2ecf20Sopenharmony_ci	APQ_MUX_pci_e1,
4978c2ecf20Sopenharmony_ci	APQ_MUX_pci_e1_rst,
4988c2ecf20Sopenharmony_ci	APQ_MUX_pci_e1_rst_n,
4998c2ecf20Sopenharmony_ci	APQ_MUX_pci_e1_clkreq_n,
5008c2ecf20Sopenharmony_ci	APQ_MUX_pri_mi2s,
5018c2ecf20Sopenharmony_ci	APQ_MUX_qua_mi2s,
5028c2ecf20Sopenharmony_ci	APQ_MUX_sata_act,
5038c2ecf20Sopenharmony_ci	APQ_MUX_sata_devsleep,
5048c2ecf20Sopenharmony_ci	APQ_MUX_sata_devsleep_n,
5058c2ecf20Sopenharmony_ci	APQ_MUX_sd_write,
5068c2ecf20Sopenharmony_ci	APQ_MUX_sdc_emmc_mode,
5078c2ecf20Sopenharmony_ci	APQ_MUX_sdc3,
5088c2ecf20Sopenharmony_ci	APQ_MUX_sdc4,
5098c2ecf20Sopenharmony_ci	APQ_MUX_sec_mi2s,
5108c2ecf20Sopenharmony_ci	APQ_MUX_slimbus,
5118c2ecf20Sopenharmony_ci	APQ_MUX_spdif_tx,
5128c2ecf20Sopenharmony_ci	APQ_MUX_spkr_i2s,
5138c2ecf20Sopenharmony_ci	APQ_MUX_spkr_i2s_ws,
5148c2ecf20Sopenharmony_ci	APQ_MUX_spss_geni,
5158c2ecf20Sopenharmony_ci	APQ_MUX_ter_mi2s,
5168c2ecf20Sopenharmony_ci	APQ_MUX_tsif1,
5178c2ecf20Sopenharmony_ci	APQ_MUX_tsif2,
5188c2ecf20Sopenharmony_ci	APQ_MUX_uim,
5198c2ecf20Sopenharmony_ci	APQ_MUX_uim_batt_alarm,
5208c2ecf20Sopenharmony_ci	APQ_MUX_NA,
5218c2ecf20Sopenharmony_ci};
5228c2ecf20Sopenharmony_ci
5238c2ecf20Sopenharmony_cistatic const char * const gpio_groups[] = {
5248c2ecf20Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
5258c2ecf20Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
5268c2ecf20Sopenharmony_ci	"gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
5278c2ecf20Sopenharmony_ci	"gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
5288c2ecf20Sopenharmony_ci	"gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
5298c2ecf20Sopenharmony_ci	"gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
5308c2ecf20Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
5318c2ecf20Sopenharmony_ci	"gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
5328c2ecf20Sopenharmony_ci	"gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
5338c2ecf20Sopenharmony_ci	"gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
5348c2ecf20Sopenharmony_ci	"gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
5358c2ecf20Sopenharmony_ci	"gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
5368c2ecf20Sopenharmony_ci	"gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
5378c2ecf20Sopenharmony_ci	"gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
5388c2ecf20Sopenharmony_ci	"gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
5398c2ecf20Sopenharmony_ci	"gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
5408c2ecf20Sopenharmony_ci	"gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
5418c2ecf20Sopenharmony_ci	"gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
5428c2ecf20Sopenharmony_ci	"gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
5438c2ecf20Sopenharmony_ci	"gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
5448c2ecf20Sopenharmony_ci	"gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
5458c2ecf20Sopenharmony_ci	"gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146"
5468c2ecf20Sopenharmony_ci};
5478c2ecf20Sopenharmony_ci
5488c2ecf20Sopenharmony_cistatic const char * const adsp_ext_groups[] = {
5498c2ecf20Sopenharmony_ci	"gpio34"
5508c2ecf20Sopenharmony_ci};
5518c2ecf20Sopenharmony_cistatic const char * const audio_ref_groups[] = {
5528c2ecf20Sopenharmony_ci	"gpio100"
5538c2ecf20Sopenharmony_ci};
5548c2ecf20Sopenharmony_cistatic const char * const blsp_i2c1_groups[] = {
5558c2ecf20Sopenharmony_ci	"gpio2", "gpio3"
5568c2ecf20Sopenharmony_ci};
5578c2ecf20Sopenharmony_cistatic const char * const blsp_i2c2_groups[] = {
5588c2ecf20Sopenharmony_ci	"gpio6", "gpio7"
5598c2ecf20Sopenharmony_ci};
5608c2ecf20Sopenharmony_cistatic const char * const blsp_i2c3_groups[] = {
5618c2ecf20Sopenharmony_ci	"gpio10", "gpio11"
5628c2ecf20Sopenharmony_ci};
5638c2ecf20Sopenharmony_cistatic const char * const blsp_i2c4_groups[] = {
5648c2ecf20Sopenharmony_ci	"gpio29", "gpio30"
5658c2ecf20Sopenharmony_ci};
5668c2ecf20Sopenharmony_cistatic const char * const blsp_i2c5_groups[] = {
5678c2ecf20Sopenharmony_ci	"gpio41", "gpio42"
5688c2ecf20Sopenharmony_ci};
5698c2ecf20Sopenharmony_cistatic const char * const blsp_i2c6_groups[] = {
5708c2ecf20Sopenharmony_ci	"gpio45", "gpio46"
5718c2ecf20Sopenharmony_ci};
5728c2ecf20Sopenharmony_cistatic const char * const blsp_i2c7_groups[] = {
5738c2ecf20Sopenharmony_ci	"gpio132", "gpio133"
5748c2ecf20Sopenharmony_ci};
5758c2ecf20Sopenharmony_cistatic const char * const blsp_i2c8_groups[] = {
5768c2ecf20Sopenharmony_ci	"gpio53", "gpio54"
5778c2ecf20Sopenharmony_ci};
5788c2ecf20Sopenharmony_cistatic const char * const blsp_i2c9_groups[] = {
5798c2ecf20Sopenharmony_ci	"gpio57", "gpio58"
5808c2ecf20Sopenharmony_ci};
5818c2ecf20Sopenharmony_cistatic const char * const blsp_i2c10_groups[] = {
5828c2ecf20Sopenharmony_ci	"gpio61", "gpio62"
5838c2ecf20Sopenharmony_ci};
5848c2ecf20Sopenharmony_cistatic const char * const blsp_i2c11_groups[] = {
5858c2ecf20Sopenharmony_ci	"gpio65", "gpio66"
5868c2ecf20Sopenharmony_ci};
5878c2ecf20Sopenharmony_cistatic const char * const blsp_i2c12_groups[] = {
5888c2ecf20Sopenharmony_ci	"gpio49", "gpio50"
5898c2ecf20Sopenharmony_ci};
5908c2ecf20Sopenharmony_cistatic const char * const blsp_spi1_groups[] = {
5918c2ecf20Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3"
5928c2ecf20Sopenharmony_ci};
5938c2ecf20Sopenharmony_cistatic const char * const blsp_spi2_groups[] = {
5948c2ecf20Sopenharmony_ci	"gpio4", "gpio5", "gpio6", "gpio7"
5958c2ecf20Sopenharmony_ci};
5968c2ecf20Sopenharmony_cistatic const char * const blsp_spi3_groups[] = {
5978c2ecf20Sopenharmony_ci	"gpio8", "gpio9", "gpio10", "gpio11"
5988c2ecf20Sopenharmony_ci};
5998c2ecf20Sopenharmony_cistatic const char * const blsp_spi4_groups[] = {
6008c2ecf20Sopenharmony_ci	"gpio27", "gpio28", "gpio29", "gpio30"
6018c2ecf20Sopenharmony_ci};
6028c2ecf20Sopenharmony_cistatic const char * const blsp_spi5_groups[] = {
6038c2ecf20Sopenharmony_ci	"gpio39", "gpio40", "gpio41", "gpio42"
6048c2ecf20Sopenharmony_ci};
6058c2ecf20Sopenharmony_cistatic const char * const blsp_spi6_groups[] = {
6068c2ecf20Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46"
6078c2ecf20Sopenharmony_ci};
6088c2ecf20Sopenharmony_cistatic const char * const blsp_spi7_groups[] = {
6098c2ecf20Sopenharmony_ci	"gpio130", "gpio131", "gpio132", "gpio133"
6108c2ecf20Sopenharmony_ci};
6118c2ecf20Sopenharmony_cistatic const char * const blsp_spi8_groups[] = {
6128c2ecf20Sopenharmony_ci	"gpio51", "gpio52", "gpio53", "gpio54"
6138c2ecf20Sopenharmony_ci};
6148c2ecf20Sopenharmony_cistatic const char * const blsp_spi9_groups[] = {
6158c2ecf20Sopenharmony_ci	"gpio55", "gpio56", "gpio57", "gpio58"
6168c2ecf20Sopenharmony_ci};
6178c2ecf20Sopenharmony_cistatic const char * const blsp_spi10_groups[] = {
6188c2ecf20Sopenharmony_ci	"gpio59", "gpio60", "gpio61", "gpio62"
6198c2ecf20Sopenharmony_ci};
6208c2ecf20Sopenharmony_cistatic const char * const blsp_spi11_groups[] = {
6218c2ecf20Sopenharmony_ci	"gpio63", "gpio64", "gpio65", "gpio66"
6228c2ecf20Sopenharmony_ci};
6238c2ecf20Sopenharmony_cistatic const char * const blsp_spi12_groups[] = {
6248c2ecf20Sopenharmony_ci	"gpio47", "gpio48", "gpio49", "gpio50"
6258c2ecf20Sopenharmony_ci};
6268c2ecf20Sopenharmony_cistatic const char * const blsp_uart1_groups[] = {
6278c2ecf20Sopenharmony_ci	"gpio0", "gpio1", "gpio2", "gpio3"
6288c2ecf20Sopenharmony_ci};
6298c2ecf20Sopenharmony_cistatic const char * const blsp_uart2_groups[] = {
6308c2ecf20Sopenharmony_ci	"gpio4", "gpio5", "gpio6", "gpio7"
6318c2ecf20Sopenharmony_ci};
6328c2ecf20Sopenharmony_cistatic const char * const blsp_uart3_groups[] = {
6338c2ecf20Sopenharmony_ci	"gpio8"
6348c2ecf20Sopenharmony_ci};
6358c2ecf20Sopenharmony_cistatic const char * const blsp_uart4_groups[] = {
6368c2ecf20Sopenharmony_ci	"gpio27", "gpio28", "gpio29", "gpio30"
6378c2ecf20Sopenharmony_ci};
6388c2ecf20Sopenharmony_cistatic const char * const blsp_uart5_groups[] = {
6398c2ecf20Sopenharmony_ci	"gpio39", "gpio40", "gpio41", "gpio42"
6408c2ecf20Sopenharmony_ci};
6418c2ecf20Sopenharmony_cistatic const char * const blsp_uart6_groups[] = {
6428c2ecf20Sopenharmony_ci	"gpio43", "gpio44", "gpio45", "gpio46"
6438c2ecf20Sopenharmony_ci};
6448c2ecf20Sopenharmony_cistatic const char * const blsp_uart7_groups[] = {
6458c2ecf20Sopenharmony_ci	"gpio130", "gpio131", "gpio132", "gpio133"
6468c2ecf20Sopenharmony_ci};
6478c2ecf20Sopenharmony_cistatic const char * const blsp_uart8_groups[] = {
6488c2ecf20Sopenharmony_ci	"gpio51", "gpio52", "gpio53", "gpio54"
6498c2ecf20Sopenharmony_ci};
6508c2ecf20Sopenharmony_cistatic const char * const blsp_uart9_groups[] = {
6518c2ecf20Sopenharmony_ci	"gpio55", "gpio56", "gpio57", "gpio58"
6528c2ecf20Sopenharmony_ci};
6538c2ecf20Sopenharmony_cistatic const char * const blsp_uart10_groups[] = {
6548c2ecf20Sopenharmony_ci	"gpio59", "gpio60", "gpio61", "gpio62"
6558c2ecf20Sopenharmony_ci};
6568c2ecf20Sopenharmony_cistatic const char * const blsp_uart11_groups[] = {
6578c2ecf20Sopenharmony_ci	"gpio63", "gpio64", "gpio65", "gpio66"
6588c2ecf20Sopenharmony_ci};
6598c2ecf20Sopenharmony_cistatic const char * const blsp_uart12_groups[] = {
6608c2ecf20Sopenharmony_ci	"gpio47", "gpio48", "gpio49", "gpio50"
6618c2ecf20Sopenharmony_ci};
6628c2ecf20Sopenharmony_cistatic const char * const blsp_uim1_groups[] = {
6638c2ecf20Sopenharmony_ci	"gpio0", "gpio1"
6648c2ecf20Sopenharmony_ci};
6658c2ecf20Sopenharmony_cistatic const char * const blsp_uim2_groups[] = {
6668c2ecf20Sopenharmony_ci	"gpio4", "gpio5"
6678c2ecf20Sopenharmony_ci};
6688c2ecf20Sopenharmony_cistatic const char * const blsp_uim3_groups[] = {
6698c2ecf20Sopenharmony_ci	"gpio8", "gpio9"
6708c2ecf20Sopenharmony_ci};
6718c2ecf20Sopenharmony_cistatic const char * const blsp_uim4_groups[] = {
6728c2ecf20Sopenharmony_ci	"gpio27", "gpio28"
6738c2ecf20Sopenharmony_ci};
6748c2ecf20Sopenharmony_cistatic const char * const blsp_uim5_groups[] = {
6758c2ecf20Sopenharmony_ci	"gpio39", "gpio40"
6768c2ecf20Sopenharmony_ci};
6778c2ecf20Sopenharmony_cistatic const char * const blsp_uim6_groups[] = {
6788c2ecf20Sopenharmony_ci	"gpio43", "gpio44"
6798c2ecf20Sopenharmony_ci};
6808c2ecf20Sopenharmony_cistatic const char * const blsp_uim7_groups[] = {
6818c2ecf20Sopenharmony_ci	"gpio130", "gpio131"
6828c2ecf20Sopenharmony_ci};
6838c2ecf20Sopenharmony_cistatic const char * const blsp_uim8_groups[] = {
6848c2ecf20Sopenharmony_ci	"gpio51", "gpio52"
6858c2ecf20Sopenharmony_ci};
6868c2ecf20Sopenharmony_cistatic const char * const blsp_uim9_groups[] = {
6878c2ecf20Sopenharmony_ci	"gpio55", "gpio56"
6888c2ecf20Sopenharmony_ci};
6898c2ecf20Sopenharmony_cistatic const char * const blsp_uim10_groups[] = {
6908c2ecf20Sopenharmony_ci	"gpio59", "gpio60"
6918c2ecf20Sopenharmony_ci};
6928c2ecf20Sopenharmony_cistatic const char * const blsp_uim11_groups[] = {
6938c2ecf20Sopenharmony_ci	"gpio63", "gpio64"
6948c2ecf20Sopenharmony_ci};
6958c2ecf20Sopenharmony_cistatic const char * const blsp_uim12_groups[] = {
6968c2ecf20Sopenharmony_ci	"gpio47", "gpio48"
6978c2ecf20Sopenharmony_ci};
6988c2ecf20Sopenharmony_cistatic const char * const blsp_spi1_cs1_groups[] = {
6998c2ecf20Sopenharmony_ci	"gpio116"
7008c2ecf20Sopenharmony_ci};
7018c2ecf20Sopenharmony_cistatic const char * const blsp_spi1_cs2_groups[] = {
7028c2ecf20Sopenharmony_ci	"gpio117"
7038c2ecf20Sopenharmony_ci};
7048c2ecf20Sopenharmony_cistatic const char * const blsp_spi1_cs3_groups[] = {
7058c2ecf20Sopenharmony_ci	"gpio118"
7068c2ecf20Sopenharmony_ci};
7078c2ecf20Sopenharmony_cistatic const char * const blsp_spi3_cs1_groups[] = {
7088c2ecf20Sopenharmony_ci	"gpio67"
7098c2ecf20Sopenharmony_ci};
7108c2ecf20Sopenharmony_cistatic const char * const blsp_spi3_cs2_groups[] = {
7118c2ecf20Sopenharmony_ci	"gpio71"
7128c2ecf20Sopenharmony_ci};
7138c2ecf20Sopenharmony_cistatic const char * const blsp_spi3_cs3_groups[] = {
7148c2ecf20Sopenharmony_ci	"gpio72"
7158c2ecf20Sopenharmony_ci};
7168c2ecf20Sopenharmony_cistatic const char * const blsp_spi10_cs1_groups[] = {
7178c2ecf20Sopenharmony_ci	"gpio106"
7188c2ecf20Sopenharmony_ci};
7198c2ecf20Sopenharmony_cistatic const char * const blsp_spi10_cs2_groups[] = {
7208c2ecf20Sopenharmony_ci	"gpio111"
7218c2ecf20Sopenharmony_ci};
7228c2ecf20Sopenharmony_cistatic const char * const blsp_spi10_cs3_groups[] = {
7238c2ecf20Sopenharmony_ci	"gpio128"
7248c2ecf20Sopenharmony_ci};
7258c2ecf20Sopenharmony_cistatic const char * const cam_mclk0_groups[] = {
7268c2ecf20Sopenharmony_ci	"gpio15"
7278c2ecf20Sopenharmony_ci};
7288c2ecf20Sopenharmony_cistatic const char * const cam_mclk1_groups[] = {
7298c2ecf20Sopenharmony_ci	"gpio16"
7308c2ecf20Sopenharmony_ci};
7318c2ecf20Sopenharmony_cistatic const char * const cam_mclk2_groups[] = {
7328c2ecf20Sopenharmony_ci	"gpio17"
7338c2ecf20Sopenharmony_ci};
7348c2ecf20Sopenharmony_cistatic const char * const cam_mclk3_groups[] = {
7358c2ecf20Sopenharmony_ci	"gpio18"
7368c2ecf20Sopenharmony_ci};
7378c2ecf20Sopenharmony_cistatic const char * const cci_async_groups[] = {
7388c2ecf20Sopenharmony_ci	"gpio26", "gpio119"
7398c2ecf20Sopenharmony_ci};
7408c2ecf20Sopenharmony_cistatic const char * const cci_async_in0_groups[] = {
7418c2ecf20Sopenharmony_ci	"gpio120"
7428c2ecf20Sopenharmony_ci};
7438c2ecf20Sopenharmony_cistatic const char * const cci_i2c0_groups[] = {
7448c2ecf20Sopenharmony_ci	"gpio19", "gpio20"
7458c2ecf20Sopenharmony_ci};
7468c2ecf20Sopenharmony_cistatic const char * const cci_i2c1_groups[] = {
7478c2ecf20Sopenharmony_ci	"gpio21", "gpio22"
7488c2ecf20Sopenharmony_ci};
7498c2ecf20Sopenharmony_cistatic const char * const cci_timer0_groups[] = {
7508c2ecf20Sopenharmony_ci	"gpio23"
7518c2ecf20Sopenharmony_ci};
7528c2ecf20Sopenharmony_cistatic const char * const cci_timer1_groups[] = {
7538c2ecf20Sopenharmony_ci	"gpio24"
7548c2ecf20Sopenharmony_ci};
7558c2ecf20Sopenharmony_cistatic const char * const cci_timer2_groups[] = {
7568c2ecf20Sopenharmony_ci	"gpio25"
7578c2ecf20Sopenharmony_ci};
7588c2ecf20Sopenharmony_cistatic const char * const cci_timer3_groups[] = {
7598c2ecf20Sopenharmony_ci	"gpio26"
7608c2ecf20Sopenharmony_ci};
7618c2ecf20Sopenharmony_cistatic const char * const cci_timer4_groups[] = {
7628c2ecf20Sopenharmony_ci	"gpio119"
7638c2ecf20Sopenharmony_ci};
7648c2ecf20Sopenharmony_cistatic const char * const edp_hpd_groups[] = {
7658c2ecf20Sopenharmony_ci	"gpio103"
7668c2ecf20Sopenharmony_ci};
7678c2ecf20Sopenharmony_cistatic const char * const gcc_gp1_groups[] = {
7688c2ecf20Sopenharmony_ci	"gpio37"
7698c2ecf20Sopenharmony_ci};
7708c2ecf20Sopenharmony_cistatic const char * const gcc_gp2_groups[] = {
7718c2ecf20Sopenharmony_ci	"gpio38"
7728c2ecf20Sopenharmony_ci};
7738c2ecf20Sopenharmony_cistatic const char * const gcc_gp3_groups[] = {
7748c2ecf20Sopenharmony_ci	"gpio86"
7758c2ecf20Sopenharmony_ci};
7768c2ecf20Sopenharmony_cistatic const char * const gcc_obt_groups[] = {
7778c2ecf20Sopenharmony_ci	"gpio127"
7788c2ecf20Sopenharmony_ci};
7798c2ecf20Sopenharmony_cistatic const char * const gcc_vtt_groups[] = {
7808c2ecf20Sopenharmony_ci	"gpio126"
7818c2ecf20Sopenharmony_ci};
7828c2ecf20Sopenharmony_cistatic const char * const gp_mn_groups[] = {
7838c2ecf20Sopenharmony_ci	"gpio29"
7848c2ecf20Sopenharmony_ci};
7858c2ecf20Sopenharmony_cistatic const char * const gp_pdm0_groups[] = {
7868c2ecf20Sopenharmony_ci	"gpio48", "gpio83"
7878c2ecf20Sopenharmony_ci};
7888c2ecf20Sopenharmony_cistatic const char * const gp_pdm1_groups[] = {
7898c2ecf20Sopenharmony_ci	"gpio84", "gpio101"
7908c2ecf20Sopenharmony_ci};
7918c2ecf20Sopenharmony_cistatic const char * const gp_pdm2_groups[] = {
7928c2ecf20Sopenharmony_ci	"gpio85", "gpio110"
7938c2ecf20Sopenharmony_ci};
7948c2ecf20Sopenharmony_cistatic const char * const gp0_clk_groups[] = {
7958c2ecf20Sopenharmony_ci	"gpio25"
7968c2ecf20Sopenharmony_ci};
7978c2ecf20Sopenharmony_cistatic const char * const gp1_clk_groups[] = {
7988c2ecf20Sopenharmony_ci	"gpio26"
7998c2ecf20Sopenharmony_ci};
8008c2ecf20Sopenharmony_cistatic const char * const hdmi_cec_groups[] = {
8018c2ecf20Sopenharmony_ci	"gpio31"
8028c2ecf20Sopenharmony_ci};
8038c2ecf20Sopenharmony_cistatic const char * const hdmi_ddc_groups[] = {
8048c2ecf20Sopenharmony_ci	"gpio32", "gpio33"
8058c2ecf20Sopenharmony_ci};
8068c2ecf20Sopenharmony_cistatic const char * const hdmi_dtest_groups[] = {
8078c2ecf20Sopenharmony_ci	"gpio123"
8088c2ecf20Sopenharmony_ci};
8098c2ecf20Sopenharmony_cistatic const char * const hdmi_hpd_groups[] = {
8108c2ecf20Sopenharmony_ci	"gpio34"
8118c2ecf20Sopenharmony_ci};
8128c2ecf20Sopenharmony_cistatic const char * const hdmi_rcv_groups[] = {
8138c2ecf20Sopenharmony_ci	"gpio125"
8148c2ecf20Sopenharmony_ci};
8158c2ecf20Sopenharmony_cistatic const char * const hsic_groups[] = {
8168c2ecf20Sopenharmony_ci	"gpio134", "gpio135"
8178c2ecf20Sopenharmony_ci};
8188c2ecf20Sopenharmony_cistatic const char * const ldo_en_groups[] = {
8198c2ecf20Sopenharmony_ci	"gpio124"
8208c2ecf20Sopenharmony_ci};
8218c2ecf20Sopenharmony_cistatic const char * const ldo_update_groups[] = {
8228c2ecf20Sopenharmony_ci	"gpio125"
8238c2ecf20Sopenharmony_ci};
8248c2ecf20Sopenharmony_cistatic const char * const mdp_vsync_groups[] = {
8258c2ecf20Sopenharmony_ci	"gpio12", "gpio13", "gpio14"
8268c2ecf20Sopenharmony_ci};
8278c2ecf20Sopenharmony_cistatic const char * const pci_e0_groups[] = {
8288c2ecf20Sopenharmony_ci	"gpio68", "gpio70"
8298c2ecf20Sopenharmony_ci};
8308c2ecf20Sopenharmony_cistatic const char * const pci_e0_n_groups[] = {
8318c2ecf20Sopenharmony_ci	"gpio68", "gpio70"
8328c2ecf20Sopenharmony_ci};
8338c2ecf20Sopenharmony_cistatic const char * const pci_e0_rst_groups[] = {
8348c2ecf20Sopenharmony_ci	"gpio70"
8358c2ecf20Sopenharmony_ci};
8368c2ecf20Sopenharmony_cistatic const char * const pci_e1_groups[] = {
8378c2ecf20Sopenharmony_ci	"gpio140"
8388c2ecf20Sopenharmony_ci};
8398c2ecf20Sopenharmony_cistatic const char * const pci_e1_rst_groups[] = {
8408c2ecf20Sopenharmony_ci	"gpio140"
8418c2ecf20Sopenharmony_ci};
8428c2ecf20Sopenharmony_cistatic const char * const pci_e1_rst_n_groups[] = {
8438c2ecf20Sopenharmony_ci	"gpio140"
8448c2ecf20Sopenharmony_ci};
8458c2ecf20Sopenharmony_cistatic const char * const pci_e1_clkreq_n_groups[] = {
8468c2ecf20Sopenharmony_ci	"gpio141"
8478c2ecf20Sopenharmony_ci};
8488c2ecf20Sopenharmony_cistatic const char * const pri_mi2s_groups[] = {
8498c2ecf20Sopenharmony_ci	"gpio76", "gpio77", "gpio78", "gpio79", "gpio80"
8508c2ecf20Sopenharmony_ci};
8518c2ecf20Sopenharmony_cistatic const char * const qua_mi2s_groups[] = {
8528c2ecf20Sopenharmony_ci	"gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97"
8538c2ecf20Sopenharmony_ci};
8548c2ecf20Sopenharmony_cistatic const char * const sata_act_groups[] = {
8558c2ecf20Sopenharmony_ci	"gpio129"
8568c2ecf20Sopenharmony_ci};
8578c2ecf20Sopenharmony_cistatic const char * const sata_devsleep_groups[] = {
8588c2ecf20Sopenharmony_ci	"gpio119"
8598c2ecf20Sopenharmony_ci};
8608c2ecf20Sopenharmony_cistatic const char * const sata_devsleep_n_groups[] = {
8618c2ecf20Sopenharmony_ci	"gpio119"
8628c2ecf20Sopenharmony_ci};
8638c2ecf20Sopenharmony_cistatic const char * const sd_write_groups[] = {
8648c2ecf20Sopenharmony_ci	"gpio75"
8658c2ecf20Sopenharmony_ci};
8668c2ecf20Sopenharmony_cistatic const char * const sdc_emmc_mode_groups[] = {
8678c2ecf20Sopenharmony_ci	"gpio146"
8688c2ecf20Sopenharmony_ci};
8698c2ecf20Sopenharmony_cistatic const char * const sdc3_groups[] = {
8708c2ecf20Sopenharmony_ci	"gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72"
8718c2ecf20Sopenharmony_ci};
8728c2ecf20Sopenharmony_cistatic const char * const sdc4_groups[] = {
8738c2ecf20Sopenharmony_ci	"gpio82", "gpio83", "gpio84", "gpio85", "gpio86",
8748c2ecf20Sopenharmony_ci	"gpio91", "gpio95", "gpio96", "gpio97", "gpio101"
8758c2ecf20Sopenharmony_ci};
8768c2ecf20Sopenharmony_cistatic const char * const sec_mi2s_groups[] = {
8778c2ecf20Sopenharmony_ci	"gpio81", "gpio82", "gpio83", "gpio84", "gpio85"
8788c2ecf20Sopenharmony_ci};
8798c2ecf20Sopenharmony_cistatic const char * const slimbus_groups[] = {
8808c2ecf20Sopenharmony_ci	"gpio98", "gpio99"
8818c2ecf20Sopenharmony_ci};
8828c2ecf20Sopenharmony_cistatic const char * const spdif_tx_groups[] = {
8838c2ecf20Sopenharmony_ci	"gpio124", "gpio136", "gpio142"
8848c2ecf20Sopenharmony_ci};
8858c2ecf20Sopenharmony_cistatic const char * const spkr_i2s_groups[] = {
8868c2ecf20Sopenharmony_ci	"gpio98", "gpio99", "gpio100"
8878c2ecf20Sopenharmony_ci};
8888c2ecf20Sopenharmony_cistatic const char * const spkr_i2s_ws_groups[] = {
8898c2ecf20Sopenharmony_ci	"gpio104"
8908c2ecf20Sopenharmony_ci};
8918c2ecf20Sopenharmony_cistatic const char * const spss_geni_groups[] = {
8928c2ecf20Sopenharmony_ci	"gpio8", "gpio9"
8938c2ecf20Sopenharmony_ci};
8948c2ecf20Sopenharmony_cistatic const char * const ter_mi2s_groups[] = {
8958c2ecf20Sopenharmony_ci	"gpio86", "gpio87", "gpio88", "gpio89", "gpio90"
8968c2ecf20Sopenharmony_ci};
8978c2ecf20Sopenharmony_cistatic const char * const tsif1_groups[] = {
8988c2ecf20Sopenharmony_ci	"gpio82", "gpio83", "gpio84", "gpio85", "gpio86"
8998c2ecf20Sopenharmony_ci};
9008c2ecf20Sopenharmony_cistatic const char * const tsif2_groups[] = {
9018c2ecf20Sopenharmony_ci	"gpio91", "gpio95", "gpio96", "gpio97", "gpio101"
9028c2ecf20Sopenharmony_ci};
9038c2ecf20Sopenharmony_cistatic const char * const uim_groups[] = {
9048c2ecf20Sopenharmony_ci	"gpio130", "gpio131", "gpio132", "gpio133"
9058c2ecf20Sopenharmony_ci};
9068c2ecf20Sopenharmony_cistatic const char * const uim_batt_alarm_groups[] = {
9078c2ecf20Sopenharmony_ci	"gpio102"
9088c2ecf20Sopenharmony_ci};
9098c2ecf20Sopenharmony_cistatic const struct msm_function apq8084_functions[] = {
9108c2ecf20Sopenharmony_ci	FUNCTION(adsp_ext),
9118c2ecf20Sopenharmony_ci	FUNCTION(audio_ref),
9128c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c1),
9138c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c2),
9148c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c3),
9158c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c4),
9168c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c5),
9178c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c6),
9188c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c7),
9198c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c8),
9208c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c9),
9218c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c10),
9228c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c11),
9238c2ecf20Sopenharmony_ci	FUNCTION(blsp_i2c12),
9248c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi1),
9258c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi1_cs1),
9268c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi1_cs2),
9278c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi1_cs3),
9288c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi2),
9298c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi3),
9308c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi3_cs1),
9318c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi3_cs2),
9328c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi3_cs3),
9338c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi4),
9348c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi5),
9358c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi6),
9368c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi7),
9378c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi8),
9388c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi9),
9398c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi10),
9408c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi10_cs1),
9418c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi10_cs2),
9428c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi10_cs3),
9438c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi11),
9448c2ecf20Sopenharmony_ci	FUNCTION(blsp_spi12),
9458c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart1),
9468c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart2),
9478c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart3),
9488c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart4),
9498c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart5),
9508c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart6),
9518c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart7),
9528c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart8),
9538c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart9),
9548c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart10),
9558c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart11),
9568c2ecf20Sopenharmony_ci	FUNCTION(blsp_uart12),
9578c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim1),
9588c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim2),
9598c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim3),
9608c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim4),
9618c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim5),
9628c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim6),
9638c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim7),
9648c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim8),
9658c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim9),
9668c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim10),
9678c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim11),
9688c2ecf20Sopenharmony_ci	FUNCTION(blsp_uim12),
9698c2ecf20Sopenharmony_ci	FUNCTION(cam_mclk0),
9708c2ecf20Sopenharmony_ci	FUNCTION(cam_mclk1),
9718c2ecf20Sopenharmony_ci	FUNCTION(cam_mclk2),
9728c2ecf20Sopenharmony_ci	FUNCTION(cam_mclk3),
9738c2ecf20Sopenharmony_ci	FUNCTION(cci_async),
9748c2ecf20Sopenharmony_ci	FUNCTION(cci_async_in0),
9758c2ecf20Sopenharmony_ci	FUNCTION(cci_i2c0),
9768c2ecf20Sopenharmony_ci	FUNCTION(cci_i2c1),
9778c2ecf20Sopenharmony_ci	FUNCTION(cci_timer0),
9788c2ecf20Sopenharmony_ci	FUNCTION(cci_timer1),
9798c2ecf20Sopenharmony_ci	FUNCTION(cci_timer2),
9808c2ecf20Sopenharmony_ci	FUNCTION(cci_timer3),
9818c2ecf20Sopenharmony_ci	FUNCTION(cci_timer4),
9828c2ecf20Sopenharmony_ci	FUNCTION(edp_hpd),
9838c2ecf20Sopenharmony_ci	FUNCTION(gcc_gp1),
9848c2ecf20Sopenharmony_ci	FUNCTION(gcc_gp2),
9858c2ecf20Sopenharmony_ci	FUNCTION(gcc_gp3),
9868c2ecf20Sopenharmony_ci	FUNCTION(gcc_obt),
9878c2ecf20Sopenharmony_ci	FUNCTION(gcc_vtt),
9888c2ecf20Sopenharmony_ci	FUNCTION(gp_mn),
9898c2ecf20Sopenharmony_ci	FUNCTION(gp_pdm0),
9908c2ecf20Sopenharmony_ci	FUNCTION(gp_pdm1),
9918c2ecf20Sopenharmony_ci	FUNCTION(gp_pdm2),
9928c2ecf20Sopenharmony_ci	FUNCTION(gp0_clk),
9938c2ecf20Sopenharmony_ci	FUNCTION(gp1_clk),
9948c2ecf20Sopenharmony_ci	FUNCTION(gpio),
9958c2ecf20Sopenharmony_ci	FUNCTION(hdmi_cec),
9968c2ecf20Sopenharmony_ci	FUNCTION(hdmi_ddc),
9978c2ecf20Sopenharmony_ci	FUNCTION(hdmi_dtest),
9988c2ecf20Sopenharmony_ci	FUNCTION(hdmi_hpd),
9998c2ecf20Sopenharmony_ci	FUNCTION(hdmi_rcv),
10008c2ecf20Sopenharmony_ci	FUNCTION(hsic),
10018c2ecf20Sopenharmony_ci	FUNCTION(ldo_en),
10028c2ecf20Sopenharmony_ci	FUNCTION(ldo_update),
10038c2ecf20Sopenharmony_ci	FUNCTION(mdp_vsync),
10048c2ecf20Sopenharmony_ci	FUNCTION(pci_e0),
10058c2ecf20Sopenharmony_ci	FUNCTION(pci_e0_n),
10068c2ecf20Sopenharmony_ci	FUNCTION(pci_e0_rst),
10078c2ecf20Sopenharmony_ci	FUNCTION(pci_e1),
10088c2ecf20Sopenharmony_ci	FUNCTION(pci_e1_rst),
10098c2ecf20Sopenharmony_ci	FUNCTION(pci_e1_rst_n),
10108c2ecf20Sopenharmony_ci	FUNCTION(pci_e1_clkreq_n),
10118c2ecf20Sopenharmony_ci	FUNCTION(pri_mi2s),
10128c2ecf20Sopenharmony_ci	FUNCTION(qua_mi2s),
10138c2ecf20Sopenharmony_ci	FUNCTION(sata_act),
10148c2ecf20Sopenharmony_ci	FUNCTION(sata_devsleep),
10158c2ecf20Sopenharmony_ci	FUNCTION(sata_devsleep_n),
10168c2ecf20Sopenharmony_ci	FUNCTION(sd_write),
10178c2ecf20Sopenharmony_ci	FUNCTION(sdc_emmc_mode),
10188c2ecf20Sopenharmony_ci	FUNCTION(sdc3),
10198c2ecf20Sopenharmony_ci	FUNCTION(sdc4),
10208c2ecf20Sopenharmony_ci	FUNCTION(sec_mi2s),
10218c2ecf20Sopenharmony_ci	FUNCTION(slimbus),
10228c2ecf20Sopenharmony_ci	FUNCTION(spdif_tx),
10238c2ecf20Sopenharmony_ci	FUNCTION(spkr_i2s),
10248c2ecf20Sopenharmony_ci	FUNCTION(spkr_i2s_ws),
10258c2ecf20Sopenharmony_ci	FUNCTION(spss_geni),
10268c2ecf20Sopenharmony_ci	FUNCTION(ter_mi2s),
10278c2ecf20Sopenharmony_ci	FUNCTION(tsif1),
10288c2ecf20Sopenharmony_ci	FUNCTION(tsif2),
10298c2ecf20Sopenharmony_ci	FUNCTION(uim),
10308c2ecf20Sopenharmony_ci	FUNCTION(uim_batt_alarm),
10318c2ecf20Sopenharmony_ci};
10328c2ecf20Sopenharmony_ci
10338c2ecf20Sopenharmony_cistatic const struct msm_pingroup apq8084_groups[] = {
10348c2ecf20Sopenharmony_ci	PINGROUP(0,   blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA),
10358c2ecf20Sopenharmony_ci	PINGROUP(1,   blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA),
10368c2ecf20Sopenharmony_ci	PINGROUP(2,   blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA),
10378c2ecf20Sopenharmony_ci	PINGROUP(3,   blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA),
10388c2ecf20Sopenharmony_ci	PINGROUP(4,   blsp_spi2, blsp_uart2, blsp_uim2, NA, NA, NA, NA),
10398c2ecf20Sopenharmony_ci	PINGROUP(5,   blsp_spi2, blsp_uart2, blsp_uim2, NA, NA, NA, NA),
10408c2ecf20Sopenharmony_ci	PINGROUP(6,   blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA),
10418c2ecf20Sopenharmony_ci	PINGROUP(7,   blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA),
10428c2ecf20Sopenharmony_ci	PINGROUP(8,   blsp_spi3, blsp_uart3, blsp_uim3, spss_geni, NA, NA, NA),
10438c2ecf20Sopenharmony_ci	PINGROUP(9,   blsp_spi3, blsp_uim3, blsp_uart3, spss_geni, NA, NA, NA),
10448c2ecf20Sopenharmony_ci	PINGROUP(10,  blsp_spi3, blsp_uart3, blsp_i2c3, NA, NA, NA, NA),
10458c2ecf20Sopenharmony_ci	PINGROUP(11,  blsp_spi3, blsp_uart3, blsp_i2c3, NA, NA, NA, NA),
10468c2ecf20Sopenharmony_ci	PINGROUP(12,  mdp_vsync, NA, NA, NA, NA, NA, NA),
10478c2ecf20Sopenharmony_ci	PINGROUP(13,  mdp_vsync, NA, NA, NA, NA, NA, NA),
10488c2ecf20Sopenharmony_ci	PINGROUP(14,  mdp_vsync, NA, NA, NA, NA, NA, NA),
10498c2ecf20Sopenharmony_ci	PINGROUP(15,  cam_mclk0, NA, NA, NA, NA, NA, NA),
10508c2ecf20Sopenharmony_ci	PINGROUP(16,  cam_mclk1, NA, NA, NA, NA, NA, NA),
10518c2ecf20Sopenharmony_ci	PINGROUP(17,  cam_mclk2, NA, NA, NA, NA, NA, NA),
10528c2ecf20Sopenharmony_ci	PINGROUP(18,  cam_mclk3, NA, NA, NA, NA, NA, NA),
10538c2ecf20Sopenharmony_ci	PINGROUP(19,  cci_i2c0, NA, NA, NA, NA, NA, NA),
10548c2ecf20Sopenharmony_ci	PINGROUP(20,  cci_i2c0, NA, NA, NA, NA, NA, NA),
10558c2ecf20Sopenharmony_ci	PINGROUP(21,  cci_i2c1, NA, NA, NA, NA, NA, NA),
10568c2ecf20Sopenharmony_ci	PINGROUP(22,  cci_i2c1, NA, NA, NA, NA, NA, NA),
10578c2ecf20Sopenharmony_ci	PINGROUP(23,  cci_timer0, NA, NA, NA, NA, NA, NA),
10588c2ecf20Sopenharmony_ci	PINGROUP(24,  cci_timer1, NA, NA, NA, NA, NA, NA),
10598c2ecf20Sopenharmony_ci	PINGROUP(25,  cci_timer2, gp0_clk, NA, NA, NA, NA, NA),
10608c2ecf20Sopenharmony_ci	PINGROUP(26,  cci_timer3, cci_async, gp1_clk, NA, NA, NA, NA),
10618c2ecf20Sopenharmony_ci	PINGROUP(27,  blsp_spi4, blsp_uart4, blsp_uim4, NA, NA, NA, NA),
10628c2ecf20Sopenharmony_ci	PINGROUP(28,  blsp_spi4, blsp_uart4, blsp_uim4, NA, NA, NA, NA),
10638c2ecf20Sopenharmony_ci	PINGROUP(29,  blsp_spi4, blsp_uart4, blsp_i2c4, gp_mn, NA, NA, NA),
10648c2ecf20Sopenharmony_ci	PINGROUP(30,  blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA, NA),
10658c2ecf20Sopenharmony_ci	PINGROUP(31,  hdmi_cec, NA, NA, NA, NA, NA, NA),
10668c2ecf20Sopenharmony_ci	PINGROUP(32,  hdmi_ddc, NA, NA, NA, NA, NA, NA),
10678c2ecf20Sopenharmony_ci	PINGROUP(33,  hdmi_ddc, NA, NA, NA, NA, NA, NA),
10688c2ecf20Sopenharmony_ci	PINGROUP(34,  hdmi_hpd, NA, adsp_ext, NA, NA, NA, NA),
10698c2ecf20Sopenharmony_ci	PINGROUP(35,  NA, NA, NA, NA, NA, NA, NA),
10708c2ecf20Sopenharmony_ci	PINGROUP(36,  NA, NA, NA, NA, NA, NA, NA),
10718c2ecf20Sopenharmony_ci	PINGROUP(37,  gcc_gp1, NA, NA, NA, NA, NA, NA),
10728c2ecf20Sopenharmony_ci	PINGROUP(38,  gcc_gp2, NA, NA, NA, NA, NA, NA),
10738c2ecf20Sopenharmony_ci	PINGROUP(39,  blsp_spi5, blsp_uart5, blsp_uim5, NA, NA, NA, NA),
10748c2ecf20Sopenharmony_ci	PINGROUP(40,  blsp_spi5, blsp_uart5, blsp_uim5, NA, NA, NA, NA),
10758c2ecf20Sopenharmony_ci	PINGROUP(41,  blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA),
10768c2ecf20Sopenharmony_ci	PINGROUP(42,  blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA),
10778c2ecf20Sopenharmony_ci	PINGROUP(43,  blsp_spi6, blsp_uart6, blsp_uim6, NA, NA, NA, NA),
10788c2ecf20Sopenharmony_ci	PINGROUP(44,  blsp_spi6, blsp_uart6, blsp_uim6, NA, NA, NA, NA),
10798c2ecf20Sopenharmony_ci	PINGROUP(45,  blsp_spi6, blsp_uart6, blsp_i2c6, NA, NA, NA, NA),
10808c2ecf20Sopenharmony_ci	PINGROUP(46,  blsp_spi6, blsp_uart6, blsp_i2c6, NA, NA, NA, NA),
10818c2ecf20Sopenharmony_ci	PINGROUP(47,  blsp_spi12, blsp_uart12, blsp_uim12, NA, NA, NA, NA),
10828c2ecf20Sopenharmony_ci	PINGROUP(48,  blsp_spi12, blsp_uart12, blsp_uim12, gp_pdm0, NA, NA, NA),
10838c2ecf20Sopenharmony_ci	PINGROUP(49,  blsp_spi12, blsp_uart12, blsp_i2c12, NA, NA, NA, NA),
10848c2ecf20Sopenharmony_ci	PINGROUP(50,  blsp_spi12, blsp_uart12, blsp_i2c12, NA, NA, NA, NA),
10858c2ecf20Sopenharmony_ci	PINGROUP(51,  blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA),
10868c2ecf20Sopenharmony_ci	PINGROUP(52,  blsp_spi8, blsp_uart8, blsp_uim8, NA, NA, NA, NA),
10878c2ecf20Sopenharmony_ci	PINGROUP(53,  blsp_spi8, blsp_uart8, blsp_i2c8, NA, NA, NA, NA),
10888c2ecf20Sopenharmony_ci	PINGROUP(54,  blsp_spi8, blsp_uart8, blsp_i2c8, NA, NA, NA, NA),
10898c2ecf20Sopenharmony_ci	PINGROUP(55,  blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA, NA),
10908c2ecf20Sopenharmony_ci	PINGROUP(56,  blsp_spi9, blsp_uart9, blsp_uim9, NA, NA, NA, NA),
10918c2ecf20Sopenharmony_ci	PINGROUP(57,  blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA, NA),
10928c2ecf20Sopenharmony_ci	PINGROUP(58,  blsp_spi9, blsp_uart9, blsp_i2c9, NA, NA, NA, NA),
10938c2ecf20Sopenharmony_ci	PINGROUP(59,  blsp_spi10, blsp_uart10, blsp_uim10, NA, NA, NA, NA),
10948c2ecf20Sopenharmony_ci	PINGROUP(60,  blsp_spi10, blsp_uart10, blsp_uim10, NA, NA, NA, NA),
10958c2ecf20Sopenharmony_ci	PINGROUP(61,  blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA, NA, NA),
10968c2ecf20Sopenharmony_ci	PINGROUP(62,  blsp_spi10, blsp_uart10, blsp_i2c10, NA, NA, NA, NA),
10978c2ecf20Sopenharmony_ci	PINGROUP(63,  blsp_spi11, blsp_uart11, blsp_uim11, NA, NA, NA, NA),
10988c2ecf20Sopenharmony_ci	PINGROUP(64,  blsp_spi11, blsp_uart11, blsp_uim11, NA, NA, NA, NA),
10998c2ecf20Sopenharmony_ci	PINGROUP(65,  blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA),
11008c2ecf20Sopenharmony_ci	PINGROUP(66,  blsp_spi11, blsp_uart11, blsp_i2c11, NA, NA, NA, NA),
11018c2ecf20Sopenharmony_ci	PINGROUP(67,  sdc3, blsp_spi3_cs1, NA, NA, NA, NA, NA),
11028c2ecf20Sopenharmony_ci	PINGROUP(68,  sdc3, pci_e0, NA, NA, NA, NA, NA),
11038c2ecf20Sopenharmony_ci	PINGROUP(69,  sdc3, NA, NA, NA, NA, NA, NA),
11048c2ecf20Sopenharmony_ci	PINGROUP(70,  sdc3, pci_e0_n, pci_e0, NA, NA, NA, NA),
11058c2ecf20Sopenharmony_ci	PINGROUP(71,  sdc3, blsp_spi3_cs2, NA, NA, NA, NA, NA),
11068c2ecf20Sopenharmony_ci	PINGROUP(72,  sdc3, blsp_spi3_cs3, NA, NA, NA, NA, NA),
11078c2ecf20Sopenharmony_ci	PINGROUP(73,  NA, NA, NA, NA, NA, NA, NA),
11088c2ecf20Sopenharmony_ci	PINGROUP(74,  NA, NA, NA, NA, NA, NA, NA),
11098c2ecf20Sopenharmony_ci	PINGROUP(75,  sd_write, NA, NA, NA, NA, NA, NA),
11108c2ecf20Sopenharmony_ci	PINGROUP(76,  pri_mi2s, NA, NA, NA, NA, NA, NA),
11118c2ecf20Sopenharmony_ci	PINGROUP(77,  pri_mi2s, NA, NA, NA, NA, NA, NA),
11128c2ecf20Sopenharmony_ci	PINGROUP(78,  pri_mi2s, NA, NA, NA, NA, NA, NA),
11138c2ecf20Sopenharmony_ci	PINGROUP(79,  pri_mi2s, NA, NA, NA, NA, NA, NA),
11148c2ecf20Sopenharmony_ci	PINGROUP(80,  pri_mi2s, NA, NA, NA, NA, NA, NA),
11158c2ecf20Sopenharmony_ci	PINGROUP(81,  sec_mi2s, NA, NA, NA, NA, NA, NA),
11168c2ecf20Sopenharmony_ci	PINGROUP(82,  sec_mi2s, sdc4, tsif1, NA, NA, NA, NA),
11178c2ecf20Sopenharmony_ci	PINGROUP(83,  sec_mi2s, sdc4, tsif1, NA, NA, NA, gp_pdm0),
11188c2ecf20Sopenharmony_ci	PINGROUP(84,  sec_mi2s, sdc4, tsif1, NA, NA, NA, gp_pdm1),
11198c2ecf20Sopenharmony_ci	PINGROUP(85,  sec_mi2s, sdc4, tsif1, NA, gp_pdm2, NA, NA),
11208c2ecf20Sopenharmony_ci	PINGROUP(86,  ter_mi2s, sdc4, tsif1, NA, NA, NA, gcc_gp3),
11218c2ecf20Sopenharmony_ci	PINGROUP(87,  ter_mi2s, NA, NA, NA, NA, NA, NA),
11228c2ecf20Sopenharmony_ci	PINGROUP(88,  ter_mi2s, NA, NA, NA, NA, NA, NA),
11238c2ecf20Sopenharmony_ci	PINGROUP(89,  ter_mi2s, NA, NA, NA, NA, NA, NA),
11248c2ecf20Sopenharmony_ci	PINGROUP(90,  ter_mi2s, NA, NA, NA, NA, NA, NA),
11258c2ecf20Sopenharmony_ci	PINGROUP(91,  qua_mi2s, sdc4, tsif2, NA, NA, NA, NA),
11268c2ecf20Sopenharmony_ci	PINGROUP(92,  qua_mi2s, NA, NA, NA, NA, NA, NA),
11278c2ecf20Sopenharmony_ci	PINGROUP(93,  qua_mi2s, NA, NA, NA, NA, NA, NA),
11288c2ecf20Sopenharmony_ci	PINGROUP(94,  qua_mi2s, NA, NA, NA, NA, NA, NA),
11298c2ecf20Sopenharmony_ci	PINGROUP(95,  qua_mi2s, sdc4, tsif2, NA, NA, NA, gcc_gp1),
11308c2ecf20Sopenharmony_ci	PINGROUP(96,  qua_mi2s, sdc4, tsif2, NA, NA, NA, gcc_gp2),
11318c2ecf20Sopenharmony_ci	PINGROUP(97,  qua_mi2s, sdc4, tsif2, NA, gcc_gp3, NA, NA),
11328c2ecf20Sopenharmony_ci	PINGROUP(98,  slimbus, spkr_i2s, NA, NA, NA, NA, NA),
11338c2ecf20Sopenharmony_ci	PINGROUP(99,  slimbus, spkr_i2s, NA, NA, NA, NA, NA),
11348c2ecf20Sopenharmony_ci	PINGROUP(100, audio_ref, spkr_i2s, NA, NA, NA, NA, NA),
11358c2ecf20Sopenharmony_ci	PINGROUP(101, sdc4, tsif2, gp_pdm1, NA, NA, NA, NA),
11368c2ecf20Sopenharmony_ci	PINGROUP(102, uim_batt_alarm, NA, NA, NA, NA, NA, NA),
11378c2ecf20Sopenharmony_ci	PINGROUP(103, edp_hpd, NA, NA, NA, NA, NA, NA),
11388c2ecf20Sopenharmony_ci	PINGROUP(104, spkr_i2s, NA, NA, NA, NA, NA, NA),
11398c2ecf20Sopenharmony_ci	PINGROUP(105, NA, NA, NA, NA, NA, NA, NA),
11408c2ecf20Sopenharmony_ci	PINGROUP(106, blsp_spi10_cs1, NA, NA, NA, NA, NA, NA),
11418c2ecf20Sopenharmony_ci	PINGROUP(107, NA, NA, NA, NA, NA, NA, NA),
11428c2ecf20Sopenharmony_ci	PINGROUP(108, NA, NA, NA, NA, NA, NA, NA),
11438c2ecf20Sopenharmony_ci	PINGROUP(109, NA, NA, NA, NA, NA, NA, NA),
11448c2ecf20Sopenharmony_ci	PINGROUP(110, gp_pdm2, NA, NA, NA, NA, NA, NA),
11458c2ecf20Sopenharmony_ci	PINGROUP(111, blsp_spi10_cs2, NA, NA, NA, NA, NA, NA),
11468c2ecf20Sopenharmony_ci	PINGROUP(112, NA, NA, NA, NA, NA, NA, NA),
11478c2ecf20Sopenharmony_ci	PINGROUP(113, NA, NA, NA, NA, NA, NA, NA),
11488c2ecf20Sopenharmony_ci	PINGROUP(114, NA, NA, NA, NA, NA, NA, NA),
11498c2ecf20Sopenharmony_ci	PINGROUP(115, NA, NA, NA, NA, NA, NA, NA),
11508c2ecf20Sopenharmony_ci	PINGROUP(116, blsp_spi1_cs1, NA, NA, NA, NA, NA, NA),
11518c2ecf20Sopenharmony_ci	PINGROUP(117, blsp_spi1_cs2, NA, NA, NA, NA, NA, NA),
11528c2ecf20Sopenharmony_ci	PINGROUP(118, blsp_spi1_cs3, NA, NA, NA, NA, NA, NA),
11538c2ecf20Sopenharmony_ci	PINGROUP(119, cci_timer4, cci_async, sata_devsleep, sata_devsleep_n, NA, NA, NA),
11548c2ecf20Sopenharmony_ci	PINGROUP(120, cci_async, NA, NA, NA, NA, NA, NA),
11558c2ecf20Sopenharmony_ci	PINGROUP(121, NA, NA, NA, NA, NA, NA, NA),
11568c2ecf20Sopenharmony_ci	PINGROUP(122, NA, NA, NA, NA, NA, NA, NA),
11578c2ecf20Sopenharmony_ci	PINGROUP(123, hdmi_dtest, NA, NA, NA, NA, NA, NA),
11588c2ecf20Sopenharmony_ci	PINGROUP(124, spdif_tx, ldo_en, NA, NA, NA, NA, NA),
11598c2ecf20Sopenharmony_ci	PINGROUP(125, ldo_update, hdmi_rcv, NA, NA, NA, NA, NA),
11608c2ecf20Sopenharmony_ci	PINGROUP(126, gcc_vtt, NA, NA, NA, NA, NA, NA),
11618c2ecf20Sopenharmony_ci	PINGROUP(127, gcc_obt, NA, NA, NA, NA, NA, NA),
11628c2ecf20Sopenharmony_ci	PINGROUP(128, blsp_spi10_cs3, NA, NA, NA, NA, NA, NA),
11638c2ecf20Sopenharmony_ci	PINGROUP(129, sata_act, NA, NA, NA, NA, NA, NA),
11648c2ecf20Sopenharmony_ci	PINGROUP(130, uim, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA, NA),
11658c2ecf20Sopenharmony_ci	PINGROUP(131, uim, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA, NA),
11668c2ecf20Sopenharmony_ci	PINGROUP(132, uim, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA),
11678c2ecf20Sopenharmony_ci	PINGROUP(133, uim, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA),
11688c2ecf20Sopenharmony_ci	PINGROUP(134, hsic, NA, NA, NA, NA, NA, NA),
11698c2ecf20Sopenharmony_ci	PINGROUP(135, hsic, NA, NA, NA, NA, NA, NA),
11708c2ecf20Sopenharmony_ci	PINGROUP(136, spdif_tx, NA, NA, NA, NA, NA, NA),
11718c2ecf20Sopenharmony_ci	PINGROUP(137, NA, NA, NA, NA, NA, NA, NA),
11728c2ecf20Sopenharmony_ci	PINGROUP(138, NA, NA, NA, NA, NA, NA, NA),
11738c2ecf20Sopenharmony_ci	PINGROUP(139, NA, NA, NA, NA, NA, NA, NA),
11748c2ecf20Sopenharmony_ci	PINGROUP(140, pci_e1_rst_n, pci_e1_rst, NA, NA, NA, NA, NA),
11758c2ecf20Sopenharmony_ci	PINGROUP(141, pci_e1_clkreq_n, NA, NA, NA, NA, NA, NA),
11768c2ecf20Sopenharmony_ci	PINGROUP(142, spdif_tx, NA, NA, NA, NA, NA, NA),
11778c2ecf20Sopenharmony_ci	PINGROUP(143, NA, NA, NA, NA, NA, NA, NA),
11788c2ecf20Sopenharmony_ci	PINGROUP(144, NA, NA, NA, NA, NA, NA, NA),
11798c2ecf20Sopenharmony_ci	PINGROUP(145, NA, NA, NA, NA, NA, NA, NA),
11808c2ecf20Sopenharmony_ci	PINGROUP(146, sdc_emmc_mode, NA, NA, NA, NA, NA, NA),
11818c2ecf20Sopenharmony_ci
11828c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc1_clk, 0x2044, 13, 6),
11838c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc1_cmd, 0x2044, 11, 3),
11848c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc1_data, 0x2044, 9, 0),
11858c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc2_clk, 0x2048, 14, 6),
11868c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc2_cmd, 0x2048, 11, 3),
11878c2ecf20Sopenharmony_ci	SDC_PINGROUP(sdc2_data, 0x2048, 9, 0),
11888c2ecf20Sopenharmony_ci};
11898c2ecf20Sopenharmony_ci
11908c2ecf20Sopenharmony_ci#define NUM_GPIO_PINGROUPS 147
11918c2ecf20Sopenharmony_ci
11928c2ecf20Sopenharmony_cistatic const struct msm_pinctrl_soc_data apq8084_pinctrl = {
11938c2ecf20Sopenharmony_ci	.pins = apq8084_pins,
11948c2ecf20Sopenharmony_ci	.npins = ARRAY_SIZE(apq8084_pins),
11958c2ecf20Sopenharmony_ci	.functions = apq8084_functions,
11968c2ecf20Sopenharmony_ci	.nfunctions = ARRAY_SIZE(apq8084_functions),
11978c2ecf20Sopenharmony_ci	.groups = apq8084_groups,
11988c2ecf20Sopenharmony_ci	.ngroups = ARRAY_SIZE(apq8084_groups),
11998c2ecf20Sopenharmony_ci	.ngpios = NUM_GPIO_PINGROUPS,
12008c2ecf20Sopenharmony_ci};
12018c2ecf20Sopenharmony_ci
12028c2ecf20Sopenharmony_cistatic int apq8084_pinctrl_probe(struct platform_device *pdev)
12038c2ecf20Sopenharmony_ci{
12048c2ecf20Sopenharmony_ci	return msm_pinctrl_probe(pdev, &apq8084_pinctrl);
12058c2ecf20Sopenharmony_ci}
12068c2ecf20Sopenharmony_ci
12078c2ecf20Sopenharmony_cistatic const struct of_device_id apq8084_pinctrl_of_match[] = {
12088c2ecf20Sopenharmony_ci	{ .compatible = "qcom,apq8084-pinctrl", },
12098c2ecf20Sopenharmony_ci	{ },
12108c2ecf20Sopenharmony_ci};
12118c2ecf20Sopenharmony_ci
12128c2ecf20Sopenharmony_cistatic struct platform_driver apq8084_pinctrl_driver = {
12138c2ecf20Sopenharmony_ci	.driver = {
12148c2ecf20Sopenharmony_ci		.name = "apq8084-pinctrl",
12158c2ecf20Sopenharmony_ci		.of_match_table = apq8084_pinctrl_of_match,
12168c2ecf20Sopenharmony_ci	},
12178c2ecf20Sopenharmony_ci	.probe = apq8084_pinctrl_probe,
12188c2ecf20Sopenharmony_ci	.remove = msm_pinctrl_remove,
12198c2ecf20Sopenharmony_ci};
12208c2ecf20Sopenharmony_ci
12218c2ecf20Sopenharmony_cistatic int __init apq8084_pinctrl_init(void)
12228c2ecf20Sopenharmony_ci{
12238c2ecf20Sopenharmony_ci	return platform_driver_register(&apq8084_pinctrl_driver);
12248c2ecf20Sopenharmony_ci}
12258c2ecf20Sopenharmony_ciarch_initcall(apq8084_pinctrl_init);
12268c2ecf20Sopenharmony_ci
12278c2ecf20Sopenharmony_cistatic void __exit apq8084_pinctrl_exit(void)
12288c2ecf20Sopenharmony_ci{
12298c2ecf20Sopenharmony_ci	platform_driver_unregister(&apq8084_pinctrl_driver);
12308c2ecf20Sopenharmony_ci}
12318c2ecf20Sopenharmony_cimodule_exit(apq8084_pinctrl_exit);
12328c2ecf20Sopenharmony_ci
12338c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm APQ8084 pinctrl driver");
12348c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2");
12358c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, apq8084_pinctrl_of_match);
1236