]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: bcm2835-rpi-zero-w: Add bcm43438 serial slave
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 25 Feb 2018 14:10:54 +0000 (15:10 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 26 Feb 2018 23:00:18 +0000 (15:00 -0800)
Add BCM43438 (bluetooth) as a serdev slave device of uart0 (pl011/ttyAMA0).
This allows to automatically insert the bcm43438 to the bluetooth
subsystem instead of relying on patched userspace helpers (hciattach).

In order to keep a debug UART we need to switch to uart1.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/bcm2835-rpi-zero-w.dts

index b8565fc33eea6bc18b88ab72cf8774b15f3c678d..99fe7065ab964cc49f6a94ad97ed4d81bf7f8e0d 100644 (file)
@@ -131,6 +131,18 @@ brcmf: wifi@1 {
 
 &uart0 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart0_gpio14>;
+       pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
+       status = "okay";
+
+       bluetooth {
+               compatible = "brcm,bcm43438-bt";
+               max-speed = <2000000>;
+               shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
+       };
+};
+
+&uart1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart1_gpio14>;
        status = "okay";
 };