162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci * Copyright (c) 2022, Richard Acayan. All rights reserved. 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#include <linux/module.h> 862306a36Sopenharmony_ci#include <linux/of.h> 962306a36Sopenharmony_ci#include <linux/platform_device.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#include "pinctrl-msm.h" 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#define NORTH 0x00500000 1462306a36Sopenharmony_ci#define SOUTH 0x00900000 1562306a36Sopenharmony_ci#define WEST 0x00100000 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define REG_SIZE 0x1000 1862306a36Sopenharmony_ci#define PINGROUP(id, base, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 1962306a36Sopenharmony_ci { \ 2062306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP("gpio" #id, \ 2162306a36Sopenharmony_ci gpio##id##_pins, \ 2262306a36Sopenharmony_ci ARRAY_SIZE(gpio##id##_pins)), \ 2362306a36Sopenharmony_ci .funcs = (int[]){ \ 2462306a36Sopenharmony_ci msm_mux_gpio, /* gpio mode */ \ 2562306a36Sopenharmony_ci msm_mux_##f1, \ 2662306a36Sopenharmony_ci msm_mux_##f2, \ 2762306a36Sopenharmony_ci msm_mux_##f3, \ 2862306a36Sopenharmony_ci msm_mux_##f4, \ 2962306a36Sopenharmony_ci msm_mux_##f5, \ 3062306a36Sopenharmony_ci msm_mux_##f6, \ 3162306a36Sopenharmony_ci msm_mux_##f7, \ 3262306a36Sopenharmony_ci msm_mux_##f8, \ 3362306a36Sopenharmony_ci msm_mux_##f9 \ 3462306a36Sopenharmony_ci }, \ 3562306a36Sopenharmony_ci .nfuncs = 10, \ 3662306a36Sopenharmony_ci .ctl_reg = base + REG_SIZE * id, \ 3762306a36Sopenharmony_ci .io_reg = base + 0x4 + REG_SIZE * id, \ 3862306a36Sopenharmony_ci .intr_cfg_reg = base + 0x8 + REG_SIZE * id, \ 3962306a36Sopenharmony_ci .intr_status_reg = base + 0xc + REG_SIZE * id, \ 4062306a36Sopenharmony_ci .intr_target_reg = base + 0x8 + REG_SIZE * id, \ 4162306a36Sopenharmony_ci .mux_bit = 2, \ 4262306a36Sopenharmony_ci .pull_bit = 0, \ 4362306a36Sopenharmony_ci .drv_bit = 6, \ 4462306a36Sopenharmony_ci .oe_bit = 9, \ 4562306a36Sopenharmony_ci .in_bit = 0, \ 4662306a36Sopenharmony_ci .out_bit = 1, \ 4762306a36Sopenharmony_ci .intr_enable_bit = 0, \ 4862306a36Sopenharmony_ci .intr_status_bit = 0, \ 4962306a36Sopenharmony_ci .intr_target_bit = 5, \ 5062306a36Sopenharmony_ci .intr_target_kpss_val = 3, \ 5162306a36Sopenharmony_ci .intr_raw_status_bit = 4, \ 5262306a36Sopenharmony_ci .intr_polarity_bit = 1, \ 5362306a36Sopenharmony_ci .intr_detection_bit = 2, \ 5462306a36Sopenharmony_ci .intr_detection_width = 2, \ 5562306a36Sopenharmony_ci } 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci/* 5862306a36Sopenharmony_ci * A dummy pingroup is a pin group that cannot be assigned a function and has 5962306a36Sopenharmony_ci * no registers to control or monitor it. 6062306a36Sopenharmony_ci */ 6162306a36Sopenharmony_ci#define PINGROUP_DUMMY(id) \ 6262306a36Sopenharmony_ci { \ 6362306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP("gpio" #id, \ 6462306a36Sopenharmony_ci gpio##id##_pins, \ 6562306a36Sopenharmony_ci ARRAY_SIZE(gpio##id##_pins)), \ 6662306a36Sopenharmony_ci .ctl_reg = 0, \ 6762306a36Sopenharmony_ci .io_reg = 0, \ 6862306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 6962306a36Sopenharmony_ci .intr_status_reg = 0, \ 7062306a36Sopenharmony_ci .intr_target_reg = 0, \ 7162306a36Sopenharmony_ci .mux_bit = -1, \ 7262306a36Sopenharmony_ci .pull_bit = -1, \ 7362306a36Sopenharmony_ci .drv_bit = -1, \ 7462306a36Sopenharmony_ci .oe_bit = -1, \ 7562306a36Sopenharmony_ci .in_bit = -1, \ 7662306a36Sopenharmony_ci .out_bit = -1, \ 7762306a36Sopenharmony_ci .intr_enable_bit = -1, \ 7862306a36Sopenharmony_ci .intr_status_bit = -1, \ 7962306a36Sopenharmony_ci .intr_target_bit = -1, \ 8062306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 8162306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 8262306a36Sopenharmony_ci .intr_detection_bit = -1, \ 8362306a36Sopenharmony_ci .intr_detection_width = -1, \ 8462306a36Sopenharmony_ci } 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ 8762306a36Sopenharmony_ci { \ 8862306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 8962306a36Sopenharmony_ci pg_name##_pins, \ 9062306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 9162306a36Sopenharmony_ci .ctl_reg = ctl, \ 9262306a36Sopenharmony_ci .io_reg = 0, \ 9362306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 9462306a36Sopenharmony_ci .intr_status_reg = 0, \ 9562306a36Sopenharmony_ci .intr_target_reg = 0, \ 9662306a36Sopenharmony_ci .mux_bit = -1, \ 9762306a36Sopenharmony_ci .pull_bit = pull, \ 9862306a36Sopenharmony_ci .drv_bit = drv, \ 9962306a36Sopenharmony_ci .oe_bit = -1, \ 10062306a36Sopenharmony_ci .in_bit = -1, \ 10162306a36Sopenharmony_ci .out_bit = -1, \ 10262306a36Sopenharmony_ci .intr_enable_bit = -1, \ 10362306a36Sopenharmony_ci .intr_status_bit = -1, \ 10462306a36Sopenharmony_ci .intr_target_bit = -1, \ 10562306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 10662306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 10762306a36Sopenharmony_ci .intr_detection_bit = -1, \ 10862306a36Sopenharmony_ci .intr_detection_width = -1, \ 10962306a36Sopenharmony_ci } 11062306a36Sopenharmony_ci 11162306a36Sopenharmony_ci#define UFS_RESET(pg_name, offset) \ 11262306a36Sopenharmony_ci { \ 11362306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 11462306a36Sopenharmony_ci pg_name##_pins, \ 11562306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 11662306a36Sopenharmony_ci .ctl_reg = offset, \ 11762306a36Sopenharmony_ci .io_reg = offset + 0x4, \ 11862306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 11962306a36Sopenharmony_ci .intr_status_reg = 0, \ 12062306a36Sopenharmony_ci .intr_target_reg = 0, \ 12162306a36Sopenharmony_ci .mux_bit = -1, \ 12262306a36Sopenharmony_ci .pull_bit = 3, \ 12362306a36Sopenharmony_ci .drv_bit = 0, \ 12462306a36Sopenharmony_ci .oe_bit = -1, \ 12562306a36Sopenharmony_ci .in_bit = -1, \ 12662306a36Sopenharmony_ci .out_bit = 0, \ 12762306a36Sopenharmony_ci .intr_enable_bit = -1, \ 12862306a36Sopenharmony_ci .intr_status_bit = -1, \ 12962306a36Sopenharmony_ci .intr_target_bit = -1, \ 13062306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 13162306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 13262306a36Sopenharmony_ci .intr_detection_bit = -1, \ 13362306a36Sopenharmony_ci .intr_detection_width = -1, \ 13462306a36Sopenharmony_ci } 13562306a36Sopenharmony_ci 13662306a36Sopenharmony_cistatic const struct pinctrl_pin_desc sdm670_pins[] = { 13762306a36Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 13862306a36Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 13962306a36Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 14062306a36Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 14162306a36Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 14262306a36Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 14362306a36Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 14462306a36Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 14562306a36Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 14662306a36Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 14762306a36Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 14862306a36Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 14962306a36Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 15062306a36Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 15162306a36Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 15262306a36Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 15362306a36Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 15462306a36Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 15562306a36Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 15662306a36Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 15762306a36Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 15862306a36Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 15962306a36Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 16062306a36Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 16162306a36Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 16262306a36Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 16362306a36Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 16462306a36Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 16562306a36Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 16662306a36Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 16762306a36Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 16862306a36Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 16962306a36Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 17062306a36Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 17162306a36Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 17262306a36Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 17362306a36Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 17462306a36Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 17562306a36Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 17662306a36Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 17762306a36Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 17862306a36Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 17962306a36Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 18062306a36Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 18162306a36Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 18262306a36Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 18362306a36Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 18462306a36Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 18562306a36Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 18662306a36Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 18762306a36Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 18862306a36Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 18962306a36Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 19062306a36Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 19162306a36Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 19262306a36Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 19362306a36Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 19462306a36Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 19562306a36Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 19662306a36Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 19762306a36Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 19862306a36Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 19962306a36Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 20062306a36Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 20162306a36Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 20262306a36Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 20362306a36Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 20462306a36Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 20562306a36Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 20662306a36Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 20762306a36Sopenharmony_ci PINCTRL_PIN(70, "GPIO_70"), 20862306a36Sopenharmony_ci PINCTRL_PIN(71, "GPIO_71"), 20962306a36Sopenharmony_ci PINCTRL_PIN(72, "GPIO_72"), 21062306a36Sopenharmony_ci PINCTRL_PIN(73, "GPIO_73"), 21162306a36Sopenharmony_ci PINCTRL_PIN(74, "GPIO_74"), 21262306a36Sopenharmony_ci PINCTRL_PIN(75, "GPIO_75"), 21362306a36Sopenharmony_ci PINCTRL_PIN(76, "GPIO_76"), 21462306a36Sopenharmony_ci PINCTRL_PIN(77, "GPIO_77"), 21562306a36Sopenharmony_ci PINCTRL_PIN(78, "GPIO_78"), 21662306a36Sopenharmony_ci PINCTRL_PIN(79, "GPIO_79"), 21762306a36Sopenharmony_ci PINCTRL_PIN(80, "GPIO_80"), 21862306a36Sopenharmony_ci PINCTRL_PIN(81, "GPIO_81"), 21962306a36Sopenharmony_ci PINCTRL_PIN(82, "GPIO_82"), 22062306a36Sopenharmony_ci PINCTRL_PIN(83, "GPIO_83"), 22162306a36Sopenharmony_ci PINCTRL_PIN(84, "GPIO_84"), 22262306a36Sopenharmony_ci PINCTRL_PIN(85, "GPIO_85"), 22362306a36Sopenharmony_ci PINCTRL_PIN(86, "GPIO_86"), 22462306a36Sopenharmony_ci PINCTRL_PIN(87, "GPIO_87"), 22562306a36Sopenharmony_ci PINCTRL_PIN(88, "GPIO_88"), 22662306a36Sopenharmony_ci PINCTRL_PIN(89, "GPIO_89"), 22762306a36Sopenharmony_ci PINCTRL_PIN(90, "GPIO_90"), 22862306a36Sopenharmony_ci PINCTRL_PIN(91, "GPIO_91"), 22962306a36Sopenharmony_ci PINCTRL_PIN(92, "GPIO_92"), 23062306a36Sopenharmony_ci PINCTRL_PIN(93, "GPIO_93"), 23162306a36Sopenharmony_ci PINCTRL_PIN(94, "GPIO_94"), 23262306a36Sopenharmony_ci PINCTRL_PIN(95, "GPIO_95"), 23362306a36Sopenharmony_ci PINCTRL_PIN(96, "GPIO_96"), 23462306a36Sopenharmony_ci PINCTRL_PIN(97, "GPIO_97"), 23562306a36Sopenharmony_ci PINCTRL_PIN(98, "GPIO_98"), 23662306a36Sopenharmony_ci PINCTRL_PIN(99, "GPIO_99"), 23762306a36Sopenharmony_ci PINCTRL_PIN(100, "GPIO_100"), 23862306a36Sopenharmony_ci PINCTRL_PIN(101, "GPIO_101"), 23962306a36Sopenharmony_ci PINCTRL_PIN(102, "GPIO_102"), 24062306a36Sopenharmony_ci PINCTRL_PIN(103, "GPIO_103"), 24162306a36Sopenharmony_ci PINCTRL_PIN(104, "GPIO_104"), 24262306a36Sopenharmony_ci PINCTRL_PIN(105, "GPIO_105"), 24362306a36Sopenharmony_ci PINCTRL_PIN(106, "GPIO_106"), 24462306a36Sopenharmony_ci PINCTRL_PIN(107, "GPIO_107"), 24562306a36Sopenharmony_ci PINCTRL_PIN(108, "GPIO_108"), 24662306a36Sopenharmony_ci PINCTRL_PIN(109, "GPIO_109"), 24762306a36Sopenharmony_ci PINCTRL_PIN(110, "GPIO_110"), 24862306a36Sopenharmony_ci PINCTRL_PIN(111, "GPIO_111"), 24962306a36Sopenharmony_ci PINCTRL_PIN(112, "GPIO_112"), 25062306a36Sopenharmony_ci PINCTRL_PIN(113, "GPIO_113"), 25162306a36Sopenharmony_ci PINCTRL_PIN(114, "GPIO_114"), 25262306a36Sopenharmony_ci PINCTRL_PIN(115, "GPIO_115"), 25362306a36Sopenharmony_ci PINCTRL_PIN(116, "GPIO_116"), 25462306a36Sopenharmony_ci PINCTRL_PIN(117, "GPIO_117"), 25562306a36Sopenharmony_ci PINCTRL_PIN(118, "GPIO_118"), 25662306a36Sopenharmony_ci PINCTRL_PIN(119, "GPIO_119"), 25762306a36Sopenharmony_ci PINCTRL_PIN(120, "GPIO_120"), 25862306a36Sopenharmony_ci PINCTRL_PIN(121, "GPIO_121"), 25962306a36Sopenharmony_ci PINCTRL_PIN(122, "GPIO_122"), 26062306a36Sopenharmony_ci PINCTRL_PIN(123, "GPIO_123"), 26162306a36Sopenharmony_ci PINCTRL_PIN(124, "GPIO_124"), 26262306a36Sopenharmony_ci PINCTRL_PIN(125, "GPIO_125"), 26362306a36Sopenharmony_ci PINCTRL_PIN(126, "GPIO_126"), 26462306a36Sopenharmony_ci PINCTRL_PIN(127, "GPIO_127"), 26562306a36Sopenharmony_ci PINCTRL_PIN(128, "GPIO_128"), 26662306a36Sopenharmony_ci PINCTRL_PIN(129, "GPIO_129"), 26762306a36Sopenharmony_ci PINCTRL_PIN(130, "GPIO_130"), 26862306a36Sopenharmony_ci PINCTRL_PIN(131, "GPIO_131"), 26962306a36Sopenharmony_ci PINCTRL_PIN(132, "GPIO_132"), 27062306a36Sopenharmony_ci PINCTRL_PIN(133, "GPIO_133"), 27162306a36Sopenharmony_ci PINCTRL_PIN(134, "GPIO_134"), 27262306a36Sopenharmony_ci PINCTRL_PIN(135, "GPIO_135"), 27362306a36Sopenharmony_ci PINCTRL_PIN(136, "GPIO_136"), 27462306a36Sopenharmony_ci PINCTRL_PIN(137, "GPIO_137"), 27562306a36Sopenharmony_ci PINCTRL_PIN(138, "GPIO_138"), 27662306a36Sopenharmony_ci PINCTRL_PIN(139, "GPIO_139"), 27762306a36Sopenharmony_ci PINCTRL_PIN(140, "GPIO_140"), 27862306a36Sopenharmony_ci PINCTRL_PIN(141, "GPIO_141"), 27962306a36Sopenharmony_ci PINCTRL_PIN(142, "GPIO_142"), 28062306a36Sopenharmony_ci PINCTRL_PIN(143, "GPIO_143"), 28162306a36Sopenharmony_ci PINCTRL_PIN(144, "GPIO_144"), 28262306a36Sopenharmony_ci PINCTRL_PIN(145, "GPIO_145"), 28362306a36Sopenharmony_ci PINCTRL_PIN(146, "GPIO_146"), 28462306a36Sopenharmony_ci PINCTRL_PIN(147, "GPIO_147"), 28562306a36Sopenharmony_ci PINCTRL_PIN(148, "GPIO_148"), 28662306a36Sopenharmony_ci PINCTRL_PIN(149, "GPIO_149"), 28762306a36Sopenharmony_ci PINCTRL_PIN(150, "UFS_RESET"), 28862306a36Sopenharmony_ci PINCTRL_PIN(151, "SDC1_RCLK"), 28962306a36Sopenharmony_ci PINCTRL_PIN(152, "SDC1_CLK"), 29062306a36Sopenharmony_ci PINCTRL_PIN(153, "SDC1_CMD"), 29162306a36Sopenharmony_ci PINCTRL_PIN(154, "SDC1_DATA"), 29262306a36Sopenharmony_ci PINCTRL_PIN(155, "SDC2_CLK"), 29362306a36Sopenharmony_ci PINCTRL_PIN(156, "SDC2_CMD"), 29462306a36Sopenharmony_ci PINCTRL_PIN(157, "SDC2_DATA"), 29562306a36Sopenharmony_ci}; 29662306a36Sopenharmony_ci 29762306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \ 29862306a36Sopenharmony_ci static const unsigned int gpio##pin##_pins[] = { pin } 29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 35462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 35562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 35662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 35762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 35862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 35962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 36062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 36162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 36262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 36362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 36462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 36562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 36662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 36762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 36862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 36962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70); 37062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71); 37162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72); 37262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73); 37362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74); 37462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75); 37562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76); 37662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77); 37762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78); 37862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79); 37962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80); 38062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81); 38162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82); 38262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83); 38362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84); 38462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85); 38562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86); 38662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87); 38762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88); 38862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89); 38962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90); 39062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91); 39162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92); 39262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93); 39362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94); 39462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95); 39562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96); 39662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97); 39762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98); 39862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99); 39962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100); 40062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101); 40162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102); 40262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103); 40362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104); 40462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105); 40562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106); 40662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107); 40762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108); 40862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109); 40962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110); 41062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111); 41162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112); 41262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113); 41362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114); 41462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115); 41562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116); 41662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117); 41762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118); 41862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119); 41962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120); 42062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121); 42162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122); 42262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123); 42362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124); 42462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125); 42562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126); 42662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127); 42762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128); 42862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129); 42962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130); 43062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131); 43162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132); 43262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133); 43362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134); 43462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135); 43562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136); 43662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137); 43762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138); 43862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139); 43962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140); 44062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141); 44162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142); 44262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143); 44362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144); 44462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145); 44562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(146); 44662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(147); 44762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(148); 44862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(149); 44962306a36Sopenharmony_ci 45062306a36Sopenharmony_cistatic const unsigned int ufs_reset_pins[] = { 150 }; 45162306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 151 }; 45262306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 152 }; 45362306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 153 }; 45462306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 154 }; 45562306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 155 }; 45662306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 156 }; 45762306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 157 }; 45862306a36Sopenharmony_ci 45962306a36Sopenharmony_cienum sdm670_functions { 46062306a36Sopenharmony_ci msm_mux_gpio, 46162306a36Sopenharmony_ci msm_mux_adsp_ext, 46262306a36Sopenharmony_ci msm_mux_agera_pll, 46362306a36Sopenharmony_ci msm_mux_atest_char, 46462306a36Sopenharmony_ci msm_mux_atest_tsens, 46562306a36Sopenharmony_ci msm_mux_atest_tsens2, 46662306a36Sopenharmony_ci msm_mux_atest_usb1, 46762306a36Sopenharmony_ci msm_mux_atest_usb10, 46862306a36Sopenharmony_ci msm_mux_atest_usb11, 46962306a36Sopenharmony_ci msm_mux_atest_usb12, 47062306a36Sopenharmony_ci msm_mux_atest_usb13, 47162306a36Sopenharmony_ci msm_mux_atest_usb2, 47262306a36Sopenharmony_ci msm_mux_atest_usb20, 47362306a36Sopenharmony_ci msm_mux_atest_usb21, 47462306a36Sopenharmony_ci msm_mux_atest_usb22, 47562306a36Sopenharmony_ci msm_mux_atest_usb23, 47662306a36Sopenharmony_ci msm_mux_cam_mclk, 47762306a36Sopenharmony_ci msm_mux_cci_async, 47862306a36Sopenharmony_ci msm_mux_cci_i2c, 47962306a36Sopenharmony_ci msm_mux_cci_timer0, 48062306a36Sopenharmony_ci msm_mux_cci_timer1, 48162306a36Sopenharmony_ci msm_mux_cci_timer2, 48262306a36Sopenharmony_ci msm_mux_cci_timer3, 48362306a36Sopenharmony_ci msm_mux_cci_timer4, 48462306a36Sopenharmony_ci msm_mux_copy_gp, 48562306a36Sopenharmony_ci msm_mux_copy_phase, 48662306a36Sopenharmony_ci msm_mux_dbg_out, 48762306a36Sopenharmony_ci msm_mux_ddr_bist, 48862306a36Sopenharmony_ci msm_mux_ddr_pxi0, 48962306a36Sopenharmony_ci msm_mux_ddr_pxi1, 49062306a36Sopenharmony_ci msm_mux_ddr_pxi2, 49162306a36Sopenharmony_ci msm_mux_ddr_pxi3, 49262306a36Sopenharmony_ci msm_mux_edp_hot, 49362306a36Sopenharmony_ci msm_mux_edp_lcd, 49462306a36Sopenharmony_ci msm_mux_gcc_gp1, 49562306a36Sopenharmony_ci msm_mux_gcc_gp2, 49662306a36Sopenharmony_ci msm_mux_gcc_gp3, 49762306a36Sopenharmony_ci msm_mux_gp_pdm0, 49862306a36Sopenharmony_ci msm_mux_gp_pdm1, 49962306a36Sopenharmony_ci msm_mux_gp_pdm2, 50062306a36Sopenharmony_ci msm_mux_gps_tx, 50162306a36Sopenharmony_ci msm_mux_jitter_bist, 50262306a36Sopenharmony_ci msm_mux_ldo_en, 50362306a36Sopenharmony_ci msm_mux_ldo_update, 50462306a36Sopenharmony_ci msm_mux_lpass_slimbus, 50562306a36Sopenharmony_ci msm_mux_m_voc, 50662306a36Sopenharmony_ci msm_mux_mdp_vsync, 50762306a36Sopenharmony_ci msm_mux_mdp_vsync0, 50862306a36Sopenharmony_ci msm_mux_mdp_vsync1, 50962306a36Sopenharmony_ci msm_mux_mdp_vsync2, 51062306a36Sopenharmony_ci msm_mux_mdp_vsync3, 51162306a36Sopenharmony_ci msm_mux_mss_lte, 51262306a36Sopenharmony_ci msm_mux_nav_pps, 51362306a36Sopenharmony_ci msm_mux_pa_indicator, 51462306a36Sopenharmony_ci msm_mux_pci_e0, 51562306a36Sopenharmony_ci msm_mux_pci_e1, 51662306a36Sopenharmony_ci msm_mux_phase_flag, 51762306a36Sopenharmony_ci msm_mux_pll_bist, 51862306a36Sopenharmony_ci msm_mux_pll_bypassnl, 51962306a36Sopenharmony_ci msm_mux_pll_reset, 52062306a36Sopenharmony_ci msm_mux_pri_mi2s, 52162306a36Sopenharmony_ci msm_mux_pri_mi2s_ws, 52262306a36Sopenharmony_ci msm_mux_prng_rosc, 52362306a36Sopenharmony_ci msm_mux_qdss_cti, 52462306a36Sopenharmony_ci msm_mux_qdss, 52562306a36Sopenharmony_ci msm_mux_qlink_enable, 52662306a36Sopenharmony_ci msm_mux_qlink_request, 52762306a36Sopenharmony_ci msm_mux_qua_mi2s, 52862306a36Sopenharmony_ci msm_mux_qup0, 52962306a36Sopenharmony_ci msm_mux_qup1, 53062306a36Sopenharmony_ci msm_mux_qup10, 53162306a36Sopenharmony_ci msm_mux_qup11, 53262306a36Sopenharmony_ci msm_mux_qup12, 53362306a36Sopenharmony_ci msm_mux_qup13, 53462306a36Sopenharmony_ci msm_mux_qup14, 53562306a36Sopenharmony_ci msm_mux_qup15, 53662306a36Sopenharmony_ci msm_mux_qup2, 53762306a36Sopenharmony_ci msm_mux_qup3, 53862306a36Sopenharmony_ci msm_mux_qup4, 53962306a36Sopenharmony_ci msm_mux_qup5, 54062306a36Sopenharmony_ci msm_mux_qup6, 54162306a36Sopenharmony_ci msm_mux_qup7, 54262306a36Sopenharmony_ci msm_mux_qup8, 54362306a36Sopenharmony_ci msm_mux_qup9, 54462306a36Sopenharmony_ci msm_mux_qup_l4, 54562306a36Sopenharmony_ci msm_mux_qup_l5, 54662306a36Sopenharmony_ci msm_mux_qup_l6, 54762306a36Sopenharmony_ci msm_mux_sd_write, 54862306a36Sopenharmony_ci msm_mux_sdc4_clk, 54962306a36Sopenharmony_ci msm_mux_sdc4_cmd, 55062306a36Sopenharmony_ci msm_mux_sdc4_data, 55162306a36Sopenharmony_ci msm_mux_sec_mi2s, 55262306a36Sopenharmony_ci msm_mux_ter_mi2s, 55362306a36Sopenharmony_ci msm_mux_tgu_ch0, 55462306a36Sopenharmony_ci msm_mux_tgu_ch1, 55562306a36Sopenharmony_ci msm_mux_tgu_ch2, 55662306a36Sopenharmony_ci msm_mux_tgu_ch3, 55762306a36Sopenharmony_ci msm_mux_tsif1_clk, 55862306a36Sopenharmony_ci msm_mux_tsif1_data, 55962306a36Sopenharmony_ci msm_mux_tsif1_en, 56062306a36Sopenharmony_ci msm_mux_tsif1_error, 56162306a36Sopenharmony_ci msm_mux_tsif1_sync, 56262306a36Sopenharmony_ci msm_mux_tsif2_clk, 56362306a36Sopenharmony_ci msm_mux_tsif2_data, 56462306a36Sopenharmony_ci msm_mux_tsif2_en, 56562306a36Sopenharmony_ci msm_mux_tsif2_error, 56662306a36Sopenharmony_ci msm_mux_tsif2_sync, 56762306a36Sopenharmony_ci msm_mux_uim1_clk, 56862306a36Sopenharmony_ci msm_mux_uim1_data, 56962306a36Sopenharmony_ci msm_mux_uim1_present, 57062306a36Sopenharmony_ci msm_mux_uim1_reset, 57162306a36Sopenharmony_ci msm_mux_uim2_clk, 57262306a36Sopenharmony_ci msm_mux_uim2_data, 57362306a36Sopenharmony_ci msm_mux_uim2_present, 57462306a36Sopenharmony_ci msm_mux_uim2_reset, 57562306a36Sopenharmony_ci msm_mux_uim_batt, 57662306a36Sopenharmony_ci msm_mux_usb_phy, 57762306a36Sopenharmony_ci msm_mux_vfr_1, 57862306a36Sopenharmony_ci msm_mux_vsense_trigger, 57962306a36Sopenharmony_ci msm_mux_wlan1_adc0, 58062306a36Sopenharmony_ci msm_mux_wlan1_adc1, 58162306a36Sopenharmony_ci msm_mux_wlan2_adc0, 58262306a36Sopenharmony_ci msm_mux_wlan2_adc1, 58362306a36Sopenharmony_ci msm_mux_wsa_clk, 58462306a36Sopenharmony_ci msm_mux_wsa_data, 58562306a36Sopenharmony_ci msm_mux__, 58662306a36Sopenharmony_ci}; 58762306a36Sopenharmony_ci 58862306a36Sopenharmony_cistatic const char * const gpio_groups[] = { 58962306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 59062306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 59162306a36Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 59262306a36Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 59362306a36Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 59462306a36Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 59562306a36Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 59662306a36Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 59762306a36Sopenharmony_ci "gpio57", "gpio65", "gpio66", "gpio67", "gpio68", "gpio75", "gpio76", 59862306a36Sopenharmony_ci "gpio77", "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", 59962306a36Sopenharmony_ci "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", 60062306a36Sopenharmony_ci "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", 60162306a36Sopenharmony_ci "gpio98", "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", 60262306a36Sopenharmony_ci "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 60362306a36Sopenharmony_ci "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 60462306a36Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 60562306a36Sopenharmony_ci "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", 60662306a36Sopenharmony_ci "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134", 60762306a36Sopenharmony_ci "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", 60862306a36Sopenharmony_ci "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146", 60962306a36Sopenharmony_ci "gpio147", "gpio148", "gpio149", 61062306a36Sopenharmony_ci}; 61162306a36Sopenharmony_cistatic const char * const qup0_groups[] = { 61262306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", 61362306a36Sopenharmony_ci}; 61462306a36Sopenharmony_cistatic const char * const qup9_groups[] = { 61562306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7", 61662306a36Sopenharmony_ci}; 61762306a36Sopenharmony_cistatic const char * const qdss_cti_groups[] = { 61862306a36Sopenharmony_ci "gpio4", "gpio5", "gpio51", "gpio52", "gpio90", "gpio91", 61962306a36Sopenharmony_ci}; 62062306a36Sopenharmony_cistatic const char * const ddr_pxi0_groups[] = { 62162306a36Sopenharmony_ci "gpio6", "gpio7", 62262306a36Sopenharmony_ci}; 62362306a36Sopenharmony_cistatic const char * const ddr_bist_groups[] = { 62462306a36Sopenharmony_ci "gpio7", "gpio8", "gpio9", "gpio10", 62562306a36Sopenharmony_ci}; 62662306a36Sopenharmony_cistatic const char * const atest_tsens2_groups[] = { 62762306a36Sopenharmony_ci "gpio7", 62862306a36Sopenharmony_ci}; 62962306a36Sopenharmony_cistatic const char * const vsense_trigger_groups[] = { 63062306a36Sopenharmony_ci "gpio7", 63162306a36Sopenharmony_ci}; 63262306a36Sopenharmony_cistatic const char * const atest_usb1_groups[] = { 63362306a36Sopenharmony_ci "gpio7", 63462306a36Sopenharmony_ci}; 63562306a36Sopenharmony_cistatic const char * const qup_l4_groups[] = { 63662306a36Sopenharmony_ci "gpio8", "gpio35", "gpio75", "gpio105", "gpio123", 63762306a36Sopenharmony_ci}; 63862306a36Sopenharmony_cistatic const char * const gp_pdm1_groups[] = { 63962306a36Sopenharmony_ci "gpio8", "gpio66", 64062306a36Sopenharmony_ci}; 64162306a36Sopenharmony_cistatic const char * const qup_l5_groups[] = { 64262306a36Sopenharmony_ci "gpio9", "gpio36", "gpio76", "gpio106", "gpio124", 64362306a36Sopenharmony_ci}; 64462306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = { 64562306a36Sopenharmony_ci "gpio10", "gpio11", "gpio12", "gpio97", "gpio98", 64662306a36Sopenharmony_ci}; 64762306a36Sopenharmony_cistatic const char * const qup_l6_groups[] = { 64862306a36Sopenharmony_ci "gpio10", "gpio37", "gpio77", "gpio107", "gpio125", 64962306a36Sopenharmony_ci}; 65062306a36Sopenharmony_cistatic const char * const wlan2_adc1_groups[] = { 65162306a36Sopenharmony_ci "gpio10", 65262306a36Sopenharmony_ci}; 65362306a36Sopenharmony_cistatic const char * const atest_usb11_groups[] = { 65462306a36Sopenharmony_ci "gpio10", 65562306a36Sopenharmony_ci}; 65662306a36Sopenharmony_cistatic const char * const ddr_pxi2_groups[] = { 65762306a36Sopenharmony_ci "gpio10", "gpio11", 65862306a36Sopenharmony_ci}; 65962306a36Sopenharmony_cistatic const char * const edp_lcd_groups[] = { 66062306a36Sopenharmony_ci "gpio11", 66162306a36Sopenharmony_ci}; 66262306a36Sopenharmony_cistatic const char * const dbg_out_groups[] = { 66362306a36Sopenharmony_ci "gpio11", 66462306a36Sopenharmony_ci}; 66562306a36Sopenharmony_cistatic const char * const wlan2_adc0_groups[] = { 66662306a36Sopenharmony_ci "gpio11", 66762306a36Sopenharmony_ci}; 66862306a36Sopenharmony_cistatic const char * const atest_usb10_groups[] = { 66962306a36Sopenharmony_ci "gpio11", 67062306a36Sopenharmony_ci}; 67162306a36Sopenharmony_cistatic const char * const m_voc_groups[] = { 67262306a36Sopenharmony_ci "gpio12", 67362306a36Sopenharmony_ci}; 67462306a36Sopenharmony_cistatic const char * const tsif1_sync_groups[] = { 67562306a36Sopenharmony_ci "gpio12", 67662306a36Sopenharmony_ci}; 67762306a36Sopenharmony_cistatic const char * const ddr_pxi3_groups[] = { 67862306a36Sopenharmony_ci "gpio12", "gpio13", 67962306a36Sopenharmony_ci}; 68062306a36Sopenharmony_cistatic const char * const cam_mclk_groups[] = { 68162306a36Sopenharmony_ci "gpio13", "gpio14", "gpio15", "gpio16", 68262306a36Sopenharmony_ci}; 68362306a36Sopenharmony_cistatic const char * const pll_bypassnl_groups[] = { 68462306a36Sopenharmony_ci "gpio13", 68562306a36Sopenharmony_ci}; 68662306a36Sopenharmony_cistatic const char * const qdss_groups[] = { 68762306a36Sopenharmony_ci "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", 68862306a36Sopenharmony_ci "gpio20", "gpio21", "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", 68962306a36Sopenharmony_ci "gpio27", "gpio28", "gpio29", "gpio30", "gpio41", "gpio42", "gpio43", 69062306a36Sopenharmony_ci "gpio44", "gpio75", "gpio76", "gpio77", "gpio79", "gpio80", "gpio93", 69162306a36Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 69262306a36Sopenharmony_ci "gpio123", "gpio124", 69362306a36Sopenharmony_ci}; 69462306a36Sopenharmony_cistatic const char * const pll_reset_groups[] = { 69562306a36Sopenharmony_ci "gpio14", 69662306a36Sopenharmony_ci}; 69762306a36Sopenharmony_cistatic const char * const cci_i2c_groups[] = { 69862306a36Sopenharmony_ci "gpio17", "gpio18", "gpio19", "gpio20", 69962306a36Sopenharmony_ci}; 70062306a36Sopenharmony_cistatic const char * const qup1_groups[] = { 70162306a36Sopenharmony_ci "gpio17", "gpio18", "gpio19", "gpio20", 70262306a36Sopenharmony_ci}; 70362306a36Sopenharmony_cistatic const char * const cci_timer0_groups[] = { 70462306a36Sopenharmony_ci "gpio21", 70562306a36Sopenharmony_ci}; 70662306a36Sopenharmony_cistatic const char * const gcc_gp2_groups[] = { 70762306a36Sopenharmony_ci "gpio21", 70862306a36Sopenharmony_ci}; 70962306a36Sopenharmony_cistatic const char * const cci_timer1_groups[] = { 71062306a36Sopenharmony_ci "gpio22", 71162306a36Sopenharmony_ci}; 71262306a36Sopenharmony_cistatic const char * const gcc_gp3_groups[] = { 71362306a36Sopenharmony_ci "gpio22", 71462306a36Sopenharmony_ci}; 71562306a36Sopenharmony_cistatic const char * const cci_timer2_groups[] = { 71662306a36Sopenharmony_ci "gpio23", 71762306a36Sopenharmony_ci}; 71862306a36Sopenharmony_cistatic const char * const cci_timer3_groups[] = { 71962306a36Sopenharmony_ci "gpio24", 72062306a36Sopenharmony_ci}; 72162306a36Sopenharmony_cistatic const char * const cci_async_groups[] = { 72262306a36Sopenharmony_ci "gpio24", "gpio25", "gpio26", 72362306a36Sopenharmony_ci}; 72462306a36Sopenharmony_cistatic const char * const cci_timer4_groups[] = { 72562306a36Sopenharmony_ci "gpio25", 72662306a36Sopenharmony_ci}; 72762306a36Sopenharmony_cistatic const char * const jitter_bist_groups[] = { 72862306a36Sopenharmony_ci "gpio26", "gpio35", 72962306a36Sopenharmony_ci}; 73062306a36Sopenharmony_cistatic const char * const qup2_groups[] = { 73162306a36Sopenharmony_ci "gpio27", "gpio28", "gpio29", "gpio30", 73262306a36Sopenharmony_ci}; 73362306a36Sopenharmony_cistatic const char * const pll_bist_groups[] = { 73462306a36Sopenharmony_ci "gpio27", "gpio36", 73562306a36Sopenharmony_ci}; 73662306a36Sopenharmony_cistatic const char * const agera_pll_groups[] = { 73762306a36Sopenharmony_ci "gpio28", "gpio37", 73862306a36Sopenharmony_ci}; 73962306a36Sopenharmony_cistatic const char * const atest_tsens_groups[] = { 74062306a36Sopenharmony_ci "gpio29", 74162306a36Sopenharmony_ci}; 74262306a36Sopenharmony_cistatic const char * const phase_flag_groups[] = { 74362306a36Sopenharmony_ci "gpio29", "gpio30", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 74462306a36Sopenharmony_ci "gpio57", "gpio75", "gpio76", "gpio77", "gpio89", "gpio90", "gpio96", 74562306a36Sopenharmony_ci "gpio99", "gpio100", "gpio101", "gpio137", "gpio138", "gpio139", 74662306a36Sopenharmony_ci "gpio140", "gpio141", "gpio142", "gpio143", 74762306a36Sopenharmony_ci}; 74862306a36Sopenharmony_cistatic const char * const qup11_groups[] = { 74962306a36Sopenharmony_ci "gpio31", "gpio32", "gpio33", "gpio34", 75062306a36Sopenharmony_ci}; 75162306a36Sopenharmony_cistatic const char * const qup14_groups[] = { 75262306a36Sopenharmony_ci "gpio31", "gpio32", "gpio33", "gpio34", 75362306a36Sopenharmony_ci}; 75462306a36Sopenharmony_cistatic const char * const pci_e0_groups[] = { 75562306a36Sopenharmony_ci "gpio35", "gpio36", 75662306a36Sopenharmony_ci}; 75762306a36Sopenharmony_cistatic const char * const usb_phy_groups[] = { 75862306a36Sopenharmony_ci "gpio38", 75962306a36Sopenharmony_ci}; 76062306a36Sopenharmony_cistatic const char * const lpass_slimbus_groups[] = { 76162306a36Sopenharmony_ci "gpio39", 76262306a36Sopenharmony_ci}; 76362306a36Sopenharmony_cistatic const char * const sd_write_groups[] = { 76462306a36Sopenharmony_ci "gpio40", 76562306a36Sopenharmony_ci}; 76662306a36Sopenharmony_cistatic const char * const tsif1_error_groups[] = { 76762306a36Sopenharmony_ci "gpio40", 76862306a36Sopenharmony_ci}; 76962306a36Sopenharmony_cistatic const char * const qup3_groups[] = { 77062306a36Sopenharmony_ci "gpio41", "gpio42", "gpio43", "gpio44", 77162306a36Sopenharmony_ci}; 77262306a36Sopenharmony_cistatic const char * const qup6_groups[] = { 77362306a36Sopenharmony_ci "gpio45", "gpio46", "gpio47", "gpio48", 77462306a36Sopenharmony_ci}; 77562306a36Sopenharmony_cistatic const char * const qup12_groups[] = { 77662306a36Sopenharmony_ci "gpio49", "gpio50", "gpio51", "gpio52", 77762306a36Sopenharmony_ci}; 77862306a36Sopenharmony_cistatic const char * const qup10_groups[] = { 77962306a36Sopenharmony_ci "gpio53", "gpio54", "gpio55", "gpio56", 78062306a36Sopenharmony_ci}; 78162306a36Sopenharmony_cistatic const char * const gp_pdm0_groups[] = { 78262306a36Sopenharmony_ci "gpio54", "gpio95", 78362306a36Sopenharmony_ci}; 78462306a36Sopenharmony_cistatic const char * const wlan1_adc1_groups[] = { 78562306a36Sopenharmony_ci "gpio54", 78662306a36Sopenharmony_ci}; 78762306a36Sopenharmony_cistatic const char * const atest_usb13_groups[] = { 78862306a36Sopenharmony_ci "gpio54", 78962306a36Sopenharmony_ci}; 79062306a36Sopenharmony_cistatic const char * const ddr_pxi1_groups[] = { 79162306a36Sopenharmony_ci "gpio54", "gpio55", 79262306a36Sopenharmony_ci}; 79362306a36Sopenharmony_cistatic const char * const wlan1_adc0_groups[] = { 79462306a36Sopenharmony_ci "gpio55", 79562306a36Sopenharmony_ci}; 79662306a36Sopenharmony_cistatic const char * const atest_usb12_groups[] = { 79762306a36Sopenharmony_ci "gpio55", 79862306a36Sopenharmony_ci}; 79962306a36Sopenharmony_cistatic const char * const qua_mi2s_groups[] = { 80062306a36Sopenharmony_ci "gpio57", 80162306a36Sopenharmony_ci}; 80262306a36Sopenharmony_cistatic const char * const gcc_gp1_groups[] = { 80362306a36Sopenharmony_ci "gpio57", "gpio78", 80462306a36Sopenharmony_ci}; 80562306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = { 80662306a36Sopenharmony_ci "gpio65", "gpio67", "gpio68", 80762306a36Sopenharmony_ci}; 80862306a36Sopenharmony_cistatic const char * const qup8_groups[] = { 80962306a36Sopenharmony_ci "gpio65", "gpio66", "gpio67", "gpio68", 81062306a36Sopenharmony_ci}; 81162306a36Sopenharmony_cistatic const char * const wsa_clk_groups[] = { 81262306a36Sopenharmony_ci "gpio65", 81362306a36Sopenharmony_ci}; 81462306a36Sopenharmony_cistatic const char * const pri_mi2s_ws_groups[] = { 81562306a36Sopenharmony_ci "gpio66", 81662306a36Sopenharmony_ci}; 81762306a36Sopenharmony_cistatic const char * const wsa_data_groups[] = { 81862306a36Sopenharmony_ci "gpio66", 81962306a36Sopenharmony_ci}; 82062306a36Sopenharmony_cistatic const char * const atest_usb2_groups[] = { 82162306a36Sopenharmony_ci "gpio67", 82262306a36Sopenharmony_ci}; 82362306a36Sopenharmony_cistatic const char * const atest_usb23_groups[] = { 82462306a36Sopenharmony_ci "gpio68", 82562306a36Sopenharmony_ci}; 82662306a36Sopenharmony_cistatic const char * const ter_mi2s_groups[] = { 82762306a36Sopenharmony_ci "gpio75", "gpio76", "gpio77", "gpio78", 82862306a36Sopenharmony_ci}; 82962306a36Sopenharmony_cistatic const char * const atest_usb22_groups[] = { 83062306a36Sopenharmony_ci "gpio75", 83162306a36Sopenharmony_ci}; 83262306a36Sopenharmony_cistatic const char * const atest_usb21_groups[] = { 83362306a36Sopenharmony_ci "gpio76", 83462306a36Sopenharmony_ci}; 83562306a36Sopenharmony_cistatic const char * const atest_usb20_groups[] = { 83662306a36Sopenharmony_ci "gpio77", 83762306a36Sopenharmony_ci}; 83862306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = { 83962306a36Sopenharmony_ci "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", 84062306a36Sopenharmony_ci}; 84162306a36Sopenharmony_cistatic const char * const gp_pdm2_groups[] = { 84262306a36Sopenharmony_ci "gpio79", 84362306a36Sopenharmony_ci}; 84462306a36Sopenharmony_cistatic const char * const qup15_groups[] = { 84562306a36Sopenharmony_ci "gpio81", "gpio82", "gpio83", "gpio84", 84662306a36Sopenharmony_ci}; 84762306a36Sopenharmony_cistatic const char * const qup5_groups[] = { 84862306a36Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88", 84962306a36Sopenharmony_ci}; 85062306a36Sopenharmony_cistatic const char * const copy_gp_groups[] = { 85162306a36Sopenharmony_ci "gpio86", 85262306a36Sopenharmony_ci}; 85362306a36Sopenharmony_cistatic const char * const tsif1_clk_groups[] = { 85462306a36Sopenharmony_ci "gpio89", 85562306a36Sopenharmony_ci}; 85662306a36Sopenharmony_cistatic const char * const qup4_groups[] = { 85762306a36Sopenharmony_ci "gpio89", "gpio90", "gpio91", "gpio92", 85862306a36Sopenharmony_ci}; 85962306a36Sopenharmony_cistatic const char * const tgu_ch3_groups[] = { 86062306a36Sopenharmony_ci "gpio89", 86162306a36Sopenharmony_ci}; 86262306a36Sopenharmony_cistatic const char * const tsif1_en_groups[] = { 86362306a36Sopenharmony_ci "gpio90", 86462306a36Sopenharmony_ci}; 86562306a36Sopenharmony_cistatic const char * const mdp_vsync0_groups[] = { 86662306a36Sopenharmony_ci "gpio90", 86762306a36Sopenharmony_ci}; 86862306a36Sopenharmony_cistatic const char * const mdp_vsync1_groups[] = { 86962306a36Sopenharmony_ci "gpio90", 87062306a36Sopenharmony_ci}; 87162306a36Sopenharmony_cistatic const char * const mdp_vsync2_groups[] = { 87262306a36Sopenharmony_ci "gpio90", 87362306a36Sopenharmony_ci}; 87462306a36Sopenharmony_cistatic const char * const mdp_vsync3_groups[] = { 87562306a36Sopenharmony_ci "gpio90", 87662306a36Sopenharmony_ci}; 87762306a36Sopenharmony_cistatic const char * const tgu_ch0_groups[] = { 87862306a36Sopenharmony_ci "gpio90", 87962306a36Sopenharmony_ci}; 88062306a36Sopenharmony_cistatic const char * const tsif1_data_groups[] = { 88162306a36Sopenharmony_ci "gpio91", 88262306a36Sopenharmony_ci}; 88362306a36Sopenharmony_cistatic const char * const sdc4_cmd_groups[] = { 88462306a36Sopenharmony_ci "gpio91", 88562306a36Sopenharmony_ci}; 88662306a36Sopenharmony_cistatic const char * const tgu_ch1_groups[] = { 88762306a36Sopenharmony_ci "gpio91", 88862306a36Sopenharmony_ci}; 88962306a36Sopenharmony_cistatic const char * const tsif2_error_groups[] = { 89062306a36Sopenharmony_ci "gpio92", 89162306a36Sopenharmony_ci}; 89262306a36Sopenharmony_cistatic const char * const vfr_1_groups[] = { 89362306a36Sopenharmony_ci "gpio92", 89462306a36Sopenharmony_ci}; 89562306a36Sopenharmony_cistatic const char * const tgu_ch2_groups[] = { 89662306a36Sopenharmony_ci "gpio92", 89762306a36Sopenharmony_ci}; 89862306a36Sopenharmony_cistatic const char * const sdc4_data_groups[] = { 89962306a36Sopenharmony_ci "gpio92", "gpio94", "gpio95", "gpio96", 90062306a36Sopenharmony_ci}; 90162306a36Sopenharmony_cistatic const char * const tsif2_clk_groups[] = { 90262306a36Sopenharmony_ci "gpio93", 90362306a36Sopenharmony_ci}; 90462306a36Sopenharmony_cistatic const char * const sdc4_clk_groups[] = { 90562306a36Sopenharmony_ci "gpio93", 90662306a36Sopenharmony_ci}; 90762306a36Sopenharmony_cistatic const char * const qup7_groups[] = { 90862306a36Sopenharmony_ci "gpio93", "gpio94", "gpio95", "gpio96", 90962306a36Sopenharmony_ci}; 91062306a36Sopenharmony_cistatic const char * const tsif2_en_groups[] = { 91162306a36Sopenharmony_ci "gpio94", 91262306a36Sopenharmony_ci}; 91362306a36Sopenharmony_cistatic const char * const tsif2_data_groups[] = { 91462306a36Sopenharmony_ci "gpio95", 91562306a36Sopenharmony_ci}; 91662306a36Sopenharmony_cistatic const char * const tsif2_sync_groups[] = { 91762306a36Sopenharmony_ci "gpio96", 91862306a36Sopenharmony_ci}; 91962306a36Sopenharmony_cistatic const char * const ldo_en_groups[] = { 92062306a36Sopenharmony_ci "gpio97", 92162306a36Sopenharmony_ci}; 92262306a36Sopenharmony_cistatic const char * const ldo_update_groups[] = { 92362306a36Sopenharmony_ci "gpio98", 92462306a36Sopenharmony_ci}; 92562306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = { 92662306a36Sopenharmony_ci "gpio99", "gpio102", 92762306a36Sopenharmony_ci}; 92862306a36Sopenharmony_cistatic const char * const pci_e1_groups[] = { 92962306a36Sopenharmony_ci "gpio102", "gpio103", 93062306a36Sopenharmony_ci}; 93162306a36Sopenharmony_cistatic const char * const copy_phase_groups[] = { 93262306a36Sopenharmony_ci "gpio103", 93362306a36Sopenharmony_ci}; 93462306a36Sopenharmony_cistatic const char * const uim2_data_groups[] = { 93562306a36Sopenharmony_ci "gpio105", 93662306a36Sopenharmony_ci}; 93762306a36Sopenharmony_cistatic const char * const qup13_groups[] = { 93862306a36Sopenharmony_ci "gpio105", "gpio106", "gpio107", "gpio108", 93962306a36Sopenharmony_ci}; 94062306a36Sopenharmony_cistatic const char * const uim2_clk_groups[] = { 94162306a36Sopenharmony_ci "gpio106", 94262306a36Sopenharmony_ci}; 94362306a36Sopenharmony_cistatic const char * const uim2_reset_groups[] = { 94462306a36Sopenharmony_ci "gpio107", 94562306a36Sopenharmony_ci}; 94662306a36Sopenharmony_cistatic const char * const uim2_present_groups[] = { 94762306a36Sopenharmony_ci "gpio108", 94862306a36Sopenharmony_ci}; 94962306a36Sopenharmony_cistatic const char * const uim1_data_groups[] = { 95062306a36Sopenharmony_ci "gpio109", 95162306a36Sopenharmony_ci}; 95262306a36Sopenharmony_cistatic const char * const uim1_clk_groups[] = { 95362306a36Sopenharmony_ci "gpio110", 95462306a36Sopenharmony_ci}; 95562306a36Sopenharmony_cistatic const char * const uim1_reset_groups[] = { 95662306a36Sopenharmony_ci "gpio111", 95762306a36Sopenharmony_ci}; 95862306a36Sopenharmony_cistatic const char * const uim1_present_groups[] = { 95962306a36Sopenharmony_ci "gpio112", 96062306a36Sopenharmony_ci}; 96162306a36Sopenharmony_cistatic const char * const uim_batt_groups[] = { 96262306a36Sopenharmony_ci "gpio113", 96362306a36Sopenharmony_ci}; 96462306a36Sopenharmony_cistatic const char * const edp_hot_groups[] = { 96562306a36Sopenharmony_ci "gpio113", 96662306a36Sopenharmony_ci}; 96762306a36Sopenharmony_cistatic const char * const nav_pps_groups[] = { 96862306a36Sopenharmony_ci "gpio114", "gpio114", "gpio115", "gpio115", "gpio128", "gpio128", 96962306a36Sopenharmony_ci "gpio129", "gpio129", "gpio143", "gpio143", 97062306a36Sopenharmony_ci}; 97162306a36Sopenharmony_cistatic const char * const gps_tx_groups[] = { 97262306a36Sopenharmony_ci "gpio114", "gpio115", "gpio128", "gpio129", "gpio143", "gpio145", 97362306a36Sopenharmony_ci}; 97462306a36Sopenharmony_cistatic const char * const atest_char_groups[] = { 97562306a36Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", 97662306a36Sopenharmony_ci}; 97762306a36Sopenharmony_cistatic const char * const adsp_ext_groups[] = { 97862306a36Sopenharmony_ci "gpio118", 97962306a36Sopenharmony_ci}; 98062306a36Sopenharmony_cistatic const char * const qlink_request_groups[] = { 98162306a36Sopenharmony_ci "gpio130", 98262306a36Sopenharmony_ci}; 98362306a36Sopenharmony_cistatic const char * const qlink_enable_groups[] = { 98462306a36Sopenharmony_ci "gpio131", 98562306a36Sopenharmony_ci}; 98662306a36Sopenharmony_cistatic const char * const pa_indicator_groups[] = { 98762306a36Sopenharmony_ci "gpio135", 98862306a36Sopenharmony_ci}; 98962306a36Sopenharmony_cistatic const char * const mss_lte_groups[] = { 99062306a36Sopenharmony_ci "gpio144", "gpio145", 99162306a36Sopenharmony_ci}; 99262306a36Sopenharmony_ci 99362306a36Sopenharmony_cistatic const struct pinfunction sdm670_functions[] = { 99462306a36Sopenharmony_ci MSM_PIN_FUNCTION(gpio), 99562306a36Sopenharmony_ci MSM_PIN_FUNCTION(adsp_ext), 99662306a36Sopenharmony_ci MSM_PIN_FUNCTION(agera_pll), 99762306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char), 99862306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_tsens), 99962306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_tsens2), 100062306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb1), 100162306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb10), 100262306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb11), 100362306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb12), 100462306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb13), 100562306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb2), 100662306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb20), 100762306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb21), 100862306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb22), 100962306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_usb23), 101062306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk), 101162306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_async), 101262306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_i2c), 101362306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer0), 101462306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer1), 101562306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer2), 101662306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer3), 101762306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer4), 101862306a36Sopenharmony_ci MSM_PIN_FUNCTION(copy_gp), 101962306a36Sopenharmony_ci MSM_PIN_FUNCTION(copy_phase), 102062306a36Sopenharmony_ci MSM_PIN_FUNCTION(dbg_out), 102162306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_bist), 102262306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi0), 102362306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi1), 102462306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi2), 102562306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi3), 102662306a36Sopenharmony_ci MSM_PIN_FUNCTION(edp_hot), 102762306a36Sopenharmony_ci MSM_PIN_FUNCTION(edp_lcd), 102862306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp1), 102962306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp2), 103062306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp3), 103162306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp_pdm0), 103262306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp_pdm1), 103362306a36Sopenharmony_ci MSM_PIN_FUNCTION(gp_pdm2), 103462306a36Sopenharmony_ci MSM_PIN_FUNCTION(gps_tx), 103562306a36Sopenharmony_ci MSM_PIN_FUNCTION(jitter_bist), 103662306a36Sopenharmony_ci MSM_PIN_FUNCTION(ldo_en), 103762306a36Sopenharmony_ci MSM_PIN_FUNCTION(ldo_update), 103862306a36Sopenharmony_ci MSM_PIN_FUNCTION(lpass_slimbus), 103962306a36Sopenharmony_ci MSM_PIN_FUNCTION(m_voc), 104062306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync), 104162306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync0), 104262306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync1), 104362306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync2), 104462306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync3), 104562306a36Sopenharmony_ci MSM_PIN_FUNCTION(mss_lte), 104662306a36Sopenharmony_ci MSM_PIN_FUNCTION(nav_pps), 104762306a36Sopenharmony_ci MSM_PIN_FUNCTION(pa_indicator), 104862306a36Sopenharmony_ci MSM_PIN_FUNCTION(pci_e0), 104962306a36Sopenharmony_ci MSM_PIN_FUNCTION(pci_e1), 105062306a36Sopenharmony_ci MSM_PIN_FUNCTION(phase_flag), 105162306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_bist), 105262306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_bypassnl), 105362306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_reset), 105462306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s), 105562306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s_ws), 105662306a36Sopenharmony_ci MSM_PIN_FUNCTION(prng_rosc), 105762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_cti), 105862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss), 105962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink_enable), 106062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink_request), 106162306a36Sopenharmony_ci MSM_PIN_FUNCTION(qua_mi2s), 106262306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup0), 106362306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup1), 106462306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup10), 106562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup11), 106662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup12), 106762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup13), 106862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup14), 106962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup15), 107062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup2), 107162306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup3), 107262306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup4), 107362306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup5), 107462306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup6), 107562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup7), 107662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup8), 107762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup9), 107862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup_l4), 107962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup_l5), 108062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup_l6), 108162306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc4_clk), 108262306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc4_cmd), 108362306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc4_data), 108462306a36Sopenharmony_ci MSM_PIN_FUNCTION(sd_write), 108562306a36Sopenharmony_ci MSM_PIN_FUNCTION(sec_mi2s), 108662306a36Sopenharmony_ci MSM_PIN_FUNCTION(ter_mi2s), 108762306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch0), 108862306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch1), 108962306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch2), 109062306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch3), 109162306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_clk), 109262306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_data), 109362306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_en), 109462306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_error), 109562306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_sync), 109662306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif2_clk), 109762306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif2_data), 109862306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif2_en), 109962306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif2_error), 110062306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif2_sync), 110162306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_clk), 110262306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_data), 110362306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_present), 110462306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_reset), 110562306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_clk), 110662306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_data), 110762306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_present), 110862306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_reset), 110962306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim_batt), 111062306a36Sopenharmony_ci MSM_PIN_FUNCTION(usb_phy), 111162306a36Sopenharmony_ci MSM_PIN_FUNCTION(vfr_1), 111262306a36Sopenharmony_ci MSM_PIN_FUNCTION(vsense_trigger), 111362306a36Sopenharmony_ci MSM_PIN_FUNCTION(wlan1_adc0), 111462306a36Sopenharmony_ci MSM_PIN_FUNCTION(wlan1_adc1), 111562306a36Sopenharmony_ci MSM_PIN_FUNCTION(wlan2_adc0), 111662306a36Sopenharmony_ci MSM_PIN_FUNCTION(wlan2_adc1), 111762306a36Sopenharmony_ci MSM_PIN_FUNCTION(wsa_clk), 111862306a36Sopenharmony_ci MSM_PIN_FUNCTION(wsa_data), 111962306a36Sopenharmony_ci}; 112062306a36Sopenharmony_ci 112162306a36Sopenharmony_ci/* 112262306a36Sopenharmony_ci * Each pin is individually controlled by its own group and gpios that cannot 112362306a36Sopenharmony_ci * be requested are represented by the PINGROUP_DUMMY macro so that the group 112462306a36Sopenharmony_ci * numbers and names correspond to their respective gpio. These dummy pins do 112562306a36Sopenharmony_ci * not have a valid set of pinfuncs or a valid ctl_reg and should not be 112662306a36Sopenharmony_ci * requested. 112762306a36Sopenharmony_ci */ 112862306a36Sopenharmony_cistatic const struct msm_pingroup sdm670_groups[] = { 112962306a36Sopenharmony_ci PINGROUP(0, SOUTH, qup0, _, _, _, _, _, _, _, _), 113062306a36Sopenharmony_ci PINGROUP(1, SOUTH, qup0, _, _, _, _, _, _, _, _), 113162306a36Sopenharmony_ci PINGROUP(2, SOUTH, qup0, _, _, _, _, _, _, _, _), 113262306a36Sopenharmony_ci PINGROUP(3, SOUTH, qup0, _, _, _, _, _, _, _, _), 113362306a36Sopenharmony_ci PINGROUP(4, NORTH, qup9, qdss_cti, _, _, _, _, _, _, _), 113462306a36Sopenharmony_ci PINGROUP(5, NORTH, qup9, qdss_cti, _, _, _, _, _, _, _), 113562306a36Sopenharmony_ci PINGROUP(6, NORTH, qup9, _, ddr_pxi0, _, _, _, _, _, _), 113662306a36Sopenharmony_ci PINGROUP(7, NORTH, qup9, ddr_bist, _, atest_tsens2, vsense_trigger, atest_usb1, ddr_pxi0, _, _), 113762306a36Sopenharmony_ci PINGROUP(8, WEST, qup_l4, gp_pdm1, ddr_bist, _, _, _, _, _, _), 113862306a36Sopenharmony_ci PINGROUP(9, WEST, qup_l5, ddr_bist, _, _, _, _, _, _, _), 113962306a36Sopenharmony_ci PINGROUP(10, NORTH, mdp_vsync, qup_l6, ddr_bist, wlan2_adc1, atest_usb11, ddr_pxi2, _, _, _), 114062306a36Sopenharmony_ci PINGROUP(11, NORTH, mdp_vsync, edp_lcd, dbg_out, wlan2_adc0, atest_usb10, ddr_pxi2, _, _, _), 114162306a36Sopenharmony_ci PINGROUP(12, SOUTH, mdp_vsync, m_voc, tsif1_sync, ddr_pxi3, _, _, _, _, _), 114262306a36Sopenharmony_ci PINGROUP(13, WEST, cam_mclk, pll_bypassnl, qdss, ddr_pxi3, _, _, _, _, _), 114362306a36Sopenharmony_ci PINGROUP(14, WEST, cam_mclk, pll_reset, qdss, _, _, _, _, _, _), 114462306a36Sopenharmony_ci PINGROUP(15, WEST, cam_mclk, qdss, _, _, _, _, _, _, _), 114562306a36Sopenharmony_ci PINGROUP(16, WEST, cam_mclk, qdss, _, _, _, _, _, _, _), 114662306a36Sopenharmony_ci PINGROUP(17, WEST, cci_i2c, qup1, qdss, _, _, _, _, _, _), 114762306a36Sopenharmony_ci PINGROUP(18, WEST, cci_i2c, qup1, _, qdss, _, _, _, _, _), 114862306a36Sopenharmony_ci PINGROUP(19, WEST, cci_i2c, qup1, _, qdss, _, _, _, _, _), 114962306a36Sopenharmony_ci PINGROUP(20, WEST, cci_i2c, qup1, _, qdss, _, _, _, _, _), 115062306a36Sopenharmony_ci PINGROUP(21, WEST, cci_timer0, gcc_gp2, qdss, _, _, _, _, _, _), 115162306a36Sopenharmony_ci PINGROUP(22, WEST, cci_timer1, gcc_gp3, qdss, _, _, _, _, _, _), 115262306a36Sopenharmony_ci PINGROUP(23, WEST, cci_timer2, qdss, _, _, _, _, _, _, _), 115362306a36Sopenharmony_ci PINGROUP(24, WEST, cci_timer3, cci_async, qdss, _, _, _, _, _, _), 115462306a36Sopenharmony_ci PINGROUP(25, WEST, cci_timer4, cci_async, qdss, _, _, _, _, _, _), 115562306a36Sopenharmony_ci PINGROUP(26, WEST, cci_async, qdss, jitter_bist, _, _, _, _, _, _), 115662306a36Sopenharmony_ci PINGROUP(27, WEST, qup2, qdss, pll_bist, _, _, _, _, _, _), 115762306a36Sopenharmony_ci PINGROUP(28, WEST, qup2, qdss, agera_pll, _, _, _, _, _, _), 115862306a36Sopenharmony_ci PINGROUP(29, WEST, qup2, _, phase_flag, qdss, atest_tsens, _, _, _, _), 115962306a36Sopenharmony_ci PINGROUP(30, WEST, qup2, phase_flag, qdss, _, _, _, _, _, _), 116062306a36Sopenharmony_ci PINGROUP(31, WEST, qup11, qup14, _, _, _, _, _, _, _), 116162306a36Sopenharmony_ci PINGROUP(32, WEST, qup11, qup14, _, _, _, _, _, _, _), 116262306a36Sopenharmony_ci PINGROUP(33, WEST, qup11, qup14, _, _, _, _, _, _, _), 116362306a36Sopenharmony_ci PINGROUP(34, WEST, qup11, qup14, _, _, _, _, _, _, _), 116462306a36Sopenharmony_ci PINGROUP(35, NORTH, pci_e0, qup_l4, jitter_bist, _, _, _, _, _, _), 116562306a36Sopenharmony_ci PINGROUP(36, NORTH, pci_e0, qup_l5, pll_bist, _, _, _, _, _, _), 116662306a36Sopenharmony_ci PINGROUP(37, NORTH, qup_l6, agera_pll, _, _, _, _, _, _, _), 116762306a36Sopenharmony_ci PINGROUP(38, NORTH, usb_phy, _, _, _, _, _, _, _, _), 116862306a36Sopenharmony_ci PINGROUP(39, NORTH, lpass_slimbus, _, _, _, _, _, _, _, _), 116962306a36Sopenharmony_ci PINGROUP(40, NORTH, sd_write, tsif1_error, _, _, _, _, _, _, _), 117062306a36Sopenharmony_ci PINGROUP(41, SOUTH, qup3, _, qdss, _, _, _, _, _, _), 117162306a36Sopenharmony_ci PINGROUP(42, SOUTH, qup3, _, qdss, _, _, _, _, _, _), 117262306a36Sopenharmony_ci PINGROUP(43, SOUTH, qup3, _, qdss, _, _, _, _, _, _), 117362306a36Sopenharmony_ci PINGROUP(44, SOUTH, qup3, _, qdss, _, _, _, _, _, _), 117462306a36Sopenharmony_ci PINGROUP(45, SOUTH, qup6, _, _, _, _, _, _, _, _), 117562306a36Sopenharmony_ci PINGROUP(46, SOUTH, qup6, _, _, _, _, _, _, _, _), 117662306a36Sopenharmony_ci PINGROUP(47, SOUTH, qup6, _, _, _, _, _, _, _, _), 117762306a36Sopenharmony_ci PINGROUP(48, SOUTH, qup6, _, _, _, _, _, _, _, _), 117862306a36Sopenharmony_ci PINGROUP(49, NORTH, qup12, _, _, _, _, _, _, _, _), 117962306a36Sopenharmony_ci PINGROUP(50, NORTH, qup12, _, _, _, _, _, _, _, _), 118062306a36Sopenharmony_ci PINGROUP(51, NORTH, qup12, qdss_cti, _, _, _, _, _, _, _), 118162306a36Sopenharmony_ci PINGROUP(52, NORTH, qup12, phase_flag, qdss_cti, _, _, _, _, _, _), 118262306a36Sopenharmony_ci PINGROUP(53, NORTH, qup10, phase_flag, _, _, _, _, _, _, _), 118362306a36Sopenharmony_ci PINGROUP(54, NORTH, qup10, gp_pdm0, phase_flag, _, wlan1_adc1, atest_usb13, ddr_pxi1, _, _), 118462306a36Sopenharmony_ci PINGROUP(55, NORTH, qup10, phase_flag, _, wlan1_adc0, atest_usb12, ddr_pxi1, _, _, _), 118562306a36Sopenharmony_ci PINGROUP(56, NORTH, qup10, phase_flag, _, _, _, _, _, _, _), 118662306a36Sopenharmony_ci PINGROUP(57, NORTH, qua_mi2s, gcc_gp1, phase_flag, _, _, _, _, _, _), 118762306a36Sopenharmony_ci PINGROUP_DUMMY(58), 118862306a36Sopenharmony_ci PINGROUP_DUMMY(59), 118962306a36Sopenharmony_ci PINGROUP_DUMMY(60), 119062306a36Sopenharmony_ci PINGROUP_DUMMY(61), 119162306a36Sopenharmony_ci PINGROUP_DUMMY(62), 119262306a36Sopenharmony_ci PINGROUP_DUMMY(63), 119362306a36Sopenharmony_ci PINGROUP_DUMMY(64), 119462306a36Sopenharmony_ci PINGROUP(65, NORTH, pri_mi2s, qup8, wsa_clk, _, _, _, _, _, _), 119562306a36Sopenharmony_ci PINGROUP(66, NORTH, pri_mi2s_ws, qup8, wsa_data, gp_pdm1, _, _, _, _, _), 119662306a36Sopenharmony_ci PINGROUP(67, NORTH, pri_mi2s, qup8, _, atest_usb2, _, _, _, _, _), 119762306a36Sopenharmony_ci PINGROUP(68, NORTH, pri_mi2s, qup8, _, atest_usb23, _, _, _, _, _), 119862306a36Sopenharmony_ci PINGROUP_DUMMY(69), 119962306a36Sopenharmony_ci PINGROUP_DUMMY(70), 120062306a36Sopenharmony_ci PINGROUP_DUMMY(71), 120162306a36Sopenharmony_ci PINGROUP_DUMMY(72), 120262306a36Sopenharmony_ci PINGROUP_DUMMY(73), 120362306a36Sopenharmony_ci PINGROUP_DUMMY(74), 120462306a36Sopenharmony_ci PINGROUP(75, NORTH, ter_mi2s, phase_flag, qdss, atest_usb22, qup_l4, _, _, _, _), 120562306a36Sopenharmony_ci PINGROUP(76, NORTH, ter_mi2s, phase_flag, qdss, atest_usb21, qup_l5, _, _, _, _), 120662306a36Sopenharmony_ci PINGROUP(77, NORTH, ter_mi2s, phase_flag, qdss, atest_usb20, qup_l6, _, _, _, _), 120762306a36Sopenharmony_ci PINGROUP(78, NORTH, ter_mi2s, gcc_gp1, _, _, _, _, _, _, _), 120862306a36Sopenharmony_ci PINGROUP(79, NORTH, sec_mi2s, gp_pdm2, _, qdss, _, _, _, _, _), 120962306a36Sopenharmony_ci PINGROUP(80, NORTH, sec_mi2s, _, qdss, _, _, _, _, _, _), 121062306a36Sopenharmony_ci PINGROUP(81, NORTH, sec_mi2s, qup15, _, _, _, _, _, _, _), 121162306a36Sopenharmony_ci PINGROUP(82, NORTH, sec_mi2s, qup15, _, _, _, _, _, _, _), 121262306a36Sopenharmony_ci PINGROUP(83, NORTH, sec_mi2s, qup15, _, _, _, _, _, _, _), 121362306a36Sopenharmony_ci PINGROUP(84, NORTH, qup15, _, _, _, _, _, _, _, _), 121462306a36Sopenharmony_ci PINGROUP(85, SOUTH, qup5, _, _, _, _, _, _, _, _), 121562306a36Sopenharmony_ci PINGROUP(86, SOUTH, qup5, copy_gp, _, _, _, _, _, _, _), 121662306a36Sopenharmony_ci PINGROUP(87, SOUTH, qup5, _, _, _, _, _, _, _, _), 121762306a36Sopenharmony_ci PINGROUP(88, SOUTH, qup5, _, _, _, _, _, _, _, _), 121862306a36Sopenharmony_ci PINGROUP(89, SOUTH, tsif1_clk, qup4, tgu_ch3, phase_flag, _, _, _, _, _), 121962306a36Sopenharmony_ci PINGROUP(90, SOUTH, tsif1_en, mdp_vsync0, qup4, mdp_vsync1, mdp_vsync2, mdp_vsync3, tgu_ch0, phase_flag, qdss_cti), 122062306a36Sopenharmony_ci PINGROUP(91, SOUTH, tsif1_data, sdc4_cmd, qup4, tgu_ch1, _, qdss_cti, _, _, _), 122162306a36Sopenharmony_ci PINGROUP(92, SOUTH, tsif2_error, sdc4_data, qup4, vfr_1, tgu_ch2, _, _, _, _), 122262306a36Sopenharmony_ci PINGROUP(93, SOUTH, tsif2_clk, sdc4_clk, qup7, _, qdss, _, _, _, _), 122362306a36Sopenharmony_ci PINGROUP(94, SOUTH, tsif2_en, sdc4_data, qup7, _, _, _, _, _, _), 122462306a36Sopenharmony_ci PINGROUP(95, SOUTH, tsif2_data, sdc4_data, qup7, gp_pdm0, _, _, _, _, _), 122562306a36Sopenharmony_ci PINGROUP(96, SOUTH, tsif2_sync, sdc4_data, qup7, phase_flag, _, _, _, _, _), 122662306a36Sopenharmony_ci PINGROUP(97, WEST, _, _, mdp_vsync, ldo_en, _, _, _, _, _), 122762306a36Sopenharmony_ci PINGROUP(98, WEST, _, mdp_vsync, ldo_update, _, _, _, _, _, _), 122862306a36Sopenharmony_ci PINGROUP(99, NORTH, phase_flag, prng_rosc, _, _, _, _, _, _, _), 122962306a36Sopenharmony_ci PINGROUP(100, WEST, phase_flag, _, _, _, _, _, _, _, _), 123062306a36Sopenharmony_ci PINGROUP(101, WEST, _, phase_flag, _, _, _, _, _, _, _), 123162306a36Sopenharmony_ci PINGROUP(102, WEST, pci_e1, prng_rosc, _, _, _, _, _, _, _), 123262306a36Sopenharmony_ci PINGROUP(103, WEST, pci_e1, copy_phase, _, _, _, _, _, _, _), 123362306a36Sopenharmony_ci PINGROUP_DUMMY(104), 123462306a36Sopenharmony_ci PINGROUP(105, NORTH, uim2_data, qup13, qup_l4, _, _, _, _, _, _), 123562306a36Sopenharmony_ci PINGROUP(106, NORTH, uim2_clk, qup13, qup_l5, _, _, _, _, _, _), 123662306a36Sopenharmony_ci PINGROUP(107, NORTH, uim2_reset, qup13, qup_l6, _, _, _, _, _, _), 123762306a36Sopenharmony_ci PINGROUP(108, NORTH, uim2_present, qup13, _, _, _, _, _, _, _), 123862306a36Sopenharmony_ci PINGROUP(109, NORTH, uim1_data, _, _, _, _, _, _, _, _), 123962306a36Sopenharmony_ci PINGROUP(110, NORTH, uim1_clk, _, _, _, _, _, _, _, _), 124062306a36Sopenharmony_ci PINGROUP(111, NORTH, uim1_reset, _, _, _, _, _, _, _, _), 124162306a36Sopenharmony_ci PINGROUP(112, NORTH, uim1_present, _, _, _, _, _, _, _, _), 124262306a36Sopenharmony_ci PINGROUP(113, NORTH, uim_batt, edp_hot, _, _, _, _, _, _, _), 124362306a36Sopenharmony_ci PINGROUP(114, WEST, _, nav_pps, nav_pps, gps_tx, _, _, _, _, _), 124462306a36Sopenharmony_ci PINGROUP(115, WEST, _, nav_pps, nav_pps, gps_tx, _, _, _, _, _), 124562306a36Sopenharmony_ci PINGROUP(116, SOUTH, _, _, _, _, _, _, _, _, _), 124662306a36Sopenharmony_ci PINGROUP(117, NORTH, _, qdss, atest_char, _, _, _, _, _, _), 124762306a36Sopenharmony_ci PINGROUP(118, NORTH, adsp_ext, _, qdss, atest_char, _, _, _, _, _), 124862306a36Sopenharmony_ci PINGROUP(119, NORTH, _, qdss, atest_char, _, _, _, _, _, _), 124962306a36Sopenharmony_ci PINGROUP(120, NORTH, _, qdss, atest_char, _, _, _, _, _, _), 125062306a36Sopenharmony_ci PINGROUP(121, NORTH, _, qdss, atest_char, _, _, _, _, _, _), 125162306a36Sopenharmony_ci PINGROUP(122, NORTH, _, qdss, _, _, _, _, _, _, _), 125262306a36Sopenharmony_ci PINGROUP(123, NORTH, qup_l4, _, qdss, _, _, _, _, _, _), 125362306a36Sopenharmony_ci PINGROUP(124, NORTH, qup_l5, _, qdss, _, _, _, _, _, _), 125462306a36Sopenharmony_ci PINGROUP(125, NORTH, qup_l6, _, _, _, _, _, _, _, _), 125562306a36Sopenharmony_ci PINGROUP(126, NORTH, _, _, _, _, _, _, _, _, _), 125662306a36Sopenharmony_ci PINGROUP(127, WEST, _, _, _, _, _, _, _, _, _), 125762306a36Sopenharmony_ci PINGROUP(128, WEST, nav_pps, nav_pps, gps_tx, _, _, _, _, _, _), 125862306a36Sopenharmony_ci PINGROUP(129, WEST, nav_pps, nav_pps, gps_tx, _, _, _, _, _, _), 125962306a36Sopenharmony_ci PINGROUP(130, WEST, qlink_request, _, _, _, _, _, _, _, _), 126062306a36Sopenharmony_ci PINGROUP(131, WEST, qlink_enable, _, _, _, _, _, _, _, _), 126162306a36Sopenharmony_ci PINGROUP(132, WEST, _, _, _, _, _, _, _, _, _), 126262306a36Sopenharmony_ci PINGROUP(133, NORTH, _, _, _, _, _, _, _, _, _), 126362306a36Sopenharmony_ci PINGROUP(134, NORTH, _, _, _, _, _, _, _, _, _), 126462306a36Sopenharmony_ci PINGROUP(135, WEST, _, pa_indicator, _, _, _, _, _, _, _), 126562306a36Sopenharmony_ci PINGROUP(136, WEST, _, _, _, _, _, _, _, _, _), 126662306a36Sopenharmony_ci PINGROUP(137, WEST, _, _, phase_flag, _, _, _, _, _, _), 126762306a36Sopenharmony_ci PINGROUP(138, WEST, _, _, phase_flag, _, _, _, _, _, _), 126862306a36Sopenharmony_ci PINGROUP(139, WEST, _, phase_flag, _, _, _, _, _, _, _), 126962306a36Sopenharmony_ci PINGROUP(140, WEST, _, _, phase_flag, _, _, _, _, _, _), 127062306a36Sopenharmony_ci PINGROUP(141, WEST, _, phase_flag, _, _, _, _, _, _, _), 127162306a36Sopenharmony_ci PINGROUP(142, WEST, _, phase_flag, _, _, _, _, _, _, _), 127262306a36Sopenharmony_ci PINGROUP(143, WEST, _, nav_pps, nav_pps, gps_tx, phase_flag, _, _, _, _), 127362306a36Sopenharmony_ci PINGROUP(144, SOUTH, mss_lte, _, _, _, _, _, _, _, _), 127462306a36Sopenharmony_ci PINGROUP(145, SOUTH, mss_lte, gps_tx, _, _, _, _, _, _, _), 127562306a36Sopenharmony_ci PINGROUP(146, WEST, _, _, _, _, _, _, _, _, _), 127662306a36Sopenharmony_ci PINGROUP(147, WEST, _, _, _, _, _, _, _, _, _), 127762306a36Sopenharmony_ci PINGROUP(148, WEST, _, _, _, _, _, _, _, _, _), 127862306a36Sopenharmony_ci PINGROUP(149, WEST, _, _, _, _, _, _, _, _, _), 127962306a36Sopenharmony_ci UFS_RESET(ufs_reset, 0x99d000), 128062306a36Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_rclk, 0x99000, 15, 0), 128162306a36Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_clk, 0x99000, 13, 6), 128262306a36Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_cmd, 0x99000, 11, 3), 128362306a36Sopenharmony_ci SDC_QDSD_PINGROUP(sdc1_data, 0x99000, 9, 0), 128462306a36Sopenharmony_ci SDC_QDSD_PINGROUP(sdc2_clk, 0x9a000, 14, 6), 128562306a36Sopenharmony_ci SDC_QDSD_PINGROUP(sdc2_cmd, 0x9a000, 11, 3), 128662306a36Sopenharmony_ci SDC_QDSD_PINGROUP(sdc2_data, 0x9a000, 9, 0), 128762306a36Sopenharmony_ci}; 128862306a36Sopenharmony_ci 128962306a36Sopenharmony_cistatic const int sdm670_reserved_gpios[] = { 129062306a36Sopenharmony_ci 58, 59, 60, 61, 62, 63, 64, 69, 70, 71, 72, 73, 74, 104, -1 129162306a36Sopenharmony_ci}; 129262306a36Sopenharmony_ci 129362306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data sdm670_pinctrl = { 129462306a36Sopenharmony_ci .pins = sdm670_pins, 129562306a36Sopenharmony_ci .npins = ARRAY_SIZE(sdm670_pins), 129662306a36Sopenharmony_ci .functions = sdm670_functions, 129762306a36Sopenharmony_ci .nfunctions = ARRAY_SIZE(sdm670_functions), 129862306a36Sopenharmony_ci .groups = sdm670_groups, 129962306a36Sopenharmony_ci .ngroups = ARRAY_SIZE(sdm670_groups), 130062306a36Sopenharmony_ci .ngpios = 151, 130162306a36Sopenharmony_ci .reserved_gpios = sdm670_reserved_gpios, 130262306a36Sopenharmony_ci}; 130362306a36Sopenharmony_ci 130462306a36Sopenharmony_cistatic int sdm670_pinctrl_probe(struct platform_device *pdev) 130562306a36Sopenharmony_ci{ 130662306a36Sopenharmony_ci return msm_pinctrl_probe(pdev, &sdm670_pinctrl); 130762306a36Sopenharmony_ci} 130862306a36Sopenharmony_ci 130962306a36Sopenharmony_cistatic const struct of_device_id sdm670_pinctrl_of_match[] = { 131062306a36Sopenharmony_ci { .compatible = "qcom,sdm670-tlmm", }, 131162306a36Sopenharmony_ci { }, 131262306a36Sopenharmony_ci}; 131362306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, sdm670_pinctrl_of_match); 131462306a36Sopenharmony_ci 131562306a36Sopenharmony_cistatic struct platform_driver sdm670_pinctrl_driver = { 131662306a36Sopenharmony_ci .driver = { 131762306a36Sopenharmony_ci .name = "sdm670-pinctrl", 131862306a36Sopenharmony_ci .of_match_table = sdm670_pinctrl_of_match, 131962306a36Sopenharmony_ci }, 132062306a36Sopenharmony_ci .probe = sdm670_pinctrl_probe, 132162306a36Sopenharmony_ci .remove = msm_pinctrl_remove, 132262306a36Sopenharmony_ci}; 132362306a36Sopenharmony_ci 132462306a36Sopenharmony_cistatic int __init sdm670_pinctrl_init(void) 132562306a36Sopenharmony_ci{ 132662306a36Sopenharmony_ci return platform_driver_register(&sdm670_pinctrl_driver); 132762306a36Sopenharmony_ci} 132862306a36Sopenharmony_ciarch_initcall(sdm670_pinctrl_init); 132962306a36Sopenharmony_ci 133062306a36Sopenharmony_cistatic void __exit sdm670_pinctrl_exit(void) 133162306a36Sopenharmony_ci{ 133262306a36Sopenharmony_ci platform_driver_unregister(&sdm670_pinctrl_driver); 133362306a36Sopenharmony_ci} 133462306a36Sopenharmony_cimodule_exit(sdm670_pinctrl_exit); 133562306a36Sopenharmony_ci 133662306a36Sopenharmony_ciMODULE_DESCRIPTION("Qualcomm SDM670 TLMM pinctrl driver"); 133762306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 1338