1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Copyright (c) 2024, 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 static const struct pinctrl_pin_desc msm8917_pins[] = { 13 PINCTRL_PIN(0, "GPIO_0"), 14 PINCTRL_PIN(1, "GPIO_1"), 15 PINCTRL_PIN(2, "GPIO_2"), 16 PINCTRL_PIN(3, "GPIO_3"), 17 PINCTRL_PIN(4, "GPIO_4"), 18 PINCTRL_PIN(5, "GPIO_5"), 19 PINCTRL_PIN(6, "GPIO_6"), 20 PINCTRL_PIN(7, "GPIO_7"), 21 PINCTRL_PIN(8, "GPIO_8"), 22 PINCTRL_PIN(9, "GPIO_9"), 23 PINCTRL_PIN(10, "GPIO_10"), 24 PINCTRL_PIN(11, "GPIO_11"), 25 PINCTRL_PIN(12, "GPIO_12"), 26 PINCTRL_PIN(13, "GPIO_13"), 27 PINCTRL_PIN(14, "GPIO_14"), 28 PINCTRL_PIN(15, "GPIO_15"), 29 PINCTRL_PIN(16, "GPIO_16"), 30 PINCTRL_PIN(17, "GPIO_17"), 31 PINCTRL_PIN(18, "GPIO_18"), 32 PINCTRL_PIN(19, "GPIO_19"), 33 PINCTRL_PIN(20, "GPIO_20"), 34 PINCTRL_PIN(21, "GPIO_21"), 35 PINCTRL_PIN(22, "GPIO_22"), 36 PINCTRL_PIN(23, "GPIO_23"), 37 PINCTRL_PIN(24, "GPIO_24"), 38 PINCTRL_PIN(25, "GPIO_25"), 39 PINCTRL_PIN(26, "GPIO_26"), 40 PINCTRL_PIN(27, "GPIO_27"), 41 PINCTRL_PIN(28, "GPIO_28"), 42 PINCTRL_PIN(29, "GPIO_29"), 43 PINCTRL_PIN(30, "GPIO_30"), 44 PINCTRL_PIN(31, "GPIO_31"), 45 PINCTRL_PIN(32, "GPIO_32"), 46 PINCTRL_PIN(33, "GPIO_33"), 47 PINCTRL_PIN(34, "GPIO_34"), 48 PINCTRL_PIN(35, "GPIO_35"), 49 PINCTRL_PIN(36, "GPIO_36"), 50 PINCTRL_PIN(37, "GPIO_37"), 51 PINCTRL_PIN(38, "GPIO_38"), 52 PINCTRL_PIN(39, "GPIO_39"), 53 PINCTRL_PIN(40, "GPIO_40"), 54 PINCTRL_PIN(41, "GPIO_41"), 55 PINCTRL_PIN(42, "GPIO_42"), 56 PINCTRL_PIN(43, "GPIO_43"), 57 PINCTRL_PIN(44, "GPIO_44"), 58 PINCTRL_PIN(45, "GPIO_45"), 59 PINCTRL_PIN(46, "GPIO_46"), 60 PINCTRL_PIN(47, "GPIO_47"), 61 PINCTRL_PIN(48, "GPIO_48"), 62 PINCTRL_PIN(49, "GPIO_49"), 63 PINCTRL_PIN(50, "GPIO_50"), 64 PINCTRL_PIN(51, "GPIO_51"), 65 PINCTRL_PIN(52, "GPIO_52"), 66 PINCTRL_PIN(53, "GPIO_53"), 67 PINCTRL_PIN(54, "GPIO_54"), 68 PINCTRL_PIN(55, "GPIO_55"), 69 PINCTRL_PIN(56, "GPIO_56"), 70 PINCTRL_PIN(57, "GPIO_57"), 71 PINCTRL_PIN(58, "GPIO_58"), 72 PINCTRL_PIN(59, "GPIO_59"), 73 PINCTRL_PIN(60, "GPIO_60"), 74 PINCTRL_PIN(61, "GPIO_61"), 75 PINCTRL_PIN(62, "GPIO_62"), 76 PINCTRL_PIN(63, "GPIO_63"), 77 PINCTRL_PIN(64, "GPIO_64"), 78 PINCTRL_PIN(65, "GPIO_65"), 79 PINCTRL_PIN(66, "GPIO_66"), 80 PINCTRL_PIN(67, "GPIO_67"), 81 PINCTRL_PIN(68, "GPIO_68"), 82 PINCTRL_PIN(69, "GPIO_69"), 83 PINCTRL_PIN(70, "GPIO_70"), 84 PINCTRL_PIN(71, "GPIO_71"), 85 PINCTRL_PIN(72, "GPIO_72"), 86 PINCTRL_PIN(73, "GPIO_73"), 87 PINCTRL_PIN(74, "GPIO_74"), 88 PINCTRL_PIN(75, "GPIO_75"), 89 PINCTRL_PIN(76, "GPIO_76"), 90 PINCTRL_PIN(77, "GPIO_77"), 91 PINCTRL_PIN(78, "GPIO_78"), 92 PINCTRL_PIN(79, "GPIO_79"), 93 PINCTRL_PIN(80, "GPIO_80"), 94 PINCTRL_PIN(81, "GPIO_81"), 95 PINCTRL_PIN(82, "GPIO_82"), 96 PINCTRL_PIN(83, "GPIO_83"), 97 PINCTRL_PIN(84, "GPIO_84"), 98 PINCTRL_PIN(85, "GPIO_85"), 99 PINCTRL_PIN(86, "GPIO_86"), 100 PINCTRL_PIN(87, "GPIO_87"), 101 PINCTRL_PIN(88, "GPIO_88"), 102 PINCTRL_PIN(89, "GPIO_89"), 103 PINCTRL_PIN(90, "GPIO_90"), 104 PINCTRL_PIN(91, "GPIO_91"), 105 PINCTRL_PIN(92, "GPIO_92"), 106 PINCTRL_PIN(93, "GPIO_93"), 107 PINCTRL_PIN(94, "GPIO_94"), 108 PINCTRL_PIN(95, "GPIO_95"), 109 PINCTRL_PIN(96, "GPIO_96"), 110 PINCTRL_PIN(97, "GPIO_97"), 111 PINCTRL_PIN(98, "GPIO_98"), 112 PINCTRL_PIN(99, "GPIO_99"), 113 PINCTRL_PIN(100, "GPIO_100"), 114 PINCTRL_PIN(101, "GPIO_101"), 115 PINCTRL_PIN(102, "GPIO_102"), 116 PINCTRL_PIN(103, "GPIO_103"), 117 PINCTRL_PIN(104, "GPIO_104"), 118 PINCTRL_PIN(105, "GPIO_105"), 119 PINCTRL_PIN(106, "GPIO_106"), 120 PINCTRL_PIN(107, "GPIO_107"), 121 PINCTRL_PIN(108, "GPIO_108"), 122 PINCTRL_PIN(109, "GPIO_109"), 123 PINCTRL_PIN(110, "GPIO_110"), 124 PINCTRL_PIN(111, "GPIO_111"), 125 PINCTRL_PIN(112, "GPIO_112"), 126 PINCTRL_PIN(113, "GPIO_113"), 127 PINCTRL_PIN(114, "GPIO_114"), 128 PINCTRL_PIN(115, "GPIO_115"), 129 PINCTRL_PIN(116, "GPIO_116"), 130 PINCTRL_PIN(117, "GPIO_117"), 131 PINCTRL_PIN(118, "GPIO_118"), 132 PINCTRL_PIN(119, "GPIO_119"), 133 PINCTRL_PIN(120, "GPIO_120"), 134 PINCTRL_PIN(121, "GPIO_121"), 135 PINCTRL_PIN(122, "GPIO_122"), 136 PINCTRL_PIN(123, "GPIO_123"), 137 PINCTRL_PIN(124, "GPIO_124"), 138 PINCTRL_PIN(125, "GPIO_125"), 139 PINCTRL_PIN(126, "GPIO_126"), 140 PINCTRL_PIN(127, "GPIO_127"), 141 PINCTRL_PIN(128, "GPIO_128"), 142 PINCTRL_PIN(129, "GPIO_129"), 143 PINCTRL_PIN(130, "GPIO_130"), 144 PINCTRL_PIN(131, "GPIO_131"), 145 PINCTRL_PIN(132, "GPIO_132"), 146 PINCTRL_PIN(133, "GPIO_133"), 147 PINCTRL_PIN(134, "SDC1_CLK"), 148 PINCTRL_PIN(135, "SDC1_CMD"), 149 PINCTRL_PIN(136, "SDC1_DATA"), 150 PINCTRL_PIN(137, "SDC1_RCLK"), 151 PINCTRL_PIN(138, "SDC2_CLK"), 152 PINCTRL_PIN(139, "SDC2_CMD"), 153 PINCTRL_PIN(140, "SDC2_DATA"), 154 PINCTRL_PIN(141, "QDSD_CLK"), 155 PINCTRL_PIN(142, "QDSD_CMD"), 156 PINCTRL_PIN(143, "QDSD_DATA0"), 157 PINCTRL_PIN(144, "QDSD_DATA1"), 158 PINCTRL_PIN(145, "QDSD_DATA2"), 159 PINCTRL_PIN(146, "QDSD_DATA3"), 160 }; 161 162 #define DECLARE_MSM_GPIO_PINS(pin) \ 163 static const unsigned int gpio##pin##_pins[] = { pin } 164 165 DECLARE_MSM_GPIO_PINS(0); 166 DECLARE_MSM_GPIO_PINS(1); 167 DECLARE_MSM_GPIO_PINS(2); 168 DECLARE_MSM_GPIO_PINS(3); 169 DECLARE_MSM_GPIO_PINS(4); 170 DECLARE_MSM_GPIO_PINS(5); 171 DECLARE_MSM_GPIO_PINS(6); 172 DECLARE_MSM_GPIO_PINS(7); 173 DECLARE_MSM_GPIO_PINS(8); 174 DECLARE_MSM_GPIO_PINS(9); 175 DECLARE_MSM_GPIO_PINS(10); 176 DECLARE_MSM_GPIO_PINS(11); 177 DECLARE_MSM_GPIO_PINS(12); 178 DECLARE_MSM_GPIO_PINS(13); 179 DECLARE_MSM_GPIO_PINS(14); 180 DECLARE_MSM_GPIO_PINS(15); 181 DECLARE_MSM_GPIO_PINS(16); 182 DECLARE_MSM_GPIO_PINS(17); 183 DECLARE_MSM_GPIO_PINS(18); 184 DECLARE_MSM_GPIO_PINS(19); 185 DECLARE_MSM_GPIO_PINS(20); 186 DECLARE_MSM_GPIO_PINS(21); 187 DECLARE_MSM_GPIO_PINS(22); 188 DECLARE_MSM_GPIO_PINS(23); 189 DECLARE_MSM_GPIO_PINS(24); 190 DECLARE_MSM_GPIO_PINS(25); 191 DECLARE_MSM_GPIO_PINS(26); 192 DECLARE_MSM_GPIO_PINS(27); 193 DECLARE_MSM_GPIO_PINS(28); 194 DECLARE_MSM_GPIO_PINS(29); 195 DECLARE_MSM_GPIO_PINS(30); 196 DECLARE_MSM_GPIO_PINS(31); 197 DECLARE_MSM_GPIO_PINS(32); 198 DECLARE_MSM_GPIO_PINS(33); 199 DECLARE_MSM_GPIO_PINS(34); 200 DECLARE_MSM_GPIO_PINS(35); 201 DECLARE_MSM_GPIO_PINS(36); 202 DECLARE_MSM_GPIO_PINS(37); 203 DECLARE_MSM_GPIO_PINS(38); 204 DECLARE_MSM_GPIO_PINS(39); 205 DECLARE_MSM_GPIO_PINS(40); 206 DECLARE_MSM_GPIO_PINS(41); 207 DECLARE_MSM_GPIO_PINS(42); 208 DECLARE_MSM_GPIO_PINS(43); 209 DECLARE_MSM_GPIO_PINS(44); 210 DECLARE_MSM_GPIO_PINS(45); 211 DECLARE_MSM_GPIO_PINS(46); 212 DECLARE_MSM_GPIO_PINS(47); 213 DECLARE_MSM_GPIO_PINS(48); 214 DECLARE_MSM_GPIO_PINS(49); 215 DECLARE_MSM_GPIO_PINS(50); 216 DECLARE_MSM_GPIO_PINS(51); 217 DECLARE_MSM_GPIO_PINS(52); 218 DECLARE_MSM_GPIO_PINS(53); 219 DECLARE_MSM_GPIO_PINS(54); 220 DECLARE_MSM_GPIO_PINS(55); 221 DECLARE_MSM_GPIO_PINS(56); 222 DECLARE_MSM_GPIO_PINS(57); 223 DECLARE_MSM_GPIO_PINS(58); 224 DECLARE_MSM_GPIO_PINS(59); 225 DECLARE_MSM_GPIO_PINS(60); 226 DECLARE_MSM_GPIO_PINS(61); 227 DECLARE_MSM_GPIO_PINS(62); 228 DECLARE_MSM_GPIO_PINS(63); 229 DECLARE_MSM_GPIO_PINS(64); 230 DECLARE_MSM_GPIO_PINS(65); 231 DECLARE_MSM_GPIO_PINS(66); 232 DECLARE_MSM_GPIO_PINS(67); 233 DECLARE_MSM_GPIO_PINS(68); 234 DECLARE_MSM_GPIO_PINS(69); 235 DECLARE_MSM_GPIO_PINS(70); 236 DECLARE_MSM_GPIO_PINS(71); 237 DECLARE_MSM_GPIO_PINS(72); 238 DECLARE_MSM_GPIO_PINS(73); 239 DECLARE_MSM_GPIO_PINS(74); 240 DECLARE_MSM_GPIO_PINS(75); 241 DECLARE_MSM_GPIO_PINS(76); 242 DECLARE_MSM_GPIO_PINS(77); 243 DECLARE_MSM_GPIO_PINS(78); 244 DECLARE_MSM_GPIO_PINS(79); 245 DECLARE_MSM_GPIO_PINS(80); 246 DECLARE_MSM_GPIO_PINS(81); 247 DECLARE_MSM_GPIO_PINS(82); 248 DECLARE_MSM_GPIO_PINS(83); 249 DECLARE_MSM_GPIO_PINS(84); 250 DECLARE_MSM_GPIO_PINS(85); 251 DECLARE_MSM_GPIO_PINS(86); 252 DECLARE_MSM_GPIO_PINS(87); 253 DECLARE_MSM_GPIO_PINS(88); 254 DECLARE_MSM_GPIO_PINS(89); 255 DECLARE_MSM_GPIO_PINS(90); 256 DECLARE_MSM_GPIO_PINS(91); 257 DECLARE_MSM_GPIO_PINS(92); 258 DECLARE_MSM_GPIO_PINS(93); 259 DECLARE_MSM_GPIO_PINS(94); 260 DECLARE_MSM_GPIO_PINS(95); 261 DECLARE_MSM_GPIO_PINS(96); 262 DECLARE_MSM_GPIO_PINS(97); 263 DECLARE_MSM_GPIO_PINS(98); 264 DECLARE_MSM_GPIO_PINS(99); 265 DECLARE_MSM_GPIO_PINS(100); 266 DECLARE_MSM_GPIO_PINS(101); 267 DECLARE_MSM_GPIO_PINS(102); 268 DECLARE_MSM_GPIO_PINS(103); 269 DECLARE_MSM_GPIO_PINS(104); 270 DECLARE_MSM_GPIO_PINS(105); 271 DECLARE_MSM_GPIO_PINS(106); 272 DECLARE_MSM_GPIO_PINS(107); 273 DECLARE_MSM_GPIO_PINS(108); 274 DECLARE_MSM_GPIO_PINS(109); 275 DECLARE_MSM_GPIO_PINS(110); 276 DECLARE_MSM_GPIO_PINS(111); 277 DECLARE_MSM_GPIO_PINS(112); 278 DECLARE_MSM_GPIO_PINS(113); 279 DECLARE_MSM_GPIO_PINS(114); 280 DECLARE_MSM_GPIO_PINS(115); 281 DECLARE_MSM_GPIO_PINS(116); 282 DECLARE_MSM_GPIO_PINS(117); 283 DECLARE_MSM_GPIO_PINS(118); 284 DECLARE_MSM_GPIO_PINS(119); 285 DECLARE_MSM_GPIO_PINS(120); 286 DECLARE_MSM_GPIO_PINS(121); 287 DECLARE_MSM_GPIO_PINS(122); 288 DECLARE_MSM_GPIO_PINS(123); 289 DECLARE_MSM_GPIO_PINS(124); 290 DECLARE_MSM_GPIO_PINS(125); 291 DECLARE_MSM_GPIO_PINS(126); 292 DECLARE_MSM_GPIO_PINS(127); 293 DECLARE_MSM_GPIO_PINS(128); 294 DECLARE_MSM_GPIO_PINS(129); 295 DECLARE_MSM_GPIO_PINS(130); 296 DECLARE_MSM_GPIO_PINS(131); 297 DECLARE_MSM_GPIO_PINS(132); 298 DECLARE_MSM_GPIO_PINS(133); 299 300 static const unsigned int sdc1_clk_pins[] = { 134 }; 301 static const unsigned int sdc1_cmd_pins[] = { 135 }; 302 static const unsigned int sdc1_data_pins[] = { 136 }; 303 static const unsigned int sdc1_rclk_pins[] = { 137 }; 304 static const unsigned int sdc2_clk_pins[] = { 138 }; 305 static const unsigned int sdc2_cmd_pins[] = { 139 }; 306 static const unsigned int sdc2_data_pins[] = { 140 }; 307 static const unsigned int qdsd_clk_pins[] = { 141 }; 308 static const unsigned int qdsd_cmd_pins[] = { 142 }; 309 static const unsigned int qdsd_data0_pins[] = { 143 }; 310 static const unsigned int qdsd_data1_pins[] = { 144 }; 311 static const unsigned int qdsd_data2_pins[] = { 145 }; 312 static const unsigned int qdsd_data3_pins[] = { 146 }; 313 314 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 315 { \ 316 .grp = PINCTRL_PINGROUP("gpio" #id, \ 317 gpio##id##_pins, \ 318 ARRAY_SIZE(gpio##id##_pins)), \ 319 .funcs = (int[]){ \ 320 msm_mux_gpio, \ 321 msm_mux_##f1, \ 322 msm_mux_##f2, \ 323 msm_mux_##f3, \ 324 msm_mux_##f4, \ 325 msm_mux_##f5, \ 326 msm_mux_##f6, \ 327 msm_mux_##f7, \ 328 msm_mux_##f8, \ 329 msm_mux_##f9 \ 330 }, \ 331 .nfuncs = 10, \ 332 .ctl_reg = 0x1000 * id, \ 333 .io_reg = 0x4 + 0x1000 * id, \ 334 .intr_cfg_reg = 0x8 + 0x1000 * id, \ 335 .intr_status_reg = 0xc + 0x1000 * id, \ 336 .mux_bit = 2, \ 337 .pull_bit = 0, \ 338 .drv_bit = 6, \ 339 .oe_bit = 9, \ 340 .in_bit = 0, \ 341 .out_bit = 1, \ 342 .intr_enable_bit = 0, \ 343 .intr_status_bit = 0, \ 344 .intr_target_bit = 5, \ 345 .intr_target_kpss_val = 4, \ 346 .intr_raw_status_bit = 4, \ 347 .intr_polarity_bit = 1, \ 348 .intr_detection_bit = 2, \ 349 .intr_detection_width = 2, \ 350 } 351 352 #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ 353 { \ 354 .grp = PINCTRL_PINGROUP(#pg_name, \ 355 pg_name##_pins, \ 356 ARRAY_SIZE(pg_name##_pins)), \ 357 .ctl_reg = ctl, \ 358 .io_reg = 0, \ 359 .intr_cfg_reg = 0, \ 360 .intr_status_reg = 0, \ 361 .mux_bit = -1, \ 362 .pull_bit = pull, \ 363 .drv_bit = drv, \ 364 .oe_bit = -1, \ 365 .in_bit = -1, \ 366 .out_bit = -1, \ 367 .intr_enable_bit = -1, \ 368 .intr_status_bit = -1, \ 369 .intr_target_bit = -1, \ 370 .intr_target_kpss_val = -1, \ 371 .intr_raw_status_bit = -1, \ 372 .intr_polarity_bit = -1, \ 373 .intr_detection_bit = -1, \ 374 .intr_detection_width = -1, \ 375 } 376 377 enum msm8917_functions { 378 msm_mux_accel_int, 379 msm_mux_adsp_ext, 380 msm_mux_alsp_int, 381 msm_mux_atest_bbrx0, 382 msm_mux_atest_bbrx1, 383 msm_mux_atest_char, 384 msm_mux_atest_char0, 385 msm_mux_atest_char1, 386 msm_mux_atest_char2, 387 msm_mux_atest_char3, 388 msm_mux_atest_combodac_to_gpio_native, 389 msm_mux_atest_gpsadc_dtest0_native, 390 msm_mux_atest_gpsadc_dtest1_native, 391 msm_mux_atest_tsens, 392 msm_mux_atest_wlan0, 393 msm_mux_atest_wlan1, 394 msm_mux_audio_ref, 395 msm_mux_audio_reset, 396 msm_mux_bimc_dte0, 397 msm_mux_bimc_dte1, 398 msm_mux_blsp6_spi, 399 msm_mux_blsp8_spi, 400 msm_mux_blsp_i2c1, 401 msm_mux_blsp_i2c2, 402 msm_mux_blsp_i2c3, 403 msm_mux_blsp_i2c4, 404 msm_mux_blsp_i2c5, 405 msm_mux_blsp_i2c6, 406 msm_mux_blsp_i2c7, 407 msm_mux_blsp_i2c8, 408 msm_mux_blsp_spi1, 409 msm_mux_blsp_spi2, 410 msm_mux_blsp_spi3, 411 msm_mux_blsp_spi4, 412 msm_mux_blsp_spi5, 413 msm_mux_blsp_spi6, 414 msm_mux_blsp_spi7, 415 msm_mux_blsp_spi8, 416 msm_mux_blsp_uart1, 417 msm_mux_blsp_uart2, 418 msm_mux_blsp_uart3, 419 msm_mux_blsp_uart4, 420 msm_mux_blsp_uart5, 421 msm_mux_blsp_uart6, 422 msm_mux_blsp_uart7, 423 msm_mux_blsp_uart8, 424 msm_mux_cam0_ldo, 425 msm_mux_cam1_rst, 426 msm_mux_cam1_standby, 427 msm_mux_cam2_rst, 428 msm_mux_cam2_standby, 429 msm_mux_cam_mclk, 430 msm_mux_cci_async, 431 msm_mux_cci_i2c, 432 msm_mux_cci_timer0, 433 msm_mux_cci_timer1, 434 msm_mux_cdc_pdm0, 435 msm_mux_codec_int1, 436 msm_mux_codec_int2, 437 msm_mux_codec_mad, 438 msm_mux_coex_uart, 439 msm_mux_cri_trng, 440 msm_mux_cri_trng0, 441 msm_mux_cri_trng1, 442 msm_mux_dbg_out, 443 msm_mux_dmic0_clk, 444 msm_mux_dmic0_data, 445 msm_mux_ebi_cdc, 446 msm_mux_ebi_ch0, 447 msm_mux_ext_lpass, 448 msm_mux_forced_usb, 449 msm_mux_fp_gpio, 450 msm_mux_fp_int, 451 msm_mux_gcc_gp1_clk_a, 452 msm_mux_gcc_gp1_clk_b, 453 msm_mux_gcc_gp2_clk_a, 454 msm_mux_gcc_gp2_clk_b, 455 msm_mux_gcc_gp3_clk_a, 456 msm_mux_gcc_gp3_clk_b, 457 msm_mux_gcc_plltest, 458 msm_mux_gcc_tlmm, 459 msm_mux_gpio, 460 msm_mux_gsm0_tx, 461 msm_mux_key_focus, 462 msm_mux_key_snapshot, 463 msm_mux_key_volp, 464 msm_mux_ldo_en, 465 msm_mux_ldo_update, 466 msm_mux_lpass_slimbus, 467 msm_mux_lpass_slimbus0, 468 msm_mux_lpass_slimbus1, 469 msm_mux_m_voc, 470 msm_mux_mag_int, 471 msm_mux_mdp_vsync, 472 msm_mux_mipi_dsi0, 473 msm_mux_modem_tsync, 474 msm_mux_nav_pps, 475 msm_mux_nav_pps_in_a, 476 msm_mux_nav_pps_in_b, 477 msm_mux_nav_tsync, 478 msm_mux_nfc_pwr, 479 msm_mux_ov_ldo, 480 msm_mux_pa_indicator, 481 msm_mux_pbs0, 482 msm_mux_pbs1, 483 msm_mux_pbs2, 484 msm_mux_pri_mi2s, 485 msm_mux_pri_mi2s_mclk_a, 486 msm_mux_pri_mi2s_mclk_b, 487 msm_mux_pri_mi2s_ws, 488 msm_mux_prng_rosc, 489 msm_mux_pwr_crypto_enabled_a, 490 msm_mux_pwr_crypto_enabled_b, 491 msm_mux_pwr_modem_enabled_a, 492 msm_mux_pwr_modem_enabled_b, 493 msm_mux_pwr_nav_enabled_a, 494 msm_mux_pwr_nav_enabled_b, 495 msm_mux_qdss_cti_trig_in_a0, 496 msm_mux_qdss_cti_trig_in_a1, 497 msm_mux_qdss_cti_trig_in_b0, 498 msm_mux_qdss_cti_trig_in_b1, 499 msm_mux_qdss_cti_trig_out_a0, 500 msm_mux_qdss_cti_trig_out_a1, 501 msm_mux_qdss_cti_trig_out_b0, 502 msm_mux_qdss_cti_trig_out_b1, 503 msm_mux_qdss_traceclk_a, 504 msm_mux_qdss_traceclk_b, 505 msm_mux_qdss_tracectl_a, 506 msm_mux_qdss_tracectl_b, 507 msm_mux_qdss_tracedata_a, 508 msm_mux_qdss_tracedata_b, 509 msm_mux_sd_write, 510 msm_mux_sdcard_det, 511 msm_mux_sec_mi2s, 512 msm_mux_sec_mi2s_mclk_a, 513 msm_mux_sec_mi2s_mclk_b, 514 msm_mux_sensor_rst, 515 msm_mux_smb_int, 516 msm_mux_ssbi_wtr1, 517 msm_mux_ts_resout, 518 msm_mux_ts_sample, 519 msm_mux_uim1_clk, 520 msm_mux_uim1_data, 521 msm_mux_uim1_present, 522 msm_mux_uim1_reset, 523 msm_mux_uim2_clk, 524 msm_mux_uim2_data, 525 msm_mux_uim2_present, 526 msm_mux_uim2_reset, 527 msm_mux_uim_batt, 528 msm_mux_us_emitter, 529 msm_mux_us_euro, 530 msm_mux_wcss_bt, 531 msm_mux_wcss_fm, 532 msm_mux_wcss_wlan, 533 msm_mux_wcss_wlan0, 534 msm_mux_wcss_wlan1, 535 msm_mux_wcss_wlan2, 536 msm_mux_webcam_rst, 537 msm_mux_webcam_standby, 538 msm_mux_wsa_io, 539 msm_mux_wsa_irq, 540 msm_mux_wsa_reset, 541 msm_mux__, 542 }; 543 544 static const char * const qdss_tracedata_b_groups[] = { 545 "gpio0", "gpio1", "gpio6", "gpio7", "gpio12", "gpio13", "gpio23", 546 "gpio42", "gpio43", "gpio44", "gpio47", "gpio66", "gpio86", "gpio87", 547 "gpio88", "gpio92", 548 }; 549 550 static const char * const blsp_uart1_groups[] = { 551 "gpio0", "gpio1", "gpio2", "gpio3", 552 }; 553 554 static const char * const gpio_groups[] = { 555 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 556 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 557 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 558 "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 559 "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 560 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 561 "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 562 "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 563 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 564 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 565 "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 566 "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 567 "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 568 "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 569 "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 570 "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 571 "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116", 572 "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122", 573 "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128", 574 "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", 575 }; 576 577 static const char * const blsp_spi1_groups[] = { 578 "gpio0", "gpio1", "gpio2", "gpio3", 579 }; 580 581 static const char * const adsp_ext_groups[] = { 582 "gpio1", 583 }; 584 585 static const char * const blsp_i2c1_groups[] = { 586 "gpio2", "gpio3", 587 }; 588 589 static const char * const prng_rosc_groups[] = { 590 "gpio2", 591 }; 592 593 static const char * const qdss_cti_trig_out_b0_groups[] = { 594 "gpio2", 595 }; 596 597 static const char * const blsp_spi2_groups[] = { 598 "gpio4", "gpio5", "gpio6", "gpio7", 599 }; 600 601 static const char * const blsp_uart2_groups[] = { 602 "gpio4", "gpio5", "gpio6", "gpio7", 603 }; 604 605 static const char * const blsp_uart3_groups[] = { 606 "gpio8", "gpio9", "gpio10", "gpio11", 607 }; 608 609 static const char * const pbs0_groups[] = { 610 "gpio8", 611 }; 612 613 static const char * const pbs1_groups[] = { 614 "gpio9", 615 }; 616 617 static const char * const pwr_modem_enabled_b_groups[] = { 618 "gpio9", 619 }; 620 621 static const char * const blsp_i2c3_groups[] = { 622 "gpio10", "gpio11", 623 }; 624 625 static const char * const gcc_gp2_clk_b_groups[] = { 626 "gpio10", 627 }; 628 629 static const char * const ldo_update_groups[] = { 630 "gpio4", 631 }; 632 633 static const char * const atest_combodac_to_gpio_native_groups[] = { 634 "gpio4", "gpio12", "gpio13", "gpio20", "gpio21", "gpio28", "gpio29", 635 "gpio30", "gpio39", "gpio40", "gpio41", "gpio42", "gpio43", "gpio44", 636 "gpio45", "gpio46", "gpio47", "gpio48", "gpio67", "gpio115", 637 }; 638 639 static const char * const ldo_en_groups[] = { 640 "gpio5", 641 }; 642 643 static const char * const blsp_i2c2_groups[] = { 644 "gpio6", "gpio7", 645 }; 646 647 static const char * const gcc_gp1_clk_b_groups[] = { 648 "gpio6", 649 }; 650 651 static const char * const pbs2_groups[] = { 652 "gpio7", 653 }; 654 655 static const char * const atest_gpsadc_dtest0_native_groups[] = { 656 "gpio7", 657 }; 658 659 static const char * const blsp_spi3_groups[] = { 660 "gpio8", "gpio9", "gpio10", "gpio11", 661 }; 662 663 static const char * const gcc_gp3_clk_b_groups[] = { 664 "gpio11", 665 }; 666 667 static const char * const blsp_spi4_groups[] = { 668 "gpio12", "gpio13", "gpio14", "gpio15", 669 }; 670 671 static const char * const blsp_uart4_groups[] = { 672 "gpio12", "gpio13", "gpio14", "gpio15", 673 }; 674 675 static const char * const sec_mi2s_groups[] = { 676 "gpio12", "gpio13", "gpio94", "gpio95", 677 }; 678 679 static const char * const pwr_nav_enabled_b_groups[] = { 680 "gpio12", 681 }; 682 683 static const char * const codec_mad_groups[] = { 684 "gpio13", 685 }; 686 687 static const char * const pwr_crypto_enabled_b_groups[] = { 688 "gpio13", 689 }; 690 691 static const char * const blsp_i2c4_groups[] = { 692 "gpio14", "gpio15", 693 }; 694 695 static const char * const blsp_spi5_groups[] = { 696 "gpio16", "gpio17", "gpio18", "gpio19", 697 }; 698 699 static const char * const blsp_uart5_groups[] = { 700 "gpio16", "gpio17", "gpio18", "gpio19", 701 }; 702 703 static const char * const qdss_traceclk_a_groups[] = { 704 "gpio16", 705 }; 706 707 static const char * const atest_bbrx1_groups[] = { 708 "gpio16", 709 }; 710 711 static const char * const m_voc_groups[] = { 712 "gpio17", "gpio21", 713 }; 714 715 static const char * const qdss_cti_trig_in_a0_groups[] = { 716 "gpio17", 717 }; 718 719 static const char * const qdss_cti_trig_in_b0_groups[] = { 720 "gpio21", 721 }; 722 723 static const char * const blsp_i2c6_groups[] = { 724 "gpio22", "gpio23", 725 }; 726 727 static const char * const qdss_traceclk_b_groups[] = { 728 "gpio22", 729 }; 730 731 static const char * const atest_wlan0_groups[] = { 732 "gpio22", 733 }; 734 735 static const char * const atest_bbrx0_groups[] = { 736 "gpio17", 737 }; 738 739 static const char * const blsp_i2c5_groups[] = { 740 "gpio18", "gpio19", 741 }; 742 743 static const char * const qdss_tracectl_a_groups[] = { 744 "gpio18", 745 }; 746 747 static const char * const atest_gpsadc_dtest1_native_groups[] = { 748 "gpio18", 749 }; 750 751 static const char * const qdss_tracedata_a_groups[] = { 752 "gpio19", "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", 753 "gpio32", "gpio33", "gpio34", "gpio35", "gpio36", "gpio38", "gpio39", 754 "gpio40", "gpio50", 755 }; 756 757 static const char * const blsp_spi6_groups[] = { 758 "gpio20", "gpio21", "gpio22", "gpio23", 759 }; 760 761 static const char * const blsp_uart6_groups[] = { 762 "gpio20", "gpio21", "gpio22", "gpio23", 763 }; 764 765 static const char * const qdss_tracectl_b_groups[] = { 766 "gpio20", 767 }; 768 769 static const char * const atest_wlan1_groups[] = { 770 "gpio23", 771 }; 772 773 static const char * const mdp_vsync_groups[] = { 774 "gpio24", "gpio25", 775 }; 776 777 static const char * const pri_mi2s_mclk_a_groups[] = { 778 "gpio25", 779 }; 780 781 static const char * const sec_mi2s_mclk_a_groups[] = { 782 "gpio25", 783 }; 784 785 static const char * const cam_mclk_groups[] = { 786 "gpio26", "gpio27", "gpio28", 787 }; 788 789 static const char * const cci_i2c_groups[] = { 790 "gpio29", "gpio30", "gpio31", "gpio32", 791 }; 792 793 static const char * const pwr_modem_enabled_a_groups[] = { 794 "gpio29", 795 }; 796 797 static const char * const cci_timer0_groups[] = { 798 "gpio33", 799 }; 800 801 static const char * const cci_timer1_groups[] = { 802 "gpio34", 803 }; 804 805 static const char * const cam1_standby_groups[] = { 806 "gpio35", 807 }; 808 809 static const char * const pwr_nav_enabled_a_groups[] = { 810 "gpio35", 811 }; 812 813 static const char * const cam1_rst_groups[] = { 814 "gpio36", 815 }; 816 817 static const char * const pwr_crypto_enabled_a_groups[] = { 818 "gpio36", 819 }; 820 821 static const char * const forced_usb_groups[] = { 822 "gpio37", 823 }; 824 825 static const char * const qdss_cti_trig_out_b1_groups[] = { 826 "gpio37", 827 }; 828 829 static const char * const cam2_rst_groups[] = { 830 "gpio38", 831 }; 832 833 static const char * const webcam_standby_groups[] = { 834 "gpio39", 835 }; 836 837 static const char * const cci_async_groups[] = { 838 "gpio39", 839 }; 840 841 static const char * const webcam_rst_groups[] = { 842 "gpio40", 843 }; 844 845 static const char * const ov_ldo_groups[] = { 846 "gpio41", 847 }; 848 849 static const char * const sd_write_groups[] = { 850 "gpio41", 851 }; 852 853 static const char * const accel_int_groups[] = { 854 "gpio42", 855 }; 856 857 static const char * const gcc_gp1_clk_a_groups[] = { 858 "gpio42", 859 }; 860 861 static const char * const alsp_int_groups[] = { 862 "gpio43", 863 }; 864 865 static const char * const gcc_gp2_clk_a_groups[] = { 866 "gpio43", 867 }; 868 869 static const char * const mag_int_groups[] = { 870 "gpio44", 871 }; 872 873 static const char * const gcc_gp3_clk_a_groups[] = { 874 "gpio44", 875 }; 876 877 static const char * const blsp6_spi_groups[] = { 878 "gpio47", 879 }; 880 881 static const char * const fp_int_groups[] = { 882 "gpio48", 883 }; 884 885 static const char * const qdss_cti_trig_in_b1_groups[] = { 886 "gpio48", 887 }; 888 889 static const char * const uim_batt_groups[] = { 890 "gpio49", 891 }; 892 893 static const char * const cam2_standby_groups[] = { 894 "gpio50", 895 }; 896 897 static const char * const uim1_data_groups[] = { 898 "gpio51", 899 }; 900 901 static const char * const uim1_clk_groups[] = { 902 "gpio52", 903 }; 904 905 static const char * const uim1_reset_groups[] = { 906 "gpio53", 907 }; 908 909 static const char * const uim1_present_groups[] = { 910 "gpio54", 911 }; 912 913 static const char * const uim2_data_groups[] = { 914 "gpio55", 915 }; 916 917 static const char * const uim2_clk_groups[] = { 918 "gpio56", 919 }; 920 921 static const char * const uim2_reset_groups[] = { 922 "gpio57", 923 }; 924 925 static const char * const uim2_present_groups[] = { 926 "gpio58", 927 }; 928 929 static const char * const sensor_rst_groups[] = { 930 "gpio59", 931 }; 932 933 static const char * const mipi_dsi0_groups[] = { 934 "gpio60", 935 }; 936 937 static const char * const smb_int_groups[] = { 938 "gpio61", 939 }; 940 941 static const char * const cam0_ldo_groups[] = { 942 "gpio62", 943 }; 944 945 static const char * const us_euro_groups[] = { 946 "gpio63", 947 }; 948 949 static const char * const atest_char3_groups[] = { 950 "gpio63", 951 }; 952 953 static const char * const dbg_out_groups[] = { 954 "gpio63", 955 }; 956 957 static const char * const bimc_dte0_groups[] = { 958 "gpio63", "gpio65", 959 }; 960 961 static const char * const ts_resout_groups[] = { 962 "gpio64", 963 }; 964 965 static const char * const ts_sample_groups[] = { 966 "gpio65", 967 }; 968 969 static const char * const sec_mi2s_mclk_b_groups[] = { 970 "gpio66", 971 }; 972 973 static const char * const pri_mi2s_groups[] = { 974 "gpio66", "gpio85", "gpio86", "gpio88", "gpio94", "gpio95", 975 }; 976 977 static const char * const sdcard_det_groups[] = { 978 "gpio67", 979 }; 980 981 static const char * const atest_char1_groups[] = { 982 "gpio67", 983 }; 984 985 static const char * const ebi_cdc_groups[] = { 986 "gpio67", "gpio69", "gpio118", "gpio119", "gpio120", "gpio123", 987 }; 988 989 static const char * const audio_reset_groups[] = { 990 "gpio68", 991 }; 992 993 static const char * const atest_char0_groups[] = { 994 "gpio68", 995 }; 996 997 static const char * const audio_ref_groups[] = { 998 "gpio69", 999 }; 1000 1001 static const char * const cdc_pdm0_groups[] = { 1002 "gpio69", "gpio70", "gpio71", "gpio72", "gpio73", "gpio74", 1003 }; 1004 1005 static const char * const pri_mi2s_mclk_b_groups[] = { 1006 "gpio69", 1007 }; 1008 1009 static const char * const lpass_slimbus_groups[] = { 1010 "gpio70", 1011 }; 1012 1013 static const char * const lpass_slimbus0_groups[] = { 1014 "gpio71", 1015 }; 1016 1017 static const char * const lpass_slimbus1_groups[] = { 1018 "gpio72", 1019 }; 1020 1021 static const char * const codec_int1_groups[] = { 1022 "gpio73", 1023 }; 1024 1025 static const char * const codec_int2_groups[] = { 1026 "gpio74", 1027 }; 1028 1029 static const char * const wcss_bt_groups[] = { 1030 "gpio75", "gpio83", "gpio84", 1031 }; 1032 1033 static const char * const atest_char2_groups[] = { 1034 "gpio75", 1035 }; 1036 1037 static const char * const ebi_ch0_groups[] = { 1038 "gpio75", 1039 }; 1040 1041 static const char * const wcss_wlan2_groups[] = { 1042 "gpio76", 1043 }; 1044 1045 static const char * const wcss_wlan1_groups[] = { 1046 "gpio77", 1047 }; 1048 1049 static const char * const wcss_wlan0_groups[] = { 1050 "gpio78", 1051 }; 1052 1053 static const char * const wcss_wlan_groups[] = { 1054 "gpio79", "gpio80", 1055 }; 1056 1057 static const char * const wcss_fm_groups[] = { 1058 "gpio81", "gpio82", 1059 }; 1060 1061 static const char * const ext_lpass_groups[] = { 1062 "gpio81", 1063 }; 1064 1065 static const char * const cri_trng_groups[] = { 1066 "gpio82", 1067 }; 1068 1069 static const char * const cri_trng1_groups[] = { 1070 "gpio83", 1071 }; 1072 1073 static const char * const cri_trng0_groups[] = { 1074 "gpio84", 1075 }; 1076 1077 static const char * const blsp_spi7_groups[] = { 1078 "gpio85", "gpio86", "gpio87", "gpio88", 1079 }; 1080 1081 static const char * const blsp_uart7_groups[] = { 1082 "gpio85", "gpio86", "gpio87", "gpio88", 1083 }; 1084 1085 static const char * const pri_mi2s_ws_groups[] = { 1086 "gpio87", 1087 }; 1088 1089 static const char * const blsp_i2c7_groups[] = { 1090 "gpio87", "gpio88", 1091 }; 1092 1093 static const char * const gcc_tlmm_groups[] = { 1094 "gpio87", 1095 }; 1096 1097 static const char * const dmic0_clk_groups[] = { 1098 "gpio89", 1099 }; 1100 1101 static const char * const dmic0_data_groups[] = { 1102 "gpio90", 1103 }; 1104 1105 static const char * const key_volp_groups[] = { 1106 "gpio91", 1107 }; 1108 1109 static const char * const qdss_cti_trig_in_a1_groups[] = { 1110 "gpio91", 1111 }; 1112 1113 static const char * const us_emitter_groups[] = { 1114 "gpio92", 1115 }; 1116 1117 static const char * const wsa_irq_groups[] = { 1118 "gpio93", 1119 }; 1120 1121 static const char * const wsa_io_groups[] = { 1122 "gpio94", "gpio95", 1123 }; 1124 1125 static const char * const wsa_reset_groups[] = { 1126 "gpio96", 1127 }; 1128 1129 static const char * const blsp_spi8_groups[] = { 1130 "gpio96", "gpio97", "gpio98", "gpio99", 1131 }; 1132 1133 static const char * const blsp_uart8_groups[] = { 1134 "gpio96", "gpio97", "gpio98", "gpio99", 1135 }; 1136 1137 static const char * const blsp_i2c8_groups[] = { 1138 "gpio98", "gpio99", 1139 }; 1140 1141 static const char * const gcc_plltest_groups[] = { 1142 "gpio98", "gpio99", 1143 }; 1144 1145 static const char * const nav_pps_in_a_groups[] = { 1146 "gpio115", 1147 }; 1148 1149 static const char * const pa_indicator_groups[] = { 1150 "gpio116", 1151 }; 1152 1153 static const char * const modem_tsync_groups[] = { 1154 "gpio117", 1155 }; 1156 1157 static const char * const nav_tsync_groups[] = { 1158 "gpio117", 1159 }; 1160 1161 static const char * const nav_pps_in_b_groups[] = { 1162 "gpio117", 1163 }; 1164 1165 static const char * const nav_pps_groups[] = { 1166 "gpio117", 1167 }; 1168 1169 static const char * const gsm0_tx_groups[] = { 1170 "gpio119", 1171 }; 1172 1173 static const char * const atest_char_groups[] = { 1174 "gpio120", 1175 }; 1176 1177 static const char * const atest_tsens_groups[] = { 1178 "gpio120", 1179 }; 1180 1181 static const char * const bimc_dte1_groups[] = { 1182 "gpio121", "gpio122", 1183 }; 1184 1185 static const char * const ssbi_wtr1_groups[] = { 1186 "gpio122", "gpio123", 1187 }; 1188 1189 static const char * const fp_gpio_groups[] = { 1190 "gpio124", 1191 }; 1192 1193 static const char * const coex_uart_groups[] = { 1194 "gpio124", "gpio127", 1195 }; 1196 1197 static const char * const key_snapshot_groups[] = { 1198 "gpio127", 1199 }; 1200 1201 static const char * const key_focus_groups[] = { 1202 "gpio128", 1203 }; 1204 1205 static const char * const nfc_pwr_groups[] = { 1206 "gpio129", 1207 }; 1208 1209 static const char * const blsp8_spi_groups[] = { 1210 "gpio130", 1211 }; 1212 1213 static const char * const qdss_cti_trig_out_a0_groups[] = { 1214 "gpio132", 1215 }; 1216 1217 static const char * const qdss_cti_trig_out_a1_groups[] = { 1218 "gpio133", 1219 }; 1220 1221 static const struct pinfunction msm8917_functions[] = { 1222 MSM_PIN_FUNCTION(accel_int), 1223 MSM_PIN_FUNCTION(adsp_ext), 1224 MSM_PIN_FUNCTION(alsp_int), 1225 MSM_PIN_FUNCTION(atest_bbrx0), 1226 MSM_PIN_FUNCTION(atest_bbrx1), 1227 MSM_PIN_FUNCTION(atest_char), 1228 MSM_PIN_FUNCTION(atest_char0), 1229 MSM_PIN_FUNCTION(atest_char1), 1230 MSM_PIN_FUNCTION(atest_char2), 1231 MSM_PIN_FUNCTION(atest_char3), 1232 MSM_PIN_FUNCTION(atest_combodac_to_gpio_native), 1233 MSM_PIN_FUNCTION(atest_gpsadc_dtest0_native), 1234 MSM_PIN_FUNCTION(atest_gpsadc_dtest1_native), 1235 MSM_PIN_FUNCTION(atest_tsens), 1236 MSM_PIN_FUNCTION(atest_wlan0), 1237 MSM_PIN_FUNCTION(atest_wlan1), 1238 MSM_PIN_FUNCTION(audio_ref), 1239 MSM_PIN_FUNCTION(audio_reset), 1240 MSM_PIN_FUNCTION(bimc_dte0), 1241 MSM_PIN_FUNCTION(bimc_dte1), 1242 MSM_PIN_FUNCTION(blsp6_spi), 1243 MSM_PIN_FUNCTION(blsp8_spi), 1244 MSM_PIN_FUNCTION(blsp_i2c1), 1245 MSM_PIN_FUNCTION(blsp_i2c2), 1246 MSM_PIN_FUNCTION(blsp_i2c3), 1247 MSM_PIN_FUNCTION(blsp_i2c4), 1248 MSM_PIN_FUNCTION(blsp_i2c5), 1249 MSM_PIN_FUNCTION(blsp_i2c6), 1250 MSM_PIN_FUNCTION(blsp_i2c7), 1251 MSM_PIN_FUNCTION(blsp_i2c8), 1252 MSM_PIN_FUNCTION(blsp_spi1), 1253 MSM_PIN_FUNCTION(blsp_spi2), 1254 MSM_PIN_FUNCTION(blsp_spi3), 1255 MSM_PIN_FUNCTION(blsp_spi4), 1256 MSM_PIN_FUNCTION(blsp_spi5), 1257 MSM_PIN_FUNCTION(blsp_spi6), 1258 MSM_PIN_FUNCTION(blsp_spi7), 1259 MSM_PIN_FUNCTION(blsp_spi8), 1260 MSM_PIN_FUNCTION(blsp_uart1), 1261 MSM_PIN_FUNCTION(blsp_uart2), 1262 MSM_PIN_FUNCTION(blsp_uart3), 1263 MSM_PIN_FUNCTION(blsp_uart4), 1264 MSM_PIN_FUNCTION(blsp_uart5), 1265 MSM_PIN_FUNCTION(blsp_uart6), 1266 MSM_PIN_FUNCTION(blsp_uart7), 1267 MSM_PIN_FUNCTION(blsp_uart8), 1268 MSM_PIN_FUNCTION(cam0_ldo), 1269 MSM_PIN_FUNCTION(cam1_rst), 1270 MSM_PIN_FUNCTION(cam1_standby), 1271 MSM_PIN_FUNCTION(cam2_rst), 1272 MSM_PIN_FUNCTION(cam2_standby), 1273 MSM_PIN_FUNCTION(cam_mclk), 1274 MSM_PIN_FUNCTION(cci_async), 1275 MSM_PIN_FUNCTION(cci_i2c), 1276 MSM_PIN_FUNCTION(cci_timer0), 1277 MSM_PIN_FUNCTION(cci_timer1), 1278 MSM_PIN_FUNCTION(cdc_pdm0), 1279 MSM_PIN_FUNCTION(codec_int1), 1280 MSM_PIN_FUNCTION(codec_int2), 1281 MSM_PIN_FUNCTION(codec_mad), 1282 MSM_PIN_FUNCTION(coex_uart), 1283 MSM_PIN_FUNCTION(cri_trng), 1284 MSM_PIN_FUNCTION(cri_trng0), 1285 MSM_PIN_FUNCTION(cri_trng1), 1286 MSM_PIN_FUNCTION(dbg_out), 1287 MSM_PIN_FUNCTION(dmic0_clk), 1288 MSM_PIN_FUNCTION(dmic0_data), 1289 MSM_PIN_FUNCTION(ebi_cdc), 1290 MSM_PIN_FUNCTION(ebi_ch0), 1291 MSM_PIN_FUNCTION(ext_lpass), 1292 MSM_PIN_FUNCTION(forced_usb), 1293 MSM_PIN_FUNCTION(fp_gpio), 1294 MSM_PIN_FUNCTION(fp_int), 1295 MSM_PIN_FUNCTION(gcc_gp1_clk_a), 1296 MSM_PIN_FUNCTION(gcc_gp1_clk_b), 1297 MSM_PIN_FUNCTION(gcc_gp2_clk_a), 1298 MSM_PIN_FUNCTION(gcc_gp2_clk_b), 1299 MSM_PIN_FUNCTION(gcc_gp3_clk_a), 1300 MSM_PIN_FUNCTION(gcc_gp3_clk_b), 1301 MSM_PIN_FUNCTION(gcc_plltest), 1302 MSM_PIN_FUNCTION(gcc_tlmm), 1303 MSM_GPIO_PIN_FUNCTION(gpio), 1304 MSM_PIN_FUNCTION(gsm0_tx), 1305 MSM_PIN_FUNCTION(key_focus), 1306 MSM_PIN_FUNCTION(key_snapshot), 1307 MSM_PIN_FUNCTION(key_volp), 1308 MSM_PIN_FUNCTION(ldo_en), 1309 MSM_PIN_FUNCTION(ldo_update), 1310 MSM_PIN_FUNCTION(lpass_slimbus), 1311 MSM_PIN_FUNCTION(lpass_slimbus0), 1312 MSM_PIN_FUNCTION(lpass_slimbus1), 1313 MSM_PIN_FUNCTION(m_voc), 1314 MSM_PIN_FUNCTION(mag_int), 1315 MSM_PIN_FUNCTION(mdp_vsync), 1316 MSM_PIN_FUNCTION(mipi_dsi0), 1317 MSM_PIN_FUNCTION(modem_tsync), 1318 MSM_PIN_FUNCTION(nav_pps), 1319 MSM_PIN_FUNCTION(nav_pps_in_a), 1320 MSM_PIN_FUNCTION(nav_pps_in_b), 1321 MSM_PIN_FUNCTION(nav_tsync), 1322 MSM_PIN_FUNCTION(nfc_pwr), 1323 MSM_PIN_FUNCTION(ov_ldo), 1324 MSM_PIN_FUNCTION(pa_indicator), 1325 MSM_PIN_FUNCTION(pbs0), 1326 MSM_PIN_FUNCTION(pbs1), 1327 MSM_PIN_FUNCTION(pbs2), 1328 MSM_PIN_FUNCTION(pri_mi2s), 1329 MSM_PIN_FUNCTION(pri_mi2s_mclk_a), 1330 MSM_PIN_FUNCTION(pri_mi2s_mclk_b), 1331 MSM_PIN_FUNCTION(pri_mi2s_ws), 1332 MSM_PIN_FUNCTION(prng_rosc), 1333 MSM_PIN_FUNCTION(pwr_crypto_enabled_a), 1334 MSM_PIN_FUNCTION(pwr_crypto_enabled_b), 1335 MSM_PIN_FUNCTION(pwr_modem_enabled_a), 1336 MSM_PIN_FUNCTION(pwr_modem_enabled_b), 1337 MSM_PIN_FUNCTION(pwr_nav_enabled_a), 1338 MSM_PIN_FUNCTION(pwr_nav_enabled_b), 1339 MSM_PIN_FUNCTION(qdss_cti_trig_in_a0), 1340 MSM_PIN_FUNCTION(qdss_cti_trig_in_a1), 1341 MSM_PIN_FUNCTION(qdss_cti_trig_in_b0), 1342 MSM_PIN_FUNCTION(qdss_cti_trig_in_b1), 1343 MSM_PIN_FUNCTION(qdss_cti_trig_out_a0), 1344 MSM_PIN_FUNCTION(qdss_cti_trig_out_a1), 1345 MSM_PIN_FUNCTION(qdss_cti_trig_out_b0), 1346 MSM_PIN_FUNCTION(qdss_cti_trig_out_b1), 1347 MSM_PIN_FUNCTION(qdss_traceclk_a), 1348 MSM_PIN_FUNCTION(qdss_traceclk_b), 1349 MSM_PIN_FUNCTION(qdss_tracectl_a), 1350 MSM_PIN_FUNCTION(qdss_tracectl_b), 1351 MSM_PIN_FUNCTION(qdss_tracedata_a), 1352 MSM_PIN_FUNCTION(qdss_tracedata_b), 1353 MSM_PIN_FUNCTION(sd_write), 1354 MSM_PIN_FUNCTION(sdcard_det), 1355 MSM_PIN_FUNCTION(sec_mi2s), 1356 MSM_PIN_FUNCTION(sec_mi2s_mclk_a), 1357 MSM_PIN_FUNCTION(sec_mi2s_mclk_b), 1358 MSM_PIN_FUNCTION(sensor_rst), 1359 MSM_PIN_FUNCTION(smb_int), 1360 MSM_PIN_FUNCTION(ssbi_wtr1), 1361 MSM_PIN_FUNCTION(ts_resout), 1362 MSM_PIN_FUNCTION(ts_sample), 1363 MSM_PIN_FUNCTION(uim1_clk), 1364 MSM_PIN_FUNCTION(uim1_data), 1365 MSM_PIN_FUNCTION(uim1_present), 1366 MSM_PIN_FUNCTION(uim1_reset), 1367 MSM_PIN_FUNCTION(uim2_clk), 1368 MSM_PIN_FUNCTION(uim2_data), 1369 MSM_PIN_FUNCTION(uim2_present), 1370 MSM_PIN_FUNCTION(uim2_reset), 1371 MSM_PIN_FUNCTION(uim_batt), 1372 MSM_PIN_FUNCTION(us_emitter), 1373 MSM_PIN_FUNCTION(us_euro), 1374 MSM_PIN_FUNCTION(wcss_bt), 1375 MSM_PIN_FUNCTION(wcss_fm), 1376 MSM_PIN_FUNCTION(wcss_wlan), 1377 MSM_PIN_FUNCTION(wcss_wlan0), 1378 MSM_PIN_FUNCTION(wcss_wlan1), 1379 MSM_PIN_FUNCTION(wcss_wlan2), 1380 MSM_PIN_FUNCTION(webcam_rst), 1381 MSM_PIN_FUNCTION(webcam_standby), 1382 MSM_PIN_FUNCTION(wsa_io), 1383 MSM_PIN_FUNCTION(wsa_irq), 1384 MSM_PIN_FUNCTION(wsa_reset), 1385 }; 1386 1387 static const struct msm_pingroup msm8917_groups[] = { 1388 PINGROUP(0, blsp_spi1, blsp_uart1, qdss_tracedata_b, _, _, _, _, 1389 _, _), 1390 PINGROUP(1, blsp_spi1, blsp_uart1, adsp_ext, _, _, _, _, _, 1391 qdss_tracedata_b), 1392 PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, prng_rosc, _, _, _, 1393 _, _), 1394 PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, _, _, _, _, _, _), 1395 PINGROUP(4, blsp_spi2, blsp_uart2, ldo_update, _, 1396 atest_combodac_to_gpio_native, _, _, _, _), 1397 PINGROUP(5, blsp_spi2, blsp_uart2, ldo_en, _, _, _, _, _, _), 1398 PINGROUP(6, blsp_spi2, blsp_uart2, blsp_i2c2, gcc_gp1_clk_b, 1399 qdss_tracedata_b, _, _, _, _), 1400 PINGROUP(7, blsp_spi2, blsp_uart2, blsp_i2c2, pbs2, _, 1401 qdss_tracedata_b, _, atest_gpsadc_dtest0_native, _), 1402 PINGROUP(8, blsp_spi3, blsp_uart3, pbs0, _, _, _, _, _, _), 1403 PINGROUP(9, blsp_spi3, blsp_uart3, pbs1, pwr_modem_enabled_b, _, _, 1404 _, _, _), 1405 PINGROUP(10, blsp_spi3, blsp_uart3, blsp_i2c3, gcc_gp2_clk_b, _, _, 1406 _, _, _), 1407 PINGROUP(11, blsp_spi3, blsp_uart3, blsp_i2c3, gcc_gp3_clk_b, _, _, 1408 _, _, _), 1409 PINGROUP(12, blsp_spi4, blsp_uart4, sec_mi2s, pwr_nav_enabled_b, _, 1410 _, _, _, _), 1411 PINGROUP(13, blsp_spi4, blsp_uart4, sec_mi2s, pwr_crypto_enabled_b, _, 1412 _, _, _, _), 1413 PINGROUP(14, blsp_spi4, blsp_uart4, blsp_i2c4, _, _, _, _, _, _), 1414 PINGROUP(15, blsp_spi4, blsp_uart4, blsp_i2c4, _, _, _, _, _, _), 1415 PINGROUP(16, blsp_spi5, blsp_uart5, _, _, _, _, qdss_traceclk_a, 1416 _, atest_bbrx1), 1417 PINGROUP(17, blsp_spi5, blsp_uart5, m_voc, qdss_cti_trig_in_a0, _, 1418 atest_bbrx0, _, _, _), 1419 PINGROUP(18, blsp_spi5, blsp_uart5, blsp_i2c5, qdss_tracectl_a, _, 1420 atest_gpsadc_dtest1_native, _, _, _), 1421 PINGROUP(19, blsp_spi5, blsp_uart5, blsp_i2c5, qdss_tracedata_a, _, 1422 _, _, _, _), 1423 PINGROUP(20, blsp_spi6, blsp_uart6, _, _, _, _, _, _, 1424 qdss_tracectl_b), 1425 PINGROUP(21, blsp_spi6, blsp_uart6, m_voc, _, _, _, _, _, 1426 qdss_cti_trig_in_b0), 1427 PINGROUP(22, blsp_spi6, blsp_uart6, blsp_i2c6, qdss_traceclk_b, _, 1428 atest_wlan0, _, _, _), 1429 PINGROUP(23, blsp_spi6, blsp_uart6, blsp_i2c6, qdss_tracedata_b, _, 1430 atest_wlan1, _, _, _), 1431 PINGROUP(24, mdp_vsync, _, _, _, _, _, _, _, _), 1432 PINGROUP(25, mdp_vsync, pri_mi2s_mclk_a, sec_mi2s_mclk_a, _, _, _, 1433 _, _, _), 1434 PINGROUP(26, cam_mclk, _, _, _, _, _, qdss_tracedata_a, _, _), 1435 PINGROUP(27, cam_mclk, _, _, _, _, _, _, _, qdss_tracedata_a), 1436 PINGROUP(28, cam_mclk, _, _, _, _, _, qdss_tracedata_a, _, 1437 atest_combodac_to_gpio_native), 1438 PINGROUP(29, cci_i2c, pwr_modem_enabled_a, _, _, _, _, _, 1439 qdss_tracedata_a, _), 1440 PINGROUP(30, cci_i2c, _, _, _, _, _, _, _, qdss_tracedata_a), 1441 PINGROUP(31, cci_i2c, _, _, _, _, _, _, _, qdss_tracedata_a), 1442 PINGROUP(32, cci_i2c, _, _, _, _, _, _, _, qdss_tracedata_a), 1443 PINGROUP(33, cci_timer0, _, _, _, _, _, _, _, qdss_tracedata_a), 1444 PINGROUP(34, cci_timer1, _, _, _, _, _, _, _, qdss_tracedata_a), 1445 PINGROUP(35, pwr_nav_enabled_a, _, _, _, _, _, _, _, 1446 qdss_tracedata_a), 1447 PINGROUP(36, pwr_crypto_enabled_a, _, _, _, _, _, _, _, 1448 qdss_tracedata_a), 1449 PINGROUP(37, _, _, _, _, _, qdss_cti_trig_out_b1, _, _, _), 1450 PINGROUP(38, _, qdss_tracedata_a, _, _, _, _, _, _, _), 1451 PINGROUP(39, cci_async, _, _, _, _, _, qdss_tracedata_a, _, 1452 atest_combodac_to_gpio_native), 1453 PINGROUP(40, _, _, _, _, qdss_tracedata_a, _, 1454 atest_combodac_to_gpio_native, _, _), 1455 PINGROUP(41, sd_write, _, _, _, _, _, _, _, 1456 atest_combodac_to_gpio_native), 1457 PINGROUP(42, gcc_gp1_clk_a, qdss_tracedata_b, _, 1458 atest_combodac_to_gpio_native, _, _, _, _, _), 1459 PINGROUP(43, gcc_gp2_clk_a, qdss_tracedata_b, _, 1460 atest_combodac_to_gpio_native, _, _, _, _, _), 1461 PINGROUP(44, gcc_gp3_clk_a, qdss_tracedata_b, _, 1462 atest_combodac_to_gpio_native, _, _, _, _, _), 1463 PINGROUP(45, _, _, atest_combodac_to_gpio_native, _, _, _, _, _, 1464 _), 1465 PINGROUP(46, _, _, atest_combodac_to_gpio_native, _, _, _, _, _, 1466 _), 1467 PINGROUP(47, blsp6_spi, _, qdss_tracedata_b, _, 1468 atest_combodac_to_gpio_native, _, _, _, _), 1469 PINGROUP(48, _, qdss_cti_trig_in_b1, _, 1470 atest_combodac_to_gpio_native, _, _, _, _, _), 1471 PINGROUP(49, uim_batt, _, _, _, _, _, _, _, _), 1472 PINGROUP(50, qdss_tracedata_a, _, _, _, _, _, _, _, _), 1473 PINGROUP(51, uim1_data, _, _, _, _, _, _, _, _), 1474 PINGROUP(52, uim1_clk, _, _, _, _, _, _, _, _), 1475 PINGROUP(53, uim1_reset, _, _, _, _, _, _, _, _), 1476 PINGROUP(54, uim1_present, _, _, _, _, _, _, _, _), 1477 PINGROUP(55, uim2_data, _, _, _, _, _, _, _, _), 1478 PINGROUP(56, uim2_clk, _, _, _, _, _, _, _, _), 1479 PINGROUP(57, uim2_reset, _, _, _, _, _, _, _, _), 1480 PINGROUP(58, uim2_present, _, _, _, _, _, _, _, _), 1481 PINGROUP(59, _, _, _, _, _, _, _, _, _), 1482 PINGROUP(60, _, _, _, _, _, _, _, _, _), 1483 PINGROUP(61, _, _, _, _, _, _, _, _, _), 1484 PINGROUP(62, _, _, _, _, _, _, _, _, _), 1485 PINGROUP(63, atest_char3, dbg_out, bimc_dte0, _, _, _, _, _, _), 1486 PINGROUP(64, _, _, _, _, _, _, _, _, _), 1487 PINGROUP(65, bimc_dte0, _, _, _, _, _, _, _, _), 1488 PINGROUP(66, sec_mi2s_mclk_b, pri_mi2s, _, qdss_tracedata_b, _, _, 1489 _, _, _), 1490 PINGROUP(67, atest_char1, ebi_cdc, _, atest_combodac_to_gpio_native, 1491 _, _, _, _, _), 1492 PINGROUP(68, atest_char0, _, _, _, _, _, _, _, _), 1493 PINGROUP(69, audio_ref, cdc_pdm0, pri_mi2s_mclk_b, ebi_cdc, _, _, _, 1494 _, _), 1495 PINGROUP(70, lpass_slimbus, cdc_pdm0, _, _, _, _, _, _, _), 1496 PINGROUP(71, lpass_slimbus0, cdc_pdm0, _, _, _, _, _, _, _), 1497 PINGROUP(72, lpass_slimbus1, cdc_pdm0, _, _, _, _, _, _, _), 1498 PINGROUP(73, cdc_pdm0, _, _, _, _, _, _, _, _), 1499 PINGROUP(74, cdc_pdm0, _, _, _, _, _, _, _, _), 1500 PINGROUP(75, wcss_bt, atest_char2, _, ebi_ch0, _, _, _, _, _), 1501 PINGROUP(76, wcss_wlan2, _, _, _, _, _, _, _, _), 1502 PINGROUP(77, wcss_wlan1, _, _, _, _, _, _, _, _), 1503 PINGROUP(78, wcss_wlan0, _, _, _, _, _, _, _, _), 1504 PINGROUP(79, wcss_wlan, _, _, _, _, _, _, _, _), 1505 PINGROUP(80, wcss_wlan, _, _, _, _, _, _, _, _), 1506 PINGROUP(81, wcss_fm, ext_lpass, _, _, _, _, _, _, _), 1507 PINGROUP(82, wcss_fm, cri_trng, _, _, _, _, _, _, _), 1508 PINGROUP(83, wcss_bt, cri_trng1, _, _, _, _, _, _, _), 1509 PINGROUP(84, wcss_bt, cri_trng0, _, _, _, _, _, _, _), 1510 PINGROUP(85, pri_mi2s, blsp_spi7, blsp_uart7, _, _, _, _, _, _), 1511 PINGROUP(86, pri_mi2s, blsp_spi7, blsp_uart7, qdss_tracedata_b, _, _, 1512 _, _, _), 1513 PINGROUP(87, pri_mi2s_ws, blsp_spi7, blsp_uart7, blsp_i2c7, 1514 qdss_tracedata_b, gcc_tlmm, _, _, _), 1515 PINGROUP(88, pri_mi2s, blsp_spi7, blsp_uart7, blsp_i2c7, _, _, _, 1516 _, _), 1517 PINGROUP(89, dmic0_clk, _, _, _, _, _, _, _, _), 1518 PINGROUP(90, dmic0_data, _, _, _, _, _, _, _, _), 1519 PINGROUP(91, _, _, _, _, _, qdss_cti_trig_in_a1, _, _, _), 1520 PINGROUP(92, _, _, _, _, _, qdss_tracedata_b, _, _, _), 1521 PINGROUP(93, _, _, _, _, _, _, _, _, _), 1522 PINGROUP(94, wsa_io, sec_mi2s, pri_mi2s, _, _, _, _, _, _), 1523 PINGROUP(95, wsa_io, sec_mi2s, pri_mi2s, _, _, _, _, _, _), 1524 PINGROUP(96, blsp_spi8, blsp_uart8, _, _, _, _, _, _, _), 1525 PINGROUP(97, blsp_spi8, blsp_uart8, _, _, _, _, _, _, _), 1526 PINGROUP(98, blsp_spi8, blsp_uart8, blsp_i2c8, gcc_plltest, _, _, _, 1527 _, _), 1528 PINGROUP(99, blsp_spi8, blsp_uart8, blsp_i2c8, gcc_plltest, _, _, _, 1529 _, _), 1530 PINGROUP(100, _, _, _, _, _, _, _, _, _), 1531 PINGROUP(101, _, _, _, _, _, _, _, _, _), 1532 PINGROUP(102, _, _, _, _, _, _, _, _, _), 1533 PINGROUP(103, _, _, _, _, _, _, _, _, _), 1534 PINGROUP(104, _, _, _, _, _, _, _, _, _), 1535 PINGROUP(105, _, _, _, _, _, _, _, _, _), 1536 PINGROUP(106, _, _, _, _, _, _, _, _, _), 1537 PINGROUP(107, _, _, _, _, _, _, _, _, _), 1538 PINGROUP(108, _, _, _, _, _, _, _, _, _), 1539 PINGROUP(109, _, _, _, _, _, _, _, _, _), 1540 PINGROUP(110, _, _, _, _, _, _, _, _, _), 1541 PINGROUP(111, _, _, _, _, _, _, _, _, _), 1542 PINGROUP(112, _, _, _, _, _, _, _, _, _), 1543 PINGROUP(113, _, _, _, _, _, _, _, _, _), 1544 PINGROUP(114, _, _, _, _, _, _, _, _, _), 1545 PINGROUP(115, _, _, nav_pps_in_a, _, atest_combodac_to_gpio_native, 1546 _, _, _, _), 1547 PINGROUP(116, _, pa_indicator, _, _, _, _, _, _, _), 1548 PINGROUP(117, _, modem_tsync, nav_tsync, nav_pps_in_b, nav_pps, _, 1549 _, _, _), 1550 PINGROUP(118, _, ebi_cdc, _, _, _, _, _, _, _), 1551 PINGROUP(119, gsm0_tx, _, ebi_cdc, _, _, _, _, _, _), 1552 PINGROUP(120, _, atest_char, ebi_cdc, _, atest_tsens, _, _, _, _), 1553 PINGROUP(121, _, _, _, bimc_dte1, _, _, _, _, _), 1554 PINGROUP(122, _, ssbi_wtr1, _, _, bimc_dte1, _, _, _, _), 1555 PINGROUP(123, _, ssbi_wtr1, ebi_cdc, _, _, _, _, _, _), 1556 PINGROUP(124, coex_uart, _, _, _, _, _, _, _, _), 1557 PINGROUP(125, _, _, _, _, _, _, _, _, _), 1558 PINGROUP(126, _, _, _, _, _, _, _, _, _), 1559 PINGROUP(127, coex_uart, _, _, _, _, _, _, _, _), 1560 PINGROUP(128, _, _, _, _, _, _, _, _, _), 1561 PINGROUP(129, _, _, _, _, _, _, _, _, _), 1562 PINGROUP(130, blsp8_spi, _, _, _, _, _, _, _, _), 1563 PINGROUP(131, _, _, _, _, _, _, _, _, _), 1564 PINGROUP(132, qdss_cti_trig_out_a0, _, _, _, _, _, _, _, _), 1565 PINGROUP(133, qdss_cti_trig_out_a1, _, _, _, _, _, _, _, _), 1566 SDC_PINGROUP(sdc1_clk, 0x10a000, 13, 6), 1567 SDC_PINGROUP(sdc1_cmd, 0x10a000, 11, 3), 1568 SDC_PINGROUP(sdc1_data, 0x10a000, 9, 0), 1569 SDC_PINGROUP(sdc1_rclk, 0x10a000, 15, 0), 1570 SDC_PINGROUP(sdc2_clk, 0x109000, 14, 6), 1571 SDC_PINGROUP(sdc2_cmd, 0x109000, 11, 3), 1572 SDC_PINGROUP(sdc2_data, 0x109000, 9, 0), 1573 SDC_PINGROUP(qdsd_clk, 0x19c000, 3, 0), 1574 SDC_PINGROUP(qdsd_cmd, 0x19c000, 8, 5), 1575 SDC_PINGROUP(qdsd_data0, 0x19c000, 13, 10), 1576 SDC_PINGROUP(qdsd_data1, 0x19c000, 18, 15), 1577 SDC_PINGROUP(qdsd_data2, 0x19c000, 23, 20), 1578 SDC_PINGROUP(qdsd_data3, 0x19c000, 28, 25), 1579 }; 1580 1581 static const struct msm_pinctrl_soc_data msm8917_pinctrl = { 1582 .pins = msm8917_pins, 1583 .npins = ARRAY_SIZE(msm8917_pins), 1584 .functions = msm8917_functions, 1585 .nfunctions = ARRAY_SIZE(msm8917_functions), 1586 .groups = msm8917_groups, 1587 .ngroups = ARRAY_SIZE(msm8917_groups), 1588 .ngpios = 134, 1589 }; 1590 1591 static int msm8917_pinctrl_probe(struct platform_device *pdev) 1592 { 1593 return msm_pinctrl_probe(pdev, &msm8917_pinctrl); 1594 } 1595 1596 static const struct of_device_id msm8917_pinctrl_of_match[] = { 1597 { .compatible = "qcom,msm8917-pinctrl", }, 1598 { }, 1599 }; 1600 MODULE_DEVICE_TABLE(of, msm8917_pinctrl_of_match); 1601 1602 static struct platform_driver msm8917_pinctrl_driver = { 1603 .driver = { 1604 .name = "msm8917-pinctrl", 1605 .of_match_table = msm8917_pinctrl_of_match, 1606 }, 1607 .probe = msm8917_pinctrl_probe, 1608 }; 1609 1610 static int __init msm8917_pinctrl_init(void) 1611 { 1612 return platform_driver_register(&msm8917_pinctrl_driver); 1613 } 1614 arch_initcall(msm8917_pinctrl_init); 1615 1616 static void __exit msm8917_pinctrl_exit(void) 1617 { 1618 platform_driver_unregister(&msm8917_pinctrl_driver); 1619 } 1620 module_exit(msm8917_pinctrl_exit); 1621 1622 MODULE_DESCRIPTION("Qualcomm msm8917/msm8937 pinctrl driver"); 1623 MODULE_LICENSE("GPL"); 1624