Real Time Clock for Renesas SH and ARM SoCs

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

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

Maintainers (maintainers): "Chris Brandt <chris.brandt@renesas.com>", "Geert Uytterhoeven <geert+renesas@glider.be>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "renesas,r7s72100-rtc"

Item 2

Exact value (const): "renesas,sh-rtc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 3

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "alarm"

Item 2

Exact value (const): "period"

Item 3

Exact value (const): "carry"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "fck", "rtc_x1", "rtc_x3", "extal"

power-domains — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r7s72100-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

rtc: rtc@fcff1000 {
    compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc";
    reg = <0xfcff1000 0x2e>;
    interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 278 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "alarm", "period", "carry";
    clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>,
             <&rtc_x3_clk>, <&extal_clk>;
    power-domains = <&cpg_clocks>;
    clock-names = "fck", "rtc_x1", "rtc_x3", "extal";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 16: RZ/A1H

Line 32: The functional clock source for the RTC controller must be listed

Line 33: first (if it exists). Additionally, potential clock counting sources

Line 34: are to be listed.

Line 39: The functional clock must be labeled as "fck". Other clocks

Line 40: may be named in accordance to the SoC hardware manuals.

Edit this page