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
F133223722: D36200.id109337.diff
Fri, Oct 24, 2:54 AM
F133223406: D36200.id109337.diff
Fri, Oct 24, 2:50 AM
F133221069: D36200.id109335.diff
Fri, Oct 24, 2:24 AM
F133220959: D36200.id109335.diff
Fri, Oct 24, 2:22 AM
F133193497: D36200.id109335.diff
Thu, Oct 23, 8:37 PM
F133180886: D36200.diff
Thu, Oct 23, 5:59 PM
Unknown Object (File)
Tue, Oct 21, 1:27 PM
Unknown Object (File)
Mon, Oct 13, 1:51 PM
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 46939
Build 43828: 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