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