blob: 9dc292962a9a395a6b6f6daace2313f1258720c8 [file] [log] [blame]
Andy Fleming2654d632006-08-18 18:04:34 -05001/*
2 * MPC8540 ADS Device Tree Source
3 *
Kumar Gala32f960e2008-04-17 01:28:15 -05004 * Copyright 2006, 2008 Freescale Semiconductor Inc.
Andy Fleming2654d632006-08-18 18:04:34 -05005 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
10 */
11
Kumar Gala32f960e2008-04-17 01:28:15 -050012/dts-v1/;
Andy Fleming2654d632006-08-18 18:04:34 -050013
14/ {
15 model = "MPC8540ADS";
Kumar Gala52094872007-02-17 16:04:23 -060016 compatible = "MPC8540ADS", "MPC85xxADS";
Andy Fleming2654d632006-08-18 18:04:34 -050017 #address-cells = <1>;
18 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050019
Kumar Galaea082fa2007-12-12 01:46:12 -060020 aliases {
21 ethernet0 = &enet0;
22 ethernet1 = &enet1;
23 ethernet2 = &enet2;
24 serial0 = &serial0;
25 serial1 = &serial1;
26 pci0 = &pci0;
27 };
28
Andy Fleming2654d632006-08-18 18:04:34 -050029 cpus {
Andy Fleming2654d632006-08-18 18:04:34 -050030 #address-cells = <1>;
31 #size-cells = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050032
33 PowerPC,8540@0 {
34 device_type = "cpu";
Kumar Gala32f960e2008-04-17 01:28:15 -050035 reg = <0x0>;
36 d-cache-line-size = <32>; // 32 bytes
37 i-cache-line-size = <32>; // 32 bytes
38 d-cache-size = <0x8000>; // L1, 32K
39 i-cache-size = <0x8000>; // L1, 32K
Andy Fleming2654d632006-08-18 18:04:34 -050040 timebase-frequency = <0>; // 33 MHz, from uboot
41 bus-frequency = <0>; // 166 MHz
42 clock-frequency = <0>; // 825 MHz, from uboot
Kumar Galac0540652008-05-30 13:43:43 -050043 next-level-cache = <&L2>;
Andy Fleming2654d632006-08-18 18:04:34 -050044 };
45 };
46
47 memory {
48 device_type = "memory";
Kumar Gala32f960e2008-04-17 01:28:15 -050049 reg = <0x0 0x8000000>; // 128M at 0x0
Andy Fleming2654d632006-08-18 18:04:34 -050050 };
51
52 soc8540@e0000000 {
53 #address-cells = <1>;
54 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050055 device_type = "soc";
Kim Phillipscf0d19f2008-07-29 15:29:24 -050056 compatible = "simple-bus";
Kumar Gala32f960e2008-04-17 01:28:15 -050057 ranges = <0x0 0xe0000000 0x100000>;
Andy Fleming2654d632006-08-18 18:04:34 -050058 bus-frequency = <0>;
59
Kumar Galae1a22892009-04-22 13:17:42 -050060 ecm-law@0 {
61 compatible = "fsl,ecm-law";
62 reg = <0x0 0x1000>;
63 fsl,num-laws = <8>;
64 };
65
66 ecm@1000 {
67 compatible = "fsl,mpc8540-ecm", "fsl,ecm";
68 reg = <0x1000 0x1000>;
69 interrupts = <17 2>;
70 interrupt-parent = <&mpic>;
71 };
72
Dave Jiang50cf6702007-05-10 10:03:05 -070073 memory-controller@2000 {
74 compatible = "fsl,8540-memory-controller";
Kumar Gala32f960e2008-04-17 01:28:15 -050075 reg = <0x2000 0x1000>;
Dave Jiang50cf6702007-05-10 10:03:05 -070076 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -050077 interrupts = <18 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070078 };
79
Kumar Galac0540652008-05-30 13:43:43 -050080 L2: l2-cache-controller@20000 {
Dave Jiang50cf6702007-05-10 10:03:05 -070081 compatible = "fsl,8540-l2-cache-controller";
Kumar Gala32f960e2008-04-17 01:28:15 -050082 reg = <0x20000 0x1000>;
83 cache-line-size = <32>; // 32 bytes
84 cache-size = <0x40000>; // L2, 256K
Dave Jiang50cf6702007-05-10 10:03:05 -070085 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -050086 interrupts = <16 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070087 };
88
Andy Fleming2654d632006-08-18 18:04:34 -050089 i2c@3000 {
Kumar Galaec9686c2007-12-11 23:17:24 -060090 #address-cells = <1>;
91 #size-cells = <0>;
92 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050093 compatible = "fsl-i2c";
Kumar Gala32f960e2008-04-17 01:28:15 -050094 reg = <0x3000 0x100>;
95 interrupts = <43 2>;
Kumar Gala52094872007-02-17 16:04:23 -060096 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -050097 dfsrr;
98 };
99
Kumar Galadee80552008-06-27 13:45:19 -0500100 dma@21300 {
101 #address-cells = <1>;
102 #size-cells = <1>;
103 compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
104 reg = <0x21300 0x4>;
105 ranges = <0x0 0x21100 0x200>;
106 cell-index = <0>;
107 dma-channel@0 {
108 compatible = "fsl,mpc8540-dma-channel",
109 "fsl,eloplus-dma-channel";
110 reg = <0x0 0x80>;
111 cell-index = <0>;
112 interrupt-parent = <&mpic>;
113 interrupts = <20 2>;
114 };
115 dma-channel@80 {
116 compatible = "fsl,mpc8540-dma-channel",
117 "fsl,eloplus-dma-channel";
118 reg = <0x80 0x80>;
119 cell-index = <1>;
120 interrupt-parent = <&mpic>;
121 interrupts = <21 2>;
122 };
123 dma-channel@100 {
124 compatible = "fsl,mpc8540-dma-channel",
125 "fsl,eloplus-dma-channel";
126 reg = <0x100 0x80>;
127 cell-index = <2>;
128 interrupt-parent = <&mpic>;
129 interrupts = <22 2>;
130 };
131 dma-channel@180 {
132 compatible = "fsl,mpc8540-dma-channel",
133 "fsl,eloplus-dma-channel";
134 reg = <0x180 0x80>;
135 cell-index = <3>;
136 interrupt-parent = <&mpic>;
137 interrupts = <23 2>;
138 };
139 };
140
Kumar Galae77b28e2007-12-12 00:28:35 -0600141 enet0: ethernet@24000 {
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300142 #address-cells = <1>;
143 #size-cells = <1>;
Kumar Galae77b28e2007-12-12 00:28:35 -0600144 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500145 device_type = "network";
146 model = "TSEC";
147 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500148 reg = <0x24000 0x1000>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300149 ranges = <0x0 0x24000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500150 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500151 interrupts = <29 2 30 2 34 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600152 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800153 tbi-handle = <&tbi0>;
Kumar Gala52094872007-02-17 16:04:23 -0600154 phy-handle = <&phy0>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300155
156 mdio@520 {
157 #address-cells = <1>;
158 #size-cells = <0>;
159 compatible = "fsl,gianfar-mdio";
160 reg = <0x520 0x20>;
161
162 phy0: ethernet-phy@0 {
163 interrupt-parent = <&mpic>;
164 interrupts = <5 1>;
165 reg = <0x0>;
166 device_type = "ethernet-phy";
167 };
168 phy1: ethernet-phy@1 {
169 interrupt-parent = <&mpic>;
170 interrupts = <5 1>;
171 reg = <0x1>;
172 device_type = "ethernet-phy";
173 };
174 phy3: ethernet-phy@3 {
175 interrupt-parent = <&mpic>;
176 interrupts = <7 1>;
177 reg = <0x3>;
178 device_type = "ethernet-phy";
179 };
180 tbi0: tbi-phy@11 {
181 reg = <0x11>;
182 device_type = "tbi-phy";
183 };
184 };
Andy Fleming2654d632006-08-18 18:04:34 -0500185 };
186
Kumar Galae77b28e2007-12-12 00:28:35 -0600187 enet1: ethernet@25000 {
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300188 #address-cells = <1>;
189 #size-cells = <1>;
Kumar Galae77b28e2007-12-12 00:28:35 -0600190 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500191 device_type = "network";
192 model = "TSEC";
193 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500194 reg = <0x25000 0x1000>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300195 ranges = <0x0 0x25000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500196 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500197 interrupts = <35 2 36 2 40 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600198 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800199 tbi-handle = <&tbi1>;
Kumar Gala52094872007-02-17 16:04:23 -0600200 phy-handle = <&phy1>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300201
202 mdio@520 {
203 #address-cells = <1>;
204 #size-cells = <0>;
205 compatible = "fsl,gianfar-tbi";
206 reg = <0x520 0x20>;
207
208 tbi1: tbi-phy@11 {
209 reg = <0x11>;
210 device_type = "tbi-phy";
211 };
212 };
Andy Fleming2654d632006-08-18 18:04:34 -0500213 };
214
Kumar Galae77b28e2007-12-12 00:28:35 -0600215 enet2: ethernet@26000 {
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300216 #address-cells = <1>;
217 #size-cells = <1>;
Kumar Galae77b28e2007-12-12 00:28:35 -0600218 cell-index = <2>;
Andy Fleming2654d632006-08-18 18:04:34 -0500219 device_type = "network";
Andy Flemingaa74a302006-08-21 14:29:28 -0500220 model = "FEC";
Andy Fleming2654d632006-08-18 18:04:34 -0500221 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500222 reg = <0x26000 0x1000>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300223 ranges = <0x0 0x26000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500224 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500225 interrupts = <41 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600226 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800227 tbi-handle = <&tbi2>;
Kumar Gala52094872007-02-17 16:04:23 -0600228 phy-handle = <&phy3>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300229
230 mdio@520 {
231 #address-cells = <1>;
232 #size-cells = <0>;
233 compatible = "fsl,gianfar-tbi";
234 reg = <0x520 0x20>;
235
236 tbi2: tbi-phy@11 {
237 reg = <0x11>;
238 device_type = "tbi-phy";
239 };
240 };
Andy Fleming2654d632006-08-18 18:04:34 -0500241 };
242
Kumar Galaea082fa2007-12-12 01:46:12 -0600243 serial0: serial@4500 {
244 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500245 device_type = "serial";
246 compatible = "ns16550";
Kumar Gala32f960e2008-04-17 01:28:15 -0500247 reg = <0x4500 0x100>; // reg base, size
Andy Fleming2654d632006-08-18 18:04:34 -0500248 clock-frequency = <0>; // should we fill in in uboot?
Kumar Gala32f960e2008-04-17 01:28:15 -0500249 interrupts = <42 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600250 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500251 };
252
Kumar Galaea082fa2007-12-12 01:46:12 -0600253 serial1: serial@4600 {
254 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500255 device_type = "serial";
256 compatible = "ns16550";
Kumar Gala32f960e2008-04-17 01:28:15 -0500257 reg = <0x4600 0x100>; // reg base, size
Andy Fleming2654d632006-08-18 18:04:34 -0500258 clock-frequency = <0>; // should we fill in in uboot?
Kumar Gala32f960e2008-04-17 01:28:15 -0500259 interrupts = <42 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600260 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500261 };
Kumar Gala52094872007-02-17 16:04:23 -0600262 mpic: pic@40000 {
Andy Fleming2654d632006-08-18 18:04:34 -0500263 interrupt-controller;
264 #address-cells = <0>;
265 #interrupt-cells = <2>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500266 reg = <0x40000 0x40000>;
Andy Fleming2654d632006-08-18 18:04:34 -0500267 compatible = "chrp,open-pic";
268 device_type = "open-pic";
Andy Fleming2654d632006-08-18 18:04:34 -0500269 };
270 };
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500271
Kumar Galaea082fa2007-12-12 01:46:12 -0600272 pci0: pci@e0008000 {
Kumar Gala32f960e2008-04-17 01:28:15 -0500273 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500274 interrupt-map = <
275
276 /* IDSEL 0x02 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500277 0x1000 0x0 0x0 0x1 &mpic 0x1 0x1
278 0x1000 0x0 0x0 0x2 &mpic 0x2 0x1
279 0x1000 0x0 0x0 0x3 &mpic 0x3 0x1
280 0x1000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500281
282 /* IDSEL 0x03 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500283 0x1800 0x0 0x0 0x1 &mpic 0x4 0x1
284 0x1800 0x0 0x0 0x2 &mpic 0x1 0x1
285 0x1800 0x0 0x0 0x3 &mpic 0x2 0x1
286 0x1800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500287
288 /* IDSEL 0x04 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500289 0x2000 0x0 0x0 0x1 &mpic 0x3 0x1
290 0x2000 0x0 0x0 0x2 &mpic 0x4 0x1
291 0x2000 0x0 0x0 0x3 &mpic 0x1 0x1
292 0x2000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500293
294 /* IDSEL 0x05 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500295 0x2800 0x0 0x0 0x1 &mpic 0x2 0x1
296 0x2800 0x0 0x0 0x2 &mpic 0x3 0x1
297 0x2800 0x0 0x0 0x3 &mpic 0x4 0x1
298 0x2800 0x0 0x0 0x4 &mpic 0x1 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500299
300 /* IDSEL 0x0c */
Kumar Gala32f960e2008-04-17 01:28:15 -0500301 0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
302 0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
303 0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
304 0x6000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500305
306 /* IDSEL 0x0d */
Kumar Gala32f960e2008-04-17 01:28:15 -0500307 0x6800 0x0 0x0 0x1 &mpic 0x4 0x1
308 0x6800 0x0 0x0 0x2 &mpic 0x1 0x1
309 0x6800 0x0 0x0 0x3 &mpic 0x2 0x1
310 0x6800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500311
312 /* IDSEL 0x0e */
Kumar Gala32f960e2008-04-17 01:28:15 -0500313 0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
314 0x7000 0x0 0x0 0x2 &mpic 0x4 0x1
315 0x7000 0x0 0x0 0x3 &mpic 0x1 0x1
316 0x7000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500317
318 /* IDSEL 0x0f */
Kumar Gala32f960e2008-04-17 01:28:15 -0500319 0x7800 0x0 0x0 0x1 &mpic 0x2 0x1
320 0x7800 0x0 0x0 0x2 &mpic 0x3 0x1
321 0x7800 0x0 0x0 0x3 &mpic 0x4 0x1
322 0x7800 0x0 0x0 0x4 &mpic 0x1 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500323
324 /* IDSEL 0x12 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500325 0x9000 0x0 0x0 0x1 &mpic 0x1 0x1
326 0x9000 0x0 0x0 0x2 &mpic 0x2 0x1
327 0x9000 0x0 0x0 0x3 &mpic 0x3 0x1
328 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500329
330 /* IDSEL 0x13 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500331 0x9800 0x0 0x0 0x1 &mpic 0x4 0x1
332 0x9800 0x0 0x0 0x2 &mpic 0x1 0x1
333 0x9800 0x0 0x0 0x3 &mpic 0x2 0x1
334 0x9800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500335
336 /* IDSEL 0x14 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500337 0xa000 0x0 0x0 0x1 &mpic 0x3 0x1
338 0xa000 0x0 0x0 0x2 &mpic 0x4 0x1
339 0xa000 0x0 0x0 0x3 &mpic 0x1 0x1
340 0xa000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500341
342 /* IDSEL 0x15 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500343 0xa800 0x0 0x0 0x1 &mpic 0x2 0x1
344 0xa800 0x0 0x0 0x2 &mpic 0x3 0x1
345 0xa800 0x0 0x0 0x3 &mpic 0x4 0x1
346 0xa800 0x0 0x0 0x4 &mpic 0x1 0x1>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500347 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500348 interrupts = <24 2>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500349 bus-range = <0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500350 ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
351 0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
352 clock-frequency = <66666666>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500353 #interrupt-cells = <1>;
354 #size-cells = <2>;
355 #address-cells = <3>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500356 reg = <0xe0008000 0x1000>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500357 compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
358 device_type = "pci";
359 };
Andy Fleming2654d632006-08-18 18:04:34 -0500360};