DS3231(4) | Device Drivers Manual | DS3231(4) |
ds3231
— Extremely
Accurate i2c-integrated RTC/TCXO/Crystal
device iic
device iicbus
device ds3231
The ds3231
is a low-cost, extremely
accurate I2C realtime clock (RTC) with an integrated temperature-compensated
crystal oscillator (TCXO) and crystal.
The device incorporates a battery input and maintains accurate timekeeping when main power to the device is interrupted.
Access to ds3231
data is made with the
sysctl(8) interface:
dev.ds3231.0.%desc: Maxim DS3231 RTC dev.ds3231.0.%driver: ds3231 dev.ds3231.0.%location: addr=0xd0 dev.ds3231.0.%pnpinfo: name=rtc compat=maxim,ds3231 dev.ds3231.0.%parent: iicbus1 dev.ds3231.0.temperature: 23.2C dev.ds3231.0.temp_conv: 0 dev.ds3231.0.bbsqw: 0 dev.ds3231.0.sqw_freq: 8192 dev.ds3231.0.sqw_mode: interrupt dev.ds3231.0.32khz_enable: 1
Please check the ds3231
datasheet for more
details.
On a device.hints(5) based system, such as
MIPS
, these values are configurable for
ds3231
:
ds3231
is
connected to.ds3231
. The default 8-bit
address for ds3231
is 0xd0.On a FDT(4) based system the following properties must be set:
ds3231
. The default 7-bit
address for ds3231
is 0x68.The ds3231
driver first appeared in
FreeBSD 11.0.
The ds3231
driver and this manual page
were written by Luiz Otavio O Souza
<loos@FreeBSD.org>.
February 12, 2016 | Debian |