18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2016, AngeloGioacchino Del Regno <kholk11@gmail.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#include <linux/module.h> 98c2ecf20Sopenharmony_ci#include <linux/of.h> 108c2ecf20Sopenharmony_ci#include <linux/platform_device.h> 118c2ecf20Sopenharmony_ci#include <linux/pinctrl/pinctrl.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include "pinctrl-msm.h" 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define FUNCTION(fname) \ 168c2ecf20Sopenharmony_ci [msm_mux_##fname] = { \ 178c2ecf20Sopenharmony_ci .name = #fname, \ 188c2ecf20Sopenharmony_ci .groups = fname##_groups, \ 198c2ecf20Sopenharmony_ci .ngroups = ARRAY_SIZE(fname##_groups), \ 208c2ecf20Sopenharmony_ci } 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#define REG_BASE 0x0 238c2ecf20Sopenharmony_ci#define REG_SIZE 0x1000 248c2ecf20Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 258c2ecf20Sopenharmony_ci { \ 268c2ecf20Sopenharmony_ci .name = "gpio" #id, \ 278c2ecf20Sopenharmony_ci .pins = gpio##id##_pins, \ 288c2ecf20Sopenharmony_ci .npins = ARRAY_SIZE(gpio##id##_pins), \ 298c2ecf20Sopenharmony_ci .funcs = (int[]){ \ 308c2ecf20Sopenharmony_ci msm_mux_gpio, /* gpio mode */ \ 318c2ecf20Sopenharmony_ci msm_mux_##f1, \ 328c2ecf20Sopenharmony_ci msm_mux_##f2, \ 338c2ecf20Sopenharmony_ci msm_mux_##f3, \ 348c2ecf20Sopenharmony_ci msm_mux_##f4, \ 358c2ecf20Sopenharmony_ci msm_mux_##f5, \ 368c2ecf20Sopenharmony_ci msm_mux_##f6, \ 378c2ecf20Sopenharmony_ci msm_mux_##f7, \ 388c2ecf20Sopenharmony_ci msm_mux_##f8, \ 398c2ecf20Sopenharmony_ci msm_mux_##f9 \ 408c2ecf20Sopenharmony_ci }, \ 418c2ecf20Sopenharmony_ci .nfuncs = 10, \ 428c2ecf20Sopenharmony_ci .ctl_reg = REG_BASE + REG_SIZE * id, \ 438c2ecf20Sopenharmony_ci .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \ 448c2ecf20Sopenharmony_ci .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \ 458c2ecf20Sopenharmony_ci .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \ 468c2ecf20Sopenharmony_ci .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \ 478c2ecf20Sopenharmony_ci .mux_bit = 2, \ 488c2ecf20Sopenharmony_ci .pull_bit = 0, \ 498c2ecf20Sopenharmony_ci .drv_bit = 6, \ 508c2ecf20Sopenharmony_ci .oe_bit = 9, \ 518c2ecf20Sopenharmony_ci .in_bit = 0, \ 528c2ecf20Sopenharmony_ci .out_bit = 1, \ 538c2ecf20Sopenharmony_ci .intr_enable_bit = 0, \ 548c2ecf20Sopenharmony_ci .intr_status_bit = 0, \ 558c2ecf20Sopenharmony_ci .intr_target_bit = 5, \ 568c2ecf20Sopenharmony_ci .intr_target_kpss_val = 4, \ 578c2ecf20Sopenharmony_ci .intr_raw_status_bit = 4, \ 588c2ecf20Sopenharmony_ci .intr_polarity_bit = 1, \ 598c2ecf20Sopenharmony_ci .intr_detection_bit = 2, \ 608c2ecf20Sopenharmony_ci .intr_detection_width = 2, \ 618c2ecf20Sopenharmony_ci } 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ 648c2ecf20Sopenharmony_ci { \ 658c2ecf20Sopenharmony_ci .name = #pg_name, \ 668c2ecf20Sopenharmony_ci .pins = pg_name##_pins, \ 678c2ecf20Sopenharmony_ci .npins = ARRAY_SIZE(pg_name##_pins), \ 688c2ecf20Sopenharmony_ci .ctl_reg = ctl, \ 698c2ecf20Sopenharmony_ci .io_reg = 0, \ 708c2ecf20Sopenharmony_ci .intr_cfg_reg = 0, \ 718c2ecf20Sopenharmony_ci .intr_status_reg = 0, \ 728c2ecf20Sopenharmony_ci .intr_target_reg = 0, \ 738c2ecf20Sopenharmony_ci .mux_bit = -1, \ 748c2ecf20Sopenharmony_ci .pull_bit = pull, \ 758c2ecf20Sopenharmony_ci .drv_bit = drv, \ 768c2ecf20Sopenharmony_ci .oe_bit = -1, \ 778c2ecf20Sopenharmony_ci .in_bit = -1, \ 788c2ecf20Sopenharmony_ci .out_bit = -1, \ 798c2ecf20Sopenharmony_ci .intr_enable_bit = -1, \ 808c2ecf20Sopenharmony_ci .intr_status_bit = -1, \ 818c2ecf20Sopenharmony_ci .intr_target_bit = -1, \ 828c2ecf20Sopenharmony_ci .intr_raw_status_bit = -1, \ 838c2ecf20Sopenharmony_ci .intr_polarity_bit = -1, \ 848c2ecf20Sopenharmony_ci .intr_detection_bit = -1, \ 858c2ecf20Sopenharmony_ci .intr_detection_width = -1, \ 868c2ecf20Sopenharmony_ci } 878c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc msm8976_pins[] = { 888c2ecf20Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 898c2ecf20Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 908c2ecf20Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 918c2ecf20Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 928c2ecf20Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 938c2ecf20Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 948c2ecf20Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 958c2ecf20Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 968c2ecf20Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 978c2ecf20Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 988c2ecf20Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 998c2ecf20Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 1008c2ecf20Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 1018c2ecf20Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 1028c2ecf20Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 1038c2ecf20Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 1048c2ecf20Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 1058c2ecf20Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 1068c2ecf20Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 1078c2ecf20Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 1088c2ecf20Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 1098c2ecf20Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 1108c2ecf20Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 1118c2ecf20Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 1128c2ecf20Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 1138c2ecf20Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 1148c2ecf20Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 1158c2ecf20Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 1168c2ecf20Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 1178c2ecf20Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 1188c2ecf20Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 1198c2ecf20Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 1208c2ecf20Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 1218c2ecf20Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 1228c2ecf20Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 1238c2ecf20Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 1248c2ecf20Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 1258c2ecf20Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 1268c2ecf20Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 1278c2ecf20Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 1288c2ecf20Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 1298c2ecf20Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 1308c2ecf20Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 1318c2ecf20Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 1328c2ecf20Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 1338c2ecf20Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 1348c2ecf20Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 1358c2ecf20Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 1368c2ecf20Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 1378c2ecf20Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 1388c2ecf20Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 1398c2ecf20Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 1408c2ecf20Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 1418c2ecf20Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 1428c2ecf20Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 1438c2ecf20Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 1448c2ecf20Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 1458c2ecf20Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 1468c2ecf20Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 1478c2ecf20Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 1488c2ecf20Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 1498c2ecf20Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 1508c2ecf20Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 1518c2ecf20Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 1528c2ecf20Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 1538c2ecf20Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 1548c2ecf20Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 1558c2ecf20Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 1568c2ecf20Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 1578c2ecf20Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 1588c2ecf20Sopenharmony_ci PINCTRL_PIN(70, "GPIO_70"), 1598c2ecf20Sopenharmony_ci PINCTRL_PIN(71, "GPIO_71"), 1608c2ecf20Sopenharmony_ci PINCTRL_PIN(72, "GPIO_72"), 1618c2ecf20Sopenharmony_ci PINCTRL_PIN(73, "GPIO_73"), 1628c2ecf20Sopenharmony_ci PINCTRL_PIN(74, "GPIO_74"), 1638c2ecf20Sopenharmony_ci PINCTRL_PIN(75, "GPIO_75"), 1648c2ecf20Sopenharmony_ci PINCTRL_PIN(76, "GPIO_76"), 1658c2ecf20Sopenharmony_ci PINCTRL_PIN(77, "GPIO_77"), 1668c2ecf20Sopenharmony_ci PINCTRL_PIN(78, "GPIO_78"), 1678c2ecf20Sopenharmony_ci PINCTRL_PIN(79, "GPIO_79"), 1688c2ecf20Sopenharmony_ci PINCTRL_PIN(80, "GPIO_80"), 1698c2ecf20Sopenharmony_ci PINCTRL_PIN(81, "GPIO_81"), 1708c2ecf20Sopenharmony_ci PINCTRL_PIN(82, "GPIO_82"), 1718c2ecf20Sopenharmony_ci PINCTRL_PIN(83, "GPIO_83"), 1728c2ecf20Sopenharmony_ci PINCTRL_PIN(84, "GPIO_84"), 1738c2ecf20Sopenharmony_ci PINCTRL_PIN(85, "GPIO_85"), 1748c2ecf20Sopenharmony_ci PINCTRL_PIN(86, "GPIO_86"), 1758c2ecf20Sopenharmony_ci PINCTRL_PIN(87, "GPIO_87"), 1768c2ecf20Sopenharmony_ci PINCTRL_PIN(88, "GPIO_88"), 1778c2ecf20Sopenharmony_ci PINCTRL_PIN(89, "GPIO_89"), 1788c2ecf20Sopenharmony_ci PINCTRL_PIN(90, "GPIO_90"), 1798c2ecf20Sopenharmony_ci PINCTRL_PIN(91, "GPIO_91"), 1808c2ecf20Sopenharmony_ci PINCTRL_PIN(92, "GPIO_92"), 1818c2ecf20Sopenharmony_ci PINCTRL_PIN(93, "GPIO_93"), 1828c2ecf20Sopenharmony_ci PINCTRL_PIN(94, "GPIO_94"), 1838c2ecf20Sopenharmony_ci PINCTRL_PIN(95, "GPIO_95"), 1848c2ecf20Sopenharmony_ci PINCTRL_PIN(96, "GPIO_96"), 1858c2ecf20Sopenharmony_ci PINCTRL_PIN(97, "GPIO_97"), 1868c2ecf20Sopenharmony_ci PINCTRL_PIN(98, "GPIO_98"), 1878c2ecf20Sopenharmony_ci PINCTRL_PIN(99, "GPIO_99"), 1888c2ecf20Sopenharmony_ci PINCTRL_PIN(100, "GPIO_100"), 1898c2ecf20Sopenharmony_ci PINCTRL_PIN(101, "GPIO_101"), 1908c2ecf20Sopenharmony_ci PINCTRL_PIN(102, "GPIO_102"), 1918c2ecf20Sopenharmony_ci PINCTRL_PIN(103, "GPIO_103"), 1928c2ecf20Sopenharmony_ci PINCTRL_PIN(104, "GPIO_104"), 1938c2ecf20Sopenharmony_ci PINCTRL_PIN(105, "GPIO_105"), 1948c2ecf20Sopenharmony_ci PINCTRL_PIN(106, "GPIO_106"), 1958c2ecf20Sopenharmony_ci PINCTRL_PIN(107, "GPIO_107"), 1968c2ecf20Sopenharmony_ci PINCTRL_PIN(108, "GPIO_108"), 1978c2ecf20Sopenharmony_ci PINCTRL_PIN(109, "GPIO_109"), 1988c2ecf20Sopenharmony_ci PINCTRL_PIN(110, "GPIO_110"), 1998c2ecf20Sopenharmony_ci PINCTRL_PIN(111, "GPIO_111"), 2008c2ecf20Sopenharmony_ci PINCTRL_PIN(112, "GPIO_112"), 2018c2ecf20Sopenharmony_ci PINCTRL_PIN(113, "GPIO_113"), 2028c2ecf20Sopenharmony_ci PINCTRL_PIN(114, "GPIO_114"), 2038c2ecf20Sopenharmony_ci PINCTRL_PIN(115, "GPIO_115"), 2048c2ecf20Sopenharmony_ci PINCTRL_PIN(116, "GPIO_116"), 2058c2ecf20Sopenharmony_ci PINCTRL_PIN(117, "GPIO_117"), 2068c2ecf20Sopenharmony_ci PINCTRL_PIN(118, "GPIO_118"), 2078c2ecf20Sopenharmony_ci PINCTRL_PIN(119, "GPIO_119"), 2088c2ecf20Sopenharmony_ci PINCTRL_PIN(120, "GPIO_120"), 2098c2ecf20Sopenharmony_ci PINCTRL_PIN(121, "GPIO_121"), 2108c2ecf20Sopenharmony_ci PINCTRL_PIN(122, "GPIO_122"), 2118c2ecf20Sopenharmony_ci PINCTRL_PIN(123, "GPIO_123"), 2128c2ecf20Sopenharmony_ci PINCTRL_PIN(124, "GPIO_124"), 2138c2ecf20Sopenharmony_ci PINCTRL_PIN(125, "GPIO_125"), 2148c2ecf20Sopenharmony_ci PINCTRL_PIN(126, "GPIO_126"), 2158c2ecf20Sopenharmony_ci PINCTRL_PIN(127, "GPIO_127"), 2168c2ecf20Sopenharmony_ci PINCTRL_PIN(128, "GPIO_128"), 2178c2ecf20Sopenharmony_ci PINCTRL_PIN(129, "GPIO_129"), 2188c2ecf20Sopenharmony_ci PINCTRL_PIN(130, "GPIO_130"), 2198c2ecf20Sopenharmony_ci PINCTRL_PIN(131, "GPIO_131"), 2208c2ecf20Sopenharmony_ci PINCTRL_PIN(132, "GPIO_132"), 2218c2ecf20Sopenharmony_ci PINCTRL_PIN(133, "GPIO_133"), 2228c2ecf20Sopenharmony_ci PINCTRL_PIN(134, "GPIO_134"), 2238c2ecf20Sopenharmony_ci PINCTRL_PIN(135, "GPIO_135"), 2248c2ecf20Sopenharmony_ci PINCTRL_PIN(136, "GPIO_136"), 2258c2ecf20Sopenharmony_ci PINCTRL_PIN(137, "GPIO_137"), 2268c2ecf20Sopenharmony_ci PINCTRL_PIN(138, "GPIO_138"), 2278c2ecf20Sopenharmony_ci PINCTRL_PIN(139, "GPIO_139"), 2288c2ecf20Sopenharmony_ci PINCTRL_PIN(140, "GPIO_140"), 2298c2ecf20Sopenharmony_ci PINCTRL_PIN(141, "GPIO_141"), 2308c2ecf20Sopenharmony_ci PINCTRL_PIN(142, "GPIO_142"), 2318c2ecf20Sopenharmony_ci PINCTRL_PIN(143, "GPIO_143"), 2328c2ecf20Sopenharmony_ci PINCTRL_PIN(144, "GPIO_144"), 2338c2ecf20Sopenharmony_ci PINCTRL_PIN(145, "SDC1_CLK"), 2348c2ecf20Sopenharmony_ci PINCTRL_PIN(146, "SDC1_CMD"), 2358c2ecf20Sopenharmony_ci PINCTRL_PIN(147, "SDC1_DATA"), 2368c2ecf20Sopenharmony_ci PINCTRL_PIN(148, "SDC1_RCLK"), 2378c2ecf20Sopenharmony_ci PINCTRL_PIN(149, "SDC2_CLK"), 2388c2ecf20Sopenharmony_ci PINCTRL_PIN(150, "SDC2_CMD"), 2398c2ecf20Sopenharmony_ci PINCTRL_PIN(151, "SDC2_DATA"), 2408c2ecf20Sopenharmony_ci PINCTRL_PIN(152, "QDSD_CLK"), 2418c2ecf20Sopenharmony_ci PINCTRL_PIN(153, "QDSD_CMD"), 2428c2ecf20Sopenharmony_ci PINCTRL_PIN(154, "QDSD_DATA0"), 2438c2ecf20Sopenharmony_ci PINCTRL_PIN(155, "QDSD_DATA1"), 2448c2ecf20Sopenharmony_ci PINCTRL_PIN(156, "QDSD_DATA2"), 2458c2ecf20Sopenharmony_ci PINCTRL_PIN(157, "QDSD_DATA3"), 2468c2ecf20Sopenharmony_ci}; 2478c2ecf20Sopenharmony_ci 2488c2ecf20Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \ 2498c2ecf20Sopenharmony_ci static const unsigned int gpio##pin##_pins[] = { pin } 2508c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 2518c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 2528c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 2538c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 2548c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 2558c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 2568c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 2578c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 2588c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 2598c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 2608c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 2618c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 2628c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 2638c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 2648c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 2658c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 2668c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 2678c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 2688c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 2698c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 2708c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 2718c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 2728c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 2738c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 2748c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 2758c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 2768c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 2778c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 2788c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 2798c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 2808c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 2818c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 2828c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 2838c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 2848c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 2858c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 2868c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 2878c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 2888c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 2898c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 2908c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 2918c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 2928c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 2938c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 2948c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 2958c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 2968c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 2978c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 2988c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 2998c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 3008c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 3018c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 3028c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 3038c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 3048c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 3058c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 3068c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 3078c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 3088c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 3098c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 3108c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 3118c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 3128c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 3138c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 3148c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 3158c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 3168c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 3178c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 3188c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 3198c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 3208c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70); 3218c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71); 3228c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72); 3238c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73); 3248c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74); 3258c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75); 3268c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76); 3278c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77); 3288c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78); 3298c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79); 3308c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80); 3318c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81); 3328c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82); 3338c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83); 3348c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84); 3358c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85); 3368c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86); 3378c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87); 3388c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88); 3398c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89); 3408c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90); 3418c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91); 3428c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92); 3438c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93); 3448c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94); 3458c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95); 3468c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96); 3478c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97); 3488c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98); 3498c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99); 3508c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100); 3518c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101); 3528c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102); 3538c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103); 3548c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104); 3558c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105); 3568c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106); 3578c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107); 3588c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108); 3598c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109); 3608c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110); 3618c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111); 3628c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112); 3638c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113); 3648c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114); 3658c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115); 3668c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116); 3678c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117); 3688c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118); 3698c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119); 3708c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120); 3718c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121); 3728c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122); 3738c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123); 3748c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124); 3758c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125); 3768c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126); 3778c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127); 3788c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128); 3798c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129); 3808c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130); 3818c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131); 3828c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132); 3838c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133); 3848c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134); 3858c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135); 3868c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136); 3878c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137); 3888c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138); 3898c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139); 3908c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140); 3918c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141); 3928c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142); 3938c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143); 3948c2ecf20Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144); 3958c2ecf20Sopenharmony_ci 3968c2ecf20Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 145 }; 3978c2ecf20Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 146 }; 3988c2ecf20Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 147 }; 3998c2ecf20Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 148 }; 4008c2ecf20Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 149 }; 4018c2ecf20Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 150 }; 4028c2ecf20Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 151 }; 4038c2ecf20Sopenharmony_cistatic const unsigned int qdsd_clk_pins[] = { 152 }; 4048c2ecf20Sopenharmony_cistatic const unsigned int qdsd_cmd_pins[] = { 153 }; 4058c2ecf20Sopenharmony_cistatic const unsigned int qdsd_data0_pins[] = { 154 }; 4068c2ecf20Sopenharmony_cistatic const unsigned int qdsd_data1_pins[] = { 155 }; 4078c2ecf20Sopenharmony_cistatic const unsigned int qdsd_data2_pins[] = { 156 }; 4088c2ecf20Sopenharmony_cistatic const unsigned int qdsd_data3_pins[] = { 157 }; 4098c2ecf20Sopenharmony_ci 4108c2ecf20Sopenharmony_cienum msm8976_functions { 4118c2ecf20Sopenharmony_ci msm_mux_gpio, 4128c2ecf20Sopenharmony_ci msm_mux_blsp_uart1, 4138c2ecf20Sopenharmony_ci msm_mux_blsp_spi1, 4148c2ecf20Sopenharmony_ci msm_mux_smb_int, 4158c2ecf20Sopenharmony_ci msm_mux_blsp_i2c1, 4168c2ecf20Sopenharmony_ci msm_mux_blsp_spi2, 4178c2ecf20Sopenharmony_ci msm_mux_blsp_uart2, 4188c2ecf20Sopenharmony_ci msm_mux_blsp_i2c2, 4198c2ecf20Sopenharmony_ci msm_mux_gcc_gp1_clk_b, 4208c2ecf20Sopenharmony_ci msm_mux_blsp_spi3, 4218c2ecf20Sopenharmony_ci msm_mux_qdss_tracedata_b, 4228c2ecf20Sopenharmony_ci msm_mux_blsp_i2c3, 4238c2ecf20Sopenharmony_ci msm_mux_gcc_gp2_clk_b, 4248c2ecf20Sopenharmony_ci msm_mux_gcc_gp3_clk_b, 4258c2ecf20Sopenharmony_ci msm_mux_blsp_spi4, 4268c2ecf20Sopenharmony_ci msm_mux_cap_int, 4278c2ecf20Sopenharmony_ci msm_mux_blsp_i2c4, 4288c2ecf20Sopenharmony_ci msm_mux_blsp_spi5, 4298c2ecf20Sopenharmony_ci msm_mux_blsp_uart5, 4308c2ecf20Sopenharmony_ci msm_mux_qdss_traceclk_a, 4318c2ecf20Sopenharmony_ci msm_mux_m_voc, 4328c2ecf20Sopenharmony_ci msm_mux_blsp_i2c5, 4338c2ecf20Sopenharmony_ci msm_mux_qdss_tracectl_a, 4348c2ecf20Sopenharmony_ci msm_mux_qdss_tracedata_a, 4358c2ecf20Sopenharmony_ci msm_mux_blsp_spi6, 4368c2ecf20Sopenharmony_ci msm_mux_blsp_uart6, 4378c2ecf20Sopenharmony_ci msm_mux_qdss_tracectl_b, 4388c2ecf20Sopenharmony_ci msm_mux_blsp_i2c6, 4398c2ecf20Sopenharmony_ci msm_mux_qdss_traceclk_b, 4408c2ecf20Sopenharmony_ci msm_mux_mdp_vsync, 4418c2ecf20Sopenharmony_ci msm_mux_pri_mi2s_mclk_a, 4428c2ecf20Sopenharmony_ci msm_mux_sec_mi2s_mclk_a, 4438c2ecf20Sopenharmony_ci msm_mux_cam_mclk, 4448c2ecf20Sopenharmony_ci msm_mux_cci0_i2c, 4458c2ecf20Sopenharmony_ci msm_mux_cci1_i2c, 4468c2ecf20Sopenharmony_ci msm_mux_blsp1_spi, 4478c2ecf20Sopenharmony_ci msm_mux_blsp3_spi, 4488c2ecf20Sopenharmony_ci msm_mux_gcc_gp1_clk_a, 4498c2ecf20Sopenharmony_ci msm_mux_gcc_gp2_clk_a, 4508c2ecf20Sopenharmony_ci msm_mux_gcc_gp3_clk_a, 4518c2ecf20Sopenharmony_ci msm_mux_uim_batt, 4528c2ecf20Sopenharmony_ci msm_mux_sd_write, 4538c2ecf20Sopenharmony_ci msm_mux_uim1_data, 4548c2ecf20Sopenharmony_ci msm_mux_uim1_clk, 4558c2ecf20Sopenharmony_ci msm_mux_uim1_reset, 4568c2ecf20Sopenharmony_ci msm_mux_uim1_present, 4578c2ecf20Sopenharmony_ci msm_mux_uim2_data, 4588c2ecf20Sopenharmony_ci msm_mux_uim2_clk, 4598c2ecf20Sopenharmony_ci msm_mux_uim2_reset, 4608c2ecf20Sopenharmony_ci msm_mux_uim2_present, 4618c2ecf20Sopenharmony_ci msm_mux_ts_xvdd, 4628c2ecf20Sopenharmony_ci msm_mux_mipi_dsi0, 4638c2ecf20Sopenharmony_ci msm_mux_us_euro, 4648c2ecf20Sopenharmony_ci msm_mux_ts_resout, 4658c2ecf20Sopenharmony_ci msm_mux_ts_sample, 4668c2ecf20Sopenharmony_ci msm_mux_sec_mi2s_mclk_b, 4678c2ecf20Sopenharmony_ci msm_mux_pri_mi2s, 4688c2ecf20Sopenharmony_ci msm_mux_codec_reset, 4698c2ecf20Sopenharmony_ci msm_mux_cdc_pdm0, 4708c2ecf20Sopenharmony_ci msm_mux_us_emitter, 4718c2ecf20Sopenharmony_ci msm_mux_pri_mi2s_mclk_b, 4728c2ecf20Sopenharmony_ci msm_mux_pri_mi2s_mclk_c, 4738c2ecf20Sopenharmony_ci msm_mux_lpass_slimbus, 4748c2ecf20Sopenharmony_ci msm_mux_lpass_slimbus0, 4758c2ecf20Sopenharmony_ci msm_mux_lpass_slimbus1, 4768c2ecf20Sopenharmony_ci msm_mux_codec_int1, 4778c2ecf20Sopenharmony_ci msm_mux_codec_int2, 4788c2ecf20Sopenharmony_ci msm_mux_wcss_bt, 4798c2ecf20Sopenharmony_ci msm_mux_sdc3, 4808c2ecf20Sopenharmony_ci msm_mux_wcss_wlan2, 4818c2ecf20Sopenharmony_ci msm_mux_wcss_wlan1, 4828c2ecf20Sopenharmony_ci msm_mux_wcss_wlan0, 4838c2ecf20Sopenharmony_ci msm_mux_wcss_wlan, 4848c2ecf20Sopenharmony_ci msm_mux_wcss_fm, 4858c2ecf20Sopenharmony_ci msm_mux_key_volp, 4868c2ecf20Sopenharmony_ci msm_mux_key_snapshot, 4878c2ecf20Sopenharmony_ci msm_mux_key_focus, 4888c2ecf20Sopenharmony_ci msm_mux_key_home, 4898c2ecf20Sopenharmony_ci msm_mux_pwr_down, 4908c2ecf20Sopenharmony_ci msm_mux_dmic0_clk, 4918c2ecf20Sopenharmony_ci msm_mux_hdmi_int, 4928c2ecf20Sopenharmony_ci msm_mux_dmic0_data, 4938c2ecf20Sopenharmony_ci msm_mux_wsa_vi, 4948c2ecf20Sopenharmony_ci msm_mux_wsa_en, 4958c2ecf20Sopenharmony_ci msm_mux_blsp_spi8, 4968c2ecf20Sopenharmony_ci msm_mux_wsa_irq, 4978c2ecf20Sopenharmony_ci msm_mux_blsp_i2c8, 4988c2ecf20Sopenharmony_ci msm_mux_pa_indicator, 4998c2ecf20Sopenharmony_ci msm_mux_modem_tsync, 5008c2ecf20Sopenharmony_ci msm_mux_ssbi_wtr1, 5018c2ecf20Sopenharmony_ci msm_mux_gsm1_tx, 5028c2ecf20Sopenharmony_ci msm_mux_gsm0_tx, 5038c2ecf20Sopenharmony_ci msm_mux_sdcard_det, 5048c2ecf20Sopenharmony_ci msm_mux_sec_mi2s, 5058c2ecf20Sopenharmony_ci msm_mux_ss_switch, 5068c2ecf20Sopenharmony_ci msm_mux_NA, 5078c2ecf20Sopenharmony_ci}; 5088c2ecf20Sopenharmony_ci 5098c2ecf20Sopenharmony_cistatic const char * const gpio_groups[] = { 5108c2ecf20Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 5118c2ecf20Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 5128c2ecf20Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 5138c2ecf20Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 5148c2ecf20Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 5158c2ecf20Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 5168c2ecf20Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 5178c2ecf20Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 5188c2ecf20Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 5198c2ecf20Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 5208c2ecf20Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 5218c2ecf20Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 5228c2ecf20Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 5238c2ecf20Sopenharmony_ci "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 5248c2ecf20Sopenharmony_ci "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 5258c2ecf20Sopenharmony_ci "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 5268c2ecf20Sopenharmony_ci "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 5278c2ecf20Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 5288c2ecf20Sopenharmony_ci "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", 5298c2ecf20Sopenharmony_ci "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134", 5308c2ecf20Sopenharmony_ci "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", 5318c2ecf20Sopenharmony_ci "gpio141", "gpio142", "gpio143", "gpio144", 5328c2ecf20Sopenharmony_ci}; 5338c2ecf20Sopenharmony_cistatic const char * const blsp_uart1_groups[] = { 5348c2ecf20Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", 5358c2ecf20Sopenharmony_ci}; 5368c2ecf20Sopenharmony_cistatic const char * const blsp_spi1_groups[] = { 5378c2ecf20Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", 5388c2ecf20Sopenharmony_ci}; 5398c2ecf20Sopenharmony_cistatic const char * const smb_int_groups[] = { 5408c2ecf20Sopenharmony_ci "gpio1", 5418c2ecf20Sopenharmony_ci}; 5428c2ecf20Sopenharmony_cistatic const char * const blsp_i2c1_groups[] = { 5438c2ecf20Sopenharmony_ci "gpio2", "gpio3", 5448c2ecf20Sopenharmony_ci}; 5458c2ecf20Sopenharmony_cistatic const char * const blsp_spi2_groups[] = { 5468c2ecf20Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7", 5478c2ecf20Sopenharmony_ci}; 5488c2ecf20Sopenharmony_cistatic const char * const blsp_uart2_groups[] = { 5498c2ecf20Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7", 5508c2ecf20Sopenharmony_ci}; 5518c2ecf20Sopenharmony_cistatic const char * const blsp_i2c2_groups[] = { 5528c2ecf20Sopenharmony_ci "gpio6", "gpio7", 5538c2ecf20Sopenharmony_ci}; 5548c2ecf20Sopenharmony_cistatic const char * const gcc_gp1_clk_b_groups[] = { 5558c2ecf20Sopenharmony_ci "gpio105", 5568c2ecf20Sopenharmony_ci}; 5578c2ecf20Sopenharmony_cistatic const char * const blsp_spi3_groups[] = { 5588c2ecf20Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", 5598c2ecf20Sopenharmony_ci}; 5608c2ecf20Sopenharmony_cistatic const char * const qdss_tracedata_b_groups[] = { 5618c2ecf20Sopenharmony_ci "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", 5628c2ecf20Sopenharmony_ci "gpio31", "gpio33", "gpio34", "gpio35", "gpio36", "gpio37", "gpio38", 5638c2ecf20Sopenharmony_ci "gpio116", "gpio126", "gpio128", "gpio129", 5648c2ecf20Sopenharmony_ci}; 5658c2ecf20Sopenharmony_cistatic const char * const blsp_i2c3_groups[] = { 5668c2ecf20Sopenharmony_ci "gpio10", "gpio11", 5678c2ecf20Sopenharmony_ci}; 5688c2ecf20Sopenharmony_cistatic const char * const gcc_gp2_clk_b_groups[] = { 5698c2ecf20Sopenharmony_ci "gpio12", 5708c2ecf20Sopenharmony_ci}; 5718c2ecf20Sopenharmony_cistatic const char * const gcc_gp3_clk_b_groups[] = { 5728c2ecf20Sopenharmony_ci "gpio13", 5738c2ecf20Sopenharmony_ci}; 5748c2ecf20Sopenharmony_cistatic const char * const blsp_spi4_groups[] = { 5758c2ecf20Sopenharmony_ci "gpio12", "gpio13", "gpio14", "gpio15", 5768c2ecf20Sopenharmony_ci}; 5778c2ecf20Sopenharmony_cistatic const char * const cap_int_groups[] = { 5788c2ecf20Sopenharmony_ci "gpio13", 5798c2ecf20Sopenharmony_ci}; 5808c2ecf20Sopenharmony_cistatic const char * const blsp_i2c4_groups[] = { 5818c2ecf20Sopenharmony_ci "gpio14", "gpio15", 5828c2ecf20Sopenharmony_ci}; 5838c2ecf20Sopenharmony_cistatic const char * const blsp_spi5_groups[] = { 5848c2ecf20Sopenharmony_ci "gpio134", "gpio135", "gpio136", "gpio137", 5858c2ecf20Sopenharmony_ci}; 5868c2ecf20Sopenharmony_cistatic const char * const blsp_uart5_groups[] = { 5878c2ecf20Sopenharmony_ci "gpio134", "gpio135", "gpio136", "gpio137", 5888c2ecf20Sopenharmony_ci}; 5898c2ecf20Sopenharmony_cistatic const char * const qdss_traceclk_a_groups[] = { 5908c2ecf20Sopenharmony_ci "gpio46", 5918c2ecf20Sopenharmony_ci}; 5928c2ecf20Sopenharmony_cistatic const char * const m_voc_groups[] = { 5938c2ecf20Sopenharmony_ci "gpio123", "gpio124", 5948c2ecf20Sopenharmony_ci}; 5958c2ecf20Sopenharmony_cistatic const char * const blsp_i2c5_groups[] = { 5968c2ecf20Sopenharmony_ci "gpio136", "gpio137", 5978c2ecf20Sopenharmony_ci}; 5988c2ecf20Sopenharmony_cistatic const char * const qdss_tracectl_a_groups[] = { 5998c2ecf20Sopenharmony_ci "gpio45", 6008c2ecf20Sopenharmony_ci}; 6018c2ecf20Sopenharmony_cistatic const char * const qdss_tracedata_a_groups[] = { 6028c2ecf20Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio39", "gpio40", "gpio41", "gpio42", 6038c2ecf20Sopenharmony_ci "gpio43", "gpio44", "gpio47", "gpio48", "gpio62", "gpio69", "gpio120", 6048c2ecf20Sopenharmony_ci "gpio121", "gpio130", "gpio131", 6058c2ecf20Sopenharmony_ci}; 6068c2ecf20Sopenharmony_cistatic const char * const blsp_spi6_groups[] = { 6078c2ecf20Sopenharmony_ci "gpio20", "gpio21", "gpio22", "gpio23", 6088c2ecf20Sopenharmony_ci}; 6098c2ecf20Sopenharmony_cistatic const char * const blsp_uart6_groups[] = { 6108c2ecf20Sopenharmony_ci "gpio20", "gpio21", "gpio22", "gpio23", 6118c2ecf20Sopenharmony_ci}; 6128c2ecf20Sopenharmony_cistatic const char * const qdss_tracectl_b_groups[] = { 6138c2ecf20Sopenharmony_ci "gpio5", 6148c2ecf20Sopenharmony_ci}; 6158c2ecf20Sopenharmony_cistatic const char * const blsp_i2c6_groups[] = { 6168c2ecf20Sopenharmony_ci "gpio22", "gpio23", 6178c2ecf20Sopenharmony_ci}; 6188c2ecf20Sopenharmony_cistatic const char * const qdss_traceclk_b_groups[] = { 6198c2ecf20Sopenharmony_ci "gpio5", 6208c2ecf20Sopenharmony_ci}; 6218c2ecf20Sopenharmony_cistatic const char * const mdp_vsync_groups[] = { 6228c2ecf20Sopenharmony_ci "gpio24", "gpio25", 6238c2ecf20Sopenharmony_ci}; 6248c2ecf20Sopenharmony_cistatic const char * const pri_mi2s_mclk_a_groups[] = { 6258c2ecf20Sopenharmony_ci "gpio126", 6268c2ecf20Sopenharmony_ci}; 6278c2ecf20Sopenharmony_cistatic const char * const sec_mi2s_mclk_a_groups[] = { 6288c2ecf20Sopenharmony_ci "gpio62", 6298c2ecf20Sopenharmony_ci}; 6308c2ecf20Sopenharmony_cistatic const char * const cam_mclk_groups[] = { 6318c2ecf20Sopenharmony_ci "gpio26", "gpio27", "gpio28", 6328c2ecf20Sopenharmony_ci}; 6338c2ecf20Sopenharmony_cistatic const char * const cci0_i2c_groups[] = { 6348c2ecf20Sopenharmony_ci "gpio30", "gpio29", 6358c2ecf20Sopenharmony_ci}; 6368c2ecf20Sopenharmony_cistatic const char * const cci1_i2c_groups[] = { 6378c2ecf20Sopenharmony_ci "gpio104", "gpio103", 6388c2ecf20Sopenharmony_ci}; 6398c2ecf20Sopenharmony_cistatic const char * const blsp1_spi_groups[] = { 6408c2ecf20Sopenharmony_ci "gpio101", 6418c2ecf20Sopenharmony_ci}; 6428c2ecf20Sopenharmony_cistatic const char * const blsp3_spi_groups[] = { 6438c2ecf20Sopenharmony_ci "gpio106", "gpio107", 6448c2ecf20Sopenharmony_ci}; 6458c2ecf20Sopenharmony_cistatic const char * const gcc_gp1_clk_a_groups[] = { 6468c2ecf20Sopenharmony_ci "gpio49", 6478c2ecf20Sopenharmony_ci}; 6488c2ecf20Sopenharmony_cistatic const char * const gcc_gp2_clk_a_groups[] = { 6498c2ecf20Sopenharmony_ci "gpio50", 6508c2ecf20Sopenharmony_ci}; 6518c2ecf20Sopenharmony_cistatic const char * const gcc_gp3_clk_a_groups[] = { 6528c2ecf20Sopenharmony_ci "gpio51", 6538c2ecf20Sopenharmony_ci}; 6548c2ecf20Sopenharmony_cistatic const char * const uim_batt_groups[] = { 6558c2ecf20Sopenharmony_ci "gpio61", 6568c2ecf20Sopenharmony_ci}; 6578c2ecf20Sopenharmony_cistatic const char * const sd_write_groups[] = { 6588c2ecf20Sopenharmony_ci "gpio50", 6598c2ecf20Sopenharmony_ci}; 6608c2ecf20Sopenharmony_cistatic const char * const uim2_data_groups[] = { 6618c2ecf20Sopenharmony_ci "gpio51", 6628c2ecf20Sopenharmony_ci}; 6638c2ecf20Sopenharmony_cistatic const char * const uim2_clk_groups[] = { 6648c2ecf20Sopenharmony_ci "gpio52", 6658c2ecf20Sopenharmony_ci}; 6668c2ecf20Sopenharmony_cistatic const char * const uim2_reset_groups[] = { 6678c2ecf20Sopenharmony_ci "gpio53", 6688c2ecf20Sopenharmony_ci}; 6698c2ecf20Sopenharmony_cistatic const char * const uim2_present_groups[] = { 6708c2ecf20Sopenharmony_ci "gpio54", 6718c2ecf20Sopenharmony_ci}; 6728c2ecf20Sopenharmony_cistatic const char * const uim1_data_groups[] = { 6738c2ecf20Sopenharmony_ci "gpio55", 6748c2ecf20Sopenharmony_ci}; 6758c2ecf20Sopenharmony_cistatic const char * const uim1_clk_groups[] = { 6768c2ecf20Sopenharmony_ci "gpio56", 6778c2ecf20Sopenharmony_ci}; 6788c2ecf20Sopenharmony_cistatic const char * const uim1_reset_groups[] = { 6798c2ecf20Sopenharmony_ci "gpio57", 6808c2ecf20Sopenharmony_ci}; 6818c2ecf20Sopenharmony_cistatic const char * const uim1_present_groups[] = { 6828c2ecf20Sopenharmony_ci "gpio58", 6838c2ecf20Sopenharmony_ci}; 6848c2ecf20Sopenharmony_cistatic const char * const ts_xvdd_groups[] = { 6858c2ecf20Sopenharmony_ci "gpio60", 6868c2ecf20Sopenharmony_ci}; 6878c2ecf20Sopenharmony_cistatic const char * const mipi_dsi0_groups[] = { 6888c2ecf20Sopenharmony_ci "gpio61", 6898c2ecf20Sopenharmony_ci}; 6908c2ecf20Sopenharmony_cistatic const char * const us_euro_groups[] = { 6918c2ecf20Sopenharmony_ci "gpio63", 6928c2ecf20Sopenharmony_ci}; 6938c2ecf20Sopenharmony_cistatic const char * const ts_resout_groups[] = { 6948c2ecf20Sopenharmony_ci "gpio64", 6958c2ecf20Sopenharmony_ci}; 6968c2ecf20Sopenharmony_cistatic const char * const ts_sample_groups[] = { 6978c2ecf20Sopenharmony_ci "gpio65", 6988c2ecf20Sopenharmony_ci}; 6998c2ecf20Sopenharmony_cistatic const char * const sec_mi2s_mclk_b_groups[] = { 7008c2ecf20Sopenharmony_ci "gpio66", 7018c2ecf20Sopenharmony_ci}; 7028c2ecf20Sopenharmony_cistatic const char * const pri_mi2s_groups[] = { 7038c2ecf20Sopenharmony_ci "gpio122", "gpio123", "gpio124", "gpio125", "gpio127", 7048c2ecf20Sopenharmony_ci}; 7058c2ecf20Sopenharmony_cistatic const char * const codec_reset_groups[] = { 7068c2ecf20Sopenharmony_ci "gpio67", 7078c2ecf20Sopenharmony_ci}; 7088c2ecf20Sopenharmony_cistatic const char * const cdc_pdm0_groups[] = { 7098c2ecf20Sopenharmony_ci "gpio116", "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", 7108c2ecf20Sopenharmony_ci}; 7118c2ecf20Sopenharmony_cistatic const char * const us_emitter_groups[] = { 7128c2ecf20Sopenharmony_ci "gpio68", 7138c2ecf20Sopenharmony_ci}; 7148c2ecf20Sopenharmony_cistatic const char * const pri_mi2s_mclk_b_groups[] = { 7158c2ecf20Sopenharmony_ci "gpio62", 7168c2ecf20Sopenharmony_ci}; 7178c2ecf20Sopenharmony_cistatic const char * const pri_mi2s_mclk_c_groups[] = { 7188c2ecf20Sopenharmony_ci "gpio116", 7198c2ecf20Sopenharmony_ci}; 7208c2ecf20Sopenharmony_cistatic const char * const lpass_slimbus_groups[] = { 7218c2ecf20Sopenharmony_ci "gpio117", 7228c2ecf20Sopenharmony_ci}; 7238c2ecf20Sopenharmony_cistatic const char * const lpass_slimbus0_groups[] = { 7248c2ecf20Sopenharmony_ci "gpio118", 7258c2ecf20Sopenharmony_ci}; 7268c2ecf20Sopenharmony_cistatic const char * const lpass_slimbus1_groups[] = { 7278c2ecf20Sopenharmony_ci "gpio119", 7288c2ecf20Sopenharmony_ci}; 7298c2ecf20Sopenharmony_cistatic const char * const codec_int1_groups[] = { 7308c2ecf20Sopenharmony_ci "gpio73", 7318c2ecf20Sopenharmony_ci}; 7328c2ecf20Sopenharmony_cistatic const char * const codec_int2_groups[] = { 7338c2ecf20Sopenharmony_ci "gpio74", 7348c2ecf20Sopenharmony_ci}; 7358c2ecf20Sopenharmony_cistatic const char * const wcss_bt_groups[] = { 7368c2ecf20Sopenharmony_ci "gpio39", "gpio47", "gpio48", 7378c2ecf20Sopenharmony_ci}; 7388c2ecf20Sopenharmony_cistatic const char * const sdc3_groups[] = { 7398c2ecf20Sopenharmony_ci "gpio39", "gpio40", "gpio41", 7408c2ecf20Sopenharmony_ci "gpio42", "gpio43", "gpio44", 7418c2ecf20Sopenharmony_ci}; 7428c2ecf20Sopenharmony_cistatic const char * const wcss_wlan2_groups[] = { 7438c2ecf20Sopenharmony_ci "gpio40", 7448c2ecf20Sopenharmony_ci}; 7458c2ecf20Sopenharmony_cistatic const char * const wcss_wlan1_groups[] = { 7468c2ecf20Sopenharmony_ci "gpio41", 7478c2ecf20Sopenharmony_ci}; 7488c2ecf20Sopenharmony_cistatic const char * const wcss_wlan0_groups[] = { 7498c2ecf20Sopenharmony_ci "gpio42", 7508c2ecf20Sopenharmony_ci}; 7518c2ecf20Sopenharmony_cistatic const char * const wcss_wlan_groups[] = { 7528c2ecf20Sopenharmony_ci "gpio43", "gpio44", 7538c2ecf20Sopenharmony_ci}; 7548c2ecf20Sopenharmony_cistatic const char * const wcss_fm_groups[] = { 7558c2ecf20Sopenharmony_ci "gpio45", "gpio46", 7568c2ecf20Sopenharmony_ci}; 7578c2ecf20Sopenharmony_cistatic const char * const key_volp_groups[] = { 7588c2ecf20Sopenharmony_ci "gpio85", 7598c2ecf20Sopenharmony_ci}; 7608c2ecf20Sopenharmony_cistatic const char * const key_snapshot_groups[] = { 7618c2ecf20Sopenharmony_ci "gpio86", 7628c2ecf20Sopenharmony_ci}; 7638c2ecf20Sopenharmony_cistatic const char * const key_focus_groups[] = { 7648c2ecf20Sopenharmony_ci "gpio87", 7658c2ecf20Sopenharmony_ci}; 7668c2ecf20Sopenharmony_cistatic const char * const key_home_groups[] = { 7678c2ecf20Sopenharmony_ci "gpio88", 7688c2ecf20Sopenharmony_ci}; 7698c2ecf20Sopenharmony_cistatic const char * const pwr_down_groups[] = { 7708c2ecf20Sopenharmony_ci "gpio89", 7718c2ecf20Sopenharmony_ci}; 7728c2ecf20Sopenharmony_cistatic const char * const dmic0_clk_groups[] = { 7738c2ecf20Sopenharmony_ci "gpio66", 7748c2ecf20Sopenharmony_ci}; 7758c2ecf20Sopenharmony_cistatic const char * const hdmi_int_groups[] = { 7768c2ecf20Sopenharmony_ci "gpio90", 7778c2ecf20Sopenharmony_ci}; 7788c2ecf20Sopenharmony_cistatic const char * const dmic0_data_groups[] = { 7798c2ecf20Sopenharmony_ci "gpio67", 7808c2ecf20Sopenharmony_ci}; 7818c2ecf20Sopenharmony_cistatic const char * const wsa_vi_groups[] = { 7828c2ecf20Sopenharmony_ci "gpio108", "gpio109", 7838c2ecf20Sopenharmony_ci}; 7848c2ecf20Sopenharmony_cistatic const char * const wsa_en_groups[] = { 7858c2ecf20Sopenharmony_ci "gpio96", 7868c2ecf20Sopenharmony_ci}; 7878c2ecf20Sopenharmony_cistatic const char * const blsp_spi8_groups[] = { 7888c2ecf20Sopenharmony_ci "gpio16", "gpio17", "gpio18", "gpio19", 7898c2ecf20Sopenharmony_ci}; 7908c2ecf20Sopenharmony_cistatic const char * const wsa_irq_groups[] = { 7918c2ecf20Sopenharmony_ci "gpio97", 7928c2ecf20Sopenharmony_ci}; 7938c2ecf20Sopenharmony_cistatic const char * const blsp_i2c8_groups[] = { 7948c2ecf20Sopenharmony_ci "gpio18", "gpio19", 7958c2ecf20Sopenharmony_ci}; 7968c2ecf20Sopenharmony_cistatic const char * const pa_indicator_groups[] = { 7978c2ecf20Sopenharmony_ci "gpio92", 7988c2ecf20Sopenharmony_ci}; 7998c2ecf20Sopenharmony_cistatic const char * const modem_tsync_groups[] = { 8008c2ecf20Sopenharmony_ci "gpio93", 8018c2ecf20Sopenharmony_ci}; 8028c2ecf20Sopenharmony_cistatic const char * const ssbi_wtr1_groups[] = { 8038c2ecf20Sopenharmony_ci "gpio79", "gpio94", 8048c2ecf20Sopenharmony_ci}; 8058c2ecf20Sopenharmony_cistatic const char * const gsm1_tx_groups[] = { 8068c2ecf20Sopenharmony_ci "gpio95", 8078c2ecf20Sopenharmony_ci}; 8088c2ecf20Sopenharmony_cistatic const char * const gsm0_tx_groups[] = { 8098c2ecf20Sopenharmony_ci "gpio99", 8108c2ecf20Sopenharmony_ci}; 8118c2ecf20Sopenharmony_cistatic const char * const sdcard_det_groups[] = { 8128c2ecf20Sopenharmony_ci "gpio133", 8138c2ecf20Sopenharmony_ci}; 8148c2ecf20Sopenharmony_cistatic const char * const sec_mi2s_groups[] = { 8158c2ecf20Sopenharmony_ci "gpio102", "gpio105", "gpio134", "gpio135", 8168c2ecf20Sopenharmony_ci}; 8178c2ecf20Sopenharmony_ci 8188c2ecf20Sopenharmony_cistatic const char * const ss_switch_groups[] = { 8198c2ecf20Sopenharmony_ci "gpio139", 8208c2ecf20Sopenharmony_ci}; 8218c2ecf20Sopenharmony_ci 8228c2ecf20Sopenharmony_cistatic const struct msm_function msm8976_functions[] = { 8238c2ecf20Sopenharmony_ci FUNCTION(gpio), 8248c2ecf20Sopenharmony_ci FUNCTION(blsp_spi1), 8258c2ecf20Sopenharmony_ci FUNCTION(smb_int), 8268c2ecf20Sopenharmony_ci FUNCTION(blsp_i2c1), 8278c2ecf20Sopenharmony_ci FUNCTION(blsp_spi2), 8288c2ecf20Sopenharmony_ci FUNCTION(blsp_uart1), 8298c2ecf20Sopenharmony_ci FUNCTION(blsp_uart2), 8308c2ecf20Sopenharmony_ci FUNCTION(blsp_i2c2), 8318c2ecf20Sopenharmony_ci FUNCTION(gcc_gp1_clk_b), 8328c2ecf20Sopenharmony_ci FUNCTION(blsp_spi3), 8338c2ecf20Sopenharmony_ci FUNCTION(qdss_tracedata_b), 8348c2ecf20Sopenharmony_ci FUNCTION(blsp_i2c3), 8358c2ecf20Sopenharmony_ci FUNCTION(gcc_gp2_clk_b), 8368c2ecf20Sopenharmony_ci FUNCTION(gcc_gp3_clk_b), 8378c2ecf20Sopenharmony_ci FUNCTION(blsp_spi4), 8388c2ecf20Sopenharmony_ci FUNCTION(cap_int), 8398c2ecf20Sopenharmony_ci FUNCTION(blsp_i2c4), 8408c2ecf20Sopenharmony_ci FUNCTION(blsp_spi5), 8418c2ecf20Sopenharmony_ci FUNCTION(blsp_uart5), 8428c2ecf20Sopenharmony_ci FUNCTION(qdss_traceclk_a), 8438c2ecf20Sopenharmony_ci FUNCTION(m_voc), 8448c2ecf20Sopenharmony_ci FUNCTION(blsp_i2c5), 8458c2ecf20Sopenharmony_ci FUNCTION(qdss_tracectl_a), 8468c2ecf20Sopenharmony_ci FUNCTION(qdss_tracedata_a), 8478c2ecf20Sopenharmony_ci FUNCTION(blsp_spi6), 8488c2ecf20Sopenharmony_ci FUNCTION(blsp_uart6), 8498c2ecf20Sopenharmony_ci FUNCTION(qdss_tracectl_b), 8508c2ecf20Sopenharmony_ci FUNCTION(blsp_i2c6), 8518c2ecf20Sopenharmony_ci FUNCTION(qdss_traceclk_b), 8528c2ecf20Sopenharmony_ci FUNCTION(mdp_vsync), 8538c2ecf20Sopenharmony_ci FUNCTION(pri_mi2s_mclk_a), 8548c2ecf20Sopenharmony_ci FUNCTION(sec_mi2s_mclk_a), 8558c2ecf20Sopenharmony_ci FUNCTION(cam_mclk), 8568c2ecf20Sopenharmony_ci FUNCTION(cci0_i2c), 8578c2ecf20Sopenharmony_ci FUNCTION(cci1_i2c), 8588c2ecf20Sopenharmony_ci FUNCTION(blsp1_spi), 8598c2ecf20Sopenharmony_ci FUNCTION(blsp3_spi), 8608c2ecf20Sopenharmony_ci FUNCTION(gcc_gp1_clk_a), 8618c2ecf20Sopenharmony_ci FUNCTION(gcc_gp2_clk_a), 8628c2ecf20Sopenharmony_ci FUNCTION(gcc_gp3_clk_a), 8638c2ecf20Sopenharmony_ci FUNCTION(uim_batt), 8648c2ecf20Sopenharmony_ci FUNCTION(sd_write), 8658c2ecf20Sopenharmony_ci FUNCTION(uim1_data), 8668c2ecf20Sopenharmony_ci FUNCTION(uim1_clk), 8678c2ecf20Sopenharmony_ci FUNCTION(uim1_reset), 8688c2ecf20Sopenharmony_ci FUNCTION(uim1_present), 8698c2ecf20Sopenharmony_ci FUNCTION(uim2_data), 8708c2ecf20Sopenharmony_ci FUNCTION(uim2_clk), 8718c2ecf20Sopenharmony_ci FUNCTION(uim2_reset), 8728c2ecf20Sopenharmony_ci FUNCTION(uim2_present), 8738c2ecf20Sopenharmony_ci FUNCTION(ts_xvdd), 8748c2ecf20Sopenharmony_ci FUNCTION(mipi_dsi0), 8758c2ecf20Sopenharmony_ci FUNCTION(us_euro), 8768c2ecf20Sopenharmony_ci FUNCTION(ts_resout), 8778c2ecf20Sopenharmony_ci FUNCTION(ts_sample), 8788c2ecf20Sopenharmony_ci FUNCTION(sec_mi2s_mclk_b), 8798c2ecf20Sopenharmony_ci FUNCTION(pri_mi2s), 8808c2ecf20Sopenharmony_ci FUNCTION(codec_reset), 8818c2ecf20Sopenharmony_ci FUNCTION(cdc_pdm0), 8828c2ecf20Sopenharmony_ci FUNCTION(us_emitter), 8838c2ecf20Sopenharmony_ci FUNCTION(pri_mi2s_mclk_b), 8848c2ecf20Sopenharmony_ci FUNCTION(pri_mi2s_mclk_c), 8858c2ecf20Sopenharmony_ci FUNCTION(lpass_slimbus), 8868c2ecf20Sopenharmony_ci FUNCTION(lpass_slimbus0), 8878c2ecf20Sopenharmony_ci FUNCTION(lpass_slimbus1), 8888c2ecf20Sopenharmony_ci FUNCTION(codec_int1), 8898c2ecf20Sopenharmony_ci FUNCTION(codec_int2), 8908c2ecf20Sopenharmony_ci FUNCTION(wcss_bt), 8918c2ecf20Sopenharmony_ci FUNCTION(sdc3), 8928c2ecf20Sopenharmony_ci FUNCTION(wcss_wlan2), 8938c2ecf20Sopenharmony_ci FUNCTION(wcss_wlan1), 8948c2ecf20Sopenharmony_ci FUNCTION(wcss_wlan0), 8958c2ecf20Sopenharmony_ci FUNCTION(wcss_wlan), 8968c2ecf20Sopenharmony_ci FUNCTION(wcss_fm), 8978c2ecf20Sopenharmony_ci FUNCTION(key_volp), 8988c2ecf20Sopenharmony_ci FUNCTION(key_snapshot), 8998c2ecf20Sopenharmony_ci FUNCTION(key_focus), 9008c2ecf20Sopenharmony_ci FUNCTION(key_home), 9018c2ecf20Sopenharmony_ci FUNCTION(pwr_down), 9028c2ecf20Sopenharmony_ci FUNCTION(dmic0_clk), 9038c2ecf20Sopenharmony_ci FUNCTION(hdmi_int), 9048c2ecf20Sopenharmony_ci FUNCTION(dmic0_data), 9058c2ecf20Sopenharmony_ci FUNCTION(wsa_vi), 9068c2ecf20Sopenharmony_ci FUNCTION(wsa_en), 9078c2ecf20Sopenharmony_ci FUNCTION(blsp_spi8), 9088c2ecf20Sopenharmony_ci FUNCTION(wsa_irq), 9098c2ecf20Sopenharmony_ci FUNCTION(blsp_i2c8), 9108c2ecf20Sopenharmony_ci FUNCTION(pa_indicator), 9118c2ecf20Sopenharmony_ci FUNCTION(modem_tsync), 9128c2ecf20Sopenharmony_ci FUNCTION(ssbi_wtr1), 9138c2ecf20Sopenharmony_ci FUNCTION(gsm1_tx), 9148c2ecf20Sopenharmony_ci FUNCTION(gsm0_tx), 9158c2ecf20Sopenharmony_ci FUNCTION(sdcard_det), 9168c2ecf20Sopenharmony_ci FUNCTION(sec_mi2s), 9178c2ecf20Sopenharmony_ci FUNCTION(ss_switch), 9188c2ecf20Sopenharmony_ci}; 9198c2ecf20Sopenharmony_ci 9208c2ecf20Sopenharmony_cistatic const struct msm_pingroup msm8976_groups[] = { 9218c2ecf20Sopenharmony_ci PINGROUP(0, blsp_spi1, blsp_uart1, NA, NA, NA, NA, NA, NA, NA), 9228c2ecf20Sopenharmony_ci PINGROUP(1, blsp_spi1, blsp_uart1, NA, NA, NA, NA, NA, NA, NA), 9238c2ecf20Sopenharmony_ci PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA), 9248c2ecf20Sopenharmony_ci PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA), 9258c2ecf20Sopenharmony_ci PINGROUP(4, blsp_spi2, blsp_uart2, NA, NA, NA, qdss_tracectl_b, NA, NA, NA), 9268c2ecf20Sopenharmony_ci PINGROUP(5, blsp_spi2, blsp_uart2, NA, NA, NA, qdss_traceclk_b, NA, NA, NA), 9278c2ecf20Sopenharmony_ci PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA), 9288c2ecf20Sopenharmony_ci PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA), 9298c2ecf20Sopenharmony_ci PINGROUP(8, blsp_spi3, NA, NA, NA, NA, qdss_tracedata_a, NA, NA, NA), 9308c2ecf20Sopenharmony_ci PINGROUP(9, blsp_spi3, NA, NA, NA, qdss_tracedata_a, NA, NA, NA, NA), 9318c2ecf20Sopenharmony_ci PINGROUP(10, blsp_spi3, NA, blsp_i2c3, NA, NA, qdss_tracedata_a, NA, NA, NA), 9328c2ecf20Sopenharmony_ci PINGROUP(11, blsp_spi3, NA, blsp_i2c3, NA, NA, NA, NA, NA, NA), 9338c2ecf20Sopenharmony_ci PINGROUP(12, blsp_spi4, NA, gcc_gp2_clk_b, NA, NA, NA, NA, NA, NA), 9348c2ecf20Sopenharmony_ci PINGROUP(13, blsp_spi4, NA, gcc_gp3_clk_b, NA, NA, NA, NA, NA, NA), 9358c2ecf20Sopenharmony_ci PINGROUP(14, blsp_spi4, NA, blsp_i2c4, NA, NA, NA, NA, NA, NA), 9368c2ecf20Sopenharmony_ci PINGROUP(15, blsp_spi4, NA, blsp_i2c4, NA, NA, NA, NA, NA, NA), 9378c2ecf20Sopenharmony_ci PINGROUP(16, blsp_spi8, NA, NA, NA, NA, NA, NA, NA, NA), 9388c2ecf20Sopenharmony_ci PINGROUP(17, blsp_spi8, NA, NA, NA, NA, NA, NA, NA, NA), 9398c2ecf20Sopenharmony_ci PINGROUP(18, blsp_spi8, NA, blsp_i2c8, NA, NA, NA, NA, NA, NA), 9408c2ecf20Sopenharmony_ci PINGROUP(19, blsp_spi8, NA, blsp_i2c8, NA, NA, NA, NA, NA, NA), 9418c2ecf20Sopenharmony_ci PINGROUP(20, blsp_spi6, blsp_uart6, NA, NA, NA, NA, NA, NA, NA), 9428c2ecf20Sopenharmony_ci PINGROUP(21, blsp_spi6, blsp_uart6, NA, NA, NA, NA, NA, NA, NA), 9438c2ecf20Sopenharmony_ci PINGROUP(22, blsp_spi6, blsp_uart6, blsp_i2c6, NA, NA, NA, NA, NA, NA), 9448c2ecf20Sopenharmony_ci PINGROUP(23, blsp_spi6, blsp_uart6, blsp_i2c6, NA, NA, NA, NA, NA, NA), 9458c2ecf20Sopenharmony_ci PINGROUP(24, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA), 9468c2ecf20Sopenharmony_ci PINGROUP(25, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA), 9478c2ecf20Sopenharmony_ci PINGROUP(26, cam_mclk, NA, NA, NA, NA, qdss_tracedata_b, NA, NA, NA), 9488c2ecf20Sopenharmony_ci PINGROUP(27, cam_mclk, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA), 9498c2ecf20Sopenharmony_ci PINGROUP(28, cam_mclk, NA, NA, NA, NA, qdss_tracedata_b, NA, NA, NA), 9508c2ecf20Sopenharmony_ci PINGROUP(29, cci0_i2c, NA, NA, NA, NA, qdss_tracedata_b, NA, NA, NA), 9518c2ecf20Sopenharmony_ci PINGROUP(30, cci0_i2c, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA), 9528c2ecf20Sopenharmony_ci PINGROUP(31, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA), 9538c2ecf20Sopenharmony_ci PINGROUP(32, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9548c2ecf20Sopenharmony_ci PINGROUP(33, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA), 9558c2ecf20Sopenharmony_ci PINGROUP(34, NA, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 9568c2ecf20Sopenharmony_ci PINGROUP(35, NA, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 9578c2ecf20Sopenharmony_ci PINGROUP(36, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA), 9588c2ecf20Sopenharmony_ci PINGROUP(37, NA, NA, NA, qdss_tracedata_b, NA, NA, NA, NA, NA), 9598c2ecf20Sopenharmony_ci PINGROUP(38, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA), 9608c2ecf20Sopenharmony_ci PINGROUP(39, wcss_bt, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA), 9618c2ecf20Sopenharmony_ci PINGROUP(40, wcss_wlan2, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA), 9628c2ecf20Sopenharmony_ci PINGROUP(41, wcss_wlan1, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA), 9638c2ecf20Sopenharmony_ci PINGROUP(42, wcss_wlan0, sdc3, NA, qdss_tracedata_a, NA, NA, NA, NA, NA), 9648c2ecf20Sopenharmony_ci PINGROUP(43, wcss_wlan, sdc3, NA, NA, qdss_tracedata_a, NA, NA, NA, NA), 9658c2ecf20Sopenharmony_ci PINGROUP(44, wcss_wlan, sdc3, NA, NA, NA, NA, NA, NA, NA), 9668c2ecf20Sopenharmony_ci PINGROUP(45, wcss_fm, NA, qdss_tracectl_a, NA, NA, NA, NA, NA, NA), 9678c2ecf20Sopenharmony_ci PINGROUP(46, wcss_fm, NA, NA, qdss_traceclk_a, NA, NA, NA, NA, NA), 9688c2ecf20Sopenharmony_ci PINGROUP(47, wcss_bt, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA), 9698c2ecf20Sopenharmony_ci PINGROUP(48, wcss_bt, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA), 9708c2ecf20Sopenharmony_ci PINGROUP(49, NA, NA, gcc_gp1_clk_a, NA, NA, NA, NA, NA, NA), 9718c2ecf20Sopenharmony_ci PINGROUP(50, NA, sd_write, gcc_gp2_clk_a, NA, NA, NA, NA, NA, NA), 9728c2ecf20Sopenharmony_ci PINGROUP(51, uim2_data, gcc_gp3_clk_a, NA, NA, NA, NA, NA, NA, NA), 9738c2ecf20Sopenharmony_ci PINGROUP(52, uim2_clk, NA, NA, NA, NA, NA, NA, NA, NA), 9748c2ecf20Sopenharmony_ci PINGROUP(53, uim2_reset, NA, NA, NA, NA, NA, NA, NA, NA), 9758c2ecf20Sopenharmony_ci PINGROUP(54, uim2_present, NA, NA, NA, NA, NA, NA, NA, NA), 9768c2ecf20Sopenharmony_ci PINGROUP(55, uim1_data, NA, NA, NA, NA, NA, NA, NA, NA), 9778c2ecf20Sopenharmony_ci PINGROUP(56, uim1_clk, NA, NA, NA, NA, NA, NA, NA, NA), 9788c2ecf20Sopenharmony_ci PINGROUP(57, uim1_reset, NA, NA, NA, NA, NA, NA, NA, NA), 9798c2ecf20Sopenharmony_ci PINGROUP(58, uim1_present, NA, NA, NA, NA, NA, NA, NA, NA), 9808c2ecf20Sopenharmony_ci PINGROUP(59, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9818c2ecf20Sopenharmony_ci PINGROUP(60, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9828c2ecf20Sopenharmony_ci PINGROUP(61, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA), 9838c2ecf20Sopenharmony_ci PINGROUP(62, sec_mi2s_mclk_a, pri_mi2s_mclk_b, qdss_tracedata_a, NA, NA, NA, NA, NA, NA), 9848c2ecf20Sopenharmony_ci PINGROUP(63, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9858c2ecf20Sopenharmony_ci PINGROUP(64, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9868c2ecf20Sopenharmony_ci PINGROUP(65, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9878c2ecf20Sopenharmony_ci PINGROUP(66, dmic0_clk, NA, NA, NA, NA, NA, NA, NA, NA), 9888c2ecf20Sopenharmony_ci PINGROUP(67, dmic0_data, NA, NA, NA, NA, NA, NA, NA, NA), 9898c2ecf20Sopenharmony_ci PINGROUP(68, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9908c2ecf20Sopenharmony_ci PINGROUP(69, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA, NA), 9918c2ecf20Sopenharmony_ci PINGROUP(70, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9928c2ecf20Sopenharmony_ci PINGROUP(71, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9938c2ecf20Sopenharmony_ci PINGROUP(72, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9948c2ecf20Sopenharmony_ci PINGROUP(73, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9958c2ecf20Sopenharmony_ci PINGROUP(74, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9968c2ecf20Sopenharmony_ci PINGROUP(75, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9978c2ecf20Sopenharmony_ci PINGROUP(76, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9988c2ecf20Sopenharmony_ci PINGROUP(77, NA, NA, NA, NA, NA, NA, NA, NA, NA), 9998c2ecf20Sopenharmony_ci PINGROUP(78, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10008c2ecf20Sopenharmony_ci PINGROUP(79, NA, ssbi_wtr1, NA, NA, NA, NA, NA, NA, NA), 10018c2ecf20Sopenharmony_ci PINGROUP(80, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10028c2ecf20Sopenharmony_ci PINGROUP(81, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10038c2ecf20Sopenharmony_ci PINGROUP(82, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10048c2ecf20Sopenharmony_ci PINGROUP(83, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10058c2ecf20Sopenharmony_ci PINGROUP(84, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10068c2ecf20Sopenharmony_ci PINGROUP(85, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10078c2ecf20Sopenharmony_ci PINGROUP(86, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10088c2ecf20Sopenharmony_ci PINGROUP(87, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10098c2ecf20Sopenharmony_ci PINGROUP(88, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10108c2ecf20Sopenharmony_ci PINGROUP(89, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10118c2ecf20Sopenharmony_ci PINGROUP(90, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10128c2ecf20Sopenharmony_ci PINGROUP(91, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10138c2ecf20Sopenharmony_ci PINGROUP(92, NA, NA, pa_indicator, NA, NA, NA, NA, NA, NA), 10148c2ecf20Sopenharmony_ci PINGROUP(93, NA, modem_tsync, NA, NA, NA, NA, NA, NA, NA), 10158c2ecf20Sopenharmony_ci PINGROUP(94, NA, ssbi_wtr1, NA, NA, NA, NA, NA, NA, NA), 10168c2ecf20Sopenharmony_ci PINGROUP(95, NA, gsm1_tx, NA, NA, NA, NA, NA, NA, NA), 10178c2ecf20Sopenharmony_ci PINGROUP(96, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10188c2ecf20Sopenharmony_ci PINGROUP(97, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10198c2ecf20Sopenharmony_ci PINGROUP(98, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10208c2ecf20Sopenharmony_ci PINGROUP(99, gsm0_tx, NA, NA, NA, NA, NA, NA, NA, NA), 10218c2ecf20Sopenharmony_ci PINGROUP(100, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10228c2ecf20Sopenharmony_ci PINGROUP(101, blsp1_spi, NA, NA, NA, NA, NA, NA, NA, NA), 10238c2ecf20Sopenharmony_ci PINGROUP(102, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 10248c2ecf20Sopenharmony_ci PINGROUP(103, cci1_i2c, NA, NA, NA, NA, NA, NA, NA, NA), 10258c2ecf20Sopenharmony_ci PINGROUP(104, cci1_i2c, NA, NA, NA, NA, NA, NA, NA, NA), 10268c2ecf20Sopenharmony_ci PINGROUP(105, sec_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA), 10278c2ecf20Sopenharmony_ci PINGROUP(106, blsp3_spi, NA, NA, NA, NA, NA, NA, NA, NA), 10288c2ecf20Sopenharmony_ci PINGROUP(107, blsp3_spi, NA, NA, NA, NA, NA, NA, NA, NA), 10298c2ecf20Sopenharmony_ci PINGROUP(108, wsa_vi, NA, NA, NA, NA, NA, NA, NA, NA), 10308c2ecf20Sopenharmony_ci PINGROUP(109, wsa_vi, NA, NA, NA, NA, NA, NA, NA, NA), 10318c2ecf20Sopenharmony_ci PINGROUP(110, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10328c2ecf20Sopenharmony_ci PINGROUP(111, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10338c2ecf20Sopenharmony_ci PINGROUP(112, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10348c2ecf20Sopenharmony_ci PINGROUP(113, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10358c2ecf20Sopenharmony_ci PINGROUP(114, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10368c2ecf20Sopenharmony_ci PINGROUP(115, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10378c2ecf20Sopenharmony_ci PINGROUP(116, pri_mi2s_mclk_c, cdc_pdm0, NA, NA, NA, qdss_tracedata_b, NA, NA, NA), 10388c2ecf20Sopenharmony_ci PINGROUP(117, lpass_slimbus, cdc_pdm0, NA, NA, NA, NA, NA, NA, NA), 10398c2ecf20Sopenharmony_ci PINGROUP(118, lpass_slimbus0, cdc_pdm0, NA, NA, NA, NA, NA, NA, NA), 10408c2ecf20Sopenharmony_ci PINGROUP(119, lpass_slimbus1, cdc_pdm0, NA, NA, NA, NA, NA, NA, NA), 10418c2ecf20Sopenharmony_ci PINGROUP(120, cdc_pdm0, NA, NA, NA, NA, NA, NA, qdss_tracedata_a, NA), 10428c2ecf20Sopenharmony_ci PINGROUP(121, cdc_pdm0, NA, NA, NA, NA, NA, NA, qdss_tracedata_a, NA), 10438c2ecf20Sopenharmony_ci PINGROUP(122, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 10448c2ecf20Sopenharmony_ci PINGROUP(123, pri_mi2s, m_voc, NA, NA, NA, NA, NA, NA, NA), 10458c2ecf20Sopenharmony_ci PINGROUP(124, pri_mi2s, m_voc, NA, NA, NA, NA, NA, NA, NA), 10468c2ecf20Sopenharmony_ci PINGROUP(125, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 10478c2ecf20Sopenharmony_ci PINGROUP(126, pri_mi2s_mclk_a, sec_mi2s_mclk_b, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 10488c2ecf20Sopenharmony_ci PINGROUP(127, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 10498c2ecf20Sopenharmony_ci PINGROUP(128, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA), 10508c2ecf20Sopenharmony_ci PINGROUP(129, qdss_tracedata_b, NA, NA, NA, NA, NA, NA, NA, NA), 10518c2ecf20Sopenharmony_ci PINGROUP(130, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA, NA), 10528c2ecf20Sopenharmony_ci PINGROUP(131, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA, NA), 10538c2ecf20Sopenharmony_ci PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10548c2ecf20Sopenharmony_ci PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10558c2ecf20Sopenharmony_ci PINGROUP(134, blsp_spi5, blsp_uart5, sec_mi2s, NA, NA, NA, NA, NA, NA), 10568c2ecf20Sopenharmony_ci PINGROUP(135, blsp_spi5, blsp_uart5, sec_mi2s, NA, NA, NA, NA, NA, NA), 10578c2ecf20Sopenharmony_ci PINGROUP(136, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA), 10588c2ecf20Sopenharmony_ci PINGROUP(137, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA), 10598c2ecf20Sopenharmony_ci PINGROUP(138, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10608c2ecf20Sopenharmony_ci PINGROUP(139, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10618c2ecf20Sopenharmony_ci PINGROUP(140, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10628c2ecf20Sopenharmony_ci PINGROUP(141, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10638c2ecf20Sopenharmony_ci PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10648c2ecf20Sopenharmony_ci PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10658c2ecf20Sopenharmony_ci PINGROUP(144, NA, NA, NA, NA, NA, NA, NA, NA, NA), 10668c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_clk, 0x10a000, 13, 6), 10678c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_cmd, 0x10a000, 11, 3), 10688c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_data, 0x10a000, 9, 0), 10698c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_rclk, 0x10a000, 15, 0), 10708c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(sdc2_clk, 0x109000, 14, 6), 10718c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(sdc2_cmd, 0x109000, 11, 3), 10728c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(sdc2_data, 0x109000, 9, 0), 10738c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(qdsd_clk, 0x19c000, 3, 0), 10748c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(qdsd_cmd, 0x19c000, 8, 5), 10758c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(qdsd_data0, 0x19c000, 13, 10), 10768c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(qdsd_data1, 0x19c000, 18, 15), 10778c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(qdsd_data2, 0x19c000, 23, 20), 10788c2ecf20Sopenharmony_ci SDC_QDSD_PINGROUP(qdsd_data3, 0x19c000, 28, 25), 10798c2ecf20Sopenharmony_ci}; 10808c2ecf20Sopenharmony_ci 10818c2ecf20Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8976_pinctrl = { 10828c2ecf20Sopenharmony_ci .pins = msm8976_pins, 10838c2ecf20Sopenharmony_ci .npins = ARRAY_SIZE(msm8976_pins), 10848c2ecf20Sopenharmony_ci .functions = msm8976_functions, 10858c2ecf20Sopenharmony_ci .nfunctions = ARRAY_SIZE(msm8976_functions), 10868c2ecf20Sopenharmony_ci .groups = msm8976_groups, 10878c2ecf20Sopenharmony_ci .ngroups = ARRAY_SIZE(msm8976_groups), 10888c2ecf20Sopenharmony_ci .ngpios = 145, 10898c2ecf20Sopenharmony_ci}; 10908c2ecf20Sopenharmony_ci 10918c2ecf20Sopenharmony_cistatic int msm8976_pinctrl_probe(struct platform_device *pdev) 10928c2ecf20Sopenharmony_ci{ 10938c2ecf20Sopenharmony_ci return msm_pinctrl_probe(pdev, &msm8976_pinctrl); 10948c2ecf20Sopenharmony_ci} 10958c2ecf20Sopenharmony_ci 10968c2ecf20Sopenharmony_cistatic const struct of_device_id msm8976_pinctrl_of_match[] = { 10978c2ecf20Sopenharmony_ci { .compatible = "qcom,msm8976-pinctrl", }, 10988c2ecf20Sopenharmony_ci { }, 10998c2ecf20Sopenharmony_ci}; 11008c2ecf20Sopenharmony_ci 11018c2ecf20Sopenharmony_cistatic struct platform_driver msm8976_pinctrl_driver = { 11028c2ecf20Sopenharmony_ci .driver = { 11038c2ecf20Sopenharmony_ci .name = "msm8976-pinctrl", 11048c2ecf20Sopenharmony_ci .of_match_table = msm8976_pinctrl_of_match, 11058c2ecf20Sopenharmony_ci }, 11068c2ecf20Sopenharmony_ci .probe = msm8976_pinctrl_probe, 11078c2ecf20Sopenharmony_ci .remove = msm_pinctrl_remove, 11088c2ecf20Sopenharmony_ci}; 11098c2ecf20Sopenharmony_ci 11108c2ecf20Sopenharmony_cistatic int __init msm8976_pinctrl_init(void) 11118c2ecf20Sopenharmony_ci{ 11128c2ecf20Sopenharmony_ci return platform_driver_register(&msm8976_pinctrl_driver); 11138c2ecf20Sopenharmony_ci} 11148c2ecf20Sopenharmony_ciarch_initcall(msm8976_pinctrl_init); 11158c2ecf20Sopenharmony_ci 11168c2ecf20Sopenharmony_cistatic void __exit msm8976_pinctrl_exit(void) 11178c2ecf20Sopenharmony_ci{ 11188c2ecf20Sopenharmony_ci platform_driver_unregister(&msm8976_pinctrl_driver); 11198c2ecf20Sopenharmony_ci} 11208c2ecf20Sopenharmony_cimodule_exit(msm8976_pinctrl_exit); 11218c2ecf20Sopenharmony_ci 11228c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm msm8976 pinctrl driver"); 11238c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2"); 11248c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8976_pinctrl_of_match); 1125