mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
BCM270X_DT: Add pi3-disable-bt overlay
Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15. To disable
the systemd service that initialises the modem so it doesn't use the UART:
sudo systemctl disable hciuart
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
This commit is contained in:
@@ -39,6 +39,7 @@ dtb-$(RPI_DT_OVERLAYS) += mcp2515-can0-overlay.dtb
|
|||||||
dtb-$(RPI_DT_OVERLAYS) += mcp2515-can1-overlay.dtb
|
dtb-$(RPI_DT_OVERLAYS) += mcp2515-can1-overlay.dtb
|
||||||
dtb-$(RPI_DT_OVERLAYS) += mmc-overlay.dtb
|
dtb-$(RPI_DT_OVERLAYS) += mmc-overlay.dtb
|
||||||
dtb-$(RPI_DT_OVERLAYS) += mz61581-overlay.dtb
|
dtb-$(RPI_DT_OVERLAYS) += mz61581-overlay.dtb
|
||||||
|
dtb-$(RPI_DT_OVERLAYS) += pi3-disable-bt-overlay.dtb
|
||||||
dtb-$(RPI_DT_OVERLAYS) += piscreen-overlay.dtb
|
dtb-$(RPI_DT_OVERLAYS) += piscreen-overlay.dtb
|
||||||
dtb-$(RPI_DT_OVERLAYS) += piscreen2r-overlay.dtb
|
dtb-$(RPI_DT_OVERLAYS) += piscreen2r-overlay.dtb
|
||||||
dtb-$(RPI_DT_OVERLAYS) += pitft28-capacitive-overlay.dtb
|
dtb-$(RPI_DT_OVERLAYS) += pitft28-capacitive-overlay.dtb
|
||||||
|
|||||||
@@ -496,6 +496,14 @@ Params: speed Display SPI bus speed
|
|||||||
[ The pcf8563-rtc overlay has been deleted. See i2c-rtc. ]
|
[ The pcf8563-rtc overlay has been deleted. See i2c-rtc. ]
|
||||||
|
|
||||||
|
|
||||||
|
Name: pi3-disable-bt
|
||||||
|
Info: Disable Pi3 Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15
|
||||||
|
N.B. To disable the systemd service that initialises the modem so it
|
||||||
|
doesn't use the UART, use 'sudo systemctl disable hciuart'.
|
||||||
|
Load: dtoverlay=pi3-disable-bt
|
||||||
|
Params: <None>
|
||||||
|
|
||||||
|
|
||||||
Name: piscreen
|
Name: piscreen
|
||||||
Info: PiScreen display by OzzMaker.com
|
Info: PiScreen display by OzzMaker.com
|
||||||
Load: dtoverlay=piscreen,<param>=<val>
|
Load: dtoverlay=piscreen,<param>=<val>
|
||||||
|
|||||||
48
arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
Normal file
48
arch/arm/boot/dts/overlays/pi3-disable-bt-overlay.dts
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/dts-v1/;
|
||||||
|
/plugin/;
|
||||||
|
|
||||||
|
/* Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15.
|
||||||
|
To disable the systemd service that initialises the modem so it doesn't use
|
||||||
|
the UART:
|
||||||
|
|
||||||
|
sudo systemctl disable hciuart
|
||||||
|
*/
|
||||||
|
|
||||||
|
/{
|
||||||
|
compatible = "brcm,bcm2708";
|
||||||
|
|
||||||
|
fragment@0 {
|
||||||
|
target = <&uart1>;
|
||||||
|
__overlay__ {
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fragment@1 {
|
||||||
|
target = <&uart0>;
|
||||||
|
__overlay__ {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart0_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fragment@2 {
|
||||||
|
target = <&gpio>;
|
||||||
|
__overlay__ {
|
||||||
|
uart0_pins: uart0_pins {
|
||||||
|
brcm,pins = <14 15>;
|
||||||
|
brcm,function = <4>; /* alt0 */
|
||||||
|
brcm,pull = <0 2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fragment@3 {
|
||||||
|
target-path = "/aliases";
|
||||||
|
__overlay__ {
|
||||||
|
serial0 = "/soc/uart@7e201000";
|
||||||
|
serial1 = "/soc/uart@7e215040";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user