xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/mediatek,mt7622-rtc.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*01950c46SEmmanuel Vadot%YAML 1.2
3*01950c46SEmmanuel Vadot---
4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/mediatek,mt7622-rtc.yaml#
5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*01950c46SEmmanuel Vadot
7*01950c46SEmmanuel Vadottitle: MediaTek MT7622 on-SoC RTC
8*01950c46SEmmanuel Vadot
9*01950c46SEmmanuel VadotallOf:
10*01950c46SEmmanuel Vadot  - $ref: rtc.yaml#
11*01950c46SEmmanuel Vadot
12*01950c46SEmmanuel Vadotmaintainers:
13*01950c46SEmmanuel Vadot  - Sean Wang <sean.wang@mediatek.com>
14*01950c46SEmmanuel Vadot
15*01950c46SEmmanuel Vadotproperties:
16*01950c46SEmmanuel Vadot  compatible:
17*01950c46SEmmanuel Vadot    items:
18*01950c46SEmmanuel Vadot      - const: mediatek,mt7622-rtc
19*01950c46SEmmanuel Vadot      - const: mediatek,soc-rtc
20*01950c46SEmmanuel Vadot
21*01950c46SEmmanuel Vadot  reg:
22*01950c46SEmmanuel Vadot    maxItems: 1
23*01950c46SEmmanuel Vadot
24*01950c46SEmmanuel Vadot  interrupts:
25*01950c46SEmmanuel Vadot    maxItems: 1
26*01950c46SEmmanuel Vadot
27*01950c46SEmmanuel Vadot  clocks:
28*01950c46SEmmanuel Vadot    maxItems: 1
29*01950c46SEmmanuel Vadot
30*01950c46SEmmanuel Vadot  clock-names:
31*01950c46SEmmanuel Vadot    const: rtc
32*01950c46SEmmanuel Vadot
33*01950c46SEmmanuel Vadotrequired:
34*01950c46SEmmanuel Vadot  - reg
35*01950c46SEmmanuel Vadot  - interrupts
36*01950c46SEmmanuel Vadot  - clocks
37*01950c46SEmmanuel Vadot  - clock-names
38*01950c46SEmmanuel Vadot
39*01950c46SEmmanuel VadotunevaluatedProperties: false
40*01950c46SEmmanuel Vadot
41*01950c46SEmmanuel Vadotexamples:
42*01950c46SEmmanuel Vadot  - |
43*01950c46SEmmanuel Vadot    #include <dt-bindings/clock/mt7622-clk.h>
44*01950c46SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
45*01950c46SEmmanuel Vadot
46*01950c46SEmmanuel Vadot    rtc@10212800 {
47*01950c46SEmmanuel Vadot        compatible = "mediatek,mt7622-rtc", "mediatek,soc-rtc";
48*01950c46SEmmanuel Vadot        reg = <0x10212800 0x200>;
49*01950c46SEmmanuel Vadot        interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
50*01950c46SEmmanuel Vadot        clocks = <&topckgen CLK_TOP_RTC>;
51*01950c46SEmmanuel Vadot        clock-names = "rtc";
52*01950c46SEmmanuel Vadot    };
53