diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-11-09 15:53:33 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 03:01:38 -0500 |
commit | b0e2f248b4ed6aea3191c3419e6f70407d53d8d8 (patch) | |
tree | 27e3c1d52628891fed3e06f9289d0890a14dd99a /arch/powerpc/boot/dts/fsl | |
parent | ab827d97bd5c7aa3ccf637161d22a6329fb24a02 (diff) |
powerpc/85xx: Rework P1023RDS device tree
Utilize new split between board & SoC, and new SoC device trees split
into pre & post utilizing 'template' includes for SoC IP blocks.
Other changes include:
* Moved to specifying interrupt-parent for mpic at root
* Moved to 4-cell mpic interrupt cells to support MPIC timers
* Dropping "fsl,p1023-IP..." from compatibles for standard blocks
* Removed incorrect power/pmc node, there are no etsec on P1023
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/dts/fsl')
-rw-r--r-- | arch/powerpc/boot/dts/fsl/p1023si-post.dtsi | 224 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/fsl/p1023si-pre.dtsi | 76 |
2 files changed, 300 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/fsl/p1023si-post.dtsi b/arch/powerpc/boot/dts/fsl/p1023si-post.dtsi new file mode 100644 index 000000000000..b06bb4cc1fe8 --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/p1023si-post.dtsi | |||
@@ -0,0 +1,224 @@ | |||
1 | /* | ||
2 | * P1023/P1017 Silicon/SoC Device Tree Source (post include) | ||
3 | * | ||
4 | * Copyright 2011 Freescale Semiconductor Inc. | ||
5 | * | ||
6 | * Redistribution and use in source and binary forms, with or without | ||
7 | * modification, are permitted provided that the following conditions are met: | ||
8 | * * Redistributions of source code must retain the above copyright | ||
9 | * notice, this list of conditions and the following disclaimer. | ||
10 | * * Redistributions in binary form must reproduce the above copyright | ||
11 | * notice, this list of conditions and the following disclaimer in the | ||
12 | * documentation and/or other materials provided with the distribution. | ||
13 | * * Neither the name of Freescale Semiconductor nor the | ||
14 | * names of its contributors may be used to endorse or promote products | ||
15 | * derived from this software without specific prior written permission. | ||
16 | * | ||
17 | * | ||
18 | * ALTERNATIVELY, this software may be distributed under the terms of the | ||
19 | * GNU General Public License ("GPL") as published by the Free Software | ||
20 | * Foundation, either version 2 of that License or (at your option) any | ||
21 | * later version. | ||
22 | * | ||
23 | * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY | ||
24 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
25 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
26 | * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY | ||
27 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
28 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
29 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
30 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
32 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
33 | */ | ||
34 | |||
35 | &lbc { | ||
36 | #address-cells = <2>; | ||
37 | #size-cells = <1>; | ||
38 | compatible = "fsl,p1023-elbc", "fsl,elbc", "simple-bus"; | ||
39 | interrupts = <19 2 0 0>; | ||
40 | }; | ||
41 | |||
42 | /* controller at 0xa000 */ | ||
43 | &pci0 { | ||
44 | compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; | ||
45 | device_type = "pci"; | ||
46 | #size-cells = <2>; | ||
47 | #address-cells = <3>; | ||
48 | bus-range = <0x0 0xff>; | ||
49 | clock-frequency = <33333333>; | ||
50 | interrupts = <16 2 0 0>; | ||
51 | pcie@0 { | ||
52 | reg = <0 0 0 0 0>; | ||
53 | #interrupt-cells = <1>; | ||
54 | #size-cells = <2>; | ||
55 | #address-cells = <3>; | ||
56 | device_type = "pci"; | ||
57 | interrupts = <16 2 0 0>; | ||
58 | }; | ||
59 | }; | ||
60 | |||
61 | /* controller at 0x9000 */ | ||
62 | &pci1 { | ||
63 | compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; | ||
64 | device_type = "pci"; | ||
65 | #size-cells = <2>; | ||
66 | #address-cells = <3>; | ||
67 | bus-range = <0 0xff>; | ||
68 | clock-frequency = <33333333>; | ||
69 | interrupts = <16 2 0 0>; | ||
70 | pcie@0 { | ||
71 | reg = <0 0 0 0 0>; | ||
72 | #interrupt-cells = <1>; | ||
73 | #size-cells = <2>; | ||
74 | #address-cells = <3>; | ||
75 | device_type = "pci"; | ||
76 | interrupts = <16 2 0 0>; | ||
77 | }; | ||
78 | }; | ||
79 | |||
80 | /* controller at 0xb000 */ | ||
81 | &pci2 { | ||
82 | compatible = "fsl,p1023-pcie", "fsl,qoriq-pcie-v2.2"; | ||
83 | device_type = "pci"; | ||
84 | #size-cells = <2>; | ||
85 | #address-cells = <3>; | ||
86 | bus-range = <0x0 0xff>; | ||
87 | clock-frequency = <33333333>; | ||
88 | interrupts = <16 2 0 0>; | ||
89 | pcie@0 { | ||
90 | reg = <0 0 0 0 0>; | ||
91 | #interrupt-cells = <1>; | ||
92 | #size-cells = <2>; | ||
93 | #address-cells = <3>; | ||
94 | device_type = "pci"; | ||
95 | interrupts = <16 2 0 0>; | ||
96 | }; | ||
97 | }; | ||
98 | |||
99 | &soc { | ||
100 | #address-cells = <1>; | ||
101 | #size-cells = <1>; | ||
102 | device_type = "soc"; | ||
103 | compatible = "fsl,p1023-immr", "simple-bus"; | ||
104 | bus-frequency = <0>; // Filled out by uboot. | ||
105 | |||
106 | ecm-law@0 { | ||
107 | compatible = "fsl,ecm-law"; | ||
108 | reg = <0x0 0x1000>; | ||
109 | fsl,num-laws = <12>; | ||
110 | }; | ||
111 | |||
112 | ecm@1000 { | ||
113 | compatible = "fsl,p1023-ecm", "fsl,ecm"; | ||
114 | reg = <0x1000 0x1000>; | ||
115 | interrupts = <16 2 0 0>; | ||
116 | }; | ||
117 | |||
118 | memory-controller@2000 { | ||
119 | compatible = "fsl,p1023-memory-controller"; | ||
120 | reg = <0x2000 0x1000>; | ||
121 | interrupts = <16 2 0 0>; | ||
122 | }; | ||
123 | |||
124 | /include/ "pq3-i2c-0.dtsi" | ||
125 | /include/ "pq3-i2c-1.dtsi" | ||
126 | /include/ "pq3-duart-0.dtsi" | ||
127 | |||
128 | /include/ "pq3-espi-0.dtsi" | ||
129 | spi@7000 { | ||
130 | fsl,espi-num-chipselects = <4>; | ||
131 | }; | ||
132 | |||
133 | /include/ "pq3-gpio-0.dtsi" | ||
134 | |||
135 | L2: l2-cache-controller@20000 { | ||
136 | compatible = "fsl,p1023-l2-cache-controller"; | ||
137 | reg = <0x20000 0x1000>; | ||
138 | cache-line-size = <32>; // 32 bytes | ||
139 | cache-size = <0x40000>; // L2,256K | ||
140 | interrupts = <16 2 0 0>; | ||
141 | }; | ||
142 | |||
143 | /include/ "pq3-dma-0.dtsi" | ||
144 | /include/ "pq3-usb2-dr-0.dtsi" | ||
145 | |||
146 | crypto: crypto@300000 { | ||
147 | compatible = "fsl,sec-v4.2", "fsl,sec-v4.0"; | ||
148 | #address-cells = <1>; | ||
149 | #size-cells = <1>; | ||
150 | reg = <0x30000 0x10000>; | ||
151 | ranges = <0 0x30000 0x10000>; | ||
152 | interrupts = <58 2 0 0>; | ||
153 | |||
154 | sec_jr0: jr@1000 { | ||
155 | compatible = "fsl,sec-v4.2-job-ring", | ||
156 | "fsl,sec-v4.0-job-ring"; | ||
157 | reg = <0x1000 0x1000>; | ||
158 | interrupts = <45 2 0 0>; | ||
159 | }; | ||
160 | |||
161 | sec_jr1: jr@2000 { | ||
162 | compatible = "fsl,sec-v4.2-job-ring", | ||
163 | "fsl,sec-v4.0-job-ring"; | ||
164 | reg = <0x2000 0x1000>; | ||
165 | interrupts = <45 2 0 0>; | ||
166 | }; | ||
167 | |||
168 | sec_jr2: jr@3000 { | ||
169 | compatible = "fsl,sec-v4.2-job-ring", | ||
170 | "fsl,sec-v4.0-job-ring"; | ||
171 | reg = <0x3000 0x1000>; | ||
172 | interrupts = <57 2 0 0>; | ||
173 | }; | ||
174 | |||
175 | sec_jr3: jr@4000 { | ||
176 | compatible = "fsl,sec-v4.2-job-ring", | ||
177 | "fsl,sec-v4.0-job-ring"; | ||
178 | reg = <0x4000 0x1000>; | ||
179 | interrupts = <57 2 0 0>; | ||
180 | }; | ||
181 | |||
182 | rtic@6000 { | ||
183 | compatible = "fsl,sec-v4.2-rtic", | ||
184 | "fsl,sec-v4.0-rtic"; | ||
185 | #address-cells = <1>; | ||
186 | #size-cells = <1>; | ||
187 | reg = <0x6000 0x100>; | ||
188 | ranges = <0x0 0x6100 0xe00>; | ||
189 | |||
190 | rtic_a: rtic-a@0 { | ||
191 | compatible = "fsl,sec-v4.2-rtic-memory", | ||
192 | "fsl,sec-v4.0-rtic-memory"; | ||
193 | reg = <0x00 0x20 0x100 0x80>; | ||
194 | }; | ||
195 | |||
196 | rtic_b: rtic-b@20 { | ||
197 | compatible = "fsl,sec-v4.2-rtic-memory", | ||
198 | "fsl,sec-v4.0-rtic-memory"; | ||
199 | reg = <0x20 0x20 0x200 0x80>; | ||
200 | }; | ||
201 | |||
202 | rtic_c: rtic-c@40 { | ||
203 | compatible = "fsl,sec-v4.2-rtic-memory", | ||
204 | "fsl,sec-v4.0-rtic-memory"; | ||
205 | reg = <0x40 0x20 0x300 0x80>; | ||
206 | }; | ||
207 | |||
208 | rtic_d: rtic-d@60 { | ||
209 | compatible = "fsl,sec-v4.2-rtic-memory", | ||
210 | "fsl,sec-v4.0-rtic-memory"; | ||
211 | reg = <0x60 0x20 0x500 0x80>; | ||
212 | }; | ||
213 | }; | ||
214 | }; | ||
215 | |||
216 | /include/ "pq3-mpic.dtsi" | ||
217 | /include/ "pq3-mpic-timer-B.dtsi" | ||
218 | |||
219 | global-utilities@e0000 { | ||
220 | compatible = "fsl,p1023-guts"; | ||
221 | reg = <0xe0000 0x1000>; | ||
222 | fsl,has-rstcr; | ||
223 | }; | ||
224 | }; | ||
diff --git a/arch/powerpc/boot/dts/fsl/p1023si-pre.dtsi b/arch/powerpc/boot/dts/fsl/p1023si-pre.dtsi new file mode 100644 index 000000000000..ac45f6d93385 --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/p1023si-pre.dtsi | |||
@@ -0,0 +1,76 @@ | |||
1 | /* | ||
2 | * P1023/P1017 Silicon/SoC Device Tree Source (pre include) | ||
3 | * | ||
4 | * Copyright 2011 Freescale Semiconductor Inc. | ||
5 | * | ||
6 | * Redistribution and use in source and binary forms, with or without | ||
7 | * modification, are permitted provided that the following conditions are met: | ||
8 | * * Redistributions of source code must retain the above copyright | ||
9 | * notice, this list of conditions and the following disclaimer. | ||
10 | * * Redistributions in binary form must reproduce the above copyright | ||
11 | * notice, this list of conditions and the following disclaimer in the | ||
12 | * documentation and/or other materials provided with the distribution. | ||
13 | * * Neither the name of Freescale Semiconductor nor the | ||
14 | * names of its contributors may be used to endorse or promote products | ||
15 | * derived from this software without specific prior written permission. | ||
16 | * | ||
17 | * | ||
18 | * ALTERNATIVELY, this software may be distributed under the terms of the | ||
19 | * GNU General Public License ("GPL") as published by the Free Software | ||
20 | * Foundation, either version 2 of that License or (at your option) any | ||
21 | * later version. | ||
22 | * | ||
23 | * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY | ||
24 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
25 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
26 | * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY | ||
27 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
28 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
29 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
30 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
32 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
33 | */ | ||
34 | |||
35 | /dts-v1/; | ||
36 | / { | ||
37 | compatible = "fsl,P1023"; | ||
38 | #address-cells = <2>; | ||
39 | #size-cells = <2>; | ||
40 | interrupt-parent = <&mpic>; | ||
41 | |||
42 | aliases { | ||
43 | serial0 = &serial0; | ||
44 | serial1 = &serial1; | ||
45 | pci0 = &pci0; | ||
46 | pci1 = &pci1; | ||
47 | pci2 = &pci2; | ||
48 | |||
49 | crypto = &crypto; | ||
50 | sec_jr0 = &sec_jr0; | ||
51 | sec_jr1 = &sec_jr1; | ||
52 | sec_jr2 = &sec_jr2; | ||
53 | sec_jr3 = &sec_jr3; | ||
54 | rtic_a = &rtic_a; | ||
55 | rtic_b = &rtic_b; | ||
56 | rtic_c = &rtic_c; | ||
57 | rtic_d = &rtic_d; | ||
58 | }; | ||
59 | |||
60 | cpus { | ||
61 | #address-cells = <1>; | ||
62 | #size-cells = <0>; | ||
63 | |||
64 | PowerPC,P1023@0 { | ||
65 | device_type = "cpu"; | ||
66 | reg = <0x0>; | ||
67 | next-level-cache = <&L2>; | ||
68 | }; | ||
69 | |||
70 | PowerPC,P1023@1 { | ||
71 | device_type = "cpu"; | ||
72 | reg = <0x1>; | ||
73 | next-level-cache = <&L2>; | ||
74 | }; | ||
75 | }; | ||
76 | }; | ||