162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include <linux/module.h> 762306a36Sopenharmony_ci#include <linux/of.h> 862306a36Sopenharmony_ci#include <linux/platform_device.h> 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include "pinctrl-msm.h" 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#define REG_BASE 0x0 1362306a36Sopenharmony_ci#define REG_SIZE 0x1000 1462306a36Sopenharmony_ci#define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 1562306a36Sopenharmony_ci { \ 1662306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP("gpio" #id, \ 1762306a36Sopenharmony_ci gpio##id##_pins, \ 1862306a36Sopenharmony_ci ARRAY_SIZE(gpio##id##_pins)), \ 1962306a36Sopenharmony_ci .funcs = (int[]){ \ 2062306a36Sopenharmony_ci msm_mux_gpio, /* gpio mode */ \ 2162306a36Sopenharmony_ci msm_mux_##f1, \ 2262306a36Sopenharmony_ci msm_mux_##f2, \ 2362306a36Sopenharmony_ci msm_mux_##f3, \ 2462306a36Sopenharmony_ci msm_mux_##f4, \ 2562306a36Sopenharmony_ci msm_mux_##f5, \ 2662306a36Sopenharmony_ci msm_mux_##f6, \ 2762306a36Sopenharmony_ci msm_mux_##f7, \ 2862306a36Sopenharmony_ci msm_mux_##f8, \ 2962306a36Sopenharmony_ci msm_mux_##f9 \ 3062306a36Sopenharmony_ci }, \ 3162306a36Sopenharmony_ci .nfuncs = 10, \ 3262306a36Sopenharmony_ci .ctl_reg = REG_BASE + REG_SIZE * id, \ 3362306a36Sopenharmony_ci .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \ 3462306a36Sopenharmony_ci .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \ 3562306a36Sopenharmony_ci .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \ 3662306a36Sopenharmony_ci .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \ 3762306a36Sopenharmony_ci .mux_bit = 2, \ 3862306a36Sopenharmony_ci .pull_bit = 0, \ 3962306a36Sopenharmony_ci .drv_bit = 6, \ 4062306a36Sopenharmony_ci .oe_bit = 9, \ 4162306a36Sopenharmony_ci .in_bit = 0, \ 4262306a36Sopenharmony_ci .out_bit = 1, \ 4362306a36Sopenharmony_ci .intr_enable_bit = 0, \ 4462306a36Sopenharmony_ci .intr_status_bit = 0, \ 4562306a36Sopenharmony_ci .intr_target_bit = 5, \ 4662306a36Sopenharmony_ci .intr_target_kpss_val = 3, \ 4762306a36Sopenharmony_ci .intr_raw_status_bit = 4, \ 4862306a36Sopenharmony_ci .intr_polarity_bit = 1, \ 4962306a36Sopenharmony_ci .intr_detection_bit = 2, \ 5062306a36Sopenharmony_ci .intr_detection_width = 2, \ 5162306a36Sopenharmony_ci } 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci#define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ 5462306a36Sopenharmony_ci { \ 5562306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 5662306a36Sopenharmony_ci pg_name##_pins, \ 5762306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 5862306a36Sopenharmony_ci .ctl_reg = ctl, \ 5962306a36Sopenharmony_ci .io_reg = 0, \ 6062306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 6162306a36Sopenharmony_ci .intr_status_reg = 0, \ 6262306a36Sopenharmony_ci .intr_target_reg = 0, \ 6362306a36Sopenharmony_ci .mux_bit = -1, \ 6462306a36Sopenharmony_ci .pull_bit = pull, \ 6562306a36Sopenharmony_ci .drv_bit = drv, \ 6662306a36Sopenharmony_ci .oe_bit = -1, \ 6762306a36Sopenharmony_ci .in_bit = -1, \ 6862306a36Sopenharmony_ci .out_bit = -1, \ 6962306a36Sopenharmony_ci .intr_enable_bit = -1, \ 7062306a36Sopenharmony_ci .intr_status_bit = -1, \ 7162306a36Sopenharmony_ci .intr_target_bit = -1, \ 7262306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 7362306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 7462306a36Sopenharmony_ci .intr_detection_bit = -1, \ 7562306a36Sopenharmony_ci .intr_detection_width = -1, \ 7662306a36Sopenharmony_ci } 7762306a36Sopenharmony_ci 7862306a36Sopenharmony_ci#define UFS_RESET(pg_name, offset) \ 7962306a36Sopenharmony_ci { \ 8062306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 8162306a36Sopenharmony_ci pg_name##_pins, \ 8262306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 8362306a36Sopenharmony_ci .ctl_reg = offset, \ 8462306a36Sopenharmony_ci .io_reg = offset + 0x4, \ 8562306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 8662306a36Sopenharmony_ci .intr_status_reg = 0, \ 8762306a36Sopenharmony_ci .intr_target_reg = 0, \ 8862306a36Sopenharmony_ci .mux_bit = -1, \ 8962306a36Sopenharmony_ci .pull_bit = 3, \ 9062306a36Sopenharmony_ci .drv_bit = 0, \ 9162306a36Sopenharmony_ci .oe_bit = -1, \ 9262306a36Sopenharmony_ci .in_bit = -1, \ 9362306a36Sopenharmony_ci .out_bit = 0, \ 9462306a36Sopenharmony_ci .intr_enable_bit = -1, \ 9562306a36Sopenharmony_ci .intr_status_bit = -1, \ 9662306a36Sopenharmony_ci .intr_target_bit = -1, \ 9762306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 9862306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 9962306a36Sopenharmony_ci .intr_detection_bit = -1, \ 10062306a36Sopenharmony_ci .intr_detection_width = -1, \ 10162306a36Sopenharmony_ci } 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_cistatic const struct pinctrl_pin_desc sdx65_pins[] = { 10462306a36Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 10562306a36Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 10662306a36Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 10762306a36Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 10862306a36Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 10962306a36Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 11062306a36Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 11162306a36Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 11262306a36Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 11362306a36Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 11462306a36Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 11562306a36Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 11662306a36Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 11762306a36Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 11862306a36Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 11962306a36Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 12062306a36Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 12162306a36Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 12262306a36Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 12362306a36Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 12462306a36Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 12562306a36Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 12662306a36Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 12762306a36Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 12862306a36Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 12962306a36Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 13062306a36Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 13162306a36Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 13262306a36Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 13362306a36Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 13462306a36Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 13562306a36Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 13662306a36Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 13762306a36Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 13862306a36Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 13962306a36Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 14062306a36Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 14162306a36Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 14262306a36Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 14362306a36Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 14462306a36Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 14562306a36Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 14662306a36Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 14762306a36Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 14862306a36Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 14962306a36Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 15062306a36Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 15162306a36Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 15262306a36Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 15362306a36Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 15462306a36Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 15562306a36Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 15662306a36Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 15762306a36Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 15862306a36Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 15962306a36Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 16062306a36Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 16162306a36Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 16262306a36Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 16362306a36Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 16462306a36Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 16562306a36Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 16662306a36Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 16762306a36Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 16862306a36Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 16962306a36Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 17062306a36Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 17162306a36Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 17262306a36Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 17362306a36Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 17462306a36Sopenharmony_ci PINCTRL_PIN(70, "GPIO_70"), 17562306a36Sopenharmony_ci PINCTRL_PIN(71, "GPIO_71"), 17662306a36Sopenharmony_ci PINCTRL_PIN(72, "GPIO_72"), 17762306a36Sopenharmony_ci PINCTRL_PIN(73, "GPIO_73"), 17862306a36Sopenharmony_ci PINCTRL_PIN(74, "GPIO_74"), 17962306a36Sopenharmony_ci PINCTRL_PIN(75, "GPIO_75"), 18062306a36Sopenharmony_ci PINCTRL_PIN(76, "GPIO_76"), 18162306a36Sopenharmony_ci PINCTRL_PIN(77, "GPIO_77"), 18262306a36Sopenharmony_ci PINCTRL_PIN(78, "GPIO_78"), 18362306a36Sopenharmony_ci PINCTRL_PIN(79, "GPIO_79"), 18462306a36Sopenharmony_ci PINCTRL_PIN(80, "GPIO_80"), 18562306a36Sopenharmony_ci PINCTRL_PIN(81, "GPIO_81"), 18662306a36Sopenharmony_ci PINCTRL_PIN(82, "GPIO_82"), 18762306a36Sopenharmony_ci PINCTRL_PIN(83, "GPIO_83"), 18862306a36Sopenharmony_ci PINCTRL_PIN(84, "GPIO_84"), 18962306a36Sopenharmony_ci PINCTRL_PIN(85, "GPIO_85"), 19062306a36Sopenharmony_ci PINCTRL_PIN(86, "GPIO_86"), 19162306a36Sopenharmony_ci PINCTRL_PIN(87, "GPIO_87"), 19262306a36Sopenharmony_ci PINCTRL_PIN(88, "GPIO_88"), 19362306a36Sopenharmony_ci PINCTRL_PIN(89, "GPIO_89"), 19462306a36Sopenharmony_ci PINCTRL_PIN(90, "GPIO_90"), 19562306a36Sopenharmony_ci PINCTRL_PIN(91, "GPIO_91"), 19662306a36Sopenharmony_ci PINCTRL_PIN(92, "GPIO_92"), 19762306a36Sopenharmony_ci PINCTRL_PIN(93, "GPIO_93"), 19862306a36Sopenharmony_ci PINCTRL_PIN(94, "GPIO_94"), 19962306a36Sopenharmony_ci PINCTRL_PIN(95, "GPIO_95"), 20062306a36Sopenharmony_ci PINCTRL_PIN(96, "GPIO_96"), 20162306a36Sopenharmony_ci PINCTRL_PIN(97, "GPIO_97"), 20262306a36Sopenharmony_ci PINCTRL_PIN(98, "GPIO_98"), 20362306a36Sopenharmony_ci PINCTRL_PIN(99, "GPIO_99"), 20462306a36Sopenharmony_ci PINCTRL_PIN(100, "GPIO_100"), 20562306a36Sopenharmony_ci PINCTRL_PIN(101, "GPIO_101"), 20662306a36Sopenharmony_ci PINCTRL_PIN(102, "GPIO_102"), 20762306a36Sopenharmony_ci PINCTRL_PIN(103, "GPIO_103"), 20862306a36Sopenharmony_ci PINCTRL_PIN(104, "GPIO_104"), 20962306a36Sopenharmony_ci PINCTRL_PIN(105, "GPIO_105"), 21062306a36Sopenharmony_ci PINCTRL_PIN(106, "GPIO_106"), 21162306a36Sopenharmony_ci PINCTRL_PIN(107, "GPIO_107"), 21262306a36Sopenharmony_ci PINCTRL_PIN(108, "UFS_RESET"), 21362306a36Sopenharmony_ci PINCTRL_PIN(109, "SDC1_RCLK"), 21462306a36Sopenharmony_ci PINCTRL_PIN(110, "SDC1_CLK"), 21562306a36Sopenharmony_ci PINCTRL_PIN(111, "SDC1_CMD"), 21662306a36Sopenharmony_ci PINCTRL_PIN(112, "SDC1_DATA"), 21762306a36Sopenharmony_ci}; 21862306a36Sopenharmony_ci 21962306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \ 22062306a36Sopenharmony_ci static const unsigned int gpio##pin##_pins[] = { pin } 22162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 22262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 22362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 22462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 22562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 22662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 22762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 22862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 22962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 23062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 23162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 23262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 23362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 23462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 23562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 23662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 23762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 23862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 23962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 24062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 24162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 24262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 24362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 24462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 24562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 24662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 24762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 24862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 24962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 25062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 25162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 25262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 25362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 25462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 25562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 25662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 25762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 25862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 25962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 26062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 26162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 26262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 26362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 26462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 26562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 26662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 26762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 26862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 26962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 27062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 27162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 27262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 27362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 27462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 27562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 27662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 27762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 27862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 27962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 28062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 28162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 28262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 28362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 28462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 28562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 28662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 28762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 28862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 28962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 29062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 29162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70); 29262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71); 29362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72); 29462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73); 29562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74); 29662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75); 29762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76); 29862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77); 29962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78); 30062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79); 30162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80); 30262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81); 30362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82); 30462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83); 30562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84); 30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85); 30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86); 30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87); 30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88); 31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89); 31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90); 31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91); 31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92); 31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93); 31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94); 31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95); 31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96); 31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97); 31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98); 32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99); 32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100); 32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101); 32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102); 32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103); 32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104); 32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105); 32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106); 32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107); 32962306a36Sopenharmony_ci 33062306a36Sopenharmony_cistatic const unsigned int ufs_reset_pins[] = { 108 }; 33162306a36Sopenharmony_cistatic const unsigned int sdc1_rclk_pins[] = { 109 }; 33262306a36Sopenharmony_cistatic const unsigned int sdc1_clk_pins[] = { 110 }; 33362306a36Sopenharmony_cistatic const unsigned int sdc1_cmd_pins[] = { 111 }; 33462306a36Sopenharmony_cistatic const unsigned int sdc1_data_pins[] = { 112 }; 33562306a36Sopenharmony_ci 33662306a36Sopenharmony_cienum sdx65_functions { 33762306a36Sopenharmony_ci msm_mux_qlink0_wmss, 33862306a36Sopenharmony_ci msm_mux_adsp_ext, 33962306a36Sopenharmony_ci msm_mux_atest_char, 34062306a36Sopenharmony_ci msm_mux_atest_char0, 34162306a36Sopenharmony_ci msm_mux_atest_char1, 34262306a36Sopenharmony_ci msm_mux_atest_char2, 34362306a36Sopenharmony_ci msm_mux_atest_char3, 34462306a36Sopenharmony_ci msm_mux_audio_ref, 34562306a36Sopenharmony_ci msm_mux_bimc_dte0, 34662306a36Sopenharmony_ci msm_mux_bimc_dte1, 34762306a36Sopenharmony_ci msm_mux_blsp_i2c1, 34862306a36Sopenharmony_ci msm_mux_blsp_i2c2, 34962306a36Sopenharmony_ci msm_mux_blsp_i2c3, 35062306a36Sopenharmony_ci msm_mux_blsp_i2c4, 35162306a36Sopenharmony_ci msm_mux_blsp_spi1, 35262306a36Sopenharmony_ci msm_mux_blsp_spi2, 35362306a36Sopenharmony_ci msm_mux_blsp_spi3, 35462306a36Sopenharmony_ci msm_mux_blsp_spi4, 35562306a36Sopenharmony_ci msm_mux_blsp_uart1, 35662306a36Sopenharmony_ci msm_mux_blsp_uart2, 35762306a36Sopenharmony_ci msm_mux_blsp_uart3, 35862306a36Sopenharmony_ci msm_mux_blsp_uart4, 35962306a36Sopenharmony_ci msm_mux_char_exec, 36062306a36Sopenharmony_ci msm_mux_coex_uart, 36162306a36Sopenharmony_ci msm_mux_coex_uart2, 36262306a36Sopenharmony_ci msm_mux_cri_trng, 36362306a36Sopenharmony_ci msm_mux_cri_trng0, 36462306a36Sopenharmony_ci msm_mux_cri_trng1, 36562306a36Sopenharmony_ci msm_mux_dbg_out, 36662306a36Sopenharmony_ci msm_mux_ddr_bist, 36762306a36Sopenharmony_ci msm_mux_ddr_pxi0, 36862306a36Sopenharmony_ci msm_mux_ebi0_wrcdc, 36962306a36Sopenharmony_ci msm_mux_ebi2_a, 37062306a36Sopenharmony_ci msm_mux_ebi2_lcd, 37162306a36Sopenharmony_ci msm_mux_ext_dbg, 37262306a36Sopenharmony_ci msm_mux_gcc_gp1, 37362306a36Sopenharmony_ci msm_mux_gcc_gp2, 37462306a36Sopenharmony_ci msm_mux_gcc_gp3, 37562306a36Sopenharmony_ci msm_mux_gcc_plltest, 37662306a36Sopenharmony_ci msm_mux_gpio, 37762306a36Sopenharmony_ci msm_mux_i2s_mclk, 37862306a36Sopenharmony_ci msm_mux_jitter_bist, 37962306a36Sopenharmony_ci msm_mux_ldo_en, 38062306a36Sopenharmony_ci msm_mux_ldo_update, 38162306a36Sopenharmony_ci msm_mux_m_voc, 38262306a36Sopenharmony_ci msm_mux_mgpi_clk, 38362306a36Sopenharmony_ci msm_mux_native_char, 38462306a36Sopenharmony_ci msm_mux_native_tsens, 38562306a36Sopenharmony_ci msm_mux_native_tsense, 38662306a36Sopenharmony_ci msm_mux_nav_gpio, 38762306a36Sopenharmony_ci msm_mux_pa_indicator, 38862306a36Sopenharmony_ci msm_mux_pci_e, 38962306a36Sopenharmony_ci msm_mux_pcie_clkreq, 39062306a36Sopenharmony_ci msm_mux_pll_bist, 39162306a36Sopenharmony_ci msm_mux_pll_ref, 39262306a36Sopenharmony_ci msm_mux_pri_mi2s, 39362306a36Sopenharmony_ci msm_mux_pri_mi2s_ws, 39462306a36Sopenharmony_ci msm_mux_prng_rosc, 39562306a36Sopenharmony_ci msm_mux_qdss_cti, 39662306a36Sopenharmony_ci msm_mux_qdss_gpio, 39762306a36Sopenharmony_ci msm_mux_qlink0_en, 39862306a36Sopenharmony_ci msm_mux_qlink0_req, 39962306a36Sopenharmony_ci msm_mux_qlink1_en, 40062306a36Sopenharmony_ci msm_mux_qlink1_req, 40162306a36Sopenharmony_ci msm_mux_qlink1_wmss, 40262306a36Sopenharmony_ci msm_mux_qlink2_en, 40362306a36Sopenharmony_ci msm_mux_qlink2_req, 40462306a36Sopenharmony_ci msm_mux_qlink2_wmss, 40562306a36Sopenharmony_ci msm_mux_sdc1_tb, 40662306a36Sopenharmony_ci msm_mux_sec_mi2s, 40762306a36Sopenharmony_ci msm_mux_spmi_coex, 40862306a36Sopenharmony_ci msm_mux_spmi_vgi, 40962306a36Sopenharmony_ci msm_mux_tgu_ch0, 41062306a36Sopenharmony_ci msm_mux_uim1_clk, 41162306a36Sopenharmony_ci msm_mux_uim1_data, 41262306a36Sopenharmony_ci msm_mux_uim1_present, 41362306a36Sopenharmony_ci msm_mux_uim1_reset, 41462306a36Sopenharmony_ci msm_mux_uim2_clk, 41562306a36Sopenharmony_ci msm_mux_uim2_data, 41662306a36Sopenharmony_ci msm_mux_uim2_present, 41762306a36Sopenharmony_ci msm_mux_uim2_reset, 41862306a36Sopenharmony_ci msm_mux_usb2phy_ac, 41962306a36Sopenharmony_ci msm_mux_vsense_trigger, 42062306a36Sopenharmony_ci msm_mux__, 42162306a36Sopenharmony_ci}; 42262306a36Sopenharmony_ci 42362306a36Sopenharmony_cistatic const char * const gpio_groups[] = { 42462306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 42562306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 42662306a36Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 42762306a36Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 42862306a36Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 42962306a36Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 43062306a36Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 43162306a36Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 43262306a36Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 43362306a36Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 43462306a36Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 43562306a36Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 43662306a36Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 43762306a36Sopenharmony_ci "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 43862306a36Sopenharmony_ci "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 43962306a36Sopenharmony_ci "gpio105", "gpio106", "gpio107", 44062306a36Sopenharmony_ci}; 44162306a36Sopenharmony_cistatic const char * const uim2_data_groups[] = { 44262306a36Sopenharmony_ci "gpio0", 44362306a36Sopenharmony_ci}; 44462306a36Sopenharmony_cistatic const char * const blsp_uart1_groups[] = { 44562306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio48", "gpio49", "gpio80", 44662306a36Sopenharmony_ci "gpio81", 44762306a36Sopenharmony_ci}; 44862306a36Sopenharmony_cistatic const char * const ebi0_wrcdc_groups[] = { 44962306a36Sopenharmony_ci "gpio0", "gpio2", 45062306a36Sopenharmony_ci}; 45162306a36Sopenharmony_cistatic const char * const uim2_present_groups[] = { 45262306a36Sopenharmony_ci "gpio1", 45362306a36Sopenharmony_ci}; 45462306a36Sopenharmony_cistatic const char * const uim2_reset_groups[] = { 45562306a36Sopenharmony_ci "gpio2", 45662306a36Sopenharmony_ci}; 45762306a36Sopenharmony_cistatic const char * const blsp_i2c1_groups[] = { 45862306a36Sopenharmony_ci "gpio2", "gpio3", "gpio82", "gpio83", 45962306a36Sopenharmony_ci}; 46062306a36Sopenharmony_cistatic const char * const uim2_clk_groups[] = { 46162306a36Sopenharmony_ci "gpio3", 46262306a36Sopenharmony_ci}; 46362306a36Sopenharmony_cistatic const char * const blsp_spi2_groups[] = { 46462306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7", "gpio23", "gpio47", "gpio62", 46562306a36Sopenharmony_ci}; 46662306a36Sopenharmony_cistatic const char * const blsp_uart2_groups[] = { 46762306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7", "gpio63", "gpio64", "gpio65", 46862306a36Sopenharmony_ci "gpio66", 46962306a36Sopenharmony_ci}; 47062306a36Sopenharmony_cistatic const char * const blsp_i2c2_groups[] = { 47162306a36Sopenharmony_ci "gpio6", "gpio7", "gpio65", "gpio66", 47262306a36Sopenharmony_ci}; 47362306a36Sopenharmony_cistatic const char * const char_exec_groups[] = { 47462306a36Sopenharmony_ci "gpio6", "gpio7", 47562306a36Sopenharmony_ci}; 47662306a36Sopenharmony_cistatic const char * const qdss_gpio_groups[] = { 47762306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7", "gpio12", "gpio13", 47862306a36Sopenharmony_ci "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", 47962306a36Sopenharmony_ci "gpio33", "gpio42", "gpio63", "gpio64", "gpio65", "gpio66", 48062306a36Sopenharmony_ci}; 48162306a36Sopenharmony_cistatic const char * const blsp_spi3_groups[] = { 48262306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio23", "gpio47", "gpio62", 48362306a36Sopenharmony_ci}; 48462306a36Sopenharmony_cistatic const char * const blsp_uart3_groups[] = { 48562306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", 48662306a36Sopenharmony_ci}; 48762306a36Sopenharmony_cistatic const char * const ext_dbg_groups[] = { 48862306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", 48962306a36Sopenharmony_ci}; 49062306a36Sopenharmony_cistatic const char * const ldo_en_groups[] = { 49162306a36Sopenharmony_ci "gpio8", 49262306a36Sopenharmony_ci}; 49362306a36Sopenharmony_cistatic const char * const blsp_i2c3_groups[] = { 49462306a36Sopenharmony_ci "gpio10", "gpio11", 49562306a36Sopenharmony_ci}; 49662306a36Sopenharmony_cistatic const char * const gcc_gp3_groups[] = { 49762306a36Sopenharmony_ci "gpio11", 49862306a36Sopenharmony_ci}; 49962306a36Sopenharmony_cistatic const char * const pri_mi2s_ws_groups[] = { 50062306a36Sopenharmony_ci "gpio12", 50162306a36Sopenharmony_ci}; 50262306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = { 50362306a36Sopenharmony_ci "gpio13", "gpio14", "gpio15", 50462306a36Sopenharmony_ci}; 50562306a36Sopenharmony_cistatic const char * const vsense_trigger_groups[] = { 50662306a36Sopenharmony_ci "gpio13", 50762306a36Sopenharmony_ci}; 50862306a36Sopenharmony_cistatic const char * const native_tsens_groups[] = { 50962306a36Sopenharmony_ci "gpio14", 51062306a36Sopenharmony_ci}; 51162306a36Sopenharmony_cistatic const char * const bimc_dte0_groups[] = { 51262306a36Sopenharmony_ci "gpio14", "gpio59", 51362306a36Sopenharmony_ci}; 51462306a36Sopenharmony_cistatic const char * const bimc_dte1_groups[] = { 51562306a36Sopenharmony_ci "gpio15", "gpio61", 51662306a36Sopenharmony_ci}; 51762306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = { 51862306a36Sopenharmony_ci "gpio16", "gpio17", "gpio18", "gpio19", 51962306a36Sopenharmony_ci}; 52062306a36Sopenharmony_cistatic const char * const blsp_spi4_groups[] = { 52162306a36Sopenharmony_ci "gpio16", "gpio17", "gpio18", "gpio19", "gpio23", "gpio47", "gpio62", 52262306a36Sopenharmony_ci}; 52362306a36Sopenharmony_cistatic const char * const blsp_uart4_groups[] = { 52462306a36Sopenharmony_ci "gpio16", "gpio17", "gpio18", "gpio19", "gpio22", "gpio23", "gpio48", 52562306a36Sopenharmony_ci "gpio49", 52662306a36Sopenharmony_ci}; 52762306a36Sopenharmony_cistatic const char * const qdss_cti_groups[] = { 52862306a36Sopenharmony_ci "gpio16", "gpio16", "gpio17", "gpio17", "gpio54", "gpio54", "gpio55", 52962306a36Sopenharmony_ci "gpio55", "gpio59", "gpio60", "gpio65", "gpio65", "gpio66", "gpio66", 53062306a36Sopenharmony_ci "gpio94", "gpio94", "gpio95", "gpio95", 53162306a36Sopenharmony_ci}; 53262306a36Sopenharmony_cistatic const char * const blsp_i2c4_groups[] = { 53362306a36Sopenharmony_ci "gpio18", "gpio19", "gpio84", "gpio85", 53462306a36Sopenharmony_ci}; 53562306a36Sopenharmony_cistatic const char * const gcc_gp1_groups[] = { 53662306a36Sopenharmony_ci "gpio18", 53762306a36Sopenharmony_ci}; 53862306a36Sopenharmony_cistatic const char * const jitter_bist_groups[] = { 53962306a36Sopenharmony_ci "gpio19", 54062306a36Sopenharmony_ci}; 54162306a36Sopenharmony_cistatic const char * const gcc_gp2_groups[] = { 54262306a36Sopenharmony_ci "gpio19", 54362306a36Sopenharmony_ci}; 54462306a36Sopenharmony_cistatic const char * const pll_bist_groups[] = { 54562306a36Sopenharmony_ci "gpio22", 54662306a36Sopenharmony_ci}; 54762306a36Sopenharmony_cistatic const char * const blsp_spi1_groups[] = { 54862306a36Sopenharmony_ci "gpio23", "gpio47", "gpio62", "gpio80", "gpio81", "gpio82", "gpio83", 54962306a36Sopenharmony_ci}; 55062306a36Sopenharmony_cistatic const char * const adsp_ext_groups[] = { 55162306a36Sopenharmony_ci "gpio24", "gpio25", 55262306a36Sopenharmony_ci}; 55362306a36Sopenharmony_cistatic const char * const qlink0_wmss_groups[] = { 55462306a36Sopenharmony_ci "gpio28", 55562306a36Sopenharmony_ci}; 55662306a36Sopenharmony_cistatic const char * const native_tsense_groups[] = { 55762306a36Sopenharmony_ci "gpio29", "gpio72", 55862306a36Sopenharmony_ci}; 55962306a36Sopenharmony_cistatic const char * const nav_gpio_groups[] = { 56062306a36Sopenharmony_ci "gpio31", "gpio32", 56162306a36Sopenharmony_ci}; 56262306a36Sopenharmony_cistatic const char * const pll_ref_groups[] = { 56362306a36Sopenharmony_ci "gpio32", 56462306a36Sopenharmony_ci}; 56562306a36Sopenharmony_cistatic const char * const pa_indicator_groups[] = { 56662306a36Sopenharmony_ci "gpio33", 56762306a36Sopenharmony_ci}; 56862306a36Sopenharmony_cistatic const char * const qlink0_en_groups[] = { 56962306a36Sopenharmony_ci "gpio34", 57062306a36Sopenharmony_ci}; 57162306a36Sopenharmony_cistatic const char * const qlink0_req_groups[] = { 57262306a36Sopenharmony_ci "gpio35", 57362306a36Sopenharmony_ci}; 57462306a36Sopenharmony_cistatic const char * const dbg_out_groups[] = { 57562306a36Sopenharmony_ci "gpio35", 57662306a36Sopenharmony_ci}; 57762306a36Sopenharmony_cistatic const char * const cri_trng_groups[] = { 57862306a36Sopenharmony_ci "gpio36", 57962306a36Sopenharmony_ci}; 58062306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = { 58162306a36Sopenharmony_ci "gpio38", 58262306a36Sopenharmony_ci}; 58362306a36Sopenharmony_cistatic const char * const cri_trng0_groups[] = { 58462306a36Sopenharmony_ci "gpio40", 58562306a36Sopenharmony_ci}; 58662306a36Sopenharmony_cistatic const char * const cri_trng1_groups[] = { 58762306a36Sopenharmony_ci "gpio41", 58862306a36Sopenharmony_ci}; 58962306a36Sopenharmony_cistatic const char * const coex_uart_groups[] = { 59062306a36Sopenharmony_ci "gpio44", "gpio45", 59162306a36Sopenharmony_ci}; 59262306a36Sopenharmony_cistatic const char * const ddr_pxi0_groups[] = { 59362306a36Sopenharmony_ci "gpio45", "gpio46", 59462306a36Sopenharmony_ci}; 59562306a36Sopenharmony_cistatic const char * const m_voc_groups[] = { 59662306a36Sopenharmony_ci "gpio46", "gpio48", "gpio49", "gpio59", "gpio60", 59762306a36Sopenharmony_ci}; 59862306a36Sopenharmony_cistatic const char * const ddr_bist_groups[] = { 59962306a36Sopenharmony_ci "gpio46", "gpio47", "gpio48", "gpio49", 60062306a36Sopenharmony_ci}; 60162306a36Sopenharmony_cistatic const char * const pci_e_groups[] = { 60262306a36Sopenharmony_ci "gpio53", 60362306a36Sopenharmony_ci}; 60462306a36Sopenharmony_cistatic const char * const tgu_ch0_groups[] = { 60562306a36Sopenharmony_ci "gpio55", 60662306a36Sopenharmony_ci}; 60762306a36Sopenharmony_cistatic const char * const pcie_clkreq_groups[] = { 60862306a36Sopenharmony_ci "gpio56", 60962306a36Sopenharmony_ci}; 61062306a36Sopenharmony_cistatic const char * const native_char_groups[] = { 61162306a36Sopenharmony_ci "gpio26", "gpio29", "gpio33", "gpio42", "gpio57", 61262306a36Sopenharmony_ci}; 61362306a36Sopenharmony_cistatic const char * const mgpi_clk_groups[] = { 61462306a36Sopenharmony_ci "gpio61", "gpio71", 61562306a36Sopenharmony_ci}; 61662306a36Sopenharmony_cistatic const char * const qlink2_wmss_groups[] = { 61762306a36Sopenharmony_ci "gpio61", 61862306a36Sopenharmony_ci}; 61962306a36Sopenharmony_cistatic const char * const i2s_mclk_groups[] = { 62062306a36Sopenharmony_ci "gpio62", 62162306a36Sopenharmony_ci}; 62262306a36Sopenharmony_cistatic const char * const audio_ref_groups[] = { 62362306a36Sopenharmony_ci "gpio62", 62462306a36Sopenharmony_ci}; 62562306a36Sopenharmony_cistatic const char * const ldo_update_groups[] = { 62662306a36Sopenharmony_ci "gpio62", 62762306a36Sopenharmony_ci}; 62862306a36Sopenharmony_cistatic const char * const atest_char_groups[] = { 62962306a36Sopenharmony_ci "gpio63", 63062306a36Sopenharmony_ci}; 63162306a36Sopenharmony_cistatic const char * const atest_char3_groups[] = { 63262306a36Sopenharmony_ci "gpio64", 63362306a36Sopenharmony_ci}; 63462306a36Sopenharmony_cistatic const char * const atest_char2_groups[] = { 63562306a36Sopenharmony_ci "gpio65", 63662306a36Sopenharmony_ci}; 63762306a36Sopenharmony_cistatic const char * const atest_char1_groups[] = { 63862306a36Sopenharmony_ci "gpio66", 63962306a36Sopenharmony_ci}; 64062306a36Sopenharmony_cistatic const char * const uim1_data_groups[] = { 64162306a36Sopenharmony_ci "gpio67", 64262306a36Sopenharmony_ci}; 64362306a36Sopenharmony_cistatic const char * const atest_char0_groups[] = { 64462306a36Sopenharmony_ci "gpio67", 64562306a36Sopenharmony_ci}; 64662306a36Sopenharmony_cistatic const char * const uim1_present_groups[] = { 64762306a36Sopenharmony_ci "gpio68", 64862306a36Sopenharmony_ci}; 64962306a36Sopenharmony_cistatic const char * const uim1_reset_groups[] = { 65062306a36Sopenharmony_ci "gpio69", 65162306a36Sopenharmony_ci}; 65262306a36Sopenharmony_cistatic const char * const uim1_clk_groups[] = { 65362306a36Sopenharmony_ci "gpio70", 65462306a36Sopenharmony_ci}; 65562306a36Sopenharmony_cistatic const char * const qlink2_en_groups[] = { 65662306a36Sopenharmony_ci "gpio71", 65762306a36Sopenharmony_ci}; 65862306a36Sopenharmony_cistatic const char * const qlink1_en_groups[] = { 65962306a36Sopenharmony_ci "gpio72", 66062306a36Sopenharmony_ci}; 66162306a36Sopenharmony_cistatic const char * const qlink1_req_groups[] = { 66262306a36Sopenharmony_ci "gpio73", 66362306a36Sopenharmony_ci}; 66462306a36Sopenharmony_cistatic const char * const qlink1_wmss_groups[] = { 66562306a36Sopenharmony_ci "gpio74", 66662306a36Sopenharmony_ci}; 66762306a36Sopenharmony_cistatic const char * const coex_uart2_groups[] = { 66862306a36Sopenharmony_ci "gpio75", "gpio76", "gpio102", "gpio103", 66962306a36Sopenharmony_ci}; 67062306a36Sopenharmony_cistatic const char * const spmi_coex_groups[] = { 67162306a36Sopenharmony_ci "gpio75", "gpio76", 67262306a36Sopenharmony_ci}; 67362306a36Sopenharmony_cistatic const char * const qlink2_req_groups[] = { 67462306a36Sopenharmony_ci "gpio77", 67562306a36Sopenharmony_ci}; 67662306a36Sopenharmony_cistatic const char * const spmi_vgi_groups[] = { 67762306a36Sopenharmony_ci "gpio78", "gpio79", 67862306a36Sopenharmony_ci}; 67962306a36Sopenharmony_cistatic const char * const gcc_plltest_groups[] = { 68062306a36Sopenharmony_ci "gpio81", "gpio82", 68162306a36Sopenharmony_ci}; 68262306a36Sopenharmony_cistatic const char * const ebi2_lcd_groups[] = { 68362306a36Sopenharmony_ci "gpio84", "gpio85", "gpio90", 68462306a36Sopenharmony_ci}; 68562306a36Sopenharmony_cistatic const char * const ebi2_a_groups[] = { 68662306a36Sopenharmony_ci "gpio89", 68762306a36Sopenharmony_ci}; 68862306a36Sopenharmony_cistatic const char * const usb2phy_ac_groups[] = { 68962306a36Sopenharmony_ci "gpio93", 69062306a36Sopenharmony_ci}; 69162306a36Sopenharmony_cistatic const char * const sdc1_tb_groups[] = { 69262306a36Sopenharmony_ci "gpio106", 69362306a36Sopenharmony_ci}; 69462306a36Sopenharmony_ci 69562306a36Sopenharmony_cistatic const struct pinfunction sdx65_functions[] = { 69662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink0_wmss), 69762306a36Sopenharmony_ci MSM_PIN_FUNCTION(adsp_ext), 69862306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char), 69962306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char0), 70062306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char1), 70162306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char2), 70262306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest_char3), 70362306a36Sopenharmony_ci MSM_PIN_FUNCTION(audio_ref), 70462306a36Sopenharmony_ci MSM_PIN_FUNCTION(bimc_dte0), 70562306a36Sopenharmony_ci MSM_PIN_FUNCTION(bimc_dte1), 70662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c1), 70762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c2), 70862306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c3), 70962306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_i2c4), 71062306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi1), 71162306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi2), 71262306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi3), 71362306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_spi4), 71462306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart1), 71562306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart2), 71662306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart3), 71762306a36Sopenharmony_ci MSM_PIN_FUNCTION(blsp_uart4), 71862306a36Sopenharmony_ci MSM_PIN_FUNCTION(char_exec), 71962306a36Sopenharmony_ci MSM_PIN_FUNCTION(coex_uart), 72062306a36Sopenharmony_ci MSM_PIN_FUNCTION(coex_uart2), 72162306a36Sopenharmony_ci MSM_PIN_FUNCTION(cri_trng), 72262306a36Sopenharmony_ci MSM_PIN_FUNCTION(cri_trng0), 72362306a36Sopenharmony_ci MSM_PIN_FUNCTION(cri_trng1), 72462306a36Sopenharmony_ci MSM_PIN_FUNCTION(dbg_out), 72562306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_bist), 72662306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi0), 72762306a36Sopenharmony_ci MSM_PIN_FUNCTION(ebi0_wrcdc), 72862306a36Sopenharmony_ci MSM_PIN_FUNCTION(ebi2_a), 72962306a36Sopenharmony_ci MSM_PIN_FUNCTION(ebi2_lcd), 73062306a36Sopenharmony_ci MSM_PIN_FUNCTION(ext_dbg), 73162306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp1), 73262306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp2), 73362306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp3), 73462306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_plltest), 73562306a36Sopenharmony_ci MSM_PIN_FUNCTION(gpio), 73662306a36Sopenharmony_ci MSM_PIN_FUNCTION(i2s_mclk), 73762306a36Sopenharmony_ci MSM_PIN_FUNCTION(jitter_bist), 73862306a36Sopenharmony_ci MSM_PIN_FUNCTION(ldo_en), 73962306a36Sopenharmony_ci MSM_PIN_FUNCTION(ldo_update), 74062306a36Sopenharmony_ci MSM_PIN_FUNCTION(m_voc), 74162306a36Sopenharmony_ci MSM_PIN_FUNCTION(mgpi_clk), 74262306a36Sopenharmony_ci MSM_PIN_FUNCTION(native_char), 74362306a36Sopenharmony_ci MSM_PIN_FUNCTION(native_tsens), 74462306a36Sopenharmony_ci MSM_PIN_FUNCTION(native_tsense), 74562306a36Sopenharmony_ci MSM_PIN_FUNCTION(nav_gpio), 74662306a36Sopenharmony_ci MSM_PIN_FUNCTION(pa_indicator), 74762306a36Sopenharmony_ci MSM_PIN_FUNCTION(pci_e), 74862306a36Sopenharmony_ci MSM_PIN_FUNCTION(pcie_clkreq), 74962306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_bist), 75062306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_ref), 75162306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s), 75262306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s_ws), 75362306a36Sopenharmony_ci MSM_PIN_FUNCTION(prng_rosc), 75462306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_cti), 75562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_gpio), 75662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink0_en), 75762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink0_req), 75862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink1_en), 75962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink1_req), 76062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink1_wmss), 76162306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink2_en), 76262306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink2_req), 76362306a36Sopenharmony_ci MSM_PIN_FUNCTION(qlink2_wmss), 76462306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc1_tb), 76562306a36Sopenharmony_ci MSM_PIN_FUNCTION(sec_mi2s), 76662306a36Sopenharmony_ci MSM_PIN_FUNCTION(spmi_coex), 76762306a36Sopenharmony_ci MSM_PIN_FUNCTION(spmi_vgi), 76862306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch0), 76962306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_clk), 77062306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_data), 77162306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_present), 77262306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim1_reset), 77362306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_clk), 77462306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_data), 77562306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_present), 77662306a36Sopenharmony_ci MSM_PIN_FUNCTION(uim2_reset), 77762306a36Sopenharmony_ci MSM_PIN_FUNCTION(usb2phy_ac), 77862306a36Sopenharmony_ci MSM_PIN_FUNCTION(vsense_trigger), 77962306a36Sopenharmony_ci}; 78062306a36Sopenharmony_ci 78162306a36Sopenharmony_ci/* Every pin is maintained as a single group, and missing or non-existing pin 78262306a36Sopenharmony_ci * would be maintained as dummy group to synchronize pin group index with 78362306a36Sopenharmony_ci * pin descriptor registered with pinctrl core. 78462306a36Sopenharmony_ci * Clients would not be able to request these dummy pin groups. 78562306a36Sopenharmony_ci */ 78662306a36Sopenharmony_cistatic const struct msm_pingroup sdx65_groups[] = { 78762306a36Sopenharmony_ci [0] = PINGROUP(0, uim2_data, blsp_uart1, ebi0_wrcdc, _, _, _, _, _, _), 78862306a36Sopenharmony_ci [1] = PINGROUP(1, uim2_present, blsp_uart1, _, _, _, _, _, _, _), 78962306a36Sopenharmony_ci [2] = PINGROUP(2, uim2_reset, blsp_uart1, blsp_i2c1, ebi0_wrcdc, _, _, _, _, _), 79062306a36Sopenharmony_ci [3] = PINGROUP(3, uim2_clk, blsp_uart1, blsp_i2c1, _, _, _, _, _, _), 79162306a36Sopenharmony_ci [4] = PINGROUP(4, blsp_spi2, blsp_uart2, _, qdss_gpio, _, _, _, _, _), 79262306a36Sopenharmony_ci [5] = PINGROUP(5, blsp_spi2, blsp_uart2, _, qdss_gpio, _, _, _, _, _), 79362306a36Sopenharmony_ci [6] = PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, char_exec, _, qdss_gpio, _, _, _), 79462306a36Sopenharmony_ci [7] = PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, char_exec, _, qdss_gpio, _, _, _), 79562306a36Sopenharmony_ci [8] = PINGROUP(8, blsp_spi3, blsp_uart3, ext_dbg, ldo_en, _, _, _, _, _), 79662306a36Sopenharmony_ci [9] = PINGROUP(9, blsp_spi3, blsp_uart3, ext_dbg, _, _, _, _, _, _), 79762306a36Sopenharmony_ci [10] = PINGROUP(10, blsp_spi3, blsp_uart3, blsp_i2c3, ext_dbg, _, _, _, _, _), 79862306a36Sopenharmony_ci [11] = PINGROUP(11, blsp_spi3, blsp_uart3, blsp_i2c3, ext_dbg, gcc_gp3, _, _, _, _), 79962306a36Sopenharmony_ci [12] = PINGROUP(12, pri_mi2s_ws, _, qdss_gpio, _, _, _, _, _, _), 80062306a36Sopenharmony_ci [13] = PINGROUP(13, pri_mi2s, _, qdss_gpio, vsense_trigger, _, _, _, _, _), 80162306a36Sopenharmony_ci [14] = PINGROUP(14, pri_mi2s, _, _, qdss_gpio, native_tsens, bimc_dte0, _, _, _), 80262306a36Sopenharmony_ci [15] = PINGROUP(15, pri_mi2s, _, _, qdss_gpio, bimc_dte1, _, _, _, _), 80362306a36Sopenharmony_ci [16] = PINGROUP(16, sec_mi2s, blsp_spi4, blsp_uart4, qdss_cti, qdss_cti, _, _, qdss_gpio, _), 80462306a36Sopenharmony_ci [17] = PINGROUP(17, sec_mi2s, blsp_spi4, blsp_uart4, qdss_cti, qdss_cti, _, qdss_gpio, _, _), 80562306a36Sopenharmony_ci [18] = PINGROUP(18, sec_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, gcc_gp1, qdss_gpio, _, _, _), 80662306a36Sopenharmony_ci [19] = PINGROUP(19, sec_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, jitter_bist, gcc_gp2, _, qdss_gpio, _), 80762306a36Sopenharmony_ci [20] = PINGROUP(20, _, _, _, _, _, _, _, _, _), 80862306a36Sopenharmony_ci [21] = PINGROUP(21, _, _, _, _, _, _, _, _, _), 80962306a36Sopenharmony_ci [22] = PINGROUP(22, blsp_uart4, pll_bist, _, _, _, _, _, _, _), 81062306a36Sopenharmony_ci [23] = PINGROUP(23, blsp_uart4, blsp_spi2, blsp_spi1, blsp_spi3, blsp_spi4, _, _, _, _), 81162306a36Sopenharmony_ci [24] = PINGROUP(24, adsp_ext, _, _, _, _, _, _, _, _), 81262306a36Sopenharmony_ci [25] = PINGROUP(25, adsp_ext, _, _, _, _, _, _, _, _), 81362306a36Sopenharmony_ci [26] = PINGROUP(26, _, _, _, native_char, _, _, _, _, _), 81462306a36Sopenharmony_ci [27] = PINGROUP(27, _, _, _, _, _, _, _, _, _), 81562306a36Sopenharmony_ci [28] = PINGROUP(28, qlink0_wmss, _, _, _, _, _, _, _, _), 81662306a36Sopenharmony_ci [29] = PINGROUP(29, _, _, _, native_tsense, native_char, _, _, _, _), 81762306a36Sopenharmony_ci [30] = PINGROUP(30, _, _, _, _, _, _, _, _, _), 81862306a36Sopenharmony_ci [31] = PINGROUP(31, nav_gpio, _, _, _, _, _, _, _, _), 81962306a36Sopenharmony_ci [32] = PINGROUP(32, nav_gpio, pll_ref, _, _, _, _, _, _, _), 82062306a36Sopenharmony_ci [33] = PINGROUP(33, _, pa_indicator, qdss_gpio, native_char, _, _, _, _, _), 82162306a36Sopenharmony_ci [34] = PINGROUP(34, qlink0_en, _, _, _, _, _, _, _, _), 82262306a36Sopenharmony_ci [35] = PINGROUP(35, qlink0_req, dbg_out, _, _, _, _, _, _, _), 82362306a36Sopenharmony_ci [36] = PINGROUP(36, _, _, cri_trng, _, _, _, _, _, _), 82462306a36Sopenharmony_ci [37] = PINGROUP(37, _, _, _, _, _, _, _, _, _), 82562306a36Sopenharmony_ci [38] = PINGROUP(38, _, _, prng_rosc, _, _, _, _, _, _), 82662306a36Sopenharmony_ci [39] = PINGROUP(39, _, _, _, _, _, _, _, _, _), 82762306a36Sopenharmony_ci [40] = PINGROUP(40, _, _, cri_trng0, _, _, _, _, _, _), 82862306a36Sopenharmony_ci [41] = PINGROUP(41, _, _, cri_trng1, _, _, _, _, _, _), 82962306a36Sopenharmony_ci [42] = PINGROUP(42, _, qdss_gpio, native_char, _, _, _, _, _, _), 83062306a36Sopenharmony_ci [43] = PINGROUP(43, _, _, _, _, _, _, _, _, _), 83162306a36Sopenharmony_ci [44] = PINGROUP(44, coex_uart, _, _, _, _, _, _, _, _), 83262306a36Sopenharmony_ci [45] = PINGROUP(45, coex_uart, ddr_pxi0, _, _, _, _, _, _, _), 83362306a36Sopenharmony_ci [46] = PINGROUP(46, m_voc, ddr_bist, ddr_pxi0, _, _, _, _, _, _), 83462306a36Sopenharmony_ci [47] = PINGROUP(47, ddr_bist, blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4, _, _, _, _), 83562306a36Sopenharmony_ci [48] = PINGROUP(48, m_voc, blsp_uart1, blsp_uart4, ddr_bist, _, _, _, _, _), 83662306a36Sopenharmony_ci [49] = PINGROUP(49, m_voc, blsp_uart1, blsp_uart4, ddr_bist, _, _, _, _, _), 83762306a36Sopenharmony_ci [50] = PINGROUP(50, _, _, _, _, _, _, _, _, _), 83862306a36Sopenharmony_ci [51] = PINGROUP(51, _, _, _, _, _, _, _, _, _), 83962306a36Sopenharmony_ci [52] = PINGROUP(52, _, _, _, _, _, _, _, _, _), 84062306a36Sopenharmony_ci [53] = PINGROUP(53, pci_e, _, _, _, _, _, _, _, _), 84162306a36Sopenharmony_ci [54] = PINGROUP(54, qdss_cti, qdss_cti, _, _, _, _, _, _, _), 84262306a36Sopenharmony_ci [55] = PINGROUP(55, qdss_cti, qdss_cti, tgu_ch0, _, _, _, _, _, _), 84362306a36Sopenharmony_ci [56] = PINGROUP(56, pcie_clkreq, _, _, _, _, _, _, _, _), 84462306a36Sopenharmony_ci [57] = PINGROUP(57, _, native_char, _, _, _, _, _, _, _), 84562306a36Sopenharmony_ci [58] = PINGROUP(58, _, _, _, _, _, _, _, _, _), 84662306a36Sopenharmony_ci [59] = PINGROUP(59, qdss_cti, m_voc, bimc_dte0, _, _, _, _, _, _), 84762306a36Sopenharmony_ci [60] = PINGROUP(60, qdss_cti, _, m_voc, _, _, _, _, _, _), 84862306a36Sopenharmony_ci [61] = PINGROUP(61, mgpi_clk, qlink2_wmss, bimc_dte1, _, _, _, _, _, _), 84962306a36Sopenharmony_ci [62] = PINGROUP(62, i2s_mclk, audio_ref, blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4, ldo_update, _, _), 85062306a36Sopenharmony_ci [63] = PINGROUP(63, blsp_uart2, _, qdss_gpio, atest_char, _, _, _, _, _), 85162306a36Sopenharmony_ci [64] = PINGROUP(64, blsp_uart2, qdss_gpio, atest_char3, _, _, _, _, _, _), 85262306a36Sopenharmony_ci [65] = PINGROUP(65, blsp_uart2, blsp_i2c2, qdss_cti, qdss_cti, _, qdss_gpio, atest_char2, _, _), 85362306a36Sopenharmony_ci [66] = PINGROUP(66, blsp_uart2, blsp_i2c2, qdss_cti, qdss_cti, qdss_gpio, atest_char1, _, _, _), 85462306a36Sopenharmony_ci [67] = PINGROUP(67, uim1_data, atest_char0, _, _, _, _, _, _, _), 85562306a36Sopenharmony_ci [68] = PINGROUP(68, uim1_present, _, _, _, _, _, _, _, _), 85662306a36Sopenharmony_ci [69] = PINGROUP(69, uim1_reset, _, _, _, _, _, _, _, _), 85762306a36Sopenharmony_ci [70] = PINGROUP(70, uim1_clk, _, _, _, _, _, _, _, _), 85862306a36Sopenharmony_ci [71] = PINGROUP(71, mgpi_clk, qlink2_en, _, _, _, _, _, _, _), 85962306a36Sopenharmony_ci [72] = PINGROUP(72, qlink1_en, _, native_tsense, _, _, _, _, _, _), 86062306a36Sopenharmony_ci [73] = PINGROUP(73, qlink1_req, _, _, _, _, _, _, _, _), 86162306a36Sopenharmony_ci [74] = PINGROUP(74, qlink1_wmss, _, _, _, _, _, _, _, _), 86262306a36Sopenharmony_ci [75] = PINGROUP(75, coex_uart2, spmi_coex, _, _, _, _, _, _, _), 86362306a36Sopenharmony_ci [76] = PINGROUP(76, coex_uart2, spmi_coex, _, _, _, _, _, _, _), 86462306a36Sopenharmony_ci [77] = PINGROUP(77, _, qlink2_req, _, _, _, _, _, _, _), 86562306a36Sopenharmony_ci [78] = PINGROUP(78, spmi_vgi, _, _, _, _, _, _, _, _), 86662306a36Sopenharmony_ci [79] = PINGROUP(79, spmi_vgi, _, _, _, _, _, _, _, _), 86762306a36Sopenharmony_ci [80] = PINGROUP(80, _, blsp_spi1, _, blsp_uart1, _, _, _, _, _), 86862306a36Sopenharmony_ci [81] = PINGROUP(81, _, blsp_spi1, _, blsp_uart1, gcc_plltest, _, _, _, _), 86962306a36Sopenharmony_ci [82] = PINGROUP(82, _, blsp_spi1, _, blsp_i2c1, gcc_plltest, _, _, _, _), 87062306a36Sopenharmony_ci [83] = PINGROUP(83, _, blsp_spi1, _, blsp_i2c1, _, _, _, _, _), 87162306a36Sopenharmony_ci [84] = PINGROUP(84, _, ebi2_lcd, _, blsp_i2c4, _, _, _, _, _), 87262306a36Sopenharmony_ci [85] = PINGROUP(85, _, ebi2_lcd, _, blsp_i2c4, _, _, _, _, _), 87362306a36Sopenharmony_ci [86] = PINGROUP(86, _, _, _, _, _, _, _, _, _), 87462306a36Sopenharmony_ci [87] = PINGROUP(87, _, _, _, _, _, _, _, _, _), 87562306a36Sopenharmony_ci [88] = PINGROUP(88, _, _, _, _, _, _, _, _, _), 87662306a36Sopenharmony_ci [89] = PINGROUP(89, _, _, _, _, ebi2_a, _, _, _, _), 87762306a36Sopenharmony_ci [90] = PINGROUP(90, _, _, _, _, ebi2_lcd, _, _, _, _), 87862306a36Sopenharmony_ci [91] = PINGROUP(91, _, _, _, _, _, _, _, _, _), 87962306a36Sopenharmony_ci [92] = PINGROUP(92, _, _, _, _, _, _, _, _, _), 88062306a36Sopenharmony_ci [93] = PINGROUP(93, _, _, usb2phy_ac, _, _, _, _, _, _), 88162306a36Sopenharmony_ci [94] = PINGROUP(94, qdss_cti, qdss_cti, _, _, _, _, _, _, _), 88262306a36Sopenharmony_ci [95] = PINGROUP(95, qdss_cti, qdss_cti, _, _, _, _, _, _, _), 88362306a36Sopenharmony_ci [96] = PINGROUP(96, _, _, _, _, _, _, _, _, _), 88462306a36Sopenharmony_ci [97] = PINGROUP(97, _, _, _, _, _, _, _, _, _), 88562306a36Sopenharmony_ci [98] = PINGROUP(98, _, _, _, _, _, _, _, _, _), 88662306a36Sopenharmony_ci [99] = PINGROUP(99, _, _, _, _, _, _, _, _, _), 88762306a36Sopenharmony_ci [100] = PINGROUP(100, _, _, _, _, _, _, _, _, _), 88862306a36Sopenharmony_ci [101] = PINGROUP(101, _, _, _, _, _, _, _, _, _), 88962306a36Sopenharmony_ci [102] = PINGROUP(102, _, _, coex_uart2, _, _, _, _, _, _), 89062306a36Sopenharmony_ci [103] = PINGROUP(103, _, _, coex_uart2, _, _, _, _, _, _), 89162306a36Sopenharmony_ci [104] = PINGROUP(104, _, _, _, _, _, _, _, _, _), 89262306a36Sopenharmony_ci [105] = PINGROUP(105, _, _, _, _, _, _, _, _, _), 89362306a36Sopenharmony_ci [106] = PINGROUP(106, sdc1_tb, _, _, _, _, _, _, _, _), 89462306a36Sopenharmony_ci [107] = PINGROUP(107, _, _, _, _, _, _, _, _, _), 89562306a36Sopenharmony_ci [108] = UFS_RESET(ufs_reset, 0x0), 89662306a36Sopenharmony_ci [109] = SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0), 89762306a36Sopenharmony_ci [110] = SDC_QDSD_PINGROUP(sdc1_clk, 0x9a000, 13, 6), 89862306a36Sopenharmony_ci [111] = SDC_QDSD_PINGROUP(sdc1_cmd, 0x9a000, 11, 3), 89962306a36Sopenharmony_ci [112] = SDC_QDSD_PINGROUP(sdc1_data, 0x9a000, 9, 0), 90062306a36Sopenharmony_ci}; 90162306a36Sopenharmony_ci 90262306a36Sopenharmony_cistatic const struct msm_gpio_wakeirq_map sdx65_pdc_map[] = { 90362306a36Sopenharmony_ci {1, 20}, {2, 21}, {5, 22}, {6, 23}, {9, 24}, {10, 25}, 90462306a36Sopenharmony_ci {11, 26}, {12, 27}, {13, 28}, {14, 29}, {15, 30}, {16, 31}, 90562306a36Sopenharmony_ci {17, 32}, {18, 33}, {19, 34}, {21, 35}, {22, 36}, {23, 70}, 90662306a36Sopenharmony_ci {24, 37}, {25, 38}, {35, 40}, {43, 41}, {46, 44}, {48, 45}, 90762306a36Sopenharmony_ci {49, 57}, {50, 46}, {52, 47}, {54, 49}, {55, 50}, {60, 53}, 90862306a36Sopenharmony_ci {61, 54}, {64, 55}, {65, 81}, {68, 56}, {71, 58}, {73, 59}, 90962306a36Sopenharmony_ci {77, 77}, {81, 65}, {83, 63}, {84, 64}, {86, 66}, {88, 67}, 91062306a36Sopenharmony_ci {89, 68}, {90, 69}, {93, 71}, {94, 72}, {95, 73}, {96, 74}, 91162306a36Sopenharmony_ci {99, 75}, {103, 78}, {104, 79} 91262306a36Sopenharmony_ci}; 91362306a36Sopenharmony_ci 91462306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data sdx65_pinctrl = { 91562306a36Sopenharmony_ci .pins = sdx65_pins, 91662306a36Sopenharmony_ci .npins = ARRAY_SIZE(sdx65_pins), 91762306a36Sopenharmony_ci .functions = sdx65_functions, 91862306a36Sopenharmony_ci .nfunctions = ARRAY_SIZE(sdx65_functions), 91962306a36Sopenharmony_ci .groups = sdx65_groups, 92062306a36Sopenharmony_ci .ngroups = ARRAY_SIZE(sdx65_groups), 92162306a36Sopenharmony_ci .ngpios = 109, 92262306a36Sopenharmony_ci .wakeirq_map = sdx65_pdc_map, 92362306a36Sopenharmony_ci .nwakeirq_map = ARRAY_SIZE(sdx65_pdc_map), 92462306a36Sopenharmony_ci}; 92562306a36Sopenharmony_ci 92662306a36Sopenharmony_cistatic int sdx65_pinctrl_probe(struct platform_device *pdev) 92762306a36Sopenharmony_ci{ 92862306a36Sopenharmony_ci return msm_pinctrl_probe(pdev, &sdx65_pinctrl); 92962306a36Sopenharmony_ci} 93062306a36Sopenharmony_ci 93162306a36Sopenharmony_cistatic const struct of_device_id sdx65_pinctrl_of_match[] = { 93262306a36Sopenharmony_ci { .compatible = "qcom,sdx65-tlmm", }, 93362306a36Sopenharmony_ci { }, 93462306a36Sopenharmony_ci}; 93562306a36Sopenharmony_ci 93662306a36Sopenharmony_cistatic struct platform_driver sdx65_pinctrl_driver = { 93762306a36Sopenharmony_ci .driver = { 93862306a36Sopenharmony_ci .name = "sdx65-tlmm", 93962306a36Sopenharmony_ci .of_match_table = sdx65_pinctrl_of_match, 94062306a36Sopenharmony_ci }, 94162306a36Sopenharmony_ci .probe = sdx65_pinctrl_probe, 94262306a36Sopenharmony_ci .remove = msm_pinctrl_remove, 94362306a36Sopenharmony_ci}; 94462306a36Sopenharmony_ci 94562306a36Sopenharmony_cistatic int __init sdx65_pinctrl_init(void) 94662306a36Sopenharmony_ci{ 94762306a36Sopenharmony_ci return platform_driver_register(&sdx65_pinctrl_driver); 94862306a36Sopenharmony_ci} 94962306a36Sopenharmony_ciarch_initcall(sdx65_pinctrl_init); 95062306a36Sopenharmony_ci 95162306a36Sopenharmony_cistatic void __exit sdx65_pinctrl_exit(void) 95262306a36Sopenharmony_ci{ 95362306a36Sopenharmony_ci platform_driver_unregister(&sdx65_pinctrl_driver); 95462306a36Sopenharmony_ci} 95562306a36Sopenharmony_cimodule_exit(sdx65_pinctrl_exit); 95662306a36Sopenharmony_ci 95762306a36Sopenharmony_ciMODULE_DESCRIPTION("QTI sdx65 pinctrl driver"); 95862306a36Sopenharmony_ciMODULE_LICENSE("GPL v2"); 95962306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, sdx65_pinctrl_of_match); 960