1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (c) 2016, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2018, Craig Tatlor. 5 */ 6 7 #include <linux/module.h> 8 #include <linux/of.h> 9 #include <linux/platform_device.h> 10 11 #include "pinctrl-msm.h" 12 13 static const char * const sdm660_tiles[] = { 14 "north", 15 "center", 16 "south" 17 }; 18 19 enum { 20 NORTH, 21 CENTER, 22 SOUTH 23 }; 24 25 #define REG_SIZE 0x1000 26 27 #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 28 { \ 29 .grp = PINCTRL_PINGROUP("gpio" #id, \ 30 gpio##id##_pins, \ 31 ARRAY_SIZE(gpio##id##_pins)), \ 32 .funcs = (int[]){ \ 33 msm_mux_gpio, /* gpio mode */ \ 34 msm_mux_##f1, \ 35 msm_mux_##f2, \ 36 msm_mux_##f3, \ 37 msm_mux_##f4, \ 38 msm_mux_##f5, \ 39 msm_mux_##f6, \ 40 msm_mux_##f7, \ 41 msm_mux_##f8, \ 42 msm_mux_##f9 \ 43 }, \ 44 .nfuncs = 10, \ 45 .ctl_reg = REG_SIZE * id, \ 46 .io_reg = 0x4 + REG_SIZE * id, \ 47 .intr_cfg_reg = 0x8 + REG_SIZE * id, \ 48 .intr_status_reg = 0xc + REG_SIZE * id, \ 49 .tile = _tile, \ 50 .mux_bit = 2, \ 51 .pull_bit = 0, \ 52 .drv_bit = 6, \ 53 .oe_bit = 9, \ 54 .in_bit = 0, \ 55 .out_bit = 1, \ 56 .intr_enable_bit = 0, \ 57 .intr_status_bit = 0, \ 58 .intr_target_bit = 5, \ 59 .intr_target_kpss_val = 3, \ 60 .intr_raw_status_bit = 4, \ 61 .intr_polarity_bit = 1, \ 62 .intr_detection_bit = 2, \ 63 .intr_detection_width = 2, \ 64 } 65 66 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ 67 { \ 68 .grp = PINCTRL_PINGROUP(#pg_name, \ 69 pg_name##_pins, \ 70 ARRAY_SIZE(pg_name##_pins)), \ 71 .ctl_reg = ctl, \ 72 .io_reg = 0, \ 73 .intr_cfg_reg = 0, \ 74 .intr_status_reg = 0, \ 75 .tile = NORTH, \ 76 .mux_bit = -1, \ 77 .pull_bit = pull, \ 78 .drv_bit = drv, \ 79 .oe_bit = -1, \ 80 .in_bit = -1, \ 81 .out_bit = -1, \ 82 .intr_enable_bit = -1, \ 83 .intr_status_bit = -1, \ 84 .intr_target_bit = -1, \ 85 .intr_raw_status_bit = -1, \ 86 .intr_polarity_bit = -1, \ 87 .intr_detection_bit = -1, \ 88 .intr_detection_width = -1, \ 89 } 90 91 static const struct pinctrl_pin_desc sdm660_pins[] = { 92 PINCTRL_PIN(0, "GPIO_0"), 93 PINCTRL_PIN(1, "GPIO_1"), 94 PINCTRL_PIN(2, "GPIO_2"), 95 PINCTRL_PIN(3, "GPIO_3"), 96 PINCTRL_PIN(4, "GPIO_4"), 97 PINCTRL_PIN(5, "GPIO_5"), 98 PINCTRL_PIN(6, "GPIO_6"), 99 PINCTRL_PIN(7, "GPIO_7"), 100 PINCTRL_PIN(8, "GPIO_8"), 101 PINCTRL_PIN(9, "GPIO_9"), 102 PINCTRL_PIN(10, "GPIO_10"), 103 PINCTRL_PIN(11, "GPIO_11"), 104 PINCTRL_PIN(12, "GPIO_12"), 105 PINCTRL_PIN(13, "GPIO_13"), 106 PINCTRL_PIN(14, "GPIO_14"), 107 PINCTRL_PIN(15, "GPIO_15"), 108 PINCTRL_PIN(16, "GPIO_16"), 109 PINCTRL_PIN(17, "GPIO_17"), 110 PINCTRL_PIN(18, "GPIO_18"), 111 PINCTRL_PIN(19, "GPIO_19"), 112 PINCTRL_PIN(20, "GPIO_20"), 113 PINCTRL_PIN(21, "GPIO_21"), 114 PINCTRL_PIN(22, "GPIO_22"), 115 PINCTRL_PIN(23, "GPIO_23"), 116 PINCTRL_PIN(24, "GPIO_24"), 117 PINCTRL_PIN(25, "GPIO_25"), 118 PINCTRL_PIN(26, "GPIO_26"), 119 PINCTRL_PIN(27, "GPIO_27"), 120 PINCTRL_PIN(28, "GPIO_28"), 121 PINCTRL_PIN(29, "GPIO_29"), 122 PINCTRL_PIN(30, "GPIO_30"), 123 PINCTRL_PIN(31, "GPIO_31"), 124 PINCTRL_PIN(32, "GPIO_32"), 125 PINCTRL_PIN(33, "GPIO_33"), 126 PINCTRL_PIN(34, "GPIO_34"), 127 PINCTRL_PIN(35, "GPIO_35"), 128 PINCTRL_PIN(36, "GPIO_36"), 129 PINCTRL_PIN(37, "GPIO_37"), 130 PINCTRL_PIN(38, "GPIO_38"), 131 PINCTRL_PIN(39, "GPIO_39"), 132 PINCTRL_PIN(40, "GPIO_40"), 133 PINCTRL_PIN(41, "GPIO_41"), 134 PINCTRL_PIN(42, "GPIO_42"), 135 PINCTRL_PIN(43, "GPIO_43"), 136 PINCTRL_PIN(44, "GPIO_44"), 137 PINCTRL_PIN(45, "GPIO_45"), 138 PINCTRL_PIN(46, "GPIO_46"), 139 PINCTRL_PIN(47, "GPIO_47"), 140 PINCTRL_PIN(48, "GPIO_48"), 141 PINCTRL_PIN(49, "GPIO_49"), 142 PINCTRL_PIN(50, "GPIO_50"), 143 PINCTRL_PIN(51, "GPIO_51"), 144 PINCTRL_PIN(52, "GPIO_52"), 145 PINCTRL_PIN(53, "GPIO_53"), 146 PINCTRL_PIN(54, "GPIO_54"), 147 PINCTRL_PIN(55, "GPIO_55"), 148 PINCTRL_PIN(56, "GPIO_56"), 149 PINCTRL_PIN(57, "GPIO_57"), 150 PINCTRL_PIN(58, "GPIO_58"), 151 PINCTRL_PIN(59, "GPIO_59"), 152 PINCTRL_PIN(60, "GPIO_60"), 153 PINCTRL_PIN(61, "GPIO_61"), 154 PINCTRL_PIN(62, "GPIO_62"), 155 PINCTRL_PIN(63, "GPIO_63"), 156 PINCTRL_PIN(64, "GPIO_64"), 157 PINCTRL_PIN(65, "GPIO_65"), 158 PINCTRL_PIN(66, "GPIO_66"), 159 PINCTRL_PIN(67, "GPIO_67"), 160 PINCTRL_PIN(68, "GPIO_68"), 161 PINCTRL_PIN(69, "GPIO_69"), 162 PINCTRL_PIN(70, "GPIO_70"), 163 PINCTRL_PIN(71, "GPIO_71"), 164 PINCTRL_PIN(72, "GPIO_72"), 165 PINCTRL_PIN(73, "GPIO_73"), 166 PINCTRL_PIN(74, "GPIO_74"), 167 PINCTRL_PIN(75, "GPIO_75"), 168 PINCTRL_PIN(76, "GPIO_76"), 169 PINCTRL_PIN(77, "GPIO_77"), 170 PINCTRL_PIN(78, "GPIO_78"), 171 PINCTRL_PIN(79, "GPIO_79"), 172 PINCTRL_PIN(80, "GPIO_80"), 173 PINCTRL_PIN(81, "GPIO_81"), 174 PINCTRL_PIN(82, "GPIO_82"), 175 PINCTRL_PIN(83, "GPIO_83"), 176 PINCTRL_PIN(84, "GPIO_84"), 177 PINCTRL_PIN(85, "GPIO_85"), 178 PINCTRL_PIN(86, "GPIO_86"), 179 PINCTRL_PIN(87, "GPIO_87"), 180 PINCTRL_PIN(88, "GPIO_88"), 181 PINCTRL_PIN(89, "GPIO_89"), 182 PINCTRL_PIN(90, "GPIO_90"), 183 PINCTRL_PIN(91, "GPIO_91"), 184 PINCTRL_PIN(92, "GPIO_92"), 185 PINCTRL_PIN(93, "GPIO_93"), 186 PINCTRL_PIN(94, "GPIO_94"), 187 PINCTRL_PIN(95, "GPIO_95"), 188 PINCTRL_PIN(96, "GPIO_96"), 189 PINCTRL_PIN(97, "GPIO_97"), 190 PINCTRL_PIN(98, "GPIO_98"), 191 PINCTRL_PIN(99, "GPIO_99"), 192 PINCTRL_PIN(100, "GPIO_100"), 193 PINCTRL_PIN(101, "GPIO_101"), 194 PINCTRL_PIN(102, "GPIO_102"), 195 PINCTRL_PIN(103, "GPIO_103"), 196 PINCTRL_PIN(104, "GPIO_104"), 197 PINCTRL_PIN(105, "GPIO_105"), 198 PINCTRL_PIN(106, "GPIO_106"), 199 PINCTRL_PIN(107, "GPIO_107"), 200 PINCTRL_PIN(108, "GPIO_108"), 201 PINCTRL_PIN(109, "GPIO_109"), 202 PINCTRL_PIN(110, "GPIO_110"), 203 PINCTRL_PIN(111, "GPIO_111"), 204 PINCTRL_PIN(112, "GPIO_112"), 205 PINCTRL_PIN(113, "GPIO_113"), 206 PINCTRL_PIN(114, "SDC1_CLK"), 207 PINCTRL_PIN(115, "SDC1_CMD"), 208 PINCTRL_PIN(116, "SDC1_DATA"), 209 PINCTRL_PIN(117, "SDC2_CLK"), 210 PINCTRL_PIN(118, "SDC2_CMD"), 211 PINCTRL_PIN(119, "SDC2_DATA"), 212 PINCTRL_PIN(120, "SDC1_RCLK"), 213 }; 214 215 #define DECLARE_MSM_GPIO_PINS(pin) \ 216 static const unsigned int gpio##pin##_pins[] = { pin } 217 DECLARE_MSM_GPIO_PINS(0); 218 DECLARE_MSM_GPIO_PINS(1); 219 DECLARE_MSM_GPIO_PINS(2); 220 DECLARE_MSM_GPIO_PINS(3); 221 DECLARE_MSM_GPIO_PINS(4); 222 DECLARE_MSM_GPIO_PINS(5); 223 DECLARE_MSM_GPIO_PINS(6); 224 DECLARE_MSM_GPIO_PINS(7); 225 DECLARE_MSM_GPIO_PINS(8); 226 DECLARE_MSM_GPIO_PINS(9); 227 DECLARE_MSM_GPIO_PINS(10); 228 DECLARE_MSM_GPIO_PINS(11); 229 DECLARE_MSM_GPIO_PINS(12); 230 DECLARE_MSM_GPIO_PINS(13); 231 DECLARE_MSM_GPIO_PINS(14); 232 DECLARE_MSM_GPIO_PINS(15); 233 DECLARE_MSM_GPIO_PINS(16); 234 DECLARE_MSM_GPIO_PINS(17); 235 DECLARE_MSM_GPIO_PINS(18); 236 DECLARE_MSM_GPIO_PINS(19); 237 DECLARE_MSM_GPIO_PINS(20); 238 DECLARE_MSM_GPIO_PINS(21); 239 DECLARE_MSM_GPIO_PINS(22); 240 DECLARE_MSM_GPIO_PINS(23); 241 DECLARE_MSM_GPIO_PINS(24); 242 DECLARE_MSM_GPIO_PINS(25); 243 DECLARE_MSM_GPIO_PINS(26); 244 DECLARE_MSM_GPIO_PINS(27); 245 DECLARE_MSM_GPIO_PINS(28); 246 DECLARE_MSM_GPIO_PINS(29); 247 DECLARE_MSM_GPIO_PINS(30); 248 DECLARE_MSM_GPIO_PINS(31); 249 DECLARE_MSM_GPIO_PINS(32); 250 DECLARE_MSM_GPIO_PINS(33); 251 DECLARE_MSM_GPIO_PINS(34); 252 DECLARE_MSM_GPIO_PINS(35); 253 DECLARE_MSM_GPIO_PINS(36); 254 DECLARE_MSM_GPIO_PINS(37); 255 DECLARE_MSM_GPIO_PINS(38); 256 DECLARE_MSM_GPIO_PINS(39); 257 DECLARE_MSM_GPIO_PINS(40); 258 DECLARE_MSM_GPIO_PINS(41); 259 DECLARE_MSM_GPIO_PINS(42); 260 DECLARE_MSM_GPIO_PINS(43); 261 DECLARE_MSM_GPIO_PINS(44); 262 DECLARE_MSM_GPIO_PINS(45); 263 DECLARE_MSM_GPIO_PINS(46); 264 DECLARE_MSM_GPIO_PINS(47); 265 DECLARE_MSM_GPIO_PINS(48); 266 DECLARE_MSM_GPIO_PINS(49); 267 DECLARE_MSM_GPIO_PINS(50); 268 DECLARE_MSM_GPIO_PINS(51); 269 DECLARE_MSM_GPIO_PINS(52); 270 DECLARE_MSM_GPIO_PINS(53); 271 DECLARE_MSM_GPIO_PINS(54); 272 DECLARE_MSM_GPIO_PINS(55); 273 DECLARE_MSM_GPIO_PINS(56); 274 DECLARE_MSM_GPIO_PINS(57); 275 DECLARE_MSM_GPIO_PINS(58); 276 DECLARE_MSM_GPIO_PINS(59); 277 DECLARE_MSM_GPIO_PINS(60); 278 DECLARE_MSM_GPIO_PINS(61); 279 DECLARE_MSM_GPIO_PINS(62); 280 DECLARE_MSM_GPIO_PINS(63); 281 DECLARE_MSM_GPIO_PINS(64); 282 DECLARE_MSM_GPIO_PINS(65); 283 DECLARE_MSM_GPIO_PINS(66); 284 DECLARE_MSM_GPIO_PINS(67); 285 DECLARE_MSM_GPIO_PINS(68); 286 DECLARE_MSM_GPIO_PINS(69); 287 DECLARE_MSM_GPIO_PINS(70); 288 DECLARE_MSM_GPIO_PINS(71); 289 DECLARE_MSM_GPIO_PINS(72); 290 DECLARE_MSM_GPIO_PINS(73); 291 DECLARE_MSM_GPIO_PINS(74); 292 DECLARE_MSM_GPIO_PINS(75); 293 DECLARE_MSM_GPIO_PINS(76); 294 DECLARE_MSM_GPIO_PINS(77); 295 DECLARE_MSM_GPIO_PINS(78); 296 DECLARE_MSM_GPIO_PINS(79); 297 DECLARE_MSM_GPIO_PINS(80); 298 DECLARE_MSM_GPIO_PINS(81); 299 DECLARE_MSM_GPIO_PINS(82); 300 DECLARE_MSM_GPIO_PINS(83); 301 DECLARE_MSM_GPIO_PINS(84); 302 DECLARE_MSM_GPIO_PINS(85); 303 DECLARE_MSM_GPIO_PINS(86); 304 DECLARE_MSM_GPIO_PINS(87); 305 DECLARE_MSM_GPIO_PINS(88); 306 DECLARE_MSM_GPIO_PINS(89); 307 DECLARE_MSM_GPIO_PINS(90); 308 DECLARE_MSM_GPIO_PINS(91); 309 DECLARE_MSM_GPIO_PINS(92); 310 DECLARE_MSM_GPIO_PINS(93); 311 DECLARE_MSM_GPIO_PINS(94); 312 DECLARE_MSM_GPIO_PINS(95); 313 DECLARE_MSM_GPIO_PINS(96); 314 DECLARE_MSM_GPIO_PINS(97); 315 DECLARE_MSM_GPIO_PINS(98); 316 DECLARE_MSM_GPIO_PINS(99); 317 DECLARE_MSM_GPIO_PINS(100); 318 DECLARE_MSM_GPIO_PINS(101); 319 DECLARE_MSM_GPIO_PINS(102); 320 DECLARE_MSM_GPIO_PINS(103); 321 DECLARE_MSM_GPIO_PINS(104); 322 DECLARE_MSM_GPIO_PINS(105); 323 DECLARE_MSM_GPIO_PINS(106); 324 DECLARE_MSM_GPIO_PINS(107); 325 DECLARE_MSM_GPIO_PINS(108); 326 DECLARE_MSM_GPIO_PINS(109); 327 DECLARE_MSM_GPIO_PINS(110); 328 DECLARE_MSM_GPIO_PINS(111); 329 DECLARE_MSM_GPIO_PINS(112); 330 DECLARE_MSM_GPIO_PINS(113); 331 332 static const unsigned int sdc1_clk_pins[] = { 114 }; 333 static const unsigned int sdc1_cmd_pins[] = { 115 }; 334 static const unsigned int sdc1_data_pins[] = { 116 }; 335 static const unsigned int sdc1_rclk_pins[] = { 120 }; 336 static const unsigned int sdc2_clk_pins[] = { 117 }; 337 static const unsigned int sdc2_cmd_pins[] = { 118 }; 338 static const unsigned int sdc2_data_pins[] = { 119 }; 339 340 enum sdm660_functions { 341 msm_mux_adsp_ext, 342 msm_mux_agera_pll, 343 msm_mux_atest_char, 344 msm_mux_atest_char0, 345 msm_mux_atest_char1, 346 msm_mux_atest_char2, 347 msm_mux_atest_char3, 348 msm_mux_atest_gpsadc0, 349 msm_mux_atest_gpsadc1, 350 msm_mux_atest_tsens, 351 msm_mux_atest_tsens2, 352 msm_mux_atest_usb1, 353 msm_mux_atest_usb10, 354 msm_mux_atest_usb11, 355 msm_mux_atest_usb12, 356 msm_mux_atest_usb13, 357 msm_mux_atest_usb2, 358 msm_mux_atest_usb20, 359 msm_mux_atest_usb21, 360 msm_mux_atest_usb22, 361 msm_mux_atest_usb23, 362 msm_mux_audio_ref, 363 msm_mux_bimc_dte0, 364 msm_mux_bimc_dte1, 365 msm_mux_blsp_i2c1, 366 msm_mux_blsp_i2c2, 367 msm_mux_blsp_i2c3, 368 msm_mux_blsp_i2c4, 369 msm_mux_blsp_i2c5, 370 msm_mux_blsp_i2c6, 371 msm_mux_blsp_i2c7, 372 msm_mux_blsp_i2c8_a, 373 msm_mux_blsp_i2c8_b, 374 msm_mux_blsp_spi1, 375 msm_mux_blsp_spi2, 376 msm_mux_blsp_spi3, 377 msm_mux_blsp_spi3_cs1, 378 msm_mux_blsp_spi3_cs2, 379 msm_mux_blsp_spi4, 380 msm_mux_blsp_spi5, 381 msm_mux_blsp_spi6, 382 msm_mux_blsp_spi7, 383 msm_mux_blsp_spi8_a, 384 msm_mux_blsp_spi8_b, 385 msm_mux_blsp_spi8_cs1, 386 msm_mux_blsp_spi8_cs2, 387 msm_mux_blsp_uart1, 388 msm_mux_blsp_uart2, 389 msm_mux_blsp_uart5, 390 msm_mux_blsp_uart6_a, 391 msm_mux_blsp_uart6_b, 392 msm_mux_blsp_uim1, 393 msm_mux_blsp_uim2, 394 msm_mux_blsp_uim5, 395 msm_mux_blsp_uim6, 396 msm_mux_cam_mclk, 397 msm_mux_cci_async, 398 msm_mux_cci_i2c, 399 msm_mux_cri_trng, 400 msm_mux_cri_trng0, 401 msm_mux_cri_trng1, 402 msm_mux_dbg_out, 403 msm_mux_ddr_bist, 404 msm_mux_gcc_gp1, 405 msm_mux_gcc_gp2, 406 msm_mux_gcc_gp3, 407 msm_mux_gpio, 408 msm_mux_gps_tx_a, 409 msm_mux_gps_tx_b, 410 msm_mux_gps_tx_c, 411 msm_mux_isense_dbg, 412 msm_mux_jitter_bist, 413 msm_mux_ldo_en, 414 msm_mux_ldo_update, 415 msm_mux_m_voc, 416 msm_mux_mdp_vsync, 417 msm_mux_mdss_vsync0, 418 msm_mux_mdss_vsync1, 419 msm_mux_mdss_vsync2, 420 msm_mux_mdss_vsync3, 421 msm_mux_mss_lte, 422 msm_mux_nav_pps_a, 423 msm_mux_nav_pps_b, 424 msm_mux_nav_pps_c, 425 msm_mux_pa_indicator, 426 msm_mux_phase_flag0, 427 msm_mux_phase_flag1, 428 msm_mux_phase_flag2, 429 msm_mux_phase_flag3, 430 msm_mux_phase_flag4, 431 msm_mux_phase_flag5, 432 msm_mux_phase_flag6, 433 msm_mux_phase_flag7, 434 msm_mux_phase_flag8, 435 msm_mux_phase_flag9, 436 msm_mux_phase_flag10, 437 msm_mux_phase_flag11, 438 msm_mux_phase_flag12, 439 msm_mux_phase_flag13, 440 msm_mux_phase_flag14, 441 msm_mux_phase_flag15, 442 msm_mux_phase_flag16, 443 msm_mux_phase_flag17, 444 msm_mux_phase_flag18, 445 msm_mux_phase_flag19, 446 msm_mux_phase_flag20, 447 msm_mux_phase_flag21, 448 msm_mux_phase_flag22, 449 msm_mux_phase_flag23, 450 msm_mux_phase_flag24, 451 msm_mux_phase_flag25, 452 msm_mux_phase_flag26, 453 msm_mux_phase_flag27, 454 msm_mux_phase_flag28, 455 msm_mux_phase_flag29, 456 msm_mux_phase_flag30, 457 msm_mux_phase_flag31, 458 msm_mux_pll_bypassnl, 459 msm_mux_pll_reset, 460 msm_mux_pri_mi2s, 461 msm_mux_pri_mi2s_ws, 462 msm_mux_prng_rosc, 463 msm_mux_pwr_crypto, 464 msm_mux_pwr_modem, 465 msm_mux_pwr_nav, 466 msm_mux_qdss_cti0_a, 467 msm_mux_qdss_cti0_b, 468 msm_mux_qdss_cti1_a, 469 msm_mux_qdss_cti1_b, 470 msm_mux_qdss_gpio, 471 msm_mux_qdss_gpio0, 472 msm_mux_qdss_gpio1, 473 msm_mux_qdss_gpio10, 474 msm_mux_qdss_gpio11, 475 msm_mux_qdss_gpio12, 476 msm_mux_qdss_gpio13, 477 msm_mux_qdss_gpio14, 478 msm_mux_qdss_gpio15, 479 msm_mux_qdss_gpio2, 480 msm_mux_qdss_gpio3, 481 msm_mux_qdss_gpio4, 482 msm_mux_qdss_gpio5, 483 msm_mux_qdss_gpio6, 484 msm_mux_qdss_gpio7, 485 msm_mux_qdss_gpio8, 486 msm_mux_qdss_gpio9, 487 msm_mux_qlink_enable, 488 msm_mux_qlink_request, 489 msm_mux_qspi_clk, 490 msm_mux_qspi_cs, 491 msm_mux_qspi_data0, 492 msm_mux_qspi_data1, 493 msm_mux_qspi_data2, 494 msm_mux_qspi_data3, 495 msm_mux_qspi_resetn, 496 msm_mux_sec_mi2s, 497 msm_mux_sndwire_clk, 498 msm_mux_sndwire_data, 499 msm_mux_sp_cmu, 500 msm_mux_ssc_irq, 501 msm_mux_tgu_ch0, 502 msm_mux_tgu_ch1, 503 msm_mux_tsense_pwm1, 504 msm_mux_tsense_pwm2, 505 msm_mux_uim1_clk, 506 msm_mux_uim1_data, 507 msm_mux_uim1_present, 508 msm_mux_uim1_reset, 509 msm_mux_uim2_clk, 510 msm_mux_uim2_data, 511 msm_mux_uim2_present, 512 msm_mux_uim2_reset, 513 msm_mux_uim_batt, 514 msm_mux_vfr_1, 515 msm_mux_vsense_clkout, 516 msm_mux_vsense_data0, 517 msm_mux_vsense_data1, 518 msm_mux_vsense_mode, 519 msm_mux_wlan1_adc0, 520 msm_mux_wlan1_adc1, 521 msm_mux_wlan2_adc0, 522 msm_mux_wlan2_adc1, 523 msm_mux__, 524 }; 525 526 static const char * const gpio_groups[] = { 527 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 528 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 529 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 530 "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", 531 "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35", 532 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", 533 "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", 534 "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56", 535 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63", 536 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70", 537 "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77", 538 "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84", 539 "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91", 540 "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98", 541 "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104", 542 "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110", 543 "gpio111", "gpio112", "gpio113", 544 }; 545 546 static const char * const adsp_ext_groups[] = { 547 "gpio65", 548 }; 549 static const char * const agera_pll_groups[] = { 550 "gpio34", "gpio36", 551 }; 552 static const char * const atest_char0_groups[] = { 553 "gpio62", 554 }; 555 static const char * const atest_char1_groups[] = { 556 "gpio61", 557 }; 558 static const char * const atest_char2_groups[] = { 559 "gpio60", 560 }; 561 static const char * const atest_char3_groups[] = { 562 "gpio59", 563 }; 564 static const char * const atest_char_groups[] = { 565 "gpio58", 566 }; 567 static const char * const atest_gpsadc0_groups[] = { 568 "gpio1", 569 }; 570 static const char * const atest_gpsadc1_groups[] = { 571 "gpio0", 572 }; 573 static const char * const atest_tsens2_groups[] = { 574 "gpio3", 575 }; 576 static const char * const atest_tsens_groups[] = { 577 "gpio36", 578 }; 579 static const char * const atest_usb10_groups[] = { 580 "gpio11", 581 }; 582 static const char * const atest_usb11_groups[] = { 583 "gpio10", 584 }; 585 static const char * const atest_usb12_groups[] = { 586 "gpio9", 587 }; 588 static const char * const atest_usb13_groups[] = { 589 "gpio8", 590 }; 591 static const char * const atest_usb1_groups[] = { 592 "gpio3", 593 }; 594 static const char * const atest_usb20_groups[] = { 595 "gpio56", 596 }; 597 static const char * const atest_usb21_groups[] = { 598 "gpio36", 599 }; 600 static const char * const atest_usb22_groups[] = { 601 "gpio57", 602 }; 603 static const char * const atest_usb23_groups[] = { 604 "gpio37", 605 }; 606 static const char * const atest_usb2_groups[] = { 607 "gpio35", 608 }; 609 static const char * const audio_ref_groups[] = { 610 "gpio62", 611 }; 612 static const char * const bimc_dte0_groups[] = { 613 "gpio9", "gpio11", 614 }; 615 static const char * const bimc_dte1_groups[] = { 616 "gpio8", "gpio10", 617 }; 618 static const char * const blsp_i2c1_groups[] = { 619 "gpio2", "gpio3", 620 }; 621 static const char * const blsp_i2c2_groups[] = { 622 "gpio6", "gpio7", 623 }; 624 static const char * const blsp_i2c3_groups[] = { 625 "gpio10", "gpio11", 626 }; 627 static const char * const blsp_i2c4_groups[] = { 628 "gpio14", "gpio15", 629 }; 630 static const char * const blsp_i2c5_groups[] = { 631 "gpio18", "gpio19", 632 }; 633 static const char * const blsp_i2c6_groups[] = { 634 "gpio22", "gpio23", 635 }; 636 static const char * const blsp_i2c7_groups[] = { 637 "gpio26", "gpio27", 638 }; 639 static const char * const blsp_i2c8_a_groups[] = { 640 "gpio30", "gpio31", 641 }; 642 static const char * const blsp_i2c8_b_groups[] = { 643 "gpio44", "gpio52", 644 }; 645 static const char * const blsp_spi1_groups[] = { 646 "gpio0", "gpio1", "gpio2", "gpio3", "gpio46", 647 }; 648 static const char * const blsp_spi2_groups[] = { 649 "gpio4", "gpio5", "gpio6", "gpio7", 650 }; 651 static const char * const blsp_spi3_cs1_groups[] = { 652 "gpio30", 653 }; 654 static const char * const blsp_spi3_cs2_groups[] = { 655 "gpio65", 656 }; 657 static const char * const blsp_spi3_groups[] = { 658 "gpio8", "gpio9", "gpio10", "gpio11", 659 }; 660 static const char * const blsp_spi4_groups[] = { 661 "gpio12", "gpio13", "gpio14", "gpio15", 662 }; 663 static const char * const blsp_spi5_groups[] = { 664 "gpio16", "gpio17", "gpio18", "gpio19", 665 }; 666 static const char * const blsp_spi6_groups[] = { 667 "gpio49", "gpio52", "gpio22", "gpio23", 668 }; 669 static const char * const blsp_spi7_groups[] = { 670 "gpio24", "gpio25", "gpio26", "gpio27", 671 }; 672 static const char * const blsp_spi8_a_groups[] = { 673 "gpio28", "gpio29", "gpio30", "gpio31", 674 }; 675 static const char * const blsp_spi8_b_groups[] = { 676 "gpio40", "gpio41", "gpio44", "gpio52", 677 }; 678 static const char * const blsp_spi8_cs1_groups[] = { 679 "gpio64", 680 }; 681 static const char * const blsp_spi8_cs2_groups[] = { 682 "gpio76", 683 }; 684 static const char * const blsp_uart1_groups[] = { 685 "gpio0", "gpio1", "gpio2", "gpio3", 686 }; 687 static const char * const blsp_uart2_groups[] = { 688 "gpio4", "gpio5", "gpio6", "gpio7", 689 }; 690 static const char * const blsp_uart5_groups[] = { 691 "gpio16", "gpio17", "gpio18", "gpio19", 692 }; 693 static const char * const blsp_uart6_a_groups[] = { 694 "gpio24", "gpio25", "gpio26", "gpio27", 695 }; 696 static const char * const blsp_uart6_b_groups[] = { 697 "gpio28", "gpio29", "gpio30", "gpio31", 698 }; 699 static const char * const blsp_uim1_groups[] = { 700 "gpio0", "gpio1", 701 }; 702 static const char * const blsp_uim2_groups[] = { 703 "gpio4", "gpio5", 704 }; 705 static const char * const blsp_uim5_groups[] = { 706 "gpio16", "gpio17", 707 }; 708 static const char * const blsp_uim6_groups[] = { 709 "gpio20", "gpio21", 710 }; 711 static const char * const cam_mclk_groups[] = { 712 "gpio32", "gpio33", "gpio34", "gpio35", 713 }; 714 static const char * const cci_async_groups[] = { 715 "gpio45", 716 }; 717 static const char * const cci_i2c_groups[] = { 718 "gpio36", "gpio37", "gpio38", "gpio39", 719 }; 720 static const char * const cri_trng0_groups[] = { 721 "gpio60", 722 }; 723 static const char * const cri_trng1_groups[] = { 724 "gpio61", 725 }; 726 static const char * const cri_trng_groups[] = { 727 "gpio62", 728 }; 729 static const char * const dbg_out_groups[] = { 730 "gpio11", 731 }; 732 static const char * const ddr_bist_groups[] = { 733 "gpio3", "gpio8", "gpio9", "gpio10", 734 }; 735 static const char * const gcc_gp1_groups[] = { 736 "gpio57", "gpio78", 737 }; 738 static const char * const gcc_gp2_groups[] = { 739 "gpio58", "gpio81", 740 }; 741 static const char * const gcc_gp3_groups[] = { 742 "gpio59", "gpio82", 743 }; 744 static const char * const gps_tx_a_groups[] = { 745 "gpio65", 746 }; 747 static const char * const gps_tx_b_groups[] = { 748 "gpio98", 749 }; 750 static const char * const gps_tx_c_groups[] = { 751 "gpio80", 752 }; 753 static const char * const isense_dbg_groups[] = { 754 "gpio68", 755 }; 756 static const char * const jitter_bist_groups[] = { 757 "gpio35", 758 }; 759 static const char * const ldo_en_groups[] = { 760 "gpio97", 761 }; 762 static const char * const ldo_update_groups[] = { 763 "gpio98", 764 }; 765 static const char * const m_voc_groups[] = { 766 "gpio28", 767 }; 768 static const char * const mdp_vsync_groups[] = { 769 "gpio59", "gpio74", 770 }; 771 static const char * const mdss_vsync0_groups[] = { 772 "gpio42", 773 }; 774 static const char * const mdss_vsync1_groups[] = { 775 "gpio42", 776 }; 777 static const char * const mdss_vsync2_groups[] = { 778 "gpio42", 779 }; 780 static const char * const mdss_vsync3_groups[] = { 781 "gpio42", 782 }; 783 static const char * const mss_lte_groups[] = { 784 "gpio81", "gpio82", 785 }; 786 static const char * const nav_pps_a_groups[] = { 787 "gpio65", 788 }; 789 static const char * const nav_pps_b_groups[] = { 790 "gpio98", 791 }; 792 static const char * const nav_pps_c_groups[] = { 793 "gpio80", 794 }; 795 static const char * const pa_indicator_groups[] = { 796 "gpio92", 797 }; 798 static const char * const phase_flag0_groups[] = { 799 "gpio68", 800 }; 801 static const char * const phase_flag1_groups[] = { 802 "gpio48", 803 }; 804 static const char * const phase_flag2_groups[] = { 805 "gpio49", 806 }; 807 static const char * const phase_flag3_groups[] = { 808 "gpio4", 809 }; 810 static const char * const phase_flag4_groups[] = { 811 "gpio57", 812 }; 813 static const char * const phase_flag5_groups[] = { 814 "gpio17", 815 }; 816 static const char * const phase_flag6_groups[] = { 817 "gpio53", 818 }; 819 static const char * const phase_flag7_groups[] = { 820 "gpio69", 821 }; 822 static const char * const phase_flag8_groups[] = { 823 "gpio70", 824 }; 825 static const char * const phase_flag9_groups[] = { 826 "gpio50", 827 }; 828 static const char * const phase_flag10_groups[] = { 829 "gpio56", 830 }; 831 static const char * const phase_flag11_groups[] = { 832 "gpio21", 833 }; 834 static const char * const phase_flag12_groups[] = { 835 "gpio22", 836 }; 837 static const char * const phase_flag13_groups[] = { 838 "gpio23", 839 }; 840 static const char * const phase_flag14_groups[] = { 841 "gpio5", 842 }; 843 static const char * const phase_flag15_groups[] = { 844 "gpio51", 845 }; 846 static const char * const phase_flag16_groups[] = { 847 "gpio52", 848 }; 849 static const char * const phase_flag17_groups[] = { 850 "gpio24", 851 }; 852 static const char * const phase_flag18_groups[] = { 853 "gpio25", 854 }; 855 static const char * const phase_flag19_groups[] = { 856 "gpio26", 857 }; 858 static const char * const phase_flag20_groups[] = { 859 "gpio27", 860 }; 861 static const char * const phase_flag21_groups[] = { 862 "gpio28", 863 }; 864 static const char * const phase_flag22_groups[] = { 865 "gpio29", 866 }; 867 static const char * const phase_flag23_groups[] = { 868 "gpio30", 869 }; 870 static const char * const phase_flag24_groups[] = { 871 "gpio31", 872 }; 873 static const char * const phase_flag25_groups[] = { 874 "gpio55", 875 }; 876 static const char * const phase_flag26_groups[] = { 877 "gpio12", 878 }; 879 static const char * const phase_flag27_groups[] = { 880 "gpio13", 881 }; 882 static const char * const phase_flag28_groups[] = { 883 "gpio14", 884 }; 885 static const char * const phase_flag29_groups[] = { 886 "gpio54", 887 }; 888 static const char * const phase_flag30_groups[] = { 889 "gpio47", 890 }; 891 static const char * const phase_flag31_groups[] = { 892 "gpio6", 893 }; 894 static const char * const pll_bypassnl_groups[] = { 895 "gpio36", 896 }; 897 static const char * const pll_reset_groups[] = { 898 "gpio37", 899 }; 900 static const char * const pri_mi2s_groups[] = { 901 "gpio12", "gpio14", "gpio15", "gpio61", 902 }; 903 static const char * const pri_mi2s_ws_groups[] = { 904 "gpio13", 905 }; 906 static const char * const prng_rosc_groups[] = { 907 "gpio102", 908 }; 909 static const char * const pwr_crypto_groups[] = { 910 "gpio33", 911 }; 912 static const char * const pwr_modem_groups[] = { 913 "gpio31", 914 }; 915 static const char * const pwr_nav_groups[] = { 916 "gpio32", 917 }; 918 static const char * const qdss_cti0_a_groups[] = { 919 "gpio49", "gpio50", 920 }; 921 static const char * const qdss_cti0_b_groups[] = { 922 "gpio13", "gpio21", 923 }; 924 static const char * const qdss_cti1_a_groups[] = { 925 "gpio53", "gpio55", 926 }; 927 static const char * const qdss_cti1_b_groups[] = { 928 "gpio12", "gpio66", 929 }; 930 static const char * const qdss_gpio0_groups[] = { 931 "gpio32", "gpio67", 932 }; 933 static const char * const qdss_gpio10_groups[] = { 934 "gpio43", "gpio77", 935 }; 936 static const char * const qdss_gpio11_groups[] = { 937 "gpio44", "gpio79", 938 }; 939 static const char * const qdss_gpio12_groups[] = { 940 "gpio45", "gpio80", 941 }; 942 static const char * const qdss_gpio13_groups[] = { 943 "gpio46", "gpio78", 944 }; 945 static const char * const qdss_gpio14_groups[] = { 946 "gpio47", "gpio72", 947 }; 948 static const char * const qdss_gpio15_groups[] = { 949 "gpio48", "gpio73", 950 }; 951 static const char * const qdss_gpio1_groups[] = { 952 "gpio33", "gpio63", 953 }; 954 static const char * const qdss_gpio2_groups[] = { 955 "gpio34", "gpio64", 956 }; 957 static const char * const qdss_gpio3_groups[] = { 958 "gpio35", "gpio56", 959 }; 960 static const char * const qdss_gpio4_groups[] = { 961 "gpio0", "gpio36", 962 }; 963 static const char * const qdss_gpio5_groups[] = { 964 "gpio1", "gpio37", 965 }; 966 static const char * const qdss_gpio6_groups[] = { 967 "gpio38", "gpio70", 968 }; 969 static const char * const qdss_gpio7_groups[] = { 970 "gpio39", "gpio71", 971 }; 972 static const char * const qdss_gpio8_groups[] = { 973 "gpio51", "gpio75", 974 }; 975 static const char * const qdss_gpio9_groups[] = { 976 "gpio42", "gpio76", 977 }; 978 static const char * const qdss_gpio_groups[] = { 979 "gpio31", "gpio52", "gpio68", "gpio69", 980 }; 981 static const char * const qlink_enable_groups[] = { 982 "gpio100", 983 }; 984 static const char * const qlink_request_groups[] = { 985 "gpio99", 986 }; 987 static const char * const qspi_clk_groups[] = { 988 "gpio47", 989 }; 990 static const char * const qspi_cs_groups[] = { 991 "gpio43", "gpio50", 992 }; 993 static const char * const qspi_data0_groups[] = { 994 "gpio33", 995 }; 996 static const char * const qspi_data1_groups[] = { 997 "gpio34", 998 }; 999 static const char * const qspi_data2_groups[] = { 1000 "gpio35", 1001 }; 1002 static const char * const qspi_data3_groups[] = { 1003 "gpio51", 1004 }; 1005 static const char * const qspi_resetn_groups[] = { 1006 "gpio48", 1007 }; 1008 static const char * const sec_mi2s_groups[] = { 1009 "gpio24", "gpio25", "gpio26", "gpio27", "gpio62", 1010 }; 1011 static const char * const sndwire_clk_groups[] = { 1012 "gpio24", 1013 }; 1014 static const char * const sndwire_data_groups[] = { 1015 "gpio25", 1016 }; 1017 static const char * const sp_cmu_groups[] = { 1018 "gpio64", 1019 }; 1020 static const char * const ssc_irq_groups[] = { 1021 "gpio67", "gpio68", "gpio69", "gpio70", "gpio71", "gpio72", "gpio74", 1022 "gpio75", "gpio76", 1023 }; 1024 static const char * const tgu_ch0_groups[] = { 1025 "gpio0", 1026 }; 1027 static const char * const tgu_ch1_groups[] = { 1028 "gpio1", 1029 }; 1030 static const char * const tsense_pwm1_groups[] = { 1031 "gpio71", 1032 }; 1033 static const char * const tsense_pwm2_groups[] = { 1034 "gpio71", 1035 }; 1036 static const char * const uim1_clk_groups[] = { 1037 "gpio88", 1038 }; 1039 static const char * const uim1_data_groups[] = { 1040 "gpio87", 1041 }; 1042 static const char * const uim1_present_groups[] = { 1043 "gpio90", 1044 }; 1045 static const char * const uim1_reset_groups[] = { 1046 "gpio89", 1047 }; 1048 static const char * const uim2_clk_groups[] = { 1049 "gpio84", 1050 }; 1051 static const char * const uim2_data_groups[] = { 1052 "gpio83", 1053 }; 1054 static const char * const uim2_present_groups[] = { 1055 "gpio86", 1056 }; 1057 static const char * const uim2_reset_groups[] = { 1058 "gpio85", 1059 }; 1060 static const char * const uim_batt_groups[] = { 1061 "gpio91", 1062 }; 1063 static const char * const vfr_1_groups[] = { 1064 "gpio27", 1065 }; 1066 static const char * const vsense_clkout_groups[] = { 1067 "gpio24", 1068 }; 1069 static const char * const vsense_data0_groups[] = { 1070 "gpio21", 1071 }; 1072 static const char * const vsense_data1_groups[] = { 1073 "gpio22", 1074 }; 1075 static const char * const vsense_mode_groups[] = { 1076 "gpio23", 1077 }; 1078 static const char * const wlan1_adc0_groups[] = { 1079 "gpio9", 1080 }; 1081 static const char * const wlan1_adc1_groups[] = { 1082 "gpio8", 1083 }; 1084 static const char * const wlan2_adc0_groups[] = { 1085 "gpio11", 1086 }; 1087 static const char * const wlan2_adc1_groups[] = { 1088 "gpio10", 1089 }; 1090 1091 static const struct pinfunction sdm660_functions[] = { 1092 MSM_PIN_FUNCTION(adsp_ext), 1093 MSM_PIN_FUNCTION(agera_pll), 1094 MSM_PIN_FUNCTION(atest_char), 1095 MSM_PIN_FUNCTION(atest_char0), 1096 MSM_PIN_FUNCTION(atest_char1), 1097 MSM_PIN_FUNCTION(atest_char2), 1098 MSM_PIN_FUNCTION(atest_char3), 1099 MSM_PIN_FUNCTION(atest_gpsadc0), 1100 MSM_PIN_FUNCTION(atest_gpsadc1), 1101 MSM_PIN_FUNCTION(atest_tsens), 1102 MSM_PIN_FUNCTION(atest_tsens2), 1103 MSM_PIN_FUNCTION(atest_usb1), 1104 MSM_PIN_FUNCTION(atest_usb10), 1105 MSM_PIN_FUNCTION(atest_usb11), 1106 MSM_PIN_FUNCTION(atest_usb12), 1107 MSM_PIN_FUNCTION(atest_usb13), 1108 MSM_PIN_FUNCTION(atest_usb2), 1109 MSM_PIN_FUNCTION(atest_usb20), 1110 MSM_PIN_FUNCTION(atest_usb21), 1111 MSM_PIN_FUNCTION(atest_usb22), 1112 MSM_PIN_FUNCTION(atest_usb23), 1113 MSM_PIN_FUNCTION(audio_ref), 1114 MSM_PIN_FUNCTION(bimc_dte0), 1115 MSM_PIN_FUNCTION(bimc_dte1), 1116 MSM_PIN_FUNCTION(blsp_i2c1), 1117 MSM_PIN_FUNCTION(blsp_i2c2), 1118 MSM_PIN_FUNCTION(blsp_i2c3), 1119 MSM_PIN_FUNCTION(blsp_i2c4), 1120 MSM_PIN_FUNCTION(blsp_i2c5), 1121 MSM_PIN_FUNCTION(blsp_i2c6), 1122 MSM_PIN_FUNCTION(blsp_i2c7), 1123 MSM_PIN_FUNCTION(blsp_i2c8_a), 1124 MSM_PIN_FUNCTION(blsp_i2c8_b), 1125 MSM_PIN_FUNCTION(blsp_spi1), 1126 MSM_PIN_FUNCTION(blsp_spi2), 1127 MSM_PIN_FUNCTION(blsp_spi3), 1128 MSM_PIN_FUNCTION(blsp_spi3_cs1), 1129 MSM_PIN_FUNCTION(blsp_spi3_cs2), 1130 MSM_PIN_FUNCTION(blsp_spi4), 1131 MSM_PIN_FUNCTION(blsp_spi5), 1132 MSM_PIN_FUNCTION(blsp_spi6), 1133 MSM_PIN_FUNCTION(blsp_spi7), 1134 MSM_PIN_FUNCTION(blsp_spi8_a), 1135 MSM_PIN_FUNCTION(blsp_spi8_b), 1136 MSM_PIN_FUNCTION(blsp_spi8_cs1), 1137 MSM_PIN_FUNCTION(blsp_spi8_cs2), 1138 MSM_PIN_FUNCTION(blsp_uart1), 1139 MSM_PIN_FUNCTION(blsp_uart2), 1140 MSM_PIN_FUNCTION(blsp_uart5), 1141 MSM_PIN_FUNCTION(blsp_uart6_a), 1142 MSM_PIN_FUNCTION(blsp_uart6_b), 1143 MSM_PIN_FUNCTION(blsp_uim1), 1144 MSM_PIN_FUNCTION(blsp_uim2), 1145 MSM_PIN_FUNCTION(blsp_uim5), 1146 MSM_PIN_FUNCTION(blsp_uim6), 1147 MSM_PIN_FUNCTION(cam_mclk), 1148 MSM_PIN_FUNCTION(cci_async), 1149 MSM_PIN_FUNCTION(cci_i2c), 1150 MSM_PIN_FUNCTION(cri_trng), 1151 MSM_PIN_FUNCTION(cri_trng0), 1152 MSM_PIN_FUNCTION(cri_trng1), 1153 MSM_PIN_FUNCTION(dbg_out), 1154 MSM_PIN_FUNCTION(ddr_bist), 1155 MSM_PIN_FUNCTION(gcc_gp1), 1156 MSM_PIN_FUNCTION(gcc_gp2), 1157 MSM_PIN_FUNCTION(gcc_gp3), 1158 MSM_GPIO_PIN_FUNCTION(gpio), 1159 MSM_PIN_FUNCTION(gps_tx_a), 1160 MSM_PIN_FUNCTION(gps_tx_b), 1161 MSM_PIN_FUNCTION(gps_tx_c), 1162 MSM_PIN_FUNCTION(isense_dbg), 1163 MSM_PIN_FUNCTION(jitter_bist), 1164 MSM_PIN_FUNCTION(ldo_en), 1165 MSM_PIN_FUNCTION(ldo_update), 1166 MSM_PIN_FUNCTION(m_voc), 1167 MSM_PIN_FUNCTION(mdp_vsync), 1168 MSM_PIN_FUNCTION(mdss_vsync0), 1169 MSM_PIN_FUNCTION(mdss_vsync1), 1170 MSM_PIN_FUNCTION(mdss_vsync2), 1171 MSM_PIN_FUNCTION(mdss_vsync3), 1172 MSM_PIN_FUNCTION(mss_lte), 1173 MSM_PIN_FUNCTION(nav_pps_a), 1174 MSM_PIN_FUNCTION(nav_pps_b), 1175 MSM_PIN_FUNCTION(nav_pps_c), 1176 MSM_PIN_FUNCTION(pa_indicator), 1177 MSM_PIN_FUNCTION(phase_flag0), 1178 MSM_PIN_FUNCTION(phase_flag1), 1179 MSM_PIN_FUNCTION(phase_flag2), 1180 MSM_PIN_FUNCTION(phase_flag3), 1181 MSM_PIN_FUNCTION(phase_flag4), 1182 MSM_PIN_FUNCTION(phase_flag5), 1183 MSM_PIN_FUNCTION(phase_flag6), 1184 MSM_PIN_FUNCTION(phase_flag7), 1185 MSM_PIN_FUNCTION(phase_flag8), 1186 MSM_PIN_FUNCTION(phase_flag9), 1187 MSM_PIN_FUNCTION(phase_flag10), 1188 MSM_PIN_FUNCTION(phase_flag11), 1189 MSM_PIN_FUNCTION(phase_flag12), 1190 MSM_PIN_FUNCTION(phase_flag13), 1191 MSM_PIN_FUNCTION(phase_flag14), 1192 MSM_PIN_FUNCTION(phase_flag15), 1193 MSM_PIN_FUNCTION(phase_flag16), 1194 MSM_PIN_FUNCTION(phase_flag17), 1195 MSM_PIN_FUNCTION(phase_flag18), 1196 MSM_PIN_FUNCTION(phase_flag19), 1197 MSM_PIN_FUNCTION(phase_flag20), 1198 MSM_PIN_FUNCTION(phase_flag21), 1199 MSM_PIN_FUNCTION(phase_flag22), 1200 MSM_PIN_FUNCTION(phase_flag23), 1201 MSM_PIN_FUNCTION(phase_flag24), 1202 MSM_PIN_FUNCTION(phase_flag25), 1203 MSM_PIN_FUNCTION(phase_flag26), 1204 MSM_PIN_FUNCTION(phase_flag27), 1205 MSM_PIN_FUNCTION(phase_flag28), 1206 MSM_PIN_FUNCTION(phase_flag29), 1207 MSM_PIN_FUNCTION(phase_flag30), 1208 MSM_PIN_FUNCTION(phase_flag31), 1209 MSM_PIN_FUNCTION(pll_bypassnl), 1210 MSM_PIN_FUNCTION(pll_reset), 1211 MSM_PIN_FUNCTION(pri_mi2s), 1212 MSM_PIN_FUNCTION(pri_mi2s_ws), 1213 MSM_PIN_FUNCTION(prng_rosc), 1214 MSM_PIN_FUNCTION(pwr_crypto), 1215 MSM_PIN_FUNCTION(pwr_modem), 1216 MSM_PIN_FUNCTION(pwr_nav), 1217 MSM_PIN_FUNCTION(qdss_cti0_a), 1218 MSM_PIN_FUNCTION(qdss_cti0_b), 1219 MSM_PIN_FUNCTION(qdss_cti1_a), 1220 MSM_PIN_FUNCTION(qdss_cti1_b), 1221 MSM_PIN_FUNCTION(qdss_gpio), 1222 MSM_PIN_FUNCTION(qdss_gpio0), 1223 MSM_PIN_FUNCTION(qdss_gpio1), 1224 MSM_PIN_FUNCTION(qdss_gpio10), 1225 MSM_PIN_FUNCTION(qdss_gpio11), 1226 MSM_PIN_FUNCTION(qdss_gpio12), 1227 MSM_PIN_FUNCTION(qdss_gpio13), 1228 MSM_PIN_FUNCTION(qdss_gpio14), 1229 MSM_PIN_FUNCTION(qdss_gpio15), 1230 MSM_PIN_FUNCTION(qdss_gpio2), 1231 MSM_PIN_FUNCTION(qdss_gpio3), 1232 MSM_PIN_FUNCTION(qdss_gpio4), 1233 MSM_PIN_FUNCTION(qdss_gpio5), 1234 MSM_PIN_FUNCTION(qdss_gpio6), 1235 MSM_PIN_FUNCTION(qdss_gpio7), 1236 MSM_PIN_FUNCTION(qdss_gpio8), 1237 MSM_PIN_FUNCTION(qdss_gpio9), 1238 MSM_PIN_FUNCTION(qlink_enable), 1239 MSM_PIN_FUNCTION(qlink_request), 1240 MSM_PIN_FUNCTION(qspi_clk), 1241 MSM_PIN_FUNCTION(qspi_cs), 1242 MSM_PIN_FUNCTION(qspi_data0), 1243 MSM_PIN_FUNCTION(qspi_data1), 1244 MSM_PIN_FUNCTION(qspi_data2), 1245 MSM_PIN_FUNCTION(qspi_data3), 1246 MSM_PIN_FUNCTION(qspi_resetn), 1247 MSM_PIN_FUNCTION(sec_mi2s), 1248 MSM_PIN_FUNCTION(sndwire_clk), 1249 MSM_PIN_FUNCTION(sndwire_data), 1250 MSM_PIN_FUNCTION(sp_cmu), 1251 MSM_PIN_FUNCTION(ssc_irq), 1252 MSM_PIN_FUNCTION(tgu_ch0), 1253 MSM_PIN_FUNCTION(tgu_ch1), 1254 MSM_PIN_FUNCTION(tsense_pwm1), 1255 MSM_PIN_FUNCTION(tsense_pwm2), 1256 MSM_PIN_FUNCTION(uim1_clk), 1257 MSM_PIN_FUNCTION(uim1_data), 1258 MSM_PIN_FUNCTION(uim1_present), 1259 MSM_PIN_FUNCTION(uim1_reset), 1260 MSM_PIN_FUNCTION(uim2_clk), 1261 MSM_PIN_FUNCTION(uim2_data), 1262 MSM_PIN_FUNCTION(uim2_present), 1263 MSM_PIN_FUNCTION(uim2_reset), 1264 MSM_PIN_FUNCTION(uim_batt), 1265 MSM_PIN_FUNCTION(vfr_1), 1266 MSM_PIN_FUNCTION(vsense_clkout), 1267 MSM_PIN_FUNCTION(vsense_data0), 1268 MSM_PIN_FUNCTION(vsense_data1), 1269 MSM_PIN_FUNCTION(vsense_mode), 1270 MSM_PIN_FUNCTION(wlan1_adc0), 1271 MSM_PIN_FUNCTION(wlan1_adc1), 1272 MSM_PIN_FUNCTION(wlan2_adc0), 1273 MSM_PIN_FUNCTION(wlan2_adc1), 1274 }; 1275 1276 static const struct msm_pingroup sdm660_groups[] = { 1277 PINGROUP(0, SOUTH, blsp_spi1, blsp_uart1, blsp_uim1, tgu_ch0, _, _, qdss_gpio4, atest_gpsadc1, _), 1278 PINGROUP(1, SOUTH, blsp_spi1, blsp_uart1, blsp_uim1, tgu_ch1, _, _, qdss_gpio5, atest_gpsadc0, _), 1279 PINGROUP(2, SOUTH, blsp_spi1, blsp_uart1, blsp_i2c1, _, _, _, _, _, _), 1280 PINGROUP(3, SOUTH, blsp_spi1, blsp_uart1, blsp_i2c1, ddr_bist, _, _, atest_tsens2, atest_usb1, _), 1281 PINGROUP(4, NORTH, blsp_spi2, blsp_uim2, blsp_uart2, phase_flag3, _, _, _, _, _), 1282 PINGROUP(5, SOUTH, blsp_spi2, blsp_uim2, blsp_uart2, phase_flag14, _, _, _, _, _), 1283 PINGROUP(6, SOUTH, blsp_spi2, blsp_i2c2, blsp_uart2, phase_flag31, _, _, _, _, _), 1284 PINGROUP(7, SOUTH, blsp_spi2, blsp_i2c2, blsp_uart2, _, _, _, _, _, _), 1285 PINGROUP(8, NORTH, blsp_spi3, ddr_bist, _, _, _, wlan1_adc1, atest_usb13, bimc_dte1, _), 1286 PINGROUP(9, NORTH, blsp_spi3, ddr_bist, _, _, _, wlan1_adc0, atest_usb12, bimc_dte0, _), 1287 PINGROUP(10, NORTH, blsp_spi3, blsp_i2c3, ddr_bist, _, _, wlan2_adc1, atest_usb11, bimc_dte1, _), 1288 PINGROUP(11, NORTH, blsp_spi3, blsp_i2c3, _, dbg_out, wlan2_adc0, atest_usb10, bimc_dte0, _, _), 1289 PINGROUP(12, NORTH, blsp_spi4, pri_mi2s, _, phase_flag26, qdss_cti1_b, _, _, _, _), 1290 PINGROUP(13, NORTH, blsp_spi4, _, pri_mi2s_ws, _, _, phase_flag27, qdss_cti0_b, _, _), 1291 PINGROUP(14, NORTH, blsp_spi4, blsp_i2c4, pri_mi2s, _, phase_flag28, _, _, _, _), 1292 PINGROUP(15, NORTH, blsp_spi4, blsp_i2c4, pri_mi2s, _, _, _, _, _, _), 1293 PINGROUP(16, CENTER, blsp_uart5, blsp_spi5, blsp_uim5, _, _, _, _, _, _), 1294 PINGROUP(17, CENTER, blsp_uart5, blsp_spi5, blsp_uim5, _, phase_flag5, _, _, _, _), 1295 PINGROUP(18, CENTER, blsp_uart5, blsp_spi5, blsp_i2c5, _, _, _, _, _, _), 1296 PINGROUP(19, CENTER, blsp_uart5, blsp_spi5, blsp_i2c5, _, _, _, _, _, _), 1297 PINGROUP(20, SOUTH, _, _, blsp_uim6, _, _, _, _, _, _), 1298 PINGROUP(21, SOUTH, _, _, blsp_uim6, _, phase_flag11, qdss_cti0_b, vsense_data0, _, _), 1299 PINGROUP(22, CENTER, blsp_spi6, _, blsp_i2c6, _, phase_flag12, vsense_data1, _, _, _), 1300 PINGROUP(23, CENTER, blsp_spi6, _, blsp_i2c6, _, phase_flag13, vsense_mode, _, _, _), 1301 PINGROUP(24, NORTH, blsp_spi7, blsp_uart6_a, sec_mi2s, sndwire_clk, _, _, phase_flag17, vsense_clkout, _), 1302 PINGROUP(25, NORTH, blsp_spi7, blsp_uart6_a, sec_mi2s, sndwire_data, _, _, phase_flag18, _, _), 1303 PINGROUP(26, NORTH, blsp_spi7, blsp_uart6_a, blsp_i2c7, sec_mi2s, _, phase_flag19, _, _, _), 1304 PINGROUP(27, NORTH, blsp_spi7, blsp_uart6_a, blsp_i2c7, vfr_1, sec_mi2s, _, phase_flag20, _, _), 1305 PINGROUP(28, CENTER, blsp_spi8_a, blsp_uart6_b, m_voc, _, phase_flag21, _, _, _, _), 1306 PINGROUP(29, CENTER, blsp_spi8_a, blsp_uart6_b, _, _, phase_flag22, _, _, _, _), 1307 PINGROUP(30, CENTER, blsp_spi8_a, blsp_uart6_b, blsp_i2c8_a, blsp_spi3_cs1, _, phase_flag23, _, _, _), 1308 PINGROUP(31, CENTER, blsp_spi8_a, blsp_uart6_b, blsp_i2c8_a, pwr_modem, _, phase_flag24, qdss_gpio, _, _), 1309 PINGROUP(32, SOUTH, cam_mclk, pwr_nav, _, _, qdss_gpio0, _, _, _, _), 1310 PINGROUP(33, SOUTH, cam_mclk, qspi_data0, pwr_crypto, _, _, qdss_gpio1, _, _, _), 1311 PINGROUP(34, SOUTH, cam_mclk, qspi_data1, agera_pll, _, _, qdss_gpio2, _, _, _), 1312 PINGROUP(35, SOUTH, cam_mclk, qspi_data2, jitter_bist, _, _, qdss_gpio3, _, atest_usb2, _), 1313 PINGROUP(36, SOUTH, cci_i2c, pll_bypassnl, agera_pll, _, _, qdss_gpio4, atest_tsens, atest_usb21, _), 1314 PINGROUP(37, SOUTH, cci_i2c, pll_reset, _, _, qdss_gpio5, atest_usb23, _, _, _), 1315 PINGROUP(38, SOUTH, cci_i2c, _, _, qdss_gpio6, _, _, _, _, _), 1316 PINGROUP(39, SOUTH, cci_i2c, _, _, qdss_gpio7, _, _, _, _, _), 1317 PINGROUP(40, SOUTH, _, _, blsp_spi8_b, _, _, _, _, _, _), 1318 PINGROUP(41, SOUTH, _, _, blsp_spi8_b, _, _, _, _, _, _), 1319 PINGROUP(42, SOUTH, mdss_vsync0, mdss_vsync1, mdss_vsync2, mdss_vsync3, _, _, qdss_gpio9, _, _), 1320 PINGROUP(43, SOUTH, _, _, qspi_cs, _, _, qdss_gpio10, _, _, _), 1321 PINGROUP(44, SOUTH, _, _, blsp_spi8_b, blsp_i2c8_b, _, _, qdss_gpio11, _, _), 1322 PINGROUP(45, SOUTH, cci_async, _, _, qdss_gpio12, _, _, _, _, _), 1323 PINGROUP(46, SOUTH, blsp_spi1, _, _, qdss_gpio13, _, _, _, _, _), 1324 PINGROUP(47, SOUTH, qspi_clk, _, phase_flag30, qdss_gpio14, _, _, _, _, _), 1325 PINGROUP(48, SOUTH, _, phase_flag1, qdss_gpio15, _, _, _, _, _, _), 1326 PINGROUP(49, SOUTH, blsp_spi6, phase_flag2, qdss_cti0_a, _, _, _, _, _, _), 1327 PINGROUP(50, SOUTH, qspi_cs, _, phase_flag9, qdss_cti0_a, _, _, _, _, _), 1328 PINGROUP(51, SOUTH, qspi_data3, _, phase_flag15, qdss_gpio8, _, _, _, _, _), 1329 PINGROUP(52, SOUTH, _, blsp_spi8_b, blsp_i2c8_b, blsp_spi6, phase_flag16, qdss_gpio, _, _, _), 1330 PINGROUP(53, NORTH, _, phase_flag6, qdss_cti1_a, _, _, _, _, _, _), 1331 PINGROUP(54, NORTH, _, _, phase_flag29, _, _, _, _, _, _), 1332 PINGROUP(55, SOUTH, _, phase_flag25, qdss_cti1_a, _, _, _, _, _, _), 1333 PINGROUP(56, SOUTH, _, phase_flag10, qdss_gpio3, _, atest_usb20, _, _, _, _), 1334 PINGROUP(57, SOUTH, gcc_gp1, _, phase_flag4, atest_usb22, _, _, _, _, _), 1335 PINGROUP(58, SOUTH, _, gcc_gp2, _, _, atest_char, _, _, _, _), 1336 PINGROUP(59, NORTH, mdp_vsync, gcc_gp3, _, _, atest_char3, _, _, _, _), 1337 PINGROUP(60, NORTH, cri_trng0, _, _, atest_char2, _, _, _, _, _), 1338 PINGROUP(61, NORTH, pri_mi2s, cri_trng1, _, _, atest_char1, _, _, _, _), 1339 PINGROUP(62, NORTH, sec_mi2s, audio_ref, _, cri_trng, _, _, atest_char0, _, _), 1340 PINGROUP(63, NORTH, _, _, _, qdss_gpio1, _, _, _, _, _), 1341 PINGROUP(64, SOUTH, blsp_spi8_cs1, sp_cmu, _, _, qdss_gpio2, _, _, _, _), 1342 PINGROUP(65, SOUTH, _, nav_pps_a, nav_pps_a, gps_tx_a, blsp_spi3_cs2, adsp_ext, _, _, _), 1343 PINGROUP(66, NORTH, _, _, qdss_cti1_b, _, _, _, _, _, _), 1344 PINGROUP(67, NORTH, _, _, qdss_gpio0, _, _, _, _, _, _), 1345 PINGROUP(68, NORTH, isense_dbg, _, phase_flag0, qdss_gpio, _, _, _, _, _), 1346 PINGROUP(69, NORTH, _, phase_flag7, qdss_gpio, _, _, _, _, _, _), 1347 PINGROUP(70, NORTH, _, phase_flag8, qdss_gpio6, _, _, _, _, _, _), 1348 PINGROUP(71, NORTH, _, _, qdss_gpio7, tsense_pwm1, tsense_pwm2, _, _, _, _), 1349 PINGROUP(72, NORTH, _, qdss_gpio14, _, _, _, _, _, _, _), 1350 PINGROUP(73, NORTH, _, _, qdss_gpio15, _, _, _, _, _, _), 1351 PINGROUP(74, NORTH, mdp_vsync, _, _, _, _, _, _, _, _), 1352 PINGROUP(75, NORTH, _, _, qdss_gpio8, _, _, _, _, _, _), 1353 PINGROUP(76, NORTH, blsp_spi8_cs2, _, _, _, qdss_gpio9, _, _, _, _), 1354 PINGROUP(77, NORTH, _, _, qdss_gpio10, _, _, _, _, _, _), 1355 PINGROUP(78, NORTH, gcc_gp1, _, qdss_gpio13, _, _, _, _, _, _), 1356 PINGROUP(79, SOUTH, _, _, qdss_gpio11, _, _, _, _, _, _), 1357 PINGROUP(80, SOUTH, nav_pps_b, nav_pps_b, gps_tx_c, _, _, qdss_gpio12, _, _, _), 1358 PINGROUP(81, CENTER, mss_lte, gcc_gp2, _, _, _, _, _, _, _), 1359 PINGROUP(82, CENTER, mss_lte, gcc_gp3, _, _, _, _, _, _, _), 1360 PINGROUP(83, SOUTH, uim2_data, _, _, _, _, _, _, _, _), 1361 PINGROUP(84, SOUTH, uim2_clk, _, _, _, _, _, _, _, _), 1362 PINGROUP(85, SOUTH, uim2_reset, _, _, _, _, _, _, _, _), 1363 PINGROUP(86, SOUTH, uim2_present, _, _, _, _, _, _, _, _), 1364 PINGROUP(87, SOUTH, uim1_data, _, _, _, _, _, _, _, _), 1365 PINGROUP(88, SOUTH, uim1_clk, _, _, _, _, _, _, _, _), 1366 PINGROUP(89, SOUTH, uim1_reset, _, _, _, _, _, _, _, _), 1367 PINGROUP(90, SOUTH, uim1_present, _, _, _, _, _, _, _, _), 1368 PINGROUP(91, SOUTH, uim_batt, _, _, _, _, _, _, _, _), 1369 PINGROUP(92, SOUTH, _, _, pa_indicator, _, _, _, _, _, _), 1370 PINGROUP(93, SOUTH, _, _, _, _, _, _, _, _, _), 1371 PINGROUP(94, SOUTH, _, _, _, _, _, _, _, _, _), 1372 PINGROUP(95, SOUTH, _, _, _, _, _, _, _, _, _), 1373 PINGROUP(96, SOUTH, _, _, _, _, _, _, _, _, _), 1374 PINGROUP(97, SOUTH, _, ldo_en, _, _, _, _, _, _, _), 1375 PINGROUP(98, SOUTH, _, nav_pps_c, nav_pps_c, gps_tx_b, ldo_update, _, _, _, _), 1376 PINGROUP(99, SOUTH, qlink_request, _, _, _, _, _, _, _, _), 1377 PINGROUP(100, SOUTH, qlink_enable, _, _, _, _, _, _, _, _), 1378 PINGROUP(101, SOUTH, _, _, _, _, _, _, _, _, _), 1379 PINGROUP(102, SOUTH, _, prng_rosc, _, _, _, _, _, _, _), 1380 PINGROUP(103, SOUTH, _, _, _, _, _, _, _, _, _), 1381 PINGROUP(104, SOUTH, _, _, _, _, _, _, _, _, _), 1382 PINGROUP(105, SOUTH, _, _, _, _, _, _, _, _, _), 1383 PINGROUP(106, SOUTH, _, _, _, _, _, _, _, _, _), 1384 PINGROUP(107, SOUTH, _, _, _, _, _, _, _, _, _), 1385 PINGROUP(108, SOUTH, _, _, _, _, _, _, _, _, _), 1386 PINGROUP(109, SOUTH, _, _, _, _, _, _, _, _, _), 1387 PINGROUP(110, SOUTH, _, _, _, _, _, _, _, _, _), 1388 PINGROUP(111, SOUTH, _, _, _, _, _, _, _, _, _), 1389 PINGROUP(112, SOUTH, _, _, _, _, _, _, _, _, _), 1390 PINGROUP(113, SOUTH, _, _, _, _, _, _, _, _, _), 1391 SDC_QDSD_PINGROUP(sdc1_clk, 0x9a000, 13, 6), 1392 SDC_QDSD_PINGROUP(sdc1_cmd, 0x9a000, 11, 3), 1393 SDC_QDSD_PINGROUP(sdc1_data, 0x9a000, 9, 0), 1394 SDC_QDSD_PINGROUP(sdc2_clk, 0x9b000, 14, 6), 1395 SDC_QDSD_PINGROUP(sdc2_cmd, 0x9b000, 11, 3), 1396 SDC_QDSD_PINGROUP(sdc2_data, 0x9b000, 9, 0), 1397 SDC_QDSD_PINGROUP(sdc1_rclk, 0x9a000, 15, 0), 1398 }; 1399 1400 static const struct msm_gpio_wakeirq_map sdm660_mpm_map[] = { 1401 { 1, 3 }, { 5, 4 }, { 9, 5 }, { 10, 6 }, { 66, 7 }, { 22, 8 }, { 25, 9 }, { 28, 10 }, 1402 { 58, 11 }, { 41, 13 }, { 43, 14 }, { 40, 15 }, { 42, 16 }, { 46, 17 }, { 50, 18 }, 1403 { 44, 19 }, { 56, 21 }, { 45, 22 }, { 68, 23 }, { 69, 24 }, { 70, 25 }, { 71, 26 }, 1404 { 72, 27 }, { 73, 28 }, { 64, 29 }, { 2, 30 }, { 13, 31 }, { 111, 32 }, { 74, 33 }, 1405 { 75, 34 }, { 76, 35 }, { 82, 36 }, { 17, 37 }, { 77, 38 }, { 47, 39 }, { 54, 40 }, 1406 { 48, 41 }, { 101, 42 }, { 49, 43 }, { 51, 44 }, { 86, 45 }, { 90, 46 }, { 91, 47 }, 1407 { 52, 48 }, { 55, 50 }, { 6, 51 }, { 65, 53 }, { 67, 55 }, { 83, 56 }, { 84, 57 }, 1408 { 85, 58 }, { 87, 59 }, { 21, 63 }, { 78, 64 }, { 113, 65 }, { 60, 66 }, { 98, 67 }, 1409 { 30, 68 }, { 31, 70 }, { 29, 71 }, { 107, 76 }, { 109, 83 }, { 103, 84 }, { 105, 85 }, 1410 }; 1411 1412 static const struct msm_pinctrl_soc_data sdm660_pinctrl = { 1413 .pins = sdm660_pins, 1414 .npins = ARRAY_SIZE(sdm660_pins), 1415 .functions = sdm660_functions, 1416 .nfunctions = ARRAY_SIZE(sdm660_functions), 1417 .groups = sdm660_groups, 1418 .ngroups = ARRAY_SIZE(sdm660_groups), 1419 .ngpios = 114, 1420 .tiles = sdm660_tiles, 1421 .ntiles = ARRAY_SIZE(sdm660_tiles), 1422 .wakeirq_map = sdm660_mpm_map, 1423 .nwakeirq_map = ARRAY_SIZE(sdm660_mpm_map), 1424 }; 1425 1426 static int sdm660_pinctrl_probe(struct platform_device *pdev) 1427 { 1428 return msm_pinctrl_probe(pdev, &sdm660_pinctrl); 1429 } 1430 1431 static const struct of_device_id sdm660_pinctrl_of_match[] = { 1432 { .compatible = "qcom,sdm660-pinctrl", }, 1433 { .compatible = "qcom,sdm630-pinctrl", }, 1434 { }, 1435 }; 1436 1437 static struct platform_driver sdm660_pinctrl_driver = { 1438 .driver = { 1439 .name = "sdm660-pinctrl", 1440 .of_match_table = sdm660_pinctrl_of_match, 1441 }, 1442 .probe = sdm660_pinctrl_probe, 1443 }; 1444 1445 static int __init sdm660_pinctrl_init(void) 1446 { 1447 return platform_driver_register(&sdm660_pinctrl_driver); 1448 } 1449 arch_initcall(sdm660_pinctrl_init); 1450 1451 static void __exit sdm660_pinctrl_exit(void) 1452 { 1453 platform_driver_unregister(&sdm660_pinctrl_driver); 1454 } 1455 module_exit(sdm660_pinctrl_exit); 1456 1457 MODULE_DESCRIPTION("QTI sdm660 pinctrl driver"); 1458 MODULE_LICENSE("GPL v2"); 1459 MODULE_DEVICE_TABLE(of, sdm660_pinctrl_of_match); 1460