microcrystal,rv3032 (on i2c bus)

Vendor: Micro Crystal AG

Note

An implementation of a driver matching this compatible is available in drivers/rtc/rtc_rv3032.c.

Description

Micro Crystal RV3032 RTC

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clkout-frequency

int

Frequency of the CLKOUT signal in Hertz (Hz).
Supported frequencies:
- XTAL mode: 32768, 1024, 64, 1 Hz (crystal-derived, may be affected by
  temperature compensation and aging correction)
- HF mode: Any value from 8192 to 67108864 Hz in 8192 Hz steps
  (formula: frequency = (HFD + 1) × 8192 Hz where HFD = 0-8191)
  HF mode frequencies are not affected by compensation.

If this property is omitted, the CLKOUT pin remains LOW (disabled).

The driver will configure the RTC to use:
1. Use XTAL mode for frequencies: 1, 64, 1024, 32768 Hz
2. Use HF mode for other frequencies (must be multiples of 8192 Hz)

backup-switch-mode

string

Automatic backup switchover function selection:
  - disabled: The switchover function is disabled - only one power supply available (VDD)
  - direct: Direct Switching Mode (DSM): when VDD < VBACKUP, switchover occurs from VDD to
    VBACKUP without requiring VDD to drop below VTH:LSM (2.0 V)
  - level: Level Switching Mode (LSM): when VDD < VTH:LSM (2.0 V) AND VBACKUP > VTH:LSM,
    switchover occurs from VDD to VBACKUP

This property is required.

Legal values: 'disabled', 'direct', 'level'

trickle-resistor-ohms

int

Trickle charger series resistance (TCR).
Ignored if 'trickle-charger-mode' is not present (TCM=00).
Note: 600 ohms corresponds to TCR=00 (0.6kΩ) in RV3032.

Legal values: 600, 2000, 7000, 12000

trickle-charger-mode

int

Trickle Charger Mode (TCM).
  - If this property is not present, the trickle charger is disabled (TCM=00).
  - 1750: TCM=01. In DSM (backup-switch-mode="direct"), VDD is used as the source.
          In LSM (backup-switch-mode="level"), an internal ~1.75 V is used.
  - 3000: TCM=10. Internal charge-pump ~3.0 V, only valid in LSM.
  - 4500: TCM=11. Internal charge-pump ~4.5 V, only valid in LSM.
Note: In LSM, the 1.75/3.0/4.5 V levels are only generated when VDD > VTH:LSM
(typ. 2.0 V, max 2.2 V).

Legal values: 1750, 3000, 4500

int-gpios

phandle-array

GPIO connected to the RV3032 INT interrupt output. This signal is open-drain, active low.

alarms-count

int

Number of alarms supported by RTC device. The number of
alarms defaults to 0, which indicates that the RTC has
no alarms.

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.