1 From fd478b369992e56665de3aabf0e19e24b5fa5e43 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 26 Feb 2021 14:19:00 +0000
4 Subject: [PATCH] overlays: i2c-rtc: Add the Dallas DS1340
6 See: https://github.com/raspberrypi/linux/issues/4180
8 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 arch/arm/boot/dts/overlays/README | 2 ++
11 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 16 ++++++++++++++++
12 2 files changed, 18 insertions(+)
14 --- a/arch/arm/boot/dts/overlays/README
15 +++ b/arch/arm/boot/dts/overlays/README
16 @@ -1311,6 +1311,8 @@ Params: abx80x Select o
18 ds1339 Select the DS1339 device
20 + ds1340 Select the DS1340 device
22 ds3231 Select the DS3231 device
24 m41t62 Select the M41T62 device
25 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
26 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
34 + #address-cells = <1>;
38 + compatible = "dallas,ds1340";
39 + trickle-resistor-ohms = <0>;
45 frag100: fragment@100 {
57 trickle-diode-type = <&abx80x>,"abracon,tc-diode",
58 <&rv1805>,"abracon,tc-diode";
59 trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
60 + <&ds1340>,"trickle-resistor-ohms:0",
61 <&abx80x>,"abracon,tc-resistor:0",
62 <&rv3028>,"trickle-resistor-ohms:0",
63 <&rv1805>,"abracon,tc-resistor:0";