Renesas RTCA-3 Real Time Clock

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

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

Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r9a08g045-rtca3", "renesas,r9a09g056-rtca3", "renesas,r9a09g057-rtca3"

Item 2

Exact value (const): "renesas,rz-rtca3"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

Alarm interrupt

Item 2

Periodic interrupt

Item 3

Carry interrupt

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 #

Array item rules (items) #

Item 1

RTC bus clock

Item 2

RTC counter clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "counter"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r9a08g045-rtca3"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Array item rules (items)

Item 1

VBATTB module reset

reset-names — not listed as required here

Exact value (const): "vbattb"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a09g056-rtca3", "renesas,r9a09g057-rtca3"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Array item rules (items)

Item 1

RTC reset

Item 2

Reset for the RTEST registers

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "rtc"

Item 2

Exact value (const): "rtest"

Required in this object (required): "reset-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r9a08g045-cpg.h>
#include <dt-bindings/clock/renesas,r9a08g045-vbattb.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

rtc@1004ec00 {
    compatible = "renesas,r9a08g045-rtca3", "renesas,rz-rtca3";
    reg = <0x1004ec00 0x400>;
    interrupts = <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "alarm", "period", "carry";
    clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattclk VBATTB_VBATTCLK>;
    clock-names = "bus", "counter";
    power-domains = <&cpg>;
    resets = <&cpg R9A08G045_VBAT_BRESETN>;
    reset-names = "vbattb";
};

Source notes #

Annotations retained from the schema source

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

Line 16: RZ/G3S

Line 17: RZ/V2N

Line 18: RZ/V2H

Edit this page