1 From 67dd8e4c8ccf5d331960c7e936e5b03a9f92496d Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 28 Mar 2019 13:26:59 +0000
4 Subject: [PATCH] overlays: Add rv3028 to i2c-rtc
6 See: https://github.com/raspberrypi/linux/issues/2912
8 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 arch/arm/boot/dts/overlays/README | 4 +++-
11 .../arm/boot/dts/overlays/i2c-rtc-overlay.dts | 19 ++++++++++++++++++-
12 2 files changed, 21 insertions(+), 2 deletions(-)
14 --- a/arch/arm/boot/dts/overlays/README
15 +++ b/arch/arm/boot/dts/overlays/README
16 @@ -939,6 +939,8 @@ Params: abx80x Select o
18 pcf8563 Select the PCF8563 device
20 + rv3028 Select the Micro Crystal RV3028 device
22 addr Sets the address for the RTC. Note that the
23 device must be configured to use the specified
25 @@ -947,7 +949,7 @@ Params: abx80x Select o
26 "schottky" (ABx80x only)
28 trickle-resistor-ohms Resistor value for trickle charge (DS1339,
32 wakeup-source Specify that the RTC can be used as a wakeup
34 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
35 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
41 + target = <&i2c_arm>;
43 + #address-cells = <1>;
48 + compatible = "microcrystal,rv3028";
64 addr = <&abx80x>, "reg:0",
68 trickle-diode-type = <&abx80x>,"abracon,tc-diode";
69 trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
70 - <&abx80x>,"abracon,tc-resistor";
71 + <&abx80x>,"abracon,tc-resistor",
72 + <&rv3028>,"trickle-resistor-ohms:0";
73 wakeup-source = <&ds1339>,"wakeup-source?",
74 <&ds3231>,"wakeup-source?",
75 <&mcp7940x>,"wakeup-source?",