diff options
author | Chris Brandt <chris.brandt@renesas.com> | 2017-03-29 13:30:30 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-04-03 12:01:41 -0400 |
commit | 04767b9fc2315c90a1e4bfdee883c0cbc122f30f (patch) | |
tree | 2ea15534d54439e6a7cf960915427240468b7bff /Documentation | |
parent | dab5aec64bf5907f65926675807e4ebe83b3b10e (diff) |
dt-bindings: rtc: document the rtc-sh bindings
Add the binding documentation for rtc-sh which is an RTC for
SuperH and RZ/A SoCs.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/rtc/rtc-sh.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/rtc/rtc-sh.txt b/Documentation/devicetree/bindings/rtc/rtc-sh.txt new file mode 100644 index 000000000000..7676c7d28874 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/rtc-sh.txt | |||
@@ -0,0 +1,28 @@ | |||
1 | * Real Time Clock for Renesas SH and ARM SoCs | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Should be "renesas,r7s72100-rtc" and "renesas,sh-rtc" as a | ||
5 | fallback. | ||
6 | - reg: physical base address and length of memory mapped region. | ||
7 | - interrupts: 3 interrupts for alarm, period, and carry. | ||
8 | - interrupt-names: The interrupts should be labeled as "alarm", "period", and | ||
9 | "carry". | ||
10 | - clocks: The functional clock source for the RTC controller must be listed | ||
11 | first (if exists). Additionally, potential clock counting sources are to be | ||
12 | listed. | ||
13 | - clock-names: The functional clock must be labeled as "fck". Other clocks | ||
14 | may be named in accordance to the SoC hardware manuals. | ||
15 | |||
16 | |||
17 | Example: | ||
18 | rtc: rtc@fcff1000 { | ||
19 | compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc"; | ||
20 | reg = <0xfcff1000 0x2e>; | ||
21 | interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING | ||
22 | GIC_SPI 277 IRQ_TYPE_EDGE_RISING | ||
23 | GIC_SPI 278 IRQ_TYPE_EDGE_RISING>; | ||
24 | interrupt-names = "alarm", "period", "carry"; | ||
25 | clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>, | ||
26 | <&rtc_x3_clk>, <&extal_clk>; | ||
27 | clock-names = "fck", "rtc_x1", "rtc_x3", "extal"; | ||
28 | }; | ||