1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. 4 */ 5 6&msmgpio { 7 8 blsp1_uart1_default: blsp1-uart1-default { 9 // TX, RX, CTS_N, RTS_N 10 pins = "gpio0", "gpio1", "gpio2", "gpio3"; 11 function = "blsp_uart1"; 12 13 drive-strength = <16>; 14 bias-disable; 15 }; 16 17 blsp1_uart1_sleep: blsp1-uart1-sleep { 18 pins = "gpio0", "gpio1", "gpio2", "gpio3"; 19 function = "gpio"; 20 21 drive-strength = <2>; 22 bias-pull-down; 23 }; 24 25 blsp1_uart2_default: blsp1-uart2-default { 26 pins = "gpio4", "gpio5"; 27 function = "blsp_uart2"; 28 29 drive-strength = <16>; 30 bias-disable; 31 }; 32 33 blsp1_uart2_sleep: blsp1-uart2-sleep { 34 pins = "gpio4", "gpio5"; 35 function = "gpio"; 36 37 drive-strength = <2>; 38 bias-pull-down; 39 }; 40 41 spi1_default: spi1-default { 42 pins = "gpio0", "gpio1", "gpio3"; 43 function = "blsp_spi1"; 44 45 drive-strength = <12>; 46 bias-disable; 47 48 cs { 49 pins = "gpio2"; 50 function = "gpio"; 51 52 drive-strength = <16>; 53 bias-disable; 54 output-high; 55 }; 56 }; 57 58 spi1_sleep: spi1-sleep { 59 pins = "gpio0", "gpio1", "gpio2", "gpio3"; 60 function = "gpio"; 61 62 drive-strength = <2>; 63 bias-pull-down; 64 }; 65 66 spi2_default: spi2-default { 67 pins = "gpio4", "gpio5", "gpio7"; 68 function = "blsp_spi2"; 69 70 drive-strength = <12>; 71 bias-disable; 72 73 cs { 74 pins = "gpio6"; 75 function = "gpio"; 76 77 drive-strength = <16>; 78 bias-disable; 79 output-high; 80 }; 81 }; 82 83 spi2_sleep: spi2-sleep { 84 pins = "gpio4", "gpio5", "gpio6", "gpio7"; 85 function = "gpio"; 86 87 drive-strength = <2>; 88 bias-pull-down; 89 }; 90 91 spi3_default: spi3-default { 92 pins = "gpio8", "gpio9", "gpio11"; 93 function = "blsp_spi3"; 94 95 drive-strength = <12>; 96 bias-disable; 97 98 cs { 99 pins = "gpio10"; 100 function = "gpio"; 101 102 drive-strength = <16>; 103 bias-disable; 104 output-high; 105 }; 106 }; 107 108 spi3_sleep: spi3-sleep { 109 pins = "gpio8", "gpio9", "gpio10", "gpio11"; 110 function = "gpio"; 111 112 drive-strength = <2>; 113 bias-pull-down; 114 }; 115 116 spi4_default: spi4-default { 117 pins = "gpio12", "gpio13", "gpio15"; 118 function = "blsp_spi4"; 119 120 drive-strength = <12>; 121 bias-disable; 122 123 cs { 124 pins = "gpio14"; 125 function = "gpio"; 126 127 drive-strength = <16>; 128 bias-disable; 129 output-high; 130 }; 131 }; 132 133 spi4_sleep: spi4-sleep { 134 pins = "gpio12", "gpio13", "gpio14", "gpio15"; 135 function = "gpio"; 136 137 drive-strength = <2>; 138 bias-pull-down; 139 }; 140 141 spi5_default: spi5-default { 142 pins = "gpio16", "gpio17", "gpio19"; 143 function = "blsp_spi5"; 144 145 drive-strength = <12>; 146 bias-disable; 147 148 cs { 149 pins = "gpio18"; 150 function = "gpio"; 151 152 drive-strength = <16>; 153 bias-disable; 154 output-high; 155 }; 156 }; 157 158 spi5_sleep: spi5-sleep { 159 pins = "gpio16", "gpio17", "gpio18", "gpio19"; 160 function = "gpio"; 161 162 drive-strength = <2>; 163 bias-pull-down; 164 }; 165 166 spi6_default: spi6-default { 167 pins = "gpio20", "gpio21", "gpio23"; 168 function = "blsp_spi6"; 169 170 drive-strength = <12>; 171 bias-disable; 172 173 cs { 174 pins = "gpio22"; 175 function = "gpio"; 176 177 drive-strength = <16>; 178 bias-disable; 179 output-high; 180 }; 181 }; 182 183 spi6_sleep: spi6-sleep { 184 pins = "gpio20", "gpio21", "gpio22", "gpio23"; 185 function = "gpio"; 186 187 drive-strength = <2>; 188 bias-pull-down; 189 }; 190 191 i2c1_default: i2c1-default { 192 pins = "gpio2", "gpio3"; 193 function = "blsp_i2c1"; 194 195 drive-strength = <2>; 196 bias-disable; 197 }; 198 199 i2c1_sleep: i2c1-sleep { 200 pins = "gpio2", "gpio3"; 201 function = "gpio"; 202 203 drive-strength = <2>; 204 bias-disable; 205 }; 206 207 i2c2_default: i2c2-default { 208 pins = "gpio6", "gpio7"; 209 function = "blsp_i2c2"; 210 211 drive-strength = <2>; 212 bias-disable; 213 }; 214 215 i2c2_sleep: i2c2-sleep { 216 pins = "gpio6", "gpio7"; 217 function = "gpio"; 218 219 drive-strength = <2>; 220 bias-disable; 221 }; 222 223 i2c4_default: i2c4-default { 224 pins = "gpio14", "gpio15"; 225 function = "blsp_i2c4"; 226 227 drive-strength = <2>; 228 bias-disable; 229 }; 230 231 i2c4_sleep: i2c4-sleep { 232 pins = "gpio14", "gpio15"; 233 function = "gpio"; 234 235 drive-strength = <2>; 236 bias-disable; 237 }; 238 239 i2c5_default: i2c5-default { 240 pins = "gpio18", "gpio19"; 241 function = "blsp_i2c5"; 242 243 drive-strength = <2>; 244 bias-disable; 245 }; 246 247 i2c5_sleep: i2c5-sleep { 248 pins = "gpio18", "gpio19"; 249 function = "gpio"; 250 251 drive-strength = <2>; 252 bias-disable; 253 }; 254 255 i2c6_default: i2c6-default { 256 pins = "gpio22", "gpio23"; 257 function = "blsp_i2c6"; 258 259 drive-strength = <2>; 260 bias-disable; 261 }; 262 263 i2c6_sleep: i2c6-sleep { 264 pins = "gpio22", "gpio23"; 265 function = "gpio"; 266 267 drive-strength = <2>; 268 bias-disable; 269 }; 270 271 pmx-sdc1-clk { 272 sdc1_clk_on: clk-on { 273 pins = "sdc1_clk"; 274 275 bias-disable; 276 drive-strength = <16>; 277 }; 278 sdc1_clk_off: clk-off { 279 pins = "sdc1_clk"; 280 281 bias-disable; 282 drive-strength = <2>; 283 }; 284 }; 285 286 pmx-sdc1-cmd { 287 sdc1_cmd_on: cmd-on { 288 pins = "sdc1_cmd"; 289 290 bias-pull-up; 291 drive-strength = <10>; 292 }; 293 sdc1_cmd_off: cmd-off { 294 pins = "sdc1_cmd"; 295 296 bias-pull-up; 297 drive-strength = <2>; 298 }; 299 }; 300 301 pmx-sdc1-data { 302 sdc1_data_on: data-on { 303 pins = "sdc1_data"; 304 305 bias-pull-up; 306 drive-strength = <10>; 307 }; 308 sdc1_data_off: data-off { 309 pins = "sdc1_data"; 310 311 bias-pull-up; 312 drive-strength = <2>; 313 }; 314 }; 315 316 pmx-sdc2-clk { 317 sdc2_clk_on: clk-on { 318 pins = "sdc2_clk"; 319 320 bias-disable; 321 drive-strength = <16>; 322 }; 323 sdc2_clk_off: clk-off { 324 pins = "sdc2_clk"; 325 326 bias-disable; 327 drive-strength = <2>; 328 }; 329 }; 330 331 pmx-sdc2-cmd { 332 sdc2_cmd_on: cmd-on { 333 pins = "sdc2_cmd"; 334 335 bias-pull-up; 336 drive-strength = <10>; 337 }; 338 sdc2_cmd_off: cmd-off { 339 pins = "sdc2_cmd"; 340 341 bias-pull-up; 342 drive-strength = <2>; 343 }; 344 }; 345 346 pmx-sdc2-data { 347 sdc2_data_on: data-on { 348 pins = "sdc2_data"; 349 350 bias-pull-up; 351 drive-strength = <10>; 352 }; 353 sdc2_data_off: data-off { 354 pins = "sdc2_data"; 355 356 bias-pull-up; 357 drive-strength = <2>; 358 }; 359 }; 360 361 pmx-sdc2-cd-pin { 362 sdc2_cd_on: cd-on { 363 pins = "gpio38"; 364 function = "gpio"; 365 366 drive-strength = <2>; 367 bias-pull-up; 368 }; 369 sdc2_cd_off: cd-off { 370 pins = "gpio38"; 371 function = "gpio"; 372 373 drive-strength = <2>; 374 bias-disable; 375 }; 376 }; 377 378 cdc-pdm-lines { 379 cdc_pdm_lines_act: pdm-lines-on { 380 pins = "gpio63", "gpio64", "gpio65", "gpio66", 381 "gpio67", "gpio68"; 382 function = "cdc_pdm0"; 383 384 drive-strength = <8>; 385 bias-disable; 386 }; 387 cdc_pdm_lines_sus: pdm-lines-off { 388 pins = "gpio63", "gpio64", "gpio65", "gpio66", 389 "gpio67", "gpio68"; 390 function = "cdc_pdm0"; 391 392 drive-strength = <2>; 393 bias-pull-down; 394 }; 395 }; 396 397 ext-pri-tlmm-lines { 398 ext_pri_tlmm_lines_act: ext-pa-on { 399 pins = "gpio113", "gpio114", "gpio115", "gpio116"; 400 function = "pri_mi2s"; 401 402 drive-strength = <8>; 403 bias-disable; 404 }; 405 ext_pri_tlmm_lines_sus: ext-pa-off { 406 pins = "gpio113", "gpio114", "gpio115", "gpio116"; 407 function = "pri_mi2s"; 408 409 drive-strength = <2>; 410 bias-disable; 411 }; 412 }; 413 414 ext-pri-ws-line { 415 ext_pri_ws_act: ext-pa-on { 416 pins = "gpio110"; 417 function = "pri_mi2s_ws"; 418 419 drive-strength = <8>; 420 bias-disable; 421 }; 422 ext_pri_ws_sus: ext-pa-off { 423 pins = "gpio110"; 424 function = "pri_mi2s_ws"; 425 426 drive-strength = <2>; 427 bias-disable; 428 }; 429 }; 430 431 ext-mclk-tlmm-lines { 432 ext_mclk_tlmm_lines_act: mclk-lines-on { 433 pins = "gpio116"; 434 function = "pri_mi2s"; 435 436 drive-strength = <8>; 437 bias-disable; 438 }; 439 ext_mclk_tlmm_lines_sus: mclk-lines-off { 440 pins = "gpio116"; 441 function = "pri_mi2s"; 442 443 drive-strength = <2>; 444 bias-disable; 445 }; 446 }; 447 448 /* secondary Mi2S */ 449 ext-sec-tlmm-lines { 450 ext_sec_tlmm_lines_act: tlmm-lines-on { 451 pins = "gpio112", "gpio117", "gpio118", "gpio119"; 452 function = "sec_mi2s"; 453 454 drive-strength = <8>; 455 bias-disable; 456 }; 457 ext_sec_tlmm_lines_sus: tlmm-lines-off { 458 pins = "gpio112", "gpio117", "gpio118", "gpio119"; 459 function = "sec_mi2s"; 460 461 drive-strength = <2>; 462 bias-disable; 463 }; 464 }; 465 466 cdc-dmic-lines { 467 cdc_dmic_lines_act: dmic-lines-on { 468 clk { 469 pins = "gpio0"; 470 function = "dmic0_clk"; 471 472 drive-strength = <8>; 473 }; 474 data { 475 pins = "gpio1"; 476 function = "dmic0_data"; 477 478 drive-strength = <8>; 479 }; 480 }; 481 cdc_dmic_lines_sus: dmic-lines-off { 482 clk { 483 pins = "gpio0"; 484 function = "dmic0_clk"; 485 486 drive-strength = <2>; 487 bias-disable; 488 }; 489 data { 490 pins = "gpio1"; 491 function = "dmic0_data"; 492 493 drive-strength = <2>; 494 bias-disable; 495 }; 496 }; 497 }; 498 499 wcnss_pin_a: wcnss-active { 500 pins = "gpio40", "gpio41", "gpio42", "gpio43", "gpio44"; 501 function = "wcss_wlan"; 502 503 drive-strength = <6>; 504 bias-pull-up; 505 }; 506 507 cci0_default: cci0-default { 508 pins = "gpio29", "gpio30"; 509 function = "cci_i2c"; 510 511 drive-strength = <16>; 512 bias-disable; 513 }; 514 515 camera_front_default: camera-front-default { 516 pwdn { 517 pins = "gpio33"; 518 function = "gpio"; 519 520 drive-strength = <16>; 521 bias-disable; 522 }; 523 rst { 524 pins = "gpio28"; 525 function = "gpio"; 526 527 drive-strength = <16>; 528 bias-disable; 529 }; 530 mclk1 { 531 pins = "gpio27"; 532 function = "cam_mclk1"; 533 534 drive-strength = <16>; 535 bias-disable; 536 }; 537 }; 538 539 camera_rear_default: camera-rear-default { 540 pwdn { 541 pins = "gpio34"; 542 function = "gpio"; 543 544 drive-strength = <16>; 545 bias-disable; 546 }; 547 rst { 548 pins = "gpio35"; 549 function = "gpio"; 550 551 drive-strength = <16>; 552 bias-disable; 553 }; 554 mclk0 { 555 pins = "gpio26"; 556 function = "cam_mclk0"; 557 558 drive-strength = <16>; 559 bias-disable; 560 }; 561 }; 562}; 563