xref: /openbmc/linux/arch/powerpc/boot/dts/tqm8560.dts (revision feac8c8b)
1/*
2 * TQM 8560 Device Tree Source
3 *
4 * Copyright 2008 Freescale Semiconductor Inc.
5 * Copyright 2008 Wolfgang Grandegger <wg@grandegger.com>
6 *
7 * This program is free software; you can redistribute  it and/or modify it
8 * under  the terms of  the GNU General  Public License as published by the
9 * Free Software Foundation;  either version 2 of the  License, or (at your
10 * option) any later version.
11 */
12
13/dts-v1/;
14
15/ {
16	model = "tqc,tqm8560";
17	compatible = "tqc,tqm8560";
18	#address-cells = <1>;
19	#size-cells = <1>;
20
21	aliases {
22		ethernet0 = &enet0;
23		ethernet1 = &enet1;
24		ethernet2 = &enet2;
25		serial0 = &serial0;
26		serial1 = &serial1;
27		pci0 = &pci0;
28	};
29
30	cpus {
31		#address-cells = <1>;
32		#size-cells = <0>;
33
34		PowerPC,8560@0 {
35			device_type = "cpu";
36			reg = <0>;
37			d-cache-line-size = <32>;
38			i-cache-line-size = <32>;
39			d-cache-size = <32768>;
40			i-cache-size = <32768>;
41			timebase-frequency = <0>;
42			bus-frequency = <0>;
43			clock-frequency = <0>;
44			next-level-cache = <&L2>;
45		};
46	};
47
48	memory {
49		device_type = "memory";
50		reg = <0x00000000 0x10000000>;
51	};
52
53	soc@e0000000 {
54		#address-cells = <1>;
55		#size-cells = <1>;
56		device_type = "soc";
57		ranges = <0x0 0xe0000000 0x100000>;
58		bus-frequency = <0>;
59		compatible = "fsl,mpc8560-immr", "simple-bus";
60
61		ecm-law@0 {
62			compatible = "fsl,ecm-law";
63			reg = <0x0 0x1000>;
64			fsl,num-laws = <8>;
65		};
66
67		ecm@1000 {
68			compatible = "fsl,mpc8560-ecm", "fsl,ecm";
69			reg = <0x1000 0x1000>;
70			interrupts = <17 2>;
71			interrupt-parent = <&mpic>;
72		};
73
74		memory-controller@2000 {
75			compatible = "fsl,mpc8540-memory-controller";
76			reg = <0x2000 0x1000>;
77			interrupt-parent = <&mpic>;
78			interrupts = <18 2>;
79		};
80
81		L2: l2-cache-controller@20000 {
82			compatible = "fsl,mpc8540-l2-cache-controller";
83			reg = <0x20000 0x1000>;
84			cache-line-size = <32>;
85			cache-size = <0x40000>;	// L2, 256K
86			interrupt-parent = <&mpic>;
87			interrupts = <16 2>;
88		};
89
90		i2c@3000 {
91			#address-cells = <1>;
92			#size-cells = <0>;
93			cell-index = <0>;
94			compatible = "fsl-i2c";
95			reg = <0x3000 0x100>;
96			interrupts = <43 2>;
97			interrupt-parent = <&mpic>;
98			dfsrr;
99
100			dtt@48 {
101				compatible = "national,lm75";
102				reg = <0x48>;
103			};
104
105			rtc@68 {
106				compatible = "dallas,ds1337";
107				reg = <0x68>;
108			};
109		};
110
111		dma@21300 {
112			#address-cells = <1>;
113			#size-cells = <1>;
114			compatible = "fsl,mpc8560-dma", "fsl,eloplus-dma";
115			reg = <0x21300 0x4>;
116			ranges = <0x0 0x21100 0x200>;
117			cell-index = <0>;
118			dma-channel@0 {
119				compatible = "fsl,mpc8560-dma-channel",
120						"fsl,eloplus-dma-channel";
121				reg = <0x0 0x80>;
122				cell-index = <0>;
123				interrupt-parent = <&mpic>;
124				interrupts = <20 2>;
125			};
126			dma-channel@80 {
127				compatible = "fsl,mpc8560-dma-channel",
128						"fsl,eloplus-dma-channel";
129				reg = <0x80 0x80>;
130				cell-index = <1>;
131				interrupt-parent = <&mpic>;
132				interrupts = <21 2>;
133			};
134			dma-channel@100 {
135				compatible = "fsl,mpc8560-dma-channel",
136						"fsl,eloplus-dma-channel";
137				reg = <0x100 0x80>;
138				cell-index = <2>;
139				interrupt-parent = <&mpic>;
140				interrupts = <22 2>;
141			};
142			dma-channel@180 {
143				compatible = "fsl,mpc8560-dma-channel",
144						"fsl,eloplus-dma-channel";
145				reg = <0x180 0x80>;
146				cell-index = <3>;
147				interrupt-parent = <&mpic>;
148				interrupts = <23 2>;
149			};
150		};
151
152		enet0: ethernet@24000 {
153			#address-cells = <1>;
154			#size-cells = <1>;
155			cell-index = <0>;
156			device_type = "network";
157			model = "TSEC";
158			compatible = "gianfar";
159			reg = <0x24000 0x1000>;
160			ranges = <0x0 0x24000 0x1000>;
161			local-mac-address = [ 00 00 00 00 00 00 ];
162			interrupts = <29 2 30 2 34 2>;
163			interrupt-parent = <&mpic>;
164			tbi-handle = <&tbi0>;
165			phy-handle = <&phy2>;
166
167			mdio@520 {
168				#address-cells = <1>;
169				#size-cells = <0>;
170				compatible = "fsl,gianfar-mdio";
171				reg = <0x520 0x20>;
172
173				phy1: ethernet-phy@1 {
174					interrupt-parent = <&mpic>;
175					interrupts = <8 1>;
176					reg = <1>;
177				};
178				phy2: ethernet-phy@2 {
179					interrupt-parent = <&mpic>;
180					interrupts = <8 1>;
181					reg = <2>;
182				};
183				phy3: ethernet-phy@3 {
184					interrupt-parent = <&mpic>;
185					interrupts = <8 1>;
186					reg = <3>;
187				};
188				tbi0: tbi-phy@11 {
189					reg = <0x11>;
190					device_type = "tbi-phy";
191				};
192			};
193		};
194
195		enet1: ethernet@25000 {
196			#address-cells = <1>;
197			#size-cells = <1>;
198			cell-index = <1>;
199			device_type = "network";
200			model = "TSEC";
201			compatible = "gianfar";
202			reg = <0x25000 0x1000>;
203			ranges = <0x0 0x25000 0x1000>;
204			local-mac-address = [ 00 00 00 00 00 00 ];
205			interrupts = <35 2 36 2 40 2>;
206			interrupt-parent = <&mpic>;
207			tbi-handle = <&tbi1>;
208			phy-handle = <&phy1>;
209
210			mdio@520 {
211				#address-cells = <1>;
212				#size-cells = <0>;
213				compatible = "fsl,gianfar-tbi";
214				reg = <0x520 0x20>;
215
216				tbi1: tbi-phy@11 {
217					reg = <0x11>;
218					device_type = "tbi-phy";
219				};
220			};
221		};
222
223		mpic: pic@40000 {
224			interrupt-controller;
225			#address-cells = <0>;
226			#interrupt-cells = <2>;
227			reg = <0x40000 0x40000>;
228			device_type = "open-pic";
229			compatible = "chrp,open-pic";
230		};
231
232		cpm@919c0 {
233			#address-cells = <1>;
234			#size-cells = <1>;
235			compatible = "fsl,mpc8560-cpm", "fsl,cpm2", "simple-bus";
236			reg = <0x919c0 0x30>;
237			ranges;
238
239			muram@80000 {
240				#address-cells = <1>;
241				#size-cells = <1>;
242				ranges = <0 0x80000 0x10000>;
243
244				data@0 {
245					compatible = "fsl,cpm-muram-data";
246					reg = <0 0x4000 0x9000 0x2000>;
247				};
248			};
249
250			brg@919f0 {
251				compatible = "fsl,mpc8560-brg",
252				             "fsl,cpm2-brg",
253				             "fsl,cpm-brg";
254				reg = <0x919f0 0x10 0x915f0 0x10>;
255				clock-frequency = <0>;
256			};
257
258			cpmpic: pic@90c00 {
259				interrupt-controller;
260				#address-cells = <0>;
261				#interrupt-cells = <2>;
262				interrupts = <46 2>;
263				interrupt-parent = <&mpic>;
264				reg = <0x90c00 0x80>;
265				compatible = "fsl,mpc8560-cpm-pic", "fsl,cpm2-pic";
266			};
267
268			serial0: serial@91a00 {
269				device_type = "serial";
270				compatible = "fsl,mpc8560-scc-uart",
271				             "fsl,cpm2-scc-uart";
272				reg = <0x91a00 0x20 0x88000 0x100>;
273				fsl,cpm-brg = <1>;
274				fsl,cpm-command = <0x800000>;
275				current-speed = <115200>;
276				interrupts = <40 8>;
277				interrupt-parent = <&cpmpic>;
278			};
279
280			serial1: serial@91a20 {
281				device_type = "serial";
282				compatible = "fsl,mpc8560-scc-uart",
283				             "fsl,cpm2-scc-uart";
284				reg = <0x91a20 0x20 0x88100 0x100>;
285				fsl,cpm-brg = <2>;
286				fsl,cpm-command = <0x4a00000>;
287				current-speed = <115200>;
288				interrupts = <41 8>;
289				interrupt-parent = <&cpmpic>;
290			};
291
292			enet2: ethernet@91340 {
293				device_type = "network";
294				compatible = "fsl,mpc8560-fcc-enet",
295				             "fsl,cpm2-fcc-enet";
296				reg = <0x91340 0x20 0x88600 0x100 0x913d0 0x1>;
297				local-mac-address = [ 00 00 00 00 00 00 ];
298				fsl,cpm-command = <0x1a400300>;
299				interrupts = <34 8>;
300				interrupt-parent = <&cpmpic>;
301				phy-handle = <&phy3>;
302			};
303		};
304	};
305
306	localbus@e0005000 {
307		compatible = "fsl,mpc8560-localbus", "fsl,pq3-localbus",
308			     "simple-bus";
309		#address-cells = <2>;
310		#size-cells = <1>;
311		reg = <0xe0005000 0x100>;	// BRx, ORx, etc.
312		interrupt-parent = <&mpic>;
313		interrupts = <19 2>;
314
315		ranges = <
316			0 0x0 0xfc000000 0x04000000	// NOR FLASH bank 1
317			1 0x0 0xf8000000 0x08000000	// NOR FLASH bank 0
318			2 0x0 0xe3000000 0x00008000	// CAN (2 x i82527)
319		>;
320
321		flash@1,0 {
322			#address-cells = <1>;
323			#size-cells = <1>;
324			compatible = "cfi-flash";
325			reg = <1 0x0 0x8000000>;
326			bank-width = <4>;
327			device-width = <1>;
328
329			partition@0 {
330				label = "kernel";
331				reg = <0x00000000 0x00200000>;
332			};
333			partition@200000 {
334				label = "root";
335				reg = <0x00200000 0x00300000>;
336			};
337			partition@500000 {
338				label = "user";
339				reg = <0x00500000 0x07a00000>;
340			};
341			partition@7f00000 {
342				label = "env1";
343				reg = <0x07f00000 0x00040000>;
344			};
345			partition@7f40000 {
346				label = "env2";
347				reg = <0x07f40000 0x00040000>;
348			};
349			partition@7f80000 {
350				label = "u-boot";
351				reg = <0x07f80000 0x00080000>;
352				read-only;
353			};
354		};
355
356		/* Note: CAN support needs be enabled in U-Boot */
357		can0@2,0 {
358			compatible = "intel,82527"; // Bosch CC770
359			reg = <2 0x0 0x100>;
360			interrupts = <4 1>;
361			interrupt-parent = <&mpic>;
362		};
363
364		can1@2,100 {
365			compatible = "intel,82527"; // Bosch CC770
366			reg = <2 0x100 0x100>;
367			interrupts = <4 1>;
368			interrupt-parent = <&mpic>;
369		};
370	};
371
372	pci0: pci@e0008000 {
373		#interrupt-cells = <1>;
374		#size-cells = <2>;
375		#address-cells = <3>;
376		compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
377		device_type = "pci";
378		reg = <0xe0008000 0x1000>;
379		clock-frequency = <66666666>;
380		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
381		interrupt-map = <
382				/* IDSEL 28 */
383				 0xe000 0 0 1 &mpic 2 1
384				 0xe000 0 0 2 &mpic 3 1
385				 0xe000 0 0 3 &mpic 6 1
386				 0xe000 0 0 4 &mpic 5 1
387
388				/* IDSEL 11 */
389				 0x5800 0 0 1 &mpic 6 1
390				 0x5800 0 0 2 &mpic 5 1
391				 >;
392
393		interrupt-parent = <&mpic>;
394		interrupts = <24 2>;
395		bus-range = <0 0>;
396		ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
397			  0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
398	};
399};
400