summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/rtc/st,m41t93.yaml
blob: bdd995c5c1f4688d4bf0c3d3e85b48724a0781f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/rtc/st,m41t93.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ST M41T93 RTC and compatible

maintainers:
  - Akhilesh Patil <akhilesh@ee.iitb.ac.in>

description:
  ST M41T93 is spi based Real Time Clock (RTC) with time, date,
  alarm, watchdog, square wave clock output, 8 bit timer and
  7 bytes of user SRAM.

properties:
  compatible:
    enum:
      - st,m41t93

  reg:
    maxItems: 1

  "#clock-cells":
    const: 0

required:
  - compatible
  - reg

allOf:
  - $ref: rtc.yaml
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

unevaluatedProperties: false

examples:
  - |
    spi {
      #address-cells = <1>;
      #size-cells = <0>;
      rtc@0 {
        compatible = "st,m41t93";
        reg = <0>;
        #clock-cells = <0>;
        spi-max-frequency = <2000000>;
      };
    };