Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: msm8974-hammerhead: add support for bluetooth

Add support for the bluetooth found on the Nexus 5 phone.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
[masneyb@onstation.org: formatting cleanups; remove sleep clock; patch
extracted from much larger out of tree patch.]
Signed-off-by: Brian Masney <masneyb@onstation.org>
Link: https://lore.kernel.org/r/20200129232031.34538-4-masneyb@onstation.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Jonathan Marek and committed by
Bjorn Andersson
231cb93c 726a1176

+71
+71
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
··· 12 12 13 13 aliases { 14 14 serial0 = &blsp1_uart1; 15 + serial1 = &blsp2_uart10; 15 16 }; 16 17 17 18 chosen { ··· 356 355 bias-disable; 357 356 }; 358 357 }; 358 + 359 + bt_pin: bt { 360 + hostwake { 361 + pins = "gpio42"; 362 + function = "gpio"; 363 + }; 364 + 365 + devwake { 366 + pins = "gpio62"; 367 + function = "gpio"; 368 + }; 369 + 370 + shutdown { 371 + pins = "gpio41"; 372 + function = "gpio"; 373 + }; 374 + }; 375 + 376 + blsp2_uart10_pin_a: blsp2-uart10-pin-active { 377 + tx { 378 + pins = "gpio53"; 379 + function = "blsp_uart10"; 380 + 381 + drive-strength = <2>; 382 + bias-disable; 383 + }; 384 + 385 + rx { 386 + pins = "gpio54"; 387 + function = "blsp_uart10"; 388 + 389 + drive-strength = <2>; 390 + bias-pull-up; 391 + }; 392 + 393 + cts { 394 + pins = "gpio55"; 395 + function = "blsp_uart10"; 396 + 397 + drive-strength = <2>; 398 + bias-pull-up; 399 + }; 400 + 401 + rts { 402 + pins = "gpio56"; 403 + function = "blsp_uart10"; 404 + 405 + drive-strength = <2>; 406 + bias-disable; 407 + }; 408 + }; 359 409 }; 360 410 361 411 sdhci@f9824900 { ··· 467 415 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; 468 416 linux,input-type = <1>; 469 417 linux,code = <KEY_VOLUMEDOWN>; 418 + }; 419 + }; 420 + 421 + serial@f9960000 { 422 + status = "ok"; 423 + 424 + pinctrl-names = "default"; 425 + pinctrl-0 = <&blsp2_uart10_pin_a>; 426 + 427 + bluetooth { 428 + compatible = "brcm,bcm43438-bt"; 429 + max-speed = <3000000>; 430 + 431 + pinctrl-names = "default"; 432 + pinctrl-0 = <&bt_pin>; 433 + 434 + host-wakeup-gpios = <&msmgpio 42 GPIO_ACTIVE_HIGH>; 435 + device-wakeup-gpios = <&msmgpio 62 GPIO_ACTIVE_HIGH>; 436 + shutdown-gpios = <&msmgpio 41 GPIO_ACTIVE_HIGH>; 470 437 }; 471 438 }; 472 439