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
Unknown Object (File)
Feb 27 2024, 3:42 PM
Unknown Object (File)
Dec 26 2023, 12:09 PM
Unknown Object (File)
Dec 23 2023, 12:20 PM
Unknown Object (File)
Aug 7 2023, 2:18 AM
Unknown Object (File)
Aug 7 2023, 2:17 AM
Unknown Object (File)
Aug 7 2023, 2:16 AM
Unknown Object (File)
Aug 7 2023, 2:15 AM
Unknown Object (File)
Aug 7 2023, 2:11 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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