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