blob: e13ac6ef05a93d7744d9e4c121dc90170793f284 [file] [log] [blame]
Grant Likelyc6d4d652006-11-27 14:16:29 -07001/*
2 * Lite5200 board Device Tree Source
3 *
Grant Likely05cbbc62007-02-12 13:36:54 -07004 * Copyright 2006-2007 Secret Lab Technologies Ltd.
Grant Likelyc6d4d652006-11-27 14:16:29 -07005 * Grant Likely <grant.likely@secretlab.ca>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 */
12
Grant Likely121361f2007-01-19 00:00:14 -070013/*
14 * WARNING: Do not depend on this tree layout remaining static just yet.
15 * The MPC5200 device tree conventions are still in flux
16 * Keep an eye on the linuxppc-dev mailing list for more details
17 */
18
Grant Likelyc6d4d652006-11-27 14:16:29 -070019/ {
Grant Likely05cbbc62007-02-12 13:36:54 -070020 model = "fsl,lite5200";
21 // revision = "1.0";
22 compatible = "fsl,lite5200\0generic-mpc5200";
Grant Likelyc6d4d652006-11-27 14:16:29 -070023 #address-cells = <1>;
24 #size-cells = <1>;
25
26 cpus {
Grant Likelyc6d4d652006-11-27 14:16:29 -070027 #address-cells = <1>;
28 #size-cells = <0>;
29
30 PowerPC,5200@0 {
31 device_type = "cpu";
32 reg = <0>;
33 d-cache-line-size = <20>;
34 i-cache-line-size = <20>;
35 d-cache-size = <4000>; // L1, 16K
36 i-cache-size = <4000>; // L1, 16K
37 timebase-frequency = <0>; // from bootloader
38 bus-frequency = <0>; // from bootloader
39 clock-frequency = <0>; // from bootloader
40 32-bit;
41 };
42 };
43
44 memory {
45 device_type = "memory";
46 reg = <00000000 04000000>; // 64MB
47 };
48
49 soc5200@f0000000 {
Grant Likely05cbbc62007-02-12 13:36:54 -070050 model = "fsl,mpc5200";
Domen Puncer0d0f4bc2007-05-07 01:38:48 +100051 compatible = "mpc5200";
Grant Likely05cbbc62007-02-12 13:36:54 -070052 revision = "" // from bootloader
Grant Likelyc6d4d652006-11-27 14:16:29 -070053 #interrupt-cells = <3>;
54 device_type = "soc";
55 ranges = <0 f0000000 f0010000>;
56 reg = <f0000000 00010000>;
57 bus-frequency = <0>; // from bootloader
Grant Likely05cbbc62007-02-12 13:36:54 -070058 system-frequency = <0>; // from bootloader
Grant Likelyc6d4d652006-11-27 14:16:29 -070059
60 cdm@200 {
Grant Likely05cbbc62007-02-12 13:36:54 -070061 compatible = "mpc5200-cdm";
Grant Likelyc6d4d652006-11-27 14:16:29 -070062 reg = <200 38>;
63 };
64
65 pic@500 {
66 // 5200 interrupts are encoded into two levels;
67 linux,phandle = <500>;
68 interrupt-controller;
69 #interrupt-cells = <3>;
70 device_type = "interrupt-controller";
Grant Likely05cbbc62007-02-12 13:36:54 -070071 compatible = "mpc5200-pic";
Grant Likelyc6d4d652006-11-27 14:16:29 -070072 reg = <500 80>;
73 built-in;
74 };
75
76 gpt@600 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -070077 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070078 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070079 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070080 reg = <600 10>;
81 interrupts = <1 9 0>;
82 interrupt-parent = <500>;
Grant Likely05cbbc62007-02-12 13:36:54 -070083 has-wdt;
Grant Likelyc6d4d652006-11-27 14:16:29 -070084 };
85
86 gpt@610 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -070087 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070088 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070089 cell-index = <1>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070090 reg = <610 10>;
91 interrupts = <1 a 0>;
92 interrupt-parent = <500>;
93 };
94
95 gpt@620 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -070096 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070097 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070098 cell-index = <2>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070099 reg = <620 10>;
100 interrupts = <1 b 0>;
101 interrupt-parent = <500>;
102 };
103
104 gpt@630 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700105 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700106 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700107 cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700108 reg = <630 10>;
109 interrupts = <1 c 0>;
110 interrupt-parent = <500>;
111 };
112
113 gpt@640 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700114 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700115 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700116 cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700117 reg = <640 10>;
118 interrupts = <1 d 0>;
119 interrupt-parent = <500>;
120 };
121
122 gpt@650 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700123 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700124 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700125 cell-index = <5>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700126 reg = <650 10>;
127 interrupts = <1 e 0>;
128 interrupt-parent = <500>;
129 };
130
131 gpt@660 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700132 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700133 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700134 cell-index = <6>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700135 reg = <660 10>;
136 interrupts = <1 f 0>;
137 interrupt-parent = <500>;
138 };
139
140 gpt@670 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700141 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700142 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700143 cell-index = <7>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700144 reg = <670 10>;
145 interrupts = <1 10 0>;
146 interrupt-parent = <500>;
147 };
148
149 rtc@800 { // Real time clock
Grant Likely05cbbc62007-02-12 13:36:54 -0700150 compatible = "mpc5200-rtc";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700151 device_type = "rtc";
152 reg = <800 100>;
153 interrupts = <1 5 0 1 6 0>;
154 interrupt-parent = <500>;
155 };
156
157 mscan@900 {
158 device_type = "mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700159 compatible = "mpc5200-mscan";
160 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700161 interrupts = <2 11 0>;
162 interrupt-parent = <500>;
163 reg = <900 80>;
164 };
165
166 mscan@980 {
167 device_type = "mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700168 compatible = "mpc5200-mscan";
169 cell-index = <1>;
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000170 interrupts = <2 12 0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700171 interrupt-parent = <500>;
172 reg = <980 80>;
173 };
174
175 gpio@b00 {
Grant Likely05cbbc62007-02-12 13:36:54 -0700176 compatible = "mpc5200-gpio";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700177 reg = <b00 40>;
178 interrupts = <1 7 0>;
179 interrupt-parent = <500>;
180 };
181
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000182 gpio-wkup@c00 {
Grant Likely05cbbc62007-02-12 13:36:54 -0700183 compatible = "mpc5200-gpio-wkup";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700184 reg = <c00 40>;
185 interrupts = <1 8 0 0 3 0>;
186 interrupt-parent = <500>;
187 };
188
189 pci@0d00 {
190 #interrupt-cells = <1>;
191 #size-cells = <2>;
192 #address-cells = <3>;
193 device_type = "pci";
Grant Likely05cbbc62007-02-12 13:36:54 -0700194 compatible = "mpc5200-pci";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700195 reg = <d00 100>;
196 interrupt-map-mask = <f800 0 0 7>;
197 interrupt-map = <c000 0 0 1 500 0 0 3
198 c000 0 0 2 500 0 0 3
199 c000 0 0 3 500 0 0 3
200 c000 0 0 4 500 0 0 3>;
201 clock-frequency = <0>; // From boot loader
202 interrupts = <2 8 0 2 9 0 2 a 0>;
203 interrupt-parent = <500>;
204 bus-range = <0 0>;
205 ranges = <42000000 0 80000000 80000000 0 20000000
206 02000000 0 a0000000 a0000000 0 10000000
207 01000000 0 00000000 b0000000 0 01000000>;
208 };
209
210 spi@f00 {
211 device_type = "spi";
Grant Likely05cbbc62007-02-12 13:36:54 -0700212 compatible = "mpc5200-spi";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700213 reg = <f00 20>;
214 interrupts = <2 d 0 2 e 0>;
215 interrupt-parent = <500>;
216 };
217
218 usb@1000 {
219 device_type = "usb-ohci-be";
Grant Likely05cbbc62007-02-12 13:36:54 -0700220 compatible = "mpc5200-ohci\0ohci-be";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700221 reg = <1000 ff>;
222 interrupts = <2 6 0>;
223 interrupt-parent = <500>;
224 };
225
226 bestcomm@1200 {
227 device_type = "dma-controller";
Grant Likely05cbbc62007-02-12 13:36:54 -0700228 compatible = "mpc5200-bestcomm";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700229 reg = <1200 80>;
230 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
231 3 4 0 3 5 0 3 6 0 3 7 0
232 3 8 0 3 9 0 3 a 0 3 b 0
233 3 c 0 3 d 0 3 e 0 3 f 0>;
234 interrupt-parent = <500>;
235 };
236
237 xlb@1f00 {
Grant Likely05cbbc62007-02-12 13:36:54 -0700238 compatible = "mpc5200-xlb";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700239 reg = <1f00 100>;
240 };
241
242 serial@2000 { // PSC1
243 device_type = "serial";
Grant Likely05cbbc62007-02-12 13:36:54 -0700244 compatible = "mpc5200-psc-uart";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700245 port-number = <0>; // Logical port assignment
Grant Likely05cbbc62007-02-12 13:36:54 -0700246 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700247 reg = <2000 100>;
248 interrupts = <2 1 0>;
249 interrupt-parent = <500>;
250 };
251
Grant Likely05cbbc62007-02-12 13:36:54 -0700252 // PSC2 in ac97 mode example
253 //ac97@2200 { // PSC2
254 // device_type = "sound";
255 // compatible = "mpc5200-psc-ac97";
256 // cell-index = <1>;
257 // reg = <2200 100>;
258 // interrupts = <2 2 0>;
259 // interrupt-parent = <500>;
260 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700261
262 // PSC3 in CODEC mode example
Grant Likely05cbbc62007-02-12 13:36:54 -0700263 //i2s@2400 { // PSC3
264 // device_type = "sound";
265 // compatible = "mpc5200-psc-i2s";
266 // cell-index = <2>;
267 // reg = <2400 100>;
268 // interrupts = <2 3 0>;
269 // interrupt-parent = <500>;
270 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700271
Grant Likely05cbbc62007-02-12 13:36:54 -0700272 // PSC4 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700273 //serial@2600 { // PSC4
274 // device_type = "serial";
Grant Likely05cbbc62007-02-12 13:36:54 -0700275 // compatible = "mpc5200-psc-uart";
276 // cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700277 // reg = <2600 100>;
278 // interrupts = <2 b 0>;
279 // interrupt-parent = <500>;
280 //};
281
Grant Likely05cbbc62007-02-12 13:36:54 -0700282 // PSC5 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700283 //serial@2800 { // PSC5
284 // device_type = "serial";
Grant Likely05cbbc62007-02-12 13:36:54 -0700285 // compatible = "mpc5200-psc-uart";
286 // cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700287 // reg = <2800 100>;
288 // interrupts = <2 c 0>;
289 // interrupt-parent = <500>;
290 //};
291
Grant Likely05cbbc62007-02-12 13:36:54 -0700292 // PSC6 in spi mode example
293 //spi@2c00 { // PSC6
294 // device_type = "spi";
295 // compatible = "mpc5200-psc-spi";
296 // cell-index = <5>;
297 // reg = <2c00 100>;
298 // interrupts = <2 4 0>;
299 // interrupt-parent = <500>;
300 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700301
302 ethernet@3000 {
303 device_type = "network";
Grant Likely05cbbc62007-02-12 13:36:54 -0700304 compatible = "mpc5200-fec";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700305 reg = <3000 800>;
306 mac-address = [ 02 03 04 05 06 07 ]; // Bad!
307 interrupts = <2 5 0>;
308 interrupt-parent = <500>;
309 };
310
311 ata@3a00 {
312 device_type = "ata";
Grant Likely05cbbc62007-02-12 13:36:54 -0700313 compatible = "mpc5200-ata";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700314 reg = <3a00 100>;
315 interrupts = <2 7 0>;
316 interrupt-parent = <500>;
317 };
318
319 i2c@3d00 {
320 device_type = "i2c";
Domen Puncer5cae84c2007-05-07 01:38:49 +1000321 compatible = "mpc5200-i2c\0fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700322 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700323 reg = <3d00 40>;
324 interrupts = <2 f 0>;
325 interrupt-parent = <500>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000326 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700327 };
328
329 i2c@3d40 {
330 device_type = "i2c";
Domen Puncer5cae84c2007-05-07 01:38:49 +1000331 compatible = "mpc5200-i2c\0fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700332 cell-index = <1>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700333 reg = <3d40 40>;
334 interrupts = <2 10 0>;
335 interrupt-parent = <500>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000336 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700337 };
338 sram@8000 {
339 device_type = "sram";
Grant Likely05cbbc62007-02-12 13:36:54 -0700340 compatible = "mpc5200-sram\0sram";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700341 reg = <8000 4000>;
342 };
343 };
344};