Merge branch 'master' of /home/cbou/linux-2.6
[linux-2.6] / 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                 crypto@30000 {
232                         compatible = "fsl,sec2.0";
233                         reg = <0x30000 0x10000>;
234                         interrupts = <11 0x8>;
235                         interrupt-parent = <&ipic>;
236                         fsl,num-channels = <4>;
237                         fsl,channel-fifo-len = <24>;
238                         fsl,exec-units-mask = <0x7e>;
239                         fsl,descriptor-types-mask = <0x01010ebf>;
240                 };
241
242                 /* IPIC
243                  * interrupts cell = <intr #, sense>
244                  * sense values match linux IORESOURCE_IRQ_* defines:
245                  * sense == 8: Level, low assertion
246                  * sense == 2: Edge, high-to-low change
247                  */
248                 ipic: pic@700 {
249                         interrupt-controller;
250                         #address-cells = <0>;
251                         #interrupt-cells = <2>;
252                         reg = <0x700 0x100>;
253                         device_type = "ipic";
254                 };
255         };
256
257         pci0: pci@e0008500 {
258                 cell-index = <1>;
259                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
260                 interrupt-map = <
261
262                                 /* IDSEL 0x11 */
263                                  0x8800 0x0 0x0 0x1 &ipic 20 0x8
264                                  0x8800 0x0 0x0 0x2 &ipic 21 0x8
265                                  0x8800 0x0 0x0 0x3 &ipic 22 0x8
266                                  0x8800 0x0 0x0 0x4 &ipic 23 0x8
267
268                                 /* IDSEL 0x12 */
269                                  0x9000 0x0 0x0 0x1 &ipic 22 0x8
270                                  0x9000 0x0 0x0 0x2 &ipic 23 0x8
271                                  0x9000 0x0 0x0 0x3 &ipic 20 0x8
272                                  0x9000 0x0 0x0 0x4 &ipic 21 0x8
273
274                                 /* IDSEL 0x13 */
275                                  0x9800 0x0 0x0 0x1 &ipic 23 0x8
276                                  0x9800 0x0 0x0 0x2 &ipic 20 0x8
277                                  0x9800 0x0 0x0 0x3 &ipic 21 0x8
278                                  0x9800 0x0 0x0 0x4 &ipic 22 0x8
279
280                                 /* IDSEL 0x15 */
281                                  0xa800 0x0 0x0 0x1 &ipic 20 0x8
282                                  0xa800 0x0 0x0 0x2 &ipic 21 0x8
283                                  0xa800 0x0 0x0 0x3 &ipic 22 0x8
284                                  0xa800 0x0 0x0 0x4 &ipic 23 0x8
285
286                                 /* IDSEL 0x16 */
287                                  0xb000 0x0 0x0 0x1 &ipic 23 0x8
288                                  0xb000 0x0 0x0 0x2 &ipic 20 0x8
289                                  0xb000 0x0 0x0 0x3 &ipic 21 0x8
290                                  0xb000 0x0 0x0 0x4 &ipic 22 0x8
291
292                                 /* IDSEL 0x17 */
293                                  0xb800 0x0 0x0 0x1 &ipic 22 0x8
294                                  0xb800 0x0 0x0 0x2 &ipic 23 0x8
295                                  0xb800 0x0 0x0 0x3 &ipic 20 0x8
296                                  0xb800 0x0 0x0 0x4 &ipic 21 0x8
297
298                                 /* IDSEL 0x18 */
299                                  0xc000 0x0 0x0 0x1 &ipic 21 0x8
300                                  0xc000 0x0 0x0 0x2 &ipic 22 0x8
301                                  0xc000 0x0 0x0 0x3 &ipic 23 0x8
302                                  0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
303                 interrupt-parent = <&ipic>;
304                 interrupts = <66 0x8>;
305                 bus-range = <0 0>;
306                 ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
307                           0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
308                           0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
309                 clock-frequency = <66666666>;
310                 #interrupt-cells = <1>;
311                 #size-cells = <2>;
312                 #address-cells = <3>;
313                 reg = <0xe0008500 0x100>;
314                 compatible = "fsl,mpc8349-pci";
315                 device_type = "pci";
316         };
317
318         pci1: pci@e0008600 {
319                 cell-index = <2>;
320                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
321                 interrupt-map = <
322
323                                 /* IDSEL 0x11 */
324                                  0x8800 0x0 0x0 0x1 &ipic 20 0x8
325                                  0x8800 0x0 0x0 0x2 &ipic 21 0x8
326                                  0x8800 0x0 0x0 0x3 &ipic 22 0x8
327                                  0x8800 0x0 0x0 0x4 &ipic 23 0x8
328
329                                 /* IDSEL 0x12 */
330                                  0x9000 0x0 0x0 0x1 &ipic 22 0x8
331                                  0x9000 0x0 0x0 0x2 &ipic 23 0x8
332                                  0x9000 0x0 0x0 0x3 &ipic 20 0x8
333                                  0x9000 0x0 0x0 0x4 &ipic 21 0x8
334
335                                 /* IDSEL 0x13 */
336                                  0x9800 0x0 0x0 0x1 &ipic 23 0x8
337                                  0x9800 0x0 0x0 0x2 &ipic 20 0x8
338                                  0x9800 0x0 0x0 0x3 &ipic 21 0x8
339                                  0x9800 0x0 0x0 0x4 &ipic 22 0x8
340
341                                 /* IDSEL 0x15 */
342                                  0xa800 0x0 0x0 0x1 &ipic 20 0x8
343                                  0xa800 0x0 0x0 0x2 &ipic 21 0x8
344                                  0xa800 0x0 0x0 0x3 &ipic 22 0x8
345                                  0xa800 0x0 0x0 0x4 &ipic 23 0x8
346
347                                 /* IDSEL 0x16 */
348                                  0xb000 0x0 0x0 0x1 &ipic 23 0x8
349                                  0xb000 0x0 0x0 0x2 &ipic 20 0x8
350                                  0xb000 0x0 0x0 0x3 &ipic 21 0x8
351                                  0xb000 0x0 0x0 0x4 &ipic 22 0x8
352
353                                 /* IDSEL 0x17 */
354                                  0xb800 0x0 0x0 0x1 &ipic 22 0x8
355                                  0xb800 0x0 0x0 0x2 &ipic 23 0x8
356                                  0xb800 0x0 0x0 0x3 &ipic 20 0x8
357                                  0xb800 0x0 0x0 0x4 &ipic 21 0x8
358
359                                 /* IDSEL 0x18 */
360                                  0xc000 0x0 0x0 0x1 &ipic 21 0x8
361                                  0xc000 0x0 0x0 0x2 &ipic 22 0x8
362                                  0xc000 0x0 0x0 0x3 &ipic 23 0x8
363                                  0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
364                 interrupt-parent = <&ipic>;
365                 interrupts = <67 0x8>;
366                 bus-range = <0 0>;
367                 ranges = <0x02000000 0x0 0xb0000000 0xb0000000 0x0 0x10000000
368                           0x42000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000
369                           0x01000000 0x0 0x00000000 0xe2100000 0x0 0x00100000>;
370                 clock-frequency = <66666666>;
371                 #interrupt-cells = <1>;
372                 #size-cells = <2>;
373                 #address-cells = <3>;
374                 reg = <0xe0008600 0x100>;
375                 compatible = "fsl,mpc8349-pci";
376                 device_type = "pci";
377         };
378 };