Merge branch 'for_linus' of git://git.infradead.org/~dedekind/ubifs-2.6
[pandora-kernel.git] / arch / powerpc / boot / dts / mpc836x_mds.dts
1 /*
2  * MPC8360E EMDS Device Tree Source
3  *
4  * Copyright 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 /*
14 /memreserve/    00000000 1000000;
15 */
16
17 /dts-v1/;
18
19 / {
20         model = "MPC8360MDS";
21         compatible = "MPC8360EMDS", "MPC836xMDS", "MPC83xxMDS";
22         #address-cells = <1>;
23         #size-cells = <1>;
24
25         aliases {
26                 ethernet0 = &enet0;
27                 ethernet1 = &enet1;
28                 serial0 = &serial0;
29                 serial1 = &serial1;
30                 pci0 = &pci0;
31         };
32
33         cpus {
34                 #address-cells = <1>;
35                 #size-cells = <0>;
36
37                 PowerPC,8360@0 {
38                         device_type = "cpu";
39                         reg = <0x0>;
40                         d-cache-line-size = <32>;       // 32 bytes
41                         i-cache-line-size = <32>;       // 32 bytes
42                         d-cache-size = <32768>;         // L1, 32K
43                         i-cache-size = <32768>;         // L1, 32K
44                         timebase-frequency = <66000000>;
45                         bus-frequency = <264000000>;
46                         clock-frequency = <528000000>;
47                 };
48         };
49
50         memory {
51                 device_type = "memory";
52                 reg = <0x00000000 0x10000000>;
53         };
54
55         bcsr@f8000000 {
56                 device_type = "board-control";
57                 reg = <0xf8000000 0x8000>;
58         };
59
60         soc8360@e0000000 {
61                 #address-cells = <1>;
62                 #size-cells = <1>;
63                 device_type = "soc";
64                 ranges = <0x0 0xe0000000 0x00100000>;
65                 reg = <0xe0000000 0x00000200>;
66                 bus-frequency = <264000000>;
67
68                 wdt@200 {
69                         device_type = "watchdog";
70                         compatible = "mpc83xx_wdt";
71                         reg = <0x200 0x100>;
72                 };
73
74                 i2c@3000 {
75                         #address-cells = <1>;
76                         #size-cells = <0>;
77                         cell-index = <0>;
78                         compatible = "fsl-i2c";
79                         reg = <0x3000 0x100>;
80                         interrupts = <14 0x8>;
81                         interrupt-parent = <&ipic>;
82                         dfsrr;
83
84                         rtc@68 {
85                                 compatible = "dallas,ds1374";
86                                 reg = <0x68>;
87                         };
88                 };
89
90                 i2c@3100 {
91                         #address-cells = <1>;
92                         #size-cells = <0>;
93                         cell-index = <1>;
94                         compatible = "fsl-i2c";
95                         reg = <0x3100 0x100>;
96                         interrupts = <15 0x8>;
97                         interrupt-parent = <&ipic>;
98                         dfsrr;
99                 };
100
101                 serial0: serial@4500 {
102                         cell-index = <0>;
103                         device_type = "serial";
104                         compatible = "ns16550";
105                         reg = <0x4500 0x100>;
106                         clock-frequency = <264000000>;
107                         interrupts = <9 0x8>;
108                         interrupt-parent = <&ipic>;
109                 };
110
111                 serial1: serial@4600 {
112                         cell-index = <1>;
113                         device_type = "serial";
114                         compatible = "ns16550";
115                         reg = <0x4600 0x100>;
116                         clock-frequency = <264000000>;
117                         interrupts = <10 0x8>;
118                         interrupt-parent = <&ipic>;
119                 };
120
121                 dma@82a8 {
122                         #address-cells = <1>;
123                         #size-cells = <1>;
124                         compatible = "fsl,mpc8360-dma", "fsl,elo-dma";
125                         reg = <0x82a8 4>;
126                         ranges = <0 0x8100 0x1a8>;
127                         interrupt-parent = <&ipic>;
128                         interrupts = <71 8>;
129                         cell-index = <0>;
130                         dma-channel@0 {
131                                 compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
132                                 reg = <0 0x80>;
133                                 interrupt-parent = <&ipic>;
134                                 interrupts = <71 8>;
135                         };
136                         dma-channel@80 {
137                                 compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
138                                 reg = <0x80 0x80>;
139                                 interrupt-parent = <&ipic>;
140                                 interrupts = <71 8>;
141                         };
142                         dma-channel@100 {
143                                 compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
144                                 reg = <0x100 0x80>;
145                                 interrupt-parent = <&ipic>;
146                                 interrupts = <71 8>;
147                         };
148                         dma-channel@180 {
149                                 compatible = "fsl,mpc8360-dma-channel", "fsl,elo-dma-channel";
150                                 reg = <0x180 0x28>;
151                                 interrupt-parent = <&ipic>;
152                                 interrupts = <71 8>;
153                         };
154                 };
155
156                 crypto@30000 {
157                         compatible = "fsl,sec2.0";
158                         reg = <0x30000 0x10000>;
159                         interrupts = <11 0x8>;
160                         interrupt-parent = <&ipic>;
161                         fsl,num-channels = <4>;
162                         fsl,channel-fifo-len = <24>;
163                         fsl,exec-units-mask = <0x7e>;
164                         fsl,descriptor-types-mask = <0x01010ebf>;
165                 };
166
167                 ipic: pic@700 {
168                         interrupt-controller;
169                         #address-cells = <0>;
170                         #interrupt-cells = <2>;
171                         reg = <0x700 0x100>;
172                         device_type = "ipic";
173                 };
174
175                 par_io@1400 {
176                         reg = <0x1400 0x100>;
177                         device_type = "par_io";
178                         num-ports = <7>;
179
180                         pio1: ucc_pin@01 {
181                                 pio-map = <
182                         /* port  pin  dir  open_drain  assignment  has_irq */
183                                         0  3  1  0  1  0        /* TxD0 */
184                                         0  4  1  0  1  0        /* TxD1 */
185                                         0  5  1  0  1  0        /* TxD2 */
186                                         0  6  1  0  1  0        /* TxD3 */
187                                         1  6  1  0  3  0        /* TxD4 */
188                                         1  7  1  0  1  0        /* TxD5 */
189                                         1  9  1  0  2  0        /* TxD6 */
190                                         1  10 1  0  2  0        /* TxD7 */
191                                         0  9  2  0  1  0        /* RxD0 */
192                                         0  10 2  0  1  0        /* RxD1 */
193                                         0  11 2  0  1  0        /* RxD2 */
194                                         0  12 2  0  1  0        /* RxD3 */
195                                         0  13 2  0  1  0        /* RxD4 */
196                                         1  1  2  0  2  0        /* RxD5 */
197                                         1  0  2  0  2  0        /* RxD6 */
198                                         1  4  2  0  2  0        /* RxD7 */
199                                         0  7  1  0  1  0        /* TX_EN */
200                                         0  8  1  0  1  0        /* TX_ER */
201                                         0  15 2  0  1  0        /* RX_DV */
202                                         0  16 2  0  1  0        /* RX_ER */
203                                         0  0  2  0  1  0        /* RX_CLK */
204                                         2  9  1  0  3  0        /* GTX_CLK - CLK10 */
205                                         2  8  2  0  1  0>;      /* GTX125 - CLK9 */
206                         };
207                         pio2: ucc_pin@02 {
208                                 pio-map = <
209                         /* port  pin  dir  open_drain  assignment  has_irq */
210                                         0  17 1  0  1  0   /* TxD0 */
211                                         0  18 1  0  1  0   /* TxD1 */
212                                         0  19 1  0  1  0   /* TxD2 */
213                                         0  20 1  0  1  0   /* TxD3 */
214                                         1  2  1  0  1  0   /* TxD4 */
215                                         1  3  1  0  2  0   /* TxD5 */
216                                         1  5  1  0  3  0   /* TxD6 */
217                                         1  8  1  0  3  0   /* TxD7 */
218                                         0  23 2  0  1  0   /* RxD0 */
219                                         0  24 2  0  1  0   /* RxD1 */
220                                         0  25 2  0  1  0   /* RxD2 */
221                                         0  26 2  0  1  0   /* RxD3 */
222                                         0  27 2  0  1  0   /* RxD4 */
223                                         1  12 2  0  2  0   /* RxD5 */
224                                         1  13 2  0  3  0   /* RxD6 */
225                                         1  11 2  0  2  0   /* RxD7 */
226                                         0  21 1  0  1  0   /* TX_EN */
227                                         0  22 1  0  1  0   /* TX_ER */
228                                         0  29 2  0  1  0   /* RX_DV */
229                                         0  30 2  0  1  0   /* RX_ER */
230                                         0  31 2  0  1  0   /* RX_CLK */
231                                         2  2  1  0  2  0   /* GTX_CLK - CLK10 */
232                                         2  3  2  0  1  0   /* GTX125 - CLK4 */
233                                         0  1  3  0  2  0   /* MDIO */
234                                         0  2  1  0  1  0>; /* MDC */
235                         };
236
237                 };
238         };
239
240         qe@e0100000 {
241                 #address-cells = <1>;
242                 #size-cells = <1>;
243                 device_type = "qe";
244                 compatible = "fsl,qe";
245                 ranges = <0x0 0xe0100000 0x00100000>;
246                 reg = <0xe0100000 0x480>;
247                 brg-frequency = <0>;
248                 bus-frequency = <396000000>;
249
250                 muram@10000 {
251                         #address-cells = <1>;
252                         #size-cells = <1>;
253                         compatible = "fsl,qe-muram", "fsl,cpm-muram";
254                         ranges = <0x0 0x00010000 0x0000c000>;
255
256                         data-only@0 {
257                                 compatible = "fsl,qe-muram-data",
258                                              "fsl,cpm-muram-data";
259                                 reg = <0x0 0xc000>;
260                         };
261                 };
262
263                 spi@4c0 {
264                         cell-index = <0>;
265                         compatible = "fsl,spi";
266                         reg = <0x4c0 0x40>;
267                         interrupts = <2>;
268                         interrupt-parent = <&qeic>;
269                         mode = "cpu";
270                 };
271
272                 spi@500 {
273                         cell-index = <1>;
274                         compatible = "fsl,spi";
275                         reg = <0x500 0x40>;
276                         interrupts = <1>;
277                         interrupt-parent = <&qeic>;
278                         mode = "cpu";
279                 };
280
281                 usb@6c0 {
282                         compatible = "qe_udc";
283                         reg = <0x6c0 0x40 0x8b00 0x100>;
284                         interrupts = <11>;
285                         interrupt-parent = <&qeic>;
286                         mode = "slave";
287                 };
288
289                 enet0: ucc@2000 {
290                         device_type = "network";
291                         compatible = "ucc_geth";
292                         cell-index = <1>;
293                         reg = <0x2000 0x200>;
294                         interrupts = <32>;
295                         interrupt-parent = <&qeic>;
296                         local-mac-address = [ 00 00 00 00 00 00 ];
297                         rx-clock-name = "none";
298                         tx-clock-name = "clk9";
299                         phy-handle = <&phy0>;
300                         phy-connection-type = "rgmii-id";
301                         pio-handle = <&pio1>;
302                 };
303
304                 enet1: ucc@3000 {
305                         device_type = "network";
306                         compatible = "ucc_geth";
307                         cell-index = <2>;
308                         reg = <0x3000 0x200>;
309                         interrupts = <33>;
310                         interrupt-parent = <&qeic>;
311                         local-mac-address = [ 00 00 00 00 00 00 ];
312                         rx-clock-name = "none";
313                         tx-clock-name = "clk4";
314                         phy-handle = <&phy1>;
315                         phy-connection-type = "rgmii-id";
316                         pio-handle = <&pio2>;
317                 };
318
319                 mdio@2120 {
320                         #address-cells = <1>;
321                         #size-cells = <0>;
322                         reg = <0x2120 0x18>;
323                         compatible = "fsl,ucc-mdio";
324
325                         phy0: ethernet-phy@00 {
326                                 interrupt-parent = <&ipic>;
327                                 interrupts = <17 0x8>;
328                                 reg = <0x0>;
329                                 device_type = "ethernet-phy";
330                         };
331                         phy1: ethernet-phy@01 {
332                                 interrupt-parent = <&ipic>;
333                                 interrupts = <18 0x8>;
334                                 reg = <0x1>;
335                                 device_type = "ethernet-phy";
336                         };
337                 };
338
339                 qeic: interrupt-controller@80 {
340                         interrupt-controller;
341                         compatible = "fsl,qe-ic";
342                         #address-cells = <0>;
343                         #interrupt-cells = <1>;
344                         reg = <0x80 0x80>;
345                         big-endian;
346                         interrupts = <32 0x8 33 0x8>; // high:32 low:33
347                         interrupt-parent = <&ipic>;
348                 };
349         };
350
351         pci0: pci@e0008500 {
352                 cell-index = <1>;
353                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
354                 interrupt-map = <
355
356                                 /* IDSEL 0x11 AD17 */
357                                  0x8800 0x0 0x0 0x1 &ipic 20 0x8
358                                  0x8800 0x0 0x0 0x2 &ipic 21 0x8
359                                  0x8800 0x0 0x0 0x3 &ipic 22 0x8
360                                  0x8800 0x0 0x0 0x4 &ipic 23 0x8
361
362                                 /* IDSEL 0x12 AD18 */
363                                  0x9000 0x0 0x0 0x1 &ipic 22 0x8
364                                  0x9000 0x0 0x0 0x2 &ipic 23 0x8
365                                  0x9000 0x0 0x0 0x3 &ipic 20 0x8
366                                  0x9000 0x0 0x0 0x4 &ipic 21 0x8
367
368                                 /* IDSEL 0x13 AD19 */
369                                  0x9800 0x0 0x0 0x1 &ipic 23 0x8
370                                  0x9800 0x0 0x0 0x2 &ipic 20 0x8
371                                  0x9800 0x0 0x0 0x3 &ipic 21 0x8
372                                  0x9800 0x0 0x0 0x4 &ipic 22 0x8
373
374                                 /* IDSEL 0x15 AD21*/
375                                  0xa800 0x0 0x0 0x1 &ipic 20 0x8
376                                  0xa800 0x0 0x0 0x2 &ipic 21 0x8
377                                  0xa800 0x0 0x0 0x3 &ipic 22 0x8
378                                  0xa800 0x0 0x0 0x4 &ipic 23 0x8
379
380                                 /* IDSEL 0x16 AD22*/
381                                  0xb000 0x0 0x0 0x1 &ipic 23 0x8
382                                  0xb000 0x0 0x0 0x2 &ipic 20 0x8
383                                  0xb000 0x0 0x0 0x3 &ipic 21 0x8
384                                  0xb000 0x0 0x0 0x4 &ipic 22 0x8
385
386                                 /* IDSEL 0x17 AD23*/
387                                  0xb800 0x0 0x0 0x1 &ipic 22 0x8
388                                  0xb800 0x0 0x0 0x2 &ipic 23 0x8
389                                  0xb800 0x0 0x0 0x3 &ipic 20 0x8
390                                  0xb800 0x0 0x0 0x4 &ipic 21 0x8
391
392                                 /* IDSEL 0x18 AD24*/
393                                  0xc000 0x0 0x0 0x1 &ipic 21 0x8
394                                  0xc000 0x0 0x0 0x2 &ipic 22 0x8
395                                  0xc000 0x0 0x0 0x3 &ipic 23 0x8
396                                  0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
397                 interrupt-parent = <&ipic>;
398                 interrupts = <66 0x8>;
399                 bus-range = <0 0>;
400                 ranges = <0x02000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000
401                           0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
402                           0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
403                 clock-frequency = <66666666>;
404                 #interrupt-cells = <1>;
405                 #size-cells = <2>;
406                 #address-cells = <3>;
407                 reg = <0xe0008500 0x100>;
408                 compatible = "fsl,mpc8349-pci";
409                 device_type = "pci";
410         };
411 };