summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/rtc/fsl,stmp3xxx-rtc.yaml
blob: 534de4196a4f4ba01be1976d2c64c61173facd4c (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
51
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/rtc/fsl,stmp3xxx-rtc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: STMP3xxx/i.MX28 Time Clock Controller

maintainers:
  - Javier Carrasco <javier.carrasco.cruz@gmail.com>

allOf:
  - $ref: rtc.yaml#

properties:
  compatible:
    oneOf:
      - items:
          - enum:
              - fsl,imx28-rtc
              - fsl,imx23-rtc
          - const: fsl,stmp3xxx-rtc
      - const: fsl,stmp3xxx-rtc

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  stmp,crystal-freq:
    description:
      Override crystal frequency as determined from fuse bits.
      Use <0> for "no crystal".
    $ref: /schemas/types.yaml#/definitions/uint32
    enum: [0, 32000, 32768]

required:
  - compatible
  - reg
  - interrupts

unevaluatedProperties: false

examples:
  - |
    rtc@80056000 {
        compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc";
        reg = <0x80056000 2000>;
        interrupts = <29>;
    };