Skip to content

Commit 660e8f6

Browse files
jakubtopicnashif
authored andcommitted
dts: bindings: add binding for the RV3028 RTC
Adds a devicetree binding for the Micro Crystal RV3028 RTC connected to the I2C bus. Signed-off-by: Jakub Topic <jakub.topic@anitra.cz>
1 parent 2e4e9a9 commit 660e8f6

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright (c) 2024 ANITRA system s.r.o.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Micro Crystal RV3028 RTC
5+
6+
compatible: "microcrystal,rv3028"
7+
8+
include:
9+
- name: rtc-device.yaml
10+
- name: i2c-device.yaml
11+
12+
properties:
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.

0 commit comments

Comments
 (0)