overlays: Add TI BQ32000 RTC support
authorPhil Elwell <phil@raspberrypi.com>
Mon, 16 Aug 2021 10:11:35 +0000 (11:11 +0100)
committerPhil Elwell <phil@raspberrypi.com>
Mon, 16 Aug 2021 10:11:35 +0000 (11:11 +0100)
See: https://github.com/raspberrypi/linux/issues/4531

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

index 57d5c2f45c5081851fc23b1fed0c04ac64b3cb39..708ebaac9c927d35c09d2e031248f2f54e29bc6a 100644 (file)
@@ -1390,6 +1390,8 @@ Params: abx80x                  Select one of the ABx80x family:
                                   AB0801, AB0803, AB0804, AB0805,
                                   AB1801, AB1803, AB1804, AB1805
 
+        bq32000                 Select the TI BQ32000 device
+
         ds1307                  Select the DS1307 device
 
         ds1339                  Select the DS1339 device
@@ -1434,6 +1436,9 @@ Params: abx80x                  Select one of the ABx80x family:
                                 device must be configured to use the specified
                                 address.
 
+        trickle-diode-disable   Do not use the internal trickle charger diode
+                                (BQ32000 only)
+
         trickle-diode-type      Diode type for trickle charge - "standard" or
                                 "schottky" (ABx80x and RV1805 only)
 
@@ -1455,6 +1460,8 @@ Params: abx80x                  Select one of the ABx80x family:
                                   AB0801, AB0803, AB0804, AB0805,
                                   AB1801, AB1803, AB1804, AB1805
 
+        bq32000                 Select the TI BQ32000 device
+
         ds1307                  Select the DS1307 device
 
         ds1339                  Select the DS1339 device
@@ -1495,6 +1502,9 @@ Params: abx80x                  Select one of the ABx80x family:
                                 device must be configured to use the specified
                                 address.
 
+        trickle-diode-disable   Do not use the internal trickle charger diode
+                                (BQ32000 only)
+
         trickle-diode-type      Diode type for trickle charge - "standard" or
                                 "schottky" (ABx80x and RV1805 only)
 
index f51981aafda861028344df3256fbc07dd4f8962b..7f749fc2d80233cb03f0389ea22a767a90c319be 100644 (file)
                };
        };
 
+       fragment@19 {
+               target = <&i2cbus>;
+               __dormant__ {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       bq32000: bq32000@68 {
+                               compatible = "ti,bq32000";
+                               trickle-resistor-ohms = <0>;
+                               reg = <0x68>;
+                       };
+               };
+       };
+
+
        __overrides__ {
                abx80x = <0>,"+0";
                ds1307 = <0>,"+1";
                pcf85063 = <0>,"+15";
                pcf85063a = <0>,"+16";
                s35390a = <0>,"+18";
+               bq32000 = <0>,"+19";
 
                addr = <&abx80x>, "reg:0",
                       <&ds1307>, "reg:0",
                       <&m41t62>, "reg:0",
                       <&rv1805>, "reg:0",
                       <&s35390a>, "reg:0";
+               trickle-diode-disable = <&bq32000>,"trickle-diode-disable?";
                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";
+                                       <&rv1805>,"abracon,tc-resistor:0",
+                                       <&bq32000>,"abracon,tc-resistor:0";
                backup-switchover-mode = <&rv3028>,"backup-switchover-mode:0";
                wakeup-source = <&ds1339>,"wakeup-source?",
                                <&ds3231>,"wakeup-source?",