You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it requires (or requires updates to) 'rtc_add_group' and rtc_nvram_register along with some constants not defined in rtc.h for 4.14.y so I'm not sure how straight forward this is?
Actually I'm wrong regarding backup battery functionality. Looking at the datasheet for details on register 0x37 suggests it requires BSM (Backup Switchover Mode) to be changed, but this driver currently does not support that at all. I'll have to add a backup-switchover-mode property to make this settable.
Activity
pelwell commentedon Mar 28, 2019
Is 4.14 a requirement for you? 4.19 is our current master branch.
Gadgetoid commentedon Mar 28, 2019
Not at all! In my case it happened to be the kernel available via apt and I was attempting to build the module out-of-tree for testing.
configs: Add RTC_DRV_RV3028=m
overlays: Add rv3028 to i2c-rtc
configs: Add RTC_DRV_RV3028=m
overlays: Add rv3028 to i2c-rtc
pelwell commentedon Mar 28, 2019
Can you build and test #2913?
Gadgetoid commentedon Mar 28, 2019
Thank you- on it.
Gadgetoid commentedon Mar 28, 2019
Built and testing against
4.19.30using (as root):I believe the following dtoverlay is required for battery backup functionality to be enabled:
Could this please be merged into https://github.com/raspberrypi/linux/blob/e2d2941326922b63d722ebc46520c3a2287b675f/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts ?
I believe the existing address, and trickle-resistor-ohms parameters would apply.
Thank you for cranking this out so quickly, much appreciated!
pelwell commentedon Mar 28, 2019
Already done. 8-)
Not the address - that's fixed - but I could add the trickle-resistor.
overlays: Add rv3028 to i2c-rtc
pelwell commentedon Mar 28, 2019
Now updated with trickle-resistor support - use the
trickle-resistor-ohmsparameter.Gadgetoid commentedon Mar 28, 2019
Actually I'm wrong regarding backup battery functionality. Looking at the datasheet for details on register
0x37suggests it requiresBSM(Backup Switchover Mode) to be changed, but this driver currently does not support that at all. I'll have to add abackup-switchover-modeproperty to make this settable.Gadgetoid commentedon Mar 28, 2019
Brilliant! Thank you.
This patch adds suggested functionality for
backup-switchover-mode.Without this parameter supplied, the RTC is never told to use its backup battery and thus loses the time on power off.
Possible options are:
I'll also ping it over to the module author:
pelwell commentedon Mar 28, 2019
Can you submit this as a PR, ideally with the required overlay parameter?
If you're happy with the rest of the functionality I'll merge it now.
159 remaining items
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)
Improvement on backup-switchover-mode overlay value definitions (#5884)