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