1 From 21d5e5f19ba17eab204a1a2f77370892ebec4de9 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 2 Mar 2016 10:59:05 +0000
4 Subject: [PATCH] BCM270X_DT: Add pi3-disable-bt overlay
6 Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15. To disable
7 the systemd service that initialises the modem so it doesn't use the UART:
9 sudo systemctl disable hciuart
11 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
13 arch/arm/boot/dts/overlays/Makefile | 1 +
14 arch/arm/boot/dts/overlays/README | 8 ++++
15 .../boot/dts/overlays/pi3-disable-bt-overlay.dts | 48 ++++++++++++++++++++++
16 3 files changed, 57 insertions(+)
17 create mode 100644 arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
19 --- a/arch/arm/boot/dts/overlays/Makefile
20 +++ b/arch/arm/boot/dts/overlays/Makefile
21 @@ -39,6 +39,7 @@ dtb-$(RPI_DT_OVERLAYS) += mcp2515-can0-o
22 dtb-$(RPI_DT_OVERLAYS) += mcp2515-can1-overlay.dtb
23 dtb-$(RPI_DT_OVERLAYS) += mmc-overlay.dtb
24 dtb-$(RPI_DT_OVERLAYS) += mz61581-overlay.dtb
25 +dtb-$(RPI_DT_OVERLAYS) += pi3-disable-bt-overlay.dtb
26 dtb-$(RPI_DT_OVERLAYS) += piscreen-overlay.dtb
27 dtb-$(RPI_DT_OVERLAYS) += piscreen2r-overlay.dtb
28 dtb-$(RPI_DT_OVERLAYS) += pitft28-capacitive-overlay.dtb
29 --- a/arch/arm/boot/dts/overlays/README
30 +++ b/arch/arm/boot/dts/overlays/README
31 @@ -496,6 +496,14 @@ Params: speed Display
32 [ The pcf8563-rtc overlay has been deleted. See i2c-rtc. ]
36 +Info: Disable Pi3 Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15
37 + N.B. To disable the systemd service that initialises the modem so it
38 + doesn't use the UART, use 'sudo systemctl disable hciuart'.
39 +Load: dtoverlay=pi3-disable-bt
44 Info: PiScreen display by OzzMaker.com
45 Load: dtoverlay=piscreen,<param>=<val>
47 +++ b/arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
52 +/* Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15.
53 + To disable the systemd service that initialises the modem so it doesn't use
56 + sudo systemctl disable hciuart
60 + compatible = "brcm,bcm2708";
65 + status = "disabled";
72 + pinctrl-names = "default";
73 + pinctrl-0 = <&uart0_pins>;
81 + uart0_pins: uart0_pins {
82 + brcm,pins = <14 15>;
83 + brcm,function = <4>; /* alt0 */
90 + target-path = "/aliases";
92 + serial0 = "/soc/uart@7e201000";
93 + serial1 = "/soc/uart@7e215040";