1/*
2 * MPC8377E RDB Device Tree Source
3 *
4 * Copyright 2007, 2008 Freescale Semiconductor Inc.
5 *
6 * This program is free software; you can redistribute  it and/or modify it
7 * under  the terms of  the GNU General  Public License as published by the
8 * Free Software Foundation;  either version 2 of the  License, or (at your
9 * option) any later version.
10 */
11
12/dts-v1/;
13
14/ {
15	compatible = "fsl,mpc8377rdb";
16	#address-cells = <1>;
17	#size-cells = <1>;
18
19	aliases {
20		ethernet0 = &enet0;
21		ethernet1 = &enet1;
22		serial0 = &serial0;
23		serial1 = &serial1;
24		pci0 = &pci0;
25	};
26
27	cpus {
28		#address-cells = <1>;
29		#size-cells = <0>;
30
31		PowerPC,8377@0 {
32			device_type = "cpu";
33			reg = <0x0>;
34			d-cache-line-size = <32>;
35			i-cache-line-size = <32>;
36			d-cache-size = <32768>;
37			i-cache-size = <32768>;
38			timebase-frequency = <0>;
39			bus-frequency = <0>;
40			clock-frequency = <0>;
41		};
42	};
43
44	memory {
45		device_type = "memory";
46		reg = <0x00000000 0x10000000>;	// 256MB at 0
47	};
48
49	localbus@e0005000 {
50		#address-cells = <2>;
51		#size-cells = <1>;
52		compatible = "fsl,mpc8377-elbc", "fsl,elbc", "simple-bus";
53		reg = <0xe0005000 0x1000>;
54		interrupts = <77 0x8>;
55		interrupt-parent = <&ipic>;
56
57		// CS0 and CS1 are swapped when
58		// booting from nand, but the
59		// addresses are the same.
60		ranges = <0x0 0x0 0xfe000000 0x00800000
61		          0x1 0x0 0xe0600000 0x00008000
62		          0x2 0x0 0xf0000000 0x00020000
63		          0x3 0x0 0xfa000000 0x00008000>;
64
65		flash@0,0 {
66			#address-cells = <1>;
67			#size-cells = <1>;
68			compatible = "cfi-flash";
69			reg = <0x0 0x0 0x800000>;
70			bank-width = <2>;
71			device-width = <1>;
72		};
73
74		nand@1,0 {
75			#address-cells = <1>;
76			#size-cells = <1>;
77			compatible = "fsl,mpc8377-fcm-nand",
78			             "fsl,elbc-fcm-nand";
79			reg = <0x1 0x0 0x8000>;
80
81			u-boot@0 {
82				reg = <0x0 0x100000>;
83				read-only;
84			};
85
86			kernel@100000 {
87				reg = <0x100000 0x300000>;
88			};
89			fs@400000 {
90				reg = <0x400000 0x1c00000>;
91			};
92		};
93	};
94
95	immr@e0000000 {
96		#address-cells = <1>;
97		#size-cells = <1>;
98		device_type = "soc";
99		compatible = "simple-bus";
100		ranges = <0x0 0xe0000000 0x00100000>;
101		reg = <0xe0000000 0x00000200>;
102		bus-frequency = <0>;
103
104		wdt@200 {
105			device_type = "watchdog";
106			compatible = "mpc83xx_wdt";
107			reg = <0x200 0x100>;
108		};
109
110		i2c@3000 {
111			#address-cells = <1>;
112			#size-cells = <0>;
113			cell-index = <0>;
114			compatible = "fsl-i2c";
115			reg = <0x3000 0x100>;
116			interrupts = <14 0x8>;
117			interrupt-parent = <&ipic>;
118			dfsrr;
119			rtc@68 {
120				device_type = "rtc";
121				compatible = "dallas,ds1339";
122				reg = <0x68>;
123			};
124		};
125
126		i2c@3100 {
127			#address-cells = <1>;
128			#size-cells = <0>;
129			cell-index = <1>;
130			compatible = "fsl-i2c";
131			reg = <0x3100 0x100>;
132			interrupts = <15 0x8>;
133			interrupt-parent = <&ipic>;
134			dfsrr;
135		};
136
137		spi@7000 {
138			cell-index = <0>;
139			compatible = "fsl,spi";
140			reg = <0x7000 0x1000>;
141			interrupts = <16 0x8>;
142			interrupt-parent = <&ipic>;
143			mode = "cpu";
144		};
145
146		dma@82a8 {
147			#address-cells = <1>;
148			#size-cells = <1>;
149			compatible = "fsl,mpc8377-dma", "fsl,elo-dma";
150			reg = <0x82a8 4>;
151			ranges = <0 0x8100 0x1a8>;
152			interrupt-parent = <&ipic>;
153			interrupts = <71 8>;
154			cell-index = <0>;
155			dma-channel@0 {
156				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
157				reg = <0 0x80>;
158				interrupt-parent = <&ipic>;
159				interrupts = <71 8>;
160			};
161			dma-channel@80 {
162				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
163				reg = <0x80 0x80>;
164				interrupt-parent = <&ipic>;
165				interrupts = <71 8>;
166			};
167			dma-channel@100 {
168				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
169				reg = <0x100 0x80>;
170				interrupt-parent = <&ipic>;
171				interrupts = <71 8>;
172			};
173			dma-channel@180 {
174				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
175				reg = <0x180 0x28>;
176				interrupt-parent = <&ipic>;
177				interrupts = <71 8>;
178			};
179		};
180
181		usb@23000 {
182			compatible = "fsl-usb2-dr";
183			reg = <0x23000 0x1000>;
184			#address-cells = <1>;
185			#size-cells = <0>;
186			interrupt-parent = <&ipic>;
187			interrupts = <38 0x8>;
188			phy_type = "ulpi";
189		};
190
191		mdio@24520 {
192			#address-cells = <1>;
193			#size-cells = <0>;
194			compatible = "fsl,gianfar-mdio";
195			reg = <0x24520 0x20>;
196			phy2: ethernet-phy@2 {
197				interrupt-parent = <&ipic>;
198				interrupts = <17 0x8>;
199				reg = <0x2>;
200				device_type = "ethernet-phy";
201			};
202			phy3: ethernet-phy@3 {
203				interrupt-parent = <&ipic>;
204				interrupts = <18 0x8>;
205				reg = <0x3>;
206				device_type = "ethernet-phy";
207			};
208		};
209
210		enet0: ethernet@24000 {
211			cell-index = <0>;
212			device_type = "network";
213			model = "eTSEC";
214			compatible = "gianfar";
215			reg = <0x24000 0x1000>;
216			local-mac-address = [ 00 00 00 00 00 00 ];
217			interrupts = <32 0x8 33 0x8 34 0x8>;
218			phy-connection-type = "mii";
219			interrupt-parent = <&ipic>;
220			phy-handle = <&phy2>;
221		};
222
223		enet1: ethernet@25000 {
224			cell-index = <1>;
225			device_type = "network";
226			model = "eTSEC";
227			compatible = "gianfar";
228			reg = <0x25000 0x1000>;
229			local-mac-address = [ 00 00 00 00 00 00 ];
230			interrupts = <35 0x8 36 0x8 37 0x8>;
231			phy-connection-type = "mii";
232			interrupt-parent = <&ipic>;
233			phy-handle = <&phy3>;
234		};
235
236		serial0: serial@4500 {
237			cell-index = <0>;
238			device_type = "serial";
239			compatible = "ns16550";
240			reg = <0x4500 0x100>;
241			clock-frequency = <0>;
242			interrupts = <9 0x8>;
243			interrupt-parent = <&ipic>;
244		};
245
246		serial1: serial@4600 {
247			cell-index = <1>;
248			device_type = "serial";
249			compatible = "ns16550";
250			reg = <0x4600 0x100>;
251			clock-frequency = <0>;
252			interrupts = <10 0x8>;
253			interrupt-parent = <&ipic>;
254		};
255
256		crypto@30000 {
257			model = "SEC3";
258			device_type = "crypto";
259			compatible = "talitos";
260			reg = <0x30000 0x10000>;
261			interrupts = <11 0x8>;
262			interrupt-parent = <&ipic>;
263			/* Rev. 3.0 geometry */
264			num-channels = <4>;
265			channel-fifo-len = <24>;
266			exec-units-mask = <0x000001fe>;
267			descriptor-types-mask = <0x03ab0ebf>;
268		};
269
270		sata@18000 {
271			compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
272			reg = <0x18000 0x1000>;
273			interrupts = <44 0x8>;
274			interrupt-parent = <&ipic>;
275		};
276
277		sata@19000 {
278			compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
279			reg = <0x19000 0x1000>;
280			interrupts = <45 0x8>;
281			interrupt-parent = <&ipic>;
282		};
283
284		/* IPIC
285		 * interrupts cell = <intr #, sense>
286		 * sense values match linux IORESOURCE_IRQ_* defines:
287		 * sense == 8: Level, low assertion
288		 * sense == 2: Edge, high-to-low change
289		 */
290		ipic: interrupt-controller@700 {
291			compatible = "fsl,ipic";
292			interrupt-controller;
293			#address-cells = <0>;
294			#interrupt-cells = <2>;
295			reg = <0x700 0x100>;
296		};
297	};
298
299	pci0: pci@e0008500 {
300		interrupt-map-mask = <0xf800 0 0 7>;
301		interrupt-map = <
302				/* IRQ5 = 21 = 0x15, IRQ6 = 0x16, IRQ7 = 23 = 0x17 */
303
304				/* IDSEL AD14 IRQ6 inta */
305				 0x7000 0x0 0x0 0x1 &ipic 22 0x8
306
307				/* IDSEL AD15 IRQ5 inta, IRQ6 intb, IRQ7 intd */
308				 0x7800 0x0 0x0 0x1 &ipic 21 0x8
309				 0x7800 0x0 0x0 0x2 &ipic 22 0x8
310				 0x7800 0x0 0x0 0x4 &ipic 23 0x8
311
312				/* IDSEL AD28 IRQ7 inta, IRQ5 intb IRQ6 intc*/
313				 0xE000 0x0 0x0 0x1 &ipic 23 0x8
314				 0xE000 0x0 0x0 0x2 &ipic 21 0x8
315				 0xE000 0x0 0x0 0x3 &ipic 22 0x8>;
316		interrupt-parent = <&ipic>;
317		interrupts = <66 0x8>;
318		bus-range = <0 0>;
319		ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
320		          0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
321		          0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
322		clock-frequency = <66666666>;
323		#interrupt-cells = <1>;
324		#size-cells = <2>;
325		#address-cells = <3>;
326		reg = <0xe0008500 0x100>;
327		compatible = "fsl,mpc8349-pci";
328		device_type = "pci";
329	};
330};
331