Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Apr 14-17, 2025
Register
Loading...
v6.2
  1// SPDX-License-Identifier: GPL-2.0-or-later
  2/*
  3 * TQM8548 Device Tree Source
  4 *
  5 * Copyright 2006 Freescale Semiconductor Inc.
  6 * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
 
 
 
 
 
  7 */
  8
  9/dts-v1/;
 10
 11/ {
 12	model = "tqc,tqm8548";
 13	compatible = "tqc,tqm8548";
 14	#address-cells = <1>;
 15	#size-cells = <1>;
 16
 17	aliases {
 18		ethernet0 = &enet0;
 19		ethernet1 = &enet1;
 20		ethernet2 = &enet2;
 21		ethernet3 = &enet3;
 22
 23		serial0 = &serial0;
 24		serial1 = &serial1;
 25		pci0 = &pci0;
 26		pci1 = &pci1;
 27	};
 28
 29	cpus {
 30		#address-cells = <1>;
 31		#size-cells = <0>;
 32
 33		PowerPC,8548@0 {
 34			device_type = "cpu";
 35			reg = <0>;
 36			d-cache-line-size = <32>;	// 32 bytes
 37			i-cache-line-size = <32>;	// 32 bytes
 38			d-cache-size = <0x8000>;	// L1, 32K
 39			i-cache-size = <0x8000>;	// L1, 32K
 40			next-level-cache = <&L2>;
 41		};
 42	};
 43
 44	memory {
 45		device_type = "memory";
 46		reg = <0x00000000 0x00000000>;	// Filled in by U-Boot
 47	};
 48
 49	soc@a0000000 {
 50		#address-cells = <1>;
 51		#size-cells = <1>;
 52		device_type = "soc";
 53		ranges = <0x0 0xa0000000 0x100000>;
 54		bus-frequency = <0>;
 55		compatible = "fsl,mpc8548-immr", "simple-bus";
 56
 57		ecm-law@0 {
 58			compatible = "fsl,ecm-law";
 59			reg = <0x0 0x1000>;
 60			fsl,num-laws = <10>;
 61		};
 62
 63		ecm@1000 {
 64			compatible = "fsl,mpc8548-ecm", "fsl,ecm";
 65			reg = <0x1000 0x1000>;
 66			interrupts = <17 2>;
 67			interrupt-parent = <&mpic>;
 68		};
 69
 70		memory-controller@2000 {
 71			compatible = "fsl,mpc8548-memory-controller";
 72			reg = <0x2000 0x1000>;
 73			interrupt-parent = <&mpic>;
 74			interrupts = <18 2>;
 75		};
 76
 77		L2: l2-cache-controller@20000 {
 78			compatible = "fsl,mpc8548-l2-cache-controller";
 79			reg = <0x20000 0x1000>;
 80			cache-line-size = <32>;	// 32 bytes
 81			cache-size = <0x80000>;	// L2, 512K
 82			interrupt-parent = <&mpic>;
 83			interrupts = <16 2>;
 84		};
 85
 86		i2c@3000 {
 87			#address-cells = <1>;
 88			#size-cells = <0>;
 89			cell-index = <0>;
 90			compatible = "fsl-i2c";
 91			reg = <0x3000 0x100>;
 92			interrupts = <43 2>;
 93			interrupt-parent = <&mpic>;
 94			dfsrr;
 95
 96			dtt@48 {
 97				compatible = "national,lm75";
 98				reg = <0x48>;
 99			};
100
101			rtc@68 {
102				compatible = "dallas,ds1337";
103				reg = <0x68>;
104			};
105		};
106
107		i2c@3100 {
108			#address-cells = <1>;
109			#size-cells = <0>;
110			cell-index = <1>;
111			compatible = "fsl-i2c";
112			reg = <0x3100 0x100>;
113			interrupts = <43 2>;
114			interrupt-parent = <&mpic>;
115			dfsrr;
116		};
117
118		dma@21300 {
119			#address-cells = <1>;
120			#size-cells = <1>;
121			compatible = "fsl,mpc8548-dma", "fsl,eloplus-dma";
122			reg = <0x21300 0x4>;
123			ranges = <0x0 0x21100 0x200>;
124			cell-index = <0>;
125			dma-channel@0 {
126				compatible = "fsl,mpc8548-dma-channel",
127						"fsl,eloplus-dma-channel";
128				reg = <0x0 0x80>;
129				cell-index = <0>;
130				interrupt-parent = <&mpic>;
131				interrupts = <20 2>;
132			};
133			dma-channel@80 {
134				compatible = "fsl,mpc8548-dma-channel",
135						"fsl,eloplus-dma-channel";
136				reg = <0x80 0x80>;
137				cell-index = <1>;
138				interrupt-parent = <&mpic>;
139				interrupts = <21 2>;
140			};
141			dma-channel@100 {
142				compatible = "fsl,mpc8548-dma-channel",
143						"fsl,eloplus-dma-channel";
144				reg = <0x100 0x80>;
145				cell-index = <2>;
146				interrupt-parent = <&mpic>;
147				interrupts = <22 2>;
148			};
149			dma-channel@180 {
150				compatible = "fsl,mpc8548-dma-channel",
151						"fsl,eloplus-dma-channel";
152				reg = <0x180 0x80>;
153				cell-index = <3>;
154				interrupt-parent = <&mpic>;
155				interrupts = <23 2>;
156			};
157		};
158
159		enet0: ethernet@24000 {
160			#address-cells = <1>;
161			#size-cells = <1>;
162			cell-index = <0>;
163			device_type = "network";
164			model = "eTSEC";
165			compatible = "gianfar";
166			reg = <0x24000 0x1000>;
167			ranges = <0x0 0x24000 0x1000>;
168			local-mac-address = [ 00 00 00 00 00 00 ];
169			interrupts = <29 2 30 2 34 2>;
170			interrupt-parent = <&mpic>;
171			tbi-handle = <&tbi0>;
172			phy-handle = <&phy2>;
173
174			mdio@520 {
175				#address-cells = <1>;
176				#size-cells = <0>;
177				compatible = "fsl,gianfar-mdio";
178				reg = <0x520 0x20>;
179
180				phy1: ethernet-phy@0 {
181					interrupt-parent = <&mpic>;
182					interrupts = <8 1>;
183					reg = <1>;
 
184				};
185				phy2: ethernet-phy@1 {
186					interrupt-parent = <&mpic>;
187					interrupts = <8 1>;
188					reg = <2>;
 
189				};
190				phy3: ethernet-phy@3 {
191					interrupt-parent = <&mpic>;
192					interrupts = <8 1>;
193					reg = <3>;
 
194				};
195				phy4: ethernet-phy@4 {
196					interrupt-parent = <&mpic>;
197					interrupts = <8 1>;
198					reg = <4>;
 
199				};
200				phy5: ethernet-phy@5 {
201					interrupt-parent = <&mpic>;
202					interrupts = <8 1>;
203					reg = <5>;
 
204				};
205				tbi0: tbi-phy@11 {
206					reg = <0x11>;
207					device_type = "tbi-phy";
208				};
209			};
210		};
211
212		enet1: ethernet@25000 {
213			#address-cells = <1>;
214			#size-cells = <1>;
215			cell-index = <1>;
216			device_type = "network";
217			model = "eTSEC";
218			compatible = "gianfar";
219			reg = <0x25000 0x1000>;
220			ranges = <0x0 0x25000 0x1000>;
221			local-mac-address = [ 00 00 00 00 00 00 ];
222			interrupts = <35 2 36 2 40 2>;
223			interrupt-parent = <&mpic>;
224			tbi-handle = <&tbi1>;
225			phy-handle = <&phy1>;
226
227			mdio@520 {
228				#address-cells = <1>;
229				#size-cells = <0>;
230				compatible = "fsl,gianfar-tbi";
231				reg = <0x520 0x20>;
232
233				tbi1: tbi-phy@11 {
234					reg = <0x11>;
235					device_type = "tbi-phy";
236				};
237			};
238		};
239
240		enet2: ethernet@26000 {
241			#address-cells = <1>;
242			#size-cells = <1>;
243			cell-index = <2>;
244			device_type = "network";
245			model = "eTSEC";
246			compatible = "gianfar";
247			reg = <0x26000 0x1000>;
248			ranges = <0x0 0x26000 0x1000>;
249			local-mac-address = [ 00 00 00 00 00 00 ];
250			interrupts = <31 2 32 2 33 2>;
251			interrupt-parent = <&mpic>;
252			tbi-handle = <&tbi2>;
253			phy-handle = <&phy4>;
254
255			mdio@520 {
256				#address-cells = <1>;
257				#size-cells = <0>;
258				compatible = "fsl,gianfar-tbi";
259				reg = <0x520 0x20>;
260
261				tbi2: tbi-phy@11 {
262					reg = <0x11>;
263					device_type = "tbi-phy";
264				};
265			};
266		};
267
268		enet3: ethernet@27000 {
269			#address-cells = <1>;
270			#size-cells = <1>;
271			cell-index = <3>;
272			device_type = "network";
273			model = "eTSEC";
274			compatible = "gianfar";
275			reg = <0x27000 0x1000>;
276			ranges = <0x0 0x27000 0x1000>;
277			local-mac-address = [ 00 00 00 00 00 00 ];
278			interrupts = <37 2 38 2 39 2>;
279			interrupt-parent = <&mpic>;
280			tbi-handle = <&tbi3>;
281			phy-handle = <&phy5>;
282
283			mdio@520 {
284				#address-cells = <1>;
285				#size-cells = <0>;
286				compatible = "fsl,gianfar-tbi";
287				reg = <0x520 0x20>;
288
289				tbi3: tbi-phy@11 {
290					reg = <0x11>;
291					device_type = "tbi-phy";
292				};
293			};
294		};
295
296		serial0: serial@4500 {
297			cell-index = <0>;
298			device_type = "serial";
299			compatible = "fsl,ns16550", "ns16550";
300			reg = <0x4500 0x100>;	// reg base, size
301			clock-frequency = <0>;	// should we fill in in uboot?
302			current-speed = <115200>;
303			interrupts = <42 2>;
304			interrupt-parent = <&mpic>;
305		};
306
307		serial1: serial@4600 {
308			cell-index = <1>;
309			device_type = "serial";
310			compatible = "fsl,ns16550", "ns16550";
311			reg = <0x4600 0x100>;	// reg base, size
312			clock-frequency = <0>;	// should we fill in in uboot?
313			current-speed = <115200>;
314			interrupts = <42 2>;
315			interrupt-parent = <&mpic>;
316		};
317
318		global-utilities@e0000 {	// global utilities reg
319			compatible = "fsl,mpc8548-guts";
320			reg = <0xe0000 0x1000>;
321			fsl,has-rstcr;
322		};
323
324		mpic: pic@40000 {
325			interrupt-controller;
326			#address-cells = <0>;
327			#interrupt-cells = <2>;
328			reg = <0x40000 0x40000>;
329			compatible = "chrp,open-pic";
330			device_type = "open-pic";
331		};
332	};
333
334	localbus@a0005000 {
335		compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
336			     "simple-bus";
337		#address-cells = <2>;
338		#size-cells = <1>;
339		reg = <0xa0005000 0x100>;	// BRx, ORx, etc.
340		interrupt-parent = <&mpic>;
341		interrupts = <19 2>;
342
343		ranges = <
344			0 0x0 0xfc000000 0x04000000	// NOR FLASH bank 1
345			1 0x0 0xf8000000 0x08000000	// NOR FLASH bank 0
346			2 0x0 0xa3000000 0x00008000	// CAN (2 x CC770)
347			3 0x0 0xa3010000 0x00008000	// NAND FLASH
348
349		>;
350
351		flash@1,0 {
352			#address-cells = <1>;
353			#size-cells = <1>;
354			compatible = "cfi-flash";
355			reg = <1 0x0 0x8000000>;
356			bank-width = <4>;
357			device-width = <1>;
358
359			partition@0 {
360				label = "kernel";
361				reg = <0x00000000 0x00200000>;
362			};
363			partition@200000 {
364				label = "root";
365				reg = <0x00200000 0x00300000>;
366			};
367			partition@500000 {
368				label = "user";
369				reg = <0x00500000 0x07a00000>;
370			};
371			partition@7f00000 {
372				label = "env1";
373				reg = <0x07f00000 0x00040000>;
374			};
375			partition@7f40000 {
376				label = "env2";
377				reg = <0x07f40000 0x00040000>;
378			};
379			partition@7f80000 {
380				label = "u-boot";
381				reg = <0x07f80000 0x00080000>;
382				read-only;
383			};
384		};
385
386		/* Note: CAN support needs be enabled in U-Boot */
387		can@2,0 {
388			compatible = "bosch,cc770"; // Bosch CC770
389			reg = <2 0x0 0x100>;
390			interrupts = <4 1>;
391			interrupt-parent = <&mpic>;
392			bosch,external-clock-frequency = <16000000>;
393			bosch,disconnect-rx1-input;
394			bosch,disconnect-tx1-output;
395			bosch,iso-low-speed-mux;
396			bosch,clock-out-frequency = <16000000>;
397		};
398
399		can@2,100 {
400			compatible = "bosch,cc770"; // Bosch CC770
401			reg = <2 0x100 0x100>;
402			interrupts = <4 1>;
403			interrupt-parent = <&mpic>;
404			bosch,external-clock-frequency = <16000000>;
405			bosch,disconnect-rx1-input;
406			bosch,disconnect-tx1-output;
407			bosch,iso-low-speed-mux;
408		};
409
410		/* Note: NAND support needs to be enabled in U-Boot */
411		upm@3,0 {
412			#address-cells = <0>;
413			#size-cells = <0>;
414			compatible = "tqc,tqm8548-upm-nand", "fsl,upm-nand";
415			reg = <3 0x0 0x800>;
416			fsl,upm-addr-offset = <0x10>;
417			fsl,upm-cmd-offset = <0x08>;
418			/* Micron MT29F8G08FAB multi-chip device */
419			fsl,upm-addr-line-cs-offsets = <0x0 0x200>;
420			fsl,upm-wait-flags = <0x5>;
421			chip-delay = <25>; // in micro-seconds
422
423			nand@0 {
424				#address-cells = <1>;
425				#size-cells = <1>;
426
427				partition@0 {
428					    label = "fs";
429					    reg = <0x00000000 0x10000000>;
430				};
431			};
432		};
433	};
434
435	pci0: pci@a0008000 {
436		#interrupt-cells = <1>;
437		#size-cells = <2>;
438		#address-cells = <3>;
439		compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
440		device_type = "pci";
441		reg = <0xa0008000 0x1000>;
442		clock-frequency = <33333333>;
443		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
444		interrupt-map = <
445				/* IDSEL 28 */
446				 0xe000 0 0 1 &mpic 2 1
447				 0xe000 0 0 2 &mpic 3 1
448				 0xe000 0 0 3 &mpic 6 1
449				 0xe000 0 0 4 &mpic 5 1
450
451				/* IDSEL 11 */
452				 0x5800 0 0 1 &mpic 6 1
453				 0x5800 0 0 2 &mpic 5 1
454				 >;
455
456		interrupt-parent = <&mpic>;
457		interrupts = <24 2>;
458		bus-range = <0 0>;
459		ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
460			  0x01000000 0 0x00000000 0xa2000000 0 0x01000000>;
461	};
462
463	pci1: pcie@a000a000 {
464		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
465		interrupt-map = <
466			/* IDSEL 0x0 (PEX) */
467			0x00000 0 0 1 &mpic 0 1
468			0x00000 0 0 2 &mpic 1 1
469			0x00000 0 0 3 &mpic 2 1
470			0x00000 0 0 4 &mpic 3 1>;
471
472		interrupt-parent = <&mpic>;
473		interrupts = <26 2>;
474		bus-range = <0 0xff>;
475		ranges = <0x02000000 0 0xb0000000 0xb0000000 0 0x10000000
476			  0x01000000 0 0x00000000 0xaf000000 0 0x08000000>;
477		clock-frequency = <33333333>;
478		#interrupt-cells = <1>;
479		#size-cells = <2>;
480		#address-cells = <3>;
481		reg = <0xa000a000 0x1000>;
482		compatible = "fsl,mpc8548-pcie";
483		device_type = "pci";
484		pcie@0 {
485			reg = <0 0 0 0 0>;
486			#size-cells = <2>;
487			#address-cells = <3>;
488			device_type = "pci";
489			ranges = <0x02000000 0 0xb0000000 0x02000000 0
490			          0xb0000000 0 0x10000000
491				  0x01000000 0 0x00000000 0x01000000 0
492				  0x00000000 0 0x08000000>;
493		};
494	};
495};
v3.5.6
 
  1/*
  2 * TQM8548 Device Tree Source
  3 *
  4 * Copyright 2006 Freescale Semiconductor Inc.
  5 * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
  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,tqm8548";
 17	compatible = "tqc,tqm8548";
 18	#address-cells = <1>;
 19	#size-cells = <1>;
 20
 21	aliases {
 22		ethernet0 = &enet0;
 23		ethernet1 = &enet1;
 24		ethernet2 = &enet2;
 25		ethernet3 = &enet3;
 26
 27		serial0 = &serial0;
 28		serial1 = &serial1;
 29		pci0 = &pci0;
 30		pci1 = &pci1;
 31	};
 32
 33	cpus {
 34		#address-cells = <1>;
 35		#size-cells = <0>;
 36
 37		PowerPC,8548@0 {
 38			device_type = "cpu";
 39			reg = <0>;
 40			d-cache-line-size = <32>;	// 32 bytes
 41			i-cache-line-size = <32>;	// 32 bytes
 42			d-cache-size = <0x8000>;	// L1, 32K
 43			i-cache-size = <0x8000>;	// L1, 32K
 44			next-level-cache = <&L2>;
 45		};
 46	};
 47
 48	memory {
 49		device_type = "memory";
 50		reg = <0x00000000 0x00000000>;	// Filled in by U-Boot
 51	};
 52
 53	soc@a0000000 {
 54		#address-cells = <1>;
 55		#size-cells = <1>;
 56		device_type = "soc";
 57		ranges = <0x0 0xa0000000 0x100000>;
 58		bus-frequency = <0>;
 59		compatible = "fsl,mpc8548-immr", "simple-bus";
 60
 61		ecm-law@0 {
 62			compatible = "fsl,ecm-law";
 63			reg = <0x0 0x1000>;
 64			fsl,num-laws = <10>;
 65		};
 66
 67		ecm@1000 {
 68			compatible = "fsl,mpc8548-ecm", "fsl,ecm";
 69			reg = <0x1000 0x1000>;
 70			interrupts = <17 2>;
 71			interrupt-parent = <&mpic>;
 72		};
 73
 74		memory-controller@2000 {
 75			compatible = "fsl,mpc8548-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,mpc8548-l2-cache-controller";
 83			reg = <0x20000 0x1000>;
 84			cache-line-size = <32>;	// 32 bytes
 85			cache-size = <0x80000>;	// L2, 512K
 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		i2c@3100 {
112			#address-cells = <1>;
113			#size-cells = <0>;
114			cell-index = <1>;
115			compatible = "fsl-i2c";
116			reg = <0x3100 0x100>;
117			interrupts = <43 2>;
118			interrupt-parent = <&mpic>;
119			dfsrr;
120		};
121
122		dma@21300 {
123			#address-cells = <1>;
124			#size-cells = <1>;
125			compatible = "fsl,mpc8548-dma", "fsl,eloplus-dma";
126			reg = <0x21300 0x4>;
127			ranges = <0x0 0x21100 0x200>;
128			cell-index = <0>;
129			dma-channel@0 {
130				compatible = "fsl,mpc8548-dma-channel",
131						"fsl,eloplus-dma-channel";
132				reg = <0x0 0x80>;
133				cell-index = <0>;
134				interrupt-parent = <&mpic>;
135				interrupts = <20 2>;
136			};
137			dma-channel@80 {
138				compatible = "fsl,mpc8548-dma-channel",
139						"fsl,eloplus-dma-channel";
140				reg = <0x80 0x80>;
141				cell-index = <1>;
142				interrupt-parent = <&mpic>;
143				interrupts = <21 2>;
144			};
145			dma-channel@100 {
146				compatible = "fsl,mpc8548-dma-channel",
147						"fsl,eloplus-dma-channel";
148				reg = <0x100 0x80>;
149				cell-index = <2>;
150				interrupt-parent = <&mpic>;
151				interrupts = <22 2>;
152			};
153			dma-channel@180 {
154				compatible = "fsl,mpc8548-dma-channel",
155						"fsl,eloplus-dma-channel";
156				reg = <0x180 0x80>;
157				cell-index = <3>;
158				interrupt-parent = <&mpic>;
159				interrupts = <23 2>;
160			};
161		};
162
163		enet0: ethernet@24000 {
164			#address-cells = <1>;
165			#size-cells = <1>;
166			cell-index = <0>;
167			device_type = "network";
168			model = "eTSEC";
169			compatible = "gianfar";
170			reg = <0x24000 0x1000>;
171			ranges = <0x0 0x24000 0x1000>;
172			local-mac-address = [ 00 00 00 00 00 00 ];
173			interrupts = <29 2 30 2 34 2>;
174			interrupt-parent = <&mpic>;
175			tbi-handle = <&tbi0>;
176			phy-handle = <&phy2>;
177
178			mdio@520 {
179				#address-cells = <1>;
180				#size-cells = <0>;
181				compatible = "fsl,gianfar-mdio";
182				reg = <0x520 0x20>;
183
184				phy1: ethernet-phy@0 {
185					interrupt-parent = <&mpic>;
186					interrupts = <8 1>;
187					reg = <1>;
188					device_type = "ethernet-phy";
189				};
190				phy2: ethernet-phy@1 {
191					interrupt-parent = <&mpic>;
192					interrupts = <8 1>;
193					reg = <2>;
194					device_type = "ethernet-phy";
195				};
196				phy3: ethernet-phy@3 {
197					interrupt-parent = <&mpic>;
198					interrupts = <8 1>;
199					reg = <3>;
200					device_type = "ethernet-phy";
201				};
202				phy4: ethernet-phy@4 {
203					interrupt-parent = <&mpic>;
204					interrupts = <8 1>;
205					reg = <4>;
206					device_type = "ethernet-phy";
207				};
208				phy5: ethernet-phy@5 {
209					interrupt-parent = <&mpic>;
210					interrupts = <8 1>;
211					reg = <5>;
212					device_type = "ethernet-phy";
213				};
214				tbi0: tbi-phy@11 {
215					reg = <0x11>;
216					device_type = "tbi-phy";
217				};
218			};
219		};
220
221		enet1: ethernet@25000 {
222			#address-cells = <1>;
223			#size-cells = <1>;
224			cell-index = <1>;
225			device_type = "network";
226			model = "eTSEC";
227			compatible = "gianfar";
228			reg = <0x25000 0x1000>;
229			ranges = <0x0 0x25000 0x1000>;
230			local-mac-address = [ 00 00 00 00 00 00 ];
231			interrupts = <35 2 36 2 40 2>;
232			interrupt-parent = <&mpic>;
233			tbi-handle = <&tbi1>;
234			phy-handle = <&phy1>;
235
236			mdio@520 {
237				#address-cells = <1>;
238				#size-cells = <0>;
239				compatible = "fsl,gianfar-tbi";
240				reg = <0x520 0x20>;
241
242				tbi1: tbi-phy@11 {
243					reg = <0x11>;
244					device_type = "tbi-phy";
245				};
246			};
247		};
248
249		enet2: ethernet@26000 {
250			#address-cells = <1>;
251			#size-cells = <1>;
252			cell-index = <2>;
253			device_type = "network";
254			model = "eTSEC";
255			compatible = "gianfar";
256			reg = <0x26000 0x1000>;
257			ranges = <0x0 0x26000 0x1000>;
258			local-mac-address = [ 00 00 00 00 00 00 ];
259			interrupts = <31 2 32 2 33 2>;
260			interrupt-parent = <&mpic>;
261			tbi-handle = <&tbi2>;
262			phy-handle = <&phy4>;
263
264			mdio@520 {
265				#address-cells = <1>;
266				#size-cells = <0>;
267				compatible = "fsl,gianfar-tbi";
268				reg = <0x520 0x20>;
269
270				tbi2: tbi-phy@11 {
271					reg = <0x11>;
272					device_type = "tbi-phy";
273				};
274			};
275		};
276
277		enet3: ethernet@27000 {
278			#address-cells = <1>;
279			#size-cells = <1>;
280			cell-index = <3>;
281			device_type = "network";
282			model = "eTSEC";
283			compatible = "gianfar";
284			reg = <0x27000 0x1000>;
285			ranges = <0x0 0x27000 0x1000>;
286			local-mac-address = [ 00 00 00 00 00 00 ];
287			interrupts = <37 2 38 2 39 2>;
288			interrupt-parent = <&mpic>;
289			tbi-handle = <&tbi3>;
290			phy-handle = <&phy5>;
291
292			mdio@520 {
293				#address-cells = <1>;
294				#size-cells = <0>;
295				compatible = "fsl,gianfar-tbi";
296				reg = <0x520 0x20>;
297
298				tbi3: tbi-phy@11 {
299					reg = <0x11>;
300					device_type = "tbi-phy";
301				};
302			};
303		};
304
305		serial0: serial@4500 {
306			cell-index = <0>;
307			device_type = "serial";
308			compatible = "fsl,ns16550", "ns16550";
309			reg = <0x4500 0x100>;	// reg base, size
310			clock-frequency = <0>;	// should we fill in in uboot?
311			current-speed = <115200>;
312			interrupts = <42 2>;
313			interrupt-parent = <&mpic>;
314		};
315
316		serial1: serial@4600 {
317			cell-index = <1>;
318			device_type = "serial";
319			compatible = "fsl,ns16550", "ns16550";
320			reg = <0x4600 0x100>;	// reg base, size
321			clock-frequency = <0>;	// should we fill in in uboot?
322			current-speed = <115200>;
323			interrupts = <42 2>;
324			interrupt-parent = <&mpic>;
325		};
326
327		global-utilities@e0000 {	// global utilities reg
328			compatible = "fsl,mpc8548-guts";
329			reg = <0xe0000 0x1000>;
330			fsl,has-rstcr;
331		};
332
333		mpic: pic@40000 {
334			interrupt-controller;
335			#address-cells = <0>;
336			#interrupt-cells = <2>;
337			reg = <0x40000 0x40000>;
338			compatible = "chrp,open-pic";
339			device_type = "open-pic";
340		};
341	};
342
343	localbus@a0005000 {
344		compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
345			     "simple-bus";
346		#address-cells = <2>;
347		#size-cells = <1>;
348		reg = <0xa0005000 0x100>;	// BRx, ORx, etc.
349		interrupt-parent = <&mpic>;
350		interrupts = <19 2>;
351
352		ranges = <
353			0 0x0 0xfc000000 0x04000000	// NOR FLASH bank 1
354			1 0x0 0xf8000000 0x08000000	// NOR FLASH bank 0
355			2 0x0 0xa3000000 0x00008000	// CAN (2 x CC770)
356			3 0x0 0xa3010000 0x00008000	// NAND FLASH
357
358		>;
359
360		flash@1,0 {
361			#address-cells = <1>;
362			#size-cells = <1>;
363			compatible = "cfi-flash";
364			reg = <1 0x0 0x8000000>;
365			bank-width = <4>;
366			device-width = <1>;
367
368			partition@0 {
369				label = "kernel";
370				reg = <0x00000000 0x00200000>;
371			};
372			partition@200000 {
373				label = "root";
374				reg = <0x00200000 0x00300000>;
375			};
376			partition@500000 {
377				label = "user";
378				reg = <0x00500000 0x07a00000>;
379			};
380			partition@7f00000 {
381				label = "env1";
382				reg = <0x07f00000 0x00040000>;
383			};
384			partition@7f40000 {
385				label = "env2";
386				reg = <0x07f40000 0x00040000>;
387			};
388			partition@7f80000 {
389				label = "u-boot";
390				reg = <0x07f80000 0x00080000>;
391				read-only;
392			};
393		};
394
395		/* Note: CAN support needs be enabled in U-Boot */
396		can@2,0 {
397			compatible = "bosch,cc770"; // Bosch CC770
398			reg = <2 0x0 0x100>;
399			interrupts = <4 1>;
400			interrupt-parent = <&mpic>;
401			bosch,external-clock-frequency = <16000000>;
402			bosch,disconnect-rx1-input;
403			bosch,disconnect-tx1-output;
404			bosch,iso-low-speed-mux;
405			bosch,clock-out-frequency = <16000000>;
406		};
407
408		can@2,100 {
409			compatible = "bosch,cc770"; // Bosch CC770
410			reg = <2 0x100 0x100>;
411			interrupts = <4 1>;
412			interrupt-parent = <&mpic>;
413			bosch,external-clock-frequency = <16000000>;
414			bosch,disconnect-rx1-input;
415			bosch,disconnect-tx1-output;
416			bosch,iso-low-speed-mux;
417		};
418
419		/* Note: NAND support needs to be enabled in U-Boot */
420		upm@3,0 {
421			#address-cells = <0>;
422			#size-cells = <0>;
423			compatible = "tqc,tqm8548-upm-nand", "fsl,upm-nand";
424			reg = <3 0x0 0x800>;
425			fsl,upm-addr-offset = <0x10>;
426			fsl,upm-cmd-offset = <0x08>;
427			/* Micron MT29F8G08FAB multi-chip device */
428			fsl,upm-addr-line-cs-offsets = <0x0 0x200>;
429			fsl,upm-wait-flags = <0x5>;
430			chip-delay = <25>; // in micro-seconds
431
432			nand@0 {
433				#address-cells = <1>;
434				#size-cells = <1>;
435
436				partition@0 {
437					    label = "fs";
438					    reg = <0x00000000 0x10000000>;
439				};
440			};
441		};
442	};
443
444	pci0: pci@a0008000 {
445		#interrupt-cells = <1>;
446		#size-cells = <2>;
447		#address-cells = <3>;
448		compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
449		device_type = "pci";
450		reg = <0xa0008000 0x1000>;
451		clock-frequency = <33333333>;
452		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
453		interrupt-map = <
454				/* IDSEL 28 */
455				 0xe000 0 0 1 &mpic 2 1
456				 0xe000 0 0 2 &mpic 3 1
457				 0xe000 0 0 3 &mpic 6 1
458				 0xe000 0 0 4 &mpic 5 1
459
460				/* IDSEL 11 */
461				 0x5800 0 0 1 &mpic 6 1
462				 0x5800 0 0 2 &mpic 5 1
463				 >;
464
465		interrupt-parent = <&mpic>;
466		interrupts = <24 2>;
467		bus-range = <0 0>;
468		ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
469			  0x01000000 0 0x00000000 0xa2000000 0 0x01000000>;
470	};
471
472	pci1: pcie@a000a000 {
473		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
474		interrupt-map = <
475			/* IDSEL 0x0 (PEX) */
476			0x00000 0 0 1 &mpic 0 1
477			0x00000 0 0 2 &mpic 1 1
478			0x00000 0 0 3 &mpic 2 1
479			0x00000 0 0 4 &mpic 3 1>;
480
481		interrupt-parent = <&mpic>;
482		interrupts = <26 2>;
483		bus-range = <0 0xff>;
484		ranges = <0x02000000 0 0xb0000000 0xb0000000 0 0x10000000
485			  0x01000000 0 0x00000000 0xaf000000 0 0x08000000>;
486		clock-frequency = <33333333>;
487		#interrupt-cells = <1>;
488		#size-cells = <2>;
489		#address-cells = <3>;
490		reg = <0xa000a000 0x1000>;
491		compatible = "fsl,mpc8548-pcie";
492		device_type = "pci";
493		pcie@0 {
494			reg = <0 0 0 0 0>;
495			#size-cells = <2>;
496			#address-cells = <3>;
497			device_type = "pci";
498			ranges = <0x02000000 0 0xb0000000 0x02000000 0
499			          0xb0000000 0 0x10000000
500				  0x01000000 0 0x00000000 0x01000000 0
501				  0x00000000 0 0x08000000>;
502		};
503	};
504};