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