2 * Device Tree Source for IBM/AMCC Taishan
4 * Copyright 2007 IBM Corp.
5 * Hugh Blemings <hugh@au.ibm.com> based off code by
6 * Josh Boyer <jwboyer@linux.vnet.ibm.com>, David Gibson <dwg@au1.ibm.com>
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without
10 * any warranty of any kind, whether express or implied.
18 model = "amcc,taishan";
19 compatible = "amcc,taishan";
20 dcr-parent = <&{/cpus/cpu@0}>;
35 model = "PowerPC,440GX";
37 clock-frequency = <800000000>; // 800MHz
38 timebase-frequency = <0>; // Filled in by zImage
39 i-cache-line-size = <50>;
40 d-cache-line-size = <50>;
41 i-cache-size = <32768>; /* 32 kB */
42 d-cache-size = <32768>; /* 32 kB */
44 dcr-access-method = "native";
49 device_type = "memory";
50 reg = <0x00000000 0x00000000 0x00000000>; // Filled in by zImage
54 UICB0: interrupt-controller-base {
55 compatible = "ibm,uic-440gx", "ibm,uic";
58 dcr-reg = <0x200 0x009>;
61 #interrupt-cells = <2>;
65 UIC0: interrupt-controller0 {
66 compatible = "ibm,uic-440gx", "ibm,uic";
69 dcr-reg = <0x0c0 0x009>;
72 #interrupt-cells = <2>;
73 interrupts = <0x1 0x4 0x0 0x4>; /* cascade - first non-critical */
74 interrupt-parent = <&UICB0>;
78 UIC1: interrupt-controller1 {
79 compatible = "ibm,uic-440gx", "ibm,uic";
82 dcr-reg = <0x0d0 0x009>;
85 #interrupt-cells = <2>;
86 interrupts = <0x3 0x4 0x2 0x4>; /* cascade */
87 interrupt-parent = <&UICB0>;
90 UIC2: interrupt-controller2 {
91 compatible = "ibm,uic-440gx", "ibm,uic";
93 cell-index = <2>; /* was 1 */
94 dcr-reg = <0x210 0x009>;
97 #interrupt-cells = <2>;
98 interrupts = <0x5 0x4 0x4 0x4>; /* cascade */
99 interrupt-parent = <&UICB0>;
104 compatible = "ibm,cpc-440gp";
105 dcr-reg = <0x0b0 0x003 0x0e0 0x010>;
106 // FIXME: anything else?
110 compatible = "ibm,l2-cache-440gx", "ibm,l2-cache";
111 dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */
112 0x030 0x008>; /* L2 cache DCR's */
113 cache-line-size = <32>; /* 32 bytes */
114 cache-size = <262144>; /* L2, 256K */
115 interrupt-parent = <&UIC2>;
116 interrupts = <0x17 0x1>;
120 compatible = "ibm,plb-440gx", "ibm,plb4";
121 #address-cells = <2>;
124 clock-frequency = <160000000>; // 160MHz
126 SDRAM0: memory-controller {
127 compatible = "ibm,sdram-440gp";
128 dcr-reg = <0x010 0x002>;
129 // FIXME: anything else?
133 compatible = "ibm,sram-440gp";
134 dcr-reg = <0x020 0x008 0x00a 0x001>;
139 compatible = "ibm,dma-440gp";
140 dcr-reg = <0x100 0x027>;
144 compatible = "ibm,mcmal-440gx", "ibm,mcmal2";
145 dcr-reg = <0x180 0x062>;
148 interrupt-parent = <&MAL0>;
149 interrupts = <0x0 0x1 0x2 0x3 0x4>;
150 #interrupt-cells = <1>;
151 #address-cells = <0>;
153 interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
154 /*RXEOB*/ 0x1 &UIC0 0xb 0x4
155 /*SERR*/ 0x2 &UIC1 0x0 0x4
156 /*TXDE*/ 0x3 &UIC1 0x1 0x4
157 /*RXDE*/ 0x4 &UIC1 0x2 0x4>;
158 interrupt-map-mask = <0xffffffff>;
162 compatible = "ibm,opb-440gx", "ibm,opb";
163 #address-cells = <1>;
165 /* Wish there was a nicer way of specifying a full 32-bit
167 ranges = <0x00000000 0x00000001 0x00000000 0x80000000
168 0x80000000 0x00000001 0x80000000 0x80000000>;
169 dcr-reg = <0x090 0x00b>;
170 interrupt-parent = <&UIC1>;
171 interrupts = <0x7 0x4>;
172 clock-frequency = <80000000>; // 80MHz
176 compatible = "ibm,ebc-440gx", "ibm,ebc";
177 dcr-reg = <0x012 0x002>;
178 #address-cells = <2>;
180 clock-frequency = <80000000>; // 80MHz
182 /* ranges property is supplied by zImage
183 * based on firmware's configuration of the
186 interrupts = <0x5 0x4>;
187 interrupt-parent = <&UIC1>;
189 /* TODO: Add other EBC devices */
194 UART0: serial@40000200 {
195 device_type = "serial";
196 compatible = "ns16550";
197 reg = <0x40000200 0x00000008>;
198 virtual-reg = <0xe0000200>;
199 clock-frequency = <11059200>;
200 current-speed = <115200>; /* 115200 */
201 interrupt-parent = <&UIC0>;
202 interrupts = <0x0 0x4>;
205 UART1: serial@40000300 {
206 device_type = "serial";
207 compatible = "ns16550";
208 reg = <0x40000300 0x00000008>;
209 virtual-reg = <0xe0000300>;
210 clock-frequency = <11059200>;
211 current-speed = <115200>; /* 115200 */
212 interrupt-parent = <&UIC0>;
213 interrupts = <0x1 0x4>;
218 compatible = "ibm,iic-440gp", "ibm,iic";
219 reg = <0x40000400 0x00000014>;
220 interrupt-parent = <&UIC0>;
221 interrupts = <0x2 0x4>;
225 compatible = "ibm,iic-440gp", "ibm,iic";
226 reg = <0x40000500 0x00000014>;
227 interrupt-parent = <&UIC0>;
228 interrupts = <0x3 0x4>;
231 GPIO0: gpio@40000700 {
233 compatible = "ibm,gpio-440gp";
234 reg = <0x40000700 0x00000020>;
237 ZMII0: emac-zmii@40000780 {
238 compatible = "ibm,zmii-440gx", "ibm,zmii";
239 reg = <0x40000780 0x0000000c>;
242 RGMII0: emac-rgmii@40000790 {
243 compatible = "ibm,rgmii";
244 reg = <0x40000790 0x00000008>;
247 TAH0: emac-tah@40000b50 {
248 compatible = "ibm,tah-440gx", "ibm,tah";
249 reg = <0x40000b50 0x00000030>;
252 TAH1: emac-tah@40000d50 {
253 compatible = "ibm,tah-440gx", "ibm,tah";
254 reg = <0x40000d50 0x00000030>;
257 EMAC0: ethernet@40000800 {
259 device_type = "network";
260 compatible = "ibm,emac-440gx", "ibm,emac4";
261 interrupt-parent = <&UIC1>;
262 interrupts = <0x1c 0x4 0x1d 0x4>;
263 reg = <0x40000800 0x00000070>;
264 local-mac-address = [000000000000]; // Filled in by zImage
265 mal-device = <&MAL0>;
266 mal-tx-channel = <0>;
267 mal-rx-channel = <0>;
269 max-frame-size = <1500>;
270 rx-fifo-size = <4096>;
271 tx-fifo-size = <2048>;
273 phy-map = <0x00000001>;
274 zmii-device = <&ZMII0>;
277 EMAC1: ethernet@40000900 {
279 device_type = "network";
280 compatible = "ibm,emac-440gx", "ibm,emac4";
281 interrupt-parent = <&UIC1>;
282 interrupts = <0x1e 0x4 0x1f 0x4>;
283 reg = <0x40000900 0x00000070>;
284 local-mac-address = [000000000000]; // Filled in by zImage
285 mal-device = <&MAL0>;
286 mal-tx-channel = <1>;
287 mal-rx-channel = <1>;
289 max-frame-size = <1500>;
290 rx-fifo-size = <4096>;
291 tx-fifo-size = <2048>;
293 phy-map = <0x00000001>;
294 zmii-device = <&ZMII0>;
298 EMAC2: ethernet@40000c00 {
299 device_type = "network";
300 compatible = "ibm,emac-440gx", "ibm,emac4";
301 interrupt-parent = <&UIC2>;
302 interrupts = <0x0 0x4 0x1 0x4>;
303 reg = <0x40000c00 0x00000070>;
304 local-mac-address = [000000000000]; // Filled in by zImage
305 mal-device = <&MAL0>;
306 mal-tx-channel = <2>;
307 mal-rx-channel = <2>;
309 max-frame-size = <9000>;
310 rx-fifo-size = <4096>;
311 tx-fifo-size = <2048>;
313 phy-map = <0x00000001>;
314 rgmii-device = <&RGMII0>;
316 zmii-device = <&ZMII0>;
318 tah-device = <&TAH0>;
322 EMAC3: ethernet@40000e00 {
323 device_type = "network";
324 compatible = "ibm,emac-440gx", "ibm,emac4";
325 interrupt-parent = <&UIC2>;
326 interrupts = <0x2 0x4 0x3 0x4>;
327 reg = <0x40000e00 0x00000070>;
328 local-mac-address = [000000000000]; // Filled in by zImage
329 mal-device = <&MAL0>;
330 mal-tx-channel = <3>;
331 mal-rx-channel = <3>;
333 max-frame-size = <9000>;
334 rx-fifo-size = <4096>;
335 tx-fifo-size = <2048>;
337 phy-map = <0x00000003>;
338 rgmii-device = <&RGMII0>;
340 zmii-device = <&ZMII0>;
342 tah-device = <&TAH1>;
349 reg = <0x40000a00 0x000000d4>;
350 interrupt-parent = <&UIC0>;
351 interrupts = <0x12 0x4 0x13 0x4 0x14 0x4 0x15 0x4 0x16 0x4>;
356 PCIX0: pci@20ec00000 {
358 #interrupt-cells = <1>;
360 #address-cells = <3>;
361 compatible = "ibm,plb440gp-pcix", "ibm,plb-pcix";
363 large-inbound-windows;
365 reg = <0x00000002 0x0ec00000 0x00000008 /* Config space access */
366 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
367 0x00000002 0x0ed00000 0x00000004 /* Special cycles */
368 0x00000002 0x0ec80000 0x00000100 /* Internal registers */
369 0x00000002 0x0ec80100 0x000000fc>; /* Internal messaging registers */
371 /* Outbound ranges, one memory and one IO,
372 * later cannot be changed
374 ranges = <0x02000000 0x00000000 0x80000000 0x00000003 0x80000000 0x00000000 0x80000000
375 0x01000000 0x00000000 0x00000000 0x00000002 0x08000000 0x00000000 0x00010000>;
377 /* Inbound 2GB range starting at 0 */
378 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
380 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
383 0x800 0x0 0x0 0x1 &UIC0 0x17 0x8
384 0x800 0x0 0x0 0x2 &UIC0 0x18 0x8
385 0x800 0x0 0x0 0x3 &UIC0 0x19 0x8
386 0x800 0x0 0x0 0x4 &UIC0 0x1a 0x8
389 0x1000 0x0 0x0 0x1 &UIC0 0x18 0x8
390 0x1000 0x0 0x0 0x2 &UIC0 0x19 0x8
391 0x1000 0x0 0x0 0x3 &UIC0 0x1a 0x8
392 0x1000 0x0 0x0 0x4 &UIC0 0x17 0x8
398 linux,stdout-path = "/plb/opb/serial@40000300";