blob: d29308fe4c24d35e4fefd9ecff0e45c1a965b904 [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";
Kumar Gala5c1992f2007-05-15 16:12:27 -050052 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
Kumar Gala5c1992f2007-05-15 16:12:27 -050065 mpc5200_pic: pic@500 {
Grant Likelyc6d4d652006-11-27 14:16:29 -070066 // 5200 interrupts are encoded into two levels;
Grant Likelyc6d4d652006-11-27 14:16:29 -070067 interrupt-controller;
68 #interrupt-cells = <3>;
69 device_type = "interrupt-controller";
Domen Puncerf2fb9eb2007-05-21 08:56:00 +020070 compatible = "mpc5200-pic";
Grant Likelyc6d4d652006-11-27 14:16:29 -070071 reg = <500 80>;
72 built-in;
73 };
74
75 gpt@600 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -070076 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070077 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070078 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070079 reg = <600 10>;
80 interrupts = <1 9 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050081 interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -070082 has-wdt;
Grant Likelyc6d4d652006-11-27 14:16:29 -070083 };
84
85 gpt@610 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -070086 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070087 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070088 cell-index = <1>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070089 reg = <610 10>;
90 interrupts = <1 a 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050091 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070092 };
93
94 gpt@620 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -070095 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070096 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070097 cell-index = <2>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070098 reg = <620 10>;
99 interrupts = <1 b 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500100 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700101 };
102
103 gpt@630 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700104 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700105 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700106 cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700107 reg = <630 10>;
108 interrupts = <1 c 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500109 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700110 };
111
112 gpt@640 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700113 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700114 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700115 cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700116 reg = <640 10>;
117 interrupts = <1 d 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500118 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700119 };
120
121 gpt@650 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700122 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700123 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700124 cell-index = <5>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700125 reg = <650 10>;
126 interrupts = <1 e 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500127 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700128 };
129
130 gpt@660 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700131 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700132 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700133 cell-index = <6>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700134 reg = <660 10>;
135 interrupts = <1 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500136 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700137 };
138
139 gpt@670 { // General Purpose Timer
Grant Likely05cbbc62007-02-12 13:36:54 -0700140 compatible = "mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700141 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700142 cell-index = <7>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700143 reg = <670 10>;
144 interrupts = <1 10 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500145 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700146 };
147
148 rtc@800 { // Real time clock
Grant Likely05cbbc62007-02-12 13:36:54 -0700149 compatible = "mpc5200-rtc";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700150 device_type = "rtc";
151 reg = <800 100>;
152 interrupts = <1 5 0 1 6 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500153 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700154 };
155
156 mscan@900 {
157 device_type = "mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700158 compatible = "mpc5200-mscan";
159 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700160 interrupts = <2 11 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500161 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700162 reg = <900 80>;
163 };
164
165 mscan@980 {
166 device_type = "mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700167 compatible = "mpc5200-mscan";
168 cell-index = <1>;
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000169 interrupts = <2 12 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500170 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700171 reg = <980 80>;
172 };
173
174 gpio@b00 {
Grant Likely05cbbc62007-02-12 13:36:54 -0700175 compatible = "mpc5200-gpio";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700176 reg = <b00 40>;
177 interrupts = <1 7 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500178 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700179 };
180
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000181 gpio-wkup@c00 {
Grant Likely05cbbc62007-02-12 13:36:54 -0700182 compatible = "mpc5200-gpio-wkup";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700183 reg = <c00 40>;
184 interrupts = <1 8 0 0 3 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500185 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700186 };
187
188 pci@0d00 {
189 #interrupt-cells = <1>;
190 #size-cells = <2>;
191 #address-cells = <3>;
192 device_type = "pci";
Grant Likely05cbbc62007-02-12 13:36:54 -0700193 compatible = "mpc5200-pci";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700194 reg = <d00 100>;
195 interrupt-map-mask = <f800 0 0 7>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500196 interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3
197 c000 0 0 2 &mpc5200_pic 0 0 3
198 c000 0 0 3 &mpc5200_pic 0 0 3
199 c000 0 0 4 &mpc5200_pic 0 0 3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700200 clock-frequency = <0>; // From boot loader
201 interrupts = <2 8 0 2 9 0 2 a 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500202 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700203 bus-range = <0 0>;
204 ranges = <42000000 0 80000000 80000000 0 20000000
205 02000000 0 a0000000 a0000000 0 10000000
206 01000000 0 00000000 b0000000 0 01000000>;
207 };
208
209 spi@f00 {
210 device_type = "spi";
Grant Likely05cbbc62007-02-12 13:36:54 -0700211 compatible = "mpc5200-spi";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700212 reg = <f00 20>;
213 interrupts = <2 d 0 2 e 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500214 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700215 };
216
217 usb@1000 {
218 device_type = "usb-ohci-be";
Grant Likely05cbbc62007-02-12 13:36:54 -0700219 compatible = "mpc5200-ohci\0ohci-be";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700220 reg = <1000 ff>;
221 interrupts = <2 6 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500222 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700223 };
224
225 bestcomm@1200 {
226 device_type = "dma-controller";
Grant Likely05cbbc62007-02-12 13:36:54 -0700227 compatible = "mpc5200-bestcomm";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700228 reg = <1200 80>;
229 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
230 3 4 0 3 5 0 3 6 0 3 7 0
231 3 8 0 3 9 0 3 a 0 3 b 0
232 3 c 0 3 d 0 3 e 0 3 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500233 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700234 };
235
236 xlb@1f00 {
Grant Likely05cbbc62007-02-12 13:36:54 -0700237 compatible = "mpc5200-xlb";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700238 reg = <1f00 100>;
239 };
240
241 serial@2000 { // PSC1
242 device_type = "serial";
Grant Likely05cbbc62007-02-12 13:36:54 -0700243 compatible = "mpc5200-psc-uart";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700244 port-number = <0>; // Logical port assignment
Grant Likely05cbbc62007-02-12 13:36:54 -0700245 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700246 reg = <2000 100>;
247 interrupts = <2 1 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500248 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700249 };
250
Grant Likely05cbbc62007-02-12 13:36:54 -0700251 // PSC2 in ac97 mode example
252 //ac97@2200 { // PSC2
253 // device_type = "sound";
254 // compatible = "mpc5200-psc-ac97";
255 // cell-index = <1>;
256 // reg = <2200 100>;
257 // interrupts = <2 2 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500258 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700259 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700260
261 // PSC3 in CODEC mode example
Grant Likely05cbbc62007-02-12 13:36:54 -0700262 //i2s@2400 { // PSC3
263 // device_type = "sound";
264 // compatible = "mpc5200-psc-i2s";
265 // cell-index = <2>;
266 // reg = <2400 100>;
267 // interrupts = <2 3 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500268 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700269 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700270
Grant Likely05cbbc62007-02-12 13:36:54 -0700271 // PSC4 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700272 //serial@2600 { // PSC4
273 // device_type = "serial";
Grant Likely05cbbc62007-02-12 13:36:54 -0700274 // compatible = "mpc5200-psc-uart";
275 // cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700276 // reg = <2600 100>;
277 // interrupts = <2 b 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500278 // interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700279 //};
280
Grant Likely05cbbc62007-02-12 13:36:54 -0700281 // PSC5 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700282 //serial@2800 { // PSC5
283 // device_type = "serial";
Grant Likely05cbbc62007-02-12 13:36:54 -0700284 // compatible = "mpc5200-psc-uart";
285 // cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700286 // reg = <2800 100>;
287 // interrupts = <2 c 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500288 // interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700289 //};
290
Grant Likely05cbbc62007-02-12 13:36:54 -0700291 // PSC6 in spi mode example
292 //spi@2c00 { // PSC6
293 // device_type = "spi";
294 // compatible = "mpc5200-psc-spi";
295 // cell-index = <5>;
296 // reg = <2c00 100>;
297 // interrupts = <2 4 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500298 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700299 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700300
301 ethernet@3000 {
302 device_type = "network";
Grant Likely05cbbc62007-02-12 13:36:54 -0700303 compatible = "mpc5200-fec";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700304 reg = <3000 800>;
305 mac-address = [ 02 03 04 05 06 07 ]; // Bad!
306 interrupts = <2 5 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500307 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700308 };
309
310 ata@3a00 {
311 device_type = "ata";
Grant Likely05cbbc62007-02-12 13:36:54 -0700312 compatible = "mpc5200-ata";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700313 reg = <3a00 100>;
314 interrupts = <2 7 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500315 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700316 };
317
318 i2c@3d00 {
319 device_type = "i2c";
Domen Puncer5cae84c2007-05-07 01:38:49 +1000320 compatible = "mpc5200-i2c\0fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700321 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700322 reg = <3d00 40>;
323 interrupts = <2 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500324 interrupt-parent = <&mpc5200_pic>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000325 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700326 };
327
328 i2c@3d40 {
329 device_type = "i2c";
Domen Puncer5cae84c2007-05-07 01:38:49 +1000330 compatible = "mpc5200-i2c\0fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700331 cell-index = <1>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700332 reg = <3d40 40>;
333 interrupts = <2 10 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500334 interrupt-parent = <&mpc5200_pic>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000335 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700336 };
337 sram@8000 {
338 device_type = "sram";
Grant Likely05cbbc62007-02-12 13:36:54 -0700339 compatible = "mpc5200-sram\0sram";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700340 reg = <8000 4000>;
341 };
342 };
343};