0149-BCM270X_DT-at86rf233-overlay-drop-to-3MHz.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 8c1a913881a9805fce189f382f929beeb8ea2a50 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Thu, 18 Feb 2016 15:28:14 +0000
  4. Subject: [PATCH] BCM270X_DT: at86rf233 overlay - drop to 3MHz
  5. The consensus is that 6MHz is too fast, but that 3MHz is OK.
  6. See: https://github.com/raspberrypi/linux/issues/1294
  7. https://github.com/raspberrypi/linux/issues/1151
  8. ---
  9. arch/arm/boot/dts/overlays/README | 2 +-
  10. arch/arm/boot/dts/overlays/at86rf233-overlay.dts | 2 +-
  11. 2 files changed, 2 insertions(+), 2 deletions(-)
  12. --- a/arch/arm/boot/dts/overlays/README
  13. +++ b/arch/arm/boot/dts/overlays/README
  14. @@ -188,7 +188,7 @@ Load: dtoverlay=at86rf233,<param>=<val
  15. Params: interrupt GPIO used for INT (default 23)
  16. reset GPIO used for Reset (default 24)
  17. sleep GPIO used for Sleep (default 25)
  18. - speed SPI bus speed in Hz (default 6000000)
  19. + speed SPI bus speed in Hz (default 3000000)
  20. trim Fine tuning of the internal capacitance
  21. arrays (0=+0pF, 15=+4.5pF, default 15)
  22. --- a/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
  23. +++ b/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
  24. @@ -25,7 +25,7 @@
  25. interrupts = <23 4>; /* active high */
  26. reset-gpio = <&gpio 24 1>;
  27. sleep-gpio = <&gpio 25 1>;
  28. - spi-max-frequency = <6000000>;
  29. + spi-max-frequency = <3000000>;
  30. xtal-trim = /bits/ 8 <0xf>;
  31. };
  32. };