0436-overlays-Add-assert_falling_edge-to-pps-gpio-overlay.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From c430f79020084981d8cfeaee85caa1ee243919b6 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Tue, 9 Aug 2016 21:51:41 +0100
  4. Subject: [PATCH] overlays: Add assert_falling_edge to pps-gpio overlay
  5. See: https://github.com/raspberrypi/linux/issues/1590
  6. ---
  7. arch/arm/boot/dts/overlays/README | 2 ++
  8. arch/arm/boot/dts/overlays/pps-gpio-overlay.dts | 1 +
  9. 2 files changed, 3 insertions(+)
  10. --- a/arch/arm/boot/dts/overlays/README
  11. +++ b/arch/arm/boot/dts/overlays/README
  12. @@ -797,6 +797,8 @@ Name: pps-gpio
  13. Info: Configures the pps-gpio (pulse-per-second time signal via GPIO).
  14. Load: dtoverlay=pps-gpio,<param>=<val>
  15. Params: gpiopin Input GPIO (default "18")
  16. + assert_falling_edge When present, assert is indicated by a falling
  17. + edge, rather than by a rising edge
  18. Name: pwm
  19. --- a/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
  20. +++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
  21. @@ -30,5 +30,6 @@
  22. __overrides__ {
  23. gpiopin = <&pps>,"gpios:4",
  24. <&pps_pins>,"brcm,pins:0";
  25. + assert_falling_edge = <&pps>,"assert-falling-edge?";
  26. };
  27. };