0375-Implement-a-wakeup-source-option-for-the-i2c-rtc-Dev.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 5286423195daead727d1a76c9b16d75d7d34e915 Mon Sep 17 00:00:00 2001
  2. From: Nicolas Boullis <nboullis@debian.org>
  3. Date: Sat, 4 Jun 2016 00:57:06 +0200
  4. Subject: [PATCH 375/381] Implement a "wakeup-source" option for the i2c-rtc
  5. DeviceTree overlay.
  6. See: https://github.com/raspberrypi/linux/pull/1511
  7. ---
  8. arch/arm/boot/dts/overlays/README | 3 +++
  9. arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 4 ++++
  10. 2 files changed, 7 insertions(+)
  11. --- a/arch/arm/boot/dts/overlays/README
  12. +++ b/arch/arm/boot/dts/overlays/README
  13. @@ -445,6 +445,9 @@ Params: ds1307 Select t
  14. trickle-resistor-ohms Resistor value for trickle charge (DS1339-only)
  15. + wakeup-source Specify that the RTC can be used as a wakeup
  16. + source
  17. +
  18. Name: i2c0-bcm2708
  19. Info: Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
  20. --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
  21. +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
  22. @@ -65,5 +65,9 @@
  23. pcf8523 = <&pcf8523>,"status";
  24. pcf8563 = <&pcf8563>,"status";
  25. trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0";
  26. + wakeup-source = <&ds1339>,"wakeup-source?",
  27. + <&ds3231>,"wakeup-source?",
  28. + <&mcp7940x>,"wakeup-source?",
  29. + <&mcp7941x>,"wakeup-source?";
  30. };
  31. };