xref: /OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/yosemite.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Source for AMCC Yosemite
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright 2008 IBM Corp.
5*4882a593Smuzhiyun * Josh Boyer <jwboyer@linux.vnet.ibm.com>
6*4882a593Smuzhiyun *
7*4882a593Smuzhiyun * This file is licensed under the terms of the GNU General Public
8*4882a593Smuzhiyun * License version 2.  This program is licensed "as is" without
9*4882a593Smuzhiyun * any warranty of any kind, whether express or implied.
10*4882a593Smuzhiyun */
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun/dts-v1/;
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun/ {
15*4882a593Smuzhiyun	#address-cells = <2>;
16*4882a593Smuzhiyun	#size-cells = <1>;
17*4882a593Smuzhiyun	model = "amcc,yosemite";
18*4882a593Smuzhiyun	compatible = "amcc,yosemite";
19*4882a593Smuzhiyun	dcr-parent = <&{/cpus/cpu@0}>;
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun	aliases {
22*4882a593Smuzhiyun		ethernet0 = &EMAC0;
23*4882a593Smuzhiyun		ethernet1 = &EMAC1;
24*4882a593Smuzhiyun		serial0 = &UART0;
25*4882a593Smuzhiyun		serial1 = &UART1;
26*4882a593Smuzhiyun		serial2 = &UART2;
27*4882a593Smuzhiyun		serial3 = &UART3;
28*4882a593Smuzhiyun	};
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	cpus {
31*4882a593Smuzhiyun		#address-cells = <1>;
32*4882a593Smuzhiyun		#size-cells = <0>;
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun		cpu@0 {
35*4882a593Smuzhiyun			device_type = "cpu";
36*4882a593Smuzhiyun			model = "PowerPC,440EP";
37*4882a593Smuzhiyun			reg = <0x00000000>;
38*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by zImage */
39*4882a593Smuzhiyun			timebase-frequency = <0>; /* Filled in by zImage */
40*4882a593Smuzhiyun			i-cache-line-size = <32>;
41*4882a593Smuzhiyun			d-cache-line-size = <32>;
42*4882a593Smuzhiyun			i-cache-size = <32768>;
43*4882a593Smuzhiyun			d-cache-size = <32768>;
44*4882a593Smuzhiyun			dcr-controller;
45*4882a593Smuzhiyun			dcr-access-method = "native";
46*4882a593Smuzhiyun		};
47*4882a593Smuzhiyun	};
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun	memory {
50*4882a593Smuzhiyun		device_type = "memory";
51*4882a593Smuzhiyun		reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */
52*4882a593Smuzhiyun	};
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun	UIC0: interrupt-controller0 {
55*4882a593Smuzhiyun		compatible = "ibm,uic-440ep","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-440ep","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	SDR0: sdr {
77*4882a593Smuzhiyun		compatible = "ibm,sdr-440ep";
78*4882a593Smuzhiyun		dcr-reg = <0x00e 0x002>;
79*4882a593Smuzhiyun	};
80*4882a593Smuzhiyun
81*4882a593Smuzhiyun	CPR0: cpr {
82*4882a593Smuzhiyun		compatible = "ibm,cpr-440ep";
83*4882a593Smuzhiyun		dcr-reg = <0x00c 0x002>;
84*4882a593Smuzhiyun	};
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun	plb {
87*4882a593Smuzhiyun		compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
88*4882a593Smuzhiyun		#address-cells = <2>;
89*4882a593Smuzhiyun		#size-cells = <1>;
90*4882a593Smuzhiyun		ranges;
91*4882a593Smuzhiyun		clock-frequency = <0>; /* Filled in by zImage */
92*4882a593Smuzhiyun
93*4882a593Smuzhiyun		SDRAM0: sdram {
94*4882a593Smuzhiyun			compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
95*4882a593Smuzhiyun			dcr-reg = <0x010 0x002>;
96*4882a593Smuzhiyun		};
97*4882a593Smuzhiyun
98*4882a593Smuzhiyun		DMA0: dma {
99*4882a593Smuzhiyun			compatible = "ibm,dma-440ep", "ibm,dma-440gp";
100*4882a593Smuzhiyun			dcr-reg = <0x100 0x027>;
101*4882a593Smuzhiyun		};
102*4882a593Smuzhiyun
103*4882a593Smuzhiyun		MAL0: mcmal {
104*4882a593Smuzhiyun			compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
105*4882a593Smuzhiyun			dcr-reg = <0x180 0x062>;
106*4882a593Smuzhiyun			num-tx-chans = <4>;
107*4882a593Smuzhiyun			num-rx-chans = <2>;
108*4882a593Smuzhiyun			interrupt-parent = <&MAL0>;
109*4882a593Smuzhiyun			interrupts = <0x0 0x1 0x2 0x3 0x4>;
110*4882a593Smuzhiyun			#interrupt-cells = <1>;
111*4882a593Smuzhiyun			#address-cells = <0>;
112*4882a593Smuzhiyun			#size-cells = <0>;
113*4882a593Smuzhiyun			interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
114*4882a593Smuzhiyun					/*RXEOB*/ 0x1 &UIC0 0xb 0x4
115*4882a593Smuzhiyun					/*SERR*/  0x2 &UIC1 0x0 0x4
116*4882a593Smuzhiyun					/*TXDE*/  0x3 &UIC1 0x1 0x4
117*4882a593Smuzhiyun					/*RXDE*/  0x4 &UIC1 0x2 0x4>;
118*4882a593Smuzhiyun		};
119*4882a593Smuzhiyun
120*4882a593Smuzhiyun		POB0: opb {
121*4882a593Smuzhiyun			compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
122*4882a593Smuzhiyun			#address-cells = <1>;
123*4882a593Smuzhiyun			#size-cells = <1>;
124*4882a593Smuzhiyun			/* Bamboo is oddball in the 44x world and doesn't use the ERPN
125*4882a593Smuzhiyun			 * bits.
126*4882a593Smuzhiyun			 */
127*4882a593Smuzhiyun			ranges = <0x00000000 0x00000000 0x00000000 0x80000000
128*4882a593Smuzhiyun			          0x80000000 0x00000000 0x80000000 0x80000000>;
129*4882a593Smuzhiyun			interrupt-parent = <&UIC1>;
130*4882a593Smuzhiyun			interrupts = <0x7 0x4>;
131*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by zImage */
132*4882a593Smuzhiyun
133*4882a593Smuzhiyun			EBC0: ebc {
134*4882a593Smuzhiyun				compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
135*4882a593Smuzhiyun				dcr-reg = <0x012 0x002>;
136*4882a593Smuzhiyun				#address-cells = <2>;
137*4882a593Smuzhiyun				#size-cells = <1>;
138*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by zImage */
139*4882a593Smuzhiyun				interrupts = <0x5 0x1>;
140*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun				nor_flash@0,0 {
143*4882a593Smuzhiyun					compatible = "amd,s29gl256n", "cfi-flash";
144*4882a593Smuzhiyun					bank-width = <2>;
145*4882a593Smuzhiyun					reg = <0x00000000 0x00000000 0x04000000>;
146*4882a593Smuzhiyun					#address-cells = <1>;
147*4882a593Smuzhiyun					#size-cells = <1>;
148*4882a593Smuzhiyun					partition@0 {
149*4882a593Smuzhiyun						label = "kernel";
150*4882a593Smuzhiyun						reg = <0x00000000 0x001e0000>;
151*4882a593Smuzhiyun					};
152*4882a593Smuzhiyun					partition@1e0000 {
153*4882a593Smuzhiyun						label = "dtb";
154*4882a593Smuzhiyun						reg = <0x001e0000 0x00020000>;
155*4882a593Smuzhiyun					};
156*4882a593Smuzhiyun					partition@200000 {
157*4882a593Smuzhiyun						label = "ramdisk";
158*4882a593Smuzhiyun						reg = <0x00200000 0x01400000>;
159*4882a593Smuzhiyun					};
160*4882a593Smuzhiyun					partition@1600000 {
161*4882a593Smuzhiyun						label = "jffs2";
162*4882a593Smuzhiyun						reg = <0x01600000 0x00400000>;
163*4882a593Smuzhiyun					};
164*4882a593Smuzhiyun					partition@1a00000 {
165*4882a593Smuzhiyun						label = "user";
166*4882a593Smuzhiyun						reg = <0x01a00000 0x02540000>;
167*4882a593Smuzhiyun					};
168*4882a593Smuzhiyun					partition@3f40000 {
169*4882a593Smuzhiyun						label = "env";
170*4882a593Smuzhiyun						reg = <0x03f40000 0x00040000>;
171*4882a593Smuzhiyun					};
172*4882a593Smuzhiyun					partition@3f80000 {
173*4882a593Smuzhiyun						label = "u-boot";
174*4882a593Smuzhiyun						reg = <0x03f80000 0x00080000>;
175*4882a593Smuzhiyun					};
176*4882a593Smuzhiyun				};
177*4882a593Smuzhiyun			};
178*4882a593Smuzhiyun
179*4882a593Smuzhiyun			UART0: serial@ef600300 {
180*4882a593Smuzhiyun				device_type = "serial";
181*4882a593Smuzhiyun				compatible = "ns16550";
182*4882a593Smuzhiyun				reg = <0xef600300 0x00000008>;
183*4882a593Smuzhiyun				virtual-reg = <0xef600300>;
184*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by zImage */
185*4882a593Smuzhiyun				current-speed = <115200>;
186*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
187*4882a593Smuzhiyun				interrupts = <0x0 0x4>;
188*4882a593Smuzhiyun			};
189*4882a593Smuzhiyun
190*4882a593Smuzhiyun			UART1: serial@ef600400 {
191*4882a593Smuzhiyun				device_type = "serial";
192*4882a593Smuzhiyun				compatible = "ns16550";
193*4882a593Smuzhiyun				reg = <0xef600400 0x00000008>;
194*4882a593Smuzhiyun				virtual-reg = <0xef600400>;
195*4882a593Smuzhiyun				clock-frequency = <0>;
196*4882a593Smuzhiyun				current-speed = <0>;
197*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
198*4882a593Smuzhiyun				interrupts = <0x1 0x4>;
199*4882a593Smuzhiyun			};
200*4882a593Smuzhiyun
201*4882a593Smuzhiyun			UART2: serial@ef600500 {
202*4882a593Smuzhiyun				device_type = "serial";
203*4882a593Smuzhiyun				compatible = "ns16550";
204*4882a593Smuzhiyun				reg = <0xef600500 0x00000008>;
205*4882a593Smuzhiyun				virtual-reg = <0xef600500>;
206*4882a593Smuzhiyun				clock-frequency = <0>;
207*4882a593Smuzhiyun				current-speed = <0>;
208*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
209*4882a593Smuzhiyun				interrupts = <0x3 0x4>;
210*4882a593Smuzhiyun				status = "disabled";
211*4882a593Smuzhiyun			};
212*4882a593Smuzhiyun
213*4882a593Smuzhiyun			UART3: serial@ef600600 {
214*4882a593Smuzhiyun				device_type = "serial";
215*4882a593Smuzhiyun				compatible = "ns16550";
216*4882a593Smuzhiyun				reg = <0xef600600 0x00000008>;
217*4882a593Smuzhiyun				virtual-reg = <0xef600600>;
218*4882a593Smuzhiyun				clock-frequency = <0>;
219*4882a593Smuzhiyun				current-speed = <0>;
220*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
221*4882a593Smuzhiyun				interrupts = <0x4 0x4>;
222*4882a593Smuzhiyun				status = "disabled";
223*4882a593Smuzhiyun			};
224*4882a593Smuzhiyun
225*4882a593Smuzhiyun			IIC0: i2c@ef600700 {
226*4882a593Smuzhiyun				compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
227*4882a593Smuzhiyun				reg = <0xef600700 0x00000014>;
228*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
229*4882a593Smuzhiyun				interrupts = <0x2 0x4>;
230*4882a593Smuzhiyun			};
231*4882a593Smuzhiyun
232*4882a593Smuzhiyun			IIC1: i2c@ef600800 {
233*4882a593Smuzhiyun				compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
234*4882a593Smuzhiyun				reg = <0xef600800 0x00000014>;
235*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
236*4882a593Smuzhiyun				interrupts = <0x7 0x4>;
237*4882a593Smuzhiyun			};
238*4882a593Smuzhiyun
239*4882a593Smuzhiyun			spi@ef600900 {
240*4882a593Smuzhiyun				compatible = "amcc,spi-440ep";
241*4882a593Smuzhiyun				reg = <0xef600900 0x00000006>;
242*4882a593Smuzhiyun				interrupts = <0x8 0x4>;
243*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
244*4882a593Smuzhiyun			};
245*4882a593Smuzhiyun
246*4882a593Smuzhiyun			ZMII0: emac-zmii@ef600d00 {
247*4882a593Smuzhiyun				compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
248*4882a593Smuzhiyun				reg = <0xef600d00 0x0000000c>;
249*4882a593Smuzhiyun			};
250*4882a593Smuzhiyun
251*4882a593Smuzhiyun			EMAC0: ethernet@ef600e00 {
252*4882a593Smuzhiyun				device_type = "network";
253*4882a593Smuzhiyun				compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
254*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
255*4882a593Smuzhiyun				interrupts = <0x1c 0x4 0x1d 0x4>;
256*4882a593Smuzhiyun				reg = <0xef600e00 0x00000070>;
257*4882a593Smuzhiyun				local-mac-address = [000000000000];
258*4882a593Smuzhiyun				mal-device = <&MAL0>;
259*4882a593Smuzhiyun				mal-tx-channel = <0 1>;
260*4882a593Smuzhiyun				mal-rx-channel = <0>;
261*4882a593Smuzhiyun				cell-index = <0>;
262*4882a593Smuzhiyun				max-frame-size = <1500>;
263*4882a593Smuzhiyun				rx-fifo-size = <4096>;
264*4882a593Smuzhiyun				tx-fifo-size = <2048>;
265*4882a593Smuzhiyun				phy-mode = "rmii";
266*4882a593Smuzhiyun				phy-map = <0x00000000>;
267*4882a593Smuzhiyun				zmii-device = <&ZMII0>;
268*4882a593Smuzhiyun				zmii-channel = <0>;
269*4882a593Smuzhiyun			};
270*4882a593Smuzhiyun
271*4882a593Smuzhiyun			EMAC1: ethernet@ef600f00 {
272*4882a593Smuzhiyun				device_type = "network";
273*4882a593Smuzhiyun				compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
274*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
275*4882a593Smuzhiyun				interrupts = <0x1e 0x4 0x1f 0x4>;
276*4882a593Smuzhiyun				reg = <0xef600f00 0x00000070>;
277*4882a593Smuzhiyun				local-mac-address = [000000000000];
278*4882a593Smuzhiyun				mal-device = <&MAL0>;
279*4882a593Smuzhiyun				mal-tx-channel = <2 3>;
280*4882a593Smuzhiyun				mal-rx-channel = <1>;
281*4882a593Smuzhiyun				cell-index = <1>;
282*4882a593Smuzhiyun				max-frame-size = <1500>;
283*4882a593Smuzhiyun				rx-fifo-size = <4096>;
284*4882a593Smuzhiyun				tx-fifo-size = <2048>;
285*4882a593Smuzhiyun				phy-mode = "rmii";
286*4882a593Smuzhiyun				phy-map = <0x00000000>;
287*4882a593Smuzhiyun				zmii-device = <&ZMII0>;
288*4882a593Smuzhiyun				zmii-channel = <1>;
289*4882a593Smuzhiyun			};
290*4882a593Smuzhiyun
291*4882a593Smuzhiyun			usb@ef601000 {
292*4882a593Smuzhiyun				compatible = "ohci-be";
293*4882a593Smuzhiyun				reg = <0xef601000 0x00000080>;
294*4882a593Smuzhiyun				interrupts = <0x8 0x4 0x9 0x4>;
295*4882a593Smuzhiyun				interrupt-parent = < &UIC1 >;
296*4882a593Smuzhiyun			};
297*4882a593Smuzhiyun		};
298*4882a593Smuzhiyun
299*4882a593Smuzhiyun		PCI0: pci@ec000000 {
300*4882a593Smuzhiyun			device_type = "pci";
301*4882a593Smuzhiyun			#interrupt-cells = <1>;
302*4882a593Smuzhiyun			#size-cells = <2>;
303*4882a593Smuzhiyun			#address-cells = <3>;
304*4882a593Smuzhiyun			compatible = "ibm,plb440ep-pci", "ibm,plb-pci";
305*4882a593Smuzhiyun			primary;
306*4882a593Smuzhiyun			reg = <0x00000000 0xeec00000 0x00000008	/* Config space access */
307*4882a593Smuzhiyun			       0x00000000 0xeed00000 0x00000004	/* IACK */
308*4882a593Smuzhiyun			       0x00000000 0xeed00000 0x00000004	/* Special cycle */
309*4882a593Smuzhiyun			       0x00000000 0xef400000 0x00000040>;	/* Internal registers */
310*4882a593Smuzhiyun
311*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
312*4882a593Smuzhiyun			 * later cannot be changed. Chip supports a second
313*4882a593Smuzhiyun			 * IO range but we don't use it for now
314*4882a593Smuzhiyun			 */
315*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x20000000
316*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
317*4882a593Smuzhiyun
318*4882a593Smuzhiyun			/* Inbound 2GB range starting at 0 */
319*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
320*4882a593Smuzhiyun
321*4882a593Smuzhiyun			interrupt-map-mask = <0xf800 0x0 0x0 0x0>;
322*4882a593Smuzhiyun			interrupt-map = <
323*4882a593Smuzhiyun				/* IDSEL 12 */
324*4882a593Smuzhiyun				0x6000 0x0 0x0 0x0 &UIC0 0x19 0x8
325*4882a593Smuzhiyun			>;
326*4882a593Smuzhiyun		};
327*4882a593Smuzhiyun	};
328*4882a593Smuzhiyun
329*4882a593Smuzhiyun	chosen {
330*4882a593Smuzhiyun		stdout-path = "/plb/opb/serial@ef600300";
331*4882a593Smuzhiyun	};
332*4882a593Smuzhiyun};
333