|
| 1 | +# Copyright (c) 2024 Dipak Shetty |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +description: Micro Crystal RV3032 RTC |
| 5 | + |
| 6 | +compatible: "microcrystal,rv3032" |
| 7 | + |
| 8 | +include: |
| 9 | + - name: rtc-device.yaml |
| 10 | + - name: i2c-device.yaml |
| 11 | + |
| 12 | +properties: |
| 13 | + clkout-frequency: |
| 14 | + type: int |
| 15 | + description: | |
| 16 | + Frequency of the CLKOUT signal in Hertz (Hz). |
| 17 | + Supported frequencies: |
| 18 | + - XTAL mode: 32768, 1024, 64, 1 Hz (crystal-derived, may be affected by |
| 19 | + temperature compensation and aging correction) |
| 20 | + - HF mode: Any value from 8192 to 67108864 Hz in 8192 Hz steps |
| 21 | + (formula: frequency = (HFD + 1) × 8192 Hz where HFD = 0-8191) |
| 22 | + HF mode frequencies are not affected by compensation. |
| 23 | +
|
| 24 | + If this property is omitted, the CLKOUT pin remains LOW (disabled). |
| 25 | +
|
| 26 | + The driver will configure the RTC to use: |
| 27 | + 1. Use XTAL mode for frequencies: 1, 64, 1024, 32768 Hz |
| 28 | + 2. Use HF mode for other frequencies (must be multiples of 8192 Hz) |
| 29 | +
|
| 30 | + backup-switch-mode: |
| 31 | + type: string |
| 32 | + required: true |
| 33 | + enum: |
| 34 | + - disabled |
| 35 | + - direct |
| 36 | + - level |
| 37 | + description: | |
| 38 | + Automatic backup switchover function selection: |
| 39 | + - disabled: The switchover function is disabled - only one power supply available (VDD) |
| 40 | + - direct: Direct Switching Mode (DSM): when VDD < VBACKUP, switchover occurs from VDD to |
| 41 | + VBACKUP without requiring VDD to drop below VTH:LSM (2.0 V) |
| 42 | + - level: Level Switching Mode (LSM): when VDD < VTH:LSM (2.0 V) AND VBACKUP > VTH:LSM, |
| 43 | + switchover occurs from VDD to VBACKUP |
| 44 | +
|
| 45 | + trickle-resistor-ohms: |
| 46 | + type: int |
| 47 | + enum: |
| 48 | + - 600 |
| 49 | + - 2000 |
| 50 | + - 7000 |
| 51 | + - 12000 |
| 52 | + description: | |
| 53 | + Trickle charger series resistance (TCR). |
| 54 | + Ignored if 'trickle-charger-mode' is not present (TCM=00). |
| 55 | + Note: 600 ohms corresponds to TCR=00 (0.6kΩ) in RV3032. |
| 56 | +
|
| 57 | +
|
| 58 | + trickle-charger-mode: |
| 59 | + type: int |
| 60 | + enum: [1750, 3000, 4500] |
| 61 | + description: | |
| 62 | + Trickle Charger Mode (TCM). |
| 63 | + - If this property is not present, the trickle charger is disabled (TCM=00). |
| 64 | + - 1750: TCM=01. In DSM (backup-switch-mode="direct"), VDD is used as the source. |
| 65 | + In LSM (backup-switch-mode="level"), an internal ~1.75 V is used. |
| 66 | + - 3000: TCM=10. Internal charge-pump ~3.0 V, only valid in LSM. |
| 67 | + - 4500: TCM=11. Internal charge-pump ~4.5 V, only valid in LSM. |
| 68 | + Note: In LSM, the 1.75/3.0/4.5 V levels are only generated when VDD > VTH:LSM |
| 69 | + (typ. 2.0 V, max 2.2 V). |
| 70 | +
|
| 71 | + int-gpios: |
| 72 | + type: phandle-array |
| 73 | + description: | |
| 74 | + GPIO connected to the RV3032 INT interrupt output. This signal is open-drain, active low. |
0 commit comments