| 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 |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Miquel Raynal <[email protected]> |
| 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 |
minItems: 1 |
| 37 |
maxItems: 2 |
| 38 |
|
| 39 |
clock-names: |
| 40 |
minItems: 1 |
| 41 |
items: |
| 42 |
- const: hclk |
| 43 |
- const: xtal |
| 44 |
|
| 45 |
power-domains: |
| 46 |
maxItems: 1 |
| 47 |
|
| 48 |
required: |
| 49 |
- compatible |
| 50 |
- reg |
| 51 |
- interrupts |
| 52 |
- interrupt-names |
| 53 |
- clocks |
| 54 |
- clock-names |
| 55 |
- power-domains |
| 56 |
|
| 57 |
unevaluatedProperties: false |
| 58 |
|
| 59 |
examples: |
| 60 |
- | |
| 61 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 62 |
#include <dt-bindings/clock/r9a06g032-sysctrl.h> |
| 63 |
rtc@40006000 { |
| 64 |
compatible = "renesas,r9a06g032-rtc", "renesas,rzn1-rtc"; |
| 65 |
reg = <0x40006000 0x1000>; |
| 66 |
interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>, |
| 67 |
<GIC_SPI 67 IRQ_TYPE_EDGE_RISING>, |
| 68 |
<GIC_SPI 68 IRQ_TYPE_EDGE_RISING>; |
| 69 |
interrupt-names = "alarm", "timer", "pps"; |
| 70 |
clocks = <&sysctrl R9A06G032_HCLK_RTC>; |
| 71 |
clock-names = "hclk"; |
| 72 |
power-domains = <&sysctrl>; |
| 73 |
start-year = <2000>; |
| 74 |
}; |