Skip to content

Commit 5f6cd43

Browse files
tiagofreire-ptpopcornmix
authored andcommitted
Improvement on backup-switchover-mode overlay value definitions (#5884)
For the RV3028 RTC, the definitions for its `backup-switchover-mode` overlay were not intelligible neither complete/exhaustive. Accordingly to the #2912 (comment) these one here proposed should be correct. `/boot/config.txt` should be as a configuration example, for rv3028, on a Uputronics GPS Extension HAT: # For GPS Expansion Board from Uputronics dtparam=i2c_arm=on dtoverlay=i2c-rtc,rv3028,backup-switchover-mode=3 dtoverlay=pps-gpio,gpiopin=18 init_uart_baud=115200 From my tests (`sudo rmmod rtc_rv3028 && sudo i2cget -y 1 0x52 0x37`): `Default from factory`: `0x10` `Mode 0`: `0x10` `Mode 1`: `0x14` `Mode 2`: `0x18` `Mode 3`: `0x1c` `Mode 3`: `0x1c` is consistent with the manufacturer configuration script: http://store.uputronics.com/files/configure-rv3028.sh
1 parent 1e1a6a1 commit 5f6cd43

File tree

1 file changed

+7
-1
lines changed
  • arch/arm/boot/dts/overlays

1 file changed

+7
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,13 @@ Params: abx80x Select one of the ABx80x family:
21162116
source
21172117

21182118
backup-switchover-mode Backup power supply switch mode. Must be 0 for
2119-
off or 1 for Vdd < VBackup (RV3028, RV3032)
2119+
"Switchover disabled", 1 for "Direct Switching"
2120+
(if Vdd < VBackup), 2 for "Standby
2121+
Mode" (if Vdd < Vbackup,
2122+
does not draw current) or 3 for
2123+
"Level Switching" (if Vdd < Vbackup
2124+
and Vdd < Vddsw and Vbackup > Vddsw)
2125+
(RV3028, RV3032)
21202126

21212127

21222128
Name: i2c-rtc-gpio

0 commit comments

Comments
 (0)