blob: 6582c9a39b27aacee6f539619fab4ddf25248a6e [file] [log] [blame]
Grant Likelyc6d4d652006-11-27 14:16:29 -07001/*
2 * Lite5200B 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,lite5200b";
21 // revision = "1.0";
Grant Likelydcccb372007-10-08 01:24:22 -060022 compatible = "fsl,lite5200b","generic-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
Grant Likelyc6d4d652006-11-27 14:16:29 -070040 };
41 };
42
43 memory {
44 device_type = "memory";
45 reg = <00000000 10000000>; // 256MB
46 };
47
48 soc5200@f0000000 {
Grant Likely05cbbc62007-02-12 13:36:54 -070049 model = "fsl,mpc5200b";
Domen Puncer0d0f4bc2007-05-07 01:38:48 +100050 compatible = "mpc5200";
Grant Likely05cbbc62007-02-12 13:36:54 -070051 revision = ""; // from bootloader
Grant Likelyc6d4d652006-11-27 14:16:29 -070052 device_type = "soc";
Kumar Galaf0c8ac82007-09-12 11:52:31 -050053 ranges = <0 f0000000 0000c000>;
54 reg = <f0000000 00000100>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070055 bus-frequency = <0>; // from bootloader
Grant Likely05cbbc62007-02-12 13:36:54 -070056 system-frequency = <0>; // from bootloader
Grant Likelyc6d4d652006-11-27 14:16:29 -070057
58 cdm@200 {
Grant Likelydcccb372007-10-08 01:24:22 -060059 compatible = "mpc5200b-cdm","mpc5200-cdm";
Grant Likelyc6d4d652006-11-27 14:16:29 -070060 reg = <200 38>;
61 };
62
Kumar Gala5c1992f2007-05-15 16:12:27 -050063 mpc5200_pic: pic@500 {
Grant Likelyc6d4d652006-11-27 14:16:29 -070064 // 5200 interrupts are encoded into two levels;
Grant Likelyc6d4d652006-11-27 14:16:29 -070065 interrupt-controller;
66 #interrupt-cells = <3>;
67 device_type = "interrupt-controller";
Grant Likelydcccb372007-10-08 01:24:22 -060068 compatible = "mpc5200b-pic","mpc5200-pic";
Grant Likelyc6d4d652006-11-27 14:16:29 -070069 reg = <500 80>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070070 };
71
72 gpt@600 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -060073 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070074 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070075 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070076 reg = <600 10>;
77 interrupts = <1 9 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050078 interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -070079 has-wdt;
Grant Likelyc6d4d652006-11-27 14:16:29 -070080 };
81
82 gpt@610 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -060083 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070084 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070085 cell-index = <1>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070086 reg = <610 10>;
87 interrupts = <1 a 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050088 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070089 };
90
91 gpt@620 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -060092 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -070093 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070094 cell-index = <2>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070095 reg = <620 10>;
96 interrupts = <1 b 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050097 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070098 };
99
100 gpt@630 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -0600101 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700102 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700103 cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700104 reg = <630 10>;
105 interrupts = <1 c 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500106 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700107 };
108
109 gpt@640 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -0600110 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700111 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700112 cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700113 reg = <640 10>;
114 interrupts = <1 d 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500115 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700116 };
117
118 gpt@650 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -0600119 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700120 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700121 cell-index = <5>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700122 reg = <650 10>;
123 interrupts = <1 e 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500124 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700125 };
126
127 gpt@660 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -0600128 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700129 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700130 cell-index = <6>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700131 reg = <660 10>;
132 interrupts = <1 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500133 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700134 };
135
136 gpt@670 { // General Purpose Timer
Grant Likelydcccb372007-10-08 01:24:22 -0600137 compatible = "mpc5200b-gpt","mpc5200-gpt";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700138 device_type = "gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700139 cell-index = <7>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700140 reg = <670 10>;
141 interrupts = <1 10 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500142 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700143 };
144
145 rtc@800 { // Real time clock
Grant Likelydcccb372007-10-08 01:24:22 -0600146 compatible = "mpc5200b-rtc","mpc5200-rtc";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700147 device_type = "rtc";
148 reg = <800 100>;
149 interrupts = <1 5 0 1 6 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500150 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700151 };
152
153 mscan@900 {
154 device_type = "mscan";
Grant Likelydcccb372007-10-08 01:24:22 -0600155 compatible = "mpc5200b-mscan","mpc5200-mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700156 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700157 interrupts = <2 11 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500158 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700159 reg = <900 80>;
160 };
161
162 mscan@980 {
163 device_type = "mscan";
Grant Likelydcccb372007-10-08 01:24:22 -0600164 compatible = "mpc5200b-mscan","mpc5200-mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700165 cell-index = <1>;
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000166 interrupts = <2 12 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500167 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700168 reg = <980 80>;
169 };
170
171 gpio@b00 {
Grant Likelydcccb372007-10-08 01:24:22 -0600172 compatible = "mpc5200b-gpio","mpc5200-gpio";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700173 reg = <b00 40>;
174 interrupts = <1 7 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500175 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700176 };
177
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000178 gpio-wkup@c00 {
Grant Likelydcccb372007-10-08 01:24:22 -0600179 compatible = "mpc5200b-gpio-wkup","mpc5200-gpio-wkup";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700180 reg = <c00 40>;
181 interrupts = <1 8 0 0 3 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500182 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700183 };
184
Grant Likelyc6d4d652006-11-27 14:16:29 -0700185 spi@f00 {
186 device_type = "spi";
Grant Likelydcccb372007-10-08 01:24:22 -0600187 compatible = "mpc5200b-spi","mpc5200-spi";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700188 reg = <f00 20>;
189 interrupts = <2 d 0 2 e 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500190 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700191 };
192
193 usb@1000 {
194 device_type = "usb-ohci-be";
Grant Likelydcccb372007-10-08 01:24:22 -0600195 compatible = "mpc5200b-ohci","mpc5200-ohci","ohci-be";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700196 reg = <1000 ff>;
197 interrupts = <2 6 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500198 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700199 };
200
201 bestcomm@1200 {
202 device_type = "dma-controller";
Grant Likelydcccb372007-10-08 01:24:22 -0600203 compatible = "mpc5200b-bestcomm","mpc5200-bestcomm";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700204 reg = <1200 80>;
205 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
206 3 4 0 3 5 0 3 6 0 3 7 0
207 3 8 0 3 9 0 3 a 0 3 b 0
208 3 c 0 3 d 0 3 e 0 3 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500209 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700210 };
211
212 xlb@1f00 {
Grant Likelydcccb372007-10-08 01:24:22 -0600213 compatible = "mpc5200b-xlb","mpc5200-xlb";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700214 reg = <1f00 100>;
215 };
216
217 serial@2000 { // PSC1
218 device_type = "serial";
Grant Likelydcccb372007-10-08 01:24:22 -0600219 compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700220 port-number = <0>; // Logical port assignment
Grant Likely05cbbc62007-02-12 13:36:54 -0700221 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700222 reg = <2000 100>;
223 interrupts = <2 1 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500224 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700225 };
226
Grant Likely05cbbc62007-02-12 13:36:54 -0700227 // PSC2 in ac97 mode example
228 //ac97@2200 { // PSC2
229 // device_type = "sound";
Grant Likelydcccb372007-10-08 01:24:22 -0600230 // compatible = "mpc5200b-psc-ac97","mpc5200-psc-ac97";
Grant Likely05cbbc62007-02-12 13:36:54 -0700231 // cell-index = <1>;
232 // reg = <2200 100>;
233 // interrupts = <2 2 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500234 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700235 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700236
237 // PSC3 in CODEC mode example
Grant Likely05cbbc62007-02-12 13:36:54 -0700238 //i2s@2400 { // PSC3
239 // device_type = "sound";
240 // compatible = "mpc5200b-psc-i2s"; //not 5200 compatible
241 // cell-index = <2>;
242 // reg = <2400 100>;
243 // interrupts = <2 3 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500244 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700245 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700246
Grant Likely05cbbc62007-02-12 13:36:54 -0700247 // PSC4 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700248 //serial@2600 { // PSC4
249 // device_type = "serial";
Grant Likelydcccb372007-10-08 01:24:22 -0600250 // compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
Grant Likely05cbbc62007-02-12 13:36:54 -0700251 // cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700252 // reg = <2600 100>;
253 // interrupts = <2 b 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500254 // interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700255 //};
256
Grant Likely05cbbc62007-02-12 13:36:54 -0700257 // PSC5 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700258 //serial@2800 { // PSC5
259 // device_type = "serial";
Grant Likelydcccb372007-10-08 01:24:22 -0600260 // compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
Grant Likely05cbbc62007-02-12 13:36:54 -0700261 // cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700262 // reg = <2800 100>;
263 // interrupts = <2 c 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500264 // interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700265 //};
266
Grant Likely05cbbc62007-02-12 13:36:54 -0700267 // PSC6 in spi mode example
268 //spi@2c00 { // PSC6
269 // device_type = "spi";
Grant Likelydcccb372007-10-08 01:24:22 -0600270 // compatible = "mpc5200b-psc-spi","mpc5200-psc-spi";
Grant Likely05cbbc62007-02-12 13:36:54 -0700271 // cell-index = <5>;
272 // reg = <2c00 100>;
273 // interrupts = <2 4 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500274 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700275 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700276
277 ethernet@3000 {
278 device_type = "network";
Grant Likelydcccb372007-10-08 01:24:22 -0600279 compatible = "mpc5200b-fec","mpc5200-fec";
Domen Puncerb147d932007-10-14 17:57:11 +1000280 reg = <3000 400>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700281 mac-address = [ 02 03 04 05 06 07 ]; // Bad!
282 interrupts = <2 5 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500283 interrupt-parent = <&mpc5200_pic>;
Domen Puncerb147d932007-10-14 17:57:11 +1000284 phy-handle = <&phy0>;
285 };
286
287 mdio@3000 {
288 #address-cells = <1>;
289 #size-cells = <0>;
290 device_type = "mdio";
291 compatible = "mpc5200b-fec-phy";
292 reg = <3000 400>; // fec range, since we need to setup fec interrupts
293 interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
294 interrupt-parent = <&mpc5200_pic>;
295
296 phy0:ethernet-phy@0 {
297 device_type = "ethernet-phy";
298 reg = <0>;
299 };
Grant Likelyc6d4d652006-11-27 14:16:29 -0700300 };
301
302 ata@3a00 {
303 device_type = "ata";
Grant Likelydcccb372007-10-08 01:24:22 -0600304 compatible = "mpc5200b-ata","mpc5200-ata";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700305 reg = <3a00 100>;
306 interrupts = <2 7 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500307 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700308 };
309
310 i2c@3d00 {
311 device_type = "i2c";
Grant Likelydcccb372007-10-08 01:24:22 -0600312 compatible = "mpc5200b-i2c","mpc5200-i2c","fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700313 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700314 reg = <3d00 40>;
315 interrupts = <2 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500316 interrupt-parent = <&mpc5200_pic>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000317 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700318 };
319
320 i2c@3d40 {
321 device_type = "i2c";
Grant Likelydcccb372007-10-08 01:24:22 -0600322 compatible = "mpc5200b-i2c","mpc5200-i2c","fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700323 cell-index = <1>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700324 reg = <3d40 40>;
325 interrupts = <2 10 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500326 interrupt-parent = <&mpc5200_pic>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000327 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700328 };
329 sram@8000 {
330 device_type = "sram";
Grant Likelydcccb372007-10-08 01:24:22 -0600331 compatible = "mpc5200b-sram","mpc5200-sram","sram";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700332 reg = <8000 4000>;
333 };
334 };
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500335
336 pci@f0000d00 {
337 #interrupt-cells = <1>;
338 #size-cells = <2>;
339 #address-cells = <3>;
340 device_type = "pci";
Grant Likelydcccb372007-10-08 01:24:22 -0600341 compatible = "mpc5200b-pci","mpc5200-pci";
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500342 reg = <f0000d00 100>;
343 interrupt-map-mask = <f800 0 0 7>;
344 interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
345 c000 0 0 2 &mpc5200_pic 1 1 3
346 c000 0 0 3 &mpc5200_pic 1 2 3
347 c000 0 0 4 &mpc5200_pic 1 3 3
348
349 c800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
350 c800 0 0 2 &mpc5200_pic 1 2 3
351 c800 0 0 3 &mpc5200_pic 1 3 3
352 c800 0 0 4 &mpc5200_pic 0 0 3>;
353 clock-frequency = <0>; // From boot loader
354 interrupts = <2 8 0 2 9 0 2 a 0>;
355 interrupt-parent = <&mpc5200_pic>;
356 bus-range = <0 0>;
357 ranges = <42000000 0 80000000 80000000 0 20000000
358 02000000 0 a0000000 a0000000 0 10000000
359 01000000 0 00000000 b0000000 0 01000000>;
360 };
Grant Likelyc6d4d652006-11-27 14:16:29 -0700361};