162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2015, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include <linux/module.h> 762306a36Sopenharmony_ci#include <linux/of.h> 862306a36Sopenharmony_ci#include <linux/platform_device.h> 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include "pinctrl-msm.h" 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistatic const struct pinctrl_pin_desc msm8916_pins[] = { 1362306a36Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 1462306a36Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 1562306a36Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 1662306a36Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 1762306a36Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 1862306a36Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 1962306a36Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 2062306a36Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 2162306a36Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 2262306a36Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 2362306a36Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 2462306a36Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 2562306a36Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 2662306a36Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 2762306a36Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 2862306a36Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 2962306a36Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 3062306a36Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 3162306a36Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 3262306a36Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 3362306a36Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 3462306a36Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 3562306a36Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 3662306a36Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 3762306a36Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 3862306a36Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 3962306a36Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 4062306a36Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 4162306a36Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 4262306a36Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 4362306a36Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 4462306a36Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 4562306a36Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 4662306a36Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 4762306a36Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 4862306a36Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 4962306a36Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 5062306a36Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 5162306a36Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 5262306a36Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 5362306a36Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 5462306a36Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 5562306a36Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 5662306a36Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 5762306a36Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 5862306a36Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 5962306a36Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 6062306a36Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 6162306a36Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 6262306a36Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 6362306a36Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 6462306a36Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 6562306a36Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 6662306a36Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 6762306a36Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 6862306a36Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 6962306a36Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 7062306a36Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 7162306a36Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 7262306a36Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 7362306a36Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 7462306a36Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 7562306a36Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 7662306a36Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 7762306a36Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 7862306a36Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 7962306a36Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 8062306a36Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 8162306a36Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 8262306a36Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 8362306a36Sopenharmony_ci PINCTRL_PIN(70, "GPIO_70"), 8462306a36Sopenharmony_ci PINCTRL_PIN(71, "GPIO_71"), 8562306a36Sopenharmony_ci PINCTRL_PIN(72, "GPIO_72"), 8662306a36Sopenharmony_ci PINCTRL_PIN(73, "GPIO_73"), 8762306a36Sopenharmony_ci PINCTRL_PIN(74, "GPIO_74"), 8862306a36Sopenharmony_ci PINCTRL_PIN(75, "GPIO_75"), 8962306a36Sopenharmony_ci PINCTRL_PIN(76, "GPIO_76"), 9062306a36Sopenharmony_ci PINCTRL_PIN(77, "GPIO_77"), 9162306a36Sopenharmony_ci PINCTRL_PIN(78, "GPIO_78"), 9262306a36Sopenharmony_ci PINCTRL_PIN(79, "GPIO_79"), 9362306a36Sopenharmony_ci PINCTRL_PIN(80, "GPIO_80"), 9462306a36Sopenharmony_ci PINCTRL_PIN(81, "GPIO_81"), 9562306a36Sopenharmony_ci PINCTRL_PIN(82, "GPIO_82"), 9662306a36Sopenharmony_ci PINCTRL_PIN(83, "GPIO_83"), 9762306a36Sopenharmony_ci PINCTRL_PIN(84, "GPIO_84"), 9862306a36Sopenharmony_ci PINCTRL_PIN(85, "GPIO_85"), 9962306a36Sopenharmony_ci PINCTRL_PIN(86, "GPIO_86"), 10062306a36Sopenharmony_ci PINCTRL_PIN(87, "GPIO_87"), 10162306a36Sopenharmony_ci PINCTRL_PIN(88, "GPIO_88"), 10262306a36Sopenharmony_ci PINCTRL_PIN(89, "GPIO_89"), 10362306a36Sopenharmony_ci PINCTRL_PIN(90, "GPIO_90"), 10462306a36Sopenharmony_ci PINCTRL_PIN(91, "GPIO_91"), 10562306a36Sopenharmony_ci PINCTRL_PIN(92, "GPIO_92"), 10662306a36Sopenharmony_ci PINCTRL_PIN(93, "GPIO_93"), 10762306a36Sopenharmony_ci PINCTRL_PIN(94, "GPIO_94"), 10862306a36Sopenharmony_ci PINCTRL_PIN(95, "GPIO_95"), 10962306a36Sopenharmony_ci PINCTRL_PIN(96, "GPIO_96"), 11062306a36Sopenharmony_ci PINCTRL_PIN(97, "GPIO_97"), 11162306a36Sopenharmony_ci PINCTRL_PIN(98, "GPIO_98"), 11262306a36Sopenharmony_ci PINCTRL_PIN(99, "GPIO_99"), 11362306a36Sopenharmony_ci PINCTRL_PIN(100, "GPIO_100"), 11462306a36Sopenharmony_ci PINCTRL_PIN(101, "GPIO_101"), 11562306a36Sopenharmony_ci PINCTRL_PIN(102, "GPIO_102"), 11662306a36Sopenharmony_ci PINCTRL_PIN(103, "GPIO_103"), 11762306a36Sopenharmony_ci PINCTRL_PIN(104, "GPIO_104"), 11862306a36Sopenharmony_ci PINCTRL_PIN(105, "GPIO_105"), 11962306a36Sopenharmony_ci PINCTRL_PIN(106, "GPIO_106"), 12062306a36Sopenharmony_ci PINCTRL_PIN(107, "GPIO_107"), 12162306a36Sopenharmony_ci PINCTRL_PIN(108, "GPIO_108"), 12262306a36Sopenharmony_ci PINCTRL_PIN(109, "GPIO_109"), 12362306a36Sopenharmony_ci PINCTRL_PIN(110, "GPIO_110"), 12462306a36Sopenharmony_ci PINCTRL_PIN(111, "GPIO_111"), 12562306a36Sopenharmony_ci PINCTRL_PIN(112, "GPIO_112"), 12662306a36Sopenharmony_ci PINCTRL_PIN(113, "GPIO_113"), 12762306a36Sopenharmony_ci PINCTRL_PIN(114, "GPIO_114"), 12862306a36Sopenharmony_ci PINCTRL_PIN(115, "GPIO_115"), 12962306a36Sopenharmony_ci PINCTRL_PIN(116, "GPIO_116"), 13062306a36Sopenharmony_ci PINCTRL_PIN(117, "GPIO_117"), 13162306a36Sopenharmony_ci PINCTRL_PIN(118, "GPIO_118"), 13262306a36Sopenharmony_ci PINCTRL_PIN(119, "GPIO_119"), 13362306a36Sopenharmony_ci PINCTRL_PIN(120, "GPIO_120"), 13462306a36Sopenharmony_ci PINCTRL_PIN(121, "GPIO_121"), 13562306a36Sopenharmony_ci PINCTRL_PIN(122, "SDC1_CLK"), 13662306a36Sopenharmony_ci PINCTRL_PIN(123, "SDC1_CMD"), 13762306a36Sopenharmony_ci PINCTRL_PIN(124, "SDC1_DATA"), 13862306a36Sopenharmony_ci PINCTRL_PIN(125, "SDC2_CLK"), 13962306a36Sopenharmony_ci PINCTRL_PIN(126, "SDC2_CMD"), 14062306a36Sopenharmony_ci PINCTRL_PIN(127, "SDC2_DATA"), 14162306a36Sopenharmony_ci PINCTRL_PIN(128, "QDSD_CLK"), 14262306a36Sopenharmony_ci PINCTRL_PIN(129, "QDSD_CMD"), 14362306a36Sopenharmony_ci PINCTRL_PIN(130, "QDSD_DATA0"), 14462306a36Sopenharmony_ci PINCTRL_PIN(131, "QDSD_DATA1"), 14562306a36Sopenharmony_ci PINCTRL_PIN(132, "QDSD_DATA2"), 14662306a36Sopenharmony_ci PINCTRL_PIN(133, "QDSD_DATA3"), 14762306a36Sopenharmony_ci}; 14862306a36Sopenharmony_ci 14962306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \ 15062306a36Sopenharmony_ci static const unsigned int gpio##pin##_pins[] = { pin } 15162306a36Sopenharmony_ci 15262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 15362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 15462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 15562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 15662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 15762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 15862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 15962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 16062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 16162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 16262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 16362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 16462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 16562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 16662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 16762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 16862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 16962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 17062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 17162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 17262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 17362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 17462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 17562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 17662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 17762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 17862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 17962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 18062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 18162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 18262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 18362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 18462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 18562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 18662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 18762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 18862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 18962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 19062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 19162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 19262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 19362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 19462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 19562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 19662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 19762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 19862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 19962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 20062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 20162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 20262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 20362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 20462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 20562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 20662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 20762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 20862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 20962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 21062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 21162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 21262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 21362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 21462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 21562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 21662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 21762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 21862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 21962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 22062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 22162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 22262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70); 22362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71); 22462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72); 22562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73); 22662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74); 22762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75); 22862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76); 22962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77); 23062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78); 23162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79); 23262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80); 23362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81); 23462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82); 23562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83); 23662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84); 23762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85); 23862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86); 23962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87); 24062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88); 24162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89); 24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90); 24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91); 24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92); 24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93); 24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94); 24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95); 24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96); 24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97); 25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98); 25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99); 25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100); 25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101); 25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102); 25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103); 25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104); 25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105); 25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106); 25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107); 26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108); 26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109); 26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110); 26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111); 26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112); 26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113); 26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114); 26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115); 26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116); 26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117); 27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118); 27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119); 27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120); 27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121); 27462306a36Sopenharmony_ci 27562306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 122 }; 27662306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 123 }; 27762306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 124 }; 27862306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 125 }; 27962306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 126 }; 28062306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 127 }; 28162306a36Sopenharmony_cistatic const unsigned int qdsd_clk_pins[] = { 128 }; 28262306a36Sopenharmony_cistatic const unsigned int qdsd_cmd_pins[] = { 129 }; 28362306a36Sopenharmony_cistatic const unsigned int qdsd_data0_pins[] = { 130 }; 28462306a36Sopenharmony_cistatic const unsigned int qdsd_data1_pins[] = { 131 }; 28562306a36Sopenharmony_cistatic const unsigned int qdsd_data2_pins[] = { 132 }; 28662306a36Sopenharmony_cistatic const unsigned int qdsd_data3_pins[] = { 133 }; 28762306a36Sopenharmony_ci 28862306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 28962306a36Sopenharmony_ci { \ 29062306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP("gpio" #id, \ 29162306a36Sopenharmony_ci gpio##id##_pins, \ 29262306a36Sopenharmony_ci ARRAY_SIZE(gpio##id##_pins)), \ 29362306a36Sopenharmony_ci .funcs = (int[]){ \ 29462306a36Sopenharmony_ci msm_mux_gpio, \ 29562306a36Sopenharmony_ci msm_mux_##f1, \ 29662306a36Sopenharmony_ci msm_mux_##f2, \ 29762306a36Sopenharmony_ci msm_mux_##f3, \ 29862306a36Sopenharmony_ci msm_mux_##f4, \ 29962306a36Sopenharmony_ci msm_mux_##f5, \ 30062306a36Sopenharmony_ci msm_mux_##f6, \ 30162306a36Sopenharmony_ci msm_mux_##f7, \ 30262306a36Sopenharmony_ci msm_mux_##f8, \ 30362306a36Sopenharmony_ci msm_mux_##f9 \ 30462306a36Sopenharmony_ci }, \ 30562306a36Sopenharmony_ci .nfuncs = 10, \ 30662306a36Sopenharmony_ci .ctl_reg = 0x1000 * id, \ 30762306a36Sopenharmony_ci .io_reg = 0x4 + 0x1000 * id, \ 30862306a36Sopenharmony_ci .intr_cfg_reg = 0x8 + 0x1000 * id, \ 30962306a36Sopenharmony_ci .intr_status_reg = 0xc + 0x1000 * id, \ 31062306a36Sopenharmony_ci .intr_target_reg = 0x8 + 0x1000 * id, \ 31162306a36Sopenharmony_ci .mux_bit = 2, \ 31262306a36Sopenharmony_ci .pull_bit = 0, \ 31362306a36Sopenharmony_ci .drv_bit = 6, \ 31462306a36Sopenharmony_ci .oe_bit = 9, \ 31562306a36Sopenharmony_ci .in_bit = 0, \ 31662306a36Sopenharmony_ci .out_bit = 1, \ 31762306a36Sopenharmony_ci .intr_enable_bit = 0, \ 31862306a36Sopenharmony_ci .intr_status_bit = 0, \ 31962306a36Sopenharmony_ci .intr_target_bit = 5, \ 32062306a36Sopenharmony_ci .intr_target_kpss_val = 4, \ 32162306a36Sopenharmony_ci .intr_raw_status_bit = 4, \ 32262306a36Sopenharmony_ci .intr_polarity_bit = 1, \ 32362306a36Sopenharmony_ci .intr_detection_bit = 2, \ 32462306a36Sopenharmony_ci .intr_detection_width = 2, \ 32562306a36Sopenharmony_ci } 32662306a36Sopenharmony_ci 32762306a36Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv) \ 32862306a36Sopenharmony_ci { \ 32962306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 33062306a36Sopenharmony_ci pg_name##_pins, \ 33162306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 33262306a36Sopenharmony_ci .ctl_reg = ctl, \ 33362306a36Sopenharmony_ci .io_reg = 0, \ 33462306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 33562306a36Sopenharmony_ci .intr_status_reg = 0, \ 33662306a36Sopenharmony_ci .intr_target_reg = 0, \ 33762306a36Sopenharmony_ci .mux_bit = -1, \ 33862306a36Sopenharmony_ci .pull_bit = pull, \ 33962306a36Sopenharmony_ci .drv_bit = drv, \ 34062306a36Sopenharmony_ci .oe_bit = -1, \ 34162306a36Sopenharmony_ci .in_bit = -1, \ 34262306a36Sopenharmony_ci .out_bit = -1, \ 34362306a36Sopenharmony_ci .intr_enable_bit = -1, \ 34462306a36Sopenharmony_ci .intr_status_bit = -1, \ 34562306a36Sopenharmony_ci .intr_target_bit = -1, \ 34662306a36Sopenharmony_ci .intr_target_kpss_val = -1, \ 34762306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 34862306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 34962306a36Sopenharmony_ci .intr_detection_bit = -1, \ 35062306a36Sopenharmony_ci .intr_detection_width = -1, \ 35162306a36Sopenharmony_ci } 35262306a36Sopenharmony_ci 35362306a36Sopenharmony_cienum msm8916_functions { 35462306a36Sopenharmony_ci msm_mux_adsp_ext, 35562306a36Sopenharmony_ci msm_mux_alsp_int, 35662306a36Sopenharmony_ci msm_mux_atest_bbrx0, 35762306a36Sopenharmony_ci msm_mux_atest_bbrx1, 35862306a36Sopenharmony_ci msm_mux_atest_char, 35962306a36Sopenharmony_ci msm_mux_atest_char0, 36062306a36Sopenharmony_ci msm_mux_atest_char1, 36162306a36Sopenharmony_ci msm_mux_atest_char2, 36262306a36Sopenharmony_ci msm_mux_atest_char3, 36362306a36Sopenharmony_ci msm_mux_atest_combodac, 36462306a36Sopenharmony_ci msm_mux_atest_gpsadc0, 36562306a36Sopenharmony_ci msm_mux_atest_gpsadc1, 36662306a36Sopenharmony_ci msm_mux_atest_tsens, 36762306a36Sopenharmony_ci msm_mux_atest_wlan0, 36862306a36Sopenharmony_ci msm_mux_atest_wlan1, 36962306a36Sopenharmony_ci msm_mux_backlight_en, 37062306a36Sopenharmony_ci msm_mux_bimc_dte0, 37162306a36Sopenharmony_ci msm_mux_bimc_dte1, 37262306a36Sopenharmony_ci msm_mux_blsp_i2c1, 37362306a36Sopenharmony_ci msm_mux_blsp_i2c2, 37462306a36Sopenharmony_ci msm_mux_blsp_i2c3, 37562306a36Sopenharmony_ci msm_mux_blsp_i2c4, 37662306a36Sopenharmony_ci msm_mux_blsp_i2c5, 37762306a36Sopenharmony_ci msm_mux_blsp_i2c6, 37862306a36Sopenharmony_ci msm_mux_blsp_spi1, 37962306a36Sopenharmony_ci msm_mux_blsp_spi1_cs1, 38062306a36Sopenharmony_ci msm_mux_blsp_spi1_cs2, 38162306a36Sopenharmony_ci msm_mux_blsp_spi1_cs3, 38262306a36Sopenharmony_ci msm_mux_blsp_spi2, 38362306a36Sopenharmony_ci msm_mux_blsp_spi2_cs1, 38462306a36Sopenharmony_ci msm_mux_blsp_spi2_cs2, 38562306a36Sopenharmony_ci msm_mux_blsp_spi2_cs3, 38662306a36Sopenharmony_ci msm_mux_blsp_spi3, 38762306a36Sopenharmony_ci msm_mux_blsp_spi3_cs1, 38862306a36Sopenharmony_ci msm_mux_blsp_spi3_cs2, 38962306a36Sopenharmony_ci msm_mux_blsp_spi3_cs3, 39062306a36Sopenharmony_ci msm_mux_blsp_spi4, 39162306a36Sopenharmony_ci msm_mux_blsp_spi5, 39262306a36Sopenharmony_ci msm_mux_blsp_spi6, 39362306a36Sopenharmony_ci msm_mux_blsp_uart1, 39462306a36Sopenharmony_ci msm_mux_blsp_uart2, 39562306a36Sopenharmony_ci msm_mux_blsp_uim1, 39662306a36Sopenharmony_ci msm_mux_blsp_uim2, 39762306a36Sopenharmony_ci msm_mux_cam1_rst, 39862306a36Sopenharmony_ci msm_mux_cam1_standby, 39962306a36Sopenharmony_ci msm_mux_cam_mclk0, 40062306a36Sopenharmony_ci msm_mux_cam_mclk1, 40162306a36Sopenharmony_ci msm_mux_cci_async, 40262306a36Sopenharmony_ci msm_mux_cci_i2c, 40362306a36Sopenharmony_ci msm_mux_cci_timer0, 40462306a36Sopenharmony_ci msm_mux_cci_timer1, 40562306a36Sopenharmony_ci msm_mux_cci_timer2, 40662306a36Sopenharmony_ci msm_mux_cdc_pdm0, 40762306a36Sopenharmony_ci msm_mux_codec_mad, 40862306a36Sopenharmony_ci msm_mux_dbg_out, 40962306a36Sopenharmony_ci msm_mux_display_5v, 41062306a36Sopenharmony_ci msm_mux_dmic0_clk, 41162306a36Sopenharmony_ci msm_mux_dmic0_data, 41262306a36Sopenharmony_ci msm_mux_dsi_rst, 41362306a36Sopenharmony_ci msm_mux_ebi0_wrcdc, 41462306a36Sopenharmony_ci msm_mux_euro_us, 41562306a36Sopenharmony_ci msm_mux_ext_lpass, 41662306a36Sopenharmony_ci msm_mux_flash_strobe, 41762306a36Sopenharmony_ci msm_mux_gcc_gp1_clk_a, 41862306a36Sopenharmony_ci msm_mux_gcc_gp1_clk_b, 41962306a36Sopenharmony_ci msm_mux_gcc_gp2_clk_a, 42062306a36Sopenharmony_ci msm_mux_gcc_gp2_clk_b, 42162306a36Sopenharmony_ci msm_mux_gcc_gp3_clk_a, 42262306a36Sopenharmony_ci msm_mux_gcc_gp3_clk_b, 42362306a36Sopenharmony_ci msm_mux_gpio, 42462306a36Sopenharmony_ci msm_mux_gsm0_tx0, 42562306a36Sopenharmony_ci msm_mux_gsm0_tx1, 42662306a36Sopenharmony_ci msm_mux_gsm1_tx0, 42762306a36Sopenharmony_ci msm_mux_gsm1_tx1, 42862306a36Sopenharmony_ci msm_mux_gyro_accl, 42962306a36Sopenharmony_ci msm_mux_kpsns0, 43062306a36Sopenharmony_ci msm_mux_kpsns1, 43162306a36Sopenharmony_ci msm_mux_kpsns2, 43262306a36Sopenharmony_ci msm_mux_ldo_en, 43362306a36Sopenharmony_ci msm_mux_ldo_update, 43462306a36Sopenharmony_ci msm_mux_mag_int, 43562306a36Sopenharmony_ci msm_mux_mdp_vsync, 43662306a36Sopenharmony_ci msm_mux_modem_tsync, 43762306a36Sopenharmony_ci msm_mux_m_voc, 43862306a36Sopenharmony_ci msm_mux_nav_pps, 43962306a36Sopenharmony_ci msm_mux_nav_tsync, 44062306a36Sopenharmony_ci msm_mux_pa_indicator, 44162306a36Sopenharmony_ci msm_mux_pbs0, 44262306a36Sopenharmony_ci msm_mux_pbs1, 44362306a36Sopenharmony_ci msm_mux_pbs2, 44462306a36Sopenharmony_ci msm_mux_pri_mi2s, 44562306a36Sopenharmony_ci msm_mux_pri_mi2s_ws, 44662306a36Sopenharmony_ci msm_mux_prng_rosc, 44762306a36Sopenharmony_ci msm_mux_pwr_crypto_enabled_a, 44862306a36Sopenharmony_ci msm_mux_pwr_crypto_enabled_b, 44962306a36Sopenharmony_ci msm_mux_pwr_modem_enabled_a, 45062306a36Sopenharmony_ci msm_mux_pwr_modem_enabled_b, 45162306a36Sopenharmony_ci msm_mux_pwr_nav_enabled_a, 45262306a36Sopenharmony_ci msm_mux_pwr_nav_enabled_b, 45362306a36Sopenharmony_ci msm_mux_qdss_ctitrig_in_a0, 45462306a36Sopenharmony_ci msm_mux_qdss_ctitrig_in_a1, 45562306a36Sopenharmony_ci msm_mux_qdss_ctitrig_in_b0, 45662306a36Sopenharmony_ci msm_mux_qdss_ctitrig_in_b1, 45762306a36Sopenharmony_ci msm_mux_qdss_ctitrig_out_a0, 45862306a36Sopenharmony_ci msm_mux_qdss_ctitrig_out_a1, 45962306a36Sopenharmony_ci msm_mux_qdss_ctitrig_out_b0, 46062306a36Sopenharmony_ci msm_mux_qdss_ctitrig_out_b1, 46162306a36Sopenharmony_ci msm_mux_qdss_traceclk_a, 46262306a36Sopenharmony_ci msm_mux_qdss_traceclk_b, 46362306a36Sopenharmony_ci msm_mux_qdss_tracectl_a, 46462306a36Sopenharmony_ci msm_mux_qdss_tracectl_b, 46562306a36Sopenharmony_ci msm_mux_qdss_tracedata_a, 46662306a36Sopenharmony_ci msm_mux_qdss_tracedata_b, 46762306a36Sopenharmony_ci msm_mux_reset_n, 46862306a36Sopenharmony_ci msm_mux_sd_card, 46962306a36Sopenharmony_ci msm_mux_sd_write, 47062306a36Sopenharmony_ci msm_mux_sec_mi2s, 47162306a36Sopenharmony_ci msm_mux_smb_int, 47262306a36Sopenharmony_ci msm_mux_ssbi_wtr0, 47362306a36Sopenharmony_ci msm_mux_ssbi_wtr1, 47462306a36Sopenharmony_ci msm_mux_uim1, 47562306a36Sopenharmony_ci msm_mux_uim2, 47662306a36Sopenharmony_ci msm_mux_uim3, 47762306a36Sopenharmony_ci msm_mux_uim_batt, 47862306a36Sopenharmony_ci msm_mux_wcss_bt, 47962306a36Sopenharmony_ci msm_mux_wcss_fm, 48062306a36Sopenharmony_ci msm_mux_wcss_wlan, 48162306a36Sopenharmony_ci msm_mux_webcam1_rst, 48262306a36Sopenharmony_ci msm_mux_NA, 48362306a36Sopenharmony_ci}; 48462306a36Sopenharmony_ci 48562306a36Sopenharmony_cistatic const char * const gpio_groups[] = { 48662306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 48762306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 48862306a36Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 48962306a36Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 49062306a36Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 49162306a36Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 49262306a36Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 49362306a36Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 49462306a36Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 49562306a36Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 49662306a36Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 49762306a36Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 49862306a36Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 49962306a36Sopenharmony_ci "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 50062306a36Sopenharmony_ci "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 50162306a36Sopenharmony_ci "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 50262306a36Sopenharmony_ci "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 50362306a36Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121" 50462306a36Sopenharmony_ci}; 50562306a36Sopenharmony_cistatic const char * const adsp_ext_groups[] = { "gpio38" }; 50662306a36Sopenharmony_cistatic const char * const alsp_int_groups[] = { "gpio113" }; 50762306a36Sopenharmony_cistatic const char * const atest_bbrx0_groups[] = { "gpio17" }; 50862306a36Sopenharmony_cistatic const char * const atest_bbrx1_groups[] = { "gpio16" }; 50962306a36Sopenharmony_cistatic const char * const atest_char_groups[] = { "gpio62" }; 51062306a36Sopenharmony_cistatic const char * const atest_char0_groups[] = { "gpio60" }; 51162306a36Sopenharmony_cistatic const char * const atest_char1_groups[] = { "gpio59" }; 51262306a36Sopenharmony_cistatic const char * const atest_char2_groups[] = { "gpio58" }; 51362306a36Sopenharmony_cistatic const char * const atest_char3_groups[] = { "gpio57" }; 51462306a36Sopenharmony_cistatic const char * const atest_combodac_groups[] = { 51562306a36Sopenharmony_ci "gpio4", "gpio12", "gpio13", "gpio20", "gpio21", "gpio28", "gpio29", 51662306a36Sopenharmony_ci "gpio30", "gpio39", "gpio40", "gpio41", "gpio42", "gpio43", "gpio44", 51762306a36Sopenharmony_ci "gpio45", "gpio46", "gpio47", "gpio48", "gpio69", "gpio107" 51862306a36Sopenharmony_ci}; 51962306a36Sopenharmony_cistatic const char * const atest_gpsadc0_groups[] = { "gpio7" }; 52062306a36Sopenharmony_cistatic const char * const atest_gpsadc1_groups[] = { "gpio18" }; 52162306a36Sopenharmony_cistatic const char * const atest_tsens_groups[] = { "gpio112" }; 52262306a36Sopenharmony_cistatic const char * const atest_wlan0_groups[] = { "gpio22" }; 52362306a36Sopenharmony_cistatic const char * const atest_wlan1_groups[] = { "gpio23" }; 52462306a36Sopenharmony_cistatic const char * const backlight_en_groups[] = { "gpio98" }; 52562306a36Sopenharmony_cistatic const char * const bimc_dte0_groups[] = { "gpio63", "gpio65" }; 52662306a36Sopenharmony_cistatic const char * const bimc_dte1_groups[] = { "gpio64", "gpio66" }; 52762306a36Sopenharmony_cistatic const char * const blsp_i2c1_groups[] = { "gpio2", "gpio3" }; 52862306a36Sopenharmony_cistatic const char * const blsp_i2c2_groups[] = { "gpio6", "gpio7" }; 52962306a36Sopenharmony_cistatic const char * const blsp_i2c3_groups[] = { "gpio10", "gpio11" }; 53062306a36Sopenharmony_cistatic const char * const blsp_i2c4_groups[] = { "gpio14", "gpio15" }; 53162306a36Sopenharmony_cistatic const char * const blsp_i2c5_groups[] = { "gpio18", "gpio19" }; 53262306a36Sopenharmony_cistatic const char * const blsp_i2c6_groups[] = { "gpio22", "gpio23" }; 53362306a36Sopenharmony_cistatic const char * const blsp_spi1_groups[] = { 53462306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3" 53562306a36Sopenharmony_ci}; 53662306a36Sopenharmony_cistatic const char * const blsp_spi1_cs1_groups[] = { "gpio110" }; 53762306a36Sopenharmony_cistatic const char * const blsp_spi1_cs2_groups[] = { "gpio16" }; 53862306a36Sopenharmony_cistatic const char * const blsp_spi1_cs3_groups[] = { "gpio4" }; 53962306a36Sopenharmony_cistatic const char * const blsp_spi2_groups[] = { 54062306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7" 54162306a36Sopenharmony_ci}; 54262306a36Sopenharmony_cistatic const char * const blsp_spi2_cs1_groups[] = { "gpio121" }; 54362306a36Sopenharmony_cistatic const char * const blsp_spi2_cs2_groups[] = { "gpio17" }; 54462306a36Sopenharmony_cistatic const char * const blsp_spi2_cs3_groups[] = { "gpio5" }; 54562306a36Sopenharmony_cistatic const char * const blsp_spi3_groups[] = { 54662306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11" 54762306a36Sopenharmony_ci}; 54862306a36Sopenharmony_cistatic const char * const blsp_spi3_cs1_groups[] = { "gpio120" }; 54962306a36Sopenharmony_cistatic const char * const blsp_spi3_cs2_groups[] = { "gpio37" }; 55062306a36Sopenharmony_cistatic const char * const blsp_spi3_cs3_groups[] = { "gpio69" }; 55162306a36Sopenharmony_cistatic const char * const blsp_spi4_groups[] = { 55262306a36Sopenharmony_ci "gpio12", "gpio13", "gpio14", "gpio15" 55362306a36Sopenharmony_ci}; 55462306a36Sopenharmony_cistatic const char * const blsp_spi5_groups[] = { 55562306a36Sopenharmony_ci "gpio16", "gpio17", "gpio18", "gpio19" 55662306a36Sopenharmony_ci}; 55762306a36Sopenharmony_cistatic const char * const blsp_spi6_groups[] = { 55862306a36Sopenharmony_ci "gpio20", "gpio21", "gpio22", "gpio23" 55962306a36Sopenharmony_ci}; 56062306a36Sopenharmony_cistatic const char * const blsp_uart1_groups[] = { 56162306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3" 56262306a36Sopenharmony_ci}; 56362306a36Sopenharmony_cistatic const char * const blsp_uart2_groups[] = { 56462306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7" 56562306a36Sopenharmony_ci}; 56662306a36Sopenharmony_cistatic const char * const blsp_uim1_groups[] = { "gpio0", "gpio1" }; 56762306a36Sopenharmony_cistatic const char * const blsp_uim2_groups[] = { "gpio4", "gpio5" }; 56862306a36Sopenharmony_cistatic const char * const cam1_rst_groups[] = { "gpio35" }; 56962306a36Sopenharmony_cistatic const char * const cam1_standby_groups[] = { "gpio34" }; 57062306a36Sopenharmony_cistatic const char * const cam_mclk0_groups[] = { "gpio26" }; 57162306a36Sopenharmony_cistatic const char * const cam_mclk1_groups[] = { "gpio27" }; 57262306a36Sopenharmony_cistatic const char * const cci_async_groups[] = { "gpio33" }; 57362306a36Sopenharmony_cistatic const char * const cci_i2c_groups[] = { "gpio29", "gpio30" }; 57462306a36Sopenharmony_cistatic const char * const cci_timer0_groups[] = { "gpio31" }; 57562306a36Sopenharmony_cistatic const char * const cci_timer1_groups[] = { "gpio32" }; 57662306a36Sopenharmony_cistatic const char * const cci_timer2_groups[] = { "gpio38" }; 57762306a36Sopenharmony_cistatic const char * const cdc_pdm0_groups[] = { 57862306a36Sopenharmony_ci "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68" 57962306a36Sopenharmony_ci}; 58062306a36Sopenharmony_cistatic const char * const codec_mad_groups[] = { "gpio16" }; 58162306a36Sopenharmony_cistatic const char * const dbg_out_groups[] = { "gpio47" }; 58262306a36Sopenharmony_cistatic const char * const display_5v_groups[] = { "gpio97" }; 58362306a36Sopenharmony_cistatic const char * const dmic0_clk_groups[] = { "gpio0" }; 58462306a36Sopenharmony_cistatic const char * const dmic0_data_groups[] = { "gpio1" }; 58562306a36Sopenharmony_cistatic const char * const dsi_rst_groups[] = { "gpio25" }; 58662306a36Sopenharmony_cistatic const char * const ebi0_wrcdc_groups[] = { "gpio67" }; 58762306a36Sopenharmony_cistatic const char * const euro_us_groups[] = { "gpio120" }; 58862306a36Sopenharmony_cistatic const char * const ext_lpass_groups[] = { "gpio45" }; 58962306a36Sopenharmony_cistatic const char * const flash_strobe_groups[] = { "gpio31", "gpio32" }; 59062306a36Sopenharmony_cistatic const char * const gcc_gp1_clk_a_groups[] = { "gpio49" }; 59162306a36Sopenharmony_cistatic const char * const gcc_gp1_clk_b_groups[] = { "gpio97" }; 59262306a36Sopenharmony_cistatic const char * const gcc_gp2_clk_a_groups[] = { "gpio50" }; 59362306a36Sopenharmony_cistatic const char * const gcc_gp2_clk_b_groups[] = { "gpio12" }; 59462306a36Sopenharmony_cistatic const char * const gcc_gp3_clk_a_groups[] = { "gpio51" }; 59562306a36Sopenharmony_cistatic const char * const gcc_gp3_clk_b_groups[] = { "gpio13" }; 59662306a36Sopenharmony_cistatic const char * const gsm0_tx0_groups[] = { "gpio99" }; 59762306a36Sopenharmony_cistatic const char * const gsm0_tx1_groups[] = { "gpio100" }; 59862306a36Sopenharmony_cistatic const char * const gsm1_tx0_groups[] = { "gpio101" }; 59962306a36Sopenharmony_cistatic const char * const gsm1_tx1_groups[] = { "gpio102" }; 60062306a36Sopenharmony_cistatic const char * const gyro_accl_groups[] = {"gpio115" }; 60162306a36Sopenharmony_cistatic const char * const kpsns0_groups[] = { "gpio107" }; 60262306a36Sopenharmony_cistatic const char * const kpsns1_groups[] = { "gpio108" }; 60362306a36Sopenharmony_cistatic const char * const kpsns2_groups[] = { "gpio109" }; 60462306a36Sopenharmony_cistatic const char * const ldo_en_groups[] = { "gpio121" }; 60562306a36Sopenharmony_cistatic const char * const ldo_update_groups[] = { "gpio120" }; 60662306a36Sopenharmony_cistatic const char * const mag_int_groups[] = { "gpio69" }; 60762306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = { "gpio24", "gpio25" }; 60862306a36Sopenharmony_cistatic const char * const modem_tsync_groups[] = { "gpio95" }; 60962306a36Sopenharmony_cistatic const char * const m_voc_groups[] = { "gpio8", "gpio119" }; 61062306a36Sopenharmony_cistatic const char * const nav_pps_groups[] = { "gpio95" }; 61162306a36Sopenharmony_cistatic const char * const nav_tsync_groups[] = { "gpio95" }; 61262306a36Sopenharmony_cistatic const char * const pa_indicator_groups[] = { "gpio86" }; 61362306a36Sopenharmony_cistatic const char * const pbs0_groups[] = { "gpio107" }; 61462306a36Sopenharmony_cistatic const char * const pbs1_groups[] = { "gpio108" }; 61562306a36Sopenharmony_cistatic const char * const pbs2_groups[] = { "gpio109" }; 61662306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = { 61762306a36Sopenharmony_ci "gpio113", "gpio114", "gpio115", "gpio116" 61862306a36Sopenharmony_ci}; 61962306a36Sopenharmony_cistatic const char * const pri_mi2s_ws_groups[] = { "gpio110" }; 62062306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = { "gpio43" }; 62162306a36Sopenharmony_cistatic const char * const pwr_crypto_enabled_a_groups[] = { "gpio35" }; 62262306a36Sopenharmony_cistatic const char * const pwr_crypto_enabled_b_groups[] = { "gpio115" }; 62362306a36Sopenharmony_cistatic const char * const pwr_modem_enabled_a_groups[] = { "gpio28" }; 62462306a36Sopenharmony_cistatic const char * const pwr_modem_enabled_b_groups[] = { "gpio113" }; 62562306a36Sopenharmony_cistatic const char * const pwr_nav_enabled_a_groups[] = { "gpio34" }; 62662306a36Sopenharmony_cistatic const char * const pwr_nav_enabled_b_groups[] = { "gpio114" }; 62762306a36Sopenharmony_cistatic const char * const qdss_ctitrig_in_a0_groups[] = { "gpio20" }; 62862306a36Sopenharmony_cistatic const char * const qdss_ctitrig_in_a1_groups[] = { "gpio49" }; 62962306a36Sopenharmony_cistatic const char * const qdss_ctitrig_in_b0_groups[] = { "gpio21" }; 63062306a36Sopenharmony_cistatic const char * const qdss_ctitrig_in_b1_groups[] = { "gpio50" }; 63162306a36Sopenharmony_cistatic const char * const qdss_ctitrig_out_a0_groups[] = { "gpio23" }; 63262306a36Sopenharmony_cistatic const char * const qdss_ctitrig_out_a1_groups[] = { "gpio52" }; 63362306a36Sopenharmony_cistatic const char * const qdss_ctitrig_out_b0_groups[] = { "gpio22" }; 63462306a36Sopenharmony_cistatic const char * const qdss_ctitrig_out_b1_groups[] = { "gpio51" }; 63562306a36Sopenharmony_cistatic const char * const qdss_traceclk_a_groups[] = { "gpio46" }; 63662306a36Sopenharmony_cistatic const char * const qdss_traceclk_b_groups[] = { "gpio5" }; 63762306a36Sopenharmony_cistatic const char * const qdss_tracectl_a_groups[] = { "gpio45" }; 63862306a36Sopenharmony_cistatic const char * const qdss_tracectl_b_groups[] = { "gpio4" }; 63962306a36Sopenharmony_cistatic const char * const qdss_tracedata_a_groups[] = { 64062306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio39", "gpio40", "gpio41", "gpio42", 64162306a36Sopenharmony_ci "gpio43", "gpio47", "gpio48", "gpio62", "gpio69", "gpio112", "gpio113", 64262306a36Sopenharmony_ci "gpio114", "gpio115" 64362306a36Sopenharmony_ci}; 64462306a36Sopenharmony_cistatic const char * const qdss_tracedata_b_groups[] = { 64562306a36Sopenharmony_ci "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32", 64662306a36Sopenharmony_ci "gpio33", "gpio34", "gpio35", "gpio36", "gpio37", "gpio110", "gpio111", 64762306a36Sopenharmony_ci "gpio120", "gpio121" 64862306a36Sopenharmony_ci}; 64962306a36Sopenharmony_cistatic const char * const reset_n_groups[] = { "gpio36" }; 65062306a36Sopenharmony_cistatic const char * const sd_card_groups[] = { "gpio38" }; 65162306a36Sopenharmony_cistatic const char * const sd_write_groups[] = { "gpio121" }; 65262306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = { 65362306a36Sopenharmony_ci "gpio112", "gpio117", "gpio118", "gpio119" 65462306a36Sopenharmony_ci}; 65562306a36Sopenharmony_cistatic const char * const smb_int_groups[] = { "gpio62" }; 65662306a36Sopenharmony_cistatic const char * const ssbi_wtr0_groups[] = { "gpio103", "gpio104" }; 65762306a36Sopenharmony_cistatic const char * const ssbi_wtr1_groups[] = { "gpio105", "gpio106" }; 65862306a36Sopenharmony_cistatic const char * const uim1_groups[] = { 65962306a36Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60" 66062306a36Sopenharmony_ci}; 66162306a36Sopenharmony_ci 66262306a36Sopenharmony_cistatic const char * const uim2_groups[] = { 66362306a36Sopenharmony_ci "gpio53", "gpio54", "gpio55", "gpio56" 66462306a36Sopenharmony_ci}; 66562306a36Sopenharmony_cistatic const char * const uim3_groups[] = { 66662306a36Sopenharmony_ci "gpio49", "gpio50", "gpio51", "gpio52" 66762306a36Sopenharmony_ci}; 66862306a36Sopenharmony_cistatic const char * const uim_batt_groups[] = { "gpio61" }; 66962306a36Sopenharmony_cistatic const char * const wcss_bt_groups[] = { "gpio39", "gpio47", "gpio48" }; 67062306a36Sopenharmony_cistatic const char * const wcss_fm_groups[] = { "gpio45", "gpio46" }; 67162306a36Sopenharmony_cistatic const char * const wcss_wlan_groups[] = { 67262306a36Sopenharmony_ci "gpio40", "gpio41", "gpio42", "gpio43", "gpio44" 67362306a36Sopenharmony_ci}; 67462306a36Sopenharmony_cistatic const char * const webcam1_rst_groups[] = { "gpio28" }; 67562306a36Sopenharmony_ci 67662306a36Sopenharmony_cistatic const struct pinfunction msm8916_functions[] = { 67762306a36Sopenharmony_ci MSM_PIN_FUNCTION(adsp_ext), 67862306a36Sopenharmony_ci MSM_PIN_FUNCTION(alsp_int), 67962306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_bbrx0), 68062306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_bbrx1), 68162306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char), 68262306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char0), 68362306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char1), 68462306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char2), 68562306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char3), 68662306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_combodac), 68762306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_gpsadc0), 68862306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_gpsadc1), 68962306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_tsens), 69062306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_wlan0), 69162306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_wlan1), 69262306a36Sopenharmony_ci MSM_PIN_FUNCTION(backlight_en), 69362306a36Sopenharmony_ci MSM_PIN_FUNCTION(bimc_dte0), 69462306a36Sopenharmony_ci MSM_PIN_FUNCTION(bimc_dte1), 69562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c1), 69662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c2), 69762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c3), 69862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c4), 69962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c5), 70062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c6), 70162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1), 70262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1_cs1), 70362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1_cs2), 70462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1_cs3), 70562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2), 70662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2_cs1), 70762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2_cs2), 70862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2_cs3), 70962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi3), 71062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi3_cs1), 71162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi3_cs2), 71262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi3_cs3), 71362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi4), 71462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi5), 71562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi6), 71662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart1), 71762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart2), 71862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim1), 71962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uim2), 72062306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam1_rst), 72162306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam1_standby), 72262306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk0), 72362306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk1), 72462306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_async), 72562306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_i2c), 72662306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer0), 72762306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer1), 72862306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer2), 72962306a36Sopenharmony_ci MSM_PIN_FUNCTION(cdc_pdm0), 73062306a36Sopenharmony_ci MSM_PIN_FUNCTION(codec_mad), 73162306a36Sopenharmony_ci MSM_PIN_FUNCTION(dbg_out), 73262306a36Sopenharmony_ci MSM_PIN_FUNCTION(display_5v), 73362306a36Sopenharmony_ci MSM_PIN_FUNCTION(dmic0_clk), 73462306a36Sopenharmony_ci MSM_PIN_FUNCTION(dmic0_data), 73562306a36Sopenharmony_ci MSM_PIN_FUNCTION(dsi_rst), 73662306a36Sopenharmony_ci MSM_PIN_FUNCTION(ebi0_wrcdc), 73762306a36Sopenharmony_ci MSM_PIN_FUNCTION(euro_us), 73862306a36Sopenharmony_ci MSM_PIN_FUNCTION(ext_lpass), 73962306a36Sopenharmony_ci MSM_PIN_FUNCTION(flash_strobe), 74062306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp1_clk_a), 74162306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp1_clk_b), 74262306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp2_clk_a), 74362306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp2_clk_b), 74462306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp3_clk_a), 74562306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp3_clk_b), 74662306a36Sopenharmony_ci MSM_PIN_FUNCTION(gpio), 74762306a36Sopenharmony_ci MSM_PIN_FUNCTION(gsm0_tx0), 74862306a36Sopenharmony_ci MSM_PIN_FUNCTION(gsm0_tx1), 74962306a36Sopenharmony_ci MSM_PIN_FUNCTION(gsm1_tx0), 75062306a36Sopenharmony_ci MSM_PIN_FUNCTION(gsm1_tx1), 75162306a36Sopenharmony_ci MSM_PIN_FUNCTION(gyro_accl), 75262306a36Sopenharmony_ci MSM_PIN_FUNCTION(kpsns0), 75362306a36Sopenharmony_ci MSM_PIN_FUNCTION(kpsns1), 75462306a36Sopenharmony_ci MSM_PIN_FUNCTION(kpsns2), 75562306a36Sopenharmony_ci MSM_PIN_FUNCTION(ldo_en), 75662306a36Sopenharmony_ci MSM_PIN_FUNCTION(ldo_update), 75762306a36Sopenharmony_ci MSM_PIN_FUNCTION(mag_int), 75862306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync), 75962306a36Sopenharmony_ci MSM_PIN_FUNCTION(modem_tsync), 76062306a36Sopenharmony_ci MSM_PIN_FUNCTION(m_voc), 76162306a36Sopenharmony_ci MSM_PIN_FUNCTION(nav_pps), 76262306a36Sopenharmony_ci MSM_PIN_FUNCTION(nav_tsync), 76362306a36Sopenharmony_ci MSM_PIN_FUNCTION(pa_indicator), 76462306a36Sopenharmony_ci MSM_PIN_FUNCTION(pbs0), 76562306a36Sopenharmony_ci MSM_PIN_FUNCTION(pbs1), 76662306a36Sopenharmony_ci MSM_PIN_FUNCTION(pbs2), 76762306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s), 76862306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s_ws), 76962306a36Sopenharmony_ci MSM_PIN_FUNCTION(prng_rosc), 77062306a36Sopenharmony_ci MSM_PIN_FUNCTION(pwr_crypto_enabled_a), 77162306a36Sopenharmony_ci MSM_PIN_FUNCTION(pwr_crypto_enabled_b), 77262306a36Sopenharmony_ci MSM_PIN_FUNCTION(pwr_modem_enabled_a), 77362306a36Sopenharmony_ci MSM_PIN_FUNCTION(pwr_modem_enabled_b), 77462306a36Sopenharmony_ci MSM_PIN_FUNCTION(pwr_nav_enabled_a), 77562306a36Sopenharmony_ci MSM_PIN_FUNCTION(pwr_nav_enabled_b), 77662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_in_a0), 77762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_in_a1), 77862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_in_b0), 77962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_in_b1), 78062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_out_a0), 78162306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_out_a1), 78262306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_out_b0), 78362306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_ctitrig_out_b1), 78462306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_traceclk_a), 78562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_traceclk_b), 78662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_tracectl_a), 78762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_tracectl_b), 78862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_tracedata_a), 78962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_tracedata_b), 79062306a36Sopenharmony_ci MSM_PIN_FUNCTION(reset_n), 79162306a36Sopenharmony_ci MSM_PIN_FUNCTION(sd_card), 79262306a36Sopenharmony_ci MSM_PIN_FUNCTION(sd_write), 79362306a36Sopenharmony_ci MSM_PIN_FUNCTION(sec_mi2s), 79462306a36Sopenharmony_ci MSM_PIN_FUNCTION(smb_int), 79562306a36Sopenharmony_ci MSM_PIN_FUNCTION(ssbi_wtr0), 79662306a36Sopenharmony_ci MSM_PIN_FUNCTION(ssbi_wtr1), 79762306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1), 79862306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2), 79962306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim3), 80062306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim_batt), 80162306a36Sopenharmony_ci MSM_PIN_FUNCTION(wcss_bt), 80262306a36Sopenharmony_ci MSM_PIN_FUNCTION(wcss_fm), 80362306a36Sopenharmony_ci MSM_PIN_FUNCTION(wcss_wlan), 80462306a36Sopenharmony_ci MSM_PIN_FUNCTION(webcam1_rst) 80562306a36Sopenharmony_ci}; 80662306a36Sopenharmony_ci 80762306a36Sopenharmony_cistatic const struct msm_pingroup msm8916_groups[] = { 80862306a36Sopenharmony_ci PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, dmic0_clk, NA, NA, NA, NA, NA), 80962306a36Sopenharmony_ci PINGROUP(1, blsp_spi1, blsp_uart1, blsp_uim1, dmic0_data, NA, NA, NA, NA, NA), 81062306a36Sopenharmony_ci PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA), 81162306a36Sopenharmony_ci PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA), 81262306a36Sopenharmony_ci PINGROUP(4, blsp_spi2, blsp_uart2, blsp_uim2, blsp_spi1_cs3, qdss_tracectl_b, NA, atest_combodac, NA, NA), 81362306a36Sopenharmony_ci PINGROUP(5, blsp_spi2, blsp_uart2, blsp_uim2, blsp_spi2_cs3, qdss_traceclk_b, NA, NA, NA, NA), 81462306a36Sopenharmony_ci PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA), 81562306a36Sopenharmony_ci PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, NA, NA, NA, NA, NA, NA), 81662306a36Sopenharmony_ci PINGROUP(8, blsp_spi3, m_voc, qdss_tracedata_a, NA, NA, NA, NA, NA, NA), 81762306a36Sopenharmony_ci PINGROUP(9, blsp_spi3, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA), 81862306a36Sopenharmony_ci PINGROUP(10, blsp_spi3, blsp_i2c3, qdss_tracedata_a, NA, NA, NA, NA, NA, NA), 81962306a36Sopenharmony_ci PINGROUP(11, blsp_spi3, blsp_i2c3, NA, NA, NA, NA, NA, NA, NA), 82062306a36Sopenharmony_ci PINGROUP(12, blsp_spi4, gcc_gp2_clk_b, NA, atest_combodac, NA, NA, NA, NA, NA), 82162306a36Sopenharmony_ci PINGROUP(13, blsp_spi4, gcc_gp3_clk_b, NA, atest_combodac, NA, NA, NA, NA, NA), 82262306a36Sopenharmony_ci PINGROUP(14, blsp_spi4, blsp_i2c4, NA, NA, NA, NA, NA, NA, NA), 82362306a36Sopenharmony_ci PINGROUP(15, blsp_spi4, blsp_i2c4, NA, NA, NA, NA, NA, NA, NA), 82462306a36Sopenharmony_ci PINGROUP(16, blsp_spi5, blsp_spi1_cs2, NA, atest_bbrx1, NA, NA, NA, NA, NA), 82562306a36Sopenharmony_ci PINGROUP(17, blsp_spi5, blsp_spi2_cs2, NA, atest_bbrx0, NA, NA, NA, NA, NA), 82662306a36Sopenharmony_ci PINGROUP(18, blsp_spi5, blsp_i2c5, NA, atest_gpsadc1, NA, NA, NA, NA, NA), 82762306a36Sopenharmony_ci PINGROUP(19, blsp_spi5, blsp_i2c5, NA, NA, NA, NA, NA, NA, NA), 82862306a36Sopenharmony_ci PINGROUP(20, blsp_spi6, NA, NA, NA, NA, NA, NA, qdss_ctitrig_in_a0, NA), 82962306a36Sopenharmony_ci PINGROUP(21, blsp_spi6, NA, NA, NA, NA, NA, NA, qdss_ctitrig_in_b0, NA), 83062306a36Sopenharmony_ci PINGROUP(22, blsp_spi6, blsp_i2c6, NA, NA, NA, NA, NA, NA, NA), 83162306a36Sopenharmony_ci PINGROUP(23, blsp_spi6, blsp_i2c6, NA, NA, NA, NA, NA, NA, NA), 83262306a36Sopenharmony_ci PINGROUP(24, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA), 83362306a36Sopenharmony_ci PINGROUP(25, mdp_vsync, NA, NA, NA, NA, NA, NA, NA, NA), 83462306a36Sopenharmony_ci PINGROUP(26, cam_mclk0, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA), 83562306a36Sopenharmony_ci PINGROUP(27, cam_mclk1, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 83662306a36Sopenharmony_ci PINGROUP(28, pwr_modem_enabled_a, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, atest_combodac), 83762306a36Sopenharmony_ci PINGROUP(29, cci_i2c, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, atest_combodac), 83862306a36Sopenharmony_ci PINGROUP(30, cci_i2c, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 83962306a36Sopenharmony_ci PINGROUP(31, cci_timer0, flash_strobe, NA, NA, NA, NA, NA, NA, NA), 84062306a36Sopenharmony_ci PINGROUP(32, cci_timer1, flash_strobe, NA, NA, NA, NA, NA, NA, NA), 84162306a36Sopenharmony_ci PINGROUP(33, cci_async, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 84262306a36Sopenharmony_ci PINGROUP(34, pwr_nav_enabled_a, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 84362306a36Sopenharmony_ci PINGROUP(35, pwr_crypto_enabled_a, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b), 84462306a36Sopenharmony_ci PINGROUP(36, NA, NA, NA, NA, NA, NA, NA, qdss_tracedata_b, NA), 84562306a36Sopenharmony_ci PINGROUP(37, blsp_spi3_cs2, NA, NA, NA, NA, NA, qdss_tracedata_b, NA, NA), 84662306a36Sopenharmony_ci PINGROUP(38, cci_timer2, adsp_ext, NA, NA, NA, NA, NA, NA, NA), 84762306a36Sopenharmony_ci PINGROUP(39, wcss_bt, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA, NA), 84862306a36Sopenharmony_ci PINGROUP(40, wcss_wlan, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA, NA), 84962306a36Sopenharmony_ci PINGROUP(41, wcss_wlan, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA, NA), 85062306a36Sopenharmony_ci PINGROUP(42, wcss_wlan, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA, NA), 85162306a36Sopenharmony_ci PINGROUP(43, wcss_wlan, prng_rosc, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA), 85262306a36Sopenharmony_ci PINGROUP(44, wcss_wlan, NA, atest_combodac, NA, NA, NA, NA, NA, NA), 85362306a36Sopenharmony_ci PINGROUP(45, wcss_fm, ext_lpass, qdss_tracectl_a, NA, atest_combodac, NA, NA, NA, NA), 85462306a36Sopenharmony_ci PINGROUP(46, wcss_fm, qdss_traceclk_a, NA, atest_combodac, NA, NA, NA, NA, NA), 85562306a36Sopenharmony_ci PINGROUP(47, wcss_bt, dbg_out, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA), 85662306a36Sopenharmony_ci PINGROUP(48, wcss_bt, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA, NA), 85762306a36Sopenharmony_ci PINGROUP(49, uim3, gcc_gp1_clk_a, qdss_ctitrig_in_a1, NA, NA, NA, NA, NA, NA), 85862306a36Sopenharmony_ci PINGROUP(50, uim3, gcc_gp2_clk_a, qdss_ctitrig_in_b1, NA, NA, NA, NA, NA, NA), 85962306a36Sopenharmony_ci PINGROUP(51, uim3, gcc_gp3_clk_a, qdss_ctitrig_out_b1, NA, NA, NA, NA, NA, NA), 86062306a36Sopenharmony_ci PINGROUP(52, uim3, NA, qdss_ctitrig_out_a1, NA, NA, NA, NA, NA, NA), 86162306a36Sopenharmony_ci PINGROUP(53, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 86262306a36Sopenharmony_ci PINGROUP(54, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 86362306a36Sopenharmony_ci PINGROUP(55, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 86462306a36Sopenharmony_ci PINGROUP(56, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 86562306a36Sopenharmony_ci PINGROUP(57, uim1, atest_char3, NA, NA, NA, NA, NA, NA, NA), 86662306a36Sopenharmony_ci PINGROUP(58, uim1, atest_char2, NA, NA, NA, NA, NA, NA, NA), 86762306a36Sopenharmony_ci PINGROUP(59, uim1, atest_char1, NA, NA, NA, NA, NA, NA, NA), 86862306a36Sopenharmony_ci PINGROUP(60, uim1, atest_char0, NA, NA, NA, NA, NA, NA, NA), 86962306a36Sopenharmony_ci PINGROUP(61, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA), 87062306a36Sopenharmony_ci PINGROUP(62, atest_char, qdss_tracedata_a, NA, NA, NA, NA, NA, NA, NA), 87162306a36Sopenharmony_ci PINGROUP(63, cdc_pdm0, bimc_dte0, NA, NA, NA, NA, NA, NA, NA), 87262306a36Sopenharmony_ci PINGROUP(64, cdc_pdm0, bimc_dte1, NA, NA, NA, NA, NA, NA, NA), 87362306a36Sopenharmony_ci PINGROUP(65, cdc_pdm0, bimc_dte0, NA, NA, NA, NA, NA, NA, NA), 87462306a36Sopenharmony_ci PINGROUP(66, cdc_pdm0, bimc_dte1, NA, NA, NA, NA, NA, NA, NA), 87562306a36Sopenharmony_ci PINGROUP(67, cdc_pdm0, ebi0_wrcdc, NA, NA, NA, NA, NA, NA, NA), 87662306a36Sopenharmony_ci PINGROUP(68, cdc_pdm0, NA, NA, NA, NA, NA, NA, NA, NA), 87762306a36Sopenharmony_ci PINGROUP(69, blsp_spi3_cs3, qdss_tracedata_a, NA, atest_combodac, NA, NA, NA, NA, NA), 87862306a36Sopenharmony_ci PINGROUP(70, NA, NA, NA, NA, NA, NA, NA, NA, NA), 87962306a36Sopenharmony_ci PINGROUP(71, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88062306a36Sopenharmony_ci PINGROUP(72, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88162306a36Sopenharmony_ci PINGROUP(73, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88262306a36Sopenharmony_ci PINGROUP(74, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88362306a36Sopenharmony_ci PINGROUP(75, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88462306a36Sopenharmony_ci PINGROUP(76, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88562306a36Sopenharmony_ci PINGROUP(77, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88662306a36Sopenharmony_ci PINGROUP(78, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88762306a36Sopenharmony_ci PINGROUP(79, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88862306a36Sopenharmony_ci PINGROUP(80, NA, NA, NA, NA, NA, NA, NA, NA, NA), 88962306a36Sopenharmony_ci PINGROUP(81, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89062306a36Sopenharmony_ci PINGROUP(82, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89162306a36Sopenharmony_ci PINGROUP(83, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89262306a36Sopenharmony_ci PINGROUP(84, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89362306a36Sopenharmony_ci PINGROUP(85, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89462306a36Sopenharmony_ci PINGROUP(86, NA, pa_indicator, NA, NA, NA, NA, NA, NA, NA), 89562306a36Sopenharmony_ci PINGROUP(87, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89662306a36Sopenharmony_ci PINGROUP(88, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89762306a36Sopenharmony_ci PINGROUP(89, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89862306a36Sopenharmony_ci PINGROUP(90, NA, NA, NA, NA, NA, NA, NA, NA, NA), 89962306a36Sopenharmony_ci PINGROUP(91, NA, NA, NA, NA, NA, NA, NA, NA, NA), 90062306a36Sopenharmony_ci PINGROUP(92, NA, NA, NA, NA, NA, NA, NA, NA, NA), 90162306a36Sopenharmony_ci PINGROUP(93, NA, NA, NA, NA, NA, NA, NA, NA, NA), 90262306a36Sopenharmony_ci PINGROUP(94, NA, NA, NA, NA, NA, NA, NA, NA, NA), 90362306a36Sopenharmony_ci PINGROUP(95, NA, modem_tsync, nav_tsync, nav_pps, NA, NA, NA, NA, NA), 90462306a36Sopenharmony_ci PINGROUP(96, NA, NA, NA, NA, NA, NA, NA, NA, NA), 90562306a36Sopenharmony_ci PINGROUP(97, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA, NA), 90662306a36Sopenharmony_ci PINGROUP(98, NA, NA, NA, NA, NA, NA, NA, NA, NA), 90762306a36Sopenharmony_ci PINGROUP(99, gsm0_tx0, NA, NA, NA, NA, NA, NA, NA, NA), 90862306a36Sopenharmony_ci PINGROUP(100, gsm0_tx1, NA, NA, NA, NA, NA, NA, NA, NA), 90962306a36Sopenharmony_ci PINGROUP(101, gsm1_tx0, NA, NA, NA, NA, NA, NA, NA, NA), 91062306a36Sopenharmony_ci PINGROUP(102, gsm1_tx1, NA, NA, NA, NA, NA, NA, NA, NA), 91162306a36Sopenharmony_ci PINGROUP(103, ssbi_wtr0, NA, NA, NA, NA, NA, NA, NA, NA), 91262306a36Sopenharmony_ci PINGROUP(104, ssbi_wtr0, NA, NA, NA, NA, NA, NA, NA, NA), 91362306a36Sopenharmony_ci PINGROUP(105, ssbi_wtr1, NA, NA, NA, NA, NA, NA, NA, NA), 91462306a36Sopenharmony_ci PINGROUP(106, ssbi_wtr1, NA, NA, NA, NA, NA, NA, NA, NA), 91562306a36Sopenharmony_ci PINGROUP(107, pbs0, NA, atest_combodac, NA, NA, NA, NA, NA, NA), 91662306a36Sopenharmony_ci PINGROUP(108, pbs1, NA, NA, NA, NA, NA, NA, NA, NA), 91762306a36Sopenharmony_ci PINGROUP(109, pbs2, NA, NA, NA, NA, NA, NA, NA, NA), 91862306a36Sopenharmony_ci PINGROUP(110, blsp_spi1_cs1, pri_mi2s_ws, NA, qdss_tracedata_b, NA, NA, NA, NA, NA), 91962306a36Sopenharmony_ci PINGROUP(111, qdss_tracedata_b, NA, NA, NA, NA, NA, NA, NA, NA), 92062306a36Sopenharmony_ci PINGROUP(112, sec_mi2s, NA, NA, NA, qdss_tracedata_a, NA, atest_tsens, NA, NA), 92162306a36Sopenharmony_ci PINGROUP(113, pri_mi2s, NA, pwr_modem_enabled_b, NA, NA, NA, NA, NA, qdss_tracedata_a), 92262306a36Sopenharmony_ci PINGROUP(114, pri_mi2s, pwr_nav_enabled_b, NA, NA, NA, NA, NA, qdss_tracedata_a, NA), 92362306a36Sopenharmony_ci PINGROUP(115, pri_mi2s, pwr_crypto_enabled_b, NA, NA, NA, NA, NA, qdss_tracedata_a, NA), 92462306a36Sopenharmony_ci PINGROUP(116, pri_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 92562306a36Sopenharmony_ci PINGROUP(117, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 92662306a36Sopenharmony_ci PINGROUP(118, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 92762306a36Sopenharmony_ci PINGROUP(119, sec_mi2s, m_voc, NA, NA, NA, NA, NA, NA, NA), 92862306a36Sopenharmony_ci PINGROUP(120, blsp_spi3_cs1, ldo_update, NA, NA, NA, NA, NA, NA, NA), 92962306a36Sopenharmony_ci PINGROUP(121, sd_write, blsp_spi2_cs1, ldo_en, NA, NA, NA, NA, NA, NA), 93062306a36Sopenharmony_ci SDC_PINGROUP(sdc1_clk, 0x10a000, 13, 6), 93162306a36Sopenharmony_ci SDC_PINGROUP(sdc1_cmd, 0x10a000, 11, 3), 93262306a36Sopenharmony_ci SDC_PINGROUP(sdc1_data, 0x10a000, 9, 0), 93362306a36Sopenharmony_ci SDC_PINGROUP(sdc2_clk, 0x109000, 14, 6), 93462306a36Sopenharmony_ci SDC_PINGROUP(sdc2_cmd, 0x109000, 11, 3), 93562306a36Sopenharmony_ci SDC_PINGROUP(sdc2_data, 0x109000, 9, 0), 93662306a36Sopenharmony_ci SDC_PINGROUP(qdsd_clk, 0x19c000, 3, 0), 93762306a36Sopenharmony_ci SDC_PINGROUP(qdsd_cmd, 0x19c000, 8, 5), 93862306a36Sopenharmony_ci SDC_PINGROUP(qdsd_data0, 0x19c000, 13, 10), 93962306a36Sopenharmony_ci SDC_PINGROUP(qdsd_data1, 0x19c000, 18, 15), 94062306a36Sopenharmony_ci SDC_PINGROUP(qdsd_data2, 0x19c000, 23, 20), 94162306a36Sopenharmony_ci SDC_PINGROUP(qdsd_data3, 0x19c000, 28, 25), 94262306a36Sopenharmony_ci}; 94362306a36Sopenharmony_ci 94462306a36Sopenharmony_ci#define NUM_GPIO_PINGROUPS 122 94562306a36Sopenharmony_ci 94662306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data msm8916_pinctrl = { 94762306a36Sopenharmony_ci .pins = msm8916_pins, 94862306a36Sopenharmony_ci .npins = ARRAY_SIZE(msm8916_pins), 94962306a36Sopenharmony_ci .functions = msm8916_functions, 95062306a36Sopenharmony_ci .nfunctions = ARRAY_SIZE(msm8916_functions), 95162306a36Sopenharmony_ci .groups = msm8916_groups, 95262306a36Sopenharmony_ci .ngroups = ARRAY_SIZE(msm8916_groups), 95362306a36Sopenharmony_ci .ngpios = NUM_GPIO_PINGROUPS, 95462306a36Sopenharmony_ci}; 95562306a36Sopenharmony_ci 95662306a36Sopenharmony_cistatic int msm8916_pinctrl_probe(struct platform_device *pdev) 95762306a36Sopenharmony_ci{ 95862306a36Sopenharmony_ci return msm_pinctrl_probe(pdev, &msm8916_pinctrl); 95962306a36Sopenharmony_ci} 96062306a36Sopenharmony_ci 96162306a36Sopenharmony_cistatic const struct of_device_id msm8916_pinctrl_of_match[] = { 96262306a36Sopenharmony_ci { .compatible = "qcom,msm8916-pinctrl", }, 96362306a36Sopenharmony_ci { }, 96462306a36Sopenharmony_ci}; 96562306a36Sopenharmony_ci 96662306a36Sopenharmony_cistatic struct platform_driver msm8916_pinctrl_driver = { 96762306a36Sopenharmony_ci .driver = { 96862306a36Sopenharmony_ci .name = "msm8916-pinctrl", 96962306a36Sopenharmony_ci .of_match_table = msm8916_pinctrl_of_match, 97062306a36Sopenharmony_ci }, 97162306a36Sopenharmony_ci .probe = msm8916_pinctrl_probe, 97262306a36Sopenharmony_ci .remove = msm_pinctrl_remove, 97362306a36Sopenharmony_ci}; 97462306a36Sopenharmony_ci 97562306a36Sopenharmony_cistatic int __init msm8916_pinctrl_init(void) 97662306a36Sopenharmony_ci{ 97762306a36Sopenharmony_ci return platform_driver_register(&msm8916_pinctrl_driver); 97862306a36Sopenharmony_ci} 97962306a36Sopenharmony_ciarch_initcall(msm8916_pinctrl_init); 98062306a36Sopenharmony_ci 98162306a36Sopenharmony_cistatic void __exit msm8916_pinctrl_exit(void) 98262306a36Sopenharmony_ci{ 98362306a36Sopenharmony_ci platform_driver_unregister(&msm8916_pinctrl_driver); 98462306a36Sopenharmony_ci} 98562306a36Sopenharmony_cimodule_exit(msm8916_pinctrl_exit); 98662306a36Sopenharmony_ci 98762306a36Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm msm8916 pinctrl driver"); 98862306a36Sopenharmony_ciMODULE_LICENSE("GPL v2"); 98962306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, msm8916_pinctrl_of_match); 990