Skip to content

Commit 2c9fb89

Browse files
alexandrebellonipelwell
authored andcommitted
rtc: rv3028: add new driver
upstream commit e6e7376. Add a driver for the MicroCrystal RV-3028. It is a SMT Real-Time Clock Module that incorporates an integrated CMOS circuit together with an XTAL. It has an i2c interface. The driver handles date/time, alarms, trickle charging, timestamping, frequency offset correction, EEPROM and NVRAM. Signed-off-by: Alexandre Belloni <[email protected]>
1 parent f8d8463 commit 2c9fb89

File tree

4 files changed

+812
-0
lines changed

4 files changed

+812
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Generic device tree bindings for Real Time Clock devices
2+
========================================================
3+
4+
This document describes generic bindings which can be used to describe Real Time
5+
Clock devices in a device tree.
6+
7+
Required properties
8+
-------------------
9+
10+
- compatible : name of RTC device following generic names recommended practice.
11+
12+
For other required properties e.g. to describe register sets,
13+
clocks, etc. check the binding documentation of the specific driver.
14+
15+
Optional properties
16+
-------------------
17+
18+
- start-year : if provided, the default hardware range supported by the RTC is
19+
shifted so the first usable year is the specified one.
20+
21+
The following properties may not be supported by all drivers. However, if a
22+
driver wants to support one of the below features, it should adapt the bindings
23+
below.
24+
- trickle-resistor-ohms : Selected resistor for trickle charger. Should be given
25+
if trickle charger should be enabled
26+
- trickle-diode-disable : Do not use internal trickle charger diode Should be
27+
given if internal trickle charger diode should be
28+
disabled
29+
- wakeup-source : Enables wake up of host system on alarm
30+
- quartz-load-femtofarads : The capacitive load of the quartz(x-tal),
31+
expressed in femto Farad (fF).
32+
The default value shall be listed (if optional),
33+
and likewise all valid values.
34+
35+
Trivial RTCs
36+
------------
37+
38+
This is a list of trivial RTC devices that have simple device tree
39+
bindings, consisting only of a compatible field, an address and
40+
possibly an interrupt line.
41+
42+
43+
Compatible Vendor / Chip
44+
========== =============
45+
abracon,abb5zes3 AB-RTCMC-32.768kHz-B5ZE-S3: Real Time Clock/Calendar Module with I2C Interface
46+
dallas,ds1374 I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output
47+
dallas,ds1672 Dallas DS1672 Real-time Clock
48+
dallas,ds3232 Extremely Accurate I²C RTC with Integrated Crystal and SRAM
49+
epson,rx8010 I2C-BUS INTERFACE REAL TIME CLOCK MODULE
50+
epson,rx8581 I2C-BUS INTERFACE REAL TIME CLOCK MODULE
51+
emmicro,em3027 EM Microelectronic EM3027 Real-time Clock
52+
isil,isl1208 Intersil ISL1208 Low Power RTC with Battery Backed SRAM
53+
isil,isl1218 Intersil ISL1218 Low Power RTC with Battery Backed SRAM
54+
isil,isl12022 Intersil ISL12022 Real-time Clock
55+
microcrystal,rv3028 Real Time Clock Module with I2C-Bus
56+
microcrystal,rv3029 Real Time Clock Module with I2C-Bus
57+
microcrystal,rv8523 Real Time Clock
58+
nxp,pcf2127 Real-time clock
59+
nxp,pcf2129 Real-time clock
60+
nxp,pcf8563 Real-time clock/calendar
61+
pericom,pt7c4338 Real-time Clock Module
62+
ricoh,r2025sd I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
63+
ricoh,r2221tl I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
64+
ricoh,rs5c372a I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
65+
ricoh,rs5c372b I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
66+
ricoh,rv5c386 I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
67+
ricoh,rv5c387a I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
68+
sii,s35390a 2-wire CMOS real-time clock
69+
whwave,sd3078 I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC

drivers/rtc/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,15 @@ config RTC_DRV_EM3027
625625
This driver can also be built as a module. If so, the module
626626
will be called rtc-em3027.
627627

628+
config RTC_DRV_RV3028
629+
tristate "Micro Crystal RV3028"
630+
help
631+
If you say yes here you get support for the Micro Crystal
632+
RV3028.
633+
634+
This driver can also be built as a module. If so, the module
635+
will be called rtc-rv3028.
636+
628637
config RTC_DRV_RV8803
629638
tristate "Micro Crystal RV8803, Epson RX8900"
630639
help

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ obj-$(CONFIG_RTC_DRV_RS5C313) += rtc-rs5c313.o
136136
obj-$(CONFIG_RTC_DRV_RS5C348) += rtc-rs5c348.o
137137
obj-$(CONFIG_RTC_DRV_RS5C372) += rtc-rs5c372.o
138138
obj-$(CONFIG_RTC_DRV_RTD119X) += rtc-rtd119x.o
139+
obj-$(CONFIG_RTC_DRV_RV3028) += rtc-rv3028.o
139140
obj-$(CONFIG_RTC_DRV_RV3029C2) += rtc-rv3029c2.o
140141
obj-$(CONFIG_RTC_DRV_RV8803) += rtc-rv8803.o
141142
obj-$(CONFIG_RTC_DRV_RX4581) += rtc-rx4581.o

0 commit comments

Comments
 (0)