xref: /freebsd/sys/contrib/device-tree/src/powerpc/warp.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * Device Tree Source for PIKA Warp
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Copyright (c) 2008-2009 PIKA Technologies
5*c66ec88fSEmmanuel Vadot *   Sean MacLennan <smaclennan@pikatech.com>
6*c66ec88fSEmmanuel Vadot *
7*c66ec88fSEmmanuel Vadot * This file is licensed under the terms of the GNU General Public
8*c66ec88fSEmmanuel Vadot * License version 2.  This program is licensed "as is" without
9*c66ec88fSEmmanuel Vadot * any warranty of any kind, whether express or implied.
10*c66ec88fSEmmanuel Vadot */
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot/dts-v1/;
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot/ {
15*c66ec88fSEmmanuel Vadot	#address-cells = <2>;
16*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
17*c66ec88fSEmmanuel Vadot	model = "pika,warp";
18*c66ec88fSEmmanuel Vadot	compatible = "pika,warp";
19*c66ec88fSEmmanuel Vadot	dcr-parent = <&{/cpus/cpu@0}>;
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot	aliases {
22*c66ec88fSEmmanuel Vadot		ethernet0 = &EMAC0;
23*c66ec88fSEmmanuel Vadot		serial0 = &UART0;
24*c66ec88fSEmmanuel Vadot	};
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadot	cpus {
27*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
28*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot		cpu@0 {
31*c66ec88fSEmmanuel Vadot			device_type = "cpu";
32*c66ec88fSEmmanuel Vadot			model = "PowerPC,440EP";
33*c66ec88fSEmmanuel Vadot			reg = <0x00000000>;
34*c66ec88fSEmmanuel Vadot			clock-frequency = <0>; /* Filled in by zImage */
35*c66ec88fSEmmanuel Vadot			timebase-frequency = <0>; /* Filled in by zImage */
36*c66ec88fSEmmanuel Vadot			i-cache-line-size = <32>;
37*c66ec88fSEmmanuel Vadot			d-cache-line-size = <32>;
38*c66ec88fSEmmanuel Vadot			i-cache-size = <32768>;
39*c66ec88fSEmmanuel Vadot			d-cache-size = <32768>;
40*c66ec88fSEmmanuel Vadot			dcr-controller;
41*c66ec88fSEmmanuel Vadot			dcr-access-method = "native";
42*c66ec88fSEmmanuel Vadot		};
43*c66ec88fSEmmanuel Vadot	};
44*c66ec88fSEmmanuel Vadot
45*c66ec88fSEmmanuel Vadot	memory {
46*c66ec88fSEmmanuel Vadot		device_type = "memory";
47*c66ec88fSEmmanuel Vadot		reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */
48*c66ec88fSEmmanuel Vadot	};
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel Vadot	UIC0: interrupt-controller0 {
51*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-440ep","ibm,uic";
52*c66ec88fSEmmanuel Vadot		interrupt-controller;
53*c66ec88fSEmmanuel Vadot		cell-index = <0>;
54*c66ec88fSEmmanuel Vadot		dcr-reg = <0x0c0 0x009>;
55*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
56*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
57*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
58*c66ec88fSEmmanuel Vadot	};
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadot	UIC1: interrupt-controller1 {
61*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-440ep","ibm,uic";
62*c66ec88fSEmmanuel Vadot		interrupt-controller;
63*c66ec88fSEmmanuel Vadot		cell-index = <1>;
64*c66ec88fSEmmanuel Vadot		dcr-reg = <0x0d0 0x009>;
65*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
66*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
67*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
68*c66ec88fSEmmanuel Vadot		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
69*c66ec88fSEmmanuel Vadot		interrupt-parent = <&UIC0>;
70*c66ec88fSEmmanuel Vadot	};
71*c66ec88fSEmmanuel Vadot
72*c66ec88fSEmmanuel Vadot	SDR0: sdr {
73*c66ec88fSEmmanuel Vadot		compatible = "ibm,sdr-440ep";
74*c66ec88fSEmmanuel Vadot		dcr-reg = <0x00e 0x002>;
75*c66ec88fSEmmanuel Vadot	};
76*c66ec88fSEmmanuel Vadot
77*c66ec88fSEmmanuel Vadot	CPR0: cpr {
78*c66ec88fSEmmanuel Vadot		compatible = "ibm,cpr-440ep";
79*c66ec88fSEmmanuel Vadot		dcr-reg = <0x00c 0x002>;
80*c66ec88fSEmmanuel Vadot	};
81*c66ec88fSEmmanuel Vadot
82*c66ec88fSEmmanuel Vadot	plb {
83*c66ec88fSEmmanuel Vadot		compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
84*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
85*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
86*c66ec88fSEmmanuel Vadot		ranges;
87*c66ec88fSEmmanuel Vadot		clock-frequency = <0>; /* Filled in by zImage */
88*c66ec88fSEmmanuel Vadot
89*c66ec88fSEmmanuel Vadot		SDRAM0: sdram {
90*c66ec88fSEmmanuel Vadot			compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
91*c66ec88fSEmmanuel Vadot			dcr-reg = <0x010 0x002>;
92*c66ec88fSEmmanuel Vadot		};
93*c66ec88fSEmmanuel Vadot
94*c66ec88fSEmmanuel Vadot		DMA0: dma {
95*c66ec88fSEmmanuel Vadot			compatible = "ibm,dma-440ep", "ibm,dma-440gp";
96*c66ec88fSEmmanuel Vadot			dcr-reg = <0x100 0x027>;
97*c66ec88fSEmmanuel Vadot		};
98*c66ec88fSEmmanuel Vadot
99*c66ec88fSEmmanuel Vadot		MAL0: mcmal {
100*c66ec88fSEmmanuel Vadot			compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
101*c66ec88fSEmmanuel Vadot			dcr-reg = <0x180 0x062>;
102*c66ec88fSEmmanuel Vadot			num-tx-chans = <4>;
103*c66ec88fSEmmanuel Vadot			num-rx-chans = <2>;
104*c66ec88fSEmmanuel Vadot			interrupt-parent = <&MAL0>;
105*c66ec88fSEmmanuel Vadot			interrupts = <0x0 0x1 0x2 0x3 0x4>;
106*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
107*c66ec88fSEmmanuel Vadot			#address-cells = <0>;
108*c66ec88fSEmmanuel Vadot			#size-cells = <0>;
109*c66ec88fSEmmanuel Vadot			interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
110*c66ec88fSEmmanuel Vadot					/*RXEOB*/ 0x1 &UIC0 0xb 0x4
111*c66ec88fSEmmanuel Vadot					/*SERR*/  0x2 &UIC1 0x0 0x4
112*c66ec88fSEmmanuel Vadot					/*TXDE*/  0x3 &UIC1 0x1 0x4
113*c66ec88fSEmmanuel Vadot					/*RXDE*/  0x4 &UIC1 0x2 0x4>;
114*c66ec88fSEmmanuel Vadot		};
115*c66ec88fSEmmanuel Vadot
116*c66ec88fSEmmanuel Vadot		POB0: opb {
117*c66ec88fSEmmanuel Vadot		  	compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
118*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
119*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
120*c66ec88fSEmmanuel Vadot		  	ranges = <0x00000000 0x00000000 0x00000000 0x80000000
121*c66ec88fSEmmanuel Vadot			          0x80000000 0x00000000 0x80000000 0x80000000>;
122*c66ec88fSEmmanuel Vadot		  	interrupt-parent = <&UIC1>;
123*c66ec88fSEmmanuel Vadot		  	interrupts = <0x7 0x4>;
124*c66ec88fSEmmanuel Vadot		  	clock-frequency = <0>; /* Filled in by zImage */
125*c66ec88fSEmmanuel Vadot
126*c66ec88fSEmmanuel Vadot			EBC0: ebc {
127*c66ec88fSEmmanuel Vadot				compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
128*c66ec88fSEmmanuel Vadot				dcr-reg = <0x012 0x002>;
129*c66ec88fSEmmanuel Vadot				#address-cells = <2>;
130*c66ec88fSEmmanuel Vadot				#size-cells = <1>;
131*c66ec88fSEmmanuel Vadot				clock-frequency = <0>; /* Filled in by zImage */
132*c66ec88fSEmmanuel Vadot				interrupts = <0x5 0x1>;
133*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC1>;
134*c66ec88fSEmmanuel Vadot
135*c66ec88fSEmmanuel Vadot				fpga@2,0 {
136*c66ec88fSEmmanuel Vadot					compatible = "pika,fpga";
137*c66ec88fSEmmanuel Vadot			   		reg = <0x00000002 0x00000000 0x00001000>;
138*c66ec88fSEmmanuel Vadot					interrupts = <0x18 0x8>;
139*c66ec88fSEmmanuel Vadot					interrupt-parent = <&UIC0>;
140*c66ec88fSEmmanuel Vadot				};
141*c66ec88fSEmmanuel Vadot
142*c66ec88fSEmmanuel Vadot				fpga@2,2000 {
143*c66ec88fSEmmanuel Vadot					compatible = "pika,fpga-sgl";
144*c66ec88fSEmmanuel Vadot			   		reg = <0x00000002 0x00002000 0x00000200>;
145*c66ec88fSEmmanuel Vadot				};
146*c66ec88fSEmmanuel Vadot
147*c66ec88fSEmmanuel Vadot				fpga@2,4000 {
148*c66ec88fSEmmanuel Vadot					compatible = "pika,fpga-sd";
149*c66ec88fSEmmanuel Vadot					reg = <0x00000002 0x00004000 0x00004000>;
150*c66ec88fSEmmanuel Vadot				};
151*c66ec88fSEmmanuel Vadot
152*c66ec88fSEmmanuel Vadot				nor@0,0 {
153*c66ec88fSEmmanuel Vadot					compatible = "amd,s29gl032a", "cfi-flash";
154*c66ec88fSEmmanuel Vadot					bank-width = <2>;
155*c66ec88fSEmmanuel Vadot					reg = <0x00000000 0x00000000 0x00400000>;
156*c66ec88fSEmmanuel Vadot					#address-cells = <1>;
157*c66ec88fSEmmanuel Vadot					#size-cells = <1>;
158*c66ec88fSEmmanuel Vadot
159*c66ec88fSEmmanuel Vadot					partition@0 {
160*c66ec88fSEmmanuel Vadot						label = "splash";
161*c66ec88fSEmmanuel Vadot						reg = <0x00000000 0x00010000>;
162*c66ec88fSEmmanuel Vadot					};
163*c66ec88fSEmmanuel Vadot					partition@300000 {
164*c66ec88fSEmmanuel Vadot						label = "fpga";
165*c66ec88fSEmmanuel Vadot						reg = <0x0300000 0x00040000>;
166*c66ec88fSEmmanuel Vadot					};
167*c66ec88fSEmmanuel Vadot					partition@340000 {
168*c66ec88fSEmmanuel Vadot						label = "env";
169*c66ec88fSEmmanuel Vadot						reg = <0x0340000 0x00040000>;
170*c66ec88fSEmmanuel Vadot					};
171*c66ec88fSEmmanuel Vadot					partition@380000 {
172*c66ec88fSEmmanuel Vadot						label = "u-boot";
173*c66ec88fSEmmanuel Vadot						reg = <0x0380000 0x00080000>;
174*c66ec88fSEmmanuel Vadot					};
175*c66ec88fSEmmanuel Vadot				};
176*c66ec88fSEmmanuel Vadot
177*c66ec88fSEmmanuel Vadot				ndfc@1,0 {
178*c66ec88fSEmmanuel Vadot					compatible = "ibm,ndfc";
179*c66ec88fSEmmanuel Vadot					reg = <0x00000001 0x00000000 0x00002000>;
180*c66ec88fSEmmanuel Vadot					ccr = <0x00001000>;
181*c66ec88fSEmmanuel Vadot					bank-settings = <0x80002222>;
182*c66ec88fSEmmanuel Vadot					#address-cells = <1>;
183*c66ec88fSEmmanuel Vadot					#size-cells = <1>;
184*c66ec88fSEmmanuel Vadot
185*c66ec88fSEmmanuel Vadot					nand {
186*c66ec88fSEmmanuel Vadot						#address-cells = <1>;
187*c66ec88fSEmmanuel Vadot						#size-cells = <1>;
188*c66ec88fSEmmanuel Vadot
189*c66ec88fSEmmanuel Vadot						partition@0 {
190*c66ec88fSEmmanuel Vadot							label = "kernel";
191*c66ec88fSEmmanuel Vadot							reg = <0x00000000 0x00200000>;
192*c66ec88fSEmmanuel Vadot						};
193*c66ec88fSEmmanuel Vadot						partition@200000 {
194*c66ec88fSEmmanuel Vadot							label = "root";
195*c66ec88fSEmmanuel Vadot							reg = <0x00200000 0x03E00000>;
196*c66ec88fSEmmanuel Vadot						};
197*c66ec88fSEmmanuel Vadot						partition@40000000 {
198*c66ec88fSEmmanuel Vadot							label = "persistent";
199*c66ec88fSEmmanuel Vadot							reg = <0x04000000 0x04000000>;
200*c66ec88fSEmmanuel Vadot						};
201*c66ec88fSEmmanuel Vadot						partition@80000000 {
202*c66ec88fSEmmanuel Vadot							label = "persistent1";
203*c66ec88fSEmmanuel Vadot							reg = <0x08000000 0x04000000>;
204*c66ec88fSEmmanuel Vadot						};
205*c66ec88fSEmmanuel Vadot						partition@C0000000 {
206*c66ec88fSEmmanuel Vadot							label = "persistent2";
207*c66ec88fSEmmanuel Vadot							reg = <0x0C000000 0x04000000>;
208*c66ec88fSEmmanuel Vadot						};
209*c66ec88fSEmmanuel Vadot					};
210*c66ec88fSEmmanuel Vadot				};
211*c66ec88fSEmmanuel Vadot			};
212*c66ec88fSEmmanuel Vadot
213*c66ec88fSEmmanuel Vadot			UART0: serial@ef600300 {
214*c66ec88fSEmmanuel Vadot		   		device_type = "serial";
215*c66ec88fSEmmanuel Vadot		   		compatible = "ns16550";
216*c66ec88fSEmmanuel Vadot		   		reg = <0xef600300 0x00000008>;
217*c66ec88fSEmmanuel Vadot		   		virtual-reg = <0xef600300>;
218*c66ec88fSEmmanuel Vadot		   		clock-frequency = <0>; /* Filled in by zImage */
219*c66ec88fSEmmanuel Vadot		   		current-speed = <115200>;
220*c66ec88fSEmmanuel Vadot		   		interrupt-parent = <&UIC0>;
221*c66ec88fSEmmanuel Vadot		   		interrupts = <0x0 0x4>;
222*c66ec88fSEmmanuel Vadot	   		};
223*c66ec88fSEmmanuel Vadot
224*c66ec88fSEmmanuel Vadot			IIC0: i2c@ef600700 {
225*c66ec88fSEmmanuel Vadot				compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
226*c66ec88fSEmmanuel Vadot				reg = <0xef600700 0x00000014>;
227*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC0>;
228*c66ec88fSEmmanuel Vadot				interrupts = <0x2 0x4>;
229*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
230*c66ec88fSEmmanuel Vadot				#size-cells = <0>;
231*c66ec88fSEmmanuel Vadot
232*c66ec88fSEmmanuel Vadot				ad7414@4a {
233*c66ec88fSEmmanuel Vadot					compatible = "adi,ad7414";
234*c66ec88fSEmmanuel Vadot					reg = <0x4a>;
235*c66ec88fSEmmanuel Vadot					interrupts = <0x19 0x8>;
236*c66ec88fSEmmanuel Vadot					interrupt-parent = <&UIC0>;
237*c66ec88fSEmmanuel Vadot				};
238*c66ec88fSEmmanuel Vadot
239*c66ec88fSEmmanuel Vadot				/* This will create 52 and 53 */
240*c66ec88fSEmmanuel Vadot				at24@52 {
241*c66ec88fSEmmanuel Vadot					compatible = "atmel,24c04";
242*c66ec88fSEmmanuel Vadot					reg = <0x52>;
243*c66ec88fSEmmanuel Vadot				};
244*c66ec88fSEmmanuel Vadot			};
245*c66ec88fSEmmanuel Vadot
246*c66ec88fSEmmanuel Vadot			GPIO0: gpio@ef600b00 {
247*c66ec88fSEmmanuel Vadot				compatible = "ibm,ppc4xx-gpio";
248*c66ec88fSEmmanuel Vadot				reg = <0xef600b00 0x00000048>;
249*c66ec88fSEmmanuel Vadot				#gpio-cells = <2>;
250*c66ec88fSEmmanuel Vadot				gpio-controller;
251*c66ec88fSEmmanuel Vadot			};
252*c66ec88fSEmmanuel Vadot
253*c66ec88fSEmmanuel Vadot			GPIO1: gpio@ef600c00 {
254*c66ec88fSEmmanuel Vadot				compatible = "ibm,ppc4xx-gpio";
255*c66ec88fSEmmanuel Vadot				reg = <0xef600c00 0x00000048>;
256*c66ec88fSEmmanuel Vadot				#gpio-cells = <2>;
257*c66ec88fSEmmanuel Vadot				gpio-controller;
258*c66ec88fSEmmanuel Vadot			};
259*c66ec88fSEmmanuel Vadot
260*c66ec88fSEmmanuel Vadot			power-leds {
261*c66ec88fSEmmanuel Vadot				compatible = "gpio-leds";
262*c66ec88fSEmmanuel Vadot				green {
263*c66ec88fSEmmanuel Vadot					gpios = <&GPIO1 0 0>;
264*c66ec88fSEmmanuel Vadot					default-state = "keep";
265*c66ec88fSEmmanuel Vadot				};
266*c66ec88fSEmmanuel Vadot				red {
267*c66ec88fSEmmanuel Vadot					gpios = <&GPIO1 1 0>;
268*c66ec88fSEmmanuel Vadot					default-state = "keep";
269*c66ec88fSEmmanuel Vadot				};
270*c66ec88fSEmmanuel Vadot			};
271*c66ec88fSEmmanuel Vadot
272*c66ec88fSEmmanuel Vadot			ZMII0: emac-zmii@ef600d00 {
273*c66ec88fSEmmanuel Vadot				compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
274*c66ec88fSEmmanuel Vadot				reg = <0xef600d00 0x0000000c>;
275*c66ec88fSEmmanuel Vadot			};
276*c66ec88fSEmmanuel Vadot
277*c66ec88fSEmmanuel Vadot			EMAC0: ethernet@ef600e00 {
278*c66ec88fSEmmanuel Vadot				device_type = "network";
279*c66ec88fSEmmanuel Vadot				compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
280*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC1>;
281*c66ec88fSEmmanuel Vadot				interrupts = <0x1c 0x4 0x1d 0x4>;
282*c66ec88fSEmmanuel Vadot				reg = <0xef600e00 0x00000070>;
283*c66ec88fSEmmanuel Vadot				local-mac-address = [000000000000];
284*c66ec88fSEmmanuel Vadot				mal-device = <&MAL0>;
285*c66ec88fSEmmanuel Vadot				mal-tx-channel = <0 1>;
286*c66ec88fSEmmanuel Vadot				mal-rx-channel = <0>;
287*c66ec88fSEmmanuel Vadot				cell-index = <0>;
288*c66ec88fSEmmanuel Vadot				max-frame-size = <1500>;
289*c66ec88fSEmmanuel Vadot				rx-fifo-size = <4096>;
290*c66ec88fSEmmanuel Vadot				tx-fifo-size = <2048>;
291*c66ec88fSEmmanuel Vadot				phy-mode = "rmii";
292*c66ec88fSEmmanuel Vadot				phy-map = <0x00000000>;
293*c66ec88fSEmmanuel Vadot				zmii-device = <&ZMII0>;
294*c66ec88fSEmmanuel Vadot				zmii-channel = <0>;
295*c66ec88fSEmmanuel Vadot			};
296*c66ec88fSEmmanuel Vadot
297*c66ec88fSEmmanuel Vadot			usb@ef601000 {
298*c66ec88fSEmmanuel Vadot				compatible = "ohci-be";
299*c66ec88fSEmmanuel Vadot				reg = <0xef601000 0x00000080>;
300*c66ec88fSEmmanuel Vadot				interrupts = <0x8 0x1 0x9 0x1>;
301*c66ec88fSEmmanuel Vadot				interrupt-parent = < &UIC1 >;
302*c66ec88fSEmmanuel Vadot			};
303*c66ec88fSEmmanuel Vadot		};
304*c66ec88fSEmmanuel Vadot	};
305*c66ec88fSEmmanuel Vadot
306*c66ec88fSEmmanuel Vadot	chosen {
307*c66ec88fSEmmanuel Vadot		stdout-path = "/plb/opb/serial@ef600300";
308*c66ec88fSEmmanuel Vadot	};
309*c66ec88fSEmmanuel Vadot};
310