Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / arch / powerpc / boot / dts / bamboo.dts
blobe8330eff613eeda797d628189a5cc9d9a058f3c9
1 /*
2  * Device Tree Source for AMCC Bamboo
3  *
4  * Copyright (c) 2006, 2007 IBM Corp.
5  * Josh Boyer <jwboyer@linux.vnet.ibm.com>
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  */
14 / {
15         #address-cells = <2>;
16         #size-cells = <1>;
17         model = "amcc,bamboo";
18         compatible = "amcc,bamboo";
19         dcr-parent = <&/cpus/cpu@0>;
21         aliases {
22                 ethernet0 = &EMAC0;
23                 ethernet1 = &EMAC1;
24                 serial0 = &UART0;
25                 serial1 = &UART1;
26                 serial2 = &UART2;
27                 serial3 = &UART3;
28         };
30         cpus {
31                 #address-cells = <1>;
32                 #size-cells = <0>;
34                 cpu@0 {
35                         device_type = "cpu";
36                         model = "PowerPC,440EP";
37                         reg = <0>;
38                         clock-frequency = <0>; /* Filled in by zImage */
39                         timebase-frequency = <0>; /* Filled in by zImage */
40                         i-cache-line-size = <20>;
41                         d-cache-line-size = <20>;
42                         i-cache-size = <8000>;
43                         d-cache-size = <8000>;
44                         dcr-controller;
45                         dcr-access-method = "native";
46                 };
47         };
49         memory {
50                 device_type = "memory";
51                 reg = <0 0 0>; /* Filled in by zImage */
52         };
54         UIC0: interrupt-controller0 {
55                 compatible = "ibm,uic-440ep","ibm,uic";
56                 interrupt-controller;
57                 cell-index = <0>;
58                 dcr-reg = <0c0 009>;
59                 #address-cells = <0>;
60                 #size-cells = <0>;
61                 #interrupt-cells = <2>;
62         };
64         UIC1: interrupt-controller1 {
65                 compatible = "ibm,uic-440ep","ibm,uic";
66                 interrupt-controller;
67                 cell-index = <1>;
68                 dcr-reg = <0d0 009>;
69                 #address-cells = <0>;
70                 #size-cells = <0>;
71                 #interrupt-cells = <2>;
72                 interrupts = <1e 4 1f 4>; /* cascade */
73                 interrupt-parent = <&UIC0>;
74         };
76         SDR0: sdr {
77                 compatible = "ibm,sdr-440ep";
78                 dcr-reg = <00e 002>;
79         };
81         CPR0: cpr {
82                 compatible = "ibm,cpr-440ep";
83                 dcr-reg = <00c 002>;
84         };
86         plb {
87                 compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
88                 #address-cells = <2>;
89                 #size-cells = <1>;
90                 ranges;
91                 clock-frequency = <0>; /* Filled in by zImage */
93                 SDRAM0: sdram {
94                         compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
95                         dcr-reg = <010 2>;
96                 };
98                 DMA0: dma {
99                         compatible = "ibm,dma-440ep", "ibm,dma-440gp";
100                         dcr-reg = <100 027>;
101                 };
103                 MAL0: mcmal {
104                         compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
105                         dcr-reg = <180 62>;
106                         num-tx-chans = <4>;
107                         num-rx-chans = <2>;
108                         interrupt-parent = <&MAL0>;
109                         interrupts = <0 1 2 3 4>;
110                         #interrupt-cells = <1>;
111                         #address-cells = <0>;
112                         #size-cells = <0>;
113                         interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
114                                         /*RXEOB*/ 1 &UIC0 b 4
115                                         /*SERR*/  2 &UIC1 0 4
116                                         /*TXDE*/  3 &UIC1 1 4
117                                         /*RXDE*/  4 &UIC1 2 4>;
118                 };
120                 POB0: opb {
121                         compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
122                         #address-cells = <1>;
123                         #size-cells = <1>;
124                         /* Bamboo is oddball in the 44x world and doesn't use the ERPN
125                          * bits.
126                          */
127                         ranges = <00000000 0 00000000 80000000
128                                   80000000 0 80000000 80000000>;
129                         interrupt-parent = <&UIC1>;
130                         interrupts = <7 4>;
131                         clock-frequency = <0>; /* Filled in by zImage */
133                         EBC0: ebc {
134                                 compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
135                                 dcr-reg = <012 2>;
136                                 #address-cells = <2>;
137                                 #size-cells = <1>;
138                                 clock-frequency = <0>; /* Filled in by zImage */
139                                 interrupts = <5 1>;
140                                 interrupt-parent = <&UIC1>;
141                         };
143                         UART0: serial@ef600300 {
144                                 device_type = "serial";
145                                 compatible = "ns16550";
146                                 reg = <ef600300 8>;
147                                 virtual-reg = <ef600300>;
148                                 clock-frequency = <0>; /* Filled in by zImage */
149                                 current-speed = <1c200>;
150                                 interrupt-parent = <&UIC0>;
151                                 interrupts = <0 4>;
152                         };
154                         UART1: serial@ef600400 {
155                                 device_type = "serial";
156                                 compatible = "ns16550";
157                                 reg = <ef600400 8>;
158                                 virtual-reg = <ef600400>;
159                                 clock-frequency = <0>;
160                                 current-speed = <0>;
161                                 interrupt-parent = <&UIC0>;
162                                 interrupts = <1 4>;
163                         };
165                         UART2: serial@ef600500 {
166                                 device_type = "serial";
167                                 compatible = "ns16550";
168                                 reg = <ef600500 8>;
169                                 virtual-reg = <ef600500>;
170                                 clock-frequency = <0>;
171                                 current-speed = <0>;
172                                 interrupt-parent = <&UIC0>;
173                                 interrupts = <3 4>;
174                         };
176                         UART3: serial@ef600600 {
177                                 device_type = "serial";
178                                 compatible = "ns16550";
179                                 reg = <ef600600 8>;
180                                 virtual-reg = <ef600600>;
181                                 clock-frequency = <0>;
182                                 current-speed = <0>;
183                                 interrupt-parent = <&UIC0>;
184                                 interrupts = <4 4>;
185                         };
187                         IIC0: i2c@ef600700 {
188 <<<<<<< HEAD:arch/powerpc/boot/dts/bamboo.dts
189                                 device_type = "i2c";
190 =======
191 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/dts/bamboo.dts
192                                 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
193                                 reg = <ef600700 14>;
194                                 interrupt-parent = <&UIC0>;
195                                 interrupts = <2 4>;
196                         };
198                         IIC1: i2c@ef600800 {
199 <<<<<<< HEAD:arch/powerpc/boot/dts/bamboo.dts
200                                 device_type = "i2c";
201 =======
202 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/dts/bamboo.dts
203                                 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
204                                 reg = <ef600800 14>;
205                                 interrupt-parent = <&UIC0>;
206                                 interrupts = <7 4>;
207                         };
209                         ZMII0: emac-zmii@ef600d00 {
210 <<<<<<< HEAD:arch/powerpc/boot/dts/bamboo.dts
211                                 device_type = "zmii-interface";
212 =======
213 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/dts/bamboo.dts
214                                 compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
215                                 reg = <ef600d00 c>;
216                         };
218                         EMAC0: ethernet@ef600e00 {
219                                 linux,network-index = <0>;
220                                 device_type = "network";
221                                 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
222                                 interrupt-parent = <&UIC1>;
223                                 interrupts = <1c 4 1d 4>;
224                                 reg = <ef600e00 70>;
225                                 local-mac-address = [000000000000];
226                                 mal-device = <&MAL0>;
227                                 mal-tx-channel = <0 1>;
228                                 mal-rx-channel = <0>;
229                                 cell-index = <0>;
230                                 max-frame-size = <5dc>;
231                                 rx-fifo-size = <1000>;
232                                 tx-fifo-size = <800>;
233                                 phy-mode = "rmii";
234                                 phy-map = <00000000>;
235                                 zmii-device = <&ZMII0>;
236                                 zmii-channel = <0>;
237                         };
239                         EMAC1: ethernet@ef600f00 {
240                                 linux,network-index = <1>;
241                                 device_type = "network";
242                                 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
243                                 interrupt-parent = <&UIC1>;
244                                 interrupts = <1e 4 1f 4>;
245                                 reg = <ef600f00 70>;
246                                 local-mac-address = [000000000000];
247                                 mal-device = <&MAL0>;
248                                 mal-tx-channel = <2 3>;
249                                 mal-rx-channel = <1>;
250                                 cell-index = <1>;
251                                 max-frame-size = <5dc>;
252                                 rx-fifo-size = <1000>;
253                                 tx-fifo-size = <800>;
254                                 phy-mode = "rmii";
255                                 phy-map = <00000000>;
256                                 zmii-device = <&ZMII0>;
257                                 zmii-channel = <1>;
258                         };
260                         usb@ef601000 {
261                                 compatible = "ohci-be";
262                                 reg = <ef601000 80>;
263                                 interrupts = <8 1 9 1>;
264                                 interrupt-parent = < &UIC1 >;
265                         };
266                 };
268                 PCI0: pci@ec000000 {
269                         device_type = "pci";
270                         #interrupt-cells = <1>;
271                         #size-cells = <2>;
272                         #address-cells = <3>;
273                         compatible = "ibm,plb440ep-pci", "ibm,plb-pci";
274                         primary;
275                         reg = <0 eec00000 8     /* Config space access */
276                                0 eed00000 4     /* IACK */
277                                0 eed00000 4     /* Special cycle */
278                                0 ef400000 40>;  /* Internal registers */
280                         /* Outbound ranges, one memory and one IO,
281                          * later cannot be changed. Chip supports a second
282                          * IO range but we don't use it for now
283                          */
284                         ranges = <02000000 0 a0000000 0 a0000000 0 20000000
285                                   01000000 0 00000000 0 e8000000 0 00010000>;
287                         /* Inbound 2GB range starting at 0 */
288                         dma-ranges = <42000000 0 0 0 0 0 80000000>;
290                         /* Bamboo has all 4 IRQ pins tied together per slot */
291                         interrupt-map-mask = <f800 0 0 0>;
292                         interrupt-map = <
293                                 /* IDSEL 1 */
294                                 0800 0 0 0 &UIC0 1c 8
296                                 /* IDSEL 2 */
297                                 1000 0 0 0 &UIC0 1b 8
299                                 /* IDSEL 3 */
300                                 1800 0 0 0 &UIC0 1a 8
302                                 /* IDSEL 4 */
303                                 2000 0 0 0 &UIC0 19 8
304                         >;
305                 };
306         };
308         chosen {
309                 linux,stdout-path = "/plb/opb/serial@ef600300";
310         };