19cf0c526SNeeraj Upadhyay // SPDX-License-Identifier: GPL-2.0
29cf0c526SNeeraj Upadhyay /*
39cf0c526SNeeraj Upadhyay * Copyright (c) 2016, The Linux Foundation. All rights reserved.
49cf0c526SNeeraj Upadhyay * Copyright (c) 2018, Craig Tatlor.
59cf0c526SNeeraj Upadhyay */
69cf0c526SNeeraj Upadhyay
79cf0c526SNeeraj Upadhyay #include <linux/module.h>
89cf0c526SNeeraj Upadhyay #include <linux/of.h>
99cf0c526SNeeraj Upadhyay #include <linux/platform_device.h>
109cf0c526SNeeraj Upadhyay
119cf0c526SNeeraj Upadhyay #include "pinctrl-msm.h"
129cf0c526SNeeraj Upadhyay
139cf0c526SNeeraj Upadhyay static const char * const sdm660_tiles[] = {
149cf0c526SNeeraj Upadhyay "north",
159cf0c526SNeeraj Upadhyay "center",
169cf0c526SNeeraj Upadhyay "south"
179cf0c526SNeeraj Upadhyay };
189cf0c526SNeeraj Upadhyay
199cf0c526SNeeraj Upadhyay enum {
209cf0c526SNeeraj Upadhyay NORTH,
219cf0c526SNeeraj Upadhyay CENTER,
229cf0c526SNeeraj Upadhyay SOUTH
239cf0c526SNeeraj Upadhyay };
249cf0c526SNeeraj Upadhyay
259cf0c526SNeeraj Upadhyay #define REG_SIZE 0x1000
269cf0c526SNeeraj Upadhyay
275db0b0a2SCraig Tatlor #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
289cf0c526SNeeraj Upadhyay { \
296a16d1a5SRohit Agarwal .grp = PINCTRL_PINGROUP("gpio" #id, \
306a16d1a5SRohit Agarwal gpio##id##_pins, \
316a16d1a5SRohit Agarwal ARRAY_SIZE(gpio##id##_pins)), \
329cf0c526SNeeraj Upadhyay .funcs = (int[]){ \
339cf0c526SNeeraj Upadhyay msm_mux_gpio, /* gpio mode */ \
349cf0c526SNeeraj Upadhyay msm_mux_##f1, \
359cf0c526SNeeraj Upadhyay msm_mux_##f2, \
369cf0c526SNeeraj Upadhyay msm_mux_##f3, \
379cf0c526SNeeraj Upadhyay msm_mux_##f4, \
389cf0c526SNeeraj Upadhyay msm_mux_##f5, \
399cf0c526SNeeraj Upadhyay msm_mux_##f6, \
409cf0c526SNeeraj Upadhyay msm_mux_##f7, \
419cf0c526SNeeraj Upadhyay msm_mux_##f8, \
429cf0c526SNeeraj Upadhyay msm_mux_##f9 \
439cf0c526SNeeraj Upadhyay }, \
449cf0c526SNeeraj Upadhyay .nfuncs = 10, \
455db0b0a2SCraig Tatlor .ctl_reg = REG_SIZE * id, \
465db0b0a2SCraig Tatlor .io_reg = 0x4 + REG_SIZE * id, \
475db0b0a2SCraig Tatlor .intr_cfg_reg = 0x8 + REG_SIZE * id, \
485db0b0a2SCraig Tatlor .intr_status_reg = 0xc + REG_SIZE * id, \
495db0b0a2SCraig Tatlor .intr_target_reg = 0x8 + REG_SIZE * id, \
505db0b0a2SCraig Tatlor .tile = _tile, \
519cf0c526SNeeraj Upadhyay .mux_bit = 2, \
529cf0c526SNeeraj Upadhyay .pull_bit = 0, \
539cf0c526SNeeraj Upadhyay .drv_bit = 6, \
549cf0c526SNeeraj Upadhyay .oe_bit = 9, \
559cf0c526SNeeraj Upadhyay .in_bit = 0, \
569cf0c526SNeeraj Upadhyay .out_bit = 1, \
579cf0c526SNeeraj Upadhyay .intr_enable_bit = 0, \
589cf0c526SNeeraj Upadhyay .intr_status_bit = 0, \
599cf0c526SNeeraj Upadhyay .intr_target_bit = 5, \
609cf0c526SNeeraj Upadhyay .intr_target_kpss_val = 3, \
619cf0c526SNeeraj Upadhyay .intr_raw_status_bit = 4, \
629cf0c526SNeeraj Upadhyay .intr_polarity_bit = 1, \
639cf0c526SNeeraj Upadhyay .intr_detection_bit = 2, \
649cf0c526SNeeraj Upadhyay .intr_detection_width = 2, \
659cf0c526SNeeraj Upadhyay }
669cf0c526SNeeraj Upadhyay
679cf0c526SNeeraj Upadhyay #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
689cf0c526SNeeraj Upadhyay { \
696a16d1a5SRohit Agarwal .grp = PINCTRL_PINGROUP(#pg_name, \
706a16d1a5SRohit Agarwal pg_name##_pins, \
716a16d1a5SRohit Agarwal ARRAY_SIZE(pg_name##_pins)), \
729cf0c526SNeeraj Upadhyay .ctl_reg = ctl, \
739cf0c526SNeeraj Upadhyay .io_reg = 0, \
749cf0c526SNeeraj Upadhyay .intr_cfg_reg = 0, \
759cf0c526SNeeraj Upadhyay .intr_status_reg = 0, \
769cf0c526SNeeraj Upadhyay .intr_target_reg = 0, \
775db0b0a2SCraig Tatlor .tile = NORTH, \
789cf0c526SNeeraj Upadhyay .mux_bit = -1, \
799cf0c526SNeeraj Upadhyay .pull_bit = pull, \
809cf0c526SNeeraj Upadhyay .drv_bit = drv, \
819cf0c526SNeeraj Upadhyay .oe_bit = -1, \
829cf0c526SNeeraj Upadhyay .in_bit = -1, \
839cf0c526SNeeraj Upadhyay .out_bit = -1, \
849cf0c526SNeeraj Upadhyay .intr_enable_bit = -1, \
859cf0c526SNeeraj Upadhyay .intr_status_bit = -1, \
869cf0c526SNeeraj Upadhyay .intr_target_bit = -1, \
879cf0c526SNeeraj Upadhyay .intr_raw_status_bit = -1, \
889cf0c526SNeeraj Upadhyay .intr_polarity_bit = -1, \
899cf0c526SNeeraj Upadhyay .intr_detection_bit = -1, \
909cf0c526SNeeraj Upadhyay .intr_detection_width = -1, \
919cf0c526SNeeraj Upadhyay }
929cf0c526SNeeraj Upadhyay
939cf0c526SNeeraj Upadhyay static const struct pinctrl_pin_desc sdm660_pins[] = {
949cf0c526SNeeraj Upadhyay PINCTRL_PIN(0, "GPIO_0"),
959cf0c526SNeeraj Upadhyay PINCTRL_PIN(1, "GPIO_1"),
969cf0c526SNeeraj Upadhyay PINCTRL_PIN(2, "GPIO_2"),
979cf0c526SNeeraj Upadhyay PINCTRL_PIN(3, "GPIO_3"),
989cf0c526SNeeraj Upadhyay PINCTRL_PIN(4, "GPIO_4"),
999cf0c526SNeeraj Upadhyay PINCTRL_PIN(5, "GPIO_5"),
1009cf0c526SNeeraj Upadhyay PINCTRL_PIN(6, "GPIO_6"),
1019cf0c526SNeeraj Upadhyay PINCTRL_PIN(7, "GPIO_7"),
1029cf0c526SNeeraj Upadhyay PINCTRL_PIN(8, "GPIO_8"),
1039cf0c526SNeeraj Upadhyay PINCTRL_PIN(9, "GPIO_9"),
1049cf0c526SNeeraj Upadhyay PINCTRL_PIN(10, "GPIO_10"),
1059cf0c526SNeeraj Upadhyay PINCTRL_PIN(11, "GPIO_11"),
1069cf0c526SNeeraj Upadhyay PINCTRL_PIN(12, "GPIO_12"),
1079cf0c526SNeeraj Upadhyay PINCTRL_PIN(13, "GPIO_13"),
1089cf0c526SNeeraj Upadhyay PINCTRL_PIN(14, "GPIO_14"),
1099cf0c526SNeeraj Upadhyay PINCTRL_PIN(15, "GPIO_15"),
1109cf0c526SNeeraj Upadhyay PINCTRL_PIN(16, "GPIO_16"),
1119cf0c526SNeeraj Upadhyay PINCTRL_PIN(17, "GPIO_17"),
1129cf0c526SNeeraj Upadhyay PINCTRL_PIN(18, "GPIO_18"),
1139cf0c526SNeeraj Upadhyay PINCTRL_PIN(19, "GPIO_19"),
1149cf0c526SNeeraj Upadhyay PINCTRL_PIN(20, "GPIO_20"),
1159cf0c526SNeeraj Upadhyay PINCTRL_PIN(21, "GPIO_21"),
1169cf0c526SNeeraj Upadhyay PINCTRL_PIN(22, "GPIO_22"),
1179cf0c526SNeeraj Upadhyay PINCTRL_PIN(23, "GPIO_23"),
1189cf0c526SNeeraj Upadhyay PINCTRL_PIN(24, "GPIO_24"),
1199cf0c526SNeeraj Upadhyay PINCTRL_PIN(25, "GPIO_25"),
1209cf0c526SNeeraj Upadhyay PINCTRL_PIN(26, "GPIO_26"),
1219cf0c526SNeeraj Upadhyay PINCTRL_PIN(27, "GPIO_27"),
1229cf0c526SNeeraj Upadhyay PINCTRL_PIN(28, "GPIO_28"),
1239cf0c526SNeeraj Upadhyay PINCTRL_PIN(29, "GPIO_29"),
1249cf0c526SNeeraj Upadhyay PINCTRL_PIN(30, "GPIO_30"),
1259cf0c526SNeeraj Upadhyay PINCTRL_PIN(31, "GPIO_31"),
1269cf0c526SNeeraj Upadhyay PINCTRL_PIN(32, "GPIO_32"),
1279cf0c526SNeeraj Upadhyay PINCTRL_PIN(33, "GPIO_33"),
1289cf0c526SNeeraj Upadhyay PINCTRL_PIN(34, "GPIO_34"),
1299cf0c526SNeeraj Upadhyay PINCTRL_PIN(35, "GPIO_35"),
1309cf0c526SNeeraj Upadhyay PINCTRL_PIN(36, "GPIO_36"),
1319cf0c526SNeeraj Upadhyay PINCTRL_PIN(37, "GPIO_37"),
1329cf0c526SNeeraj Upadhyay PINCTRL_PIN(38, "GPIO_38"),
1339cf0c526SNeeraj Upadhyay PINCTRL_PIN(39, "GPIO_39"),
1349cf0c526SNeeraj Upadhyay PINCTRL_PIN(40, "GPIO_40"),
1359cf0c526SNeeraj Upadhyay PINCTRL_PIN(41, "GPIO_41"),
1369cf0c526SNeeraj Upadhyay PINCTRL_PIN(42, "GPIO_42"),
1379cf0c526SNeeraj Upadhyay PINCTRL_PIN(43, "GPIO_43"),
1389cf0c526SNeeraj Upadhyay PINCTRL_PIN(44, "GPIO_44"),
1399cf0c526SNeeraj Upadhyay PINCTRL_PIN(45, "GPIO_45"),
1409cf0c526SNeeraj Upadhyay PINCTRL_PIN(46, "GPIO_46"),
1419cf0c526SNeeraj Upadhyay PINCTRL_PIN(47, "GPIO_47"),
1429cf0c526SNeeraj Upadhyay PINCTRL_PIN(48, "GPIO_48"),
1439cf0c526SNeeraj Upadhyay PINCTRL_PIN(49, "GPIO_49"),
1449cf0c526SNeeraj Upadhyay PINCTRL_PIN(50, "GPIO_50"),
1459cf0c526SNeeraj Upadhyay PINCTRL_PIN(51, "GPIO_51"),
1469cf0c526SNeeraj Upadhyay PINCTRL_PIN(52, "GPIO_52"),
1479cf0c526SNeeraj Upadhyay PINCTRL_PIN(53, "GPIO_53"),
1489cf0c526SNeeraj Upadhyay PINCTRL_PIN(54, "GPIO_54"),
1499cf0c526SNeeraj Upadhyay PINCTRL_PIN(55, "GPIO_55"),
1509cf0c526SNeeraj Upadhyay PINCTRL_PIN(56, "GPIO_56"),
1519cf0c526SNeeraj Upadhyay PINCTRL_PIN(57, "GPIO_57"),
1529cf0c526SNeeraj Upadhyay PINCTRL_PIN(58, "GPIO_58"),
1539cf0c526SNeeraj Upadhyay PINCTRL_PIN(59, "GPIO_59"),
1549cf0c526SNeeraj Upadhyay PINCTRL_PIN(60, "GPIO_60"),
1559cf0c526SNeeraj Upadhyay PINCTRL_PIN(61, "GPIO_61"),
1569cf0c526SNeeraj Upadhyay PINCTRL_PIN(62, "GPIO_62"),
1579cf0c526SNeeraj Upadhyay PINCTRL_PIN(63, "GPIO_63"),
1589cf0c526SNeeraj Upadhyay PINCTRL_PIN(64, "GPIO_64"),
1599cf0c526SNeeraj Upadhyay PINCTRL_PIN(65, "GPIO_65"),
1609cf0c526SNeeraj Upadhyay PINCTRL_PIN(66, "GPIO_66"),
1619cf0c526SNeeraj Upadhyay PINCTRL_PIN(67, "GPIO_67"),
1629cf0c526SNeeraj Upadhyay PINCTRL_PIN(68, "GPIO_68"),
1639cf0c526SNeeraj Upadhyay PINCTRL_PIN(69, "GPIO_69"),
1649cf0c526SNeeraj Upadhyay PINCTRL_PIN(70, "GPIO_70"),
1659cf0c526SNeeraj Upadhyay PINCTRL_PIN(71, "GPIO_71"),
1669cf0c526SNeeraj Upadhyay PINCTRL_PIN(72, "GPIO_72"),
1679cf0c526SNeeraj Upadhyay PINCTRL_PIN(73, "GPIO_73"),
1689cf0c526SNeeraj Upadhyay PINCTRL_PIN(74, "GPIO_74"),
1699cf0c526SNeeraj Upadhyay PINCTRL_PIN(75, "GPIO_75"),
1709cf0c526SNeeraj Upadhyay PINCTRL_PIN(76, "GPIO_76"),
1719cf0c526SNeeraj Upadhyay PINCTRL_PIN(77, "GPIO_77"),
1729cf0c526SNeeraj Upadhyay PINCTRL_PIN(78, "GPIO_78"),
1739cf0c526SNeeraj Upadhyay PINCTRL_PIN(79, "GPIO_79"),
1749cf0c526SNeeraj Upadhyay PINCTRL_PIN(80, "GPIO_80"),
1759cf0c526SNeeraj Upadhyay PINCTRL_PIN(81, "GPIO_81"),
1769cf0c526SNeeraj Upadhyay PINCTRL_PIN(82, "GPIO_82"),
1779cf0c526SNeeraj Upadhyay PINCTRL_PIN(83, "GPIO_83"),
1789cf0c526SNeeraj Upadhyay PINCTRL_PIN(84, "GPIO_84"),
1799cf0c526SNeeraj Upadhyay PINCTRL_PIN(85, "GPIO_85"),
1809cf0c526SNeeraj Upadhyay PINCTRL_PIN(86, "GPIO_86"),
1819cf0c526SNeeraj Upadhyay PINCTRL_PIN(87, "GPIO_87"),
1829cf0c526SNeeraj Upadhyay PINCTRL_PIN(88, "GPIO_88"),
1839cf0c526SNeeraj Upadhyay PINCTRL_PIN(89, "GPIO_89"),
1849cf0c526SNeeraj Upadhyay PINCTRL_PIN(90, "GPIO_90"),
1859cf0c526SNeeraj Upadhyay PINCTRL_PIN(91, "GPIO_91"),
1869cf0c526SNeeraj Upadhyay PINCTRL_PIN(92, "GPIO_92"),
1879cf0c526SNeeraj Upadhyay PINCTRL_PIN(93, "GPIO_93"),
1889cf0c526SNeeraj Upadhyay PINCTRL_PIN(94, "GPIO_94"),
1899cf0c526SNeeraj Upadhyay PINCTRL_PIN(95, "GPIO_95"),
1909cf0c526SNeeraj Upadhyay PINCTRL_PIN(96, "GPIO_96"),
1919cf0c526SNeeraj Upadhyay PINCTRL_PIN(97, "GPIO_97"),
1929cf0c526SNeeraj Upadhyay PINCTRL_PIN(98, "GPIO_98"),
1939cf0c526SNeeraj Upadhyay PINCTRL_PIN(99, "GPIO_99"),
1949cf0c526SNeeraj Upadhyay PINCTRL_PIN(100, "GPIO_100"),
1959cf0c526SNeeraj Upadhyay PINCTRL_PIN(101, "GPIO_101"),
1969cf0c526SNeeraj Upadhyay PINCTRL_PIN(102, "GPIO_102"),
1979cf0c526SNeeraj Upadhyay PINCTRL_PIN(103, "GPIO_103"),
1989cf0c526SNeeraj Upadhyay PINCTRL_PIN(104, "GPIO_104"),
1999cf0c526SNeeraj Upadhyay PINCTRL_PIN(105, "GPIO_105"),
2009cf0c526SNeeraj Upadhyay PINCTRL_PIN(106, "GPIO_106"),
2019cf0c526SNeeraj Upadhyay PINCTRL_PIN(107, "GPIO_107"),
2029cf0c526SNeeraj Upadhyay PINCTRL_PIN(108, "GPIO_108"),
2039cf0c526SNeeraj Upadhyay PINCTRL_PIN(109, "GPIO_109"),
2049cf0c526SNeeraj Upadhyay PINCTRL_PIN(110, "GPIO_110"),
2059cf0c526SNeeraj Upadhyay PINCTRL_PIN(111, "GPIO_111"),
2069cf0c526SNeeraj Upadhyay PINCTRL_PIN(112, "GPIO_112"),
2079cf0c526SNeeraj Upadhyay PINCTRL_PIN(113, "GPIO_113"),
2089cf0c526SNeeraj Upadhyay PINCTRL_PIN(114, "SDC1_CLK"),
2099cf0c526SNeeraj Upadhyay PINCTRL_PIN(115, "SDC1_CMD"),
2109cf0c526SNeeraj Upadhyay PINCTRL_PIN(116, "SDC1_DATA"),
2119cf0c526SNeeraj Upadhyay PINCTRL_PIN(117, "SDC2_CLK"),
2129cf0c526SNeeraj Upadhyay PINCTRL_PIN(118, "SDC2_CMD"),
2139cf0c526SNeeraj Upadhyay PINCTRL_PIN(119, "SDC2_DATA"),
2149cf0c526SNeeraj Upadhyay PINCTRL_PIN(120, "SDC1_RCLK"),
2159cf0c526SNeeraj Upadhyay };
2169cf0c526SNeeraj Upadhyay
2179cf0c526SNeeraj Upadhyay #define DECLARE_MSM_GPIO_PINS(pin) \
2189cf0c526SNeeraj Upadhyay static const unsigned int gpio##pin##_pins[] = { pin }
2199cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(0);
2209cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(1);
2219cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(2);
2229cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(3);
2239cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(4);
2249cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(5);
2259cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(6);
2269cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(7);
2279cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(8);
2289cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(9);
2299cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(10);
2309cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(11);
2319cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(12);
2329cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(13);
2339cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(14);
2349cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(15);
2359cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(16);
2369cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(17);
2379cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(18);
2389cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(19);
2399cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(20);
2409cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(21);
2419cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(22);
2429cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(23);
2439cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(24);
2449cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(25);
2459cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(26);
2469cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(27);
2479cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(28);
2489cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(29);
2499cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(30);
2509cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(31);
2519cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(32);
2529cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(33);
2539cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(34);
2549cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(35);
2559cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(36);
2569cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(37);
2579cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(38);
2589cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(39);
2599cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(40);
2609cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(41);
2619cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(42);
2629cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(43);
2639cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(44);
2649cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(45);
2659cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(46);
2669cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(47);
2679cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(48);
2689cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(49);
2699cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(50);
2709cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(51);
2719cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(52);
2729cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(53);
2739cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(54);
2749cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(55);
2759cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(56);
2769cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(57);
2779cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(58);
2789cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(59);
2799cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(60);
2809cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(61);
2819cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(62);
2829cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(63);
2839cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(64);
2849cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(65);
2859cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(66);
2869cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(67);
2879cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(68);
2889cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(69);
2899cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(70);
2909cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(71);
2919cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(72);
2929cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(73);
2939cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(74);
2949cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(75);
2959cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(76);
2969cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(77);
2979cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(78);
2989cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(79);
2999cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(80);
3009cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(81);
3019cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(82);
3029cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(83);
3039cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(84);
3049cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(85);
3059cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(86);
3069cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(87);
3079cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(88);
3089cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(89);
3099cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(90);
3109cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(91);
3119cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(92);
3129cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(93);
3139cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(94);
3149cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(95);
3159cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(96);
3169cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(97);
3179cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(98);
3189cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(99);
3199cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(100);
3209cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(101);
3219cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(102);
3229cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(103);
3239cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(104);
3249cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(105);
3259cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(106);
3269cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(107);
3279cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(108);
3289cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(109);
3299cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(110);
3309cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(111);
3319cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(112);
3329cf0c526SNeeraj Upadhyay DECLARE_MSM_GPIO_PINS(113);
3339cf0c526SNeeraj Upadhyay
3349cf0c526SNeeraj Upadhyay static const unsigned int sdc1_clk_pins[] = { 114 };
3359cf0c526SNeeraj Upadhyay static const unsigned int sdc1_cmd_pins[] = { 115 };
3369cf0c526SNeeraj Upadhyay static const unsigned int sdc1_data_pins[] = { 116 };
3379cf0c526SNeeraj Upadhyay static const unsigned int sdc1_rclk_pins[] = { 120 };
3389cf0c526SNeeraj Upadhyay static const unsigned int sdc2_clk_pins[] = { 117 };
3399cf0c526SNeeraj Upadhyay static const unsigned int sdc2_cmd_pins[] = { 118 };
3409cf0c526SNeeraj Upadhyay static const unsigned int sdc2_data_pins[] = { 119 };
3419cf0c526SNeeraj Upadhyay
3429cf0c526SNeeraj Upadhyay enum sdm660_functions {
3439cf0c526SNeeraj Upadhyay msm_mux_adsp_ext,
3449cf0c526SNeeraj Upadhyay msm_mux_agera_pll,
3459cf0c526SNeeraj Upadhyay msm_mux_atest_char,
3469cf0c526SNeeraj Upadhyay msm_mux_atest_char0,
3479cf0c526SNeeraj Upadhyay msm_mux_atest_char1,
3489cf0c526SNeeraj Upadhyay msm_mux_atest_char2,
3499cf0c526SNeeraj Upadhyay msm_mux_atest_char3,
3509cf0c526SNeeraj Upadhyay msm_mux_atest_gpsadc0,
3519cf0c526SNeeraj Upadhyay msm_mux_atest_gpsadc1,
3529cf0c526SNeeraj Upadhyay msm_mux_atest_tsens,
3539cf0c526SNeeraj Upadhyay msm_mux_atest_tsens2,
3549cf0c526SNeeraj Upadhyay msm_mux_atest_usb1,
3559cf0c526SNeeraj Upadhyay msm_mux_atest_usb10,
3569cf0c526SNeeraj Upadhyay msm_mux_atest_usb11,
3579cf0c526SNeeraj Upadhyay msm_mux_atest_usb12,
3589cf0c526SNeeraj Upadhyay msm_mux_atest_usb13,
3599cf0c526SNeeraj Upadhyay msm_mux_atest_usb2,
3609cf0c526SNeeraj Upadhyay msm_mux_atest_usb20,
3619cf0c526SNeeraj Upadhyay msm_mux_atest_usb21,
3629cf0c526SNeeraj Upadhyay msm_mux_atest_usb22,
3639cf0c526SNeeraj Upadhyay msm_mux_atest_usb23,
3649cf0c526SNeeraj Upadhyay msm_mux_audio_ref,
3659cf0c526SNeeraj Upadhyay msm_mux_bimc_dte0,
3669cf0c526SNeeraj Upadhyay msm_mux_bimc_dte1,
3679cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c1,
3689cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c2,
3699cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c3,
3709cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c4,
3719cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c5,
3729cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c6,
3739cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c7,
3749cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c8_a,
3759cf0c526SNeeraj Upadhyay msm_mux_blsp_i2c8_b,
3769cf0c526SNeeraj Upadhyay msm_mux_blsp_spi1,
3779cf0c526SNeeraj Upadhyay msm_mux_blsp_spi2,
3789cf0c526SNeeraj Upadhyay msm_mux_blsp_spi3,
3799cf0c526SNeeraj Upadhyay msm_mux_blsp_spi3_cs1,
3809cf0c526SNeeraj Upadhyay msm_mux_blsp_spi3_cs2,
3819cf0c526SNeeraj Upadhyay msm_mux_blsp_spi4,
3829cf0c526SNeeraj Upadhyay msm_mux_blsp_spi5,
3839cf0c526SNeeraj Upadhyay msm_mux_blsp_spi6,
3849cf0c526SNeeraj Upadhyay msm_mux_blsp_spi7,
3859cf0c526SNeeraj Upadhyay msm_mux_blsp_spi8_a,
3869cf0c526SNeeraj Upadhyay msm_mux_blsp_spi8_b,
3879cf0c526SNeeraj Upadhyay msm_mux_blsp_spi8_cs1,
3889cf0c526SNeeraj Upadhyay msm_mux_blsp_spi8_cs2,
3899cf0c526SNeeraj Upadhyay msm_mux_blsp_uart1,
3909cf0c526SNeeraj Upadhyay msm_mux_blsp_uart2,
3919cf0c526SNeeraj Upadhyay msm_mux_blsp_uart5,
3929cf0c526SNeeraj Upadhyay msm_mux_blsp_uart6_a,
3939cf0c526SNeeraj Upadhyay msm_mux_blsp_uart6_b,
3949cf0c526SNeeraj Upadhyay msm_mux_blsp_uim1,
3959cf0c526SNeeraj Upadhyay msm_mux_blsp_uim2,
3969cf0c526SNeeraj Upadhyay msm_mux_blsp_uim5,
3979cf0c526SNeeraj Upadhyay msm_mux_blsp_uim6,
3989cf0c526SNeeraj Upadhyay msm_mux_cam_mclk,
3999cf0c526SNeeraj Upadhyay msm_mux_cci_async,
4009cf0c526SNeeraj Upadhyay msm_mux_cci_i2c,
4019cf0c526SNeeraj Upadhyay msm_mux_cri_trng,
4029cf0c526SNeeraj Upadhyay msm_mux_cri_trng0,
4039cf0c526SNeeraj Upadhyay msm_mux_cri_trng1,
4049cf0c526SNeeraj Upadhyay msm_mux_dbg_out,
4059cf0c526SNeeraj Upadhyay msm_mux_ddr_bist,
4069cf0c526SNeeraj Upadhyay msm_mux_gcc_gp1,
4079cf0c526SNeeraj Upadhyay msm_mux_gcc_gp2,
4089cf0c526SNeeraj Upadhyay msm_mux_gcc_gp3,
4099cf0c526SNeeraj Upadhyay msm_mux_gpio,
4109cf0c526SNeeraj Upadhyay msm_mux_gps_tx_a,
4119cf0c526SNeeraj Upadhyay msm_mux_gps_tx_b,
4129cf0c526SNeeraj Upadhyay msm_mux_gps_tx_c,
4139cf0c526SNeeraj Upadhyay msm_mux_isense_dbg,
4149cf0c526SNeeraj Upadhyay msm_mux_jitter_bist,
4159cf0c526SNeeraj Upadhyay msm_mux_ldo_en,
4169cf0c526SNeeraj Upadhyay msm_mux_ldo_update,
4179cf0c526SNeeraj Upadhyay msm_mux_m_voc,
4189cf0c526SNeeraj Upadhyay msm_mux_mdp_vsync,
4199cf0c526SNeeraj Upadhyay msm_mux_mdss_vsync0,
4209cf0c526SNeeraj Upadhyay msm_mux_mdss_vsync1,
4219cf0c526SNeeraj Upadhyay msm_mux_mdss_vsync2,
4229cf0c526SNeeraj Upadhyay msm_mux_mdss_vsync3,
4239cf0c526SNeeraj Upadhyay msm_mux_mss_lte,
4249cf0c526SNeeraj Upadhyay msm_mux_nav_pps_a,
4259cf0c526SNeeraj Upadhyay msm_mux_nav_pps_b,
4269cf0c526SNeeraj Upadhyay msm_mux_nav_pps_c,
4279cf0c526SNeeraj Upadhyay msm_mux_pa_indicator,
4289cf0c526SNeeraj Upadhyay msm_mux_phase_flag0,
4299cf0c526SNeeraj Upadhyay msm_mux_phase_flag1,
4309cf0c526SNeeraj Upadhyay msm_mux_phase_flag2,
4319cf0c526SNeeraj Upadhyay msm_mux_phase_flag3,
4329cf0c526SNeeraj Upadhyay msm_mux_phase_flag4,
4339cf0c526SNeeraj Upadhyay msm_mux_phase_flag5,
4349cf0c526SNeeraj Upadhyay msm_mux_phase_flag6,
4359cf0c526SNeeraj Upadhyay msm_mux_phase_flag7,
4369cf0c526SNeeraj Upadhyay msm_mux_phase_flag8,
4379cf0c526SNeeraj Upadhyay msm_mux_phase_flag9,
4389cf0c526SNeeraj Upadhyay msm_mux_phase_flag10,
4399cf0c526SNeeraj Upadhyay msm_mux_phase_flag11,
4409cf0c526SNeeraj Upadhyay msm_mux_phase_flag12,
4419cf0c526SNeeraj Upadhyay msm_mux_phase_flag13,
4429cf0c526SNeeraj Upadhyay msm_mux_phase_flag14,
4439cf0c526SNeeraj Upadhyay msm_mux_phase_flag15,
4449cf0c526SNeeraj Upadhyay msm_mux_phase_flag16,
4459cf0c526SNeeraj Upadhyay msm_mux_phase_flag17,
4469cf0c526SNeeraj Upadhyay msm_mux_phase_flag18,
4479cf0c526SNeeraj Upadhyay msm_mux_phase_flag19,
4489cf0c526SNeeraj Upadhyay msm_mux_phase_flag20,
4499cf0c526SNeeraj Upadhyay msm_mux_phase_flag21,
4509cf0c526SNeeraj Upadhyay msm_mux_phase_flag22,
4519cf0c526SNeeraj Upadhyay msm_mux_phase_flag23,
4529cf0c526SNeeraj Upadhyay msm_mux_phase_flag24,
4539cf0c526SNeeraj Upadhyay msm_mux_phase_flag25,
4549cf0c526SNeeraj Upadhyay msm_mux_phase_flag26,
4559cf0c526SNeeraj Upadhyay msm_mux_phase_flag27,
4569cf0c526SNeeraj Upadhyay msm_mux_phase_flag28,
4579cf0c526SNeeraj Upadhyay msm_mux_phase_flag29,
4589cf0c526SNeeraj Upadhyay msm_mux_phase_flag30,
4599cf0c526SNeeraj Upadhyay msm_mux_phase_flag31,
4609cf0c526SNeeraj Upadhyay msm_mux_pll_bypassnl,
4619cf0c526SNeeraj Upadhyay msm_mux_pll_reset,
4629cf0c526SNeeraj Upadhyay msm_mux_pri_mi2s,
4639cf0c526SNeeraj Upadhyay msm_mux_pri_mi2s_ws,
4649cf0c526SNeeraj Upadhyay msm_mux_prng_rosc,
4659cf0c526SNeeraj Upadhyay msm_mux_pwr_crypto,
4669cf0c526SNeeraj Upadhyay msm_mux_pwr_modem,
4679cf0c526SNeeraj Upadhyay msm_mux_pwr_nav,
4689cf0c526SNeeraj Upadhyay msm_mux_qdss_cti0_a,
4699cf0c526SNeeraj Upadhyay msm_mux_qdss_cti0_b,
4709cf0c526SNeeraj Upadhyay msm_mux_qdss_cti1_a,
4719cf0c526SNeeraj Upadhyay msm_mux_qdss_cti1_b,
4729cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio,
4739cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio0,
4749cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio1,
4759cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio10,
4769cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio11,
4779cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio12,
4789cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio13,
4799cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio14,
4809cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio15,
4819cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio2,
4829cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio3,
4839cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio4,
4849cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio5,
4859cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio6,
4869cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio7,
4879cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio8,
4889cf0c526SNeeraj Upadhyay msm_mux_qdss_gpio9,
4899cf0c526SNeeraj Upadhyay msm_mux_qlink_enable,
4909cf0c526SNeeraj Upadhyay msm_mux_qlink_request,
4919cf0c526SNeeraj Upadhyay msm_mux_qspi_clk,
4929cf0c526SNeeraj Upadhyay msm_mux_qspi_cs,
4939cf0c526SNeeraj Upadhyay msm_mux_qspi_data0,
4949cf0c526SNeeraj Upadhyay msm_mux_qspi_data1,
4959cf0c526SNeeraj Upadhyay msm_mux_qspi_data2,
4969cf0c526SNeeraj Upadhyay msm_mux_qspi_data3,
4979cf0c526SNeeraj Upadhyay msm_mux_qspi_resetn,
4989cf0c526SNeeraj Upadhyay msm_mux_sec_mi2s,
4999cf0c526SNeeraj Upadhyay msm_mux_sndwire_clk,
5009cf0c526SNeeraj Upadhyay msm_mux_sndwire_data,
5019cf0c526SNeeraj Upadhyay msm_mux_sp_cmu,
5029cf0c526SNeeraj Upadhyay msm_mux_ssc_irq,
5039cf0c526SNeeraj Upadhyay msm_mux_tgu_ch0,
5049cf0c526SNeeraj Upadhyay msm_mux_tgu_ch1,
5059cf0c526SNeeraj Upadhyay msm_mux_tsense_pwm1,
5069cf0c526SNeeraj Upadhyay msm_mux_tsense_pwm2,
5079cf0c526SNeeraj Upadhyay msm_mux_uim1_clk,
5089cf0c526SNeeraj Upadhyay msm_mux_uim1_data,
5099cf0c526SNeeraj Upadhyay msm_mux_uim1_present,
5109cf0c526SNeeraj Upadhyay msm_mux_uim1_reset,
5119cf0c526SNeeraj Upadhyay msm_mux_uim2_clk,
5129cf0c526SNeeraj Upadhyay msm_mux_uim2_data,
5139cf0c526SNeeraj Upadhyay msm_mux_uim2_present,
5149cf0c526SNeeraj Upadhyay msm_mux_uim2_reset,
5159cf0c526SNeeraj Upadhyay msm_mux_uim_batt,
5169cf0c526SNeeraj Upadhyay msm_mux_vfr_1,
5179cf0c526SNeeraj Upadhyay msm_mux_vsense_clkout,
5189cf0c526SNeeraj Upadhyay msm_mux_vsense_data0,
5199cf0c526SNeeraj Upadhyay msm_mux_vsense_data1,
5209cf0c526SNeeraj Upadhyay msm_mux_vsense_mode,
5219cf0c526SNeeraj Upadhyay msm_mux_wlan1_adc0,
5229cf0c526SNeeraj Upadhyay msm_mux_wlan1_adc1,
5239cf0c526SNeeraj Upadhyay msm_mux_wlan2_adc0,
5249cf0c526SNeeraj Upadhyay msm_mux_wlan2_adc1,
5259cf0c526SNeeraj Upadhyay msm_mux__,
5269cf0c526SNeeraj Upadhyay };
5279cf0c526SNeeraj Upadhyay
5289cf0c526SNeeraj Upadhyay static const char * const gpio_groups[] = {
5299cf0c526SNeeraj Upadhyay "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
5309cf0c526SNeeraj Upadhyay "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
5319cf0c526SNeeraj Upadhyay "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
5329cf0c526SNeeraj Upadhyay "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
5339cf0c526SNeeraj Upadhyay "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
5349cf0c526SNeeraj Upadhyay "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
5359cf0c526SNeeraj Upadhyay "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
5369cf0c526SNeeraj Upadhyay "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
5379cf0c526SNeeraj Upadhyay "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
5389cf0c526SNeeraj Upadhyay "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
5399cf0c526SNeeraj Upadhyay "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
5409cf0c526SNeeraj Upadhyay "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
5419cf0c526SNeeraj Upadhyay "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
5429cf0c526SNeeraj Upadhyay "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
5439cf0c526SNeeraj Upadhyay "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
5449cf0c526SNeeraj Upadhyay "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
5459cf0c526SNeeraj Upadhyay "gpio111", "gpio112", "gpio113",
5469cf0c526SNeeraj Upadhyay };
5479cf0c526SNeeraj Upadhyay
5489cf0c526SNeeraj Upadhyay static const char * const adsp_ext_groups[] = {
5499cf0c526SNeeraj Upadhyay "gpio65",
5509cf0c526SNeeraj Upadhyay };
5519cf0c526SNeeraj Upadhyay static const char * const agera_pll_groups[] = {
5529cf0c526SNeeraj Upadhyay "gpio34", "gpio36",
5539cf0c526SNeeraj Upadhyay };
5549cf0c526SNeeraj Upadhyay static const char * const atest_char0_groups[] = {
5559cf0c526SNeeraj Upadhyay "gpio62",
5569cf0c526SNeeraj Upadhyay };
5579cf0c526SNeeraj Upadhyay static const char * const atest_char1_groups[] = {
5589cf0c526SNeeraj Upadhyay "gpio61",
5599cf0c526SNeeraj Upadhyay };
5609cf0c526SNeeraj Upadhyay static const char * const atest_char2_groups[] = {
5619cf0c526SNeeraj Upadhyay "gpio60",
5629cf0c526SNeeraj Upadhyay };
5639cf0c526SNeeraj Upadhyay static const char * const atest_char3_groups[] = {
5649cf0c526SNeeraj Upadhyay "gpio59",
5659cf0c526SNeeraj Upadhyay };
5669cf0c526SNeeraj Upadhyay static const char * const atest_char_groups[] = {
5679cf0c526SNeeraj Upadhyay "gpio58",
5689cf0c526SNeeraj Upadhyay };
5699cf0c526SNeeraj Upadhyay static const char * const atest_gpsadc0_groups[] = {
5709cf0c526SNeeraj Upadhyay "gpio1",
5719cf0c526SNeeraj Upadhyay };
5729cf0c526SNeeraj Upadhyay static const char * const atest_gpsadc1_groups[] = {
5739cf0c526SNeeraj Upadhyay "gpio0",
5749cf0c526SNeeraj Upadhyay };
5759cf0c526SNeeraj Upadhyay static const char * const atest_tsens2_groups[] = {
5769cf0c526SNeeraj Upadhyay "gpio3",
5779cf0c526SNeeraj Upadhyay };
5789cf0c526SNeeraj Upadhyay static const char * const atest_tsens_groups[] = {
5799cf0c526SNeeraj Upadhyay "gpio36",
5809cf0c526SNeeraj Upadhyay };
5819cf0c526SNeeraj Upadhyay static const char * const atest_usb10_groups[] = {
5829cf0c526SNeeraj Upadhyay "gpio11",
5839cf0c526SNeeraj Upadhyay };
5849cf0c526SNeeraj Upadhyay static const char * const atest_usb11_groups[] = {
5859cf0c526SNeeraj Upadhyay "gpio10",
5869cf0c526SNeeraj Upadhyay };
5879cf0c526SNeeraj Upadhyay static const char * const atest_usb12_groups[] = {
5889cf0c526SNeeraj Upadhyay "gpio9",
5899cf0c526SNeeraj Upadhyay };
5909cf0c526SNeeraj Upadhyay static const char * const atest_usb13_groups[] = {
5919cf0c526SNeeraj Upadhyay "gpio8",
5929cf0c526SNeeraj Upadhyay };
5939cf0c526SNeeraj Upadhyay static const char * const atest_usb1_groups[] = {
5949cf0c526SNeeraj Upadhyay "gpio3",
5959cf0c526SNeeraj Upadhyay };
5969cf0c526SNeeraj Upadhyay static const char * const atest_usb20_groups[] = {
5979cf0c526SNeeraj Upadhyay "gpio56",
5989cf0c526SNeeraj Upadhyay };
5999cf0c526SNeeraj Upadhyay static const char * const atest_usb21_groups[] = {
6009cf0c526SNeeraj Upadhyay "gpio36",
6019cf0c526SNeeraj Upadhyay };
6029cf0c526SNeeraj Upadhyay static const char * const atest_usb22_groups[] = {
6039cf0c526SNeeraj Upadhyay "gpio57",
6049cf0c526SNeeraj Upadhyay };
6059cf0c526SNeeraj Upadhyay static const char * const atest_usb23_groups[] = {
6069cf0c526SNeeraj Upadhyay "gpio37",
6079cf0c526SNeeraj Upadhyay };
6089cf0c526SNeeraj Upadhyay static const char * const atest_usb2_groups[] = {
6099cf0c526SNeeraj Upadhyay "gpio35",
6109cf0c526SNeeraj Upadhyay };
6119cf0c526SNeeraj Upadhyay static const char * const audio_ref_groups[] = {
6129cf0c526SNeeraj Upadhyay "gpio62",
6139cf0c526SNeeraj Upadhyay };
6149cf0c526SNeeraj Upadhyay static const char * const bimc_dte0_groups[] = {
6159cf0c526SNeeraj Upadhyay "gpio9", "gpio11",
6169cf0c526SNeeraj Upadhyay };
6179cf0c526SNeeraj Upadhyay static const char * const bimc_dte1_groups[] = {
6189cf0c526SNeeraj Upadhyay "gpio8", "gpio10",
6199cf0c526SNeeraj Upadhyay };
6209cf0c526SNeeraj Upadhyay static const char * const blsp_i2c1_groups[] = {
6219cf0c526SNeeraj Upadhyay "gpio2", "gpio3",
6229cf0c526SNeeraj Upadhyay };
6239cf0c526SNeeraj Upadhyay static const char * const blsp_i2c2_groups[] = {
6249cf0c526SNeeraj Upadhyay "gpio6", "gpio7",
6259cf0c526SNeeraj Upadhyay };
6269cf0c526SNeeraj Upadhyay static const char * const blsp_i2c3_groups[] = {
6279cf0c526SNeeraj Upadhyay "gpio10", "gpio11",
6289cf0c526SNeeraj Upadhyay };
6299cf0c526SNeeraj Upadhyay static const char * const blsp_i2c4_groups[] = {
6309cf0c526SNeeraj Upadhyay "gpio14", "gpio15",
6319cf0c526SNeeraj Upadhyay };
6329cf0c526SNeeraj Upadhyay static const char * const blsp_i2c5_groups[] = {
6339cf0c526SNeeraj Upadhyay "gpio18", "gpio19",
6349cf0c526SNeeraj Upadhyay };
6359cf0c526SNeeraj Upadhyay static const char * const blsp_i2c6_groups[] = {
6369cf0c526SNeeraj Upadhyay "gpio22", "gpio23",
6379cf0c526SNeeraj Upadhyay };
6389cf0c526SNeeraj Upadhyay static const char * const blsp_i2c7_groups[] = {
6399cf0c526SNeeraj Upadhyay "gpio26", "gpio27",
6409cf0c526SNeeraj Upadhyay };
6419cf0c526SNeeraj Upadhyay static const char * const blsp_i2c8_a_groups[] = {
6429cf0c526SNeeraj Upadhyay "gpio30", "gpio31",
6439cf0c526SNeeraj Upadhyay };
6449cf0c526SNeeraj Upadhyay static const char * const blsp_i2c8_b_groups[] = {
6459cf0c526SNeeraj Upadhyay "gpio44", "gpio52",
6469cf0c526SNeeraj Upadhyay };
6479cf0c526SNeeraj Upadhyay static const char * const blsp_spi1_groups[] = {
6489cf0c526SNeeraj Upadhyay "gpio0", "gpio1", "gpio2", "gpio3", "gpio46",
6499cf0c526SNeeraj Upadhyay };
6509cf0c526SNeeraj Upadhyay static const char * const blsp_spi2_groups[] = {
6519cf0c526SNeeraj Upadhyay "gpio4", "gpio5", "gpio6", "gpio7",
6529cf0c526SNeeraj Upadhyay };
6539cf0c526SNeeraj Upadhyay static const char * const blsp_spi3_cs1_groups[] = {
6549cf0c526SNeeraj Upadhyay "gpio30",
6559cf0c526SNeeraj Upadhyay };
6569cf0c526SNeeraj Upadhyay static const char * const blsp_spi3_cs2_groups[] = {
6579cf0c526SNeeraj Upadhyay "gpio65",
6589cf0c526SNeeraj Upadhyay };
6599cf0c526SNeeraj Upadhyay static const char * const blsp_spi3_groups[] = {
6609cf0c526SNeeraj Upadhyay "gpio8", "gpio9", "gpio10", "gpio11",
6619cf0c526SNeeraj Upadhyay };
6629cf0c526SNeeraj Upadhyay static const char * const blsp_spi4_groups[] = {
6639cf0c526SNeeraj Upadhyay "gpio12", "gpio13", "gpio14", "gpio15",
6649cf0c526SNeeraj Upadhyay };
6659cf0c526SNeeraj Upadhyay static const char * const blsp_spi5_groups[] = {
6669cf0c526SNeeraj Upadhyay "gpio16", "gpio17", "gpio18", "gpio19",
6679cf0c526SNeeraj Upadhyay };
6689cf0c526SNeeraj Upadhyay static const char * const blsp_spi6_groups[] = {
6699cf0c526SNeeraj Upadhyay "gpio49", "gpio52", "gpio22", "gpio23",
6709cf0c526SNeeraj Upadhyay };
6719cf0c526SNeeraj Upadhyay static const char * const blsp_spi7_groups[] = {
6729cf0c526SNeeraj Upadhyay "gpio24", "gpio25", "gpio26", "gpio27",
6739cf0c526SNeeraj Upadhyay };
6749cf0c526SNeeraj Upadhyay static const char * const blsp_spi8_a_groups[] = {
6759cf0c526SNeeraj Upadhyay "gpio28", "gpio29", "gpio30", "gpio31",
6769cf0c526SNeeraj Upadhyay };
6779cf0c526SNeeraj Upadhyay static const char * const blsp_spi8_b_groups[] = {
6789cf0c526SNeeraj Upadhyay "gpio40", "gpio41", "gpio44", "gpio52",
6799cf0c526SNeeraj Upadhyay };
6809cf0c526SNeeraj Upadhyay static const char * const blsp_spi8_cs1_groups[] = {
6819cf0c526SNeeraj Upadhyay "gpio64",
6829cf0c526SNeeraj Upadhyay };
6839cf0c526SNeeraj Upadhyay static const char * const blsp_spi8_cs2_groups[] = {
6849cf0c526SNeeraj Upadhyay "gpio76",
6859cf0c526SNeeraj Upadhyay };
6869cf0c526SNeeraj Upadhyay static const char * const blsp_uart1_groups[] = {
6879cf0c526SNeeraj Upadhyay "gpio0", "gpio1", "gpio2", "gpio3",
6889cf0c526SNeeraj Upadhyay };
6899cf0c526SNeeraj Upadhyay static const char * const blsp_uart2_groups[] = {
6909cf0c526SNeeraj Upadhyay "gpio4", "gpio5", "gpio6", "gpio7",
6919cf0c526SNeeraj Upadhyay };
6929cf0c526SNeeraj Upadhyay static const char * const blsp_uart5_groups[] = {
6939cf0c526SNeeraj Upadhyay "gpio16", "gpio17", "gpio18", "gpio19",
6949cf0c526SNeeraj Upadhyay };
6959cf0c526SNeeraj Upadhyay static const char * const blsp_uart6_a_groups[] = {
6969cf0c526SNeeraj Upadhyay "gpio24", "gpio25", "gpio26", "gpio27",
6979cf0c526SNeeraj Upadhyay };
6989cf0c526SNeeraj Upadhyay static const char * const blsp_uart6_b_groups[] = {
6999cf0c526SNeeraj Upadhyay "gpio28", "gpio29", "gpio30", "gpio31",
7009cf0c526SNeeraj Upadhyay };
7019cf0c526SNeeraj Upadhyay static const char * const blsp_uim1_groups[] = {
7029cf0c526SNeeraj Upadhyay "gpio0", "gpio1",
7039cf0c526SNeeraj Upadhyay };
7049cf0c526SNeeraj Upadhyay static const char * const blsp_uim2_groups[] = {
7059cf0c526SNeeraj Upadhyay "gpio4", "gpio5",
7069cf0c526SNeeraj Upadhyay };
7079cf0c526SNeeraj Upadhyay static const char * const blsp_uim5_groups[] = {
7089cf0c526SNeeraj Upadhyay "gpio16", "gpio17",
7099cf0c526SNeeraj Upadhyay };
7109cf0c526SNeeraj Upadhyay static const char * const blsp_uim6_groups[] = {
7119cf0c526SNeeraj Upadhyay "gpio20", "gpio21",
7129cf0c526SNeeraj Upadhyay };
7139cf0c526SNeeraj Upadhyay static const char * const cam_mclk_groups[] = {
7149cf0c526SNeeraj Upadhyay "gpio32", "gpio33", "gpio34", "gpio35",
7159cf0c526SNeeraj Upadhyay };
7169cf0c526SNeeraj Upadhyay static const char * const cci_async_groups[] = {
7179cf0c526SNeeraj Upadhyay "gpio45",
7189cf0c526SNeeraj Upadhyay };
7199cf0c526SNeeraj Upadhyay static const char * const cci_i2c_groups[] = {
7209cf0c526SNeeraj Upadhyay "gpio36", "gpio37", "gpio38", "gpio39",
7219cf0c526SNeeraj Upadhyay };
7229cf0c526SNeeraj Upadhyay static const char * const cri_trng0_groups[] = {
7239cf0c526SNeeraj Upadhyay "gpio60",
7249cf0c526SNeeraj Upadhyay };
7259cf0c526SNeeraj Upadhyay static const char * const cri_trng1_groups[] = {
7269cf0c526SNeeraj Upadhyay "gpio61",
7279cf0c526SNeeraj Upadhyay };
7289cf0c526SNeeraj Upadhyay static const char * const cri_trng_groups[] = {
7299cf0c526SNeeraj Upadhyay "gpio62",
7309cf0c526SNeeraj Upadhyay };
7319cf0c526SNeeraj Upadhyay static const char * const dbg_out_groups[] = {
7329cf0c526SNeeraj Upadhyay "gpio11",
7339cf0c526SNeeraj Upadhyay };
7349cf0c526SNeeraj Upadhyay static const char * const ddr_bist_groups[] = {
7359cf0c526SNeeraj Upadhyay "gpio3", "gpio8", "gpio9", "gpio10",
7369cf0c526SNeeraj Upadhyay };
7379cf0c526SNeeraj Upadhyay static const char * const gcc_gp1_groups[] = {
7389cf0c526SNeeraj Upadhyay "gpio57", "gpio78",
7399cf0c526SNeeraj Upadhyay };
7409cf0c526SNeeraj Upadhyay static const char * const gcc_gp2_groups[] = {
7419cf0c526SNeeraj Upadhyay "gpio58", "gpio81",
7429cf0c526SNeeraj Upadhyay };
7439cf0c526SNeeraj Upadhyay static const char * const gcc_gp3_groups[] = {
7449cf0c526SNeeraj Upadhyay "gpio59", "gpio82",
7459cf0c526SNeeraj Upadhyay };
7469cf0c526SNeeraj Upadhyay static const char * const gps_tx_a_groups[] = {
7479cf0c526SNeeraj Upadhyay "gpio65",
7489cf0c526SNeeraj Upadhyay };
7499cf0c526SNeeraj Upadhyay static const char * const gps_tx_b_groups[] = {
7509cf0c526SNeeraj Upadhyay "gpio98",
7519cf0c526SNeeraj Upadhyay };
7529cf0c526SNeeraj Upadhyay static const char * const gps_tx_c_groups[] = {
7539cf0c526SNeeraj Upadhyay "gpio80",
7549cf0c526SNeeraj Upadhyay };
7559cf0c526SNeeraj Upadhyay static const char * const isense_dbg_groups[] = {
7569cf0c526SNeeraj Upadhyay "gpio68",
7579cf0c526SNeeraj Upadhyay };
7589cf0c526SNeeraj Upadhyay static const char * const jitter_bist_groups[] = {
7599cf0c526SNeeraj Upadhyay "gpio35",
7609cf0c526SNeeraj Upadhyay };
7619cf0c526SNeeraj Upadhyay static const char * const ldo_en_groups[] = {
7629cf0c526SNeeraj Upadhyay "gpio97",
7639cf0c526SNeeraj Upadhyay };
7649cf0c526SNeeraj Upadhyay static const char * const ldo_update_groups[] = {
7659cf0c526SNeeraj Upadhyay "gpio98",
7669cf0c526SNeeraj Upadhyay };
7679cf0c526SNeeraj Upadhyay static const char * const m_voc_groups[] = {
7689cf0c526SNeeraj Upadhyay "gpio28",
7699cf0c526SNeeraj Upadhyay };
7709cf0c526SNeeraj Upadhyay static const char * const mdp_vsync_groups[] = {
7719cf0c526SNeeraj Upadhyay "gpio59", "gpio74",
7729cf0c526SNeeraj Upadhyay };
7739cf0c526SNeeraj Upadhyay static const char * const mdss_vsync0_groups[] = {
7749cf0c526SNeeraj Upadhyay "gpio42",
7759cf0c526SNeeraj Upadhyay };
7769cf0c526SNeeraj Upadhyay static const char * const mdss_vsync1_groups[] = {
7779cf0c526SNeeraj Upadhyay "gpio42",
7789cf0c526SNeeraj Upadhyay };
7799cf0c526SNeeraj Upadhyay static const char * const mdss_vsync2_groups[] = {
7809cf0c526SNeeraj Upadhyay "gpio42",
7819cf0c526SNeeraj Upadhyay };
7829cf0c526SNeeraj Upadhyay static const char * const mdss_vsync3_groups[] = {
7839cf0c526SNeeraj Upadhyay "gpio42",
7849cf0c526SNeeraj Upadhyay };
7859cf0c526SNeeraj Upadhyay static const char * const mss_lte_groups[] = {
7869cf0c526SNeeraj Upadhyay "gpio81", "gpio82",
7879cf0c526SNeeraj Upadhyay };
7889cf0c526SNeeraj Upadhyay static const char * const nav_pps_a_groups[] = {
7899cf0c526SNeeraj Upadhyay "gpio65",
7909cf0c526SNeeraj Upadhyay };
7919cf0c526SNeeraj Upadhyay static const char * const nav_pps_b_groups[] = {
7929cf0c526SNeeraj Upadhyay "gpio98",
7939cf0c526SNeeraj Upadhyay };
7949cf0c526SNeeraj Upadhyay static const char * const nav_pps_c_groups[] = {
7959cf0c526SNeeraj Upadhyay "gpio80",
7969cf0c526SNeeraj Upadhyay };
7979cf0c526SNeeraj Upadhyay static const char * const pa_indicator_groups[] = {
7989cf0c526SNeeraj Upadhyay "gpio92",
7999cf0c526SNeeraj Upadhyay };
8009cf0c526SNeeraj Upadhyay static const char * const phase_flag0_groups[] = {
8019cf0c526SNeeraj Upadhyay "gpio68",
8029cf0c526SNeeraj Upadhyay };
8039cf0c526SNeeraj Upadhyay static const char * const phase_flag1_groups[] = {
8049cf0c526SNeeraj Upadhyay "gpio48",
8059cf0c526SNeeraj Upadhyay };
8069cf0c526SNeeraj Upadhyay static const char * const phase_flag2_groups[] = {
8079cf0c526SNeeraj Upadhyay "gpio49",
8089cf0c526SNeeraj Upadhyay };
8099cf0c526SNeeraj Upadhyay static const char * const phase_flag3_groups[] = {
8109cf0c526SNeeraj Upadhyay "gpio4",
8119cf0c526SNeeraj Upadhyay };
8129cf0c526SNeeraj Upadhyay static const char * const phase_flag4_groups[] = {
8139cf0c526SNeeraj Upadhyay "gpio57",
8149cf0c526SNeeraj Upadhyay };
8159cf0c526SNeeraj Upadhyay static const char * const phase_flag5_groups[] = {
8169cf0c526SNeeraj Upadhyay "gpio17",
8179cf0c526SNeeraj Upadhyay };
8189cf0c526SNeeraj Upadhyay static const char * const phase_flag6_groups[] = {
8199cf0c526SNeeraj Upadhyay "gpio53",
8209cf0c526SNeeraj Upadhyay };
8219cf0c526SNeeraj Upadhyay static const char * const phase_flag7_groups[] = {
8229cf0c526SNeeraj Upadhyay "gpio69",
8239cf0c526SNeeraj Upadhyay };
8249cf0c526SNeeraj Upadhyay static const char * const phase_flag8_groups[] = {
8259cf0c526SNeeraj Upadhyay "gpio70",
8269cf0c526SNeeraj Upadhyay };
8279cf0c526SNeeraj Upadhyay static const char * const phase_flag9_groups[] = {
8289cf0c526SNeeraj Upadhyay "gpio50",
8299cf0c526SNeeraj Upadhyay };
8309cf0c526SNeeraj Upadhyay static const char * const phase_flag10_groups[] = {
8319cf0c526SNeeraj Upadhyay "gpio56",
8329cf0c526SNeeraj Upadhyay };
8339cf0c526SNeeraj Upadhyay static const char * const phase_flag11_groups[] = {
8349cf0c526SNeeraj Upadhyay "gpio21",
8359cf0c526SNeeraj Upadhyay };
8369cf0c526SNeeraj Upadhyay static const char * const phase_flag12_groups[] = {
8379cf0c526SNeeraj Upadhyay "gpio22",
8389cf0c526SNeeraj Upadhyay };
8399cf0c526SNeeraj Upadhyay static const char * const phase_flag13_groups[] = {
8409cf0c526SNeeraj Upadhyay "gpio23",
8419cf0c526SNeeraj Upadhyay };
8429cf0c526SNeeraj Upadhyay static const char * const phase_flag14_groups[] = {
8439cf0c526SNeeraj Upadhyay "gpio5",
8449cf0c526SNeeraj Upadhyay };
8459cf0c526SNeeraj Upadhyay static const char * const phase_flag15_groups[] = {
8469cf0c526SNeeraj Upadhyay "gpio51",
8479cf0c526SNeeraj Upadhyay };
8489cf0c526SNeeraj Upadhyay static const char * const phase_flag16_groups[] = {
8499cf0c526SNeeraj Upadhyay "gpio52",
8509cf0c526SNeeraj Upadhyay };
8519cf0c526SNeeraj Upadhyay static const char * const phase_flag17_groups[] = {
8529cf0c526SNeeraj Upadhyay "gpio24",
8539cf0c526SNeeraj Upadhyay };
8549cf0c526SNeeraj Upadhyay static const char * const phase_flag18_groups[] = {
8559cf0c526SNeeraj Upadhyay "gpio25",
8569cf0c526SNeeraj Upadhyay };
8579cf0c526SNeeraj Upadhyay static const char * const phase_flag19_groups[] = {
8589cf0c526SNeeraj Upadhyay "gpio26",
8599cf0c526SNeeraj Upadhyay };
8609cf0c526SNeeraj Upadhyay static const char * const phase_flag20_groups[] = {
8619cf0c526SNeeraj Upadhyay "gpio27",
8629cf0c526SNeeraj Upadhyay };
8639cf0c526SNeeraj Upadhyay static const char * const phase_flag21_groups[] = {
8649cf0c526SNeeraj Upadhyay "gpio28",
8659cf0c526SNeeraj Upadhyay };
8669cf0c526SNeeraj Upadhyay static const char * const phase_flag22_groups[] = {
8679cf0c526SNeeraj Upadhyay "gpio29",
8689cf0c526SNeeraj Upadhyay };
8699cf0c526SNeeraj Upadhyay static const char * const phase_flag23_groups[] = {
8709cf0c526SNeeraj Upadhyay "gpio30",
8719cf0c526SNeeraj Upadhyay };
8729cf0c526SNeeraj Upadhyay static const char * const phase_flag24_groups[] = {
8739cf0c526SNeeraj Upadhyay "gpio31",
8749cf0c526SNeeraj Upadhyay };
8759cf0c526SNeeraj Upadhyay static const char * const phase_flag25_groups[] = {
8769cf0c526SNeeraj Upadhyay "gpio55",
8779cf0c526SNeeraj Upadhyay };
8789cf0c526SNeeraj Upadhyay static const char * const phase_flag26_groups[] = {
8799cf0c526SNeeraj Upadhyay "gpio12",
8809cf0c526SNeeraj Upadhyay };
8819cf0c526SNeeraj Upadhyay static const char * const phase_flag27_groups[] = {
8829cf0c526SNeeraj Upadhyay "gpio13",
8839cf0c526SNeeraj Upadhyay };
8849cf0c526SNeeraj Upadhyay static const char * const phase_flag28_groups[] = {
8859cf0c526SNeeraj Upadhyay "gpio14",
8869cf0c526SNeeraj Upadhyay };
8879cf0c526SNeeraj Upadhyay static const char * const phase_flag29_groups[] = {
8889cf0c526SNeeraj Upadhyay "gpio54",
8899cf0c526SNeeraj Upadhyay };
8909cf0c526SNeeraj Upadhyay static const char * const phase_flag30_groups[] = {
8919cf0c526SNeeraj Upadhyay "gpio47",
8929cf0c526SNeeraj Upadhyay };
8939cf0c526SNeeraj Upadhyay static const char * const phase_flag31_groups[] = {
8949cf0c526SNeeraj Upadhyay "gpio6",
8959cf0c526SNeeraj Upadhyay };
8969cf0c526SNeeraj Upadhyay static const char * const pll_bypassnl_groups[] = {
8979cf0c526SNeeraj Upadhyay "gpio36",
8989cf0c526SNeeraj Upadhyay };
8999cf0c526SNeeraj Upadhyay static const char * const pll_reset_groups[] = {
9009cf0c526SNeeraj Upadhyay "gpio37",
9019cf0c526SNeeraj Upadhyay };
9029cf0c526SNeeraj Upadhyay static const char * const pri_mi2s_groups[] = {
9039cf0c526SNeeraj Upadhyay "gpio12", "gpio14", "gpio15", "gpio61",
9049cf0c526SNeeraj Upadhyay };
9059cf0c526SNeeraj Upadhyay static const char * const pri_mi2s_ws_groups[] = {
9069cf0c526SNeeraj Upadhyay "gpio13",
9079cf0c526SNeeraj Upadhyay };
9089cf0c526SNeeraj Upadhyay static const char * const prng_rosc_groups[] = {
9099cf0c526SNeeraj Upadhyay "gpio102",
9109cf0c526SNeeraj Upadhyay };
9119cf0c526SNeeraj Upadhyay static const char * const pwr_crypto_groups[] = {
9129cf0c526SNeeraj Upadhyay "gpio33",
9139cf0c526SNeeraj Upadhyay };
9149cf0c526SNeeraj Upadhyay static const char * const pwr_modem_groups[] = {
9159cf0c526SNeeraj Upadhyay "gpio31",
9169cf0c526SNeeraj Upadhyay };
9179cf0c526SNeeraj Upadhyay static const char * const pwr_nav_groups[] = {
9189cf0c526SNeeraj Upadhyay "gpio32",
9199cf0c526SNeeraj Upadhyay };
9209cf0c526SNeeraj Upadhyay static const char * const qdss_cti0_a_groups[] = {
9219cf0c526SNeeraj Upadhyay "gpio49", "gpio50",
9229cf0c526SNeeraj Upadhyay };
9239cf0c526SNeeraj Upadhyay static const char * const qdss_cti0_b_groups[] = {
9249cf0c526SNeeraj Upadhyay "gpio13", "gpio21",
9259cf0c526SNeeraj Upadhyay };
9269cf0c526SNeeraj Upadhyay static const char * const qdss_cti1_a_groups[] = {
9279cf0c526SNeeraj Upadhyay "gpio53", "gpio55",
9289cf0c526SNeeraj Upadhyay };
9299cf0c526SNeeraj Upadhyay static const char * const qdss_cti1_b_groups[] = {
9309cf0c526SNeeraj Upadhyay "gpio12", "gpio66",
9319cf0c526SNeeraj Upadhyay };
9329cf0c526SNeeraj Upadhyay static const char * const qdss_gpio0_groups[] = {
9339cf0c526SNeeraj Upadhyay "gpio32", "gpio67",
9349cf0c526SNeeraj Upadhyay };
9359cf0c526SNeeraj Upadhyay static const char * const qdss_gpio10_groups[] = {
9369cf0c526SNeeraj Upadhyay "gpio43", "gpio77",
9379cf0c526SNeeraj Upadhyay };
9389cf0c526SNeeraj Upadhyay static const char * const qdss_gpio11_groups[] = {
9399cf0c526SNeeraj Upadhyay "gpio44", "gpio79",
9409cf0c526SNeeraj Upadhyay };
9419cf0c526SNeeraj Upadhyay static const char * const qdss_gpio12_groups[] = {
9429cf0c526SNeeraj Upadhyay "gpio45", "gpio80",
9439cf0c526SNeeraj Upadhyay };
9449cf0c526SNeeraj Upadhyay static const char * const qdss_gpio13_groups[] = {
9459cf0c526SNeeraj Upadhyay "gpio46", "gpio78",
9469cf0c526SNeeraj Upadhyay };
9479cf0c526SNeeraj Upadhyay static const char * const qdss_gpio14_groups[] = {
9489cf0c526SNeeraj Upadhyay "gpio47", "gpio72",
9499cf0c526SNeeraj Upadhyay };
9509cf0c526SNeeraj Upadhyay static const char * const qdss_gpio15_groups[] = {
9519cf0c526SNeeraj Upadhyay "gpio48", "gpio73",
9529cf0c526SNeeraj Upadhyay };
9539cf0c526SNeeraj Upadhyay static const char * const qdss_gpio1_groups[] = {
9549cf0c526SNeeraj Upadhyay "gpio33", "gpio63",
9559cf0c526SNeeraj Upadhyay };
9569cf0c526SNeeraj Upadhyay static const char * const qdss_gpio2_groups[] = {
9579cf0c526SNeeraj Upadhyay "gpio34", "gpio64",
9589cf0c526SNeeraj Upadhyay };
9599cf0c526SNeeraj Upadhyay static const char * const qdss_gpio3_groups[] = {
9609cf0c526SNeeraj Upadhyay "gpio35", "gpio56",
9619cf0c526SNeeraj Upadhyay };
9629cf0c526SNeeraj Upadhyay static const char * const qdss_gpio4_groups[] = {
9639cf0c526SNeeraj Upadhyay "gpio0", "gpio36",
9649cf0c526SNeeraj Upadhyay };
9659cf0c526SNeeraj Upadhyay static const char * const qdss_gpio5_groups[] = {
9669cf0c526SNeeraj Upadhyay "gpio1", "gpio37",
9679cf0c526SNeeraj Upadhyay };
9689cf0c526SNeeraj Upadhyay static const char * const qdss_gpio6_groups[] = {
9699cf0c526SNeeraj Upadhyay "gpio38", "gpio70",
9709cf0c526SNeeraj Upadhyay };
9719cf0c526SNeeraj Upadhyay static const char * const qdss_gpio7_groups[] = {
9729cf0c526SNeeraj Upadhyay "gpio39", "gpio71",
9739cf0c526SNeeraj Upadhyay };
9749cf0c526SNeeraj Upadhyay static const char * const qdss_gpio8_groups[] = {
9759cf0c526SNeeraj Upadhyay "gpio51", "gpio75",
9769cf0c526SNeeraj Upadhyay };
9779cf0c526SNeeraj Upadhyay static const char * const qdss_gpio9_groups[] = {
9789cf0c526SNeeraj Upadhyay "gpio42", "gpio76",
9799cf0c526SNeeraj Upadhyay };
9809cf0c526SNeeraj Upadhyay static const char * const qdss_gpio_groups[] = {
9819cf0c526SNeeraj Upadhyay "gpio31", "gpio52", "gpio68", "gpio69",
9829cf0c526SNeeraj Upadhyay };
9839cf0c526SNeeraj Upadhyay static const char * const qlink_enable_groups[] = {
9849cf0c526SNeeraj Upadhyay "gpio100",
9859cf0c526SNeeraj Upadhyay };
9869cf0c526SNeeraj Upadhyay static const char * const qlink_request_groups[] = {
9879cf0c526SNeeraj Upadhyay "gpio99",
9889cf0c526SNeeraj Upadhyay };
9899cf0c526SNeeraj Upadhyay static const char * const qspi_clk_groups[] = {
9909cf0c526SNeeraj Upadhyay "gpio47",
9919cf0c526SNeeraj Upadhyay };
9929cf0c526SNeeraj Upadhyay static const char * const qspi_cs_groups[] = {
9939cf0c526SNeeraj Upadhyay "gpio43", "gpio50",
9949cf0c526SNeeraj Upadhyay };
9959cf0c526SNeeraj Upadhyay static const char * const qspi_data0_groups[] = {
9969cf0c526SNeeraj Upadhyay "gpio33",
9979cf0c526SNeeraj Upadhyay };
9989cf0c526SNeeraj Upadhyay static const char * const qspi_data1_groups[] = {
9999cf0c526SNeeraj Upadhyay "gpio34",
10009cf0c526SNeeraj Upadhyay };
10019cf0c526SNeeraj Upadhyay static const char * const qspi_data2_groups[] = {
10029cf0c526SNeeraj Upadhyay "gpio35",
10039cf0c526SNeeraj Upadhyay };
10049cf0c526SNeeraj Upadhyay static const char * const qspi_data3_groups[] = {
10059cf0c526SNeeraj Upadhyay "gpio51",
10069cf0c526SNeeraj Upadhyay };
10079cf0c526SNeeraj Upadhyay static const char * const qspi_resetn_groups[] = {
10089cf0c526SNeeraj Upadhyay "gpio48",
10099cf0c526SNeeraj Upadhyay };
10109cf0c526SNeeraj Upadhyay static const char * const sec_mi2s_groups[] = {
10119cf0c526SNeeraj Upadhyay "gpio24", "gpio25", "gpio26", "gpio27", "gpio62",
10129cf0c526SNeeraj Upadhyay };
10139cf0c526SNeeraj Upadhyay static const char * const sndwire_clk_groups[] = {
10149cf0c526SNeeraj Upadhyay "gpio24",
10159cf0c526SNeeraj Upadhyay };
10169cf0c526SNeeraj Upadhyay static const char * const sndwire_data_groups[] = {
10179cf0c526SNeeraj Upadhyay "gpio25",
10189cf0c526SNeeraj Upadhyay };
10199cf0c526SNeeraj Upadhyay static const char * const sp_cmu_groups[] = {
10209cf0c526SNeeraj Upadhyay "gpio64",
10219cf0c526SNeeraj Upadhyay };
10229cf0c526SNeeraj Upadhyay static const char * const ssc_irq_groups[] = {
10239cf0c526SNeeraj Upadhyay "gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72", "gpio74",
10249cf0c526SNeeraj Upadhyay "gpio75", "gpio76",
10259cf0c526SNeeraj Upadhyay };
10269cf0c526SNeeraj Upadhyay static const char * const tgu_ch0_groups[] = {
10279cf0c526SNeeraj Upadhyay "gpio0",
10289cf0c526SNeeraj Upadhyay };
10299cf0c526SNeeraj Upadhyay static const char * const tgu_ch1_groups[] = {
10309cf0c526SNeeraj Upadhyay "gpio1",
10319cf0c526SNeeraj Upadhyay };
10329cf0c526SNeeraj Upadhyay static const char * const tsense_pwm1_groups[] = {
10339cf0c526SNeeraj Upadhyay "gpio71",
10349cf0c526SNeeraj Upadhyay };
10359cf0c526SNeeraj Upadhyay static const char * const tsense_pwm2_groups[] = {
10369cf0c526SNeeraj Upadhyay "gpio71",
10379cf0c526SNeeraj Upadhyay };
10389cf0c526SNeeraj Upadhyay static const char * const uim1_clk_groups[] = {
10399cf0c526SNeeraj Upadhyay "gpio88",
10409cf0c526SNeeraj Upadhyay };
10419cf0c526SNeeraj Upadhyay static const char * const uim1_data_groups[] = {
10429cf0c526SNeeraj Upadhyay "gpio87",
10439cf0c526SNeeraj Upadhyay };
10449cf0c526SNeeraj Upadhyay static const char * const uim1_present_groups[] = {
10459cf0c526SNeeraj Upadhyay "gpio90",
10469cf0c526SNeeraj Upadhyay };
10479cf0c526SNeeraj Upadhyay static const char * const uim1_reset_groups[] = {
10489cf0c526SNeeraj Upadhyay "gpio89",
10499cf0c526SNeeraj Upadhyay };
10509cf0c526SNeeraj Upadhyay static const char * const uim2_clk_groups[] = {
10519cf0c526SNeeraj Upadhyay "gpio84",
10529cf0c526SNeeraj Upadhyay };
10539cf0c526SNeeraj Upadhyay static const char * const uim2_data_groups[] = {
10549cf0c526SNeeraj Upadhyay "gpio83",
10559cf0c526SNeeraj Upadhyay };
10569cf0c526SNeeraj Upadhyay static const char * const uim2_present_groups[] = {
10579cf0c526SNeeraj Upadhyay "gpio86",
10589cf0c526SNeeraj Upadhyay };
10599cf0c526SNeeraj Upadhyay static const char * const uim2_reset_groups[] = {
10609cf0c526SNeeraj Upadhyay "gpio85",
10619cf0c526SNeeraj Upadhyay };
10629cf0c526SNeeraj Upadhyay static const char * const uim_batt_groups[] = {
10639cf0c526SNeeraj Upadhyay "gpio91",
10649cf0c526SNeeraj Upadhyay };
10659cf0c526SNeeraj Upadhyay static const char * const vfr_1_groups[] = {
10669cf0c526SNeeraj Upadhyay "gpio27",
10679cf0c526SNeeraj Upadhyay };
10689cf0c526SNeeraj Upadhyay static const char * const vsense_clkout_groups[] = {
10699cf0c526SNeeraj Upadhyay "gpio24",
10709cf0c526SNeeraj Upadhyay };
10719cf0c526SNeeraj Upadhyay static const char * const vsense_data0_groups[] = {
10729cf0c526SNeeraj Upadhyay "gpio21",
10739cf0c526SNeeraj Upadhyay };
10749cf0c526SNeeraj Upadhyay static const char * const vsense_data1_groups[] = {
10759cf0c526SNeeraj Upadhyay "gpio22",
10769cf0c526SNeeraj Upadhyay };
10779cf0c526SNeeraj Upadhyay static const char * const vsense_mode_groups[] = {
10789cf0c526SNeeraj Upadhyay "gpio23",
10799cf0c526SNeeraj Upadhyay };
10809cf0c526SNeeraj Upadhyay static const char * const wlan1_adc0_groups[] = {
10819cf0c526SNeeraj Upadhyay "gpio9",
10829cf0c526SNeeraj Upadhyay };
10839cf0c526SNeeraj Upadhyay static const char * const wlan1_adc1_groups[] = {
10849cf0c526SNeeraj Upadhyay "gpio8",
10859cf0c526SNeeraj Upadhyay };
10869cf0c526SNeeraj Upadhyay static const char * const wlan2_adc0_groups[] = {
10879cf0c526SNeeraj Upadhyay "gpio11",
10889cf0c526SNeeraj Upadhyay };
10899cf0c526SNeeraj Upadhyay static const char * const wlan2_adc1_groups[] = {
10909cf0c526SNeeraj Upadhyay "gpio10",
10919cf0c526SNeeraj Upadhyay };
10929cf0c526SNeeraj Upadhyay
1093c7a291dbSRohit Agarwal static const struct pinfunction sdm660_functions[] = {
1094c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(adsp_ext),
1095c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(agera_pll),
1096c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_char),
1097c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_char0),
1098c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_char1),
1099c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_char2),
1100c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_char3),
1101c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_gpsadc0),
1102c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_gpsadc1),
1103c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_tsens),
1104c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_tsens2),
1105c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb1),
1106c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb10),
1107c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb11),
1108c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb12),
1109c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb13),
1110c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb2),
1111c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb20),
1112c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb21),
1113c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb22),
1114c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(atest_usb23),
1115c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(audio_ref),
1116c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(bimc_dte0),
1117c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(bimc_dte1),
1118c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c1),
1119c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c2),
1120c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c3),
1121c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c4),
1122c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c5),
1123c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c6),
1124c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c7),
1125c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c8_a),
1126c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_i2c8_b),
1127c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi1),
1128c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi2),
1129c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi3),
1130c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi3_cs1),
1131c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi3_cs2),
1132c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi4),
1133c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi5),
1134c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi6),
1135c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi7),
1136c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi8_a),
1137c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi8_b),
1138c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi8_cs1),
1139c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_spi8_cs2),
1140c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uart1),
1141c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uart2),
1142c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uart5),
1143c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uart6_a),
1144c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uart6_b),
1145c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uim1),
1146c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uim2),
1147c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uim5),
1148c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(blsp_uim6),
1149c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(cam_mclk),
1150c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(cci_async),
1151c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(cci_i2c),
1152c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(cri_trng),
1153c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(cri_trng0),
1154c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(cri_trng1),
1155c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(dbg_out),
1156c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(ddr_bist),
1157c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(gcc_gp1),
1158c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(gcc_gp2),
1159c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(gcc_gp3),
1160c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(gpio),
1161c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(gps_tx_a),
1162c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(gps_tx_b),
1163c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(gps_tx_c),
1164c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(isense_dbg),
1165c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(jitter_bist),
1166c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(ldo_en),
1167c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(ldo_update),
1168c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(m_voc),
1169c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(mdp_vsync),
1170c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(mdss_vsync0),
1171c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(mdss_vsync1),
1172c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(mdss_vsync2),
1173c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(mdss_vsync3),
1174c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(mss_lte),
1175c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(nav_pps_a),
1176c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(nav_pps_b),
1177c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(nav_pps_c),
1178c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pa_indicator),
1179c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag0),
1180c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag1),
1181c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag2),
1182c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag3),
1183c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag4),
1184c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag5),
1185c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag6),
1186c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag7),
1187c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag8),
1188c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag9),
1189c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag10),
1190c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag11),
1191c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag12),
1192c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag13),
1193c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag14),
1194c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag15),
1195c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag16),
1196c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag17),
1197c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag18),
1198c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag19),
1199c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag20),
1200c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag21),
1201c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag22),
1202c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag23),
1203c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag24),
1204c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag25),
1205c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag26),
1206c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag27),
1207c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag28),
1208c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag29),
1209c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag30),
1210c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(phase_flag31),
1211c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pll_bypassnl),
1212c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pll_reset),
1213c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pri_mi2s),
1214c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pri_mi2s_ws),
1215c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(prng_rosc),
1216c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pwr_crypto),
1217c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pwr_modem),
1218c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(pwr_nav),
1219c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_cti0_a),
1220c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_cti0_b),
1221c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_cti1_a),
1222c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_cti1_b),
1223c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio),
1224c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio0),
1225c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio1),
1226c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio10),
1227c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio11),
1228c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio12),
1229c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio13),
1230c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio14),
1231c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio15),
1232c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio2),
1233c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio3),
1234c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio4),
1235c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio5),
1236c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio6),
1237c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio7),
1238c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio8),
1239c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qdss_gpio9),
1240c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qlink_enable),
1241c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qlink_request),
1242c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qspi_clk),
1243c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qspi_cs),
1244c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qspi_data0),
1245c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qspi_data1),
1246c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qspi_data2),
1247c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qspi_data3),
1248c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(qspi_resetn),
1249c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(sec_mi2s),
1250c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(sndwire_clk),
1251c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(sndwire_data),
1252c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(sp_cmu),
1253c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(ssc_irq),
1254c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(tgu_ch0),
1255c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(tgu_ch1),
1256c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(tsense_pwm1),
1257c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(tsense_pwm2),
1258c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim1_clk),
1259c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim1_data),
1260c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim1_present),
1261c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim1_reset),
1262c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim2_clk),
1263c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim2_data),
1264c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim2_present),
1265c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim2_reset),
1266c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(uim_batt),
1267c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(vfr_1),
1268c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(vsense_clkout),
1269c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(vsense_data0),
1270c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(vsense_data1),
1271c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(vsense_mode),
1272c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(wlan1_adc0),
1273c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(wlan1_adc1),
1274c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(wlan2_adc0),
1275c7a291dbSRohit Agarwal MSM_PIN_FUNCTION(wlan2_adc1),
12769cf0c526SNeeraj Upadhyay };
12779cf0c526SNeeraj Upadhyay
12789cf0c526SNeeraj Upadhyay static const struct msm_pingroup sdm660_groups[] = {
12799cf0c526SNeeraj Upadhyay PINGROUP(0, SOUTH, blsp_spi1, blsp_uart1, blsp_uim1, tgu_ch0, _, _, qdss_gpio4, atest_gpsadc1, _),
12809cf0c526SNeeraj Upadhyay PINGROUP(1, SOUTH, blsp_spi1, blsp_uart1, blsp_uim1, tgu_ch1, _, _, qdss_gpio5, atest_gpsadc0, _),
12819cf0c526SNeeraj Upadhyay PINGROUP(2, SOUTH, blsp_spi1, blsp_uart1, blsp_i2c1, _, _, _, _, _, _),
12829cf0c526SNeeraj Upadhyay PINGROUP(3, SOUTH, blsp_spi1, blsp_uart1, blsp_i2c1, ddr_bist, _, _, atest_tsens2, atest_usb1, _),
12839cf0c526SNeeraj Upadhyay PINGROUP(4, NORTH, blsp_spi2, blsp_uim2, blsp_uart2, phase_flag3, _, _, _, _, _),
12849cf0c526SNeeraj Upadhyay PINGROUP(5, SOUTH, blsp_spi2, blsp_uim2, blsp_uart2, phase_flag14, _, _, _, _, _),
12859cf0c526SNeeraj Upadhyay PINGROUP(6, SOUTH, blsp_spi2, blsp_i2c2, blsp_uart2, phase_flag31, _, _, _, _, _),
12869cf0c526SNeeraj Upadhyay PINGROUP(7, SOUTH, blsp_spi2, blsp_i2c2, blsp_uart2, _, _, _, _, _, _),
12879cf0c526SNeeraj Upadhyay PINGROUP(8, NORTH, blsp_spi3, ddr_bist, _, _, _, wlan1_adc1, atest_usb13, bimc_dte1, _),
12889cf0c526SNeeraj Upadhyay PINGROUP(9, NORTH, blsp_spi3, ddr_bist, _, _, _, wlan1_adc0, atest_usb12, bimc_dte0, _),
12899cf0c526SNeeraj Upadhyay PINGROUP(10, NORTH, blsp_spi3, blsp_i2c3, ddr_bist, _, _, wlan2_adc1, atest_usb11, bimc_dte1, _),
12909cf0c526SNeeraj Upadhyay PINGROUP(11, NORTH, blsp_spi3, blsp_i2c3, _, dbg_out, wlan2_adc0, atest_usb10, bimc_dte0, _, _),
12919cf0c526SNeeraj Upadhyay PINGROUP(12, NORTH, blsp_spi4, pri_mi2s, _, phase_flag26, qdss_cti1_b, _, _, _, _),
12929cf0c526SNeeraj Upadhyay PINGROUP(13, NORTH, blsp_spi4, _, pri_mi2s_ws, _, _, phase_flag27, qdss_cti0_b, _, _),
12939cf0c526SNeeraj Upadhyay PINGROUP(14, NORTH, blsp_spi4, blsp_i2c4, pri_mi2s, _, phase_flag28, _, _, _, _),
12949cf0c526SNeeraj Upadhyay PINGROUP(15, NORTH, blsp_spi4, blsp_i2c4, pri_mi2s, _, _, _, _, _, _),
12959cf0c526SNeeraj Upadhyay PINGROUP(16, CENTER, blsp_uart5, blsp_spi5, blsp_uim5, _, _, _, _, _, _),
12969cf0c526SNeeraj Upadhyay PINGROUP(17, CENTER, blsp_uart5, blsp_spi5, blsp_uim5, _, phase_flag5, _, _, _, _),
12979cf0c526SNeeraj Upadhyay PINGROUP(18, CENTER, blsp_uart5, blsp_spi5, blsp_i2c5, _, _, _, _, _, _),
12989cf0c526SNeeraj Upadhyay PINGROUP(19, CENTER, blsp_uart5, blsp_spi5, blsp_i2c5, _, _, _, _, _, _),
12999cf0c526SNeeraj Upadhyay PINGROUP(20, SOUTH, _, _, blsp_uim6, _, _, _, _, _, _),
13009cf0c526SNeeraj Upadhyay PINGROUP(21, SOUTH, _, _, blsp_uim6, _, phase_flag11, qdss_cti0_b, vsense_data0, _, _),
13019cf0c526SNeeraj Upadhyay PINGROUP(22, CENTER, blsp_spi6, _, blsp_i2c6, _, phase_flag12, vsense_data1, _, _, _),
13029cf0c526SNeeraj Upadhyay PINGROUP(23, CENTER, blsp_spi6, _, blsp_i2c6, _, phase_flag13, vsense_mode, _, _, _),
13039cf0c526SNeeraj Upadhyay PINGROUP(24, NORTH, blsp_spi7, blsp_uart6_a, sec_mi2s, sndwire_clk, _, _, phase_flag17, vsense_clkout, _),
13049cf0c526SNeeraj Upadhyay PINGROUP(25, NORTH, blsp_spi7, blsp_uart6_a, sec_mi2s, sndwire_data, _, _, phase_flag18, _, _),
13059cf0c526SNeeraj Upadhyay PINGROUP(26, NORTH, blsp_spi7, blsp_uart6_a, blsp_i2c7, sec_mi2s, _, phase_flag19, _, _, _),
13069cf0c526SNeeraj Upadhyay PINGROUP(27, NORTH, blsp_spi7, blsp_uart6_a, blsp_i2c7, vfr_1, sec_mi2s, _, phase_flag20, _, _),
13079cf0c526SNeeraj Upadhyay PINGROUP(28, CENTER, blsp_spi8_a, blsp_uart6_b, m_voc, _, phase_flag21, _, _, _, _),
13089cf0c526SNeeraj Upadhyay PINGROUP(29, CENTER, blsp_spi8_a, blsp_uart6_b, _, _, phase_flag22, _, _, _, _),
13099cf0c526SNeeraj Upadhyay PINGROUP(30, CENTER, blsp_spi8_a, blsp_uart6_b, blsp_i2c8_a, blsp_spi3_cs1, _, phase_flag23, _, _, _),
13109cf0c526SNeeraj Upadhyay PINGROUP(31, CENTER, blsp_spi8_a, blsp_uart6_b, blsp_i2c8_a, pwr_modem, _, phase_flag24, qdss_gpio, _, _),
13119cf0c526SNeeraj Upadhyay PINGROUP(32, SOUTH, cam_mclk, pwr_nav, _, _, qdss_gpio0, _, _, _, _),
13129cf0c526SNeeraj Upadhyay PINGROUP(33, SOUTH, cam_mclk, qspi_data0, pwr_crypto, _, _, qdss_gpio1, _, _, _),
13139cf0c526SNeeraj Upadhyay PINGROUP(34, SOUTH, cam_mclk, qspi_data1, agera_pll, _, _, qdss_gpio2, _, _, _),
13149cf0c526SNeeraj Upadhyay PINGROUP(35, SOUTH, cam_mclk, qspi_data2, jitter_bist, _, _, qdss_gpio3, _, atest_usb2, _),
13159cf0c526SNeeraj Upadhyay PINGROUP(36, SOUTH, cci_i2c, pll_bypassnl, agera_pll, _, _, qdss_gpio4, atest_tsens, atest_usb21, _),
13169cf0c526SNeeraj Upadhyay PINGROUP(37, SOUTH, cci_i2c, pll_reset, _, _, qdss_gpio5, atest_usb23, _, _, _),
13179cf0c526SNeeraj Upadhyay PINGROUP(38, SOUTH, cci_i2c, _, _, qdss_gpio6, _, _, _, _, _),
13189cf0c526SNeeraj Upadhyay PINGROUP(39, SOUTH, cci_i2c, _, _, qdss_gpio7, _, _, _, _, _),
13199cf0c526SNeeraj Upadhyay PINGROUP(40, SOUTH, _, _, blsp_spi8_b, _, _, _, _, _, _),
13209cf0c526SNeeraj Upadhyay PINGROUP(41, SOUTH, _, _, blsp_spi8_b, _, _, _, _, _, _),
13219cf0c526SNeeraj Upadhyay PINGROUP(42, SOUTH, mdss_vsync0, mdss_vsync1, mdss_vsync2, mdss_vsync3, _, _, qdss_gpio9, _, _),
13229cf0c526SNeeraj Upadhyay PINGROUP(43, SOUTH, _, _, qspi_cs, _, _, qdss_gpio10, _, _, _),
13239cf0c526SNeeraj Upadhyay PINGROUP(44, SOUTH, _, _, blsp_spi8_b, blsp_i2c8_b, _, _, qdss_gpio11, _, _),
13249cf0c526SNeeraj Upadhyay PINGROUP(45, SOUTH, cci_async, _, _, qdss_gpio12, _, _, _, _, _),
13259cf0c526SNeeraj Upadhyay PINGROUP(46, SOUTH, blsp_spi1, _, _, qdss_gpio13, _, _, _, _, _),
13269cf0c526SNeeraj Upadhyay PINGROUP(47, SOUTH, qspi_clk, _, phase_flag30, qdss_gpio14, _, _, _, _, _),
13279cf0c526SNeeraj Upadhyay PINGROUP(48, SOUTH, _, phase_flag1, qdss_gpio15, _, _, _, _, _, _),
13289cf0c526SNeeraj Upadhyay PINGROUP(49, SOUTH, blsp_spi6, phase_flag2, qdss_cti0_a, _, _, _, _, _, _),
13299cf0c526SNeeraj Upadhyay PINGROUP(50, SOUTH, qspi_cs, _, phase_flag9, qdss_cti0_a, _, _, _, _, _),
13309cf0c526SNeeraj Upadhyay PINGROUP(51, SOUTH, qspi_data3, _, phase_flag15, qdss_gpio8, _, _, _, _, _),
13319cf0c526SNeeraj Upadhyay PINGROUP(52, SOUTH, _, blsp_spi8_b, blsp_i2c8_b, blsp_spi6, phase_flag16, qdss_gpio, _, _, _),
13329cf0c526SNeeraj Upadhyay PINGROUP(53, NORTH, _, phase_flag6, qdss_cti1_a, _, _, _, _, _, _),
13339cf0c526SNeeraj Upadhyay PINGROUP(54, NORTH, _, _, phase_flag29, _, _, _, _, _, _),
13349cf0c526SNeeraj Upadhyay PINGROUP(55, SOUTH, _, phase_flag25, qdss_cti1_a, _, _, _, _, _, _),
13359cf0c526SNeeraj Upadhyay PINGROUP(56, SOUTH, _, phase_flag10, qdss_gpio3, _, atest_usb20, _, _, _, _),
13369cf0c526SNeeraj Upadhyay PINGROUP(57, SOUTH, gcc_gp1, _, phase_flag4, atest_usb22, _, _, _, _, _),
13379cf0c526SNeeraj Upadhyay PINGROUP(58, SOUTH, _, gcc_gp2, _, _, atest_char, _, _, _, _),
13389cf0c526SNeeraj Upadhyay PINGROUP(59, NORTH, mdp_vsync, gcc_gp3, _, _, atest_char3, _, _, _, _),
13399cf0c526SNeeraj Upadhyay PINGROUP(60, NORTH, cri_trng0, _, _, atest_char2, _, _, _, _, _),
13409cf0c526SNeeraj Upadhyay PINGROUP(61, NORTH, pri_mi2s, cri_trng1, _, _, atest_char1, _, _, _, _),
13419cf0c526SNeeraj Upadhyay PINGROUP(62, NORTH, sec_mi2s, audio_ref, _, cri_trng, _, _, atest_char0, _, _),
13429cf0c526SNeeraj Upadhyay PINGROUP(63, NORTH, _, _, _, qdss_gpio1, _, _, _, _, _),
13439cf0c526SNeeraj Upadhyay PINGROUP(64, SOUTH, blsp_spi8_cs1, sp_cmu, _, _, qdss_gpio2, _, _, _, _),
13449cf0c526SNeeraj Upadhyay PINGROUP(65, SOUTH, _, nav_pps_a, nav_pps_a, gps_tx_a, blsp_spi3_cs2, adsp_ext, _, _, _),
13459cf0c526SNeeraj Upadhyay PINGROUP(66, NORTH, _, _, qdss_cti1_b, _, _, _, _, _, _),
13469cf0c526SNeeraj Upadhyay PINGROUP(67, NORTH, _, _, qdss_gpio0, _, _, _, _, _, _),
13479cf0c526SNeeraj Upadhyay PINGROUP(68, NORTH, isense_dbg, _, phase_flag0, qdss_gpio, _, _, _, _, _),
13489cf0c526SNeeraj Upadhyay PINGROUP(69, NORTH, _, phase_flag7, qdss_gpio, _, _, _, _, _, _),
13499cf0c526SNeeraj Upadhyay PINGROUP(70, NORTH, _, phase_flag8, qdss_gpio6, _, _, _, _, _, _),
13509cf0c526SNeeraj Upadhyay PINGROUP(71, NORTH, _, _, qdss_gpio7, tsense_pwm1, tsense_pwm2, _, _, _, _),
13519cf0c526SNeeraj Upadhyay PINGROUP(72, NORTH, _, qdss_gpio14, _, _, _, _, _, _, _),
13529cf0c526SNeeraj Upadhyay PINGROUP(73, NORTH, _, _, qdss_gpio15, _, _, _, _, _, _),
13539cf0c526SNeeraj Upadhyay PINGROUP(74, NORTH, mdp_vsync, _, _, _, _, _, _, _, _),
13549cf0c526SNeeraj Upadhyay PINGROUP(75, NORTH, _, _, qdss_gpio8, _, _, _, _, _, _),
13559cf0c526SNeeraj Upadhyay PINGROUP(76, NORTH, blsp_spi8_cs2, _, _, _, qdss_gpio9, _, _, _, _),
13569cf0c526SNeeraj Upadhyay PINGROUP(77, NORTH, _, _, qdss_gpio10, _, _, _, _, _, _),
13579cf0c526SNeeraj Upadhyay PINGROUP(78, NORTH, gcc_gp1, _, qdss_gpio13, _, _, _, _, _, _),
13589cf0c526SNeeraj Upadhyay PINGROUP(79, SOUTH, _, _, qdss_gpio11, _, _, _, _, _, _),
13599cf0c526SNeeraj Upadhyay PINGROUP(80, SOUTH, nav_pps_b, nav_pps_b, gps_tx_c, _, _, qdss_gpio12, _, _, _),
13609cf0c526SNeeraj Upadhyay PINGROUP(81, CENTER, mss_lte, gcc_gp2, _, _, _, _, _, _, _),
13619cf0c526SNeeraj Upadhyay PINGROUP(82, CENTER, mss_lte, gcc_gp3, _, _, _, _, _, _, _),
13629cf0c526SNeeraj Upadhyay PINGROUP(83, SOUTH, uim2_data, _, _, _, _, _, _, _, _),
13639cf0c526SNeeraj Upadhyay PINGROUP(84, SOUTH, uim2_clk, _, _, _, _, _, _, _, _),
13649cf0c526SNeeraj Upadhyay PINGROUP(85, SOUTH, uim2_reset, _, _, _, _, _, _, _, _),
13659cf0c526SNeeraj Upadhyay PINGROUP(86, SOUTH, uim2_present, _, _, _, _, _, _, _, _),
13669cf0c526SNeeraj Upadhyay PINGROUP(87, SOUTH, uim1_data, _, _, _, _, _, _, _, _),
13679cf0c526SNeeraj Upadhyay PINGROUP(88, SOUTH, uim1_clk, _, _, _, _, _, _, _, _),
13689cf0c526SNeeraj Upadhyay PINGROUP(89, SOUTH, uim1_reset, _, _, _, _, _, _, _, _),
13699cf0c526SNeeraj Upadhyay PINGROUP(90, SOUTH, uim1_present, _, _, _, _, _, _, _, _),
13709cf0c526SNeeraj Upadhyay PINGROUP(91, SOUTH, uim_batt, _, _, _, _, _, _, _, _),
13719cf0c526SNeeraj Upadhyay PINGROUP(92, SOUTH, _, _, pa_indicator, _, _, _, _, _, _),
13729cf0c526SNeeraj Upadhyay PINGROUP(93, SOUTH, _, _, _, _, _, _, _, _, _),
13739cf0c526SNeeraj Upadhyay PINGROUP(94, SOUTH, _, _, _, _, _, _, _, _, _),
13749cf0c526SNeeraj Upadhyay PINGROUP(95, SOUTH, _, _, _, _, _, _, _, _, _),
13759cf0c526SNeeraj Upadhyay PINGROUP(96, SOUTH, _, _, _, _, _, _, _, _, _),
13769cf0c526SNeeraj Upadhyay PINGROUP(97, SOUTH, _, ldo_en, _, _, _, _, _, _, _),
13779cf0c526SNeeraj Upadhyay PINGROUP(98, SOUTH, _, nav_pps_c, nav_pps_c, gps_tx_b, ldo_update, _, _, _, _),
13789cf0c526SNeeraj Upadhyay PINGROUP(99, SOUTH, qlink_request, _, _, _, _, _, _, _, _),
13799cf0c526SNeeraj Upadhyay PINGROUP(100, SOUTH, qlink_enable, _, _, _, _, _, _, _, _),
13809cf0c526SNeeraj Upadhyay PINGROUP(101, SOUTH, _, _, _, _, _, _, _, _, _),
13819cf0c526SNeeraj Upadhyay PINGROUP(102, SOUTH, _, prng_rosc, _, _, _, _, _, _, _),
13829cf0c526SNeeraj Upadhyay PINGROUP(103, SOUTH, _, _, _, _, _, _, _, _, _),
13839cf0c526SNeeraj Upadhyay PINGROUP(104, SOUTH, _, _, _, _, _, _, _, _, _),
13849cf0c526SNeeraj Upadhyay PINGROUP(105, SOUTH, _, _, _, _, _, _, _, _, _),
13859cf0c526SNeeraj Upadhyay PINGROUP(106, SOUTH, _, _, _, _, _, _, _, _, _),
13869cf0c526SNeeraj Upadhyay PINGROUP(107, SOUTH, _, _, _, _, _, _, _, _, _),
13879cf0c526SNeeraj Upadhyay PINGROUP(108, SOUTH, _, _, _, _, _, _, _, _, _),
13889cf0c526SNeeraj Upadhyay PINGROUP(109, SOUTH, _, _, _, _, _, _, _, _, _),
13899cf0c526SNeeraj Upadhyay PINGROUP(110, SOUTH, _, _, _, _, _, _, _, _, _),
13909cf0c526SNeeraj Upadhyay PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _),
13919cf0c526SNeeraj Upadhyay PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _),
13929cf0c526SNeeraj Upadhyay PINGROUP(113, SOUTH, _, _, _, _, _, _, _, _, _),
13935db0b0a2SCraig Tatlor SDC_QDSD_PINGROUP(sdc1_clk, 0x9a000, 13, 6),
13945db0b0a2SCraig Tatlor SDC_QDSD_PINGROUP(sdc1_cmd, 0x9a000, 11, 3),
13955db0b0a2SCraig Tatlor SDC_QDSD_PINGROUP(sdc1_data, 0x9a000, 9, 0),
13965db0b0a2SCraig Tatlor SDC_QDSD_PINGROUP(sdc2_clk, 0x9b000, 14, 6),
13975db0b0a2SCraig Tatlor SDC_QDSD_PINGROUP(sdc2_cmd, 0x9b000, 11, 3),
13985db0b0a2SCraig Tatlor SDC_QDSD_PINGROUP(sdc2_data, 0x9b000, 9, 0),
13995db0b0a2SCraig Tatlor SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0),
14009cf0c526SNeeraj Upadhyay };
14019cf0c526SNeeraj Upadhyay
140268a2f05fSKonrad Dybcio static const struct msm_gpio_wakeirq_map sdm660_mpm_map[] = {
140368a2f05fSKonrad Dybcio { 1, 3 }, { 5, 4 }, { 9, 5 }, { 10, 6 }, { 66, 7 }, { 22, 8 }, { 25, 9 }, { 28, 10 },
140468a2f05fSKonrad Dybcio { 58, 11 }, { 41, 13 }, { 43, 14 }, { 40, 15 }, { 42, 16 }, { 46, 17 }, { 50, 18 },
140568a2f05fSKonrad Dybcio { 44, 19 }, { 56, 21 }, { 45, 22 }, { 68, 23 }, { 69, 24 }, { 70, 25 }, { 71, 26 },
140668a2f05fSKonrad Dybcio { 72, 27 }, { 73, 28 }, { 64, 29 }, { 2, 30 }, { 13, 31 }, { 111, 32 }, { 74, 33 },
140768a2f05fSKonrad Dybcio { 75, 34 }, { 76, 35 }, { 82, 36 }, { 17, 37 }, { 77, 38 }, { 47, 39 }, { 54, 40 },
140868a2f05fSKonrad Dybcio { 48, 41 }, { 101, 42 }, { 49, 43 }, { 51, 44 }, { 86, 45 }, { 90, 46 }, { 91, 47 },
140968a2f05fSKonrad Dybcio { 52, 48 }, { 55, 50 }, { 6, 51 }, { 65, 53 }, { 67, 55 }, { 83, 56 }, { 84, 57 },
141068a2f05fSKonrad Dybcio { 85, 58 }, { 87, 59 }, { 21, 63 }, { 78, 64 }, { 113, 65 }, { 60, 66 }, { 98, 67 },
141168a2f05fSKonrad Dybcio { 30, 68 }, { 31, 70 }, { 29, 71 }, { 107, 76 }, { 109, 83 }, { 103, 84 }, { 105, 85 },
141268a2f05fSKonrad Dybcio };
141368a2f05fSKonrad Dybcio
14149cf0c526SNeeraj Upadhyay static const struct msm_pinctrl_soc_data sdm660_pinctrl = {
14159cf0c526SNeeraj Upadhyay .pins = sdm660_pins,
14169cf0c526SNeeraj Upadhyay .npins = ARRAY_SIZE(sdm660_pins),
14179cf0c526SNeeraj Upadhyay .functions = sdm660_functions,
14189cf0c526SNeeraj Upadhyay .nfunctions = ARRAY_SIZE(sdm660_functions),
14199cf0c526SNeeraj Upadhyay .groups = sdm660_groups,
14209cf0c526SNeeraj Upadhyay .ngroups = ARRAY_SIZE(sdm660_groups),
14219cf0c526SNeeraj Upadhyay .ngpios = 114,
14229cf0c526SNeeraj Upadhyay .tiles = sdm660_tiles,
14239cf0c526SNeeraj Upadhyay .ntiles = ARRAY_SIZE(sdm660_tiles),
142468a2f05fSKonrad Dybcio .wakeirq_map = sdm660_mpm_map,
142568a2f05fSKonrad Dybcio .nwakeirq_map = ARRAY_SIZE(sdm660_mpm_map),
14269cf0c526SNeeraj Upadhyay };
14279cf0c526SNeeraj Upadhyay
sdm660_pinctrl_probe(struct platform_device * pdev)14289cf0c526SNeeraj Upadhyay static int sdm660_pinctrl_probe(struct platform_device *pdev)
14299cf0c526SNeeraj Upadhyay {
14309cf0c526SNeeraj Upadhyay return msm_pinctrl_probe(pdev, &sdm660_pinctrl);
14319cf0c526SNeeraj Upadhyay }
14329cf0c526SNeeraj Upadhyay
14339cf0c526SNeeraj Upadhyay static const struct of_device_id sdm660_pinctrl_of_match[] = {
14349cf0c526SNeeraj Upadhyay { .compatible = "qcom,sdm660-pinctrl", },
14359cf0c526SNeeraj Upadhyay { .compatible = "qcom,sdm630-pinctrl", },
14369cf0c526SNeeraj Upadhyay { },
14379cf0c526SNeeraj Upadhyay };
14389cf0c526SNeeraj Upadhyay
14399cf0c526SNeeraj Upadhyay static struct platform_driver sdm660_pinctrl_driver = {
14409cf0c526SNeeraj Upadhyay .driver = {
14419cf0c526SNeeraj Upadhyay .name = "sdm660-pinctrl",
14429cf0c526SNeeraj Upadhyay .of_match_table = sdm660_pinctrl_of_match,
14439cf0c526SNeeraj Upadhyay },
14449cf0c526SNeeraj Upadhyay .probe = sdm660_pinctrl_probe,
1445*22ee670aSUwe Kleine-König .remove_new = msm_pinctrl_remove,
14469cf0c526SNeeraj Upadhyay };
14479cf0c526SNeeraj Upadhyay
sdm660_pinctrl_init(void)14489cf0c526SNeeraj Upadhyay static int __init sdm660_pinctrl_init(void)
14499cf0c526SNeeraj Upadhyay {
14509cf0c526SNeeraj Upadhyay return platform_driver_register(&sdm660_pinctrl_driver);
14519cf0c526SNeeraj Upadhyay }
14529cf0c526SNeeraj Upadhyay arch_initcall(sdm660_pinctrl_init);
14539cf0c526SNeeraj Upadhyay
sdm660_pinctrl_exit(void)14549cf0c526SNeeraj Upadhyay static void __exit sdm660_pinctrl_exit(void)
14559cf0c526SNeeraj Upadhyay {
14569cf0c526SNeeraj Upadhyay platform_driver_unregister(&sdm660_pinctrl_driver);
14579cf0c526SNeeraj Upadhyay }
14589cf0c526SNeeraj Upadhyay module_exit(sdm660_pinctrl_exit);
14599cf0c526SNeeraj Upadhyay
14609cf0c526SNeeraj Upadhyay MODULE_DESCRIPTION("QTI sdm660 pinctrl driver");
14619cf0c526SNeeraj Upadhyay MODULE_LICENSE("GPL v2");
14629cf0c526SNeeraj Upadhyay MODULE_DEVICE_TABLE(of, sdm660_pinctrl_of_match);
1463