| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
#include "qcom-msm8974.dtsi" |
| 3 |
#include "pm8841.dtsi" |
| 4 |
#include "pm8941.dtsi" |
| 5 |
#include <dt-bindings/input/input.h> |
| 6 |
#include <dt-bindings/leds/common.h> |
| 7 |
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
| 8 |
|
| 9 |
/ { |
| 10 |
model = "LG Nexus 5"; |
| 11 |
compatible = "lge,hammerhead", "qcom,msm8974"; |
| 12 |
chassis-type = "handset"; |
| 13 |
|
| 14 |
aliases { |
| 15 |
mmc0 = &sdhc_1; |
| 16 |
serial0 = &blsp1_uart1; |
| 17 |
serial1 = &blsp2_uart4; |
| 18 |
}; |
| 19 |
|
| 20 |
chosen { |
| 21 |
stdout-path = "serial0:115200n8"; |
| 22 |
}; |
| 23 |
|
| 24 |
gpio-keys { |
| 25 |
compatible = "gpio-keys"; |
| 26 |
|
| 27 |
pinctrl-names = "default"; |
| 28 |
pinctrl-0 = <&gpio_keys_pin_a>; |
| 29 |
|
| 30 |
key-volume-up { |
| 31 |
label = "volume_up"; |
| 32 |
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; |
| 33 |
linux,input-type = <1>; |
| 34 |
linux,code = <KEY_VOLUMEUP>; |
| 35 |
}; |
| 36 |
|
| 37 |
key-volume-down { |
| 38 |
label = "volume_down"; |
| 39 |
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; |
| 40 |
linux,input-type = <1>; |
| 41 |
linux,code = <KEY_VOLUMEDOWN>; |
| 42 |
}; |
| 43 |
}; |
| 44 |
|
| 45 |
clk_pwm: pwm { |
| 46 |
compatible = "clk-pwm"; |
| 47 |
clocks = <&mmcc CAMSS_GP1_CLK>; |
| 48 |
|
| 49 |
pinctrl-0 = <&vibrator_pin>; |
| 50 |
pinctrl-names = "default"; |
| 51 |
|
| 52 |
#pwm-cells = <2>; |
| 53 |
}; |
| 54 |
|
| 55 |
vibrator { |
| 56 |
compatible = "pwm-vibrator"; |
| 57 |
pwms = <&clk_pwm 0 100000>; |
| 58 |
pwm-names = "enable"; |
| 59 |
|
| 60 |
vcc-supply = <&pm8941_l19>; |
| 61 |
enable-gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>; |
| 62 |
}; |
| 63 |
|
| 64 |
vreg_boost: vreg-boost { |
| 65 |
compatible = "regulator-fixed"; |
| 66 |
|
| 67 |
regulator-name = "vreg-boost"; |
| 68 |
regulator-min-microvolt = <3150000>; |
| 69 |
regulator-max-microvolt = <3150000>; |
| 70 |
|
| 71 |
regulator-always-on; |
| 72 |
regulator-boot-on; |
| 73 |
|
| 74 |
gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; |
| 75 |
enable-active-high; |
| 76 |
|
| 77 |
pinctrl-names = "default"; |
| 78 |
pinctrl-0 = <&boost_bypass_n_pin>; |
| 79 |
}; |
| 80 |
|
| 81 |
vreg_vph_pwr: vreg-vph-pwr { |
| 82 |
compatible = "regulator-fixed"; |
| 83 |
regulator-name = "vph-pwr"; |
| 84 |
|
| 85 |
regulator-min-microvolt = <3600000>; |
| 86 |
regulator-max-microvolt = <3600000>; |
| 87 |
|
| 88 |
regulator-always-on; |
| 89 |
}; |
| 90 |
|
| 91 |
vreg_wlan: wlan-regulator { |
| 92 |
compatible = "regulator-fixed"; |
| 93 |
|
| 94 |
regulator-name = "wl-reg"; |
| 95 |
regulator-min-microvolt = <3300000>; |
| 96 |
regulator-max-microvolt = <3300000>; |
| 97 |
|
| 98 |
gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>; |
| 99 |
enable-active-high; |
| 100 |
|
| 101 |
pinctrl-names = "default"; |
| 102 |
pinctrl-0 = <&wlan_regulator_pin>; |
| 103 |
}; |
| 104 |
}; |
| 105 |
|
| 106 |
&blsp1_i2c1 { |
| 107 |
status = "okay"; |
| 108 |
clock-frequency = <100000>; |
| 109 |
|
| 110 |
charger: bq24192@6b { |
| 111 |
compatible = "ti,bq24192"; |
| 112 |
reg = <0x6b>; |
| 113 |
interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>; |
| 114 |
|
| 115 |
omit-battery-class; |
| 116 |
|
| 117 |
usb_otg_vbus: usb-otg-vbus { }; |
| 118 |
}; |
| 119 |
|
| 120 |
fuelgauge: max17048@36 { |
| 121 |
compatible = "maxim,max17048"; |
| 122 |
reg = <0x36>; |
| 123 |
|
| 124 |
maxim,double-soc; |
| 125 |
maxim,rcomp = /bits/ 8 <0x4d>; |
| 126 |
|
| 127 |
interrupt-parent = <&tlmm>; |
| 128 |
interrupts = <9 IRQ_TYPE_LEVEL_LOW>; |
| 129 |
|
| 130 |
pinctrl-names = "default"; |
| 131 |
pinctrl-0 = <&fuelgauge_pin>; |
| 132 |
|
| 133 |
maxim,alert-low-soc-level = <2>; |
| 134 |
}; |
| 135 |
}; |
| 136 |
|
| 137 |
&blsp1_i2c2 { |
| 138 |
status = "okay"; |
| 139 |
clock-frequency = <355000>; |
| 140 |
|
| 141 |
synaptics@70 { |
| 142 |
compatible = "syna,rmi4-i2c"; |
| 143 |
reg = <0x70>; |
| 144 |
|
| 145 |
interrupts-extended = <&tlmm 5 IRQ_TYPE_EDGE_FALLING>; |
| 146 |
vdd-supply = <&pm8941_l22>; |
| 147 |
vio-supply = <&pm8941_lvs3>; |
| 148 |
|
| 149 |
pinctrl-names = "default"; |
| 150 |
pinctrl-0 = <&touch_pin>; |
| 151 |
|
| 152 |
#address-cells = <1>; |
| 153 |
#size-cells = <0>; |
| 154 |
|
| 155 |
rmi4-f01@1 { |
| 156 |
reg = <0x1>; |
| 157 |
syna,nosleep-mode = <1>; |
| 158 |
}; |
| 159 |
|
| 160 |
rmi4-f12@12 { |
| 161 |
reg = <0x12>; |
| 162 |
syna,sensor-type = <1>; |
| 163 |
}; |
| 164 |
}; |
| 165 |
}; |
| 166 |
|
| 167 |
&blsp1_i2c3 { |
| 168 |
status = "okay"; |
| 169 |
clock-frequency = <100000>; |
| 170 |
|
| 171 |
sensor@39 { |
| 172 |
compatible = "avago,apds9930"; |
| 173 |
reg = <0x39>; |
| 174 |
interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>; |
| 175 |
vdd-supply = <&pm8941_l17>; |
| 176 |
vddio-supply = <&pm8941_lvs1>; |
| 177 |
led-max-microamp = <100000>; |
| 178 |
amstaos,proximity-diodes = <0>; |
| 179 |
}; |
| 180 |
}; |
| 181 |
|
| 182 |
&blsp2_i2c5 { |
| 183 |
status = "okay"; |
| 184 |
clock-frequency = <355000>; |
| 185 |
|
| 186 |
backlight: led-controller@38 { |
| 187 |
compatible = "ti,lm3630a"; |
| 188 |
status = "okay"; |
| 189 |
reg = <0x38>; |
| 190 |
|
| 191 |
#address-cells = <1>; |
| 192 |
#size-cells = <0>; |
| 193 |
|
| 194 |
led@0 { |
| 195 |
reg = <0>; |
| 196 |
led-sources = <0 1>; |
| 197 |
label = "lcd-backlight"; |
| 198 |
default-brightness = <200>; |
| 199 |
}; |
| 200 |
}; |
| 201 |
}; |
| 202 |
|
| 203 |
&blsp2_i2c6 { |
| 204 |
status = "okay"; |
| 205 |
clock-frequency = <100000>; |
| 206 |
|
| 207 |
mpu6515@68 { |
| 208 |
compatible = "invensense,mpu6515"; |
| 209 |
reg = <0x68>; |
| 210 |
interrupts-extended = <&tlmm 73 IRQ_TYPE_EDGE_FALLING>; |
| 211 |
vddio-supply = <&pm8941_lvs1>; |
| 212 |
|
| 213 |
pinctrl-names = "default"; |
| 214 |
pinctrl-0 = <&mpu6515_pin>; |
| 215 |
|
| 216 |
mount-matrix = "0", "-1", "0", |
| 217 |
"-1", "0", "0", |
| 218 |
"0", "0", "1"; |
| 219 |
|
| 220 |
i2c-gate { |
| 221 |
#address-cells = <1>; |
| 222 |
#size-cells = <0>; |
| 223 |
ak8963@f { |
| 224 |
compatible = "asahi-kasei,ak8963"; |
| 225 |
reg = <0x0f>; |
| 226 |
gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>; |
| 227 |
vid-supply = <&pm8941_lvs1>; |
| 228 |
vdd-supply = <&pm8941_l17>; |
| 229 |
}; |
| 230 |
|
| 231 |
bmp280@76 { |
| 232 |
compatible = "bosch,bmp280"; |
| 233 |
reg = <0x76>; |
| 234 |
vdda-supply = <&pm8941_lvs1>; |
| 235 |
vddd-supply = <&pm8941_l17>; |
| 236 |
}; |
| 237 |
}; |
| 238 |
}; |
| 239 |
}; |
| 240 |
|
| 241 |
&blsp1_uart1 { |
| 242 |
status = "okay"; |
| 243 |
}; |
| 244 |
|
| 245 |
&blsp2_uart4 { |
| 246 |
status = "okay"; |
| 247 |
|
| 248 |
bluetooth { |
| 249 |
compatible = "brcm,bcm43438-bt"; |
| 250 |
max-speed = <3000000>; |
| 251 |
|
| 252 |
pinctrl-names = "default"; |
| 253 |
pinctrl-0 = <&bt_pin>; |
| 254 |
|
| 255 |
host-wakeup-gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>; |
| 256 |
device-wakeup-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>; |
| 257 |
shutdown-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>; |
| 258 |
}; |
| 259 |
}; |
| 260 |
|
| 261 |
&mdss { |
| 262 |
status = "okay"; |
| 263 |
}; |
| 264 |
|
| 265 |
&mdss_dsi0 { |
| 266 |
status = "okay"; |
| 267 |
|
| 268 |
vdda-supply = <&pm8941_l2>; |
| 269 |
vdd-supply = <&pm8941_lvs3>; |
| 270 |
vddio-supply = <&pm8941_l12>; |
| 271 |
|
| 272 |
panel: panel@0 { |
| 273 |
reg = <0>; |
| 274 |
compatible = "lg,acx467akm-7"; |
| 275 |
|
| 276 |
backlight = <&backlight>; |
| 277 |
|
| 278 |
pinctrl-names = "default"; |
| 279 |
pinctrl-0 = <&panel_pin>; |
| 280 |
|
| 281 |
port { |
| 282 |
panel_in: endpoint { |
| 283 |
remote-endpoint = <&mdss_dsi0_out>; |
| 284 |
}; |
| 285 |
}; |
| 286 |
}; |
| 287 |
}; |
| 288 |
|
| 289 |
&mdss_dsi0_out { |
| 290 |
remote-endpoint = <&panel_in>; |
| 291 |
data-lanes = <0 1 2 3>; |
| 292 |
}; |
| 293 |
|
| 294 |
&mdss_dsi0_phy { |
| 295 |
status = "okay"; |
| 296 |
|
| 297 |
vddio-supply = <&pm8941_l12>; |
| 298 |
}; |
| 299 |
|
| 300 |
&pm8941_gpios { |
| 301 |
gpio_keys_pin_a: gpio-keys-active-state { |
| 302 |
pins = "gpio2", "gpio3"; |
| 303 |
function = "normal"; |
| 304 |
|
| 305 |
bias-pull-up; |
| 306 |
power-source = <PM8941_GPIO_S3>; |
| 307 |
}; |
| 308 |
|
| 309 |
fuelgauge_pin: fuelgauge-int-state { |
| 310 |
pins = "gpio9"; |
| 311 |
function = "normal"; |
| 312 |
|
| 313 |
bias-disable; |
| 314 |
input-enable; |
| 315 |
power-source = <PM8941_GPIO_S3>; |
| 316 |
}; |
| 317 |
|
| 318 |
wlan_sleep_clk_pin: wl-sleep-clk-state { |
| 319 |
pins = "gpio16"; |
| 320 |
function = "func2"; |
| 321 |
|
| 322 |
output-high; |
| 323 |
power-source = <PM8941_GPIO_S3>; |
| 324 |
}; |
| 325 |
|
| 326 |
wlan_regulator_pin: wl-reg-active-state { |
| 327 |
pins = "gpio17"; |
| 328 |
function = "normal"; |
| 329 |
|
| 330 |
bias-disable; |
| 331 |
power-source = <PM8941_GPIO_S3>; |
| 332 |
}; |
| 333 |
|
| 334 |
otg-hog { |
| 335 |
gpio-hog; |
| 336 |
gpios = <35 GPIO_ACTIVE_HIGH>; |
| 337 |
output-high; |
| 338 |
line-name = "otg-gpio"; |
| 339 |
}; |
| 340 |
}; |
| 341 |
|
| 342 |
&pm8941_lpg { |
| 343 |
status = "okay"; |
| 344 |
|
| 345 |
qcom,power-source = <1>; |
| 346 |
|
| 347 |
multi-led { |
| 348 |
color = <LED_COLOR_ID_RGB>; |
| 349 |
function = LED_FUNCTION_STATUS; |
| 350 |
|
| 351 |
#address-cells = <1>; |
| 352 |
#size-cells = <0>; |
| 353 |
|
| 354 |
led@7 { |
| 355 |
reg = <7>; |
| 356 |
color = <LED_COLOR_ID_RED>; |
| 357 |
}; |
| 358 |
|
| 359 |
led@6 { |
| 360 |
reg = <6>; |
| 361 |
color = <LED_COLOR_ID_GREEN>; |
| 362 |
}; |
| 363 |
|
| 364 |
led@5 { |
| 365 |
reg = <5>; |
| 366 |
color = <LED_COLOR_ID_BLUE>; |
| 367 |
}; |
| 368 |
}; |
| 369 |
}; |
| 370 |
|
| 371 |
&remoteproc_adsp { |
| 372 |
status = "okay"; |
| 373 |
}; |
| 374 |
|
| 375 |
&remoteproc_mss { |
| 376 |
mss-supply = <&pm8841_s3>; |
| 377 |
mx-supply = <&pm8841_s1>; |
| 378 |
pll-supply = <&pm8941_l12>; |
| 379 |
status = "okay"; |
| 380 |
}; |
| 381 |
|
| 382 |
&rpm_requests { |
| 383 |
regulators-0 { |
| 384 |
compatible = "qcom,rpm-pm8841-regulators"; |
| 385 |
|
| 386 |
pm8841_s1: s1 { |
| 387 |
regulator-min-microvolt = <675000>; |
| 388 |
regulator-max-microvolt = <1050000>; |
| 389 |
}; |
| 390 |
|
| 391 |
pm8841_s3: s3 { |
| 392 |
regulator-min-microvolt = <1050000>; |
| 393 |
regulator-max-microvolt = <1050000>; |
| 394 |
}; |
| 395 |
}; |
| 396 |
|
| 397 |
regulators-1 { |
| 398 |
compatible = "qcom,rpm-pm8941-regulators"; |
| 399 |
|
| 400 |
vdd_l1_l3-supply = <&pm8941_s1>; |
| 401 |
vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; |
| 402 |
vdd_l4_l11-supply = <&pm8941_s1>; |
| 403 |
vdd_l5_l7-supply = <&pm8941_s2>; |
| 404 |
vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; |
| 405 |
vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>; |
| 406 |
vdd_l9_l10_l17_l22-supply = <&vreg_boost>; |
| 407 |
vdd_l13_l20_l23_l24-supply = <&vreg_boost>; |
| 408 |
vdd_l21-supply = <&vreg_boost>; |
| 409 |
|
| 410 |
pm8941_s1: s1 { |
| 411 |
regulator-min-microvolt = <1300000>; |
| 412 |
regulator-max-microvolt = <1300000>; |
| 413 |
regulator-always-on; |
| 414 |
regulator-boot-on; |
| 415 |
}; |
| 416 |
|
| 417 |
pm8941_s2: s2 { |
| 418 |
regulator-min-microvolt = <2150000>; |
| 419 |
regulator-max-microvolt = <2150000>; |
| 420 |
regulator-boot-on; |
| 421 |
}; |
| 422 |
|
| 423 |
pm8941_s3: s3 { |
| 424 |
regulator-min-microvolt = <1800000>; |
| 425 |
regulator-max-microvolt = <1800000>; |
| 426 |
regulator-always-on; |
| 427 |
regulator-boot-on; |
| 428 |
}; |
| 429 |
|
| 430 |
pm8941_l1: l1 { |
| 431 |
regulator-min-microvolt = <1225000>; |
| 432 |
regulator-max-microvolt = <1225000>; |
| 433 |
regulator-always-on; |
| 434 |
regulator-boot-on; |
| 435 |
}; |
| 436 |
|
| 437 |
pm8941_l2: l2 { |
| 438 |
regulator-min-microvolt = <1200000>; |
| 439 |
regulator-max-microvolt = <1200000>; |
| 440 |
}; |
| 441 |
|
| 442 |
pm8941_l3: l3 { |
| 443 |
regulator-min-microvolt = <1225000>; |
| 444 |
regulator-max-microvolt = <1225000>; |
| 445 |
}; |
| 446 |
|
| 447 |
pm8941_l4: l4 { |
| 448 |
regulator-min-microvolt = <1225000>; |
| 449 |
regulator-max-microvolt = <1225000>; |
| 450 |
}; |
| 451 |
|
| 452 |
pm8941_l5: l5 { |
| 453 |
regulator-min-microvolt = <1800000>; |
| 454 |
regulator-max-microvolt = <1800000>; |
| 455 |
}; |
| 456 |
|
| 457 |
pm8941_l6: l6 { |
| 458 |
regulator-min-microvolt = <1800000>; |
| 459 |
regulator-max-microvolt = <1800000>; |
| 460 |
regulator-boot-on; |
| 461 |
}; |
| 462 |
|
| 463 |
pm8941_l7: l7 { |
| 464 |
regulator-min-microvolt = <1800000>; |
| 465 |
regulator-max-microvolt = <1800000>; |
| 466 |
regulator-boot-on; |
| 467 |
}; |
| 468 |
|
| 469 |
pm8941_l8: l8 { |
| 470 |
regulator-min-microvolt = <1800000>; |
| 471 |
regulator-max-microvolt = <1800000>; |
| 472 |
}; |
| 473 |
|
| 474 |
pm8941_l9: l9 { |
| 475 |
regulator-min-microvolt = <1800000>; |
| 476 |
regulator-max-microvolt = <2950000>; |
| 477 |
}; |
| 478 |
|
| 479 |
pm8941_l10: l10 { |
| 480 |
regulator-min-microvolt = <1800000>; |
| 481 |
regulator-max-microvolt = <2950000>; |
| 482 |
}; |
| 483 |
|
| 484 |
pm8941_l11: l11 { |
| 485 |
regulator-min-microvolt = <1300000>; |
| 486 |
regulator-max-microvolt = <1300000>; |
| 487 |
}; |
| 488 |
|
| 489 |
pm8941_l12: l12 { |
| 490 |
regulator-min-microvolt = <1800000>; |
| 491 |
regulator-max-microvolt = <1800000>; |
| 492 |
regulator-always-on; |
| 493 |
regulator-boot-on; |
| 494 |
}; |
| 495 |
|
| 496 |
pm8941_l13: l13 { |
| 497 |
regulator-min-microvolt = <1800000>; |
| 498 |
regulator-max-microvolt = <2950000>; |
| 499 |
regulator-boot-on; |
| 500 |
}; |
| 501 |
|
| 502 |
pm8941_l14: l14 { |
| 503 |
regulator-min-microvolt = <1800000>; |
| 504 |
regulator-max-microvolt = <1800000>; |
| 505 |
}; |
| 506 |
|
| 507 |
pm8941_l15: l15 { |
| 508 |
regulator-min-microvolt = <2050000>; |
| 509 |
regulator-max-microvolt = <2050000>; |
| 510 |
}; |
| 511 |
|
| 512 |
pm8941_l16: l16 { |
| 513 |
regulator-min-microvolt = <2700000>; |
| 514 |
regulator-max-microvolt = <2700000>; |
| 515 |
}; |
| 516 |
|
| 517 |
pm8941_l17: l17 { |
| 518 |
regulator-min-microvolt = <2850000>; |
| 519 |
regulator-max-microvolt = <2850000>; |
| 520 |
}; |
| 521 |
|
| 522 |
pm8941_l18: l18 { |
| 523 |
regulator-min-microvolt = <2850000>; |
| 524 |
regulator-max-microvolt = <2850000>; |
| 525 |
}; |
| 526 |
|
| 527 |
pm8941_l19: l19 { |
| 528 |
regulator-min-microvolt = <3000000>; |
| 529 |
regulator-max-microvolt = <3300000>; |
| 530 |
}; |
| 531 |
|
| 532 |
pm8941_l20: l20 { |
| 533 |
regulator-min-microvolt = <2950000>; |
| 534 |
regulator-max-microvolt = <2950000>; |
| 535 |
regulator-system-load = <200000>; |
| 536 |
regulator-allow-set-load; |
| 537 |
regulator-boot-on; |
| 538 |
}; |
| 539 |
|
| 540 |
pm8941_l21: l21 { |
| 541 |
regulator-min-microvolt = <2950000>; |
| 542 |
regulator-max-microvolt = <2950000>; |
| 543 |
regulator-boot-on; |
| 544 |
}; |
| 545 |
|
| 546 |
pm8941_l22: l22 { |
| 547 |
regulator-min-microvolt = <3000000>; |
| 548 |
regulator-max-microvolt = <3300000>; |
| 549 |
}; |
| 550 |
|
| 551 |
pm8941_l23: l23 { |
| 552 |
regulator-min-microvolt = <3000000>; |
| 553 |
regulator-max-microvolt = <3000000>; |
| 554 |
}; |
| 555 |
|
| 556 |
pm8941_l24: l24 { |
| 557 |
regulator-min-microvolt = <3075000>; |
| 558 |
regulator-max-microvolt = <3075000>; |
| 559 |
regulator-boot-on; |
| 560 |
}; |
| 561 |
|
| 562 |
pm8941_lvs1: lvs1 {}; |
| 563 |
pm8941_lvs3: lvs3 {}; |
| 564 |
}; |
| 565 |
}; |
| 566 |
|
| 567 |
&sdhc_1 { |
| 568 |
status = "okay"; |
| 569 |
|
| 570 |
vmmc-supply = <&pm8941_l20>; |
| 571 |
vqmmc-supply = <&pm8941_s3>; |
| 572 |
|
| 573 |
pinctrl-names = "default", "sleep"; |
| 574 |
pinctrl-0 = <&sdc1_on>; |
| 575 |
pinctrl-1 = <&sdc1_off>; |
| 576 |
}; |
| 577 |
|
| 578 |
&sdhc_2 { |
| 579 |
status = "okay"; |
| 580 |
|
| 581 |
max-frequency = <100000000>; |
| 582 |
vmmc-supply = <&vreg_wlan>; |
| 583 |
vqmmc-supply = <&pm8941_s3>; |
| 584 |
non-removable; |
| 585 |
|
| 586 |
pinctrl-names = "default", "sleep"; |
| 587 |
pinctrl-0 = <&sdc2_on>; |
| 588 |
pinctrl-1 = <&sdc2_off>; |
| 589 |
|
| 590 |
wifi@1 { |
| 591 |
compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac"; |
| 592 |
reg = <1>; |
| 593 |
|
| 594 |
brcm,drive-strength = <10>; |
| 595 |
|
| 596 |
pinctrl-names = "default"; |
| 597 |
pinctrl-0 = <&wlan_sleep_clk_pin>; |
| 598 |
}; |
| 599 |
}; |
| 600 |
|
| 601 |
&tlmm { |
| 602 |
sdc1_on: sdc1-on-state { |
| 603 |
clk-pins { |
| 604 |
pins = "sdc1_clk"; |
| 605 |
drive-strength = <16>; |
| 606 |
bias-disable; |
| 607 |
}; |
| 608 |
|
| 609 |
cmd-data-pins { |
| 610 |
pins = "sdc1_cmd", "sdc1_data"; |
| 611 |
drive-strength = <10>; |
| 612 |
bias-pull-up; |
| 613 |
}; |
| 614 |
}; |
| 615 |
|
| 616 |
sdc2_on: sdc2-on-state { |
| 617 |
clk-pins { |
| 618 |
pins = "sdc2_clk"; |
| 619 |
drive-strength = <6>; |
| 620 |
bias-disable; |
| 621 |
}; |
| 622 |
|
| 623 |
cmd-data-pins { |
| 624 |
pins = "sdc2_cmd", "sdc2_data"; |
| 625 |
drive-strength = <6>; |
| 626 |
bias-pull-up; |
| 627 |
}; |
| 628 |
}; |
| 629 |
|
| 630 |
mpu6515_pin: mpu6515-state { |
| 631 |
pins = "gpio73"; |
| 632 |
function = "gpio"; |
| 633 |
bias-disable; |
| 634 |
}; |
| 635 |
|
| 636 |
touch_pin: touch-state { |
| 637 |
int-pins { |
| 638 |
pins = "gpio5"; |
| 639 |
function = "gpio"; |
| 640 |
|
| 641 |
drive-strength = <2>; |
| 642 |
bias-disable; |
| 643 |
}; |
| 644 |
|
| 645 |
reset-pins { |
| 646 |
pins = "gpio8"; |
| 647 |
function = "gpio"; |
| 648 |
|
| 649 |
drive-strength = <2>; |
| 650 |
bias-pull-up; |
| 651 |
}; |
| 652 |
}; |
| 653 |
|
| 654 |
panel_pin: panel-state { |
| 655 |
pins = "gpio12"; |
| 656 |
function = "mdp_vsync"; |
| 657 |
drive-strength = <2>; |
| 658 |
bias-disable; |
| 659 |
}; |
| 660 |
|
| 661 |
bt_pin: bt-state { |
| 662 |
hostwake-pins { |
| 663 |
pins = "gpio42"; |
| 664 |
function = "gpio"; |
| 665 |
}; |
| 666 |
|
| 667 |
devwake-pins { |
| 668 |
pins = "gpio62"; |
| 669 |
function = "gpio"; |
| 670 |
}; |
| 671 |
|
| 672 |
shutdown-pins { |
| 673 |
pins = "gpio41"; |
| 674 |
function = "gpio"; |
| 675 |
}; |
| 676 |
}; |
| 677 |
|
| 678 |
vibrator_pin: vibrator-state { |
| 679 |
core-pins { |
| 680 |
pins = "gpio27"; |
| 681 |
function = "gp1_clk"; |
| 682 |
drive-strength = <6>; |
| 683 |
bias-disable; |
| 684 |
}; |
| 685 |
|
| 686 |
enable-pins { |
| 687 |
pins = "gpio60"; |
| 688 |
function = "gpio"; |
| 689 |
drive-strength = <2>; |
| 690 |
bias-disable; |
| 691 |
}; |
| 692 |
}; |
| 693 |
}; |
| 694 |
|
| 695 |
&usb { |
| 696 |
status = "okay"; |
| 697 |
|
| 698 |
phys = <&usb_hs1_phy>; |
| 699 |
phy-select = <&tcsr 0xb000 0>; |
| 700 |
|
| 701 |
extcon = <&charger>, <&usb_id>; |
| 702 |
vbus-supply = <&usb_otg_vbus>; |
| 703 |
|
| 704 |
hnp-disable; |
| 705 |
srp-disable; |
| 706 |
adp-disable; |
| 707 |
}; |
| 708 |
|
| 709 |
&usb_hs1_phy { |
| 710 |
status = "okay"; |
| 711 |
|
| 712 |
v1p8-supply = <&pm8941_l6>; |
| 713 |
v3p3-supply = <&pm8941_l24>; |
| 714 |
|
| 715 |
qcom,init-seq = /bits/ 8 <0x1 0x64>; |
| 716 |
}; |