1/*
2 * Device Tree Source for Emerson KSI8560
3 *
4 * Author: Alexandr Smirnov <asmirnov@ru.mvista.com>
5 *
6 * Based on mpc8560ads.dts
7 *
8 * 2008 (c) MontaVista, Software, Inc.  This file is licensed under
9 * the terms of the GNU General Public License version 2.  This program
10 * is licensed "as is" without any warranty of any kind, whether express
11 * or implied.
12 *
13 */
14
15/dts-v1/;
16
17/ {
18	model = "KSI8560";
19	compatible = "emerson,KSI8560";
20	#address-cells = <1>;
21	#size-cells = <1>;
22
23	aliases {
24		ethernet0 = &enet0;
25		ethernet1 = &enet1;
26		ethernet2 = &enet2;
27	};
28
29	cpus {
30		#address-cells = <1>;
31		#size-cells = <0>;
32
33		PowerPC,8560@0 {
34			device_type = "cpu";
35			reg = <0>;
36			d-cache-line-size = <32>;
37			i-cache-line-size = <32>;
38			d-cache-size = <0x8000>;		/* L1, 32K */
39			i-cache-size = <0x8000>;		/* L1, 32K */
40			timebase-frequency = <0>;		/* From U-boot */
41			bus-frequency = <0>;			/* From U-boot */
42			clock-frequency = <0>;			/* From U-boot */
43			next-level-cache = <&L2>;
44		};
45	};
46
47	memory {
48		device_type = "memory";
49		reg = <0x00000000 0x10000000>;			/* Fixed by bootwrapper */
50	};
51
52	soc@fdf00000 {
53		#address-cells = <1>;
54		#size-cells = <1>;
55		device_type = "soc";
56		ranges = <0x00000000 0xfdf00000 0x00100000>;
57		bus-frequency = <0>;				/* Fixed by bootwrapper */
58
59		memory-controller@2000 {
60			compatible = "fsl,8540-memory-controller";
61			reg = <0x2000 0x1000>;
62			interrupt-parent = <&MPIC>;
63			interrupts = <0x12 0x2>;
64		};
65
66		L2: l2-cache-controller@20000 {
67			compatible = "fsl,8540-l2-cache-controller";
68			reg = <0x20000 0x1000>;
69			cache-line-size = <0x20>;		/* 32 bytes */
70			cache-size = <0x40000>;			/* L2, 256K */
71			interrupt-parent = <&MPIC>;
72			interrupts = <0x10 0x2>;
73		};
74
75		i2c@3000 {
76			#address-cells = <1>;
77			#size-cells = <0>;
78			cell-index = <0>;
79			compatible = "fsl-i2c";
80			reg = <0x3000 0x100>;
81			interrupts = <0x2b 0x2>;
82			interrupt-parent = <&MPIC>;
83			dfsrr;
84		};
85
86		mdio@24520 {					/* For TSECs */
87			#address-cells = <1>;
88			#size-cells = <0>;
89			compatible = "fsl,gianfar-mdio";
90			reg = <0x24520 0x20>;
91
92			PHY1: ethernet-phy@1 {
93				interrupt-parent = <&MPIC>;
94				reg = <0x1>;
95				device_type = "ethernet-phy";
96			};
97
98			PHY2: ethernet-phy@2 {
99				interrupt-parent = <&MPIC>;
100				reg = <0x2>;
101				device_type = "ethernet-phy";
102			};
103		};
104
105		enet0: ethernet@24000 {
106			device_type = "network";
107			model = "TSEC";
108			compatible = "gianfar";
109			reg = <0x24000 0x1000>;
110			/* Mac address filled in by bootwrapper */
111			local-mac-address = [ 00 00 00 00 00 00 ];
112			interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
113			interrupt-parent = <&MPIC>;
114			phy-handle = <&PHY1>;
115		};
116
117		enet1: ethernet@25000 {
118			device_type = "network";
119			model = "TSEC";
120			compatible = "gianfar";
121			reg = <0x25000 0x1000>;
122			/* Mac address filled in by bootwrapper */
123			local-mac-address = [ 00 00 00 00 00 00 ];
124			interrupts = <0x23 0x2 0x24 0x2 0x28 0x2>;
125			interrupt-parent = <&MPIC>;
126			phy-handle = <&PHY2>;
127		};
128
129		MPIC: pic@40000 {
130			#address-cells = <0>;
131			#interrupt-cells = <2>;
132			interrupt-controller;
133			reg = <0x40000 0x40000>;
134			device_type = "open-pic";
135		};
136
137		cpm@919c0 {
138			#address-cells = <1>;
139			#size-cells = <1>;
140			compatible = "fsl,mpc8560-cpm", "fsl,cpm2";
141			reg = <0x919c0 0x30>;
142			ranges;
143
144			muram@80000 {
145				#address-cells = <1>;
146				#size-cells = <1>;
147				ranges = <0x0 0x80000 0x10000>;
148
149				data@0 {
150					compatible = "fsl,cpm-muram-data";
151					reg = <0x0 0x4000 0x9000 0x2000>;
152				};
153			};
154
155			brg@919f0 {
156				compatible = "fsl,mpc8560-brg",
157					     "fsl,cpm2-brg",
158					     "fsl,cpm-brg";
159				reg = <0x919f0 0x10 0x915f0 0x10>;
160				clock-frequency = <165000000>;	/* 166MHz */
161			};
162
163			CPMPIC: pic@90c00 {
164				#address-cells = <0>;
165				#interrupt-cells = <2>;
166				interrupt-controller;
167				interrupts = <0x2e 0x2>;
168				interrupt-parent = <&MPIC>;
169				reg = <0x90c00 0x80>;
170				compatible = "fsl,mpc8560-cpm-pic", "fsl,cpm2-pic";
171			};
172
173			serial@91a00 {
174				device_type = "serial";
175				compatible = "fsl,mpc8560-scc-uart",
176					     "fsl,cpm2-scc-uart";
177				reg = <0x91a00 0x20 0x88000 0x100>;
178				fsl,cpm-brg = <1>;
179				fsl,cpm-command = <0x800000>;
180				current-speed = <0x1c200>;
181				interrupts = <0x28 0x8>;
182				interrupt-parent = <&CPMPIC>;
183			};
184
185			serial@91a20 {
186				device_type = "serial";
187				compatible = "fsl,mpc8560-scc-uart",
188					     "fsl,cpm2-scc-uart";
189				reg = <0x91a20 0x20 0x88100 0x100>;
190				fsl,cpm-brg = <2>;
191				fsl,cpm-command = <0x4a00000>;
192				current-speed = <0x1c200>;
193				interrupts = <0x29 0x8>;
194				interrupt-parent = <&CPMPIC>;
195			};
196
197			mdio@90d00 {				/* For FCCs */
198				#address-cells = <1>;
199				#size-cells = <0>;
200				compatible = "fsl,cpm2-mdio-bitbang";
201				reg = <0x90d00 0x14>;
202				fsl,mdio-pin = <24>;
203				fsl,mdc-pin = <25>;
204
205				PHY0: ethernet-phy@0 {
206					interrupt-parent = <&MPIC>;
207					reg = <0x0>;
208					device_type = "ethernet-phy";
209				};
210			};
211
212			enet2: ethernet@91300 {
213				device_type = "network";
214				compatible = "fsl,mpc8560-fcc-enet",
215					     "fsl,cpm2-fcc-enet";
216				reg = <0x91300 0x20 0x88400 0x100 0x91390 0x1>;
217				/* Mac address filled in by bootwrapper */
218				local-mac-address = [ 00 00 00 00 00 00 ];
219				fsl,cpm-command = <0x12000300>;
220				interrupts = <0x20 0x8>;
221				interrupt-parent = <&CPMPIC>;
222				phy-handle = <&PHY0>;
223			};
224		};
225	};
226
227	localbus@fdf05000 {
228		#address-cells = <2>;
229		#size-cells = <1>;
230		compatible = "fsl,mpc8560-localbus";
231		reg = <0xfdf05000 0x68>;
232
233		ranges = <0x0 0x0 0xe0000000 0x00800000
234			  0x4 0x0 0xe8080000 0x00080000>;
235
236		flash@0,0 {
237			#address-cells = <1>;
238			#size-cells = <1>;
239			compatible = "jedec-flash";
240			reg = <0x0 0x0 0x800000>;
241			bank-width = <0x2>;
242
243			partition@0 {
244				label = "Primary Kernel";
245				reg = <0x0 0x180000>;
246			};
247			partition@180000 {
248				label = "Primary Filesystem";
249				reg = <0x180000 0x580000>;
250			};
251			partition@700000 {
252				label = "Monitor";
253				reg = <0x300000 0x100000>;
254				read-only;
255			};
256		};
257
258		cpld@4,0 {
259			compatible = "emerson,KSI8560-cpld";
260			reg = <0x4 0x0 0x80000>;
261		};
262	};
263
264
265	chosen {
266		linux,stdout-path = "/soc/cpm/serial@91a00";
267	};
268};
269