xref: /OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/glacier.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Source for AMCC Glacier (460GT)
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright 2008-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 = <1>;
16*4882a593Smuzhiyun	model = "amcc,glacier";
17*4882a593Smuzhiyun	compatible = "amcc,glacier";
18*4882a593Smuzhiyun	dcr-parent = <&{/cpus/cpu@0}>;
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	aliases {
21*4882a593Smuzhiyun		ethernet0 = &EMAC0;
22*4882a593Smuzhiyun		ethernet1 = &EMAC1;
23*4882a593Smuzhiyun		ethernet2 = &EMAC2;
24*4882a593Smuzhiyun		ethernet3 = &EMAC3;
25*4882a593Smuzhiyun		serial0 = &UART0;
26*4882a593Smuzhiyun		serial1 = &UART1;
27*4882a593Smuzhiyun	};
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun	cpus {
30*4882a593Smuzhiyun		#address-cells = <1>;
31*4882a593Smuzhiyun		#size-cells = <0>;
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun		cpu@0 {
34*4882a593Smuzhiyun			device_type = "cpu";
35*4882a593Smuzhiyun			model = "PowerPC,460GT";
36*4882a593Smuzhiyun			reg = <0x00000000>;
37*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by U-Boot */
38*4882a593Smuzhiyun			timebase-frequency = <0>; /* Filled in by U-Boot */
39*4882a593Smuzhiyun			i-cache-line-size = <32>;
40*4882a593Smuzhiyun			d-cache-line-size = <32>;
41*4882a593Smuzhiyun			i-cache-size = <32768>;
42*4882a593Smuzhiyun			d-cache-size = <32768>;
43*4882a593Smuzhiyun			dcr-controller;
44*4882a593Smuzhiyun			dcr-access-method = "native";
45*4882a593Smuzhiyun			next-level-cache = <&L2C0>;
46*4882a593Smuzhiyun		};
47*4882a593Smuzhiyun	};
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	memory {
50*4882a593Smuzhiyun		device_type = "memory";
51*4882a593Smuzhiyun		reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
52*4882a593Smuzhiyun	};
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun	UIC0: interrupt-controller0 {
55*4882a593Smuzhiyun		compatible = "ibm,uic-460gt","ibm,uic";
56*4882a593Smuzhiyun		interrupt-controller;
57*4882a593Smuzhiyun		cell-index = <0>;
58*4882a593Smuzhiyun		dcr-reg = <0x0c0 0x009>;
59*4882a593Smuzhiyun		#address-cells = <0>;
60*4882a593Smuzhiyun		#size-cells = <0>;
61*4882a593Smuzhiyun		#interrupt-cells = <2>;
62*4882a593Smuzhiyun	};
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun	UIC1: interrupt-controller1 {
65*4882a593Smuzhiyun		compatible = "ibm,uic-460gt","ibm,uic";
66*4882a593Smuzhiyun		interrupt-controller;
67*4882a593Smuzhiyun		cell-index = <1>;
68*4882a593Smuzhiyun		dcr-reg = <0x0d0 0x009>;
69*4882a593Smuzhiyun		#address-cells = <0>;
70*4882a593Smuzhiyun		#size-cells = <0>;
71*4882a593Smuzhiyun		#interrupt-cells = <2>;
72*4882a593Smuzhiyun		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
73*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
74*4882a593Smuzhiyun	};
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun	UIC2: interrupt-controller2 {
77*4882a593Smuzhiyun		compatible = "ibm,uic-460gt","ibm,uic";
78*4882a593Smuzhiyun		interrupt-controller;
79*4882a593Smuzhiyun		cell-index = <2>;
80*4882a593Smuzhiyun		dcr-reg = <0x0e0 0x009>;
81*4882a593Smuzhiyun		#address-cells = <0>;
82*4882a593Smuzhiyun		#size-cells = <0>;
83*4882a593Smuzhiyun		#interrupt-cells = <2>;
84*4882a593Smuzhiyun		interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
85*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
86*4882a593Smuzhiyun	};
87*4882a593Smuzhiyun
88*4882a593Smuzhiyun	UIC3: interrupt-controller3 {
89*4882a593Smuzhiyun		compatible = "ibm,uic-460gt","ibm,uic";
90*4882a593Smuzhiyun		interrupt-controller;
91*4882a593Smuzhiyun		cell-index = <3>;
92*4882a593Smuzhiyun		dcr-reg = <0x0f0 0x009>;
93*4882a593Smuzhiyun		#address-cells = <0>;
94*4882a593Smuzhiyun		#size-cells = <0>;
95*4882a593Smuzhiyun		#interrupt-cells = <2>;
96*4882a593Smuzhiyun		interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
97*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
98*4882a593Smuzhiyun	};
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun	SDR0: sdr {
101*4882a593Smuzhiyun		compatible = "ibm,sdr-460gt";
102*4882a593Smuzhiyun		dcr-reg = <0x00e 0x002>;
103*4882a593Smuzhiyun	};
104*4882a593Smuzhiyun
105*4882a593Smuzhiyun	CPR0: cpr {
106*4882a593Smuzhiyun		compatible = "ibm,cpr-460gt";
107*4882a593Smuzhiyun		dcr-reg = <0x00c 0x002>;
108*4882a593Smuzhiyun	};
109*4882a593Smuzhiyun
110*4882a593Smuzhiyun	L2C0: l2c {
111*4882a593Smuzhiyun		compatible = "ibm,l2-cache-460gt", "ibm,l2-cache";
112*4882a593Smuzhiyun		dcr-reg = <0x020 0x008		/* Internal SRAM DCR's */
113*4882a593Smuzhiyun			   0x030 0x008>;	/* L2 cache DCR's */
114*4882a593Smuzhiyun		cache-line-size = <32>;		/* 32 bytes */
115*4882a593Smuzhiyun		cache-size = <262144>;		/* L2, 256K */
116*4882a593Smuzhiyun		interrupt-parent = <&UIC1>;
117*4882a593Smuzhiyun		interrupts = <11 1>;
118*4882a593Smuzhiyun	};
119*4882a593Smuzhiyun
120*4882a593Smuzhiyun	plb {
121*4882a593Smuzhiyun		compatible = "ibm,plb-460gt", "ibm,plb4";
122*4882a593Smuzhiyun		#address-cells = <2>;
123*4882a593Smuzhiyun		#size-cells = <1>;
124*4882a593Smuzhiyun		ranges;
125*4882a593Smuzhiyun		clock-frequency = <0>; /* Filled in by U-Boot */
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun		SDRAM0: sdram {
128*4882a593Smuzhiyun			compatible = "ibm,sdram-460gt", "ibm,sdram-405gp";
129*4882a593Smuzhiyun			dcr-reg = <0x010 0x002>;
130*4882a593Smuzhiyun		};
131*4882a593Smuzhiyun
132*4882a593Smuzhiyun		CRYPTO: crypto@180000 {
133*4882a593Smuzhiyun			compatible = "amcc,ppc460gt-crypto", "amcc,ppc460ex-crypto",
134*4882a593Smuzhiyun				"amcc,ppc4xx-crypto";
135*4882a593Smuzhiyun			reg = <4 0x00180000 0x80400>;
136*4882a593Smuzhiyun			interrupt-parent = <&UIC0>;
137*4882a593Smuzhiyun			interrupts = <0x1d 0x4>;
138*4882a593Smuzhiyun		};
139*4882a593Smuzhiyun
140*4882a593Smuzhiyun		HWRNG: hwrng@110000 {
141*4882a593Smuzhiyun			compatible = "amcc,ppc460ex-rng", "ppc4xx-rng";
142*4882a593Smuzhiyun			reg = <4 0x00110000 0x50>;
143*4882a593Smuzhiyun		};
144*4882a593Smuzhiyun
145*4882a593Smuzhiyun		MAL0: mcmal {
146*4882a593Smuzhiyun			compatible = "ibm,mcmal-460gt", "ibm,mcmal2";
147*4882a593Smuzhiyun			dcr-reg = <0x180 0x062>;
148*4882a593Smuzhiyun			num-tx-chans = <4>;
149*4882a593Smuzhiyun			num-rx-chans = <32>;
150*4882a593Smuzhiyun			#address-cells = <0>;
151*4882a593Smuzhiyun			#size-cells = <0>;
152*4882a593Smuzhiyun			interrupt-parent = <&UIC2>;
153*4882a593Smuzhiyun			interrupts = <	/*TXEOB*/ 0x6 0x4
154*4882a593Smuzhiyun					/*RXEOB*/ 0x7 0x4
155*4882a593Smuzhiyun					/*SERR*/  0x3 0x4
156*4882a593Smuzhiyun					/*TXDE*/  0x4 0x4
157*4882a593Smuzhiyun					/*RXDE*/  0x5 0x4>;
158*4882a593Smuzhiyun			desc-base-addr-high = <0x8>;
159*4882a593Smuzhiyun		};
160*4882a593Smuzhiyun
161*4882a593Smuzhiyun		POB0: opb {
162*4882a593Smuzhiyun			compatible = "ibm,opb-460gt", "ibm,opb";
163*4882a593Smuzhiyun			#address-cells = <1>;
164*4882a593Smuzhiyun			#size-cells = <1>;
165*4882a593Smuzhiyun			ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
166*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by U-Boot */
167*4882a593Smuzhiyun
168*4882a593Smuzhiyun			EBC0: ebc {
169*4882a593Smuzhiyun				compatible = "ibm,ebc-460gt", "ibm,ebc";
170*4882a593Smuzhiyun				dcr-reg = <0x012 0x002>;
171*4882a593Smuzhiyun				#address-cells = <2>;
172*4882a593Smuzhiyun				#size-cells = <1>;
173*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
174*4882a593Smuzhiyun				/* ranges property is supplied by U-Boot */
175*4882a593Smuzhiyun				interrupts = <0x6 0x4>;
176*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
177*4882a593Smuzhiyun
178*4882a593Smuzhiyun				nor_flash@0,0 {
179*4882a593Smuzhiyun					compatible = "amd,s29gl512n", "cfi-flash";
180*4882a593Smuzhiyun					bank-width = <2>;
181*4882a593Smuzhiyun					reg = <0x00000000 0x00000000 0x04000000>;
182*4882a593Smuzhiyun					#address-cells = <1>;
183*4882a593Smuzhiyun					#size-cells = <1>;
184*4882a593Smuzhiyun					partition@0 {
185*4882a593Smuzhiyun						label = "kernel";
186*4882a593Smuzhiyun						reg = <0x00000000 0x001e0000>;
187*4882a593Smuzhiyun					};
188*4882a593Smuzhiyun					partition@1e0000 {
189*4882a593Smuzhiyun						label = "dtb";
190*4882a593Smuzhiyun						reg = <0x001e0000 0x00020000>;
191*4882a593Smuzhiyun					};
192*4882a593Smuzhiyun					partition@200000 {
193*4882a593Smuzhiyun						label = "ramdisk";
194*4882a593Smuzhiyun						reg = <0x00200000 0x01400000>;
195*4882a593Smuzhiyun					};
196*4882a593Smuzhiyun					partition@1600000 {
197*4882a593Smuzhiyun						label = "jffs2";
198*4882a593Smuzhiyun						reg = <0x01600000 0x00400000>;
199*4882a593Smuzhiyun					};
200*4882a593Smuzhiyun					partition@1a00000 {
201*4882a593Smuzhiyun						label = "user";
202*4882a593Smuzhiyun						reg = <0x01a00000 0x02560000>;
203*4882a593Smuzhiyun					};
204*4882a593Smuzhiyun					partition@3f60000 {
205*4882a593Smuzhiyun						label = "env";
206*4882a593Smuzhiyun						reg = <0x03f60000 0x00040000>;
207*4882a593Smuzhiyun					};
208*4882a593Smuzhiyun					partition@3fa0000 {
209*4882a593Smuzhiyun						label = "u-boot";
210*4882a593Smuzhiyun						reg = <0x03fa0000 0x00060000>;
211*4882a593Smuzhiyun					};
212*4882a593Smuzhiyun				};
213*4882a593Smuzhiyun
214*4882a593Smuzhiyun				ndfc@3,0 {
215*4882a593Smuzhiyun					compatible = "ibm,ndfc";
216*4882a593Smuzhiyun					reg = <0x00000003 0x00000000 0x00002000>;
217*4882a593Smuzhiyun					ccr = <0x00001000>;
218*4882a593Smuzhiyun					bank-settings = <0x80002222>;
219*4882a593Smuzhiyun					#address-cells = <1>;
220*4882a593Smuzhiyun					#size-cells = <1>;
221*4882a593Smuzhiyun
222*4882a593Smuzhiyun					nand {
223*4882a593Smuzhiyun						#address-cells = <1>;
224*4882a593Smuzhiyun						#size-cells = <1>;
225*4882a593Smuzhiyun
226*4882a593Smuzhiyun						partition@0 {
227*4882a593Smuzhiyun							label = "u-boot";
228*4882a593Smuzhiyun							reg = <0x00000000 0x00100000>;
229*4882a593Smuzhiyun						};
230*4882a593Smuzhiyun						partition@100000 {
231*4882a593Smuzhiyun							label = "user";
232*4882a593Smuzhiyun							reg = <0x00000000 0x03f00000>;
233*4882a593Smuzhiyun						};
234*4882a593Smuzhiyun					};
235*4882a593Smuzhiyun				};
236*4882a593Smuzhiyun			};
237*4882a593Smuzhiyun
238*4882a593Smuzhiyun			UART0: serial@ef600300 {
239*4882a593Smuzhiyun				device_type = "serial";
240*4882a593Smuzhiyun				compatible = "ns16550";
241*4882a593Smuzhiyun				reg = <0xef600300 0x00000008>;
242*4882a593Smuzhiyun				virtual-reg = <0xef600300>;
243*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
244*4882a593Smuzhiyun				current-speed = <0>; /* Filled in by U-Boot */
245*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
246*4882a593Smuzhiyun				interrupts = <0x1 0x4>;
247*4882a593Smuzhiyun			};
248*4882a593Smuzhiyun
249*4882a593Smuzhiyun			UART1: serial@ef600400 {
250*4882a593Smuzhiyun				device_type = "serial";
251*4882a593Smuzhiyun				compatible = "ns16550";
252*4882a593Smuzhiyun				reg = <0xef600400 0x00000008>;
253*4882a593Smuzhiyun				virtual-reg = <0xef600400>;
254*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
255*4882a593Smuzhiyun				current-speed = <0>; /* Filled in by U-Boot */
256*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
257*4882a593Smuzhiyun				interrupts = <0x1 0x4>;
258*4882a593Smuzhiyun			};
259*4882a593Smuzhiyun
260*4882a593Smuzhiyun			UART2: serial@ef600500 {
261*4882a593Smuzhiyun				device_type = "serial";
262*4882a593Smuzhiyun				compatible = "ns16550";
263*4882a593Smuzhiyun				reg = <0xef600500 0x00000008>;
264*4882a593Smuzhiyun				virtual-reg = <0xef600500>;
265*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
266*4882a593Smuzhiyun				current-speed = <0>; /* Filled in by U-Boot */
267*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
268*4882a593Smuzhiyun				interrupts = <28 0x4>;
269*4882a593Smuzhiyun			};
270*4882a593Smuzhiyun
271*4882a593Smuzhiyun			UART3: serial@ef600600 {
272*4882a593Smuzhiyun				device_type = "serial";
273*4882a593Smuzhiyun				compatible = "ns16550";
274*4882a593Smuzhiyun				reg = <0xef600600 0x00000008>;
275*4882a593Smuzhiyun				virtual-reg = <0xef600600>;
276*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
277*4882a593Smuzhiyun				current-speed = <0>; /* Filled in by U-Boot */
278*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
279*4882a593Smuzhiyun				interrupts = <29 0x4>;
280*4882a593Smuzhiyun			};
281*4882a593Smuzhiyun
282*4882a593Smuzhiyun			IIC0: i2c@ef600700 {
283*4882a593Smuzhiyun				compatible = "ibm,iic-460gt", "ibm,iic";
284*4882a593Smuzhiyun				reg = <0xef600700 0x00000014>;
285*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
286*4882a593Smuzhiyun				interrupts = <0x2 0x4>;
287*4882a593Smuzhiyun				#address-cells = <1>;
288*4882a593Smuzhiyun				#size-cells = <0>;
289*4882a593Smuzhiyun				rtc@68 {
290*4882a593Smuzhiyun					compatible = "st,m41t80";
291*4882a593Smuzhiyun					reg = <0x68>;
292*4882a593Smuzhiyun					interrupt-parent = <&UIC2>;
293*4882a593Smuzhiyun					interrupts = <0x19 0x8>;
294*4882a593Smuzhiyun				};
295*4882a593Smuzhiyun				sttm@48 {
296*4882a593Smuzhiyun					compatible = "ad,ad7414";
297*4882a593Smuzhiyun					reg = <0x48>;
298*4882a593Smuzhiyun					interrupt-parent = <&UIC1>;
299*4882a593Smuzhiyun					interrupts = <0x14 0x8>;
300*4882a593Smuzhiyun				};
301*4882a593Smuzhiyun			};
302*4882a593Smuzhiyun
303*4882a593Smuzhiyun			IIC1: i2c@ef600800 {
304*4882a593Smuzhiyun				compatible = "ibm,iic-460gt", "ibm,iic";
305*4882a593Smuzhiyun				reg = <0xef600800 0x00000014>;
306*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
307*4882a593Smuzhiyun				interrupts = <0x3 0x4>;
308*4882a593Smuzhiyun			};
309*4882a593Smuzhiyun
310*4882a593Smuzhiyun			ZMII0: emac-zmii@ef600d00 {
311*4882a593Smuzhiyun				compatible = "ibm,zmii-460gt", "ibm,zmii";
312*4882a593Smuzhiyun				reg = <0xef600d00 0x0000000c>;
313*4882a593Smuzhiyun			};
314*4882a593Smuzhiyun
315*4882a593Smuzhiyun			RGMII0: emac-rgmii@ef601500 {
316*4882a593Smuzhiyun				compatible = "ibm,rgmii-460gt", "ibm,rgmii";
317*4882a593Smuzhiyun				reg = <0xef601500 0x00000008>;
318*4882a593Smuzhiyun				has-mdio;
319*4882a593Smuzhiyun			};
320*4882a593Smuzhiyun
321*4882a593Smuzhiyun			RGMII1: emac-rgmii@ef601600 {
322*4882a593Smuzhiyun				compatible = "ibm,rgmii-460gt", "ibm,rgmii";
323*4882a593Smuzhiyun				reg = <0xef601600 0x00000008>;
324*4882a593Smuzhiyun				has-mdio;
325*4882a593Smuzhiyun			};
326*4882a593Smuzhiyun
327*4882a593Smuzhiyun			TAH0: emac-tah@ef601350 {
328*4882a593Smuzhiyun				compatible = "ibm,tah-460gt", "ibm,tah";
329*4882a593Smuzhiyun				reg = <0xef601350 0x00000030>;
330*4882a593Smuzhiyun			};
331*4882a593Smuzhiyun
332*4882a593Smuzhiyun			TAH1: emac-tah@ef601450 {
333*4882a593Smuzhiyun				compatible = "ibm,tah-460gt", "ibm,tah";
334*4882a593Smuzhiyun				reg = <0xef601450 0x00000030>;
335*4882a593Smuzhiyun			};
336*4882a593Smuzhiyun
337*4882a593Smuzhiyun			EMAC0: ethernet@ef600e00 {
338*4882a593Smuzhiyun				device_type = "network";
339*4882a593Smuzhiyun				compatible = "ibm,emac-460gt", "ibm,emac4sync";
340*4882a593Smuzhiyun				interrupt-parent = <&EMAC0>;
341*4882a593Smuzhiyun				interrupts = <0x0 0x1>;
342*4882a593Smuzhiyun				#interrupt-cells = <1>;
343*4882a593Smuzhiyun				#address-cells = <0>;
344*4882a593Smuzhiyun				#size-cells = <0>;
345*4882a593Smuzhiyun				interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
346*4882a593Smuzhiyun						 /*Wake*/   0x1 &UIC2 0x14 0x4>;
347*4882a593Smuzhiyun				reg = <0xef600e00 0x000000c4>;
348*4882a593Smuzhiyun				local-mac-address = [000000000000]; /* Filled in by U-Boot */
349*4882a593Smuzhiyun				mal-device = <&MAL0>;
350*4882a593Smuzhiyun				mal-tx-channel = <0>;
351*4882a593Smuzhiyun				mal-rx-channel = <0>;
352*4882a593Smuzhiyun				cell-index = <0>;
353*4882a593Smuzhiyun				max-frame-size = <9000>;
354*4882a593Smuzhiyun				rx-fifo-size = <4096>;
355*4882a593Smuzhiyun				tx-fifo-size = <2048>;
356*4882a593Smuzhiyun				rx-fifo-size-gige = <16384>;
357*4882a593Smuzhiyun				phy-mode = "rgmii";
358*4882a593Smuzhiyun				phy-map = <0x00000000>;
359*4882a593Smuzhiyun				rgmii-device = <&RGMII0>;
360*4882a593Smuzhiyun				rgmii-channel = <0>;
361*4882a593Smuzhiyun				tah-device = <&TAH0>;
362*4882a593Smuzhiyun				tah-channel = <0>;
363*4882a593Smuzhiyun				has-inverted-stacr-oc;
364*4882a593Smuzhiyun				has-new-stacr-staopc;
365*4882a593Smuzhiyun			};
366*4882a593Smuzhiyun
367*4882a593Smuzhiyun			EMAC1: ethernet@ef600f00 {
368*4882a593Smuzhiyun				device_type = "network";
369*4882a593Smuzhiyun				compatible = "ibm,emac-460gt", "ibm,emac4sync";
370*4882a593Smuzhiyun				interrupt-parent = <&EMAC1>;
371*4882a593Smuzhiyun				interrupts = <0x0 0x1>;
372*4882a593Smuzhiyun				#interrupt-cells = <1>;
373*4882a593Smuzhiyun				#address-cells = <0>;
374*4882a593Smuzhiyun				#size-cells = <0>;
375*4882a593Smuzhiyun				interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4
376*4882a593Smuzhiyun						 /*Wake*/   0x1 &UIC2 0x15 0x4>;
377*4882a593Smuzhiyun				reg = <0xef600f00 0x000000c4>;
378*4882a593Smuzhiyun				local-mac-address = [000000000000]; /* Filled in by U-Boot */
379*4882a593Smuzhiyun				mal-device = <&MAL0>;
380*4882a593Smuzhiyun				mal-tx-channel = <1>;
381*4882a593Smuzhiyun				mal-rx-channel = <8>;
382*4882a593Smuzhiyun				cell-index = <1>;
383*4882a593Smuzhiyun				max-frame-size = <9000>;
384*4882a593Smuzhiyun				rx-fifo-size = <4096>;
385*4882a593Smuzhiyun				tx-fifo-size = <2048>;
386*4882a593Smuzhiyun				rx-fifo-size-gige = <16384>;
387*4882a593Smuzhiyun				phy-mode = "rgmii";
388*4882a593Smuzhiyun				phy-map = <0x00000000>;
389*4882a593Smuzhiyun				rgmii-device = <&RGMII0>;
390*4882a593Smuzhiyun				rgmii-channel = <1>;
391*4882a593Smuzhiyun				tah-device = <&TAH1>;
392*4882a593Smuzhiyun				tah-channel = <1>;
393*4882a593Smuzhiyun				has-inverted-stacr-oc;
394*4882a593Smuzhiyun				has-new-stacr-staopc;
395*4882a593Smuzhiyun				mdio-device = <&EMAC0>;
396*4882a593Smuzhiyun			};
397*4882a593Smuzhiyun
398*4882a593Smuzhiyun			EMAC2: ethernet@ef601100 {
399*4882a593Smuzhiyun				device_type = "network";
400*4882a593Smuzhiyun				compatible = "ibm,emac-460gt", "ibm,emac4sync";
401*4882a593Smuzhiyun				interrupt-parent = <&EMAC2>;
402*4882a593Smuzhiyun				interrupts = <0x0 0x1>;
403*4882a593Smuzhiyun				#interrupt-cells = <1>;
404*4882a593Smuzhiyun				#address-cells = <0>;
405*4882a593Smuzhiyun				#size-cells = <0>;
406*4882a593Smuzhiyun				interrupt-map = </*Status*/ 0x0 &UIC2 0x12 0x4
407*4882a593Smuzhiyun						 /*Wake*/   0x1 &UIC2 0x16 0x4>;
408*4882a593Smuzhiyun				reg = <0xef601100 0x000000c4>;
409*4882a593Smuzhiyun				local-mac-address = [000000000000]; /* Filled in by U-Boot */
410*4882a593Smuzhiyun				mal-device = <&MAL0>;
411*4882a593Smuzhiyun				mal-tx-channel = <2>;
412*4882a593Smuzhiyun				mal-rx-channel = <16>;
413*4882a593Smuzhiyun				cell-index = <2>;
414*4882a593Smuzhiyun				max-frame-size = <9000>;
415*4882a593Smuzhiyun				rx-fifo-size = <4096>;
416*4882a593Smuzhiyun				tx-fifo-size = <2048>;
417*4882a593Smuzhiyun				rx-fifo-size-gige = <16384>;
418*4882a593Smuzhiyun				tx-fifo-size-gige = <16384>; /* emac2&3 only */
419*4882a593Smuzhiyun				phy-mode = "rgmii";
420*4882a593Smuzhiyun				phy-map = <0x00000000>;
421*4882a593Smuzhiyun				rgmii-device = <&RGMII1>;
422*4882a593Smuzhiyun				rgmii-channel = <0>;
423*4882a593Smuzhiyun				has-inverted-stacr-oc;
424*4882a593Smuzhiyun				has-new-stacr-staopc;
425*4882a593Smuzhiyun				mdio-device = <&EMAC0>;
426*4882a593Smuzhiyun			};
427*4882a593Smuzhiyun
428*4882a593Smuzhiyun			EMAC3: ethernet@ef601200 {
429*4882a593Smuzhiyun				device_type = "network";
430*4882a593Smuzhiyun				compatible = "ibm,emac-460gt", "ibm,emac4sync";
431*4882a593Smuzhiyun				interrupt-parent = <&EMAC3>;
432*4882a593Smuzhiyun				interrupts = <0x0 0x1>;
433*4882a593Smuzhiyun				#interrupt-cells = <1>;
434*4882a593Smuzhiyun				#address-cells = <0>;
435*4882a593Smuzhiyun				#size-cells = <0>;
436*4882a593Smuzhiyun				interrupt-map = </*Status*/ 0x0 &UIC2 0x13 0x4
437*4882a593Smuzhiyun						 /*Wake*/   0x1 &UIC2 0x17 0x4>;
438*4882a593Smuzhiyun				reg = <0xef601200 0x000000c4>;
439*4882a593Smuzhiyun				local-mac-address = [000000000000]; /* Filled in by U-Boot */
440*4882a593Smuzhiyun				mal-device = <&MAL0>;
441*4882a593Smuzhiyun				mal-tx-channel = <3>;
442*4882a593Smuzhiyun				mal-rx-channel = <24>;
443*4882a593Smuzhiyun				cell-index = <3>;
444*4882a593Smuzhiyun				max-frame-size = <9000>;
445*4882a593Smuzhiyun				rx-fifo-size = <4096>;
446*4882a593Smuzhiyun				tx-fifo-size = <2048>;
447*4882a593Smuzhiyun				rx-fifo-size-gige = <16384>;
448*4882a593Smuzhiyun				tx-fifo-size-gige = <16384>; /* emac2&3 only */
449*4882a593Smuzhiyun				phy-mode = "rgmii";
450*4882a593Smuzhiyun				phy-map = <0x00000000>;
451*4882a593Smuzhiyun				rgmii-device = <&RGMII1>;
452*4882a593Smuzhiyun				rgmii-channel = <1>;
453*4882a593Smuzhiyun				has-inverted-stacr-oc;
454*4882a593Smuzhiyun				has-new-stacr-staopc;
455*4882a593Smuzhiyun				mdio-device = <&EMAC0>;
456*4882a593Smuzhiyun			};
457*4882a593Smuzhiyun		};
458*4882a593Smuzhiyun
459*4882a593Smuzhiyun		PCIX0: pci@c0ec00000 {
460*4882a593Smuzhiyun			device_type = "pci";
461*4882a593Smuzhiyun			#interrupt-cells = <1>;
462*4882a593Smuzhiyun			#size-cells = <2>;
463*4882a593Smuzhiyun			#address-cells = <3>;
464*4882a593Smuzhiyun			compatible = "ibm,plb-pcix-460gt", "ibm,plb-pcix";
465*4882a593Smuzhiyun			primary;
466*4882a593Smuzhiyun			large-inbound-windows;
467*4882a593Smuzhiyun			enable-msi-hole;
468*4882a593Smuzhiyun			reg = <0x0000000c 0x0ec00000   0x00000008	/* Config space access */
469*4882a593Smuzhiyun			       0x00000000 0x00000000 0x00000000		/* no IACK cycles */
470*4882a593Smuzhiyun			       0x0000000c 0x0ed00000   0x00000004   /* Special cycles */
471*4882a593Smuzhiyun			       0x0000000c 0x0ec80000 0x00000100	/* Internal registers */
472*4882a593Smuzhiyun			       0x0000000c 0x0ec80100  0x000000fc>;	/* Internal messaging registers */
473*4882a593Smuzhiyun
474*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
475*4882a593Smuzhiyun			 * later cannot be changed
476*4882a593Smuzhiyun			 */
477*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
478*4882a593Smuzhiyun				  0x02000000 0x00000000 0x00000000 0x0000000c 0x0ee00000 0x00000000 0x00100000
479*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
480*4882a593Smuzhiyun
481*4882a593Smuzhiyun			/* Inbound 2GB range starting at 0 */
482*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
483*4882a593Smuzhiyun
484*4882a593Smuzhiyun			/* This drives busses 0 to 0x3f */
485*4882a593Smuzhiyun			bus-range = <0x0 0x3f>;
486*4882a593Smuzhiyun
487*4882a593Smuzhiyun			/* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
488*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x0>;
489*4882a593Smuzhiyun			interrupt-map = < 0x0 0x0 0x0 0x0 &UIC1 0x0 0x8 >;
490*4882a593Smuzhiyun		};
491*4882a593Smuzhiyun
492*4882a593Smuzhiyun		PCIE0: pcie@d00000000 {
493*4882a593Smuzhiyun			device_type = "pci";
494*4882a593Smuzhiyun			#interrupt-cells = <1>;
495*4882a593Smuzhiyun			#size-cells = <2>;
496*4882a593Smuzhiyun			#address-cells = <3>;
497*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
498*4882a593Smuzhiyun			primary;
499*4882a593Smuzhiyun			port = <0x0>; /* port number */
500*4882a593Smuzhiyun			reg = <0x0000000d 0x00000000 0x20000000	/* Config space access */
501*4882a593Smuzhiyun			       0x0000000c 0x08010000 0x00001000>;	/* Registers */
502*4882a593Smuzhiyun			dcr-reg = <0x100 0x020>;
503*4882a593Smuzhiyun			sdr-base = <0x300>;
504*4882a593Smuzhiyun
505*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
506*4882a593Smuzhiyun			 * later cannot be changed
507*4882a593Smuzhiyun			 */
508*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
509*4882a593Smuzhiyun				  0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
510*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
511*4882a593Smuzhiyun
512*4882a593Smuzhiyun			/* Inbound 2GB range starting at 0 */
513*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
514*4882a593Smuzhiyun
515*4882a593Smuzhiyun			/* This drives busses 40 to 0x7f */
516*4882a593Smuzhiyun			bus-range = <0x40 0x7f>;
517*4882a593Smuzhiyun
518*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
519*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
520*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
521*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
522*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
523*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
524*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
525*4882a593Smuzhiyun			 */
526*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
527*4882a593Smuzhiyun			interrupt-map = <
528*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
529*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
530*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
531*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
532*4882a593Smuzhiyun		};
533*4882a593Smuzhiyun
534*4882a593Smuzhiyun		PCIE1: pcie@d20000000 {
535*4882a593Smuzhiyun			device_type = "pci";
536*4882a593Smuzhiyun			#interrupt-cells = <1>;
537*4882a593Smuzhiyun			#size-cells = <2>;
538*4882a593Smuzhiyun			#address-cells = <3>;
539*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
540*4882a593Smuzhiyun			primary;
541*4882a593Smuzhiyun			port = <0x1>; /* port number */
542*4882a593Smuzhiyun			reg = <0x0000000d 0x20000000 0x20000000	/* Config space access */
543*4882a593Smuzhiyun			       0x0000000c 0x08011000 0x00001000>;	/* Registers */
544*4882a593Smuzhiyun			dcr-reg = <0x120 0x020>;
545*4882a593Smuzhiyun			sdr-base = <0x340>;
546*4882a593Smuzhiyun
547*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
548*4882a593Smuzhiyun			 * later cannot be changed
549*4882a593Smuzhiyun			 */
550*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
551*4882a593Smuzhiyun				  0x02000000 0x00000000 0x00000000 0x0000000f 0x00100000 0x00000000 0x00100000
552*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
553*4882a593Smuzhiyun
554*4882a593Smuzhiyun			/* Inbound 2GB range starting at 0 */
555*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
556*4882a593Smuzhiyun
557*4882a593Smuzhiyun			/* This drives busses 80 to 0xbf */
558*4882a593Smuzhiyun			bus-range = <0x80 0xbf>;
559*4882a593Smuzhiyun
560*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
561*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
562*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
563*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
564*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
565*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
566*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
567*4882a593Smuzhiyun			 */
568*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
569*4882a593Smuzhiyun			interrupt-map = <
570*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &UIC3 0x10 0x4 /* swizzled int A */
571*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &UIC3 0x11 0x4 /* swizzled int B */
572*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &UIC3 0x12 0x4 /* swizzled int C */
573*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &UIC3 0x13 0x4 /* swizzled int D */>;
574*4882a593Smuzhiyun		};
575*4882a593Smuzhiyun	};
576*4882a593Smuzhiyun};
577