]> err.no Git - linux-2.6/blob - arch/powerpc/boot/dts/mpc834x_mds.dts
[POWERPC] DTS cleanup
[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                 pci@8500 {
187                         interrupt-map-mask = <f800 0 0 7>;
188                         interrupt-map = <
189
190                                         /* IDSEL 0x11 */
191                                          8800 0 0 1 &ipic 14 8
192                                          8800 0 0 2 &ipic 15 8
193                                          8800 0 0 3 &ipic 16 8
194                                          8800 0 0 4 &ipic 17 8
195
196                                         /* IDSEL 0x12 */
197                                          9000 0 0 1 &ipic 16 8
198                                          9000 0 0 2 &ipic 17 8
199                                          9000 0 0 3 &ipic 14 8
200                                          9000 0 0 4 &ipic 15 8
201
202                                         /* IDSEL 0x13 */
203                                          9800 0 0 1 &ipic 17 8
204                                          9800 0 0 2 &ipic 14 8
205                                          9800 0 0 3 &ipic 15 8
206                                          9800 0 0 4 &ipic 16 8
207
208                                         /* IDSEL 0x15 */
209                                          a800 0 0 1 &ipic 14 8
210                                          a800 0 0 2 &ipic 15 8
211                                          a800 0 0 3 &ipic 16 8
212                                          a800 0 0 4 &ipic 17 8
213
214                                         /* IDSEL 0x16 */
215                                          b000 0 0 1 &ipic 17 8
216                                          b000 0 0 2 &ipic 14 8
217                                          b000 0 0 3 &ipic 15 8
218                                          b000 0 0 4 &ipic 16 8
219
220                                         /* IDSEL 0x17 */
221                                          b800 0 0 1 &ipic 16 8
222                                          b800 0 0 2 &ipic 17 8
223                                          b800 0 0 3 &ipic 14 8
224                                          b800 0 0 4 &ipic 15 8
225
226                                         /* IDSEL 0x18 */
227                                          c000 0 0 1 &ipic 15 8
228                                          c000 0 0 2 &ipic 16 8
229                                          c000 0 0 3 &ipic 17 8
230                                          c000 0 0 4 &ipic 14 8>;
231                         interrupt-parent = < &ipic >;
232                         interrupts = <42 8>;
233                         bus-range = <0 0>;
234                         ranges = <02000000 0 90000000 90000000 0 10000000
235                                   42000000 0 80000000 80000000 0 10000000
236                                   01000000 0 00000000 e2000000 0 00100000>;
237                         clock-frequency = <3f940aa>;
238                         #interrupt-cells = <1>;
239                         #size-cells = <2>;
240                         #address-cells = <3>;
241                         reg = <8500 100>;
242                         compatible = "fsl,mpc8349-pci";
243                         device_type = "pci";
244                 };
245
246                 pci@8600 {
247                         interrupt-map-mask = <f800 0 0 7>;
248                         interrupt-map = <
249
250                                         /* IDSEL 0x11 */
251                                          8800 0 0 1 &ipic 14 8
252                                          8800 0 0 2 &ipic 15 8
253                                          8800 0 0 3 &ipic 16 8
254                                          8800 0 0 4 &ipic 17 8
255
256                                         /* IDSEL 0x12 */
257                                          9000 0 0 1 &ipic 16 8
258                                          9000 0 0 2 &ipic 17 8
259                                          9000 0 0 3 &ipic 14 8
260                                          9000 0 0 4 &ipic 15 8
261
262                                         /* IDSEL 0x13 */
263                                          9800 0 0 1 &ipic 17 8
264                                          9800 0 0 2 &ipic 14 8
265                                          9800 0 0 3 &ipic 15 8
266                                          9800 0 0 4 &ipic 16 8
267
268                                         /* IDSEL 0x15 */
269                                          a800 0 0 1 &ipic 14 8
270                                          a800 0 0 2 &ipic 15 8
271                                          a800 0 0 3 &ipic 16 8
272                                          a800 0 0 4 &ipic 17 8
273
274                                         /* IDSEL 0x16 */
275                                          b000 0 0 1 &ipic 17 8
276                                          b000 0 0 2 &ipic 14 8
277                                          b000 0 0 3 &ipic 15 8
278                                          b000 0 0 4 &ipic 16 8
279
280                                         /* IDSEL 0x17 */
281                                          b800 0 0 1 &ipic 16 8
282                                          b800 0 0 2 &ipic 17 8
283                                          b800 0 0 3 &ipic 14 8
284                                          b800 0 0 4 &ipic 15 8
285
286                                         /* IDSEL 0x18 */
287                                          c000 0 0 1 &ipic 15 8
288                                          c000 0 0 2 &ipic 16 8
289                                          c000 0 0 3 &ipic 17 8
290                                          c000 0 0 4 &ipic 14 8>;
291                         interrupt-parent = < &ipic >;
292                         interrupts = <42 8>;
293                         bus-range = <0 0>;
294                         ranges = <02000000 0 b0000000 b0000000 0 10000000
295                                   42000000 0 a0000000 a0000000 0 10000000
296                                   01000000 0 00000000 e2100000 0 00100000>;
297                         clock-frequency = <3f940aa>;
298                         #interrupt-cells = <1>;
299                         #size-cells = <2>;
300                         #address-cells = <3>;
301                         reg = <8600 100>;
302                         compatible = "fsl,mpc8349-pci";
303                         device_type = "pci";
304                 };
305
306                 /* May need to remove if on a part without crypto engine */
307                 crypto@30000 {
308                         device_type = "crypto";
309                         model = "SEC2";
310                         compatible = "talitos";
311                         reg = <30000 10000>;
312                         interrupts = <b 8>;
313                         interrupt-parent = < &ipic >;
314                         num-channels = <4>;
315                         channel-fifo-len = <18>;
316                         exec-units-mask = <0000007e>;
317                         /* desc mask is for rev2.0,
318                          * we need runtime fixup for >2.0 */
319                         descriptor-types-mask = <01010ebf>;
320                 };
321
322                 /* IPIC
323                  * interrupts cell = <intr #, sense>
324                  * sense values match linux IORESOURCE_IRQ_* defines:
325                  * sense == 8: Level, low assertion
326                  * sense == 2: Edge, high-to-low change
327                  */
328                 ipic: pic@700 {
329                         interrupt-controller;
330                         #address-cells = <0>;
331                         #interrupt-cells = <2>;
332                         reg = <700 100>;
333                         device_type = "ipic";
334                 };
335         };
336 };