MediaTek MT7622 on-SoC RTC

Schema identifier ($id): "http://devicetree.org/schemas/rtc/mediatek,mt7622-rtc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): rtc.yaml#

Maintainers (maintainers): "Sean Wang <sean.wang@mediatek.com>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mediatek,mt7622-rtc"

Item 2

Exact value (const): "mediatek,soc-rtc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "rtc"

Required in this object (required): "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt7622-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

rtc@10212800 {
    compatible = "mediatek,mt7622-rtc", "mediatek,soc-rtc";
    reg = <0x10212800 0x200>;
    interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
    clocks = <&topckgen CLK_TOP_RTC>;
    clock-names = "rtc";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page