1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/rtc/mediate 4 $id: http://devicetree.org/schemas/rtc/mediatek,mt7622-rtc.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: MediaTek MT7622 on-SoC RTC 7 title: MediaTek MT7622 on-SoC RTC 8 8 9 allOf: 9 allOf: 10 - $ref: rtc.yaml# 10 - $ref: rtc.yaml# 11 11 12 maintainers: 12 maintainers: 13 - Sean Wang <sean.wang@mediatek.com> 13 - Sean Wang <sean.wang@mediatek.com> 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 items: 17 items: 18 - const: mediatek,mt7622-rtc 18 - const: mediatek,mt7622-rtc 19 - const: mediatek,soc-rtc 19 - const: mediatek,soc-rtc 20 20 21 reg: 21 reg: 22 maxItems: 1 22 maxItems: 1 23 23 24 interrupts: 24 interrupts: 25 maxItems: 1 25 maxItems: 1 26 26 27 clocks: 27 clocks: 28 maxItems: 1 28 maxItems: 1 29 29 30 clock-names: 30 clock-names: 31 const: rtc 31 const: rtc 32 32 33 required: 33 required: 34 - reg 34 - reg 35 - interrupts 35 - interrupts 36 - clocks 36 - clocks 37 - clock-names 37 - clock-names 38 38 39 unevaluatedProperties: false 39 unevaluatedProperties: false 40 40 41 examples: 41 examples: 42 - | 42 - | 43 #include <dt-bindings/clock/mt7622-clk.h> 43 #include <dt-bindings/clock/mt7622-clk.h> 44 #include <dt-bindings/interrupt-controller 44 #include <dt-bindings/interrupt-controller/arm-gic.h> 45 45 46 rtc@10212800 { 46 rtc@10212800 { 47 compatible = "mediatek,mt7622-rtc", "m 47 compatible = "mediatek,mt7622-rtc", "mediatek,soc-rtc"; 48 reg = <0x10212800 0x200>; 48 reg = <0x10212800 0x200>; 49 interrupts = <GIC_SPI 129 IRQ_TYPE_LEV 49 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>; 50 clocks = <&topckgen CLK_TOP_RTC>; 50 clocks = <&topckgen CLK_TOP_RTC>; 51 clock-names = "rtc"; 51 clock-names = "rtc"; 52 }; 52 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.