1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. 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_BASE 0x0 13 #define REG_SIZE 0x1000 14 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 15 { \ 16 .grp = PINCTRL_PINGROUP("gpio" #id, \ 17 gpio##id##_pins, \ 18 ARRAY_SIZE(gpio##id##_pins)), \ 19 .funcs = (int[]){ \ 20 msm_mux_gpio, /* gpio mode */ \ 21 msm_mux_##f1, \ 22 msm_mux_##f2, \ 23 msm_mux_##f3, \ 24 msm_mux_##f4, \ 25 msm_mux_##f5, \ 26 msm_mux_##f6, \ 27 msm_mux_##f7, \ 28 msm_mux_##f8, \ 29 msm_mux_##f9 \ 30 }, \ 31 .nfuncs = 10, \ 32 .ctl_reg = REG_BASE + REG_SIZE * id, \ 33 .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \ 34 .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \ 35 .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \ 36 .mux_bit = 2, \ 37 .pull_bit = 0, \ 38 .drv_bit = 6, \ 39 .oe_bit = 9, \ 40 .in_bit = 0, \ 41 .out_bit = 1, \ 42 .intr_enable_bit = 0, \ 43 .intr_status_bit = 0, \ 44 .intr_target_bit = 5, \ 45 .intr_target_kpss_val = 3, \ 46 .intr_raw_status_bit = 4, \ 47 .intr_polarity_bit = 1, \ 48 .intr_detection_bit = 2, \ 49 .intr_detection_width = 2, \ 50 } 51 52 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ 53 { \ 54 .grp = PINCTRL_PINGROUP(#pg_name, \ 55 pg_name##_pins, \ 56 ARRAY_SIZE(pg_name##_pins)), \ 57 .ctl_reg = ctl, \ 58 .io_reg = 0, \ 59 .intr_cfg_reg = 0, \ 60 .intr_status_reg = 0, \ 61 .mux_bit = -1, \ 62 .pull_bit = pull, \ 63 .drv_bit = drv, \ 64 .oe_bit = -1, \ 65 .in_bit = -1, \ 66 .out_bit = -1, \ 67 .intr_enable_bit = -1, \ 68 .intr_status_bit = -1, \ 69 .intr_target_bit = -1, \ 70 .intr_raw_status_bit = -1, \ 71 .intr_polarity_bit = -1, \ 72 .intr_detection_bit = -1, \ 73 .intr_detection_width = -1, \ 74 } 75 static const struct pinctrl_pin_desc msm8996_pins[] = { 76 PINCTRL_PIN(0, "GPIO_0"), 77 PINCTRL_PIN(1, "GPIO_1"), 78 PINCTRL_PIN(2, "GPIO_2"), 79 PINCTRL_PIN(3, "GPIO_3"), 80 PINCTRL_PIN(4, "GPIO_4"), 81 PINCTRL_PIN(5, "GPIO_5"), 82 PINCTRL_PIN(6, "GPIO_6"), 83 PINCTRL_PIN(7, "GPIO_7"), 84 PINCTRL_PIN(8, "GPIO_8"), 85 PINCTRL_PIN(9, "GPIO_9"), 86 PINCTRL_PIN(10, "GPIO_10"), 87 PINCTRL_PIN(11, "GPIO_11"), 88 PINCTRL_PIN(12, "GPIO_12"), 89 PINCTRL_PIN(13, "GPIO_13"), 90 PINCTRL_PIN(14, "GPIO_14"), 91 PINCTRL_PIN(15, "GPIO_15"), 92 PINCTRL_PIN(16, "GPIO_16"), 93 PINCTRL_PIN(17, "GPIO_17"), 94 PINCTRL_PIN(18, "GPIO_18"), 95 PINCTRL_PIN(19, "GPIO_19"), 96 PINCTRL_PIN(20, "GPIO_20"), 97 PINCTRL_PIN(21, "GPIO_21"), 98 PINCTRL_PIN(22, "GPIO_22"), 99 PINCTRL_PIN(23, "GPIO_23"), 100 PINCTRL_PIN(24, "GPIO_24"), 101 PINCTRL_PIN(25, "GPIO_25"), 102 PINCTRL_PIN(26, "GPIO_26"), 103 PINCTRL_PIN(27, "GPIO_27"), 104 PINCTRL_PIN(28, "GPIO_28"), 105 PINCTRL_PIN(29, "GPIO_29"), 106 PINCTRL_PIN(30, "GPIO_30"), 107 PINCTRL_PIN(31, "GPIO_31"), 108 PINCTRL_PIN(32, "GPIO_32"), 109 PINCTRL_PIN(33, "GPIO_33"), 110 PINCTRL_PIN(34, "GPIO_34"), 111 PINCTRL_PIN(35, "GPIO_35"), 112 PINCTRL_PIN(36, "GPIO_36"), 113 PINCTRL_PIN(37, "GPIO_37"), 114 PINCTRL_PIN(38, "GPIO_38"), 115 PINCTRL_PIN(39, "GPIO_39"), 116 PINCTRL_PIN(40, "GPIO_40"), 117 PINCTRL_PIN(41, "GPIO_41"), 118 PINCTRL_PIN(42, "GPIO_42"), 119 PINCTRL_PIN(43, "GPIO_43"), 120 PINCTRL_PIN(44, "GPIO_44"), 121 PINCTRL_PIN(45, "GPIO_45"), 122 PINCTRL_PIN(46, "GPIO_46"), 123 PINCTRL_PIN(47, "GPIO_47"), 124 PINCTRL_PIN(48, "GPIO_48"), 125 PINCTRL_PIN(49, "GPIO_49"), 126 PINCTRL_PIN(50, "GPIO_50"), 127 PINCTRL_PIN(51, "GPIO_51"), 128 PINCTRL_PIN(52, "GPIO_52"), 129 PINCTRL_PIN(53, "GPIO_53"), 130 PINCTRL_PIN(54, "GPIO_54"), 131 PINCTRL_PIN(55, "GPIO_55"), 132 PINCTRL_PIN(56, "GPIO_56"), 133 PINCTRL_PIN(57, "GPIO_57"), 134 PINCTRL_PIN(58, "GPIO_58"), 135 PINCTRL_PIN(59, "GPIO_59"), 136 PINCTRL_PIN(60, "GPIO_60"), 137 PINCTRL_PIN(61, "GPIO_61"), 138 PINCTRL_PIN(62, "GPIO_62"), 139 PINCTRL_PIN(63, "GPIO_63"), 140 PINCTRL_PIN(64, "GPIO_64"), 141 PINCTRL_PIN(65, "GPIO_65"), 142 PINCTRL_PIN(66, "GPIO_66"), 143 PINCTRL_PIN(67, "GPIO_67"), 144 PINCTRL_PIN(68, "GPIO_68"), 145 PINCTRL_PIN(69, "GPIO_69"), 146 PINCTRL_PIN(70, "GPIO_70"), 147 PINCTRL_PIN(71, "GPIO_71"), 148 PINCTRL_PIN(72, "GPIO_72"), 149 PINCTRL_PIN(73, "GPIO_73"), 150 PINCTRL_PIN(74, "GPIO_74"), 151 PINCTRL_PIN(75, "GPIO_75"), 152 PINCTRL_PIN(76, "GPIO_76"), 153 PINCTRL_PIN(77, "GPIO_77"), 154 PINCTRL_PIN(78, "GPIO_78"), 155 PINCTRL_PIN(79, "GPIO_79"), 156 PINCTRL_PIN(80, "GPIO_80"), 157 PINCTRL_PIN(81, "GPIO_81"), 158 PINCTRL_PIN(82, "GPIO_82"), 159 PINCTRL_PIN(83, "GPIO_83"), 160 PINCTRL_PIN(84, "GPIO_84"), 161 PINCTRL_PIN(85, "GPIO_85"), 162 PINCTRL_PIN(86, "GPIO_86"), 163 PINCTRL_PIN(87, "GPIO_87"), 164 PINCTRL_PIN(88, "GPIO_88"), 165 PINCTRL_PIN(89, "GPIO_89"), 166 PINCTRL_PIN(90, "GPIO_90"), 167 PINCTRL_PIN(91, "GPIO_91"), 168 PINCTRL_PIN(92, "GPIO_92"), 169 PINCTRL_PIN(93, "GPIO_93"), 170 PINCTRL_PIN(94, "GPIO_94"), 171 PINCTRL_PIN(95, "GPIO_95"), 172 PINCTRL_PIN(96, "GPIO_96"), 173 PINCTRL_PIN(97, "GPIO_97"), 174 PINCTRL_PIN(98, "GPIO_98"), 175 PINCTRL_PIN(99, "GPIO_99"), 176 PINCTRL_PIN(100, "GPIO_100"), 177 PINCTRL_PIN(101, "GPIO_101"), 178 PINCTRL_PIN(102, "GPIO_102"), 179 PINCTRL_PIN(103, "GPIO_103"), 180 PINCTRL_PIN(104, "GPIO_104"), 181 PINCTRL_PIN(105, "GPIO_105"), 182 PINCTRL_PIN(106, "GPIO_106"), 183 PINCTRL_PIN(107, "GPIO_107"), 184 PINCTRL_PIN(108, "GPIO_108"), 185 PINCTRL_PIN(109, "GPIO_109"), 186 PINCTRL_PIN(110, "GPIO_110"), 187 PINCTRL_PIN(111, "GPIO_111"), 188 PINCTRL_PIN(112, "GPIO_112"), 189 PINCTRL_PIN(113, "GPIO_113"), 190 PINCTRL_PIN(114, "GPIO_114"), 191 PINCTRL_PIN(115, "GPIO_115"), 192 PINCTRL_PIN(116, "GPIO_116"), 193 PINCTRL_PIN(117, "GPIO_117"), 194 PINCTRL_PIN(118, "GPIO_118"), 195 PINCTRL_PIN(119, "GPIO_119"), 196 PINCTRL_PIN(120, "GPIO_120"), 197 PINCTRL_PIN(121, "GPIO_121"), 198 PINCTRL_PIN(122, "GPIO_122"), 199 PINCTRL_PIN(123, "GPIO_123"), 200 PINCTRL_PIN(124, "GPIO_124"), 201 PINCTRL_PIN(125, "GPIO_125"), 202 PINCTRL_PIN(126, "GPIO_126"), 203 PINCTRL_PIN(127, "GPIO_127"), 204 PINCTRL_PIN(128, "GPIO_128"), 205 PINCTRL_PIN(129, "GPIO_129"), 206 PINCTRL_PIN(130, "GPIO_130"), 207 PINCTRL_PIN(131, "GPIO_131"), 208 PINCTRL_PIN(132, "GPIO_132"), 209 PINCTRL_PIN(133, "GPIO_133"), 210 PINCTRL_PIN(134, "GPIO_134"), 211 PINCTRL_PIN(135, "GPIO_135"), 212 PINCTRL_PIN(136, "GPIO_136"), 213 PINCTRL_PIN(137, "GPIO_137"), 214 PINCTRL_PIN(138, "GPIO_138"), 215 PINCTRL_PIN(139, "GPIO_139"), 216 PINCTRL_PIN(140, "GPIO_140"), 217 PINCTRL_PIN(141, "GPIO_141"), 218 PINCTRL_PIN(142, "GPIO_142"), 219 PINCTRL_PIN(143, "GPIO_143"), 220 PINCTRL_PIN(144, "GPIO_144"), 221 PINCTRL_PIN(145, "GPIO_145"), 222 PINCTRL_PIN(146, "GPIO_146"), 223 PINCTRL_PIN(147, "GPIO_147"), 224 PINCTRL_PIN(148, "GPIO_148"), 225 PINCTRL_PIN(149, "GPIO_149"), 226 PINCTRL_PIN(150, "SDC1_CLK"), 227 PINCTRL_PIN(151, "SDC1_CMD"), 228 PINCTRL_PIN(152, "SDC1_DATA"), 229 PINCTRL_PIN(153, "SDC2_CLK"), 230 PINCTRL_PIN(154, "SDC2_CMD"), 231 PINCTRL_PIN(155, "SDC2_DATA"), 232 PINCTRL_PIN(156, "SDC1_RCLK"), 233 }; 234 235 #define DECLARE_MSM_GPIO_PINS(pin) \ 236 static const unsigned int gpio##pin##_pins[] = { pin } 237 DECLARE_MSM_GPIO_PINS(0); 238 DECLARE_MSM_GPIO_PINS(1); 239 DECLARE_MSM_GPIO_PINS(2); 240 DECLARE_MSM_GPIO_PINS(3); 241 DECLARE_MSM_GPIO_PINS(4); 242 DECLARE_MSM_GPIO_PINS(5); 243 DECLARE_MSM_GPIO_PINS(6); 244 DECLARE_MSM_GPIO_PINS(7); 245 DECLARE_MSM_GPIO_PINS(8); 246 DECLARE_MSM_GPIO_PINS(9); 247 DECLARE_MSM_GPIO_PINS(10); 248 DECLARE_MSM_GPIO_PINS(11); 249 DECLARE_MSM_GPIO_PINS(12); 250 DECLARE_MSM_GPIO_PINS(13); 251 DECLARE_MSM_GPIO_PINS(14); 252 DECLARE_MSM_GPIO_PINS(15); 253 DECLARE_MSM_GPIO_PINS(16); 254 DECLARE_MSM_GPIO_PINS(17); 255 DECLARE_MSM_GPIO_PINS(18); 256 DECLARE_MSM_GPIO_PINS(19); 257 DECLARE_MSM_GPIO_PINS(20); 258 DECLARE_MSM_GPIO_PINS(21); 259 DECLARE_MSM_GPIO_PINS(22); 260 DECLARE_MSM_GPIO_PINS(23); 261 DECLARE_MSM_GPIO_PINS(24); 262 DECLARE_MSM_GPIO_PINS(25); 263 DECLARE_MSM_GPIO_PINS(26); 264 DECLARE_MSM_GPIO_PINS(27); 265 DECLARE_MSM_GPIO_PINS(28); 266 DECLARE_MSM_GPIO_PINS(29); 267 DECLARE_MSM_GPIO_PINS(30); 268 DECLARE_MSM_GPIO_PINS(31); 269 DECLARE_MSM_GPIO_PINS(32); 270 DECLARE_MSM_GPIO_PINS(33); 271 DECLARE_MSM_GPIO_PINS(34); 272 DECLARE_MSM_GPIO_PINS(35); 273 DECLARE_MSM_GPIO_PINS(36); 274 DECLARE_MSM_GPIO_PINS(37); 275 DECLARE_MSM_GPIO_PINS(38); 276 DECLARE_MSM_GPIO_PINS(39); 277 DECLARE_MSM_GPIO_PINS(40); 278 DECLARE_MSM_GPIO_PINS(41); 279 DECLARE_MSM_GPIO_PINS(42); 280 DECLARE_MSM_GPIO_PINS(43); 281 DECLARE_MSM_GPIO_PINS(44); 282 DECLARE_MSM_GPIO_PINS(45); 283 DECLARE_MSM_GPIO_PINS(46); 284 DECLARE_MSM_GPIO_PINS(47); 285 DECLARE_MSM_GPIO_PINS(48); 286 DECLARE_MSM_GPIO_PINS(49); 287 DECLARE_MSM_GPIO_PINS(50); 288 DECLARE_MSM_GPIO_PINS(51); 289 DECLARE_MSM_GPIO_PINS(52); 290 DECLARE_MSM_GPIO_PINS(53); 291 DECLARE_MSM_GPIO_PINS(54); 292 DECLARE_MSM_GPIO_PINS(55); 293 DECLARE_MSM_GPIO_PINS(56); 294 DECLARE_MSM_GPIO_PINS(57); 295 DECLARE_MSM_GPIO_PINS(58); 296 DECLARE_MSM_GPIO_PINS(59); 297 DECLARE_MSM_GPIO_PINS(60); 298 DECLARE_MSM_GPIO_PINS(61); 299 DECLARE_MSM_GPIO_PINS(62); 300 DECLARE_MSM_GPIO_PINS(63); 301 DECLARE_MSM_GPIO_PINS(64); 302 DECLARE_MSM_GPIO_PINS(65); 303 DECLARE_MSM_GPIO_PINS(66); 304 DECLARE_MSM_GPIO_PINS(67); 305 DECLARE_MSM_GPIO_PINS(68); 306 DECLARE_MSM_GPIO_PINS(69); 307 DECLARE_MSM_GPIO_PINS(70); 308 DECLARE_MSM_GPIO_PINS(71); 309 DECLARE_MSM_GPIO_PINS(72); 310 DECLARE_MSM_GPIO_PINS(73); 311 DECLARE_MSM_GPIO_PINS(74); 312 DECLARE_MSM_GPIO_PINS(75); 313 DECLARE_MSM_GPIO_PINS(76); 314 DECLARE_MSM_GPIO_PINS(77); 315 DECLARE_MSM_GPIO_PINS(78); 316 DECLARE_MSM_GPIO_PINS(79); 317 DECLARE_MSM_GPIO_PINS(80); 318 DECLARE_MSM_GPIO_PINS(81); 319 DECLARE_MSM_GPIO_PINS(82); 320 DECLARE_MSM_GPIO_PINS(83); 321 DECLARE_MSM_GPIO_PINS(84); 322 DECLARE_MSM_GPIO_PINS(85); 323 DECLARE_MSM_GPIO_PINS(86); 324 DECLARE_MSM_GPIO_PINS(87); 325 DECLARE_MSM_GPIO_PINS(88); 326 DECLARE_MSM_GPIO_PINS(89); 327 DECLARE_MSM_GPIO_PINS(90); 328 DECLARE_MSM_GPIO_PINS(91); 329 DECLARE_MSM_GPIO_PINS(92); 330 DECLARE_MSM_GPIO_PINS(93); 331 DECLARE_MSM_GPIO_PINS(94); 332 DECLARE_MSM_GPIO_PINS(95); 333 DECLARE_MSM_GPIO_PINS(96); 334 DECLARE_MSM_GPIO_PINS(97); 335 DECLARE_MSM_GPIO_PINS(98); 336 DECLARE_MSM_GPIO_PINS(99); 337 DECLARE_MSM_GPIO_PINS(100); 338 DECLARE_MSM_GPIO_PINS(101); 339 DECLARE_MSM_GPIO_PINS(102); 340 DECLARE_MSM_GPIO_PINS(103); 341 DECLARE_MSM_GPIO_PINS(104); 342 DECLARE_MSM_GPIO_PINS(105); 343 DECLARE_MSM_GPIO_PINS(106); 344 DECLARE_MSM_GPIO_PINS(107); 345 DECLARE_MSM_GPIO_PINS(108); 346 DECLARE_MSM_GPIO_PINS(109); 347 DECLARE_MSM_GPIO_PINS(110); 348 DECLARE_MSM_GPIO_PINS(111); 349 DECLARE_MSM_GPIO_PINS(112); 350 DECLARE_MSM_GPIO_PINS(113); 351 DECLARE_MSM_GPIO_PINS(114); 352 DECLARE_MSM_GPIO_PINS(115); 353 DECLARE_MSM_GPIO_PINS(116); 354 DECLARE_MSM_GPIO_PINS(117); 355 DECLARE_MSM_GPIO_PINS(118); 356 DECLARE_MSM_GPIO_PINS(119); 357 DECLARE_MSM_GPIO_PINS(120); 358 DECLARE_MSM_GPIO_PINS(121); 359 DECLARE_MSM_GPIO_PINS(122); 360 DECLARE_MSM_GPIO_PINS(123); 361 DECLARE_MSM_GPIO_PINS(124); 362 DECLARE_MSM_GPIO_PINS(125); 363 DECLARE_MSM_GPIO_PINS(126); 364 DECLARE_MSM_GPIO_PINS(127); 365 DECLARE_MSM_GPIO_PINS(128); 366 DECLARE_MSM_GPIO_PINS(129); 367 DECLARE_MSM_GPIO_PINS(130); 368 DECLARE_MSM_GPIO_PINS(131); 369 DECLARE_MSM_GPIO_PINS(132); 370 DECLARE_MSM_GPIO_PINS(133); 371 DECLARE_MSM_GPIO_PINS(134); 372 DECLARE_MSM_GPIO_PINS(135); 373 DECLARE_MSM_GPIO_PINS(136); 374 DECLARE_MSM_GPIO_PINS(137); 375 DECLARE_MSM_GPIO_PINS(138); 376 DECLARE_MSM_GPIO_PINS(139); 377 DECLARE_MSM_GPIO_PINS(140); 378 DECLARE_MSM_GPIO_PINS(141); 379 DECLARE_MSM_GPIO_PINS(142); 380 DECLARE_MSM_GPIO_PINS(143); 381 DECLARE_MSM_GPIO_PINS(144); 382 DECLARE_MSM_GPIO_PINS(145); 383 DECLARE_MSM_GPIO_PINS(146); 384 DECLARE_MSM_GPIO_PINS(147); 385 DECLARE_MSM_GPIO_PINS(148); 386 DECLARE_MSM_GPIO_PINS(149); 387 388 static const unsigned int sdc1_clk_pins[] = { 150 }; 389 static const unsigned int sdc1_cmd_pins[] = { 151 }; 390 static const unsigned int sdc1_data_pins[] = { 152 }; 391 static const unsigned int sdc2_clk_pins[] = { 153 }; 392 static const unsigned int sdc2_cmd_pins[] = { 154 }; 393 static const unsigned int sdc2_data_pins[] = { 155 }; 394 static const unsigned int sdc1_rclk_pins[] = { 156 }; 395 396 enum msm8996_functions { 397 msm_mux_adsp_ext, 398 msm_mux_atest_bbrx0, 399 msm_mux_atest_bbrx1, 400 msm_mux_atest_char, 401 msm_mux_atest_char0, 402 msm_mux_atest_char1, 403 msm_mux_atest_char2, 404 msm_mux_atest_char3, 405 msm_mux_atest_gpsadc0, 406 msm_mux_atest_gpsadc1, 407 msm_mux_atest_tsens, 408 msm_mux_atest_tsens2, 409 msm_mux_atest_usb1, 410 msm_mux_atest_usb10, 411 msm_mux_atest_usb11, 412 msm_mux_atest_usb12, 413 msm_mux_atest_usb13, 414 msm_mux_atest_usb2, 415 msm_mux_atest_usb20, 416 msm_mux_atest_usb21, 417 msm_mux_atest_usb22, 418 msm_mux_atest_usb23, 419 msm_mux_audio_ref, 420 msm_mux_bimc_dte0, 421 msm_mux_bimc_dte1, 422 msm_mux_blsp10_spi, 423 msm_mux_blsp11_i2c_scl_b, 424 msm_mux_blsp11_i2c_sda_b, 425 msm_mux_blsp11_uart_rx_b, 426 msm_mux_blsp11_uart_tx_b, 427 msm_mux_blsp1_spi, 428 msm_mux_blsp2_spi, 429 msm_mux_blsp_i2c1, 430 msm_mux_blsp_i2c10, 431 msm_mux_blsp_i2c11, 432 msm_mux_blsp_i2c12, 433 msm_mux_blsp_i2c2, 434 msm_mux_blsp_i2c3, 435 msm_mux_blsp_i2c4, 436 msm_mux_blsp_i2c5, 437 msm_mux_blsp_i2c6, 438 msm_mux_blsp_i2c7, 439 msm_mux_blsp_i2c8, 440 msm_mux_blsp_i2c9, 441 msm_mux_blsp_spi1, 442 msm_mux_blsp_spi10, 443 msm_mux_blsp_spi11, 444 msm_mux_blsp_spi12, 445 msm_mux_blsp_spi2, 446 msm_mux_blsp_spi3, 447 msm_mux_blsp_spi4, 448 msm_mux_blsp_spi5, 449 msm_mux_blsp_spi6, 450 msm_mux_blsp_spi7, 451 msm_mux_blsp_spi8, 452 msm_mux_blsp_spi9, 453 msm_mux_blsp_uart1, 454 msm_mux_blsp_uart10, 455 msm_mux_blsp_uart11, 456 msm_mux_blsp_uart12, 457 msm_mux_blsp_uart2, 458 msm_mux_blsp_uart3, 459 msm_mux_blsp_uart4, 460 msm_mux_blsp_uart5, 461 msm_mux_blsp_uart6, 462 msm_mux_blsp_uart7, 463 msm_mux_blsp_uart8, 464 msm_mux_blsp_uart9, 465 msm_mux_blsp_uim1, 466 msm_mux_blsp_uim10, 467 msm_mux_blsp_uim11, 468 msm_mux_blsp_uim12, 469 msm_mux_blsp_uim2, 470 msm_mux_blsp_uim3, 471 msm_mux_blsp_uim4, 472 msm_mux_blsp_uim5, 473 msm_mux_blsp_uim6, 474 msm_mux_blsp_uim7, 475 msm_mux_blsp_uim8, 476 msm_mux_blsp_uim9, 477 msm_mux_btfm_slimbus, 478 msm_mux_cam_mclk, 479 msm_mux_cci_async, 480 msm_mux_cci_i2c, 481 msm_mux_cci_timer0, 482 msm_mux_cci_timer1, 483 msm_mux_cci_timer2, 484 msm_mux_cci_timer3, 485 msm_mux_cci_timer4, 486 msm_mux_cri_trng, 487 msm_mux_cri_trng0, 488 msm_mux_cri_trng1, 489 msm_mux_dac_calib0, 490 msm_mux_dac_calib1, 491 msm_mux_dac_calib10, 492 msm_mux_dac_calib11, 493 msm_mux_dac_calib12, 494 msm_mux_dac_calib13, 495 msm_mux_dac_calib14, 496 msm_mux_dac_calib15, 497 msm_mux_dac_calib16, 498 msm_mux_dac_calib17, 499 msm_mux_dac_calib18, 500 msm_mux_dac_calib19, 501 msm_mux_dac_calib2, 502 msm_mux_dac_calib20, 503 msm_mux_dac_calib21, 504 msm_mux_dac_calib22, 505 msm_mux_dac_calib23, 506 msm_mux_dac_calib24, 507 msm_mux_dac_calib25, 508 msm_mux_dac_calib26, 509 msm_mux_dac_calib3, 510 msm_mux_dac_calib4, 511 msm_mux_dac_calib5, 512 msm_mux_dac_calib6, 513 msm_mux_dac_calib7, 514 msm_mux_dac_calib8, 515 msm_mux_dac_calib9, 516 msm_mux_dac_gpio, 517 msm_mux_dbg_out, 518 msm_mux_ddr_bist, 519 msm_mux_edp_hot, 520 msm_mux_edp_lcd, 521 msm_mux_gcc_gp1_clk_a, 522 msm_mux_gcc_gp1_clk_b, 523 msm_mux_gcc_gp2_clk_a, 524 msm_mux_gcc_gp2_clk_b, 525 msm_mux_gcc_gp3_clk_a, 526 msm_mux_gcc_gp3_clk_b, 527 msm_mux_gsm_tx, 528 msm_mux_hdmi_cec, 529 msm_mux_hdmi_ddc, 530 msm_mux_hdmi_hot, 531 msm_mux_hdmi_rcv, 532 msm_mux_isense_dbg, 533 msm_mux_ldo_en, 534 msm_mux_ldo_update, 535 msm_mux_lpass_slimbus, 536 msm_mux_m_voc, 537 msm_mux_mdp_vsync, 538 msm_mux_mdp_vsync_p_b, 539 msm_mux_mdp_vsync_s_b, 540 msm_mux_modem_tsync, 541 msm_mux_mss_lte, 542 msm_mux_nav_dr, 543 msm_mux_nav_pps, 544 msm_mux_pa_indicator, 545 msm_mux_pci_e0, 546 msm_mux_pci_e1, 547 msm_mux_pci_e2, 548 msm_mux_pll_bypassnl, 549 msm_mux_pll_reset, 550 msm_mux_pri_mi2s, 551 msm_mux_prng_rosc, 552 msm_mux_pwr_crypto, 553 msm_mux_pwr_modem, 554 msm_mux_pwr_nav, 555 msm_mux_qdss_cti, 556 msm_mux_qdss_cti_trig_in_a, 557 msm_mux_qdss_cti_trig_in_b, 558 msm_mux_qdss_cti_trig_out_a, 559 msm_mux_qdss_cti_trig_out_b, 560 msm_mux_qdss_stm0, 561 msm_mux_qdss_stm1, 562 msm_mux_qdss_stm10, 563 msm_mux_qdss_stm11, 564 msm_mux_qdss_stm12, 565 msm_mux_qdss_stm13, 566 msm_mux_qdss_stm14, 567 msm_mux_qdss_stm15, 568 msm_mux_qdss_stm16, 569 msm_mux_qdss_stm17, 570 msm_mux_qdss_stm18, 571 msm_mux_qdss_stm19, 572 msm_mux_qdss_stm2, 573 msm_mux_qdss_stm20, 574 msm_mux_qdss_stm21, 575 msm_mux_qdss_stm22, 576 msm_mux_qdss_stm23, 577 msm_mux_qdss_stm24, 578 msm_mux_qdss_stm25, 579 msm_mux_qdss_stm26, 580 msm_mux_qdss_stm27, 581 msm_mux_qdss_stm28, 582 msm_mux_qdss_stm29, 583 msm_mux_qdss_stm3, 584 msm_mux_qdss_stm30, 585 msm_mux_qdss_stm31, 586 msm_mux_qdss_stm4, 587 msm_mux_qdss_stm5, 588 msm_mux_qdss_stm6, 589 msm_mux_qdss_stm7, 590 msm_mux_qdss_stm8, 591 msm_mux_qdss_stm9, 592 msm_mux_qdss_traceclk_a, 593 msm_mux_qdss_traceclk_b, 594 msm_mux_qdss_tracectl_a, 595 msm_mux_qdss_tracectl_b, 596 msm_mux_qdss_tracedata_11, 597 msm_mux_qdss_tracedata_12, 598 msm_mux_qdss_tracedata_a, 599 msm_mux_qdss_tracedata_b, 600 msm_mux_qspi0, 601 msm_mux_qspi1, 602 msm_mux_qspi2, 603 msm_mux_qspi3, 604 msm_mux_qspi_clk, 605 msm_mux_qspi_cs, 606 msm_mux_qua_mi2s, 607 msm_mux_sd_card, 608 msm_mux_sd_write, 609 msm_mux_sdc40, 610 msm_mux_sdc41, 611 msm_mux_sdc42, 612 msm_mux_sdc43, 613 msm_mux_sdc4_clk, 614 msm_mux_sdc4_cmd, 615 msm_mux_sec_mi2s, 616 msm_mux_spkr_i2s, 617 msm_mux_ssbi1, 618 msm_mux_ssbi2, 619 msm_mux_ssc_irq, 620 msm_mux_ter_mi2s, 621 msm_mux_tsense_pwm1, 622 msm_mux_tsense_pwm2, 623 msm_mux_tsif1_clk, 624 msm_mux_tsif1_data, 625 msm_mux_tsif1_en, 626 msm_mux_tsif1_error, 627 msm_mux_tsif1_sync, 628 msm_mux_tsif2_clk, 629 msm_mux_tsif2_data, 630 msm_mux_tsif2_en, 631 msm_mux_tsif2_error, 632 msm_mux_tsif2_sync, 633 msm_mux_uim1, 634 msm_mux_uim2, 635 msm_mux_uim3, 636 msm_mux_uim4, 637 msm_mux_uim_batt, 638 msm_mux_vfr_1, 639 msm_mux_gpio, 640 msm_mux_NA, 641 }; 642 643 static const char * const gpio_groups[] = { 644 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 645 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 646 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 647 "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 648 "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 649 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 650 "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 651 "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 652 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 653 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 654 "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 655 "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 656 "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 657 "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 658 "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 659 "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 660 "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 661 "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 662 "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", 663 "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134", 664 "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140", 665 "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146", 666 "gpio147", "gpio148", "gpio149" 667 }; 668 669 670 static const char * const blsp_uart1_groups[] = { 671 "gpio0", "gpio1", "gpio2", "gpio3", 672 }; 673 static const char * const blsp_spi1_groups[] = { 674 "gpio0", "gpio1", "gpio2", "gpio3", 675 }; 676 static const char * const blsp_i2c1_groups[] = { 677 "gpio2", "gpio3", 678 }; 679 static const char * const blsp_uim1_groups[] = { 680 "gpio0", "gpio1", 681 }; 682 static const char * const atest_tsens_groups[] = { 683 "gpio3", 684 }; 685 static const char * const bimc_dte1_groups[] = { 686 "gpio3", "gpio5", 687 }; 688 static const char * const blsp_spi8_groups[] = { 689 "gpio4", "gpio5", "gpio6", "gpio7", 690 }; 691 static const char * const blsp_uart8_groups[] = { 692 "gpio4", "gpio5", "gpio6", "gpio7", 693 }; 694 static const char * const blsp_uim8_groups[] = { 695 "gpio4", "gpio5", 696 }; 697 static const char * const qdss_cti_trig_out_b_groups[] = { 698 "gpio4", 699 }; 700 static const char * const dac_calib0_groups[] = { 701 "gpio4", "gpio41", 702 }; 703 static const char * const bimc_dte0_groups[] = { 704 "gpio4", "gpio6", 705 }; 706 static const char * const qdss_cti_trig_in_b_groups[] = { 707 "gpio5", 708 }; 709 static const char * const dac_calib1_groups[] = { 710 "gpio5", "gpio42", 711 }; 712 static const char * const dac_calib2_groups[] = { 713 "gpio6", "gpio43", 714 }; 715 static const char * const atest_tsens2_groups[] = { 716 "gpio7", 717 }; 718 static const char * const blsp_spi10_groups[] = { 719 "gpio8", "gpio9", "gpio10", "gpio11", 720 }; 721 static const char * const blsp_uart10_groups[] = { 722 "gpio8", "gpio9", "gpio10", "gpio11", 723 }; 724 static const char * const blsp_uim10_groups[] = { 725 "gpio8", "gpio9", 726 }; 727 static const char * const atest_bbrx1_groups[] = { 728 "gpio8", 729 }; 730 static const char * const atest_usb12_groups[] = { 731 "gpio9", 732 }; 733 static const char * const mdp_vsync_groups[] = { 734 "gpio10", "gpio11", "gpio12", 735 }; 736 static const char * const edp_lcd_groups[] = { 737 "gpio10", 738 }; 739 static const char * const blsp_i2c10_groups[] = { 740 "gpio10", "gpio11", 741 }; 742 static const char * const atest_usb11_groups[] = { 743 "gpio10", 744 }; 745 static const char * const atest_gpsadc0_groups[] = { 746 "gpio11", 747 }; 748 static const char * const edp_hot_groups[] = { 749 "gpio11", 750 }; 751 static const char * const atest_usb10_groups[] = { 752 "gpio11", 753 }; 754 static const char * const m_voc_groups[] = { 755 "gpio12", 756 }; 757 static const char * const dac_gpio_groups[] = { 758 "gpio12", 759 }; 760 static const char * const atest_char_groups[] = { 761 "gpio12", 762 }; 763 static const char * const cam_mclk_groups[] = { 764 "gpio13", "gpio14", "gpio15", "gpio16", 765 }; 766 static const char * const pll_bypassnl_groups[] = { 767 "gpio13", 768 }; 769 static const char * const qdss_stm7_groups[] = { 770 "gpio13", 771 }; 772 static const char * const blsp_i2c8_groups[] = { 773 "gpio6", "gpio7", 774 }; 775 static const char * const atest_usb1_groups[] = { 776 "gpio7", 777 }; 778 static const char * const atest_usb13_groups[] = { 779 "gpio8", 780 }; 781 static const char * const atest_bbrx0_groups[] = { 782 "gpio9", 783 }; 784 static const char * const atest_gpsadc1_groups[] = { 785 "gpio10", 786 }; 787 static const char * const qdss_tracedata_b_groups[] = { 788 "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", 789 "gpio21", "gpio22", "gpio23", "gpio26", "gpio29", "gpio57", "gpio58", 790 "gpio92", "gpio93", 791 }; 792 static const char * const pll_reset_groups[] = { 793 "gpio14", 794 }; 795 static const char * const qdss_stm6_groups[] = { 796 "gpio14", 797 }; 798 static const char * const qdss_stm5_groups[] = { 799 "gpio15", 800 }; 801 static const char * const qdss_stm4_groups[] = { 802 "gpio16", 803 }; 804 static const char * const atest_usb2_groups[] = { 805 "gpio16", 806 }; 807 static const char * const dac_calib3_groups[] = { 808 "gpio17", "gpio44", 809 }; 810 static const char * const cci_i2c_groups[] = { 811 "gpio17", "gpio18", "gpio19", "gpio20", 812 }; 813 static const char * const qdss_stm3_groups[] = { 814 "gpio17", 815 }; 816 static const char * const atest_usb23_groups[] = { 817 "gpio17", 818 }; 819 static const char * const atest_char3_groups[] = { 820 "gpio17", 821 }; 822 static const char * const dac_calib4_groups[] = { 823 "gpio18", "gpio45", 824 }; 825 static const char * const qdss_stm2_groups[] = { 826 "gpio18", 827 }; 828 static const char * const atest_usb22_groups[] = { 829 "gpio18", 830 }; 831 static const char * const atest_char2_groups[] = { 832 "gpio18", 833 }; 834 static const char * const dac_calib5_groups[] = { 835 "gpio19", "gpio46", 836 }; 837 static const char * const qdss_stm1_groups[] = { 838 "gpio19", 839 }; 840 static const char * const atest_usb21_groups[] = { 841 "gpio19", 842 }; 843 static const char * const atest_char1_groups[] = { 844 "gpio19", 845 }; 846 static const char * const dac_calib6_groups[] = { 847 "gpio20", "gpio47", 848 }; 849 static const char * const dbg_out_groups[] = { 850 "gpio20", 851 }; 852 static const char * const qdss_stm0_groups[] = { 853 "gpio20", 854 }; 855 static const char * const atest_usb20_groups[] = { 856 "gpio20", 857 }; 858 static const char * const atest_char0_groups[] = { 859 "gpio20", 860 }; 861 static const char * const dac_calib7_groups[] = { 862 "gpio21", "gpio48", 863 }; 864 static const char * const cci_timer0_groups[] = { 865 "gpio21", 866 }; 867 static const char * const qdss_stm13_groups[] = { 868 "gpio21", 869 }; 870 static const char * const dac_calib8_groups[] = { 871 "gpio22", "gpio49", 872 }; 873 static const char * const cci_timer1_groups[] = { 874 "gpio22", 875 }; 876 static const char * const qdss_stm12_groups[] = { 877 "gpio22", 878 }; 879 static const char * const dac_calib9_groups[] = { 880 "gpio23", "gpio50", 881 }; 882 static const char * const cci_timer2_groups[] = { 883 "gpio23", 884 }; 885 static const char * const qdss_stm11_groups[] = { 886 "gpio23", 887 }; 888 static const char * const dac_calib10_groups[] = { 889 "gpio24", "gpio51", 890 }; 891 static const char * const cci_timer3_groups[] = { 892 "gpio24", 893 }; 894 static const char * const cci_async_groups[] = { 895 "gpio24", "gpio25", "gpio26", 896 }; 897 static const char * const blsp1_spi_groups[] = { 898 "gpio24", "gpio27", "gpio28", "gpio90", 899 }; 900 static const char * const qdss_stm10_groups[] = { 901 "gpio24", 902 }; 903 static const char * const qdss_cti_trig_in_a_groups[] = { 904 "gpio24", 905 }; 906 static const char * const dac_calib11_groups[] = { 907 "gpio25", "gpio52", 908 }; 909 static const char * const cci_timer4_groups[] = { 910 "gpio25", 911 }; 912 static const char * const blsp_spi6_groups[] = { 913 "gpio25", "gpio26", "gpio27", "gpio28", 914 }; 915 static const char * const blsp_uart6_groups[] = { 916 "gpio25", "gpio26", "gpio27", "gpio28", 917 }; 918 static const char * const blsp_uim6_groups[] = { 919 "gpio25", "gpio26", 920 }; 921 static const char * const blsp2_spi_groups[] = { 922 "gpio25", "gpio29", "gpio30", 923 }; 924 static const char * const qdss_stm9_groups[] = { 925 "gpio25", 926 }; 927 static const char * const qdss_cti_trig_out_a_groups[] = { 928 "gpio25", 929 }; 930 static const char * const dac_calib12_groups[] = { 931 "gpio26", "gpio53", 932 }; 933 static const char * const qdss_stm8_groups[] = { 934 "gpio26", 935 }; 936 static const char * const dac_calib13_groups[] = { 937 "gpio27", "gpio54", 938 }; 939 static const char * const blsp_i2c6_groups[] = { 940 "gpio27", "gpio28", 941 }; 942 static const char * const qdss_tracectl_a_groups[] = { 943 "gpio27", 944 }; 945 static const char * const dac_calib14_groups[] = { 946 "gpio28", "gpio55", 947 }; 948 static const char * const qdss_traceclk_a_groups[] = { 949 "gpio28", 950 }; 951 static const char * const dac_calib15_groups[] = { 952 "gpio29", "gpio56", 953 }; 954 static const char * const dac_calib16_groups[] = { 955 "gpio30", "gpio57", 956 }; 957 static const char * const hdmi_rcv_groups[] = { 958 "gpio30", 959 }; 960 static const char * const dac_calib17_groups[] = { 961 "gpio31", "gpio58", 962 }; 963 static const char * const pwr_modem_groups[] = { 964 "gpio31", 965 }; 966 static const char * const hdmi_cec_groups[] = { 967 "gpio31", 968 }; 969 static const char * const pwr_nav_groups[] = { 970 "gpio32", 971 }; 972 static const char * const dac_calib18_groups[] = { 973 "gpio32", "gpio59", 974 }; 975 static const char * const hdmi_ddc_groups[] = { 976 "gpio32", "gpio33", 977 }; 978 static const char * const pwr_crypto_groups[] = { 979 "gpio33", 980 }; 981 static const char * const dac_calib19_groups[] = { 982 "gpio33", "gpio60", 983 }; 984 static const char * const dac_calib20_groups[] = { 985 "gpio34", "gpio61", 986 }; 987 static const char * const hdmi_hot_groups[] = { 988 "gpio34", 989 }; 990 static const char * const dac_calib21_groups[] = { 991 "gpio35", "gpio62", 992 }; 993 static const char * const pci_e0_groups[] = { 994 "gpio35", "gpio36", 995 }; 996 static const char * const dac_calib22_groups[] = { 997 "gpio36", "gpio63", 998 }; 999 static const char * const dac_calib23_groups[] = { 1000 "gpio37", "gpio64", 1001 }; 1002 static const char * const blsp_i2c2_groups[] = { 1003 "gpio43", "gpio44", 1004 }; 1005 static const char * const blsp_spi3_groups[] = { 1006 "gpio45", "gpio46", "gpio47", "gpio48", 1007 }; 1008 static const char * const blsp_uart3_groups[] = { 1009 "gpio45", "gpio46", "gpio47", "gpio48", 1010 }; 1011 static const char * const blsp_uim3_groups[] = { 1012 "gpio45", "gpio46", 1013 }; 1014 static const char * const blsp_i2c3_groups[] = { 1015 "gpio47", "gpio48", 1016 }; 1017 static const char * const dac_calib24_groups[] = { 1018 "gpio38", "gpio65", 1019 }; 1020 static const char * const dac_calib25_groups[] = { 1021 "gpio39", "gpio66", 1022 }; 1023 static const char * const tsif1_sync_groups[] = { 1024 "gpio39", 1025 }; 1026 static const char * const sd_write_groups[] = { 1027 "gpio40", 1028 }; 1029 static const char * const tsif1_error_groups[] = { 1030 "gpio40", 1031 }; 1032 static const char * const blsp_spi2_groups[] = { 1033 "gpio41", "gpio42", "gpio43", "gpio44", 1034 }; 1035 static const char * const blsp_uart2_groups[] = { 1036 "gpio41", "gpio42", "gpio43", "gpio44", 1037 }; 1038 static const char * const blsp_uim2_groups[] = { 1039 "gpio41", "gpio42", 1040 }; 1041 static const char * const qdss_cti_groups[] = { 1042 "gpio41", "gpio42", "gpio100", "gpio101", 1043 }; 1044 static const char * const uim3_groups[] = { 1045 "gpio49", "gpio50", "gpio51", "gpio52", 1046 }; 1047 static const char * const blsp_spi9_groups[] = { 1048 "gpio49", "gpio50", "gpio51", "gpio52", 1049 }; 1050 static const char * const blsp_uart9_groups[] = { 1051 "gpio49", "gpio50", "gpio51", "gpio52", 1052 }; 1053 static const char * const blsp_uim9_groups[] = { 1054 "gpio49", "gpio50", 1055 }; 1056 static const char * const blsp10_spi_groups[] = { 1057 "gpio49", "gpio50", "gpio51", "gpio52", "gpio88", 1058 }; 1059 static const char * const blsp_i2c9_groups[] = { 1060 "gpio51", "gpio52", 1061 }; 1062 static const char * const blsp_spi7_groups[] = { 1063 "gpio53", "gpio54", "gpio55", "gpio56", 1064 }; 1065 static const char * const blsp_uart7_groups[] = { 1066 "gpio53", "gpio54", "gpio55", "gpio56", 1067 }; 1068 static const char * const blsp_uim7_groups[] = { 1069 "gpio53", "gpio54", 1070 }; 1071 static const char * const qdss_tracedata_a_groups[] = { 1072 "gpio53", "gpio54", "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", 1073 "gpio74", "gpio75", "gpio76", "gpio77", "gpio85", "gpio86", "gpio87", 1074 "gpio89", "gpio90", 1075 }; 1076 static const char * const blsp_i2c7_groups[] = { 1077 "gpio55", "gpio56", 1078 }; 1079 static const char * const qua_mi2s_groups[] = { 1080 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 1081 }; 1082 static const char * const gcc_gp1_clk_a_groups[] = { 1083 "gpio57", 1084 }; 1085 static const char * const uim4_groups[] = { 1086 "gpio58", "gpio59", "gpio60", "gpio61", 1087 }; 1088 static const char * const blsp_spi11_groups[] = { 1089 "gpio58", "gpio59", "gpio60", "gpio61", 1090 }; 1091 static const char * const blsp_uart11_groups[] = { 1092 "gpio58", "gpio59", "gpio60", "gpio61", 1093 }; 1094 static const char * const blsp_uim11_groups[] = { 1095 "gpio58", "gpio59", 1096 }; 1097 static const char * const gcc_gp2_clk_a_groups[] = { 1098 "gpio58", 1099 }; 1100 static const char * const gcc_gp3_clk_a_groups[] = { 1101 "gpio59", 1102 }; 1103 static const char * const blsp_i2c11_groups[] = { 1104 "gpio60", "gpio61", 1105 }; 1106 static const char * const cri_trng0_groups[] = { 1107 "gpio60", 1108 }; 1109 static const char * const cri_trng1_groups[] = { 1110 "gpio61", 1111 }; 1112 static const char * const cri_trng_groups[] = { 1113 "gpio62", 1114 }; 1115 static const char * const qdss_stm18_groups[] = { 1116 "gpio63", 1117 }; 1118 static const char * const pri_mi2s_groups[] = { 1119 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", 1120 }; 1121 static const char * const qdss_stm17_groups[] = { 1122 "gpio64", 1123 }; 1124 static const char * const blsp_spi4_groups[] = { 1125 "gpio65", "gpio66", "gpio67", "gpio68", 1126 }; 1127 static const char * const blsp_uart4_groups[] = { 1128 "gpio65", "gpio66", "gpio67", "gpio68", 1129 }; 1130 static const char * const blsp_uim4_groups[] = { 1131 "gpio65", "gpio66", 1132 }; 1133 static const char * const qdss_stm16_groups[] = { 1134 "gpio65", 1135 }; 1136 static const char * const qdss_stm15_groups[] = { 1137 "gpio66", 1138 }; 1139 static const char * const dac_calib26_groups[] = { 1140 "gpio67", 1141 }; 1142 static const char * const blsp_i2c4_groups[] = { 1143 "gpio67", "gpio68", 1144 }; 1145 static const char * const qdss_stm14_groups[] = { 1146 "gpio67", 1147 }; 1148 static const char * const spkr_i2s_groups[] = { 1149 "gpio69", "gpio70", "gpio71", "gpio72", 1150 }; 1151 static const char * const audio_ref_groups[] = { 1152 "gpio69", 1153 }; 1154 static const char * const lpass_slimbus_groups[] = { 1155 "gpio70", "gpio71", "gpio72", 1156 }; 1157 static const char * const isense_dbg_groups[] = { 1158 "gpio70", 1159 }; 1160 static const char * const tsense_pwm1_groups[] = { 1161 "gpio71", 1162 }; 1163 static const char * const tsense_pwm2_groups[] = { 1164 "gpio71", 1165 }; 1166 static const char * const btfm_slimbus_groups[] = { 1167 "gpio73", "gpio74", 1168 }; 1169 static const char * const ter_mi2s_groups[] = { 1170 "gpio74", "gpio75", "gpio76", "gpio77", "gpio78", 1171 }; 1172 static const char * const qdss_stm22_groups[] = { 1173 "gpio74", 1174 }; 1175 static const char * const qdss_stm21_groups[] = { 1176 "gpio75", 1177 }; 1178 static const char * const qdss_stm20_groups[] = { 1179 "gpio76", 1180 }; 1181 static const char * const qdss_stm19_groups[] = { 1182 "gpio77", 1183 }; 1184 static const char * const ssc_irq_groups[] = { 1185 "gpio78", "gpio79", "gpio80", "gpio117", "gpio118", "gpio119", 1186 "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125", 1187 }; 1188 static const char * const gcc_gp1_clk_b_groups[] = { 1189 "gpio78", 1190 }; 1191 static const char * const sec_mi2s_groups[] = { 1192 "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", 1193 }; 1194 static const char * const blsp_spi5_groups[] = { 1195 "gpio81", "gpio82", "gpio83", "gpio84", 1196 }; 1197 static const char * const blsp_uart5_groups[] = { 1198 "gpio81", "gpio82", "gpio83", "gpio84", 1199 }; 1200 static const char * const blsp_uim5_groups[] = { 1201 "gpio81", "gpio82", 1202 }; 1203 static const char * const gcc_gp2_clk_b_groups[] = { 1204 "gpio81", 1205 }; 1206 static const char * const gcc_gp3_clk_b_groups[] = { 1207 "gpio82", 1208 }; 1209 static const char * const blsp_i2c5_groups[] = { 1210 "gpio83", "gpio84", 1211 }; 1212 static const char * const blsp_spi12_groups[] = { 1213 "gpio85", "gpio86", "gpio87", "gpio88", 1214 }; 1215 static const char * const blsp_uart12_groups[] = { 1216 "gpio85", "gpio86", "gpio87", "gpio88", 1217 }; 1218 static const char * const blsp_uim12_groups[] = { 1219 "gpio85", "gpio86", 1220 }; 1221 static const char * const qdss_stm25_groups[] = { 1222 "gpio85", 1223 }; 1224 static const char * const qdss_stm31_groups[] = { 1225 "gpio86", 1226 }; 1227 static const char * const blsp_i2c12_groups[] = { 1228 "gpio87", "gpio88", 1229 }; 1230 static const char * const qdss_stm30_groups[] = { 1231 "gpio87", 1232 }; 1233 static const char * const qdss_stm29_groups[] = { 1234 "gpio88", 1235 }; 1236 static const char * const tsif1_clk_groups[] = { 1237 "gpio89", 1238 }; 1239 static const char * const qdss_stm28_groups[] = { 1240 "gpio89", 1241 }; 1242 static const char * const tsif1_en_groups[] = { 1243 "gpio90", 1244 }; 1245 static const char * const tsif1_data_groups[] = { 1246 "gpio91", 1247 }; 1248 static const char * const sdc4_cmd_groups[] = { 1249 "gpio91", 1250 }; 1251 static const char * const qdss_stm27_groups[] = { 1252 "gpio91", 1253 }; 1254 static const char * const qdss_traceclk_b_groups[] = { 1255 "gpio91", 1256 }; 1257 static const char * const tsif2_error_groups[] = { 1258 "gpio92", 1259 }; 1260 static const char * const sdc43_groups[] = { 1261 "gpio92", 1262 }; 1263 static const char * const vfr_1_groups[] = { 1264 "gpio92", 1265 }; 1266 static const char * const qdss_stm26_groups[] = { 1267 "gpio92", 1268 }; 1269 static const char * const tsif2_clk_groups[] = { 1270 "gpio93", 1271 }; 1272 static const char * const sdc4_clk_groups[] = { 1273 "gpio93", 1274 }; 1275 static const char * const qdss_stm24_groups[] = { 1276 "gpio93", 1277 }; 1278 static const char * const tsif2_en_groups[] = { 1279 "gpio94", 1280 }; 1281 static const char * const sdc42_groups[] = { 1282 "gpio94", 1283 }; 1284 static const char * const qdss_stm23_groups[] = { 1285 "gpio94", 1286 }; 1287 static const char * const qdss_tracectl_b_groups[] = { 1288 "gpio94", 1289 }; 1290 static const char * const sd_card_groups[] = { 1291 "gpio95", 1292 }; 1293 static const char * const tsif2_data_groups[] = { 1294 "gpio95", 1295 }; 1296 static const char * const sdc41_groups[] = { 1297 "gpio95", 1298 }; 1299 static const char * const tsif2_sync_groups[] = { 1300 "gpio96", 1301 }; 1302 static const char * const sdc40_groups[] = { 1303 "gpio96", 1304 }; 1305 static const char * const mdp_vsync_p_b_groups[] = { 1306 "gpio97", 1307 }; 1308 static const char * const ldo_en_groups[] = { 1309 "gpio97", 1310 }; 1311 static const char * const mdp_vsync_s_b_groups[] = { 1312 "gpio98", 1313 }; 1314 static const char * const ldo_update_groups[] = { 1315 "gpio98", 1316 }; 1317 static const char * const blsp11_uart_tx_b_groups[] = { 1318 "gpio100", 1319 }; 1320 static const char * const blsp11_uart_rx_b_groups[] = { 1321 "gpio101", 1322 }; 1323 static const char * const blsp11_i2c_sda_b_groups[] = { 1324 "gpio102", 1325 }; 1326 static const char * const prng_rosc_groups[] = { 1327 "gpio102", 1328 }; 1329 static const char * const blsp11_i2c_scl_b_groups[] = { 1330 "gpio103", 1331 }; 1332 static const char * const uim2_groups[] = { 1333 "gpio105", "gpio106", "gpio107", "gpio108", 1334 }; 1335 static const char * const uim1_groups[] = { 1336 "gpio109", "gpio110", "gpio111", "gpio112", 1337 }; 1338 static const char * const uim_batt_groups[] = { 1339 "gpio113", 1340 }; 1341 static const char * const pci_e2_groups[] = { 1342 "gpio114", "gpio115", "gpio116", 1343 }; 1344 static const char * const pa_indicator_groups[] = { 1345 "gpio116", 1346 }; 1347 static const char * const adsp_ext_groups[] = { 1348 "gpio118", 1349 }; 1350 static const char * const ddr_bist_groups[] = { 1351 "gpio121", "gpio122", "gpio123", "gpio124", 1352 }; 1353 static const char * const qdss_tracedata_11_groups[] = { 1354 "gpio123", 1355 }; 1356 static const char * const qdss_tracedata_12_groups[] = { 1357 "gpio124", 1358 }; 1359 static const char * const modem_tsync_groups[] = { 1360 "gpio128", 1361 }; 1362 static const char * const nav_dr_groups[] = { 1363 "gpio128", 1364 }; 1365 static const char * const nav_pps_groups[] = { 1366 "gpio128", 1367 }; 1368 static const char * const pci_e1_groups[] = { 1369 "gpio130", "gpio131", "gpio132", 1370 }; 1371 static const char * const gsm_tx_groups[] = { 1372 "gpio134", "gpio135", 1373 }; 1374 static const char * const qspi_cs_groups[] = { 1375 "gpio138", "gpio141", 1376 }; 1377 static const char * const ssbi2_groups[] = { 1378 "gpio139", 1379 }; 1380 static const char * const ssbi1_groups[] = { 1381 "gpio140", 1382 }; 1383 static const char * const mss_lte_groups[] = { 1384 "gpio144", "gpio145", 1385 }; 1386 static const char * const qspi_clk_groups[] = { 1387 "gpio145", 1388 }; 1389 static const char * const qspi0_groups[] = { 1390 "gpio146", 1391 }; 1392 static const char * const qspi1_groups[] = { 1393 "gpio147", 1394 }; 1395 static const char * const qspi2_groups[] = { 1396 "gpio148", 1397 }; 1398 static const char * const qspi3_groups[] = { 1399 "gpio149", 1400 }; 1401 1402 static const struct pinfunction msm8996_functions[] = { 1403 MSM_PIN_FUNCTION(adsp_ext), 1404 MSM_PIN_FUNCTION(atest_bbrx0), 1405 MSM_PIN_FUNCTION(atest_bbrx1), 1406 MSM_PIN_FUNCTION(atest_char), 1407 MSM_PIN_FUNCTION(atest_char0), 1408 MSM_PIN_FUNCTION(atest_char1), 1409 MSM_PIN_FUNCTION(atest_char2), 1410 MSM_PIN_FUNCTION(atest_char3), 1411 MSM_PIN_FUNCTION(atest_gpsadc0), 1412 MSM_PIN_FUNCTION(atest_gpsadc1), 1413 MSM_PIN_FUNCTION(atest_tsens), 1414 MSM_PIN_FUNCTION(atest_tsens2), 1415 MSM_PIN_FUNCTION(atest_usb1), 1416 MSM_PIN_FUNCTION(atest_usb10), 1417 MSM_PIN_FUNCTION(atest_usb11), 1418 MSM_PIN_FUNCTION(atest_usb12), 1419 MSM_PIN_FUNCTION(atest_usb13), 1420 MSM_PIN_FUNCTION(atest_usb2), 1421 MSM_PIN_FUNCTION(atest_usb20), 1422 MSM_PIN_FUNCTION(atest_usb21), 1423 MSM_PIN_FUNCTION(atest_usb22), 1424 MSM_PIN_FUNCTION(atest_usb23), 1425 MSM_PIN_FUNCTION(audio_ref), 1426 MSM_PIN_FUNCTION(bimc_dte0), 1427 MSM_PIN_FUNCTION(bimc_dte1), 1428 MSM_PIN_FUNCTION(blsp10_spi), 1429 MSM_PIN_FUNCTION(blsp11_i2c_scl_b), 1430 MSM_PIN_FUNCTION(blsp11_i2c_sda_b), 1431 MSM_PIN_FUNCTION(blsp11_uart_rx_b), 1432 MSM_PIN_FUNCTION(blsp11_uart_tx_b), 1433 MSM_PIN_FUNCTION(blsp1_spi), 1434 MSM_PIN_FUNCTION(blsp2_spi), 1435 MSM_PIN_FUNCTION(blsp_i2c1), 1436 MSM_PIN_FUNCTION(blsp_i2c10), 1437 MSM_PIN_FUNCTION(blsp_i2c11), 1438 MSM_PIN_FUNCTION(blsp_i2c12), 1439 MSM_PIN_FUNCTION(blsp_i2c2), 1440 MSM_PIN_FUNCTION(blsp_i2c3), 1441 MSM_PIN_FUNCTION(blsp_i2c4), 1442 MSM_PIN_FUNCTION(blsp_i2c5), 1443 MSM_PIN_FUNCTION(blsp_i2c6), 1444 MSM_PIN_FUNCTION(blsp_i2c7), 1445 MSM_PIN_FUNCTION(blsp_i2c8), 1446 MSM_PIN_FUNCTION(blsp_i2c9), 1447 MSM_PIN_FUNCTION(blsp_spi1), 1448 MSM_PIN_FUNCTION(blsp_spi10), 1449 MSM_PIN_FUNCTION(blsp_spi11), 1450 MSM_PIN_FUNCTION(blsp_spi12), 1451 MSM_PIN_FUNCTION(blsp_spi2), 1452 MSM_PIN_FUNCTION(blsp_spi3), 1453 MSM_PIN_FUNCTION(blsp_spi4), 1454 MSM_PIN_FUNCTION(blsp_spi5), 1455 MSM_PIN_FUNCTION(blsp_spi6), 1456 MSM_PIN_FUNCTION(blsp_spi7), 1457 MSM_PIN_FUNCTION(blsp_spi8), 1458 MSM_PIN_FUNCTION(blsp_spi9), 1459 MSM_PIN_FUNCTION(blsp_uart1), 1460 MSM_PIN_FUNCTION(blsp_uart10), 1461 MSM_PIN_FUNCTION(blsp_uart11), 1462 MSM_PIN_FUNCTION(blsp_uart12), 1463 MSM_PIN_FUNCTION(blsp_uart2), 1464 MSM_PIN_FUNCTION(blsp_uart3), 1465 MSM_PIN_FUNCTION(blsp_uart4), 1466 MSM_PIN_FUNCTION(blsp_uart5), 1467 MSM_PIN_FUNCTION(blsp_uart6), 1468 MSM_PIN_FUNCTION(blsp_uart7), 1469 MSM_PIN_FUNCTION(blsp_uart8), 1470 MSM_PIN_FUNCTION(blsp_uart9), 1471 MSM_PIN_FUNCTION(blsp_uim1), 1472 MSM_PIN_FUNCTION(blsp_uim10), 1473 MSM_PIN_FUNCTION(blsp_uim11), 1474 MSM_PIN_FUNCTION(blsp_uim12), 1475 MSM_PIN_FUNCTION(blsp_uim2), 1476 MSM_PIN_FUNCTION(blsp_uim3), 1477 MSM_PIN_FUNCTION(blsp_uim4), 1478 MSM_PIN_FUNCTION(blsp_uim5), 1479 MSM_PIN_FUNCTION(blsp_uim6), 1480 MSM_PIN_FUNCTION(blsp_uim7), 1481 MSM_PIN_FUNCTION(blsp_uim8), 1482 MSM_PIN_FUNCTION(blsp_uim9), 1483 MSM_PIN_FUNCTION(btfm_slimbus), 1484 MSM_PIN_FUNCTION(cam_mclk), 1485 MSM_PIN_FUNCTION(cci_async), 1486 MSM_PIN_FUNCTION(cci_i2c), 1487 MSM_PIN_FUNCTION(cci_timer0), 1488 MSM_PIN_FUNCTION(cci_timer1), 1489 MSM_PIN_FUNCTION(cci_timer2), 1490 MSM_PIN_FUNCTION(cci_timer3), 1491 MSM_PIN_FUNCTION(cci_timer4), 1492 MSM_PIN_FUNCTION(cri_trng), 1493 MSM_PIN_FUNCTION(cri_trng0), 1494 MSM_PIN_FUNCTION(cri_trng1), 1495 MSM_PIN_FUNCTION(dac_calib0), 1496 MSM_PIN_FUNCTION(dac_calib1), 1497 MSM_PIN_FUNCTION(dac_calib10), 1498 MSM_PIN_FUNCTION(dac_calib11), 1499 MSM_PIN_FUNCTION(dac_calib12), 1500 MSM_PIN_FUNCTION(dac_calib13), 1501 MSM_PIN_FUNCTION(dac_calib14), 1502 MSM_PIN_FUNCTION(dac_calib15), 1503 MSM_PIN_FUNCTION(dac_calib16), 1504 MSM_PIN_FUNCTION(dac_calib17), 1505 MSM_PIN_FUNCTION(dac_calib18), 1506 MSM_PIN_FUNCTION(dac_calib19), 1507 MSM_PIN_FUNCTION(dac_calib2), 1508 MSM_PIN_FUNCTION(dac_calib20), 1509 MSM_PIN_FUNCTION(dac_calib21), 1510 MSM_PIN_FUNCTION(dac_calib22), 1511 MSM_PIN_FUNCTION(dac_calib23), 1512 MSM_PIN_FUNCTION(dac_calib24), 1513 MSM_PIN_FUNCTION(dac_calib25), 1514 MSM_PIN_FUNCTION(dac_calib26), 1515 MSM_PIN_FUNCTION(dac_calib3), 1516 MSM_PIN_FUNCTION(dac_calib4), 1517 MSM_PIN_FUNCTION(dac_calib5), 1518 MSM_PIN_FUNCTION(dac_calib6), 1519 MSM_PIN_FUNCTION(dac_calib7), 1520 MSM_PIN_FUNCTION(dac_calib8), 1521 MSM_PIN_FUNCTION(dac_calib9), 1522 MSM_PIN_FUNCTION(dac_gpio), 1523 MSM_PIN_FUNCTION(dbg_out), 1524 MSM_PIN_FUNCTION(ddr_bist), 1525 MSM_PIN_FUNCTION(edp_hot), 1526 MSM_PIN_FUNCTION(edp_lcd), 1527 MSM_PIN_FUNCTION(gcc_gp1_clk_a), 1528 MSM_PIN_FUNCTION(gcc_gp1_clk_b), 1529 MSM_PIN_FUNCTION(gcc_gp2_clk_a), 1530 MSM_PIN_FUNCTION(gcc_gp2_clk_b), 1531 MSM_PIN_FUNCTION(gcc_gp3_clk_a), 1532 MSM_PIN_FUNCTION(gcc_gp3_clk_b), 1533 MSM_GPIO_PIN_FUNCTION(gpio), 1534 MSM_PIN_FUNCTION(gsm_tx), 1535 MSM_PIN_FUNCTION(hdmi_cec), 1536 MSM_PIN_FUNCTION(hdmi_ddc), 1537 MSM_PIN_FUNCTION(hdmi_hot), 1538 MSM_PIN_FUNCTION(hdmi_rcv), 1539 MSM_PIN_FUNCTION(isense_dbg), 1540 MSM_PIN_FUNCTION(ldo_en), 1541 MSM_PIN_FUNCTION(ldo_update), 1542 MSM_PIN_FUNCTION(lpass_slimbus), 1543 MSM_PIN_FUNCTION(m_voc), 1544 MSM_PIN_FUNCTION(mdp_vsync), 1545 MSM_PIN_FUNCTION(mdp_vsync_p_b), 1546 MSM_PIN_FUNCTION(mdp_vsync_s_b), 1547 MSM_PIN_FUNCTION(modem_tsync), 1548 MSM_PIN_FUNCTION(mss_lte), 1549 MSM_PIN_FUNCTION(nav_dr), 1550 MSM_PIN_FUNCTION(nav_pps), 1551 MSM_PIN_FUNCTION(pa_indicator), 1552 MSM_PIN_FUNCTION(pci_e0), 1553 MSM_PIN_FUNCTION(pci_e1), 1554 MSM_PIN_FUNCTION(pci_e2), 1555 MSM_PIN_FUNCTION(pll_bypassnl), 1556 MSM_PIN_FUNCTION(pll_reset), 1557 MSM_PIN_FUNCTION(pri_mi2s), 1558 MSM_PIN_FUNCTION(prng_rosc), 1559 MSM_PIN_FUNCTION(pwr_crypto), 1560 MSM_PIN_FUNCTION(pwr_modem), 1561 MSM_PIN_FUNCTION(pwr_nav), 1562 MSM_PIN_FUNCTION(qdss_cti), 1563 MSM_PIN_FUNCTION(qdss_cti_trig_in_a), 1564 MSM_PIN_FUNCTION(qdss_cti_trig_in_b), 1565 MSM_PIN_FUNCTION(qdss_cti_trig_out_a), 1566 MSM_PIN_FUNCTION(qdss_cti_trig_out_b), 1567 MSM_PIN_FUNCTION(qdss_stm0), 1568 MSM_PIN_FUNCTION(qdss_stm1), 1569 MSM_PIN_FUNCTION(qdss_stm10), 1570 MSM_PIN_FUNCTION(qdss_stm11), 1571 MSM_PIN_FUNCTION(qdss_stm12), 1572 MSM_PIN_FUNCTION(qdss_stm13), 1573 MSM_PIN_FUNCTION(qdss_stm14), 1574 MSM_PIN_FUNCTION(qdss_stm15), 1575 MSM_PIN_FUNCTION(qdss_stm16), 1576 MSM_PIN_FUNCTION(qdss_stm17), 1577 MSM_PIN_FUNCTION(qdss_stm18), 1578 MSM_PIN_FUNCTION(qdss_stm19), 1579 MSM_PIN_FUNCTION(qdss_stm2), 1580 MSM_PIN_FUNCTION(qdss_stm20), 1581 MSM_PIN_FUNCTION(qdss_stm21), 1582 MSM_PIN_FUNCTION(qdss_stm22), 1583 MSM_PIN_FUNCTION(qdss_stm23), 1584 MSM_PIN_FUNCTION(qdss_stm24), 1585 MSM_PIN_FUNCTION(qdss_stm25), 1586 MSM_PIN_FUNCTION(qdss_stm26), 1587 MSM_PIN_FUNCTION(qdss_stm27), 1588 MSM_PIN_FUNCTION(qdss_stm28), 1589 MSM_PIN_FUNCTION(qdss_stm29), 1590 MSM_PIN_FUNCTION(qdss_stm3), 1591 MSM_PIN_FUNCTION(qdss_stm30), 1592 MSM_PIN_FUNCTION(qdss_stm31), 1593 MSM_PIN_FUNCTION(qdss_stm4), 1594 MSM_PIN_FUNCTION(qdss_stm5), 1595 MSM_PIN_FUNCTION(qdss_stm6), 1596 MSM_PIN_FUNCTION(qdss_stm7), 1597 MSM_PIN_FUNCTION(qdss_stm8), 1598 MSM_PIN_FUNCTION(qdss_stm9), 1599 MSM_PIN_FUNCTION(qdss_traceclk_a), 1600 MSM_PIN_FUNCTION(qdss_traceclk_b), 1601 MSM_PIN_FUNCTION(qdss_tracectl_a), 1602 MSM_PIN_FUNCTION(qdss_tracectl_b), 1603 MSM_PIN_FUNCTION(qdss_tracedata_11), 1604 MSM_PIN_FUNCTION(qdss_tracedata_12), 1605 MSM_PIN_FUNCTION(qdss_tracedata_a), 1606 MSM_PIN_FUNCTION(qdss_tracedata_b), 1607 MSM_PIN_FUNCTION(qspi0), 1608 MSM_PIN_FUNCTION(qspi1), 1609 MSM_PIN_FUNCTION(qspi2), 1610 MSM_PIN_FUNCTION(qspi3), 1611 MSM_PIN_FUNCTION(qspi_clk), 1612 MSM_PIN_FUNCTION(qspi_cs), 1613 MSM_PIN_FUNCTION(qua_mi2s), 1614 MSM_PIN_FUNCTION(sd_card), 1615 MSM_PIN_FUNCTION(sd_write), 1616 MSM_PIN_FUNCTION(sdc40), 1617 MSM_PIN_FUNCTION(sdc41), 1618 MSM_PIN_FUNCTION(sdc42), 1619 MSM_PIN_FUNCTION(sdc43), 1620 MSM_PIN_FUNCTION(sdc4_clk), 1621 MSM_PIN_FUNCTION(sdc4_cmd), 1622 MSM_PIN_FUNCTION(sec_mi2s), 1623 MSM_PIN_FUNCTION(spkr_i2s), 1624 MSM_PIN_FUNCTION(ssbi1), 1625 MSM_PIN_FUNCTION(ssbi2), 1626 MSM_PIN_FUNCTION(ssc_irq), 1627 MSM_PIN_FUNCTION(ter_mi2s), 1628 MSM_PIN_FUNCTION(tsense_pwm1), 1629 MSM_PIN_FUNCTION(tsense_pwm2), 1630 MSM_PIN_FUNCTION(tsif1_clk), 1631 MSM_PIN_FUNCTION(tsif1_data), 1632 MSM_PIN_FUNCTION(tsif1_en), 1633 MSM_PIN_FUNCTION(tsif1_error), 1634 MSM_PIN_FUNCTION(tsif1_sync), 1635 MSM_PIN_FUNCTION(tsif2_clk), 1636 MSM_PIN_FUNCTION(tsif2_data), 1637 MSM_PIN_FUNCTION(tsif2_en), 1638 MSM_PIN_FUNCTION(tsif2_error), 1639 MSM_PIN_FUNCTION(tsif2_sync), 1640 MSM_PIN_FUNCTION(uim1), 1641 MSM_PIN_FUNCTION(uim2), 1642 MSM_PIN_FUNCTION(uim3), 1643 MSM_PIN_FUNCTION(uim4), 1644 MSM_PIN_FUNCTION(uim_batt), 1645 MSM_PIN_FUNCTION(vfr_1), 1646 }; 1647 1648 static const struct msm_pingroup msm8996_groups[] = { 1649 PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA), 1650 PINGROUP(1, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA), 1651 PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA), 1652 PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, atest_tsens, 1653 bimc_dte1, NA, NA, NA), 1654 PINGROUP(4, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_out_b, 1655 dac_calib0, bimc_dte0, NA, NA), 1656 PINGROUP(5, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_in_b, 1657 dac_calib1, bimc_dte1, NA, NA), 1658 PINGROUP(6, blsp_spi8, blsp_uart8, blsp_i2c8, NA, dac_calib2, 1659 bimc_dte0, NA, NA, NA), 1660 PINGROUP(7, blsp_spi8, blsp_uart8, blsp_i2c8, NA, atest_tsens2, 1661 atest_usb1, NA, NA, NA), 1662 PINGROUP(8, blsp_spi10, blsp_uart10, blsp_uim10, NA, atest_bbrx1, 1663 atest_usb13, NA, NA, NA), 1664 PINGROUP(9, blsp_spi10, blsp_uart10, blsp_uim10, atest_bbrx0, 1665 atest_usb12, NA, NA, NA, NA), 1666 PINGROUP(10, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10, 1667 atest_gpsadc1, atest_usb11, NA, NA, NA), 1668 PINGROUP(11, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10, 1669 atest_gpsadc0, atest_usb10, NA, NA, NA), 1670 PINGROUP(12, mdp_vsync, m_voc, dac_gpio, atest_char, NA, NA, NA, NA, 1671 NA), 1672 PINGROUP(13, cam_mclk, pll_bypassnl, qdss_stm7, qdss_tracedata_b, NA, 1673 NA, NA, NA, NA), 1674 PINGROUP(14, cam_mclk, pll_reset, qdss_stm6, qdss_tracedata_b, NA, NA, 1675 NA, NA, NA), 1676 PINGROUP(15, cam_mclk, qdss_stm5, qdss_tracedata_b, NA, NA, NA, NA, NA, 1677 NA), 1678 PINGROUP(16, cam_mclk, qdss_stm4, qdss_tracedata_b, NA, atest_usb2, NA, 1679 NA, NA, NA), 1680 PINGROUP(17, cci_i2c, qdss_stm3, qdss_tracedata_b, dac_calib3, 1681 atest_usb23, atest_char3, NA, NA, NA), 1682 PINGROUP(18, cci_i2c, qdss_stm2, qdss_tracedata_b, dac_calib4, 1683 atest_usb22, atest_char2, NA, NA, NA), 1684 PINGROUP(19, cci_i2c, qdss_stm1, qdss_tracedata_b, dac_calib5, 1685 atest_usb21, atest_char1, NA, NA, NA), 1686 PINGROUP(20, cci_i2c, dbg_out, qdss_stm0, dac_calib6, atest_usb20, 1687 atest_char0, NA, NA, NA), 1688 PINGROUP(21, cci_timer0, qdss_stm13, qdss_tracedata_b, dac_calib7, NA, 1689 NA, NA, NA, NA), 1690 PINGROUP(22, cci_timer1, qdss_stm12, qdss_tracedata_b, dac_calib8, NA, 1691 NA, NA, NA, NA), 1692 PINGROUP(23, cci_timer2, blsp1_spi, qdss_stm11, qdss_tracedata_b, 1693 dac_calib9, NA, NA, NA, NA), 1694 PINGROUP(24, cci_timer3, cci_async, blsp1_spi, qdss_stm10, 1695 qdss_cti_trig_in_a, dac_calib10, NA, NA, NA), 1696 PINGROUP(25, cci_timer4, cci_async, blsp_spi6, blsp_uart6, blsp_uim6, 1697 blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11), 1698 PINGROUP(26, cci_async, blsp_spi6, blsp_uart6, blsp_uim6, qdss_stm8, 1699 qdss_tracedata_b, dac_calib12, NA, NA), 1700 PINGROUP(27, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi, 1701 qdss_tracectl_a, dac_calib13, NA, NA, NA), 1702 PINGROUP(28, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi, 1703 qdss_traceclk_a, dac_calib14, NA, NA, NA), 1704 PINGROUP(29, blsp2_spi, NA, qdss_tracedata_b, dac_calib15, NA, NA, NA, 1705 NA, NA), 1706 PINGROUP(30, hdmi_rcv, blsp2_spi, dac_calib16, NA, NA, NA, NA, NA, NA), 1707 PINGROUP(31, hdmi_cec, pwr_modem, dac_calib17, NA, NA, NA, NA, NA, NA), 1708 PINGROUP(32, hdmi_ddc, pwr_nav, NA, dac_calib18, NA, NA, NA, NA, NA), 1709 PINGROUP(33, hdmi_ddc, pwr_crypto, NA, dac_calib19, NA, NA, NA, NA, NA), 1710 PINGROUP(34, hdmi_hot, NA, dac_calib20, NA, NA, NA, NA, NA, NA), 1711 PINGROUP(35, pci_e0, NA, dac_calib21, NA, NA, NA, NA, NA, NA), 1712 PINGROUP(36, pci_e0, NA, dac_calib22, NA, NA, NA, NA, NA, NA), 1713 PINGROUP(37, NA, dac_calib23, NA, NA, NA, NA, NA, NA, NA), 1714 PINGROUP(38, NA, dac_calib24, NA, NA, NA, NA, NA, NA, NA), 1715 PINGROUP(39, tsif1_sync, NA, dac_calib25, NA, NA, NA, NA, NA, NA), 1716 PINGROUP(40, sd_write, tsif1_error, NA, NA, NA, NA, NA, NA, NA), 1717 PINGROUP(41, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti, 1718 dac_calib0, NA, NA, NA), 1719 PINGROUP(42, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti, 1720 dac_calib1, NA, NA, NA), 1721 PINGROUP(43, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib2, NA, NA, 1722 NA, NA), 1723 PINGROUP(44, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib3, NA, NA, 1724 NA, NA), 1725 PINGROUP(45, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib4, NA, NA, 1726 NA, NA), 1727 PINGROUP(46, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib5, NA, NA, 1728 NA, NA), 1729 PINGROUP(47, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib6, NA, NA, NA, 1730 NA, NA), 1731 PINGROUP(48, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib7, NA, NA, NA, 1732 NA, NA), 1733 PINGROUP(49, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, 1734 dac_calib8, NA, NA, NA), 1735 PINGROUP(50, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi, 1736 dac_calib9, NA, NA, NA), 1737 PINGROUP(51, uim3, blsp_spi9, blsp_uart9, blsp_i2c9, blsp10_spi, 1738 dac_calib10, NA, NA, NA), 1739 PINGROUP(52, uim3, blsp_spi9, blsp_uart9, blsp_i2c9, 1740 blsp10_spi, dac_calib11, NA, NA, NA), 1741 PINGROUP(53, blsp_spi7, blsp_uart7, blsp_uim7, NA, qdss_tracedata_a, 1742 dac_calib12, NA, NA, NA), 1743 PINGROUP(54, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA, 1744 qdss_tracedata_a, dac_calib13, NA, NA), 1745 PINGROUP(55, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib14, NA, NA, 1746 NA, NA), 1747 PINGROUP(56, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib15, NA, NA, 1748 NA, NA), 1749 PINGROUP(57, qua_mi2s, gcc_gp1_clk_a, NA, qdss_tracedata_b, 1750 dac_calib16, NA, NA, NA, NA), 1751 PINGROUP(58, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11, 1752 gcc_gp2_clk_a, NA, qdss_tracedata_b, dac_calib17), 1753 PINGROUP(59, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11, 1754 gcc_gp3_clk_a, NA, dac_calib18, NA), 1755 PINGROUP(60, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_i2c11, 1756 cri_trng0, NA, dac_calib19, NA), 1757 PINGROUP(61, qua_mi2s, uim4, blsp_spi11, blsp_uart11, 1758 blsp_i2c11, cri_trng1, NA, dac_calib20, NA), 1759 PINGROUP(62, qua_mi2s, cri_trng, NA, dac_calib21, NA, NA, NA, NA, NA), 1760 PINGROUP(63, qua_mi2s, NA, NA, qdss_stm18, qdss_tracedata_a, 1761 dac_calib22, NA, NA, NA), 1762 PINGROUP(64, pri_mi2s, NA, qdss_stm17, qdss_tracedata_a, dac_calib23, 1763 NA, NA, NA, NA), 1764 PINGROUP(65, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA, 1765 qdss_stm16, qdss_tracedata_a, dac_calib24, NA), 1766 PINGROUP(66, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA, 1767 qdss_stm15, qdss_tracedata_a, dac_calib25, NA), 1768 PINGROUP(67, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, qdss_stm14, 1769 qdss_tracedata_a, dac_calib26, NA, NA), 1770 PINGROUP(68, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA, 1771 NA, NA), 1772 PINGROUP(69, spkr_i2s, audio_ref, NA, NA, NA, NA, NA, NA, NA), 1773 PINGROUP(70, lpass_slimbus, spkr_i2s, isense_dbg, NA, NA, NA, NA, NA, 1774 NA), 1775 PINGROUP(71, lpass_slimbus, spkr_i2s, tsense_pwm1, tsense_pwm2, NA, NA, 1776 NA, NA, NA), 1777 PINGROUP(72, lpass_slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA), 1778 PINGROUP(73, btfm_slimbus, NA, NA, NA, NA, NA, NA, NA, NA), 1779 PINGROUP(74, btfm_slimbus, ter_mi2s, qdss_stm22, qdss_tracedata_a, NA, 1780 NA, NA, NA, NA), 1781 PINGROUP(75, ter_mi2s, qdss_stm21, qdss_tracedata_a, NA, NA, NA, NA, 1782 NA, NA), 1783 PINGROUP(76, ter_mi2s, qdss_stm20, qdss_tracedata_a, NA, NA, NA, NA, 1784 NA, NA), 1785 PINGROUP(77, ter_mi2s, qdss_stm19, qdss_tracedata_a, NA, NA, NA, NA, 1786 NA, NA), 1787 PINGROUP(78, ter_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA), 1788 PINGROUP(79, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 1789 PINGROUP(80, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA), 1790 PINGROUP(81, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b, 1791 NA, NA, NA, NA), 1792 PINGROUP(82, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp3_clk_b, 1793 NA, NA, NA, NA), 1794 PINGROUP(83, sec_mi2s, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, 1795 NA, NA), 1796 PINGROUP(84, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA), 1797 PINGROUP(85, blsp_spi12, blsp_uart12, blsp_uim12, NA, qdss_stm25, 1798 qdss_tracedata_a, NA, NA, NA), 1799 PINGROUP(86, blsp_spi12, blsp_uart12, blsp_uim12, NA, NA, qdss_stm31, 1800 qdss_tracedata_a, NA, NA), 1801 PINGROUP(87, blsp_spi12, blsp_uart12, blsp_i2c12, NA, qdss_stm30, 1802 qdss_tracedata_a, NA, NA, NA), 1803 PINGROUP(88, blsp_spi12, blsp_uart12, blsp_i2c12, blsp10_spi, NA, 1804 qdss_stm29, NA, NA, NA), 1805 PINGROUP(89, tsif1_clk, qdss_stm28, qdss_tracedata_a, NA, NA, NA, NA, 1806 NA, NA), 1807 PINGROUP(90, tsif1_en, blsp1_spi, qdss_tracedata_a, NA, NA, NA, NA, NA, 1808 NA), 1809 PINGROUP(91, tsif1_data, sdc4_cmd, qdss_stm27, qdss_traceclk_b, NA, NA, 1810 NA, NA, NA), 1811 PINGROUP(92, tsif2_error, sdc43, vfr_1, qdss_stm26, qdss_tracedata_b, 1812 NA, NA, NA, NA), 1813 PINGROUP(93, tsif2_clk, sdc4_clk, NA, qdss_stm24, qdss_tracedata_b, NA, 1814 NA, NA, NA), 1815 PINGROUP(94, tsif2_en, sdc42, NA, qdss_stm23, qdss_tracectl_b, NA, NA, 1816 NA, NA), 1817 PINGROUP(95, tsif2_data, sdc41, NA, NA, NA, NA, NA, NA, NA), 1818 PINGROUP(96, tsif2_sync, sdc40, NA, NA, NA, NA, NA, NA, NA), 1819 PINGROUP(97, NA, NA, mdp_vsync_p_b, ldo_en, NA, NA, NA, NA, NA), 1820 PINGROUP(98, NA, NA, mdp_vsync_s_b, ldo_update, NA, NA, NA, NA, NA), 1821 PINGROUP(99, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1822 PINGROUP(100, NA, NA, blsp11_uart_tx_b, qdss_cti, NA, NA, NA, NA, NA), 1823 PINGROUP(101, NA, blsp11_uart_rx_b, qdss_cti, NA, NA, NA, NA, NA, NA), 1824 PINGROUP(102, NA, blsp11_i2c_sda_b, prng_rosc, NA, NA, NA, NA, NA, NA), 1825 PINGROUP(103, NA, blsp11_i2c_scl_b, NA, NA, NA, NA, NA, NA, NA), 1826 PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1827 PINGROUP(105, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 1828 PINGROUP(106, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 1829 PINGROUP(107, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 1830 PINGROUP(108, uim2, NA, NA, NA, NA, NA, NA, NA, NA), 1831 PINGROUP(109, uim1, NA, NA, NA, NA, NA, NA, NA, NA), 1832 PINGROUP(110, uim1, NA, NA, NA, NA, NA, NA, NA, NA), 1833 PINGROUP(111, uim1, NA, NA, NA, NA, NA, NA, NA, NA), 1834 PINGROUP(112, uim1, NA, NA, NA, NA, NA, NA, NA, NA), 1835 PINGROUP(113, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA), 1836 PINGROUP(114, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA), 1837 PINGROUP(115, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA), 1838 PINGROUP(116, NA, pa_indicator, NA, NA, NA, NA, NA, NA, NA), 1839 PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1840 PINGROUP(118, adsp_ext, NA, NA, NA, NA, NA, NA, NA, NA), 1841 PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1842 PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1843 PINGROUP(121, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA), 1844 PINGROUP(122, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA), 1845 PINGROUP(123, ddr_bist, qdss_tracedata_11, NA, NA, NA, NA, NA, NA, NA), 1846 PINGROUP(124, ddr_bist, qdss_tracedata_12, NA, NA, NA, NA, NA, NA, NA), 1847 PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1848 PINGROUP(126, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1849 PINGROUP(127, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1850 PINGROUP(128, NA, modem_tsync, nav_dr, nav_pps, NA, NA, NA, NA, NA), 1851 PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1852 PINGROUP(130, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA), 1853 PINGROUP(131, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA), 1854 PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1855 PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1856 PINGROUP(134, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA), 1857 PINGROUP(135, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA), 1858 PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1859 PINGROUP(137, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1860 PINGROUP(138, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA), 1861 PINGROUP(139, NA, ssbi2, NA, NA, NA, NA, NA, NA, NA), 1862 PINGROUP(140, NA, ssbi1, NA, NA, NA, NA, NA, NA, NA), 1863 PINGROUP(141, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA), 1864 PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1865 PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA), 1866 PINGROUP(144, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA), 1867 PINGROUP(145, mss_lte, qspi_clk, NA, NA, NA, NA, NA, NA, NA), 1868 PINGROUP(146, NA, qspi0, NA, NA, NA, NA, NA, NA, NA), 1869 PINGROUP(147, NA, qspi1, NA, NA, NA, NA, NA, NA, NA), 1870 PINGROUP(148, NA, qspi2, NA, NA, NA, NA, NA, NA, NA), 1871 PINGROUP(149, NA, qspi3, NA, NA, NA, NA, NA, NA, NA), 1872 SDC_QDSD_PINGROUP(sdc1_clk, 0x12c000, 13, 6), 1873 SDC_QDSD_PINGROUP(sdc1_cmd, 0x12c000, 11, 3), 1874 SDC_QDSD_PINGROUP(sdc1_data, 0x12c000, 9, 0), 1875 SDC_QDSD_PINGROUP(sdc2_clk, 0x12d000, 14, 6), 1876 SDC_QDSD_PINGROUP(sdc2_cmd, 0x12d000, 11, 3), 1877 SDC_QDSD_PINGROUP(sdc2_data, 0x12d000, 9, 0), 1878 SDC_QDSD_PINGROUP(sdc1_rclk, 0x12c000, 15, 0), 1879 }; 1880 1881 static const struct msm_gpio_wakeirq_map msm8996_mpm_map[] = { 1882 { 1, 3 }, { 5, 4 }, { 9, 5 }, { 11, 6 }, { 66, 7 }, { 22, 8 }, { 24, 9 }, { 26, 10 }, 1883 { 34, 11 }, { 36, 12 }, { 37, 13 }, { 38, 14 }, { 40, 15 }, { 42, 16 }, { 46, 17 }, 1884 { 50, 18 }, { 53, 19 }, { 54, 20 }, { 56, 21 }, { 57, 22 }, { 58, 23 }, { 59, 24 }, 1885 { 60, 25 }, { 61, 26 }, { 62, 27 }, { 63, 28 }, { 64, 29 }, { 71, 30 }, { 73, 31 }, 1886 { 77, 32 }, { 78, 33 }, { 79, 34 }, { 80, 35 }, { 82, 36 }, { 86, 37 }, { 91, 38 }, 1887 { 92, 39 }, { 95, 40 }, { 97, 41 }, { 101, 42 }, { 104, 43 }, { 106, 44 }, { 108, 45 }, 1888 { 112, 46 }, { 113, 47 }, { 110, 48 }, { 127, 50 }, { 115, 51 }, { 116, 54 }, { 117, 55 }, 1889 { 118, 56 }, { 119, 57 }, { 120, 58 }, { 121, 59 }, { 122, 60 }, { 123, 61 }, { 124, 62 }, 1890 { 125, 63 }, { 126, 64 }, { 129, 65 }, { 131, 66 }, { 132, 67 }, { 133, 68 }, { 145, 69 }, 1891 }; 1892 1893 static const struct msm_pinctrl_soc_data msm8996_pinctrl = { 1894 .pins = msm8996_pins, 1895 .npins = ARRAY_SIZE(msm8996_pins), 1896 .functions = msm8996_functions, 1897 .nfunctions = ARRAY_SIZE(msm8996_functions), 1898 .groups = msm8996_groups, 1899 .ngroups = ARRAY_SIZE(msm8996_groups), 1900 .ngpios = 150, 1901 .wakeirq_map = msm8996_mpm_map, 1902 .nwakeirq_map = ARRAY_SIZE(msm8996_mpm_map), 1903 }; 1904 1905 static int msm8996_pinctrl_probe(struct platform_device *pdev) 1906 { 1907 return msm_pinctrl_probe(pdev, &msm8996_pinctrl); 1908 } 1909 1910 static const struct of_device_id msm8996_pinctrl_of_match[] = { 1911 { .compatible = "qcom,msm8996-pinctrl", }, 1912 { } 1913 }; 1914 1915 static struct platform_driver msm8996_pinctrl_driver = { 1916 .driver = { 1917 .name = "msm8996-pinctrl", 1918 .of_match_table = msm8996_pinctrl_of_match, 1919 }, 1920 .probe = msm8996_pinctrl_probe, 1921 }; 1922 1923 static int __init msm8996_pinctrl_init(void) 1924 { 1925 return platform_driver_register(&msm8996_pinctrl_driver); 1926 } 1927 arch_initcall(msm8996_pinctrl_init); 1928 1929 static void __exit msm8996_pinctrl_exit(void) 1930 { 1931 platform_driver_unregister(&msm8996_pinctrl_driver); 1932 } 1933 module_exit(msm8996_pinctrl_exit); 1934 1935 MODULE_DESCRIPTION("Qualcomm msm8996 pinctrl driver"); 1936 MODULE_LICENSE("GPL v2"); 1937 MODULE_DEVICE_TABLE(of, msm8996_pinctrl_of_match); 1938