xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/st,m41t80.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8bab661aSEmmanuel Vadot%YAML 1.2
3*8bab661aSEmmanuel Vadot---
4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/st,m41t80.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: ST M41T80 family of RTC and compatible
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotmaintainers:
10*8bab661aSEmmanuel Vadot  - Alexandre Belloni <alexandre.belloni@bootlin.com>
11*8bab661aSEmmanuel Vadot
12*8bab661aSEmmanuel Vadotproperties:
13*8bab661aSEmmanuel Vadot  compatible:
14*8bab661aSEmmanuel Vadot    enum:
15*8bab661aSEmmanuel Vadot      - st,m41t62
16*8bab661aSEmmanuel Vadot      - st,m41t65
17*8bab661aSEmmanuel Vadot      - st,m41t80
18*8bab661aSEmmanuel Vadot      - st,m41t81
19*8bab661aSEmmanuel Vadot      - st,m41t81s
20*8bab661aSEmmanuel Vadot      - st,m41t82
21*8bab661aSEmmanuel Vadot      - st,m41t83
22*8bab661aSEmmanuel Vadot      - st,m41t84
23*8bab661aSEmmanuel Vadot      - st,m41t85
24*8bab661aSEmmanuel Vadot      - st,m41t87
25*8bab661aSEmmanuel Vadot      - microcrystal,rv4162
26*8bab661aSEmmanuel Vadot
27*8bab661aSEmmanuel Vadot  reg:
28*8bab661aSEmmanuel Vadot    maxItems: 1
29*8bab661aSEmmanuel Vadot
30*8bab661aSEmmanuel Vadot  interrupts:
31*8bab661aSEmmanuel Vadot    maxItems: 1
32*8bab661aSEmmanuel Vadot
33*8bab661aSEmmanuel Vadot  "#clock-cells":
34*8bab661aSEmmanuel Vadot    const: 1
35*8bab661aSEmmanuel Vadot
36*8bab661aSEmmanuel Vadot  clock-output-names:
37*8bab661aSEmmanuel Vadot    maxItems: 1
38*8bab661aSEmmanuel Vadot    description: From common clock binding to override the default output clock name.
39*8bab661aSEmmanuel Vadot
40*8bab661aSEmmanuel Vadot  clock:
41*8bab661aSEmmanuel Vadot    type: object
42*8bab661aSEmmanuel Vadot    $ref: /schemas/clock/fixed-clock.yaml#
43*8bab661aSEmmanuel Vadot    properties:
44*8bab661aSEmmanuel Vadot      clock-frequency:
45*8bab661aSEmmanuel Vadot        const: 32768
46*8bab661aSEmmanuel Vadot
47*8bab661aSEmmanuel VadotallOf:
48*8bab661aSEmmanuel Vadot  - $ref: rtc.yaml
49*8bab661aSEmmanuel Vadot
50*8bab661aSEmmanuel VadotunevaluatedProperties: false
51*8bab661aSEmmanuel Vadot
52*8bab661aSEmmanuel Vadotrequired:
53*8bab661aSEmmanuel Vadot  - compatible
54*8bab661aSEmmanuel Vadot  - reg
55*8bab661aSEmmanuel Vadot
56*8bab661aSEmmanuel Vadotexamples:
57*8bab661aSEmmanuel Vadot  - |
58*8bab661aSEmmanuel Vadot    i2c {
59*8bab661aSEmmanuel Vadot      #address-cells = <1>;
60*8bab661aSEmmanuel Vadot      #size-cells = <0>;
61*8bab661aSEmmanuel Vadot      rtc@68 {
62*8bab661aSEmmanuel Vadot        compatible = "st,m41t80";
63*8bab661aSEmmanuel Vadot        reg = <0x68>;
64*8bab661aSEmmanuel Vadot        interrupt-parent = <&UIC0>;
65*8bab661aSEmmanuel Vadot        interrupts = <0x9 0x8>;
66*8bab661aSEmmanuel Vadot
67*8bab661aSEmmanuel Vadot        clock {
68*8bab661aSEmmanuel Vadot          compatible = "fixed-clock";
69*8bab661aSEmmanuel Vadot          #clock-cells = <0>;
70*8bab661aSEmmanuel Vadot          clock-frequency = <32768>;
71*8bab661aSEmmanuel Vadot        };
72*8bab661aSEmmanuel Vadot      };
73*8bab661aSEmmanuel Vadot    };
74