1# Copyright (c) 2024 ANITRA system s.r.o.
2# SPDX-License-Identifier: Apache-2.0
3
4description: Micro Crystal RV3028 RTC
5
6compatible: "microcrystal,rv3028"
7
8include:
9  - name: rtc-device.yaml
10  - name: i2c-device.yaml
11
12properties:
13  clkout-frequency:
14    type: int
15    enum:
16      - 32768
17      - 8192
18      - 1024
19      - 64
20      - 32
21      - 1
22    description: |
23      Frequency of the CLKOUT signal in Hertz (Hz). If omitted, the CLKOUT pin is LOW.
24
25  backup-switch-mode:
26    type: string
27    required: true
28    enum:
29      - disabled
30      - direct
31      - level
32    description: |
33      Automatic backup switchover function selection:
34        - disabled: The switchover function is disabled - only one power supply available (VDD)
35        - direct: Direct Switching Mode (DSM): when VDD < VBACKUP, switchover occurs from VDD to
36          VBACKUP without requiring VDD to drop below VTH:LSM (2.0 V)
37        - level: Level Switching Mode (LSM): when VDD < VTH:LSM (2.0 V) AND VBACKUP > VTH:LSM,
38          switchover occurs from VDD to VBACKUP
39
40  trickle-resistor-ohms:
41    type: int
42    enum:
43      - 3000
44      - 5000
45      - 9000
46      - 15000
47    description: |
48      Enable the trickle charger with provided current-limiting resistance in ohms. The trickle
49      charger allows a battery or supercapacitor connected to VBACKUP to be charged.
50
51  int-gpios:
52    type: phandle-array
53    description: |
54      GPIO connected to the RV3028 INT interrupt output. This signal is open-drain, active low.
55