blob: f4fadb23ad6f66d1e119b7d7000a4bfa8489df0e [file] [log] [blame]
Michael Barkowski23308c52007-03-19 09:15:28 -05001/*
2 * MPC832x RDB 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 */
11
Paul Gortmakercda13dd2008-01-28 16:09:36 -050012/dts-v1/;
13
Michael Barkowski23308c52007-03-19 09:15:28 -050014/ {
15 model = "MPC8323ERDB";
16 compatible = "MPC8323ERDB", "MPC832xRDB", "MPC83xxRDB";
17 #address-cells = <1>;
18 #size-cells = <1>;
19
Kumar Galaea082fa2007-12-12 01:46:12 -060020 aliases {
Michael Barkowskie8718092008-11-13 10:18:28 -050021 ethernet0 = &enet1;
22 ethernet1 = &enet0;
Kumar Galaea082fa2007-12-12 01:46:12 -060023 serial0 = &serial0;
24 serial1 = &serial1;
25 pci0 = &pci0;
26 };
27
Michael Barkowski23308c52007-03-19 09:15:28 -050028 cpus {
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 PowerPC,8323@0 {
33 device_type = "cpu";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050034 reg = <0x0>;
35 d-cache-line-size = <0x20>; // 32 bytes
36 i-cache-line-size = <0x20>; // 32 bytes
37 d-cache-size = <16384>; // L1, 16K
38 i-cache-size = <16384>; // L1, 16K
Michael Barkowski23308c52007-03-19 09:15:28 -050039 timebase-frequency = <0>;
40 bus-frequency = <0>;
41 clock-frequency = <0>;
Michael Barkowski23308c52007-03-19 09:15:28 -050042 };
43 };
44
45 memory {
46 device_type = "memory";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050047 reg = <0x00000000 0x04000000>;
Michael Barkowski23308c52007-03-19 09:15:28 -050048 };
49
50 soc8323@e0000000 {
51 #address-cells = <1>;
52 #size-cells = <1>;
Michael Barkowski23308c52007-03-19 09:15:28 -050053 device_type = "soc";
Kim Phillipscf0d19f2008-07-29 15:29:24 -050054 compatible = "simple-bus";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050055 ranges = <0x0 0xe0000000 0x00100000>;
56 reg = <0xe0000000 0x00000200>;
Michael Barkowski23308c52007-03-19 09:15:28 -050057 bus-frequency = <0>;
58
59 wdt@200 {
60 device_type = "watchdog";
61 compatible = "mpc83xx_wdt";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050062 reg = <0x200 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -050063 };
64
Anton Vorontsov1f8a25d2009-09-16 01:44:02 +040065 pmc: power@b00 {
66 compatible = "fsl,mpc8323-pmc", "fsl,mpc8349-pmc";
67 reg = <0xb00 0x100 0xa00 0x100>;
68 interrupts = <80 0x8>;
69 interrupt-parent = <&ipic>;
70 };
71
Michael Barkowski23308c52007-03-19 09:15:28 -050072 i2c@3000 {
Kumar Galaec9686c2007-12-11 23:17:24 -060073 #address-cells = <1>;
74 #size-cells = <0>;
75 cell-index = <0>;
Michael Barkowski23308c52007-03-19 09:15:28 -050076 compatible = "fsl-i2c";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050077 reg = <0x3000 0x100>;
78 interrupts = <14 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -050079 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -050080 dfsrr;
81 };
82
Kumar Galaea082fa2007-12-12 01:46:12 -060083 serial0: serial@4500 {
84 cell-index = <0>;
Michael Barkowski23308c52007-03-19 09:15:28 -050085 device_type = "serial";
86 compatible = "ns16550";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050087 reg = <0x4500 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -050088 clock-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -050089 interrupts = <9 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -050090 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -050091 };
92
Kumar Galaea082fa2007-12-12 01:46:12 -060093 serial1: serial@4600 {
94 cell-index = <1>;
Michael Barkowski23308c52007-03-19 09:15:28 -050095 device_type = "serial";
96 compatible = "ns16550";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050097 reg = <0x4600 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -050098 clock-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -050099 interrupts = <10 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -0500100 interrupt-parent = <&ipic>;
101 };
102
103 dma@82a8 {
104 #address-cells = <1>;
105 #size-cells = <1>;
106 compatible = "fsl,mpc8323-dma", "fsl,elo-dma";
107 reg = <0x82a8 4>;
108 ranges = <0 0x8100 0x1a8>;
109 interrupt-parent = <&ipic>;
110 interrupts = <71 8>;
111 cell-index = <0>;
112 dma-channel@0 {
113 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
114 reg = <0 0x80>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500115 cell-index = <0>;
Kumar Galadee80552008-06-27 13:45:19 -0500116 interrupt-parent = <&ipic>;
117 interrupts = <71 8>;
118 };
119 dma-channel@80 {
120 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
121 reg = <0x80 0x80>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500122 cell-index = <1>;
Kumar Galadee80552008-06-27 13:45:19 -0500123 interrupt-parent = <&ipic>;
124 interrupts = <71 8>;
125 };
126 dma-channel@100 {
127 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
128 reg = <0x100 0x80>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500129 cell-index = <2>;
Kumar Galadee80552008-06-27 13:45:19 -0500130 interrupt-parent = <&ipic>;
131 interrupts = <71 8>;
132 };
133 dma-channel@180 {
134 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
135 reg = <0x180 0x28>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500136 cell-index = <3>;
Kumar Galadee80552008-06-27 13:45:19 -0500137 interrupt-parent = <&ipic>;
138 interrupts = <71 8>;
139 };
Michael Barkowski23308c52007-03-19 09:15:28 -0500140 };
141
142 crypto@30000 {
Kim Phillips3fd44732008-07-08 19:13:33 -0500143 compatible = "fsl,sec2.2", "fsl,sec2.1", "fsl,sec2.0";
144 reg = <0x30000 0x10000>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500145 interrupts = <11 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -0500146 interrupt-parent = <&ipic>;
Kim Phillips3fd44732008-07-08 19:13:33 -0500147 fsl,num-channels = <1>;
148 fsl,channel-fifo-len = <24>;
149 fsl,exec-units-mask = <0x4c>;
150 fsl,descriptor-types-mask = <0x0122003f>;
Anton Vorontsov1f8a25d2009-09-16 01:44:02 +0400151 sleep = <&pmc 0x03000000>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500152 };
153
Kumar Galadee80552008-06-27 13:45:19 -0500154 ipic:pic@700 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500155 interrupt-controller;
156 #address-cells = <0>;
157 #interrupt-cells = <2>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500158 reg = <0x700 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500159 device_type = "ipic";
160 };
161
162 par_io@1400 {
Anton Vorontsov75458282009-03-31 15:24:39 -0700163 #address-cells = <1>;
164 #size-cells = <1>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500165 reg = <0x1400 0x100>;
Anton Vorontsov75458282009-03-31 15:24:39 -0700166 ranges = <3 0x1448 0x18>;
167 compatible = "fsl,mpc8323-qe-pario";
Michael Barkowski23308c52007-03-19 09:15:28 -0500168 device_type = "par_io";
169 num-ports = <7>;
170
Anton Vorontsov75458282009-03-31 15:24:39 -0700171 qe_pio_d: gpio-controller@1448 {
172 #gpio-cells = <2>;
173 compatible = "fsl,mpc8323-qe-pario-bank";
174 reg = <3 0x18>;
175 gpio-controller;
176 };
177
Michael Barkowski23308c52007-03-19 09:15:28 -0500178 ucc2pio:ucc_pin@02 {
179 pio-map = <
180 /* port pin dir open_drain assignment has_irq */
181 3 4 3 0 2 0 /* MDIO */
182 3 5 1 0 2 0 /* MDC */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500183 3 21 2 0 1 0 /* RX_CLK (CLK16) */
184 3 23 2 0 1 0 /* TX_CLK (CLK3) */
185 0 18 1 0 1 0 /* TxD0 */
186 0 19 1 0 1 0 /* TxD1 */
187 0 20 1 0 1 0 /* TxD2 */
188 0 21 1 0 1 0 /* TxD3 */
189 0 22 2 0 1 0 /* RxD0 */
190 0 23 2 0 1 0 /* RxD1 */
191 0 24 2 0 1 0 /* RxD2 */
192 0 25 2 0 1 0 /* RxD3 */
193 0 26 2 0 1 0 /* RX_ER */
194 0 27 1 0 1 0 /* TX_ER */
195 0 28 2 0 1 0 /* RX_DV */
196 0 29 2 0 1 0 /* COL */
197 0 30 1 0 1 0 /* TX_EN */
198 0 31 2 0 1 0>; /* CRS */
Michael Barkowski23308c52007-03-19 09:15:28 -0500199 };
200 ucc3pio:ucc_pin@03 {
201 pio-map = <
202 /* port pin dir open_drain assignment has_irq */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500203 0 13 2 0 1 0 /* RX_CLK (CLK9) */
204 3 24 2 0 1 0 /* TX_CLK (CLK10) */
Michael Barkowski23308c52007-03-19 09:15:28 -0500205 1 0 1 0 1 0 /* TxD0 */
206 1 1 1 0 1 0 /* TxD1 */
207 1 2 1 0 1 0 /* TxD2 */
208 1 3 1 0 1 0 /* TxD3 */
209 1 4 2 0 1 0 /* RxD0 */
210 1 5 2 0 1 0 /* RxD1 */
211 1 6 2 0 1 0 /* RxD2 */
212 1 7 2 0 1 0 /* RxD3 */
213 1 8 2 0 1 0 /* RX_ER */
214 1 9 1 0 1 0 /* TX_ER */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500215 1 10 2 0 1 0 /* RX_DV */
216 1 11 2 0 1 0 /* COL */
217 1 12 1 0 1 0 /* TX_EN */
218 1 13 2 0 1 0>; /* CRS */
Michael Barkowski23308c52007-03-19 09:15:28 -0500219 };
220 };
221 };
222
223 qe@e0100000 {
224 #address-cells = <1>;
225 #size-cells = <1>;
226 device_type = "qe";
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300227 compatible = "fsl,qe";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500228 ranges = <0x0 0xe0100000 0x00100000>;
229 reg = <0xe0100000 0x480>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500230 brg-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500231 bus-frequency = <198000000>;
Haiying Wang01b14a92009-05-01 15:40:51 -0400232 fsl,qe-num-riscs = <1>;
233 fsl,qe-num-snums = <28>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500234
235 muram@10000 {
Paul Gortmaker390167e2008-01-28 02:27:51 -0500236 #address-cells = <1>;
237 #size-cells = <1>;
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300238 compatible = "fsl,qe-muram", "fsl,cpm-muram";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500239 ranges = <0x0 0x00010000 0x00004000>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500240
241 data-only@0 {
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300242 compatible = "fsl,qe-muram-data",
243 "fsl,cpm-muram-data";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500244 reg = <0x0 0x4000>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500245 };
246 };
247
248 spi@4c0 {
Anton Vorontsov75458282009-03-31 15:24:39 -0700249 #address-cells = <1>;
250 #size-cells = <0>;
Anton Vorontsovf3a2b292008-01-24 18:40:07 +0300251 cell-index = <0>;
252 compatible = "fsl,spi";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500253 reg = <0x4c0 0x40>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500254 interrupts = <2>;
255 interrupt-parent = <&qeic>;
Anton Vorontsov75458282009-03-31 15:24:39 -0700256 gpios = <&qe_pio_d 13 0>;
Anton Vorontsov8237bf02007-08-23 15:36:00 +0400257 mode = "cpu-qe";
Anton Vorontsov75458282009-03-31 15:24:39 -0700258
259 mmc-slot@0 {
260 compatible = "fsl,mpc8323rdb-mmc-slot",
261 "mmc-spi-slot";
262 reg = <0>;
263 gpios = <&qe_pio_d 14 1
264 &qe_pio_d 15 0>;
265 voltage-ranges = <3300 3300>;
266 spi-max-frequency = <50000000>;
267 };
Michael Barkowski23308c52007-03-19 09:15:28 -0500268 };
269
270 spi@500 {
Anton Vorontsovf3a2b292008-01-24 18:40:07 +0300271 cell-index = <1>;
272 compatible = "fsl,spi";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500273 reg = <0x500 0x40>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500274 interrupts = <1>;
275 interrupt-parent = <&qeic>;
276 mode = "cpu";
277 };
278
Kumar Galae77b28e2007-12-12 00:28:35 -0600279 enet0: ucc@3000 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500280 device_type = "network";
281 compatible = "ucc_geth";
Kumar Galae77b28e2007-12-12 00:28:35 -0600282 cell-index = <2>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500283 reg = <0x3000 0x200>;
284 interrupts = <33>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500285 interrupt-parent = <&qeic>;
Timur Tabieae98262007-06-22 14:33:15 -0500286 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600287 rx-clock-name = "clk16";
288 tx-clock-name = "clk3";
Michael Barkowski23308c52007-03-19 09:15:28 -0500289 phy-handle = <&phy00>;
290 pio-handle = <&ucc2pio>;
291 };
292
Kumar Galae77b28e2007-12-12 00:28:35 -0600293 enet1: ucc@2200 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500294 device_type = "network";
295 compatible = "ucc_geth";
Kumar Galae77b28e2007-12-12 00:28:35 -0600296 cell-index = <3>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500297 reg = <0x2200 0x200>;
298 interrupts = <34>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500299 interrupt-parent = <&qeic>;
Timur Tabieae98262007-06-22 14:33:15 -0500300 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600301 rx-clock-name = "clk9";
302 tx-clock-name = "clk10";
Michael Barkowski23308c52007-03-19 09:15:28 -0500303 phy-handle = <&phy04>;
304 pio-handle = <&ucc3pio>;
305 };
306
307 mdio@3120 {
308 #address-cells = <1>;
309 #size-cells = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500310 reg = <0x3120 0x18>;
Anton Vorontsovd0a2f822008-01-24 18:40:01 +0300311 compatible = "fsl,ucc-mdio";
Michael Barkowski23308c52007-03-19 09:15:28 -0500312
313 phy00:ethernet-phy@00 {
Kumar Galadee80552008-06-27 13:45:19 -0500314 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500315 interrupts = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500316 reg = <0x0>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500317 device_type = "ethernet-phy";
Michael Barkowski23308c52007-03-19 09:15:28 -0500318 };
319 phy04:ethernet-phy@04 {
Kumar Galadee80552008-06-27 13:45:19 -0500320 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500321 interrupts = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500322 reg = <0x4>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500323 device_type = "ethernet-phy";
Michael Barkowski23308c52007-03-19 09:15:28 -0500324 };
325 };
326
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300327 qeic:interrupt-controller@80 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500328 interrupt-controller;
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300329 compatible = "fsl,qe-ic";
Michael Barkowski23308c52007-03-19 09:15:28 -0500330 #address-cells = <0>;
331 #interrupt-cells = <1>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500332 reg = <0x80 0x80>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500333 big-endian;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500334 interrupts = <32 0x8 33 0x8>; //high:32 low:33
Kumar Galadee80552008-06-27 13:45:19 -0500335 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500336 };
337 };
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500338
Kumar Galaea082fa2007-12-12 01:46:12 -0600339 pci0: pci@e0008500 {
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500340 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500341 interrupt-map = <
342 /* IDSEL 0x10 AD16 (USB) */
Kumar Galadee80552008-06-27 13:45:19 -0500343 0x8000 0x0 0x0 0x1 &ipic 17 0x8
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500344
345 /* IDSEL 0x11 AD17 (Mini1)*/
Kumar Galadee80552008-06-27 13:45:19 -0500346 0x8800 0x0 0x0 0x1 &ipic 18 0x8
347 0x8800 0x0 0x0 0x2 &ipic 19 0x8
348 0x8800 0x0 0x0 0x3 &ipic 20 0x8
349 0x8800 0x0 0x0 0x4 &ipic 48 0x8
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500350
351 /* IDSEL 0x12 AD18 (PCI/Mini2) */
Kumar Galadee80552008-06-27 13:45:19 -0500352 0x9000 0x0 0x0 0x1 &ipic 19 0x8
353 0x9000 0x0 0x0 0x2 &ipic 20 0x8
354 0x9000 0x0 0x0 0x3 &ipic 48 0x8
355 0x9000 0x0 0x0 0x4 &ipic 17 0x8>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500356
Kumar Galadee80552008-06-27 13:45:19 -0500357 interrupt-parent = <&ipic>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500358 interrupts = <66 0x8>;
359 bus-range = <0x0 0x0>;
360 ranges = <0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
361 0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
362 0x01000000 0x0 0xd0000000 0xd0000000 0x0 0x04000000>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500363 clock-frequency = <0>;
364 #interrupt-cells = <1>;
365 #size-cells = <2>;
366 #address-cells = <3>;
John Rigby5b70a092008-10-07 13:00:18 -0600367 reg = <0xe0008500 0x100 /* internal registers */
368 0xe0008300 0x8>; /* config space access registers */
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500369 compatible = "fsl,mpc8349-pci";
370 device_type = "pci";
Anton Vorontsov1f8a25d2009-09-16 01:44:02 +0400371 sleep = <&pmc 0x00010000>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500372 };
Michael Barkowski23308c52007-03-19 09:15:28 -0500373};