Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / arch / powerpc / boot / dts / sequoia.dts
blobac543788e576a82f7205c8ae5b1ddabdbd0b8cef
1 /*
2  * Device Tree Source for AMCC Sequoia
3  *
4  * Based on Bamboo code by Josh Boyer <jwboyer@linux.vnet.ibm.com>
5  * Copyright (c) 2006, 2007 IBM Corp.
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  */
15 / {
16         #address-cells = <2>;
17         #size-cells = <1>;
18         model = "amcc,sequoia";
19         compatible = "amcc,sequoia";
20         dcr-parent = <&/cpus/cpu@0>;
22         aliases {
23                 ethernet0 = &EMAC0;
24                 ethernet1 = &EMAC1;
25                 serial0 = &UART0;
26                 serial1 = &UART1;
27                 serial2 = &UART2;
28                 serial3 = &UART3;
29         };
31         cpus {
32                 #address-cells = <1>;
33                 #size-cells = <0>;
35                 cpu@0 {
36                         device_type = "cpu";
37                         model = "PowerPC,440EPx";
38                         reg = <0>;
39                         clock-frequency = <0>; /* Filled in by zImage */
40                         timebase-frequency = <0>; /* Filled in by zImage */
41                         i-cache-line-size = <20>;
42                         d-cache-line-size = <20>;
43                         i-cache-size = <8000>;
44                         d-cache-size = <8000>;
45                         dcr-controller;
46                         dcr-access-method = "native";
47                 };
48         };
50         memory {
51                 device_type = "memory";
52                 reg = <0 0 0>; /* Filled in by zImage */
53         };
55         UIC0: interrupt-controller0 {
56                 compatible = "ibm,uic-440epx","ibm,uic";
57                 interrupt-controller;
58                 cell-index = <0>;
59                 dcr-reg = <0c0 009>;
60                 #address-cells = <0>;
61                 #size-cells = <0>;
62                 #interrupt-cells = <2>;
63         };
65         UIC1: interrupt-controller1 {
66                 compatible = "ibm,uic-440epx","ibm,uic";
67                 interrupt-controller;
68                 cell-index = <1>;
69                 dcr-reg = <0d0 009>;
70                 #address-cells = <0>;
71                 #size-cells = <0>;
72                 #interrupt-cells = <2>;
73                 interrupts = <1e 4 1f 4>; /* cascade */
74                 interrupt-parent = <&UIC0>;
75         };
77         UIC2: interrupt-controller2 {
78                 compatible = "ibm,uic-440epx","ibm,uic";
79                 interrupt-controller;
80                 cell-index = <2>;
81                 dcr-reg = <0e0 009>;
82                 #address-cells = <0>;
83                 #size-cells = <0>;
84                 #interrupt-cells = <2>;
85                 interrupts = <1c 4 1d 4>; /* cascade */
86                 interrupt-parent = <&UIC0>;
87         };
89         SDR0: sdr {
90                 compatible = "ibm,sdr-440epx", "ibm,sdr-440ep";
91                 dcr-reg = <00e 002>;
92         };
94         CPR0: cpr {
95                 compatible = "ibm,cpr-440epx", "ibm,cpr-440ep";
96                 dcr-reg = <00c 002>;
97         };
99         plb {
100                 compatible = "ibm,plb-440epx", "ibm,plb4";
101                 #address-cells = <2>;
102                 #size-cells = <1>;
103                 ranges;
104                 clock-frequency = <0>; /* Filled in by zImage */
106                 SDRAM0: sdram {
107                         compatible = "ibm,sdram-440epx", "ibm,sdram-44x-ddr2denali";
108                         dcr-reg = <010 2>;
109                 };
111                 DMA0: dma {
112                         compatible = "ibm,dma-440epx", "ibm,dma-4xx";
113                         dcr-reg = <100 027>;
114                 };
116                 MAL0: mcmal {
117                         compatible = "ibm,mcmal-440epx", "ibm,mcmal2";
118                         dcr-reg = <180 62>;
119                         num-tx-chans = <2>;
120                         num-rx-chans = <2>;
121                         interrupt-parent = <&MAL0>;
122                         interrupts = <0 1 2 3 4>;
123                         #interrupt-cells = <1>;
124                         #address-cells = <0>;
125                         #size-cells = <0>;
126                         interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
127                                         /*RXEOB*/ 1 &UIC0 b 4
128                                         /*SERR*/  2 &UIC1 0 4
129                                         /*TXDE*/  3 &UIC1 1 4
130                                         /*RXDE*/  4 &UIC1 2 4>;
131                         interrupt-map-mask = <ffffffff>;
132                 };
134                 USB1: usb@e0000400 {
135                         compatible = "ohci-be";
136                         reg = <0 e0000400 60>;
137                         interrupt-parent = <&UIC0>;
138                         interrupts = <15 8>;
139                 };
141                 USB0: ehci@e0000300 {
142                         compatible = "ibm,usb-ehci-440epx", "usb-ehci";
143                         interrupt-parent = <&UIC0>;
144                         interrupts = <1a 4>;
145                         reg = <0 e0000300 90 0 e0000390 70>;
146                         big-endian;
147                 };
149                 POB0: opb {
150                         compatible = "ibm,opb-440epx", "ibm,opb";
151                         #address-cells = <1>;
152                         #size-cells = <1>;
153                         ranges = <00000000 1 00000000 80000000
154                                   80000000 1 80000000 80000000>;
155                         interrupt-parent = <&UIC1>;
156                         interrupts = <7 4>;
157                         clock-frequency = <0>; /* Filled in by zImage */
159                         EBC0: ebc {
160                                 compatible = "ibm,ebc-440epx", "ibm,ebc";
161                                 dcr-reg = <012 2>;
162                                 #address-cells = <2>;
163                                 #size-cells = <1>;
164                                 clock-frequency = <0>; /* Filled in by zImage */
165                                 interrupts = <5 1>;
166                                 interrupt-parent = <&UIC1>;
168                                 nor_flash@0,0 {
169                                         compatible = "amd,s29gl256n", "cfi-flash";
170                                         bank-width = <2>;
171                                         reg = <0 000000 4000000>;
172                                         #address-cells = <1>;
173                                         #size-cells = <1>;
174                                         partition@0 {
175                                                 label = "Kernel";
176                                                 reg = <0 180000>;
177                                         };
178                                         partition@180000 {
179                                                 label = "ramdisk";
180                                                 reg = <180000 200000>;
181                                         };
182                                         partition@380000 {
183                                                 label = "file system";
184                                                 reg = <380000 3aa0000>;
185                                         };
186                                         partition@3e20000 {
187                                                 label = "kozio";
188                                                 reg = <3e20000 140000>;
189                                         };
190                                         partition@3f60000 {
191                                                 label = "env";
192                                                 reg = <3f60000 40000>;
193                                         };
194                                         partition@3fa0000 {
195                                                 label = "u-boot";
196                                                 reg = <3fa0000 60000>;
197                                         };
198                                 };
200                         };
202                         UART0: serial@ef600300 {
203                                 device_type = "serial";
204                                 compatible = "ns16550";
205                                 reg = <ef600300 8>;
206                                 virtual-reg = <ef600300>;
207                                 clock-frequency = <0>; /* Filled in by zImage */
208                                 current-speed = <1c200>;
209                                 interrupt-parent = <&UIC0>;
210                                 interrupts = <0 4>;
211                         };
213                         UART1: serial@ef600400 {
214                                 device_type = "serial";
215                                 compatible = "ns16550";
216                                 reg = <ef600400 8>;
217                                 virtual-reg = <ef600400>;
218                                 clock-frequency = <0>;
219                                 current-speed = <0>;
220                                 interrupt-parent = <&UIC0>;
221                                 interrupts = <1 4>;
222                         };
224                         UART2: serial@ef600500 {
225                                 device_type = "serial";
226                                 compatible = "ns16550";
227                                 reg = <ef600500 8>;
228                                 virtual-reg = <ef600500>;
229                                 clock-frequency = <0>;
230                                 current-speed = <0>;
231                                 interrupt-parent = <&UIC1>;
232                                 interrupts = <3 4>;
233                         };
235                         UART3: serial@ef600600 {
236                                 device_type = "serial";
237                                 compatible = "ns16550";
238                                 reg = <ef600600 8>;
239                                 virtual-reg = <ef600600>;
240                                 clock-frequency = <0>;
241                                 current-speed = <0>;
242                                 interrupt-parent = <&UIC1>;
243                                 interrupts = <4 4>;
244                         };
246                         IIC0: i2c@ef600700 {
247 <<<<<<< HEAD:arch/powerpc/boot/dts/sequoia.dts
248                                 device_type = "i2c";
249 =======
250 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/dts/sequoia.dts
251                                 compatible = "ibm,iic-440epx", "ibm,iic";
252                                 reg = <ef600700 14>;
253                                 interrupt-parent = <&UIC0>;
254                                 interrupts = <2 4>;
255                         };
257                         IIC1: i2c@ef600800 {
258 <<<<<<< HEAD:arch/powerpc/boot/dts/sequoia.dts
259                                 device_type = "i2c";
260 =======
261 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/dts/sequoia.dts
262                                 compatible = "ibm,iic-440epx", "ibm,iic";
263                                 reg = <ef600800 14>;
264                                 interrupt-parent = <&UIC0>;
265                                 interrupts = <7 4>;
266                         };
268                         ZMII0: emac-zmii@ef600d00 {
269 <<<<<<< HEAD:arch/powerpc/boot/dts/sequoia.dts
270                                 device_type = "zmii-interface";
271 =======
272 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/dts/sequoia.dts
273                                 compatible = "ibm,zmii-440epx", "ibm,zmii";
274                                 reg = <ef600d00 c>;
275                         };
277                         RGMII0: emac-rgmii@ef601000 {
278 <<<<<<< HEAD:arch/powerpc/boot/dts/sequoia.dts
279                                 device_type = "rgmii-interface";
280 =======
281 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/dts/sequoia.dts
282                                 compatible = "ibm,rgmii-440epx", "ibm,rgmii";
283                                 reg = <ef601000 8>;
284                                 has-mdio;
285                         };
287                         EMAC0: ethernet@ef600e00 {
288                                 linux,network-index = <0>;
289                                 device_type = "network";
290                                 compatible = "ibm,emac-440epx", "ibm,emac4";
291                                 interrupt-parent = <&EMAC0>;
292                                 interrupts = <0 1>;
293                                 #interrupt-cells = <1>;
294                                 #address-cells = <0>;
295                                 #size-cells = <0>;
296                                 interrupt-map = </*Status*/ 0 &UIC0 18 4
297                                                 /*Wake*/  1 &UIC1 1d 4>;
298                                 reg = <ef600e00 70>;
299                                 local-mac-address = [000000000000];
300                                 mal-device = <&MAL0>;
301                                 mal-tx-channel = <0>;
302                                 mal-rx-channel = <0>;
303                                 cell-index = <0>;
304                                 max-frame-size = <5dc>;
305                                 rx-fifo-size = <1000>;
306                                 tx-fifo-size = <800>;
307                                 phy-mode = "rgmii";
308                                 phy-map = <00000000>;
309                                 zmii-device = <&ZMII0>;
310                                 zmii-channel = <0>;
311                                 rgmii-device = <&RGMII0>;
312                                 rgmii-channel = <0>;
313                                 has-inverted-stacr-oc;
314                                 has-new-stacr-staopc;
315                         };
317                         EMAC1: ethernet@ef600f00 {
318                                 linux,network-index = <1>;
319                                 device_type = "network";
320                                 compatible = "ibm,emac-440epx", "ibm,emac4";
321                                 interrupt-parent = <&EMAC1>;
322                                 interrupts = <0 1>;
323                                 #interrupt-cells = <1>;
324                                 #address-cells = <0>;
325                                 #size-cells = <0>;
326                                 interrupt-map = </*Status*/ 0 &UIC0 19 4
327                                                 /*Wake*/  1 &UIC1 1f 4>;
328                                 reg = <ef600f00 70>;
329                                 local-mac-address = [000000000000];
330                                 mal-device = <&MAL0>;
331                                 mal-tx-channel = <1>;
332                                 mal-rx-channel = <1>;
333                                 cell-index = <1>;
334                                 max-frame-size = <5dc>;
335                                 rx-fifo-size = <1000>;
336                                 tx-fifo-size = <800>;
337                                 phy-mode = "rgmii";
338                                 phy-map = <00000000>;
339                                 zmii-device = <&ZMII0>;
340                                 zmii-channel = <1>;
341                                 rgmii-device = <&RGMII0>;
342                                 rgmii-channel = <1>;
343                                 has-inverted-stacr-oc;
344                                 has-new-stacr-staopc;
345                         };
346                 };
348                 PCI0: pci@1ec000000 {
349                         device_type = "pci";
350                         #interrupt-cells = <1>;
351                         #size-cells = <2>;
352                         #address-cells = <3>;
353                         compatible = "ibm,plb440epx-pci", "ibm,plb-pci";
354                         primary;
355                         reg = <1 eec00000 8     /* Config space access */
356                                1 eed00000 4     /* IACK */
357                                1 eed00000 4     /* Special cycle */
358                                1 ef400000 40>;  /* Internal registers */
360                         /* Outbound ranges, one memory and one IO,
361                          * later cannot be changed. Chip supports a second
362                          * IO range but we don't use it for now
363                          */
364                         ranges = <02000000 0 80000000 1 80000000 0 10000000
365                                 01000000 0 00000000 1 e8000000 0 00100000>;
367                         /* Inbound 2GB range starting at 0 */
368                         dma-ranges = <42000000 0 0 0 0 0 80000000>;
370                         /* All PCI interrupts are routed to IRQ 67 */
371                         interrupt-map-mask = <0000 0 0 0>;
372                         interrupt-map = < 0000 0 0 0 &UIC2 3 8 >;
373                 };
374         };
376         chosen {
377                 linux,stdout-path = "/plb/opb/serial@ef600300";
378                 bootargs = "console=ttyS0,115200";
379         };