mpc834x_mds.dts 9.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 * MPC8349E MDS Device Tree Source
 *
 * Copyright 2005, 2006 Freescale Semiconductor Inc.
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 */

12 13
/dts-v1/;

14 15
/ {
	model = "MPC8349EMDS";
16
	compatible = "MPC8349EMDS", "MPC834xMDS", "MPC83xxMDS";
17 18 19
	#address-cells = <1>;
	#size-cells = <1>;

20 21 22 23 24 25 26 27 28
	aliases {
		ethernet0 = &enet0;
		ethernet1 = &enet1;
		serial0 = &serial0;
		serial1 = &serial1;
		pci0 = &pci0;
		pci1 = &pci1;
	};

29 30 31 32 33 34
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		PowerPC,8349@0 {
			device_type = "cpu";
35
			reg = <0x0>;
36 37 38 39
			d-cache-line-size = <32>;
			i-cache-line-size = <32>;
			d-cache-size = <32768>;
			i-cache-size = <32768>;
40 41 42 43 44 45 46 47
			timebase-frequency = <0>;	// from bootloader
			bus-frequency = <0>;		// from bootloader
			clock-frequency = <0>;		// from bootloader
		};
	};

	memory {
		device_type = "memory";
48
		reg = <0x00000000 0x10000000>;	// 256MB at 0
49 50
	};

51
	bcsr@e2400000 {
52
		compatible = "fsl,mpc8349mds-bcsr";
53
		reg = <0xe2400000 0x8000>;
54 55
	};

56 57 58 59
	soc8349@e0000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		device_type = "soc";
60
		compatible = "simple-bus";
61 62
		ranges = <0x0 0xe0000000 0x00100000>;
		reg = <0xe0000000 0x00000200>;
63 64 65 66 67
		bus-frequency = <0>;

		wdt@200 {
			device_type = "watchdog";
			compatible = "mpc83xx_wdt";
68
			reg = <0x200 0x100>;
69 70 71
		};

		i2c@3000 {
K
Kim Phillips 已提交
72 73
			#address-cells = <1>;
			#size-cells = <0>;
74
			cell-index = <0>;
75
			compatible = "fsl-i2c";
76
			reg = <0x3000 0x100>;
77
			interrupts = <14 0x8>;
78
			interrupt-parent = <&ipic>;
79
			dfsrr;
K
Kim Phillips 已提交
80 81 82

			rtc@68 {
				compatible = "dallas,ds1374";
83
				reg = <0x68>;
K
Kim Phillips 已提交
84
			};
85 86 87
		};

		i2c@3100 {
K
Kim Phillips 已提交
88 89
			#address-cells = <1>;
			#size-cells = <0>;
90
			cell-index = <1>;
91
			compatible = "fsl-i2c";
92
			reg = <0x3100 0x100>;
93
			interrupts = <15 0x8>;
94
			interrupt-parent = <&ipic>;
95 96 97 98
			dfsrr;
		};

		spi@7000 {
99 100
			cell-index = <0>;
			compatible = "fsl,spi";
101
			reg = <0x7000 0x1000>;
102
			interrupts = <16 0x8>;
103
			interrupt-parent = <&ipic>;
104
			mode = "cpu";
105 106
		};

107 108 109 110 111 112 113 114 115 116 117 118
		dma@82a8 {
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
			reg = <0x82a8 4>;
			ranges = <0 0x8100 0x1a8>;
			interrupt-parent = <&ipic>;
			interrupts = <71 8>;
			cell-index = <0>;
			dma-channel@0 {
				compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
				reg = <0 0x80>;
119
				cell-index = <0>;
120 121 122 123 124 125
				interrupt-parent = <&ipic>;
				interrupts = <71 8>;
			};
			dma-channel@80 {
				compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
				reg = <0x80 0x80>;
126
				cell-index = <1>;
127 128 129 130 131 132
				interrupt-parent = <&ipic>;
				interrupts = <71 8>;
			};
			dma-channel@100 {
				compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
				reg = <0x100 0x80>;
133
				cell-index = <2>;
134 135 136 137 138 139
				interrupt-parent = <&ipic>;
				interrupts = <71 8>;
			};
			dma-channel@180 {
				compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
				reg = <0x180 0x28>;
140
				cell-index = <3>;
141 142 143 144 145
				interrupt-parent = <&ipic>;
				interrupts = <71 8>;
			};
		};

146
		/* phy type (ULPI or SERIAL) are only types supported for MPH */
147 148 149
		/* port = 0 or 1 */
		usb@22000 {
			compatible = "fsl-usb2-mph";
150
			reg = <0x22000 0x1000>;
151 152
			#address-cells = <1>;
			#size-cells = <0>;
153
			interrupt-parent = <&ipic>;
154
			interrupts = <39 0x8>;
155 156 157 158 159 160
			phy_type = "ulpi";
			port1;
		};
		/* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
		usb@23000 {
			compatible = "fsl-usb2-dr";
161
			reg = <0x23000 0x1000>;
162 163
			#address-cells = <1>;
			#size-cells = <0>;
164
			interrupt-parent = <&ipic>;
165
			interrupts = <38 0x8>;
166
			dr_mode = "otg";
167 168 169
			phy_type = "ulpi";
		};

170
		enet0: ethernet@24000 {
171 172
			#address-cells = <1>;
			#size-cells = <1>;
173
			cell-index = <0>;
174 175 176
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
177
			reg = <0x24000 0x1000>;
178
			ranges = <0x0 0x24000 0x1000>;
179
			local-mac-address = [ 00 00 00 00 00 00 ];
180
			interrupts = <32 0x8 33 0x8 34 0x8>;
181
			interrupt-parent = <&ipic>;
182
			tbi-handle = <&tbi0>;
183
			phy-handle = <&phy0>;
184
			linux,network-index = <0>;
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210

			mdio@520 {
				#address-cells = <1>;
				#size-cells = <0>;
				compatible = "fsl,gianfar-mdio";
				reg = <0x520 0x20>;

				phy0: ethernet-phy@0 {
					interrupt-parent = <&ipic>;
					interrupts = <17 0x8>;
					reg = <0x0>;
					device_type = "ethernet-phy";
				};

				phy1: ethernet-phy@1 {
					interrupt-parent = <&ipic>;
					interrupts = <18 0x8>;
					reg = <0x1>;
					device_type = "ethernet-phy";
				};

				tbi0: tbi-phy@11 {
					reg = <0x11>;
					device_type = "tbi-phy";
				};
			};
211 212
		};

213
		enet1: ethernet@25000 {
214 215
			#address-cells = <1>;
			#size-cells = <1>;
216
			cell-index = <1>;
217 218 219
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
220
			reg = <0x25000 0x1000>;
221
			ranges = <0x0 0x25000 0x1000>;
222
			local-mac-address = [ 00 00 00 00 00 00 ];
223
			interrupts = <35 0x8 36 0x8 37 0x8>;
224
			interrupt-parent = <&ipic>;
225
			tbi-handle = <&tbi1>;
226
			phy-handle = <&phy1>;
227
			linux,network-index = <1>;
228 229 230 231 232 233 234 235 236 237 238 239

			mdio@520 {
				#address-cells = <1>;
				#size-cells = <0>;
				compatible = "fsl,gianfar-tbi";
				reg = <0x520 0x20>;

				tbi1: tbi-phy@11 {
					reg = <0x11>;
					device_type = "tbi-phy";
				};
			};
240 241
		};

242 243
		serial0: serial@4500 {
			cell-index = <0>;
244 245
			device_type = "serial";
			compatible = "ns16550";
246
			reg = <0x4500 0x100>;
247
			clock-frequency = <0>;
248
			interrupts = <9 0x8>;
249
			interrupt-parent = <&ipic>;
250 251
		};

252 253
		serial1: serial@4600 {
			cell-index = <1>;
254 255
			device_type = "serial";
			compatible = "ns16550";
256
			reg = <0x4600 0x100>;
257
			clock-frequency = <0>;
258
			interrupts = <10 0x8>;
259
			interrupt-parent = <&ipic>;
260 261 262
		};

		crypto@30000 {
263
			compatible = "fsl,sec2.0";
264
			reg = <0x30000 0x10000>;
265
			interrupts = <11 0x8>;
266
			interrupt-parent = <&ipic>;
267 268 269 270
			fsl,num-channels = <4>;
			fsl,channel-fifo-len = <24>;
			fsl,exec-units-mask = <0x7e>;
			fsl,descriptor-types-mask = <0x01010ebf>;
271 272 273 274 275 276 277 278
		};

		/* IPIC
		 * interrupts cell = <intr #, sense>
		 * sense values match linux IORESOURCE_IRQ_* defines:
		 * sense == 8: Level, low assertion
		 * sense == 2: Edge, high-to-low change
		 */
279
		ipic: pic@700 {
280 281 282
			interrupt-controller;
			#address-cells = <0>;
			#interrupt-cells = <2>;
283
			reg = <0x700 0x100>;
284 285 286
			device_type = "ipic";
		};
	};
287

288
	pci0: pci@e0008500 {
289
		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
290 291 292
		interrupt-map = <

				/* IDSEL 0x11 */
293 294 295 296
				 0x8800 0x0 0x0 0x1 &ipic 20 0x8
				 0x8800 0x0 0x0 0x2 &ipic 21 0x8
				 0x8800 0x0 0x0 0x3 &ipic 22 0x8
				 0x8800 0x0 0x0 0x4 &ipic 23 0x8
297 298

				/* IDSEL 0x12 */
299 300 301 302
				 0x9000 0x0 0x0 0x1 &ipic 22 0x8
				 0x9000 0x0 0x0 0x2 &ipic 23 0x8
				 0x9000 0x0 0x0 0x3 &ipic 20 0x8
				 0x9000 0x0 0x0 0x4 &ipic 21 0x8
303 304

				/* IDSEL 0x13 */
305 306 307 308
				 0x9800 0x0 0x0 0x1 &ipic 23 0x8
				 0x9800 0x0 0x0 0x2 &ipic 20 0x8
				 0x9800 0x0 0x0 0x3 &ipic 21 0x8
				 0x9800 0x0 0x0 0x4 &ipic 22 0x8
309 310

				/* IDSEL 0x15 */
311 312 313 314
				 0xa800 0x0 0x0 0x1 &ipic 20 0x8
				 0xa800 0x0 0x0 0x2 &ipic 21 0x8
				 0xa800 0x0 0x0 0x3 &ipic 22 0x8
				 0xa800 0x0 0x0 0x4 &ipic 23 0x8
315 316

				/* IDSEL 0x16 */
317 318 319 320
				 0xb000 0x0 0x0 0x1 &ipic 23 0x8
				 0xb000 0x0 0x0 0x2 &ipic 20 0x8
				 0xb000 0x0 0x0 0x3 &ipic 21 0x8
				 0xb000 0x0 0x0 0x4 &ipic 22 0x8
321 322

				/* IDSEL 0x17 */
323 324 325 326
				 0xb800 0x0 0x0 0x1 &ipic 22 0x8
				 0xb800 0x0 0x0 0x2 &ipic 23 0x8
				 0xb800 0x0 0x0 0x3 &ipic 20 0x8
				 0xb800 0x0 0x0 0x4 &ipic 21 0x8
327 328

				/* IDSEL 0x18 */
329 330 331
				 0xc000 0x0 0x0 0x1 &ipic 21 0x8
				 0xc000 0x0 0x0 0x2 &ipic 22 0x8
				 0xc000 0x0 0x0 0x3 &ipic 23 0x8
332
				 0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
333
		interrupt-parent = <&ipic>;
334
		interrupts = <66 0x8>;
335
		bus-range = <0 0>;
336 337 338 339
		ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
			  0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
			  0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
		clock-frequency = <66666666>;
340 341 342
		#interrupt-cells = <1>;
		#size-cells = <2>;
		#address-cells = <3>;
343 344
		reg = <0xe0008500 0x100		/* internal registers */
		       0xe0008300 0x8>;		/* config space access registers */
345 346 347 348
		compatible = "fsl,mpc8349-pci";
		device_type = "pci";
	};

349
	pci1: pci@e0008600 {
350
		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
351 352 353
		interrupt-map = <

				/* IDSEL 0x11 */
354 355 356 357
				 0x8800 0x0 0x0 0x1 &ipic 20 0x8
				 0x8800 0x0 0x0 0x2 &ipic 21 0x8
				 0x8800 0x0 0x0 0x3 &ipic 22 0x8
				 0x8800 0x0 0x0 0x4 &ipic 23 0x8
358 359

				/* IDSEL 0x12 */
360 361 362 363
				 0x9000 0x0 0x0 0x1 &ipic 22 0x8
				 0x9000 0x0 0x0 0x2 &ipic 23 0x8
				 0x9000 0x0 0x0 0x3 &ipic 20 0x8
				 0x9000 0x0 0x0 0x4 &ipic 21 0x8
364 365

				/* IDSEL 0x13 */
366 367 368 369
				 0x9800 0x0 0x0 0x1 &ipic 23 0x8
				 0x9800 0x0 0x0 0x2 &ipic 20 0x8
				 0x9800 0x0 0x0 0x3 &ipic 21 0x8
				 0x9800 0x0 0x0 0x4 &ipic 22 0x8
370 371

				/* IDSEL 0x15 */
372 373 374 375
				 0xa800 0x0 0x0 0x1 &ipic 20 0x8
				 0xa800 0x0 0x0 0x2 &ipic 21 0x8
				 0xa800 0x0 0x0 0x3 &ipic 22 0x8
				 0xa800 0x0 0x0 0x4 &ipic 23 0x8
376 377

				/* IDSEL 0x16 */
378 379 380 381
				 0xb000 0x0 0x0 0x1 &ipic 23 0x8
				 0xb000 0x0 0x0 0x2 &ipic 20 0x8
				 0xb000 0x0 0x0 0x3 &ipic 21 0x8
				 0xb000 0x0 0x0 0x4 &ipic 22 0x8
382 383

				/* IDSEL 0x17 */
384 385 386 387
				 0xb800 0x0 0x0 0x1 &ipic 22 0x8
				 0xb800 0x0 0x0 0x2 &ipic 23 0x8
				 0xb800 0x0 0x0 0x3 &ipic 20 0x8
				 0xb800 0x0 0x0 0x4 &ipic 21 0x8
388 389

				/* IDSEL 0x18 */
390 391 392
				 0xc000 0x0 0x0 0x1 &ipic 21 0x8
				 0xc000 0x0 0x0 0x2 &ipic 22 0x8
				 0xc000 0x0 0x0 0x3 &ipic 23 0x8
393
				 0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
394
		interrupt-parent = <&ipic>;
395
		interrupts = <67 0x8>;
396
		bus-range = <0 0>;
397 398 399 400
		ranges = <0x02000000 0x0 0xb0000000 0xb0000000 0x0 0x10000000
			  0x42000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000
			  0x01000000 0x0 0x00000000 0xe2100000 0x0 0x00100000>;
		clock-frequency = <66666666>;
401 402 403
		#interrupt-cells = <1>;
		#size-cells = <2>;
		#address-cells = <3>;
404 405
		reg = <0xe0008600 0x100		/* internal registers */
		       0xe0008380 0x8>;		/* config space access registers */
406 407 408
		compatible = "fsl,mpc8349-pci";
		device_type = "pci";
	};
409
};