1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (c) 2018, 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 #include <linux/pinctrl/pinctrl.h> 10 11 #include "pinctrl-msm.h" 12 13 static const char * const qcs404_tiles[] = { 14 "north", 15 "south", 16 "east" 17 }; 18 19 enum { 20 NORTH, 21 SOUTH, 22 EAST 23 }; 24 25 #define FUNCTION(fname) \ 26 [msm_mux_##fname] = { \ 27 .name = #fname, \ 28 .groups = fname##_groups, \ 29 .ngroups = ARRAY_SIZE(fname##_groups), \ 30 } 31 32 #define PINGROUP(id, _tile, f1, f2, f3, f4, f5, f6, f7, f8, f9) \ 33 { \ 34 .name = "gpio" #id, \ 35 .pins = gpio##id##_pins, \ 36 .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \ 37 .funcs = (int[]){ \ 38 msm_mux_gpio, /* gpio mode */ \ 39 msm_mux_##f1, \ 40 msm_mux_##f2, \ 41 msm_mux_##f3, \ 42 msm_mux_##f4, \ 43 msm_mux_##f5, \ 44 msm_mux_##f6, \ 45 msm_mux_##f7, \ 46 msm_mux_##f8, \ 47 msm_mux_##f9 \ 48 }, \ 49 .nfuncs = 10, \ 50 .ctl_reg = 0x1000 * id, \ 51 .io_reg = 0x1000 * id + 0x4, \ 52 .intr_cfg_reg = 0x1000 * id + 0x8, \ 53 .intr_status_reg = 0x1000 * id + 0xc, \ 54 .intr_target_reg = 0x1000 * id + 0x8, \ 55 .tile = _tile, \ 56 .mux_bit = 2, \ 57 .pull_bit = 0, \ 58 .drv_bit = 6, \ 59 .oe_bit = 9, \ 60 .in_bit = 0, \ 61 .out_bit = 1, \ 62 .intr_enable_bit = 0, \ 63 .intr_status_bit = 0, \ 64 .intr_target_bit = 5, \ 65 .intr_target_kpss_val = 4, \ 66 .intr_raw_status_bit = 4, \ 67 .intr_polarity_bit = 1, \ 68 .intr_detection_bit = 2, \ 69 .intr_detection_width = 2, \ 70 } 71 72 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ 73 { \ 74 .name = #pg_name, \ 75 .pins = pg_name##_pins, \ 76 .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \ 77 .ctl_reg = ctl, \ 78 .io_reg = 0, \ 79 .intr_cfg_reg = 0, \ 80 .intr_status_reg = 0, \ 81 .intr_target_reg = 0, \ 82 .tile = NORTH, \ 83 .mux_bit = -1, \ 84 .pull_bit = pull, \ 85 .drv_bit = drv, \ 86 .oe_bit = -1, \ 87 .in_bit = -1, \ 88 .out_bit = -1, \ 89 .intr_enable_bit = -1, \ 90 .intr_status_bit = -1, \ 91 .intr_target_bit = -1, \ 92 .intr_raw_status_bit = -1, \ 93 .intr_polarity_bit = -1, \ 94 .intr_detection_bit = -1, \ 95 .intr_detection_width = -1, \ 96 } 97 98 #define UFS_RESET(pg_name, offset) \ 99 { \ 100 .name = #pg_name, \ 101 .pins = pg_name##_pins, \ 102 .npins = (unsigned int)ARRAY_SIZE(pg_name##_pins), \ 103 .ctl_reg = offset, \ 104 .io_reg = offset + 0x4, \ 105 .intr_cfg_reg = 0, \ 106 .intr_status_reg = 0, \ 107 .intr_target_reg = 0, \ 108 .tile = NORTH, \ 109 .mux_bit = -1, \ 110 .pull_bit = 3, \ 111 .drv_bit = 0, \ 112 .oe_bit = -1, \ 113 .in_bit = -1, \ 114 .out_bit = 0, \ 115 .intr_enable_bit = -1, \ 116 .intr_status_bit = -1, \ 117 .intr_target_bit = -1, \ 118 .intr_raw_status_bit = -1, \ 119 .intr_polarity_bit = -1, \ 120 .intr_detection_bit = -1, \ 121 .intr_detection_width = -1, \ 122 } 123 static const struct pinctrl_pin_desc qcs404_pins[] = { 124 PINCTRL_PIN(0, "GPIO_0"), 125 PINCTRL_PIN(1, "GPIO_1"), 126 PINCTRL_PIN(2, "GPIO_2"), 127 PINCTRL_PIN(3, "GPIO_3"), 128 PINCTRL_PIN(4, "GPIO_4"), 129 PINCTRL_PIN(5, "GPIO_5"), 130 PINCTRL_PIN(6, "GPIO_6"), 131 PINCTRL_PIN(7, "GPIO_7"), 132 PINCTRL_PIN(8, "GPIO_8"), 133 PINCTRL_PIN(9, "GPIO_9"), 134 PINCTRL_PIN(10, "GPIO_10"), 135 PINCTRL_PIN(11, "GPIO_11"), 136 PINCTRL_PIN(12, "GPIO_12"), 137 PINCTRL_PIN(13, "GPIO_13"), 138 PINCTRL_PIN(14, "GPIO_14"), 139 PINCTRL_PIN(15, "GPIO_15"), 140 PINCTRL_PIN(16, "GPIO_16"), 141 PINCTRL_PIN(17, "GPIO_17"), 142 PINCTRL_PIN(18, "GPIO_18"), 143 PINCTRL_PIN(19, "GPIO_19"), 144 PINCTRL_PIN(20, "GPIO_20"), 145 PINCTRL_PIN(21, "GPIO_21"), 146 PINCTRL_PIN(22, "GPIO_22"), 147 PINCTRL_PIN(23, "GPIO_23"), 148 PINCTRL_PIN(24, "GPIO_24"), 149 PINCTRL_PIN(25, "GPIO_25"), 150 PINCTRL_PIN(26, "GPIO_26"), 151 PINCTRL_PIN(27, "GPIO_27"), 152 PINCTRL_PIN(28, "GPIO_28"), 153 PINCTRL_PIN(29, "GPIO_29"), 154 PINCTRL_PIN(30, "GPIO_30"), 155 PINCTRL_PIN(31, "GPIO_31"), 156 PINCTRL_PIN(32, "GPIO_32"), 157 PINCTRL_PIN(33, "GPIO_33"), 158 PINCTRL_PIN(34, "GPIO_34"), 159 PINCTRL_PIN(35, "GPIO_35"), 160 PINCTRL_PIN(36, "GPIO_36"), 161 PINCTRL_PIN(37, "GPIO_37"), 162 PINCTRL_PIN(38, "GPIO_38"), 163 PINCTRL_PIN(39, "GPIO_39"), 164 PINCTRL_PIN(40, "GPIO_40"), 165 PINCTRL_PIN(41, "GPIO_41"), 166 PINCTRL_PIN(42, "GPIO_42"), 167 PINCTRL_PIN(43, "GPIO_43"), 168 PINCTRL_PIN(44, "GPIO_44"), 169 PINCTRL_PIN(45, "GPIO_45"), 170 PINCTRL_PIN(46, "GPIO_46"), 171 PINCTRL_PIN(47, "GPIO_47"), 172 PINCTRL_PIN(48, "GPIO_48"), 173 PINCTRL_PIN(49, "GPIO_49"), 174 PINCTRL_PIN(50, "GPIO_50"), 175 PINCTRL_PIN(51, "GPIO_51"), 176 PINCTRL_PIN(52, "GPIO_52"), 177 PINCTRL_PIN(53, "GPIO_53"), 178 PINCTRL_PIN(54, "GPIO_54"), 179 PINCTRL_PIN(55, "GPIO_55"), 180 PINCTRL_PIN(56, "GPIO_56"), 181 PINCTRL_PIN(57, "GPIO_57"), 182 PINCTRL_PIN(58, "GPIO_58"), 183 PINCTRL_PIN(59, "GPIO_59"), 184 PINCTRL_PIN(60, "GPIO_60"), 185 PINCTRL_PIN(61, "GPIO_61"), 186 PINCTRL_PIN(62, "GPIO_62"), 187 PINCTRL_PIN(63, "GPIO_63"), 188 PINCTRL_PIN(64, "GPIO_64"), 189 PINCTRL_PIN(65, "GPIO_65"), 190 PINCTRL_PIN(66, "GPIO_66"), 191 PINCTRL_PIN(67, "GPIO_67"), 192 PINCTRL_PIN(68, "GPIO_68"), 193 PINCTRL_PIN(69, "GPIO_69"), 194 PINCTRL_PIN(70, "GPIO_70"), 195 PINCTRL_PIN(71, "GPIO_71"), 196 PINCTRL_PIN(72, "GPIO_72"), 197 PINCTRL_PIN(73, "GPIO_73"), 198 PINCTRL_PIN(74, "GPIO_74"), 199 PINCTRL_PIN(75, "GPIO_75"), 200 PINCTRL_PIN(76, "GPIO_76"), 201 PINCTRL_PIN(77, "GPIO_77"), 202 PINCTRL_PIN(78, "GPIO_78"), 203 PINCTRL_PIN(79, "GPIO_79"), 204 PINCTRL_PIN(80, "GPIO_80"), 205 PINCTRL_PIN(81, "GPIO_81"), 206 PINCTRL_PIN(82, "GPIO_82"), 207 PINCTRL_PIN(83, "GPIO_83"), 208 PINCTRL_PIN(84, "GPIO_84"), 209 PINCTRL_PIN(85, "GPIO_85"), 210 PINCTRL_PIN(86, "GPIO_86"), 211 PINCTRL_PIN(87, "GPIO_87"), 212 PINCTRL_PIN(88, "GPIO_88"), 213 PINCTRL_PIN(89, "GPIO_89"), 214 PINCTRL_PIN(90, "GPIO_90"), 215 PINCTRL_PIN(91, "GPIO_91"), 216 PINCTRL_PIN(92, "GPIO_92"), 217 PINCTRL_PIN(93, "GPIO_93"), 218 PINCTRL_PIN(94, "GPIO_94"), 219 PINCTRL_PIN(95, "GPIO_95"), 220 PINCTRL_PIN(96, "GPIO_96"), 221 PINCTRL_PIN(97, "GPIO_97"), 222 PINCTRL_PIN(98, "GPIO_98"), 223 PINCTRL_PIN(99, "GPIO_99"), 224 PINCTRL_PIN(100, "GPIO_100"), 225 PINCTRL_PIN(101, "GPIO_101"), 226 PINCTRL_PIN(102, "GPIO_102"), 227 PINCTRL_PIN(103, "GPIO_103"), 228 PINCTRL_PIN(104, "GPIO_104"), 229 PINCTRL_PIN(105, "GPIO_105"), 230 PINCTRL_PIN(106, "GPIO_106"), 231 PINCTRL_PIN(107, "GPIO_107"), 232 PINCTRL_PIN(108, "GPIO_108"), 233 PINCTRL_PIN(109, "GPIO_109"), 234 PINCTRL_PIN(110, "GPIO_110"), 235 PINCTRL_PIN(111, "GPIO_111"), 236 PINCTRL_PIN(112, "GPIO_112"), 237 PINCTRL_PIN(113, "GPIO_113"), 238 PINCTRL_PIN(114, "GPIO_114"), 239 PINCTRL_PIN(115, "GPIO_115"), 240 PINCTRL_PIN(116, "GPIO_116"), 241 PINCTRL_PIN(117, "GPIO_117"), 242 PINCTRL_PIN(118, "GPIO_118"), 243 PINCTRL_PIN(119, "GPIO_119"), 244 PINCTRL_PIN(120, "SDC1_RCLK"), 245 PINCTRL_PIN(121, "SDC1_CLK"), 246 PINCTRL_PIN(122, "SDC1_CMD"), 247 PINCTRL_PIN(123, "SDC1_DATA"), 248 PINCTRL_PIN(124, "SDC2_CLK"), 249 PINCTRL_PIN(125, "SDC2_CMD"), 250 PINCTRL_PIN(126, "SDC2_DATA"), 251 }; 252 253 #define DECLARE_MSM_GPIO_PINS(pin) \ 254 static const unsigned int gpio##pin##_pins[] = { pin } 255 DECLARE_MSM_GPIO_PINS(0); 256 DECLARE_MSM_GPIO_PINS(1); 257 DECLARE_MSM_GPIO_PINS(2); 258 DECLARE_MSM_GPIO_PINS(3); 259 DECLARE_MSM_GPIO_PINS(4); 260 DECLARE_MSM_GPIO_PINS(5); 261 DECLARE_MSM_GPIO_PINS(6); 262 DECLARE_MSM_GPIO_PINS(7); 263 DECLARE_MSM_GPIO_PINS(8); 264 DECLARE_MSM_GPIO_PINS(9); 265 DECLARE_MSM_GPIO_PINS(10); 266 DECLARE_MSM_GPIO_PINS(11); 267 DECLARE_MSM_GPIO_PINS(12); 268 DECLARE_MSM_GPIO_PINS(13); 269 DECLARE_MSM_GPIO_PINS(14); 270 DECLARE_MSM_GPIO_PINS(15); 271 DECLARE_MSM_GPIO_PINS(16); 272 DECLARE_MSM_GPIO_PINS(17); 273 DECLARE_MSM_GPIO_PINS(18); 274 DECLARE_MSM_GPIO_PINS(19); 275 DECLARE_MSM_GPIO_PINS(20); 276 DECLARE_MSM_GPIO_PINS(21); 277 DECLARE_MSM_GPIO_PINS(22); 278 DECLARE_MSM_GPIO_PINS(23); 279 DECLARE_MSM_GPIO_PINS(24); 280 DECLARE_MSM_GPIO_PINS(25); 281 DECLARE_MSM_GPIO_PINS(26); 282 DECLARE_MSM_GPIO_PINS(27); 283 DECLARE_MSM_GPIO_PINS(28); 284 DECLARE_MSM_GPIO_PINS(29); 285 DECLARE_MSM_GPIO_PINS(30); 286 DECLARE_MSM_GPIO_PINS(31); 287 DECLARE_MSM_GPIO_PINS(32); 288 DECLARE_MSM_GPIO_PINS(33); 289 DECLARE_MSM_GPIO_PINS(34); 290 DECLARE_MSM_GPIO_PINS(35); 291 DECLARE_MSM_GPIO_PINS(36); 292 DECLARE_MSM_GPIO_PINS(37); 293 DECLARE_MSM_GPIO_PINS(38); 294 DECLARE_MSM_GPIO_PINS(39); 295 DECLARE_MSM_GPIO_PINS(40); 296 DECLARE_MSM_GPIO_PINS(41); 297 DECLARE_MSM_GPIO_PINS(42); 298 DECLARE_MSM_GPIO_PINS(43); 299 DECLARE_MSM_GPIO_PINS(44); 300 DECLARE_MSM_GPIO_PINS(45); 301 DECLARE_MSM_GPIO_PINS(46); 302 DECLARE_MSM_GPIO_PINS(47); 303 DECLARE_MSM_GPIO_PINS(48); 304 DECLARE_MSM_GPIO_PINS(49); 305 DECLARE_MSM_GPIO_PINS(50); 306 DECLARE_MSM_GPIO_PINS(51); 307 DECLARE_MSM_GPIO_PINS(52); 308 DECLARE_MSM_GPIO_PINS(53); 309 DECLARE_MSM_GPIO_PINS(54); 310 DECLARE_MSM_GPIO_PINS(55); 311 DECLARE_MSM_GPIO_PINS(56); 312 DECLARE_MSM_GPIO_PINS(57); 313 DECLARE_MSM_GPIO_PINS(58); 314 DECLARE_MSM_GPIO_PINS(59); 315 DECLARE_MSM_GPIO_PINS(60); 316 DECLARE_MSM_GPIO_PINS(61); 317 DECLARE_MSM_GPIO_PINS(62); 318 DECLARE_MSM_GPIO_PINS(63); 319 DECLARE_MSM_GPIO_PINS(64); 320 DECLARE_MSM_GPIO_PINS(65); 321 DECLARE_MSM_GPIO_PINS(66); 322 DECLARE_MSM_GPIO_PINS(67); 323 DECLARE_MSM_GPIO_PINS(68); 324 DECLARE_MSM_GPIO_PINS(69); 325 DECLARE_MSM_GPIO_PINS(70); 326 DECLARE_MSM_GPIO_PINS(71); 327 DECLARE_MSM_GPIO_PINS(72); 328 DECLARE_MSM_GPIO_PINS(73); 329 DECLARE_MSM_GPIO_PINS(74); 330 DECLARE_MSM_GPIO_PINS(75); 331 DECLARE_MSM_GPIO_PINS(76); 332 DECLARE_MSM_GPIO_PINS(77); 333 DECLARE_MSM_GPIO_PINS(78); 334 DECLARE_MSM_GPIO_PINS(79); 335 DECLARE_MSM_GPIO_PINS(80); 336 DECLARE_MSM_GPIO_PINS(81); 337 DECLARE_MSM_GPIO_PINS(82); 338 DECLARE_MSM_GPIO_PINS(83); 339 DECLARE_MSM_GPIO_PINS(84); 340 DECLARE_MSM_GPIO_PINS(85); 341 DECLARE_MSM_GPIO_PINS(86); 342 DECLARE_MSM_GPIO_PINS(87); 343 DECLARE_MSM_GPIO_PINS(88); 344 DECLARE_MSM_GPIO_PINS(89); 345 DECLARE_MSM_GPIO_PINS(90); 346 DECLARE_MSM_GPIO_PINS(91); 347 DECLARE_MSM_GPIO_PINS(92); 348 DECLARE_MSM_GPIO_PINS(93); 349 DECLARE_MSM_GPIO_PINS(94); 350 DECLARE_MSM_GPIO_PINS(95); 351 DECLARE_MSM_GPIO_PINS(96); 352 DECLARE_MSM_GPIO_PINS(97); 353 DECLARE_MSM_GPIO_PINS(98); 354 DECLARE_MSM_GPIO_PINS(99); 355 DECLARE_MSM_GPIO_PINS(100); 356 DECLARE_MSM_GPIO_PINS(101); 357 DECLARE_MSM_GPIO_PINS(102); 358 DECLARE_MSM_GPIO_PINS(103); 359 DECLARE_MSM_GPIO_PINS(104); 360 DECLARE_MSM_GPIO_PINS(105); 361 DECLARE_MSM_GPIO_PINS(106); 362 DECLARE_MSM_GPIO_PINS(107); 363 DECLARE_MSM_GPIO_PINS(108); 364 DECLARE_MSM_GPIO_PINS(109); 365 DECLARE_MSM_GPIO_PINS(110); 366 DECLARE_MSM_GPIO_PINS(111); 367 DECLARE_MSM_GPIO_PINS(112); 368 DECLARE_MSM_GPIO_PINS(113); 369 DECLARE_MSM_GPIO_PINS(114); 370 DECLARE_MSM_GPIO_PINS(115); 371 DECLARE_MSM_GPIO_PINS(116); 372 DECLARE_MSM_GPIO_PINS(117); 373 DECLARE_MSM_GPIO_PINS(118); 374 DECLARE_MSM_GPIO_PINS(119); 375 376 static const unsigned int sdc1_rclk_pins[] = { 120 }; 377 static const unsigned int sdc1_clk_pins[] = { 121 }; 378 static const unsigned int sdc1_cmd_pins[] = { 122 }; 379 static const unsigned int sdc1_data_pins[] = { 123 }; 380 static const unsigned int sdc2_clk_pins[] = { 124 }; 381 static const unsigned int sdc2_cmd_pins[] = { 125 }; 382 static const unsigned int sdc2_data_pins[] = { 126 }; 383 384 enum qcs404_functions { 385 msm_mux_gpio, 386 msm_mux_hdmi_tx, 387 msm_mux_hdmi_ddc, 388 msm_mux_blsp_uart_tx_a2, 389 msm_mux_blsp_spi2, 390 msm_mux_m_voc, 391 msm_mux_qdss_cti_trig_in_a0, 392 msm_mux_blsp_uart_rx_a2, 393 msm_mux_qdss_tracectl_a, 394 msm_mux_blsp_uart2, 395 msm_mux_aud_cdc, 396 msm_mux_blsp_i2c_sda_a2, 397 msm_mux_qdss_tracedata_a, 398 msm_mux_blsp_i2c_scl_a2, 399 msm_mux_qdss_tracectl_b, 400 msm_mux_qdss_cti_trig_in_b0, 401 msm_mux_blsp_uart1, 402 msm_mux_blsp_spi_mosi_a1, 403 msm_mux_blsp_spi_miso_a1, 404 msm_mux_qdss_tracedata_b, 405 msm_mux_blsp_i2c1, 406 msm_mux_blsp_spi_cs_n_a1, 407 msm_mux_gcc_plltest, 408 msm_mux_blsp_spi_clk_a1, 409 msm_mux_rgb_data0, 410 msm_mux_blsp_uart5, 411 msm_mux_blsp_spi5, 412 msm_mux_adsp_ext, 413 msm_mux_rgb_data1, 414 msm_mux_prng_rosc, 415 msm_mux_rgb_data2, 416 msm_mux_blsp_i2c5, 417 msm_mux_gcc_gp1_clk_b, 418 msm_mux_rgb_data3, 419 msm_mux_gcc_gp2_clk_b, 420 msm_mux_blsp_spi0, 421 msm_mux_blsp_uart0, 422 msm_mux_gcc_gp3_clk_b, 423 msm_mux_blsp_i2c0, 424 msm_mux_qdss_traceclk_b, 425 msm_mux_pcie_clk, 426 msm_mux_nfc_irq, 427 msm_mux_blsp_spi4, 428 msm_mux_nfc_dwl, 429 msm_mux_audio_ts, 430 msm_mux_rgb_data4, 431 msm_mux_spi_lcd, 432 msm_mux_blsp_uart_tx_b2, 433 msm_mux_gcc_gp3_clk_a, 434 msm_mux_rgb_data5, 435 msm_mux_blsp_uart_rx_b2, 436 msm_mux_blsp_i2c_sda_b2, 437 msm_mux_blsp_i2c_scl_b2, 438 msm_mux_pwm_led11, 439 msm_mux_i2s_3_data0_a, 440 msm_mux_ebi2_lcd, 441 msm_mux_i2s_3_data1_a, 442 msm_mux_i2s_3_data2_a, 443 msm_mux_atest_char, 444 msm_mux_pwm_led3, 445 msm_mux_i2s_3_data3_a, 446 msm_mux_pwm_led4, 447 msm_mux_i2s_4, 448 msm_mux_ebi2_a, 449 msm_mux_dsd_clk_b, 450 msm_mux_pwm_led5, 451 msm_mux_pwm_led6, 452 msm_mux_pwm_led7, 453 msm_mux_pwm_led8, 454 msm_mux_pwm_led24, 455 msm_mux_spkr_dac0, 456 msm_mux_blsp_i2c4, 457 msm_mux_pwm_led9, 458 msm_mux_pwm_led10, 459 msm_mux_spdifrx_opt, 460 msm_mux_pwm_led12, 461 msm_mux_pwm_led13, 462 msm_mux_pwm_led14, 463 msm_mux_wlan1_adc1, 464 msm_mux_rgb_data_b0, 465 msm_mux_pwm_led15, 466 msm_mux_blsp_spi_mosi_b1, 467 msm_mux_wlan1_adc0, 468 msm_mux_rgb_data_b1, 469 msm_mux_pwm_led16, 470 msm_mux_blsp_spi_miso_b1, 471 msm_mux_qdss_cti_trig_out_b0, 472 msm_mux_wlan2_adc1, 473 msm_mux_rgb_data_b2, 474 msm_mux_pwm_led17, 475 msm_mux_blsp_spi_cs_n_b1, 476 msm_mux_wlan2_adc0, 477 msm_mux_rgb_data_b3, 478 msm_mux_pwm_led18, 479 msm_mux_blsp_spi_clk_b1, 480 msm_mux_rgb_data_b4, 481 msm_mux_pwm_led19, 482 msm_mux_ext_mclk1_b, 483 msm_mux_qdss_traceclk_a, 484 msm_mux_rgb_data_b5, 485 msm_mux_pwm_led20, 486 msm_mux_atest_char3, 487 msm_mux_i2s_3_sck_b, 488 msm_mux_ldo_update, 489 msm_mux_bimc_dte0, 490 msm_mux_rgb_hsync, 491 msm_mux_pwm_led21, 492 msm_mux_i2s_3_ws_b, 493 msm_mux_dbg_out, 494 msm_mux_rgb_vsync, 495 msm_mux_i2s_3_data0_b, 496 msm_mux_ldo_en, 497 msm_mux_hdmi_dtest, 498 msm_mux_rgb_de, 499 msm_mux_i2s_3_data1_b, 500 msm_mux_hdmi_lbk9, 501 msm_mux_rgb_clk, 502 msm_mux_atest_char1, 503 msm_mux_i2s_3_data2_b, 504 msm_mux_ebi_cdc, 505 msm_mux_hdmi_lbk8, 506 msm_mux_rgb_mdp, 507 msm_mux_atest_char0, 508 msm_mux_i2s_3_data3_b, 509 msm_mux_hdmi_lbk7, 510 msm_mux_rgb_data_b6, 511 msm_mux_rgb_data_b7, 512 msm_mux_hdmi_lbk6, 513 msm_mux_rgmii_int, 514 msm_mux_cri_trng1, 515 msm_mux_rgmii_wol, 516 msm_mux_cri_trng0, 517 msm_mux_gcc_tlmm, 518 msm_mux_rgmii_ck, 519 msm_mux_rgmii_tx, 520 msm_mux_hdmi_lbk5, 521 msm_mux_hdmi_pixel, 522 msm_mux_hdmi_rcv, 523 msm_mux_hdmi_lbk4, 524 msm_mux_rgmii_ctl, 525 msm_mux_ext_lpass, 526 msm_mux_rgmii_rx, 527 msm_mux_cri_trng, 528 msm_mux_hdmi_lbk3, 529 msm_mux_hdmi_lbk2, 530 msm_mux_qdss_cti_trig_out_b1, 531 msm_mux_rgmii_mdio, 532 msm_mux_hdmi_lbk1, 533 msm_mux_rgmii_mdc, 534 msm_mux_hdmi_lbk0, 535 msm_mux_ir_in, 536 msm_mux_wsa_en, 537 msm_mux_rgb_data6, 538 msm_mux_rgb_data7, 539 msm_mux_atest_char2, 540 msm_mux_ebi_ch0, 541 msm_mux_blsp_uart3, 542 msm_mux_blsp_spi3, 543 msm_mux_sd_write, 544 msm_mux_blsp_i2c3, 545 msm_mux_gcc_gp1_clk_a, 546 msm_mux_qdss_cti_trig_in_b1, 547 msm_mux_gcc_gp2_clk_a, 548 msm_mux_ext_mclk0, 549 msm_mux_mclk_in1, 550 msm_mux_i2s_1, 551 msm_mux_dsd_clk_a, 552 msm_mux_qdss_cti_trig_in_a1, 553 msm_mux_rgmi_dll1, 554 msm_mux_pwm_led22, 555 msm_mux_pwm_led23, 556 msm_mux_qdss_cti_trig_out_a0, 557 msm_mux_rgmi_dll2, 558 msm_mux_pwm_led1, 559 msm_mux_qdss_cti_trig_out_a1, 560 msm_mux_pwm_led2, 561 msm_mux_i2s_2, 562 msm_mux_pll_bist, 563 msm_mux_ext_mclk1_a, 564 msm_mux_mclk_in2, 565 msm_mux_bimc_dte1, 566 msm_mux_i2s_3_sck_a, 567 msm_mux_i2s_3_ws_a, 568 msm_mux__, 569 }; 570 571 static const char * const gpio_groups[] = { 572 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7", 573 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14", 574 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", 575 "gpio21", "gpio21", "gpio22", "gpio22", "gpio23", "gpio23", "gpio24", 576 "gpio25", "gpio26", "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", 577 "gpio32", "gpio33", "gpio34", "gpio35", "gpio36", "gpio36", "gpio36", 578 "gpio36", "gpio37", "gpio37", "gpio37", "gpio38", "gpio38", "gpio38", 579 "gpio39", "gpio39", "gpio40", "gpio40", "gpio41", "gpio41", "gpio41", 580 "gpio42", "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", 581 "gpio49", "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", 582 "gpio56", "gpio57", "gpio58", "gpio59", "gpio59", "gpio60", "gpio61", 583 "gpio62", "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", 584 "gpio69", "gpio70", "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", 585 "gpio76", "gpio77", "gpio77", "gpio78", "gpio78", "gpio78", "gpio79", 586 "gpio79", "gpio79", "gpio80", "gpio81", "gpio81", "gpio82", "gpio83", 587 "gpio84", "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", 588 "gpio91", "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", 589 "gpio98", "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", 590 "gpio104", "gpio105", "gpio106", "gpio107", "gpio108", "gpio108", 591 "gpio108", "gpio109", "gpio109", "gpio110", "gpio111", "gpio112", 592 "gpio113", "gpio114", "gpio115", "gpio116", "gpio117", "gpio118", 593 "gpio119", 594 }; 595 596 static const char * const hdmi_tx_groups[] = { 597 "gpio14", 598 }; 599 600 static const char * const hdmi_ddc_groups[] = { 601 "gpio15", "gpio16", 602 }; 603 604 static const char * const blsp_uart_tx_a2_groups[] = { 605 "gpio17", 606 }; 607 608 static const char * const blsp_spi2_groups[] = { 609 "gpio17", "gpio18", "gpio19", "gpio20", 610 }; 611 612 static const char * const m_voc_groups[] = { 613 "gpio17", "gpio21", 614 }; 615 616 static const char * const qdss_cti_trig_in_a0_groups[] = { 617 "gpio17", 618 }; 619 620 static const char * const blsp_uart_rx_a2_groups[] = { 621 "gpio18", 622 }; 623 624 static const char * const qdss_tracectl_a_groups[] = { 625 "gpio18", 626 }; 627 628 static const char * const blsp_uart2_groups[] = { 629 "gpio19", "gpio20", 630 }; 631 632 static const char * const aud_cdc_groups[] = { 633 "gpio19", "gpio20", 634 }; 635 636 static const char * const blsp_i2c_sda_a2_groups[] = { 637 "gpio19", 638 }; 639 640 static const char * const qdss_tracedata_a_groups[] = { 641 "gpio19", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio30", 642 "gpio31", "gpio32", "gpio36", "gpio38", "gpio39", "gpio42", "gpio43", 643 "gpio82", "gpio83", 644 }; 645 646 static const char * const blsp_i2c_scl_a2_groups[] = { 647 "gpio20", 648 }; 649 650 static const char * const qdss_tracectl_b_groups[] = { 651 "gpio20", 652 }; 653 654 static const char * const qdss_cti_trig_in_b0_groups[] = { 655 "gpio21", 656 }; 657 658 static const char * const blsp_uart1_groups[] = { 659 "gpio22", "gpio23", "gpio24", "gpio25", 660 }; 661 662 static const char * const blsp_spi_mosi_a1_groups[] = { 663 "gpio22", 664 }; 665 666 static const char * const blsp_spi_miso_a1_groups[] = { 667 "gpio23", 668 }; 669 670 static const char * const qdss_tracedata_b_groups[] = { 671 "gpio23", "gpio35", "gpio40", "gpio41", "gpio44", "gpio45", "gpio46", 672 "gpio47", "gpio49", "gpio50", "gpio55", "gpio61", "gpio62", "gpio85", 673 "gpio89", "gpio93", 674 }; 675 676 static const char * const blsp_i2c1_groups[] = { 677 "gpio24", "gpio25", 678 }; 679 680 static const char * const blsp_spi_cs_n_a1_groups[] = { 681 "gpio24", 682 }; 683 684 static const char * const gcc_plltest_groups[] = { 685 "gpio24", "gpio25", 686 }; 687 688 static const char * const blsp_spi_clk_a1_groups[] = { 689 "gpio25", 690 }; 691 692 static const char * const rgb_data0_groups[] = { 693 "gpio26", "gpio41", 694 }; 695 696 static const char * const blsp_uart5_groups[] = { 697 "gpio26", "gpio27", "gpio28", "gpio29", 698 }; 699 700 static const char * const blsp_spi5_groups[] = { 701 "gpio26", "gpio27", "gpio28", "gpio29", "gpio44", "gpio45", "gpio46", 702 }; 703 704 static const char * const adsp_ext_groups[] = { 705 "gpio26", 706 }; 707 708 static const char * const rgb_data1_groups[] = { 709 "gpio27", "gpio42", 710 }; 711 712 static const char * const prng_rosc_groups[] = { 713 "gpio27", 714 }; 715 716 static const char * const rgb_data2_groups[] = { 717 "gpio28", "gpio43", 718 }; 719 720 static const char * const blsp_i2c5_groups[] = { 721 "gpio28", "gpio29", 722 }; 723 724 static const char * const gcc_gp1_clk_b_groups[] = { 725 "gpio28", 726 }; 727 728 static const char * const rgb_data3_groups[] = { 729 "gpio29", "gpio44", 730 }; 731 732 static const char * const gcc_gp2_clk_b_groups[] = { 733 "gpio29", 734 }; 735 736 static const char * const blsp_spi0_groups[] = { 737 "gpio30", "gpio31", "gpio32", "gpio33", 738 }; 739 740 static const char * const blsp_uart0_groups[] = { 741 "gpio30", "gpio31", "gpio32", "gpio33", 742 }; 743 744 static const char * const gcc_gp3_clk_b_groups[] = { 745 "gpio30", 746 }; 747 748 static const char * const blsp_i2c0_groups[] = { 749 "gpio32", "gpio33", 750 }; 751 752 static const char * const qdss_traceclk_b_groups[] = { 753 "gpio34", 754 }; 755 756 static const char * const pcie_clk_groups[] = { 757 "gpio35", 758 }; 759 760 static const char * const nfc_irq_groups[] = { 761 "gpio37", 762 }; 763 764 static const char * const blsp_spi4_groups[] = { 765 "gpio37", "gpio38", "gpio117", "gpio118", 766 }; 767 768 static const char * const nfc_dwl_groups[] = { 769 "gpio38", 770 }; 771 772 static const char * const audio_ts_groups[] = { 773 "gpio38", 774 }; 775 776 static const char * const rgb_data4_groups[] = { 777 "gpio39", "gpio45", 778 }; 779 780 static const char * const spi_lcd_groups[] = { 781 "gpio39", "gpio40", 782 }; 783 784 static const char * const blsp_uart_tx_b2_groups[] = { 785 "gpio39", 786 }; 787 788 static const char * const gcc_gp3_clk_a_groups[] = { 789 "gpio39", 790 }; 791 792 static const char * const rgb_data5_groups[] = { 793 "gpio40", "gpio46", 794 }; 795 796 static const char * const blsp_uart_rx_b2_groups[] = { 797 "gpio40", 798 }; 799 800 static const char * const blsp_i2c_sda_b2_groups[] = { 801 "gpio41", 802 }; 803 804 static const char * const blsp_i2c_scl_b2_groups[] = { 805 "gpio42", 806 }; 807 808 static const char * const pwm_led11_groups[] = { 809 "gpio43", 810 }; 811 812 static const char * const i2s_3_data0_a_groups[] = { 813 "gpio106", 814 }; 815 816 static const char * const ebi2_lcd_groups[] = { 817 "gpio106", "gpio107", "gpio108", "gpio109", 818 }; 819 820 static const char * const i2s_3_data1_a_groups[] = { 821 "gpio107", 822 }; 823 824 static const char * const i2s_3_data2_a_groups[] = { 825 "gpio108", 826 }; 827 828 static const char * const atest_char_groups[] = { 829 "gpio108", 830 }; 831 832 static const char * const pwm_led3_groups[] = { 833 "gpio108", 834 }; 835 836 static const char * const i2s_3_data3_a_groups[] = { 837 "gpio109", 838 }; 839 840 static const char * const pwm_led4_groups[] = { 841 "gpio109", 842 }; 843 844 static const char * const i2s_4_groups[] = { 845 "gpio110", "gpio111", "gpio111", "gpio112", "gpio112", "gpio113", 846 "gpio113", "gpio114", "gpio114", "gpio115", "gpio115", "gpio116", 847 }; 848 849 static const char * const ebi2_a_groups[] = { 850 "gpio110", 851 }; 852 853 static const char * const dsd_clk_b_groups[] = { 854 "gpio110", 855 }; 856 857 static const char * const pwm_led5_groups[] = { 858 "gpio110", 859 }; 860 861 static const char * const pwm_led6_groups[] = { 862 "gpio111", 863 }; 864 865 static const char * const pwm_led7_groups[] = { 866 "gpio112", 867 }; 868 869 static const char * const pwm_led8_groups[] = { 870 "gpio113", 871 }; 872 873 static const char * const pwm_led24_groups[] = { 874 "gpio114", 875 }; 876 877 static const char * const spkr_dac0_groups[] = { 878 "gpio116", 879 }; 880 881 static const char * const blsp_i2c4_groups[] = { 882 "gpio117", "gpio118", 883 }; 884 885 static const char * const pwm_led9_groups[] = { 886 "gpio117", 887 }; 888 889 static const char * const pwm_led10_groups[] = { 890 "gpio118", 891 }; 892 893 static const char * const spdifrx_opt_groups[] = { 894 "gpio119", 895 }; 896 897 static const char * const pwm_led12_groups[] = { 898 "gpio44", 899 }; 900 901 static const char * const pwm_led13_groups[] = { 902 "gpio45", 903 }; 904 905 static const char * const pwm_led14_groups[] = { 906 "gpio46", 907 }; 908 909 static const char * const wlan1_adc1_groups[] = { 910 "gpio46", 911 }; 912 913 static const char * const rgb_data_b0_groups[] = { 914 "gpio47", 915 }; 916 917 static const char * const pwm_led15_groups[] = { 918 "gpio47", 919 }; 920 921 static const char * const blsp_spi_mosi_b1_groups[] = { 922 "gpio47", 923 }; 924 925 static const char * const wlan1_adc0_groups[] = { 926 "gpio47", 927 }; 928 929 static const char * const rgb_data_b1_groups[] = { 930 "gpio48", 931 }; 932 933 static const char * const pwm_led16_groups[] = { 934 "gpio48", 935 }; 936 937 static const char * const blsp_spi_miso_b1_groups[] = { 938 "gpio48", 939 }; 940 941 static const char * const qdss_cti_trig_out_b0_groups[] = { 942 "gpio48", 943 }; 944 945 static const char * const wlan2_adc1_groups[] = { 946 "gpio48", 947 }; 948 949 static const char * const rgb_data_b2_groups[] = { 950 "gpio49", 951 }; 952 953 static const char * const pwm_led17_groups[] = { 954 "gpio49", 955 }; 956 957 static const char * const blsp_spi_cs_n_b1_groups[] = { 958 "gpio49", 959 }; 960 961 static const char * const wlan2_adc0_groups[] = { 962 "gpio49", 963 }; 964 965 static const char * const rgb_data_b3_groups[] = { 966 "gpio50", 967 }; 968 969 static const char * const pwm_led18_groups[] = { 970 "gpio50", 971 }; 972 973 static const char * const blsp_spi_clk_b1_groups[] = { 974 "gpio50", 975 }; 976 977 static const char * const rgb_data_b4_groups[] = { 978 "gpio51", 979 }; 980 981 static const char * const pwm_led19_groups[] = { 982 "gpio51", 983 }; 984 985 static const char * const ext_mclk1_b_groups[] = { 986 "gpio51", 987 }; 988 989 static const char * const qdss_traceclk_a_groups[] = { 990 "gpio51", 991 }; 992 993 static const char * const rgb_data_b5_groups[] = { 994 "gpio52", 995 }; 996 997 static const char * const pwm_led20_groups[] = { 998 "gpio52", 999 }; 1000 1001 static const char * const atest_char3_groups[] = { 1002 "gpio52", 1003 }; 1004 1005 static const char * const i2s_3_sck_b_groups[] = { 1006 "gpio52", 1007 }; 1008 1009 static const char * const ldo_update_groups[] = { 1010 "gpio52", 1011 }; 1012 1013 static const char * const bimc_dte0_groups[] = { 1014 "gpio52", "gpio54", 1015 }; 1016 1017 static const char * const rgb_hsync_groups[] = { 1018 "gpio53", 1019 }; 1020 1021 static const char * const pwm_led21_groups[] = { 1022 "gpio53", 1023 }; 1024 1025 static const char * const i2s_3_ws_b_groups[] = { 1026 "gpio53", 1027 }; 1028 1029 static const char * const dbg_out_groups[] = { 1030 "gpio53", 1031 }; 1032 1033 static const char * const rgb_vsync_groups[] = { 1034 "gpio54", 1035 }; 1036 1037 static const char * const i2s_3_data0_b_groups[] = { 1038 "gpio54", 1039 }; 1040 1041 static const char * const ldo_en_groups[] = { 1042 "gpio54", 1043 }; 1044 1045 static const char * const hdmi_dtest_groups[] = { 1046 "gpio54", 1047 }; 1048 1049 static const char * const rgb_de_groups[] = { 1050 "gpio55", 1051 }; 1052 1053 static const char * const i2s_3_data1_b_groups[] = { 1054 "gpio55", 1055 }; 1056 1057 static const char * const hdmi_lbk9_groups[] = { 1058 "gpio55", 1059 }; 1060 1061 static const char * const rgb_clk_groups[] = { 1062 "gpio56", 1063 }; 1064 1065 static const char * const atest_char1_groups[] = { 1066 "gpio56", 1067 }; 1068 1069 static const char * const i2s_3_data2_b_groups[] = { 1070 "gpio56", 1071 }; 1072 1073 static const char * const ebi_cdc_groups[] = { 1074 "gpio56", "gpio58", "gpio106", "gpio107", "gpio108", "gpio111", 1075 }; 1076 1077 static const char * const hdmi_lbk8_groups[] = { 1078 "gpio56", 1079 }; 1080 1081 static const char * const rgb_mdp_groups[] = { 1082 "gpio57", 1083 }; 1084 1085 static const char * const atest_char0_groups[] = { 1086 "gpio57", 1087 }; 1088 1089 static const char * const i2s_3_data3_b_groups[] = { 1090 "gpio57", 1091 }; 1092 1093 static const char * const hdmi_lbk7_groups[] = { 1094 "gpio57", 1095 }; 1096 1097 static const char * const rgb_data_b6_groups[] = { 1098 "gpio58", 1099 }; 1100 1101 static const char * const rgb_data_b7_groups[] = { 1102 "gpio59", 1103 }; 1104 1105 static const char * const hdmi_lbk6_groups[] = { 1106 "gpio59", 1107 }; 1108 1109 static const char * const rgmii_int_groups[] = { 1110 "gpio61", 1111 }; 1112 1113 static const char * const cri_trng1_groups[] = { 1114 "gpio61", 1115 }; 1116 1117 static const char * const rgmii_wol_groups[] = { 1118 "gpio62", 1119 }; 1120 1121 static const char * const cri_trng0_groups[] = { 1122 "gpio62", 1123 }; 1124 1125 static const char * const gcc_tlmm_groups[] = { 1126 "gpio62", 1127 }; 1128 1129 static const char * const rgmii_ck_groups[] = { 1130 "gpio63", "gpio69", 1131 }; 1132 1133 static const char * const rgmii_tx_groups[] = { 1134 "gpio64", "gpio65", "gpio66", "gpio67", 1135 }; 1136 1137 static const char * const hdmi_lbk5_groups[] = { 1138 "gpio64", 1139 }; 1140 1141 static const char * const hdmi_pixel_groups[] = { 1142 "gpio65", 1143 }; 1144 1145 static const char * const hdmi_rcv_groups[] = { 1146 "gpio66", 1147 }; 1148 1149 static const char * const hdmi_lbk4_groups[] = { 1150 "gpio67", 1151 }; 1152 1153 static const char * const rgmii_ctl_groups[] = { 1154 "gpio68", "gpio74", 1155 }; 1156 1157 static const char * const ext_lpass_groups[] = { 1158 "gpio69", 1159 }; 1160 1161 static const char * const rgmii_rx_groups[] = { 1162 "gpio70", "gpio71", "gpio72", "gpio73", 1163 }; 1164 1165 static const char * const cri_trng_groups[] = { 1166 "gpio70", 1167 }; 1168 1169 static const char * const hdmi_lbk3_groups[] = { 1170 "gpio71", 1171 }; 1172 1173 static const char * const hdmi_lbk2_groups[] = { 1174 "gpio72", 1175 }; 1176 1177 static const char * const qdss_cti_trig_out_b1_groups[] = { 1178 "gpio73", 1179 }; 1180 1181 static const char * const rgmii_mdio_groups[] = { 1182 "gpio75", 1183 }; 1184 1185 static const char * const hdmi_lbk1_groups[] = { 1186 "gpio75", 1187 }; 1188 1189 static const char * const rgmii_mdc_groups[] = { 1190 "gpio76", 1191 }; 1192 1193 static const char * const hdmi_lbk0_groups[] = { 1194 "gpio76", 1195 }; 1196 1197 static const char * const ir_in_groups[] = { 1198 "gpio77", 1199 }; 1200 1201 static const char * const wsa_en_groups[] = { 1202 "gpio77", 1203 }; 1204 1205 static const char * const rgb_data6_groups[] = { 1206 "gpio78", "gpio80", 1207 }; 1208 1209 static const char * const rgb_data7_groups[] = { 1210 "gpio79", "gpio81", 1211 }; 1212 1213 static const char * const atest_char2_groups[] = { 1214 "gpio80", 1215 }; 1216 1217 static const char * const ebi_ch0_groups[] = { 1218 "gpio81", 1219 }; 1220 1221 static const char * const blsp_uart3_groups[] = { 1222 "gpio82", "gpio83", "gpio84", "gpio85", 1223 }; 1224 1225 static const char * const blsp_spi3_groups[] = { 1226 "gpio82", "gpio83", "gpio84", "gpio85", 1227 }; 1228 1229 static const char * const sd_write_groups[] = { 1230 "gpio82", 1231 }; 1232 1233 static const char * const blsp_i2c3_groups[] = { 1234 "gpio84", "gpio85", 1235 }; 1236 1237 static const char * const gcc_gp1_clk_a_groups[] = { 1238 "gpio84", 1239 }; 1240 1241 static const char * const qdss_cti_trig_in_b1_groups[] = { 1242 "gpio84", 1243 }; 1244 1245 static const char * const gcc_gp2_clk_a_groups[] = { 1246 "gpio85", 1247 }; 1248 1249 static const char * const ext_mclk0_groups[] = { 1250 "gpio86", 1251 }; 1252 1253 static const char * const mclk_in1_groups[] = { 1254 "gpio86", 1255 }; 1256 1257 static const char * const i2s_1_groups[] = { 1258 "gpio87", "gpio88", "gpio88", "gpio89", "gpio89", "gpio90", "gpio90", 1259 "gpio91", "gpio91", "gpio92", "gpio92", "gpio93", "gpio93", "gpio94", 1260 "gpio94", "gpio95", "gpio95", "gpio96", 1261 }; 1262 1263 static const char * const dsd_clk_a_groups[] = { 1264 "gpio87", 1265 }; 1266 1267 static const char * const qdss_cti_trig_in_a1_groups[] = { 1268 "gpio92", 1269 }; 1270 1271 static const char * const rgmi_dll1_groups[] = { 1272 "gpio92", 1273 }; 1274 1275 static const char * const pwm_led22_groups[] = { 1276 "gpio93", 1277 }; 1278 1279 static const char * const pwm_led23_groups[] = { 1280 "gpio94", 1281 }; 1282 1283 static const char * const qdss_cti_trig_out_a0_groups[] = { 1284 "gpio94", 1285 }; 1286 1287 static const char * const rgmi_dll2_groups[] = { 1288 "gpio94", 1289 }; 1290 1291 static const char * const pwm_led1_groups[] = { 1292 "gpio95", 1293 }; 1294 1295 static const char * const qdss_cti_trig_out_a1_groups[] = { 1296 "gpio95", 1297 }; 1298 1299 static const char * const pwm_led2_groups[] = { 1300 "gpio96", 1301 }; 1302 1303 static const char * const i2s_2_groups[] = { 1304 "gpio97", "gpio98", "gpio99", "gpio100", "gpio101", "gpio102", 1305 }; 1306 1307 static const char * const pll_bist_groups[] = { 1308 "gpio100", 1309 }; 1310 1311 static const char * const ext_mclk1_a_groups[] = { 1312 "gpio103", 1313 }; 1314 1315 static const char * const mclk_in2_groups[] = { 1316 "gpio103", 1317 }; 1318 1319 static const char * const bimc_dte1_groups[] = { 1320 "gpio103", "gpio109", 1321 }; 1322 1323 static const char * const i2s_3_sck_a_groups[] = { 1324 "gpio104", 1325 }; 1326 1327 static const char * const i2s_3_ws_a_groups[] = { 1328 "gpio105", 1329 }; 1330 1331 static const struct msm_function qcs404_functions[] = { 1332 FUNCTION(gpio), 1333 FUNCTION(hdmi_tx), 1334 FUNCTION(hdmi_ddc), 1335 FUNCTION(blsp_uart_tx_a2), 1336 FUNCTION(blsp_spi2), 1337 FUNCTION(m_voc), 1338 FUNCTION(qdss_cti_trig_in_a0), 1339 FUNCTION(blsp_uart_rx_a2), 1340 FUNCTION(qdss_tracectl_a), 1341 FUNCTION(blsp_uart2), 1342 FUNCTION(aud_cdc), 1343 FUNCTION(blsp_i2c_sda_a2), 1344 FUNCTION(qdss_tracedata_a), 1345 FUNCTION(blsp_i2c_scl_a2), 1346 FUNCTION(qdss_tracectl_b), 1347 FUNCTION(qdss_cti_trig_in_b0), 1348 FUNCTION(blsp_uart1), 1349 FUNCTION(blsp_spi_mosi_a1), 1350 FUNCTION(blsp_spi_miso_a1), 1351 FUNCTION(qdss_tracedata_b), 1352 FUNCTION(blsp_i2c1), 1353 FUNCTION(blsp_spi_cs_n_a1), 1354 FUNCTION(gcc_plltest), 1355 FUNCTION(blsp_spi_clk_a1), 1356 FUNCTION(rgb_data0), 1357 FUNCTION(blsp_uart5), 1358 FUNCTION(blsp_spi5), 1359 FUNCTION(adsp_ext), 1360 FUNCTION(rgb_data1), 1361 FUNCTION(prng_rosc), 1362 FUNCTION(rgb_data2), 1363 FUNCTION(blsp_i2c5), 1364 FUNCTION(gcc_gp1_clk_b), 1365 FUNCTION(rgb_data3), 1366 FUNCTION(gcc_gp2_clk_b), 1367 FUNCTION(blsp_spi0), 1368 FUNCTION(blsp_uart0), 1369 FUNCTION(gcc_gp3_clk_b), 1370 FUNCTION(blsp_i2c0), 1371 FUNCTION(qdss_traceclk_b), 1372 FUNCTION(pcie_clk), 1373 FUNCTION(nfc_irq), 1374 FUNCTION(blsp_spi4), 1375 FUNCTION(nfc_dwl), 1376 FUNCTION(audio_ts), 1377 FUNCTION(rgb_data4), 1378 FUNCTION(spi_lcd), 1379 FUNCTION(blsp_uart_tx_b2), 1380 FUNCTION(gcc_gp3_clk_a), 1381 FUNCTION(rgb_data5), 1382 FUNCTION(blsp_uart_rx_b2), 1383 FUNCTION(blsp_i2c_sda_b2), 1384 FUNCTION(blsp_i2c_scl_b2), 1385 FUNCTION(pwm_led11), 1386 FUNCTION(i2s_3_data0_a), 1387 FUNCTION(ebi2_lcd), 1388 FUNCTION(i2s_3_data1_a), 1389 FUNCTION(i2s_3_data2_a), 1390 FUNCTION(atest_char), 1391 FUNCTION(pwm_led3), 1392 FUNCTION(i2s_3_data3_a), 1393 FUNCTION(pwm_led4), 1394 FUNCTION(i2s_4), 1395 FUNCTION(ebi2_a), 1396 FUNCTION(dsd_clk_b), 1397 FUNCTION(pwm_led5), 1398 FUNCTION(pwm_led6), 1399 FUNCTION(pwm_led7), 1400 FUNCTION(pwm_led8), 1401 FUNCTION(pwm_led24), 1402 FUNCTION(spkr_dac0), 1403 FUNCTION(blsp_i2c4), 1404 FUNCTION(pwm_led9), 1405 FUNCTION(pwm_led10), 1406 FUNCTION(spdifrx_opt), 1407 FUNCTION(pwm_led12), 1408 FUNCTION(pwm_led13), 1409 FUNCTION(pwm_led14), 1410 FUNCTION(wlan1_adc1), 1411 FUNCTION(rgb_data_b0), 1412 FUNCTION(pwm_led15), 1413 FUNCTION(blsp_spi_mosi_b1), 1414 FUNCTION(wlan1_adc0), 1415 FUNCTION(rgb_data_b1), 1416 FUNCTION(pwm_led16), 1417 FUNCTION(blsp_spi_miso_b1), 1418 FUNCTION(qdss_cti_trig_out_b0), 1419 FUNCTION(wlan2_adc1), 1420 FUNCTION(rgb_data_b2), 1421 FUNCTION(pwm_led17), 1422 FUNCTION(blsp_spi_cs_n_b1), 1423 FUNCTION(wlan2_adc0), 1424 FUNCTION(rgb_data_b3), 1425 FUNCTION(pwm_led18), 1426 FUNCTION(blsp_spi_clk_b1), 1427 FUNCTION(rgb_data_b4), 1428 FUNCTION(pwm_led19), 1429 FUNCTION(ext_mclk1_b), 1430 FUNCTION(qdss_traceclk_a), 1431 FUNCTION(rgb_data_b5), 1432 FUNCTION(pwm_led20), 1433 FUNCTION(atest_char3), 1434 FUNCTION(i2s_3_sck_b), 1435 FUNCTION(ldo_update), 1436 FUNCTION(bimc_dte0), 1437 FUNCTION(rgb_hsync), 1438 FUNCTION(pwm_led21), 1439 FUNCTION(i2s_3_ws_b), 1440 FUNCTION(dbg_out), 1441 FUNCTION(rgb_vsync), 1442 FUNCTION(i2s_3_data0_b), 1443 FUNCTION(ldo_en), 1444 FUNCTION(hdmi_dtest), 1445 FUNCTION(rgb_de), 1446 FUNCTION(i2s_3_data1_b), 1447 FUNCTION(hdmi_lbk9), 1448 FUNCTION(rgb_clk), 1449 FUNCTION(atest_char1), 1450 FUNCTION(i2s_3_data2_b), 1451 FUNCTION(ebi_cdc), 1452 FUNCTION(hdmi_lbk8), 1453 FUNCTION(rgb_mdp), 1454 FUNCTION(atest_char0), 1455 FUNCTION(i2s_3_data3_b), 1456 FUNCTION(hdmi_lbk7), 1457 FUNCTION(rgb_data_b6), 1458 FUNCTION(rgb_data_b7), 1459 FUNCTION(hdmi_lbk6), 1460 FUNCTION(rgmii_int), 1461 FUNCTION(cri_trng1), 1462 FUNCTION(rgmii_wol), 1463 FUNCTION(cri_trng0), 1464 FUNCTION(gcc_tlmm), 1465 FUNCTION(rgmii_ck), 1466 FUNCTION(rgmii_tx), 1467 FUNCTION(hdmi_lbk5), 1468 FUNCTION(hdmi_pixel), 1469 FUNCTION(hdmi_rcv), 1470 FUNCTION(hdmi_lbk4), 1471 FUNCTION(rgmii_ctl), 1472 FUNCTION(ext_lpass), 1473 FUNCTION(rgmii_rx), 1474 FUNCTION(cri_trng), 1475 FUNCTION(hdmi_lbk3), 1476 FUNCTION(hdmi_lbk2), 1477 FUNCTION(qdss_cti_trig_out_b1), 1478 FUNCTION(rgmii_mdio), 1479 FUNCTION(hdmi_lbk1), 1480 FUNCTION(rgmii_mdc), 1481 FUNCTION(hdmi_lbk0), 1482 FUNCTION(ir_in), 1483 FUNCTION(wsa_en), 1484 FUNCTION(rgb_data6), 1485 FUNCTION(rgb_data7), 1486 FUNCTION(atest_char2), 1487 FUNCTION(ebi_ch0), 1488 FUNCTION(blsp_uart3), 1489 FUNCTION(blsp_spi3), 1490 FUNCTION(sd_write), 1491 FUNCTION(blsp_i2c3), 1492 FUNCTION(gcc_gp1_clk_a), 1493 FUNCTION(qdss_cti_trig_in_b1), 1494 FUNCTION(gcc_gp2_clk_a), 1495 FUNCTION(ext_mclk0), 1496 FUNCTION(mclk_in1), 1497 FUNCTION(i2s_1), 1498 FUNCTION(dsd_clk_a), 1499 FUNCTION(qdss_cti_trig_in_a1), 1500 FUNCTION(rgmi_dll1), 1501 FUNCTION(pwm_led22), 1502 FUNCTION(pwm_led23), 1503 FUNCTION(qdss_cti_trig_out_a0), 1504 FUNCTION(rgmi_dll2), 1505 FUNCTION(pwm_led1), 1506 FUNCTION(qdss_cti_trig_out_a1), 1507 FUNCTION(pwm_led2), 1508 FUNCTION(i2s_2), 1509 FUNCTION(pll_bist), 1510 FUNCTION(ext_mclk1_a), 1511 FUNCTION(mclk_in2), 1512 FUNCTION(bimc_dte1), 1513 FUNCTION(i2s_3_sck_a), 1514 FUNCTION(i2s_3_ws_a), 1515 }; 1516 1517 /* Every pin is maintained as a single group, and missing or non-existing pin 1518 * would be maintained as dummy group to synchronize pin group index with 1519 * pin descriptor registered with pinctrl core. 1520 * Clients would not be able to request these dummy pin groups. 1521 */ 1522 static const struct msm_pingroup qcs404_groups[] = { 1523 [0] = PINGROUP(0, SOUTH, _, _, _, _, _, _, _, _, _), 1524 [1] = PINGROUP(1, SOUTH, _, _, _, _, _, _, _, _, _), 1525 [2] = PINGROUP(2, SOUTH, _, _, _, _, _, _, _, _, _), 1526 [3] = PINGROUP(3, SOUTH, _, _, _, _, _, _, _, _, _), 1527 [4] = PINGROUP(4, SOUTH, _, _, _, _, _, _, _, _, _), 1528 [5] = PINGROUP(5, SOUTH, _, _, _, _, _, _, _, _, _), 1529 [6] = PINGROUP(6, SOUTH, _, _, _, _, _, _, _, _, _), 1530 [7] = PINGROUP(7, SOUTH, _, _, _, _, _, _, _, _, _), 1531 [8] = PINGROUP(8, SOUTH, _, _, _, _, _, _, _, _, _), 1532 [9] = PINGROUP(9, SOUTH, _, _, _, _, _, _, _, _, _), 1533 [10] = PINGROUP(10, SOUTH, _, _, _, _, _, _, _, _, _), 1534 [11] = PINGROUP(11, SOUTH, _, _, _, _, _, _, _, _, _), 1535 [12] = PINGROUP(12, SOUTH, _, _, _, _, _, _, _, _, _), 1536 [13] = PINGROUP(13, SOUTH, _, _, _, _, _, _, _, _, _), 1537 [14] = PINGROUP(14, SOUTH, hdmi_tx, _, _, _, _, _, _, _, _), 1538 [15] = PINGROUP(15, SOUTH, hdmi_ddc, _, _, _, _, _, _, _, _), 1539 [16] = PINGROUP(16, SOUTH, hdmi_ddc, _, _, _, _, _, _, _, _), 1540 [17] = PINGROUP(17, NORTH, blsp_uart_tx_a2, blsp_spi2, m_voc, _, _, _, _, _, _), 1541 [18] = PINGROUP(18, NORTH, blsp_uart_rx_a2, blsp_spi2, _, _, _, _, _, qdss_tracectl_a, _), 1542 [19] = PINGROUP(19, NORTH, blsp_uart2, aud_cdc, blsp_i2c_sda_a2, blsp_spi2, _, qdss_tracedata_a, _, _, _), 1543 [20] = PINGROUP(20, NORTH, blsp_uart2, aud_cdc, blsp_i2c_scl_a2, blsp_spi2, _, _, _, _, _), 1544 [21] = PINGROUP(21, SOUTH, m_voc, _, _, _, _, _, _, _, qdss_cti_trig_in_b0), 1545 [22] = PINGROUP(22, NORTH, blsp_uart1, blsp_spi_mosi_a1, _, _, _, _, _, _, _), 1546 [23] = PINGROUP(23, NORTH, blsp_uart1, blsp_spi_miso_a1, _, _, _, _, _, qdss_tracedata_b, _), 1547 [24] = PINGROUP(24, NORTH, blsp_uart1, blsp_i2c1, blsp_spi_cs_n_a1, gcc_plltest, _, _, _, _, _), 1548 [25] = PINGROUP(25, NORTH, blsp_uart1, blsp_i2c1, blsp_spi_clk_a1, gcc_plltest, _, _, _, _, _), 1549 [26] = PINGROUP(26, EAST, rgb_data0, blsp_uart5, blsp_spi5, adsp_ext, _, _, _, _, _), 1550 [27] = PINGROUP(27, EAST, rgb_data1, blsp_uart5, blsp_spi5, prng_rosc, _, _, _, _, _), 1551 [28] = PINGROUP(28, EAST, rgb_data2, blsp_uart5, blsp_i2c5, blsp_spi5, gcc_gp1_clk_b, _, _, _, _), 1552 [29] = PINGROUP(29, EAST, rgb_data3, blsp_uart5, blsp_i2c5, blsp_spi5, gcc_gp2_clk_b, _, _, _, _), 1553 [30] = PINGROUP(30, NORTH, blsp_spi0, blsp_uart0, gcc_gp3_clk_b, _, _, _, _, _, _), 1554 [31] = PINGROUP(31, NORTH, blsp_spi0, blsp_uart0, _, _, _, _, _, _, _), 1555 [32] = PINGROUP(32, NORTH, blsp_spi0, blsp_uart0, blsp_i2c0, _, _, _, _, _, _), 1556 [33] = PINGROUP(33, NORTH, blsp_spi0, blsp_uart0, blsp_i2c0, _, _, _, _, _, _), 1557 [34] = PINGROUP(34, SOUTH, _, qdss_traceclk_b, _, _, _, _, _, _, _), 1558 [35] = PINGROUP(35, SOUTH, pcie_clk, _, qdss_tracedata_b, _, _, _, _, _, _), 1559 [36] = PINGROUP(36, NORTH, _, _, _, _, _, _, qdss_tracedata_a, _, _), 1560 [37] = PINGROUP(37, NORTH, nfc_irq, blsp_spi4, _, _, _, _, _, _, _), 1561 [38] = PINGROUP(38, NORTH, nfc_dwl, blsp_spi4, audio_ts, _, _, _, _, _, _), 1562 [39] = PINGROUP(39, EAST, rgb_data4, spi_lcd, blsp_uart_tx_b2, gcc_gp3_clk_a, qdss_tracedata_a, _, _, _, _), 1563 [40] = PINGROUP(40, EAST, rgb_data5, spi_lcd, blsp_uart_rx_b2, _, qdss_tracedata_b, _, _, _, _), 1564 [41] = PINGROUP(41, EAST, rgb_data0, blsp_i2c_sda_b2, _, qdss_tracedata_b, _, _, _, _, _), 1565 [42] = PINGROUP(42, EAST, rgb_data1, blsp_i2c_scl_b2, _, _, _, _, _, qdss_tracedata_a, _), 1566 [43] = PINGROUP(43, EAST, rgb_data2, pwm_led11, _, _, _, _, _, _, _), 1567 [44] = PINGROUP(44, EAST, rgb_data3, pwm_led12, blsp_spi5, _, _, _, _, _, _), 1568 [45] = PINGROUP(45, EAST, rgb_data4, pwm_led13, blsp_spi5, qdss_tracedata_b, _, _, _, _, _), 1569 [46] = PINGROUP(46, EAST, rgb_data5, pwm_led14, blsp_spi5, qdss_tracedata_b, _, wlan1_adc1, _, _, _), 1570 [47] = PINGROUP(47, EAST, rgb_data_b0, pwm_led15, blsp_spi_mosi_b1, qdss_tracedata_b, _, wlan1_adc0, _, _, _), 1571 [48] = PINGROUP(48, EAST, rgb_data_b1, pwm_led16, blsp_spi_miso_b1, _, qdss_cti_trig_out_b0, _, wlan2_adc1, _, _), 1572 [49] = PINGROUP(49, EAST, rgb_data_b2, pwm_led17, blsp_spi_cs_n_b1, _, qdss_tracedata_b, _, wlan2_adc0, _, _), 1573 [50] = PINGROUP(50, EAST, rgb_data_b3, pwm_led18, blsp_spi_clk_b1, qdss_tracedata_b, _, _, _, _, _), 1574 [51] = PINGROUP(51, EAST, rgb_data_b4, pwm_led19, ext_mclk1_b, qdss_traceclk_a, _, _, _, _, _), 1575 [52] = PINGROUP(52, EAST, rgb_data_b5, pwm_led20, atest_char3, i2s_3_sck_b, ldo_update, bimc_dte0, _, _, _), 1576 [53] = PINGROUP(53, EAST, rgb_hsync, pwm_led21, i2s_3_ws_b, dbg_out, _, _, _, _, _), 1577 [54] = PINGROUP(54, EAST, rgb_vsync, i2s_3_data0_b, ldo_en, bimc_dte0, _, hdmi_dtest, _, _, _), 1578 [55] = PINGROUP(55, EAST, rgb_de, i2s_3_data1_b, _, qdss_tracedata_b, _, hdmi_lbk9, _, _, _), 1579 [56] = PINGROUP(56, EAST, rgb_clk, atest_char1, i2s_3_data2_b, ebi_cdc, _, hdmi_lbk8, _, _, _), 1580 [57] = PINGROUP(57, EAST, rgb_mdp, atest_char0, i2s_3_data3_b, _, hdmi_lbk7, _, _, _, _), 1581 [58] = PINGROUP(58, EAST, rgb_data_b6, _, ebi_cdc, _, _, _, _, _, _), 1582 [59] = PINGROUP(59, EAST, rgb_data_b7, _, hdmi_lbk6, _, _, _, _, _, _), 1583 [60] = PINGROUP(60, NORTH, _, _, _, _, _, _, _, _, _), 1584 [61] = PINGROUP(61, NORTH, rgmii_int, cri_trng1, qdss_tracedata_b, _, _, _, _, _, _), 1585 [62] = PINGROUP(62, NORTH, rgmii_wol, cri_trng0, qdss_tracedata_b, gcc_tlmm, _, _, _, _, _), 1586 [63] = PINGROUP(63, NORTH, rgmii_ck, _, _, _, _, _, _, _, _), 1587 [64] = PINGROUP(64, NORTH, rgmii_tx, _, hdmi_lbk5, _, _, _, _, _, _), 1588 [65] = PINGROUP(65, NORTH, rgmii_tx, _, hdmi_pixel, _, _, _, _, _, _), 1589 [66] = PINGROUP(66, NORTH, rgmii_tx, _, hdmi_rcv, _, _, _, _, _, _), 1590 [67] = PINGROUP(67, NORTH, rgmii_tx, _, hdmi_lbk4, _, _, _, _, _, _), 1591 [68] = PINGROUP(68, NORTH, rgmii_ctl, _, _, _, _, _, _, _, _), 1592 [69] = PINGROUP(69, NORTH, rgmii_ck, ext_lpass, _, _, _, _, _, _, _), 1593 [70] = PINGROUP(70, NORTH, rgmii_rx, cri_trng, _, _, _, _, _, _, _), 1594 [71] = PINGROUP(71, NORTH, rgmii_rx, _, hdmi_lbk3, _, _, _, _, _, _), 1595 [72] = PINGROUP(72, NORTH, rgmii_rx, _, hdmi_lbk2, _, _, _, _, _, _), 1596 [73] = PINGROUP(73, NORTH, rgmii_rx, _, _, _, _, qdss_cti_trig_out_b1, _, _, _), 1597 [74] = PINGROUP(74, NORTH, rgmii_ctl, _, _, _, _, _, _, _, _), 1598 [75] = PINGROUP(75, NORTH, rgmii_mdio, _, hdmi_lbk1, _, _, _, _, _, _), 1599 [76] = PINGROUP(76, NORTH, rgmii_mdc, _, _, _, _, _, hdmi_lbk0, _, _), 1600 [77] = PINGROUP(77, NORTH, ir_in, wsa_en, _, _, _, _, _, _, _), 1601 [78] = PINGROUP(78, EAST, rgb_data6, _, _, _, _, _, _, _, _), 1602 [79] = PINGROUP(79, EAST, rgb_data7, _, _, _, _, _, _, _, _), 1603 [80] = PINGROUP(80, EAST, rgb_data6, atest_char2, _, _, _, _, _, _, _), 1604 [81] = PINGROUP(81, EAST, rgb_data7, ebi_ch0, _, _, _, _, _, _, _), 1605 [82] = PINGROUP(82, NORTH, blsp_uart3, blsp_spi3, sd_write, _, _, _, _, _, qdss_tracedata_a), 1606 [83] = PINGROUP(83, NORTH, blsp_uart3, blsp_spi3, _, _, _, _, qdss_tracedata_a, _, _), 1607 [84] = PINGROUP(84, NORTH, blsp_uart3, blsp_i2c3, blsp_spi3, gcc_gp1_clk_a, qdss_cti_trig_in_b1, _, _, _, _), 1608 [85] = PINGROUP(85, NORTH, blsp_uart3, blsp_i2c3, blsp_spi3, gcc_gp2_clk_a, qdss_tracedata_b, _, _, _, _), 1609 [86] = PINGROUP(86, EAST, ext_mclk0, mclk_in1, _, _, _, _, _, _, _), 1610 [87] = PINGROUP(87, EAST, i2s_1, dsd_clk_a, _, _, _, _, _, _, _), 1611 [88] = PINGROUP(88, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _), 1612 [89] = PINGROUP(89, EAST, i2s_1, i2s_1, _, _, _, _, _, _, qdss_tracedata_b), 1613 [90] = PINGROUP(90, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _), 1614 [91] = PINGROUP(91, EAST, i2s_1, i2s_1, _, _, _, _, _, _, _), 1615 [92] = PINGROUP(92, EAST, i2s_1, i2s_1, _, _, _, _, _, qdss_cti_trig_in_a1, _), 1616 [93] = PINGROUP(93, EAST, i2s_1, pwm_led22, i2s_1, _, _, _, _, _, qdss_tracedata_b), 1617 [94] = PINGROUP(94, EAST, i2s_1, pwm_led23, i2s_1, _, qdss_cti_trig_out_a0, _, rgmi_dll2, _, _), 1618 [95] = PINGROUP(95, EAST, i2s_1, pwm_led1, i2s_1, _, qdss_cti_trig_out_a1, _, _, _, _), 1619 [96] = PINGROUP(96, EAST, i2s_1, pwm_led2, _, _, _, _, _, _, _), 1620 [97] = PINGROUP(97, EAST, i2s_2, _, _, _, _, _, _, _, _), 1621 [98] = PINGROUP(98, EAST, i2s_2, _, _, _, _, _, _, _, _), 1622 [99] = PINGROUP(99, EAST, i2s_2, _, _, _, _, _, _, _, _), 1623 [100] = PINGROUP(100, EAST, i2s_2, pll_bist, _, _, _, _, _, _, _), 1624 [101] = PINGROUP(101, EAST, i2s_2, _, _, _, _, _, _, _, _), 1625 [102] = PINGROUP(102, EAST, i2s_2, _, _, _, _, _, _, _, _), 1626 [103] = PINGROUP(103, EAST, ext_mclk1_a, mclk_in2, bimc_dte1, _, _, _, _, _, _), 1627 [104] = PINGROUP(104, EAST, i2s_3_sck_a, _, _, _, _, _, _, _, _), 1628 [105] = PINGROUP(105, EAST, i2s_3_ws_a, _, _, _, _, _, _, _, _), 1629 [106] = PINGROUP(106, EAST, i2s_3_data0_a, ebi2_lcd, _, _, ebi_cdc, _, _, _, _), 1630 [107] = PINGROUP(107, EAST, i2s_3_data1_a, ebi2_lcd, _, _, ebi_cdc, _, _, _, _), 1631 [108] = PINGROUP(108, EAST, i2s_3_data2_a, ebi2_lcd, atest_char, pwm_led3, ebi_cdc, _, _, _, _), 1632 [109] = PINGROUP(109, EAST, i2s_3_data3_a, ebi2_lcd, pwm_led4, bimc_dte1, _, _, _, _, _), 1633 [110] = PINGROUP(110, EAST, i2s_4, ebi2_a, dsd_clk_b, pwm_led5, _, _, _, _, _), 1634 [111] = PINGROUP(111, EAST, i2s_4, i2s_4, pwm_led6, ebi_cdc, _, _, _, _, _), 1635 [112] = PINGROUP(112, EAST, i2s_4, i2s_4, pwm_led7, _, _, _, _, _, _), 1636 [113] = PINGROUP(113, EAST, i2s_4, i2s_4, pwm_led8, _, _, _, _, _, _), 1637 [114] = PINGROUP(114, EAST, i2s_4, i2s_4, pwm_led24, _, _, _, _, _, _), 1638 [115] = PINGROUP(115, EAST, i2s_4, i2s_4, _, _, _, _, _, _, _), 1639 [116] = PINGROUP(116, EAST, i2s_4, spkr_dac0, _, _, _, _, _, _, _), 1640 [117] = PINGROUP(117, NORTH, blsp_i2c4, blsp_spi4, pwm_led9, _, _, _, _, _, _), 1641 [118] = PINGROUP(118, NORTH, blsp_i2c4, blsp_spi4, pwm_led10, _, _, _, _, _, _), 1642 [119] = PINGROUP(119, EAST, spdifrx_opt, _, _, _, _, _, _, _, _), 1643 [120] = SDC_QDSD_PINGROUP(sdc1_rclk, 0xc2000, 15, 0), 1644 [121] = SDC_QDSD_PINGROUP(sdc1_clk, 0xc2000, 13, 6), 1645 [122] = SDC_QDSD_PINGROUP(sdc1_cmd, 0xc2000, 11, 3), 1646 [123] = SDC_QDSD_PINGROUP(sdc1_data, 0xc2000, 9, 0), 1647 [124] = SDC_QDSD_PINGROUP(sdc2_clk, 0xc3000, 14, 6), 1648 [125] = SDC_QDSD_PINGROUP(sdc2_cmd, 0xc3000, 11, 3), 1649 [126] = SDC_QDSD_PINGROUP(sdc2_data, 0xc3000, 9, 0), 1650 }; 1651 1652 static const struct msm_pinctrl_soc_data qcs404_pinctrl = { 1653 .pins = qcs404_pins, 1654 .npins = ARRAY_SIZE(qcs404_pins), 1655 .functions = qcs404_functions, 1656 .nfunctions = ARRAY_SIZE(qcs404_functions), 1657 .groups = qcs404_groups, 1658 .ngroups = ARRAY_SIZE(qcs404_groups), 1659 .ngpios = 120, 1660 .tiles = qcs404_tiles, 1661 .ntiles = ARRAY_SIZE(qcs404_tiles), 1662 }; 1663 1664 static int qcs404_pinctrl_probe(struct platform_device *pdev) 1665 { 1666 return msm_pinctrl_probe(pdev, &qcs404_pinctrl); 1667 } 1668 1669 static const struct of_device_id qcs404_pinctrl_of_match[] = { 1670 { .compatible = "qcom,qcs404-pinctrl", }, 1671 { }, 1672 }; 1673 1674 static struct platform_driver qcs404_pinctrl_driver = { 1675 .driver = { 1676 .name = "qcs404-pinctrl", 1677 .of_match_table = qcs404_pinctrl_of_match, 1678 }, 1679 .probe = qcs404_pinctrl_probe, 1680 .remove = msm_pinctrl_remove, 1681 }; 1682 1683 static int __init qcs404_pinctrl_init(void) 1684 { 1685 return platform_driver_register(&qcs404_pinctrl_driver); 1686 } 1687 arch_initcall(qcs404_pinctrl_init); 1688 1689 static void __exit qcs404_pinctrl_exit(void) 1690 { 1691 platform_driver_unregister(&qcs404_pinctrl_driver); 1692 } 1693 module_exit(qcs404_pinctrl_exit); 1694 1695 MODULE_DESCRIPTION("Qualcomm QCS404 pinctrl driver"); 1696 MODULE_LICENSE("GPL v2"); 1697 MODULE_DEVICE_TABLE(of, qcs404_pinctrl_of_match); 1698