18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/rtc/renesas,sh-rtc.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Real Time Clock for Renesas SH and ARM SoCs 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Chris Brandt <chris.brandt@renesas.com> 118c2ecf20Sopenharmony_ci - Geert Uytterhoeven <geert+renesas@glider.be> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciproperties: 148c2ecf20Sopenharmony_ci compatible: 158c2ecf20Sopenharmony_ci items: 168c2ecf20Sopenharmony_ci - const: renesas,r7s72100-rtc # RZ/A1H 178c2ecf20Sopenharmony_ci - const: renesas,sh-rtc 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci reg: 208c2ecf20Sopenharmony_ci maxItems: 1 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci interrupts: 238c2ecf20Sopenharmony_ci maxItems: 3 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci interrupt-names: 268c2ecf20Sopenharmony_ci items: 278c2ecf20Sopenharmony_ci - const: alarm 288c2ecf20Sopenharmony_ci - const: period 298c2ecf20Sopenharmony_ci - const: carry 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci clocks: 328c2ecf20Sopenharmony_ci # The functional clock source for the RTC controller must be listed 338c2ecf20Sopenharmony_ci # first (if it exists). Additionally, potential clock counting sources 348c2ecf20Sopenharmony_ci # are to be listed. 358c2ecf20Sopenharmony_ci minItems: 1 368c2ecf20Sopenharmony_ci maxItems: 4 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci clock-names: 398c2ecf20Sopenharmony_ci # The functional clock must be labeled as "fck". Other clocks 408c2ecf20Sopenharmony_ci # may be named in accordance to the SoC hardware manuals. 418c2ecf20Sopenharmony_ci minItems: 1 428c2ecf20Sopenharmony_ci maxItems: 4 438c2ecf20Sopenharmony_ci items: 448c2ecf20Sopenharmony_ci enum: [ fck, rtc_x1, rtc_x3, extal ] 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci power-domains: 478c2ecf20Sopenharmony_ci maxItems: 1 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_cirequired: 508c2ecf20Sopenharmony_ci - compatible 518c2ecf20Sopenharmony_ci - reg 528c2ecf20Sopenharmony_ci - interrupts 538c2ecf20Sopenharmony_ci - interrupt-names 548c2ecf20Sopenharmony_ci - clocks 558c2ecf20Sopenharmony_ci - clock-names 568c2ecf20Sopenharmony_ci - power-domains 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ciadditionalProperties: false 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ciexamples: 618c2ecf20Sopenharmony_ci - | 628c2ecf20Sopenharmony_ci #include <dt-bindings/clock/r7s72100-clock.h> 638c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/arm-gic.h> 648c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/irq.h> 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci rtc: rtc@fcff1000 { 678c2ecf20Sopenharmony_ci compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc"; 688c2ecf20Sopenharmony_ci reg = <0xfcff1000 0x2e>; 698c2ecf20Sopenharmony_ci interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>, 708c2ecf20Sopenharmony_ci <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>, 718c2ecf20Sopenharmony_ci <GIC_SPI 278 IRQ_TYPE_EDGE_RISING>; 728c2ecf20Sopenharmony_ci interrupt-names = "alarm", "period", "carry"; 738c2ecf20Sopenharmony_ci clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>, 748c2ecf20Sopenharmony_ci <&rtc_x3_clk>, <&extal_clk>; 758c2ecf20Sopenharmony_ci power-domains = <&cpg_clocks>; 768c2ecf20Sopenharmony_ci clock-names = "fck", "rtc_x1", "rtc_x3", "extal"; 778c2ecf20Sopenharmony_ci }; 78