xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/rtc-ds1307.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*b97ee269SEmmanuel Vadot%YAML 1.2
3*b97ee269SEmmanuel Vadot---
4*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/rtc-ds1307.yaml#
5*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b97ee269SEmmanuel Vadot
7*b97ee269SEmmanuel Vadottitle: Dallas DS1307 and compatible RTC
8*b97ee269SEmmanuel Vadot
9*b97ee269SEmmanuel Vadotmaintainers:
10*b97ee269SEmmanuel Vadot  - Alexandre Belloni <alexandre.belloni@bootlin.com>
11*b97ee269SEmmanuel Vadot
12*b97ee269SEmmanuel Vadotproperties:
13*b97ee269SEmmanuel Vadot  compatible:
14*b97ee269SEmmanuel Vadot    oneOf:
15*b97ee269SEmmanuel Vadot      - enum:
16*b97ee269SEmmanuel Vadot          - dallas,ds1307
17*b97ee269SEmmanuel Vadot          - dallas,ds1308
18*b97ee269SEmmanuel Vadot          - dallas,ds1337
19*b97ee269SEmmanuel Vadot          - dallas,ds1338
20*b97ee269SEmmanuel Vadot          - dallas,ds1339
21*b97ee269SEmmanuel Vadot          - dallas,ds1388
22*b97ee269SEmmanuel Vadot          - dallas,ds1340
23*b97ee269SEmmanuel Vadot          - dallas,ds1341
24*b97ee269SEmmanuel Vadot          - maxim,ds3231
25*b97ee269SEmmanuel Vadot          - st,m41t0
26*b97ee269SEmmanuel Vadot          - st,m41t00
27*b97ee269SEmmanuel Vadot          - st,m41t11
28*b97ee269SEmmanuel Vadot          - microchip,mcp7940x
29*b97ee269SEmmanuel Vadot          - microchip,mcp7941x
30*b97ee269SEmmanuel Vadot          - pericom,pt7c4338
31*b97ee269SEmmanuel Vadot          - epson,rx8025
32*b97ee269SEmmanuel Vadot          - isil,isl12057
33*b97ee269SEmmanuel Vadot          - epson,rx8130
34*b97ee269SEmmanuel Vadot
35*b97ee269SEmmanuel Vadot      - items:
36*b97ee269SEmmanuel Vadot          - enum:
37*b97ee269SEmmanuel Vadot              - st,m41t00
38*b97ee269SEmmanuel Vadot          - const: dallas,ds1338
39*b97ee269SEmmanuel Vadot
40*b97ee269SEmmanuel Vadot  reg:
41*b97ee269SEmmanuel Vadot    maxItems: 1
42*b97ee269SEmmanuel Vadot
43*b97ee269SEmmanuel Vadot  interrupts:
44*b97ee269SEmmanuel Vadot    minItems: 1
45*b97ee269SEmmanuel Vadot    maxItems: 2
46*b97ee269SEmmanuel Vadot
47*b97ee269SEmmanuel Vadot  interrupt-names:
48*b97ee269SEmmanuel Vadot    maxItems: 2
49*b97ee269SEmmanuel Vadot
50*b97ee269SEmmanuel Vadot  "#clock-cells":
51*b97ee269SEmmanuel Vadot    const: 1
52*b97ee269SEmmanuel Vadot
53*b97ee269SEmmanuel Vadot  clock-output-names:
54*b97ee269SEmmanuel Vadot    description: From common clock binding to override the default output clock name.
55*b97ee269SEmmanuel Vadot
56*b97ee269SEmmanuel Vadot  wakeup-source:
57*b97ee269SEmmanuel Vadot    description: Enables wake up of host system on alarm.
58*b97ee269SEmmanuel Vadot
59*b97ee269SEmmanuel Vadot  vcc-supply: true
60*b97ee269SEmmanuel Vadot
61*b97ee269SEmmanuel VadotallOf:
62*b97ee269SEmmanuel Vadot  - $ref: rtc.yaml
63*b97ee269SEmmanuel Vadot  - if:
64*b97ee269SEmmanuel Vadot      properties:
65*b97ee269SEmmanuel Vadot        compatible:
66*b97ee269SEmmanuel Vadot          contains:
67*b97ee269SEmmanuel Vadot            enum:
68*b97ee269SEmmanuel Vadot              - dallas,ds1339
69*b97ee269SEmmanuel Vadot              - dallas,ds1340
70*b97ee269SEmmanuel Vadot              - dallas,ds1388
71*b97ee269SEmmanuel Vadot    then:
72*b97ee269SEmmanuel Vadot      properties:
73*b97ee269SEmmanuel Vadot        trickle-resistor-ohms:
74*b97ee269SEmmanuel Vadot          description: Selected resistor for trickle charger. Should be specified if trickle
75*b97ee269SEmmanuel Vadot            charger should be enabled.
76*b97ee269SEmmanuel Vadot          enum: [ 250, 2000, 4000 ]
77*b97ee269SEmmanuel Vadot
78*b97ee269SEmmanuel Vadot        trickle-diode-disable:
79*b97ee269SEmmanuel Vadot          description: Do not use internal trickle charger diode. Should be given if internal
80*b97ee269SEmmanuel Vadot            trickle charger diode should be disabled (superseded by aux-voltage-chargeable)
81*b97ee269SEmmanuel Vadot          deprecated: true
82*b97ee269SEmmanuel Vadot
83*b97ee269SEmmanuel VadotunevaluatedProperties: false
84*b97ee269SEmmanuel Vadot
85*b97ee269SEmmanuel Vadotrequired:
86*b97ee269SEmmanuel Vadot  - compatible
87*b97ee269SEmmanuel Vadot  - reg
88*b97ee269SEmmanuel Vadot
89*b97ee269SEmmanuel Vadotexamples:
90*b97ee269SEmmanuel Vadot  - |
91*b97ee269SEmmanuel Vadot    i2c {
92*b97ee269SEmmanuel Vadot      #address-cells = <1>;
93*b97ee269SEmmanuel Vadot      #size-cells = <0>;
94*b97ee269SEmmanuel Vadot
95*b97ee269SEmmanuel Vadot      rtc@68 {
96*b97ee269SEmmanuel Vadot        compatible = "dallas,ds1337";
97*b97ee269SEmmanuel Vadot        reg = <0x68>;
98*b97ee269SEmmanuel Vadot        interrupt-parent = <&gpio4>;
99*b97ee269SEmmanuel Vadot        interrupts = <20 0>;
100*b97ee269SEmmanuel Vadot        trickle-resistor-ohms = <250>;
101*b97ee269SEmmanuel Vadot      };
102*b97ee269SEmmanuel Vadot    };
103