Merge branch '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 / {
13         model = "MPC8349EMDS";
14         compatible = "MPC8349EMDS", "MPC834xMDS", "MPC83xxMDS";
15         #address-cells = <1>;
16         #size-cells = <1>;
17
18         cpus {
19                 #address-cells = <1>;
20                 #size-cells = <0>;
21
22                 PowerPC,8349@0 {
23                         device_type = "cpu";
24                         reg = <0>;
25                         d-cache-line-size = <20>;       // 32 bytes
26                         i-cache-line-size = <20>;       // 32 bytes
27                         d-cache-size = <8000>;          // L1, 32K
28                         i-cache-size = <8000>;          // L1, 32K
29                         timebase-frequency = <0>;       // from bootloader
30                         bus-frequency = <0>;            // from bootloader
31                         clock-frequency = <0>;          // from bootloader
32                 };
33         };
34
35         memory {
36                 device_type = "memory";
37                 reg = <00000000 10000000>;      // 256MB at 0
38         };
39
40         bcsr@e2400000 {
41                 device_type = "board-control";
42                 reg = <e2400000 8000>;
43         };
44
45         soc8349@e0000000 {
46                 #address-cells = <1>;
47                 #size-cells = <1>;
48                 device_type = "soc";
49                 ranges = <0 e0000000 00100000>;
50                 reg = <e0000000 00000200>;
51                 bus-frequency = <0>;
52
53                 wdt@200 {
54                         device_type = "watchdog";
55                         compatible = "mpc83xx_wdt";
56                         reg = <200 100>;
57                 };
58
59                 i2c@3000 {
60                         device_type = "i2c";
61                         compatible = "fsl-i2c";
62                         reg = <3000 100>;
63                         interrupts = <e 8>;
64                         interrupt-parent = < &ipic >;
65                         dfsrr;
66                 };
67
68                 i2c@3100 {
69                         device_type = "i2c";
70                         compatible = "fsl-i2c";
71                         reg = <3100 100>;
72                         interrupts = <f 8>;
73                         interrupt-parent = < &ipic >;
74                         dfsrr;
75                 };
76
77                 spi@7000 {
78                         device_type = "spi";
79                         compatible = "mpc83xx_spi";
80                         reg = <7000 1000>;
81                         interrupts = <10 8>;
82                         interrupt-parent = < &ipic >;
83                         mode = <0>;
84                 };
85
86                 /* phy type (ULPI or SERIAL) are only types supportted for MPH */
87                 /* port = 0 or 1 */
88                 usb@22000 {
89                         device_type = "usb";
90                         compatible = "fsl-usb2-mph";
91                         reg = <22000 1000>;
92                         #address-cells = <1>;
93                         #size-cells = <0>;
94                         interrupt-parent = < &ipic >;
95                         interrupts = <27 8>;
96                         phy_type = "ulpi";
97                         port1;
98                 };
99                 /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */
100                 usb@23000 {
101                         device_type = "usb";
102                         compatible = "fsl-usb2-dr";
103                         reg = <23000 1000>;
104                         #address-cells = <1>;
105                         #size-cells = <0>;
106                         interrupt-parent = < &ipic >;
107                         interrupts = <26 8>;
108                         dr_mode = "otg";
109                         phy_type = "ulpi";
110                 };
111
112                 mdio@24520 {
113                         device_type = "mdio";
114                         compatible = "gianfar";
115                         reg = <24520 20>;
116                         #address-cells = <1>;
117                         #size-cells = <0>;
118                         phy0: ethernet-phy@0 {
119                                 interrupt-parent = < &ipic >;
120                                 interrupts = <11 8>;
121                                 reg = <0>;
122                                 device_type = "ethernet-phy";
123                         };
124                         phy1: ethernet-phy@1 {
125                                 interrupt-parent = < &ipic >;
126                                 interrupts = <12 8>;
127                                 reg = <1>;
128                                 device_type = "ethernet-phy";
129                         };
130                 };
131
132                 ethernet@24000 {
133                         device_type = "network";
134                         model = "TSEC";
135                         compatible = "gianfar";
136                         reg = <24000 1000>;
137                         /*
138                          * address is deprecated and will be removed
139                          * in 2.6.25.  Only recent versions of
140                          * U-Boot support local-mac-address, however.
141                          */
142                         address = [ 00 00 00 00 00 00 ];
143                         local-mac-address = [ 00 00 00 00 00 00 ];
144                         interrupts = <20 8 21 8 22 8>;
145                         interrupt-parent = < &ipic >;
146                         phy-handle = < &phy0 >;
147                 };
148
149                 ethernet@25000 {
150                         #address-cells = <1>;
151                         #size-cells = <0>;
152                         device_type = "network";
153                         model = "TSEC";
154                         compatible = "gianfar";
155                         reg = <25000 1000>;
156                         /*
157                          * address is deprecated and will be removed
158                          * in 2.6.25.  Only recent versions of
159                          * U-Boot support local-mac-address, however.
160                          */
161                         address = [ 00 00 00 00 00 00 ];
162                         local-mac-address = [ 00 00 00 00 00 00 ];
163                         interrupts = <23 8 24 8 25 8>;
164                         interrupt-parent = < &ipic >;
165                         phy-handle = < &phy1 >;
166                 };
167
168                 serial@4500 {
169                         device_type = "serial";
170                         compatible = "ns16550";
171                         reg = <4500 100>;
172                         clock-frequency = <0>;
173                         interrupts = <9 8>;
174                         interrupt-parent = < &ipic >;
175                 };
176
177                 serial@4600 {
178                         device_type = "serial";
179                         compatible = "ns16550";
180                         reg = <4600 100>;
181                         clock-frequency = <0>;
182                         interrupts = <a 8>;
183                         interrupt-parent = < &ipic >;
184                 };
185
186                 /* May need to remove if on a part without crypto engine */
187                 crypto@30000 {
188                         device_type = "crypto";
189                         model = "SEC2";
190                         compatible = "talitos";
191                         reg = <30000 10000>;
192                         interrupts = <b 8>;
193                         interrupt-parent = < &ipic >;
194                         num-channels = <4>;
195                         channel-fifo-len = <18>;
196                         exec-units-mask = <0000007e>;
197                         /* desc mask is for rev2.0,
198                          * we need runtime fixup for >2.0 */
199                         descriptor-types-mask = <01010ebf>;
200                 };
201
202                 /* IPIC
203                  * interrupts cell = <intr #, sense>
204                  * sense values match linux IORESOURCE_IRQ_* defines:
205                  * sense == 8: Level, low assertion
206                  * sense == 2: Edge, high-to-low change
207                  */
208                 ipic: pic@700 {
209                         interrupt-controller;
210                         #address-cells = <0>;
211                         #interrupt-cells = <2>;
212                         reg = <700 100>;
213                         device_type = "ipic";
214                 };
215         };
216
217         pci@e0008500 {
218                 interrupt-map-mask = <f800 0 0 7>;
219                 interrupt-map = <
220
221                                 /* IDSEL 0x11 */
222                                  8800 0 0 1 &ipic 14 8
223                                  8800 0 0 2 &ipic 15 8
224                                  8800 0 0 3 &ipic 16 8
225                                  8800 0 0 4 &ipic 17 8
226
227                                 /* IDSEL 0x12 */
228                                  9000 0 0 1 &ipic 16 8
229                                  9000 0 0 2 &ipic 17 8
230                                  9000 0 0 3 &ipic 14 8
231                                  9000 0 0 4 &ipic 15 8
232
233                                 /* IDSEL 0x13 */
234                                  9800 0 0 1 &ipic 17 8
235                                  9800 0 0 2 &ipic 14 8
236                                  9800 0 0 3 &ipic 15 8
237                                  9800 0 0 4 &ipic 16 8
238
239                                 /* IDSEL 0x15 */
240                                  a800 0 0 1 &ipic 14 8
241                                  a800 0 0 2 &ipic 15 8
242                                  a800 0 0 3 &ipic 16 8
243                                  a800 0 0 4 &ipic 17 8
244
245                                 /* IDSEL 0x16 */
246                                  b000 0 0 1 &ipic 17 8
247                                  b000 0 0 2 &ipic 14 8
248                                  b000 0 0 3 &ipic 15 8
249                                  b000 0 0 4 &ipic 16 8
250
251                                 /* IDSEL 0x17 */
252                                  b800 0 0 1 &ipic 16 8
253                                  b800 0 0 2 &ipic 17 8
254                                  b800 0 0 3 &ipic 14 8
255                                  b800 0 0 4 &ipic 15 8
256
257                                 /* IDSEL 0x18 */
258                                  c000 0 0 1 &ipic 15 8
259                                  c000 0 0 2 &ipic 16 8
260                                  c000 0 0 3 &ipic 17 8
261                                  c000 0 0 4 &ipic 14 8>;
262                 interrupt-parent = < &ipic >;
263                 interrupts = <42 8>;
264                 bus-range = <0 0>;
265                 ranges = <02000000 0 90000000 90000000 0 10000000
266                           42000000 0 80000000 80000000 0 10000000
267                           01000000 0 00000000 e2000000 0 00100000>;
268                 clock-frequency = <3f940aa>;
269                 #interrupt-cells = <1>;
270                 #size-cells = <2>;
271                 #address-cells = <3>;
272                 reg = <e0008500 100>;
273                 compatible = "fsl,mpc8349-pci";
274                 device_type = "pci";
275         };
276
277         pci@e0008600 {
278                 interrupt-map-mask = <f800 0 0 7>;
279                 interrupt-map = <
280
281                                 /* IDSEL 0x11 */
282                                  8800 0 0 1 &ipic 14 8
283                                  8800 0 0 2 &ipic 15 8
284                                  8800 0 0 3 &ipic 16 8
285                                  8800 0 0 4 &ipic 17 8
286
287                                 /* IDSEL 0x12 */
288                                  9000 0 0 1 &ipic 16 8
289                                  9000 0 0 2 &ipic 17 8
290                                  9000 0 0 3 &ipic 14 8
291                                  9000 0 0 4 &ipic 15 8
292
293                                 /* IDSEL 0x13 */
294                                  9800 0 0 1 &ipic 17 8
295                                  9800 0 0 2 &ipic 14 8
296                                  9800 0 0 3 &ipic 15 8
297                                  9800 0 0 4 &ipic 16 8
298
299                                 /* IDSEL 0x15 */
300                                  a800 0 0 1 &ipic 14 8
301                                  a800 0 0 2 &ipic 15 8
302                                  a800 0 0 3 &ipic 16 8
303                                  a800 0 0 4 &ipic 17 8
304
305                                 /* IDSEL 0x16 */
306                                  b000 0 0 1 &ipic 17 8
307                                  b000 0 0 2 &ipic 14 8
308                                  b000 0 0 3 &ipic 15 8
309                                  b000 0 0 4 &ipic 16 8
310
311                                 /* IDSEL 0x17 */
312                                  b800 0 0 1 &ipic 16 8
313                                  b800 0 0 2 &ipic 17 8
314                                  b800 0 0 3 &ipic 14 8
315                                  b800 0 0 4 &ipic 15 8
316
317                                 /* IDSEL 0x18 */
318                                  c000 0 0 1 &ipic 15 8
319                                  c000 0 0 2 &ipic 16 8
320                                  c000 0 0 3 &ipic 17 8
321                                  c000 0 0 4 &ipic 14 8>;
322                 interrupt-parent = < &ipic >;
323                 interrupts = <42 8>;
324                 bus-range = <0 0>;
325                 ranges = <02000000 0 b0000000 b0000000 0 10000000
326                           42000000 0 a0000000 a0000000 0 10000000
327                           01000000 0 00000000 e2100000 0 00100000>;
328                 clock-frequency = <3f940aa>;
329                 #interrupt-cells = <1>;
330                 #size-cells = <2>;
331                 #address-cells = <3>;
332                 reg = <e0008600 100>;
333                 compatible = "fsl,mpc8349-pci";
334                 device_type = "pci";
335         };
336 };