162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include <linux/module.h> 762306a36Sopenharmony_ci#include <linux/of.h> 862306a36Sopenharmony_ci#include <linux/platform_device.h> 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include "pinctrl-msm.h" 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistatic const char * const sm8250_tiles[] = { 1362306a36Sopenharmony_ci "west", 1462306a36Sopenharmony_ci "south", 1562306a36Sopenharmony_ci "north", 1662306a36Sopenharmony_ci}; 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_cienum { 1962306a36Sopenharmony_ci WEST, 2062306a36Sopenharmony_ci SOUTH, 2162306a36Sopenharmony_ci NORTH, 2262306a36Sopenharmony_ci}; 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#define REG_SIZE 0x1000 2562306a36Sopenharmony_ci#define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 2662306a36Sopenharmony_ci { \ 2762306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP("gpio" #id, \ 2862306a36Sopenharmony_ci gpio##id##_pins, \ 2962306a36Sopenharmony_ci ARRAY_SIZE(gpio##id##_pins)), \ 3062306a36Sopenharmony_ci .funcs = (int[]){ \ 3162306a36Sopenharmony_ci msm_mux_gpio, /* gpio mode */ \ 3262306a36Sopenharmony_ci msm_mux_##f1, \ 3362306a36Sopenharmony_ci msm_mux_##f2, \ 3462306a36Sopenharmony_ci msm_mux_##f3, \ 3562306a36Sopenharmony_ci msm_mux_##f4, \ 3662306a36Sopenharmony_ci msm_mux_##f5, \ 3762306a36Sopenharmony_ci msm_mux_##f6, \ 3862306a36Sopenharmony_ci msm_mux_##f7, \ 3962306a36Sopenharmony_ci msm_mux_##f8, \ 4062306a36Sopenharmony_ci msm_mux_##f9 \ 4162306a36Sopenharmony_ci }, \ 4262306a36Sopenharmony_ci .nfuncs = 10, \ 4362306a36Sopenharmony_ci .ctl_reg = REG_SIZE * id, \ 4462306a36Sopenharmony_ci .io_reg = REG_SIZE * id + 0x4, \ 4562306a36Sopenharmony_ci .intr_cfg_reg = REG_SIZE * id + 0x8, \ 4662306a36Sopenharmony_ci .intr_status_reg = REG_SIZE * id + 0xc, \ 4762306a36Sopenharmony_ci .intr_target_reg = REG_SIZE * id + 0x8, \ 4862306a36Sopenharmony_ci .tile = _tile, \ 4962306a36Sopenharmony_ci .mux_bit = 2, \ 5062306a36Sopenharmony_ci .pull_bit = 0, \ 5162306a36Sopenharmony_ci .drv_bit = 6, \ 5262306a36Sopenharmony_ci .oe_bit = 9, \ 5362306a36Sopenharmony_ci .in_bit = 0, \ 5462306a36Sopenharmony_ci .out_bit = 1, \ 5562306a36Sopenharmony_ci .intr_enable_bit = 0, \ 5662306a36Sopenharmony_ci .intr_status_bit = 0, \ 5762306a36Sopenharmony_ci .intr_target_bit = 5, \ 5862306a36Sopenharmony_ci .intr_target_kpss_val = 3, \ 5962306a36Sopenharmony_ci .intr_raw_status_bit = 4, \ 6062306a36Sopenharmony_ci .intr_polarity_bit = 1, \ 6162306a36Sopenharmony_ci .intr_detection_bit = 2, \ 6262306a36Sopenharmony_ci .intr_detection_width = 2, \ 6362306a36Sopenharmony_ci } 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci#define SDC_PINGROUP(pg_name, ctl, pull, drv) \ 6662306a36Sopenharmony_ci { \ 6762306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 6862306a36Sopenharmony_ci pg_name##_pins, \ 6962306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 7062306a36Sopenharmony_ci .ctl_reg = ctl, \ 7162306a36Sopenharmony_ci .io_reg = 0, \ 7262306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 7362306a36Sopenharmony_ci .intr_status_reg = 0, \ 7462306a36Sopenharmony_ci .intr_target_reg = 0, \ 7562306a36Sopenharmony_ci .tile = NORTH, \ 7662306a36Sopenharmony_ci .mux_bit = -1, \ 7762306a36Sopenharmony_ci .pull_bit = pull, \ 7862306a36Sopenharmony_ci .drv_bit = drv, \ 7962306a36Sopenharmony_ci .oe_bit = -1, \ 8062306a36Sopenharmony_ci .in_bit = -1, \ 8162306a36Sopenharmony_ci .out_bit = -1, \ 8262306a36Sopenharmony_ci .intr_enable_bit = -1, \ 8362306a36Sopenharmony_ci .intr_status_bit = -1, \ 8462306a36Sopenharmony_ci .intr_target_bit = -1, \ 8562306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 8662306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 8762306a36Sopenharmony_ci .intr_detection_bit = -1, \ 8862306a36Sopenharmony_ci .intr_detection_width = -1, \ 8962306a36Sopenharmony_ci } 9062306a36Sopenharmony_ci 9162306a36Sopenharmony_ci#define UFS_RESET(pg_name, offset) \ 9262306a36Sopenharmony_ci { \ 9362306a36Sopenharmony_ci .grp = PINCTRL_PINGROUP(#pg_name, \ 9462306a36Sopenharmony_ci pg_name##_pins, \ 9562306a36Sopenharmony_ci ARRAY_SIZE(pg_name##_pins)), \ 9662306a36Sopenharmony_ci .ctl_reg = offset, \ 9762306a36Sopenharmony_ci .io_reg = offset + 0x4, \ 9862306a36Sopenharmony_ci .intr_cfg_reg = 0, \ 9962306a36Sopenharmony_ci .intr_status_reg = 0, \ 10062306a36Sopenharmony_ci .intr_target_reg = 0, \ 10162306a36Sopenharmony_ci .tile = SOUTH, \ 10262306a36Sopenharmony_ci .mux_bit = -1, \ 10362306a36Sopenharmony_ci .pull_bit = 3, \ 10462306a36Sopenharmony_ci .drv_bit = 0, \ 10562306a36Sopenharmony_ci .oe_bit = -1, \ 10662306a36Sopenharmony_ci .in_bit = -1, \ 10762306a36Sopenharmony_ci .out_bit = 0, \ 10862306a36Sopenharmony_ci .intr_enable_bit = -1, \ 10962306a36Sopenharmony_ci .intr_status_bit = -1, \ 11062306a36Sopenharmony_ci .intr_target_bit = -1, \ 11162306a36Sopenharmony_ci .intr_raw_status_bit = -1, \ 11262306a36Sopenharmony_ci .intr_polarity_bit = -1, \ 11362306a36Sopenharmony_ci .intr_detection_bit = -1, \ 11462306a36Sopenharmony_ci .intr_detection_width = -1, \ 11562306a36Sopenharmony_ci } 11662306a36Sopenharmony_ci 11762306a36Sopenharmony_cistatic const struct pinctrl_pin_desc sm8250_pins[] = { 11862306a36Sopenharmony_ci PINCTRL_PIN(0, "GPIO_0"), 11962306a36Sopenharmony_ci PINCTRL_PIN(1, "GPIO_1"), 12062306a36Sopenharmony_ci PINCTRL_PIN(2, "GPIO_2"), 12162306a36Sopenharmony_ci PINCTRL_PIN(3, "GPIO_3"), 12262306a36Sopenharmony_ci PINCTRL_PIN(4, "GPIO_4"), 12362306a36Sopenharmony_ci PINCTRL_PIN(5, "GPIO_5"), 12462306a36Sopenharmony_ci PINCTRL_PIN(6, "GPIO_6"), 12562306a36Sopenharmony_ci PINCTRL_PIN(7, "GPIO_7"), 12662306a36Sopenharmony_ci PINCTRL_PIN(8, "GPIO_8"), 12762306a36Sopenharmony_ci PINCTRL_PIN(9, "GPIO_9"), 12862306a36Sopenharmony_ci PINCTRL_PIN(10, "GPIO_10"), 12962306a36Sopenharmony_ci PINCTRL_PIN(11, "GPIO_11"), 13062306a36Sopenharmony_ci PINCTRL_PIN(12, "GPIO_12"), 13162306a36Sopenharmony_ci PINCTRL_PIN(13, "GPIO_13"), 13262306a36Sopenharmony_ci PINCTRL_PIN(14, "GPIO_14"), 13362306a36Sopenharmony_ci PINCTRL_PIN(15, "GPIO_15"), 13462306a36Sopenharmony_ci PINCTRL_PIN(16, "GPIO_16"), 13562306a36Sopenharmony_ci PINCTRL_PIN(17, "GPIO_17"), 13662306a36Sopenharmony_ci PINCTRL_PIN(18, "GPIO_18"), 13762306a36Sopenharmony_ci PINCTRL_PIN(19, "GPIO_19"), 13862306a36Sopenharmony_ci PINCTRL_PIN(20, "GPIO_20"), 13962306a36Sopenharmony_ci PINCTRL_PIN(21, "GPIO_21"), 14062306a36Sopenharmony_ci PINCTRL_PIN(22, "GPIO_22"), 14162306a36Sopenharmony_ci PINCTRL_PIN(23, "GPIO_23"), 14262306a36Sopenharmony_ci PINCTRL_PIN(24, "GPIO_24"), 14362306a36Sopenharmony_ci PINCTRL_PIN(25, "GPIO_25"), 14462306a36Sopenharmony_ci PINCTRL_PIN(26, "GPIO_26"), 14562306a36Sopenharmony_ci PINCTRL_PIN(27, "GPIO_27"), 14662306a36Sopenharmony_ci PINCTRL_PIN(28, "GPIO_28"), 14762306a36Sopenharmony_ci PINCTRL_PIN(29, "GPIO_29"), 14862306a36Sopenharmony_ci PINCTRL_PIN(30, "GPIO_30"), 14962306a36Sopenharmony_ci PINCTRL_PIN(31, "GPIO_31"), 15062306a36Sopenharmony_ci PINCTRL_PIN(32, "GPIO_32"), 15162306a36Sopenharmony_ci PINCTRL_PIN(33, "GPIO_33"), 15262306a36Sopenharmony_ci PINCTRL_PIN(34, "GPIO_34"), 15362306a36Sopenharmony_ci PINCTRL_PIN(35, "GPIO_35"), 15462306a36Sopenharmony_ci PINCTRL_PIN(36, "GPIO_36"), 15562306a36Sopenharmony_ci PINCTRL_PIN(37, "GPIO_37"), 15662306a36Sopenharmony_ci PINCTRL_PIN(38, "GPIO_38"), 15762306a36Sopenharmony_ci PINCTRL_PIN(39, "GPIO_39"), 15862306a36Sopenharmony_ci PINCTRL_PIN(40, "GPIO_40"), 15962306a36Sopenharmony_ci PINCTRL_PIN(41, "GPIO_41"), 16062306a36Sopenharmony_ci PINCTRL_PIN(42, "GPIO_42"), 16162306a36Sopenharmony_ci PINCTRL_PIN(43, "GPIO_43"), 16262306a36Sopenharmony_ci PINCTRL_PIN(44, "GPIO_44"), 16362306a36Sopenharmony_ci PINCTRL_PIN(45, "GPIO_45"), 16462306a36Sopenharmony_ci PINCTRL_PIN(46, "GPIO_46"), 16562306a36Sopenharmony_ci PINCTRL_PIN(47, "GPIO_47"), 16662306a36Sopenharmony_ci PINCTRL_PIN(48, "GPIO_48"), 16762306a36Sopenharmony_ci PINCTRL_PIN(49, "GPIO_49"), 16862306a36Sopenharmony_ci PINCTRL_PIN(50, "GPIO_50"), 16962306a36Sopenharmony_ci PINCTRL_PIN(51, "GPIO_51"), 17062306a36Sopenharmony_ci PINCTRL_PIN(52, "GPIO_52"), 17162306a36Sopenharmony_ci PINCTRL_PIN(53, "GPIO_53"), 17262306a36Sopenharmony_ci PINCTRL_PIN(54, "GPIO_54"), 17362306a36Sopenharmony_ci PINCTRL_PIN(55, "GPIO_55"), 17462306a36Sopenharmony_ci PINCTRL_PIN(56, "GPIO_56"), 17562306a36Sopenharmony_ci PINCTRL_PIN(57, "GPIO_57"), 17662306a36Sopenharmony_ci PINCTRL_PIN(58, "GPIO_58"), 17762306a36Sopenharmony_ci PINCTRL_PIN(59, "GPIO_59"), 17862306a36Sopenharmony_ci PINCTRL_PIN(60, "GPIO_60"), 17962306a36Sopenharmony_ci PINCTRL_PIN(61, "GPIO_61"), 18062306a36Sopenharmony_ci PINCTRL_PIN(62, "GPIO_62"), 18162306a36Sopenharmony_ci PINCTRL_PIN(63, "GPIO_63"), 18262306a36Sopenharmony_ci PINCTRL_PIN(64, "GPIO_64"), 18362306a36Sopenharmony_ci PINCTRL_PIN(65, "GPIO_65"), 18462306a36Sopenharmony_ci PINCTRL_PIN(66, "GPIO_66"), 18562306a36Sopenharmony_ci PINCTRL_PIN(67, "GPIO_67"), 18662306a36Sopenharmony_ci PINCTRL_PIN(68, "GPIO_68"), 18762306a36Sopenharmony_ci PINCTRL_PIN(69, "GPIO_69"), 18862306a36Sopenharmony_ci PINCTRL_PIN(70, "GPIO_70"), 18962306a36Sopenharmony_ci PINCTRL_PIN(71, "GPIO_71"), 19062306a36Sopenharmony_ci PINCTRL_PIN(72, "GPIO_72"), 19162306a36Sopenharmony_ci PINCTRL_PIN(73, "GPIO_73"), 19262306a36Sopenharmony_ci PINCTRL_PIN(74, "GPIO_74"), 19362306a36Sopenharmony_ci PINCTRL_PIN(75, "GPIO_75"), 19462306a36Sopenharmony_ci PINCTRL_PIN(76, "GPIO_76"), 19562306a36Sopenharmony_ci PINCTRL_PIN(77, "GPIO_77"), 19662306a36Sopenharmony_ci PINCTRL_PIN(78, "GPIO_78"), 19762306a36Sopenharmony_ci PINCTRL_PIN(79, "GPIO_79"), 19862306a36Sopenharmony_ci PINCTRL_PIN(80, "GPIO_80"), 19962306a36Sopenharmony_ci PINCTRL_PIN(81, "GPIO_81"), 20062306a36Sopenharmony_ci PINCTRL_PIN(82, "GPIO_82"), 20162306a36Sopenharmony_ci PINCTRL_PIN(83, "GPIO_83"), 20262306a36Sopenharmony_ci PINCTRL_PIN(84, "GPIO_84"), 20362306a36Sopenharmony_ci PINCTRL_PIN(85, "GPIO_85"), 20462306a36Sopenharmony_ci PINCTRL_PIN(86, "GPIO_86"), 20562306a36Sopenharmony_ci PINCTRL_PIN(87, "GPIO_87"), 20662306a36Sopenharmony_ci PINCTRL_PIN(88, "GPIO_88"), 20762306a36Sopenharmony_ci PINCTRL_PIN(89, "GPIO_89"), 20862306a36Sopenharmony_ci PINCTRL_PIN(90, "GPIO_90"), 20962306a36Sopenharmony_ci PINCTRL_PIN(91, "GPIO_91"), 21062306a36Sopenharmony_ci PINCTRL_PIN(92, "GPIO_92"), 21162306a36Sopenharmony_ci PINCTRL_PIN(93, "GPIO_93"), 21262306a36Sopenharmony_ci PINCTRL_PIN(94, "GPIO_94"), 21362306a36Sopenharmony_ci PINCTRL_PIN(95, "GPIO_95"), 21462306a36Sopenharmony_ci PINCTRL_PIN(96, "GPIO_96"), 21562306a36Sopenharmony_ci PINCTRL_PIN(97, "GPIO_97"), 21662306a36Sopenharmony_ci PINCTRL_PIN(98, "GPIO_98"), 21762306a36Sopenharmony_ci PINCTRL_PIN(99, "GPIO_99"), 21862306a36Sopenharmony_ci PINCTRL_PIN(100, "GPIO_100"), 21962306a36Sopenharmony_ci PINCTRL_PIN(101, "GPIO_101"), 22062306a36Sopenharmony_ci PINCTRL_PIN(102, "GPIO_102"), 22162306a36Sopenharmony_ci PINCTRL_PIN(103, "GPIO_103"), 22262306a36Sopenharmony_ci PINCTRL_PIN(104, "GPIO_104"), 22362306a36Sopenharmony_ci PINCTRL_PIN(105, "GPIO_105"), 22462306a36Sopenharmony_ci PINCTRL_PIN(106, "GPIO_106"), 22562306a36Sopenharmony_ci PINCTRL_PIN(107, "GPIO_107"), 22662306a36Sopenharmony_ci PINCTRL_PIN(108, "GPIO_108"), 22762306a36Sopenharmony_ci PINCTRL_PIN(109, "GPIO_109"), 22862306a36Sopenharmony_ci PINCTRL_PIN(110, "GPIO_110"), 22962306a36Sopenharmony_ci PINCTRL_PIN(111, "GPIO_111"), 23062306a36Sopenharmony_ci PINCTRL_PIN(112, "GPIO_112"), 23162306a36Sopenharmony_ci PINCTRL_PIN(113, "GPIO_113"), 23262306a36Sopenharmony_ci PINCTRL_PIN(114, "GPIO_114"), 23362306a36Sopenharmony_ci PINCTRL_PIN(115, "GPIO_115"), 23462306a36Sopenharmony_ci PINCTRL_PIN(116, "GPIO_116"), 23562306a36Sopenharmony_ci PINCTRL_PIN(117, "GPIO_117"), 23662306a36Sopenharmony_ci PINCTRL_PIN(118, "GPIO_118"), 23762306a36Sopenharmony_ci PINCTRL_PIN(119, "GPIO_119"), 23862306a36Sopenharmony_ci PINCTRL_PIN(120, "GPIO_120"), 23962306a36Sopenharmony_ci PINCTRL_PIN(121, "GPIO_121"), 24062306a36Sopenharmony_ci PINCTRL_PIN(122, "GPIO_122"), 24162306a36Sopenharmony_ci PINCTRL_PIN(123, "GPIO_123"), 24262306a36Sopenharmony_ci PINCTRL_PIN(124, "GPIO_124"), 24362306a36Sopenharmony_ci PINCTRL_PIN(125, "GPIO_125"), 24462306a36Sopenharmony_ci PINCTRL_PIN(126, "GPIO_126"), 24562306a36Sopenharmony_ci PINCTRL_PIN(127, "GPIO_127"), 24662306a36Sopenharmony_ci PINCTRL_PIN(128, "GPIO_128"), 24762306a36Sopenharmony_ci PINCTRL_PIN(129, "GPIO_129"), 24862306a36Sopenharmony_ci PINCTRL_PIN(130, "GPIO_130"), 24962306a36Sopenharmony_ci PINCTRL_PIN(131, "GPIO_131"), 25062306a36Sopenharmony_ci PINCTRL_PIN(132, "GPIO_132"), 25162306a36Sopenharmony_ci PINCTRL_PIN(133, "GPIO_133"), 25262306a36Sopenharmony_ci PINCTRL_PIN(134, "GPIO_134"), 25362306a36Sopenharmony_ci PINCTRL_PIN(135, "GPIO_135"), 25462306a36Sopenharmony_ci PINCTRL_PIN(136, "GPIO_136"), 25562306a36Sopenharmony_ci PINCTRL_PIN(137, "GPIO_137"), 25662306a36Sopenharmony_ci PINCTRL_PIN(138, "GPIO_138"), 25762306a36Sopenharmony_ci PINCTRL_PIN(139, "GPIO_139"), 25862306a36Sopenharmony_ci PINCTRL_PIN(140, "GPIO_140"), 25962306a36Sopenharmony_ci PINCTRL_PIN(141, "GPIO_141"), 26062306a36Sopenharmony_ci PINCTRL_PIN(142, "GPIO_142"), 26162306a36Sopenharmony_ci PINCTRL_PIN(143, "GPIO_143"), 26262306a36Sopenharmony_ci PINCTRL_PIN(144, "GPIO_144"), 26362306a36Sopenharmony_ci PINCTRL_PIN(145, "GPIO_145"), 26462306a36Sopenharmony_ci PINCTRL_PIN(146, "GPIO_146"), 26562306a36Sopenharmony_ci PINCTRL_PIN(147, "GPIO_147"), 26662306a36Sopenharmony_ci PINCTRL_PIN(148, "GPIO_148"), 26762306a36Sopenharmony_ci PINCTRL_PIN(149, "GPIO_149"), 26862306a36Sopenharmony_ci PINCTRL_PIN(150, "GPIO_150"), 26962306a36Sopenharmony_ci PINCTRL_PIN(151, "GPIO_151"), 27062306a36Sopenharmony_ci PINCTRL_PIN(152, "GPIO_152"), 27162306a36Sopenharmony_ci PINCTRL_PIN(153, "GPIO_153"), 27262306a36Sopenharmony_ci PINCTRL_PIN(154, "GPIO_154"), 27362306a36Sopenharmony_ci PINCTRL_PIN(155, "GPIO_155"), 27462306a36Sopenharmony_ci PINCTRL_PIN(156, "GPIO_156"), 27562306a36Sopenharmony_ci PINCTRL_PIN(157, "GPIO_157"), 27662306a36Sopenharmony_ci PINCTRL_PIN(158, "GPIO_158"), 27762306a36Sopenharmony_ci PINCTRL_PIN(159, "GPIO_159"), 27862306a36Sopenharmony_ci PINCTRL_PIN(160, "GPIO_160"), 27962306a36Sopenharmony_ci PINCTRL_PIN(161, "GPIO_161"), 28062306a36Sopenharmony_ci PINCTRL_PIN(162, "GPIO_162"), 28162306a36Sopenharmony_ci PINCTRL_PIN(163, "GPIO_163"), 28262306a36Sopenharmony_ci PINCTRL_PIN(164, "GPIO_164"), 28362306a36Sopenharmony_ci PINCTRL_PIN(165, "GPIO_165"), 28462306a36Sopenharmony_ci PINCTRL_PIN(166, "GPIO_166"), 28562306a36Sopenharmony_ci PINCTRL_PIN(167, "GPIO_167"), 28662306a36Sopenharmony_ci PINCTRL_PIN(168, "GPIO_168"), 28762306a36Sopenharmony_ci PINCTRL_PIN(169, "GPIO_169"), 28862306a36Sopenharmony_ci PINCTRL_PIN(170, "GPIO_170"), 28962306a36Sopenharmony_ci PINCTRL_PIN(171, "GPIO_171"), 29062306a36Sopenharmony_ci PINCTRL_PIN(172, "GPIO_172"), 29162306a36Sopenharmony_ci PINCTRL_PIN(173, "GPIO_173"), 29262306a36Sopenharmony_ci PINCTRL_PIN(174, "GPIO_174"), 29362306a36Sopenharmony_ci PINCTRL_PIN(175, "GPIO_175"), 29462306a36Sopenharmony_ci PINCTRL_PIN(176, "GPIO_176"), 29562306a36Sopenharmony_ci PINCTRL_PIN(177, "GPIO_177"), 29662306a36Sopenharmony_ci PINCTRL_PIN(178, "GPIO_178"), 29762306a36Sopenharmony_ci PINCTRL_PIN(179, "GPIO_179"), 29862306a36Sopenharmony_ci PINCTRL_PIN(180, "SDC2_CLK"), 29962306a36Sopenharmony_ci PINCTRL_PIN(181, "SDC2_CMD"), 30062306a36Sopenharmony_ci PINCTRL_PIN(182, "SDC2_DATA"), 30162306a36Sopenharmony_ci PINCTRL_PIN(183, "UFS_RESET"), 30262306a36Sopenharmony_ci}; 30362306a36Sopenharmony_ci 30462306a36Sopenharmony_ci#define DECLARE_MSM_GPIO_PINS(pin) \ 30562306a36Sopenharmony_ci static const unsigned int gpio##pin##_pins[] = { pin } 30662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(0); 30762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(1); 30862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(2); 30962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(3); 31062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(4); 31162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(5); 31262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(6); 31362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(7); 31462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(8); 31562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(9); 31662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(10); 31762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(11); 31862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(12); 31962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(13); 32062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(14); 32162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(15); 32262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(16); 32362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(17); 32462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(18); 32562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(19); 32662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(20); 32762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(21); 32862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(22); 32962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(23); 33062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(24); 33162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(25); 33262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(26); 33362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(27); 33462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(28); 33562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(29); 33662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(30); 33762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(31); 33862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(32); 33962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(33); 34062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(34); 34162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(35); 34262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(36); 34362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(37); 34462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(38); 34562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(39); 34662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(40); 34762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(41); 34862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(42); 34962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(43); 35062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(44); 35162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(45); 35262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(46); 35362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(47); 35462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(48); 35562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(49); 35662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(50); 35762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(51); 35862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(52); 35962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(53); 36062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(54); 36162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(55); 36262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(56); 36362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(57); 36462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(58); 36562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(59); 36662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(60); 36762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(61); 36862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(62); 36962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(63); 37062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(64); 37162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(65); 37262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(66); 37362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(67); 37462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(68); 37562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(69); 37662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(70); 37762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(71); 37862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(72); 37962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(73); 38062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(74); 38162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(75); 38262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(76); 38362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(77); 38462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(78); 38562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(79); 38662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(80); 38762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(81); 38862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(82); 38962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(83); 39062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(84); 39162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(85); 39262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(86); 39362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(87); 39462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(88); 39562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(89); 39662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(90); 39762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(91); 39862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(92); 39962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(93); 40062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(94); 40162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(95); 40262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(96); 40362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(97); 40462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(98); 40562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(99); 40662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(100); 40762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(101); 40862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(102); 40962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(103); 41062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(104); 41162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(105); 41262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(106); 41362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(107); 41462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(108); 41562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(109); 41662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(110); 41762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(111); 41862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(112); 41962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(113); 42062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(114); 42162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(115); 42262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(116); 42362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(117); 42462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(118); 42562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(119); 42662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(120); 42762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(121); 42862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(122); 42962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(123); 43062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(124); 43162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(125); 43262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(126); 43362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(127); 43462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(128); 43562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(129); 43662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(130); 43762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(131); 43862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(132); 43962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(133); 44062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(134); 44162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(135); 44262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(136); 44362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(137); 44462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(138); 44562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(139); 44662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(140); 44762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(141); 44862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(142); 44962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(143); 45062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(144); 45162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(145); 45262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(146); 45362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(147); 45462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(148); 45562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(149); 45662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(150); 45762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(151); 45862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(152); 45962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(153); 46062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(154); 46162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(155); 46262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(156); 46362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(157); 46462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(158); 46562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(159); 46662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(160); 46762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(161); 46862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(162); 46962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(163); 47062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(164); 47162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(165); 47262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(166); 47362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(167); 47462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(168); 47562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(169); 47662306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(170); 47762306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(171); 47862306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(172); 47962306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(173); 48062306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(174); 48162306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(175); 48262306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(176); 48362306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(177); 48462306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(178); 48562306a36Sopenharmony_ciDECLARE_MSM_GPIO_PINS(179); 48662306a36Sopenharmony_ci 48762306a36Sopenharmony_cistatic const unsigned int ufs_reset_pins[] = { 180 }; 48862306a36Sopenharmony_cistatic const unsigned int sdc2_clk_pins[] = { 181 }; 48962306a36Sopenharmony_cistatic const unsigned int sdc2_cmd_pins[] = { 182 }; 49062306a36Sopenharmony_cistatic const unsigned int sdc2_data_pins[] = { 183 }; 49162306a36Sopenharmony_ci 49262306a36Sopenharmony_cienum sm8250_functions { 49362306a36Sopenharmony_ci msm_mux_aoss_cti, 49462306a36Sopenharmony_ci msm_mux_atest, 49562306a36Sopenharmony_ci msm_mux_audio_ref, 49662306a36Sopenharmony_ci msm_mux_cam_mclk, 49762306a36Sopenharmony_ci msm_mux_cci_async, 49862306a36Sopenharmony_ci msm_mux_cci_i2c, 49962306a36Sopenharmony_ci msm_mux_cci_timer0, 50062306a36Sopenharmony_ci msm_mux_cci_timer1, 50162306a36Sopenharmony_ci msm_mux_cci_timer2, 50262306a36Sopenharmony_ci msm_mux_cci_timer3, 50362306a36Sopenharmony_ci msm_mux_cci_timer4, 50462306a36Sopenharmony_ci msm_mux_cri_trng, 50562306a36Sopenharmony_ci msm_mux_cri_trng0, 50662306a36Sopenharmony_ci msm_mux_cri_trng1, 50762306a36Sopenharmony_ci msm_mux_dbg_out, 50862306a36Sopenharmony_ci msm_mux_ddr_bist, 50962306a36Sopenharmony_ci msm_mux_ddr_pxi0, 51062306a36Sopenharmony_ci msm_mux_ddr_pxi1, 51162306a36Sopenharmony_ci msm_mux_ddr_pxi2, 51262306a36Sopenharmony_ci msm_mux_ddr_pxi3, 51362306a36Sopenharmony_ci msm_mux_dp_hot, 51462306a36Sopenharmony_ci msm_mux_dp_lcd, 51562306a36Sopenharmony_ci msm_mux_gcc_gp1, 51662306a36Sopenharmony_ci msm_mux_gcc_gp2, 51762306a36Sopenharmony_ci msm_mux_gcc_gp3, 51862306a36Sopenharmony_ci msm_mux_gpio, 51962306a36Sopenharmony_ci msm_mux_ibi_i3c, 52062306a36Sopenharmony_ci msm_mux_jitter_bist, 52162306a36Sopenharmony_ci msm_mux_lpass_slimbus, 52262306a36Sopenharmony_ci msm_mux_mdp_vsync, 52362306a36Sopenharmony_ci msm_mux_mdp_vsync0, 52462306a36Sopenharmony_ci msm_mux_mdp_vsync1, 52562306a36Sopenharmony_ci msm_mux_mdp_vsync2, 52662306a36Sopenharmony_ci msm_mux_mdp_vsync3, 52762306a36Sopenharmony_ci msm_mux_mi2s0_data0, 52862306a36Sopenharmony_ci msm_mux_mi2s0_data1, 52962306a36Sopenharmony_ci msm_mux_mi2s0_sck, 53062306a36Sopenharmony_ci msm_mux_mi2s0_ws, 53162306a36Sopenharmony_ci msm_mux_mi2s1_data0, 53262306a36Sopenharmony_ci msm_mux_mi2s1_data1, 53362306a36Sopenharmony_ci msm_mux_mi2s1_sck, 53462306a36Sopenharmony_ci msm_mux_mi2s1_ws, 53562306a36Sopenharmony_ci msm_mux_mi2s2_data0, 53662306a36Sopenharmony_ci msm_mux_mi2s2_data1, 53762306a36Sopenharmony_ci msm_mux_mi2s2_sck, 53862306a36Sopenharmony_ci msm_mux_mi2s2_ws, 53962306a36Sopenharmony_ci msm_mux_pci_e0, 54062306a36Sopenharmony_ci msm_mux_pci_e1, 54162306a36Sopenharmony_ci msm_mux_pci_e2, 54262306a36Sopenharmony_ci msm_mux_phase_flag, 54362306a36Sopenharmony_ci msm_mux_pll_bist, 54462306a36Sopenharmony_ci msm_mux_pll_bypassnl, 54562306a36Sopenharmony_ci msm_mux_pll_clk, 54662306a36Sopenharmony_ci msm_mux_pll_reset, 54762306a36Sopenharmony_ci msm_mux_pri_mi2s, 54862306a36Sopenharmony_ci msm_mux_prng_rosc, 54962306a36Sopenharmony_ci msm_mux_qdss_cti, 55062306a36Sopenharmony_ci msm_mux_qdss_gpio, 55162306a36Sopenharmony_ci msm_mux_qspi0, 55262306a36Sopenharmony_ci msm_mux_qspi1, 55362306a36Sopenharmony_ci msm_mux_qspi2, 55462306a36Sopenharmony_ci msm_mux_qspi3, 55562306a36Sopenharmony_ci msm_mux_qspi_clk, 55662306a36Sopenharmony_ci msm_mux_qspi_cs, 55762306a36Sopenharmony_ci msm_mux_qup0, 55862306a36Sopenharmony_ci msm_mux_qup1, 55962306a36Sopenharmony_ci msm_mux_qup10, 56062306a36Sopenharmony_ci msm_mux_qup11, 56162306a36Sopenharmony_ci msm_mux_qup12, 56262306a36Sopenharmony_ci msm_mux_qup13, 56362306a36Sopenharmony_ci msm_mux_qup14, 56462306a36Sopenharmony_ci msm_mux_qup15, 56562306a36Sopenharmony_ci msm_mux_qup16, 56662306a36Sopenharmony_ci msm_mux_qup17, 56762306a36Sopenharmony_ci msm_mux_qup18, 56862306a36Sopenharmony_ci msm_mux_qup19, 56962306a36Sopenharmony_ci msm_mux_qup2, 57062306a36Sopenharmony_ci msm_mux_qup3, 57162306a36Sopenharmony_ci msm_mux_qup4, 57262306a36Sopenharmony_ci msm_mux_qup5, 57362306a36Sopenharmony_ci msm_mux_qup6, 57462306a36Sopenharmony_ci msm_mux_qup7, 57562306a36Sopenharmony_ci msm_mux_qup8, 57662306a36Sopenharmony_ci msm_mux_qup9, 57762306a36Sopenharmony_ci msm_mux_qup_l4, 57862306a36Sopenharmony_ci msm_mux_qup_l5, 57962306a36Sopenharmony_ci msm_mux_qup_l6, 58062306a36Sopenharmony_ci msm_mux_sd_write, 58162306a36Sopenharmony_ci msm_mux_sdc40, 58262306a36Sopenharmony_ci msm_mux_sdc41, 58362306a36Sopenharmony_ci msm_mux_sdc42, 58462306a36Sopenharmony_ci msm_mux_sdc43, 58562306a36Sopenharmony_ci msm_mux_sdc4_clk, 58662306a36Sopenharmony_ci msm_mux_sdc4_cmd, 58762306a36Sopenharmony_ci msm_mux_sec_mi2s, 58862306a36Sopenharmony_ci msm_mux_sp_cmu, 58962306a36Sopenharmony_ci msm_mux_tgu_ch0, 59062306a36Sopenharmony_ci msm_mux_tgu_ch1, 59162306a36Sopenharmony_ci msm_mux_tgu_ch2, 59262306a36Sopenharmony_ci msm_mux_tgu_ch3, 59362306a36Sopenharmony_ci msm_mux_tsense_pwm1, 59462306a36Sopenharmony_ci msm_mux_tsense_pwm2, 59562306a36Sopenharmony_ci msm_mux_tsif0_clk, 59662306a36Sopenharmony_ci msm_mux_tsif0_data, 59762306a36Sopenharmony_ci msm_mux_tsif0_en, 59862306a36Sopenharmony_ci msm_mux_tsif0_error, 59962306a36Sopenharmony_ci msm_mux_tsif0_sync, 60062306a36Sopenharmony_ci msm_mux_tsif1_clk, 60162306a36Sopenharmony_ci msm_mux_tsif1_data, 60262306a36Sopenharmony_ci msm_mux_tsif1_en, 60362306a36Sopenharmony_ci msm_mux_tsif1_error, 60462306a36Sopenharmony_ci msm_mux_tsif1_sync, 60562306a36Sopenharmony_ci msm_mux_usb2phy_ac, 60662306a36Sopenharmony_ci msm_mux_usb_phy, 60762306a36Sopenharmony_ci msm_mux_vsense_trigger, 60862306a36Sopenharmony_ci msm_mux__, 60962306a36Sopenharmony_ci}; 61062306a36Sopenharmony_ci 61162306a36Sopenharmony_cistatic const char * const tsif1_data_groups[] = { 61262306a36Sopenharmony_ci "gpio75", 61362306a36Sopenharmony_ci}; 61462306a36Sopenharmony_cistatic const char * const sdc41_groups[] = { 61562306a36Sopenharmony_ci "gpio75", 61662306a36Sopenharmony_ci}; 61762306a36Sopenharmony_cistatic const char * const tsif1_sync_groups[] = { 61862306a36Sopenharmony_ci "gpio76", 61962306a36Sopenharmony_ci}; 62062306a36Sopenharmony_cistatic const char * const sdc40_groups[] = { 62162306a36Sopenharmony_ci "gpio76", 62262306a36Sopenharmony_ci}; 62362306a36Sopenharmony_cistatic const char * const aoss_cti_groups[] = { 62462306a36Sopenharmony_ci "gpio77", 62562306a36Sopenharmony_ci}; 62662306a36Sopenharmony_cistatic const char * const phase_flag_groups[] = { 62762306a36Sopenharmony_ci "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", "gpio50", "gpio51", 62862306a36Sopenharmony_ci "gpio69", "gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio77", 62962306a36Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 63062306a36Sopenharmony_ci "gpio103", "gpio104", "gpio115", "gpio116", "gpio117", "gpio118", 63162306a36Sopenharmony_ci "gpio119", "gpio120", "gpio122", "gpio124", "gpio125", 63262306a36Sopenharmony_ci}; 63362306a36Sopenharmony_cistatic const char * const sd_write_groups[] = { 63462306a36Sopenharmony_ci "gpio78", 63562306a36Sopenharmony_ci}; 63662306a36Sopenharmony_cistatic const char * const pci_e0_groups[] = { 63762306a36Sopenharmony_ci "gpio79", "gpio80", 63862306a36Sopenharmony_ci}; 63962306a36Sopenharmony_cistatic const char * const pci_e1_groups[] = { 64062306a36Sopenharmony_ci "gpio82", "gpio83", 64162306a36Sopenharmony_ci}; 64262306a36Sopenharmony_cistatic const char * const pci_e2_groups[] = { 64362306a36Sopenharmony_ci "gpio85", "gpio86", 64462306a36Sopenharmony_ci}; 64562306a36Sopenharmony_cistatic const char * const tgu_ch0_groups[] = { 64662306a36Sopenharmony_ci "gpio85", 64762306a36Sopenharmony_ci}; 64862306a36Sopenharmony_cistatic const char * const atest_groups[] = { 64962306a36Sopenharmony_ci "gpio24", "gpio25", "gpio26", "gpio27", "gpio32", "gpio33", "gpio34", 65062306a36Sopenharmony_ci "gpio35", "gpio36", "gpio37", "gpio85", "gpio86", "gpio87", "gpio88", 65162306a36Sopenharmony_ci "gpio89", 65262306a36Sopenharmony_ci}; 65362306a36Sopenharmony_cistatic const char * const tgu_ch3_groups[] = { 65462306a36Sopenharmony_ci "gpio86", 65562306a36Sopenharmony_ci}; 65662306a36Sopenharmony_cistatic const char * const tsif1_error_groups[] = { 65762306a36Sopenharmony_ci "gpio90", 65862306a36Sopenharmony_ci}; 65962306a36Sopenharmony_cistatic const char * const tgu_ch1_groups[] = { 66062306a36Sopenharmony_ci "gpio90", 66162306a36Sopenharmony_ci}; 66262306a36Sopenharmony_cistatic const char * const tsif0_error_groups[] = { 66362306a36Sopenharmony_ci "gpio91", 66462306a36Sopenharmony_ci}; 66562306a36Sopenharmony_cistatic const char * const tgu_ch2_groups[] = { 66662306a36Sopenharmony_ci "gpio91", 66762306a36Sopenharmony_ci}; 66862306a36Sopenharmony_cistatic const char * const cam_mclk_groups[] = { 66962306a36Sopenharmony_ci "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", 67062306a36Sopenharmony_ci}; 67162306a36Sopenharmony_cistatic const char * const ddr_bist_groups[] = { 67262306a36Sopenharmony_ci "gpio94", "gpio95", "gpio143", "gpio144", 67362306a36Sopenharmony_ci}; 67462306a36Sopenharmony_cistatic const char * const pll_bypassnl_groups[] = { 67562306a36Sopenharmony_ci "gpio96", 67662306a36Sopenharmony_ci}; 67762306a36Sopenharmony_cistatic const char * const pll_reset_groups[] = { 67862306a36Sopenharmony_ci "gpio97", 67962306a36Sopenharmony_ci}; 68062306a36Sopenharmony_cistatic const char * const cci_i2c_groups[] = { 68162306a36Sopenharmony_ci "gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", 68262306a36Sopenharmony_ci "gpio107", "gpio108", 68362306a36Sopenharmony_ci}; 68462306a36Sopenharmony_cistatic const char * const qdss_gpio_groups[] = { 68562306a36Sopenharmony_ci "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", 68662306a36Sopenharmony_ci "gpio101", "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", 68762306a36Sopenharmony_ci "gpio107", "gpio108", "gpio109", "gpio110", "gpio111", "gpio160", 68862306a36Sopenharmony_ci "gpio161", "gpio162", "gpio163", "gpio164", "gpio165", "gpio166", 68962306a36Sopenharmony_ci "gpio167", "gpio168", "gpio169", "gpio170", "gpio171", "gpio172", 69062306a36Sopenharmony_ci "gpio173", "gpio174", "gpio175", "gpio176", "gpio177", 69162306a36Sopenharmony_ci}; 69262306a36Sopenharmony_cistatic const char * const gcc_gp1_groups[] = { 69362306a36Sopenharmony_ci "gpio106", "gpio136", 69462306a36Sopenharmony_ci}; 69562306a36Sopenharmony_cistatic const char * const gcc_gp2_groups[] = { 69662306a36Sopenharmony_ci "gpio107", "gpio137", 69762306a36Sopenharmony_ci}; 69862306a36Sopenharmony_cistatic const char * const gcc_gp3_groups[] = { 69962306a36Sopenharmony_ci "gpio108", "gpio138", 70062306a36Sopenharmony_ci}; 70162306a36Sopenharmony_cistatic const char * const cci_timer0_groups[] = { 70262306a36Sopenharmony_ci "gpio109", 70362306a36Sopenharmony_ci}; 70462306a36Sopenharmony_cistatic const char * const cci_timer1_groups[] = { 70562306a36Sopenharmony_ci "gpio110", 70662306a36Sopenharmony_ci}; 70762306a36Sopenharmony_cistatic const char * const cci_timer2_groups[] = { 70862306a36Sopenharmony_ci "gpio111", 70962306a36Sopenharmony_ci}; 71062306a36Sopenharmony_cistatic const char * const cci_timer3_groups[] = { 71162306a36Sopenharmony_ci "gpio112", 71262306a36Sopenharmony_ci}; 71362306a36Sopenharmony_cistatic const char * const cci_async_groups[] = { 71462306a36Sopenharmony_ci "gpio112", "gpio113", "gpio114", 71562306a36Sopenharmony_ci}; 71662306a36Sopenharmony_cistatic const char * const cci_timer4_groups[] = { 71762306a36Sopenharmony_ci "gpio113", 71862306a36Sopenharmony_ci}; 71962306a36Sopenharmony_cistatic const char * const qup2_groups[] = { 72062306a36Sopenharmony_ci "gpio115", "gpio116", "gpio117", "gpio118", 72162306a36Sopenharmony_ci}; 72262306a36Sopenharmony_cistatic const char * const qup3_groups[] = { 72362306a36Sopenharmony_ci "gpio119", "gpio120", "gpio121", "gpio122", 72462306a36Sopenharmony_ci}; 72562306a36Sopenharmony_cistatic const char * const tsense_pwm1_groups[] = { 72662306a36Sopenharmony_ci "gpio123", 72762306a36Sopenharmony_ci}; 72862306a36Sopenharmony_cistatic const char * const tsense_pwm2_groups[] = { 72962306a36Sopenharmony_ci "gpio123", 73062306a36Sopenharmony_ci}; 73162306a36Sopenharmony_cistatic const char * const qup9_groups[] = { 73262306a36Sopenharmony_ci "gpio125", "gpio126", "gpio127", "gpio128", 73362306a36Sopenharmony_ci}; 73462306a36Sopenharmony_cistatic const char * const qup10_groups[] = { 73562306a36Sopenharmony_ci "gpio129", "gpio130", "gpio131", "gpio132", 73662306a36Sopenharmony_ci}; 73762306a36Sopenharmony_cistatic const char * const mi2s2_sck_groups[] = { 73862306a36Sopenharmony_ci "gpio133", 73962306a36Sopenharmony_ci}; 74062306a36Sopenharmony_cistatic const char * const mi2s2_data0_groups[] = { 74162306a36Sopenharmony_ci "gpio134", 74262306a36Sopenharmony_ci}; 74362306a36Sopenharmony_cistatic const char * const mi2s2_ws_groups[] = { 74462306a36Sopenharmony_ci "gpio135", 74562306a36Sopenharmony_ci}; 74662306a36Sopenharmony_cistatic const char * const pri_mi2s_groups[] = { 74762306a36Sopenharmony_ci "gpio136", 74862306a36Sopenharmony_ci}; 74962306a36Sopenharmony_cistatic const char * const sec_mi2s_groups[] = { 75062306a36Sopenharmony_ci "gpio137", 75162306a36Sopenharmony_ci}; 75262306a36Sopenharmony_cistatic const char * const audio_ref_groups[] = { 75362306a36Sopenharmony_ci "gpio137", 75462306a36Sopenharmony_ci}; 75562306a36Sopenharmony_cistatic const char * const mi2s2_data1_groups[] = { 75662306a36Sopenharmony_ci "gpio137", 75762306a36Sopenharmony_ci}; 75862306a36Sopenharmony_cistatic const char * const mi2s0_sck_groups[] = { 75962306a36Sopenharmony_ci "gpio138", 76062306a36Sopenharmony_ci}; 76162306a36Sopenharmony_cistatic const char * const mi2s0_data0_groups[] = { 76262306a36Sopenharmony_ci "gpio139", 76362306a36Sopenharmony_ci}; 76462306a36Sopenharmony_cistatic const char * const mi2s0_data1_groups[] = { 76562306a36Sopenharmony_ci "gpio140", 76662306a36Sopenharmony_ci}; 76762306a36Sopenharmony_cistatic const char * const mi2s0_ws_groups[] = { 76862306a36Sopenharmony_ci "gpio141", 76962306a36Sopenharmony_ci}; 77062306a36Sopenharmony_cistatic const char * const lpass_slimbus_groups[] = { 77162306a36Sopenharmony_ci "gpio142", "gpio143", "gpio144", "gpio145", 77262306a36Sopenharmony_ci}; 77362306a36Sopenharmony_cistatic const char * const mi2s1_sck_groups[] = { 77462306a36Sopenharmony_ci "gpio142", 77562306a36Sopenharmony_ci}; 77662306a36Sopenharmony_cistatic const char * const mi2s1_data0_groups[] = { 77762306a36Sopenharmony_ci "gpio143", 77862306a36Sopenharmony_ci}; 77962306a36Sopenharmony_cistatic const char * const mi2s1_data1_groups[] = { 78062306a36Sopenharmony_ci "gpio144", 78162306a36Sopenharmony_ci}; 78262306a36Sopenharmony_cistatic const char * const mi2s1_ws_groups[] = { 78362306a36Sopenharmony_ci "gpio145", 78462306a36Sopenharmony_ci}; 78562306a36Sopenharmony_cistatic const char * const cri_trng0_groups[] = { 78662306a36Sopenharmony_ci "gpio159", 78762306a36Sopenharmony_ci}; 78862306a36Sopenharmony_cistatic const char * const cri_trng1_groups[] = { 78962306a36Sopenharmony_ci "gpio160", 79062306a36Sopenharmony_ci}; 79162306a36Sopenharmony_cistatic const char * const cri_trng_groups[] = { 79262306a36Sopenharmony_ci "gpio161", 79362306a36Sopenharmony_ci}; 79462306a36Sopenharmony_cistatic const char * const sp_cmu_groups[] = { 79562306a36Sopenharmony_ci "gpio162", 79662306a36Sopenharmony_ci}; 79762306a36Sopenharmony_cistatic const char * const prng_rosc_groups[] = { 79862306a36Sopenharmony_ci "gpio163", 79962306a36Sopenharmony_ci}; 80062306a36Sopenharmony_cistatic const char * const qup19_groups[] = { 80162306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", 80262306a36Sopenharmony_ci}; 80362306a36Sopenharmony_cistatic const char * const gpio_groups[] = { 80462306a36Sopenharmony_ci "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 80562306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 80662306a36Sopenharmony_ci "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 80762306a36Sopenharmony_ci "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 80862306a36Sopenharmony_ci "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 80962306a36Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 81062306a36Sopenharmony_ci "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 81162306a36Sopenharmony_ci "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 81262306a36Sopenharmony_ci "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 81362306a36Sopenharmony_ci "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 81462306a36Sopenharmony_ci "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 81562306a36Sopenharmony_ci "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 81662306a36Sopenharmony_ci "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 81762306a36Sopenharmony_ci "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 81862306a36Sopenharmony_ci "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 81962306a36Sopenharmony_ci "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 82062306a36Sopenharmony_ci "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 82162306a36Sopenharmony_ci "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 82262306a36Sopenharmony_ci "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", 82362306a36Sopenharmony_ci "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134", 82462306a36Sopenharmony_ci "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", 82562306a36Sopenharmony_ci "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146", 82662306a36Sopenharmony_ci "gpio147", "gpio148", "gpio149", "gpio150", "gpio151", "gpio152", 82762306a36Sopenharmony_ci "gpio153", "gpio154", "gpio155", "gpio156", "gpio157", "gpio158", 82862306a36Sopenharmony_ci "gpio159", "gpio160", "gpio161", "gpio162", "gpio163", "gpio164", 82962306a36Sopenharmony_ci "gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170", 83062306a36Sopenharmony_ci "gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176", 83162306a36Sopenharmony_ci "gpio177", "gpio178", "gpio179", 83262306a36Sopenharmony_ci}; 83362306a36Sopenharmony_cistatic const char * const qdss_cti_groups[] = { 83462306a36Sopenharmony_ci "gpio0", "gpio2", "gpio2", "gpio44", "gpio45", "gpio46", "gpio92", 83562306a36Sopenharmony_ci "gpio93", 83662306a36Sopenharmony_ci}; 83762306a36Sopenharmony_cistatic const char * const qup1_groups[] = { 83862306a36Sopenharmony_ci "gpio4", "gpio5", "gpio6", "gpio7", 83962306a36Sopenharmony_ci}; 84062306a36Sopenharmony_cistatic const char * const ibi_i3c_groups[] = { 84162306a36Sopenharmony_ci "gpio4", "gpio5", "gpio24", "gpio25", "gpio28", "gpio29", "gpio40", 84262306a36Sopenharmony_ci "gpio41", 84362306a36Sopenharmony_ci}; 84462306a36Sopenharmony_cistatic const char * const qup_l4_groups[] = { 84562306a36Sopenharmony_ci "gpio6", "gpio14", "gpio46", "gpio123", 84662306a36Sopenharmony_ci}; 84762306a36Sopenharmony_cistatic const char * const qup_l5_groups[] = { 84862306a36Sopenharmony_ci "gpio7", "gpio15", "gpio47", "gpio124", 84962306a36Sopenharmony_ci}; 85062306a36Sopenharmony_cistatic const char * const qup4_groups[] = { 85162306a36Sopenharmony_ci "gpio8", "gpio9", "gpio10", "gpio11", 85262306a36Sopenharmony_ci}; 85362306a36Sopenharmony_cistatic const char * const qup5_groups[] = { 85462306a36Sopenharmony_ci "gpio12", "gpio13", "gpio14", "gpio15", 85562306a36Sopenharmony_ci}; 85662306a36Sopenharmony_cistatic const char * const qup6_groups[] = { 85762306a36Sopenharmony_ci "gpio16", "gpio17", "gpio18", "gpio19", 85862306a36Sopenharmony_ci}; 85962306a36Sopenharmony_cistatic const char * const qup7_groups[] = { 86062306a36Sopenharmony_ci "gpio20", "gpio21", "gpio22", "gpio23", 86162306a36Sopenharmony_ci}; 86262306a36Sopenharmony_cistatic const char * const qup8_groups[] = { 86362306a36Sopenharmony_ci "gpio24", "gpio25", "gpio26", "gpio27", 86462306a36Sopenharmony_ci}; 86562306a36Sopenharmony_cistatic const char * const qup0_groups[] = { 86662306a36Sopenharmony_ci "gpio28", "gpio29", "gpio30", "gpio31", 86762306a36Sopenharmony_ci}; 86862306a36Sopenharmony_cistatic const char * const qup12_groups[] = { 86962306a36Sopenharmony_ci "gpio32", "gpio33", "gpio34", "gpio35", 87062306a36Sopenharmony_ci}; 87162306a36Sopenharmony_cistatic const char * const qup13_groups[] = { 87262306a36Sopenharmony_ci "gpio36", "gpio37", "gpio38", "gpio39", 87362306a36Sopenharmony_ci}; 87462306a36Sopenharmony_cistatic const char * const qup14_groups[] = { 87562306a36Sopenharmony_ci "gpio40", "gpio41", "gpio42", "gpio43", 87662306a36Sopenharmony_ci}; 87762306a36Sopenharmony_cistatic const char * const ddr_pxi3_groups[] = { 87862306a36Sopenharmony_ci "gpio40", "gpio43", 87962306a36Sopenharmony_ci}; 88062306a36Sopenharmony_cistatic const char * const ddr_pxi1_groups[] = { 88162306a36Sopenharmony_ci "gpio41", "gpio42", 88262306a36Sopenharmony_ci}; 88362306a36Sopenharmony_cistatic const char * const vsense_trigger_groups[] = { 88462306a36Sopenharmony_ci "gpio42", 88562306a36Sopenharmony_ci}; 88662306a36Sopenharmony_cistatic const char * const qup15_groups[] = { 88762306a36Sopenharmony_ci "gpio44", "gpio45", "gpio46", "gpio47", 88862306a36Sopenharmony_ci}; 88962306a36Sopenharmony_cistatic const char * const dbg_out_groups[] = { 89062306a36Sopenharmony_ci "gpio44", 89162306a36Sopenharmony_ci}; 89262306a36Sopenharmony_cistatic const char * const qup16_groups[] = { 89362306a36Sopenharmony_ci "gpio48", "gpio49", "gpio50", "gpio51", 89462306a36Sopenharmony_ci}; 89562306a36Sopenharmony_cistatic const char * const qup17_groups[] = { 89662306a36Sopenharmony_ci "gpio52", "gpio53", "gpio54", "gpio55", 89762306a36Sopenharmony_ci}; 89862306a36Sopenharmony_cistatic const char * const ddr_pxi0_groups[] = { 89962306a36Sopenharmony_ci "gpio52", "gpio53", 90062306a36Sopenharmony_ci}; 90162306a36Sopenharmony_cistatic const char * const jitter_bist_groups[] = { 90262306a36Sopenharmony_ci "gpio54", 90362306a36Sopenharmony_ci}; 90462306a36Sopenharmony_cistatic const char * const pll_bist_groups[] = { 90562306a36Sopenharmony_ci "gpio55", 90662306a36Sopenharmony_ci}; 90762306a36Sopenharmony_cistatic const char * const ddr_pxi2_groups[] = { 90862306a36Sopenharmony_ci "gpio55", "gpio56", 90962306a36Sopenharmony_ci}; 91062306a36Sopenharmony_cistatic const char * const qup18_groups[] = { 91162306a36Sopenharmony_ci "gpio56", "gpio57", "gpio58", "gpio59", 91262306a36Sopenharmony_ci}; 91362306a36Sopenharmony_cistatic const char * const qup11_groups[] = { 91462306a36Sopenharmony_ci "gpio60", "gpio61", "gpio62", "gpio63", 91562306a36Sopenharmony_ci}; 91662306a36Sopenharmony_cistatic const char * const usb2phy_ac_groups[] = { 91762306a36Sopenharmony_ci "gpio64", "gpio90", 91862306a36Sopenharmony_ci}; 91962306a36Sopenharmony_cistatic const char * const qup_l6_groups[] = { 92062306a36Sopenharmony_ci "gpio64", "gpio77", "gpio92", "gpio93", 92162306a36Sopenharmony_ci}; 92262306a36Sopenharmony_cistatic const char * const usb_phy_groups[] = { 92362306a36Sopenharmony_ci "gpio65", 92462306a36Sopenharmony_ci}; 92562306a36Sopenharmony_cistatic const char * const pll_clk_groups[] = { 92662306a36Sopenharmony_ci "gpio65", 92762306a36Sopenharmony_ci}; 92862306a36Sopenharmony_cistatic const char * const mdp_vsync_groups[] = { 92962306a36Sopenharmony_ci "gpio66", "gpio67", "gpio68", "gpio122", "gpio124", 93062306a36Sopenharmony_ci}; 93162306a36Sopenharmony_cistatic const char * const dp_lcd_groups[] = { 93262306a36Sopenharmony_ci "gpio67", 93362306a36Sopenharmony_ci}; 93462306a36Sopenharmony_cistatic const char * const dp_hot_groups[] = { 93562306a36Sopenharmony_ci "gpio68", 93662306a36Sopenharmony_ci}; 93762306a36Sopenharmony_cistatic const char * const qspi_cs_groups[] = { 93862306a36Sopenharmony_ci "gpio69", "gpio75", 93962306a36Sopenharmony_ci}; 94062306a36Sopenharmony_cistatic const char * const tsif0_clk_groups[] = { 94162306a36Sopenharmony_ci "gpio69", 94262306a36Sopenharmony_ci}; 94362306a36Sopenharmony_cistatic const char * const qspi0_groups[] = { 94462306a36Sopenharmony_ci "gpio70", 94562306a36Sopenharmony_ci}; 94662306a36Sopenharmony_cistatic const char * const tsif0_en_groups[] = { 94762306a36Sopenharmony_ci "gpio70", 94862306a36Sopenharmony_ci}; 94962306a36Sopenharmony_cistatic const char * const mdp_vsync0_groups[] = { 95062306a36Sopenharmony_ci "gpio70", 95162306a36Sopenharmony_ci}; 95262306a36Sopenharmony_cistatic const char * const mdp_vsync1_groups[] = { 95362306a36Sopenharmony_ci "gpio70", 95462306a36Sopenharmony_ci}; 95562306a36Sopenharmony_cistatic const char * const mdp_vsync2_groups[] = { 95662306a36Sopenharmony_ci "gpio70", 95762306a36Sopenharmony_ci}; 95862306a36Sopenharmony_cistatic const char * const mdp_vsync3_groups[] = { 95962306a36Sopenharmony_ci "gpio70", 96062306a36Sopenharmony_ci}; 96162306a36Sopenharmony_cistatic const char * const qspi1_groups[] = { 96262306a36Sopenharmony_ci "gpio71", 96362306a36Sopenharmony_ci}; 96462306a36Sopenharmony_cistatic const char * const tsif0_data_groups[] = { 96562306a36Sopenharmony_ci "gpio71", 96662306a36Sopenharmony_ci}; 96762306a36Sopenharmony_cistatic const char * const sdc4_cmd_groups[] = { 96862306a36Sopenharmony_ci "gpio71", 96962306a36Sopenharmony_ci}; 97062306a36Sopenharmony_cistatic const char * const qspi2_groups[] = { 97162306a36Sopenharmony_ci "gpio72", 97262306a36Sopenharmony_ci}; 97362306a36Sopenharmony_cistatic const char * const tsif0_sync_groups[] = { 97462306a36Sopenharmony_ci "gpio72", 97562306a36Sopenharmony_ci}; 97662306a36Sopenharmony_cistatic const char * const sdc43_groups[] = { 97762306a36Sopenharmony_ci "gpio72", 97862306a36Sopenharmony_ci}; 97962306a36Sopenharmony_cistatic const char * const qspi_clk_groups[] = { 98062306a36Sopenharmony_ci "gpio73", 98162306a36Sopenharmony_ci}; 98262306a36Sopenharmony_cistatic const char * const tsif1_clk_groups[] = { 98362306a36Sopenharmony_ci "gpio73", 98462306a36Sopenharmony_ci}; 98562306a36Sopenharmony_cistatic const char * const sdc4_clk_groups[] = { 98662306a36Sopenharmony_ci "gpio73", 98762306a36Sopenharmony_ci}; 98862306a36Sopenharmony_cistatic const char * const qspi3_groups[] = { 98962306a36Sopenharmony_ci "gpio74", 99062306a36Sopenharmony_ci}; 99162306a36Sopenharmony_cistatic const char * const tsif1_en_groups[] = { 99262306a36Sopenharmony_ci "gpio74", 99362306a36Sopenharmony_ci}; 99462306a36Sopenharmony_cistatic const char * const sdc42_groups[] = { 99562306a36Sopenharmony_ci "gpio74", 99662306a36Sopenharmony_ci}; 99762306a36Sopenharmony_ci 99862306a36Sopenharmony_cistatic const struct pinfunction sm8250_functions[] = { 99962306a36Sopenharmony_ci MSM_PIN_FUNCTION(aoss_cti), 100062306a36Sopenharmony_ci MSM_PIN_FUNCTION(atest), 100162306a36Sopenharmony_ci MSM_PIN_FUNCTION(audio_ref), 100262306a36Sopenharmony_ci MSM_PIN_FUNCTION(cam_mclk), 100362306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_async), 100462306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_i2c), 100562306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer0), 100662306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer1), 100762306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer2), 100862306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer3), 100962306a36Sopenharmony_ci MSM_PIN_FUNCTION(cci_timer4), 101062306a36Sopenharmony_ci MSM_PIN_FUNCTION(cri_trng), 101162306a36Sopenharmony_ci MSM_PIN_FUNCTION(cri_trng0), 101262306a36Sopenharmony_ci MSM_PIN_FUNCTION(cri_trng1), 101362306a36Sopenharmony_ci MSM_PIN_FUNCTION(dbg_out), 101462306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_bist), 101562306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi0), 101662306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi1), 101762306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi2), 101862306a36Sopenharmony_ci MSM_PIN_FUNCTION(ddr_pxi3), 101962306a36Sopenharmony_ci MSM_PIN_FUNCTION(dp_hot), 102062306a36Sopenharmony_ci MSM_PIN_FUNCTION(dp_lcd), 102162306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp1), 102262306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp2), 102362306a36Sopenharmony_ci MSM_PIN_FUNCTION(gcc_gp3), 102462306a36Sopenharmony_ci MSM_PIN_FUNCTION(gpio), 102562306a36Sopenharmony_ci MSM_PIN_FUNCTION(ibi_i3c), 102662306a36Sopenharmony_ci MSM_PIN_FUNCTION(jitter_bist), 102762306a36Sopenharmony_ci MSM_PIN_FUNCTION(lpass_slimbus), 102862306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync), 102962306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync0), 103062306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync1), 103162306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync2), 103262306a36Sopenharmony_ci MSM_PIN_FUNCTION(mdp_vsync3), 103362306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s0_data0), 103462306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s0_data1), 103562306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s0_sck), 103662306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s0_ws), 103762306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s1_data0), 103862306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s1_data1), 103962306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s1_sck), 104062306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s1_ws), 104162306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s2_data0), 104262306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s2_data1), 104362306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s2_sck), 104462306a36Sopenharmony_ci MSM_PIN_FUNCTION(mi2s2_ws), 104562306a36Sopenharmony_ci MSM_PIN_FUNCTION(pci_e0), 104662306a36Sopenharmony_ci MSM_PIN_FUNCTION(pci_e1), 104762306a36Sopenharmony_ci MSM_PIN_FUNCTION(pci_e2), 104862306a36Sopenharmony_ci MSM_PIN_FUNCTION(phase_flag), 104962306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_bist), 105062306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_bypassnl), 105162306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_clk), 105262306a36Sopenharmony_ci MSM_PIN_FUNCTION(pll_reset), 105362306a36Sopenharmony_ci MSM_PIN_FUNCTION(pri_mi2s), 105462306a36Sopenharmony_ci MSM_PIN_FUNCTION(prng_rosc), 105562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_cti), 105662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qdss_gpio), 105762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qspi0), 105862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qspi1), 105962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qspi2), 106062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qspi3), 106162306a36Sopenharmony_ci MSM_PIN_FUNCTION(qspi_clk), 106262306a36Sopenharmony_ci MSM_PIN_FUNCTION(qspi_cs), 106362306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup0), 106462306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup1), 106562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup10), 106662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup11), 106762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup12), 106862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup13), 106962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup14), 107062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup15), 107162306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup16), 107262306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup17), 107362306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup18), 107462306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup19), 107562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup2), 107662306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup3), 107762306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup4), 107862306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup5), 107962306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup6), 108062306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup7), 108162306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup8), 108262306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup9), 108362306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup_l4), 108462306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup_l5), 108562306a36Sopenharmony_ci MSM_PIN_FUNCTION(qup_l6), 108662306a36Sopenharmony_ci MSM_PIN_FUNCTION(sd_write), 108762306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc40), 108862306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc41), 108962306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc42), 109062306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc43), 109162306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc4_clk), 109262306a36Sopenharmony_ci MSM_PIN_FUNCTION(sdc4_cmd), 109362306a36Sopenharmony_ci MSM_PIN_FUNCTION(sec_mi2s), 109462306a36Sopenharmony_ci MSM_PIN_FUNCTION(sp_cmu), 109562306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch0), 109662306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch1), 109762306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch2), 109862306a36Sopenharmony_ci MSM_PIN_FUNCTION(tgu_ch3), 109962306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsense_pwm1), 110062306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsense_pwm2), 110162306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif0_clk), 110262306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif0_data), 110362306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif0_en), 110462306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif0_error), 110562306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif0_sync), 110662306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_clk), 110762306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_data), 110862306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_en), 110962306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_error), 111062306a36Sopenharmony_ci MSM_PIN_FUNCTION(tsif1_sync), 111162306a36Sopenharmony_ci MSM_PIN_FUNCTION(usb2phy_ac), 111262306a36Sopenharmony_ci MSM_PIN_FUNCTION(usb_phy), 111362306a36Sopenharmony_ci MSM_PIN_FUNCTION(vsense_trigger), 111462306a36Sopenharmony_ci}; 111562306a36Sopenharmony_ci 111662306a36Sopenharmony_ci/* Every pin is maintained as a single group, and missing or non-existing pin 111762306a36Sopenharmony_ci * would be maintained as dummy group to synchronize pin group index with 111862306a36Sopenharmony_ci * pin descriptor registered with pinctrl core. 111962306a36Sopenharmony_ci * Clients would not be able to request these dummy pin groups. 112062306a36Sopenharmony_ci */ 112162306a36Sopenharmony_cistatic const struct msm_pingroup sm8250_groups[] = { 112262306a36Sopenharmony_ci [0] = PINGROUP(0, SOUTH, qup19, qdss_cti, _, _, _, _, _, _, _), 112362306a36Sopenharmony_ci [1] = PINGROUP(1, SOUTH, qup19, _, _, _, _, _, _, _, _), 112462306a36Sopenharmony_ci [2] = PINGROUP(2, SOUTH, qup19, qdss_cti, qdss_cti, _, _, _, _, _, _), 112562306a36Sopenharmony_ci [3] = PINGROUP(3, SOUTH, qup19, _, _, _, _, _, _, _, _), 112662306a36Sopenharmony_ci [4] = PINGROUP(4, NORTH, qup1, ibi_i3c, _, _, _, _, _, _, _), 112762306a36Sopenharmony_ci [5] = PINGROUP(5, NORTH, qup1, ibi_i3c, _, _, _, _, _, _, _), 112862306a36Sopenharmony_ci [6] = PINGROUP(6, NORTH, qup1, qup_l4, _, _, _, _, _, _, _), 112962306a36Sopenharmony_ci [7] = PINGROUP(7, NORTH, qup1, qup_l5, _, _, _, _, _, _, _), 113062306a36Sopenharmony_ci [8] = PINGROUP(8, NORTH, qup4, _, _, _, _, _, _, _, _), 113162306a36Sopenharmony_ci [9] = PINGROUP(9, NORTH, qup4, _, _, _, _, _, _, _, _), 113262306a36Sopenharmony_ci [10] = PINGROUP(10, NORTH, qup4, _, _, _, _, _, _, _, _), 113362306a36Sopenharmony_ci [11] = PINGROUP(11, NORTH, qup4, _, _, _, _, _, _, _, _), 113462306a36Sopenharmony_ci [12] = PINGROUP(12, NORTH, qup5, _, _, _, _, _, _, _, _), 113562306a36Sopenharmony_ci [13] = PINGROUP(13, NORTH, qup5, _, _, _, _, _, _, _, _), 113662306a36Sopenharmony_ci [14] = PINGROUP(14, NORTH, qup5, qup_l4, _, _, _, _, _, _, _), 113762306a36Sopenharmony_ci [15] = PINGROUP(15, NORTH, qup5, qup_l5, _, _, _, _, _, _, _), 113862306a36Sopenharmony_ci [16] = PINGROUP(16, NORTH, qup6, _, _, _, _, _, _, _, _), 113962306a36Sopenharmony_ci [17] = PINGROUP(17, NORTH, qup6, _, _, _, _, _, _, _, _), 114062306a36Sopenharmony_ci [18] = PINGROUP(18, NORTH, qup6, _, _, _, _, _, _, _, _), 114162306a36Sopenharmony_ci [19] = PINGROUP(19, NORTH, qup6, _, _, _, _, _, _, _, _), 114262306a36Sopenharmony_ci [20] = PINGROUP(20, NORTH, qup7, _, _, _, _, _, _, _, _), 114362306a36Sopenharmony_ci [21] = PINGROUP(21, NORTH, qup7, _, _, _, _, _, _, _, _), 114462306a36Sopenharmony_ci [22] = PINGROUP(22, NORTH, qup7, _, _, _, _, _, _, _, _), 114562306a36Sopenharmony_ci [23] = PINGROUP(23, NORTH, qup7, _, _, _, _, _, _, _, _), 114662306a36Sopenharmony_ci [24] = PINGROUP(24, SOUTH, qup8, ibi_i3c, atest, _, _, _, _, _, _), 114762306a36Sopenharmony_ci [25] = PINGROUP(25, SOUTH, qup8, ibi_i3c, atest, _, _, _, _, _, _), 114862306a36Sopenharmony_ci [26] = PINGROUP(26, SOUTH, qup8, atest, _, _, _, _, _, _, _), 114962306a36Sopenharmony_ci [27] = PINGROUP(27, SOUTH, qup8, atest, _, _, _, _, _, _, _), 115062306a36Sopenharmony_ci [28] = PINGROUP(28, NORTH, qup0, ibi_i3c, _, _, _, _, _, _, _), 115162306a36Sopenharmony_ci [29] = PINGROUP(29, NORTH, qup0, ibi_i3c, _, _, _, _, _, _, _), 115262306a36Sopenharmony_ci [30] = PINGROUP(30, NORTH, qup0, _, _, _, _, _, _, _, _), 115362306a36Sopenharmony_ci [31] = PINGROUP(31, NORTH, qup0, _, _, _, _, _, _, _, _), 115462306a36Sopenharmony_ci [32] = PINGROUP(32, SOUTH, qup12, _, atest, _, _, _, _, _, _), 115562306a36Sopenharmony_ci [33] = PINGROUP(33, SOUTH, qup12, atest, _, _, _, _, _, _, _), 115662306a36Sopenharmony_ci [34] = PINGROUP(34, SOUTH, qup12, atest, _, _, _, _, _, _, _), 115762306a36Sopenharmony_ci [35] = PINGROUP(35, SOUTH, qup12, atest, _, _, _, _, _, _, _), 115862306a36Sopenharmony_ci [36] = PINGROUP(36, SOUTH, qup13, atest, _, _, _, _, _, _, _), 115962306a36Sopenharmony_ci [37] = PINGROUP(37, SOUTH, qup13, atest, _, _, _, _, _, _, _), 116062306a36Sopenharmony_ci [38] = PINGROUP(38, SOUTH, qup13, _, _, _, _, _, _, _, _), 116162306a36Sopenharmony_ci [39] = PINGROUP(39, SOUTH, qup13, _, _, _, _, _, _, _, _), 116262306a36Sopenharmony_ci [40] = PINGROUP(40, SOUTH, qup14, ibi_i3c, _, ddr_pxi3, _, _, _, _, _), 116362306a36Sopenharmony_ci [41] = PINGROUP(41, SOUTH, qup14, ibi_i3c, _, ddr_pxi1, _, _, _, _, _), 116462306a36Sopenharmony_ci [42] = PINGROUP(42, SOUTH, qup14, vsense_trigger, ddr_pxi1, _, _, _, _, _, _), 116562306a36Sopenharmony_ci [43] = PINGROUP(43, SOUTH, qup14, ddr_pxi3, _, _, _, _, _, _, _), 116662306a36Sopenharmony_ci [44] = PINGROUP(44, SOUTH, qup15, qdss_cti, dbg_out, _, _, _, _, _, _), 116762306a36Sopenharmony_ci [45] = PINGROUP(45, SOUTH, qup15, qdss_cti, phase_flag, _, _, _, _, _, _), 116862306a36Sopenharmony_ci [46] = PINGROUP(46, SOUTH, qup15, qup_l4, qdss_cti, phase_flag, _, _, _, _, _), 116962306a36Sopenharmony_ci [47] = PINGROUP(47, SOUTH, qup15, qup_l5, phase_flag, _, _, _, _, _, _), 117062306a36Sopenharmony_ci [48] = PINGROUP(48, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _), 117162306a36Sopenharmony_ci [49] = PINGROUP(49, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _), 117262306a36Sopenharmony_ci [50] = PINGROUP(50, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _), 117362306a36Sopenharmony_ci [51] = PINGROUP(51, SOUTH, qup16, phase_flag, _, _, _, _, _, _, _), 117462306a36Sopenharmony_ci [52] = PINGROUP(52, SOUTH, qup17, ddr_pxi0, _, _, _, _, _, _, _), 117562306a36Sopenharmony_ci [53] = PINGROUP(53, SOUTH, qup17, ddr_pxi0, _, _, _, _, _, _, _), 117662306a36Sopenharmony_ci [54] = PINGROUP(54, SOUTH, qup17, jitter_bist, _, _, _, _, _, _, _), 117762306a36Sopenharmony_ci [55] = PINGROUP(55, SOUTH, qup17, pll_bist, ddr_pxi2, _, _, _, _, _, _), 117862306a36Sopenharmony_ci [56] = PINGROUP(56, SOUTH, qup18, ddr_pxi2, _, _, _, _, _, _, _), 117962306a36Sopenharmony_ci [57] = PINGROUP(57, SOUTH, qup18, _, _, _, _, _, _, _, _), 118062306a36Sopenharmony_ci [58] = PINGROUP(58, SOUTH, qup18, _, _, _, _, _, _, _, _), 118162306a36Sopenharmony_ci [59] = PINGROUP(59, SOUTH, qup18, _, _, _, _, _, _, _, _), 118262306a36Sopenharmony_ci [60] = PINGROUP(60, SOUTH, qup11, _, _, _, _, _, _, _, _), 118362306a36Sopenharmony_ci [61] = PINGROUP(61, SOUTH, qup11, _, _, _, _, _, _, _, _), 118462306a36Sopenharmony_ci [62] = PINGROUP(62, SOUTH, qup11, _, _, _, _, _, _, _, _), 118562306a36Sopenharmony_ci [63] = PINGROUP(63, SOUTH, qup11, _, _, _, _, _, _, _, _), 118662306a36Sopenharmony_ci [64] = PINGROUP(64, SOUTH, usb2phy_ac, qup_l6, _, _, _, _, _, _, _), 118762306a36Sopenharmony_ci [65] = PINGROUP(65, SOUTH, usb_phy, pll_clk, _, _, _, _, _, _, _), 118862306a36Sopenharmony_ci [66] = PINGROUP(66, NORTH, mdp_vsync, _, _, _, _, _, _, _, _), 118962306a36Sopenharmony_ci [67] = PINGROUP(67, NORTH, mdp_vsync, dp_lcd, _, _, _, _, _, _, _), 119062306a36Sopenharmony_ci [68] = PINGROUP(68, NORTH, mdp_vsync, dp_hot, _, _, _, _, _, _, _), 119162306a36Sopenharmony_ci [69] = PINGROUP(69, SOUTH, qspi_cs, tsif0_clk, phase_flag, _, _, _, _, _, _), 119262306a36Sopenharmony_ci [70] = PINGROUP(70, SOUTH, qspi0, tsif0_en, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, phase_flag, _, _), 119362306a36Sopenharmony_ci [71] = PINGROUP(71, SOUTH, qspi1, tsif0_data, sdc4_cmd, phase_flag, _, _, _, _, _), 119462306a36Sopenharmony_ci [72] = PINGROUP(72, SOUTH, qspi2, tsif0_sync, sdc43, phase_flag, _, _, _, _, _), 119562306a36Sopenharmony_ci [73] = PINGROUP(73, SOUTH, qspi_clk, tsif1_clk, sdc4_clk, phase_flag, _, _, _, _, _), 119662306a36Sopenharmony_ci [74] = PINGROUP(74, SOUTH, qspi3, tsif1_en, sdc42, phase_flag, _, _, _, _, _), 119762306a36Sopenharmony_ci [75] = PINGROUP(75, SOUTH, qspi_cs, tsif1_data, sdc41, _, _, _, _, _, _), 119862306a36Sopenharmony_ci [76] = PINGROUP(76, SOUTH, tsif1_sync, sdc40, _, _, _, _, _, _, _), 119962306a36Sopenharmony_ci [77] = PINGROUP(77, NORTH, qup_l6, aoss_cti, phase_flag, _, _, _, _, _, _), 120062306a36Sopenharmony_ci [78] = PINGROUP(78, NORTH, sd_write, phase_flag, _, _, _, _, _, _, _), 120162306a36Sopenharmony_ci [79] = PINGROUP(79, NORTH, pci_e0, phase_flag, _, _, _, _, _, _, _), 120262306a36Sopenharmony_ci [80] = PINGROUP(80, NORTH, pci_e0, phase_flag, _, _, _, _, _, _, _), 120362306a36Sopenharmony_ci [81] = PINGROUP(81, NORTH, phase_flag, _, _, _, _, _, _, _, _), 120462306a36Sopenharmony_ci [82] = PINGROUP(82, NORTH, pci_e1, phase_flag, _, _, _, _, _, _, _), 120562306a36Sopenharmony_ci [83] = PINGROUP(83, NORTH, pci_e1, phase_flag, _, _, _, _, _, _, _), 120662306a36Sopenharmony_ci [84] = PINGROUP(84, NORTH, phase_flag, _, _, _, _, _, _, _, _), 120762306a36Sopenharmony_ci [85] = PINGROUP(85, SOUTH, pci_e2, tgu_ch0, atest, _, _, _, _, _, _), 120862306a36Sopenharmony_ci [86] = PINGROUP(86, SOUTH, pci_e2, tgu_ch3, atest, _, _, _, _, _, _), 120962306a36Sopenharmony_ci [87] = PINGROUP(87, SOUTH, atest, _, _, _, _, _, _, _, _), 121062306a36Sopenharmony_ci [88] = PINGROUP(88, SOUTH, _, atest, _, _, _, _, _, _, _), 121162306a36Sopenharmony_ci [89] = PINGROUP(89, SOUTH, _, atest, _, _, _, _, _, _, _), 121262306a36Sopenharmony_ci [90] = PINGROUP(90, SOUTH, tsif1_error, usb2phy_ac, tgu_ch1, _, _, _, _, _, _), 121362306a36Sopenharmony_ci [91] = PINGROUP(91, SOUTH, tsif0_error, tgu_ch2, _, _, _, _, _, _, _), 121462306a36Sopenharmony_ci [92] = PINGROUP(92, NORTH, qup_l6, qdss_cti, _, _, _, _, _, _, _), 121562306a36Sopenharmony_ci [93] = PINGROUP(93, NORTH, qup_l6, qdss_cti, _, _, _, _, _, _, _), 121662306a36Sopenharmony_ci [94] = PINGROUP(94, NORTH, cam_mclk, ddr_bist, qdss_gpio, _, _, _, _, _, _), 121762306a36Sopenharmony_ci [95] = PINGROUP(95, NORTH, cam_mclk, ddr_bist, qdss_gpio, _, _, _, _, _, _), 121862306a36Sopenharmony_ci [96] = PINGROUP(96, NORTH, cam_mclk, pll_bypassnl, qdss_gpio, _, _, _, _, _, _), 121962306a36Sopenharmony_ci [97] = PINGROUP(97, NORTH, cam_mclk, pll_reset, qdss_gpio, _, _, _, _, _, _), 122062306a36Sopenharmony_ci [98] = PINGROUP(98, NORTH, cam_mclk, qdss_gpio, _, _, _, _, _, _, _), 122162306a36Sopenharmony_ci [99] = PINGROUP(99, NORTH, cam_mclk, qdss_gpio, _, _, _, _, _, _, _), 122262306a36Sopenharmony_ci [100] = PINGROUP(100, NORTH, cam_mclk, qdss_gpio, _, _, _, _, _, _, _), 122362306a36Sopenharmony_ci [101] = PINGROUP(101, NORTH, cci_i2c, qdss_gpio, _, _, _, _, _, _, _), 122462306a36Sopenharmony_ci [102] = PINGROUP(102, NORTH, cci_i2c, qdss_gpio, _, _, _, _, _, _, _), 122562306a36Sopenharmony_ci [103] = PINGROUP(103, NORTH, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _), 122662306a36Sopenharmony_ci [104] = PINGROUP(104, NORTH, cci_i2c, phase_flag, _, qdss_gpio, _, _, _, _, _), 122762306a36Sopenharmony_ci [105] = PINGROUP(105, NORTH, cci_i2c, qdss_gpio, _, _, _, _, _, _, _), 122862306a36Sopenharmony_ci [106] = PINGROUP(106, NORTH, cci_i2c, gcc_gp1, qdss_gpio, _, _, _, _, _, _), 122962306a36Sopenharmony_ci [107] = PINGROUP(107, NORTH, cci_i2c, gcc_gp2, qdss_gpio, _, _, _, _, _, _), 123062306a36Sopenharmony_ci [108] = PINGROUP(108, NORTH, cci_i2c, gcc_gp3, qdss_gpio, _, _, _, _, _, _), 123162306a36Sopenharmony_ci [109] = PINGROUP(109, NORTH, cci_timer0, qdss_gpio, _, _, _, _, _, _, _), 123262306a36Sopenharmony_ci [110] = PINGROUP(110, NORTH, cci_timer1, qdss_gpio, _, _, _, _, _, _, _), 123362306a36Sopenharmony_ci [111] = PINGROUP(111, NORTH, cci_timer2, qdss_gpio, _, _, _, _, _, _, _), 123462306a36Sopenharmony_ci [112] = PINGROUP(112, NORTH, cci_timer3, cci_async, _, _, _, _, _, _, _), 123562306a36Sopenharmony_ci [113] = PINGROUP(113, NORTH, cci_timer4, cci_async, _, _, _, _, _, _, _), 123662306a36Sopenharmony_ci [114] = PINGROUP(114, NORTH, cci_async, _, _, _, _, _, _, _, _), 123762306a36Sopenharmony_ci [115] = PINGROUP(115, NORTH, qup2, phase_flag, _, _, _, _, _, _, _), 123862306a36Sopenharmony_ci [116] = PINGROUP(116, NORTH, qup2, phase_flag, _, _, _, _, _, _, _), 123962306a36Sopenharmony_ci [117] = PINGROUP(117, NORTH, qup2, phase_flag, _, _, _, _, _, _, _), 124062306a36Sopenharmony_ci [118] = PINGROUP(118, NORTH, qup2, phase_flag, _, _, _, _, _, _, _), 124162306a36Sopenharmony_ci [119] = PINGROUP(119, NORTH, qup3, phase_flag, _, _, _, _, _, _, _), 124262306a36Sopenharmony_ci [120] = PINGROUP(120, NORTH, qup3, phase_flag, _, _, _, _, _, _, _), 124362306a36Sopenharmony_ci [121] = PINGROUP(121, NORTH, qup3, _, _, _, _, _, _, _, _), 124462306a36Sopenharmony_ci [122] = PINGROUP(122, NORTH, qup3, mdp_vsync, phase_flag, _, _, _, _, _, _), 124562306a36Sopenharmony_ci [123] = PINGROUP(123, NORTH, qup_l4, tsense_pwm1, tsense_pwm2, _, _, _, _, _, _), 124662306a36Sopenharmony_ci [124] = PINGROUP(124, NORTH, qup_l5, mdp_vsync, phase_flag, _, _, _, _, _, _), 124762306a36Sopenharmony_ci [125] = PINGROUP(125, SOUTH, qup9, phase_flag, _, _, _, _, _, _, _), 124862306a36Sopenharmony_ci [126] = PINGROUP(126, SOUTH, qup9, _, _, _, _, _, _, _, _), 124962306a36Sopenharmony_ci [127] = PINGROUP(127, SOUTH, qup9, _, _, _, _, _, _, _, _), 125062306a36Sopenharmony_ci [128] = PINGROUP(128, SOUTH, qup9, _, _, _, _, _, _, _, _), 125162306a36Sopenharmony_ci [129] = PINGROUP(129, SOUTH, qup10, _, _, _, _, _, _, _, _), 125262306a36Sopenharmony_ci [130] = PINGROUP(130, SOUTH, qup10, _, _, _, _, _, _, _, _), 125362306a36Sopenharmony_ci [131] = PINGROUP(131, SOUTH, qup10, _, _, _, _, _, _, _, _), 125462306a36Sopenharmony_ci [132] = PINGROUP(132, SOUTH, qup10, _, _, _, _, _, _, _, _), 125562306a36Sopenharmony_ci [133] = PINGROUP(133, WEST, mi2s2_sck, _, _, _, _, _, _, _, _), 125662306a36Sopenharmony_ci [134] = PINGROUP(134, WEST, mi2s2_data0, _, _, _, _, _, _, _, _), 125762306a36Sopenharmony_ci [135] = PINGROUP(135, WEST, mi2s2_ws, _, _, _, _, _, _, _, _), 125862306a36Sopenharmony_ci [136] = PINGROUP(136, WEST, pri_mi2s, gcc_gp1, _, _, _, _, _, _, _), 125962306a36Sopenharmony_ci [137] = PINGROUP(137, WEST, sec_mi2s, audio_ref, mi2s2_data1, gcc_gp2, _, _, _, _, _), 126062306a36Sopenharmony_ci [138] = PINGROUP(138, WEST, mi2s0_sck, gcc_gp3, _, _, _, _, _, _, _), 126162306a36Sopenharmony_ci [139] = PINGROUP(139, WEST, mi2s0_data0, _, _, _, _, _, _, _, _), 126262306a36Sopenharmony_ci [140] = PINGROUP(140, WEST, mi2s0_data1, _, _, _, _, _, _, _, _), 126362306a36Sopenharmony_ci [141] = PINGROUP(141, WEST, mi2s0_ws, _, _, _, _, _, _, _, _), 126462306a36Sopenharmony_ci [142] = PINGROUP(142, WEST, lpass_slimbus, mi2s1_sck, _, _, _, _, _, _, _), 126562306a36Sopenharmony_ci [143] = PINGROUP(143, WEST, lpass_slimbus, mi2s1_data0, ddr_bist, _, _, _, _, _, _), 126662306a36Sopenharmony_ci [144] = PINGROUP(144, WEST, lpass_slimbus, mi2s1_data1, ddr_bist, _, _, _, _, _, _), 126762306a36Sopenharmony_ci [145] = PINGROUP(145, WEST, lpass_slimbus, mi2s1_ws, _, _, _, _, _, _, _), 126862306a36Sopenharmony_ci [146] = PINGROUP(146, WEST, _, _, _, _, _, _, _, _, _), 126962306a36Sopenharmony_ci [147] = PINGROUP(147, WEST, _, _, _, _, _, _, _, _, _), 127062306a36Sopenharmony_ci [148] = PINGROUP(148, WEST, _, _, _, _, _, _, _, _, _), 127162306a36Sopenharmony_ci [149] = PINGROUP(149, WEST, _, _, _, _, _, _, _, _, _), 127262306a36Sopenharmony_ci [150] = PINGROUP(150, WEST, _, _, _, _, _, _, _, _, _), 127362306a36Sopenharmony_ci [151] = PINGROUP(151, WEST, _, _, _, _, _, _, _, _, _), 127462306a36Sopenharmony_ci [152] = PINGROUP(152, WEST, _, _, _, _, _, _, _, _, _), 127562306a36Sopenharmony_ci [153] = PINGROUP(153, WEST, _, _, _, _, _, _, _, _, _), 127662306a36Sopenharmony_ci [154] = PINGROUP(154, WEST, _, _, _, _, _, _, _, _, _), 127762306a36Sopenharmony_ci [155] = PINGROUP(155, WEST, _, _, _, _, _, _, _, _, _), 127862306a36Sopenharmony_ci [156] = PINGROUP(156, WEST, _, _, _, _, _, _, _, _, _), 127962306a36Sopenharmony_ci [157] = PINGROUP(157, WEST, _, _, _, _, _, _, _, _, _), 128062306a36Sopenharmony_ci [158] = PINGROUP(158, WEST, _, _, _, _, _, _, _, _, _), 128162306a36Sopenharmony_ci [159] = PINGROUP(159, WEST, cri_trng0, _, _, _, _, _, _, _, _), 128262306a36Sopenharmony_ci [160] = PINGROUP(160, WEST, cri_trng1, qdss_gpio, _, _, _, _, _, _, _), 128362306a36Sopenharmony_ci [161] = PINGROUP(161, WEST, cri_trng, qdss_gpio, _, _, _, _, _, _, _), 128462306a36Sopenharmony_ci [162] = PINGROUP(162, WEST, sp_cmu, qdss_gpio, _, _, _, _, _, _, _), 128562306a36Sopenharmony_ci [163] = PINGROUP(163, WEST, prng_rosc, qdss_gpio, _, _, _, _, _, _, _), 128662306a36Sopenharmony_ci [164] = PINGROUP(164, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 128762306a36Sopenharmony_ci [165] = PINGROUP(165, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 128862306a36Sopenharmony_ci [166] = PINGROUP(166, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 128962306a36Sopenharmony_ci [167] = PINGROUP(167, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129062306a36Sopenharmony_ci [168] = PINGROUP(168, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129162306a36Sopenharmony_ci [169] = PINGROUP(169, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129262306a36Sopenharmony_ci [170] = PINGROUP(170, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129362306a36Sopenharmony_ci [171] = PINGROUP(171, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129462306a36Sopenharmony_ci [172] = PINGROUP(172, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129562306a36Sopenharmony_ci [173] = PINGROUP(173, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129662306a36Sopenharmony_ci [174] = PINGROUP(174, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129762306a36Sopenharmony_ci [175] = PINGROUP(175, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129862306a36Sopenharmony_ci [176] = PINGROUP(176, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 129962306a36Sopenharmony_ci [177] = PINGROUP(177, WEST, qdss_gpio, _, _, _, _, _, _, _, _), 130062306a36Sopenharmony_ci [178] = PINGROUP(178, WEST, _, _, _, _, _, _, _, _, _), 130162306a36Sopenharmony_ci [179] = PINGROUP(179, WEST, _, _, _, _, _, _, _, _, _), 130262306a36Sopenharmony_ci [180] = UFS_RESET(ufs_reset, 0xb8000), 130362306a36Sopenharmony_ci [181] = SDC_PINGROUP(sdc2_clk, 0xb7000, 14, 6), 130462306a36Sopenharmony_ci [182] = SDC_PINGROUP(sdc2_cmd, 0xb7000, 11, 3), 130562306a36Sopenharmony_ci [183] = SDC_PINGROUP(sdc2_data, 0xb7000, 9, 0), 130662306a36Sopenharmony_ci}; 130762306a36Sopenharmony_ci 130862306a36Sopenharmony_cistatic const struct msm_gpio_wakeirq_map sm8250_pdc_map[] = { 130962306a36Sopenharmony_ci { 0, 79 }, { 1, 84 }, { 2, 80 }, { 3, 82 }, { 4, 107 }, { 7, 43 }, 131062306a36Sopenharmony_ci { 11, 42 }, { 14, 44 }, { 15, 52 }, { 19, 67 }, { 23, 68 }, { 24, 105 }, 131162306a36Sopenharmony_ci { 27, 92 }, { 28, 106 }, { 31, 69 }, { 35, 70 }, { 39, 73 }, 131262306a36Sopenharmony_ci { 40, 108 }, { 43, 71 }, { 45, 72 }, { 47, 83 }, { 51, 74 }, { 55, 77 }, 131362306a36Sopenharmony_ci { 59, 78 }, { 63, 75 }, { 64, 81 }, { 65, 87 }, { 66, 88 }, { 67, 89 }, 131462306a36Sopenharmony_ci { 68, 54 }, { 70, 85 }, { 77, 46 }, { 80, 90 }, { 81, 91 }, { 83, 97 }, 131562306a36Sopenharmony_ci { 84, 98 }, { 86, 99 }, { 87, 100 }, { 88, 101 }, { 89, 102 }, 131662306a36Sopenharmony_ci { 92, 103 }, { 93, 104 }, { 100, 53 }, { 103, 47 }, { 104, 48 }, 131762306a36Sopenharmony_ci { 108, 49 }, { 109, 94 }, { 110, 95 }, { 111, 96 }, { 112, 55 }, 131862306a36Sopenharmony_ci { 113, 56 }, { 118, 50 }, { 121, 51 }, { 122, 57 }, { 123, 58 }, 131962306a36Sopenharmony_ci { 124, 45 }, { 126, 59 }, { 128, 76 }, { 129, 86 }, { 132, 93 }, 132062306a36Sopenharmony_ci { 133, 65 }, { 134, 66 }, { 136, 62 }, { 137, 63 }, { 138, 64 }, 132162306a36Sopenharmony_ci { 142, 60 }, { 143, 61 } 132262306a36Sopenharmony_ci}; 132362306a36Sopenharmony_ci 132462306a36Sopenharmony_cistatic const struct msm_pinctrl_soc_data sm8250_pinctrl = { 132562306a36Sopenharmony_ci .pins = sm8250_pins, 132662306a36Sopenharmony_ci .npins = ARRAY_SIZE(sm8250_pins), 132762306a36Sopenharmony_ci .functions = sm8250_functions, 132862306a36Sopenharmony_ci .nfunctions = ARRAY_SIZE(sm8250_functions), 132962306a36Sopenharmony_ci .groups = sm8250_groups, 133062306a36Sopenharmony_ci .ngroups = ARRAY_SIZE(sm8250_groups), 133162306a36Sopenharmony_ci .ngpios = 181, 133262306a36Sopenharmony_ci .tiles = sm8250_tiles, 133362306a36Sopenharmony_ci .ntiles = ARRAY_SIZE(sm8250_tiles), 133462306a36Sopenharmony_ci .wakeirq_map = sm8250_pdc_map, 133562306a36Sopenharmony_ci .nwakeirq_map = ARRAY_SIZE(sm8250_pdc_map), 133662306a36Sopenharmony_ci}; 133762306a36Sopenharmony_ci 133862306a36Sopenharmony_cistatic int sm8250_pinctrl_probe(struct platform_device *pdev) 133962306a36Sopenharmony_ci{ 134062306a36Sopenharmony_ci return msm_pinctrl_probe(pdev, &sm8250_pinctrl); 134162306a36Sopenharmony_ci} 134262306a36Sopenharmony_ci 134362306a36Sopenharmony_cistatic const struct of_device_id sm8250_pinctrl_of_match[] = { 134462306a36Sopenharmony_ci { .compatible = "qcom,sm8250-pinctrl", }, 134562306a36Sopenharmony_ci { }, 134662306a36Sopenharmony_ci}; 134762306a36Sopenharmony_ci 134862306a36Sopenharmony_cistatic struct platform_driver sm8250_pinctrl_driver = { 134962306a36Sopenharmony_ci .driver = { 135062306a36Sopenharmony_ci .name = "sm8250-pinctrl", 135162306a36Sopenharmony_ci .of_match_table = sm8250_pinctrl_of_match, 135262306a36Sopenharmony_ci }, 135362306a36Sopenharmony_ci .probe = sm8250_pinctrl_probe, 135462306a36Sopenharmony_ci .remove = msm_pinctrl_remove, 135562306a36Sopenharmony_ci}; 135662306a36Sopenharmony_ci 135762306a36Sopenharmony_cistatic int __init sm8250_pinctrl_init(void) 135862306a36Sopenharmony_ci{ 135962306a36Sopenharmony_ci return platform_driver_register(&sm8250_pinctrl_driver); 136062306a36Sopenharmony_ci} 136162306a36Sopenharmony_ciarch_initcall(sm8250_pinctrl_init); 136262306a36Sopenharmony_ci 136362306a36Sopenharmony_cistatic void __exit sm8250_pinctrl_exit(void) 136462306a36Sopenharmony_ci{ 136562306a36Sopenharmony_ci platform_driver_unregister(&sm8250_pinctrl_driver); 136662306a36Sopenharmony_ci} 136762306a36Sopenharmony_cimodule_exit(sm8250_pinctrl_exit); 136862306a36Sopenharmony_ci 136962306a36Sopenharmony_ciMODULE_DESCRIPTION("QTI sm8250 pinctrl driver"); 137062306a36Sopenharmony_ciMODULE_LICENSE("GPL v2"); 137162306a36Sopenharmony_ciMODULE_DEVICE_TABLE(of, sm8250_pinctrl_of_match); 1372