18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2014, 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#include <linux/pinctrl/pinmux.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include "pinctrl-msm.h" 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc msm8960_pins[] = { 158c2ecf20Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 168c2ecf20Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 178c2ecf20Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 188c2ecf20Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 198c2ecf20Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 208c2ecf20Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 218c2ecf20Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 228c2ecf20Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 238c2ecf20Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 248c2ecf20Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 258c2ecf20Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 268c2ecf20Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 278c2ecf20Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 288c2ecf20Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 298c2ecf20Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 308c2ecf20Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 318c2ecf20Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 328c2ecf20Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 338c2ecf20Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 348c2ecf20Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 358c2ecf20Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 368c2ecf20Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 378c2ecf20Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 388c2ecf20Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 398c2ecf20Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 408c2ecf20Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 418c2ecf20Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 428c2ecf20Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 438c2ecf20Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 448c2ecf20Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 458c2ecf20Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 468c2ecf20Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 478c2ecf20Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 488c2ecf20Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 498c2ecf20Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 508c2ecf20Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 518c2ecf20Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 528c2ecf20Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 538c2ecf20Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 548c2ecf20Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 558c2ecf20Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 568c2ecf20Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 578c2ecf20Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 588c2ecf20Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 598c2ecf20Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 608c2ecf20Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 618c2ecf20Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 628c2ecf20Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 638c2ecf20Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 648c2ecf20Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 658c2ecf20Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 668c2ecf20Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 678c2ecf20Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 688c2ecf20Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 698c2ecf20Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 708c2ecf20Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 718c2ecf20Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 728c2ecf20Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 738c2ecf20Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 748c2ecf20Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 758c2ecf20Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 768c2ecf20Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 778c2ecf20Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 788c2ecf20Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 798c2ecf20Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 808c2ecf20Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 818c2ecf20Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 828c2ecf20Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 838c2ecf20Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 848c2ecf20Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 858c2ecf20Sopenharmony_ci PINCTRL_PIN(70, "GPIO_70"), 868c2ecf20Sopenharmony_ci PINCTRL_PIN(71, "GPIO_71"), 878c2ecf20Sopenharmony_ci PINCTRL_PIN(72, "GPIO_72"), 888c2ecf20Sopenharmony_ci PINCTRL_PIN(73, "GPIO_73"), 898c2ecf20Sopenharmony_ci PINCTRL_PIN(74, "GPIO_74"), 908c2ecf20Sopenharmony_ci PINCTRL_PIN(75, "GPIO_75"), 918c2ecf20Sopenharmony_ci PINCTRL_PIN(76, "GPIO_76"), 928c2ecf20Sopenharmony_ci PINCTRL_PIN(77, "GPIO_77"), 938c2ecf20Sopenharmony_ci PINCTRL_PIN(78, "GPIO_78"), 948c2ecf20Sopenharmony_ci PINCTRL_PIN(79, "GPIO_79"), 958c2ecf20Sopenharmony_ci PINCTRL_PIN(80, "GPIO_80"), 968c2ecf20Sopenharmony_ci PINCTRL_PIN(81, "GPIO_81"), 978c2ecf20Sopenharmony_ci PINCTRL_PIN(82, "GPIO_82"), 988c2ecf20Sopenharmony_ci PINCTRL_PIN(83, "GPIO_83"), 998c2ecf20Sopenharmony_ci PINCTRL_PIN(84, "GPIO_84"), 1008c2ecf20Sopenharmony_ci PINCTRL_PIN(85, "GPIO_85"), 1018c2ecf20Sopenharmony_ci PINCTRL_PIN(86, "GPIO_86"), 1028c2ecf20Sopenharmony_ci PINCTRL_PIN(87, "GPIO_87"), 1038c2ecf20Sopenharmony_ci PINCTRL_PIN(88, "GPIO_88"), 1048c2ecf20Sopenharmony_ci PINCTRL_PIN(89, "GPIO_89"), 1058c2ecf20Sopenharmony_ci PINCTRL_PIN(90, "GPIO_90"), 1068c2ecf20Sopenharmony_ci PINCTRL_PIN(91, "GPIO_91"), 1078c2ecf20Sopenharmony_ci PINCTRL_PIN(92, "GPIO_92"), 1088c2ecf20Sopenharmony_ci PINCTRL_PIN(93, "GPIO_93"), 1098c2ecf20Sopenharmony_ci PINCTRL_PIN(94, "GPIO_94"), 1108c2ecf20Sopenharmony_ci PINCTRL_PIN(95, "GPIO_95"), 1118c2ecf20Sopenharmony_ci PINCTRL_PIN(96, "GPIO_96"), 1128c2ecf20Sopenharmony_ci PINCTRL_PIN(97, "GPIO_97"), 1138c2ecf20Sopenharmony_ci PINCTRL_PIN(98, "GPIO_98"), 1148c2ecf20Sopenharmony_ci PINCTRL_PIN(99, "GPIO_99"), 1158c2ecf20Sopenharmony_ci PINCTRL_PIN(100, "GPIO_100"), 1168c2ecf20Sopenharmony_ci PINCTRL_PIN(101, "GPIO_101"), 1178c2ecf20Sopenharmony_ci PINCTRL_PIN(102, "GPIO_102"), 1188c2ecf20Sopenharmony_ci PINCTRL_PIN(103, "GPIO_103"), 1198c2ecf20Sopenharmony_ci PINCTRL_PIN(104, "GPIO_104"), 1208c2ecf20Sopenharmony_ci PINCTRL_PIN(105, "GPIO_105"), 1218c2ecf20Sopenharmony_ci PINCTRL_PIN(106, "GPIO_106"), 1228c2ecf20Sopenharmony_ci PINCTRL_PIN(107, "GPIO_107"), 1238c2ecf20Sopenharmony_ci PINCTRL_PIN(108, "GPIO_108"), 1248c2ecf20Sopenharmony_ci PINCTRL_PIN(109, "GPIO_109"), 1258c2ecf20Sopenharmony_ci PINCTRL_PIN(110, "GPIO_110"), 1268c2ecf20Sopenharmony_ci PINCTRL_PIN(111, "GPIO_111"), 1278c2ecf20Sopenharmony_ci PINCTRL_PIN(112, "GPIO_112"), 1288c2ecf20Sopenharmony_ci PINCTRL_PIN(113, "GPIO_113"), 1298c2ecf20Sopenharmony_ci PINCTRL_PIN(114, "GPIO_114"), 1308c2ecf20Sopenharmony_ci PINCTRL_PIN(115, "GPIO_115"), 1318c2ecf20Sopenharmony_ci PINCTRL_PIN(116, "GPIO_116"), 1328c2ecf20Sopenharmony_ci PINCTRL_PIN(117, "GPIO_117"), 1338c2ecf20Sopenharmony_ci PINCTRL_PIN(118, "GPIO_118"), 1348c2ecf20Sopenharmony_ci PINCTRL_PIN(119, "GPIO_119"), 1358c2ecf20Sopenharmony_ci PINCTRL_PIN(120, "GPIO_120"), 1368c2ecf20Sopenharmony_ci PINCTRL_PIN(121, "GPIO_121"), 1378c2ecf20Sopenharmony_ci PINCTRL_PIN(122, "GPIO_122"), 1388c2ecf20Sopenharmony_ci PINCTRL_PIN(123, "GPIO_123"), 1398c2ecf20Sopenharmony_ci PINCTRL_PIN(124, "GPIO_124"), 1408c2ecf20Sopenharmony_ci PINCTRL_PIN(125, "GPIO_125"), 1418c2ecf20Sopenharmony_ci PINCTRL_PIN(126, "GPIO_126"), 1428c2ecf20Sopenharmony_ci PINCTRL_PIN(127, "GPIO_127"), 1438c2ecf20Sopenharmony_ci PINCTRL_PIN(128, "GPIO_128"), 1448c2ecf20Sopenharmony_ci PINCTRL_PIN(129, "GPIO_129"), 1458c2ecf20Sopenharmony_ci PINCTRL_PIN(130, "GPIO_130"), 1468c2ecf20Sopenharmony_ci PINCTRL_PIN(131, "GPIO_131"), 1478c2ecf20Sopenharmony_ci PINCTRL_PIN(132, "GPIO_132"), 1488c2ecf20Sopenharmony_ci PINCTRL_PIN(133, "GPIO_133"), 1498c2ecf20Sopenharmony_ci PINCTRL_PIN(134, "GPIO_134"), 1508c2ecf20Sopenharmony_ci PINCTRL_PIN(135, "GPIO_135"), 1518c2ecf20Sopenharmony_ci PINCTRL_PIN(136, "GPIO_136"), 1528c2ecf20Sopenharmony_ci PINCTRL_PIN(137, "GPIO_137"), 1538c2ecf20Sopenharmony_ci PINCTRL_PIN(138, "GPIO_138"), 1548c2ecf20Sopenharmony_ci PINCTRL_PIN(139, "GPIO_139"), 1558c2ecf20Sopenharmony_ci PINCTRL_PIN(140, "GPIO_140"), 1568c2ecf20Sopenharmony_ci PINCTRL_PIN(141, "GPIO_141"), 1578c2ecf20Sopenharmony_ci PINCTRL_PIN(142, "GPIO_142"), 1588c2ecf20Sopenharmony_ci PINCTRL_PIN(143, "GPIO_143"), 1598c2ecf20Sopenharmony_ci PINCTRL_PIN(144, "GPIO_144"), 1608c2ecf20Sopenharmony_ci PINCTRL_PIN(145, "GPIO_145"), 1618c2ecf20Sopenharmony_ci PINCTRL_PIN(146, "GPIO_146"), 1628c2ecf20Sopenharmony_ci PINCTRL_PIN(147, "GPIO_147"), 1638c2ecf20Sopenharmony_ci PINCTRL_PIN(148, "GPIO_148"), 1648c2ecf20Sopenharmony_ci PINCTRL_PIN(149, "GPIO_149"), 1658c2ecf20Sopenharmony_ci PINCTRL_PIN(150, "GPIO_150"), 1668c2ecf20Sopenharmony_ci PINCTRL_PIN(151, "GPIO_151"), 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci PINCTRL_PIN(152, "SDC1_CLK"), 1698c2ecf20Sopenharmony_ci PINCTRL_PIN(153, "SDC1_CMD"), 1708c2ecf20Sopenharmony_ci PINCTRL_PIN(154, "SDC1_DATA"), 1718c2ecf20Sopenharmony_ci PINCTRL_PIN(155, "SDC3_CLK"), 1728c2ecf20Sopenharmony_ci PINCTRL_PIN(156, "SDC3_CMD"), 1738c2ecf20Sopenharmony_ci PINCTRL_PIN(157, "SDC3_DATA"), 1748c2ecf20Sopenharmony_ci}; 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin } 1778c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 1788c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 1798c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 1808c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 1818c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 1828c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 1838c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 1848c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 1858c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 1868c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 1878c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 1888c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 1898c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 1908c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 1918c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 1928c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 1938c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 1948c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 1958c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 1968c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 1978c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 1988c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 1998c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 2008c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 2018c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 2028c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 2038c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 2048c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 2058c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 2068c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 2078c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 2088c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 2098c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 2108c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 2118c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 2128c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 2138c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 2148c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 2158c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 2168c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 2178c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 2188c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 2198c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 2208c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 2218c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 2228c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 2238c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 2248c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 2258c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 2268c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 2278c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 2288c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 2298c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 2308c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 2318c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 2328c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 2338c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 2348c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 2358c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 2368c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 2378c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 2388c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 2398c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 2408c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 2418c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 2428c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 2438c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 2448c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 2458c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 2468c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 2478c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70); 2488c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71); 2498c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72); 2508c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73); 2518c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74); 2528c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75); 2538c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76); 2548c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77); 2558c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78); 2568c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79); 2578c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80); 2588c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81); 2598c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82); 2608c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83); 2618c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84); 2628c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85); 2638c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86); 2648c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87); 2658c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88); 2668c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89); 2678c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90); 2688c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91); 2698c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92); 2708c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93); 2718c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94); 2728c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95); 2738c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96); 2748c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97); 2758c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98); 2768c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99); 2778c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100); 2788c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101); 2798c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102); 2808c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103); 2818c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104); 2828c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105); 2838c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106); 2848c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107); 2858c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108); 2868c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109); 2878c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110); 2888c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111); 2898c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112); 2908c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113); 2918c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114); 2928c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115); 2938c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116); 2948c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117); 2958c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118); 2968c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119); 2978c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120); 2988c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121); 2998c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122); 3008c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123); 3018c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124); 3028c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125); 3038c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126); 3048c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127); 3058c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128); 3068c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129); 3078c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130); 3088c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131); 3098c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132); 3108c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133); 3118c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134); 3128c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135); 3138c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136); 3148c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137); 3158c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138); 3168c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139); 3178c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140); 3188c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141); 3198c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142); 3208c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143); 3218c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144); 3228c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145); 3238c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(146); 3248c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(147); 3258c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(148); 3268c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(149); 3278c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(150); 3288c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(151); 3298c2ecf20Sopenharmony_ci 3308c2ecf20Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 152 }; 3318c2ecf20Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 153 }; 3328c2ecf20Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 154 }; 3338c2ecf20Sopenharmony_cistatic const unsigned int sdc3_clk_pins[] = { 155 }; 3348c2ecf20Sopenharmony_cistatic const unsigned int sdc3_cmd_pins[] = { 156 }; 3358c2ecf20Sopenharmony_cistatic const unsigned int sdc3_data_pins[] = { 157 }; 3368c2ecf20Sopenharmony_ci 3378c2ecf20Sopenharmony_ci#define FUNCTION(fname) \ 3388c2ecf20Sopenharmony_ci [MSM_MUX_##fname] = { \ 3398c2ecf20Sopenharmony_ci .name = #fname, \ 3408c2ecf20Sopenharmony_ci .groups = fname##_groups, \ 3418c2ecf20Sopenharmony_ci .ngroups = ARRAY_SIZE(fname##_groups), \ 3428c2ecf20Sopenharmony_ci } 3438c2ecf20Sopenharmony_ci 3448c2ecf20Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11) \ 3458c2ecf20Sopenharmony_ci { \ 3468c2ecf20Sopenharmony_ci .name = "gpio" #id, \ 3478c2ecf20Sopenharmony_ci .pins = gpio##id##_pins, \ 3488c2ecf20Sopenharmony_ci .npins = ARRAY_SIZE(gpio##id##_pins), \ 3498c2ecf20Sopenharmony_ci .funcs = (int[]){ \ 3508c2ecf20Sopenharmony_ci MSM_MUX_gpio, \ 3518c2ecf20Sopenharmony_ci MSM_MUX_##f1, \ 3528c2ecf20Sopenharmony_ci MSM_MUX_##f2, \ 3538c2ecf20Sopenharmony_ci MSM_MUX_##f3, \ 3548c2ecf20Sopenharmony_ci MSM_MUX_##f4, \ 3558c2ecf20Sopenharmony_ci MSM_MUX_##f5, \ 3568c2ecf20Sopenharmony_ci MSM_MUX_##f6, \ 3578c2ecf20Sopenharmony_ci MSM_MUX_##f7, \ 3588c2ecf20Sopenharmony_ci MSM_MUX_##f8, \ 3598c2ecf20Sopenharmony_ci MSM_MUX_##f9, \ 3608c2ecf20Sopenharmony_ci MSM_MUX_##f10, \ 3618c2ecf20Sopenharmony_ci MSM_MUX_##f11 \ 3628c2ecf20Sopenharmony_ci }, \ 3638c2ecf20Sopenharmony_ci .nfuncs = 12, \ 3648c2ecf20Sopenharmony_ci .ctl_reg = 0x1000 + 0x10 * id, \ 3658c2ecf20Sopenharmony_ci .io_reg = 0x1004 + 0x10 * id, \ 3668c2ecf20Sopenharmony_ci .intr_cfg_reg = 0x1008 + 0x10 * id, \ 3678c2ecf20Sopenharmony_ci .intr_status_reg = 0x100c + 0x10 * id, \ 3688c2ecf20Sopenharmony_ci .intr_target_reg = 0x400 + 0x4 * id, \ 3698c2ecf20Sopenharmony_ci .mux_bit = 2, \ 3708c2ecf20Sopenharmony_ci .pull_bit = 0, \ 3718c2ecf20Sopenharmony_ci .drv_bit = 6, \ 3728c2ecf20Sopenharmony_ci .oe_bit = 9, \ 3738c2ecf20Sopenharmony_ci .in_bit = 0, \ 3748c2ecf20Sopenharmony_ci .out_bit = 1, \ 3758c2ecf20Sopenharmony_ci .intr_enable_bit = 0, \ 3768c2ecf20Sopenharmony_ci .intr_status_bit = 0, \ 3778c2ecf20Sopenharmony_ci .intr_ack_high = 1, \ 3788c2ecf20Sopenharmony_ci .intr_target_bit = 0, \ 3798c2ecf20Sopenharmony_ci .intr_target_kpss_val = 4, \ 3808c2ecf20Sopenharmony_ci .intr_raw_status_bit = 3, \ 3818c2ecf20Sopenharmony_ci .intr_polarity_bit = 1, \ 3828c2ecf20Sopenharmony_ci .intr_detection_bit = 2, \ 3838c2ecf20Sopenharmony_ci .intr_detection_width = 1, \ 3848c2ecf20Sopenharmony_ci } 3858c2ecf20Sopenharmony_ci 3868c2ecf20Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv) \ 3878c2ecf20Sopenharmony_ci { \ 3888c2ecf20Sopenharmony_ci .name = #pg_name, \ 3898c2ecf20Sopenharmony_ci .pins = pg_name##_pins, \ 3908c2ecf20Sopenharmony_ci .npins = ARRAY_SIZE(pg_name##_pins), \ 3918c2ecf20Sopenharmony_ci .ctl_reg = ctl, \ 3928c2ecf20Sopenharmony_ci .io_reg = 0, \ 3938c2ecf20Sopenharmony_ci .intr_cfg_reg = 0, \ 3948c2ecf20Sopenharmony_ci .intr_status_reg = 0, \ 3958c2ecf20Sopenharmony_ci .intr_target_reg = 0, \ 3968c2ecf20Sopenharmony_ci .mux_bit = -1, \ 3978c2ecf20Sopenharmony_ci .pull_bit = pull, \ 3988c2ecf20Sopenharmony_ci .drv_bit = drv, \ 3998c2ecf20Sopenharmony_ci .oe_bit = -1, \ 4008c2ecf20Sopenharmony_ci .in_bit = -1, \ 4018c2ecf20Sopenharmony_ci .out_bit = -1, \ 4028c2ecf20Sopenharmony_ci .intr_enable_bit = -1, \ 4038c2ecf20Sopenharmony_ci .intr_status_bit = -1, \ 4048c2ecf20Sopenharmony_ci .intr_target_bit = -1, \ 4058c2ecf20Sopenharmony_ci .intr_target_kpss_val = -1, \ 4068c2ecf20Sopenharmony_ci .intr_raw_status_bit = -1, \ 4078c2ecf20Sopenharmony_ci .intr_polarity_bit = -1, \ 4088c2ecf20Sopenharmony_ci .intr_detection_bit = -1, \ 4098c2ecf20Sopenharmony_ci .intr_detection_width = -1, \ 4108c2ecf20Sopenharmony_ci } 4118c2ecf20Sopenharmony_ci 4128c2ecf20Sopenharmony_cienum msm8960_functions { 4138c2ecf20Sopenharmony_ci MSM_MUX_audio_pcm, 4148c2ecf20Sopenharmony_ci MSM_MUX_bt, 4158c2ecf20Sopenharmony_ci MSM_MUX_cam_mclk0, 4168c2ecf20Sopenharmony_ci MSM_MUX_cam_mclk1, 4178c2ecf20Sopenharmony_ci MSM_MUX_cam_mclk2, 4188c2ecf20Sopenharmony_ci MSM_MUX_codec_mic_i2s, 4198c2ecf20Sopenharmony_ci MSM_MUX_codec_spkr_i2s, 4208c2ecf20Sopenharmony_ci MSM_MUX_ext_gps, 4218c2ecf20Sopenharmony_ci MSM_MUX_fm, 4228c2ecf20Sopenharmony_ci MSM_MUX_gps_blanking, 4238c2ecf20Sopenharmony_ci MSM_MUX_gps_pps_in, 4248c2ecf20Sopenharmony_ci MSM_MUX_gps_pps_out, 4258c2ecf20Sopenharmony_ci MSM_MUX_gp_clk_0a, 4268c2ecf20Sopenharmony_ci MSM_MUX_gp_clk_0b, 4278c2ecf20Sopenharmony_ci MSM_MUX_gp_clk_1a, 4288c2ecf20Sopenharmony_ci MSM_MUX_gp_clk_1b, 4298c2ecf20Sopenharmony_ci MSM_MUX_gp_clk_2a, 4308c2ecf20Sopenharmony_ci MSM_MUX_gp_clk_2b, 4318c2ecf20Sopenharmony_ci MSM_MUX_gp_mn, 4328c2ecf20Sopenharmony_ci MSM_MUX_gp_pdm_0a, 4338c2ecf20Sopenharmony_ci MSM_MUX_gp_pdm_0b, 4348c2ecf20Sopenharmony_ci MSM_MUX_gp_pdm_1a, 4358c2ecf20Sopenharmony_ci MSM_MUX_gp_pdm_1b, 4368c2ecf20Sopenharmony_ci MSM_MUX_gp_pdm_2a, 4378c2ecf20Sopenharmony_ci MSM_MUX_gp_pdm_2b, 4388c2ecf20Sopenharmony_ci MSM_MUX_gpio, 4398c2ecf20Sopenharmony_ci MSM_MUX_gsbi1, 4408c2ecf20Sopenharmony_ci MSM_MUX_gsbi1_spi_cs1_n, 4418c2ecf20Sopenharmony_ci MSM_MUX_gsbi1_spi_cs2a_n, 4428c2ecf20Sopenharmony_ci MSM_MUX_gsbi1_spi_cs2b_n, 4438c2ecf20Sopenharmony_ci MSM_MUX_gsbi1_spi_cs3_n, 4448c2ecf20Sopenharmony_ci MSM_MUX_gsbi2, 4458c2ecf20Sopenharmony_ci MSM_MUX_gsbi2_spi_cs1_n, 4468c2ecf20Sopenharmony_ci MSM_MUX_gsbi2_spi_cs2_n, 4478c2ecf20Sopenharmony_ci MSM_MUX_gsbi2_spi_cs3_n, 4488c2ecf20Sopenharmony_ci MSM_MUX_gsbi3, 4498c2ecf20Sopenharmony_ci MSM_MUX_gsbi4, 4508c2ecf20Sopenharmony_ci MSM_MUX_gsbi4_3d_cam_i2c_l, 4518c2ecf20Sopenharmony_ci MSM_MUX_gsbi4_3d_cam_i2c_r, 4528c2ecf20Sopenharmony_ci MSM_MUX_gsbi5, 4538c2ecf20Sopenharmony_ci MSM_MUX_gsbi5_3d_cam_i2c_l, 4548c2ecf20Sopenharmony_ci MSM_MUX_gsbi5_3d_cam_i2c_r, 4558c2ecf20Sopenharmony_ci MSM_MUX_gsbi6, 4568c2ecf20Sopenharmony_ci MSM_MUX_gsbi7, 4578c2ecf20Sopenharmony_ci MSM_MUX_gsbi8, 4588c2ecf20Sopenharmony_ci MSM_MUX_gsbi9, 4598c2ecf20Sopenharmony_ci MSM_MUX_gsbi10, 4608c2ecf20Sopenharmony_ci MSM_MUX_gsbi11, 4618c2ecf20Sopenharmony_ci MSM_MUX_gsbi11_spi_cs1a_n, 4628c2ecf20Sopenharmony_ci MSM_MUX_gsbi11_spi_cs1b_n, 4638c2ecf20Sopenharmony_ci MSM_MUX_gsbi11_spi_cs2a_n, 4648c2ecf20Sopenharmony_ci MSM_MUX_gsbi11_spi_cs2b_n, 4658c2ecf20Sopenharmony_ci MSM_MUX_gsbi11_spi_cs3_n, 4668c2ecf20Sopenharmony_ci MSM_MUX_gsbi12, 4678c2ecf20Sopenharmony_ci MSM_MUX_hdmi_cec, 4688c2ecf20Sopenharmony_ci MSM_MUX_hdmi_ddc_clock, 4698c2ecf20Sopenharmony_ci MSM_MUX_hdmi_ddc_data, 4708c2ecf20Sopenharmony_ci MSM_MUX_hdmi_hot_plug_detect, 4718c2ecf20Sopenharmony_ci MSM_MUX_hsic, 4728c2ecf20Sopenharmony_ci MSM_MUX_mdp_vsync, 4738c2ecf20Sopenharmony_ci MSM_MUX_mi2s, 4748c2ecf20Sopenharmony_ci MSM_MUX_mic_i2s, 4758c2ecf20Sopenharmony_ci MSM_MUX_pmb_clk, 4768c2ecf20Sopenharmony_ci MSM_MUX_pmb_ext_ctrl, 4778c2ecf20Sopenharmony_ci MSM_MUX_ps_hold, 4788c2ecf20Sopenharmony_ci MSM_MUX_rpm_wdog, 4798c2ecf20Sopenharmony_ci MSM_MUX_sdc2, 4808c2ecf20Sopenharmony_ci MSM_MUX_sdc4, 4818c2ecf20Sopenharmony_ci MSM_MUX_sdc5, 4828c2ecf20Sopenharmony_ci MSM_MUX_slimbus1, 4838c2ecf20Sopenharmony_ci MSM_MUX_slimbus2, 4848c2ecf20Sopenharmony_ci MSM_MUX_spkr_i2s, 4858c2ecf20Sopenharmony_ci MSM_MUX_ssbi1, 4868c2ecf20Sopenharmony_ci MSM_MUX_ssbi2, 4878c2ecf20Sopenharmony_ci MSM_MUX_ssbi_ext_gps, 4888c2ecf20Sopenharmony_ci MSM_MUX_ssbi_pmic2, 4898c2ecf20Sopenharmony_ci MSM_MUX_ssbi_qpa1, 4908c2ecf20Sopenharmony_ci MSM_MUX_ssbi_ts, 4918c2ecf20Sopenharmony_ci MSM_MUX_tsif1, 4928c2ecf20Sopenharmony_ci MSM_MUX_tsif2, 4938c2ecf20Sopenharmony_ci MSM_MUX_ts_eoc, 4948c2ecf20Sopenharmony_ci MSM_MUX_usb_fs1, 4958c2ecf20Sopenharmony_ci MSM_MUX_usb_fs1_oe, 4968c2ecf20Sopenharmony_ci MSM_MUX_usb_fs1_oe_n, 4978c2ecf20Sopenharmony_ci MSM_MUX_usb_fs2, 4988c2ecf20Sopenharmony_ci MSM_MUX_usb_fs2_oe, 4998c2ecf20Sopenharmony_ci MSM_MUX_usb_fs2_oe_n, 5008c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer1_a, 5018c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer1_b, 5028c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer2, 5038c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer3_a, 5048c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer3_b, 5058c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer4_a, 5068c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer4_b, 5078c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer4_c, 5088c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer5_a, 5098c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer5_b, 5108c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer6_a, 5118c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer6_b, 5128c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer6_c, 5138c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer7_a, 5148c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer7_b, 5158c2ecf20Sopenharmony_ci MSM_MUX_vfe_camif_timer7_c, 5168c2ecf20Sopenharmony_ci MSM_MUX_wlan, 5178c2ecf20Sopenharmony_ci MSM_MUX_NA, 5188c2ecf20Sopenharmony_ci}; 5198c2ecf20Sopenharmony_ci 5208c2ecf20Sopenharmony_cistatic const char * const audio_pcm_groups[] = { 5218c2ecf20Sopenharmony_ci "gpio63", "gpio64", "gpio65", "gpio66" 5228c2ecf20Sopenharmony_ci}; 5238c2ecf20Sopenharmony_ci 5248c2ecf20Sopenharmony_cistatic const char * const bt_groups[] = { 5258c2ecf20Sopenharmony_ci "gpio28", "gpio29", "gpio83" 5268c2ecf20Sopenharmony_ci}; 5278c2ecf20Sopenharmony_ci 5288c2ecf20Sopenharmony_cistatic const char * const cam_mclk0_groups[] = { 5298c2ecf20Sopenharmony_ci "gpio5" 5308c2ecf20Sopenharmony_ci}; 5318c2ecf20Sopenharmony_ci 5328c2ecf20Sopenharmony_cistatic const char * const cam_mclk1_groups[] = { 5338c2ecf20Sopenharmony_ci "gpio4" 5348c2ecf20Sopenharmony_ci}; 5358c2ecf20Sopenharmony_ci 5368c2ecf20Sopenharmony_cistatic const char * const cam_mclk2_groups[] = { 5378c2ecf20Sopenharmony_ci "gpio2" 5388c2ecf20Sopenharmony_ci}; 5398c2ecf20Sopenharmony_ci 5408c2ecf20Sopenharmony_cistatic const char * const codec_mic_i2s_groups[] = { 5418c2ecf20Sopenharmony_ci "gpio54", "gpio55", "gpio56", "gpio57", "gpio58" 5428c2ecf20Sopenharmony_ci}; 5438c2ecf20Sopenharmony_ci 5448c2ecf20Sopenharmony_cistatic const char * const codec_spkr_i2s_groups[] = { 5458c2ecf20Sopenharmony_ci "gpio59", "gpio60", "gpio61", "gpio62" 5468c2ecf20Sopenharmony_ci}; 5478c2ecf20Sopenharmony_ci 5488c2ecf20Sopenharmony_cistatic const char * const ext_gps_groups[] = { 5498c2ecf20Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25" 5508c2ecf20Sopenharmony_ci}; 5518c2ecf20Sopenharmony_ci 5528c2ecf20Sopenharmony_cistatic const char * const fm_groups[] = { 5538c2ecf20Sopenharmony_ci "gpio26", "gpio27" 5548c2ecf20Sopenharmony_ci}; 5558c2ecf20Sopenharmony_ci 5568c2ecf20Sopenharmony_cistatic const char * const gps_blanking_groups[] = { 5578c2ecf20Sopenharmony_ci "gpio137" 5588c2ecf20Sopenharmony_ci}; 5598c2ecf20Sopenharmony_ci 5608c2ecf20Sopenharmony_cistatic const char * const gps_pps_in_groups[] = { 5618c2ecf20Sopenharmony_ci "gpio37" 5628c2ecf20Sopenharmony_ci}; 5638c2ecf20Sopenharmony_ci 5648c2ecf20Sopenharmony_cistatic const char * const gps_pps_out_groups[] = { 5658c2ecf20Sopenharmony_ci "gpio37" 5668c2ecf20Sopenharmony_ci}; 5678c2ecf20Sopenharmony_ci 5688c2ecf20Sopenharmony_cistatic const char * const gp_clk_0a_groups[] = { 5698c2ecf20Sopenharmony_ci "gpio3" 5708c2ecf20Sopenharmony_ci}; 5718c2ecf20Sopenharmony_ci 5728c2ecf20Sopenharmony_cistatic const char * const gp_clk_0b_groups[] = { 5738c2ecf20Sopenharmony_ci "gpio54" 5748c2ecf20Sopenharmony_ci}; 5758c2ecf20Sopenharmony_ci 5768c2ecf20Sopenharmony_cistatic const char * const gp_clk_1a_groups[] = { 5778c2ecf20Sopenharmony_ci "gpio4" 5788c2ecf20Sopenharmony_ci}; 5798c2ecf20Sopenharmony_ci 5808c2ecf20Sopenharmony_cistatic const char * const gp_clk_1b_groups[] = { 5818c2ecf20Sopenharmony_ci "gpio70" 5828c2ecf20Sopenharmony_ci}; 5838c2ecf20Sopenharmony_ci 5848c2ecf20Sopenharmony_cistatic const char * const gp_clk_2a_groups[] = { 5858c2ecf20Sopenharmony_ci "gpio52" 5868c2ecf20Sopenharmony_ci}; 5878c2ecf20Sopenharmony_ci 5888c2ecf20Sopenharmony_cistatic const char * const gp_clk_2b_groups[] = { 5898c2ecf20Sopenharmony_ci "gpio37" 5908c2ecf20Sopenharmony_ci}; 5918c2ecf20Sopenharmony_ci 5928c2ecf20Sopenharmony_cistatic const char * const gp_mn_groups[] = { 5938c2ecf20Sopenharmony_ci "gpio2" 5948c2ecf20Sopenharmony_ci}; 5958c2ecf20Sopenharmony_ci 5968c2ecf20Sopenharmony_cistatic const char * const gp_pdm_0a_groups[] = { 5978c2ecf20Sopenharmony_ci "gpio58" 5988c2ecf20Sopenharmony_ci}; 5998c2ecf20Sopenharmony_ci 6008c2ecf20Sopenharmony_cistatic const char * const gp_pdm_0b_groups[] = { 6018c2ecf20Sopenharmony_ci "gpio39" 6028c2ecf20Sopenharmony_ci}; 6038c2ecf20Sopenharmony_ci 6048c2ecf20Sopenharmony_cistatic const char * const gp_pdm_1a_groups[] = { 6058c2ecf20Sopenharmony_ci "gpio94" 6068c2ecf20Sopenharmony_ci}; 6078c2ecf20Sopenharmony_ci 6088c2ecf20Sopenharmony_cistatic const char * const gp_pdm_1b_groups[] = { 6098c2ecf20Sopenharmony_ci "gpio64" 6108c2ecf20Sopenharmony_ci}; 6118c2ecf20Sopenharmony_ci 6128c2ecf20Sopenharmony_cistatic const char * const gp_pdm_2a_groups[] = { 6138c2ecf20Sopenharmony_ci "gpio69" 6148c2ecf20Sopenharmony_ci}; 6158c2ecf20Sopenharmony_ci 6168c2ecf20Sopenharmony_cistatic const char * const gp_pdm_2b_groups[] = { 6178c2ecf20Sopenharmony_ci "gpio53" 6188c2ecf20Sopenharmony_ci}; 6198c2ecf20Sopenharmony_ci 6208c2ecf20Sopenharmony_cistatic const char * const gpio_groups[] = { 6218c2ecf20Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 6228c2ecf20Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 6238c2ecf20Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 6248c2ecf20Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 6258c2ecf20Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 6268c2ecf20Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 6278c2ecf20Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 6288c2ecf20Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 6298c2ecf20Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 6308c2ecf20Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 6318c2ecf20Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 6328c2ecf20Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 6338c2ecf20Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 6348c2ecf20Sopenharmony_ci "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 6358c2ecf20Sopenharmony_ci "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 6368c2ecf20Sopenharmony_ci "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 6378c2ecf20Sopenharmony_ci "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 6388c2ecf20Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 6398c2ecf20Sopenharmony_ci "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", 6408c2ecf20Sopenharmony_ci "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134", 6418c2ecf20Sopenharmony_ci "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", 6428c2ecf20Sopenharmony_ci "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146", 6438c2ecf20Sopenharmony_ci "gpio147", "gpio148", "gpio149", "gpio150", "gpio151" 6448c2ecf20Sopenharmony_ci}; 6458c2ecf20Sopenharmony_ci 6468c2ecf20Sopenharmony_cistatic const char * const gsbi1_groups[] = { 6478c2ecf20Sopenharmony_ci "gpio6", "gpio7", "gpio8", "gpio9" 6488c2ecf20Sopenharmony_ci}; 6498c2ecf20Sopenharmony_ci 6508c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs1_n_groups[] = { 6518c2ecf20Sopenharmony_ci "gpio14" 6528c2ecf20Sopenharmony_ci}; 6538c2ecf20Sopenharmony_ci 6548c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs2a_n_groups[] = { 6558c2ecf20Sopenharmony_ci "gpio15" 6568c2ecf20Sopenharmony_ci}; 6578c2ecf20Sopenharmony_ci 6588c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs2b_n_groups[] = { 6598c2ecf20Sopenharmony_ci "gpio17" 6608c2ecf20Sopenharmony_ci}; 6618c2ecf20Sopenharmony_ci 6628c2ecf20Sopenharmony_cistatic const char * const gsbi1_spi_cs3_n_groups[] = { 6638c2ecf20Sopenharmony_ci "gpio16" 6648c2ecf20Sopenharmony_ci}; 6658c2ecf20Sopenharmony_ci 6668c2ecf20Sopenharmony_cistatic const char * const gsbi2_groups[] = { 6678c2ecf20Sopenharmony_ci "gpio10", "gpio11", "gpio12", "gpio13" 6688c2ecf20Sopenharmony_ci}; 6698c2ecf20Sopenharmony_ci 6708c2ecf20Sopenharmony_cistatic const char * const gsbi2_spi_cs1_n_groups[] = { 6718c2ecf20Sopenharmony_ci "gpio52" 6728c2ecf20Sopenharmony_ci}; 6738c2ecf20Sopenharmony_ci 6748c2ecf20Sopenharmony_cistatic const char * const gsbi2_spi_cs2_n_groups[] = { 6758c2ecf20Sopenharmony_ci "gpio68" 6768c2ecf20Sopenharmony_ci}; 6778c2ecf20Sopenharmony_ci 6788c2ecf20Sopenharmony_cistatic const char * const gsbi2_spi_cs3_n_groups[] = { 6798c2ecf20Sopenharmony_ci "gpio56" 6808c2ecf20Sopenharmony_ci}; 6818c2ecf20Sopenharmony_ci 6828c2ecf20Sopenharmony_cistatic const char * const gsbi3_groups[] = { 6838c2ecf20Sopenharmony_ci "gpio14", "gpio15", "gpio16", "gpio17" 6848c2ecf20Sopenharmony_ci}; 6858c2ecf20Sopenharmony_ci 6868c2ecf20Sopenharmony_cistatic const char * const gsbi4_groups[] = { 6878c2ecf20Sopenharmony_ci "gpio18", "gpio19", "gpio20", "gpio21" 6888c2ecf20Sopenharmony_ci}; 6898c2ecf20Sopenharmony_ci 6908c2ecf20Sopenharmony_cistatic const char * const gsbi4_3d_cam_i2c_l_groups[] = { 6918c2ecf20Sopenharmony_ci "gpio18", "gpio19" 6928c2ecf20Sopenharmony_ci}; 6938c2ecf20Sopenharmony_ci 6948c2ecf20Sopenharmony_cistatic const char * const gsbi4_3d_cam_i2c_r_groups[] = { 6958c2ecf20Sopenharmony_ci "gpio20", "gpio21" 6968c2ecf20Sopenharmony_ci}; 6978c2ecf20Sopenharmony_ci 6988c2ecf20Sopenharmony_cistatic const char * const gsbi5_groups[] = { 6998c2ecf20Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25" 7008c2ecf20Sopenharmony_ci}; 7018c2ecf20Sopenharmony_ci 7028c2ecf20Sopenharmony_cistatic const char * const gsbi5_3d_cam_i2c_l_groups[] = { 7038c2ecf20Sopenharmony_ci "gpio22", "gpio23" 7048c2ecf20Sopenharmony_ci}; 7058c2ecf20Sopenharmony_ci 7068c2ecf20Sopenharmony_cistatic const char * const gsbi5_3d_cam_i2c_r_groups[] = { 7078c2ecf20Sopenharmony_ci "gpio24", "gpio25" 7088c2ecf20Sopenharmony_ci}; 7098c2ecf20Sopenharmony_ci 7108c2ecf20Sopenharmony_cistatic const char * const gsbi6_groups[] = { 7118c2ecf20Sopenharmony_ci "gpio26", "gpio27", "gpio28", "gpio29" 7128c2ecf20Sopenharmony_ci}; 7138c2ecf20Sopenharmony_ci 7148c2ecf20Sopenharmony_cistatic const char * const gsbi7_groups[] = { 7158c2ecf20Sopenharmony_ci "gpio30", "gpio31", "gpio32", "gpio33" 7168c2ecf20Sopenharmony_ci}; 7178c2ecf20Sopenharmony_ci 7188c2ecf20Sopenharmony_cistatic const char * const gsbi8_groups[] = { 7198c2ecf20Sopenharmony_ci "gpio34", "gpio35", "gpio36", "gpio37" 7208c2ecf20Sopenharmony_ci}; 7218c2ecf20Sopenharmony_ci 7228c2ecf20Sopenharmony_cistatic const char * const gsbi9_groups[] = { 7238c2ecf20Sopenharmony_ci "gpio93", "gpio94", "gpio95", "gpio96" 7248c2ecf20Sopenharmony_ci}; 7258c2ecf20Sopenharmony_ci 7268c2ecf20Sopenharmony_cistatic const char * const gsbi10_groups[] = { 7278c2ecf20Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74" 7288c2ecf20Sopenharmony_ci}; 7298c2ecf20Sopenharmony_ci 7308c2ecf20Sopenharmony_cistatic const char * const gsbi11_groups[] = { 7318c2ecf20Sopenharmony_ci "gpio38", "gpio39", "gpio40", "gpio41" 7328c2ecf20Sopenharmony_ci}; 7338c2ecf20Sopenharmony_ci 7348c2ecf20Sopenharmony_cistatic const char * const gsbi11_spi_cs1a_n_groups[] = { 7358c2ecf20Sopenharmony_ci "gpio36" 7368c2ecf20Sopenharmony_ci}; 7378c2ecf20Sopenharmony_ci 7388c2ecf20Sopenharmony_cistatic const char * const gsbi11_spi_cs1b_n_groups[] = { 7398c2ecf20Sopenharmony_ci "gpio18" 7408c2ecf20Sopenharmony_ci}; 7418c2ecf20Sopenharmony_ci 7428c2ecf20Sopenharmony_cistatic const char * const gsbi11_spi_cs2a_n_groups[] = { 7438c2ecf20Sopenharmony_ci "gpio37" 7448c2ecf20Sopenharmony_ci}; 7458c2ecf20Sopenharmony_ci 7468c2ecf20Sopenharmony_cistatic const char * const gsbi11_spi_cs2b_n_groups[] = { 7478c2ecf20Sopenharmony_ci "gpio19" 7488c2ecf20Sopenharmony_ci}; 7498c2ecf20Sopenharmony_ci 7508c2ecf20Sopenharmony_cistatic const char * const gsbi11_spi_cs3_n_groups[] = { 7518c2ecf20Sopenharmony_ci "gpio76" 7528c2ecf20Sopenharmony_ci}; 7538c2ecf20Sopenharmony_ci 7548c2ecf20Sopenharmony_cistatic const char * const gsbi12_groups[] = { 7558c2ecf20Sopenharmony_ci "gpio42", "gpio43", "gpio44", "gpio45" 7568c2ecf20Sopenharmony_ci}; 7578c2ecf20Sopenharmony_ci 7588c2ecf20Sopenharmony_cistatic const char * const hdmi_cec_groups[] = { 7598c2ecf20Sopenharmony_ci "gpio99" 7608c2ecf20Sopenharmony_ci}; 7618c2ecf20Sopenharmony_ci 7628c2ecf20Sopenharmony_cistatic const char * const hdmi_ddc_clock_groups[] = { 7638c2ecf20Sopenharmony_ci "gpio100" 7648c2ecf20Sopenharmony_ci}; 7658c2ecf20Sopenharmony_ci 7668c2ecf20Sopenharmony_cistatic const char * const hdmi_ddc_data_groups[] = { 7678c2ecf20Sopenharmony_ci "gpio101" 7688c2ecf20Sopenharmony_ci}; 7698c2ecf20Sopenharmony_ci 7708c2ecf20Sopenharmony_cistatic const char * const hdmi_hot_plug_detect_groups[] = { 7718c2ecf20Sopenharmony_ci "gpio102" 7728c2ecf20Sopenharmony_ci}; 7738c2ecf20Sopenharmony_ci 7748c2ecf20Sopenharmony_cistatic const char * const hsic_groups[] = { 7758c2ecf20Sopenharmony_ci "gpio150", "gpio151" 7768c2ecf20Sopenharmony_ci}; 7778c2ecf20Sopenharmony_ci 7788c2ecf20Sopenharmony_cistatic const char * const mdp_vsync_groups[] = { 7798c2ecf20Sopenharmony_ci "gpio0", "gpio1", "gpio19" 7808c2ecf20Sopenharmony_ci}; 7818c2ecf20Sopenharmony_ci 7828c2ecf20Sopenharmony_cistatic const char * const mi2s_groups[] = { 7838c2ecf20Sopenharmony_ci "gpio47", "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53" 7848c2ecf20Sopenharmony_ci}; 7858c2ecf20Sopenharmony_ci 7868c2ecf20Sopenharmony_cistatic const char * const mic_i2s_groups[] = { 7878c2ecf20Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74" 7888c2ecf20Sopenharmony_ci}; 7898c2ecf20Sopenharmony_ci 7908c2ecf20Sopenharmony_cistatic const char * const pmb_clk_groups[] = { 7918c2ecf20Sopenharmony_ci "gpio21", "gpio86", "gpio112" 7928c2ecf20Sopenharmony_ci}; 7938c2ecf20Sopenharmony_ci 7948c2ecf20Sopenharmony_cistatic const char * const pmb_ext_ctrl_groups[] = { 7958c2ecf20Sopenharmony_ci "gpio4", "gpio5" 7968c2ecf20Sopenharmony_ci}; 7978c2ecf20Sopenharmony_ci 7988c2ecf20Sopenharmony_cistatic const char * const ps_hold_groups[] = { 7998c2ecf20Sopenharmony_ci "gpio108" 8008c2ecf20Sopenharmony_ci}; 8018c2ecf20Sopenharmony_ci 8028c2ecf20Sopenharmony_cistatic const char * const rpm_wdog_groups[] = { 8038c2ecf20Sopenharmony_ci "gpio12" 8048c2ecf20Sopenharmony_ci}; 8058c2ecf20Sopenharmony_ci 8068c2ecf20Sopenharmony_cistatic const char * const sdc2_groups[] = { 8078c2ecf20Sopenharmony_ci "gpio89", "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", 8088c2ecf20Sopenharmony_ci "gpio96", "gpio97", "gpio98" 8098c2ecf20Sopenharmony_ci}; 8108c2ecf20Sopenharmony_ci 8118c2ecf20Sopenharmony_cistatic const char * const sdc4_groups[] = { 8128c2ecf20Sopenharmony_ci "gpio83", "gpio84", "gpio85", "gpio86", "gpio87", "gpio88" 8138c2ecf20Sopenharmony_ci}; 8148c2ecf20Sopenharmony_ci 8158c2ecf20Sopenharmony_cistatic const char * const sdc5_groups[] = { 8168c2ecf20Sopenharmony_ci "gpio77", "gpio78", "gpio79", "gpio80", "gpio81", "gpio82" 8178c2ecf20Sopenharmony_ci}; 8188c2ecf20Sopenharmony_ci 8198c2ecf20Sopenharmony_cistatic const char * const slimbus1_groups[] = { 8208c2ecf20Sopenharmony_ci "gpio50", "gpio51", "gpio60", "gpio61" 8218c2ecf20Sopenharmony_ci}; 8228c2ecf20Sopenharmony_ci 8238c2ecf20Sopenharmony_cistatic const char * const slimbus2_groups[] = { 8248c2ecf20Sopenharmony_ci "gpio42", "gpio43" 8258c2ecf20Sopenharmony_ci}; 8268c2ecf20Sopenharmony_ci 8278c2ecf20Sopenharmony_cistatic const char * const spkr_i2s_groups[] = { 8288c2ecf20Sopenharmony_ci "gpio67", "gpio68", "gpio69", "gpio70" 8298c2ecf20Sopenharmony_ci}; 8308c2ecf20Sopenharmony_ci 8318c2ecf20Sopenharmony_cistatic const char * const ssbi1_groups[] = { 8328c2ecf20Sopenharmony_ci "gpio141", "gpio143" 8338c2ecf20Sopenharmony_ci}; 8348c2ecf20Sopenharmony_ci 8358c2ecf20Sopenharmony_cistatic const char * const ssbi2_groups[] = { 8368c2ecf20Sopenharmony_ci "gpio140", "gpio142" 8378c2ecf20Sopenharmony_ci}; 8388c2ecf20Sopenharmony_ci 8398c2ecf20Sopenharmony_cistatic const char * const ssbi_ext_gps_groups[] = { 8408c2ecf20Sopenharmony_ci "gpio23" 8418c2ecf20Sopenharmony_ci}; 8428c2ecf20Sopenharmony_ci 8438c2ecf20Sopenharmony_cistatic const char * const ssbi_pmic2_groups[] = { 8448c2ecf20Sopenharmony_ci "gpio149" 8458c2ecf20Sopenharmony_ci}; 8468c2ecf20Sopenharmony_ci 8478c2ecf20Sopenharmony_cistatic const char * const ssbi_qpa1_groups[] = { 8488c2ecf20Sopenharmony_ci "gpio131" 8498c2ecf20Sopenharmony_ci}; 8508c2ecf20Sopenharmony_ci 8518c2ecf20Sopenharmony_cistatic const char * const ssbi_ts_groups[] = { 8528c2ecf20Sopenharmony_ci "gpio10" 8538c2ecf20Sopenharmony_ci}; 8548c2ecf20Sopenharmony_ci 8558c2ecf20Sopenharmony_cistatic const char * const tsif1_groups[] = { 8568c2ecf20Sopenharmony_ci "gpio75", "gpio76", "gpio77", "gpio82" 8578c2ecf20Sopenharmony_ci}; 8588c2ecf20Sopenharmony_ci 8598c2ecf20Sopenharmony_cistatic const char * const tsif2_groups[] = { 8608c2ecf20Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81" 8618c2ecf20Sopenharmony_ci}; 8628c2ecf20Sopenharmony_ci 8638c2ecf20Sopenharmony_cistatic const char * const ts_eoc_groups[] = { 8648c2ecf20Sopenharmony_ci "gpio11" 8658c2ecf20Sopenharmony_ci}; 8668c2ecf20Sopenharmony_ci 8678c2ecf20Sopenharmony_cistatic const char * const usb_fs1_groups[] = { 8688c2ecf20Sopenharmony_ci "gpio32", "gpio33" 8698c2ecf20Sopenharmony_ci}; 8708c2ecf20Sopenharmony_ci 8718c2ecf20Sopenharmony_cistatic const char * const usb_fs1_oe_groups[] = { 8728c2ecf20Sopenharmony_ci "gpio31" 8738c2ecf20Sopenharmony_ci}; 8748c2ecf20Sopenharmony_ci 8758c2ecf20Sopenharmony_cistatic const char * const usb_fs1_oe_n_groups[] = { 8768c2ecf20Sopenharmony_ci "gpio31" 8778c2ecf20Sopenharmony_ci}; 8788c2ecf20Sopenharmony_ci 8798c2ecf20Sopenharmony_cistatic const char * const usb_fs2_groups[] = { 8808c2ecf20Sopenharmony_ci "gpio34", "gpio35" 8818c2ecf20Sopenharmony_ci}; 8828c2ecf20Sopenharmony_ci 8838c2ecf20Sopenharmony_cistatic const char * const usb_fs2_oe_groups[] = { 8848c2ecf20Sopenharmony_ci "gpio36" 8858c2ecf20Sopenharmony_ci}; 8868c2ecf20Sopenharmony_ci 8878c2ecf20Sopenharmony_cistatic const char * const usb_fs2_oe_n_groups[] = { 8888c2ecf20Sopenharmony_ci "gpio36" 8898c2ecf20Sopenharmony_ci}; 8908c2ecf20Sopenharmony_ci 8918c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer1_a_groups[] = { 8928c2ecf20Sopenharmony_ci "gpio2" 8938c2ecf20Sopenharmony_ci}; 8948c2ecf20Sopenharmony_ci 8958c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer1_b_groups[] = { 8968c2ecf20Sopenharmony_ci "gpio38" 8978c2ecf20Sopenharmony_ci}; 8988c2ecf20Sopenharmony_ci 8998c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer2_groups[] = { 9008c2ecf20Sopenharmony_ci "gpio3" 9018c2ecf20Sopenharmony_ci}; 9028c2ecf20Sopenharmony_ci 9038c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer3_a_groups[] = { 9048c2ecf20Sopenharmony_ci "gpio4" 9058c2ecf20Sopenharmony_ci}; 9068c2ecf20Sopenharmony_ci 9078c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer3_b_groups[] = { 9088c2ecf20Sopenharmony_ci "gpio151" 9098c2ecf20Sopenharmony_ci}; 9108c2ecf20Sopenharmony_ci 9118c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer4_a_groups[] = { 9128c2ecf20Sopenharmony_ci "gpio65" 9138c2ecf20Sopenharmony_ci}; 9148c2ecf20Sopenharmony_ci 9158c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer4_b_groups[] = { 9168c2ecf20Sopenharmony_ci "gpio150" 9178c2ecf20Sopenharmony_ci}; 9188c2ecf20Sopenharmony_ci 9198c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer4_c_groups[] = { 9208c2ecf20Sopenharmony_ci "gpio10" 9218c2ecf20Sopenharmony_ci}; 9228c2ecf20Sopenharmony_ci 9238c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer5_a_groups[] = { 9248c2ecf20Sopenharmony_ci "gpio66" 9258c2ecf20Sopenharmony_ci}; 9268c2ecf20Sopenharmony_ci 9278c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer5_b_groups[] = { 9288c2ecf20Sopenharmony_ci "gpio39" 9298c2ecf20Sopenharmony_ci}; 9308c2ecf20Sopenharmony_ci 9318c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer6_a_groups[] = { 9328c2ecf20Sopenharmony_ci "gpio71" 9338c2ecf20Sopenharmony_ci}; 9348c2ecf20Sopenharmony_ci 9358c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer6_b_groups[] = { 9368c2ecf20Sopenharmony_ci "gpio0" 9378c2ecf20Sopenharmony_ci}; 9388c2ecf20Sopenharmony_ci 9398c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer6_c_groups[] = { 9408c2ecf20Sopenharmony_ci "gpio18" 9418c2ecf20Sopenharmony_ci}; 9428c2ecf20Sopenharmony_ci 9438c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer7_a_groups[] = { 9448c2ecf20Sopenharmony_ci "gpio67" 9458c2ecf20Sopenharmony_ci}; 9468c2ecf20Sopenharmony_ci 9478c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer7_b_groups[] = { 9488c2ecf20Sopenharmony_ci "gpio1" 9498c2ecf20Sopenharmony_ci}; 9508c2ecf20Sopenharmony_ci 9518c2ecf20Sopenharmony_cistatic const char * const vfe_camif_timer7_c_groups[] = { 9528c2ecf20Sopenharmony_ci "gpio19" 9538c2ecf20Sopenharmony_ci}; 9548c2ecf20Sopenharmony_ci 9558c2ecf20Sopenharmony_cistatic const char * const wlan_groups[] = { 9568c2ecf20Sopenharmony_ci "gpio84", "gpio85", "gpio86", "gpio87", "gpio88" 9578c2ecf20Sopenharmony_ci}; 9588c2ecf20Sopenharmony_ci 9598c2ecf20Sopenharmony_cistatic const struct msm_function msm8960_functions[] = { 9608c2ecf20Sopenharmony_ci FUNCTION(audio_pcm), 9618c2ecf20Sopenharmony_ci FUNCTION(bt), 9628c2ecf20Sopenharmony_ci FUNCTION(cam_mclk0), 9638c2ecf20Sopenharmony_ci FUNCTION(cam_mclk1), 9648c2ecf20Sopenharmony_ci FUNCTION(cam_mclk2), 9658c2ecf20Sopenharmony_ci FUNCTION(codec_mic_i2s), 9668c2ecf20Sopenharmony_ci FUNCTION(codec_spkr_i2s), 9678c2ecf20Sopenharmony_ci FUNCTION(ext_gps), 9688c2ecf20Sopenharmony_ci FUNCTION(fm), 9698c2ecf20Sopenharmony_ci FUNCTION(gps_blanking), 9708c2ecf20Sopenharmony_ci FUNCTION(gps_pps_in), 9718c2ecf20Sopenharmony_ci FUNCTION(gps_pps_out), 9728c2ecf20Sopenharmony_ci FUNCTION(gp_clk_0a), 9738c2ecf20Sopenharmony_ci FUNCTION(gp_clk_0b), 9748c2ecf20Sopenharmony_ci FUNCTION(gp_clk_1a), 9758c2ecf20Sopenharmony_ci FUNCTION(gp_clk_1b), 9768c2ecf20Sopenharmony_ci FUNCTION(gp_clk_2a), 9778c2ecf20Sopenharmony_ci FUNCTION(gp_clk_2b), 9788c2ecf20Sopenharmony_ci FUNCTION(gp_mn), 9798c2ecf20Sopenharmony_ci FUNCTION(gp_pdm_0a), 9808c2ecf20Sopenharmony_ci FUNCTION(gp_pdm_0b), 9818c2ecf20Sopenharmony_ci FUNCTION(gp_pdm_1a), 9828c2ecf20Sopenharmony_ci FUNCTION(gp_pdm_1b), 9838c2ecf20Sopenharmony_ci FUNCTION(gp_pdm_2a), 9848c2ecf20Sopenharmony_ci FUNCTION(gp_pdm_2b), 9858c2ecf20Sopenharmony_ci FUNCTION(gpio), 9868c2ecf20Sopenharmony_ci FUNCTION(gsbi1), 9878c2ecf20Sopenharmony_ci FUNCTION(gsbi1_spi_cs1_n), 9888c2ecf20Sopenharmony_ci FUNCTION(gsbi1_spi_cs2a_n), 9898c2ecf20Sopenharmony_ci FUNCTION(gsbi1_spi_cs2b_n), 9908c2ecf20Sopenharmony_ci FUNCTION(gsbi1_spi_cs3_n), 9918c2ecf20Sopenharmony_ci FUNCTION(gsbi2), 9928c2ecf20Sopenharmony_ci FUNCTION(gsbi2_spi_cs1_n), 9938c2ecf20Sopenharmony_ci FUNCTION(gsbi2_spi_cs2_n), 9948c2ecf20Sopenharmony_ci FUNCTION(gsbi2_spi_cs3_n), 9958c2ecf20Sopenharmony_ci FUNCTION(gsbi3), 9968c2ecf20Sopenharmony_ci FUNCTION(gsbi4), 9978c2ecf20Sopenharmony_ci FUNCTION(gsbi4_3d_cam_i2c_l), 9988c2ecf20Sopenharmony_ci FUNCTION(gsbi4_3d_cam_i2c_r), 9998c2ecf20Sopenharmony_ci FUNCTION(gsbi5), 10008c2ecf20Sopenharmony_ci FUNCTION(gsbi5_3d_cam_i2c_l), 10018c2ecf20Sopenharmony_ci FUNCTION(gsbi5_3d_cam_i2c_r), 10028c2ecf20Sopenharmony_ci FUNCTION(gsbi6), 10038c2ecf20Sopenharmony_ci FUNCTION(gsbi7), 10048c2ecf20Sopenharmony_ci FUNCTION(gsbi8), 10058c2ecf20Sopenharmony_ci FUNCTION(gsbi9), 10068c2ecf20Sopenharmony_ci FUNCTION(gsbi10), 10078c2ecf20Sopenharmony_ci FUNCTION(gsbi11), 10088c2ecf20Sopenharmony_ci FUNCTION(gsbi11_spi_cs1a_n), 10098c2ecf20Sopenharmony_ci FUNCTION(gsbi11_spi_cs1b_n), 10108c2ecf20Sopenharmony_ci FUNCTION(gsbi11_spi_cs2a_n), 10118c2ecf20Sopenharmony_ci FUNCTION(gsbi11_spi_cs2b_n), 10128c2ecf20Sopenharmony_ci FUNCTION(gsbi11_spi_cs3_n), 10138c2ecf20Sopenharmony_ci FUNCTION(gsbi12), 10148c2ecf20Sopenharmony_ci FUNCTION(hdmi_cec), 10158c2ecf20Sopenharmony_ci FUNCTION(hdmi_ddc_clock), 10168c2ecf20Sopenharmony_ci FUNCTION(hdmi_ddc_data), 10178c2ecf20Sopenharmony_ci FUNCTION(hdmi_hot_plug_detect), 10188c2ecf20Sopenharmony_ci FUNCTION(hsic), 10198c2ecf20Sopenharmony_ci FUNCTION(mdp_vsync), 10208c2ecf20Sopenharmony_ci FUNCTION(mi2s), 10218c2ecf20Sopenharmony_ci FUNCTION(mic_i2s), 10228c2ecf20Sopenharmony_ci FUNCTION(pmb_clk), 10238c2ecf20Sopenharmony_ci FUNCTION(pmb_ext_ctrl), 10248c2ecf20Sopenharmony_ci FUNCTION(ps_hold), 10258c2ecf20Sopenharmony_ci FUNCTION(rpm_wdog), 10268c2ecf20Sopenharmony_ci FUNCTION(sdc2), 10278c2ecf20Sopenharmony_ci FUNCTION(sdc4), 10288c2ecf20Sopenharmony_ci FUNCTION(sdc5), 10298c2ecf20Sopenharmony_ci FUNCTION(slimbus1), 10308c2ecf20Sopenharmony_ci FUNCTION(slimbus2), 10318c2ecf20Sopenharmony_ci FUNCTION(spkr_i2s), 10328c2ecf20Sopenharmony_ci FUNCTION(ssbi1), 10338c2ecf20Sopenharmony_ci FUNCTION(ssbi2), 10348c2ecf20Sopenharmony_ci FUNCTION(ssbi_ext_gps), 10358c2ecf20Sopenharmony_ci FUNCTION(ssbi_pmic2), 10368c2ecf20Sopenharmony_ci FUNCTION(ssbi_qpa1), 10378c2ecf20Sopenharmony_ci FUNCTION(ssbi_ts), 10388c2ecf20Sopenharmony_ci FUNCTION(tsif1), 10398c2ecf20Sopenharmony_ci FUNCTION(tsif2), 10408c2ecf20Sopenharmony_ci FUNCTION(ts_eoc), 10418c2ecf20Sopenharmony_ci FUNCTION(usb_fs1), 10428c2ecf20Sopenharmony_ci FUNCTION(usb_fs1_oe), 10438c2ecf20Sopenharmony_ci FUNCTION(usb_fs1_oe_n), 10448c2ecf20Sopenharmony_ci FUNCTION(usb_fs2), 10458c2ecf20Sopenharmony_ci FUNCTION(usb_fs2_oe), 10468c2ecf20Sopenharmony_ci FUNCTION(usb_fs2_oe_n), 10478c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer1_a), 10488c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer1_b), 10498c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer2), 10508c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer3_a), 10518c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer3_b), 10528c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer4_a), 10538c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer4_b), 10548c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer4_c), 10558c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer5_a), 10568c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer5_b), 10578c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer6_a), 10588c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer6_b), 10598c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer6_c), 10608c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer7_a), 10618c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer7_b), 10628c2ecf20Sopenharmony_ci FUNCTION(vfe_camif_timer7_c), 10638c2ecf20Sopenharmony_ci FUNCTION(wlan), 10648c2ecf20Sopenharmony_ci}; 10658c2ecf20Sopenharmony_ci 10668c2ecf20Sopenharmony_cistatic const struct msm_pingroup msm8960_groups[] = { 10678c2ecf20Sopenharmony_ci PINGROUP(0, mdp_vsync, vfe_camif_timer6_b, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10688c2ecf20Sopenharmony_ci PINGROUP(1, mdp_vsync, vfe_camif_timer7_b, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10698c2ecf20Sopenharmony_ci PINGROUP(2, vfe_camif_timer1_a, gp_mn, NA, cam_mclk2, NA, NA, NA, NA, NA, NA, NA), 10708c2ecf20Sopenharmony_ci PINGROUP(3, vfe_camif_timer2, gp_clk_0a, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10718c2ecf20Sopenharmony_ci PINGROUP(4, vfe_camif_timer3_a, cam_mclk1, gp_clk_1a, pmb_ext_ctrl, NA, NA, NA, NA, NA, NA, NA), 10728c2ecf20Sopenharmony_ci PINGROUP(5, cam_mclk0, pmb_ext_ctrl, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10738c2ecf20Sopenharmony_ci PINGROUP(6, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10748c2ecf20Sopenharmony_ci PINGROUP(7, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10758c2ecf20Sopenharmony_ci PINGROUP(8, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10768c2ecf20Sopenharmony_ci PINGROUP(9, gsbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10778c2ecf20Sopenharmony_ci PINGROUP(10, gsbi2, ssbi_ts, NA, vfe_camif_timer4_c, NA, NA, NA, NA, NA, NA, NA), 10788c2ecf20Sopenharmony_ci PINGROUP(11, gsbi2, ts_eoc, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10798c2ecf20Sopenharmony_ci PINGROUP(12, gsbi2, rpm_wdog, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10808c2ecf20Sopenharmony_ci PINGROUP(13, gsbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10818c2ecf20Sopenharmony_ci PINGROUP(14, gsbi3, gsbi1_spi_cs1_n, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10828c2ecf20Sopenharmony_ci PINGROUP(15, gsbi3, gsbi1_spi_cs2a_n, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10838c2ecf20Sopenharmony_ci PINGROUP(16, gsbi3, gsbi1_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10848c2ecf20Sopenharmony_ci PINGROUP(17, gsbi3, gsbi1_spi_cs2b_n, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10858c2ecf20Sopenharmony_ci PINGROUP(18, gsbi4, gsbi11_spi_cs1b_n, NA, NA, gsbi4_3d_cam_i2c_l, vfe_camif_timer6_c, NA, NA, NA, NA, NA), 10868c2ecf20Sopenharmony_ci PINGROUP(19, gsbi4, gsbi11_spi_cs2b_n, NA, mdp_vsync, NA, gsbi4_3d_cam_i2c_l, vfe_camif_timer7_c, NA, NA, NA, NA), 10878c2ecf20Sopenharmony_ci PINGROUP(20, gsbi4, gsbi4_3d_cam_i2c_r, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10888c2ecf20Sopenharmony_ci PINGROUP(21, gsbi4, pmb_clk, gsbi4_3d_cam_i2c_r, NA, NA, NA, NA, NA, NA, NA, NA), 10898c2ecf20Sopenharmony_ci PINGROUP(22, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_l, NA), 10908c2ecf20Sopenharmony_ci PINGROUP(23, gsbi5, ssbi_ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_l, NA), 10918c2ecf20Sopenharmony_ci PINGROUP(24, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_r, NA), 10928c2ecf20Sopenharmony_ci PINGROUP(25, gsbi5, ext_gps, NA, NA, NA, NA, NA, NA, NA, gsbi5_3d_cam_i2c_r, NA), 10938c2ecf20Sopenharmony_ci PINGROUP(26, fm, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10948c2ecf20Sopenharmony_ci PINGROUP(27, fm, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10958c2ecf20Sopenharmony_ci PINGROUP(28, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10968c2ecf20Sopenharmony_ci PINGROUP(29, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10978c2ecf20Sopenharmony_ci PINGROUP(30, gsbi7, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10988c2ecf20Sopenharmony_ci PINGROUP(31, gsbi7, usb_fs1_oe, usb_fs1_oe_n, NA, NA, NA, NA, NA, NA, NA, NA), 10998c2ecf20Sopenharmony_ci PINGROUP(32, gsbi7, usb_fs1, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11008c2ecf20Sopenharmony_ci PINGROUP(33, gsbi7, usb_fs1, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11018c2ecf20Sopenharmony_ci PINGROUP(34, gsbi8, usb_fs2, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11028c2ecf20Sopenharmony_ci PINGROUP(35, gsbi8, usb_fs2, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11038c2ecf20Sopenharmony_ci PINGROUP(36, gsbi8, usb_fs2_oe, usb_fs2_oe_n, gsbi11_spi_cs1a_n, NA, NA, NA, NA, NA, NA, NA), 11048c2ecf20Sopenharmony_ci PINGROUP(37, gsbi8, gps_pps_out, gps_pps_in, gsbi11_spi_cs2a_n, gp_clk_2b, NA, NA, NA, NA, NA, NA), 11058c2ecf20Sopenharmony_ci PINGROUP(38, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, vfe_camif_timer1_b, NA), 11068c2ecf20Sopenharmony_ci PINGROUP(39, gsbi11, gp_pdm_0b, NA, NA, NA, NA, NA, NA, NA, NA, vfe_camif_timer5_b), 11078c2ecf20Sopenharmony_ci PINGROUP(40, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11088c2ecf20Sopenharmony_ci PINGROUP(41, gsbi11, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11098c2ecf20Sopenharmony_ci PINGROUP(42, gsbi12, slimbus2, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11108c2ecf20Sopenharmony_ci PINGROUP(43, gsbi12, slimbus2, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11118c2ecf20Sopenharmony_ci PINGROUP(44, gsbi12, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11128c2ecf20Sopenharmony_ci PINGROUP(45, gsbi12, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11138c2ecf20Sopenharmony_ci PINGROUP(46, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11148c2ecf20Sopenharmony_ci PINGROUP(47, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11158c2ecf20Sopenharmony_ci PINGROUP(48, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11168c2ecf20Sopenharmony_ci PINGROUP(49, mi2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11178c2ecf20Sopenharmony_ci PINGROUP(50, mi2s, slimbus1, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11188c2ecf20Sopenharmony_ci PINGROUP(51, mi2s, slimbus1, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11198c2ecf20Sopenharmony_ci PINGROUP(52, mi2s, gp_clk_2a, gsbi2_spi_cs1_n, NA, NA, NA, NA, NA, NA, NA, NA), 11208c2ecf20Sopenharmony_ci PINGROUP(53, mi2s, gp_pdm_2b, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11218c2ecf20Sopenharmony_ci PINGROUP(54, codec_mic_i2s, gp_clk_0b, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11228c2ecf20Sopenharmony_ci PINGROUP(55, codec_mic_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11238c2ecf20Sopenharmony_ci PINGROUP(56, codec_mic_i2s, gsbi2_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11248c2ecf20Sopenharmony_ci PINGROUP(57, codec_mic_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11258c2ecf20Sopenharmony_ci PINGROUP(58, codec_mic_i2s, gp_pdm_0a, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11268c2ecf20Sopenharmony_ci PINGROUP(59, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11278c2ecf20Sopenharmony_ci PINGROUP(60, slimbus1, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11288c2ecf20Sopenharmony_ci PINGROUP(61, slimbus1, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11298c2ecf20Sopenharmony_ci PINGROUP(62, codec_spkr_i2s, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11308c2ecf20Sopenharmony_ci PINGROUP(63, audio_pcm, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11318c2ecf20Sopenharmony_ci PINGROUP(64, audio_pcm, gp_pdm_1b, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11328c2ecf20Sopenharmony_ci PINGROUP(65, audio_pcm, vfe_camif_timer4_a, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11338c2ecf20Sopenharmony_ci PINGROUP(66, audio_pcm, vfe_camif_timer5_a, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11348c2ecf20Sopenharmony_ci PINGROUP(67, spkr_i2s, vfe_camif_timer7_a, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11358c2ecf20Sopenharmony_ci PINGROUP(68, spkr_i2s, gsbi2_spi_cs2_n, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11368c2ecf20Sopenharmony_ci PINGROUP(69, spkr_i2s, gp_pdm_2a, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11378c2ecf20Sopenharmony_ci PINGROUP(70, spkr_i2s, gp_clk_1b, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11388c2ecf20Sopenharmony_ci PINGROUP(71, mic_i2s, gsbi10, vfe_camif_timer6_a, NA, NA, NA, NA, NA, NA, NA, NA), 11398c2ecf20Sopenharmony_ci PINGROUP(72, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11408c2ecf20Sopenharmony_ci PINGROUP(73, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11418c2ecf20Sopenharmony_ci PINGROUP(74, mic_i2s, gsbi10, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11428c2ecf20Sopenharmony_ci PINGROUP(75, tsif1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11438c2ecf20Sopenharmony_ci PINGROUP(76, tsif1, gsbi11_spi_cs3_n, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11448c2ecf20Sopenharmony_ci PINGROUP(77, tsif1, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11458c2ecf20Sopenharmony_ci PINGROUP(78, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11468c2ecf20Sopenharmony_ci PINGROUP(79, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11478c2ecf20Sopenharmony_ci PINGROUP(80, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11488c2ecf20Sopenharmony_ci PINGROUP(81, tsif2, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11498c2ecf20Sopenharmony_ci PINGROUP(82, tsif1, sdc5, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11508c2ecf20Sopenharmony_ci PINGROUP(83, bt, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11518c2ecf20Sopenharmony_ci PINGROUP(84, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11528c2ecf20Sopenharmony_ci PINGROUP(85, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11538c2ecf20Sopenharmony_ci PINGROUP(86, wlan, sdc4, pmb_clk, NA, NA, NA, NA, NA, NA, NA, NA), 11548c2ecf20Sopenharmony_ci PINGROUP(87, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11558c2ecf20Sopenharmony_ci PINGROUP(88, wlan, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11568c2ecf20Sopenharmony_ci PINGROUP(89, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11578c2ecf20Sopenharmony_ci PINGROUP(90, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11588c2ecf20Sopenharmony_ci PINGROUP(91, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11598c2ecf20Sopenharmony_ci PINGROUP(92, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11608c2ecf20Sopenharmony_ci PINGROUP(93, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11618c2ecf20Sopenharmony_ci PINGROUP(94, sdc2, gsbi9, gp_pdm_1a, NA, NA, NA, NA, NA, NA, NA, NA), 11628c2ecf20Sopenharmony_ci PINGROUP(95, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11638c2ecf20Sopenharmony_ci PINGROUP(96, sdc2, gsbi9, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11648c2ecf20Sopenharmony_ci PINGROUP(97, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11658c2ecf20Sopenharmony_ci PINGROUP(98, sdc2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11668c2ecf20Sopenharmony_ci PINGROUP(99, hdmi_cec, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11678c2ecf20Sopenharmony_ci PINGROUP(100, hdmi_ddc_clock, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11688c2ecf20Sopenharmony_ci PINGROUP(101, hdmi_ddc_data, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11698c2ecf20Sopenharmony_ci PINGROUP(102, hdmi_hot_plug_detect, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11708c2ecf20Sopenharmony_ci PINGROUP(103, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11718c2ecf20Sopenharmony_ci PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11728c2ecf20Sopenharmony_ci PINGROUP(105, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11738c2ecf20Sopenharmony_ci PINGROUP(106, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11748c2ecf20Sopenharmony_ci PINGROUP(107, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11758c2ecf20Sopenharmony_ci PINGROUP(108, ps_hold, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11768c2ecf20Sopenharmony_ci PINGROUP(109, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11778c2ecf20Sopenharmony_ci PINGROUP(110, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11788c2ecf20Sopenharmony_ci PINGROUP(111, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11798c2ecf20Sopenharmony_ci PINGROUP(112, NA, pmb_clk, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11808c2ecf20Sopenharmony_ci PINGROUP(113, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11818c2ecf20Sopenharmony_ci PINGROUP(114, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11828c2ecf20Sopenharmony_ci PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11838c2ecf20Sopenharmony_ci PINGROUP(116, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11848c2ecf20Sopenharmony_ci PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11858c2ecf20Sopenharmony_ci PINGROUP(118, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11868c2ecf20Sopenharmony_ci PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11878c2ecf20Sopenharmony_ci PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11888c2ecf20Sopenharmony_ci PINGROUP(121, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11898c2ecf20Sopenharmony_ci PINGROUP(122, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11908c2ecf20Sopenharmony_ci PINGROUP(123, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11918c2ecf20Sopenharmony_ci PINGROUP(124, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11928c2ecf20Sopenharmony_ci PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11938c2ecf20Sopenharmony_ci PINGROUP(126, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11948c2ecf20Sopenharmony_ci PINGROUP(127, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11958c2ecf20Sopenharmony_ci PINGROUP(128, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11968c2ecf20Sopenharmony_ci PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11978c2ecf20Sopenharmony_ci PINGROUP(130, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11988c2ecf20Sopenharmony_ci PINGROUP(131, NA, ssbi_qpa1, NA, NA, NA, NA, NA, NA, NA, NA, NA), 11998c2ecf20Sopenharmony_ci PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12008c2ecf20Sopenharmony_ci PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12018c2ecf20Sopenharmony_ci PINGROUP(134, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12028c2ecf20Sopenharmony_ci PINGROUP(135, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12038c2ecf20Sopenharmony_ci PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12048c2ecf20Sopenharmony_ci PINGROUP(137, gps_blanking, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12058c2ecf20Sopenharmony_ci PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12068c2ecf20Sopenharmony_ci PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12078c2ecf20Sopenharmony_ci PINGROUP(140, ssbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12088c2ecf20Sopenharmony_ci PINGROUP(141, ssbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12098c2ecf20Sopenharmony_ci PINGROUP(142, ssbi2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12108c2ecf20Sopenharmony_ci PINGROUP(143, ssbi1, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12118c2ecf20Sopenharmony_ci PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12128c2ecf20Sopenharmony_ci PINGROUP(145, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12138c2ecf20Sopenharmony_ci PINGROUP(146, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12148c2ecf20Sopenharmony_ci PINGROUP(147, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12158c2ecf20Sopenharmony_ci PINGROUP(148, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12168c2ecf20Sopenharmony_ci PINGROUP(149, ssbi_pmic2, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), 12178c2ecf20Sopenharmony_ci PINGROUP(150, hsic, NA, vfe_camif_timer4_b, NA, NA, NA, NA, NA, NA, NA, NA), 12188c2ecf20Sopenharmony_ci PINGROUP(151, hsic, NA, vfe_camif_timer3_b, NA, NA, NA, NA, NA, NA, NA, NA), 12198c2ecf20Sopenharmony_ci 12208c2ecf20Sopenharmony_ci SDC_PINGROUP(sdc1_clk, 0x20a0, 13, 6), 12218c2ecf20Sopenharmony_ci SDC_PINGROUP(sdc1_cmd, 0x20a0, 11, 3), 12228c2ecf20Sopenharmony_ci SDC_PINGROUP(sdc1_data, 0x20a0, 9, 0), 12238c2ecf20Sopenharmony_ci 12248c2ecf20Sopenharmony_ci SDC_PINGROUP(sdc3_clk, 0x20a4, 14, 6), 12258c2ecf20Sopenharmony_ci SDC_PINGROUP(sdc3_cmd, 0x20a4, 11, 3), 12268c2ecf20Sopenharmony_ci SDC_PINGROUP(sdc3_data, 0x20a4, 9, 0), 12278c2ecf20Sopenharmony_ci}; 12288c2ecf20Sopenharmony_ci 12298c2ecf20Sopenharmony_ci#define NUM_GPIO_PINGROUPS 152 12308c2ecf20Sopenharmony_ci 12318c2ecf20Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8960_pinctrl = { 12328c2ecf20Sopenharmony_ci .pins = msm8960_pins, 12338c2ecf20Sopenharmony_ci .npins = ARRAY_SIZE(msm8960_pins), 12348c2ecf20Sopenharmony_ci .functions = msm8960_functions, 12358c2ecf20Sopenharmony_ci .nfunctions = ARRAY_SIZE(msm8960_functions), 12368c2ecf20Sopenharmony_ci .groups = msm8960_groups, 12378c2ecf20Sopenharmony_ci .ngroups = ARRAY_SIZE(msm8960_groups), 12388c2ecf20Sopenharmony_ci .ngpios = NUM_GPIO_PINGROUPS, 12398c2ecf20Sopenharmony_ci}; 12408c2ecf20Sopenharmony_ci 12418c2ecf20Sopenharmony_cistatic int msm8960_pinctrl_probe(struct platform_device *pdev) 12428c2ecf20Sopenharmony_ci{ 12438c2ecf20Sopenharmony_ci return msm_pinctrl_probe(pdev, &msm8960_pinctrl); 12448c2ecf20Sopenharmony_ci} 12458c2ecf20Sopenharmony_ci 12468c2ecf20Sopenharmony_cistatic const struct of_device_id msm8960_pinctrl_of_match[] = { 12478c2ecf20Sopenharmony_ci { .compatible = "qcom,msm8960-pinctrl", }, 12488c2ecf20Sopenharmony_ci { }, 12498c2ecf20Sopenharmony_ci}; 12508c2ecf20Sopenharmony_ci 12518c2ecf20Sopenharmony_cistatic struct platform_driver msm8960_pinctrl_driver = { 12528c2ecf20Sopenharmony_ci .driver = { 12538c2ecf20Sopenharmony_ci .name = "msm8960-pinctrl", 12548c2ecf20Sopenharmony_ci .of_match_table = msm8960_pinctrl_of_match, 12558c2ecf20Sopenharmony_ci }, 12568c2ecf20Sopenharmony_ci .probe = msm8960_pinctrl_probe, 12578c2ecf20Sopenharmony_ci .remove = msm_pinctrl_remove, 12588c2ecf20Sopenharmony_ci}; 12598c2ecf20Sopenharmony_ci 12608c2ecf20Sopenharmony_cistatic int __init msm8960_pinctrl_init(void) 12618c2ecf20Sopenharmony_ci{ 12628c2ecf20Sopenharmony_ci return platform_driver_register(&msm8960_pinctrl_driver); 12638c2ecf20Sopenharmony_ci} 12648c2ecf20Sopenharmony_ciarch_initcall(msm8960_pinctrl_init); 12658c2ecf20Sopenharmony_ci 12668c2ecf20Sopenharmony_cistatic void __exit msm8960_pinctrl_exit(void) 12678c2ecf20Sopenharmony_ci{ 12688c2ecf20Sopenharmony_ci platform_driver_unregister(&msm8960_pinctrl_driver); 12698c2ecf20Sopenharmony_ci} 12708c2ecf20Sopenharmony_cimodule_exit(msm8960_pinctrl_exit); 12718c2ecf20Sopenharmony_ci 12728c2ecf20Sopenharmony_ciMODULE_AUTHOR("Bjorn Andersson <bjorn.andersson@sonymobile.com>"); 12738c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm MSM8960 pinctrl driver"); 12748c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2"); 12758c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8960_pinctrl_of_match); 1276