xref: /openbmc/linux/Documentation/devicetree/bindings/rtc/renesas,sh-rtc.yaml (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
17ae8b2f5SSimon Horman# SPDX-License-Identifier: GPL-2.0
27ae8b2f5SSimon Horman%YAML 1.2
37ae8b2f5SSimon Horman---
47ae8b2f5SSimon Horman$id: http://devicetree.org/schemas/rtc/renesas,sh-rtc.yaml#
57ae8b2f5SSimon Horman$schema: http://devicetree.org/meta-schemas/core.yaml#
67ae8b2f5SSimon Horman
77ae8b2f5SSimon Hormantitle: Real Time Clock for Renesas SH and ARM SoCs
87ae8b2f5SSimon Horman
97ae8b2f5SSimon Hormanmaintainers:
107ae8b2f5SSimon Horman  - Chris Brandt <chris.brandt@renesas.com>
117ae8b2f5SSimon Horman  - Geert Uytterhoeven <geert+renesas@glider.be>
127ae8b2f5SSimon Horman
137ae8b2f5SSimon Hormanproperties:
147ae8b2f5SSimon Horman  compatible:
157ae8b2f5SSimon Horman    items:
167ae8b2f5SSimon Horman      - const: renesas,r7s72100-rtc  # RZ/A1H
177ae8b2f5SSimon Horman      - const: renesas,sh-rtc
187ae8b2f5SSimon Horman
197ae8b2f5SSimon Horman  reg:
207ae8b2f5SSimon Horman    maxItems: 1
217ae8b2f5SSimon Horman
227ae8b2f5SSimon Horman  interrupts:
237ae8b2f5SSimon Horman    maxItems: 3
247ae8b2f5SSimon Horman
257ae8b2f5SSimon Horman  interrupt-names:
267ae8b2f5SSimon Horman    items:
277ae8b2f5SSimon Horman      - const: alarm
287ae8b2f5SSimon Horman      - const: period
297ae8b2f5SSimon Horman      - const: carry
307ae8b2f5SSimon Horman
317ae8b2f5SSimon Horman  clocks:
327ae8b2f5SSimon Horman    # The functional clock source for the RTC controller must be listed
337ae8b2f5SSimon Horman    # first (if it exists). Additionally, potential clock counting sources
347ae8b2f5SSimon Horman    # are to be listed.
357ae8b2f5SSimon Horman    minItems: 1
367ae8b2f5SSimon Horman    maxItems: 4
377ae8b2f5SSimon Horman
387ae8b2f5SSimon Horman  clock-names:
397ae8b2f5SSimon Horman    # The functional clock must be labeled as "fck". Other clocks
407ae8b2f5SSimon Horman    # may be named in accordance to the SoC hardware manuals.
417ae8b2f5SSimon Horman    minItems: 1
427ae8b2f5SSimon Horman    maxItems: 4
437ae8b2f5SSimon Horman    items:
447ae8b2f5SSimon Horman      enum: [ fck, rtc_x1, rtc_x3, extal ]
457ae8b2f5SSimon Horman
46*ccc5d0c9SGeert Uytterhoeven  power-domains:
47*ccc5d0c9SGeert Uytterhoeven    maxItems: 1
48*ccc5d0c9SGeert Uytterhoeven
497ae8b2f5SSimon Hormanrequired:
507ae8b2f5SSimon Horman  - compatible
517ae8b2f5SSimon Horman  - reg
527ae8b2f5SSimon Horman  - interrupts
537ae8b2f5SSimon Horman  - interrupt-names
547ae8b2f5SSimon Horman  - clocks
557ae8b2f5SSimon Horman  - clock-names
56*ccc5d0c9SGeert Uytterhoeven  - power-domains
577ae8b2f5SSimon Horman
587f464532SRob HerringadditionalProperties: false
597f464532SRob Herring
607ae8b2f5SSimon Hormanexamples:
617ae8b2f5SSimon Horman  - |
627ae8b2f5SSimon Horman    #include <dt-bindings/clock/r7s72100-clock.h>
637ae8b2f5SSimon Horman    #include <dt-bindings/interrupt-controller/arm-gic.h>
647ae8b2f5SSimon Horman    #include <dt-bindings/interrupt-controller/irq.h>
657ae8b2f5SSimon Horman
667ae8b2f5SSimon Horman    rtc: rtc@fcff1000 {
677ae8b2f5SSimon Horman        compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc";
687ae8b2f5SSimon Horman        reg = <0xfcff1000 0x2e>;
697ae8b2f5SSimon Horman        interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>,
707ae8b2f5SSimon Horman                     <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>,
717ae8b2f5SSimon Horman                     <GIC_SPI 278 IRQ_TYPE_EDGE_RISING>;
727ae8b2f5SSimon Horman        interrupt-names = "alarm", "period", "carry";
737ae8b2f5SSimon Horman        clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>,
747ae8b2f5SSimon Horman                 <&rtc_x3_clk>, <&extal_clk>;
75*ccc5d0c9SGeert Uytterhoeven        power-domains = <&cpg_clocks>;
767ae8b2f5SSimon Horman        clock-names = "fck", "rtc_x1", "rtc_x3", "extal";
777ae8b2f5SSimon Horman    };
78