Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / disable-bt-overlay.dts
1 /dts-v1/;
2 /plugin/;
3
4 /* Disable Bluetooth and restore UART0/ttyAMA0 over GPIOs 14 & 15.
5    To disable the systemd service that initialises the modem so it doesn't use
6    the UART:
7
8        sudo systemctl disable hciuart
9 */
10
11 #include <dt-bindings/gpio/gpio.h>
12
13 /{
14         compatible = "brcm,bcm2835";
15
16         fragment@0 {
17                 target = <&uart1>;
18                 __overlay__ {
19                         status = "disabled";
20                 };
21         };
22
23         fragment@1 {
24                 target = <&uart0>;
25                 __overlay__ {
26                         pinctrl-names = "default";
27                         pinctrl-0 = <&uart0_pins>;
28                         status = "okay";
29                 };
30         };
31
32         fragment@2 {
33                 target = <&bt>;
34                 __overlay__ {
35                         status = "disabled";
36                 };
37         };
38
39         fragment@3 {
40                 target = <&uart0_pins>;
41                 __overlay__ {
42                         brcm,pins;
43                         brcm,function;
44                         brcm,pull;
45                 };
46         };
47
48         fragment@4 {
49                 target = <&bt_pins>;
50                 __overlay__ {
51                         brcm,pins;
52                         brcm,function;
53                         brcm,pull;
54                 };
55         };
56
57         fragment@5 {
58                 target-path = "/aliases";
59                 __overlay__ {
60                         serial0 = "/soc/serial@7e201000";
61                         serial1 = "/soc/serial@7e215040";
62                 };
63         };
64 };