0

I bought a RTC DS3231 because of the accuraty of time (2ppm, I was searching an accurate RTC). When I received it, I checked that in the encapsulating it is as well marked like DS3231.

But, after install the RTC, I realized that it seems DS 1307. I executed:

dmesg | grep rtc
[    4.129921] rtc-ds1307 1-0068: registered as rtc0

Why the response is DS1307 instead of DS3231? Is it more or less the same RTC (having the same ppm)?

2 Answers2

3

If two devices are compatible to the point they can share the same driver, the driver usually gets the name of the first device it was implemented for. Additionally, in your case the driver specifically states

We can't determine type by probing.

Simply put, there is no way for the driver to tell whether you got a DS1307 or a DS3231.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
1

Most of the RTC modules supported use the same commands as 1307 so use the same driver.

They may operate on different voltages and have additional features, but none are supported by the driver (and not needed for basic RTC function).

Milliways
  • 62,573
  • 32
  • 113
  • 225