ARM: dts: qcom: msm8974-hammerhead: add support for bluetooth
authorJonathan Marek <jonathan@marek.ca>
Wed, 29 Jan 2020 23:20:31 +0000 (18:20 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 12 Feb 2020 06:16:09 +0000 (22:16 -0800)
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>
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts

index 3487daf98e8131adc9895f03c20bac45d5f37242..32b474bfeec32798d3035d2b6ba75d68e20d5565 100644 (file)
@@ -12,6 +12,7 @@
 
        aliases {
                serial0 = &blsp1_uart1;
+               serial1 = &blsp2_uart10;
        };
 
        chosen {
                                bias-disable;
                        };
                };
+
+               bt_pin: bt {
+                       hostwake {
+                               pins = "gpio42";
+                               function = "gpio";
+                       };
+
+                       devwake {
+                               pins = "gpio62";
+                               function = "gpio";
+                       };
+
+                       shutdown {
+                               pins = "gpio41";
+                               function = "gpio";
+                       };
+               };
+
+               blsp2_uart10_pin_a: blsp2-uart10-pin-active {
+                       tx {
+                               pins = "gpio53";
+                               function = "blsp_uart10";
+
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+
+                       rx {
+                               pins = "gpio54";
+                               function = "blsp_uart10";
+
+                               drive-strength = <2>;
+                               bias-pull-up;
+                       };
+
+                       cts {
+                               pins = "gpio55";
+                               function = "blsp_uart10";
+
+                               drive-strength = <2>;
+                               bias-pull-up;
+                       };
+
+                       rts {
+                               pins = "gpio56";
+                               function = "blsp_uart10";
+
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
        };
 
        sdhci@f9824900 {
                };
        };
 
+       serial@f9960000 {
+               status = "ok";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&blsp2_uart10_pin_a>;
+
+               bluetooth {
+                       compatible = "brcm,bcm43438-bt";
+                       max-speed = <3000000>;
+
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&bt_pin>;
+
+                       host-wakeup-gpios = <&msmgpio 42 GPIO_ACTIVE_HIGH>;
+                       device-wakeup-gpios = <&msmgpio 62 GPIO_ACTIVE_HIGH>;
+                       shutdown-gpios = <&msmgpio 41 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
        i2c@f9967000 {
                status = "ok";
                pinctrl-names = "default";