Full support for Ginger Console
[linux-ginger.git] / arch / powerpc / boot / dts / eiger.dts
blobc4a934f2e8864929721301252e92e44f7a842319
1 /*
2  * Device Tree Source for AMCC (AppliedMicro) Eiger(460SX)
3  *
4  * Copyright 2009 AMCC (AppliedMicro) <ttnguyen@amcc.com>
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without
8  * any warranty of any kind, whether express or implied.
9  */
11 /dts-v1/;
13 / {
14         #address-cells = <2>;
15         #size-cells = <1>;
16         model = "amcc,eiger";
17         compatible = "amcc,eiger";
18         dcr-parent = <&{/cpus/cpu@0}>;
20         aliases {
21                 ethernet0 = &EMAC0;
22                 ethernet1 = &EMAC1;
23                 ethernet2 = &EMAC2;
24                 ethernet3 = &EMAC3;
25                 serial0 = &UART0;
26                 serial1 = &UART1;
27         };
29         cpus {
30                 #address-cells = <1>;
31                 #size-cells = <0>;
33                 cpu@0 {
34                         device_type = "cpu";
35                         model = "PowerPC,460SX";
36                         reg = <0x00000000>;
37                         clock-frequency = <0>; /* Filled in by U-Boot */
38                         timebase-frequency = <0>; /* Filled in by U-Boot */
39                         i-cache-line-size = <32>;
40                         d-cache-line-size = <32>;
41                         i-cache-size = <32768>;
42                         d-cache-size = <32768>;
43                         dcr-controller;
44                         dcr-access-method = "native";
45                 };
46         };
48         memory {
49                 device_type = "memory";
50                 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
51         };
53         UIC0: interrupt-controller0 {
54                 compatible = "ibm,uic-460sx","ibm,uic";
55                 interrupt-controller;
56                 cell-index = <0>;
57                 dcr-reg = <0x0c0 0x009>;
58                 #address-cells = <0>;
59                 #size-cells = <0>;
60                 #interrupt-cells = <2>;
61         };
63         UIC1: interrupt-controller1 {
64                 compatible = "ibm,uic-460sx","ibm,uic";
65                 interrupt-controller;
66                 cell-index = <1>;
67                 dcr-reg = <0x0d0 0x009>;
68                 #address-cells = <0>;
69                 #size-cells = <0>;
70                 #interrupt-cells = <2>;
71                 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
72                 interrupt-parent = <&UIC0>;
73         };
75         UIC2: interrupt-controller2 {
76                 compatible = "ibm,uic-460sx","ibm,uic";
77                 interrupt-controller;
78                 cell-index = <2>;
79                 dcr-reg = <0x0e0 0x009>;
80                 #address-cells = <0>;
81                 #size-cells = <0>;
82                 #interrupt-cells = <2>;
83                 interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
84                 interrupt-parent = <&UIC0>;
85         };
87         UIC3: interrupt-controller3 {
88                 compatible = "ibm,uic-460sx","ibm,uic";
89                 interrupt-controller;
90                 cell-index = <3>;
91                 dcr-reg = <0x0f0 0x009>;
92                 #address-cells = <0>;
93                 #size-cells = <0>;
94                 #interrupt-cells = <2>;
95                 interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
96                 interrupt-parent = <&UIC0>;
97         };
99         SDR0: sdr {
100                 compatible = "ibm,sdr-460sx";
101                 dcr-reg = <0x00e 0x002>;
102         };
104         CPR0: cpr {
105                 compatible = "ibm,cpr-460sx";
106                 dcr-reg = <0x00c 0x002>;
107         };
109         plb {
110                 compatible = "ibm,plb-460sx", "ibm,plb4";
111                 #address-cells = <2>;
112                 #size-cells = <1>;
113                 ranges;
114                 clock-frequency = <0>; /* Filled in by U-Boot */
116                 SDRAM0: sdram {
117                         compatible = "ibm,sdram-460sx", "ibm,sdram-405gp";
118                         dcr-reg = <0x010 0x002>;
119                 };
121                 MAL0: mcmal {
122                         compatible = "ibm,mcmal-460sx", "ibm,mcmal2";
123                         dcr-reg = <0x180 0x62>;
124                         num-tx-chans = <4>;
125                         num-rx-chans = <32>;
126                         #address-cells = <1>;
127                         #size-cells = <1>;
128                         interrupt-parent = <&UIC1>;
129                         interrupts = <  /*TXEOB*/ 0x6 0x4
130                                         /*RXEOB*/ 0x7 0x4
131                                         /*SERR*/  0x1 0x4
132                                         /*TXDE*/  0x2 0x4
133                                         /*RXDE*/  0x3 0x4
134                                         /*COAL TX0*/ 0x18 0x2
135                                         /*COAL TX1*/ 0x19 0x2
136                                         /*COAL TX2*/ 0x1a 0x2
137                                         /*COAL TX3*/ 0x1b 0x2
138                                         /*COAL RX0*/ 0x1c 0x2
139                                         /*COAL RX1*/ 0x1d 0x2
140                                         /*COAL RX2*/ 0x1e 0x2
141                                         /*COAL RX3*/ 0x1f 0x2>;
142                 };
144                 POB0: opb {
145                         compatible = "ibm,opb-460sx", "ibm,opb";
146                         #address-cells = <1>;
147                         #size-cells = <1>;
148                         ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
149                         clock-frequency = <0>; /* Filled in by U-Boot */
151                         EBC0: ebc {
152                                 compatible = "ibm,ebc-460sx", "ibm,ebc";
153                                 dcr-reg = <0x012 0x002>;
154                                 #address-cells = <2>;
155                                 #size-cells = <1>;
156                                 clock-frequency = <0>; /* Filled in by U-Boot */
157                                 /* ranges property is supplied by U-Boot */
158                                 interrupts = <0x6 0x4>;
159                                 interrupt-parent = <&UIC1>;
161                                 nor_flash@0,0 {
162                                         compatible = "amd,s29gl512n", "cfi-flash";
163                                         bank-width = <2>;
164                                         /* reg property is supplied in by U-Boot */
165                                         #address-cells = <1>;
166                                         #size-cells = <1>;
167                                         partition@0 {
168                                                 label = "kernel";
169                                                 reg = <0x00000000 0x001e0000>;
170                                         };
171                                         partition@1e0000 {
172                                                 label = "dtb";
173                                                 reg = <0x001e0000 0x00020000>;
174                                         };
175                                         partition@200000 {
176                                                 label = "ramdisk";
177                                                 reg = <0x00200000 0x01400000>;
178                                         };
179                                         partition@1600000 {
180                                                 label = "jffs2";
181                                                 reg = <0x01600000 0x00400000>;
182                                         };
183                                         partition@1a00000 {
184                                                 label = "user";
185                                                 reg = <0x01a00000 0x02560000>;
186                                         };
187                                         partition@3f60000 {
188                                                 label = "env";
189                                                 reg = <0x03f60000 0x00040000>;
190                                         };
191                                         partition@3fa0000 {
192                                                 label = "u-boot";
193                                                 reg = <0x03fa0000 0x00060000>;
194                                         };
195                                 };
197                                 ndfc@1,0 {
198                                         compatible = "ibm,ndfc";
199                                         /* reg property is supplied by U-boot */
200                                         ccr = <0x00003000>;
201                                         bank-settings = <0x80002222>;
202                                         #address-cells = <1>;
203                                         #size-cells = <1>;
205                                         nand {
206                                                 #address-cells = <1>;
207                                                 #size-cells = <1>;
208                                                 partition@0 {
209                                                         label = "uboot";
210                                                         reg = <0x00000000 0x00200000>;
211                                                 };
212                                                 partition@200000 {
213                                                         label = "uboot-environment";
214                                                         reg = <0x00200000 0x00100000>;
215                                                 };
216                                                 partition@300000 {
217                                                         label = "linux";
218                                                         reg = <0x00300000 0x00300000>;
219                                                 };
220                                                 partition@600000 {
221                                                         label = "root-file-system";
222                                                         reg = <0x00600000 0x01900000>;
223                                                 };
224                                                 partition@1f00000 {
225                                                         label = "device-tree";
226                                                         reg = <0x01f00000 0x00020000>;
227                                                 };
228                                                 partition@1f20000 {
229                                                         label = "data";
230                                                         reg = <0x01f20000 0x060E0000>;
231                                                 };
232                                         };
233                                 };
234                         };
236                         UART0: serial@ef600200 {
237                                 device_type = "serial";
238                                 compatible = "ns16550";
239                                 reg = <0xef600200 0x00000008>;
240                                 virtual-reg = <0xef600200>;
241                                 clock-frequency = <0>; /* Filled in by U-Boot */
242                                 current-speed = <0>; /* Filled in by U-Boot */
243                                 interrupt-parent = <&UIC0>;
244                                 interrupts = <0x0 0x4>;
245                         };
247                         UART1: serial@ef600300 {
248                                 device_type = "serial";
249                                 compatible = "ns16550";
250                                 reg = <0xef600300 0x00000008>;
251                                 virtual-reg = <0xef600300>;
252                                 clock-frequency = <0>; /* Filled in by U-Boot */
253                                 current-speed = <0>; /* Filled in by U-Boot */
254                                 interrupt-parent = <&UIC0>;
255                                 interrupts = <0x1 0x4>;
256                         };
258                         IIC0: i2c@ef600400 {
259                                 compatible = "ibm,iic-460sx", "ibm,iic";
260                                 reg = <0xef600400 0x00000014>;
261                                 interrupt-parent = <&UIC0>;
262                                 interrupts = <0x2 0x4>;
263                                 #address-cells = <1>;
264                                 #size-cells = <0>;
265                                 index = <0>;
266                         };
268                         IIC1: i2c@ef600500 {
269                                 compatible = "ibm,iic-460sx", "ibm,iic";
270                                 reg = <0xef600500 0x00000014>;
271                                 interrupt-parent = <&UIC0>;
272                                 interrupts = <0x3 0x4>;
273                                 #address-cells = <1>;
274                                 #size-cells = <0>;
275                                 index = <1>;
276                         };
278                         RGMII0: emac-rgmii@ef600900 {
279                                 compatible = "ibm,rgmii-460sx", "ibm,rgmii";
280                                 reg = <0xef600900 0x00000008>;
281                                 has-mdio;
282                         };
284                         RGMII1: emac-rgmii@ef600920 {
285                                 compatible = "ibm,rgmii-460sx", "ibm,rgmii";
286                                 reg = <0xef600920 0x00000008>;
287                                 has-mdio;
288                         };
290                         TAH0: emac-tah@ef600e50 {
291                                 compatible = "ibm,tah-460sx", "ibm,tah";
292                                 reg = <0xef600e50 0x00000030>;
293                         };
295                         TAH1: emac-tah@ef600f50 {
296                                 compatible = "ibm,tah-460sx", "ibm,tah";
297                                 reg = <0xef600f50 0x00000030>;
298                         };
300                         EMAC0: ethernet@ef600a00 {
301                                 device_type = "network";
302                                 compatible = "ibm,emac-460sx", "ibm,emac4";
303                                 interrupt-parent = <&EMAC0>;
304                                 interrupts = <0x0 0x1>;
305                                 #interrupt-cells = <1>;
306                                 #address-cells = <0>;
307                                 #size-cells = <0>;
308                                 interrupt-map = </*Status*/ 0x0 &UIC0 0x13 0x4
309                                                  /*Wake*/   0x1 &UIC2 0x1d 0x4>;
310                                 reg = <0xef600a00 0x00000070>;
311                                 local-mac-address = [000000000000]; /* Filled in by U-Boot */
312                                 mal-device = <&MAL0>;
313                                 mal-tx-channel = <0>;
314                                 mal-rx-channel = <0>;
315                                 cell-index = <0>;
316                                 max-frame-size = <9000>;
317                                 rx-fifo-size = <4096>;
318                                 tx-fifo-size = <2048>;
319                                 phy-mode = "rgmii";
320                                 phy-map = <0x00000000>;
321                                 rgmii-device = <&RGMII0>;
322                                 rgmii-channel = <0>;
323                                 tah-device = <&TAH0>;
324                                 tah-channel = <0>;
325                                 has-inverted-stacr-oc;
326                                 has-new-stacr-staopc;
327                         };
329                         EMAC1: ethernet@ef600b00 {
330                                 device_type = "network";
331                                 compatible = "ibm,emac-460sx", "ibm,emac4";
332                                 interrupt-parent = <&EMAC1>;
333                                 interrupts = <0x0 0x1>;
334                                 #interrupt-cells = <1>;
335                                 #address-cells = <0>;
336                                 #size-cells = <0>;
337                                 interrupt-map = </*Status*/ 0x0 &UIC0 0x14 0x4
338                                                  /*Wake*/   0x1 &UIC2 0x1d 0x4>;
339                                 reg = <0xef600b00 0x00000070>;
340                                 local-mac-address = [000000000000]; /* Filled in by U-Boot */
341                                 mal-device = <&MAL0>;
342                                 mal-tx-channel = <1>;
343                                 mal-rx-channel = <8>;
344                                 cell-index = <1>;
345                                 max-frame-size = <9000>;
346                                 rx-fifo-size = <4096>;
347                                 tx-fifo-size = <2048>;
348                                 phy-mode = "rgmii";
349                                 phy-map = <0x00000000>;
350                                 rgmii-device = <&RGMII0>;
351                                 rgmii-channel = <1>;
352                                 tah-device = <&TAH1>;
353                                 tah-channel = <1>;
354                                 has-inverted-stacr-oc;
355                                 has-new-stacr-staopc;
356                                 mdio-device = <&EMAC0>;
357                         };
359                         EMAC2: ethernet@ef600c00 {
360                                 device_type = "network";
361                                 compatible = "ibm,emac-460sx", "ibm,emac4";
362                                 interrupt-parent = <&EMAC2>;
363                                 interrupts = <0x0 0x1>;
364                                 #interrupt-cells = <1>;
365                                 #address-cells = <0>;
366                                 #size-cells = <0>;
367                                 interrupt-map = </*Status*/ 0x0 &UIC0 0x15 0x4
368                                                  /*Wake*/   0x1 &UIC2 0x1d 0x4>;
369                                 reg = <0xef600c00 0x00000070>;
370                                 local-mac-address = [000000000000]; /* Filled in by U-Boot */
371                                 mal-device = <&MAL0>;
372                                 mal-tx-channel = <2>;
373                                 mal-rx-channel = <16>;
374                                 cell-index = <2>;
375                                 max-frame-size = <9000>;
376                                 rx-fifo-size = <4096>;
377                                 tx-fifo-size = <2048>;
378                                 phy-mode = "rgmii";
379                                 phy-map = <0x00000000>;
380                                 rgmii-device = <&RGMII1>;
381                                 rgmii-channel = <0>;
382                                 has-inverted-stacr-oc;
383                                 has-new-stacr-staopc;
384                                 mdio-device = <&EMAC0>;
385                         };
387                         EMAC3: ethernet@ef600d00 {
388                                 device_type = "network";
389                                 compatible = "ibm,emac-460sx", "ibm,emac4";
390                                 interrupt-parent = <&EMAC3>;
391                                 interrupts = <0x0 0x1>;
392                                 #interrupt-cells = <1>;
393                                 #address-cells = <0>;
394                                 #size-cells = <0>;
395                                 interrupt-map = </*Status*/ 0x0 &UIC0 0x16 0x4
396                                                  /*Wake*/   0x1 &UIC2 0x1d 0x4>;
397                                 reg = <0xef600d00 0x00000070>;
398                                 local-mac-address = [000000000000]; /* Filled in by U-Boot */
399                                 mal-device = <&MAL0>;
400                                 mal-tx-channel = <3>;
401                                 mal-rx-channel = <24>;
402                                 cell-index = <3>;
403                                 max-frame-size = <9000>;
404                                 rx-fifo-size = <4096>;
405                                 tx-fifo-size = <2048>;
406                                 phy-mode = "rgmii";
407                                 phy-map = <0x00000000>;
408                                 rgmii-device = <&RGMII1>;
409                                 rgmii-channel = <1>;
410                                 has-inverted-stacr-oc;
411                                 has-new-stacr-staopc;
412                                 mdio-device = <&EMAC0>;
413                         };
414                 };
416         };
417         chosen {
418                 linux,stdout-path = "/plb/opb/serial@ef600200";
419         };