blob: e74dfc161cfc66d7811d37695846a445049b0122 [file] [log] [blame]
Tom Rini6bb92fc2024-05-20 09:54:58 -06001# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/mediatek,mt7622-rtc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek MT7622 on-SoC RTC
8
9allOf:
10 - $ref: rtc.yaml#
11
12maintainers:
13 - Sean Wang <sean.wang@mediatek.com>
14
15properties:
16 compatible:
17 items:
18 - const: mediatek,mt7622-rtc
19 - const: mediatek,soc-rtc
20
21 reg:
22 maxItems: 1
23
24 interrupts:
25 maxItems: 1
26
27 clocks:
28 maxItems: 1
29
30 clock-names:
31 const: rtc
32
33required:
34 - reg
35 - interrupts
36 - clocks
37 - clock-names
38
39unevaluatedProperties: false
40
41examples:
42 - |
43 #include <dt-bindings/clock/mt7622-clk.h>
44 #include <dt-bindings/interrupt-controller/arm-gic.h>
45
46 rtc@10212800 {
47 compatible = "mediatek,mt7622-rtc", "mediatek,soc-rtc";
48 reg = <0x10212800 0x200>;
49 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
50 clocks = <&topckgen CLK_TOP_RTC>;
51 clock-names = "rtc";
52 };