656b9010d73a95654311509f0f82f14a000b1956
[lede.git] / target / linux / brcm2708 / patches-4.4 / 0204-pi3-miniuart-bt-overlay-Correct-and-clarify-info.patch
1 From b7bbcabcce3f31bca25f17d68fb9eb0e2e045184 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 17 Mar 2016 10:16:16 +0000
4 Subject: [PATCH 204/232] pi3-miniuart-bt-overlay: Correct and clarify info
5
6 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
7 ---
8  arch/arm/boot/dts/overlays/README                      | 6 ++++--
9  arch/arm/boot/dts/overlays/pi3-miniuart-bt-overlay.dts | 6 ++++--
10  2 files changed, 8 insertions(+), 4 deletions(-)
11
12 --- a/arch/arm/boot/dts/overlays/README
13 +++ b/arch/arm/boot/dts/overlays/README
14 @@ -511,8 +511,10 @@ Name:   pi3-miniuart-bt
15  Info:   Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore
16          UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
17          usable baudrate.
18 -        N.B. It is also necessary to edit /lib/systemd/system/hciuart.server
19 -        and replace ttyAMA0 with ttyS0.
20 +        N.B. It is also necessary to edit /lib/systemd/system/hciuart.service
21 +        and replace ttyAMA0 with ttyS0, unless you have a system with udev rules
22 +        that create /dev/serial0 and /dev/serial1, in which case use
23 +        /dev/serial1 instead because it will always be correct.
24  Load:   dtoverlay=pi3-miniuart-bt
25  Params: <None>
26  
27 --- a/arch/arm/boot/dts/overlays/pi3-miniuart-bt-overlay.dts
28 +++ b/arch/arm/boot/dts/overlays/pi3-miniuart-bt-overlay.dts
29 @@ -5,8 +5,10 @@
30     UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
31     usable baudrate.
32  
33 -   It is also necessary to edit /lib/systemd/system/hciuart.server and
34 -   replace ttyAMA0 with ttyS0.
35 +   It is also necessary to edit /lib/systemd/system/hciuart.service and
36 +   replace ttyAMA0 with ttyS0, unless you have a system with udev rules
37 +   that create /dev/serial0 and /dev/serial1, in which case use /dev/serial1
38 +   instead because it will always be correct.
39  
40     If cmdline.txt uses the alias serial0 to refer to the user-accessable port
41     then the firmware will replace with the appropriate port whether or not