summaryrefslogtreecommitdiff
path: root/drivers/rtc/max313xx.c
AgeCommit message (Collapse)Author
2025-09-09drivers: rtc: max313xx: Add delay after setting dateBen Hoelker
The MAX31331 was not correctly updating the seconds when setting the time and would return the seconds previously set. Like the MAX31343, a delay needs to be added after setting the time. Wait one second after writing so that the date command shows the correct time. Reviewed-by: Chris Packham <[email protected]> Reviewed-by: Bruce Adams <[email protected]> Signed-off-by: Ben Hoelker <[email protected]>
2025-01-26drivers: rtc: max313xx: Ensure correct date is read after settingMark Tomlinson
When setting the time on the MAX31343, the time is not updated for one second, and reading the time in this interval will give the old time. Wait one second after writing so that the date command will show the correct time when setting the clock. Signed-off-by: Mark Tomlinson <[email protected]> Cc: Chris Packham <[email protected]> Reviewed-by: Chris Packham <[email protected]>
2025-01-26drivers: rtc: max313xx: Fix setting years 2100-2199Mark Tomlinson
An invalid calculation made setting years 2100-2199 impossible. Signed-off-by: Mark Tomlinson <[email protected]> Cc: Chris Packham <[email protected]> Reviewed-by: Chris Packham <[email protected]>
2023-07-25drivers: rtc: max313xx: provide read8/write8Chris Packham
In some designs the MAX313xx RTC may need calibration to cope with oscillator inaccuracies. Provide read8/write8 ops so that the registers can be accessed. Because the driver covers a range of MAX313xx variants no attempt is made to ensure the register is valid. Signed-off-by: Chris Packham <[email protected]>
2023-03-30drivers: rtc: add max313xx series rtc driverChris Packham
Adding support for Analog Devices MAX313XX series RTCs. This is ported from the Linux driver and adapted for use in u-boot. Notable differences are - handling of tm_year and tm_mon differ - clock source support is omitted - hwmon support for the MAX31328 and MAX31343 is omitted - rtc_ops->reset is added Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Simon Glass <[email protected]>