Page MenuHomeFreeBSD

da9063_rtc: Add new driver for the Dialog Semiconductor DA9063 RTC
ClosedPublic

Authored by jrtc27 on Aug 14 2022, 5:33 PM.
Tags
None
Referenced Files
F102803475: D36200.diff
Sun, Nov 17, 9:36 AM
Unknown Object (File)
Sat, Oct 26, 1:09 PM
Unknown Object (File)
Sat, Oct 26, 1:08 PM
Unknown Object (File)
Sat, Oct 26, 1:08 PM
Unknown Object (File)
Sat, Oct 26, 1:08 PM
Unknown Object (File)
Sat, Oct 26, 1:08 PM
Unknown Object (File)
Sat, Oct 26, 12:47 PM
Unknown Object (File)
Sep 24 2024, 8:34 AM
Subscribers

Details

Summary

This is a simple RTC present in the PMIC, supporting 1s precision.

This is the PMIC on SiFive's HiFive Unmatched.

MFC after: 1 week

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47059
Build 43948: arc lint + arc unit

Event Timeline

Add missing utc_offset call for the local time RTC case

No clue of the talking to the hardware part is right, but I believe the time handling is now correct.

This revision is now accepted and ready to land.Aug 15 2022, 7:50 PM
sys/dev/dialog/da9063/da9063_rtc.c
171–173

Isn't ct.min != oldct.min the only check that matters here?

sys/dev/dialog/da9063/da9063_rtc.c
171–173

In practice yes, but *technically* you could, say, get preempted for an {hour,day,month,year} (which in reality would only ever happen if using a debugger and you got unlucky) so {min, hour,day,mon,year} would fully wrap around, and it felt wrong to be lazy.

Renamed da9063 to da9063_pmic

This revision now requires review to proceed.Aug 22 2022, 7:27 PM
This revision is now accepted and ready to land.Aug 22 2022, 10:02 PM