1b359049fSKim Phillips/*
2b359049fSKim Phillips * MPC8313E RDB Device Tree Source
3b359049fSKim Phillips *
4b359049fSKim Phillips * Copyright 2005, 2006, 2007 Freescale Semiconductor Inc.
5b359049fSKim Phillips *
6b359049fSKim Phillips * This program is free software; you can redistribute  it and/or modify it
7b359049fSKim Phillips * under  the terms of  the GNU General  Public License as published by the
8b359049fSKim Phillips * Free Software Foundation;  either version 2 of the  License, or (at your
9b359049fSKim Phillips * option) any later version.
10b359049fSKim Phillips */
11b359049fSKim Phillips
12cda13dd1SPaul Gortmaker/dts-v1/;
13cda13dd1SPaul Gortmaker
14b359049fSKim Phillips/ {
15b359049fSKim Phillips	model = "MPC8313ERDB";
16d71a1dc6SKumar Gala	compatible = "MPC8313ERDB", "MPC831xRDB", "MPC83xxRDB";
17b359049fSKim Phillips	#address-cells = <1>;
18b359049fSKim Phillips	#size-cells = <1>;
19b359049fSKim Phillips
20ea082fa9SKumar Gala	aliases {
21ea082fa9SKumar Gala		ethernet0 = &enet0;
22ea082fa9SKumar Gala		ethernet1 = &enet1;
23ea082fa9SKumar Gala		serial0 = &serial0;
24ea082fa9SKumar Gala		serial1 = &serial1;
25ea082fa9SKumar Gala		pci0 = &pci0;
26ea082fa9SKumar Gala	};
27ea082fa9SKumar Gala
28b359049fSKim Phillips	cpus {
29b359049fSKim Phillips		#address-cells = <1>;
30b359049fSKim Phillips		#size-cells = <0>;
31b359049fSKim Phillips
32b359049fSKim Phillips		PowerPC,8313@0 {
33b359049fSKim Phillips			device_type = "cpu";
34cda13dd1SPaul Gortmaker			reg = <0x0>;
35cda13dd1SPaul Gortmaker			d-cache-line-size = <32>;
36cda13dd1SPaul Gortmaker			i-cache-line-size = <32>;
37cda13dd1SPaul Gortmaker			d-cache-size = <16384>;
38cda13dd1SPaul Gortmaker			i-cache-size = <16384>;
39b359049fSKim Phillips			timebase-frequency = <0>;	// from bootloader
40b359049fSKim Phillips			bus-frequency = <0>;		// from bootloader
41b359049fSKim Phillips			clock-frequency = <0>;		// from bootloader
42b359049fSKim Phillips		};
43b359049fSKim Phillips	};
44b359049fSKim Phillips
45b359049fSKim Phillips	memory {
46b359049fSKim Phillips		device_type = "memory";
47cda13dd1SPaul Gortmaker		reg = <0x00000000 0x08000000>;	// 128MB at 0
48b359049fSKim Phillips	};
49b359049fSKim Phillips
50ff5ac760SScott Wood	localbus@e0005000 {
51ff5ac760SScott Wood		#address-cells = <2>;
52ff5ac760SScott Wood		#size-cells = <1>;
53ff5ac760SScott Wood		compatible = "fsl,mpc8313-elbc", "fsl,elbc", "simple-bus";
54cda13dd1SPaul Gortmaker		reg = <0xe0005000 0x1000>;
55cda13dd1SPaul Gortmaker		interrupts = <77 0x8>;
56ff5ac760SScott Wood		interrupt-parent = <&ipic>;
57ff5ac760SScott Wood
58ff5ac760SScott Wood		// CS0 and CS1 are swapped when
59ff5ac760SScott Wood		// booting from nand, but the
60ff5ac760SScott Wood		// addresses are the same.
61cda13dd1SPaul Gortmaker		ranges = <0x0 0x0 0xfe000000 0x00800000
62cda13dd1SPaul Gortmaker		          0x1 0x0 0xe2800000 0x00008000
63cda13dd1SPaul Gortmaker		          0x2 0x0 0xf0000000 0x00020000
64cda13dd1SPaul Gortmaker		          0x3 0x0 0xfa000000 0x00008000>;
65ff5ac760SScott Wood
6612600e48SScott Wood		flash@0,0 {
6712600e48SScott Wood			#address-cells = <1>;
6812600e48SScott Wood			#size-cells = <1>;
6912600e48SScott Wood			compatible = "cfi-flash";
70cda13dd1SPaul Gortmaker			reg = <0x0 0x0 0x800000>;
7112600e48SScott Wood			bank-width = <2>;
7212600e48SScott Wood			device-width = <1>;
7312600e48SScott Wood		};
7412600e48SScott Wood
75ff5ac760SScott Wood		nand@1,0 {
76ff5ac760SScott Wood			#address-cells = <1>;
77ff5ac760SScott Wood			#size-cells = <1>;
78ff5ac760SScott Wood			compatible = "fsl,mpc8313-fcm-nand",
79ff5ac760SScott Wood			             "fsl,elbc-fcm-nand";
80cda13dd1SPaul Gortmaker			reg = <0x1 0x0 0x2000>;
81ff5ac760SScott Wood
82ff5ac760SScott Wood			u-boot@0 {
83cda13dd1SPaul Gortmaker				reg = <0x0 0x100000>;
84ff5ac760SScott Wood				read-only;
85ff5ac760SScott Wood			};
86ff5ac760SScott Wood
87ff5ac760SScott Wood			kernel@100000 {
88cda13dd1SPaul Gortmaker				reg = <0x100000 0x300000>;
89ff5ac760SScott Wood			};
90ff5ac760SScott Wood
91ff5ac760SScott Wood			fs@400000 {
92cda13dd1SPaul Gortmaker				reg = <0x400000 0x1c00000>;
93ff5ac760SScott Wood			};
94ff5ac760SScott Wood		};
95ff5ac760SScott Wood	};
96ff5ac760SScott Wood
97b359049fSKim Phillips	soc8313@e0000000 {
98b359049fSKim Phillips		#address-cells = <1>;
99b359049fSKim Phillips		#size-cells = <1>;
100b359049fSKim Phillips		device_type = "soc";
101ff5ac760SScott Wood		compatible = "simple-bus";
102cda13dd1SPaul Gortmaker		ranges = <0x0 0xe0000000 0x00100000>;
103cda13dd1SPaul Gortmaker		reg = <0xe0000000 0x00000200>;
104b359049fSKim Phillips		bus-frequency = <0>;
105b359049fSKim Phillips
106b359049fSKim Phillips		wdt@200 {
107b359049fSKim Phillips			device_type = "watchdog";
108b359049fSKim Phillips			compatible = "mpc83xx_wdt";
109cda13dd1SPaul Gortmaker			reg = <0x200 0x100>;
110b359049fSKim Phillips		};
111b359049fSKim Phillips
112b359049fSKim Phillips		i2c@3000 {
113ec9686c4SKumar Gala			#address-cells = <1>;
114ec9686c4SKumar Gala			#size-cells = <0>;
115ec9686c4SKumar Gala			cell-index = <0>;
116b359049fSKim Phillips			compatible = "fsl-i2c";
117cda13dd1SPaul Gortmaker			reg = <0x3000 0x100>;
118cda13dd1SPaul Gortmaker			interrupts = <14 0x8>;
119d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
120b359049fSKim Phillips			dfsrr;
1215cfade18SKim Phillips			rtc@68 {
1225cfade18SKim Phillips				compatible = "dallas,ds1339";
1235cfade18SKim Phillips				reg = <0x68>;
1245cfade18SKim Phillips			};
125b359049fSKim Phillips		};
126b359049fSKim Phillips
127b359049fSKim Phillips		i2c@3100 {
128ec9686c4SKumar Gala			#address-cells = <1>;
129ec9686c4SKumar Gala			#size-cells = <0>;
130ec9686c4SKumar Gala			cell-index = <1>;
131b359049fSKim Phillips			compatible = "fsl-i2c";
132cda13dd1SPaul Gortmaker			reg = <0x3100 0x100>;
133cda13dd1SPaul Gortmaker			interrupts = <15 0x8>;
134d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
135b359049fSKim Phillips			dfsrr;
136b359049fSKim Phillips		};
137b359049fSKim Phillips
138b359049fSKim Phillips		spi@7000 {
139f3a2b29dSAnton Vorontsov			cell-index = <0>;
140f3a2b29dSAnton Vorontsov			compatible = "fsl,spi";
141cda13dd1SPaul Gortmaker			reg = <0x7000 0x1000>;
142cda13dd1SPaul Gortmaker			interrupts = <16 0x8>;
143d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
14433799e33SPeter Korsgaard			mode = "cpu";
145b359049fSKim Phillips		};
146b359049fSKim Phillips
147b359049fSKim Phillips		/* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
148b359049fSKim Phillips		usb@23000 {
149b359049fSKim Phillips			compatible = "fsl-usb2-dr";
150cda13dd1SPaul Gortmaker			reg = <0x23000 0x1000>;
151b359049fSKim Phillips			#address-cells = <1>;
152b359049fSKim Phillips			#size-cells = <0>;
153d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
154cda13dd1SPaul Gortmaker			interrupts = <38 0x8>;
155b359049fSKim Phillips			phy_type = "utmi_wide";
156b359049fSKim Phillips		};
157b359049fSKim Phillips
158b359049fSKim Phillips		mdio@24520 {
159b359049fSKim Phillips			#address-cells = <1>;
160b359049fSKim Phillips			#size-cells = <0>;
161e77b28ebSKumar Gala			compatible = "fsl,gianfar-mdio";
162cda13dd1SPaul Gortmaker			reg = <0x24520 0x20>;
163d71a1dc6SKumar Gala			phy1: ethernet-phy@1 {
164d71a1dc6SKumar Gala				interrupt-parent = <&ipic>;
165cda13dd1SPaul Gortmaker				interrupts = <19 0x8>;
166cda13dd1SPaul Gortmaker				reg = <0x1>;
167b359049fSKim Phillips				device_type = "ethernet-phy";
168b359049fSKim Phillips			};
169d71a1dc6SKumar Gala			phy4: ethernet-phy@4 {
170d71a1dc6SKumar Gala				interrupt-parent = <&ipic>;
171cda13dd1SPaul Gortmaker				interrupts = <20 0x8>;
172cda13dd1SPaul Gortmaker				reg = <0x4>;
173b359049fSKim Phillips				device_type = "ethernet-phy";
174b359049fSKim Phillips			};
175b359049fSKim Phillips		};
176b359049fSKim Phillips
177e77b28ebSKumar Gala		enet0: ethernet@24000 {
178e77b28ebSKumar Gala			cell-index = <0>;
179b359049fSKim Phillips			device_type = "network";
180b359049fSKim Phillips			model = "eTSEC";
181b359049fSKim Phillips			compatible = "gianfar";
182cda13dd1SPaul Gortmaker			reg = <0x24000 0x1000>;
183b359049fSKim Phillips			local-mac-address = [ 00 00 00 00 00 00 ];
184cda13dd1SPaul Gortmaker			interrupts = <37 0x8 36 0x8 35 0x8>;
185d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
186d71a1dc6SKumar Gala			phy-handle = < &phy1 >;
187b359049fSKim Phillips		};
188b359049fSKim Phillips
189e77b28ebSKumar Gala		enet1: ethernet@25000 {
190e77b28ebSKumar Gala			cell-index = <1>;
191b359049fSKim Phillips			device_type = "network";
192b359049fSKim Phillips			model = "eTSEC";
193b359049fSKim Phillips			compatible = "gianfar";
194cda13dd1SPaul Gortmaker			reg = <0x25000 0x1000>;
195b359049fSKim Phillips			local-mac-address = [ 00 00 00 00 00 00 ];
196cda13dd1SPaul Gortmaker			interrupts = <34 0x8 33 0x8 32 0x8>;
197d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
198d71a1dc6SKumar Gala			phy-handle = < &phy4 >;
199b359049fSKim Phillips		};
200b359049fSKim Phillips
201ea082fa9SKumar Gala		serial0: serial@4500 {
202ea082fa9SKumar Gala			cell-index = <0>;
203b359049fSKim Phillips			device_type = "serial";
204b359049fSKim Phillips			compatible = "ns16550";
205cda13dd1SPaul Gortmaker			reg = <0x4500 0x100>;
206b359049fSKim Phillips			clock-frequency = <0>;
207cda13dd1SPaul Gortmaker			interrupts = <9 0x8>;
208d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
209b359049fSKim Phillips		};
210b359049fSKim Phillips
211ea082fa9SKumar Gala		serial1: serial@4600 {
212ea082fa9SKumar Gala			cell-index = <1>;
213b359049fSKim Phillips			device_type = "serial";
214b359049fSKim Phillips			compatible = "ns16550";
215cda13dd1SPaul Gortmaker			reg = <0x4600 0x100>;
216b359049fSKim Phillips			clock-frequency = <0>;
217cda13dd1SPaul Gortmaker			interrupts = <10 0x8>;
218d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
219b359049fSKim Phillips		};
220b359049fSKim Phillips
221b359049fSKim Phillips		crypto@30000 {
222b359049fSKim Phillips			device_type = "crypto";
223b359049fSKim Phillips			model = "SEC2";
224b359049fSKim Phillips			compatible = "talitos";
225cda13dd1SPaul Gortmaker			reg = <0x30000 0x7000>;
226cda13dd1SPaul Gortmaker			interrupts = <11 0x8>;
227d71a1dc6SKumar Gala			interrupt-parent = <&ipic>;
228b359049fSKim Phillips			/* Rev. 2.2 */
229b359049fSKim Phillips			num-channels = <1>;
230cda13dd1SPaul Gortmaker			channel-fifo-len = <24>;
231cda13dd1SPaul Gortmaker			exec-units-mask = <0x0000004c>;
232cda13dd1SPaul Gortmaker			descriptor-types-mask = <0x0122003f>;
233b359049fSKim Phillips		};
234b359049fSKim Phillips
235b359049fSKim Phillips		/* IPIC
236b359049fSKim Phillips		 * interrupts cell = <intr #, sense>
237b359049fSKim Phillips		 * sense values match linux IORESOURCE_IRQ_* defines:
238b359049fSKim Phillips		 * sense == 8: Level, low assertion
239b359049fSKim Phillips		 * sense == 2: Edge, high-to-low change
240b359049fSKim Phillips		 */
241d71a1dc6SKumar Gala		ipic: pic@700 {
242b359049fSKim Phillips			interrupt-controller;
243b359049fSKim Phillips			#address-cells = <0>;
244b359049fSKim Phillips			#interrupt-cells = <2>;
245cda13dd1SPaul Gortmaker			reg = <0x700 0x100>;
246b359049fSKim Phillips			device_type = "ipic";
247b359049fSKim Phillips		};
248b359049fSKim Phillips	};
2491b3c5cdaSKumar Gala
250ea082fa9SKumar Gala	pci0: pci@e0008500 {
251ea082fa9SKumar Gala		cell-index = <1>;
252cda13dd1SPaul Gortmaker		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
2531b3c5cdaSKumar Gala		interrupt-map = <
2541b3c5cdaSKumar Gala
2551b3c5cdaSKumar Gala				/* IDSEL 0x0E -mini PCI */
256cda13dd1SPaul Gortmaker				 0x7000 0x0 0x0 0x1 &ipic 18 0x8
257cda13dd1SPaul Gortmaker				 0x7000 0x0 0x0 0x2 &ipic 18 0x8
258cda13dd1SPaul Gortmaker				 0x7000 0x0 0x0 0x3 &ipic 18 0x8
259cda13dd1SPaul Gortmaker				 0x7000 0x0 0x0 0x4 &ipic 18 0x8
2601b3c5cdaSKumar Gala
2611b3c5cdaSKumar Gala				/* IDSEL 0x0F - PCI slot */
262cda13dd1SPaul Gortmaker				 0x7800 0x0 0x0 0x1 &ipic 17 0x8
263cda13dd1SPaul Gortmaker				 0x7800 0x0 0x0 0x2 &ipic 18 0x8
264cda13dd1SPaul Gortmaker				 0x7800 0x0 0x0 0x3 &ipic 17 0x8
265cda13dd1SPaul Gortmaker				 0x7800 0x0 0x0 0x4 &ipic 18 0x8>;
2661b3c5cdaSKumar Gala		interrupt-parent = <&ipic>;
267cda13dd1SPaul Gortmaker		interrupts = <66 0x8>;
268cda13dd1SPaul Gortmaker		bus-range = <0x0 0x0>;
269cda13dd1SPaul Gortmaker		ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
270cda13dd1SPaul Gortmaker			  0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
271cda13dd1SPaul Gortmaker			  0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
272cda13dd1SPaul Gortmaker		clock-frequency = <66666666>;
2731b3c5cdaSKumar Gala		#interrupt-cells = <1>;
2741b3c5cdaSKumar Gala		#size-cells = <2>;
2751b3c5cdaSKumar Gala		#address-cells = <3>;
276cda13dd1SPaul Gortmaker		reg = <0xe0008500 0x100>;
2771b3c5cdaSKumar Gala		compatible = "fsl,mpc8349-pci";
2781b3c5cdaSKumar Gala		device_type = "pci";
2791b3c5cdaSKumar Gala	};
280b359049fSKim Phillips};
281