blob: dd2c4fd3d09884b237ae0381c02cbeff27735fd2 [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";
Marian Balakowicz5b5820d2007-11-15 22:40:21 +110022 compatible = "fsl,lite5200b";
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 {
Paul Gortmaker58a5be32008-01-26 07:33:20 +110049 #address-cells = <1>;
50 #size-cells = <1>;
Grant Likely05cbbc62007-02-12 13:36:54 -070051 model = "fsl,mpc5200b";
Domen Puncer0d0f4bc2007-05-07 01:38:48 +100052 compatible = "mpc5200";
Grant Likely05cbbc62007-02-12 13:36:54 -070053 revision = ""; // from bootloader
Grant Likelyc6d4d652006-11-27 14:16:29 -070054 device_type = "soc";
Kumar Galaf0c8ac82007-09-12 11:52:31 -050055 ranges = <0 f0000000 0000c000>;
56 reg = <f0000000 00000100>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070057 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 Likelydcccb372007-10-08 01:24:22 -060061 compatible = "mpc5200b-cdm","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";
Grant Likelydcccb372007-10-08 01:24:22 -060070 compatible = "mpc5200b-pic","mpc5200-pic";
Grant Likelyc6d4d652006-11-27 14:16:29 -070071 reg = <500 80>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070072 };
73
74 gpt@600 { // General Purpose Timer
Marian Balakowiczd24bc312007-10-19 04:44:24 +100075 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070076 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070077 reg = <600 10>;
78 interrupts = <1 9 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050079 interrupt-parent = <&mpc5200_pic>;
Marian Balakowiczd24bc312007-10-19 04:44:24 +100080 fsl,has-wdt;
Grant Likelyc6d4d652006-11-27 14:16:29 -070081 };
82
83 gpt@610 { // General Purpose Timer
Marian Balakowiczd24bc312007-10-19 04:44:24 +100084 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-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
Marian Balakowiczd24bc312007-10-19 04:44:24 +100092 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -070093 cell-index = <2>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070094 reg = <620 10>;
95 interrupts = <1 b 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -050096 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -070097 };
98
99 gpt@630 { // General Purpose Timer
Marian Balakowiczd24bc312007-10-19 04:44:24 +1000100 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700101 cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700102 reg = <630 10>;
103 interrupts = <1 c 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500104 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700105 };
106
107 gpt@640 { // General Purpose Timer
Marian Balakowiczd24bc312007-10-19 04:44:24 +1000108 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700109 cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700110 reg = <640 10>;
111 interrupts = <1 d 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500112 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700113 };
114
115 gpt@650 { // General Purpose Timer
Marian Balakowiczd24bc312007-10-19 04:44:24 +1000116 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700117 cell-index = <5>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700118 reg = <650 10>;
119 interrupts = <1 e 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500120 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700121 };
122
123 gpt@660 { // General Purpose Timer
Marian Balakowiczd24bc312007-10-19 04:44:24 +1000124 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700125 cell-index = <6>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700126 reg = <660 10>;
127 interrupts = <1 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500128 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700129 };
130
131 gpt@670 { // General Purpose Timer
Marian Balakowiczd24bc312007-10-19 04:44:24 +1000132 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
Grant Likely05cbbc62007-02-12 13:36:54 -0700133 cell-index = <7>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700134 reg = <670 10>;
135 interrupts = <1 10 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500136 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700137 };
138
139 rtc@800 { // Real time clock
Grant Likelydcccb372007-10-08 01:24:22 -0600140 compatible = "mpc5200b-rtc","mpc5200-rtc";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700141 device_type = "rtc";
142 reg = <800 100>;
143 interrupts = <1 5 0 1 6 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500144 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700145 };
146
147 mscan@900 {
148 device_type = "mscan";
Grant Likelydcccb372007-10-08 01:24:22 -0600149 compatible = "mpc5200b-mscan","mpc5200-mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700150 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700151 interrupts = <2 11 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500152 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700153 reg = <900 80>;
154 };
155
156 mscan@980 {
157 device_type = "mscan";
Grant Likelydcccb372007-10-08 01:24:22 -0600158 compatible = "mpc5200b-mscan","mpc5200-mscan";
Grant Likely05cbbc62007-02-12 13:36:54 -0700159 cell-index = <1>;
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000160 interrupts = <2 12 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500161 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700162 reg = <980 80>;
163 };
164
165 gpio@b00 {
Grant Likelydcccb372007-10-08 01:24:22 -0600166 compatible = "mpc5200b-gpio","mpc5200-gpio";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700167 reg = <b00 40>;
168 interrupts = <1 7 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500169 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700170 };
171
Domen Puncer0d0f4bc2007-05-07 01:38:48 +1000172 gpio-wkup@c00 {
Grant Likelydcccb372007-10-08 01:24:22 -0600173 compatible = "mpc5200b-gpio-wkup","mpc5200-gpio-wkup";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700174 reg = <c00 40>;
175 interrupts = <1 8 0 0 3 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500176 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700177 };
178
Grant Likelyc6d4d652006-11-27 14:16:29 -0700179 spi@f00 {
180 device_type = "spi";
Grant Likelydcccb372007-10-08 01:24:22 -0600181 compatible = "mpc5200b-spi","mpc5200-spi";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700182 reg = <f00 20>;
183 interrupts = <2 d 0 2 e 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500184 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700185 };
186
187 usb@1000 {
188 device_type = "usb-ohci-be";
Grant Likelydcccb372007-10-08 01:24:22 -0600189 compatible = "mpc5200b-ohci","mpc5200-ohci","ohci-be";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700190 reg = <1000 ff>;
191 interrupts = <2 6 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500192 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700193 };
194
195 bestcomm@1200 {
196 device_type = "dma-controller";
Grant Likelydcccb372007-10-08 01:24:22 -0600197 compatible = "mpc5200b-bestcomm","mpc5200-bestcomm";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700198 reg = <1200 80>;
199 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
200 3 4 0 3 5 0 3 6 0 3 7 0
201 3 8 0 3 9 0 3 a 0 3 b 0
202 3 c 0 3 d 0 3 e 0 3 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500203 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700204 };
205
206 xlb@1f00 {
Grant Likelydcccb372007-10-08 01:24:22 -0600207 compatible = "mpc5200b-xlb","mpc5200-xlb";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700208 reg = <1f00 100>;
209 };
210
211 serial@2000 { // PSC1
212 device_type = "serial";
Grant Likelydcccb372007-10-08 01:24:22 -0600213 compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700214 port-number = <0>; // Logical port assignment
Grant Likely05cbbc62007-02-12 13:36:54 -0700215 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700216 reg = <2000 100>;
217 interrupts = <2 1 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500218 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700219 };
220
Grant Likely05cbbc62007-02-12 13:36:54 -0700221 // PSC2 in ac97 mode example
222 //ac97@2200 { // PSC2
223 // device_type = "sound";
Grant Likelydcccb372007-10-08 01:24:22 -0600224 // compatible = "mpc5200b-psc-ac97","mpc5200-psc-ac97";
Grant Likely05cbbc62007-02-12 13:36:54 -0700225 // cell-index = <1>;
226 // reg = <2200 100>;
227 // interrupts = <2 2 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500228 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700229 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700230
231 // PSC3 in CODEC mode example
Grant Likely05cbbc62007-02-12 13:36:54 -0700232 //i2s@2400 { // PSC3
233 // device_type = "sound";
234 // compatible = "mpc5200b-psc-i2s"; //not 5200 compatible
235 // cell-index = <2>;
236 // reg = <2400 100>;
237 // interrupts = <2 3 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500238 // interrupt-parent = <&mpc5200_pic>;
Grant Likely05cbbc62007-02-12 13:36:54 -0700239 //};
Grant Likelyc6d4d652006-11-27 14:16:29 -0700240
Grant Likely05cbbc62007-02-12 13:36:54 -0700241 // PSC4 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700242 //serial@2600 { // PSC4
243 // device_type = "serial";
Grant Likelydcccb372007-10-08 01:24:22 -0600244 // compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
Grant Likely05cbbc62007-02-12 13:36:54 -0700245 // cell-index = <3>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700246 // reg = <2600 100>;
247 // interrupts = <2 b 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 // PSC5 in uart mode example
Grant Likelyc6d4d652006-11-27 14:16:29 -0700252 //serial@2800 { // PSC5
253 // device_type = "serial";
Grant Likelydcccb372007-10-08 01:24:22 -0600254 // compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
Grant Likely05cbbc62007-02-12 13:36:54 -0700255 // cell-index = <4>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700256 // reg = <2800 100>;
257 // interrupts = <2 c 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500258 // interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700259 //};
260
Grant Likely05cbbc62007-02-12 13:36:54 -0700261 // PSC6 in spi mode example
262 //spi@2c00 { // PSC6
263 // device_type = "spi";
Grant Likelydcccb372007-10-08 01:24:22 -0600264 // compatible = "mpc5200b-psc-spi","mpc5200-psc-spi";
Grant Likely05cbbc62007-02-12 13:36:54 -0700265 // cell-index = <5>;
266 // reg = <2c00 100>;
267 // interrupts = <2 4 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
271 ethernet@3000 {
272 device_type = "network";
Grant Likelydcccb372007-10-08 01:24:22 -0600273 compatible = "mpc5200b-fec","mpc5200-fec";
Domen Puncerb147d932007-10-14 17:57:11 +1000274 reg = <3000 400>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700275 mac-address = [ 02 03 04 05 06 07 ]; // Bad!
276 interrupts = <2 5 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500277 interrupt-parent = <&mpc5200_pic>;
Domen Puncerb147d932007-10-14 17:57:11 +1000278 phy-handle = <&phy0>;
279 };
280
281 mdio@3000 {
282 #address-cells = <1>;
283 #size-cells = <0>;
284 device_type = "mdio";
285 compatible = "mpc5200b-fec-phy";
286 reg = <3000 400>; // fec range, since we need to setup fec interrupts
287 interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
288 interrupt-parent = <&mpc5200_pic>;
289
290 phy0:ethernet-phy@0 {
291 device_type = "ethernet-phy";
292 reg = <0>;
293 };
Grant Likelyc6d4d652006-11-27 14:16:29 -0700294 };
295
296 ata@3a00 {
297 device_type = "ata";
Grant Likelydcccb372007-10-08 01:24:22 -0600298 compatible = "mpc5200b-ata","mpc5200-ata";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700299 reg = <3a00 100>;
300 interrupts = <2 7 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500301 interrupt-parent = <&mpc5200_pic>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700302 };
303
304 i2c@3d00 {
Kumar Galaec9686c2007-12-11 23:17:24 -0600305 #address-cells = <1>;
306 #size-cells = <0>;
Grant Likelydcccb372007-10-08 01:24:22 -0600307 compatible = "mpc5200b-i2c","mpc5200-i2c","fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700308 cell-index = <0>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700309 reg = <3d00 40>;
310 interrupts = <2 f 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500311 interrupt-parent = <&mpc5200_pic>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000312 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700313 };
314
315 i2c@3d40 {
Kumar Galaec9686c2007-12-11 23:17:24 -0600316 #address-cells = <1>;
317 #size-cells = <0>;
Grant Likelydcccb372007-10-08 01:24:22 -0600318 compatible = "mpc5200b-i2c","mpc5200-i2c","fsl-i2c";
Grant Likely05cbbc62007-02-12 13:36:54 -0700319 cell-index = <1>;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700320 reg = <3d40 40>;
321 interrupts = <2 10 0>;
Kumar Gala5c1992f2007-05-15 16:12:27 -0500322 interrupt-parent = <&mpc5200_pic>;
Domen Puncer5cae84c2007-05-07 01:38:49 +1000323 fsl5200-clocking;
Grant Likelyc6d4d652006-11-27 14:16:29 -0700324 };
325 sram@8000 {
326 device_type = "sram";
Grant Likelydcccb372007-10-08 01:24:22 -0600327 compatible = "mpc5200b-sram","mpc5200-sram","sram";
Grant Likelyc6d4d652006-11-27 14:16:29 -0700328 reg = <8000 4000>;
329 };
330 };
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500331
332 pci@f0000d00 {
333 #interrupt-cells = <1>;
334 #size-cells = <2>;
335 #address-cells = <3>;
336 device_type = "pci";
Grant Likelydcccb372007-10-08 01:24:22 -0600337 compatible = "mpc5200b-pci","mpc5200-pci";
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500338 reg = <f0000d00 100>;
339 interrupt-map-mask = <f800 0 0 7>;
340 interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
341 c000 0 0 2 &mpc5200_pic 1 1 3
342 c000 0 0 3 &mpc5200_pic 1 2 3
343 c000 0 0 4 &mpc5200_pic 1 3 3
344
345 c800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
346 c800 0 0 2 &mpc5200_pic 1 2 3
347 c800 0 0 3 &mpc5200_pic 1 3 3
348 c800 0 0 4 &mpc5200_pic 0 0 3>;
349 clock-frequency = <0>; // From boot loader
350 interrupts = <2 8 0 2 9 0 2 a 0>;
351 interrupt-parent = <&mpc5200_pic>;
352 bus-range = <0 0>;
353 ranges = <42000000 0 80000000 80000000 0 20000000
354 02000000 0 a0000000 a0000000 0 10000000
355 01000000 0 00000000 b0000000 0 01000000>;
356 };
Grant Likelyc6d4d652006-11-27 14:16:29 -0700357};