summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/rtc/renesas,rz-rtca3.yaml
blob: e70eeb66aa648ba90f4550e4d22de9e683142783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/rtc/renesas,rz-rtca3.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Renesas RTCA-3 Real Time Clock

maintainers:
  - Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>

allOf:
  - $ref: rtc.yaml#

properties:
  compatible:
    items:
      - enum:
          - renesas,r9a08g045-rtca3 # RZ/G3S
      - const: renesas,rz-rtca3

  reg:
    maxItems: 1

  interrupts:
    items:
      - description: Alarm interrupt
      - description: Periodic interrupt
      - description: Carry interrupt

  interrupt-names:
    items:
      - const: alarm
      - const: period
      - const: carry

  clocks:
    items:
      - description: RTC bus clock
      - description: RTC counter clock

  clock-names:
    items:
      - const: bus
      - const: counter

  power-domains:
    maxItems: 1

  resets:
    items:
      - description: VBATTB module reset

required:
  - compatible
  - reg
  - interrupts
  - interrupt-names
  - clocks
  - clock-names
  - power-domains
  - resets

additionalProperties: false

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>;
    };