xref: /freebsd/sys/contrib/device-tree/src/powerpc/haleakala.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * Device Tree Source for AMCC Haleakala (405EXr)
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
5*c66ec88fSEmmanuel Vadot *
6*c66ec88fSEmmanuel Vadot * This file is licensed under the terms of the GNU General Public
7*c66ec88fSEmmanuel Vadot * License version 2.  This program is licensed "as is" without
8*c66ec88fSEmmanuel Vadot * any warranty of any kind, whether express or implied.
9*c66ec88fSEmmanuel Vadot */
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot/dts-v1/;
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot/ {
14*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
15*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
16*c66ec88fSEmmanuel Vadot	model = "amcc,haleakala";
17*c66ec88fSEmmanuel Vadot	compatible = "amcc,haleakala", "amcc,kilauea";
18*c66ec88fSEmmanuel Vadot	dcr-parent = <&{/cpus/cpu@0}>;
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot	aliases {
21*c66ec88fSEmmanuel Vadot		ethernet0 = &EMAC0;
22*c66ec88fSEmmanuel Vadot		serial0 = &UART0;
23*c66ec88fSEmmanuel Vadot		serial1 = &UART1;
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,405EXr";
33*c66ec88fSEmmanuel Vadot			reg = <0x00000000>;
34*c66ec88fSEmmanuel Vadot			clock-frequency = <0>; /* Filled in by U-Boot */
35*c66ec88fSEmmanuel Vadot			timebase-frequency = <0>; /* Filled in by U-Boot */
36*c66ec88fSEmmanuel Vadot			i-cache-line-size = <32>;
37*c66ec88fSEmmanuel Vadot			d-cache-line-size = <32>;
38*c66ec88fSEmmanuel Vadot			i-cache-size = <16384>; /* 16 kB */
39*c66ec88fSEmmanuel Vadot			d-cache-size = <16384>; /* 16 kB */
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>; /* Filled in by U-Boot */
48*c66ec88fSEmmanuel Vadot	};
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel Vadot	UIC0: interrupt-controller {
51*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-405exr", "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-405exr","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	UIC2: interrupt-controller2 {
73*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-405exr","ibm,uic";
74*c66ec88fSEmmanuel Vadot		interrupt-controller;
75*c66ec88fSEmmanuel Vadot		cell-index = <2>;
76*c66ec88fSEmmanuel Vadot		dcr-reg = <0x0e0 0x009>;
77*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
78*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
79*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
80*c66ec88fSEmmanuel Vadot		interrupts = <0x1c 0x4 0x1d 0x4>; /* cascade */
81*c66ec88fSEmmanuel Vadot		interrupt-parent = <&UIC0>;
82*c66ec88fSEmmanuel Vadot	};
83*c66ec88fSEmmanuel Vadot
84*c66ec88fSEmmanuel Vadot	plb {
85*c66ec88fSEmmanuel Vadot		compatible = "ibm,plb-405exr", "ibm,plb4";
86*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
87*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
88*c66ec88fSEmmanuel Vadot		ranges;
89*c66ec88fSEmmanuel Vadot		clock-frequency = <0>; /* Filled in by U-Boot */
90*c66ec88fSEmmanuel Vadot
91*c66ec88fSEmmanuel Vadot		SDRAM0: memory-controller {
92*c66ec88fSEmmanuel Vadot			compatible = "ibm,sdram-405exr", "ibm,sdram-4xx-ddr2";
93*c66ec88fSEmmanuel Vadot			dcr-reg = <0x010 0x002>;
94*c66ec88fSEmmanuel Vadot			interrupt-parent = <&UIC2>;
95*c66ec88fSEmmanuel Vadot			interrupts = <0x5 0x4	/* ECC DED Error */
96*c66ec88fSEmmanuel Vadot				      0x6 0x4>;	/* ECC SEC Error */
97*c66ec88fSEmmanuel Vadot		};
98*c66ec88fSEmmanuel Vadot
99*c66ec88fSEmmanuel Vadot		MAL0: mcmal {
100*c66ec88fSEmmanuel Vadot			compatible = "ibm,mcmal-405exr", "ibm,mcmal2";
101*c66ec88fSEmmanuel Vadot			dcr-reg = <0x180 0x062>;
102*c66ec88fSEmmanuel Vadot			num-tx-chans = <2>;
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			interrupt-map-mask = <0xffffffff>;
115*c66ec88fSEmmanuel Vadot		};
116*c66ec88fSEmmanuel Vadot
117*c66ec88fSEmmanuel Vadot		POB0: opb {
118*c66ec88fSEmmanuel Vadot			compatible = "ibm,opb-405exr", "ibm,opb";
119*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
120*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
121*c66ec88fSEmmanuel Vadot			ranges = <0x80000000 0x80000000 0x10000000
122*c66ec88fSEmmanuel Vadot				  0xef600000 0xef600000 0x00a00000
123*c66ec88fSEmmanuel Vadot				  0xf0000000 0xf0000000 0x10000000>;
124*c66ec88fSEmmanuel Vadot			dcr-reg = <0x0a0 0x005>;
125*c66ec88fSEmmanuel Vadot			clock-frequency = <0>; /* Filled in by U-Boot */
126*c66ec88fSEmmanuel Vadot
127*c66ec88fSEmmanuel Vadot			EBC0: ebc {
128*c66ec88fSEmmanuel Vadot				compatible = "ibm,ebc-405exr", "ibm,ebc";
129*c66ec88fSEmmanuel Vadot				dcr-reg = <0x012 0x002>;
130*c66ec88fSEmmanuel Vadot				#address-cells = <2>;
131*c66ec88fSEmmanuel Vadot				#size-cells = <1>;
132*c66ec88fSEmmanuel Vadot				clock-frequency = <0>; /* Filled in by U-Boot */
133*c66ec88fSEmmanuel Vadot				/* ranges property is supplied by U-Boot */
134*c66ec88fSEmmanuel Vadot				interrupts = <0x5 0x1>;
135*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC1>;
136*c66ec88fSEmmanuel Vadot
137*c66ec88fSEmmanuel Vadot				nor_flash@0,0 {
138*c66ec88fSEmmanuel Vadot					compatible = "amd,s29gl512n", "cfi-flash";
139*c66ec88fSEmmanuel Vadot					bank-width = <2>;
140*c66ec88fSEmmanuel Vadot					reg = <0x00000000 0x00000000 0x04000000>;
141*c66ec88fSEmmanuel Vadot					#address-cells = <1>;
142*c66ec88fSEmmanuel Vadot					#size-cells = <1>;
143*c66ec88fSEmmanuel Vadot					partition@0 {
144*c66ec88fSEmmanuel Vadot						label = "kernel";
145*c66ec88fSEmmanuel Vadot						reg = <0x00000000 0x00200000>;
146*c66ec88fSEmmanuel Vadot					};
147*c66ec88fSEmmanuel Vadot					partition@200000 {
148*c66ec88fSEmmanuel Vadot						label = "root";
149*c66ec88fSEmmanuel Vadot						reg = <0x00200000 0x00200000>;
150*c66ec88fSEmmanuel Vadot					};
151*c66ec88fSEmmanuel Vadot					partition@400000 {
152*c66ec88fSEmmanuel Vadot						label = "user";
153*c66ec88fSEmmanuel Vadot						reg = <0x00400000 0x03b60000>;
154*c66ec88fSEmmanuel Vadot					};
155*c66ec88fSEmmanuel Vadot					partition@3f60000 {
156*c66ec88fSEmmanuel Vadot						label = "env";
157*c66ec88fSEmmanuel Vadot						reg = <0x03f60000 0x00040000>;
158*c66ec88fSEmmanuel Vadot					};
159*c66ec88fSEmmanuel Vadot					partition@3fa0000 {
160*c66ec88fSEmmanuel Vadot						label = "u-boot";
161*c66ec88fSEmmanuel Vadot						reg = <0x03fa0000 0x00060000>;
162*c66ec88fSEmmanuel Vadot					};
163*c66ec88fSEmmanuel Vadot				};
164*c66ec88fSEmmanuel Vadot			};
165*c66ec88fSEmmanuel Vadot
166*c66ec88fSEmmanuel Vadot			UART0: serial@ef600200 {
167*c66ec88fSEmmanuel Vadot				device_type = "serial";
168*c66ec88fSEmmanuel Vadot				compatible = "ns16550";
169*c66ec88fSEmmanuel Vadot				reg = <0xef600200 0x00000008>;
170*c66ec88fSEmmanuel Vadot				virtual-reg = <0xef600200>;
171*c66ec88fSEmmanuel Vadot				clock-frequency = <0>; /* Filled in by U-Boot */
172*c66ec88fSEmmanuel Vadot				current-speed = <0>;
173*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC0>;
174*c66ec88fSEmmanuel Vadot				interrupts = <0x1a 0x4>;
175*c66ec88fSEmmanuel Vadot			};
176*c66ec88fSEmmanuel Vadot
177*c66ec88fSEmmanuel Vadot			UART1: serial@ef600300 {
178*c66ec88fSEmmanuel Vadot				device_type = "serial";
179*c66ec88fSEmmanuel Vadot				compatible = "ns16550";
180*c66ec88fSEmmanuel Vadot				reg = <0xef600300 0x00000008>;
181*c66ec88fSEmmanuel Vadot				virtual-reg = <0xef600300>;
182*c66ec88fSEmmanuel Vadot				clock-frequency = <0>; /* Filled in by U-Boot */
183*c66ec88fSEmmanuel Vadot				current-speed = <0>;
184*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC0>;
185*c66ec88fSEmmanuel Vadot				interrupts = <0x1 0x4>;
186*c66ec88fSEmmanuel Vadot			};
187*c66ec88fSEmmanuel Vadot
188*c66ec88fSEmmanuel Vadot			IIC0: i2c@ef600400 {
189*c66ec88fSEmmanuel Vadot				compatible = "ibm,iic-405exr", "ibm,iic";
190*c66ec88fSEmmanuel Vadot				reg = <0xef600400 0x00000014>;
191*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC0>;
192*c66ec88fSEmmanuel Vadot				interrupts = <0x2 0x4>;
193*c66ec88fSEmmanuel Vadot			};
194*c66ec88fSEmmanuel Vadot
195*c66ec88fSEmmanuel Vadot			IIC1: i2c@ef600500 {
196*c66ec88fSEmmanuel Vadot				compatible = "ibm,iic-405exr", "ibm,iic";
197*c66ec88fSEmmanuel Vadot				reg = <0xef600500 0x00000014>;
198*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC0>;
199*c66ec88fSEmmanuel Vadot				interrupts = <0x7 0x4>;
200*c66ec88fSEmmanuel Vadot			};
201*c66ec88fSEmmanuel Vadot
202*c66ec88fSEmmanuel Vadot
203*c66ec88fSEmmanuel Vadot			RGMII0: emac-rgmii@ef600b00 {
204*c66ec88fSEmmanuel Vadot				compatible = "ibm,rgmii-405exr", "ibm,rgmii";
205*c66ec88fSEmmanuel Vadot				reg = <0xef600b00 0x00000104>;
206*c66ec88fSEmmanuel Vadot				has-mdio;
207*c66ec88fSEmmanuel Vadot			};
208*c66ec88fSEmmanuel Vadot
209*c66ec88fSEmmanuel Vadot			EMAC0: ethernet@ef600900 {
210*c66ec88fSEmmanuel Vadot				linux,network-index = <0x0>;
211*c66ec88fSEmmanuel Vadot				device_type = "network";
212*c66ec88fSEmmanuel Vadot				compatible = "ibm,emac-405exr", "ibm,emac4sync";
213*c66ec88fSEmmanuel Vadot				interrupt-parent = <&EMAC0>;
214*c66ec88fSEmmanuel Vadot				interrupts = <0x0 0x1>;
215*c66ec88fSEmmanuel Vadot				#interrupt-cells = <1>;
216*c66ec88fSEmmanuel Vadot				#address-cells = <0>;
217*c66ec88fSEmmanuel Vadot				#size-cells = <0>;
218*c66ec88fSEmmanuel Vadot				interrupt-map = </*Status*/ 0x0 &UIC0 0x18 0x4
219*c66ec88fSEmmanuel Vadot						/*Wake*/  0x1 &UIC1 0x1d 0x4>;
220*c66ec88fSEmmanuel Vadot				reg = <0xef600900 0x000000c4>;
221*c66ec88fSEmmanuel Vadot				local-mac-address = [000000000000]; /* Filled in by U-Boot */
222*c66ec88fSEmmanuel Vadot				mal-device = <&MAL0>;
223*c66ec88fSEmmanuel Vadot				mal-tx-channel = <0>;
224*c66ec88fSEmmanuel Vadot				mal-rx-channel = <0>;
225*c66ec88fSEmmanuel Vadot				cell-index = <0>;
226*c66ec88fSEmmanuel Vadot				max-frame-size = <9000>;
227*c66ec88fSEmmanuel Vadot				rx-fifo-size = <4096>;
228*c66ec88fSEmmanuel Vadot				tx-fifo-size = <2048>;
229*c66ec88fSEmmanuel Vadot				rx-fifo-size-gige = <16384>;
230*c66ec88fSEmmanuel Vadot				tx-fifo-size-gige = <16384>;
231*c66ec88fSEmmanuel Vadot				phy-mode = "rgmii";
232*c66ec88fSEmmanuel Vadot				phy-map = <0x00000000>;
233*c66ec88fSEmmanuel Vadot				rgmii-device = <&RGMII0>;
234*c66ec88fSEmmanuel Vadot				rgmii-channel = <0>;
235*c66ec88fSEmmanuel Vadot				has-inverted-stacr-oc;
236*c66ec88fSEmmanuel Vadot				has-new-stacr-staopc;
237*c66ec88fSEmmanuel Vadot			};
238*c66ec88fSEmmanuel Vadot		};
239*c66ec88fSEmmanuel Vadot
240*c66ec88fSEmmanuel Vadot		PCIE0: pcie@a0000000 {
241*c66ec88fSEmmanuel Vadot			device_type = "pci";
242*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
243*c66ec88fSEmmanuel Vadot			#size-cells = <2>;
244*c66ec88fSEmmanuel Vadot			#address-cells = <3>;
245*c66ec88fSEmmanuel Vadot			compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
246*c66ec88fSEmmanuel Vadot			primary;
247*c66ec88fSEmmanuel Vadot			port = <0x0>; /* port number */
248*c66ec88fSEmmanuel Vadot			reg = <0xa0000000 0x20000000	/* Config space access */
249*c66ec88fSEmmanuel Vadot			       0xef000000 0x00001000>;	/* Registers */
250*c66ec88fSEmmanuel Vadot			dcr-reg = <0x040 0x020>;
251*c66ec88fSEmmanuel Vadot			sdr-base = <0x400>;
252*c66ec88fSEmmanuel Vadot
253*c66ec88fSEmmanuel Vadot			/* Outbound ranges, one memory and one IO,
254*c66ec88fSEmmanuel Vadot			 * later cannot be changed
255*c66ec88fSEmmanuel Vadot			 */
256*c66ec88fSEmmanuel Vadot			ranges = <0x02000000 0x00000000 0x80000000 0x90000000 0x00000000 0x08000000
257*c66ec88fSEmmanuel Vadot				  0x01000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00010000>;
258*c66ec88fSEmmanuel Vadot
259*c66ec88fSEmmanuel Vadot			/* Inbound 2GB range starting at 0 */
260*c66ec88fSEmmanuel Vadot			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
261*c66ec88fSEmmanuel Vadot
262*c66ec88fSEmmanuel Vadot			/* This drives busses 0x00 to 0x3f */
263*c66ec88fSEmmanuel Vadot			bus-range = <0x0 0x3f>;
264*c66ec88fSEmmanuel Vadot
265*c66ec88fSEmmanuel Vadot			/* Legacy interrupts (note the weird polarity, the bridge seems
266*c66ec88fSEmmanuel Vadot			 * to invert PCIe legacy interrupts).
267*c66ec88fSEmmanuel Vadot			 * We are de-swizzling here because the numbers are actually for
268*c66ec88fSEmmanuel Vadot			 * port of the root complex virtual P2P bridge. But I want
269*c66ec88fSEmmanuel Vadot			 * to avoid putting a node for it in the tree, so the numbers
270*c66ec88fSEmmanuel Vadot			 * below are basically de-swizzled numbers.
271*c66ec88fSEmmanuel Vadot			 * The real slot is on idsel 0, so the swizzling is 1:1
272*c66ec88fSEmmanuel Vadot			 */
273*c66ec88fSEmmanuel Vadot			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
274*c66ec88fSEmmanuel Vadot			interrupt-map = <
275*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x1 &UIC2 0x0 0x4 /* swizzled int A */
276*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x2 &UIC2 0x1 0x4 /* swizzled int B */
277*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x3 &UIC2 0x2 0x4 /* swizzled int C */
278*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x4 &UIC2 0x3 0x4 /* swizzled int D */>;
279*c66ec88fSEmmanuel Vadot		};
280*c66ec88fSEmmanuel Vadot	};
281*c66ec88fSEmmanuel Vadot};
282