Sunplus SP7021 Real Time Clock controller

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

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

Maintainers (maintainers): "Vincent Shih <vincent.sunplus@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sunplus,sp7021-rtc"

reg — required here #

Maximum number of items (maxItems): 1

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rtc"

clocks — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

rtc: serial@9c003a00 {
    compatible = "sunplus,sp7021-rtc";
    reg = <0x9c003a00 0x80>;
    reg-names = "rtc";
    clocks = <&clkc 0x12>;
    resets = <&rstc 0x02>;
    interrupt-parent = <&intc>;
    interrupts = <163 IRQ_TYPE_EDGE_RISING>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) Sunplus Co., Ltd. 2021

Edit this page