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

ARM: dts: qcom: msm8974: castor: Add Bluetooth-related nodes

Castor has a BCM4339 attached to BLSP2 UART7, add the necessary nodes to
define the uart as well as the serdev BCM.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Julian Weigt <juw@posteo.de>
Link: https://lore.kernel.org/r/20210723202101.65371-2-juw@posteo.de
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

+81
+81
arch/arm/boot/dts/qcom-msm8974-sony-xperia-castor.dts
··· 11 11 12 12 aliases { 13 13 serial0 = &blsp1_uart2; 14 + serial1 = &blsp2_uart7; 14 15 }; 15 16 16 17 chosen { ··· 337 336 pinctrl-0 = <&blsp1_uart2_pin_a>; 338 337 }; 339 338 339 + serial@f995d000 { 340 + status = "ok"; 341 + 342 + pinctrl-names = "default"; 343 + pinctrl-0 = <&blsp2_uart7_pin_a>; 344 + 345 + bluetooth { 346 + compatible = "brcm,bcm43438-bt"; 347 + max-speed = <3000000>; 348 + 349 + pinctrl-names = "default"; 350 + pinctrl-0 = <&bt_host_wake_pin>, 351 + <&bt_dev_wake_pin>, 352 + <&bt_reg_on_pin>; 353 + 354 + host-wakeup-gpios = <&msmgpio 95 GPIO_ACTIVE_HIGH>; 355 + device-wakeup-gpios = <&msmgpio 96 GPIO_ACTIVE_HIGH>; 356 + shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>; 357 + }; 358 + }; 359 + 340 360 usb@f9a55000 { 341 361 status = "okay"; 342 362 ··· 398 376 function = "blsp_uart2"; 399 377 400 378 drive-strength = <4>; 379 + bias-disable; 380 + }; 381 + }; 382 + 383 + blsp2_uart7_pin_a: blsp2-uart7-pin-active { 384 + tx { 385 + pins = "gpio41"; 386 + function = "blsp_uart7"; 387 + 388 + drive-strength = <2>; 389 + bias-disable; 390 + }; 391 + 392 + rx { 393 + pins = "gpio42"; 394 + function = "blsp_uart7"; 395 + 396 + drive-strength = <2>; 397 + bias-pull-up; 398 + }; 399 + 400 + cts { 401 + pins = "gpio43"; 402 + function = "blsp_uart7"; 403 + 404 + drive-strength = <2>; 405 + bias-pull-up; 406 + }; 407 + 408 + rts { 409 + pins = "gpio44"; 410 + function = "blsp_uart7"; 411 + 412 + drive-strength = <2>; 401 413 bias-disable; 402 414 }; 403 415 }; ··· 534 478 bias-disable; 535 479 input-enable; 536 480 }; 481 + }; 482 + 483 + bt_host_wake_pin: bt-host-wake { 484 + pins = "gpio95"; 485 + function = "gpio"; 486 + 487 + drive-strength = <2>; 488 + bias-disable; 489 + output-low; 490 + }; 491 + 492 + bt_dev_wake_pin: bt-dev-wake { 493 + pins = "gpio96"; 494 + function = "gpio"; 495 + 496 + drive-strength = <2>; 497 + bias-disable; 537 498 }; 538 499 }; 539 500 ··· 676 603 function = "normal"; 677 604 678 605 bias-pull-up; 606 + power-source = <PM8941_GPIO_S3>; 607 + }; 608 + 609 + bt_reg_on_pin: bt-reg-on { 610 + pins = "gpio16"; 611 + function = "normal"; 612 + 613 + output-low; 679 614 power-source = <PM8941_GPIO_S3>; 680 615 }; 681 616