xref: /linux/Documentation/devicetree/bindings/rtc/adi,max31335.yaml (revision d9a0788093565c300f7c8dd034dbfa6ac4da9aa6)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/adi,max31335.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices MAX31335 RTC
8
9maintainers:
10  - Antoniu Miclaus <antoniu.miclaus@analog.com>
11
12description:
13  Analog Devices MAX31335 I2C RTC ±2ppm Automotive Real-Time Clock with
14  Integrated MEMS Resonator.
15
16allOf:
17  - $ref: rtc.yaml#
18
19properties:
20  compatible:
21    enum:
22      - adi,max31331
23      - adi,max31335
24
25  reg:
26    maxItems: 1
27
28  interrupts:
29    maxItems: 1
30
31  "#clock-cells":
32    description:
33      RTC can be used as a clock source through its clock output pin.
34    const: 0
35
36  adi,tc-diode:
37    description:
38      Select the diode configuration for the trickle charger.
39      schottky - Schottky diode in series.
40      standard+schottky - standard diode + Schottky diode in series.
41    enum: [schottky, standard+schottky]
42
43  trickle-resistor-ohms:
44    description:
45      Selected resistor for trickle charger. Should be specified if trickle
46      charger should be enabled.
47    enum: [3000, 6000, 11000]
48
49required:
50  - compatible
51  - reg
52
53unevaluatedProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/interrupt-controller/irq.h>
58    i2c {
59        #address-cells = <1>;
60        #size-cells = <0>;
61
62        rtc@68 {
63            compatible = "adi,max31335";
64            reg = <0x68>;
65            pinctrl-0 = <&rtc_nint_pins>;
66            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
67            aux-voltage-chargeable = <1>;
68            trickle-resistor-ohms = <6000>;
69            adi,tc-diode = "schottky";
70        };
71    };
72...
73