xref: /linux/arch/powerpc/boot/dts/mpc8377_rdb.dts (revision bba2c3615bd6cfee7456d1130f2e6b01b3f4e9ba)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * MPC8377E RDB Device Tree Source
4 *
5 * Copyright 2007, 2008 Freescale Semiconductor Inc.
6 */
7
8/dts-v1/;
9
10/ {
11	compatible = "fsl,mpc8377rdb";
12	model = "fsl,mpc8377rdb";
13	#address-cells = <1>;
14	#size-cells = <1>;
15
16	aliases {
17		ethernet0 = &enet0;
18		ethernet1 = &enet1;
19		serial0 = &serial0;
20		serial1 = &serial1;
21		pci0 = &pci0;
22		pci1 = &pci1;
23		pci2 = &pci2;
24	};
25
26	cpus {
27		#address-cells = <1>;
28		#size-cells = <0>;
29
30		PowerPC,8377@0 {
31			device_type = "cpu";
32			reg = <0x0>;
33			d-cache-line-size = <32>;
34			i-cache-line-size = <32>;
35			d-cache-size = <32768>;
36			i-cache-size = <32768>;
37			timebase-frequency = <0>;
38			bus-frequency = <0>;
39			clock-frequency = <0>;
40		};
41	};
42
43	memory@0 {
44		device_type = "memory";
45		reg = <0x00000000 0x10000000>;	// 256MB at 0
46	};
47
48	localbus@e0005000 {
49		#address-cells = <2>;
50		#size-cells = <1>;
51		compatible = "fsl,mpc8377-elbc", "fsl,elbc", "simple-bus";
52		reg = <0xe0005000 0x1000>;
53		interrupts = <77 0x8>;
54		interrupt-parent = <&ipic>;
55
56		// CS0 and CS1 are swapped when
57		// booting from nand, but the
58		// addresses are the same.
59		ranges = <0x0 0x0 0xfe000000 0x00800000
60		          0x1 0x0 0xe0600000 0x00008000
61		          0x2 0x0 0xf0000000 0x00020000
62		          0x3 0x0 0xfa000000 0x00008000>;
63
64		flash@0,0 {
65			#address-cells = <1>;
66			#size-cells = <1>;
67			compatible = "cfi-flash";
68			reg = <0x0 0x0 0x800000>;
69			bank-width = <2>;
70			device-width = <1>;
71		};
72
73		nand@1,0 {
74			#address-cells = <1>;
75			#size-cells = <1>;
76			compatible = "fsl,mpc8377-fcm-nand",
77			             "fsl,elbc-fcm-nand";
78			reg = <0x1 0x0 0x8000>;
79
80			u-boot@0 {
81				reg = <0x0 0x100000>;
82				read-only;
83			};
84
85			kernel@100000 {
86				reg = <0x100000 0x300000>;
87			};
88			fs@400000 {
89				reg = <0x400000 0x1c00000>;
90			};
91		};
92	};
93
94	immr@e0000000 {
95		#address-cells = <1>;
96		#size-cells = <1>;
97		device_type = "soc";
98		compatible = "simple-bus";
99		ranges = <0x0 0xe0000000 0x00100000>;
100		reg = <0xe0000000 0x00000200>;
101		bus-frequency = <0>;
102
103		watchdog@200 {
104			device_type = "watchdog";
105			compatible = "mpc83xx_wdt";
106			reg = <0x200 0x100>;
107		};
108
109		gpio1: gpio-controller@c00 {
110			#gpio-cells = <2>;
111			compatible = "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
112			reg = <0xc00 0x100>;
113			interrupts = <74 0x8>;
114			interrupt-parent = <&ipic>;
115			gpio-controller;
116		};
117
118		gpio2: gpio-controller@d00 {
119			#gpio-cells = <2>;
120			compatible = "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
121			reg = <0xd00 0x100>;
122			interrupts = <75 0x8>;
123			interrupt-parent = <&ipic>;
124			gpio-controller;
125		};
126
127		sleep-nexus {
128			#address-cells = <1>;
129			#size-cells = <1>;
130			compatible = "simple-bus";
131			sleep = <&pmc 0x0c000000>;
132			ranges;
133
134			i2c@3000 {
135				#address-cells = <1>;
136				#size-cells = <0>;
137				cell-index = <0>;
138				compatible = "fsl-i2c";
139				reg = <0x3000 0x100>;
140				interrupts = <14 0x8>;
141				interrupt-parent = <&ipic>;
142				dfsrr;
143
144				dtt@48 {
145					compatible = "national,lm75";
146					reg = <0x48>;
147				};
148
149				at24@50 {
150					compatible = "atmel,24c256";
151					reg = <0x50>;
152				};
153
154				rtc@68 {
155					compatible = "dallas,ds1339";
156					reg = <0x68>;
157				};
158
159				mcu_pio: mcu@a {
160					#gpio-cells = <2>;
161					compatible = "fsl,mc9s08qg8-mpc8377erdb",
162						     "fsl,mcu-mpc8349emitx";
163					reg = <0x0a>;
164					gpio-controller;
165				};
166			};
167
168			sdhci@2e000 {
169				compatible = "fsl,mpc8377-esdhc", "fsl,esdhc";
170				reg = <0x2e000 0x1000>;
171				interrupts = <42 0x8>;
172				interrupt-parent = <&ipic>;
173				sdhci,wp-inverted;
174				/* Filled in by U-Boot */
175				clock-frequency = <111111111>;
176			};
177		};
178
179		i2c@3100 {
180			#address-cells = <1>;
181			#size-cells = <0>;
182			cell-index = <1>;
183			compatible = "fsl-i2c";
184			reg = <0x3100 0x100>;
185			interrupts = <15 0x8>;
186			interrupt-parent = <&ipic>;
187			dfsrr;
188		};
189
190		spi@7000 {
191			cell-index = <0>;
192			compatible = "fsl,spi";
193			reg = <0x7000 0x1000>;
194			interrupts = <16 0x8>;
195			interrupt-parent = <&ipic>;
196			mode = "cpu";
197		};
198
199		dma@82a8 {
200			#address-cells = <1>;
201			#size-cells = <1>;
202			compatible = "fsl,mpc8377-dma", "fsl,elo-dma";
203			reg = <0x82a8 4>;
204			ranges = <0 0x8100 0x1a8>;
205			interrupt-parent = <&ipic>;
206			interrupts = <71 8>;
207			cell-index = <0>;
208			dma-channel@0 {
209				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
210				reg = <0 0x80>;
211				cell-index = <0>;
212				interrupt-parent = <&ipic>;
213				interrupts = <71 8>;
214			};
215			dma-channel@80 {
216				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
217				reg = <0x80 0x80>;
218				cell-index = <1>;
219				interrupt-parent = <&ipic>;
220				interrupts = <71 8>;
221			};
222			dma-channel@100 {
223				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
224				reg = <0x100 0x80>;
225				cell-index = <2>;
226				interrupt-parent = <&ipic>;
227				interrupts = <71 8>;
228			};
229			dma-channel@180 {
230				compatible = "fsl,mpc8377-dma-channel", "fsl,elo-dma-channel";
231				reg = <0x180 0x28>;
232				cell-index = <3>;
233				interrupt-parent = <&ipic>;
234				interrupts = <71 8>;
235			};
236		};
237
238		usb@23000 {
239			compatible = "fsl-usb2-dr";
240			reg = <0x23000 0x1000>;
241			#address-cells = <1>;
242			#size-cells = <0>;
243			interrupt-parent = <&ipic>;
244			interrupts = <38 0x8>;
245			phy_type = "ulpi";
246			sleep = <&pmc 0x00c00000>;
247		};
248
249		enet0: ethernet@24000 {
250			#address-cells = <1>;
251			#size-cells = <1>;
252			cell-index = <0>;
253			device_type = "network";
254			model = "eTSEC";
255			compatible = "gianfar";
256			reg = <0x24000 0x1000>;
257			ranges = <0x0 0x24000 0x1000>;
258			local-mac-address = [ 00 00 00 00 00 00 ];
259			interrupts = <32 0x8 33 0x8 34 0x8>;
260			phy-connection-type = "mii";
261			interrupt-parent = <&ipic>;
262			tbi-handle = <&tbi0>;
263			phy-handle = <&phy2>;
264			sleep = <&pmc 0xc0000000>;
265			fsl,magic-packet;
266
267			mdio@520 {
268				#address-cells = <1>;
269				#size-cells = <0>;
270				compatible = "fsl,gianfar-mdio";
271				reg = <0x520 0x20>;
272
273				phy2: ethernet-phy@2 {
274					interrupt-parent = <&ipic>;
275					interrupts = <17 0x8>;
276					reg = <0x2>;
277				};
278
279				tbi0: tbi-phy@11 {
280					reg = <0x11>;
281					device_type = "tbi-phy";
282				};
283			};
284		};
285
286		enet1: ethernet@25000 {
287			#address-cells = <1>;
288			#size-cells = <1>;
289			cell-index = <1>;
290			device_type = "network";
291			model = "eTSEC";
292			compatible = "gianfar";
293			reg = <0x25000 0x1000>;
294			ranges = <0x0 0x25000 0x1000>;
295			local-mac-address = [ 00 00 00 00 00 00 ];
296			interrupts = <35 0x8 36 0x8 37 0x8>;
297			phy-connection-type = "mii";
298			interrupt-parent = <&ipic>;
299			fixed-link = <1 1 1000 0 0>;
300			tbi-handle = <&tbi1>;
301			sleep = <&pmc 0x30000000>;
302			fsl,magic-packet;
303
304			mdio@520 {
305				#address-cells = <1>;
306				#size-cells = <0>;
307				compatible = "fsl,gianfar-tbi";
308				reg = <0x520 0x20>;
309
310				tbi1: tbi-phy@11 {
311					reg = <0x11>;
312					device_type = "tbi-phy";
313				};
314			};
315		};
316
317		serial0: serial@4500 {
318			cell-index = <0>;
319			device_type = "serial";
320			compatible = "fsl,ns16550", "ns16550";
321			reg = <0x4500 0x100>;
322			clock-frequency = <0>;
323			interrupts = <9 0x8>;
324			interrupt-parent = <&ipic>;
325		};
326
327		serial1: serial@4600 {
328			cell-index = <1>;
329			device_type = "serial";
330			compatible = "fsl,ns16550", "ns16550";
331			reg = <0x4600 0x100>;
332			clock-frequency = <0>;
333			interrupts = <10 0x8>;
334			interrupt-parent = <&ipic>;
335		};
336
337		crypto@30000 {
338			compatible = "fsl,sec3.0", "fsl,sec2.4", "fsl,sec2.2",
339				     "fsl,sec2.1", "fsl,sec2.0";
340			reg = <0x30000 0x10000>;
341			interrupts = <11 0x8>;
342			interrupt-parent = <&ipic>;
343			fsl,num-channels = <4>;
344			fsl,channel-fifo-len = <24>;
345			fsl,exec-units-mask = <0x9fe>;
346			fsl,descriptor-types-mask = <0x3ab0ebf>;
347			sleep = <&pmc 0x03000000>;
348		};
349
350		sata@18000 {
351			compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
352			reg = <0x18000 0x1000>;
353			interrupts = <44 0x8>;
354			interrupt-parent = <&ipic>;
355			sleep = <&pmc 0x000000c0>;
356		};
357
358		sata@19000 {
359			compatible = "fsl,mpc8377-sata", "fsl,pq-sata";
360			reg = <0x19000 0x1000>;
361			interrupts = <45 0x8>;
362			interrupt-parent = <&ipic>;
363			sleep = <&pmc 0x00000030>;
364		};
365
366		/* IPIC
367		 * interrupts cell = <intr #, sense>
368		 * sense values match linux IORESOURCE_IRQ_* defines:
369		 * sense == 8: Level, low assertion
370		 * sense == 2: Edge, high-to-low change
371		 */
372		ipic: interrupt-controller@700 {
373			compatible = "fsl,ipic";
374			interrupt-controller;
375			#address-cells = <0>;
376			#interrupt-cells = <2>;
377			reg = <0x700 0x100>;
378		};
379
380		pmc: power@b00 {
381			compatible = "fsl,mpc8377-pmc", "fsl,mpc8349-pmc";
382			reg = <0xb00 0x100 0xa00 0x100>;
383			interrupts = <80 0x8>;
384			interrupt-parent = <&ipic>;
385		};
386	};
387
388	pci0: pci@e0008500 {
389		interrupt-map-mask = <0xf800 0 0 7>;
390		interrupt-map = <
391				/* IRQ5 = 21 = 0x15, IRQ6 = 0x16, IRQ7 = 23 = 0x17 */
392
393				/* IDSEL AD14 IRQ6 inta */
394				 0x7000 0x0 0x0 0x1 &ipic 22 0x8
395
396				/* IDSEL AD15 IRQ5 inta, IRQ6 intb, IRQ7 intd */
397				 0x7800 0x0 0x0 0x1 &ipic 21 0x8
398				 0x7800 0x0 0x0 0x2 &ipic 22 0x8
399				 0x7800 0x0 0x0 0x4 &ipic 23 0x8
400
401				/* IDSEL AD28 IRQ7 inta, IRQ5 intb IRQ6 intc*/
402				 0xE000 0x0 0x0 0x1 &ipic 23 0x8
403				 0xE000 0x0 0x0 0x2 &ipic 21 0x8
404				 0xE000 0x0 0x0 0x3 &ipic 22 0x8>;
405		interrupt-parent = <&ipic>;
406		interrupts = <66 0x8>;
407		bus-range = <0 0>;
408		ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
409		          0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
410		          0x01000000 0x0 0x00000000 0xe0300000 0x0 0x00100000>;
411		sleep = <&pmc 0x00010000>;
412		clock-frequency = <66666666>;
413		#interrupt-cells = <1>;
414		#size-cells = <2>;
415		#address-cells = <3>;
416		reg = <0xe0008500 0x100		/* internal registers */
417		       0xe0008300 0x8>;		/* config space access registers */
418		compatible = "fsl,mpc8349-pci";
419		device_type = "pci";
420	};
421
422	pci1: pcie@e0009000 {
423		#address-cells = <3>;
424		#size-cells = <2>;
425		#interrupt-cells = <1>;
426		device_type = "pci";
427		compatible = "fsl,mpc8377-pcie", "fsl,mpc8314-pcie";
428		reg = <0xe0009000 0x00001000>;
429		ranges = <0x02000000 0 0xa8000000 0xa8000000 0 0x10000000
430		          0x01000000 0 0x00000000 0xb8000000 0 0x00800000>;
431		bus-range = <0 255>;
432		interrupt-map-mask = <0xf800 0 0 7>;
433		interrupt-map = <0 0 0 1 &ipic 1 8
434				 0 0 0 2 &ipic 1 8
435				 0 0 0 3 &ipic 1 8
436				 0 0 0 4 &ipic 1 8>;
437		sleep = <&pmc 0x00300000>;
438		clock-frequency = <0>;
439
440		pcie@0 {
441			#address-cells = <3>;
442			#size-cells = <2>;
443			device_type = "pci";
444			reg = <0 0 0 0 0>;
445			ranges = <0x02000000 0 0xa8000000
446				  0x02000000 0 0xa8000000
447				  0 0x10000000
448				  0x01000000 0 0x00000000
449				  0x01000000 0 0x00000000
450				  0 0x00800000>;
451		};
452	};
453
454	pci2: pcie@e000a000 {
455		#address-cells = <3>;
456		#size-cells = <2>;
457		#interrupt-cells = <1>;
458		device_type = "pci";
459		compatible = "fsl,mpc8377-pcie", "fsl,mpc8314-pcie";
460		reg = <0xe000a000 0x00001000>;
461		ranges = <0x02000000 0 0xc8000000 0xc8000000 0 0x10000000
462			  0x01000000 0 0x00000000 0xd8000000 0 0x00800000>;
463		bus-range = <0 255>;
464		interrupt-map-mask = <0xf800 0 0 7>;
465		interrupt-map = <0 0 0 1 &ipic 2 8
466				 0 0 0 2 &ipic 2 8
467				 0 0 0 3 &ipic 2 8
468				 0 0 0 4 &ipic 2 8>;
469		sleep = <&pmc 0x000c0000>;
470		clock-frequency = <0>;
471
472		pcie@0 {
473			#address-cells = <3>;
474			#size-cells = <2>;
475			device_type = "pci";
476			reg = <0 0 0 0 0>;
477			ranges = <0x02000000 0 0xc8000000
478				  0x02000000 0 0xc8000000
479				  0 0x10000000
480				  0x01000000 0 0x00000000
481				  0x01000000 0 0x00000000
482				  0 0x00800000>;
483		};
484	};
485
486	leds {
487		compatible = "gpio-leds";
488
489		pwr {
490			gpios = <&mcu_pio 0 0>;
491			default-state = "on";
492		};
493
494		hdd {
495			gpios = <&mcu_pio 1 0>;
496			linux,default-trigger = "disk-activity";
497		};
498	};
499};
500