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