0567-BCM270X_DT-Add-pi3-disable-wifi-overlay.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From 2abc666d62828bbc2889f31ebfb3754a55a51fb9 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Wed, 11 Jan 2017 13:01:21 +0000
  4. Subject: [PATCH] BCM270X_DT: Add pi3-disable-wifi overlay
  5. pi3-disable-wifi is a minimal overlay to disable the onboard WiFi.
  6. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  7. ---
  8. arch/arm/boot/dts/overlays/Makefile | 1 +
  9. arch/arm/boot/dts/overlays/README | 6 ++++++
  10. arch/arm/boot/dts/overlays/pi3-disable-wifi-overlay.dts | 13 +++++++++++++
  11. 3 files changed, 20 insertions(+)
  12. create mode 100644 arch/arm/boot/dts/overlays/pi3-disable-wifi-overlay.dts
  13. --- a/arch/arm/boot/dts/overlays/Makefile
  14. +++ b/arch/arm/boot/dts/overlays/Makefile
  15. @@ -61,6 +61,7 @@ dtbo-$(RPI_DT_OVERLAYS) += mmc.dtbo
  16. dtbo-$(RPI_DT_OVERLAYS) += mz61581.dtbo
  17. dtbo-$(RPI_DT_OVERLAYS) += pi3-act-led.dtbo
  18. dtbo-$(RPI_DT_OVERLAYS) += pi3-disable-bt.dtbo
  19. +dtbo-$(RPI_DT_OVERLAYS) += pi3-disable-wifi.dtbo
  20. dtbo-$(RPI_DT_OVERLAYS) += pi3-miniuart-bt.dtbo
  21. dtbo-$(RPI_DT_OVERLAYS) += piscreen.dtbo
  22. dtbo-$(RPI_DT_OVERLAYS) += piscreen2r.dtbo
  23. --- a/arch/arm/boot/dts/overlays/README
  24. +++ b/arch/arm/boot/dts/overlays/README
  25. @@ -793,6 +793,12 @@ Load: dtoverlay=pi3-disable-bt
  26. Params: <None>
  27. +Name: pi3-disable-wifi
  28. +Info: Disable Pi3 onboard WiFi
  29. +Load: dtoverlay=pi3-disable-wifi
  30. +Params: <None>
  31. +
  32. +
  33. Name: pi3-miniuart-bt
  34. Info: Switch Pi3 Bluetooth function to use the mini-UART (ttyS0) and restore
  35. UART0/ttyAMA0 over GPIOs 14 & 15. Note that this may reduce the maximum
  36. --- /dev/null
  37. +++ b/arch/arm/boot/dts/overlays/pi3-disable-wifi-overlay.dts
  38. @@ -0,0 +1,13 @@
  39. +/dts-v1/;
  40. +/plugin/;
  41. +
  42. +/{
  43. + compatible = "brcm,bcm2708";
  44. +
  45. + fragment@0 {
  46. + target = <&mmc>;
  47. + __overlay__ {
  48. + status = "disabled";
  49. + };
  50. + };
  51. +};