blob: ddd67be10b033f6afa6683aa67654ea66f173c30 [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>;
58 reg = <0xe0000000 0x100000>; // CCSRBAR 1M
Andy Fleming2654d632006-08-18 18:04:34 -050059 bus-frequency = <0>;
60
Dave Jiang50cf6702007-05-10 10:03:05 -070061 memory-controller@2000 {
62 compatible = "fsl,8540-memory-controller";
Kumar Gala32f960e2008-04-17 01:28:15 -050063 reg = <0x2000 0x1000>;
Dave Jiang50cf6702007-05-10 10:03:05 -070064 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -050065 interrupts = <18 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070066 };
67
Kumar Galac0540652008-05-30 13:43:43 -050068 L2: l2-cache-controller@20000 {
Dave Jiang50cf6702007-05-10 10:03:05 -070069 compatible = "fsl,8540-l2-cache-controller";
Kumar Gala32f960e2008-04-17 01:28:15 -050070 reg = <0x20000 0x1000>;
71 cache-line-size = <32>; // 32 bytes
72 cache-size = <0x40000>; // L2, 256K
Dave Jiang50cf6702007-05-10 10:03:05 -070073 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -050074 interrupts = <16 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070075 };
76
Andy Fleming2654d632006-08-18 18:04:34 -050077 i2c@3000 {
Kumar Galaec9686c2007-12-11 23:17:24 -060078 #address-cells = <1>;
79 #size-cells = <0>;
80 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050081 compatible = "fsl-i2c";
Kumar Gala32f960e2008-04-17 01:28:15 -050082 reg = <0x3000 0x100>;
83 interrupts = <43 2>;
Kumar Gala52094872007-02-17 16:04:23 -060084 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -050085 dfsrr;
86 };
87
Kumar Galadee80552008-06-27 13:45:19 -050088 dma@21300 {
89 #address-cells = <1>;
90 #size-cells = <1>;
91 compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
92 reg = <0x21300 0x4>;
93 ranges = <0x0 0x21100 0x200>;
94 cell-index = <0>;
95 dma-channel@0 {
96 compatible = "fsl,mpc8540-dma-channel",
97 "fsl,eloplus-dma-channel";
98 reg = <0x0 0x80>;
99 cell-index = <0>;
100 interrupt-parent = <&mpic>;
101 interrupts = <20 2>;
102 };
103 dma-channel@80 {
104 compatible = "fsl,mpc8540-dma-channel",
105 "fsl,eloplus-dma-channel";
106 reg = <0x80 0x80>;
107 cell-index = <1>;
108 interrupt-parent = <&mpic>;
109 interrupts = <21 2>;
110 };
111 dma-channel@100 {
112 compatible = "fsl,mpc8540-dma-channel",
113 "fsl,eloplus-dma-channel";
114 reg = <0x100 0x80>;
115 cell-index = <2>;
116 interrupt-parent = <&mpic>;
117 interrupts = <22 2>;
118 };
119 dma-channel@180 {
120 compatible = "fsl,mpc8540-dma-channel",
121 "fsl,eloplus-dma-channel";
122 reg = <0x180 0x80>;
123 cell-index = <3>;
124 interrupt-parent = <&mpic>;
125 interrupts = <23 2>;
126 };
127 };
128
Kumar Galae77b28e2007-12-12 00:28:35 -0600129 enet0: ethernet@24000 {
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300130 #address-cells = <1>;
131 #size-cells = <1>;
Kumar Galae77b28e2007-12-12 00:28:35 -0600132 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500133 device_type = "network";
134 model = "TSEC";
135 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500136 reg = <0x24000 0x1000>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300137 ranges = <0x0 0x24000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500138 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500139 interrupts = <29 2 30 2 34 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600140 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800141 tbi-handle = <&tbi0>;
Kumar Gala52094872007-02-17 16:04:23 -0600142 phy-handle = <&phy0>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300143
144 mdio@520 {
145 #address-cells = <1>;
146 #size-cells = <0>;
147 compatible = "fsl,gianfar-mdio";
148 reg = <0x520 0x20>;
149
150 phy0: ethernet-phy@0 {
151 interrupt-parent = <&mpic>;
152 interrupts = <5 1>;
153 reg = <0x0>;
154 device_type = "ethernet-phy";
155 };
156 phy1: ethernet-phy@1 {
157 interrupt-parent = <&mpic>;
158 interrupts = <5 1>;
159 reg = <0x1>;
160 device_type = "ethernet-phy";
161 };
162 phy3: ethernet-phy@3 {
163 interrupt-parent = <&mpic>;
164 interrupts = <7 1>;
165 reg = <0x3>;
166 device_type = "ethernet-phy";
167 };
168 tbi0: tbi-phy@11 {
169 reg = <0x11>;
170 device_type = "tbi-phy";
171 };
172 };
Andy Fleming2654d632006-08-18 18:04:34 -0500173 };
174
Kumar Galae77b28e2007-12-12 00:28:35 -0600175 enet1: ethernet@25000 {
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300176 #address-cells = <1>;
177 #size-cells = <1>;
Kumar Galae77b28e2007-12-12 00:28:35 -0600178 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500179 device_type = "network";
180 model = "TSEC";
181 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500182 reg = <0x25000 0x1000>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300183 ranges = <0x0 0x25000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500184 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500185 interrupts = <35 2 36 2 40 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600186 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800187 tbi-handle = <&tbi1>;
Kumar Gala52094872007-02-17 16:04:23 -0600188 phy-handle = <&phy1>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300189
190 mdio@520 {
191 #address-cells = <1>;
192 #size-cells = <0>;
193 compatible = "fsl,gianfar-tbi";
194 reg = <0x520 0x20>;
195
196 tbi1: tbi-phy@11 {
197 reg = <0x11>;
198 device_type = "tbi-phy";
199 };
200 };
Andy Fleming2654d632006-08-18 18:04:34 -0500201 };
202
Kumar Galae77b28e2007-12-12 00:28:35 -0600203 enet2: ethernet@26000 {
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300204 #address-cells = <1>;
205 #size-cells = <1>;
Kumar Galae77b28e2007-12-12 00:28:35 -0600206 cell-index = <2>;
Andy Fleming2654d632006-08-18 18:04:34 -0500207 device_type = "network";
Andy Flemingaa74a302006-08-21 14:29:28 -0500208 model = "FEC";
Andy Fleming2654d632006-08-18 18:04:34 -0500209 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500210 reg = <0x26000 0x1000>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300211 ranges = <0x0 0x26000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500212 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500213 interrupts = <41 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600214 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800215 tbi-handle = <&tbi2>;
Kumar Gala52094872007-02-17 16:04:23 -0600216 phy-handle = <&phy3>;
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300217
218 mdio@520 {
219 #address-cells = <1>;
220 #size-cells = <0>;
221 compatible = "fsl,gianfar-tbi";
222 reg = <0x520 0x20>;
223
224 tbi2: tbi-phy@11 {
225 reg = <0x11>;
226 device_type = "tbi-phy";
227 };
228 };
Andy Fleming2654d632006-08-18 18:04:34 -0500229 };
230
Kumar Galaea082fa2007-12-12 01:46:12 -0600231 serial0: serial@4500 {
232 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500233 device_type = "serial";
234 compatible = "ns16550";
Kumar Gala32f960e2008-04-17 01:28:15 -0500235 reg = <0x4500 0x100>; // reg base, size
Andy Fleming2654d632006-08-18 18:04:34 -0500236 clock-frequency = <0>; // should we fill in in uboot?
Kumar Gala32f960e2008-04-17 01:28:15 -0500237 interrupts = <42 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600238 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500239 };
240
Kumar Galaea082fa2007-12-12 01:46:12 -0600241 serial1: serial@4600 {
242 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500243 device_type = "serial";
244 compatible = "ns16550";
Kumar Gala32f960e2008-04-17 01:28:15 -0500245 reg = <0x4600 0x100>; // reg base, size
Andy Fleming2654d632006-08-18 18:04:34 -0500246 clock-frequency = <0>; // should we fill in in uboot?
Kumar Gala32f960e2008-04-17 01:28:15 -0500247 interrupts = <42 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600248 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500249 };
Kumar Gala52094872007-02-17 16:04:23 -0600250 mpic: pic@40000 {
Andy Fleming2654d632006-08-18 18:04:34 -0500251 interrupt-controller;
252 #address-cells = <0>;
253 #interrupt-cells = <2>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500254 reg = <0x40000 0x40000>;
Andy Fleming2654d632006-08-18 18:04:34 -0500255 compatible = "chrp,open-pic";
256 device_type = "open-pic";
Andy Fleming2654d632006-08-18 18:04:34 -0500257 };
258 };
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500259
Kumar Galaea082fa2007-12-12 01:46:12 -0600260 pci0: pci@e0008000 {
261 cell-index = <0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500262 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500263 interrupt-map = <
264
265 /* IDSEL 0x02 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500266 0x1000 0x0 0x0 0x1 &mpic 0x1 0x1
267 0x1000 0x0 0x0 0x2 &mpic 0x2 0x1
268 0x1000 0x0 0x0 0x3 &mpic 0x3 0x1
269 0x1000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500270
271 /* IDSEL 0x03 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500272 0x1800 0x0 0x0 0x1 &mpic 0x4 0x1
273 0x1800 0x0 0x0 0x2 &mpic 0x1 0x1
274 0x1800 0x0 0x0 0x3 &mpic 0x2 0x1
275 0x1800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500276
277 /* IDSEL 0x04 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500278 0x2000 0x0 0x0 0x1 &mpic 0x3 0x1
279 0x2000 0x0 0x0 0x2 &mpic 0x4 0x1
280 0x2000 0x0 0x0 0x3 &mpic 0x1 0x1
281 0x2000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500282
283 /* IDSEL 0x05 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500284 0x2800 0x0 0x0 0x1 &mpic 0x2 0x1
285 0x2800 0x0 0x0 0x2 &mpic 0x3 0x1
286 0x2800 0x0 0x0 0x3 &mpic 0x4 0x1
287 0x2800 0x0 0x0 0x4 &mpic 0x1 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500288
289 /* IDSEL 0x0c */
Kumar Gala32f960e2008-04-17 01:28:15 -0500290 0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
291 0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
292 0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
293 0x6000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500294
295 /* IDSEL 0x0d */
Kumar Gala32f960e2008-04-17 01:28:15 -0500296 0x6800 0x0 0x0 0x1 &mpic 0x4 0x1
297 0x6800 0x0 0x0 0x2 &mpic 0x1 0x1
298 0x6800 0x0 0x0 0x3 &mpic 0x2 0x1
299 0x6800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500300
301 /* IDSEL 0x0e */
Kumar Gala32f960e2008-04-17 01:28:15 -0500302 0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
303 0x7000 0x0 0x0 0x2 &mpic 0x4 0x1
304 0x7000 0x0 0x0 0x3 &mpic 0x1 0x1
305 0x7000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500306
307 /* IDSEL 0x0f */
Kumar Gala32f960e2008-04-17 01:28:15 -0500308 0x7800 0x0 0x0 0x1 &mpic 0x2 0x1
309 0x7800 0x0 0x0 0x2 &mpic 0x3 0x1
310 0x7800 0x0 0x0 0x3 &mpic 0x4 0x1
311 0x7800 0x0 0x0 0x4 &mpic 0x1 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500312
313 /* IDSEL 0x12 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500314 0x9000 0x0 0x0 0x1 &mpic 0x1 0x1
315 0x9000 0x0 0x0 0x2 &mpic 0x2 0x1
316 0x9000 0x0 0x0 0x3 &mpic 0x3 0x1
317 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500318
319 /* IDSEL 0x13 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500320 0x9800 0x0 0x0 0x1 &mpic 0x4 0x1
321 0x9800 0x0 0x0 0x2 &mpic 0x1 0x1
322 0x9800 0x0 0x0 0x3 &mpic 0x2 0x1
323 0x9800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500324
325 /* IDSEL 0x14 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500326 0xa000 0x0 0x0 0x1 &mpic 0x3 0x1
327 0xa000 0x0 0x0 0x2 &mpic 0x4 0x1
328 0xa000 0x0 0x0 0x3 &mpic 0x1 0x1
329 0xa000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500330
331 /* IDSEL 0x15 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500332 0xa800 0x0 0x0 0x1 &mpic 0x2 0x1
333 0xa800 0x0 0x0 0x2 &mpic 0x3 0x1
334 0xa800 0x0 0x0 0x3 &mpic 0x4 0x1
335 0xa800 0x0 0x0 0x4 &mpic 0x1 0x1>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500336 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500337 interrupts = <24 2>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500338 bus-range = <0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500339 ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
340 0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
341 clock-frequency = <66666666>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500342 #interrupt-cells = <1>;
343 #size-cells = <2>;
344 #address-cells = <3>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500345 reg = <0xe0008000 0x1000>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500346 compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
347 device_type = "pci";
348 };
Andy Fleming2654d632006-08-18 18:04:34 -0500349};