Merge branch 'linux-2.6'
[pandora-kernel.git] / arch / powerpc / boot / dts / mpc834x_mds.dts
1 /*
2  * MPC8349E MDS Device Tree Source
3  *
4  * Copyright 2005, 2006 Freescale Semiconductor Inc.
5  *
6  * This program is free software; you can redistribute  it and/or modify it
7  * under  the terms of  the GNU General  Public License as published by the
8  * Free Software Foundation;  either version 2 of the  License, or (at your
9  * option) any later version.
10  */
11
12 /dts-v1/;
13
14 / {
15         model = "MPC8349EMDS";
16         compatible = "MPC8349EMDS", "MPC834xMDS", "MPC83xxMDS";
17         #address-cells = <1>;
18         #size-cells = <1>;
19
20         aliases {
21                 ethernet0 = &enet0;
22                 ethernet1 = &enet1;
23                 serial0 = &serial0;
24                 serial1 = &serial1;
25                 pci0 = &pci0;
26                 pci1 = &pci1;
27         };
28
29         cpus {
30                 #address-cells = <1>;
31                 #size-cells = <0>;
32
33                 PowerPC,8349@0 {
34                         device_type = "cpu";
35                         reg = <0x0>;
36                         d-cache-line-size = <32>;
37                         i-cache-line-size = <32>;
38                         d-cache-size = <32768>;
39                         i-cache-size = <32768>;
40                         timebase-frequency = <0>;       // from bootloader
41                         bus-frequency = <0>;            // from bootloader
42                         clock-frequency = <0>;          // from bootloader
43                 };
44         };
45
46         memory {
47                 device_type = "memory";
48                 reg = <0x00000000 0x10000000>;  // 256MB at 0
49         };
50
51         bcsr@e2400000 {
52                 device_type = "board-control";
53                 reg = <0xe2400000 0x8000>;
54         };
55
56         soc8349@e0000000 {
57                 #address-cells = <1>;
58                 #size-cells = <1>;
59                 device_type = "soc";
60                 ranges = <0x0 0xe0000000 0x00100000>;
61                 reg = <0xe0000000 0x00000200>;
62                 bus-frequency = <0>;
63
64                 wdt@200 {
65                         device_type = "watchdog";
66                         compatible = "mpc83xx_wdt";
67                         reg = <0x200 0x100>;
68                 };
69
70                 i2c@3000 {
71                         #address-cells = <1>;
72                         #size-cells = <0>;
73                         cell-index = <0>;
74                         compatible = "fsl-i2c";
75                         reg = <0x3000 0x100>;
76                         interrupts = <14 0x8>;
77                         interrupt-parent = <&ipic>;
78                         dfsrr;
79
80                         rtc@68 {
81                                 compatible = "dallas,ds1374";
82                                 reg = <0x68>;
83                         };
84                 };
85
86                 i2c@3100 {
87                         #address-cells = <1>;
88                         #size-cells = <0>;
89                         cell-index = <1>;
90                         compatible = "fsl-i2c";
91                         reg = <0x3100 0x100>;
92                         interrupts = <15 0x8>;
93                         interrupt-parent = <&ipic>;
94                         dfsrr;
95                 };
96
97                 spi@7000 {
98                         cell-index = <0>;
99                         compatible = "fsl,spi";
100                         reg = <0x7000 0x1000>;
101                         interrupts = <16 0x8>;
102                         interrupt-parent = <&ipic>;
103                         mode = "cpu";
104                 };
105
106                 dma@82a8 {
107                         #address-cells = <1>;
108                         #size-cells = <1>;
109                         compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
110                         reg = <0x82a8 4>;
111                         ranges = <0 0x8100 0x1a8>;
112                         interrupt-parent = <&ipic>;
113                         interrupts = <71 8>;
114                         cell-index = <0>;
115                         dma-channel@0 {
116                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
117                                 reg = <0 0x80>;
118                                 interrupt-parent = <&ipic>;
119                                 interrupts = <71 8>;
120                         };
121                         dma-channel@80 {
122                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
123                                 reg = <0x80 0x80>;
124                                 interrupt-parent = <&ipic>;
125                                 interrupts = <71 8>;
126                         };
127                         dma-channel@100 {
128                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
129                                 reg = <0x100 0x80>;
130                                 interrupt-parent = <&ipic>;
131                                 interrupts = <71 8>;
132                         };
133                         dma-channel@180 {
134                                 compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
135                                 reg = <0x180 0x28>;
136                                 interrupt-parent = <&ipic>;
137                                 interrupts = <71 8>;
138                         };
139                 };
140
141                 /* phy type (ULPI or SERIAL) are only types supported for MPH */
142                 /* port = 0 or 1 */
143                 usb@22000 {
144                         compatible = "fsl-usb2-mph";
145                         reg = <0x22000 0x1000>;
146                         #address-cells = <1>;
147                         #size-cells = <0>;
148                         interrupt-parent = <&ipic>;
149                         interrupts = <39 0x8>;
150                         phy_type = "ulpi";
151                         port1;
152                 };
153                 /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
154                 usb@23000 {
155                         compatible = "fsl-usb2-dr";
156                         reg = <0x23000 0x1000>;
157                         #address-cells = <1>;
158                         #size-cells = <0>;
159                         interrupt-parent = <&ipic>;
160                         interrupts = <38 0x8>;
161                         dr_mode = "otg";
162                         phy_type = "ulpi";
163                 };
164
165                 mdio@24520 {
166                         #address-cells = <1>;
167                         #size-cells = <0>;
168                         compatible = "fsl,gianfar-mdio";
169                         reg = <0x24520 0x20>;
170
171                         phy0: ethernet-phy@0 {
172                                 interrupt-parent = <&ipic>;
173                                 interrupts = <17 0x8>;
174                                 reg = <0x0>;
175                                 device_type = "ethernet-phy";
176                         };
177                         phy1: ethernet-phy@1 {
178                                 interrupt-parent = <&ipic>;
179                                 interrupts = <18 0x8>;
180                                 reg = <0x1>;
181                                 device_type = "ethernet-phy";
182                         };
183                 };
184
185                 enet0: ethernet@24000 {
186                         cell-index = <0>;
187                         device_type = "network";
188                         model = "TSEC";
189                         compatible = "gianfar";
190                         reg = <0x24000 0x1000>;
191                         local-mac-address = [ 00 00 00 00 00 00 ];
192                         interrupts = <32 0x8 33 0x8 34 0x8>;
193                         interrupt-parent = <&ipic>;
194                         phy-handle = <&phy0>;
195                         linux,network-index = <0>;
196                 };
197
198                 enet1: ethernet@25000 {
199                         cell-index = <1>;
200                         device_type = "network";
201                         model = "TSEC";
202                         compatible = "gianfar";
203                         reg = <0x25000 0x1000>;
204                         local-mac-address = [ 00 00 00 00 00 00 ];
205                         interrupts = <35 0x8 36 0x8 37 0x8>;
206                         interrupt-parent = <&ipic>;
207                         phy-handle = <&phy1>;
208                         linux,network-index = <1>;
209                 };
210
211                 serial0: serial@4500 {
212                         cell-index = <0>;
213                         device_type = "serial";
214                         compatible = "ns16550";
215                         reg = <0x4500 0x100>;
216                         clock-frequency = <0>;
217                         interrupts = <9 0x8>;
218                         interrupt-parent = <&ipic>;
219                 };
220
221                 serial1: serial@4600 {
222                         cell-index = <1>;
223                         device_type = "serial";
224                         compatible = "ns16550";
225                         reg = <0x4600 0x100>;
226                         clock-frequency = <0>;
227                         interrupts = <10 0x8>;
228                         interrupt-parent = <&ipic>;
229                 };
230
231                 /* May need to remove if on a part without crypto engine */
232                 crypto@30000 {
233                         device_type = "crypto";
234                         model = "SEC2";
235                         compatible = "talitos";
236                         reg = <0x30000 0x10000>;
237                         interrupts = <11 0x8>;
238                         interrupt-parent = <&ipic>;
239                         num-channels = <4>;
240                         channel-fifo-len = <24>;
241                         exec-units-mask = <0x0000007e>;
242                         /* desc mask is for rev2.0,
243                          * we need runtime fixup for >2.0 */
244                         descriptor-types-mask = <0x01010ebf>;
245                 };
246
247                 /* IPIC
248                  * interrupts cell = <intr #, sense>
249                  * sense values match linux IORESOURCE_IRQ_* defines:
250                  * sense == 8: Level, low assertion
251                  * sense == 2: Edge, high-to-low change
252                  */
253                 ipic: pic@700 {
254                         interrupt-controller;
255                         #address-cells = <0>;
256                         #interrupt-cells = <2>;
257                         reg = <0x700 0x100>;
258                         device_type = "ipic";
259                 };
260         };
261
262         pci0: pci@e0008500 {
263                 cell-index = <1>;
264                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
265                 interrupt-map = <
266
267                                 /* IDSEL 0x11 */
268                                  0x8800 0x0 0x0 0x1 &ipic 20 0x8
269                                  0x8800 0x0 0x0 0x2 &ipic 21 0x8
270                                  0x8800 0x0 0x0 0x3 &ipic 22 0x8
271                                  0x8800 0x0 0x0 0x4 &ipic 23 0x8
272
273                                 /* IDSEL 0x12 */
274                                  0x9000 0x0 0x0 0x1 &ipic 22 0x8
275                                  0x9000 0x0 0x0 0x2 &ipic 23 0x8
276                                  0x9000 0x0 0x0 0x3 &ipic 20 0x8
277                                  0x9000 0x0 0x0 0x4 &ipic 21 0x8
278
279                                 /* IDSEL 0x13 */
280                                  0x9800 0x0 0x0 0x1 &ipic 23 0x8
281                                  0x9800 0x0 0x0 0x2 &ipic 20 0x8
282                                  0x9800 0x0 0x0 0x3 &ipic 21 0x8
283                                  0x9800 0x0 0x0 0x4 &ipic 22 0x8
284
285                                 /* IDSEL 0x15 */
286                                  0xa800 0x0 0x0 0x1 &ipic 20 0x8
287                                  0xa800 0x0 0x0 0x2 &ipic 21 0x8
288                                  0xa800 0x0 0x0 0x3 &ipic 22 0x8
289                                  0xa800 0x0 0x0 0x4 &ipic 23 0x8
290
291                                 /* IDSEL 0x16 */
292                                  0xb000 0x0 0x0 0x1 &ipic 23 0x8
293                                  0xb000 0x0 0x0 0x2 &ipic 20 0x8
294                                  0xb000 0x0 0x0 0x3 &ipic 21 0x8
295                                  0xb000 0x0 0x0 0x4 &ipic 22 0x8
296
297                                 /* IDSEL 0x17 */
298                                  0xb800 0x0 0x0 0x1 &ipic 22 0x8
299                                  0xb800 0x0 0x0 0x2 &ipic 23 0x8
300                                  0xb800 0x0 0x0 0x3 &ipic 20 0x8
301                                  0xb800 0x0 0x0 0x4 &ipic 21 0x8
302
303                                 /* IDSEL 0x18 */
304                                  0xc000 0x0 0x0 0x1 &ipic 21 0x8
305                                  0xc000 0x0 0x0 0x2 &ipic 22 0x8
306                                  0xc000 0x0 0x0 0x3 &ipic 23 0x8
307                                  0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
308                 interrupt-parent = <&ipic>;
309                 interrupts = <66 0x8>;
310                 bus-range = <0 0>;
311                 ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
312                           0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
313                           0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
314                 clock-frequency = <66666666>;
315                 #interrupt-cells = <1>;
316                 #size-cells = <2>;
317                 #address-cells = <3>;
318                 reg = <0xe0008500 0x100>;
319                 compatible = "fsl,mpc8349-pci";
320                 device_type = "pci";
321         };
322
323         pci1: pci@e0008600 {
324                 cell-index = <2>;
325                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
326                 interrupt-map = <
327
328                                 /* IDSEL 0x11 */
329                                  0x8800 0x0 0x0 0x1 &ipic 20 0x8
330                                  0x8800 0x0 0x0 0x2 &ipic 21 0x8
331                                  0x8800 0x0 0x0 0x3 &ipic 22 0x8
332                                  0x8800 0x0 0x0 0x4 &ipic 23 0x8
333
334                                 /* IDSEL 0x12 */
335                                  0x9000 0x0 0x0 0x1 &ipic 22 0x8
336                                  0x9000 0x0 0x0 0x2 &ipic 23 0x8
337                                  0x9000 0x0 0x0 0x3 &ipic 20 0x8
338                                  0x9000 0x0 0x0 0x4 &ipic 21 0x8
339
340                                 /* IDSEL 0x13 */
341                                  0x9800 0x0 0x0 0x1 &ipic 23 0x8
342                                  0x9800 0x0 0x0 0x2 &ipic 20 0x8
343                                  0x9800 0x0 0x0 0x3 &ipic 21 0x8
344                                  0x9800 0x0 0x0 0x4 &ipic 22 0x8
345
346                                 /* IDSEL 0x15 */
347                                  0xa800 0x0 0x0 0x1 &ipic 20 0x8
348                                  0xa800 0x0 0x0 0x2 &ipic 21 0x8
349                                  0xa800 0x0 0x0 0x3 &ipic 22 0x8
350                                  0xa800 0x0 0x0 0x4 &ipic 23 0x8
351
352                                 /* IDSEL 0x16 */
353                                  0xb000 0x0 0x0 0x1 &ipic 23 0x8
354                                  0xb000 0x0 0x0 0x2 &ipic 20 0x8
355                                  0xb000 0x0 0x0 0x3 &ipic 21 0x8
356                                  0xb000 0x0 0x0 0x4 &ipic 22 0x8
357
358                                 /* IDSEL 0x17 */
359                                  0xb800 0x0 0x0 0x1 &ipic 22 0x8
360                                  0xb800 0x0 0x0 0x2 &ipic 23 0x8
361                                  0xb800 0x0 0x0 0x3 &ipic 20 0x8
362                                  0xb800 0x0 0x0 0x4 &ipic 21 0x8
363
364                                 /* IDSEL 0x18 */
365                                  0xc000 0x0 0x0 0x1 &ipic 21 0x8
366                                  0xc000 0x0 0x0 0x2 &ipic 22 0x8
367                                  0xc000 0x0 0x0 0x3 &ipic 23 0x8
368                                  0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
369                 interrupt-parent = <&ipic>;
370                 interrupts = <67 0x8>;
371                 bus-range = <0 0>;
372                 ranges = <0x02000000 0x0 0xb0000000 0xb0000000 0x0 0x10000000
373                           0x42000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000
374                           0x01000000 0x0 0x00000000 0xe2100000 0x0 0x00100000>;
375                 clock-frequency = <66666666>;
376                 #interrupt-cells = <1>;
377                 #size-cells = <2>;
378                 #address-cells = <3>;
379                 reg = <0xe0008600 0x100>;
380                 compatible = "fsl,mpc8349-pci";
381                 device_type = "pci";
382         };
383 };