1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/microcrystal,rv3032.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip RV-3032 RTC Device Tree Bindings
8
9allOf:
10  - $ref: "rtc.yaml#"
11
12maintainers:
13  - Alexandre Belloni <alexandre.belloni@bootlin.com>
14
15properties:
16  compatible:
17    const: microcrystal,rv3032
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  start-year: true
26
27  trickle-resistor-ohms:
28    enum:
29      - 1000
30      - 2000
31      - 7000
32      - 11000
33
34  trickle-voltage-millivolt:
35    enum:
36      - 1750
37      - 3000
38      - 4400
39
40required:
41  - compatible
42  - reg
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/interrupt-controller/irq.h>
49    i2c {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        rtc@51 {
54            compatible = "microcrystal,rv3032";
55            reg = <0x51>;
56            status = "okay";
57            pinctrl-0 = <&rtc_nint_pins>;
58            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
59            trickle-resistor-ohms = <7000>;
60            trickle-voltage-millivolt = <1750>;
61        };
62    };
63
64...
65