xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/microcrystal,rv3028.yaml (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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  trickle-resistor-ohms:
26    enum:
27      - 3000
28      - 5000
29      - 9000
30      - 15000
31
32required:
33  - compatible
34  - reg
35
36unevaluatedProperties: false
37
38examples:
39  - |
40    #include <dt-bindings/interrupt-controller/irq.h>
41    i2c {
42        #address-cells = <1>;
43        #size-cells = <0>;
44
45        rtc@51 {
46            compatible = "microcrystal,rv3028";
47            reg = <0x51>;
48            pinctrl-0 = <&rtc_nint_pins>;
49            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
50            trickle-resistor-ohms = <3000>;
51        };
52    };
53
54...
55