769f2461a0acd80b5224be56e940251735e73322
[openwrt/staging/ldir.git] /
1 From a2fdc7a590566d99d5261badeecb644664ff0fb3 Mon Sep 17 00:00:00 2001
2 From: Phil Howard <phil@gadgetoid.com>
3 Date: Fri, 29 Mar 2019 10:59:55 +0000
4 Subject: [PATCH] overlays: Add rv3028 backup switchover support to
5 i2c-rtc
6
7 Signed-off-by: Phil Howard <phil@pimoroni.com>
8 ---
9 arch/arm/boot/dts/overlays/README | 3 +++
10 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 1 +
11 2 files changed, 4 insertions(+)
12
13 --- a/arch/arm/boot/dts/overlays/README
14 +++ b/arch/arm/boot/dts/overlays/README
15 @@ -1013,6 +1013,9 @@ Params: abx80x Select o
16 wakeup-source Specify that the RTC can be used as a wakeup
17 source
18
19 + backup-switchover-mode Backup power supply switch mode. Must be 0 for
20 + off or 1 for Vdd < VBackup (RV3028 only)
21 +
22
23 Name: i2c-rtc-gpio
24 Info: Adds support for a number of I2C Real Time Clock devices
25 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
26 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
27 @@ -200,6 +200,7 @@
28 trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
29 <&abx80x>,"abracon,tc-resistor",
30 <&rv3028>,"trickle-resistor-ohms:0";
31 + backup-switchover-mode = <&rv3028>,"backup-switchover-mode:0";
32 wakeup-source = <&ds1339>,"wakeup-source?",
33 <&ds3231>,"wakeup-source?",
34 <&mcp7940x>,"wakeup-source?",