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