xref: /linux/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml (revision 0e287d31b62bb53ad81d5e59778384a40f8b6f56)
1*71c61a45SClaudiu Beznea# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*71c61a45SClaudiu Beznea%YAML 1.2
3*71c61a45SClaudiu Beznea---
4*71c61a45SClaudiu Beznea$id: http://devicetree.org/schemas/rtc/renesas,rz-rtca3.yaml#
5*71c61a45SClaudiu Beznea$schema: http://devicetree.org/meta-schemas/core.yaml#
6*71c61a45SClaudiu Beznea
7*71c61a45SClaudiu Bezneatitle: Renesas RTCA-3 Real Time Clock
8*71c61a45SClaudiu Beznea
9*71c61a45SClaudiu Bezneamaintainers:
10*71c61a45SClaudiu Beznea  - Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
11*71c61a45SClaudiu Beznea
12*71c61a45SClaudiu BezneaallOf:
13*71c61a45SClaudiu Beznea  - $ref: rtc.yaml#
14*71c61a45SClaudiu Beznea
15*71c61a45SClaudiu Bezneaproperties:
16*71c61a45SClaudiu Beznea  compatible:
17*71c61a45SClaudiu Beznea    items:
18*71c61a45SClaudiu Beznea      - enum:
19*71c61a45SClaudiu Beznea          - renesas,r9a08g045-rtca3 # RZ/G3S
20*71c61a45SClaudiu Beznea      - const: renesas,rz-rtca3
21*71c61a45SClaudiu Beznea
22*71c61a45SClaudiu Beznea  reg:
23*71c61a45SClaudiu Beznea    maxItems: 1
24*71c61a45SClaudiu Beznea
25*71c61a45SClaudiu Beznea  interrupts:
26*71c61a45SClaudiu Beznea    items:
27*71c61a45SClaudiu Beznea      - description: Alarm interrupt
28*71c61a45SClaudiu Beznea      - description: Periodic interrupt
29*71c61a45SClaudiu Beznea      - description: Carry interrupt
30*71c61a45SClaudiu Beznea
31*71c61a45SClaudiu Beznea  interrupt-names:
32*71c61a45SClaudiu Beznea    items:
33*71c61a45SClaudiu Beznea      - const: alarm
34*71c61a45SClaudiu Beznea      - const: period
35*71c61a45SClaudiu Beznea      - const: carry
36*71c61a45SClaudiu Beznea
37*71c61a45SClaudiu Beznea  clocks:
38*71c61a45SClaudiu Beznea    items:
39*71c61a45SClaudiu Beznea      - description: RTC bus clock
40*71c61a45SClaudiu Beznea      - description: RTC counter clock
41*71c61a45SClaudiu Beznea
42*71c61a45SClaudiu Beznea  clock-names:
43*71c61a45SClaudiu Beznea    items:
44*71c61a45SClaudiu Beznea      - const: bus
45*71c61a45SClaudiu Beznea      - const: counter
46*71c61a45SClaudiu Beznea
47*71c61a45SClaudiu Beznea  power-domains:
48*71c61a45SClaudiu Beznea    maxItems: 1
49*71c61a45SClaudiu Beznea
50*71c61a45SClaudiu Beznea  resets:
51*71c61a45SClaudiu Beznea    items:
52*71c61a45SClaudiu Beznea      - description: VBATTB module reset
53*71c61a45SClaudiu Beznea
54*71c61a45SClaudiu Beznearequired:
55*71c61a45SClaudiu Beznea  - compatible
56*71c61a45SClaudiu Beznea  - reg
57*71c61a45SClaudiu Beznea  - interrupts
58*71c61a45SClaudiu Beznea  - interrupt-names
59*71c61a45SClaudiu Beznea  - clocks
60*71c61a45SClaudiu Beznea  - clock-names
61*71c61a45SClaudiu Beznea  - power-domains
62*71c61a45SClaudiu Beznea  - resets
63*71c61a45SClaudiu Beznea
64*71c61a45SClaudiu BezneaadditionalProperties: false
65*71c61a45SClaudiu Beznea
66*71c61a45SClaudiu Bezneaexamples:
67*71c61a45SClaudiu Beznea  - |
68*71c61a45SClaudiu Beznea    #include <dt-bindings/clock/r9a08g045-cpg.h>
69*71c61a45SClaudiu Beznea    #include <dt-bindings/clock/renesas,r9a08g045-vbattb.h>
70*71c61a45SClaudiu Beznea    #include <dt-bindings/interrupt-controller/arm-gic.h>
71*71c61a45SClaudiu Beznea    #include <dt-bindings/interrupt-controller/irq.h>
72*71c61a45SClaudiu Beznea
73*71c61a45SClaudiu Beznea    rtc@1004ec00 {
74*71c61a45SClaudiu Beznea        compatible = "renesas,r9a08g045-rtca3", "renesas,rz-rtca3";
75*71c61a45SClaudiu Beznea        reg = <0x1004ec00 0x400>;
76*71c61a45SClaudiu Beznea        interrupts = <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH>,
77*71c61a45SClaudiu Beznea                     <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>,
78*71c61a45SClaudiu Beznea                     <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>;
79*71c61a45SClaudiu Beznea        interrupt-names = "alarm", "period", "carry";
80*71c61a45SClaudiu Beznea        clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattclk VBATTB_VBATTCLK>;
81*71c61a45SClaudiu Beznea        clock-names = "bus", "counter";
82*71c61a45SClaudiu Beznea        power-domains = <&cpg>;
83*71c61a45SClaudiu Beznea        resets = <&cpg R9A08G045_VBAT_BRESETN>;
84*71c61a45SClaudiu Beznea    };
85