blob: 364a969f5c2fb6282824fb2a262a7b5b9e545c11 [file] [log] [blame]
Andy Fleming2654d632006-08-18 18:04:34 -05001/*
2 * MPC8540 ADS Device Tree Source
3 *
4 * Copyright 2006 Freescale Semiconductor Inc.
5 *
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
12
13/ {
14 model = "MPC8540ADS";
Kumar Gala52094872007-02-17 16:04:23 -060015 compatible = "MPC8540ADS", "MPC85xxADS";
Andy Fleming2654d632006-08-18 18:04:34 -050016 #address-cells = <1>;
17 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050018
19 cpus {
Andy Fleming2654d632006-08-18 18:04:34 -050020 #address-cells = <1>;
21 #size-cells = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050022
23 PowerPC,8540@0 {
24 device_type = "cpu";
25 reg = <0>;
26 d-cache-line-size = <20>; // 32 bytes
27 i-cache-line-size = <20>; // 32 bytes
28 d-cache-size = <8000>; // L1, 32K
29 i-cache-size = <8000>; // L1, 32K
30 timebase-frequency = <0>; // 33 MHz, from uboot
31 bus-frequency = <0>; // 166 MHz
32 clock-frequency = <0>; // 825 MHz, from uboot
33 32-bit;
Andy Fleming2654d632006-08-18 18:04:34 -050034 };
35 };
36
37 memory {
38 device_type = "memory";
Andy Fleming2654d632006-08-18 18:04:34 -050039 reg = <00000000 08000000>; // 128M at 0x0
40 };
41
42 soc8540@e0000000 {
43 #address-cells = <1>;
44 #size-cells = <1>;
45 #interrupt-cells = <2>;
46 device_type = "soc";
47 ranges = <0 e0000000 00100000>;
48 reg = <e0000000 00100000>; // CCSRBAR 1M
49 bus-frequency = <0>;
50
Dave Jiang50cf6702007-05-10 10:03:05 -070051 memory-controller@2000 {
52 compatible = "fsl,8540-memory-controller";
53 reg = <2000 1000>;
54 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050055 interrupts = <12 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070056 };
57
58 l2-cache-controller@20000 {
59 compatible = "fsl,8540-l2-cache-controller";
60 reg = <20000 1000>;
61 cache-line-size = <20>; // 32 bytes
62 cache-size = <40000>; // L2, 256K
63 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050064 interrupts = <10 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070065 };
66
Andy Fleming2654d632006-08-18 18:04:34 -050067 i2c@3000 {
68 device_type = "i2c";
69 compatible = "fsl-i2c";
70 reg = <3000 100>;
Kumar Galab533f8a2007-07-03 02:35:35 -050071 interrupts = <2b 2>;
Kumar Gala52094872007-02-17 16:04:23 -060072 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -050073 dfsrr;
74 };
75
76 mdio@24520 {
77 #address-cells = <1>;
78 #size-cells = <0>;
79 device_type = "mdio";
80 compatible = "gianfar";
81 reg = <24520 20>;
Kumar Gala52094872007-02-17 16:04:23 -060082 phy0: ethernet-phy@0 {
83 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050084 interrupts = <5 1>;
Andy Fleming2654d632006-08-18 18:04:34 -050085 reg = <0>;
86 device_type = "ethernet-phy";
87 };
Kumar Gala52094872007-02-17 16:04:23 -060088 phy1: ethernet-phy@1 {
89 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050090 interrupts = <5 1>;
Andy Fleming2654d632006-08-18 18:04:34 -050091 reg = <1>;
92 device_type = "ethernet-phy";
93 };
Kumar Gala52094872007-02-17 16:04:23 -060094 phy3: ethernet-phy@3 {
95 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050096 interrupts = <7 1>;
Andy Flemingaa74a302006-08-21 14:29:28 -050097 reg = <3>;
Andy Fleming2654d632006-08-18 18:04:34 -050098 device_type = "ethernet-phy";
99 };
100 };
101
102 ethernet@24000 {
103 #address-cells = <1>;
104 #size-cells = <0>;
105 device_type = "network";
106 model = "TSEC";
107 compatible = "gianfar";
108 reg = <24000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500109 /*
110 * address is deprecated and will be removed
111 * in 2.6.25. Only recent versions of
112 * U-Boot support local-mac-address, however.
113 */
114 address = [ 00 00 00 00 00 00 ];
115 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500116 interrupts = <1d 2 1e 2 22 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600117 interrupt-parent = <&mpic>;
118 phy-handle = <&phy0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500119 };
120
121 ethernet@25000 {
122 #address-cells = <1>;
123 #size-cells = <0>;
124 device_type = "network";
125 model = "TSEC";
126 compatible = "gianfar";
127 reg = <25000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500128 /*
129 * address is deprecated and will be removed
130 * in 2.6.25. Only recent versions of
131 * U-Boot support local-mac-address, however.
132 */
133 address = [ 00 00 00 00 00 00 ];
134 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500135 interrupts = <23 2 24 2 28 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600136 interrupt-parent = <&mpic>;
137 phy-handle = <&phy1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500138 };
139
140 ethernet@26000 {
141 #address-cells = <1>;
142 #size-cells = <0>;
143 device_type = "network";
Andy Flemingaa74a302006-08-21 14:29:28 -0500144 model = "FEC";
Andy Fleming2654d632006-08-18 18:04:34 -0500145 compatible = "gianfar";
146 reg = <26000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500147 /*
148 * address is deprecated and will be removed
149 * in 2.6.25. Only recent versions of
150 * U-Boot support local-mac-address, however.
151 */
152 address = [ 00 00 00 00 00 00 ];
153 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500154 interrupts = <29 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600155 interrupt-parent = <&mpic>;
156 phy-handle = <&phy3>;
Andy Fleming2654d632006-08-18 18:04:34 -0500157 };
158
159 serial@4500 {
160 device_type = "serial";
161 compatible = "ns16550";
162 reg = <4500 100>; // reg base, size
163 clock-frequency = <0>; // should we fill in in uboot?
Kumar Galab533f8a2007-07-03 02:35:35 -0500164 interrupts = <2a 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600165 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500166 };
167
168 serial@4600 {
169 device_type = "serial";
170 compatible = "ns16550";
171 reg = <4600 100>; // reg base, size
172 clock-frequency = <0>; // should we fill in in uboot?
Kumar Galab533f8a2007-07-03 02:35:35 -0500173 interrupts = <2a 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600174 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500175 };
176 pci@8000 {
Andy Fleming2654d632006-08-18 18:04:34 -0500177 interrupt-map-mask = <f800 0 0 7>;
178 interrupt-map = <
179
180 /* IDSEL 0x02 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500181 1000 0 0 1 &mpic 1 1
182 1000 0 0 2 &mpic 2 1
183 1000 0 0 3 &mpic 3 1
184 1000 0 0 4 &mpic 4 1
Andy Fleming2654d632006-08-18 18:04:34 -0500185
186 /* IDSEL 0x03 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500187 1800 0 0 1 &mpic 4 1
188 1800 0 0 2 &mpic 1 1
189 1800 0 0 3 &mpic 2 1
190 1800 0 0 4 &mpic 3 1
Andy Fleming2654d632006-08-18 18:04:34 -0500191
192 /* IDSEL 0x04 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500193 2000 0 0 1 &mpic 3 1
194 2000 0 0 2 &mpic 4 1
195 2000 0 0 3 &mpic 1 1
196 2000 0 0 4 &mpic 2 1
Andy Fleming2654d632006-08-18 18:04:34 -0500197
198 /* IDSEL 0x05 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500199 2800 0 0 1 &mpic 2 1
200 2800 0 0 2 &mpic 3 1
201 2800 0 0 3 &mpic 4 1
202 2800 0 0 4 &mpic 1 1
Andy Fleming2654d632006-08-18 18:04:34 -0500203
204 /* IDSEL 0x0c */
Kumar Galab533f8a2007-07-03 02:35:35 -0500205 6000 0 0 1 &mpic 1 1
206 6000 0 0 2 &mpic 2 1
207 6000 0 0 3 &mpic 3 1
208 6000 0 0 4 &mpic 4 1
Andy Fleming2654d632006-08-18 18:04:34 -0500209
210 /* IDSEL 0x0d */
Kumar Galab533f8a2007-07-03 02:35:35 -0500211 6800 0 0 1 &mpic 4 1
212 6800 0 0 2 &mpic 1 1
213 6800 0 0 3 &mpic 2 1
214 6800 0 0 4 &mpic 3 1
Andy Fleming2654d632006-08-18 18:04:34 -0500215
216 /* IDSEL 0x0e */
Kumar Galab533f8a2007-07-03 02:35:35 -0500217 7000 0 0 1 &mpic 3 1
218 7000 0 0 2 &mpic 4 1
219 7000 0 0 3 &mpic 1 1
220 7000 0 0 4 &mpic 2 1
Andy Fleming2654d632006-08-18 18:04:34 -0500221
222 /* IDSEL 0x0f */
Kumar Galab533f8a2007-07-03 02:35:35 -0500223 7800 0 0 1 &mpic 2 1
224 7800 0 0 2 &mpic 3 1
225 7800 0 0 3 &mpic 4 1
226 7800 0 0 4 &mpic 1 1
Andy Fleming2654d632006-08-18 18:04:34 -0500227
228 /* IDSEL 0x12 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500229 9000 0 0 1 &mpic 1 1
230 9000 0 0 2 &mpic 2 1
231 9000 0 0 3 &mpic 3 1
232 9000 0 0 4 &mpic 4 1
Andy Fleming2654d632006-08-18 18:04:34 -0500233
234 /* IDSEL 0x13 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500235 9800 0 0 1 &mpic 4 1
236 9800 0 0 2 &mpic 1 1
237 9800 0 0 3 &mpic 2 1
238 9800 0 0 4 &mpic 3 1
Andy Fleming2654d632006-08-18 18:04:34 -0500239
240 /* IDSEL 0x14 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500241 a000 0 0 1 &mpic 3 1
242 a000 0 0 2 &mpic 4 1
243 a000 0 0 3 &mpic 1 1
244 a000 0 0 4 &mpic 2 1
Andy Fleming2654d632006-08-18 18:04:34 -0500245
246 /* IDSEL 0x15 */
Kumar Galab533f8a2007-07-03 02:35:35 -0500247 a800 0 0 1 &mpic 2 1
248 a800 0 0 2 &mpic 3 1
249 a800 0 0 3 &mpic 4 1
250 a800 0 0 4 &mpic 1 1>;
Kumar Gala52094872007-02-17 16:04:23 -0600251 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -0500252 interrupts = <18 2>;
Andy Fleming2654d632006-08-18 18:04:34 -0500253 bus-range = <0 0>;
254 ranges = <02000000 0 80000000 80000000 0 20000000
255 01000000 0 00000000 e2000000 0 00100000>;
256 clock-frequency = <3f940aa>;
257 #interrupt-cells = <1>;
258 #size-cells = <2>;
259 #address-cells = <3>;
260 reg = <8000 1000>;
261 compatible = "85xx";
262 device_type = "pci";
263 };
264
Kumar Gala52094872007-02-17 16:04:23 -0600265 mpic: pic@40000 {
Andy Fleming2654d632006-08-18 18:04:34 -0500266 clock-frequency = <0>;
267 interrupt-controller;
268 #address-cells = <0>;
269 #interrupt-cells = <2>;
270 reg = <40000 40000>;
271 built-in;
272 compatible = "chrp,open-pic";
273 device_type = "open-pic";
Andy Flemingaa74a302006-08-21 14:29:28 -0500274 big-endian;
Andy Fleming2654d632006-08-18 18:04:34 -0500275 };
276 };
277};