aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-03-24 17:32:33 -0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2017-04-07 10:23:07 -0400
commitbb0c6bb3b71cec4b00c3fb1c055f92ad05b905db (patch)
treeb2a9e92407ff5653aaf8520a8fe2240aff413529
parent500d0aa918a2ea6bb918fee8adcf27dc2912bcd1 (diff)
clocksource: Augment bindings for Faraday timer
It turns out that the Cortina Gemini timer block is just a standard IP block from Faraday Technology named FTTMR010. In order to make things clear and understandable, we rename the bindings with a Faraday compatible as primary and the Cortina gemini as a more specific case. For the plain Faraday timer we require two clock references, while the Gemini can keep it's syscon lookup pattern. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Rob Herring <robh@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt22
-rw-r--r--Documentation/devicetree/bindings/timer/faraday,fttmr010.txt33
2 files changed, 33 insertions, 22 deletions
diff --git a/Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt b/Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt
deleted file mode 100644
index 16ea1d3b2e9e..000000000000
--- a/Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt
+++ /dev/null
@@ -1,22 +0,0 @@
1Cortina Systems Gemini timer
2
3This timer is embedded in the Cortina Systems Gemini SoCs.
4
5Required properties:
6
7- compatible : Must be "cortina,gemini-timer"
8- reg : Should contain registers location and length
9- interrupts : Should contain the three timer interrupts with
10 flags for rising edge
11- syscon : a phandle to the global Gemini system controller
12
13Example:
14
15timer@43000000 {
16 compatible = "cortina,gemini-timer";
17 reg = <0x43000000 0x1000>;
18 interrupts = <14 IRQ_TYPE_EDGE_RISING>, /* Timer 1 */
19 <15 IRQ_TYPE_EDGE_RISING>, /* Timer 2 */
20 <16 IRQ_TYPE_EDGE_RISING>; /* Timer 3 */
21 syscon = <&syscon>;
22};
diff --git a/Documentation/devicetree/bindings/timer/faraday,fttmr010.txt b/Documentation/devicetree/bindings/timer/faraday,fttmr010.txt
new file mode 100644
index 000000000000..b73ca6cd07f8
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/faraday,fttmr010.txt
@@ -0,0 +1,33 @@
1Faraday Technology timer
2
3This timer is a generic IP block from Faraday Technology, embedded in the
4Cortina Systems Gemini SoCs and other designs.
5
6Required properties:
7
8- compatible : Must be one of
9 "faraday,fttmr010"
10 "cortina,gemini-timer"
11- reg : Should contain registers location and length
12- interrupts : Should contain the three timer interrupts usually with
13 flags for falling edge
14
15Optionally required properties:
16
17- clocks : a clock to provide the tick rate for "faraday,fttmr010"
18- clock-names : should be "EXTCLK" and "PCLK" for the external tick timer
19 and peripheral clock respectively, for "faraday,fttmr010"
20- syscon : a phandle to the global Gemini system controller if the compatible
21 type is "cortina,gemini-timer"
22
23Example:
24
25timer@43000000 {
26 compatible = "faraday,fttmr010";
27 reg = <0x43000000 0x1000>;
28 interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */
29 <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */
30 <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */
31 clocks = <&extclk>, <&pclk>;
32 clock-names = "EXTCLK", "PCLK";
33};