Page MenuHomeFreeBSD

EPSON RTC-8583 support code on i2c bus
ClosedPublic

Authored by yamori813_yahoo.co.jp on Oct 30 2017, 8:28 AM.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This is dts

&i2c {
        status = "okay";
        rtc8583 {
                status = "okay";
                compatible = "epson,rtc8583";
                reg = <0x50>;
        };
};
mizhka_gmail.com accepted this revision.Oct 30 2017, 1:16 PM

Few cosmetic style issues...

sys/dev/iicbus/rtc8583.c
183–200 ↗(On Diff #34449)

I see datasheet for this clock, but can't understand this algo :)
ftp://download.epson-europe.com/pub/electronics-de/quartz/rtc8583.pdf

is 0x10 register number mentioned in datasheet? Does it mean that year is stored in user S-RAM and don't describe in datasheet?

This revision is now accepted and ready to land.Oct 30 2017, 1:16 PM
  • use err value at return
This revision now requires review to proceed.Oct 31 2017, 12:04 PM
This revision was automatically updated to reflect the committed changes.