blob: cf1b95d1f14bb90822da09b8b771252fb9f832c4 [file] [log] [blame]
Valentine Barshak3910cd82007-10-31 03:56:50 +11001/*
2 * Device Tree Source for AMCC Rainier
3 *
4 * Based on Sequoia code
5 * Copyright (c) 2007 MontaVista Software, Inc.
6 *
7 * FIXME: Draft only!
8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without
11 * any warranty of any kind, whether express or implied.
12 *
13 */
14
15/ {
16 #address-cells = <2>;
17 #size-cells = <1>;
18 model = "amcc,rainier";
19 compatible = "amcc,rainier";
20 dcr-parent = <&/cpus/PowerPC,440GRx@0>;
21
22 cpus {
23 #address-cells = <1>;
24 #size-cells = <0>;
25
26 PowerPC,440GRx@0 {
27 device_type = "cpu";
28 reg = <0>;
29 clock-frequency = <0>; /* Filled in by zImage */
30 timebase-frequency = <0>; /* Filled in by zImage */
31 i-cache-line-size = <20>;
32 d-cache-line-size = <20>;
33 i-cache-size = <8000>;
34 d-cache-size = <8000>;
35 dcr-controller;
36 dcr-access-method = "native";
37 };
38 };
39
40 memory {
41 device_type = "memory";
42 reg = <0 0 0>; /* Filled in by zImage */
43 };
44
45 UIC0: interrupt-controller0 {
46 compatible = "ibm,uic-440grx","ibm,uic";
47 interrupt-controller;
48 cell-index = <0>;
49 dcr-reg = <0c0 009>;
50 #address-cells = <0>;
51 #size-cells = <0>;
52 #interrupt-cells = <2>;
53 };
54
55 UIC1: interrupt-controller1 {
56 compatible = "ibm,uic-440grx","ibm,uic";
57 interrupt-controller;
58 cell-index = <1>;
59 dcr-reg = <0d0 009>;
60 #address-cells = <0>;
61 #size-cells = <0>;
62 #interrupt-cells = <2>;
63 interrupts = <1e 4 1f 4>; /* cascade */
64 interrupt-parent = <&UIC0>;
65 };
66
67 UIC2: interrupt-controller2 {
68 compatible = "ibm,uic-440grx","ibm,uic";
69 interrupt-controller;
70 cell-index = <2>;
71 dcr-reg = <0e0 009>;
72 #address-cells = <0>;
73 #size-cells = <0>;
74 #interrupt-cells = <2>;
75 interrupts = <1c 4 1d 4>; /* cascade */
76 interrupt-parent = <&UIC0>;
77 };
78
79 SDR0: sdr {
80 compatible = "ibm,sdr-440grx", "ibm,sdr-440ep";
81 dcr-reg = <00e 002>;
82 };
83
84 CPR0: cpr {
85 compatible = "ibm,cpr-440grx", "ibm,cpr-440ep";
86 dcr-reg = <00c 002>;
87 };
88
89 plb {
90 compatible = "ibm,plb-440grx", "ibm,plb4";
91 #address-cells = <2>;
92 #size-cells = <1>;
93 ranges;
94 clock-frequency = <0>; /* Filled in by zImage */
95
96 SDRAM0: sdram {
Valentine Barshak3910cd82007-10-31 03:56:50 +110097 compatible = "ibm,sdram-440grx", "ibm,sdram-44x-ddr2denali";
98 dcr-reg = <010 2>;
99 };
100
101 DMA0: dma {
102 compatible = "ibm,dma-440grx", "ibm,dma-4xx";
103 dcr-reg = <100 027>;
104 };
105
106 MAL0: mcmal {
107 compatible = "ibm,mcmal-440grx", "ibm,mcmal2";
108 dcr-reg = <180 62>;
109 num-tx-chans = <2>;
110 num-rx-chans = <2>;
111 interrupt-parent = <&MAL0>;
112 interrupts = <0 1 2 3 4>;
113 #interrupt-cells = <1>;
114 #address-cells = <0>;
115 #size-cells = <0>;
116 interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
117 /*RXEOB*/ 1 &UIC0 b 4
118 /*SERR*/ 2 &UIC1 0 4
119 /*TXDE*/ 3 &UIC1 1 4
120 /*RXDE*/ 4 &UIC1 2 4>;
121 interrupt-map-mask = <ffffffff>;
122 };
123
124 POB0: opb {
125 compatible = "ibm,opb-440grx", "ibm,opb";
126 #address-cells = <1>;
127 #size-cells = <1>;
128 ranges = <00000000 1 00000000 80000000
129 80000000 1 80000000 80000000>;
130 interrupt-parent = <&UIC1>;
131 interrupts = <7 4>;
132 clock-frequency = <0>; /* Filled in by zImage */
133
134 EBC0: ebc {
135 compatible = "ibm,ebc-440grx", "ibm,ebc";
136 dcr-reg = <012 2>;
137 #address-cells = <2>;
138 #size-cells = <1>;
139 clock-frequency = <0>; /* Filled in by zImage */
140 interrupts = <5 1>;
141 interrupt-parent = <&UIC1>;
142
143 nor_flash@0,0 {
144 compatible = "amd,s29gl256n", "cfi-flash";
145 bank-width = <2>;
146 reg = <0 000000 4000000>;
147 #address-cells = <1>;
148 #size-cells = <1>;
149 partition@0 {
150 label = "Kernel";
151 reg = <0 180000>;
152 };
153 partition@180000 {
154 label = "ramdisk";
155 reg = <180000 200000>;
156 };
157 partition@380000 {
158 label = "file system";
159 reg = <380000 3aa0000>;
160 };
161 partition@3e20000 {
162 label = "kozio";
163 reg = <3e20000 140000>;
164 };
165 partition@3f60000 {
166 label = "env";
167 reg = <3f60000 40000>;
168 };
169 partition@3fa0000 {
170 label = "u-boot";
171 reg = <3fa0000 60000>;
172 };
173 };
174
175 };
176
177 UART0: serial@ef600300 {
178 device_type = "serial";
179 compatible = "ns16550";
180 reg = <ef600300 8>;
181 virtual-reg = <ef600300>;
182 clock-frequency = <0>; /* Filled in by zImage */
183 current-speed = <1c200>;
184 interrupt-parent = <&UIC0>;
185 interrupts = <0 4>;
186 };
187
188 UART1: serial@ef600400 {
189 device_type = "serial";
190 compatible = "ns16550";
191 reg = <ef600400 8>;
192 virtual-reg = <ef600400>;
193 clock-frequency = <0>;
194 current-speed = <0>;
195 interrupt-parent = <&UIC0>;
196 interrupts = <1 4>;
197 };
198
199 UART2: serial@ef600500 {
200 device_type = "serial";
201 compatible = "ns16550";
202 reg = <ef600500 8>;
203 virtual-reg = <ef600500>;
204 clock-frequency = <0>;
205 current-speed = <0>;
206 interrupt-parent = <&UIC1>;
207 interrupts = <3 4>;
208 };
209
210 UART3: serial@ef600600 {
211 device_type = "serial";
212 compatible = "ns16550";
213 reg = <ef600600 8>;
214 virtual-reg = <ef600600>;
215 clock-frequency = <0>;
216 current-speed = <0>;
217 interrupt-parent = <&UIC1>;
218 interrupts = <4 4>;
219 };
220
221 IIC0: i2c@ef600700 {
222 device_type = "i2c";
223 compatible = "ibm,iic-440grx", "ibm,iic";
224 reg = <ef600700 14>;
225 interrupt-parent = <&UIC0>;
226 interrupts = <2 4>;
227 };
228
229 IIC1: i2c@ef600800 {
230 device_type = "i2c";
231 compatible = "ibm,iic-440grx", "ibm,iic";
232 reg = <ef600800 14>;
233 interrupt-parent = <&UIC0>;
234 interrupts = <7 4>;
235 };
236
237 ZMII0: emac-zmii@ef600d00 {
238 device_type = "zmii-interface";
239 compatible = "ibm,zmii-440grx", "ibm,zmii";
240 reg = <ef600d00 c>;
241 };
242
243 RGMII0: emac-rgmii@ef601000 {
244 device_type = "rgmii-interface";
245 compatible = "ibm,rgmii-440grx", "ibm,rgmii";
246 reg = <ef601000 8>;
Valentine Barshak58c50192007-12-06 19:21:12 +0300247 has-mdio;
Valentine Barshak3910cd82007-10-31 03:56:50 +1100248 };
249
250 EMAC0: ethernet@ef600e00 {
251 linux,network-index = <0>;
252 device_type = "network";
253 compatible = "ibm,emac-440grx", "ibm,emac-440epx", "ibm,emac4";
254 interrupt-parent = <&EMAC0>;
255 interrupts = <0 1>;
256 #interrupt-cells = <1>;
257 #address-cells = <0>;
258 #size-cells = <0>;
259 interrupt-map = </*Status*/ 0 &UIC0 18 4
260 /*Wake*/ 1 &UIC1 1d 4>;
261 reg = <ef600e00 70>;
262 local-mac-address = [000000000000];
263 mal-device = <&MAL0>;
264 mal-tx-channel = <0>;
265 mal-rx-channel = <0>;
266 cell-index = <0>;
267 max-frame-size = <5dc>;
268 rx-fifo-size = <1000>;
269 tx-fifo-size = <800>;
270 phy-mode = "rgmii";
271 phy-map = <00000000>;
272 zmii-device = <&ZMII0>;
273 zmii-channel = <0>;
274 rgmii-device = <&RGMII0>;
275 rgmii-channel = <0>;
Valentine Barshak58c50192007-12-06 19:21:12 +0300276 has-inverted-stacr-oc;
277 has-new-stacr-staopc;
Valentine Barshak3910cd82007-10-31 03:56:50 +1100278 };
279
280 EMAC1: ethernet@ef600f00 {
281 linux,network-index = <1>;
282 device_type = "network";
283 compatible = "ibm,emac-440grx", "ibm,emac-440epx", "ibm,emac4";
284 interrupt-parent = <&EMAC1>;
285 interrupts = <0 1>;
286 #interrupt-cells = <1>;
287 #address-cells = <0>;
288 #size-cells = <0>;
289 interrupt-map = </*Status*/ 0 &UIC0 19 4
290 /*Wake*/ 1 &UIC1 1f 4>;
291 reg = <ef600f00 70>;
292 local-mac-address = [000000000000];
293 mal-device = <&MAL0>;
294 mal-tx-channel = <1>;
295 mal-rx-channel = <1>;
296 cell-index = <1>;
297 max-frame-size = <5dc>;
298 rx-fifo-size = <1000>;
299 tx-fifo-size = <800>;
300 phy-mode = "rgmii";
301 phy-map = <00000000>;
302 zmii-device = <&ZMII0>;
303 zmii-channel = <1>;
304 rgmii-device = <&RGMII0>;
305 rgmii-channel = <1>;
Valentine Barshak58c50192007-12-06 19:21:12 +0300306 has-inverted-stacr-oc;
307 has-new-stacr-staopc;
Valentine Barshak3910cd82007-10-31 03:56:50 +1100308 };
309 };
310 };
311
312 chosen {
313 linux,stdout-path = "/plb/opb/serial@ef600300";
314 bootargs = "console=ttyS0,115200";
315 };
316};