diff options
author | Scott Wood <scottwood@freescale.com> | 2011-03-24 17:43:15 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-05-19 02:14:25 -0400 |
commit | 180076cb11a5f02de7d26f8cb82969b895a26f40 (patch) | |
tree | f10a72393e40d2c79da00019a2afc0c4b6219edc /Documentation/devicetree | |
parent | f46dad270b7f425d7d4ec08676f2513732d11c2b (diff) |
powerpc: Add fsl mpic timer binding
Update the existing example in the general mpic binding to have a
separate TCRx region. Currently the example doesn't describe TCRx at
all. The one upstream device tree with an mpic timer node (p1022ds)
uses one large reg region to describe both, even though there are other
unrelated registers in between. That device tree also contains a bogus
interrupt specifier, and there's no upstream software that uses this yet,
so changing this shouldn't be a problem.
Add a full binding for the MPIC timer node, not just an example of
4-cell interrupts in the MPIC binding.
Add fsl,available-ranges, similar to msi-available-ranges.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/powerpc/fsl/mpic-timer.txt | 38 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/powerpc/fsl/mpic.txt | 2 |
2 files changed, 39 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/powerpc/fsl/mpic-timer.txt b/Documentation/devicetree/bindings/powerpc/fsl/mpic-timer.txt new file mode 100644 index 000000000000..df41958140e8 --- /dev/null +++ b/Documentation/devicetree/bindings/powerpc/fsl/mpic-timer.txt | |||
@@ -0,0 +1,38 @@ | |||
1 | * Freescale MPIC timers | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "fsl,mpic-global-timer" | ||
5 | |||
6 | - reg : Contains two regions. The first is the main timer register bank | ||
7 | (GTCCRxx, GTBCRxx, GTVPRxx, GTDRxx). The second is the timer control | ||
8 | register (TCRx) for the group. | ||
9 | |||
10 | - fsl,available-ranges: use <start count> style section to define which | ||
11 | timer interrupts can be used. This property is optional; without this, | ||
12 | all timers within the group can be used. | ||
13 | |||
14 | - interrupts: one interrupt per timer in the group, in order, starting | ||
15 | with timer zero. If timer-available-ranges is present, only the | ||
16 | interrupts that correspond to available timers shall be present. | ||
17 | |||
18 | Example: | ||
19 | /* Note that this requires #interrupt-cells to be 4 */ | ||
20 | timer0: timer@41100 { | ||
21 | compatible = "fsl,mpic-global-timer"; | ||
22 | reg = <0x41100 0x100 0x41300 4>; | ||
23 | |||
24 | /* Another AMP partition is using timers 0 and 1 */ | ||
25 | fsl,available-ranges = <2 2>; | ||
26 | |||
27 | interrupts = <2 0 3 0 | ||
28 | 3 0 3 0>; | ||
29 | }; | ||
30 | |||
31 | timer1: timer@42100 { | ||
32 | compatible = "fsl,mpic-global-timer"; | ||
33 | reg = <0x42100 0x100 0x42300 4>; | ||
34 | interrupts = <4 0 3 0 | ||
35 | 5 0 3 0 | ||
36 | 6 0 3 0 | ||
37 | 7 0 3 0>; | ||
38 | }; | ||
diff --git a/Documentation/devicetree/bindings/powerpc/fsl/mpic.txt b/Documentation/devicetree/bindings/powerpc/fsl/mpic.txt index 4f6145859aab..2cf38bd841fd 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/mpic.txt +++ b/Documentation/devicetree/bindings/powerpc/fsl/mpic.txt | |||
@@ -190,7 +190,7 @@ EXAMPLE 4 | |||
190 | */ | 190 | */ |
191 | timer0: timer@41100 { | 191 | timer0: timer@41100 { |
192 | compatible = "fsl,mpic-global-timer"; | 192 | compatible = "fsl,mpic-global-timer"; |
193 | reg = <0x41100 0x100>; | 193 | reg = <0x41100 0x100 0x41300 4>; |
194 | interrupts = <0 0 3 0 | 194 | interrupts = <0 0 3 0 |
195 | 1 0 3 0 | 195 | 1 0 3 0 |
196 | 2 0 3 0 | 196 | 2 0 3 0 |