overlays: i2c-rtc: Add the Dallas DS1340
authorPhil Elwell <phil@raspberrypi.com>
Fri, 26 Feb 2021 14:19:00 +0000 (14:19 +0000)
committerPhil Elwell <phil@raspberrypi.com>
Fri, 26 Feb 2021 14:19:00 +0000 (14:19 +0000)
See: https://github.com/raspberrypi/linux/issues/4180

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts

index c062102..97adda3 100644 (file)
@@ -1311,6 +1311,8 @@ Params: abx80x                  Select one of the ABx80x family:
 
         ds1339                  Select the DS1339 device
 
+        ds1340                  Select the DS1340 device
+
         ds3231                  Select the DS3231 device
 
         m41t62                  Select the M41T62 device
index 759f532..408b71e 100644 (file)
                };
        };
 
+       fragment@17 {
+               target = <&i2cbus>;
+               __dormant__ {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       ds1340: ds1340@68 {
+                               compatible = "dallas,ds1340";
+                               trickle-resistor-ohms = <0>;
+                               reg = <0x68>;
+                       };
+               };
+       };
+
        frag100: fragment@100 {
                target = <&i2c_arm>;
                i2cbus: __overlay__ {
                abx80x = <0>,"+0";
                ds1307 = <0>,"+1";
                ds1339 = <0>,"+2";
+               ds1340 = <0>,"+17";
                ds3231 = <0>,"+3";
                mcp7940x = <0>,"+4";
                mcp7941x = <0>,"+5";
                trickle-diode-type = <&abx80x>,"abracon,tc-diode",
                                     <&rv1805>,"abracon,tc-diode";
                trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
+                                       <&ds1340>,"trickle-resistor-ohms:0",
                                        <&abx80x>,"abracon,tc-resistor:0",
                                        <&rv3028>,"trickle-resistor-ohms:0",
                                        <&rv1805>,"abracon,tc-resistor:0";