Skip to content

VER-225: Improve RTC rv3028 driver to support BSM#68

Merged
shmuelhazan merged 2 commits intotg-v6.18-ath12k-nextfrom
ver-225-andrey_rtc_rv3028
Jan 14, 2026
Merged

VER-225: Improve RTC rv3028 driver to support BSM#68
shmuelhazan merged 2 commits intotg-v6.18-ath12k-nextfrom
ver-225-andrey_rtc_rv3028

Conversation

@astrunin
Copy link

Added support BSM mode from DTS (0x01 for DSM, 0x03 for LSM)

RTC's EEPROM is updated only when the configuration changes, to improve it's lifetime (as in rv3028_set_trickle_charger)

@astrunin astrunin closed this Jan 12, 2026
@astrunin astrunin reopened this Jan 12, 2026
@astrunin astrunin changed the base branch from tg-v6.18 to tg-v6.18-ath12k-next January 12, 2026 13:41
@astrunin
Copy link
Author

There is another way to set BSM mode that is already supported by the driver. But it only has API to userspace. There are RTC_PARAM_GET\RTC_PARAM_SET ioctls we can use to set RTC_PARAM_BACKUP_SWITCH_MODE parameter (there is a structure we need to pass to ioctl, it consists of parameter and value, value is, in our case RV3028_BACKUP_BSM_DSM - 0x1). For using this we don't need to make any changes in the driver, however we will need implimentation to be somewhere (not possible to do with a bash script)

@shmuelhazan shmuelhazan merged commit e742ffe into tg-v6.18-ath12k-next Jan 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants