1c6d4d657SGrant Likely/*
2c6d4d657SGrant Likely * Lite5200B board Device Tree Source
3c6d4d657SGrant Likely *
405cbbc69SGrant Likely * Copyright 2006-2007 Secret Lab Technologies Ltd.
5c6d4d657SGrant Likely * Grant Likely <grant.likely@secretlab.ca>
6c6d4d657SGrant Likely *
7c6d4d657SGrant Likely * This program is free software; you can redistribute  it and/or modify it
8c6d4d657SGrant Likely * under  the terms of  the GNU General  Public License as published by the
9c6d4d657SGrant Likely * Free Software Foundation;  either version 2 of the  License, or (at your
10c6d4d657SGrant Likely * option) any later version.
11c6d4d657SGrant Likely */
12c6d4d657SGrant Likely
13121361f7SGrant Likely/*
14121361f7SGrant Likely * WARNING: Do not depend on this tree layout remaining static just yet.
15121361f7SGrant Likely * The MPC5200 device tree conventions are still in flux
16121361f7SGrant Likely * Keep an eye on the linuxppc-dev mailing list for more details
17121361f7SGrant Likely */
18121361f7SGrant Likely
19c6d4d657SGrant Likely/ {
2005cbbc69SGrant Likely	model = "fsl,lite5200b";
2105cbbc69SGrant Likely	// revision = "1.0";
2205cbbc69SGrant Likely	compatible = "fsl,lite5200b\0generic-mpc5200";
23c6d4d657SGrant Likely	#address-cells = <1>;
24c6d4d657SGrant Likely	#size-cells = <1>;
25c6d4d657SGrant Likely
26c6d4d657SGrant Likely	cpus {
27c6d4d657SGrant Likely		#address-cells = <1>;
28c6d4d657SGrant Likely		#size-cells = <0>;
29c6d4d657SGrant Likely
30c6d4d657SGrant Likely		PowerPC,5200@0 {
31c6d4d657SGrant Likely			device_type = "cpu";
32c6d4d657SGrant Likely			reg = <0>;
33c6d4d657SGrant Likely			d-cache-line-size = <20>;
34c6d4d657SGrant Likely			i-cache-line-size = <20>;
35c6d4d657SGrant Likely			d-cache-size = <4000>;		// L1, 16K
36c6d4d657SGrant Likely			i-cache-size = <4000>;		// L1, 16K
37c6d4d657SGrant Likely			timebase-frequency = <0>;	// from bootloader
38c6d4d657SGrant Likely			bus-frequency = <0>;		// from bootloader
39c6d4d657SGrant Likely			clock-frequency = <0>;		// from bootloader
40c6d4d657SGrant Likely			32-bit;
41c6d4d657SGrant Likely		};
42c6d4d657SGrant Likely	};
43c6d4d657SGrant Likely
44c6d4d657SGrant Likely	memory {
45c6d4d657SGrant Likely		device_type = "memory";
46c6d4d657SGrant Likely		reg = <00000000 10000000>;	// 256MB
47c6d4d657SGrant Likely	};
48c6d4d657SGrant Likely
49c6d4d657SGrant Likely	soc5200@f0000000 {
5005cbbc69SGrant Likely		model = "fsl,mpc5200b";
510d0f4bc7SDomen Puncer		compatible = "mpc5200";
5205cbbc69SGrant Likely		revision = "";			// from bootloader
53c6d4d657SGrant Likely		#interrupt-cells = <3>;
54c6d4d657SGrant Likely		device_type = "soc";
55c6d4d657SGrant Likely		ranges = <0 f0000000 f0010000>;
56c6d4d657SGrant Likely		reg = <f0000000 00010000>;
57c6d4d657SGrant Likely		bus-frequency = <0>;		// from bootloader
5805cbbc69SGrant Likely		system-frequency = <0>;		// from bootloader
59c6d4d657SGrant Likely
60c6d4d657SGrant Likely		cdm@200 {
6105cbbc69SGrant Likely			compatible = "mpc5200b-cdm\0mpc5200-cdm";
62c6d4d657SGrant Likely			reg = <200 38>;
63c6d4d657SGrant Likely		};
64c6d4d657SGrant Likely
655c1992f8SKumar Gala		mpc5200_pic: pic@500 {
66c6d4d657SGrant Likely			// 5200 interrupts are encoded into two levels;
67c6d4d657SGrant Likely			interrupt-controller;
68c6d4d657SGrant Likely			#interrupt-cells = <3>;
69c6d4d657SGrant Likely			device_type = "interrupt-controller";
70f2fb9eb3SDomen Puncer			compatible = "mpc5200b-pic\0mpc5200-pic";
71c6d4d657SGrant Likely			reg = <500 80>;
72c6d4d657SGrant Likely			built-in;
73c6d4d657SGrant Likely		};
74c6d4d657SGrant Likely
75c6d4d657SGrant Likely		gpt@600 {	// General Purpose Timer
7605cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
77c6d4d657SGrant Likely			device_type = "gpt";
7805cbbc69SGrant Likely			cell-index = <0>;
79c6d4d657SGrant Likely			reg = <600 10>;
80c6d4d657SGrant Likely			interrupts = <1 9 0>;
815c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
8205cbbc69SGrant Likely			has-wdt;
83c6d4d657SGrant Likely		};
84c6d4d657SGrant Likely
85c6d4d657SGrant Likely		gpt@610 {	// General Purpose Timer
8605cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
87c6d4d657SGrant Likely			device_type = "gpt";
8805cbbc69SGrant Likely			cell-index = <1>;
89c6d4d657SGrant Likely			reg = <610 10>;
90c6d4d657SGrant Likely			interrupts = <1 a 0>;
915c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
92c6d4d657SGrant Likely		};
93c6d4d657SGrant Likely
94c6d4d657SGrant Likely		gpt@620 {	// General Purpose Timer
9505cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
96c6d4d657SGrant Likely			device_type = "gpt";
9705cbbc69SGrant Likely			cell-index = <2>;
98c6d4d657SGrant Likely			reg = <620 10>;
99c6d4d657SGrant Likely			interrupts = <1 b 0>;
1005c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
101c6d4d657SGrant Likely		};
102c6d4d657SGrant Likely
103c6d4d657SGrant Likely		gpt@630 {	// General Purpose Timer
10405cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
105c6d4d657SGrant Likely			device_type = "gpt";
10605cbbc69SGrant Likely			cell-index = <3>;
107c6d4d657SGrant Likely			reg = <630 10>;
108c6d4d657SGrant Likely			interrupts = <1 c 0>;
1095c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
110c6d4d657SGrant Likely		};
111c6d4d657SGrant Likely
112c6d4d657SGrant Likely		gpt@640 {	// General Purpose Timer
11305cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
114c6d4d657SGrant Likely			device_type = "gpt";
11505cbbc69SGrant Likely			cell-index = <4>;
116c6d4d657SGrant Likely			reg = <640 10>;
117c6d4d657SGrant Likely			interrupts = <1 d 0>;
1185c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
119c6d4d657SGrant Likely		};
120c6d4d657SGrant Likely
121c6d4d657SGrant Likely		gpt@650 {	// General Purpose Timer
12205cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
123c6d4d657SGrant Likely			device_type = "gpt";
12405cbbc69SGrant Likely			cell-index = <5>;
125c6d4d657SGrant Likely			reg = <650 10>;
126c6d4d657SGrant Likely			interrupts = <1 e 0>;
1275c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
128c6d4d657SGrant Likely		};
129c6d4d657SGrant Likely
130c6d4d657SGrant Likely		gpt@660 {	// General Purpose Timer
13105cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
132c6d4d657SGrant Likely			device_type = "gpt";
13305cbbc69SGrant Likely			cell-index = <6>;
134c6d4d657SGrant Likely			reg = <660 10>;
135c6d4d657SGrant Likely			interrupts = <1 f 0>;
1365c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
137c6d4d657SGrant Likely		};
138c6d4d657SGrant Likely
139c6d4d657SGrant Likely		gpt@670 {	// General Purpose Timer
14005cbbc69SGrant Likely			compatible = "mpc5200b-gpt\0mpc5200-gpt";
141c6d4d657SGrant Likely			device_type = "gpt";
14205cbbc69SGrant Likely			cell-index = <7>;
143c6d4d657SGrant Likely			reg = <670 10>;
144c6d4d657SGrant Likely			interrupts = <1 10 0>;
1455c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
146c6d4d657SGrant Likely		};
147c6d4d657SGrant Likely
148c6d4d657SGrant Likely		rtc@800 {	// Real time clock
14905cbbc69SGrant Likely			compatible = "mpc5200b-rtc\0mpc5200-rtc";
150c6d4d657SGrant Likely			device_type = "rtc";
151c6d4d657SGrant Likely			reg = <800 100>;
152c6d4d657SGrant Likely			interrupts = <1 5 0 1 6 0>;
1535c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
154c6d4d657SGrant Likely		};
155c6d4d657SGrant Likely
156c6d4d657SGrant Likely		mscan@900 {
157c6d4d657SGrant Likely			device_type = "mscan";
15805cbbc69SGrant Likely			compatible = "mpc5200b-mscan\0mpc5200-mscan";
15905cbbc69SGrant Likely			cell-index = <0>;
160c6d4d657SGrant Likely			interrupts = <2 11 0>;
1615c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
162c6d4d657SGrant Likely			reg = <900 80>;
163c6d4d657SGrant Likely		};
164c6d4d657SGrant Likely
165c6d4d657SGrant Likely		mscan@980 {
166c6d4d657SGrant Likely			device_type = "mscan";
16705cbbc69SGrant Likely			compatible = "mpc5200b-mscan\0mpc5200-mscan";
16805cbbc69SGrant Likely			cell-index = <1>;
1690d0f4bc7SDomen Puncer			interrupts = <2 12 0>;
1705c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
171c6d4d657SGrant Likely			reg = <980 80>;
172c6d4d657SGrant Likely		};
173c6d4d657SGrant Likely
174c6d4d657SGrant Likely		gpio@b00 {
17505cbbc69SGrant Likely			compatible = "mpc5200b-gpio\0mpc5200-gpio";
176c6d4d657SGrant Likely			reg = <b00 40>;
177c6d4d657SGrant Likely			interrupts = <1 7 0>;
1785c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
179c6d4d657SGrant Likely		};
180c6d4d657SGrant Likely
1810d0f4bc7SDomen Puncer		gpio-wkup@c00 {
18205cbbc69SGrant Likely			compatible = "mpc5200b-gpio-wkup\0mpc5200-gpio-wkup";
183c6d4d657SGrant Likely			reg = <c00 40>;
184c6d4d657SGrant Likely			interrupts = <1 8 0 0 3 0>;
1855c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
186c6d4d657SGrant Likely		};
187c6d4d657SGrant Likely
188c6d4d657SGrant Likely		pci@0d00 {
189c6d4d657SGrant Likely			#interrupt-cells = <1>;
190c6d4d657SGrant Likely			#size-cells = <2>;
191c6d4d657SGrant Likely			#address-cells = <3>;
192c6d4d657SGrant Likely			device_type = "pci";
19305cbbc69SGrant Likely			compatible = "mpc5200b-pci\0mpc5200-pci";
194c6d4d657SGrant Likely			reg = <d00 100>;
195c6d4d657SGrant Likely			interrupt-map-mask = <f800 0 0 7>;
1965c1992f8SKumar Gala			interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
1975c1992f8SKumar Gala			                 c000 0 0 2 &mpc5200_pic 1 1 3
1985c1992f8SKumar Gala			                 c000 0 0 3 &mpc5200_pic 1 2 3
1995c1992f8SKumar Gala			                 c000 0 0 4 &mpc5200_pic 1 3 3
200c6d4d657SGrant Likely
2015c1992f8SKumar Gala			                 c800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
2025c1992f8SKumar Gala			                 c800 0 0 2 &mpc5200_pic 1 2 3
2035c1992f8SKumar Gala			                 c800 0 0 3 &mpc5200_pic 1 3 3
2045c1992f8SKumar Gala			                 c800 0 0 4 &mpc5200_pic 0 0 3>;
205c6d4d657SGrant Likely			clock-frequency = <0>; // From boot loader
206c6d4d657SGrant Likely			interrupts = <2 8 0 2 9 0 2 a 0>;
2075c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
208c6d4d657SGrant Likely			bus-range = <0 0>;
209c6d4d657SGrant Likely			ranges = <42000000 0 80000000 80000000 0 20000000
210c6d4d657SGrant Likely			          02000000 0 a0000000 a0000000 0 10000000
211c6d4d657SGrant Likely			          01000000 0 00000000 b0000000 0 01000000>;
212c6d4d657SGrant Likely		};
213c6d4d657SGrant Likely
214c6d4d657SGrant Likely		spi@f00 {
215c6d4d657SGrant Likely			device_type = "spi";
21605cbbc69SGrant Likely			compatible = "mpc5200b-spi\0mpc5200-spi";
217c6d4d657SGrant Likely			reg = <f00 20>;
218c6d4d657SGrant Likely			interrupts = <2 d 0 2 e 0>;
2195c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
220c6d4d657SGrant Likely		};
221c6d4d657SGrant Likely
222c6d4d657SGrant Likely		usb@1000 {
223c6d4d657SGrant Likely			device_type = "usb-ohci-be";
22405cbbc69SGrant Likely			compatible = "mpc5200b-ohci\0mpc5200-ohci\0ohci-be";
225c6d4d657SGrant Likely			reg = <1000 ff>;
226c6d4d657SGrant Likely			interrupts = <2 6 0>;
2275c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
228c6d4d657SGrant Likely		};
229c6d4d657SGrant Likely
230c6d4d657SGrant Likely		bestcomm@1200 {
231c6d4d657SGrant Likely			device_type = "dma-controller";
23205cbbc69SGrant Likely			compatible = "mpc5200b-bestcomm\0mpc5200-bestcomm";
233c6d4d657SGrant Likely			reg = <1200 80>;
234c6d4d657SGrant Likely			interrupts = <3 0 0  3 1 0  3 2 0  3 3 0
235c6d4d657SGrant Likely			              3 4 0  3 5 0  3 6 0  3 7 0
236c6d4d657SGrant Likely			              3 8 0  3 9 0  3 a 0  3 b 0
237c6d4d657SGrant Likely			              3 c 0  3 d 0  3 e 0  3 f 0>;
2385c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
239c6d4d657SGrant Likely		};
240c6d4d657SGrant Likely
241c6d4d657SGrant Likely		xlb@1f00 {
24205cbbc69SGrant Likely			compatible = "mpc5200b-xlb\0mpc5200-xlb";
243c6d4d657SGrant Likely			reg = <1f00 100>;
244c6d4d657SGrant Likely		};
245c6d4d657SGrant Likely
246c6d4d657SGrant Likely		serial@2000 {		// PSC1
247c6d4d657SGrant Likely			device_type = "serial";
24805cbbc69SGrant Likely			compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart";
249c6d4d657SGrant Likely			port-number = <0>;  // Logical port assignment
25005cbbc69SGrant Likely			cell-index = <0>;
251c6d4d657SGrant Likely			reg = <2000 100>;
252c6d4d657SGrant Likely			interrupts = <2 1 0>;
2535c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
254c6d4d657SGrant Likely		};
255c6d4d657SGrant Likely
25605cbbc69SGrant Likely		// PSC2 in ac97 mode example
25705cbbc69SGrant Likely		//ac97@2200 {		// PSC2
25805cbbc69SGrant Likely		//	device_type = "sound";
25905cbbc69SGrant Likely		//	compatible = "mpc5200b-psc-ac97\0mpc5200-psc-ac97";
26005cbbc69SGrant Likely		//	cell-index = <1>;
26105cbbc69SGrant Likely		//	reg = <2200 100>;
26205cbbc69SGrant Likely		//	interrupts = <2 2 0>;
2635c1992f8SKumar Gala		//	interrupt-parent = <&mpc5200_pic>;
26405cbbc69SGrant Likely		//};
265c6d4d657SGrant Likely
266c6d4d657SGrant Likely		// PSC3 in CODEC mode example
26705cbbc69SGrant Likely		//i2s@2400 {		// PSC3
26805cbbc69SGrant Likely		//	device_type = "sound";
26905cbbc69SGrant Likely		//	compatible = "mpc5200b-psc-i2s"; //not 5200 compatible
27005cbbc69SGrant Likely		//	cell-index = <2>;
27105cbbc69SGrant Likely		//	reg = <2400 100>;
27205cbbc69SGrant Likely		//	interrupts = <2 3 0>;
2735c1992f8SKumar Gala		//	interrupt-parent = <&mpc5200_pic>;
27405cbbc69SGrant Likely		//};
275c6d4d657SGrant Likely
27605cbbc69SGrant Likely		// PSC4 in uart mode example
277c6d4d657SGrant Likely		//serial@2600 {		// PSC4
278c6d4d657SGrant Likely		//	device_type = "serial";
27905cbbc69SGrant Likely		//	compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart";
28005cbbc69SGrant Likely		//	cell-index = <3>;
281c6d4d657SGrant Likely		//	reg = <2600 100>;
282c6d4d657SGrant Likely		//	interrupts = <2 b 0>;
2835c1992f8SKumar Gala		//	interrupt-parent = <&mpc5200_pic>;
284c6d4d657SGrant Likely		//};
285c6d4d657SGrant Likely
28605cbbc69SGrant Likely		// PSC5 in uart mode example
287c6d4d657SGrant Likely		//serial@2800 {		// PSC5
288c6d4d657SGrant Likely		//	device_type = "serial";
28905cbbc69SGrant Likely		//	compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart";
29005cbbc69SGrant Likely		//	cell-index = <4>;
291c6d4d657SGrant Likely		//	reg = <2800 100>;
292c6d4d657SGrant Likely		//	interrupts = <2 c 0>;
2935c1992f8SKumar Gala		//	interrupt-parent = <&mpc5200_pic>;
294c6d4d657SGrant Likely		//};
295c6d4d657SGrant Likely
29605cbbc69SGrant Likely		// PSC6 in spi mode example
29705cbbc69SGrant Likely		//spi@2c00 {		// PSC6
29805cbbc69SGrant Likely		//	device_type = "spi";
29905cbbc69SGrant Likely		//	compatible = "mpc5200b-psc-spi\0mpc5200-psc-spi";
30005cbbc69SGrant Likely		//	cell-index = <5>;
30105cbbc69SGrant Likely		//	reg = <2c00 100>;
30205cbbc69SGrant Likely		//	interrupts = <2 4 0>;
3035c1992f8SKumar Gala		//	interrupt-parent = <&mpc5200_pic>;
30405cbbc69SGrant Likely		//};
305c6d4d657SGrant Likely
306c6d4d657SGrant Likely		ethernet@3000 {
307c6d4d657SGrant Likely			device_type = "network";
30805cbbc69SGrant Likely			compatible = "mpc5200b-fec\0mpc5200-fec";
309c6d4d657SGrant Likely			reg = <3000 800>;
310c6d4d657SGrant Likely			mac-address = [ 02 03 04 05 06 07 ]; // Bad!
311c6d4d657SGrant Likely			interrupts = <2 5 0>;
3125c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
313c6d4d657SGrant Likely		};
314c6d4d657SGrant Likely
315c6d4d657SGrant Likely		ata@3a00 {
316c6d4d657SGrant Likely			device_type = "ata";
31705cbbc69SGrant Likely			compatible = "mpc5200b-ata\0mpc5200-ata";
318c6d4d657SGrant Likely			reg = <3a00 100>;
319c6d4d657SGrant Likely			interrupts = <2 7 0>;
3205c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
321c6d4d657SGrant Likely		};
322c6d4d657SGrant Likely
323c6d4d657SGrant Likely		i2c@3d00 {
324c6d4d657SGrant Likely			device_type = "i2c";
3255cae84c9SDomen Puncer			compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c";
32605cbbc69SGrant Likely			cell-index = <0>;
327c6d4d657SGrant Likely			reg = <3d00 40>;
328c6d4d657SGrant Likely			interrupts = <2 f 0>;
3295c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
3305cae84c9SDomen Puncer			fsl5200-clocking;
331c6d4d657SGrant Likely		};
332c6d4d657SGrant Likely
333c6d4d657SGrant Likely		i2c@3d40 {
334c6d4d657SGrant Likely			device_type = "i2c";
3355cae84c9SDomen Puncer			compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c";
33605cbbc69SGrant Likely			cell-index = <1>;
337c6d4d657SGrant Likely			reg = <3d40 40>;
338c6d4d657SGrant Likely			interrupts = <2 10 0>;
3395c1992f8SKumar Gala			interrupt-parent = <&mpc5200_pic>;
3405cae84c9SDomen Puncer			fsl5200-clocking;
341c6d4d657SGrant Likely		};
342c6d4d657SGrant Likely		sram@8000 {
343c6d4d657SGrant Likely			device_type = "sram";
34405cbbc69SGrant Likely			compatible = "mpc5200b-sram\0mpc5200-sram\0sram";
345c6d4d657SGrant Likely			reg = <8000 4000>;
346c6d4d657SGrant Likely		};
347c6d4d657SGrant Likely	};
348c6d4d657SGrant Likely};
349