Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | #include "qcom-msm8974pro.dtsi" |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 3 | #include "pma8084.dtsi" |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 4 | #include <dt-bindings/input/input.h> |
| 5 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
| 6 | #include <dt-bindings/leds/common.h> |
| 7 | |
| 8 | / { |
| 9 | model = "Samsung Galaxy S5"; |
| 10 | compatible = "samsung,klte", "qcom,msm8974pro", "qcom,msm8974"; |
| 11 | chassis-type = "handset"; |
| 12 | |
| 13 | aliases { |
| 14 | serial0 = &blsp1_uart1; |
| 15 | mmc0 = &sdhc_1; /* SDC1 eMMC slot */ |
| 16 | mmc1 = &sdhc_3; /* SDC2 SD card slot */ |
| 17 | }; |
| 18 | |
| 19 | chosen { |
| 20 | stdout-path = "serial0:115200n8"; |
| 21 | }; |
| 22 | |
| 23 | gpio-keys { |
| 24 | compatible = "gpio-keys"; |
| 25 | |
| 26 | pinctrl-names = "default"; |
| 27 | pinctrl-0 = <&gpio_keys_pin_a>; |
| 28 | |
| 29 | key-volume-down { |
| 30 | label = "volume_down"; |
| 31 | gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>; |
| 32 | linux,input-type = <1>; |
| 33 | linux,code = <KEY_VOLUMEDOWN>; |
| 34 | debounce-interval = <15>; |
| 35 | }; |
| 36 | |
| 37 | key-home { |
| 38 | label = "home_key"; |
| 39 | gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>; |
| 40 | linux,input-type = <1>; |
| 41 | linux,code = <KEY_HOMEPAGE>; |
| 42 | wakeup-source; |
| 43 | debounce-interval = <15>; |
| 44 | }; |
| 45 | |
| 46 | key-volume-up { |
| 47 | label = "volume_up"; |
| 48 | gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>; |
| 49 | linux,input-type = <1>; |
| 50 | linux,code = <KEY_VOLUMEUP>; |
| 51 | debounce-interval = <15>; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | i2c-gpio-touchkey { |
| 56 | compatible = "i2c-gpio"; |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <0>; |
| 59 | sda-gpios = <&tlmm 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 60 | scl-gpios = <&tlmm 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 61 | pinctrl-names = "default"; |
| 62 | pinctrl-0 = <&i2c_touchkey_pins>; |
| 63 | |
| 64 | touchkey@20 { |
| 65 | compatible = "cypress,tm2-touchkey"; |
| 66 | reg = <0x20>; |
| 67 | |
| 68 | interrupt-parent = <&pma8084_gpios>; |
| 69 | interrupts = <6 IRQ_TYPE_EDGE_FALLING>; |
| 70 | pinctrl-names = "default"; |
| 71 | pinctrl-0 = <&touchkey_pin>; |
| 72 | |
| 73 | vcc-supply = <&max77826_ldo15>; |
| 74 | vdd-supply = <&pma8084_l19>; |
| 75 | |
| 76 | linux,keycodes = <KEY_APPSELECT KEY_BACK>; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | i2c-gpio-led { |
| 81 | compatible = "i2c-gpio"; |
| 82 | #address-cells = <1>; |
| 83 | #size-cells = <0>; |
| 84 | scl-gpios = <&tlmm 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 85 | sda-gpios = <&tlmm 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&i2c_led_gpioex_pins>; |
| 88 | |
| 89 | i2c-gpio,delay-us = <2>; |
| 90 | |
| 91 | gpio_expander: gpio@20 { |
| 92 | compatible = "nxp,pcal6416"; |
| 93 | reg = <0x20>; |
| 94 | |
| 95 | gpio-controller; |
| 96 | #gpio-cells = <2>; |
| 97 | |
| 98 | vcc-supply = <&pma8084_s4>; |
| 99 | |
| 100 | pinctrl-names = "default"; |
| 101 | pinctrl-0 = <&gpioex_pin>; |
| 102 | |
| 103 | reset-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; |
| 104 | }; |
| 105 | |
| 106 | led-controller@30 { |
| 107 | compatible = "panasonic,an30259a"; |
| 108 | reg = <0x30>; |
| 109 | |
| 110 | #address-cells = <1>; |
| 111 | #size-cells = <0>; |
| 112 | |
| 113 | led@1 { |
| 114 | reg = <1>; |
| 115 | function = LED_FUNCTION_STATUS; |
| 116 | color = <LED_COLOR_ID_RED>; |
| 117 | }; |
| 118 | |
| 119 | led@2 { |
| 120 | reg = <2>; |
| 121 | function = LED_FUNCTION_STATUS; |
| 122 | color = <LED_COLOR_ID_GREEN>; |
| 123 | }; |
| 124 | |
| 125 | led@3 { |
| 126 | reg = <3>; |
| 127 | function = LED_FUNCTION_STATUS; |
| 128 | color = <LED_COLOR_ID_BLUE>; |
| 129 | }; |
| 130 | }; |
| 131 | }; |
| 132 | |
| 133 | vreg_wlan: wlan-regulator { |
| 134 | compatible = "regulator-fixed"; |
| 135 | |
| 136 | regulator-name = "wl-reg"; |
| 137 | regulator-min-microvolt = <3300000>; |
| 138 | regulator-max-microvolt = <3300000>; |
| 139 | |
| 140 | gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>; |
| 141 | enable-active-high; |
| 142 | }; |
| 143 | |
| 144 | vreg_panel: panel-regulator { |
| 145 | compatible = "regulator-fixed"; |
| 146 | |
| 147 | pinctrl-names = "default"; |
| 148 | pinctrl-0 = <&panel_en_pin>; |
| 149 | |
| 150 | regulator-name = "panel-vddr-reg"; |
| 151 | regulator-min-microvolt = <1500000>; |
| 152 | regulator-max-microvolt = <1500000>; |
| 153 | |
| 154 | gpio = <&pma8084_gpios 14 GPIO_ACTIVE_HIGH>; |
| 155 | enable-active-high; |
| 156 | }; |
| 157 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 158 | vreg_vph_pwr: vreg-vph-pwr { |
| 159 | compatible = "regulator-fixed"; |
| 160 | regulator-name = "vph-pwr"; |
| 161 | |
| 162 | regulator-min-microvolt = <3600000>; |
| 163 | regulator-max-microvolt = <3600000>; |
| 164 | |
| 165 | regulator-always-on; |
| 166 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 167 | }; |
| 168 | |
| 169 | &blsp1_i2c2 { |
| 170 | status = "okay"; |
| 171 | |
| 172 | touchscreen@20 { |
| 173 | compatible = "syna,rmi4-i2c"; |
| 174 | reg = <0x20>; |
| 175 | |
| 176 | interrupt-parent = <&pma8084_gpios>; |
| 177 | interrupts = <8 IRQ_TYPE_EDGE_FALLING>; |
| 178 | |
| 179 | vdd-supply = <&max77826_ldo13>; |
| 180 | vio-supply = <&pma8084_lvs2>; |
| 181 | |
| 182 | pinctrl-names = "default"; |
| 183 | pinctrl-0 = <&touch_pin>; |
| 184 | |
| 185 | syna,startup-delay-ms = <100>; |
| 186 | |
| 187 | #address-cells = <1>; |
| 188 | #size-cells = <0>; |
| 189 | |
| 190 | rmi4-f01@1 { |
| 191 | reg = <0x1>; |
| 192 | syna,nosleep-mode = <1>; |
| 193 | }; |
| 194 | |
| 195 | rmi4-f12@12 { |
| 196 | reg = <0x12>; |
| 197 | syna,sensor-type = <1>; |
| 198 | }; |
| 199 | }; |
| 200 | }; |
| 201 | |
| 202 | &blsp1_i2c6 { |
| 203 | status = "okay"; |
| 204 | |
| 205 | pmic@60 { |
| 206 | reg = <0x60>; |
| 207 | compatible = "maxim,max77826"; |
| 208 | |
| 209 | regulators { |
| 210 | max77826_ldo1: LDO1 { |
| 211 | regulator-min-microvolt = <1200000>; |
| 212 | regulator-max-microvolt = <1200000>; |
| 213 | }; |
| 214 | |
| 215 | max77826_ldo2: LDO2 { |
| 216 | regulator-min-microvolt = <1000000>; |
| 217 | regulator-max-microvolt = <1000000>; |
| 218 | }; |
| 219 | |
| 220 | max77826_ldo3: LDO3 { |
| 221 | regulator-min-microvolt = <1200000>; |
| 222 | regulator-max-microvolt = <1200000>; |
| 223 | }; |
| 224 | |
| 225 | max77826_ldo4: LDO4 { |
| 226 | regulator-min-microvolt = <1800000>; |
| 227 | regulator-max-microvolt = <1800000>; |
| 228 | }; |
| 229 | |
| 230 | max77826_ldo5: LDO5 { |
| 231 | regulator-min-microvolt = <1800000>; |
| 232 | regulator-max-microvolt = <1800000>; |
| 233 | }; |
| 234 | |
| 235 | max77826_ldo6: LDO6 { |
| 236 | regulator-min-microvolt = <1800000>; |
| 237 | regulator-max-microvolt = <3300000>; |
| 238 | }; |
| 239 | |
| 240 | max77826_ldo7: LDO7 { |
| 241 | regulator-min-microvolt = <1800000>; |
| 242 | regulator-max-microvolt = <1800000>; |
| 243 | }; |
| 244 | |
| 245 | max77826_ldo8: LDO8 { |
| 246 | regulator-min-microvolt = <1800000>; |
| 247 | regulator-max-microvolt = <3300000>; |
| 248 | }; |
| 249 | |
| 250 | max77826_ldo9: LDO9 { |
| 251 | regulator-min-microvolt = <1800000>; |
| 252 | regulator-max-microvolt = <1800000>; |
| 253 | }; |
| 254 | |
| 255 | max77826_ldo10: LDO10 { |
| 256 | regulator-min-microvolt = <2800000>; |
| 257 | regulator-max-microvolt = <2950000>; |
| 258 | }; |
| 259 | |
| 260 | max77826_ldo11: LDO11 { |
| 261 | regulator-min-microvolt = <2700000>; |
| 262 | regulator-max-microvolt = <2950000>; |
| 263 | }; |
| 264 | |
| 265 | max77826_ldo12: LDO12 { |
| 266 | regulator-min-microvolt = <2500000>; |
| 267 | regulator-max-microvolt = <3300000>; |
| 268 | }; |
| 269 | |
| 270 | max77826_ldo13: LDO13 { |
| 271 | regulator-min-microvolt = <3300000>; |
| 272 | regulator-max-microvolt = <3300000>; |
| 273 | }; |
| 274 | |
| 275 | max77826_ldo14: LDO14 { |
| 276 | regulator-min-microvolt = <3300000>; |
| 277 | regulator-max-microvolt = <3300000>; |
| 278 | }; |
| 279 | |
| 280 | max77826_ldo15: LDO15 { |
| 281 | regulator-min-microvolt = <1800000>; |
| 282 | regulator-max-microvolt = <1800000>; |
| 283 | }; |
| 284 | |
| 285 | max77826_buck: BUCK { |
| 286 | regulator-min-microvolt = <1225000>; |
| 287 | regulator-max-microvolt = <1225000>; |
| 288 | }; |
| 289 | |
| 290 | max77826_buckboost: BUCKBOOST { |
| 291 | regulator-min-microvolt = <3400000>; |
| 292 | regulator-max-microvolt = <3400000>; |
| 293 | }; |
| 294 | }; |
| 295 | }; |
| 296 | }; |
| 297 | |
| 298 | &blsp1_uart2 { |
| 299 | status = "okay"; |
| 300 | }; |
| 301 | |
| 302 | &blsp2_i2c6 { |
| 303 | status = "okay"; |
| 304 | |
| 305 | fuelgauge@36 { |
| 306 | compatible = "maxim,max17048"; |
| 307 | reg = <0x36>; |
| 308 | |
| 309 | maxim,double-soc; |
| 310 | maxim,rcomp = /bits/ 8 <0x56>; |
| 311 | |
| 312 | interrupt-parent = <&pma8084_gpios>; |
| 313 | interrupts = <21 IRQ_TYPE_LEVEL_LOW>; |
| 314 | |
| 315 | pinctrl-names = "default"; |
| 316 | pinctrl-0 = <&fuelgauge_pin>; |
| 317 | }; |
| 318 | }; |
| 319 | |
| 320 | &blsp2_uart2 { |
| 321 | status = "okay"; |
| 322 | |
| 323 | pinctrl-names = "default", "sleep"; |
| 324 | pinctrl-0 = <&blsp2_uart2_pins_active>; |
| 325 | pinctrl-1 = <&blsp2_uart2_pins_sleep>; |
| 326 | |
| 327 | bluetooth { |
| 328 | compatible = "brcm,bcm43540-bt"; |
| 329 | max-speed = <3000000>; |
| 330 | pinctrl-names = "default"; |
| 331 | pinctrl-0 = <&bt_pins>; |
| 332 | device-wakeup-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>; |
| 333 | shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>; |
| 334 | interrupt-parent = <&tlmm>; |
| 335 | interrupts = <75 IRQ_TYPE_LEVEL_HIGH>; |
| 336 | interrupt-names = "host-wakeup"; |
| 337 | }; |
| 338 | }; |
| 339 | |
| 340 | &gpu { |
| 341 | status = "okay"; |
| 342 | }; |
| 343 | |
| 344 | &mdss { |
| 345 | status = "okay"; |
| 346 | }; |
| 347 | |
| 348 | &mdss_dsi0 { |
| 349 | status = "okay"; |
| 350 | |
| 351 | vdda-supply = <&pma8084_l2>; |
| 352 | vdd-supply = <&pma8084_l22>; |
| 353 | vddio-supply = <&pma8084_l12>; |
| 354 | |
| 355 | panel: panel@0 { |
| 356 | reg = <0>; |
| 357 | compatible = "samsung,s6e3fa2"; |
| 358 | |
| 359 | pinctrl-names = "default"; |
| 360 | pinctrl-0 = <&panel_te_pin &panel_rst_pin>; |
| 361 | |
| 362 | iovdd-supply = <&pma8084_lvs4>; |
| 363 | vddr-supply = <&vreg_panel>; |
| 364 | |
| 365 | reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 366 | |
| 367 | port { |
| 368 | panel_in: endpoint { |
| 369 | remote-endpoint = <&mdss_dsi0_out>; |
| 370 | }; |
| 371 | }; |
| 372 | }; |
| 373 | }; |
| 374 | |
| 375 | &mdss_dsi0_out { |
| 376 | remote-endpoint = <&panel_in>; |
| 377 | data-lanes = <0 1 2 3>; |
| 378 | }; |
| 379 | |
| 380 | &mdss_dsi0_phy { |
| 381 | status = "okay"; |
| 382 | |
| 383 | vddio-supply = <&pma8084_l12>; |
| 384 | }; |
| 385 | |
| 386 | &pma8084_gpios { |
| 387 | gpio_keys_pin_a: gpio-keys-active-state { |
| 388 | pins = "gpio2", "gpio3", "gpio5"; |
| 389 | function = "normal"; |
| 390 | |
| 391 | bias-pull-up; |
| 392 | power-source = <PMA8084_GPIO_S4>; |
| 393 | }; |
| 394 | |
| 395 | touchkey_pin: touchkey-int-state { |
| 396 | pins = "gpio6"; |
| 397 | function = "normal"; |
| 398 | bias-disable; |
| 399 | input-enable; |
| 400 | power-source = <PMA8084_GPIO_S4>; |
| 401 | }; |
| 402 | |
| 403 | touch_pin: touchscreen-int-state { |
| 404 | pins = "gpio8"; |
| 405 | function = "normal"; |
| 406 | bias-disable; |
| 407 | input-enable; |
| 408 | power-source = <PMA8084_GPIO_S4>; |
| 409 | }; |
| 410 | |
| 411 | panel_en_pin: panel-en-state { |
| 412 | pins = "gpio14"; |
| 413 | function = "normal"; |
| 414 | bias-pull-up; |
| 415 | power-source = <PMA8084_GPIO_S4>; |
| 416 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; |
| 417 | }; |
| 418 | |
| 419 | wlan_sleep_clk_pin: wlan-sleep-clk-state { |
| 420 | pins = "gpio16"; |
| 421 | function = "func2"; |
| 422 | |
| 423 | output-high; |
| 424 | power-source = <PMA8084_GPIO_S4>; |
| 425 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>; |
| 426 | }; |
| 427 | |
| 428 | panel_rst_pin: panel-rst-state { |
| 429 | pins = "gpio17"; |
| 430 | function = "normal"; |
| 431 | bias-disable; |
| 432 | power-source = <PMA8084_GPIO_S4>; |
| 433 | qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; |
| 434 | }; |
| 435 | |
| 436 | fuelgauge_pin: fuelgauge-int-state { |
| 437 | pins = "gpio21"; |
| 438 | function = "normal"; |
| 439 | bias-disable; |
| 440 | input-enable; |
| 441 | power-source = <PMA8084_GPIO_S4>; |
| 442 | }; |
| 443 | }; |
| 444 | |
| 445 | &remoteproc_adsp { |
| 446 | status = "okay"; |
| 447 | cx-supply = <&pma8084_s2>; |
| 448 | }; |
| 449 | |
| 450 | &remoteproc_mss { |
| 451 | status = "okay"; |
| 452 | cx-supply = <&pma8084_s2>; |
| 453 | mss-supply = <&pma8084_s6>; |
| 454 | mx-supply = <&pma8084_s1>; |
| 455 | pll-supply = <&pma8084_l12>; |
| 456 | }; |
| 457 | |
| 458 | &rpm_requests { |
| 459 | regulators-0 { |
| 460 | compatible = "qcom,rpm-pma8084-regulators"; |
| 461 | |
| 462 | pma8084_s1: s1 { |
| 463 | regulator-min-microvolt = <675000>; |
| 464 | regulator-max-microvolt = <1050000>; |
| 465 | regulator-always-on; |
| 466 | }; |
| 467 | |
| 468 | pma8084_s2: s2 { |
| 469 | regulator-min-microvolt = <500000>; |
| 470 | regulator-max-microvolt = <1050000>; |
| 471 | }; |
| 472 | |
| 473 | pma8084_s3: s3 { |
| 474 | regulator-min-microvolt = <1300000>; |
| 475 | regulator-max-microvolt = <1300000>; |
| 476 | }; |
| 477 | |
| 478 | pma8084_s4: s4 { |
| 479 | regulator-min-microvolt = <1800000>; |
| 480 | regulator-max-microvolt = <1800000>; |
| 481 | }; |
| 482 | |
| 483 | pma8084_s5: s5 { |
| 484 | regulator-min-microvolt = <2150000>; |
| 485 | regulator-max-microvolt = <2150000>; |
| 486 | }; |
| 487 | |
| 488 | pma8084_s6: s6 { |
| 489 | regulator-min-microvolt = <1050000>; |
| 490 | regulator-max-microvolt = <1050000>; |
| 491 | }; |
| 492 | |
| 493 | pma8084_l1: l1 { |
| 494 | regulator-min-microvolt = <1225000>; |
| 495 | regulator-max-microvolt = <1225000>; |
| 496 | }; |
| 497 | |
| 498 | pma8084_l2: l2 { |
| 499 | regulator-min-microvolt = <1200000>; |
| 500 | regulator-max-microvolt = <1200000>; |
| 501 | }; |
| 502 | |
| 503 | pma8084_l3: l3 { |
| 504 | regulator-min-microvolt = <1050000>; |
| 505 | regulator-max-microvolt = <1200000>; |
| 506 | }; |
| 507 | |
| 508 | pma8084_l4: l4 { |
| 509 | regulator-min-microvolt = <1200000>; |
| 510 | regulator-max-microvolt = <1225000>; |
| 511 | }; |
| 512 | |
| 513 | pma8084_l5: l5 { |
| 514 | regulator-min-microvolt = <1800000>; |
| 515 | regulator-max-microvolt = <1800000>; |
| 516 | }; |
| 517 | |
| 518 | pma8084_l6: l6 { |
| 519 | regulator-min-microvolt = <1800000>; |
| 520 | regulator-max-microvolt = <1800000>; |
| 521 | }; |
| 522 | |
| 523 | pma8084_l7: l7 { |
| 524 | regulator-min-microvolt = <1800000>; |
| 525 | regulator-max-microvolt = <1800000>; |
| 526 | }; |
| 527 | |
| 528 | pma8084_l8: l8 { |
| 529 | regulator-min-microvolt = <1800000>; |
| 530 | regulator-max-microvolt = <1800000>; |
| 531 | }; |
| 532 | |
| 533 | pma8084_l9: l9 { |
| 534 | regulator-min-microvolt = <1800000>; |
| 535 | regulator-max-microvolt = <2950000>; |
| 536 | }; |
| 537 | |
| 538 | pma8084_l10: l10 { |
| 539 | regulator-min-microvolt = <1800000>; |
| 540 | regulator-max-microvolt = <2950000>; |
| 541 | }; |
| 542 | |
| 543 | pma8084_l11: l11 { |
| 544 | regulator-min-microvolt = <1300000>; |
| 545 | regulator-max-microvolt = <1300000>; |
| 546 | }; |
| 547 | |
| 548 | pma8084_l12: l12 { |
| 549 | regulator-min-microvolt = <1800000>; |
| 550 | regulator-max-microvolt = <1800000>; |
| 551 | regulator-always-on; |
| 552 | }; |
| 553 | |
| 554 | pma8084_l13: l13 { |
| 555 | regulator-min-microvolt = <1800000>; |
| 556 | regulator-max-microvolt = <2950000>; |
| 557 | }; |
| 558 | |
| 559 | pma8084_l14: l14 { |
| 560 | regulator-min-microvolt = <1800000>; |
| 561 | regulator-max-microvolt = <1800000>; |
| 562 | }; |
| 563 | |
| 564 | pma8084_l15: l15 { |
| 565 | regulator-min-microvolt = <2050000>; |
| 566 | regulator-max-microvolt = <2050000>; |
| 567 | }; |
| 568 | |
| 569 | pma8084_l16: l16 { |
| 570 | regulator-min-microvolt = <2700000>; |
| 571 | regulator-max-microvolt = <2700000>; |
| 572 | }; |
| 573 | |
| 574 | pma8084_l17: l17 { |
| 575 | regulator-min-microvolt = <2850000>; |
| 576 | regulator-max-microvolt = <2850000>; |
| 577 | }; |
| 578 | |
| 579 | pma8084_l18: l18 { |
| 580 | regulator-min-microvolt = <2850000>; |
| 581 | regulator-max-microvolt = <2850000>; |
| 582 | }; |
| 583 | |
| 584 | pma8084_l19: l19 { |
| 585 | regulator-min-microvolt = <3300000>; |
| 586 | regulator-max-microvolt = <3300000>; |
| 587 | }; |
| 588 | |
| 589 | pma8084_l20: l20 { |
| 590 | regulator-min-microvolt = <2950000>; |
| 591 | regulator-max-microvolt = <2950000>; |
| 592 | regulator-system-load = <200000>; |
| 593 | regulator-allow-set-load; |
| 594 | }; |
| 595 | |
| 596 | pma8084_l21: l21 { |
| 597 | regulator-min-microvolt = <2950000>; |
| 598 | regulator-max-microvolt = <2950000>; |
| 599 | regulator-system-load = <200000>; |
| 600 | regulator-allow-set-load; |
| 601 | }; |
| 602 | |
| 603 | pma8084_l22: l22 { |
| 604 | regulator-min-microvolt = <3000000>; |
| 605 | regulator-max-microvolt = <3300000>; |
| 606 | }; |
| 607 | |
| 608 | pma8084_l23: l23 { |
| 609 | regulator-min-microvolt = <3000000>; |
| 610 | regulator-max-microvolt = <3000000>; |
| 611 | }; |
| 612 | |
| 613 | pma8084_l24: l24 { |
| 614 | regulator-min-microvolt = <3075000>; |
| 615 | regulator-max-microvolt = <3075000>; |
| 616 | }; |
| 617 | |
| 618 | pma8084_l25: l25 { |
| 619 | regulator-min-microvolt = <2100000>; |
| 620 | regulator-max-microvolt = <2100000>; |
| 621 | }; |
| 622 | |
| 623 | pma8084_l26: l26 { |
| 624 | regulator-min-microvolt = <1800000>; |
| 625 | regulator-max-microvolt = <2050000>; |
| 626 | }; |
| 627 | |
| 628 | pma8084_l27: l27 { |
| 629 | regulator-min-microvolt = <1000000>; |
| 630 | regulator-max-microvolt = <1225000>; |
| 631 | }; |
| 632 | |
| 633 | pma8084_lvs1: lvs1 {}; |
| 634 | pma8084_lvs2: lvs2 {}; |
| 635 | pma8084_lvs3: lvs3 {}; |
| 636 | pma8084_lvs4: lvs4 {}; |
| 637 | |
| 638 | pma8084_5vs1: 5vs1 {}; |
| 639 | }; |
| 640 | }; |
| 641 | |
| 642 | &sdhc_1 { |
| 643 | status = "okay"; |
| 644 | |
| 645 | vmmc-supply = <&pma8084_l20>; |
| 646 | vqmmc-supply = <&pma8084_s4>; |
| 647 | |
| 648 | pinctrl-names = "default", "sleep"; |
| 649 | pinctrl-0 = <&sdc1_on>; |
| 650 | pinctrl-1 = <&sdc1_off>; |
| 651 | }; |
| 652 | |
| 653 | &sdhc_2 { |
| 654 | status = "okay"; |
| 655 | max-frequency = <100000000>; |
| 656 | vmmc-supply = <&vreg_wlan>; |
| 657 | vqmmc-supply = <&pma8084_s4>; |
| 658 | non-removable; |
| 659 | |
| 660 | pinctrl-names = "default", "sleep"; |
| 661 | pinctrl-0 = <&sdc2_on>; |
| 662 | pinctrl-1 = <&sdc2_off>; |
| 663 | |
| 664 | wifi@1 { |
| 665 | reg = <1>; |
| 666 | compatible = "brcm,bcm4329-fmac"; |
| 667 | |
| 668 | interrupt-parent = <&tlmm>; |
| 669 | interrupts = <92 IRQ_TYPE_LEVEL_HIGH>; |
| 670 | interrupt-names = "host-wake"; |
| 671 | |
| 672 | pinctrl-names = "default"; |
| 673 | pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>; |
| 674 | }; |
| 675 | }; |
| 676 | |
| 677 | &sdhc_3 { |
| 678 | status = "okay"; |
| 679 | max-frequency = <100000000>; |
| 680 | vmmc-supply = <&pma8084_l21>; |
| 681 | vqmmc-supply = <&pma8084_l13>; |
| 682 | |
| 683 | /* |
| 684 | * cd-gpio is intentionally disabled. If enabled, an SD card |
| 685 | * present during boot is not initialized correctly. Without |
| 686 | * cd-gpios the driver resorts to polling, so hotplug works. |
| 687 | */ |
| 688 | pinctrl-names = "default"; |
| 689 | pinctrl-0 = <&sdc3_on /* &sdhc3_cd_pin */>; |
| 690 | /* cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; */ |
| 691 | }; |
| 692 | |
| 693 | &tlmm { |
| 694 | /* This seems suspicious, but somebody with this device should look into it. */ |
| 695 | blsp2_uart2_pins_active: blsp2-uart2-pins-active-state { |
| 696 | pins = "gpio45", "gpio46", "gpio47", "gpio48"; |
| 697 | function = "blsp_uart8"; |
| 698 | drive-strength = <8>; |
| 699 | bias-disable; |
| 700 | }; |
| 701 | |
| 702 | blsp2_uart2_pins_sleep: blsp2-uart2-pins-sleep-state { |
| 703 | pins = "gpio45", "gpio46", "gpio47", "gpio48"; |
| 704 | function = "gpio"; |
| 705 | drive-strength = <2>; |
| 706 | bias-pull-down; |
| 707 | }; |
| 708 | |
| 709 | bt_pins: bt-pins-state { |
| 710 | hostwake-pins { |
| 711 | pins = "gpio75"; |
| 712 | function = "gpio"; |
| 713 | drive-strength = <16>; |
| 714 | }; |
| 715 | |
| 716 | devwake-pins { |
| 717 | pins = "gpio91"; |
| 718 | function = "gpio"; |
| 719 | drive-strength = <2>; |
| 720 | }; |
| 721 | }; |
| 722 | |
| 723 | sdc1_on: sdhc1-on-state { |
| 724 | clk-pins { |
| 725 | pins = "sdc1_clk"; |
| 726 | drive-strength = <4>; |
| 727 | bias-disable; |
| 728 | }; |
| 729 | |
| 730 | cmd-data-pins { |
| 731 | pins = "sdc1_cmd", "sdc1_data"; |
| 732 | drive-strength = <4>; |
| 733 | bias-pull-up; |
| 734 | }; |
| 735 | }; |
| 736 | |
| 737 | sdc3_on: sdc3-on-state { |
| 738 | pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40"; |
| 739 | function = "sdc3"; |
| 740 | drive-strength = <8>; |
| 741 | bias-disable; |
| 742 | }; |
| 743 | |
| 744 | sdhc3_cd_pin: sdc3-cd-on-state { |
| 745 | pins = "gpio62"; |
| 746 | function = "gpio"; |
| 747 | |
| 748 | drive-strength = <2>; |
| 749 | bias-disable; |
| 750 | }; |
| 751 | |
| 752 | sdc2_on: sdhc2-on-state { |
| 753 | clk-pins { |
| 754 | pins = "sdc2_clk"; |
| 755 | drive-strength = <6>; |
| 756 | bias-disable; |
| 757 | }; |
| 758 | |
| 759 | cmd-data-pins { |
| 760 | pins = "sdc2_cmd", "sdc2_data"; |
| 761 | drive-strength = <6>; |
| 762 | bias-pull-up; |
| 763 | }; |
| 764 | }; |
| 765 | |
| 766 | i2c_touchkey_pins: i2c-touchkey-state { |
| 767 | pins = "gpio95", "gpio96"; |
| 768 | function = "gpio"; |
| 769 | bias-pull-up; |
| 770 | }; |
| 771 | |
| 772 | i2c_led_gpioex_pins: i2c-led-gpioex-state { |
| 773 | pins = "gpio120", "gpio121"; |
| 774 | function = "gpio"; |
| 775 | bias-pull-down; |
| 776 | }; |
| 777 | |
| 778 | gpioex_pin: gpioex-state { |
| 779 | pins = "gpio145"; |
| 780 | function = "gpio"; |
| 781 | bias-pull-up; |
| 782 | drive-strength = <2>; |
| 783 | }; |
| 784 | |
| 785 | wifi_pin: wifi-state { |
| 786 | pins = "gpio92"; |
| 787 | function = "gpio"; |
| 788 | bias-pull-down; |
| 789 | }; |
| 790 | |
| 791 | panel_te_pin: panel-state { |
| 792 | pins = "gpio12"; |
| 793 | function = "mdp_vsync"; |
| 794 | drive-strength = <2>; |
| 795 | bias-disable; |
| 796 | }; |
| 797 | }; |
| 798 | |
| 799 | &usb { |
| 800 | status = "okay"; |
| 801 | |
| 802 | phys = <&usb_hs1_phy>; |
| 803 | phy-select = <&tcsr 0xb000 0>; |
| 804 | |
| 805 | hnp-disable; |
| 806 | srp-disable; |
| 807 | adp-disable; |
| 808 | }; |
| 809 | |
| 810 | &usb_hs1_phy { |
| 811 | status = "okay"; |
| 812 | |
| 813 | v1p8-supply = <&pma8084_l6>; |
| 814 | v3p3-supply = <&pma8084_l24>; |
| 815 | |
| 816 | qcom,init-seq = /bits/ 8 <0x1 0x64>; |
| 817 | }; |