Real Time Clock of the i.MX SoCs

Schema identifier ($id): "http://devicetree.org/schemas/rtc/rtc-mxc.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): "Philippe Reynes <tremyfr@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx1-rtc"

Rule 2

Exact value (const): "fsl,imx21-rtc"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx31-rtc"

Item 2

Exact value (const): "fsl,imx21-rtc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

input reference

Item 2

the SoC RTC clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "ipg"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx27-clock.h>

rtc@10007000 {
    compatible = "fsl,imx21-rtc";
    reg = <0x10007000 0x1000>;
    interrupts = <22>;
    clocks = <&clks IMX27_CLK_CKIL>,
             <&clks IMX27_CLK_RTC_IPG_GATE>;
    clock-names = "ref", "ipg";
};

Source notes #

Annotations retained from the schema source

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

Edit this page