xref: /OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/icon.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Source for Mosaix Technologies, Inc. ICON board
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright 2010 DENX Software Engineering, Stefan Roese <sr@denx.de>
5*4882a593Smuzhiyun *
6*4882a593Smuzhiyun * This file is licensed under the terms of the GNU General Public
7*4882a593Smuzhiyun * License version 2.  This program is licensed "as is" without
8*4882a593Smuzhiyun * any warranty of any kind, whether express or implied.
9*4882a593Smuzhiyun */
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun/dts-v1/;
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun/ {
14*4882a593Smuzhiyun	#address-cells = <2>;
15*4882a593Smuzhiyun	#size-cells = <2>;
16*4882a593Smuzhiyun	model = "mosaixtech,icon";
17*4882a593Smuzhiyun	compatible = "mosaixtech,icon";
18*4882a593Smuzhiyun	dcr-parent = <&{/cpus/cpu@0}>;
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	aliases {
21*4882a593Smuzhiyun		ethernet0 = &EMAC0;
22*4882a593Smuzhiyun		serial0 = &UART0;
23*4882a593Smuzhiyun		serial1 = &UART1;
24*4882a593Smuzhiyun		serial2 = &UART2;
25*4882a593Smuzhiyun	};
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	cpus {
28*4882a593Smuzhiyun		#address-cells = <1>;
29*4882a593Smuzhiyun		#size-cells = <0>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun		cpu@0 {
32*4882a593Smuzhiyun			device_type = "cpu";
33*4882a593Smuzhiyun			model = "PowerPC,440SPe";
34*4882a593Smuzhiyun			reg = <0x00000000>;
35*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by U-Boot */
36*4882a593Smuzhiyun			timebase-frequency = <0>; /* Filled in by U-Boot */
37*4882a593Smuzhiyun			i-cache-line-size = <32>;
38*4882a593Smuzhiyun			d-cache-line-size = <32>;
39*4882a593Smuzhiyun			i-cache-size = <32768>;
40*4882a593Smuzhiyun			d-cache-size = <32768>;
41*4882a593Smuzhiyun			dcr-controller;
42*4882a593Smuzhiyun			dcr-access-method = "native";
43*4882a593Smuzhiyun			reset-type = <2>;	/* Use chip-reset */
44*4882a593Smuzhiyun		};
45*4882a593Smuzhiyun	};
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun	memory {
48*4882a593Smuzhiyun		device_type = "memory";
49*4882a593Smuzhiyun		reg = <0x0 0x00000000 0x0 0x00000000>; /* Filled in by U-Boot */
50*4882a593Smuzhiyun	};
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun	UIC0: interrupt-controller0 {
53*4882a593Smuzhiyun		compatible = "ibm,uic-440spe","ibm,uic";
54*4882a593Smuzhiyun		interrupt-controller;
55*4882a593Smuzhiyun		cell-index = <0>;
56*4882a593Smuzhiyun		dcr-reg = <0x0c0 0x009>;
57*4882a593Smuzhiyun		#address-cells = <0>;
58*4882a593Smuzhiyun		#size-cells = <0>;
59*4882a593Smuzhiyun		#interrupt-cells = <2>;
60*4882a593Smuzhiyun	};
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun	UIC1: interrupt-controller1 {
63*4882a593Smuzhiyun		compatible = "ibm,uic-440spe","ibm,uic";
64*4882a593Smuzhiyun		interrupt-controller;
65*4882a593Smuzhiyun		cell-index = <1>;
66*4882a593Smuzhiyun		dcr-reg = <0x0d0 0x009>;
67*4882a593Smuzhiyun		#address-cells = <0>;
68*4882a593Smuzhiyun		#size-cells = <0>;
69*4882a593Smuzhiyun		#interrupt-cells = <2>;
70*4882a593Smuzhiyun		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
71*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
72*4882a593Smuzhiyun	};
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun	UIC2: interrupt-controller2 {
75*4882a593Smuzhiyun		compatible = "ibm,uic-440spe","ibm,uic";
76*4882a593Smuzhiyun		interrupt-controller;
77*4882a593Smuzhiyun		cell-index = <2>;
78*4882a593Smuzhiyun		dcr-reg = <0x0e0 0x009>;
79*4882a593Smuzhiyun		#address-cells = <0>;
80*4882a593Smuzhiyun		#size-cells = <0>;
81*4882a593Smuzhiyun		#interrupt-cells = <2>;
82*4882a593Smuzhiyun		interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
83*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
84*4882a593Smuzhiyun	};
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun	UIC3: interrupt-controller3 {
87*4882a593Smuzhiyun		compatible = "ibm,uic-440spe","ibm,uic";
88*4882a593Smuzhiyun		interrupt-controller;
89*4882a593Smuzhiyun		cell-index = <3>;
90*4882a593Smuzhiyun		dcr-reg = <0x0f0 0x009>;
91*4882a593Smuzhiyun		#address-cells = <0>;
92*4882a593Smuzhiyun		#size-cells = <0>;
93*4882a593Smuzhiyun		#interrupt-cells = <2>;
94*4882a593Smuzhiyun		interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
95*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
96*4882a593Smuzhiyun	};
97*4882a593Smuzhiyun
98*4882a593Smuzhiyun	SDR0: sdr {
99*4882a593Smuzhiyun		compatible = "ibm,sdr-440spe";
100*4882a593Smuzhiyun		dcr-reg = <0x00e 0x002>;
101*4882a593Smuzhiyun	};
102*4882a593Smuzhiyun
103*4882a593Smuzhiyun	CPR0: cpr {
104*4882a593Smuzhiyun		compatible = "ibm,cpr-440spe";
105*4882a593Smuzhiyun		dcr-reg = <0x00c 0x002>;
106*4882a593Smuzhiyun	};
107*4882a593Smuzhiyun
108*4882a593Smuzhiyun	MQ0: mq {
109*4882a593Smuzhiyun		compatible = "ibm,mq-440spe";
110*4882a593Smuzhiyun		dcr-reg = <0x040 0x020>;
111*4882a593Smuzhiyun	};
112*4882a593Smuzhiyun
113*4882a593Smuzhiyun	plb {
114*4882a593Smuzhiyun		compatible = "ibm,plb-440spe", "ibm,plb-440gp", "ibm,plb4";
115*4882a593Smuzhiyun		#address-cells = <2>;
116*4882a593Smuzhiyun		#size-cells = <1>;
117*4882a593Smuzhiyun		/*        addr-child     addr-parent    size */
118*4882a593Smuzhiyun		ranges = <0x4 0x00100000 0x4 0x00100000 0x00001000
119*4882a593Smuzhiyun			  0x4 0x00200000 0x4 0x00200000 0x00000400
120*4882a593Smuzhiyun			  0x4 0xe0000000 0x4 0xe0000000 0x20000000
121*4882a593Smuzhiyun			  0xc 0x00000000 0xc 0x00000000 0x20000000
122*4882a593Smuzhiyun			  0xd 0x00000000 0xd 0x00000000 0x80000000
123*4882a593Smuzhiyun			  0xd 0x80000000 0xd 0x80000000 0x80000000
124*4882a593Smuzhiyun			  0xe 0x00000000 0xe 0x00000000 0x80000000
125*4882a593Smuzhiyun			  0xe 0x80000000 0xe 0x80000000 0x80000000
126*4882a593Smuzhiyun			  0xf 0x00000000 0xf 0x00000000 0x80000000
127*4882a593Smuzhiyun			  0xf 0x80000000 0xf 0x80000000 0x80000000>;
128*4882a593Smuzhiyun		clock-frequency = <0>; /* Filled in by U-Boot */
129*4882a593Smuzhiyun
130*4882a593Smuzhiyun		SDRAM0: sdram {
131*4882a593Smuzhiyun			compatible = "ibm,sdram-440spe", "ibm,sdram-405gp";
132*4882a593Smuzhiyun			dcr-reg = <0x010 0x002>;
133*4882a593Smuzhiyun		};
134*4882a593Smuzhiyun
135*4882a593Smuzhiyun		MAL0: mcmal {
136*4882a593Smuzhiyun			compatible = "ibm,mcmal-440spe", "ibm,mcmal2";
137*4882a593Smuzhiyun			dcr-reg = <0x180 0x062>;
138*4882a593Smuzhiyun			num-tx-chans = <2>;
139*4882a593Smuzhiyun			num-rx-chans = <1>;
140*4882a593Smuzhiyun			interrupt-parent = <&MAL0>;
141*4882a593Smuzhiyun			interrupts = <0x0 0x1 0x2 0x3 0x4>;
142*4882a593Smuzhiyun			#interrupt-cells = <1>;
143*4882a593Smuzhiyun			#address-cells = <0>;
144*4882a593Smuzhiyun			#size-cells = <0>;
145*4882a593Smuzhiyun			interrupt-map = </*TXEOB*/ 0x0 &UIC1 0x6 0x4
146*4882a593Smuzhiyun					 /*RXEOB*/ 0x1 &UIC1 0x7 0x4
147*4882a593Smuzhiyun					 /*SERR*/  0x2 &UIC1 0x1 0x4
148*4882a593Smuzhiyun					 /*TXDE*/  0x3 &UIC1 0x2 0x4
149*4882a593Smuzhiyun					 /*RXDE*/  0x4 &UIC1 0x3 0x4>;
150*4882a593Smuzhiyun		};
151*4882a593Smuzhiyun
152*4882a593Smuzhiyun		POB0: opb {
153*4882a593Smuzhiyun			compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb";
154*4882a593Smuzhiyun			#address-cells = <1>;
155*4882a593Smuzhiyun			#size-cells = <1>;
156*4882a593Smuzhiyun			ranges = <0xe0000000 0x00000004 0xe0000000 0x20000000>;
157*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by U-Boot */
158*4882a593Smuzhiyun
159*4882a593Smuzhiyun			EBC0: ebc {
160*4882a593Smuzhiyun				compatible = "ibm,ebc-440spe", "ibm,ebc-440gp", "ibm,ebc";
161*4882a593Smuzhiyun				dcr-reg = <0x012 0x002>;
162*4882a593Smuzhiyun				#address-cells = <2>;
163*4882a593Smuzhiyun				#size-cells = <1>;
164*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
165*4882a593Smuzhiyun				/* ranges property is supplied by U-Boot */
166*4882a593Smuzhiyun				interrupts = <0x5 0x1>;
167*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
168*4882a593Smuzhiyun
169*4882a593Smuzhiyun				nor_flash@0,0 {
170*4882a593Smuzhiyun					compatible = "cfi-flash";
171*4882a593Smuzhiyun					bank-width = <2>;
172*4882a593Smuzhiyun					reg = <0x00000000 0x00000000 0x01000000>;
173*4882a593Smuzhiyun					#address-cells = <1>;
174*4882a593Smuzhiyun					#size-cells = <1>;
175*4882a593Smuzhiyun					partition@0 {
176*4882a593Smuzhiyun						label = "kernel";
177*4882a593Smuzhiyun						reg = <0x00000000 0x001e0000>;
178*4882a593Smuzhiyun					};
179*4882a593Smuzhiyun					partition@1e0000 {
180*4882a593Smuzhiyun						label = "dtb";
181*4882a593Smuzhiyun						reg = <0x001e0000 0x00020000>;
182*4882a593Smuzhiyun					};
183*4882a593Smuzhiyun					partition@200000 {
184*4882a593Smuzhiyun						label = "root";
185*4882a593Smuzhiyun						reg = <0x00200000 0x00200000>;
186*4882a593Smuzhiyun					};
187*4882a593Smuzhiyun					partition@400000 {
188*4882a593Smuzhiyun						label = "user";
189*4882a593Smuzhiyun						reg = <0x00400000 0x00b60000>;
190*4882a593Smuzhiyun					};
191*4882a593Smuzhiyun					partition@f60000 {
192*4882a593Smuzhiyun						label = "env";
193*4882a593Smuzhiyun						reg = <0x00f60000 0x00040000>;
194*4882a593Smuzhiyun					};
195*4882a593Smuzhiyun					partition@fa0000 {
196*4882a593Smuzhiyun						label = "u-boot";
197*4882a593Smuzhiyun						reg = <0x00fa0000 0x00060000>;
198*4882a593Smuzhiyun					};
199*4882a593Smuzhiyun				};
200*4882a593Smuzhiyun
201*4882a593Smuzhiyun				SysACE_CompactFlash: sysace@1,0 {
202*4882a593Smuzhiyun					compatible = "xlnx,sysace";
203*4882a593Smuzhiyun					interrupt-parent = <&UIC2>;
204*4882a593Smuzhiyun					interrupts = <24 0x4>;
205*4882a593Smuzhiyun					reg = <0x00000001 0x00000000 0x10000>;
206*4882a593Smuzhiyun				};
207*4882a593Smuzhiyun			};
208*4882a593Smuzhiyun
209*4882a593Smuzhiyun			UART0: serial@f0000200 {
210*4882a593Smuzhiyun				device_type = "serial";
211*4882a593Smuzhiyun				compatible = "ns16550";
212*4882a593Smuzhiyun				reg = <0xf0000200 0x00000008>;
213*4882a593Smuzhiyun				virtual-reg = <0xa0000200>;
214*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
215*4882a593Smuzhiyun				current-speed = <115200>;
216*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
217*4882a593Smuzhiyun				interrupts = <0x0 0x4>;
218*4882a593Smuzhiyun			};
219*4882a593Smuzhiyun
220*4882a593Smuzhiyun			UART1: serial@f0000300 {
221*4882a593Smuzhiyun				device_type = "serial";
222*4882a593Smuzhiyun				compatible = "ns16550";
223*4882a593Smuzhiyun				reg = <0xf0000300 0x00000008>;
224*4882a593Smuzhiyun				virtual-reg = <0xa0000300>;
225*4882a593Smuzhiyun				clock-frequency = <0>;
226*4882a593Smuzhiyun				current-speed = <0>;
227*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
228*4882a593Smuzhiyun				interrupts = <0x1 0x4>;
229*4882a593Smuzhiyun			};
230*4882a593Smuzhiyun
231*4882a593Smuzhiyun
232*4882a593Smuzhiyun			UART2: serial@f0000600 {
233*4882a593Smuzhiyun				device_type = "serial";
234*4882a593Smuzhiyun				compatible = "ns16550";
235*4882a593Smuzhiyun				reg = <0xf0000600 0x00000008>;
236*4882a593Smuzhiyun				virtual-reg = <0xa0000600>;
237*4882a593Smuzhiyun				clock-frequency = <0>;
238*4882a593Smuzhiyun				current-speed = <0>;
239*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
240*4882a593Smuzhiyun				interrupts = <0x5 0x4>;
241*4882a593Smuzhiyun			};
242*4882a593Smuzhiyun
243*4882a593Smuzhiyun			IIC0: i2c@f0000400 {
244*4882a593Smuzhiyun				compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
245*4882a593Smuzhiyun				reg = <0xf0000400 0x00000014>;
246*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
247*4882a593Smuzhiyun				interrupts = <0x2 0x4>;
248*4882a593Smuzhiyun			};
249*4882a593Smuzhiyun
250*4882a593Smuzhiyun			IIC1: i2c@f0000500 {
251*4882a593Smuzhiyun				compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
252*4882a593Smuzhiyun				reg = <0xf0000500 0x00000014>;
253*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
254*4882a593Smuzhiyun				interrupts = <0x3 0x4>;
255*4882a593Smuzhiyun				#address-cells = <1>;
256*4882a593Smuzhiyun				#size-cells = <0>;
257*4882a593Smuzhiyun
258*4882a593Smuzhiyun                                rtc@68 {
259*4882a593Smuzhiyun                                        compatible = "st,m41t00";
260*4882a593Smuzhiyun                                        reg = <0x68>;
261*4882a593Smuzhiyun                                };
262*4882a593Smuzhiyun			};
263*4882a593Smuzhiyun
264*4882a593Smuzhiyun			EMAC0: ethernet@f0000800 {
265*4882a593Smuzhiyun				linux,network-index = <0x0>;
266*4882a593Smuzhiyun				device_type = "network";
267*4882a593Smuzhiyun				compatible = "ibm,emac-440spe", "ibm,emac4";
268*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
269*4882a593Smuzhiyun				interrupts = <0x1c 0x4 0x1d 0x4>;
270*4882a593Smuzhiyun				reg = <0xf0000800 0x00000074>;
271*4882a593Smuzhiyun				local-mac-address = [000000000000];
272*4882a593Smuzhiyun				mal-device = <&MAL0>;
273*4882a593Smuzhiyun				mal-tx-channel = <0>;
274*4882a593Smuzhiyun				mal-rx-channel = <0>;
275*4882a593Smuzhiyun				cell-index = <0>;
276*4882a593Smuzhiyun				max-frame-size = <9000>;
277*4882a593Smuzhiyun				rx-fifo-size = <4096>;
278*4882a593Smuzhiyun				tx-fifo-size = <2048>;
279*4882a593Smuzhiyun				phy-mode = "gmii";
280*4882a593Smuzhiyun				phy-map = <0x00000000>;
281*4882a593Smuzhiyun				has-inverted-stacr-oc;
282*4882a593Smuzhiyun				has-new-stacr-staopc;
283*4882a593Smuzhiyun			};
284*4882a593Smuzhiyun		};
285*4882a593Smuzhiyun
286*4882a593Smuzhiyun		PCIX0: pci@c0ec00000 {
287*4882a593Smuzhiyun			device_type = "pci";
288*4882a593Smuzhiyun			#interrupt-cells = <1>;
289*4882a593Smuzhiyun			#size-cells = <2>;
290*4882a593Smuzhiyun			#address-cells = <3>;
291*4882a593Smuzhiyun			compatible = "ibm,plb-pcix-440spe", "ibm,plb-pcix";
292*4882a593Smuzhiyun			primary;
293*4882a593Smuzhiyun			large-inbound-windows;
294*4882a593Smuzhiyun			enable-msi-hole;
295*4882a593Smuzhiyun			reg = <0x0000000c 0x0ec00000 0x00000008   /* Config space access */
296*4882a593Smuzhiyun			       0x00000000 0x00000000 0x00000000   /* no IACK cycles */
297*4882a593Smuzhiyun			       0x0000000c 0x0ed00000 0x00000004   /* Special cycles */
298*4882a593Smuzhiyun			       0x0000000c 0x0ec80000 0x00000100   /* Internal registers */
299*4882a593Smuzhiyun			       0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
300*4882a593Smuzhiyun
301*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
302*4882a593Smuzhiyun			 * later cannot be changed
303*4882a593Smuzhiyun			 */
304*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
305*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
306*4882a593Smuzhiyun
307*4882a593Smuzhiyun			/* Inbound 4GB range starting at 0 */
308*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
309*4882a593Smuzhiyun
310*4882a593Smuzhiyun			/* This drives busses 0 to 0xf */
311*4882a593Smuzhiyun			bus-range = <0x0 0xf>;
312*4882a593Smuzhiyun
313*4882a593Smuzhiyun			/* PCI-X interrupt (SM502) is routed to extIRQ10 (UIC1, 19) */
314*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x0>;
315*4882a593Smuzhiyun			interrupt-map = <0x0 0x0 0x0 0x0 &UIC1 19 0x8>;
316*4882a593Smuzhiyun		};
317*4882a593Smuzhiyun
318*4882a593Smuzhiyun		PCIE0: pcie@d00000000 {
319*4882a593Smuzhiyun			device_type = "pci";
320*4882a593Smuzhiyun			#interrupt-cells = <1>;
321*4882a593Smuzhiyun			#size-cells = <2>;
322*4882a593Smuzhiyun			#address-cells = <3>;
323*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
324*4882a593Smuzhiyun			primary;
325*4882a593Smuzhiyun			port = <0x0>; /* port number */
326*4882a593Smuzhiyun			reg = <0x0000000d 0x00000000 0x20000000	/* Config space access */
327*4882a593Smuzhiyun			       0x0000000c 0x10000000 0x00001000>;	/* Registers */
328*4882a593Smuzhiyun			dcr-reg = <0x100 0x020>;
329*4882a593Smuzhiyun			sdr-base = <0x300>;
330*4882a593Smuzhiyun
331*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
332*4882a593Smuzhiyun			 * later cannot be changed
333*4882a593Smuzhiyun			 */
334*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
335*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
336*4882a593Smuzhiyun
337*4882a593Smuzhiyun			/* Inbound 4GB range starting at 0 */
338*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
339*4882a593Smuzhiyun
340*4882a593Smuzhiyun			/* This drives busses 0x10 to 0x1f */
341*4882a593Smuzhiyun			bus-range = <0x10 0x1f>;
342*4882a593Smuzhiyun
343*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
344*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
345*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
346*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
347*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
348*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
349*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
350*4882a593Smuzhiyun			 */
351*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
352*4882a593Smuzhiyun			interrupt-map = <
353*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &UIC3 0x0 0x4 /* swizzled int A */
354*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &UIC3 0x1 0x4 /* swizzled int B */
355*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &UIC3 0x2 0x4 /* swizzled int C */
356*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &UIC3 0x3 0x4 /* swizzled int D */>;
357*4882a593Smuzhiyun		};
358*4882a593Smuzhiyun
359*4882a593Smuzhiyun		PCIE1: pcie@d20000000 {
360*4882a593Smuzhiyun			device_type = "pci";
361*4882a593Smuzhiyun			#interrupt-cells = <1>;
362*4882a593Smuzhiyun			#size-cells = <2>;
363*4882a593Smuzhiyun			#address-cells = <3>;
364*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
365*4882a593Smuzhiyun			primary;
366*4882a593Smuzhiyun			port = <0x1>; /* port number */
367*4882a593Smuzhiyun			reg = <0x0000000d 0x20000000 0x20000000	/* Config space access */
368*4882a593Smuzhiyun			       0x0000000c 0x10001000 0x00001000>;	/* Registers */
369*4882a593Smuzhiyun			dcr-reg = <0x120 0x020>;
370*4882a593Smuzhiyun			sdr-base = <0x340>;
371*4882a593Smuzhiyun
372*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
373*4882a593Smuzhiyun			 * later cannot be changed
374*4882a593Smuzhiyun			 */
375*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
376*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
377*4882a593Smuzhiyun
378*4882a593Smuzhiyun			/* Inbound 4GB range starting at 0 */
379*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
380*4882a593Smuzhiyun
381*4882a593Smuzhiyun			/* This drives busses 0x20 to 0x2f */
382*4882a593Smuzhiyun			bus-range = <0x20 0x2f>;
383*4882a593Smuzhiyun
384*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
385*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
386*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
387*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
388*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
389*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
390*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
391*4882a593Smuzhiyun			 */
392*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
393*4882a593Smuzhiyun			interrupt-map = <
394*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &UIC3 0x4 0x4 /* swizzled int A */
395*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &UIC3 0x5 0x4 /* swizzled int B */
396*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &UIC3 0x6 0x4 /* swizzled int C */
397*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &UIC3 0x7 0x4 /* swizzled int D */>;
398*4882a593Smuzhiyun		};
399*4882a593Smuzhiyun
400*4882a593Smuzhiyun		I2O: i2o@400100000 {
401*4882a593Smuzhiyun			compatible = "ibm,i2o-440spe";
402*4882a593Smuzhiyun			reg = <0x00000004 0x00100000 0x100>;
403*4882a593Smuzhiyun			dcr-reg = <0x060 0x020>;
404*4882a593Smuzhiyun		};
405*4882a593Smuzhiyun
406*4882a593Smuzhiyun		DMA0: dma0@400100100 {
407*4882a593Smuzhiyun			compatible = "ibm,dma-440spe";
408*4882a593Smuzhiyun			cell-index = <0>;
409*4882a593Smuzhiyun			reg = <0x00000004 0x00100100 0x100>;
410*4882a593Smuzhiyun			dcr-reg = <0x060 0x020>;
411*4882a593Smuzhiyun			interrupt-parent = <&DMA0>;
412*4882a593Smuzhiyun			interrupts = <0 1>;
413*4882a593Smuzhiyun			#interrupt-cells = <1>;
414*4882a593Smuzhiyun			#address-cells = <0>;
415*4882a593Smuzhiyun			#size-cells = <0>;
416*4882a593Smuzhiyun			interrupt-map = <
417*4882a593Smuzhiyun				0 &UIC0 0x14 4
418*4882a593Smuzhiyun				1 &UIC1 0x16 4>;
419*4882a593Smuzhiyun		};
420*4882a593Smuzhiyun
421*4882a593Smuzhiyun		DMA1: dma1@400100200 {
422*4882a593Smuzhiyun			compatible = "ibm,dma-440spe";
423*4882a593Smuzhiyun			cell-index = <1>;
424*4882a593Smuzhiyun			reg = <0x00000004 0x00100200 0x100>;
425*4882a593Smuzhiyun			dcr-reg = <0x060 0x020>;
426*4882a593Smuzhiyun			interrupt-parent = <&DMA1>;
427*4882a593Smuzhiyun			interrupts = <0 1>;
428*4882a593Smuzhiyun			#interrupt-cells = <1>;
429*4882a593Smuzhiyun			#address-cells = <0>;
430*4882a593Smuzhiyun			#size-cells = <0>;
431*4882a593Smuzhiyun			interrupt-map = <
432*4882a593Smuzhiyun				0 &UIC0 0x16 4
433*4882a593Smuzhiyun				1 &UIC1 0x16 4>;
434*4882a593Smuzhiyun		};
435*4882a593Smuzhiyun
436*4882a593Smuzhiyun		xor-accel@400200000 {
437*4882a593Smuzhiyun			compatible = "amcc,xor-accelerator";
438*4882a593Smuzhiyun			reg = <0x00000004 0x00200000 0x400>;
439*4882a593Smuzhiyun			interrupt-parent = <&UIC1>;
440*4882a593Smuzhiyun			interrupts = <0x1f 4>;
441*4882a593Smuzhiyun		};
442*4882a593Smuzhiyun	};
443*4882a593Smuzhiyun
444*4882a593Smuzhiyun	chosen {
445*4882a593Smuzhiyun		stdout-path = "/plb/opb/serial@f0000200";
446*4882a593Smuzhiyun	};
447*4882a593Smuzhiyun};
448