0188-BCM270X_DT-Build-and-document-the-wittypi-overlay.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From 1bf20e7041a933386fb59eee85fbdeed19114f3e Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Tue, 15 Mar 2016 16:41:37 +0000
  4. Subject: [PATCH] BCM270X_DT: Build and document the wittypi overlay
  5. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  6. ---
  7. arch/arm/boot/dts/overlays/Makefile | 1 +
  8. arch/arm/boot/dts/overlays/README | 8 ++++++++
  9. arch/arm/boot/dts/overlays/wittypi-overlay.dts | 2 +-
  10. 3 files changed, 10 insertions(+), 1 deletion(-)
  11. --- a/arch/arm/boot/dts/overlays/Makefile
  12. +++ b/arch/arm/boot/dts/overlays/Makefile
  13. @@ -74,6 +74,7 @@ dtbo-$(RPI_DT_OVERLAYS) += vc4-kms-v3d.d
  14. dtbo-$(RPI_DT_OVERLAYS) += vga666.dtbo
  15. dtbo-$(RPI_DT_OVERLAYS) += w1-gpio.dtbo
  16. dtbo-$(RPI_DT_OVERLAYS) += w1-gpio-pullup.dtbo
  17. +dtbo-$(RPI_DT_OVERLAYS) += wittypi.dtbo
  18. targets += dtbs dtbs_install
  19. targets += $(dtbo-y)
  20. --- a/arch/arm/boot/dts/overlays/README
  21. +++ b/arch/arm/boot/dts/overlays/README
  22. @@ -920,6 +920,14 @@ Params: gpiopin GPIO for
  23. extpullup GPIO for external pullup (default "5")
  24. +Name: wittypi
  25. +Info: Configures the wittypi RTC module.
  26. +Load: dtoverlay=wittypi,<param>=<val>
  27. +Params: led_gpio GPIO for LED (default "17")
  28. + led_trigger Choose which activity the LED tracks (default
  29. + "default-on")
  30. +
  31. +
  32. Troubleshooting
  33. ===============
  34. --- a/arch/arm/boot/dts/overlays/wittypi-overlay.dts
  35. +++ b/arch/arm/boot/dts/overlays/wittypi-overlay.dts
  36. @@ -37,7 +37,7 @@
  37. };
  38. __overrides__ {
  39. - led_gpio = <&wittypi_led>,"gpios:4";
  40. + led_gpio = <&wittypi_led>,"gpios:4";
  41. led_trigger = <&wittypi_led>,"linux,default-trigger";
  42. };