1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. 4 */ 5 6 #include <linux/module.h> 7 #include <linux/of.h> 8 #include <linux/platform_device.h> 9 10 #include "pinctrl-msm.h" 11 12 #define REG_SIZE 0x1000 13 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11) \ 14 { \ 15 .grp = PINCTRL_PINGROUP("gpio" #id, \ 16 gpio##id##_pins, \ 17 ARRAY_SIZE(gpio##id##_pins)), \ 18 .funcs = (int[]){ \ 19 msm_mux_gpio, /* gpio mode */ \ 20 msm_mux_##f1, \ 21 msm_mux_##f2, \ 22 msm_mux_##f3, \ 23 msm_mux_##f4, \ 24 msm_mux_##f5, \ 25 msm_mux_##f6, \ 26 msm_mux_##f7, \ 27 msm_mux_##f8, \ 28 msm_mux_##f9, \ 29 msm_mux_##f10, \ 30 msm_mux_##f11 /* egpio mode */ \ 31 }, \ 32 .nfuncs = 12, \ 33 .ctl_reg = REG_SIZE * id, \ 34 .io_reg = 0x4 + REG_SIZE * id, \ 35 .intr_cfg_reg = 0x8 + REG_SIZE * id, \ 36 .intr_status_reg = 0xc + REG_SIZE * id, \ 37 .mux_bit = 2, \ 38 .pull_bit = 0, \ 39 .drv_bit = 6, \ 40 .egpio_enable = 12, \ 41 .egpio_present = 11, \ 42 .oe_bit = 9, \ 43 .in_bit = 0, \ 44 .out_bit = 1, \ 45 .intr_enable_bit = 0, \ 46 .intr_status_bit = 0, \ 47 .intr_wakeup_present_bit = 6, \ 48 .intr_wakeup_enable_bit = 7, \ 49 .intr_target_bit = 8, \ 50 .intr_target_width = 4, \ 51 .intr_target_kpss_val = 3, \ 52 .intr_raw_status_bit = 4, \ 53 .intr_polarity_bit = 1, \ 54 .intr_detection_bit = 2, \ 55 .intr_detection_width = 2, \ 56 } 57 58 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ 59 { \ 60 .grp = PINCTRL_PINGROUP(#pg_name, \ 61 pg_name##_pins, \ 62 ARRAY_SIZE(pg_name##_pins)), \ 63 .ctl_reg = ctl, \ 64 .io_reg = 0, \ 65 .intr_cfg_reg = 0, \ 66 .intr_status_reg = 0, \ 67 .mux_bit = -1, \ 68 .pull_bit = pull, \ 69 .drv_bit = drv, \ 70 .oe_bit = -1, \ 71 .in_bit = -1, \ 72 .out_bit = -1, \ 73 .intr_enable_bit = -1, \ 74 .intr_status_bit = -1, \ 75 .intr_target_bit = -1, \ 76 .intr_raw_status_bit = -1, \ 77 .intr_polarity_bit = -1, \ 78 .intr_detection_bit = -1, \ 79 .intr_detection_width = -1, \ 80 } 81 82 #define UFS_RESET(pg_name, ctl, io) \ 83 { \ 84 .grp = PINCTRL_PINGROUP(#pg_name, \ 85 pg_name##_pins, \ 86 ARRAY_SIZE(pg_name##_pins)), \ 87 .ctl_reg = ctl, \ 88 .io_reg = io, \ 89 .intr_cfg_reg = 0, \ 90 .intr_status_reg = 0, \ 91 .mux_bit = -1, \ 92 .pull_bit = 3, \ 93 .drv_bit = 0, \ 94 .oe_bit = -1, \ 95 .in_bit = -1, \ 96 .out_bit = 0, \ 97 .intr_enable_bit = -1, \ 98 .intr_status_bit = -1, \ 99 .intr_target_bit = -1, \ 100 .intr_raw_status_bit = -1, \ 101 .intr_polarity_bit = -1, \ 102 .intr_detection_bit = -1, \ 103 .intr_detection_width = -1, \ 104 } 105 106 static const struct pinctrl_pin_desc maili_pins[] = { 107 PINCTRL_PIN(0, "GPIO_0"), 108 PINCTRL_PIN(1, "GPIO_1"), 109 PINCTRL_PIN(2, "GPIO_2"), 110 PINCTRL_PIN(3, "GPIO_3"), 111 PINCTRL_PIN(4, "GPIO_4"), 112 PINCTRL_PIN(5, "GPIO_5"), 113 PINCTRL_PIN(6, "GPIO_6"), 114 PINCTRL_PIN(7, "GPIO_7"), 115 PINCTRL_PIN(8, "GPIO_8"), 116 PINCTRL_PIN(9, "GPIO_9"), 117 PINCTRL_PIN(10, "GPIO_10"), 118 PINCTRL_PIN(11, "GPIO_11"), 119 PINCTRL_PIN(12, "GPIO_12"), 120 PINCTRL_PIN(13, "GPIO_13"), 121 PINCTRL_PIN(14, "GPIO_14"), 122 PINCTRL_PIN(15, "GPIO_15"), 123 PINCTRL_PIN(16, "GPIO_16"), 124 PINCTRL_PIN(17, "GPIO_17"), 125 PINCTRL_PIN(18, "GPIO_18"), 126 PINCTRL_PIN(19, "GPIO_19"), 127 PINCTRL_PIN(20, "GPIO_20"), 128 PINCTRL_PIN(21, "GPIO_21"), 129 PINCTRL_PIN(22, "GPIO_22"), 130 PINCTRL_PIN(23, "GPIO_23"), 131 PINCTRL_PIN(24, "GPIO_24"), 132 PINCTRL_PIN(25, "GPIO_25"), 133 PINCTRL_PIN(26, "GPIO_26"), 134 PINCTRL_PIN(27, "GPIO_27"), 135 PINCTRL_PIN(28, "GPIO_28"), 136 PINCTRL_PIN(29, "GPIO_29"), 137 PINCTRL_PIN(30, "GPIO_30"), 138 PINCTRL_PIN(31, "GPIO_31"), 139 PINCTRL_PIN(32, "GPIO_32"), 140 PINCTRL_PIN(33, "GPIO_33"), 141 PINCTRL_PIN(34, "GPIO_34"), 142 PINCTRL_PIN(35, "GPIO_35"), 143 PINCTRL_PIN(36, "GPIO_36"), 144 PINCTRL_PIN(37, "GPIO_37"), 145 PINCTRL_PIN(38, "GPIO_38"), 146 PINCTRL_PIN(39, "GPIO_39"), 147 PINCTRL_PIN(40, "GPIO_40"), 148 PINCTRL_PIN(41, "GPIO_41"), 149 PINCTRL_PIN(42, "GPIO_42"), 150 PINCTRL_PIN(43, "GPIO_43"), 151 PINCTRL_PIN(44, "GPIO_44"), 152 PINCTRL_PIN(45, "GPIO_45"), 153 PINCTRL_PIN(46, "GPIO_46"), 154 PINCTRL_PIN(47, "GPIO_47"), 155 PINCTRL_PIN(48, "GPIO_48"), 156 PINCTRL_PIN(49, "GPIO_49"), 157 PINCTRL_PIN(50, "GPIO_50"), 158 PINCTRL_PIN(51, "GPIO_51"), 159 PINCTRL_PIN(52, "GPIO_52"), 160 PINCTRL_PIN(53, "GPIO_53"), 161 PINCTRL_PIN(54, "GPIO_54"), 162 PINCTRL_PIN(55, "GPIO_55"), 163 PINCTRL_PIN(56, "GPIO_56"), 164 PINCTRL_PIN(57, "GPIO_57"), 165 PINCTRL_PIN(58, "GPIO_58"), 166 PINCTRL_PIN(59, "GPIO_59"), 167 PINCTRL_PIN(60, "GPIO_60"), 168 PINCTRL_PIN(61, "GPIO_61"), 169 PINCTRL_PIN(62, "GPIO_62"), 170 PINCTRL_PIN(63, "GPIO_63"), 171 PINCTRL_PIN(64, "GPIO_64"), 172 PINCTRL_PIN(65, "GPIO_65"), 173 PINCTRL_PIN(66, "GPIO_66"), 174 PINCTRL_PIN(67, "GPIO_67"), 175 PINCTRL_PIN(68, "GPIO_68"), 176 PINCTRL_PIN(69, "GPIO_69"), 177 PINCTRL_PIN(70, "GPIO_70"), 178 PINCTRL_PIN(71, "GPIO_71"), 179 PINCTRL_PIN(72, "GPIO_72"), 180 PINCTRL_PIN(73, "GPIO_73"), 181 PINCTRL_PIN(74, "GPIO_74"), 182 PINCTRL_PIN(75, "GPIO_75"), 183 PINCTRL_PIN(76, "GPIO_76"), 184 PINCTRL_PIN(77, "GPIO_77"), 185 PINCTRL_PIN(78, "GPIO_78"), 186 PINCTRL_PIN(79, "GPIO_79"), 187 PINCTRL_PIN(80, "GPIO_80"), 188 PINCTRL_PIN(81, "GPIO_81"), 189 PINCTRL_PIN(82, "GPIO_82"), 190 PINCTRL_PIN(83, "GPIO_83"), 191 PINCTRL_PIN(84, "GPIO_84"), 192 PINCTRL_PIN(85, "GPIO_85"), 193 PINCTRL_PIN(86, "GPIO_86"), 194 PINCTRL_PIN(87, "GPIO_87"), 195 PINCTRL_PIN(88, "GPIO_88"), 196 PINCTRL_PIN(89, "GPIO_89"), 197 PINCTRL_PIN(90, "GPIO_90"), 198 PINCTRL_PIN(91, "GPIO_91"), 199 PINCTRL_PIN(92, "GPIO_92"), 200 PINCTRL_PIN(93, "GPIO_93"), 201 PINCTRL_PIN(94, "GPIO_94"), 202 PINCTRL_PIN(95, "GPIO_95"), 203 PINCTRL_PIN(96, "GPIO_96"), 204 PINCTRL_PIN(97, "GPIO_97"), 205 PINCTRL_PIN(98, "GPIO_98"), 206 PINCTRL_PIN(99, "GPIO_99"), 207 PINCTRL_PIN(100, "GPIO_100"), 208 PINCTRL_PIN(101, "GPIO_101"), 209 PINCTRL_PIN(102, "GPIO_102"), 210 PINCTRL_PIN(103, "GPIO_103"), 211 PINCTRL_PIN(104, "GPIO_104"), 212 PINCTRL_PIN(105, "GPIO_105"), 213 PINCTRL_PIN(106, "GPIO_106"), 214 PINCTRL_PIN(107, "GPIO_107"), 215 PINCTRL_PIN(108, "GPIO_108"), 216 PINCTRL_PIN(109, "GPIO_109"), 217 PINCTRL_PIN(110, "GPIO_110"), 218 PINCTRL_PIN(111, "GPIO_111"), 219 PINCTRL_PIN(112, "GPIO_112"), 220 PINCTRL_PIN(113, "GPIO_113"), 221 PINCTRL_PIN(114, "GPIO_114"), 222 PINCTRL_PIN(115, "GPIO_115"), 223 PINCTRL_PIN(116, "GPIO_116"), 224 PINCTRL_PIN(117, "GPIO_117"), 225 PINCTRL_PIN(118, "GPIO_118"), 226 PINCTRL_PIN(119, "GPIO_119"), 227 PINCTRL_PIN(120, "GPIO_120"), 228 PINCTRL_PIN(121, "GPIO_121"), 229 PINCTRL_PIN(122, "GPIO_122"), 230 PINCTRL_PIN(123, "GPIO_123"), 231 PINCTRL_PIN(124, "GPIO_124"), 232 PINCTRL_PIN(125, "GPIO_125"), 233 PINCTRL_PIN(126, "GPIO_126"), 234 PINCTRL_PIN(127, "GPIO_127"), 235 PINCTRL_PIN(128, "GPIO_128"), 236 PINCTRL_PIN(129, "GPIO_129"), 237 PINCTRL_PIN(130, "GPIO_130"), 238 PINCTRL_PIN(131, "GPIO_131"), 239 PINCTRL_PIN(132, "GPIO_132"), 240 PINCTRL_PIN(133, "GPIO_133"), 241 PINCTRL_PIN(134, "GPIO_134"), 242 PINCTRL_PIN(135, "GPIO_135"), 243 PINCTRL_PIN(136, "GPIO_136"), 244 PINCTRL_PIN(137, "GPIO_137"), 245 PINCTRL_PIN(138, "GPIO_138"), 246 PINCTRL_PIN(139, "GPIO_139"), 247 PINCTRL_PIN(140, "GPIO_140"), 248 PINCTRL_PIN(141, "GPIO_141"), 249 PINCTRL_PIN(142, "GPIO_142"), 250 PINCTRL_PIN(143, "GPIO_143"), 251 PINCTRL_PIN(144, "GPIO_144"), 252 PINCTRL_PIN(145, "GPIO_145"), 253 PINCTRL_PIN(146, "GPIO_146"), 254 PINCTRL_PIN(147, "GPIO_147"), 255 PINCTRL_PIN(148, "GPIO_148"), 256 PINCTRL_PIN(149, "GPIO_149"), 257 PINCTRL_PIN(150, "GPIO_150"), 258 PINCTRL_PIN(151, "GPIO_151"), 259 PINCTRL_PIN(152, "GPIO_152"), 260 PINCTRL_PIN(153, "GPIO_153"), 261 PINCTRL_PIN(154, "GPIO_154"), 262 PINCTRL_PIN(155, "GPIO_155"), 263 PINCTRL_PIN(156, "GPIO_156"), 264 PINCTRL_PIN(157, "GPIO_157"), 265 PINCTRL_PIN(158, "GPIO_158"), 266 PINCTRL_PIN(159, "GPIO_159"), 267 PINCTRL_PIN(160, "GPIO_160"), 268 PINCTRL_PIN(161, "GPIO_161"), 269 PINCTRL_PIN(162, "GPIO_162"), 270 PINCTRL_PIN(163, "GPIO_163"), 271 PINCTRL_PIN(164, "GPIO_164"), 272 PINCTRL_PIN(165, "GPIO_165"), 273 PINCTRL_PIN(166, "GPIO_166"), 274 PINCTRL_PIN(167, "GPIO_167"), 275 PINCTRL_PIN(168, "GPIO_168"), 276 PINCTRL_PIN(169, "GPIO_169"), 277 PINCTRL_PIN(170, "GPIO_170"), 278 PINCTRL_PIN(171, "GPIO_171"), 279 PINCTRL_PIN(172, "GPIO_172"), 280 PINCTRL_PIN(173, "GPIO_173"), 281 PINCTRL_PIN(174, "GPIO_174"), 282 PINCTRL_PIN(175, "GPIO_175"), 283 PINCTRL_PIN(176, "GPIO_176"), 284 PINCTRL_PIN(177, "GPIO_177"), 285 PINCTRL_PIN(178, "GPIO_178"), 286 PINCTRL_PIN(179, "GPIO_179"), 287 PINCTRL_PIN(180, "GPIO_180"), 288 PINCTRL_PIN(181, "GPIO_181"), 289 PINCTRL_PIN(182, "GPIO_182"), 290 PINCTRL_PIN(183, "GPIO_183"), 291 PINCTRL_PIN(184, "GPIO_184"), 292 PINCTRL_PIN(185, "GPIO_185"), 293 PINCTRL_PIN(186, "GPIO_186"), 294 PINCTRL_PIN(187, "GPIO_187"), 295 PINCTRL_PIN(188, "GPIO_188"), 296 PINCTRL_PIN(189, "GPIO_189"), 297 PINCTRL_PIN(190, "GPIO_190"), 298 PINCTRL_PIN(191, "GPIO_191"), 299 PINCTRL_PIN(192, "GPIO_192"), 300 PINCTRL_PIN(193, "GPIO_193"), 301 PINCTRL_PIN(194, "GPIO_194"), 302 PINCTRL_PIN(195, "GPIO_195"), 303 PINCTRL_PIN(196, "GPIO_196"), 304 PINCTRL_PIN(197, "GPIO_197"), 305 PINCTRL_PIN(198, "GPIO_198"), 306 PINCTRL_PIN(199, "GPIO_199"), 307 PINCTRL_PIN(200, "GPIO_200"), 308 PINCTRL_PIN(201, "GPIO_201"), 309 PINCTRL_PIN(202, "GPIO_202"), 310 PINCTRL_PIN(203, "GPIO_203"), 311 PINCTRL_PIN(204, "GPIO_204"), 312 PINCTRL_PIN(205, "GPIO_205"), 313 PINCTRL_PIN(206, "GPIO_206"), 314 PINCTRL_PIN(207, "GPIO_207"), 315 PINCTRL_PIN(208, "GPIO_208"), 316 PINCTRL_PIN(209, "GPIO_209"), 317 PINCTRL_PIN(210, "GPIO_210"), 318 PINCTRL_PIN(211, "GPIO_211"), 319 PINCTRL_PIN(212, "GPIO_212"), 320 PINCTRL_PIN(213, "GPIO_213"), 321 PINCTRL_PIN(214, "GPIO_214"), 322 PINCTRL_PIN(215, "GPIO_215"), 323 PINCTRL_PIN(216, "GPIO_216"), 324 PINCTRL_PIN(217, "GPIO_217"), 325 PINCTRL_PIN(218, "GPIO_218"), 326 PINCTRL_PIN(219, "GPIO_219"), 327 PINCTRL_PIN(220, "GPIO_220"), 328 PINCTRL_PIN(221, "GPIO_221"), 329 PINCTRL_PIN(222, "GPIO_222"), 330 PINCTRL_PIN(223, "GPIO_223"), 331 PINCTRL_PIN(224, "GPIO_224"), 332 PINCTRL_PIN(225, "GPIO_225"), 333 PINCTRL_PIN(226, "UFS_RESET"), 334 PINCTRL_PIN(227, "SDC2_CLK"), 335 PINCTRL_PIN(228, "SDC2_CMD"), 336 PINCTRL_PIN(229, "SDC2_DATA"), 337 }; 338 339 #define DECLARE_MSM_GPIO_PINS(pin) \ 340 static const unsigned int gpio##pin##_pins[] = { pin } 341 DECLARE_MSM_GPIO_PINS(0); 342 DECLARE_MSM_GPIO_PINS(1); 343 DECLARE_MSM_GPIO_PINS(2); 344 DECLARE_MSM_GPIO_PINS(3); 345 DECLARE_MSM_GPIO_PINS(4); 346 DECLARE_MSM_GPIO_PINS(5); 347 DECLARE_MSM_GPIO_PINS(6); 348 DECLARE_MSM_GPIO_PINS(7); 349 DECLARE_MSM_GPIO_PINS(8); 350 DECLARE_MSM_GPIO_PINS(9); 351 DECLARE_MSM_GPIO_PINS(10); 352 DECLARE_MSM_GPIO_PINS(11); 353 DECLARE_MSM_GPIO_PINS(12); 354 DECLARE_MSM_GPIO_PINS(13); 355 DECLARE_MSM_GPIO_PINS(14); 356 DECLARE_MSM_GPIO_PINS(15); 357 DECLARE_MSM_GPIO_PINS(16); 358 DECLARE_MSM_GPIO_PINS(17); 359 DECLARE_MSM_GPIO_PINS(18); 360 DECLARE_MSM_GPIO_PINS(19); 361 DECLARE_MSM_GPIO_PINS(20); 362 DECLARE_MSM_GPIO_PINS(21); 363 DECLARE_MSM_GPIO_PINS(22); 364 DECLARE_MSM_GPIO_PINS(23); 365 DECLARE_MSM_GPIO_PINS(24); 366 DECLARE_MSM_GPIO_PINS(25); 367 DECLARE_MSM_GPIO_PINS(26); 368 DECLARE_MSM_GPIO_PINS(27); 369 DECLARE_MSM_GPIO_PINS(28); 370 DECLARE_MSM_GPIO_PINS(29); 371 DECLARE_MSM_GPIO_PINS(30); 372 DECLARE_MSM_GPIO_PINS(31); 373 DECLARE_MSM_GPIO_PINS(32); 374 DECLARE_MSM_GPIO_PINS(33); 375 DECLARE_MSM_GPIO_PINS(34); 376 DECLARE_MSM_GPIO_PINS(35); 377 DECLARE_MSM_GPIO_PINS(36); 378 DECLARE_MSM_GPIO_PINS(37); 379 DECLARE_MSM_GPIO_PINS(38); 380 DECLARE_MSM_GPIO_PINS(39); 381 DECLARE_MSM_GPIO_PINS(40); 382 DECLARE_MSM_GPIO_PINS(41); 383 DECLARE_MSM_GPIO_PINS(42); 384 DECLARE_MSM_GPIO_PINS(43); 385 DECLARE_MSM_GPIO_PINS(44); 386 DECLARE_MSM_GPIO_PINS(45); 387 DECLARE_MSM_GPIO_PINS(46); 388 DECLARE_MSM_GPIO_PINS(47); 389 DECLARE_MSM_GPIO_PINS(48); 390 DECLARE_MSM_GPIO_PINS(49); 391 DECLARE_MSM_GPIO_PINS(50); 392 DECLARE_MSM_GPIO_PINS(51); 393 DECLARE_MSM_GPIO_PINS(52); 394 DECLARE_MSM_GPIO_PINS(53); 395 DECLARE_MSM_GPIO_PINS(54); 396 DECLARE_MSM_GPIO_PINS(55); 397 DECLARE_MSM_GPIO_PINS(56); 398 DECLARE_MSM_GPIO_PINS(57); 399 DECLARE_MSM_GPIO_PINS(58); 400 DECLARE_MSM_GPIO_PINS(59); 401 DECLARE_MSM_GPIO_PINS(60); 402 DECLARE_MSM_GPIO_PINS(61); 403 DECLARE_MSM_GPIO_PINS(62); 404 DECLARE_MSM_GPIO_PINS(63); 405 DECLARE_MSM_GPIO_PINS(64); 406 DECLARE_MSM_GPIO_PINS(65); 407 DECLARE_MSM_GPIO_PINS(66); 408 DECLARE_MSM_GPIO_PINS(67); 409 DECLARE_MSM_GPIO_PINS(68); 410 DECLARE_MSM_GPIO_PINS(69); 411 DECLARE_MSM_GPIO_PINS(70); 412 DECLARE_MSM_GPIO_PINS(71); 413 DECLARE_MSM_GPIO_PINS(72); 414 DECLARE_MSM_GPIO_PINS(73); 415 DECLARE_MSM_GPIO_PINS(74); 416 DECLARE_MSM_GPIO_PINS(75); 417 DECLARE_MSM_GPIO_PINS(76); 418 DECLARE_MSM_GPIO_PINS(77); 419 DECLARE_MSM_GPIO_PINS(78); 420 DECLARE_MSM_GPIO_PINS(79); 421 DECLARE_MSM_GPIO_PINS(80); 422 DECLARE_MSM_GPIO_PINS(81); 423 DECLARE_MSM_GPIO_PINS(82); 424 DECLARE_MSM_GPIO_PINS(83); 425 DECLARE_MSM_GPIO_PINS(84); 426 DECLARE_MSM_GPIO_PINS(85); 427 DECLARE_MSM_GPIO_PINS(86); 428 DECLARE_MSM_GPIO_PINS(87); 429 DECLARE_MSM_GPIO_PINS(88); 430 DECLARE_MSM_GPIO_PINS(89); 431 DECLARE_MSM_GPIO_PINS(90); 432 DECLARE_MSM_GPIO_PINS(91); 433 DECLARE_MSM_GPIO_PINS(92); 434 DECLARE_MSM_GPIO_PINS(93); 435 DECLARE_MSM_GPIO_PINS(94); 436 DECLARE_MSM_GPIO_PINS(95); 437 DECLARE_MSM_GPIO_PINS(96); 438 DECLARE_MSM_GPIO_PINS(97); 439 DECLARE_MSM_GPIO_PINS(98); 440 DECLARE_MSM_GPIO_PINS(99); 441 DECLARE_MSM_GPIO_PINS(100); 442 DECLARE_MSM_GPIO_PINS(101); 443 DECLARE_MSM_GPIO_PINS(102); 444 DECLARE_MSM_GPIO_PINS(103); 445 DECLARE_MSM_GPIO_PINS(104); 446 DECLARE_MSM_GPIO_PINS(105); 447 DECLARE_MSM_GPIO_PINS(106); 448 DECLARE_MSM_GPIO_PINS(107); 449 DECLARE_MSM_GPIO_PINS(108); 450 DECLARE_MSM_GPIO_PINS(109); 451 DECLARE_MSM_GPIO_PINS(110); 452 DECLARE_MSM_GPIO_PINS(111); 453 DECLARE_MSM_GPIO_PINS(112); 454 DECLARE_MSM_GPIO_PINS(113); 455 DECLARE_MSM_GPIO_PINS(114); 456 DECLARE_MSM_GPIO_PINS(115); 457 DECLARE_MSM_GPIO_PINS(116); 458 DECLARE_MSM_GPIO_PINS(117); 459 DECLARE_MSM_GPIO_PINS(118); 460 DECLARE_MSM_GPIO_PINS(119); 461 DECLARE_MSM_GPIO_PINS(120); 462 DECLARE_MSM_GPIO_PINS(121); 463 DECLARE_MSM_GPIO_PINS(122); 464 DECLARE_MSM_GPIO_PINS(123); 465 DECLARE_MSM_GPIO_PINS(124); 466 DECLARE_MSM_GPIO_PINS(125); 467 DECLARE_MSM_GPIO_PINS(126); 468 DECLARE_MSM_GPIO_PINS(127); 469 DECLARE_MSM_GPIO_PINS(128); 470 DECLARE_MSM_GPIO_PINS(129); 471 DECLARE_MSM_GPIO_PINS(130); 472 DECLARE_MSM_GPIO_PINS(131); 473 DECLARE_MSM_GPIO_PINS(132); 474 DECLARE_MSM_GPIO_PINS(133); 475 DECLARE_MSM_GPIO_PINS(134); 476 DECLARE_MSM_GPIO_PINS(135); 477 DECLARE_MSM_GPIO_PINS(136); 478 DECLARE_MSM_GPIO_PINS(137); 479 DECLARE_MSM_GPIO_PINS(138); 480 DECLARE_MSM_GPIO_PINS(139); 481 DECLARE_MSM_GPIO_PINS(140); 482 DECLARE_MSM_GPIO_PINS(141); 483 DECLARE_MSM_GPIO_PINS(142); 484 DECLARE_MSM_GPIO_PINS(143); 485 DECLARE_MSM_GPIO_PINS(144); 486 DECLARE_MSM_GPIO_PINS(145); 487 DECLARE_MSM_GPIO_PINS(146); 488 DECLARE_MSM_GPIO_PINS(147); 489 DECLARE_MSM_GPIO_PINS(148); 490 DECLARE_MSM_GPIO_PINS(149); 491 DECLARE_MSM_GPIO_PINS(150); 492 DECLARE_MSM_GPIO_PINS(151); 493 DECLARE_MSM_GPIO_PINS(152); 494 DECLARE_MSM_GPIO_PINS(153); 495 DECLARE_MSM_GPIO_PINS(154); 496 DECLARE_MSM_GPIO_PINS(155); 497 DECLARE_MSM_GPIO_PINS(156); 498 DECLARE_MSM_GPIO_PINS(157); 499 DECLARE_MSM_GPIO_PINS(158); 500 DECLARE_MSM_GPIO_PINS(159); 501 DECLARE_MSM_GPIO_PINS(160); 502 DECLARE_MSM_GPIO_PINS(161); 503 DECLARE_MSM_GPIO_PINS(162); 504 DECLARE_MSM_GPIO_PINS(163); 505 DECLARE_MSM_GPIO_PINS(164); 506 DECLARE_MSM_GPIO_PINS(165); 507 DECLARE_MSM_GPIO_PINS(166); 508 DECLARE_MSM_GPIO_PINS(167); 509 DECLARE_MSM_GPIO_PINS(168); 510 DECLARE_MSM_GPIO_PINS(169); 511 DECLARE_MSM_GPIO_PINS(170); 512 DECLARE_MSM_GPIO_PINS(171); 513 DECLARE_MSM_GPIO_PINS(172); 514 DECLARE_MSM_GPIO_PINS(173); 515 DECLARE_MSM_GPIO_PINS(174); 516 DECLARE_MSM_GPIO_PINS(175); 517 DECLARE_MSM_GPIO_PINS(176); 518 DECLARE_MSM_GPIO_PINS(177); 519 DECLARE_MSM_GPIO_PINS(178); 520 DECLARE_MSM_GPIO_PINS(179); 521 DECLARE_MSM_GPIO_PINS(180); 522 DECLARE_MSM_GPIO_PINS(181); 523 DECLARE_MSM_GPIO_PINS(182); 524 DECLARE_MSM_GPIO_PINS(183); 525 DECLARE_MSM_GPIO_PINS(184); 526 DECLARE_MSM_GPIO_PINS(185); 527 DECLARE_MSM_GPIO_PINS(186); 528 DECLARE_MSM_GPIO_PINS(187); 529 DECLARE_MSM_GPIO_PINS(188); 530 DECLARE_MSM_GPIO_PINS(189); 531 DECLARE_MSM_GPIO_PINS(190); 532 DECLARE_MSM_GPIO_PINS(191); 533 DECLARE_MSM_GPIO_PINS(192); 534 DECLARE_MSM_GPIO_PINS(193); 535 DECLARE_MSM_GPIO_PINS(194); 536 DECLARE_MSM_GPIO_PINS(195); 537 DECLARE_MSM_GPIO_PINS(196); 538 DECLARE_MSM_GPIO_PINS(197); 539 DECLARE_MSM_GPIO_PINS(198); 540 DECLARE_MSM_GPIO_PINS(199); 541 DECLARE_MSM_GPIO_PINS(200); 542 DECLARE_MSM_GPIO_PINS(201); 543 DECLARE_MSM_GPIO_PINS(202); 544 DECLARE_MSM_GPIO_PINS(203); 545 DECLARE_MSM_GPIO_PINS(204); 546 DECLARE_MSM_GPIO_PINS(205); 547 DECLARE_MSM_GPIO_PINS(206); 548 DECLARE_MSM_GPIO_PINS(207); 549 DECLARE_MSM_GPIO_PINS(208); 550 DECLARE_MSM_GPIO_PINS(209); 551 DECLARE_MSM_GPIO_PINS(210); 552 DECLARE_MSM_GPIO_PINS(211); 553 DECLARE_MSM_GPIO_PINS(212); 554 DECLARE_MSM_GPIO_PINS(213); 555 DECLARE_MSM_GPIO_PINS(214); 556 DECLARE_MSM_GPIO_PINS(215); 557 DECLARE_MSM_GPIO_PINS(216); 558 DECLARE_MSM_GPIO_PINS(217); 559 DECLARE_MSM_GPIO_PINS(218); 560 DECLARE_MSM_GPIO_PINS(219); 561 DECLARE_MSM_GPIO_PINS(220); 562 DECLARE_MSM_GPIO_PINS(221); 563 DECLARE_MSM_GPIO_PINS(222); 564 DECLARE_MSM_GPIO_PINS(223); 565 DECLARE_MSM_GPIO_PINS(224); 566 DECLARE_MSM_GPIO_PINS(225); 567 568 static const unsigned int ufs_reset_pins[] = { 226 }; 569 static const unsigned int sdc2_clk_pins[] = { 227 }; 570 static const unsigned int sdc2_cmd_pins[] = { 228 }; 571 static const unsigned int sdc2_data_pins[] = { 229 }; 572 573 enum maili_functions { 574 msm_mux_gpio, 575 msm_mux_aoss_cti, 576 msm_mux_atest_char, 577 msm_mux_atest_usb, 578 msm_mux_audio_ext_mclk, 579 msm_mux_audio_ref_clk, 580 msm_mux_cam_mclk, 581 msm_mux_cci_async_in, 582 msm_mux_cci_i2c0, 583 msm_mux_cci_i2c1, 584 msm_mux_cci_i2c2, 585 msm_mux_cci_i2c3, 586 msm_mux_cci_timer, 587 msm_mux_coex_espmi, 588 msm_mux_coex_uart1_rx, 589 msm_mux_coex_uart1_tx, 590 msm_mux_dbg_out_clk, 591 msm_mux_ddr_bist, 592 msm_mux_ddr_pxi, 593 msm_mux_dp_hot, 594 msm_mux_egpio, 595 msm_mux_gcc_gp, 596 msm_mux_gnss_adc, 597 msm_mux_host2wlan_sol, 598 msm_mux_host_rst, 599 msm_mux_i2chub0_se0, 600 msm_mux_i2chub0_se1, 601 msm_mux_i2chub0_se2, 602 msm_mux_i2chub0_se3, 603 msm_mux_i2chub0_se4, 604 msm_mux_i2s0, 605 msm_mux_i2s1, 606 msm_mux_ibi_i3c, 607 msm_mux_ibi_i3c_qup5_se0, 608 msm_mux_jitter_bist, 609 msm_mux_mdp_esync0, 610 msm_mux_mdp_esync1, 611 msm_mux_mdp_esync2, 612 msm_mux_mdp_vsync, 613 msm_mux_mdp_vsync_e, 614 msm_mux_mdp_vsync_p, 615 msm_mux_mdp_vsync0_out, 616 msm_mux_mdp_vsync1_out, 617 msm_mux_mdp_vsync2_out, 618 msm_mux_mdp_vsync3_out, 619 msm_mux_mdp_vsync5_out, 620 msm_mux_modem_pps_in, 621 msm_mux_modem_pps_out, 622 msm_mux_nav_gpio, 623 msm_mux_nav_gpio0, 624 msm_mux_nav_gpio3, 625 msm_mux_nav_rffe, 626 msm_mux_pcie0_clk_req_n, 627 msm_mux_pcie1_clk_req_n, 628 msm_mux_pcie1_rst_n, 629 msm_mux_phase_flag, 630 msm_mux_pll_bist_sync, 631 msm_mux_pll_clk_aux, 632 msm_mux_qdss_cti, 633 msm_mux_qlink, 634 msm_mux_qspi, 635 msm_mux_qspi_clk, 636 msm_mux_qspi_cs, 637 msm_mux_qup1_se0, 638 msm_mux_qup1_se1, 639 msm_mux_qup1_se2, 640 msm_mux_qup1_se3, 641 msm_mux_qup1_se4, 642 msm_mux_qup1_se5, 643 msm_mux_qup1_se6, 644 msm_mux_qup1_se7, 645 msm_mux_qup2_se0, 646 msm_mux_qup2_se1, 647 msm_mux_qup2_se2, 648 msm_mux_qup2_se3, 649 msm_mux_qup2_se4_01, 650 msm_mux_qup2_se4_23, 651 msm_mux_qup3_se0, 652 msm_mux_qup3_se1, 653 msm_mux_qup3_se2, 654 msm_mux_qup3_se3, 655 msm_mux_qup3_se4, 656 msm_mux_qup3_se5, 657 msm_mux_qup4_se0, 658 msm_mux_qup4_se1, 659 msm_mux_qup4_se2, 660 msm_mux_qup4_se3_01, 661 msm_mux_qup4_se3_23, 662 msm_mux_qup4_se3_l3, 663 msm_mux_qup4_se4_01, 664 msm_mux_qup4_se4_23, 665 msm_mux_qup4_se4_l3, 666 msm_mux_qup5_se0, 667 msm_mux_rng_rosc, 668 msm_mux_sd_write_protect, 669 msm_mux_sdc2_clk, 670 msm_mux_sdc2_cmd, 671 msm_mux_sdc2_data, 672 msm_mux_sdc2_rclk, 673 msm_mux_sdc4_clk, 674 msm_mux_sdc4_cmd, 675 msm_mux_sdc4_data, 676 msm_mux_sys_throttle, 677 msm_mux_tb_trig_sdc, 678 msm_mux_tmess_rng, 679 msm_mux_tsense_clm, 680 msm_mux_tsense_pwm, 681 msm_mux_uim0, 682 msm_mux_uim1, 683 msm_mux_usb0_hs, 684 msm_mux_usb_phy, 685 msm_mux_vfr, 686 msm_mux_vsense_trigger_mirnat, 687 msm_mux_wcn_sw, 688 msm_mux__, 689 }; 690 691 static const char *const gpio_groups[] = { 692 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", 693 "gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11", 694 "gpio12", "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", 695 "gpio18", "gpio19", "gpio20", "gpio21", "gpio22", "gpio23", 696 "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29", 697 "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 698 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", 699 "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", 700 "gpio48", "gpio49", "gpio50", "gpio51", "gpio52", "gpio53", 701 "gpio54", "gpio55", "gpio56", "gpio57", "gpio58", "gpio59", 702 "gpio60", "gpio61", "gpio62", "gpio63", "gpio64", "gpio65", 703 "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", "gpio71", 704 "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 705 "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", 706 "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", 707 "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", 708 "gpio96", "gpio97", "gpio98", "gpio99", "gpio100", "gpio101", 709 "gpio102", "gpio103", "gpio104", "gpio105", "gpio106", "gpio107", 710 "gpio108", "gpio109", "gpio110", "gpio111", "gpio112", "gpio113", 711 "gpio114", "gpio115", "gpio116", "gpio117", "gpio118", "gpio119", 712 "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125", 713 "gpio126", "gpio127", "gpio128", "gpio129", "gpio130", "gpio131", 714 "gpio132", "gpio133", "gpio134", "gpio135", "gpio136", "gpio137", 715 "gpio138", "gpio139", "gpio140", "gpio141", "gpio142", "gpio143", 716 "gpio144", "gpio145", "gpio146", "gpio147", "gpio148", "gpio149", 717 "gpio150", "gpio151", "gpio152", "gpio153", "gpio154", "gpio155", 718 "gpio156", "gpio157", "gpio158", "gpio159", "gpio160", "gpio161", 719 "gpio162", "gpio163", "gpio164", "gpio165", "gpio166", "gpio167", 720 "gpio168", "gpio169", "gpio170", "gpio171", "gpio172", "gpio173", 721 "gpio174", "gpio175", "gpio176", "gpio177", "gpio178", "gpio179", 722 "gpio180", "gpio181", "gpio182", "gpio183", "gpio184", "gpio185", 723 "gpio186", "gpio187", "gpio188", "gpio189", "gpio190", "gpio191", 724 "gpio192", "gpio193", "gpio194", "gpio195", "gpio196", "gpio197", 725 "gpio198", "gpio199", "gpio200", "gpio201", "gpio202", "gpio203", 726 "gpio204", "gpio205", "gpio206", "gpio207", "gpio208", "gpio209", 727 "gpio210", "gpio211", "gpio212", "gpio213", "gpio214", "gpio215", 728 "gpio216", "gpio217", "gpio218", "gpio219", "gpio220", "gpio221", 729 "gpio222", "gpio223", "gpio224", "gpio225", 730 }; 731 732 static const char *const aoss_cti_groups[] = { 733 "gpio74", "gpio75", "gpio76", "gpio77", 734 }; 735 736 static const char *const atest_char_groups[] = { 737 "gpio126", "gpio127", "gpio128", "gpio129", "gpio133", 738 }; 739 740 static const char *const atest_usb_groups[] = { 741 "gpio78", "gpio79", "gpio102", "gpio103", "gpio104", 742 }; 743 744 static const char *const audio_ext_mclk_groups[] = { 745 "gpio120", "gpio121", 746 }; 747 748 static const char *const audio_ref_clk_groups[] = { 749 "gpio120", 750 }; 751 752 static const char *const cam_mclk_groups[] = { 753 "gpio90", "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", 754 }; 755 756 static const char *const cci_async_in_groups[] = { 757 "gpio15", "gpio109", "gpio110", 758 }; 759 760 static const char *const cci_i2c0_groups[] = { 761 "gpio109", "gpio110", 762 }; 763 764 static const char *const cci_i2c1_groups[] = { 765 "gpio111", "gpio112", 766 }; 767 768 static const char *const cci_i2c2_groups[] = { 769 "gpio113", "gpio114", 770 }; 771 772 static const char *const cci_i2c3_groups[] = { 773 "gpio107", "gpio160", 774 }; 775 776 static const char *const cci_timer_groups[] = { 777 "gpio105", "gpio106", "gpio107", "gpio159", "gpio160", 778 }; 779 780 static const char *const coex_espmi_groups[] = { 781 "gpio144", "gpio145", 782 }; 783 784 static const char *const coex_uart1_rx_groups[] = { 785 "gpio144", 786 }; 787 788 static const char *const coex_uart1_tx_groups[] = { 789 "gpio145", 790 }; 791 792 static const char *const dbg_out_clk_groups[] = { 793 "gpio82", 794 }; 795 796 static const char *const ddr_bist_groups[] = { 797 "gpio40", "gpio41", "gpio44", "gpio45", 798 }; 799 800 static const char *const ddr_pxi_groups[] = { 801 "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72", "gpio73", 802 }; 803 804 static const char *const dp_hot_groups[] = { 805 "gpio47", 806 }; 807 808 static const char *const egpio_groups[] = { 809 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", 810 "gpio6", "gpio7", "gpio28", "gpio29", "gpio30", "gpio31", 811 "gpio48", "gpio49", "gpio50", "gpio51", "gpio163", "gpio164", 812 "gpio165", "gpio166", "gpio167", "gpio168", "gpio169", "gpio170", 813 "gpio171", "gpio172", "gpio173", "gpio174", "gpio175", "gpio176", 814 "gpio177", "gpio178", "gpio179", "gpio180", "gpio181", "gpio182", 815 "gpio183", "gpio184", "gpio185", "gpio186", "gpio187", "gpio188", 816 "gpio189", "gpio190", "gpio191", "gpio192", "gpio193", "gpio194", 817 "gpio195", "gpio196", "gpio197", "gpio198", "gpio199", "gpio200", 818 "gpio201", "gpio202", "gpio203", "gpio204", "gpio205", "gpio206", 819 "gpio207", "gpio208", "gpio209", "gpio212", "gpio213", "gpio214", 820 "gpio215", "gpio216", "gpio217", "gpio218", 821 }; 822 823 static const char *const gcc_gp_groups[] = { 824 "gpio17", "gpio86", "gpio87", "gpio97", "gpio155", "gpio156", 825 }; 826 827 static const char *const gnss_adc_groups[] = { 828 "gpio18", "gpio19", "gpio20", "gpio23", 829 }; 830 831 static const char *const host2wlan_sol_groups[] = { 832 "gpio204", 833 }; 834 835 static const char *const host_rst_groups[] = { 836 "gpio106", 837 }; 838 839 static const char *const i2chub0_se0_groups[] = { 840 "gpio66", "gpio67", 841 }; 842 843 static const char *const i2chub0_se1_groups[] = { 844 "gpio78", "gpio79", 845 }; 846 847 static const char *const i2chub0_se2_groups[] = { 848 "gpio68", "gpio69", 849 }; 850 851 static const char *const i2chub0_se3_groups[] = { 852 "gpio70", "gpio71", 853 }; 854 855 static const char *const i2chub0_se4_groups[] = { 856 "gpio72", "gpio73", 857 }; 858 859 static const char *const i2s0_groups[] = { 860 "gpio46", "gpio84", "gpio161", "gpio162", 861 }; 862 863 static const char *const i2s1_groups[] = { 864 "gpio222", "gpio223", "gpio224", "gpio225", 865 }; 866 867 static const char *const ibi_i3c_groups[] = { 868 "gpio0", "gpio1", "gpio4", "gpio5", "gpio8", "gpio9", 869 "gpio12", "gpio13", "gpio24", "gpio25", "gpio28", "gpio29", 870 "gpio32", "gpio33", "gpio36", "gpio37", "gpio48", "gpio49", 871 "gpio60", "gpio61", "gpio64", "gpio65", "gpio85", "gpio89", 872 "gpio117", "gpio118", 873 }; 874 875 static const char *const ibi_i3c_qup5_se0_groups[] = { 876 "gpio8", "gpio9", 877 }; 878 879 static const char *const jitter_bist_groups[] = { 880 "gpio73", 881 }; 882 883 static const char *const mdp_esync0_groups[] = { 884 "gpio88", "gpio100", 885 }; 886 887 static const char *const mdp_esync1_groups[] = { 888 "gpio86", "gpio100", 889 }; 890 891 static const char *const mdp_esync2_groups[] = { 892 "gpio87", "gpio97", 893 }; 894 895 static const char *const mdp_vsync_groups[] = { 896 "gpio86", "gpio87", "gpio88", "gpio97", 897 }; 898 899 static const char *const mdp_vsync_e_groups[] = { 900 "gpio98", 901 }; 902 903 static const char *const mdp_vsync_p_groups[] = { 904 "gpio98", 905 }; 906 907 static const char *const mdp_vsync0_out_groups[] = { 908 "gpio86", 909 }; 910 911 static const char *const mdp_vsync1_out_groups[] = { 912 "gpio86", 913 }; 914 915 static const char *const mdp_vsync2_out_groups[] = { 916 "gpio87", 917 }; 918 919 static const char *const mdp_vsync3_out_groups[] = { 920 "gpio87", 921 }; 922 923 static const char *const mdp_vsync5_out_groups[] = { 924 "gpio87", 925 }; 926 927 static const char *const modem_pps_in_groups[] = { 928 "gpio151", 929 }; 930 931 static const char *const modem_pps_out_groups[] = { 932 "gpio151", 933 }; 934 935 static const char *const nav_gpio_groups[] = { 936 "gpio146", "gpio147", "gpio148", "gpio151", 937 }; 938 939 static const char *const nav_gpio0_groups[] = { 940 "gpio150", 941 }; 942 943 static const char *const nav_gpio3_groups[] = { 944 "gpio150", 945 }; 946 947 static const char *const nav_rffe_groups[] = { 948 "gpio134", "gpio135", "gpio138", "gpio139", 949 }; 950 951 static const char *const pcie0_clk_req_n_groups[] = { 952 "gpio103", 953 }; 954 955 static const char *const pcie1_clk_req_n_groups[] = { 956 "gpio221", 957 }; 958 959 static const char *const pcie1_rst_n_groups[] = { 960 "gpio220", 961 }; 962 963 static const char *const phase_flag_groups[] = { 964 "gpio40", "gpio41", "gpio44", "gpio45", "gpio46", "gpio47", "gpio126", 965 "gpio127", "gpio128", "gpio129", "gpio130", "gpio131", "gpio132", 966 "gpio133", "gpio161", "gpio162", "gpio169", "gpio170", "gpio171", 967 "gpio174", "gpio175", "gpio178", "gpio179", "gpio180", "gpio181", 968 "gpio182", "gpio183", "gpio205", "gpio222", "gpio223", "gpio224", 969 "gpio225", 970 }; 971 972 static const char *const pll_bist_sync_groups[] = { 973 "gpio104", 974 }; 975 976 static const char *const pll_clk_aux_groups[] = { 977 "gpio94", 978 }; 979 980 static const char *const qdss_cti_groups[] = { 981 "gpio72", "gpio73", "gpio82", "gpio83", "gpio222", "gpio223", 982 "gpio224", "gpio225", 983 }; 984 985 static const char *const qlink_groups[] = { 986 "gpio152", "gpio153", "gpio154", 987 }; 988 989 static const char *const qspi_groups[] = { 990 "gpio80", "gpio81", "gpio82", "gpio147", 991 }; 992 993 static const char *const qspi_clk_groups[] = { 994 "gpio83", 995 }; 996 997 static const char *const qspi_cs_groups[] = { 998 "gpio146", "gpio148", 999 }; 1000 1001 static const char *const qup1_se0_groups[] = { 1002 "gpio222", "gpio223", "gpio224", "gpio225", 1003 }; 1004 1005 static const char *const qup1_se1_groups[] = { 1006 "gpio74", "gpio75", "gpio76", "gpio77", "gpio188", "gpio189", "gpio192", "gpio193", 1007 }; 1008 1009 static const char *const qup1_se2_groups[] = { 1010 "gpio40", "gpio41", "gpio42", "gpio43", "gpio130", "gpio131", "gpio132", 1011 }; 1012 1013 static const char *const qup1_se3_groups[] = { 1014 "gpio44", "gpio45", "gpio46", "gpio47", 1015 }; 1016 1017 static const char *const qup1_se4_groups[] = { 1018 "gpio36", "gpio37", "gpio38", "gpio39", 1019 }; 1020 1021 static const char *const qup1_se5_groups[] = { 1022 "gpio52", "gpio53", "gpio54", "gpio55", 1023 }; 1024 1025 static const char *const qup1_se6_groups[] = { 1026 "gpio56", "gpio57", "gpio58", "gpio59", 1027 }; 1028 1029 static const char *const qup1_se7_groups[] = { 1030 "gpio60", "gpio61", "gpio62", "gpio63", 1031 }; 1032 1033 static const char *const qup2_se0_groups[] = { 1034 "gpio0", "gpio1", "gpio2", "gpio3", 1035 }; 1036 1037 static const char *const qup2_se1_groups[] = { 1038 "gpio4", "gpio5", "gpio6", "gpio7", 1039 }; 1040 1041 static const char *const qup2_se2_groups[] = { 1042 "gpio117", "gpio118", "gpio119", "gpio120", 1043 }; 1044 1045 static const char *const qup2_se3_groups[] = { 1046 "gpio97", "gpio122", "gpio123", "gpio124", "gpio125", 1047 }; 1048 1049 static const char *const qup2_se4_01_groups[] = { 1050 "gpio208", "gpio209", 1051 }; 1052 1053 static const char *const qup2_se4_23_groups[] = { 1054 "gpio208", "gpio209", 1055 }; 1056 1057 static const char *const qup3_se0_groups[] = { 1058 "gpio64", "gpio65", "gpio66", "gpio67", "gpio82", "gpio83", 1059 }; 1060 1061 static const char *const qup3_se1_groups[] = { 1062 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio15", 1063 }; 1064 1065 static const char *const qup3_se2_groups[] = { 1066 "gpio12", "gpio13", "gpio14", "gpio15", 1067 }; 1068 1069 static const char *const qup3_se3_groups[] = { 1070 "gpio16", "gpio17", "gpio18", "gpio19", 1071 }; 1072 1073 static const char *const qup3_se4_groups[] = { 1074 "gpio20", "gpio21", "gpio22", "gpio23", 1075 }; 1076 1077 static const char *const qup3_se5_groups[] = { 1078 "gpio24", "gpio25", "gpio26", "gpio27", 1079 }; 1080 1081 static const char *const qup4_se0_groups[] = { 1082 "gpio48", "gpio49", "gpio50", "gpio51", 1083 }; 1084 1085 static const char *const qup4_se1_groups[] = { 1086 "gpio28", "gpio29", "gpio30", "gpio31", 1087 }; 1088 1089 static const char *const qup4_se2_groups[] = { 1090 "gpio32", "gpio33", "gpio34", "gpio35", 1091 }; 1092 1093 static const char *const qup4_se3_01_groups[] = { 1094 "gpio84", "gpio121", 1095 }; 1096 1097 static const char *const qup4_se3_23_groups[] = { 1098 "gpio84", "gpio121", 1099 }; 1100 1101 static const char *const qup4_se3_l3_groups[] = { 1102 "gpio98", 1103 }; 1104 1105 static const char *const qup4_se4_01_groups[] = { 1106 "gpio161", "gpio162", 1107 }; 1108 1109 static const char *const qup4_se4_23_groups[] = { 1110 "gpio161", "gpio162", 1111 }; 1112 1113 static const char *const qup4_se4_l3_groups[] = { 1114 "gpio88", 1115 }; 1116 1117 static const char *const qup5_se0_groups[] = { 1118 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 1119 "gpio16", "gpio17", "gpio85", "gpio89", "gpio100", "gpio214", "gpio215", 1120 }; 1121 1122 static const char *const rng_rosc_groups[] = { 1123 "gpio64", "gpio65", "gpio66", "gpio84", 1124 }; 1125 1126 static const char *const sd_write_protect_groups[] = { 1127 "gpio85", 1128 }; 1129 1130 static const char *const sdc2_clk_groups[] = { 1131 "gpio56", 1132 }; 1133 1134 static const char *const sdc2_cmd_groups[] = { 1135 "gpio57", 1136 }; 1137 1138 static const char *const sdc2_data_groups[] = { 1139 "gpio74", "gpio75", "gpio76", "gpio77", 1140 }; 1141 1142 static const char *const sdc2_rclk_groups[] = { 1143 "gpio54", 1144 }; 1145 1146 static const char *const sdc4_clk_groups[] = { 1147 "gpio83", 1148 }; 1149 1150 static const char *const sdc4_cmd_groups[] = { 1151 "gpio148", 1152 }; 1153 1154 static const char *const sdc4_data_groups[] = { 1155 "gpio80", "gpio81", "gpio82", "gpio147", 1156 }; 1157 1158 static const char *const sys_throttle_groups[] = { 1159 "gpio99", 1160 }; 1161 1162 static const char *const tb_trig_sdc_groups[] = { 1163 "gpio88", "gpio146", 1164 }; 1165 1166 static const char *const tmess_rng_groups[] = { 1167 "gpio64", "gpio65", "gpio66", "gpio84", 1168 }; 1169 1170 static const char *const tsense_clm_groups[] = { 1171 "gpio87", "gpio97", "gpio98", "gpio99", "gpio105", "gpio106", 1172 "gpio159", 1173 }; 1174 1175 static const char *const tsense_pwm_groups[] = { 1176 "gpio35", "gpio38", "gpio58", "gpio87", "gpio97", "gpio98", "gpio99", 1177 }; 1178 1179 static const char *const uim0_groups[] = { 1180 "gpio126", "gpio127", "gpio128", "gpio129", 1181 }; 1182 1183 static const char *const uim1_groups[] = { 1184 "gpio36", "gpio37", "gpio39", "gpio54", "gpio55", "gpio56", "gpio70", 1185 "gpio71", "gpio72", "gpio130", "gpio131", "gpio132", "gpio133", 1186 }; 1187 1188 static const char *const usb0_hs_groups[] = { 1189 "gpio79", 1190 }; 1191 1192 static const char *const usb_phy_groups[] = { 1193 "gpio59", "gpio60", 1194 }; 1195 1196 static const char *const vfr_groups[] = { 1197 "gpio146", "gpio151", 1198 }; 1199 1200 static const char *const vsense_trigger_mirnat_groups[] = { 1201 "gpio16", 1202 }; 1203 1204 static const char *const wcn_sw_groups[] = { 1205 "gpio18", "gpio19", "gpio155", "gpio156", 1206 }; 1207 1208 static const struct pinfunction maili_functions[] = { 1209 MSM_GPIO_PIN_FUNCTION(gpio), 1210 MSM_PIN_FUNCTION(aoss_cti), 1211 MSM_PIN_FUNCTION(atest_char), 1212 MSM_PIN_FUNCTION(atest_usb), 1213 MSM_PIN_FUNCTION(audio_ext_mclk), 1214 MSM_PIN_FUNCTION(audio_ref_clk), 1215 MSM_PIN_FUNCTION(cam_mclk), 1216 MSM_PIN_FUNCTION(cci_async_in), 1217 MSM_PIN_FUNCTION(cci_i2c0), 1218 MSM_PIN_FUNCTION(cci_i2c1), 1219 MSM_PIN_FUNCTION(cci_i2c2), 1220 MSM_PIN_FUNCTION(cci_i2c3), 1221 MSM_PIN_FUNCTION(cci_timer), 1222 MSM_PIN_FUNCTION(coex_espmi), 1223 MSM_PIN_FUNCTION(coex_uart1_rx), 1224 MSM_PIN_FUNCTION(coex_uart1_tx), 1225 MSM_PIN_FUNCTION(dbg_out_clk), 1226 MSM_PIN_FUNCTION(ddr_bist), 1227 MSM_PIN_FUNCTION(ddr_pxi), 1228 MSM_PIN_FUNCTION(dp_hot), 1229 MSM_PIN_FUNCTION(egpio), 1230 MSM_PIN_FUNCTION(gcc_gp), 1231 MSM_PIN_FUNCTION(gnss_adc), 1232 MSM_PIN_FUNCTION(host2wlan_sol), 1233 MSM_PIN_FUNCTION(host_rst), 1234 MSM_PIN_FUNCTION(i2chub0_se0), 1235 MSM_PIN_FUNCTION(i2chub0_se1), 1236 MSM_PIN_FUNCTION(i2chub0_se2), 1237 MSM_PIN_FUNCTION(i2chub0_se3), 1238 MSM_PIN_FUNCTION(i2chub0_se4), 1239 MSM_PIN_FUNCTION(i2s0), 1240 MSM_PIN_FUNCTION(i2s1), 1241 MSM_PIN_FUNCTION(ibi_i3c), 1242 MSM_PIN_FUNCTION(ibi_i3c_qup5_se0), 1243 MSM_PIN_FUNCTION(jitter_bist), 1244 MSM_PIN_FUNCTION(mdp_esync0), 1245 MSM_PIN_FUNCTION(mdp_esync1), 1246 MSM_PIN_FUNCTION(mdp_esync2), 1247 MSM_PIN_FUNCTION(mdp_vsync), 1248 MSM_PIN_FUNCTION(mdp_vsync_e), 1249 MSM_PIN_FUNCTION(mdp_vsync_p), 1250 MSM_PIN_FUNCTION(mdp_vsync0_out), 1251 MSM_PIN_FUNCTION(mdp_vsync1_out), 1252 MSM_PIN_FUNCTION(mdp_vsync2_out), 1253 MSM_PIN_FUNCTION(mdp_vsync3_out), 1254 MSM_PIN_FUNCTION(mdp_vsync5_out), 1255 MSM_PIN_FUNCTION(modem_pps_in), 1256 MSM_PIN_FUNCTION(modem_pps_out), 1257 MSM_PIN_FUNCTION(nav_gpio), 1258 MSM_PIN_FUNCTION(nav_gpio0), 1259 MSM_PIN_FUNCTION(nav_gpio3), 1260 MSM_PIN_FUNCTION(nav_rffe), 1261 MSM_PIN_FUNCTION(pcie0_clk_req_n), 1262 MSM_PIN_FUNCTION(pcie1_clk_req_n), 1263 MSM_PIN_FUNCTION(pcie1_rst_n), 1264 MSM_PIN_FUNCTION(phase_flag), 1265 MSM_PIN_FUNCTION(pll_bist_sync), 1266 MSM_PIN_FUNCTION(pll_clk_aux), 1267 MSM_PIN_FUNCTION(qdss_cti), 1268 MSM_PIN_FUNCTION(qlink), 1269 MSM_PIN_FUNCTION(qspi), 1270 MSM_PIN_FUNCTION(qspi_clk), 1271 MSM_PIN_FUNCTION(qspi_cs), 1272 MSM_PIN_FUNCTION(qup1_se0), 1273 MSM_PIN_FUNCTION(qup1_se1), 1274 MSM_PIN_FUNCTION(qup1_se2), 1275 MSM_PIN_FUNCTION(qup1_se3), 1276 MSM_PIN_FUNCTION(qup1_se4), 1277 MSM_PIN_FUNCTION(qup1_se5), 1278 MSM_PIN_FUNCTION(qup1_se6), 1279 MSM_PIN_FUNCTION(qup1_se7), 1280 MSM_PIN_FUNCTION(qup2_se0), 1281 MSM_PIN_FUNCTION(qup2_se1), 1282 MSM_PIN_FUNCTION(qup2_se2), 1283 MSM_PIN_FUNCTION(qup2_se3), 1284 MSM_PIN_FUNCTION(qup2_se4_01), 1285 MSM_PIN_FUNCTION(qup2_se4_23), 1286 MSM_PIN_FUNCTION(qup3_se0), 1287 MSM_PIN_FUNCTION(qup3_se1), 1288 MSM_PIN_FUNCTION(qup3_se2), 1289 MSM_PIN_FUNCTION(qup3_se3), 1290 MSM_PIN_FUNCTION(qup3_se4), 1291 MSM_PIN_FUNCTION(qup3_se5), 1292 MSM_PIN_FUNCTION(qup4_se0), 1293 MSM_PIN_FUNCTION(qup4_se1), 1294 MSM_PIN_FUNCTION(qup4_se2), 1295 MSM_PIN_FUNCTION(qup4_se3_01), 1296 MSM_PIN_FUNCTION(qup4_se3_23), 1297 MSM_PIN_FUNCTION(qup4_se3_l3), 1298 MSM_PIN_FUNCTION(qup4_se4_01), 1299 MSM_PIN_FUNCTION(qup4_se4_23), 1300 MSM_PIN_FUNCTION(qup4_se4_l3), 1301 MSM_PIN_FUNCTION(qup5_se0), 1302 MSM_PIN_FUNCTION(rng_rosc), 1303 MSM_PIN_FUNCTION(sd_write_protect), 1304 MSM_PIN_FUNCTION(sdc2_clk), 1305 MSM_PIN_FUNCTION(sdc2_cmd), 1306 MSM_PIN_FUNCTION(sdc2_data), 1307 MSM_PIN_FUNCTION(sdc2_rclk), 1308 MSM_PIN_FUNCTION(sdc4_clk), 1309 MSM_PIN_FUNCTION(sdc4_cmd), 1310 MSM_PIN_FUNCTION(sdc4_data), 1311 MSM_PIN_FUNCTION(sys_throttle), 1312 MSM_PIN_FUNCTION(tb_trig_sdc), 1313 MSM_PIN_FUNCTION(tmess_rng), 1314 MSM_PIN_FUNCTION(tsense_clm), 1315 MSM_PIN_FUNCTION(tsense_pwm), 1316 MSM_PIN_FUNCTION(uim0), 1317 MSM_PIN_FUNCTION(uim1), 1318 MSM_PIN_FUNCTION(usb0_hs), 1319 MSM_PIN_FUNCTION(usb_phy), 1320 MSM_PIN_FUNCTION(vfr), 1321 MSM_PIN_FUNCTION(vsense_trigger_mirnat), 1322 MSM_PIN_FUNCTION(wcn_sw), 1323 }; 1324 1325 static const struct msm_pingroup maili_groups[] = { 1326 [0] = PINGROUP(0, qup2_se0, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1327 [1] = PINGROUP(1, qup2_se0, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1328 [2] = PINGROUP(2, qup2_se0, _, _, _, _, _, _, _, _, _, egpio), 1329 [3] = PINGROUP(3, qup2_se0, _, _, _, _, _, _, _, _, _, egpio), 1330 [4] = PINGROUP(4, qup2_se1, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1331 [5] = PINGROUP(5, qup2_se1, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1332 [6] = PINGROUP(6, qup2_se1, _, _, _, _, _, _, _, _, _, egpio), 1333 [7] = PINGROUP(7, qup2_se1, _, _, _, _, _, _, _, _, _, egpio), 1334 [8] = PINGROUP(8, qup3_se1, ibi_i3c, qup5_se0, ibi_i3c_qup5_se0, _, _, _, _, _, _, _), 1335 [9] = PINGROUP(9, qup3_se1, ibi_i3c, qup5_se0, ibi_i3c_qup5_se0, _, _, _, _, _, _, _), 1336 [10] = PINGROUP(10, qup3_se1, qup5_se0, _, _, _, _, _, _, _, _, _), 1337 [11] = PINGROUP(11, qup3_se1, qup5_se0, _, _, _, _, _, _, _, _, _), 1338 [12] = PINGROUP(12, qup3_se2, ibi_i3c, qup3_se1, qup5_se0, _, _, _, _, _, _, _), 1339 [13] = PINGROUP(13, qup3_se2, ibi_i3c, qup3_se1, qup5_se0, _, _, _, _, _, _, _), 1340 [14] = PINGROUP(14, qup3_se2, qup5_se0, _, _, _, _, _, _, _, _, _), 1341 [15] = PINGROUP(15, qup3_se2, cci_async_in, qup3_se1, _, _, _, _, _, _, _, _), 1342 [16] = PINGROUP(16, qup3_se3, qup5_se0, _, vsense_trigger_mirnat, _, _, _, _, _, _, _), 1343 [17] = PINGROUP(17, qup3_se3, qup5_se0, gcc_gp, _, _, _, _, _, _, _, _), 1344 [18] = PINGROUP(18, wcn_sw, qup3_se3, _, gnss_adc, _, _, _, _, _, _, _), 1345 [19] = PINGROUP(19, wcn_sw, qup3_se3, _, gnss_adc, _, _, _, _, _, _, _), 1346 [20] = PINGROUP(20, qup3_se4, _, gnss_adc, _, _, _, _, _, _, _, _), 1347 [21] = PINGROUP(21, qup3_se4, _, _, _, _, _, _, _, _, _, _), 1348 [22] = PINGROUP(22, qup3_se4, _, _, _, _, _, _, _, _, _, _), 1349 [23] = PINGROUP(23, qup3_se4, _, gnss_adc, _, _, _, _, _, _, _, _), 1350 [24] = PINGROUP(24, qup3_se5, ibi_i3c, _, _, _, _, _, _, _, _, _), 1351 [25] = PINGROUP(25, qup3_se5, ibi_i3c, _, _, _, _, _, _, _, _, _), 1352 [26] = PINGROUP(26, qup3_se5, _, _, _, _, _, _, _, _, _, _), 1353 [27] = PINGROUP(27, qup3_se5, _, _, _, _, _, _, _, _, _, _), 1354 [28] = PINGROUP(28, qup4_se1, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1355 [29] = PINGROUP(29, qup4_se1, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1356 [30] = PINGROUP(30, qup4_se1, _, _, _, _, _, _, _, _, _, egpio), 1357 [31] = PINGROUP(31, qup4_se1, _, _, _, _, _, _, _, _, _, egpio), 1358 [32] = PINGROUP(32, qup4_se2, ibi_i3c, _, _, _, _, _, _, _, _, _), 1359 [33] = PINGROUP(33, qup4_se2, ibi_i3c, _, _, _, _, _, _, _, _, _), 1360 [34] = PINGROUP(34, qup4_se2, _, _, _, _, _, _, _, _, _, _), 1361 [35] = PINGROUP(35, qup4_se2, tsense_pwm, _, _, _, _, _, _, _, _, _), 1362 [36] = PINGROUP(36, qup1_se4, uim1, ibi_i3c, _, _, _, _, _, _, _, _), 1363 [37] = PINGROUP(37, qup1_se4, uim1, ibi_i3c, _, _, _, _, _, _, _, _), 1364 [38] = PINGROUP(38, qup1_se4, tsense_pwm, _, _, _, _, _, _, _, _, _), 1365 [39] = PINGROUP(39, qup1_se4, uim1, _, _, _, _, _, _, _, _, _), 1366 [40] = PINGROUP(40, qup1_se2, ddr_bist, phase_flag, _, _, _, _, _, _, _, _), 1367 [41] = PINGROUP(41, qup1_se2, ddr_bist, phase_flag, _, _, _, _, _, _, _, _), 1368 [42] = PINGROUP(42, qup1_se2, _, _, _, _, _, _, _, _, _, _), 1369 [43] = PINGROUP(43, qup1_se2, _, _, _, _, _, _, _, _, _, _), 1370 [44] = PINGROUP(44, qup1_se3, ddr_bist, phase_flag, _, _, _, _, _, _, _, _), 1371 [45] = PINGROUP(45, qup1_se3, ddr_bist, phase_flag, _, _, _, _, _, _, _, _), 1372 [46] = PINGROUP(46, qup1_se3, i2s0, phase_flag, _, _, _, _, _, _, _, _), 1373 [47] = PINGROUP(47, qup1_se3, dp_hot, phase_flag, _, _, _, _, _, _, _, _), 1374 [48] = PINGROUP(48, qup4_se0, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1375 [49] = PINGROUP(49, qup4_se0, ibi_i3c, _, _, _, _, _, _, _, _, egpio), 1376 [50] = PINGROUP(50, qup4_se0, _, _, _, _, _, _, _, _, _, egpio), 1377 [51] = PINGROUP(51, qup4_se0, _, _, _, _, _, _, _, _, _, egpio), 1378 [52] = PINGROUP(52, qup1_se5, _, _, _, _, _, _, _, _, _, _), 1379 [53] = PINGROUP(53, qup1_se5, _, _, _, _, _, _, _, _, _, _), 1380 [54] = PINGROUP(54, qup1_se5, uim1, sdc2_rclk, _, _, _, _, _, _, _, _), 1381 [55] = PINGROUP(55, qup1_se5, uim1, _, _, _, _, _, _, _, _, _), 1382 [56] = PINGROUP(56, qup1_se6, uim1, sdc2_clk, _, _, _, _, _, _, _, _), 1383 [57] = PINGROUP(57, qup1_se6, sdc2_cmd, _, _, _, _, _, _, _, _, _), 1384 [58] = PINGROUP(58, qup1_se6, tsense_pwm, _, _, _, _, _, _, _, _, _), 1385 [59] = PINGROUP(59, qup1_se6, usb_phy, _, _, _, _, _, _, _, _, _), 1386 [60] = PINGROUP(60, qup1_se7, usb_phy, ibi_i3c, _, _, _, _, _, _, _, _), 1387 [61] = PINGROUP(61, qup1_se7, ibi_i3c, _, _, _, _, _, _, _, _, _), 1388 [62] = PINGROUP(62, qup1_se7, _, _, _, _, _, _, _, _, _, _), 1389 [63] = PINGROUP(63, qup1_se7, _, _, _, _, _, _, _, _, _, _), 1390 [64] = PINGROUP(64, qup3_se0, rng_rosc, tmess_rng, ibi_i3c, _, _, _, _, _, _, _), 1391 [65] = PINGROUP(65, qup3_se0, rng_rosc, tmess_rng, ibi_i3c, _, _, _, _, _, _, _), 1392 [66] = PINGROUP(66, i2chub0_se0, qup3_se0, rng_rosc, tmess_rng, _, ddr_pxi, _, _, _, _, _), 1393 [67] = PINGROUP(67, i2chub0_se0, qup3_se0, _, ddr_pxi, _, _, _, _, _, _, _), 1394 [68] = PINGROUP(68, i2chub0_se2, _, ddr_pxi, _, _, _, _, _, _, _, _), 1395 [69] = PINGROUP(69, i2chub0_se2, _, ddr_pxi, _, _, _, _, _, _, _, _), 1396 [70] = PINGROUP(70, i2chub0_se3, uim1, _, _, ddr_pxi, _, _, _, _, _, _), 1397 [71] = PINGROUP(71, i2chub0_se3, uim1, _, _, ddr_pxi, _, _, _, _, _, _), 1398 [72] = PINGROUP(72, i2chub0_se4, uim1, qdss_cti, _, ddr_pxi, _, _, _, _, _, _), 1399 [73] = PINGROUP(73, i2chub0_se4, qdss_cti, jitter_bist, ddr_pxi, _, _, _, _, _, _, _), 1400 [74] = PINGROUP(74, qup1_se1, aoss_cti, sdc2_data, _, _, _, _, _, _, _, _), 1401 [75] = PINGROUP(75, qup1_se1, aoss_cti, sdc2_data, _, _, _, _, _, _, _, _), 1402 [76] = PINGROUP(76, qup1_se1, aoss_cti, sdc2_data, _, _, _, _, _, _, _, _), 1403 [77] = PINGROUP(77, qup1_se1, aoss_cti, sdc2_data, _, _, _, _, _, _, _, _), 1404 [78] = PINGROUP(78, i2chub0_se1, _, atest_usb, _, _, _, _, _, _, _, _), 1405 [79] = PINGROUP(79, i2chub0_se1, usb0_hs, _, atest_usb, _, _, _, _, _, _, _), 1406 [80] = PINGROUP(80, sdc4_data, qspi, _, _, _, _, _, _, _, _, _), 1407 [81] = PINGROUP(81, sdc4_data, qspi, _, _, _, _, _, _, _, _, _), 1408 [82] = PINGROUP(82, sdc4_data, qdss_cti, qspi, qup3_se0, dbg_out_clk, _, _, _, _, _, _), 1409 [83] = PINGROUP(83, sdc4_clk, qdss_cti, qspi_clk, qup3_se0, _, _, _, _, _, _, _), 1410 [84] = PINGROUP(84, qup4_se3_01, qup4_se3_23, rng_rosc, tmess_rng, i2s0, _, _, _, _, _, _), 1411 [85] = PINGROUP(85, sd_write_protect, qup5_se0, ibi_i3c, _, _, _, _, _, _, _, _), 1412 [86] = PINGROUP(86, mdp_vsync, mdp_vsync0_out, mdp_vsync1_out, mdp_esync1, gcc_gp, 1413 _, _, _, _, _, _), 1414 [87] = PINGROUP(87, mdp_vsync, mdp_vsync2_out, mdp_vsync3_out, mdp_vsync5_out, mdp_esync2, 1415 gcc_gp, tsense_clm, tsense_pwm, _, _, _), 1416 [88] = PINGROUP(88, mdp_esync0, mdp_vsync, qup4_se4_l3, tb_trig_sdc, _, _, _, _, _, _, _), 1417 [89] = PINGROUP(89, qup5_se0, ibi_i3c, _, _, _, _, _, _, _, _, _), 1418 [90] = PINGROUP(90, cam_mclk, _, _, _, _, _, _, _, _, _, _), 1419 [91] = PINGROUP(91, cam_mclk, _, _, _, _, _, _, _, _, _, _), 1420 [92] = PINGROUP(92, cam_mclk, _, _, _, _, _, _, _, _, _, _), 1421 [93] = PINGROUP(93, cam_mclk, _, _, _, _, _, _, _, _, _, _), 1422 [94] = PINGROUP(94, cam_mclk, pll_clk_aux, _, _, _, _, _, _, _, _, _), 1423 [95] = PINGROUP(95, cam_mclk, _, _, _, _, _, _, _, _, _, _), 1424 [96] = PINGROUP(96, _, _, _, _, _, _, _, _, _, _, _), 1425 [97] = PINGROUP(97, mdp_esync2, qup2_se3, mdp_vsync, gcc_gp, tsense_clm, tsense_pwm, 1426 _, _, _, _, _), 1427 [98] = PINGROUP(98, mdp_vsync_e, qup4_se3_l3, mdp_vsync_p, tsense_clm, tsense_pwm, 1428 _, _, _, _, _, _), 1429 [99] = PINGROUP(99, sys_throttle, tsense_clm, tsense_pwm, _, _, _, _, _, _, _, _), 1430 [100] = PINGROUP(100, mdp_esync1, mdp_esync0, qup5_se0, _, _, _, _, _, _, _, _), 1431 [101] = PINGROUP(101, _, _, _, _, _, _, _, _, _, _, _), 1432 [102] = PINGROUP(102, atest_usb, _, _, _, _, _, _, _, _, _, _), 1433 [103] = PINGROUP(103, pcie0_clk_req_n, atest_usb, _, _, _, _, _, _, _, _, _), 1434 [104] = PINGROUP(104, pll_bist_sync, atest_usb, _, _, _, _, _, _, _, _, _), 1435 [105] = PINGROUP(105, cci_timer, tsense_clm, _, _, _, _, _, _, _, _, _), 1436 [106] = PINGROUP(106, host_rst, cci_timer, tsense_clm, _, _, _, _, _, _, _, _), 1437 [107] = PINGROUP(107, cci_i2c3, cci_timer, _, _, _, _, _, _, _, _, _), 1438 [108] = PINGROUP(108, _, _, _, _, _, _, _, _, _, _, _), 1439 [109] = PINGROUP(109, cci_i2c0, cci_async_in, _, _, _, _, _, _, _, _, _), 1440 [110] = PINGROUP(110, cci_i2c0, cci_async_in, _, _, _, _, _, _, _, _, _), 1441 [111] = PINGROUP(111, cci_i2c1, _, _, _, _, _, _, _, _, _, _), 1442 [112] = PINGROUP(112, cci_i2c1, _, _, _, _, _, _, _, _, _, _), 1443 [113] = PINGROUP(113, cci_i2c2, _, _, _, _, _, _, _, _, _, _), 1444 [114] = PINGROUP(114, cci_i2c2, _, _, _, _, _, _, _, _, _, _), 1445 [115] = PINGROUP(115, _, _, _, _, _, _, _, _, _, _, _), 1446 [116] = PINGROUP(116, _, _, _, _, _, _, _, _, _, _, _), 1447 [117] = PINGROUP(117, qup2_se2, ibi_i3c, _, _, _, _, _, _, _, _, _), 1448 [118] = PINGROUP(118, qup2_se2, ibi_i3c, _, _, _, _, _, _, _, _, _), 1449 [119] = PINGROUP(119, qup2_se2, _, _, _, _, _, _, _, _, _, _), 1450 [120] = PINGROUP(120, qup2_se2, audio_ext_mclk, audio_ref_clk, _, _, _, _, _, _, _, _), 1451 [121] = PINGROUP(121, audio_ext_mclk, qup4_se3_01, qup4_se3_23, _, _, _, _, _, _, _, _), 1452 [122] = PINGROUP(122, qup2_se3, _, _, _, _, _, _, _, _, _, _), 1453 [123] = PINGROUP(123, qup2_se3, _, _, _, _, _, _, _, _, _, _), 1454 [124] = PINGROUP(124, qup2_se3, _, _, _, _, _, _, _, _, _, _), 1455 [125] = PINGROUP(125, qup2_se3, _, _, _, _, _, _, _, _, _, _), 1456 [126] = PINGROUP(126, uim0, phase_flag, _, atest_char, _, _, _, _, _, _, _), 1457 [127] = PINGROUP(127, uim0, phase_flag, _, atest_char, _, _, _, _, _, _, _), 1458 [128] = PINGROUP(128, uim0, phase_flag, _, atest_char, _, _, _, _, _, _, _), 1459 [129] = PINGROUP(129, uim0, phase_flag, _, atest_char, _, _, _, _, _, _, _), 1460 [130] = PINGROUP(130, uim1, qup1_se2, _, phase_flag, _, _, _, _, _, _, _), 1461 [131] = PINGROUP(131, uim1, qup1_se2, _, phase_flag, _, _, _, _, _, _, _), 1462 [132] = PINGROUP(132, uim1, qup1_se2, _, phase_flag, _, _, _, _, _, _, _), 1463 [133] = PINGROUP(133, uim1, phase_flag, _, atest_char, _, _, _, _, _, _, _), 1464 [134] = PINGROUP(134, _, _, nav_rffe, _, _, _, _, _, _, _, _), 1465 [135] = PINGROUP(135, _, _, nav_rffe, _, _, _, _, _, _, _, _), 1466 [136] = PINGROUP(136, _, _, _, _, _, _, _, _, _, _, _), 1467 [137] = PINGROUP(137, _, _, _, _, _, _, _, _, _, _, _), 1468 [138] = PINGROUP(138, _, _, nav_rffe, _, _, _, _, _, _, _, _), 1469 [139] = PINGROUP(139, _, _, nav_rffe, _, _, _, _, _, _, _, _), 1470 [140] = PINGROUP(140, _, _, _, _, _, _, _, _, _, _, _), 1471 [141] = PINGROUP(141, _, _, _, _, _, _, _, _, _, _, _), 1472 [142] = PINGROUP(142, _, _, _, _, _, _, _, _, _, _, _), 1473 [143] = PINGROUP(143, _, _, _, _, _, _, _, _, _, _, _), 1474 [144] = PINGROUP(144, coex_uart1_rx, coex_espmi, _, _, _, _, _, _, _, _, _), 1475 [145] = PINGROUP(145, coex_uart1_tx, coex_espmi, _, _, _, _, _, _, _, _, _), 1476 [146] = PINGROUP(146, _, vfr, nav_gpio, tb_trig_sdc, qspi_cs, _, _, _, _, _, _), 1477 [147] = PINGROUP(147, _, nav_gpio, sdc4_data, qspi, _, _, _, _, _, _, _), 1478 [148] = PINGROUP(148, nav_gpio, _, sdc4_cmd, qspi_cs, _, _, _, _, _, _, _), 1479 [149] = PINGROUP(149, _, _, _, _, _, _, _, _, _, _, _), 1480 [150] = PINGROUP(150, nav_gpio0, nav_gpio3, _, _, _, _, _, _, _, _, _), 1481 [151] = PINGROUP(151, nav_gpio, vfr, modem_pps_in, modem_pps_out, _, _, _, _, _, _, _), 1482 [152] = PINGROUP(152, qlink, _, _, _, _, _, _, _, _, _, _), 1483 [153] = PINGROUP(153, qlink, _, _, _, _, _, _, _, _, _, _), 1484 [154] = PINGROUP(154, qlink, _, _, _, _, _, _, _, _, _, _), 1485 [155] = PINGROUP(155, wcn_sw, gcc_gp, _, _, _, _, _, _, _, _, _), 1486 [156] = PINGROUP(156, wcn_sw, gcc_gp, _, _, _, _, _, _, _, _, _), 1487 [157] = PINGROUP(157, _, _, _, _, _, _, _, _, _, _, _), 1488 [158] = PINGROUP(158, _, _, _, _, _, _, _, _, _, _, _), 1489 [159] = PINGROUP(159, cci_timer, tsense_clm, _, _, _, _, _, _, _, _, _), 1490 [160] = PINGROUP(160, cci_timer, cci_i2c3, _, _, _, _, _, _, _, _, _), 1491 [161] = PINGROUP(161, qup4_se4_01, qup4_se4_23, i2s0, phase_flag, _, _, _, _, _, _, _), 1492 [162] = PINGROUP(162, qup4_se4_01, qup4_se4_23, i2s0, phase_flag, _, _, _, _, _, _, _), 1493 [163] = PINGROUP(163, _, _, _, _, _, _, _, _, _, _, egpio), 1494 [164] = PINGROUP(164, _, _, _, _, _, _, _, _, _, _, egpio), 1495 [165] = PINGROUP(165, _, _, _, _, _, _, _, _, _, _, egpio), 1496 [166] = PINGROUP(166, _, _, _, _, _, _, _, _, _, _, egpio), 1497 [167] = PINGROUP(167, _, _, _, _, _, _, _, _, _, _, egpio), 1498 [168] = PINGROUP(168, _, _, _, _, _, _, _, _, _, _, egpio), 1499 [169] = PINGROUP(169, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1500 [170] = PINGROUP(170, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1501 [171] = PINGROUP(171, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1502 [172] = PINGROUP(172, _, _, _, _, _, _, _, _, _, _, egpio), 1503 [173] = PINGROUP(173, _, _, _, _, _, _, _, _, _, _, egpio), 1504 [174] = PINGROUP(174, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1505 [175] = PINGROUP(175, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1506 [176] = PINGROUP(176, _, _, _, _, _, _, _, _, _, _, egpio), 1507 [177] = PINGROUP(177, _, _, _, _, _, _, _, _, _, _, egpio), 1508 [178] = PINGROUP(178, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1509 [179] = PINGROUP(179, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1510 [180] = PINGROUP(180, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1511 [181] = PINGROUP(181, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1512 [182] = PINGROUP(182, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1513 [183] = PINGROUP(183, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1514 [184] = PINGROUP(184, _, _, _, _, _, _, _, _, _, _, egpio), 1515 [185] = PINGROUP(185, _, _, _, _, _, _, _, _, _, _, egpio), 1516 [186] = PINGROUP(186, _, _, _, _, _, _, _, _, _, _, egpio), 1517 [187] = PINGROUP(187, _, _, _, _, _, _, _, _, _, _, egpio), 1518 [188] = PINGROUP(188, qup1_se1, _, _, _, _, _, _, _, _, _, egpio), 1519 [189] = PINGROUP(189, qup1_se1, _, _, _, _, _, _, _, _, _, egpio), 1520 [190] = PINGROUP(190, _, _, _, _, _, _, _, _, _, _, egpio), 1521 [191] = PINGROUP(191, _, _, _, _, _, _, _, _, _, _, egpio), 1522 [192] = PINGROUP(192, qup1_se1, _, _, _, _, _, _, _, _, _, egpio), 1523 [193] = PINGROUP(193, qup1_se1, _, _, _, _, _, _, _, _, _, egpio), 1524 [194] = PINGROUP(194, _, _, _, _, _, _, _, _, _, _, egpio), 1525 [195] = PINGROUP(195, _, _, _, _, _, _, _, _, _, _, egpio), 1526 [196] = PINGROUP(196, _, _, _, _, _, _, _, _, _, _, egpio), 1527 [197] = PINGROUP(197, _, _, _, _, _, _, _, _, _, _, egpio), 1528 [198] = PINGROUP(198, _, _, _, _, _, _, _, _, _, _, egpio), 1529 [199] = PINGROUP(199, _, _, _, _, _, _, _, _, _, _, egpio), 1530 [200] = PINGROUP(200, _, _, _, _, _, _, _, _, _, _, egpio), 1531 [201] = PINGROUP(201, _, _, _, _, _, _, _, _, _, _, egpio), 1532 [202] = PINGROUP(202, _, _, _, _, _, _, _, _, _, _, egpio), 1533 [203] = PINGROUP(203, _, _, _, _, _, _, _, _, _, _, egpio), 1534 [204] = PINGROUP(204, host2wlan_sol, _, _, _, _, _, _, _, _, _, egpio), 1535 [205] = PINGROUP(205, phase_flag, _, _, _, _, _, _, _, _, _, egpio), 1536 [206] = PINGROUP(206, _, _, _, _, _, _, _, _, _, _, egpio), 1537 [207] = PINGROUP(207, _, _, _, _, _, _, _, _, _, _, egpio), 1538 [208] = PINGROUP(208, qup2_se4_01, qup2_se4_23, _, _, _, _, _, _, _, _, egpio), 1539 [209] = PINGROUP(209, qup2_se4_01, qup2_se4_23, _, _, _, _, _, _, _, _, egpio), 1540 [210] = PINGROUP(210, _, _, _, _, _, _, _, _, _, _, _), 1541 [211] = PINGROUP(211, _, _, _, _, _, _, _, _, _, _, _), 1542 [212] = PINGROUP(212, _, _, _, _, _, _, _, _, _, _, egpio), 1543 [213] = PINGROUP(213, _, _, _, _, _, _, _, _, _, _, egpio), 1544 [214] = PINGROUP(214, qup5_se0, _, _, _, _, _, _, _, _, _, egpio), 1545 [215] = PINGROUP(215, qup5_se0, _, _, _, _, _, _, _, _, _, egpio), 1546 [216] = PINGROUP(216, _, _, _, _, _, _, _, _, _, _, egpio), 1547 [217] = PINGROUP(217, _, _, _, _, _, _, _, _, _, _, egpio), 1548 [218] = PINGROUP(218, _, _, _, _, _, _, _, _, _, _, egpio), 1549 [219] = PINGROUP(219, _, _, _, _, _, _, _, _, _, _, _), 1550 [220] = PINGROUP(220, pcie1_rst_n, _, _, _, _, _, _, _, _, _, _), 1551 [221] = PINGROUP(221, pcie1_clk_req_n, _, _, _, _, _, _, _, _, _, _), 1552 [222] = PINGROUP(222, qup1_se0, i2s1, qdss_cti, phase_flag, _, _, _, _, _, _, _), 1553 [223] = PINGROUP(223, qup1_se0, i2s1, qdss_cti, phase_flag, _, _, _, _, _, _, _), 1554 [224] = PINGROUP(224, qup1_se0, i2s1, qdss_cti, phase_flag, _, _, _, _, _, _, _), 1555 [225] = PINGROUP(225, qup1_se0, i2s1, qdss_cti, phase_flag, _, _, _, _, _, _, _), 1556 [226] = UFS_RESET(ufs_reset, 0xf1004, 0xf2000), 1557 [227] = SDC_QDSD_PINGROUP(sdc2_clk, 0xe6000, 14, 6), 1558 [228] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xe6000, 11, 3), 1559 [229] = SDC_QDSD_PINGROUP(sdc2_data, 0xe6000, 9, 0), 1560 }; 1561 1562 static const struct msm_gpio_wakeirq_map maili_pdc_map[] = { 1563 { 0, 111 }, { 3, 119 }, { 4, 112 }, { 7, 113 }, { 8, 114 }, { 11, 115 }, 1564 { 12, 121 }, { 15, 137 }, { 16, 122 }, { 17, 147 }, { 18, 149 }, { 19, 118 }, 1565 { 23, 123 }, { 24, 124 }, { 27, 125 }, { 28, 131 }, { 31, 132 }, { 32, 133 }, 1566 { 35, 107 }, { 36, 134 }, { 39, 135 }, { 43, 136 }, { 47, 160 }, { 48, 141 }, 1567 { 51, 120 }, { 55, 110 }, { 57, 142 }, { 58, 143 }, { 59, 144 }, { 60, 145 }, 1568 { 61, 151 }, { 63, 130 }, { 64, 116 }, { 65, 129 }, { 67, 138 }, { 68, 152 }, 1569 { 69, 153 }, { 75, 157 }, { 77, 154 }, { 78, 155 }, { 79, 161 }, { 80, 162 }, 1570 { 81, 163 }, { 82, 164 }, { 83, 171 }, { 84, 140 }, { 85, 165 }, { 86, 166 }, 1571 { 87, 167 }, { 88, 168 }, { 95, 169 }, { 96, 170 }, { 97, 139 }, { 98, 156 }, 1572 { 99, 117 }, { 100, 199 }, { 103, 173 }, { 104, 174 }, { 117, 201 }, { 120, 175 }, 1573 { 123, 176 }, { 125, 177 }, { 129, 159 }, { 133, 106 }, { 144, 178 }, { 146, 179 }, 1574 { 151, 180 }, { 152, 181 }, { 155, 128 }, { 158, 126 }, { 162, 148 }, { 164, 182 }, 1575 { 165, 183 }, { 167, 184 }, { 168, 185 }, { 174, 186 }, { 177, 187 }, { 179, 188 }, 1576 { 183, 189 }, { 184, 190 }, { 185, 191 }, { 186, 158 }, { 188, 150 }, { 202, 108 }, 1577 { 203, 109 }, { 205, 146 }, { 209, 192 }, { 213, 127 }, { 215, 200 }, { 216, 193 }, 1578 { 220, 172 }, { 221, 194 }, { 222, 195 }, { 223, 196 }, { 224, 197 }, { 225, 198 }, 1579 }; 1580 1581 static const struct msm_pinctrl_soc_data maili_tlmm = { 1582 .pins = maili_pins, 1583 .npins = ARRAY_SIZE(maili_pins), 1584 .functions = maili_functions, 1585 .nfunctions = ARRAY_SIZE(maili_functions), 1586 .groups = maili_groups, 1587 .ngroups = ARRAY_SIZE(maili_groups), 1588 .ngpios = 227, 1589 .wakeirq_map = maili_pdc_map, 1590 .nwakeirq_map = ARRAY_SIZE(maili_pdc_map), 1591 .egpio_func = 11, 1592 }; 1593 1594 static const struct of_device_id maili_tlmm_of_match[] = { 1595 { .compatible = "qcom,maili-tlmm", }, 1596 {}, 1597 }; 1598 MODULE_DEVICE_TABLE(of, maili_tlmm_of_match); 1599 1600 static int maili_tlmm_probe(struct platform_device *pdev) 1601 { 1602 return msm_pinctrl_probe(pdev, &maili_tlmm); 1603 } 1604 1605 static struct platform_driver maili_tlmm_driver = { 1606 .driver = { 1607 .name = "maili-tlmm", 1608 .of_match_table = maili_tlmm_of_match, 1609 }, 1610 .probe = maili_tlmm_probe, 1611 }; 1612 1613 static int __init maili_tlmm_init(void) 1614 { 1615 return platform_driver_register(&maili_tlmm_driver); 1616 } 1617 arch_initcall(maili_tlmm_init); 1618 1619 static void __exit maili_tlmm_exit(void) 1620 { 1621 platform_driver_unregister(&maili_tlmm_driver); 1622 } 1623 module_exit(maili_tlmm_exit); 1624 1625 MODULE_DESCRIPTION("Qualcomm Maili TLMM driver"); 1626 MODULE_LICENSE("GPL"); 1627