1# SPDX-License-Identifier: GPL-2.0 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/rtc/renesas,sh-rtc.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Real Time Clock for Renesas SH and ARM SoCs 8 9maintainers: 10 - Chris Brandt <chris.brandt@renesas.com> 11 - Geert Uytterhoeven <geert+renesas@glider.be> 12 13properties: 14 compatible: 15 items: 16 - const: renesas,r7s72100-rtc # RZ/A1H 17 - const: renesas,sh-rtc 18 19 reg: 20 maxItems: 1 21 22 interrupts: 23 maxItems: 3 24 25 interrupt-names: 26 items: 27 - const: alarm 28 - const: period 29 - const: carry 30 31 clocks: 32 # The functional clock source for the RTC controller must be listed 33 # first (if it exists). Additionally, potential clock counting sources 34 # are to be listed. 35 minItems: 1 36 maxItems: 4 37 38 clock-names: 39 # The functional clock must be labeled as "fck". Other clocks 40 # may be named in accordance to the SoC hardware manuals. 41 minItems: 1 42 maxItems: 4 43 items: 44 enum: [ fck, rtc_x1, rtc_x3, extal ] 45 46required: 47 - compatible 48 - reg 49 - interrupts 50 - interrupt-names 51 - clocks 52 - clock-names 53 54examples: 55 - | 56 #include <dt-bindings/clock/r7s72100-clock.h> 57 #include <dt-bindings/interrupt-controller/arm-gic.h> 58 #include <dt-bindings/interrupt-controller/irq.h> 59 60 rtc: rtc@fcff1000 { 61 compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc"; 62 reg = <0xfcff1000 0x2e>; 63 interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>, 64 <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>, 65 <GIC_SPI 278 IRQ_TYPE_EDGE_RISING>; 66 interrupt-names = "alarm", "period", "carry"; 67 clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>, 68 <&rtc_x3_clk>, <&extal_clk>; 69 clock-names = "fck", "rtc_x1", "rtc_x3", "extal"; 70 }; 71