“cc7defa366ea770efb25add8711defe88862197b”上不存在“drivers/net/wireless/wl12xx/cmd.c”
mpc8641_hpcn.dts 12.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 * MPC8641 HPCN Device Tree Source
 *
 * Copyright 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
/dts-v1/;
13 14 15

/ {
	model = "MPC8641HPCN";
16
	compatible = "fsl,mpc8641hpcn";
17 18 19
	#address-cells = <1>;
	#size-cells = <1>;

20 21 22 23 24 25 26 27 28
	aliases {
		ethernet0 = &enet0;
		ethernet1 = &enet1;
		ethernet2 = &enet2;
		ethernet3 = &enet3;
		serial0 = &serial0;
		serial1 = &serial1;
		pci0 = &pci0;
		pci1 = &pci1;
29
		rapidio0 = &rapidio0;
30 31
	};

32 33 34 35 36 37 38
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		PowerPC,8641@0 {
			device_type = "cpu";
			reg = <0>;
39 40 41 42 43
			d-cache-line-size = <32>;
			i-cache-line-size = <32>;
			d-cache-size = <32768>;		// L1
			i-cache-size = <32768>;		// L1
			timebase-frequency = <0>;	// From uboot
44 45 46 47 48 49
			bus-frequency = <0>;		// From uboot
			clock-frequency = <0>;		// From uboot
		};
		PowerPC,8641@1 {
			device_type = "cpu";
			reg = <1>;
50 51 52 53 54
			d-cache-line-size = <32>;
			i-cache-line-size = <32>;
			d-cache-size = <32768>;
			i-cache-size = <32768>;
			timebase-frequency = <0>;	// From uboot
55 56 57 58 59 60 61
			bus-frequency = <0>;		// From uboot
			clock-frequency = <0>;		// From uboot
		};
	};

	memory {
		device_type = "memory";
62
		reg = <0x00000000 0x40000000>;	// 1G at 0x0
63 64
	};

65 66 67 68
	localbus@f8005000 {
		#address-cells = <2>;
		#size-cells = <1>;
		compatible = "fsl,mpc8641-localbus", "simple-bus";
69 70
		reg = <0xf8005000 0x1000>;
		interrupts = <19 2>;
71 72
		interrupt-parent = <&mpic>;

73 74 75 76
		ranges = <0 0 0xff800000 0x00800000
			  1 0 0xfe000000 0x01000000
			  2 0 0xf8200000 0x00100000
			  3 0 0xf8100000 0x00100000>;
77 78 79

		flash@0,0 {
			compatible = "cfi-flash";
80
			reg = <0 0 0x00800000>;
81 82 83 84 85 86
			bank-width = <2>;
			device-width = <2>;
			#address-cells = <1>;
			#size-cells = <1>;
			partition@0 {
				label = "kernel";
87
				reg = <0x00000000 0x00300000>;
88 89 90
			};
			partition@300000 {
				label = "firmware b";
91
				reg = <0x00300000 0x00100000>;
92 93 94 95
				read-only;
			};
			partition@400000 {
				label = "fs";
96
				reg = <0x00400000 0x00300000>;
97 98 99
			};
			partition@700000 {
				label = "firmware a";
100
				reg = <0x00700000 0x00100000>;
101 102 103 104 105
				read-only;
			};
		};
	};

106 107 108 109
	soc8641@f8000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		device_type = "soc";
110
		compatible = "simple-bus";
111 112
		ranges = <0x00000000 0xf8000000 0x00100000>;
		reg = <0xf8000000 0x00001000>;	// CCSRBAR
113 114 115
		bus-frequency = <0>;

		i2c@3000 {
116 117 118
			#address-cells = <1>;
			#size-cells = <0>;
			cell-index = <0>;
119
			compatible = "fsl-i2c";
120 121
			reg = <0x3000 0x100>;
			interrupts = <43 2>;
122
			interrupt-parent = <&mpic>;
123 124 125 126
			dfsrr;
		};

		i2c@3100 {
127 128 129
			#address-cells = <1>;
			#size-cells = <0>;
			cell-index = <1>;
130
			compatible = "fsl-i2c";
131 132
			reg = <0x3100 0x100>;
			interrupts = <43 2>;
133
			interrupt-parent = <&mpic>;
134 135 136
			dfsrr;
		};

137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
		dma@21300 {
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma";
			reg = <0x21300 0x4>;
			ranges = <0x0 0x21100 0x200>;
			cell-index = <0>;
			dma-channel@0 {
				compatible = "fsl,mpc8641-dma-channel",
						"fsl,eloplus-dma-channel";
				reg = <0x0 0x80>;
				cell-index = <0>;
				interrupt-parent = <&mpic>;
				interrupts = <20 2>;
			};
			dma-channel@80 {
				compatible = "fsl,mpc8641-dma-channel",
						"fsl,eloplus-dma-channel";
				reg = <0x80 0x80>;
				cell-index = <1>;
				interrupt-parent = <&mpic>;
				interrupts = <21 2>;
			};
			dma-channel@100 {
				compatible = "fsl,mpc8641-dma-channel",
						"fsl,eloplus-dma-channel";
				reg = <0x100 0x80>;
				cell-index = <2>;
				interrupt-parent = <&mpic>;
				interrupts = <22 2>;
			};
			dma-channel@180 {
				compatible = "fsl,mpc8641-dma-channel",
						"fsl,eloplus-dma-channel";
				reg = <0x180 0x80>;
				cell-index = <3>;
				interrupt-parent = <&mpic>;
				interrupts = <23 2>;
			};
		};

178 179 180
		mdio@24520 {
			#address-cells = <1>;
			#size-cells = <0>;
181
			compatible = "fsl,gianfar-mdio";
182
			reg = <0x24520 0x20>;
183

184 185
			phy0: ethernet-phy@0 {
				interrupt-parent = <&mpic>;
186
				interrupts = <10 1>;
187 188 189
				reg = <0>;
				device_type = "ethernet-phy";
			};
190 191
			phy1: ethernet-phy@1 {
				interrupt-parent = <&mpic>;
192
				interrupts = <10 1>;
193 194 195
				reg = <1>;
				device_type = "ethernet-phy";
			};
196 197
			phy2: ethernet-phy@2 {
				interrupt-parent = <&mpic>;
198
				interrupts = <10 1>;
199 200 201
				reg = <2>;
				device_type = "ethernet-phy";
			};
202 203
			phy3: ethernet-phy@3 {
				interrupt-parent = <&mpic>;
204
				interrupts = <10 1>;
205 206 207 208 209
				reg = <3>;
				device_type = "ethernet-phy";
			};
		};

210
		enet0: ethernet@24000 {
211
			cell-index = <0>;
212 213 214
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
215
			reg = <0x24000 0x1000>;
216
			local-mac-address = [ 00 00 00 00 00 00 ];
217
			interrupts = <29 2 30  2 34 2>;
218 219
			interrupt-parent = <&mpic>;
			phy-handle = <&phy0>;
220
			phy-connection-type = "rgmii-id";
221 222
		};

223
		enet1: ethernet@25000 {
224
			cell-index = <1>;
225 226 227
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
228
			reg = <0x25000 0x1000>;
229
			local-mac-address = [ 00 00 00 00 00 00 ];
230
			interrupts = <35 2 36 2 40 2>;
231 232
			interrupt-parent = <&mpic>;
			phy-handle = <&phy1>;
233
			phy-connection-type = "rgmii-id";
234 235
		};
		
236
		enet2: ethernet@26000 {
237
			cell-index = <2>;
238 239 240
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
241
			reg = <0x26000 0x1000>;
242
			local-mac-address = [ 00 00 00 00 00 00 ];
243
			interrupts = <31 2 32 2 33 2>;
244 245
			interrupt-parent = <&mpic>;
			phy-handle = <&phy2>;
246
			phy-connection-type = "rgmii-id";
247 248
		};

249
		enet3: ethernet@27000 {
250
			cell-index = <3>;
251 252 253
			device_type = "network";
			model = "TSEC";
			compatible = "gianfar";
254
			reg = <0x27000 0x1000>;
255
			local-mac-address = [ 00 00 00 00 00 00 ];
256
			interrupts = <37 2 38 2 39 2>;
257 258
			interrupt-parent = <&mpic>;
			phy-handle = <&phy3>;
259
			phy-connection-type = "rgmii-id";
260
		};
261 262

		serial0: serial@4500 {
263
			cell-index = <0>;
264 265
			device_type = "serial";
			compatible = "ns16550";
266
			reg = <0x4500 0x100>;
267
			clock-frequency = <0>;
268
			interrupts = <42 2>;
269
			interrupt-parent = <&mpic>;
270 271
		};

272
		serial1: serial@4600 {
273
			cell-index = <1>;
274 275
			device_type = "serial";
			compatible = "ns16550";
276
			reg = <0x4600 0x100>;
277
			clock-frequency = <0>;
278
			interrupts = <28 2>;
279
			interrupt-parent = <&mpic>;
280 281
		};

282 283 284 285
		mpic: pic@40000 {
			interrupt-controller;
			#address-cells = <0>;
			#interrupt-cells = <2>;
286
			reg = <0x40000 0x40000>;
287 288 289
			compatible = "chrp,open-pic";
			device_type = "open-pic";
		};
290 291 292

		global-utilities@e0000 {
			compatible = "fsl,mpc8641-guts";
293
			reg = <0xe0000 0x1000>;
294 295
			fsl,has-rstcr;
		};
296
	};
297

298
	pci0: pcie@f8008000 {
299
		cell-index = <0>;
300 301 302 303 304
		compatible = "fsl,mpc8641-pcie";
		device_type = "pci";
		#interrupt-cells = <1>;
		#size-cells = <2>;
		#address-cells = <3>;
305 306 307 308 309
		reg = <0xf8008000 0x1000>;
		bus-range = <0x0 0xff>;
		ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x20000000
			  0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
		clock-frequency = <33333333>;
310
		interrupt-parent = <&mpic>;
311 312
		interrupts = <24 2>;
		interrupt-map-mask = <0xff00 0 0 7>;
313
		interrupt-map = <
314
			/* IDSEL 0x11 func 0 - PCI slot 1 */
315 316 317 318
			0x8800 0 0 1 &mpic 2 1
			0x8800 0 0 2 &mpic 3 1
			0x8800 0 0 3 &mpic 4 1
			0x8800 0 0 4 &mpic 1 1
319 320

			/* IDSEL 0x11 func 1 - PCI slot 1 */
321 322 323 324
			0x8900 0 0 1 &mpic 2 1
			0x8900 0 0 2 &mpic 3 1
			0x8900 0 0 3 &mpic 4 1
			0x8900 0 0 4 &mpic 1 1
325 326

			/* IDSEL 0x11 func 2 - PCI slot 1 */
327 328 329 330
			0x8a00 0 0 1 &mpic 2 1
			0x8a00 0 0 2 &mpic 3 1
			0x8a00 0 0 3 &mpic 4 1
			0x8a00 0 0 4 &mpic 1 1
331 332

			/* IDSEL 0x11 func 3 - PCI slot 1 */
333 334 335 336
			0x8b00 0 0 1 &mpic 2 1
			0x8b00 0 0 2 &mpic 3 1
			0x8b00 0 0 3 &mpic 4 1
			0x8b00 0 0 4 &mpic 1 1
337 338

			/* IDSEL 0x11 func 4 - PCI slot 1 */
339 340 341 342
			0x8c00 0 0 1 &mpic 2 1
			0x8c00 0 0 2 &mpic 3 1
			0x8c00 0 0 3 &mpic 4 1
			0x8c00 0 0 4 &mpic 1 1
343 344

			/* IDSEL 0x11 func 5 - PCI slot 1 */
345 346 347 348
			0x8d00 0 0 1 &mpic 2 1
			0x8d00 0 0 2 &mpic 3 1
			0x8d00 0 0 3 &mpic 4 1
			0x8d00 0 0 4 &mpic 1 1
349 350

			/* IDSEL 0x11 func 6 - PCI slot 1 */
351 352 353 354
			0x8e00 0 0 1 &mpic 2 1
			0x8e00 0 0 2 &mpic 3 1
			0x8e00 0 0 3 &mpic 4 1
			0x8e00 0 0 4 &mpic 1 1
355 356

			/* IDSEL 0x11 func 7 - PCI slot 1 */
357 358 359 360
			0x8f00 0 0 1 &mpic 2 1
			0x8f00 0 0 2 &mpic 3 1
			0x8f00 0 0 3 &mpic 4 1
			0x8f00 0 0 4 &mpic 1 1
361 362

			/* IDSEL 0x12 func 0 - PCI slot 2 */
363 364 365 366
			0x9000 0 0 1 &mpic 3 1
			0x9000 0 0 2 &mpic 4 1
			0x9000 0 0 3 &mpic 1 1
			0x9000 0 0 4 &mpic 2 1
367 368

			/* IDSEL 0x12 func 1 - PCI slot 2 */
369 370 371 372
			0x9100 0 0 1 &mpic 3 1
			0x9100 0 0 2 &mpic 4 1
			0x9100 0 0 3 &mpic 1 1
			0x9100 0 0 4 &mpic 2 1
373 374

			/* IDSEL 0x12 func 2 - PCI slot 2 */
375 376 377 378
			0x9200 0 0 1 &mpic 3 1
			0x9200 0 0 2 &mpic 4 1
			0x9200 0 0 3 &mpic 1 1
			0x9200 0 0 4 &mpic 2 1
379 380

			/* IDSEL 0x12 func 3 - PCI slot 2 */
381 382 383 384
			0x9300 0 0 1 &mpic 3 1
			0x9300 0 0 2 &mpic 4 1
			0x9300 0 0 3 &mpic 1 1
			0x9300 0 0 4 &mpic 2 1
385 386

			/* IDSEL 0x12 func 4 - PCI slot 2 */
387 388 389 390
			0x9400 0 0 1 &mpic 3 1
			0x9400 0 0 2 &mpic 4 1
			0x9400 0 0 3 &mpic 1 1
			0x9400 0 0 4 &mpic 2 1
391 392

			/* IDSEL 0x12 func 5 - PCI slot 2 */
393 394 395 396
			0x9500 0 0 1 &mpic 3 1
			0x9500 0 0 2 &mpic 4 1
			0x9500 0 0 3 &mpic 1 1
			0x9500 0 0 4 &mpic 2 1
397 398

			/* IDSEL 0x12 func 6 - PCI slot 2 */
399 400 401 402
			0x9600 0 0 1 &mpic 3 1
			0x9600 0 0 2 &mpic 4 1
			0x9600 0 0 3 &mpic 1 1
			0x9600 0 0 4 &mpic 2 1
403 404

			/* IDSEL 0x12 func 7 - PCI slot 2 */
405 406 407 408
			0x9700 0 0 1 &mpic 3 1
			0x9700 0 0 2 &mpic 4 1
			0x9700 0 0 3 &mpic 1 1
			0x9700 0 0 4 &mpic 2 1
409

410
			// IDSEL 0x1c  USB
411 412 413 414
			0xe000 0 0 1 &i8259 12 2
			0xe100 0 0 2 &i8259 9 2
			0xe200 0 0 3 &i8259 10 2
			0xe300 0 0 4 &i8259 112
415

416
			// IDSEL 0x1d  Audio
417
			0xe800 0 0 1 &i8259 6 2
418

419
			// IDSEL 0x1e Legacy
420 421
			0xf000 0 0 1 &i8259 7 2
			0xf100 0 0 1 &i8259 7 2
422 423

			// IDSEL 0x1f IDE/SATA
424 425
			0xf800 0 0 1 &i8259 14 2
			0xf900 0 0 1 &i8259 5 2
426 427 428 429 430 431 432
			>;

		pcie@0 {
			reg = <0 0 0 0 0>;
			#size-cells = <2>;
			#address-cells = <3>;
			device_type = "pci";
433 434 435
			ranges = <0x02000000 0x0 0x80000000
				  0x02000000 0x0 0x80000000
				  0x0 0x20000000
436

437 438 439
				  0x01000000 0x0 0x00000000
				  0x01000000 0x0 0x00000000
				  0x0 0x00100000>;
440 441 442 443
			uli1575@0 {
				reg = <0 0 0 0 0>;
				#size-cells = <2>;
				#address-cells = <3>;
444 445 446 447 448 449
				ranges = <0x02000000 0x0 0x80000000
					  0x02000000 0x0 0x80000000
					  0x0 0x20000000
					  0x01000000 0x0 0x00000000
					  0x01000000 0x0 0x00000000
					  0x0 0x00100000>;
450 451 452 453 454
				isa@1e {
					device_type = "isa";
					#interrupt-cells = <2>;
					#size-cells = <1>;
					#address-cells = <2>;
455 456 457
					reg = <0xf000 0 0 0 0>;
					ranges = <1 0 0x01000000 0 0
						  0x00001000>;
458
					interrupt-parent = <&i8259>;
459

460
					i8259: interrupt-controller@20 {
461 462 463
						reg = <1 0x20 2
						       1 0xa0 2
						       1 0x4d0 2>;
464 465 466
						interrupt-controller;
						device_type = "interrupt-controller";
						#address-cells = <0>;
467
						#interrupt-cells = <2>;
468 469 470 471
						compatible = "chrp,iic";
						interrupts = <9 2>;
						interrupt-parent = <&mpic>;
					};
472

473 474 475
					i8042@60 {
						#size-cells = <0>;
						#address-cells = <1>;
476 477
						reg = <1 0x60 1 1 0x64 1>;
						interrupts = <1 3 12 3>;
478 479
						interrupt-parent =
							<&i8259>;
480

481 482 483
						keyboard@0 {
							reg = <0>;
							compatible = "pnpPNP,303";
484 485
						};

486 487 488
						mouse@1 {
							reg = <1>;
							compatible = "pnpPNP,f03";
489
						};
490
					};
491

492 493 494
					rtc@70 {
						compatible =
							"pnpPNP,b00";
495
						reg = <1 0x70 2>;
496 497 498
					};

					gpio@400 {
499
						reg = <1 0x400 0x80>;
500 501
					};
				};
502 503
			};
		};
504

505 506
	};

507
	pci1: pcie@f8009000 {
508
		cell-index = <1>;
509 510 511 512 513
		compatible = "fsl,mpc8641-pcie";
		device_type = "pci";
		#interrupt-cells = <1>;
		#size-cells = <2>;
		#address-cells = <3>;
514 515 516 517 518
		reg = <0xf8009000 0x1000>;
		bus-range = <0 0xff>;
		ranges = <0x02000000 0x0 0xa0000000 0xa0000000 0x0 0x20000000
			  0x01000000 0x0 0x00000000 0xe3000000 0x0 0x00100000>;
		clock-frequency = <33333333>;
519
		interrupt-parent = <&mpic>;
520 521
		interrupts = <25 2>;
		interrupt-map-mask = <0xf800 0 0 7>;
522 523
		interrupt-map = <
			/* IDSEL 0x0 */
524 525 526 527
			0x0000 0 0 1 &mpic 4 1
			0x0000 0 0 2 &mpic 5 1
			0x0000 0 0 3 &mpic 6 1
			0x0000 0 0 4 &mpic 7 1
528 529 530
			>;
		pcie@0 {
			reg = <0 0 0 0 0>;
531 532
			#size-cells = <2>;
			#address-cells = <3>;
533
			device_type = "pci";
534 535 536
			ranges = <0x02000000 0x0 0xa0000000
				  0x02000000 0x0 0xa0000000
				  0x0 0x20000000
537

538 539 540
				  0x01000000 0x0 0x00000000
				  0x01000000 0x0 0x00000000
				  0x0 0x00100000>;
541 542
		};
	};
543 544 545 546 547 548 549 550 551 552 553
	rapidio0: rapidio@f80c0000 {
		#address-cells = <2>;
		#size-cells = <2>;
		compatible = "fsl,rapidio-delta";
		reg = <0xf80c0000 0x20000>;
		ranges = <0 0 0xc0000000 0 0x20000000>;
		interrupt-parent = <&mpic>;
		/* err_irq bell_outb_irq bell_inb_irq
			msg1_tx_irq msg1_rx_irq	msg2_tx_irq msg2_rx_irq */
		interrupts = <48 2 49 2 50 2 53 2 54 2 55 2 56 2>;
	};
554
};