xref: /OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/haleakala.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Source for AMCC Haleakala (405EXr)
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright 2008 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 = <1>;
15*4882a593Smuzhiyun	#size-cells = <1>;
16*4882a593Smuzhiyun	model = "amcc,haleakala";
17*4882a593Smuzhiyun	compatible = "amcc,haleakala", "amcc,kilauea";
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	};
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun	cpus {
27*4882a593Smuzhiyun		#address-cells = <1>;
28*4882a593Smuzhiyun		#size-cells = <0>;
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun		cpu@0 {
31*4882a593Smuzhiyun			device_type = "cpu";
32*4882a593Smuzhiyun			model = "PowerPC,405EXr";
33*4882a593Smuzhiyun			reg = <0x00000000>;
34*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by U-Boot */
35*4882a593Smuzhiyun			timebase-frequency = <0>; /* Filled in by U-Boot */
36*4882a593Smuzhiyun			i-cache-line-size = <32>;
37*4882a593Smuzhiyun			d-cache-line-size = <32>;
38*4882a593Smuzhiyun			i-cache-size = <16384>; /* 16 kB */
39*4882a593Smuzhiyun			d-cache-size = <16384>; /* 16 kB */
40*4882a593Smuzhiyun			dcr-controller;
41*4882a593Smuzhiyun			dcr-access-method = "native";
42*4882a593Smuzhiyun		};
43*4882a593Smuzhiyun	};
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun	memory {
46*4882a593Smuzhiyun		device_type = "memory";
47*4882a593Smuzhiyun		reg = <0x00000000 0x00000000>; /* Filled in by U-Boot */
48*4882a593Smuzhiyun	};
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun	UIC0: interrupt-controller {
51*4882a593Smuzhiyun		compatible = "ibm,uic-405exr", "ibm,uic";
52*4882a593Smuzhiyun		interrupt-controller;
53*4882a593Smuzhiyun		cell-index = <0>;
54*4882a593Smuzhiyun		dcr-reg = <0x0c0 0x009>;
55*4882a593Smuzhiyun		#address-cells = <0>;
56*4882a593Smuzhiyun		#size-cells = <0>;
57*4882a593Smuzhiyun		#interrupt-cells = <2>;
58*4882a593Smuzhiyun	};
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun	UIC1: interrupt-controller1 {
61*4882a593Smuzhiyun		compatible = "ibm,uic-405exr","ibm,uic";
62*4882a593Smuzhiyun		interrupt-controller;
63*4882a593Smuzhiyun		cell-index = <1>;
64*4882a593Smuzhiyun		dcr-reg = <0x0d0 0x009>;
65*4882a593Smuzhiyun		#address-cells = <0>;
66*4882a593Smuzhiyun		#size-cells = <0>;
67*4882a593Smuzhiyun		#interrupt-cells = <2>;
68*4882a593Smuzhiyun		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
69*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
70*4882a593Smuzhiyun	};
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun	UIC2: interrupt-controller2 {
73*4882a593Smuzhiyun		compatible = "ibm,uic-405exr","ibm,uic";
74*4882a593Smuzhiyun		interrupt-controller;
75*4882a593Smuzhiyun		cell-index = <2>;
76*4882a593Smuzhiyun		dcr-reg = <0x0e0 0x009>;
77*4882a593Smuzhiyun		#address-cells = <0>;
78*4882a593Smuzhiyun		#size-cells = <0>;
79*4882a593Smuzhiyun		#interrupt-cells = <2>;
80*4882a593Smuzhiyun		interrupts = <0x1c 0x4 0x1d 0x4>; /* cascade */
81*4882a593Smuzhiyun		interrupt-parent = <&UIC0>;
82*4882a593Smuzhiyun	};
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun	plb {
85*4882a593Smuzhiyun		compatible = "ibm,plb-405exr", "ibm,plb4";
86*4882a593Smuzhiyun		#address-cells = <1>;
87*4882a593Smuzhiyun		#size-cells = <1>;
88*4882a593Smuzhiyun		ranges;
89*4882a593Smuzhiyun		clock-frequency = <0>; /* Filled in by U-Boot */
90*4882a593Smuzhiyun
91*4882a593Smuzhiyun		SDRAM0: memory-controller {
92*4882a593Smuzhiyun			compatible = "ibm,sdram-405exr", "ibm,sdram-4xx-ddr2";
93*4882a593Smuzhiyun			dcr-reg = <0x010 0x002>;
94*4882a593Smuzhiyun			interrupt-parent = <&UIC2>;
95*4882a593Smuzhiyun			interrupts = <0x5 0x4	/* ECC DED Error */
96*4882a593Smuzhiyun				      0x6 0x4>;	/* ECC SEC Error */
97*4882a593Smuzhiyun		};
98*4882a593Smuzhiyun
99*4882a593Smuzhiyun		MAL0: mcmal {
100*4882a593Smuzhiyun			compatible = "ibm,mcmal-405exr", "ibm,mcmal2";
101*4882a593Smuzhiyun			dcr-reg = <0x180 0x062>;
102*4882a593Smuzhiyun			num-tx-chans = <2>;
103*4882a593Smuzhiyun			num-rx-chans = <2>;
104*4882a593Smuzhiyun			interrupt-parent = <&MAL0>;
105*4882a593Smuzhiyun			interrupts = <0x0 0x1 0x2 0x3 0x4>;
106*4882a593Smuzhiyun			#interrupt-cells = <1>;
107*4882a593Smuzhiyun			#address-cells = <0>;
108*4882a593Smuzhiyun			#size-cells = <0>;
109*4882a593Smuzhiyun			interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
110*4882a593Smuzhiyun					/*RXEOB*/ 0x1 &UIC0 0xb 0x4
111*4882a593Smuzhiyun					/*SERR*/  0x2 &UIC1 0x0 0x4
112*4882a593Smuzhiyun					/*TXDE*/  0x3 &UIC1 0x1 0x4
113*4882a593Smuzhiyun					/*RXDE*/  0x4 &UIC1 0x2 0x4>;
114*4882a593Smuzhiyun			interrupt-map-mask = <0xffffffff>;
115*4882a593Smuzhiyun		};
116*4882a593Smuzhiyun
117*4882a593Smuzhiyun		POB0: opb {
118*4882a593Smuzhiyun			compatible = "ibm,opb-405exr", "ibm,opb";
119*4882a593Smuzhiyun			#address-cells = <1>;
120*4882a593Smuzhiyun			#size-cells = <1>;
121*4882a593Smuzhiyun			ranges = <0x80000000 0x80000000 0x10000000
122*4882a593Smuzhiyun				  0xef600000 0xef600000 0x00a00000
123*4882a593Smuzhiyun				  0xf0000000 0xf0000000 0x10000000>;
124*4882a593Smuzhiyun			dcr-reg = <0x0a0 0x005>;
125*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by U-Boot */
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun			EBC0: ebc {
128*4882a593Smuzhiyun				compatible = "ibm,ebc-405exr", "ibm,ebc";
129*4882a593Smuzhiyun				dcr-reg = <0x012 0x002>;
130*4882a593Smuzhiyun				#address-cells = <2>;
131*4882a593Smuzhiyun				#size-cells = <1>;
132*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
133*4882a593Smuzhiyun				/* ranges property is supplied by U-Boot */
134*4882a593Smuzhiyun				interrupts = <0x5 0x1>;
135*4882a593Smuzhiyun				interrupt-parent = <&UIC1>;
136*4882a593Smuzhiyun
137*4882a593Smuzhiyun				nor_flash@0,0 {
138*4882a593Smuzhiyun					compatible = "amd,s29gl512n", "cfi-flash";
139*4882a593Smuzhiyun					bank-width = <2>;
140*4882a593Smuzhiyun					reg = <0x00000000 0x00000000 0x04000000>;
141*4882a593Smuzhiyun					#address-cells = <1>;
142*4882a593Smuzhiyun					#size-cells = <1>;
143*4882a593Smuzhiyun					partition@0 {
144*4882a593Smuzhiyun						label = "kernel";
145*4882a593Smuzhiyun						reg = <0x00000000 0x00200000>;
146*4882a593Smuzhiyun					};
147*4882a593Smuzhiyun					partition@200000 {
148*4882a593Smuzhiyun						label = "root";
149*4882a593Smuzhiyun						reg = <0x00200000 0x00200000>;
150*4882a593Smuzhiyun					};
151*4882a593Smuzhiyun					partition@400000 {
152*4882a593Smuzhiyun						label = "user";
153*4882a593Smuzhiyun						reg = <0x00400000 0x03b60000>;
154*4882a593Smuzhiyun					};
155*4882a593Smuzhiyun					partition@3f60000 {
156*4882a593Smuzhiyun						label = "env";
157*4882a593Smuzhiyun						reg = <0x03f60000 0x00040000>;
158*4882a593Smuzhiyun					};
159*4882a593Smuzhiyun					partition@3fa0000 {
160*4882a593Smuzhiyun						label = "u-boot";
161*4882a593Smuzhiyun						reg = <0x03fa0000 0x00060000>;
162*4882a593Smuzhiyun					};
163*4882a593Smuzhiyun				};
164*4882a593Smuzhiyun			};
165*4882a593Smuzhiyun
166*4882a593Smuzhiyun			UART0: serial@ef600200 {
167*4882a593Smuzhiyun				device_type = "serial";
168*4882a593Smuzhiyun				compatible = "ns16550";
169*4882a593Smuzhiyun				reg = <0xef600200 0x00000008>;
170*4882a593Smuzhiyun				virtual-reg = <0xef600200>;
171*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
172*4882a593Smuzhiyun				current-speed = <0>;
173*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
174*4882a593Smuzhiyun				interrupts = <0x1a 0x4>;
175*4882a593Smuzhiyun			};
176*4882a593Smuzhiyun
177*4882a593Smuzhiyun			UART1: serial@ef600300 {
178*4882a593Smuzhiyun				device_type = "serial";
179*4882a593Smuzhiyun				compatible = "ns16550";
180*4882a593Smuzhiyun				reg = <0xef600300 0x00000008>;
181*4882a593Smuzhiyun				virtual-reg = <0xef600300>;
182*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by U-Boot */
183*4882a593Smuzhiyun				current-speed = <0>;
184*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
185*4882a593Smuzhiyun				interrupts = <0x1 0x4>;
186*4882a593Smuzhiyun			};
187*4882a593Smuzhiyun
188*4882a593Smuzhiyun			IIC0: i2c@ef600400 {
189*4882a593Smuzhiyun				compatible = "ibm,iic-405exr", "ibm,iic";
190*4882a593Smuzhiyun				reg = <0xef600400 0x00000014>;
191*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
192*4882a593Smuzhiyun				interrupts = <0x2 0x4>;
193*4882a593Smuzhiyun			};
194*4882a593Smuzhiyun
195*4882a593Smuzhiyun			IIC1: i2c@ef600500 {
196*4882a593Smuzhiyun				compatible = "ibm,iic-405exr", "ibm,iic";
197*4882a593Smuzhiyun				reg = <0xef600500 0x00000014>;
198*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
199*4882a593Smuzhiyun				interrupts = <0x7 0x4>;
200*4882a593Smuzhiyun			};
201*4882a593Smuzhiyun
202*4882a593Smuzhiyun
203*4882a593Smuzhiyun			RGMII0: emac-rgmii@ef600b00 {
204*4882a593Smuzhiyun				compatible = "ibm,rgmii-405exr", "ibm,rgmii";
205*4882a593Smuzhiyun				reg = <0xef600b00 0x00000104>;
206*4882a593Smuzhiyun				has-mdio;
207*4882a593Smuzhiyun			};
208*4882a593Smuzhiyun
209*4882a593Smuzhiyun			EMAC0: ethernet@ef600900 {
210*4882a593Smuzhiyun				linux,network-index = <0x0>;
211*4882a593Smuzhiyun				device_type = "network";
212*4882a593Smuzhiyun				compatible = "ibm,emac-405exr", "ibm,emac4sync";
213*4882a593Smuzhiyun				interrupt-parent = <&EMAC0>;
214*4882a593Smuzhiyun				interrupts = <0x0 0x1>;
215*4882a593Smuzhiyun				#interrupt-cells = <1>;
216*4882a593Smuzhiyun				#address-cells = <0>;
217*4882a593Smuzhiyun				#size-cells = <0>;
218*4882a593Smuzhiyun				interrupt-map = </*Status*/ 0x0 &UIC0 0x18 0x4
219*4882a593Smuzhiyun						/*Wake*/  0x1 &UIC1 0x1d 0x4>;
220*4882a593Smuzhiyun				reg = <0xef600900 0x000000c4>;
221*4882a593Smuzhiyun				local-mac-address = [000000000000]; /* Filled in by U-Boot */
222*4882a593Smuzhiyun				mal-device = <&MAL0>;
223*4882a593Smuzhiyun				mal-tx-channel = <0>;
224*4882a593Smuzhiyun				mal-rx-channel = <0>;
225*4882a593Smuzhiyun				cell-index = <0>;
226*4882a593Smuzhiyun				max-frame-size = <9000>;
227*4882a593Smuzhiyun				rx-fifo-size = <4096>;
228*4882a593Smuzhiyun				tx-fifo-size = <2048>;
229*4882a593Smuzhiyun				rx-fifo-size-gige = <16384>;
230*4882a593Smuzhiyun				tx-fifo-size-gige = <16384>;
231*4882a593Smuzhiyun				phy-mode = "rgmii";
232*4882a593Smuzhiyun				phy-map = <0x00000000>;
233*4882a593Smuzhiyun				rgmii-device = <&RGMII0>;
234*4882a593Smuzhiyun				rgmii-channel = <0>;
235*4882a593Smuzhiyun				has-inverted-stacr-oc;
236*4882a593Smuzhiyun				has-new-stacr-staopc;
237*4882a593Smuzhiyun			};
238*4882a593Smuzhiyun		};
239*4882a593Smuzhiyun
240*4882a593Smuzhiyun		PCIE0: pcie@a0000000 {
241*4882a593Smuzhiyun			device_type = "pci";
242*4882a593Smuzhiyun			#interrupt-cells = <1>;
243*4882a593Smuzhiyun			#size-cells = <2>;
244*4882a593Smuzhiyun			#address-cells = <3>;
245*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
246*4882a593Smuzhiyun			primary;
247*4882a593Smuzhiyun			port = <0x0>; /* port number */
248*4882a593Smuzhiyun			reg = <0xa0000000 0x20000000	/* Config space access */
249*4882a593Smuzhiyun			       0xef000000 0x00001000>;	/* Registers */
250*4882a593Smuzhiyun			dcr-reg = <0x040 0x020>;
251*4882a593Smuzhiyun			sdr-base = <0x400>;
252*4882a593Smuzhiyun
253*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
254*4882a593Smuzhiyun			 * later cannot be changed
255*4882a593Smuzhiyun			 */
256*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x90000000 0x00000000 0x08000000
257*4882a593Smuzhiyun				  0x01000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00010000>;
258*4882a593Smuzhiyun
259*4882a593Smuzhiyun			/* Inbound 2GB range starting at 0 */
260*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
261*4882a593Smuzhiyun
262*4882a593Smuzhiyun			/* This drives busses 0x00 to 0x3f */
263*4882a593Smuzhiyun			bus-range = <0x0 0x3f>;
264*4882a593Smuzhiyun
265*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
266*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
267*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
268*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
269*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
270*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
271*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
272*4882a593Smuzhiyun			 */
273*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
274*4882a593Smuzhiyun			interrupt-map = <
275*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &UIC2 0x0 0x4 /* swizzled int A */
276*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &UIC2 0x1 0x4 /* swizzled int B */
277*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &UIC2 0x2 0x4 /* swizzled int C */
278*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &UIC2 0x3 0x4 /* swizzled int D */>;
279*4882a593Smuzhiyun		};
280*4882a593Smuzhiyun	};
281*4882a593Smuzhiyun};
282