Skip to content

Commit 4c4d145

Browse files
miquelraynalalexandrebelloni
authored andcommitted
dt-bindings: rtc: rzn1: Describe the RZN1 RTC
Add new binding file for this RTC. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220516082504.33913-2-miquel.raynal@bootlin.com
1 parent 581d6d8 commit 4c4d145

File tree

1 file changed

+70
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)