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

title: MediaTek MT2712 on-SoC RTC

allOf:
  - $ref: rtc.yaml#

maintainers:
  - Ran Bi <ran.bi@mediatek.com>

properties:
  compatible:
    const: mediatek,mt2712-rtc

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - reg
  - interrupts

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    rtc@10011000 {
        compatible = "mediatek,mt2712-rtc";
        reg = <0x10011000 0x1000>;
        interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_LOW>;
    };