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