xref: /linux/arch/powerpc/boot/dts/warp.dts (revision 929badad6296c9682d271c97f39b78cb7007128a)
199192af0SSean MacLennan/*
299192af0SSean MacLennan * Device Tree Source for PIKA Warp
399192af0SSean MacLennan *
499192af0SSean MacLennan * Copyright (c) 2008 PIKA Technologies
599192af0SSean MacLennan *   Sean MacLennan <smaclennan@pikatech.com>
699192af0SSean MacLennan *
799192af0SSean MacLennan * This file is licensed under the terms of the GNU General Public
899192af0SSean MacLennan * License version 2.  This program is licensed "as is" without
999192af0SSean MacLennan * any warranty of any kind, whether express or implied.
1099192af0SSean MacLennan */
1199192af0SSean MacLennan
1271f34979SDavid Gibson/dts-v1/;
1371f34979SDavid Gibson
1499192af0SSean MacLennan/ {
1599192af0SSean MacLennan	#address-cells = <2>;
1699192af0SSean MacLennan	#size-cells = <1>;
1799192af0SSean MacLennan	model = "pika,warp";
1899192af0SSean MacLennan	compatible = "pika,warp";
1971f34979SDavid Gibson	dcr-parent = <&{/cpus/cpu@0}>;
2099192af0SSean MacLennan
2199192af0SSean MacLennan	aliases {
2299192af0SSean MacLennan		ethernet0 = &EMAC0;
2399192af0SSean MacLennan		serial0 = &UART0;
2499192af0SSean MacLennan	};
2599192af0SSean MacLennan
2699192af0SSean MacLennan	cpus {
2799192af0SSean MacLennan		#address-cells = <1>;
2899192af0SSean MacLennan		#size-cells = <0>;
2999192af0SSean MacLennan
3099192af0SSean MacLennan		cpu@0 {
3199192af0SSean MacLennan			device_type = "cpu";
3299192af0SSean MacLennan			model = "PowerPC,440EP";
3371f34979SDavid Gibson			reg = <0x00000000>;
3499192af0SSean MacLennan			clock-frequency = <0>; /* Filled in by zImage */
3599192af0SSean MacLennan			timebase-frequency = <0>; /* Filled in by zImage */
3671f34979SDavid Gibson			i-cache-line-size = <32>;
3771f34979SDavid Gibson			d-cache-line-size = <32>;
3871f34979SDavid Gibson			i-cache-size = <32768>;
3971f34979SDavid Gibson			d-cache-size = <32768>;
4099192af0SSean MacLennan			dcr-controller;
4199192af0SSean MacLennan			dcr-access-method = "native";
4299192af0SSean MacLennan		};
4399192af0SSean MacLennan	};
4499192af0SSean MacLennan
4599192af0SSean MacLennan	memory {
4699192af0SSean MacLennan		device_type = "memory";
4771f34979SDavid Gibson		reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */
4899192af0SSean MacLennan	};
4999192af0SSean MacLennan
5099192af0SSean MacLennan	UIC0: interrupt-controller0 {
5199192af0SSean MacLennan		compatible = "ibm,uic-440ep","ibm,uic";
5299192af0SSean MacLennan		interrupt-controller;
5399192af0SSean MacLennan		cell-index = <0>;
5471f34979SDavid Gibson		dcr-reg = <0x0c0 0x009>;
5599192af0SSean MacLennan		#address-cells = <0>;
5699192af0SSean MacLennan		#size-cells = <0>;
5799192af0SSean MacLennan		#interrupt-cells = <2>;
5899192af0SSean MacLennan	};
5999192af0SSean MacLennan
6099192af0SSean MacLennan	UIC1: interrupt-controller1 {
6199192af0SSean MacLennan		compatible = "ibm,uic-440ep","ibm,uic";
6299192af0SSean MacLennan		interrupt-controller;
6399192af0SSean MacLennan		cell-index = <1>;
6471f34979SDavid Gibson		dcr-reg = <0x0d0 0x009>;
6599192af0SSean MacLennan		#address-cells = <0>;
6699192af0SSean MacLennan		#size-cells = <0>;
6799192af0SSean MacLennan		#interrupt-cells = <2>;
6871f34979SDavid Gibson		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
6999192af0SSean MacLennan		interrupt-parent = <&UIC0>;
7099192af0SSean MacLennan	};
7199192af0SSean MacLennan
7299192af0SSean MacLennan	SDR0: sdr {
7399192af0SSean MacLennan		compatible = "ibm,sdr-440ep";
7471f34979SDavid Gibson		dcr-reg = <0x00e 0x002>;
7599192af0SSean MacLennan	};
7699192af0SSean MacLennan
7799192af0SSean MacLennan	CPR0: cpr {
7899192af0SSean MacLennan		compatible = "ibm,cpr-440ep";
7971f34979SDavid Gibson		dcr-reg = <0x00c 0x002>;
8099192af0SSean MacLennan	};
8199192af0SSean MacLennan
8299192af0SSean MacLennan	plb {
8399192af0SSean MacLennan		compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
8499192af0SSean MacLennan		#address-cells = <2>;
8599192af0SSean MacLennan		#size-cells = <1>;
8699192af0SSean MacLennan		ranges;
8799192af0SSean MacLennan		clock-frequency = <0>; /* Filled in by zImage */
8899192af0SSean MacLennan
8999192af0SSean MacLennan		SDRAM0: sdram {
9099192af0SSean MacLennan			compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
9171f34979SDavid Gibson			dcr-reg = <0x010 0x002>;
9299192af0SSean MacLennan		};
9399192af0SSean MacLennan
9499192af0SSean MacLennan		DMA0: dma {
9599192af0SSean MacLennan			compatible = "ibm,dma-440ep", "ibm,dma-440gp";
9671f34979SDavid Gibson			dcr-reg = <0x100 0x027>;
9799192af0SSean MacLennan		};
9899192af0SSean MacLennan
9999192af0SSean MacLennan		MAL0: mcmal {
10099192af0SSean MacLennan			compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
10171f34979SDavid Gibson			dcr-reg = <0x180 0x062>;
10299192af0SSean MacLennan			num-tx-chans = <4>;
10399192af0SSean MacLennan			num-rx-chans = <2>;
10499192af0SSean MacLennan			interrupt-parent = <&MAL0>;
10571f34979SDavid Gibson			interrupts = <0x0 0x1 0x2 0x3 0x4>;
10699192af0SSean MacLennan			#interrupt-cells = <1>;
10799192af0SSean MacLennan			#address-cells = <0>;
10899192af0SSean MacLennan			#size-cells = <0>;
10971f34979SDavid Gibson			interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
11071f34979SDavid Gibson					/*RXEOB*/ 0x1 &UIC0 0xb 0x4
11171f34979SDavid Gibson					/*SERR*/  0x2 &UIC1 0x0 0x4
11271f34979SDavid Gibson					/*TXDE*/  0x3 &UIC1 0x1 0x4
11371f34979SDavid Gibson					/*RXDE*/  0x4 &UIC1 0x2 0x4>;
11499192af0SSean MacLennan		};
11599192af0SSean MacLennan
11699192af0SSean MacLennan		POB0: opb {
11799192af0SSean MacLennan		  	compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
11899192af0SSean MacLennan			#address-cells = <1>;
11999192af0SSean MacLennan			#size-cells = <1>;
12071f34979SDavid Gibson		  	ranges = <0x00000000 0x00000000 0x00000000 0x80000000
12171f34979SDavid Gibson			          0x80000000 0x00000000 0x80000000 0x80000000>;
12299192af0SSean MacLennan		  	interrupt-parent = <&UIC1>;
12371f34979SDavid Gibson		  	interrupts = <0x7 0x4>;
12499192af0SSean MacLennan		  	clock-frequency = <0>; /* Filled in by zImage */
12599192af0SSean MacLennan
12699192af0SSean MacLennan			EBC0: ebc {
12799192af0SSean MacLennan				compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
12871f34979SDavid Gibson				dcr-reg = <0x012 0x002>;
12999192af0SSean MacLennan				#address-cells = <2>;
13099192af0SSean MacLennan				#size-cells = <1>;
13199192af0SSean MacLennan				clock-frequency = <0>; /* Filled in by zImage */
13271f34979SDavid Gibson				interrupts = <0x5 0x1>;
13399192af0SSean MacLennan				interrupt-parent = <&UIC1>;
13499192af0SSean MacLennan
13599192af0SSean MacLennan				fpga@2,0 {
13699192af0SSean MacLennan					compatible = "pika,fpga";
1370393cb61SSean MacLennan			   		reg = <0x00000002 0x00000000 0x00001000>;
13871f34979SDavid Gibson					interrupts = <0x18 0x8>;
13999192af0SSean MacLennan					interrupt-parent = <&UIC0>;
14099192af0SSean MacLennan				};
14199192af0SSean MacLennan
1421d555cf1SSean MacLennan				fpga@2,2000 {
1431d555cf1SSean MacLennan					compatible = "pika,fpga-sgl";
1441d555cf1SSean MacLennan			   		reg = <0x00000002 0x00002000 0x00000200>;
1451d555cf1SSean MacLennan				};
1461d555cf1SSean MacLennan
1470393cb61SSean MacLennan				fpga@2,4000 {
1480393cb61SSean MacLennan					compatible = "pika,fpga-sd";
1490393cb61SSean MacLennan					reg = <0x00000002 0x00004000 0x00000A00>;
1500393cb61SSean MacLennan				};
1510393cb61SSean MacLennan
15299192af0SSean MacLennan				nor_flash@0,0 {
1530393cb61SSean MacLennan					compatible = "amd,s29gl032a", "cfi-flash";
15499192af0SSean MacLennan					bank-width = <2>;
1550393cb61SSean MacLennan					reg = <0x00000000 0x00000000 0x00400000>;
15699192af0SSean MacLennan					#address-cells = <1>;
15799192af0SSean MacLennan					#size-cells = <1>;
1580393cb61SSean MacLennan					partition@300000 {
15999192af0SSean MacLennan						label = "fpga";
160*929badadSSean MacLennan						reg = <0x0300000 0x00040000>;
16199192af0SSean MacLennan					};
1620393cb61SSean MacLennan					partition@340000 {
16399192af0SSean MacLennan						label = "env";
1640393cb61SSean MacLennan						reg = <0x0340000 0x00040000>;
16599192af0SSean MacLennan					};
1660393cb61SSean MacLennan					partition@380000 {
16799192af0SSean MacLennan						label = "u-boot";
1680393cb61SSean MacLennan						reg = <0x0380000 0x00080000>;
16999192af0SSean MacLennan					};
17099192af0SSean MacLennan				};
17199192af0SSean MacLennan			};
17299192af0SSean MacLennan
17399192af0SSean MacLennan			UART0: serial@ef600300 {
17499192af0SSean MacLennan		   		device_type = "serial";
17599192af0SSean MacLennan		   		compatible = "ns16550";
17671f34979SDavid Gibson		   		reg = <0xef600300 0x00000008>;
17771f34979SDavid Gibson		   		virtual-reg = <0xef600300>;
17899192af0SSean MacLennan		   		clock-frequency = <0>; /* Filled in by zImage */
17971f34979SDavid Gibson		   		current-speed = <115200>;
18099192af0SSean MacLennan		   		interrupt-parent = <&UIC0>;
18171f34979SDavid Gibson		   		interrupts = <0x0 0x4>;
18299192af0SSean MacLennan	   		};
18399192af0SSean MacLennan
18499192af0SSean MacLennan			IIC0: i2c@ef600700 {
18599192af0SSean MacLennan				compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
18671f34979SDavid Gibson				reg = <0xef600700 0x00000014>;
18799192af0SSean MacLennan				interrupt-parent = <&UIC0>;
18871f34979SDavid Gibson				interrupts = <0x2 0x4>;
1890393cb61SSean MacLennan				#address-cells = <1>;
1900393cb61SSean MacLennan				#size-cells = <0>;
1910393cb61SSean MacLennan
1920393cb61SSean MacLennan				ad7414@4a {
1930393cb61SSean MacLennan					compatible = "adi,ad7414";
1940393cb61SSean MacLennan					reg = <0x4a>;
1950393cb61SSean MacLennan					interrupts = <0x19 0x8>;
1960393cb61SSean MacLennan					interrupt-parent = <&UIC0>;
1970393cb61SSean MacLennan				};
1981d555cf1SSean MacLennan
1991d555cf1SSean MacLennan				/* This will create 52 and 53 */
2001d555cf1SSean MacLennan				at24@52 {
2011d555cf1SSean MacLennan					compatible = "at,24c04";
2021d555cf1SSean MacLennan					reg = <0x52>;
2031d555cf1SSean MacLennan				};
20499192af0SSean MacLennan			};
20599192af0SSean MacLennan
20699192af0SSean MacLennan			GPIO0: gpio@ef600b00 {
20799192af0SSean MacLennan				compatible = "ibm,gpio-440ep";
20871f34979SDavid Gibson				reg = <0xef600b00 0x00000048>;
2090393cb61SSean MacLennan				#gpio-cells = <2>;
2100393cb61SSean MacLennan				gpio-controller;
21199192af0SSean MacLennan			};
21299192af0SSean MacLennan
21399192af0SSean MacLennan			GPIO1: gpio@ef600c00 {
21499192af0SSean MacLennan				compatible = "ibm,gpio-440ep";
21571f34979SDavid Gibson				reg = <0xef600c00 0x00000048>;
2160393cb61SSean MacLennan				#gpio-cells = <2>;
2170393cb61SSean MacLennan				gpio-controller;
2180393cb61SSean MacLennan
2190393cb61SSean MacLennan				led@31 {
2200393cb61SSean MacLennan					compatible = "linux,gpio-led";
2210393cb61SSean MacLennan					linux,name = ":green:";
2221d555cf1SSean MacLennan					gpios = <&GPIO1 31 0>;
2231d555cf1SSean MacLennan				};
2241d555cf1SSean MacLennan
2251d555cf1SSean MacLennan				led@30 {
2261d555cf1SSean MacLennan					compatible = "linux,gpio-led";
2271d555cf1SSean MacLennan					linux,name = ":red:";
2281d555cf1SSean MacLennan					gpios = <&GPIO1 30 0>;
2290393cb61SSean MacLennan				};
23099192af0SSean MacLennan			};
23199192af0SSean MacLennan
23299192af0SSean MacLennan			ZMII0: emac-zmii@ef600d00 {
23399192af0SSean MacLennan				compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
23471f34979SDavid Gibson				reg = <0xef600d00 0x0000000c>;
23599192af0SSean MacLennan			};
23699192af0SSean MacLennan
23799192af0SSean MacLennan			EMAC0: ethernet@ef600e00 {
23899192af0SSean MacLennan				device_type = "network";
23999192af0SSean MacLennan				compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
24099192af0SSean MacLennan				interrupt-parent = <&UIC1>;
24171f34979SDavid Gibson				interrupts = <0x1c 0x4 0x1d 0x4>;
24271f34979SDavid Gibson				reg = <0xef600e00 0x00000070>;
24399192af0SSean MacLennan				local-mac-address = [000000000000];
24499192af0SSean MacLennan				mal-device = <&MAL0>;
24599192af0SSean MacLennan				mal-tx-channel = <0 1>;
24699192af0SSean MacLennan				mal-rx-channel = <0>;
24799192af0SSean MacLennan				cell-index = <0>;
24871f34979SDavid Gibson				max-frame-size = <1500>;
24971f34979SDavid Gibson				rx-fifo-size = <4096>;
25071f34979SDavid Gibson				tx-fifo-size = <2048>;
25199192af0SSean MacLennan				phy-mode = "rmii";
25271f34979SDavid Gibson				phy-map = <0x00000000>;
25399192af0SSean MacLennan				zmii-device = <&ZMII0>;
25499192af0SSean MacLennan				zmii-channel = <0>;
25599192af0SSean MacLennan			};
25699192af0SSean MacLennan
25799192af0SSean MacLennan			usb@ef601000 {
25899192af0SSean MacLennan				compatible = "ohci-be";
25971f34979SDavid Gibson				reg = <0xef601000 0x00000080>;
26071f34979SDavid Gibson				interrupts = <0x8 0x1 0x9 0x1>;
26199192af0SSean MacLennan				interrupt-parent = < &UIC1 >;
26299192af0SSean MacLennan			};
26399192af0SSean MacLennan		};
26499192af0SSean MacLennan	};
26599192af0SSean MacLennan
26699192af0SSean MacLennan	chosen {
26799192af0SSean MacLennan		linux,stdout-path = "/plb/opb/serial@ef600300";
26899192af0SSean MacLennan	};
26999192af0SSean MacLennan};
270