blob: f4ba857754098941b81ac4f05fdd5c6fd493bd94 [file] [log] [blame]
Kim Phillips1b9a93e2006-08-29 18:13:31 -05001/*
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";
Kumar Galad71a1dc2007-02-16 09:57:22 -060014 compatible = "MPC8349EMDS", "MPC834xMDS", "MPC83xxMDS";
Kim Phillips1b9a93e2006-08-29 18:13:31 -050015 #address-cells = <1>;
16 #size-cells = <1>;
17
18 cpus {
Kim Phillips1b9a93e2006-08-29 18:13:31 -050019 #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
Kim Phillips1b9a93e2006-08-29 18:13:31 -050032 };
33 };
34
35 memory {
36 device_type = "memory";
37 reg = <00000000 10000000>; // 256MB at 0
38 };
39
Li Yangea5b7a62007-02-07 13:51:09 +080040 bcsr@e2400000 {
41 device_type = "board-control";
42 reg = <e2400000 8000>;
43 };
44
Kim Phillips1b9a93e2006-08-29 18:13:31 -050045 soc8349@e0000000 {
46 #address-cells = <1>;
47 #size-cells = <1>;
Kim Phillips1b9a93e2006-08-29 18:13:31 -050048 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>;
Kumar Galad71a1dc2007-02-16 09:57:22 -060064 interrupt-parent = < &ipic >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -050065 dfsrr;
66 };
67
68 i2c@3100 {
69 device_type = "i2c";
70 compatible = "fsl-i2c";
71 reg = <3100 100>;
72 interrupts = <f 8>;
Kumar Galad71a1dc2007-02-16 09:57:22 -060073 interrupt-parent = < &ipic >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -050074 dfsrr;
75 };
76
77 spi@7000 {
78 device_type = "spi";
79 compatible = "mpc83xx_spi";
80 reg = <7000 1000>;
81 interrupts = <10 8>;
Kumar Galad71a1dc2007-02-16 09:57:22 -060082 interrupt-parent = < &ipic >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -050083 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>;
Kumar Galad71a1dc2007-02-16 09:57:22 -060094 interrupt-parent = < &ipic >;
95 interrupts = <27 8>;
Kim Phillips1b9a93e2006-08-29 18:13:31 -050096 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>;
Kumar Galad71a1dc2007-02-16 09:57:22 -0600106 interrupt-parent = < &ipic >;
107 interrupts = <26 8>;
Li Yangea5b7a62007-02-07 13:51:09 +0800108 dr_mode = "otg";
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500109 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>;
Kumar Galad71a1dc2007-02-16 09:57:22 -0600118 phy0: ethernet-phy@0 {
119 interrupt-parent = < &ipic >;
120 interrupts = <11 8>;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500121 reg = <0>;
122 device_type = "ethernet-phy";
123 };
Kumar Galad71a1dc2007-02-16 09:57:22 -0600124 phy1: ethernet-phy@1 {
125 interrupt-parent = < &ipic >;
126 interrupts = <12 8>;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500127 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>;
Timur Tabieae98262007-06-22 14:33:15 -0500137 /*
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 */
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500142 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>;
Kumar Galad71a1dc2007-02-16 09:57:22 -0600145 interrupt-parent = < &ipic >;
146 phy-handle = < &phy0 >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500147 };
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>;
Timur Tabieae98262007-06-22 14:33:15 -0500156 /*
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 */
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500161 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>;
Kumar Galad71a1dc2007-02-16 09:57:22 -0600164 interrupt-parent = < &ipic >;
165 phy-handle = < &phy1 >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500166 };
167
168 serial@4500 {
169 device_type = "serial";
170 compatible = "ns16550";
171 reg = <4500 100>;
172 clock-frequency = <0>;
173 interrupts = <9 8>;
Kumar Galad71a1dc2007-02-16 09:57:22 -0600174 interrupt-parent = < &ipic >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500175 };
176
177 serial@4600 {
178 device_type = "serial";
179 compatible = "ns16550";
180 reg = <4600 100>;
181 clock-frequency = <0>;
182 interrupts = <a 8>;
Kumar Galad71a1dc2007-02-16 09:57:22 -0600183 interrupt-parent = < &ipic >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500184 };
185
186 pci@8500 {
187 interrupt-map-mask = <f800 0 0 7>;
188 interrupt-map = <
189
190 /* IDSEL 0x11 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600191 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500195
196 /* IDSEL 0x12 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600197 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500201
202 /* IDSEL 0x13 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600203 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500207
208 /* IDSEL 0x15 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600209 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500213
214 /* IDSEL 0x16 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600215 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500219
220 /* IDSEL 0x17 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600221 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500225
226 /* IDSEL 0x18 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600227 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 >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500232 interrupts = <42 8>;
233 bus-range = <0 0>;
Scott Wood3fae4212007-05-01 12:49:04 -0500234 ranges = <02000000 0 90000000 90000000 0 10000000
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500235 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>;
Roy Zang344ffde2007-07-10 18:47:21 +0800242 compatible = "fsl,mpc8349-pci";
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500243 device_type = "pci";
244 };
245
246 pci@8600 {
247 interrupt-map-mask = <f800 0 0 7>;
248 interrupt-map = <
249
250 /* IDSEL 0x11 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600251 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500255
256 /* IDSEL 0x12 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600257 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500261
262 /* IDSEL 0x13 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600263 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500267
268 /* IDSEL 0x15 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600269 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500273
274 /* IDSEL 0x16 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600275 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500279
280 /* IDSEL 0x17 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600281 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
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500285
286 /* IDSEL 0x18 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600287 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 >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500292 interrupts = <42 8>;
293 bus-range = <0 0>;
294 ranges = <02000000 0 b0000000 b0000000 0 10000000
Scott Wood3fae4212007-05-01 12:49:04 -0500295 42000000 0 a0000000 a0000000 0 10000000
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500296 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>;
Roy Zang344ffde2007-07-10 18:47:21 +0800302 compatible = "fsl,mpc8349-pci";
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500303 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>;
Kumar Galad71a1dc2007-02-16 09:57:22 -0600313 interrupt-parent = < &ipic >;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500314 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 */
Kumar Galad71a1dc2007-02-16 09:57:22 -0600328 ipic: pic@700 {
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500329 interrupt-controller;
330 #address-cells = <0>;
331 #interrupt-cells = <2>;
332 reg = <700 100>;
Kim Phillips1b9a93e2006-08-29 18:13:31 -0500333 device_type = "ipic";
334 };
335 };
336};