Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 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 <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 | }; |