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