Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / powerpc / boot / dts / mpc8378_mds.dts
blob1b82b77f94157e2b9b50e59a796bbf46c50bd60a
1 /*
2  * MPC8378E MDS Device Tree Source
3  *
4  * Copyright 2007 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  */
12 /dts-v1/;
14 / {
15         model = "fsl,mpc8378emds";
16         compatible = "fsl,mpc8378emds","fsl,mpc837xmds";
17         #address-cells = <1>;
18         #size-cells = <1>;
20         aliases {
21                 ethernet0 = &enet0;
22                 ethernet1 = &enet1;
23                 serial0 = &serial0;
24                 serial1 = &serial1;
25                 pci0 = &pci0;
26                 pci1 = &pci1;
27                 pci2 = &pci2;
28         };
30         cpus {
31                 #address-cells = <1>;
32                 #size-cells = <0>;
34                 PowerPC,8378@0 {
35                         device_type = "cpu";
36                         reg = <0x0>;
37                         d-cache-line-size = <32>;
38                         i-cache-line-size = <32>;
39                         d-cache-size = <32768>;
40                         i-cache-size = <32768>;
41                         timebase-frequency = <0>;
42                         bus-frequency = <0>;
43                         clock-frequency = <0>;
44                 };
45         };
47         memory {
48                 device_type = "memory";
49                 reg = <0x00000000 0x20000000>;  // 512MB at 0
50         };
52         localbus@e0005000 {
53                 #address-cells = <2>;
54                 #size-cells = <1>;
55                 compatible = "fsl,mpc8378-elbc", "fsl,elbc", "simple-bus";
56                 reg = <0xe0005000 0x1000>;
57                 interrupts = <77 0x8>;
58                 interrupt-parent = <&ipic>;
60                 // booting from NOR flash
61                 ranges = <0 0x0 0xfe000000 0x02000000
62                           1 0x0 0xf8000000 0x00008000
63                           3 0x0 0xe0600000 0x00008000>;
65                 flash@0,0 {
66                         #address-cells = <1>;
67                         #size-cells = <1>;
68                         compatible = "cfi-flash";
69                         reg = <0 0x0 0x2000000>;
70                         bank-width = <2>;
71                         device-width = <1>;
73                         u-boot@0 {
74                                 reg = <0x0 0x100000>;
75                                 read-only;
76                         };
78                         fs@100000 {
79                                 reg = <0x100000 0x800000>;
80                         };
82                         kernel@1d00000 {
83                                 reg = <0x1d00000 0x200000>;
84                         };
86                         dtb@1f00000 {
87                                 reg = <0x1f00000 0x100000>;
88                         };
89                 };
91                 bcsr@1,0 {
92                         reg = <1 0x0 0x8000>;
93                         compatible = "fsl,mpc837xmds-bcsr";
94                 };
96                 nand@3,0 {
97                         #address-cells = <1>;
98                         #size-cells = <1>;
99                         compatible = "fsl,mpc8378-fcm-nand",
100                                      "fsl,elbc-fcm-nand";
101                         reg = <3 0x0 0x8000>;
103                         u-boot@0 {
104                                 reg = <0x0 0x100000>;
105                                 read-only;
106                         };
108                         kernel@100000 {
109                                 reg = <0x100000 0x300000>;
110                         };
112                         fs@400000 {
113                                 reg = <0x400000 0x1c00000>;
114                         };
115                 };
116         };
118         soc@e0000000 {
119                 #address-cells = <1>;
120                 #size-cells = <1>;
121                 device_type = "soc";
122                 compatible = "simple-bus";
123                 ranges = <0x0 0xe0000000 0x00100000>;
124                 reg = <0xe0000000 0x00000200>;
125                 bus-frequency = <0>;
127                 wdt@200 {
128                         compatible = "mpc83xx_wdt";
129                         reg = <0x200 0x100>;
130                 };
132                 sleep-nexus {
133                         #address-cells = <1>;
134                         #size-cells = <1>;
135                         compatible = "simple-bus";
136                         sleep = <&pmc 0x0c000000>;
137                         ranges;
139                         i2c@3000 {
140                                 #address-cells = <1>;
141                                 #size-cells = <0>;
142                                 cell-index = <0>;
143                                 compatible = "fsl-i2c";
144                                 reg = <0x3000 0x100>;
145                                 interrupts = <14 0x8>;
146                                 interrupt-parent = <&ipic>;
147                                 dfsrr;
149                                 rtc@68 {
150                                         compatible = "dallas,ds1374";
151                                         reg = <0x68>;
152                                         interrupts = <19 0x8>;
153                                         interrupt-parent = <&ipic>;
154                                 };
155                         };
157                         sdhci@2e000 {
158                                 compatible = "fsl,mpc8378-esdhc", "fsl,esdhc";
159                                 reg = <0x2e000 0x1000>;
160                                 interrupts = <42 0x8>;
161                                 interrupt-parent = <&ipic>;
162                                 sdhci,wp-inverted;
163                                 /* Filled in by U-Boot */
164                                 clock-frequency = <0>;
165                         };
166                 };
168                 i2c@3100 {
169                         #address-cells = <1>;
170                         #size-cells = <0>;
171                         cell-index = <1>;
172                         compatible = "fsl-i2c";
173                         reg = <0x3100 0x100>;
174                         interrupts = <15 0x8>;
175                         interrupt-parent = <&ipic>;
176                         dfsrr;
177                 };
179                 spi@7000 {
180                         cell-index = <0>;
181                         compatible = "fsl,spi";
182                         reg = <0x7000 0x1000>;
183                         interrupts = <16 0x8>;
184                         interrupt-parent = <&ipic>;
185                         mode = "cpu";
186                 };
188                 dma@82a8 {
189                         #address-cells = <1>;
190                         #size-cells = <1>;
191                         compatible = "fsl,mpc8378-dma", "fsl,elo-dma";
192                         reg = <0x82a8 4>;
193                         ranges = <0 0x8100 0x1a8>;
194                         interrupt-parent = <&ipic>;
195                         interrupts = <71 8>;
196                         cell-index = <0>;
197                         dma-channel@0 {
198                                 compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
199                                 reg = <0 0x80>;
200                                 cell-index = <0>;
201                                 interrupt-parent = <&ipic>;
202                                 interrupts = <71 8>;
203                         };
204                         dma-channel@80 {
205                                 compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
206                                 reg = <0x80 0x80>;
207                                 cell-index = <1>;
208                                 interrupt-parent = <&ipic>;
209                                 interrupts = <71 8>;
210                         };
211                         dma-channel@100 {
212                                 compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
213                                 reg = <0x100 0x80>;
214                                 cell-index = <2>;
215                                 interrupt-parent = <&ipic>;
216                                 interrupts = <71 8>;
217                         };
218                         dma-channel@180 {
219                                 compatible = "fsl,mpc8378-dma-channel", "fsl,elo-dma-channel";
220                                 reg = <0x180 0x28>;
221                                 cell-index = <3>;
222                                 interrupt-parent = <&ipic>;
223                                 interrupts = <71 8>;
224                         };
225                 };
227                 usb@23000 {
228                         compatible = "fsl-usb2-dr";
229                         reg = <0x23000 0x1000>;
230                         #address-cells = <1>;
231                         #size-cells = <0>;
232                         interrupt-parent = <&ipic>;
233                         interrupts = <38 0x8>;
234                         dr_mode = "host";
235                         phy_type = "ulpi";
236                         sleep = <&pmc 0x00c00000>;
237                 };
239                 enet0: ethernet@24000 {
240                         #address-cells = <1>;
241                         #size-cells = <1>;
242                         cell-index = <0>;
243                         device_type = "network";
244                         model = "eTSEC";
245                         compatible = "gianfar";
246                         reg = <0x24000 0x1000>;
247                         ranges = <0x0 0x24000 0x1000>;
248                         local-mac-address = [ 00 00 00 00 00 00 ];
249                         interrupts = <32 0x8 33 0x8 34 0x8>;
250                         phy-connection-type = "mii";
251                         interrupt-parent = <&ipic>;
252                         tbi-handle = <&tbi0>;
253                         phy-handle = <&phy2>;
254                         sleep = <&pmc 0xc0000000>;
255                         fsl,magic-packet;
257                         mdio@520 {
258                                 #address-cells = <1>;
259                                 #size-cells = <0>;
260                                 compatible = "fsl,gianfar-mdio";
261                                 reg = <0x520 0x20>;
263                                 phy2: ethernet-phy@2 {
264                                         interrupt-parent = <&ipic>;
265                                         interrupts = <17 0x8>;
266                                         reg = <0x2>;
267                                 };
269                                 phy3: ethernet-phy@3 {
270                                         interrupt-parent = <&ipic>;
271                                         interrupts = <18 0x8>;
272                                         reg = <0x3>;
273                                 };
275                                 tbi0: tbi-phy@11 {
276                                         reg = <0x11>;
277                                         device_type = "tbi-phy";
278                                 };
279                         };
280                 };
282                 enet1: ethernet@25000 {
283                         #address-cells = <1>;
284                         #size-cells = <1>;
285                         cell-index = <1>;
286                         device_type = "network";
287                         model = "eTSEC";
288                         compatible = "gianfar";
289                         reg = <0x25000 0x1000>;
290                         ranges = <0x0 0x25000 0x1000>;
291                         local-mac-address = [ 00 00 00 00 00 00 ];
292                         interrupts = <35 0x8 36 0x8 37 0x8>;
293                         phy-connection-type = "mii";
294                         interrupt-parent = <&ipic>;
295                         tbi-handle = <&tbi1>;
296                         phy-handle = <&phy3>;
297                         sleep = <&pmc 0x30000000>;
298                         fsl,magic-packet;
300                         mdio@520 {
301                                 #address-cells = <1>;
302                                 #size-cells = <0>;
303                                 compatible = "fsl,gianfar-tbi";
304                                 reg = <0x520 0x20>;
306                                 tbi1: tbi-phy@11 {
307                                         reg = <0x11>;
308                                         device_type = "tbi-phy";
309                                 };
310                         };
311                 };
313                 serial0: serial@4500 {
314                         cell-index = <0>;
315                         device_type = "serial";
316                         compatible = "fsl,ns16550", "ns16550";
317                         reg = <0x4500 0x100>;
318                         clock-frequency = <0>;
319                         interrupts = <9 0x8>;
320                         interrupt-parent = <&ipic>;
321                 };
323                 serial1: serial@4600 {
324                         cell-index = <1>;
325                         device_type = "serial";
326                         compatible = "fsl,ns16550", "ns16550";
327                         reg = <0x4600 0x100>;
328                         clock-frequency = <0>;
329                         interrupts = <10 0x8>;
330                         interrupt-parent = <&ipic>;
331                 };
333                 crypto@30000 {
334                         compatible = "fsl,sec3.0", "fsl,sec2.4", "fsl,sec2.2",
335                                      "fsl,sec2.1", "fsl,sec2.0";
336                         reg = <0x30000 0x10000>;
337                         interrupts = <11 0x8>;
338                         interrupt-parent = <&ipic>;
339                         fsl,num-channels = <4>;
340                         fsl,channel-fifo-len = <24>;
341                         fsl,exec-units-mask = <0x9fe>;
342                         fsl,descriptor-types-mask = <0x3ab0ebf>;
343                         sleep = <&pmc 0x03000000>;
344                 };
346                 /* IPIC
347                  * interrupts cell = <intr #, sense>
348                  * sense values match linux IORESOURCE_IRQ_* defines:
349                  * sense == 8: Level, low assertion
350                  * sense == 2: Edge, high-to-low change
351                  */
352                 ipic: pic@700 {
353                         compatible = "fsl,ipic";
354                         interrupt-controller;
355                         #address-cells = <0>;
356                         #interrupt-cells = <2>;
357                         reg = <0x700 0x100>;
358                 };
360                 pmc: power@b00 {
361                         compatible = "fsl,mpc8378-pmc", "fsl,mpc8349-pmc";
362                         reg = <0xb00 0x100 0xa00 0x100>;
363                         interrupts = <80 0x8>;
364                         interrupt-parent = <&ipic>;
365                 };
366         };
368         pci0: pci@e0008500 {
369                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
370                 interrupt-map = <
372                                 /* IDSEL 0x11 */
373                                  0x8800 0x0 0x0 0x1 &ipic 20 0x8
374                                  0x8800 0x0 0x0 0x2 &ipic 21 0x8
375                                  0x8800 0x0 0x0 0x3 &ipic 22 0x8
376                                  0x8800 0x0 0x0 0x4 &ipic 23 0x8
378                                 /* IDSEL 0x12 */
379                                  0x9000 0x0 0x0 0x1 &ipic 22 0x8
380                                  0x9000 0x0 0x0 0x2 &ipic 23 0x8
381                                  0x9000 0x0 0x0 0x3 &ipic 20 0x8
382                                  0x9000 0x0 0x0 0x4 &ipic 21 0x8
384                                 /* IDSEL 0x13 */
385                                  0x9800 0x0 0x0 0x1 &ipic 23 0x8
386                                  0x9800 0x0 0x0 0x2 &ipic 20 0x8
387                                  0x9800 0x0 0x0 0x3 &ipic 21 0x8
388                                  0x9800 0x0 0x0 0x4 &ipic 22 0x8
390                                 /* IDSEL 0x15 */
391                                  0xa800 0x0 0x0 0x1 &ipic 20 0x8
392                                  0xa800 0x0 0x0 0x2 &ipic 21 0x8
393                                  0xa800 0x0 0x0 0x3 &ipic 22 0x8
394                                  0xa800 0x0 0x0 0x4 &ipic 23 0x8
396                                 /* IDSEL 0x16 */
397                                  0xb000 0x0 0x0 0x1 &ipic 23 0x8
398                                  0xb000 0x0 0x0 0x2 &ipic 20 0x8
399                                  0xb000 0x0 0x0 0x3 &ipic 21 0x8
400                                  0xb000 0x0 0x0 0x4 &ipic 22 0x8
402                                 /* IDSEL 0x17 */
403                                  0xb800 0x0 0x0 0x1 &ipic 22 0x8
404                                  0xb800 0x0 0x0 0x2 &ipic 23 0x8
405                                  0xb800 0x0 0x0 0x3 &ipic 20 0x8
406                                  0xb800 0x0 0x0 0x4 &ipic 21 0x8
408                                 /* IDSEL 0x18 */
409                                  0xc000 0x0 0x0 0x1 &ipic 21 0x8
410                                  0xc000 0x0 0x0 0x2 &ipic 22 0x8
411                                  0xc000 0x0 0x0 0x3 &ipic 23 0x8
412                                  0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
413                 interrupt-parent = <&ipic>;
414                 interrupts = <66 0x8>;
415                 bus-range = <0x0 0x0>;
416                 ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
417                           0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
418                           0x01000000 0x0 0x00000000 0xe0300000 0x0 0x00100000>;
419                 clock-frequency = <0>;
420                 sleep = <&pmc 0x00010000>;
421                 #interrupt-cells = <1>;
422                 #size-cells = <2>;
423                 #address-cells = <3>;
424                 reg = <0xe0008500 0x100         /* internal registers */
425                        0xe0008300 0x8>;         /* config space access registers */
426                 compatible = "fsl,mpc8349-pci";
427                 device_type = "pci";
428         };
430         pci1: pcie@e0009000 {
431                 #address-cells = <3>;
432                 #size-cells = <2>;
433                 #interrupt-cells = <1>;
434                 device_type = "pci";
435                 compatible = "fsl,mpc8378-pcie", "fsl,mpc8314-pcie";
436                 reg = <0xe0009000 0x00001000>;
437                 ranges = <0x02000000 0 0xa8000000 0xa8000000 0 0x10000000
438                           0x01000000 0 0x00000000 0xb8000000 0 0x00800000>;
439                 bus-range = <0 255>;
440                 interrupt-map-mask = <0xf800 0 0 7>;
441                 interrupt-map = <0 0 0 1 &ipic 1 8
442                                  0 0 0 2 &ipic 1 8
443                                  0 0 0 3 &ipic 1 8
444                                  0 0 0 4 &ipic 1 8>;
445                 sleep = <&pmc 0x00300000>;
446                 clock-frequency = <0>;
448                 pcie@0 {
449                         #address-cells = <3>;
450                         #size-cells = <2>;
451                         device_type = "pci";
452                         reg = <0 0 0 0 0>;
453                         ranges = <0x02000000 0 0xa8000000
454                                   0x02000000 0 0xa8000000
455                                   0 0x10000000
456                                   0x01000000 0 0x00000000
457                                   0x01000000 0 0x00000000
458                                   0 0x00800000>;
459                 };
460         };
462         pci2: pcie@e000a000 {
463                 #address-cells = <3>;
464                 #size-cells = <2>;
465                 #interrupt-cells = <1>;
466                 device_type = "pci";
467                 compatible = "fsl,mpc8378-pcie", "fsl,mpc8314-pcie";
468                 reg = <0xe000a000 0x00001000>;
469                 ranges = <0x02000000 0 0xc8000000 0xc8000000 0 0x10000000
470                           0x01000000 0 0x00000000 0xd8000000 0 0x00800000>;
471                 bus-range = <0 255>;
472                 interrupt-map-mask = <0xf800 0 0 7>;
473                 interrupt-map = <0 0 0 1 &ipic 2 8
474                                  0 0 0 2 &ipic 2 8
475                                  0 0 0 3 &ipic 2 8
476                                  0 0 0 4 &ipic 2 8>;
477                 sleep = <&pmc 0x000c0000>;
478                 clock-frequency = <0>;
480                 pcie@0 {
481                         #address-cells = <3>;
482                         #size-cells = <2>;
483                         device_type = "pci";
484                         reg = <0 0 0 0 0>;
485                         ranges = <0x02000000 0 0xc8000000
486                                   0x02000000 0 0xc8000000
487                                   0 0x10000000
488                                   0x01000000 0 0x00000000
489                                   0x01000000 0 0x00000000
490                                   0 0x00800000>;
491                 };
492         };