xref: /linux/Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml (revision d324e9a91502184e0ac201293a6ec0fbe10458ed)
1*e1794c59SCL Wang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*e1794c59SCL Wang%YAML 1.2
3*e1794c59SCL Wang---
4*e1794c59SCL Wang$id: http://devicetree.org/schemas/rtc/andestech,atcrtc100.yaml#
5*e1794c59SCL Wang$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e1794c59SCL Wang
7*e1794c59SCL Wangtitle: Andes ATCRTC100 Real-Time Clock
8*e1794c59SCL Wang
9*e1794c59SCL Wangmaintainers:
10*e1794c59SCL Wang  - CL Wang <cl634@andestech.com>
11*e1794c59SCL Wang
12*e1794c59SCL WangallOf:
13*e1794c59SCL Wang  - $ref: rtc.yaml#
14*e1794c59SCL Wang
15*e1794c59SCL Wangproperties:
16*e1794c59SCL Wang  compatible:
17*e1794c59SCL Wang    enum:
18*e1794c59SCL Wang      - andestech,atcrtc100
19*e1794c59SCL Wang
20*e1794c59SCL Wang  reg:
21*e1794c59SCL Wang    maxItems: 1
22*e1794c59SCL Wang
23*e1794c59SCL Wang  interrupts:
24*e1794c59SCL Wang    items:
25*e1794c59SCL Wang      - description: Periodic timekeeping interrupt
26*e1794c59SCL Wang      - description: RTC alarm interrupt
27*e1794c59SCL Wang
28*e1794c59SCL Wangrequired:
29*e1794c59SCL Wang  - compatible
30*e1794c59SCL Wang  - reg
31*e1794c59SCL Wang  - interrupts
32*e1794c59SCL Wang
33*e1794c59SCL WangunevaluatedProperties: false
34*e1794c59SCL Wang
35*e1794c59SCL Wangexamples:
36*e1794c59SCL Wang  - |
37*e1794c59SCL Wang    #include <dt-bindings/interrupt-controller/irq.h>
38*e1794c59SCL Wang
39*e1794c59SCL Wang    rtc@f0300000 {
40*e1794c59SCL Wang        compatible = "andestech,atcrtc100";
41*e1794c59SCL Wang        reg = <0xf0300000 0x100>;
42*e1794c59SCL Wang        interrupts = <1 IRQ_TYPE_LEVEL_HIGH>, <2 IRQ_TYPE_LEVEL_HIGH>;
43*e1794c59SCL Wang    };
44