base-files: define yes/no as valid boolean options
[openwrt.git] / target / linux / mvebu / patches-3.10 / 0194-clocksource-armada-370-xp-Add-detailed-clock-require.patch
1 From d569707433b26bb70f6b595a480bcfb3043a614c Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Tue, 20 Aug 2013 12:45:54 -0300
4 Subject: [PATCH 194/203] clocksource: armada-370-xp: Add detailed clock
5  requirements in devicetree binding
6
7 Specifies the required clock inputs for each supported compatible.
8 Armada 370 requires a single clock phandle, and Armada XP requires
9 two clock phandles with clock-names "nbclk" and "fixed".
10
11 Cc: devicetree@vger.kernel.org
12 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
13 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
14 Acked-by: Jason Cooper <jason@lakedaemon.net>
15 Acked-by: Stephen Warren <swarren@nvidia.com>
16 Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
17 ---
18  .../bindings/timer/marvell,armada-370-xp-timer.txt          | 13 +++++++++++--
19  1 file changed, 11 insertions(+), 2 deletions(-)
20
21 --- a/Documentation/devicetree/bindings/timer/marvell,armada-370-xp-timer.txt
22 +++ b/Documentation/devicetree/bindings/timer/marvell,armada-370-xp-timer.txt
23 @@ -9,8 +9,15 @@ Required properties:
24  - reg: Should contain location and length for timers register. First
25    pair for the Global Timer registers, second pair for the
26    local/private timers.
27 -- clocks: clock driving the timer hardware, only required for
28 -  "marvell,armada-370-timer";
29 +
30 +Clocks required for compatible = "marvell,armada-370-timer":
31 +- clocks : Must contain a single entry describing the clock input
32 +
33 +Clocks required for compatible = "marvell,armada-xp-timer":
34 +- clocks : Must contain an entry for each entry in clock-names.
35 +- clock-names : Must include the following entries:
36 +  "nbclk" (L2/coherency fabric clock),
37 +  "fixed" (Reference 25 MHz fixed-clock).
38  
39  Examples:
40  
41 @@ -29,4 +36,6 @@ Examples:
42                 compatible = "marvell,armada-xp-timer";
43                 reg = <0x20300 0x30>, <0x21040 0x30>;
44                 interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
45 +               clocks = <&coreclk 2>, <&refclk>;
46 +               clock-names = "nbclk", "fixed";
47         };