xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/renesas,rzn1-rtc.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2d5b0e70fSEmmanuel Vadot%YAML 1.2
3d5b0e70fSEmmanuel Vadot---
4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/renesas,rzn1-rtc.yaml#
5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6d5b0e70fSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Renesas RZ/N1 SoCs Real-Time Clock
8d5b0e70fSEmmanuel Vadot
9d5b0e70fSEmmanuel Vadotmaintainers:
10d5b0e70fSEmmanuel Vadot  - Miquel Raynal <miquel.raynal@bootlin.com>
11d5b0e70fSEmmanuel Vadot
12d5b0e70fSEmmanuel VadotallOf:
13d5b0e70fSEmmanuel Vadot  - $ref: rtc.yaml#
14d5b0e70fSEmmanuel Vadot
15d5b0e70fSEmmanuel Vadotproperties:
16d5b0e70fSEmmanuel Vadot  compatible:
17d5b0e70fSEmmanuel Vadot    items:
18d5b0e70fSEmmanuel Vadot      - enum:
19d5b0e70fSEmmanuel Vadot          - renesas,r9a06g032-rtc
20d5b0e70fSEmmanuel Vadot      - const: renesas,rzn1-rtc
21d5b0e70fSEmmanuel Vadot
22d5b0e70fSEmmanuel Vadot  reg:
23d5b0e70fSEmmanuel Vadot    maxItems: 1
24d5b0e70fSEmmanuel Vadot
25d5b0e70fSEmmanuel Vadot  interrupts:
26d5b0e70fSEmmanuel Vadot    minItems: 3
27d5b0e70fSEmmanuel Vadot    maxItems: 3
28d5b0e70fSEmmanuel Vadot
29d5b0e70fSEmmanuel Vadot  interrupt-names:
30d5b0e70fSEmmanuel Vadot    items:
31d5b0e70fSEmmanuel Vadot      - const: alarm
32d5b0e70fSEmmanuel Vadot      - const: timer
33d5b0e70fSEmmanuel Vadot      - const: pps
34d5b0e70fSEmmanuel Vadot
35d5b0e70fSEmmanuel Vadot  clocks:
36d5b0e70fSEmmanuel Vadot    maxItems: 1
37d5b0e70fSEmmanuel Vadot
38d5b0e70fSEmmanuel Vadot  clock-names:
39d5b0e70fSEmmanuel Vadot    const: hclk
40d5b0e70fSEmmanuel Vadot
41d5b0e70fSEmmanuel Vadot  power-domains:
42d5b0e70fSEmmanuel Vadot    maxItems: 1
43d5b0e70fSEmmanuel Vadot
44d5b0e70fSEmmanuel Vadotrequired:
45d5b0e70fSEmmanuel Vadot  - compatible
46d5b0e70fSEmmanuel Vadot  - reg
47d5b0e70fSEmmanuel Vadot  - interrupts
48d5b0e70fSEmmanuel Vadot  - interrupt-names
49d5b0e70fSEmmanuel Vadot  - clocks
50d5b0e70fSEmmanuel Vadot  - clock-names
51d5b0e70fSEmmanuel Vadot  - power-domains
52d5b0e70fSEmmanuel Vadot
53d5b0e70fSEmmanuel VadotunevaluatedProperties: false
54d5b0e70fSEmmanuel Vadot
55d5b0e70fSEmmanuel Vadotexamples:
56d5b0e70fSEmmanuel Vadot  - |
57d5b0e70fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
58d5b0e70fSEmmanuel Vadot    #include <dt-bindings/clock/r9a06g032-sysctrl.h>
59d5b0e70fSEmmanuel Vadot    rtc@40006000 {
60d5b0e70fSEmmanuel Vadot       compatible = "renesas,r9a06g032-rtc", "renesas,rzn1-rtc";
61d5b0e70fSEmmanuel Vadot       reg = <0x40006000 0x1000>;
62d5b0e70fSEmmanuel Vadot       interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>,
63d5b0e70fSEmmanuel Vadot                    <GIC_SPI 67 IRQ_TYPE_EDGE_RISING>,
64d5b0e70fSEmmanuel Vadot                    <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
65d5b0e70fSEmmanuel Vadot       interrupt-names = "alarm", "timer", "pps";
66d5b0e70fSEmmanuel Vadot       clocks = <&sysctrl R9A06G032_HCLK_RTC>;
67d5b0e70fSEmmanuel Vadot       clock-names = "hclk";
68d5b0e70fSEmmanuel Vadot       power-domains = <&sysctrl>;
69d5b0e70fSEmmanuel Vadot       start-year = <2000>;
70d5b0e70fSEmmanuel Vadot     };
71