0203-pi3-miniuart-bt-overlay-Correct-and-clarify-info.patch 2.0 KB

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