| 1 |
# 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 |
|
| 7 |
title: MediaTek MT7622 on-SoC RTC |
| 8 |
|
| 9 |
allOf: |
| 10 |
- $ref: rtc.yaml# |
| 11 |
|
| 12 |
maintainers: |
| 13 |
- Sean Wang <[email protected]> |
| 14 |
|
| 15 |
properties: |
| 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 |
|
| 33 |
required: |
| 34 |
- reg |
| 35 |
- interrupts |
| 36 |
- clocks |
| 37 |
- clock-names |
| 38 |
|
| 39 |
unevaluatedProperties: false |
| 40 |
|
| 41 |
examples: |
| 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 |
}; |