diff options
Diffstat (limited to 'Documentation/devicetree/bindings/powerpc')
3 files changed, 115 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/powerpc/fsl/ifc.txt b/Documentation/devicetree/bindings/powerpc/fsl/ifc.txt new file mode 100644 index 00000000000..939a26d541f --- /dev/null +++ b/Documentation/devicetree/bindings/powerpc/fsl/ifc.txt | |||
@@ -0,0 +1,76 @@ | |||
1 | Integrated Flash Controller | ||
2 | |||
3 | Properties: | ||
4 | - name : Should be ifc | ||
5 | - compatible : should contain "fsl,ifc". The version of the integrated | ||
6 | flash controller can be found in the IFC_REV register at | ||
7 | offset zero. | ||
8 | |||
9 | - #address-cells : Should be either two or three. The first cell is the | ||
10 | chipselect number, and the remaining cells are the | ||
11 | offset into the chipselect. | ||
12 | - #size-cells : Either one or two, depending on how large each chipselect | ||
13 | can be. | ||
14 | - reg : Offset and length of the register set for the device | ||
15 | - interrupts : IFC has two interrupts. The first one is the "common" | ||
16 | interrupt(CM_EVTER_STAT), and second is the NAND interrupt | ||
17 | (NAND_EVTER_STAT). | ||
18 | |||
19 | - ranges : Each range corresponds to a single chipselect, and covers | ||
20 | the entire access window as configured. | ||
21 | |||
22 | Child device nodes describe the devices connected to IFC such as NOR (e.g. | ||
23 | cfi-flash) and NAND (fsl,ifc-nand). There might be board specific devices | ||
24 | like FPGAs, CPLDs, etc. | ||
25 | |||
26 | Example: | ||
27 | |||
28 | ifc@ffe1e000 { | ||
29 | compatible = "fsl,ifc", "simple-bus"; | ||
30 | #address-cells = <2>; | ||
31 | #size-cells = <1>; | ||
32 | reg = <0x0 0xffe1e000 0 0x2000>; | ||
33 | interrupts = <16 2 19 2>; | ||
34 | |||
35 | /* NOR, NAND Flashes and CPLD on board */ | ||
36 | ranges = <0x0 0x0 0x0 0xee000000 0x02000000 | ||
37 | 0x1 0x0 0x0 0xffa00000 0x00010000 | ||
38 | 0x3 0x0 0x0 0xffb00000 0x00020000>; | ||
39 | |||
40 | flash@0,0 { | ||
41 | #address-cells = <1>; | ||
42 | #size-cells = <1>; | ||
43 | compatible = "cfi-flash"; | ||
44 | reg = <0x0 0x0 0x2000000>; | ||
45 | bank-width = <2>; | ||
46 | device-width = <1>; | ||
47 | |||
48 | partition@0 { | ||
49 | /* 32MB for user data */ | ||
50 | reg = <0x0 0x02000000>; | ||
51 | label = "NOR Data"; | ||
52 | }; | ||
53 | }; | ||
54 | |||
55 | flash@1,0 { | ||
56 | #address-cells = <1>; | ||
57 | #size-cells = <1>; | ||
58 | compatible = "fsl,ifc-nand"; | ||
59 | reg = <0x1 0x0 0x10000>; | ||
60 | |||
61 | partition@0 { | ||
62 | /* This location must not be altered */ | ||
63 | /* 1MB for u-boot Bootloader Image */ | ||
64 | reg = <0x0 0x00100000>; | ||
65 | label = "NAND U-Boot Image"; | ||
66 | read-only; | ||
67 | }; | ||
68 | }; | ||
69 | |||
70 | cpld@3,0 { | ||
71 | #address-cells = <1>; | ||
72 | #size-cells = <1>; | ||
73 | compatible = "fsl,p1010rdb-cpld"; | ||
74 | reg = <0x3 0x0 0x000001f>; | ||
75 | }; | ||
76 | }; | ||
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 00000000000..df41958140e --- /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 4f6145859aa..2cf38bd841f 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 |