Skip to content

Commit

Permalink
Improvement on backup-switchover-mode overlay value definitions (#5884)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tiagofreire-pt authored and popcornmix committed Feb 19, 2024
1 parent a37733b commit 2b33192
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,13 @@ Params: abx80x Select one of the ABx80x family:
source

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


Name: i2c-rtc-gpio
Expand Down

0 comments on commit 2b33192

Please sign in to comment.