gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / Documentation / devicetree / bindings / rtc / renesas,sh-rtc.yaml
blobb95cb017f469613eb175e2187d48ab09ad486c1e
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#
7 title: Real Time Clock for Renesas SH and ARM SoCs
9 maintainers:
10   - Chris Brandt <chris.brandt@renesas.com>
11   - Geert Uytterhoeven <geert+renesas@glider.be>
13 properties:
14   compatible:
15     items:
16       - const: renesas,r7s72100-rtc  # RZ/A1H
17       - const: renesas,sh-rtc
19   reg:
20     maxItems: 1
22   interrupts:
23     maxItems: 3
25   interrupt-names:
26     items:
27       - const: alarm
28       - const: period
29       - const: carry
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
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 ]
46 required:
47   - compatible
48   - reg
49   - interrupts
50   - interrupt-names
51   - clocks
52   - clock-names
54 additionalProperties: false
56 examples:
57   - |
58     #include <dt-bindings/clock/r7s72100-clock.h>
59     #include <dt-bindings/interrupt-controller/arm-gic.h>
60     #include <dt-bindings/interrupt-controller/irq.h>
62     rtc: rtc@fcff1000 {
63         compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc";
64         reg = <0xfcff1000 0x2e>;
65         interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>,
66                      <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>,
67                      <GIC_SPI 278 IRQ_TYPE_EDGE_RISING>;
68         interrupt-names = "alarm", "period", "carry";
69         clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>,
70                  <&rtc_x3_clk>, <&extal_clk>;
71         clock-names = "fck", "rtc_x1", "rtc_x3", "extal";
72     };