xref: /linux/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml (revision 4015580e983daa699d7e1693328dd81f0e295589)
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,rv3028.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip RV-3028 RTC
8
9allOf:
10  - $ref: rtc.yaml#
11
12maintainers:
13  - Alexandre Belloni <alexandre.belloni@bootlin.com>
14
15properties:
16  compatible:
17    const: microcrystal,rv3028
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  "#clock-cells":
26    const: 0
27
28  trickle-resistor-ohms:
29    enum:
30      - 3000
31      - 5000
32      - 9000
33      - 15000
34
35required:
36  - compatible
37  - reg
38
39unevaluatedProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/interrupt-controller/irq.h>
44    i2c {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        rtc@51 {
49            compatible = "microcrystal,rv3028";
50            reg = <0x51>;
51            pinctrl-0 = <&rtc_nint_pins>;
52            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
53            trickle-resistor-ohms = <3000>;
54        };
55    };
56
57...
58