1c6d4d657SGrant Likely/*
2c6d4d657SGrant Likely * Lite5200 board Device Tree Source
3c6d4d657SGrant Likely *
4c6d4d657SGrant Likely * Copyright 2006 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
13c6d4d657SGrant Likely/ {
14c6d4d657SGrant Likely	model = "Lite5200";
15c6d4d657SGrant Likely	compatible = "lite5200\0lite52xx\0mpc5200\0mpc52xx";
16c6d4d657SGrant Likely	#address-cells = <1>;
17c6d4d657SGrant Likely	#size-cells = <1>;
18c6d4d657SGrant Likely
19c6d4d657SGrant Likely	cpus {
20c6d4d657SGrant Likely		#cpus = <1>;
21c6d4d657SGrant Likely		#address-cells = <1>;
22c6d4d657SGrant Likely		#size-cells = <0>;
23c6d4d657SGrant Likely
24c6d4d657SGrant Likely		PowerPC,5200@0 {
25c6d4d657SGrant Likely			device_type = "cpu";
26c6d4d657SGrant Likely			reg = <0>;
27c6d4d657SGrant Likely			d-cache-line-size = <20>;
28c6d4d657SGrant Likely			i-cache-line-size = <20>;
29c6d4d657SGrant Likely			d-cache-size = <4000>;		// L1, 16K
30c6d4d657SGrant Likely			i-cache-size = <4000>;		// L1, 16K
31c6d4d657SGrant Likely			timebase-frequency = <0>;	// from bootloader
32c6d4d657SGrant Likely			bus-frequency = <0>;		// from bootloader
33c6d4d657SGrant Likely			clock-frequency = <0>;		// from bootloader
34c6d4d657SGrant Likely			32-bit;
35c6d4d657SGrant Likely		};
36c6d4d657SGrant Likely	};
37c6d4d657SGrant Likely
38c6d4d657SGrant Likely	memory {
39c6d4d657SGrant Likely		device_type = "memory";
40c6d4d657SGrant Likely		reg = <00000000 04000000>;	// 64MB
41c6d4d657SGrant Likely	};
42c6d4d657SGrant Likely
43c6d4d657SGrant Likely	soc5200@f0000000 {
44c6d4d657SGrant Likely		#interrupt-cells = <3>;
45c6d4d657SGrant Likely		device_type = "soc";
46c6d4d657SGrant Likely		ranges = <0 f0000000 f0010000>;
47c6d4d657SGrant Likely		reg = <f0000000 00010000>;
48c6d4d657SGrant Likely		bus-frequency = <0>;		// from bootloader
49c6d4d657SGrant Likely
50c6d4d657SGrant Likely		cdm@200 {
51c6d4d657SGrant Likely			compatible = "mpc5200-cdm\0mpc52xx-cdm";
52c6d4d657SGrant Likely			reg = <200 38>;
53c6d4d657SGrant Likely		};
54c6d4d657SGrant Likely
55c6d4d657SGrant Likely		pic@500 {
56c6d4d657SGrant Likely			// 5200 interrupts are encoded into two levels;
57c6d4d657SGrant Likely			linux,phandle = <500>;
58c6d4d657SGrant Likely			interrupt-controller;
59c6d4d657SGrant Likely			#interrupt-cells = <3>;
60c6d4d657SGrant Likely			device_type = "interrupt-controller";
61c6d4d657SGrant Likely			compatible = "mpc5200-pic\0mpc52xx-pic";
62c6d4d657SGrant Likely			reg = <500 80>;
63c6d4d657SGrant Likely			built-in;
64c6d4d657SGrant Likely		};
65c6d4d657SGrant Likely
66c6d4d657SGrant Likely		gpt@600 {	// General Purpose Timer
67c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
68c6d4d657SGrant Likely			device_type = "gpt";
69c6d4d657SGrant Likely			reg = <600 10>;
70c6d4d657SGrant Likely			interrupts = <1 9 0>;
71c6d4d657SGrant Likely			interrupt-parent = <500>;
72c6d4d657SGrant Likely		};
73c6d4d657SGrant Likely
74c6d4d657SGrant Likely		gpt@610 {	// General Purpose Timer
75c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
76c6d4d657SGrant Likely			device_type = "gpt";
77c6d4d657SGrant Likely			reg = <610 10>;
78c6d4d657SGrant Likely			interrupts = <1 a 0>;
79c6d4d657SGrant Likely			interrupt-parent = <500>;
80c6d4d657SGrant Likely		};
81c6d4d657SGrant Likely
82c6d4d657SGrant Likely		gpt@620 {	// General Purpose Timer
83c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
84c6d4d657SGrant Likely			device_type = "gpt";
85c6d4d657SGrant Likely			reg = <620 10>;
86c6d4d657SGrant Likely			interrupts = <1 b 0>;
87c6d4d657SGrant Likely			interrupt-parent = <500>;
88c6d4d657SGrant Likely		};
89c6d4d657SGrant Likely
90c6d4d657SGrant Likely		gpt@630 {	// General Purpose Timer
91c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
92c6d4d657SGrant Likely			device_type = "gpt";
93c6d4d657SGrant Likely			reg = <630 10>;
94c6d4d657SGrant Likely			interrupts = <1 c 0>;
95c6d4d657SGrant Likely			interrupt-parent = <500>;
96c6d4d657SGrant Likely		};
97c6d4d657SGrant Likely
98c6d4d657SGrant Likely		gpt@640 {	// General Purpose Timer
99c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
100c6d4d657SGrant Likely			device_type = "gpt";
101c6d4d657SGrant Likely			reg = <640 10>;
102c6d4d657SGrant Likely			interrupts = <1 d 0>;
103c6d4d657SGrant Likely			interrupt-parent = <500>;
104c6d4d657SGrant Likely		};
105c6d4d657SGrant Likely
106c6d4d657SGrant Likely		gpt@650 {	// General Purpose Timer
107c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
108c6d4d657SGrant Likely			device_type = "gpt";
109c6d4d657SGrant Likely			reg = <650 10>;
110c6d4d657SGrant Likely			interrupts = <1 e 0>;
111c6d4d657SGrant Likely			interrupt-parent = <500>;
112c6d4d657SGrant Likely		};
113c6d4d657SGrant Likely
114c6d4d657SGrant Likely		gpt@660 {	// General Purpose Timer
115c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
116c6d4d657SGrant Likely			device_type = "gpt";
117c6d4d657SGrant Likely			reg = <660 10>;
118c6d4d657SGrant Likely			interrupts = <1 f 0>;
119c6d4d657SGrant Likely			interrupt-parent = <500>;
120c6d4d657SGrant Likely		};
121c6d4d657SGrant Likely
122c6d4d657SGrant Likely		gpt@670 {	// General Purpose Timer
123c6d4d657SGrant Likely			compatible = "mpc5200-gpt\0mpc52xx-gpt";
124c6d4d657SGrant Likely			device_type = "gpt";
125c6d4d657SGrant Likely			reg = <670 10>;
126c6d4d657SGrant Likely			interrupts = <1 10 0>;
127c6d4d657SGrant Likely			interrupt-parent = <500>;
128c6d4d657SGrant Likely		};
129c6d4d657SGrant Likely
130c6d4d657SGrant Likely		rtc@800 {	// Real time clock
131c6d4d657SGrant Likely			compatible = "mpc5200-rtc\0mpc52xx-rtc";
132c6d4d657SGrant Likely			device_type = "rtc";
133c6d4d657SGrant Likely			reg = <800 100>;
134c6d4d657SGrant Likely			interrupts = <1 5 0 1 6 0>;
135c6d4d657SGrant Likely			interrupt-parent = <500>;
136c6d4d657SGrant Likely		};
137c6d4d657SGrant Likely
138c6d4d657SGrant Likely		mscan@900 {
139c6d4d657SGrant Likely			device_type = "mscan";
140c6d4d657SGrant Likely			compatible = "mpc5200-mscan\0mpc52xx-mscan";
141c6d4d657SGrant Likely			interrupts = <2 11 0>;
142c6d4d657SGrant Likely			interrupt-parent = <500>;
143c6d4d657SGrant Likely			reg = <900 80>;
144c6d4d657SGrant Likely		};
145c6d4d657SGrant Likely
146c6d4d657SGrant Likely		mscan@980 {
147c6d4d657SGrant Likely			device_type = "mscan";
148c6d4d657SGrant Likely			compatible = "mpc5200-mscan\0mpc52xx-mscan";
149c6d4d657SGrant Likely			interrupts = <1 12 0>;
150c6d4d657SGrant Likely			interrupt-parent = <500>;
151c6d4d657SGrant Likely			reg = <980 80>;
152c6d4d657SGrant Likely		};
153c6d4d657SGrant Likely
154c6d4d657SGrant Likely		gpio@b00 {
155c6d4d657SGrant Likely			compatible = "mpc5200-gpio\0mpc52xx-gpio";
156c6d4d657SGrant Likely			reg = <b00 40>;
157c6d4d657SGrant Likely			interrupts = <1 7 0>;
158c6d4d657SGrant Likely			interrupt-parent = <500>;
159c6d4d657SGrant Likely		};
160c6d4d657SGrant Likely
161c6d4d657SGrant Likely		gpio-wkup@b00 {
162c6d4d657SGrant Likely			compatible = "mpc5200-gpio-wkup\0mpc52xx-gpio-wkup";
163c6d4d657SGrant Likely			reg = <c00 40>;
164c6d4d657SGrant Likely			interrupts = <1 8 0 0 3 0>;
165c6d4d657SGrant Likely			interrupt-parent = <500>;
166c6d4d657SGrant Likely		};
167c6d4d657SGrant Likely
168c6d4d657SGrant Likely		pci@0d00 {
169c6d4d657SGrant Likely			#interrupt-cells = <1>;
170c6d4d657SGrant Likely			#size-cells = <2>;
171c6d4d657SGrant Likely			#address-cells = <3>;
172c6d4d657SGrant Likely			device_type = "pci";
173c6d4d657SGrant Likely			compatible = "mpc5200-pci\0mpc52xx-pci";
174c6d4d657SGrant Likely			reg = <d00 100>;
175c6d4d657SGrant Likely			interrupt-map-mask = <f800 0 0 7>;
176c6d4d657SGrant Likely			interrupt-map = <c000 0 0 1 500 0 0 3
177c6d4d657SGrant Likely			                 c000 0 0 2 500 0 0 3
178c6d4d657SGrant Likely			                 c000 0 0 3 500 0 0 3
179c6d4d657SGrant Likely			                 c000 0 0 4 500 0 0 3>;
180c6d4d657SGrant Likely			clock-frequency = <0>; // From boot loader
181c6d4d657SGrant Likely			interrupts = <2 8 0 2 9 0 2 a 0>;
182c6d4d657SGrant Likely			interrupt-parent = <500>;
183c6d4d657SGrant Likely			bus-range = <0 0>;
184c6d4d657SGrant Likely			ranges = <42000000 0 80000000 80000000 0 20000000
185c6d4d657SGrant Likely			          02000000 0 a0000000 a0000000 0 10000000
186c6d4d657SGrant Likely			          01000000 0 00000000 b0000000 0 01000000>;
187c6d4d657SGrant Likely		};
188c6d4d657SGrant Likely
189c6d4d657SGrant Likely		spi@f00 {
190c6d4d657SGrant Likely			device_type = "spi";
191c6d4d657SGrant Likely			compatible = "mpc5200-spi\0mpc52xx-spi";
192c6d4d657SGrant Likely			reg = <f00 20>;
193c6d4d657SGrant Likely			interrupts = <2 d 0 2 e 0>;
194c6d4d657SGrant Likely			interrupt-parent = <500>;
195c6d4d657SGrant Likely		};
196c6d4d657SGrant Likely
197c6d4d657SGrant Likely		usb@1000 {
198c6d4d657SGrant Likely			device_type = "usb-ohci-be";
199c6d4d657SGrant Likely			compatible = "mpc5200-ohci\0mpc52xx-ohci\0ohci-be";
200c6d4d657SGrant Likely			reg = <1000 ff>;
201c6d4d657SGrant Likely			interrupts = <2 6 0>;
202c6d4d657SGrant Likely			interrupt-parent = <500>;
203c6d4d657SGrant Likely		};
204c6d4d657SGrant Likely
205c6d4d657SGrant Likely		bestcomm@1200 {
206c6d4d657SGrant Likely			device_type = "dma-controller";
207c6d4d657SGrant Likely			compatible = "mpc5200-bestcomm\0mpc52xx-bestcomm";
208c6d4d657SGrant Likely			reg = <1200 80>;
209c6d4d657SGrant Likely			interrupts = <3 0 0  3 1 0  3 2 0  3 3 0
210c6d4d657SGrant Likely			              3 4 0  3 5 0  3 6 0  3 7 0
211c6d4d657SGrant Likely			              3 8 0  3 9 0  3 a 0  3 b 0
212c6d4d657SGrant Likely			              3 c 0  3 d 0  3 e 0  3 f 0>;
213c6d4d657SGrant Likely			interrupt-parent = <500>;
214c6d4d657SGrant Likely		};
215c6d4d657SGrant Likely
216c6d4d657SGrant Likely		xlb@1f00 {
217c6d4d657SGrant Likely			compatible = "mpc5200-xlb\0mpc52xx-xlb";
218c6d4d657SGrant Likely			reg = <1f00 100>;
219c6d4d657SGrant Likely		};
220c6d4d657SGrant Likely
221c6d4d657SGrant Likely		serial@2000 {		// PSC1
222c6d4d657SGrant Likely			device_type = "serial";
223c6d4d657SGrant Likely			compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart";
224c6d4d657SGrant Likely			port-number = <0>;  // Logical port assignment
225c6d4d657SGrant Likely			reg = <2000 100>;
226c6d4d657SGrant Likely			interrupts = <2 1 0>;
227c6d4d657SGrant Likely			interrupt-parent = <500>;
228c6d4d657SGrant Likely		};
229c6d4d657SGrant Likely
230c6d4d657SGrant Likely		// PSC2 in spi mode example
231c6d4d657SGrant Likely		spi@2200 {		// PSC2
232c6d4d657SGrant Likely			device_type = "spi";
233c6d4d657SGrant Likely			compatible = "mpc5200-psc-spi\0mpc52xx-psc-spi";
234c6d4d657SGrant Likely			reg = <2200 100>;
235c6d4d657SGrant Likely			interrupts = <2 2 0>;
236c6d4d657SGrant Likely			interrupt-parent = <500>;
237c6d4d657SGrant Likely		};
238c6d4d657SGrant Likely
239c6d4d657SGrant Likely		// PSC3 in CODEC mode example
240c6d4d657SGrant Likely		i2s@2400 {		// PSC3
241a5b6ad66SGrant Likely			device_type = "sound";
242c6d4d657SGrant Likely			compatible = "mpc5200-psc-i2s\0mpc52xx-psc-i2s";
243c6d4d657SGrant Likely			reg = <2400 100>;
244c6d4d657SGrant Likely			interrupts = <2 3 0>;
245c6d4d657SGrant Likely			interrupt-parent = <500>;
246c6d4d657SGrant Likely		};
247c6d4d657SGrant Likely
248c6d4d657SGrant Likely		// PSC4 unconfigured
249c6d4d657SGrant Likely		//serial@2600 {		// PSC4
250c6d4d657SGrant Likely		//	device_type = "serial";
251c6d4d657SGrant Likely		//	compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart";
252c6d4d657SGrant Likely		//	reg = <2600 100>;
253c6d4d657SGrant Likely		//	interrupts = <2 b 0>;
254c6d4d657SGrant Likely		//	interrupt-parent = <500>;
255c6d4d657SGrant Likely		//};
256c6d4d657SGrant Likely
257c6d4d657SGrant Likely		// PSC5 unconfigured
258c6d4d657SGrant Likely		//serial@2800 {		// PSC5
259c6d4d657SGrant Likely		//	device_type = "serial";
260c6d4d657SGrant Likely		//	compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart";
261c6d4d657SGrant Likely		//	reg = <2800 100>;
262c6d4d657SGrant Likely		//	interrupts = <2 c 0>;
263c6d4d657SGrant Likely		//	interrupt-parent = <500>;
264c6d4d657SGrant Likely		//};
265c6d4d657SGrant Likely
266c6d4d657SGrant Likely		// PSC6 in AC97 mode example
267c6d4d657SGrant Likely		ac97@2c00 {		// PSC6
268a5b6ad66SGrant Likely			device_type = "sound";
269c6d4d657SGrant Likely			compatible = "mpc5200-psc-ac97\0mpc52xx-psc-ac97";
270c6d4d657SGrant Likely			reg = <2c00 100>;
271c6d4d657SGrant Likely			interrupts = <2 4 0>;
272c6d4d657SGrant Likely			interrupt-parent = <500>;
273c6d4d657SGrant Likely		};
274c6d4d657SGrant Likely
275c6d4d657SGrant Likely		ethernet@3000 {
276c6d4d657SGrant Likely			device_type = "network";
277c6d4d657SGrant Likely			compatible = "mpc5200-fec\0mpc52xx-fec";
278c6d4d657SGrant Likely			reg = <3000 800>;
279c6d4d657SGrant Likely			mac-address = [ 02 03 04 05 06 07 ]; // Bad!
280c6d4d657SGrant Likely			interrupts = <2 5 0>;
281c6d4d657SGrant Likely			interrupt-parent = <500>;
282c6d4d657SGrant Likely		};
283c6d4d657SGrant Likely
284c6d4d657SGrant Likely		ata@3a00 {
285c6d4d657SGrant Likely			device_type = "ata";
286c6d4d657SGrant Likely			compatible = "mpc5200-ata\0mpc52xx-ata";
287c6d4d657SGrant Likely			reg = <3a00 100>;
288c6d4d657SGrant Likely			interrupts = <2 7 0>;
289c6d4d657SGrant Likely			interrupt-parent = <500>;
290c6d4d657SGrant Likely		};
291c6d4d657SGrant Likely
292c6d4d657SGrant Likely		i2c@3d00 {
293c6d4d657SGrant Likely			device_type = "i2c";
294c6d4d657SGrant Likely			compatible = "mpc5200-i2c\0mpc52xx-i2c";
295c6d4d657SGrant Likely			reg = <3d00 40>;
296c6d4d657SGrant Likely			interrupts = <2 f 0>;
297c6d4d657SGrant Likely			interrupt-parent = <500>;
298c6d4d657SGrant Likely		};
299c6d4d657SGrant Likely
300c6d4d657SGrant Likely		i2c@3d40 {
301c6d4d657SGrant Likely			device_type = "i2c";
302c6d4d657SGrant Likely			compatible = "mpc5200-i2c\0mpc52xx-i2c";
303c6d4d657SGrant Likely			reg = <3d40 40>;
304c6d4d657SGrant Likely			interrupts = <2 10 0>;
305c6d4d657SGrant Likely			interrupt-parent = <500>;
306c6d4d657SGrant Likely		};
307c6d4d657SGrant Likely		sram@8000 {
308c6d4d657SGrant Likely			device_type = "sram";
309c6d4d657SGrant Likely			compatible = "mpc5200-sram\0mpc52xx-sram\0sram";
310c6d4d657SGrant Likely			reg = <8000 4000>;
311c6d4d657SGrant Likely		};
312c6d4d657SGrant Likely	};
313c6d4d657SGrant Likely};
314