Loongson Real-Time Clock

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

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

The Loongson family chips use an on-chip counter 0 (Time Of Year counter) as the RTC.

Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "loongson,ls1b-rtc", "loongson,ls1c-rtc", "loongson,ls7a-rtc", "loongson,ls2k0300-rtc", "loongson,ls2k1000-rtc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "loongson,ls2k2000-rtc", "loongson,ls2k0500-rtc"

Item 2

Exact value (const): "loongson,ls7a-rtc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "loongson,ls1c-rtc", "loongson,ls2k0300-rtc"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

false — Not permitted by this property rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

rtc@1fe27800 {
    compatible = "loongson,ls2k1000-rtc";
    reg = <0x1fe27800 0x100>;

    interrupt-parent = <&liointc1>;
    interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page