Skip to content

Commit 3182234

Browse files
committed
overlays: Add trickle-voltage-mv parameter to RTCs
The RV3032 RTC requires an additional DT property to enable trickle charging. Add a parameter - trickle-voltage-mv - to the i2c-rtc and i2c-rtc-gpio overlays to set it. See: #5547 Signed-off-by: Phil Elwell <[email protected]>
1 parent 992f4fa commit 3182234

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,13 +1957,15 @@ Params: abx80x Select one of the ABx80x family:
19571957
"schottky" (ABx80x and RV1805 only)
19581958

19591959
trickle-resistor-ohms Resistor value for trickle charge (DS1339,
1960-
ABx80x, RV1805, RV3028)
1960+
ABx80x, BQ32000, RV1805, RV3028, RV3032)
1961+
1962+
trickle-voltage-mv Charge pump voltage for trickle charge (RV3032)
19611963

19621964
wakeup-source Specify that the RTC can be used as a wakeup
19631965
source
19641966

19651967
backup-switchover-mode Backup power supply switch mode. Must be 0 for
1966-
off or 1 for Vdd < VBackup (RV3028 only)
1968+
off or 1 for Vdd < VBackup (RV3028, RV3032)
19671969

19681970

19691971
Name: i2c-rtc-gpio
@@ -2027,13 +2029,15 @@ Params: abx80x Select one of the ABx80x family:
20272029
"schottky" (ABx80x and RV1805 only)
20282030

20292031
trickle-resistor-ohms Resistor value for trickle charge (DS1339,
2030-
ABx80x, RV1805, RV3028)
2032+
ABx80x, BQ32000, RV1805, RV3028, RV3032)
2033+
2034+
trickle-voltage-mv Charge pump voltage for trickle charge (RV3032)
20312035

20322036
wakeup-source Specify that the RTC can be used as a wakeup
20332037
source
20342038

20352039
backup-switchover-mode Backup power supply switch mode. Must be 0 for
2036-
off or 1 for Vdd < VBackup (RV3028 only)
2040+
off or 1 for Vdd < VBackup (RV3028, RV3032)
20372041

20382042
i2c_gpio_sda GPIO used for I2C data (default "23")
20392043

arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,10 @@
339339
<&ds1340>,"trickle-resistor-ohms:0",
340340
<&abx80x>,"abracon,tc-resistor:0",
341341
<&rv3028>,"trickle-resistor-ohms:0",
342+
<&rv3032>,"trickle-resistor-ohms:0",
342343
<&rv1805>,"abracon,tc-resistor:0",
343344
<&bq32000>,"abracon,tc-resistor:0";
345+
trickle-voltage-mv = <&rv3032>,"trickle-voltage-millivolts:0";
344346
backup-switchover-mode = <&rv3028>,"backup-switchover-mode:0";
345347
wakeup-source = <&ds1339>,"wakeup-source?",
346348
<&ds3231>,"wakeup-source?",

0 commit comments

Comments
 (0)