blob: ecebc27a289871a896121fbaf6bc878422d25101 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Michael Barkowski23308c52007-03-19 09:15:28 -05002/*
3 * MPC832x RDB Device Tree Source
4 *
5 * Copyright 2007 Freescale Semiconductor Inc.
Michael Barkowski23308c52007-03-19 09:15:28 -05006 */
7
Paul Gortmakercda13dd2008-01-28 16:09:36 -05008/dts-v1/;
9
Michael Barkowski23308c52007-03-19 09:15:28 -050010/ {
11 model = "MPC8323ERDB";
12 compatible = "MPC8323ERDB", "MPC832xRDB", "MPC83xxRDB";
13 #address-cells = <1>;
14 #size-cells = <1>;
15
Kumar Galaea082fa2007-12-12 01:46:12 -060016 aliases {
Michael Barkowskie8718092008-11-13 10:18:28 -050017 ethernet0 = &enet1;
18 ethernet1 = &enet0;
Kumar Galaea082fa2007-12-12 01:46:12 -060019 serial0 = &serial0;
20 serial1 = &serial1;
21 pci0 = &pci0;
22 };
23
Michael Barkowski23308c52007-03-19 09:15:28 -050024 cpus {
25 #address-cells = <1>;
26 #size-cells = <0>;
27
28 PowerPC,8323@0 {
29 device_type = "cpu";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050030 reg = <0x0>;
31 d-cache-line-size = <0x20>; // 32 bytes
32 i-cache-line-size = <0x20>; // 32 bytes
33 d-cache-size = <16384>; // L1, 16K
34 i-cache-size = <16384>; // L1, 16K
Michael Barkowski23308c52007-03-19 09:15:28 -050035 timebase-frequency = <0>;
36 bus-frequency = <0>;
37 clock-frequency = <0>;
Michael Barkowski23308c52007-03-19 09:15:28 -050038 };
39 };
40
41 memory {
42 device_type = "memory";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050043 reg = <0x00000000 0x04000000>;
Michael Barkowski23308c52007-03-19 09:15:28 -050044 };
45
46 soc8323@e0000000 {
47 #address-cells = <1>;
48 #size-cells = <1>;
Michael Barkowski23308c52007-03-19 09:15:28 -050049 device_type = "soc";
Kim Phillipscf0d19f2008-07-29 15:29:24 -050050 compatible = "simple-bus";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050051 ranges = <0x0 0xe0000000 0x00100000>;
52 reg = <0xe0000000 0x00000200>;
Michael Barkowski23308c52007-03-19 09:15:28 -050053 bus-frequency = <0>;
54
55 wdt@200 {
56 device_type = "watchdog";
57 compatible = "mpc83xx_wdt";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050058 reg = <0x200 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -050059 };
60
Anton Vorontsov1f8a25d2009-09-16 01:44:02 +040061 pmc: power@b00 {
62 compatible = "fsl,mpc8323-pmc", "fsl,mpc8349-pmc";
63 reg = <0xb00 0x100 0xa00 0x100>;
64 interrupts = <80 0x8>;
65 interrupt-parent = <&ipic>;
66 };
67
Michael Barkowski23308c52007-03-19 09:15:28 -050068 i2c@3000 {
Kumar Galaec9686c2007-12-11 23:17:24 -060069 #address-cells = <1>;
70 #size-cells = <0>;
71 cell-index = <0>;
Michael Barkowski23308c52007-03-19 09:15:28 -050072 compatible = "fsl-i2c";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050073 reg = <0x3000 0x100>;
74 interrupts = <14 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -050075 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -050076 dfsrr;
77 };
78
Kumar Galaea082fa2007-12-12 01:46:12 -060079 serial0: serial@4500 {
80 cell-index = <0>;
Michael Barkowski23308c52007-03-19 09:15:28 -050081 device_type = "serial";
Kumar Galaf706bed2011-11-28 13:58:53 -060082 compatible = "fsl,ns16550", "ns16550";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050083 reg = <0x4500 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -050084 clock-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -050085 interrupts = <9 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -050086 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -050087 };
88
Kumar Galaea082fa2007-12-12 01:46:12 -060089 serial1: serial@4600 {
90 cell-index = <1>;
Michael Barkowski23308c52007-03-19 09:15:28 -050091 device_type = "serial";
Kumar Galaf706bed2011-11-28 13:58:53 -060092 compatible = "fsl,ns16550", "ns16550";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050093 reg = <0x4600 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -050094 clock-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -050095 interrupts = <10 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -050096 interrupt-parent = <&ipic>;
97 };
98
99 dma@82a8 {
100 #address-cells = <1>;
101 #size-cells = <1>;
102 compatible = "fsl,mpc8323-dma", "fsl,elo-dma";
103 reg = <0x82a8 4>;
104 ranges = <0 0x8100 0x1a8>;
105 interrupt-parent = <&ipic>;
106 interrupts = <71 8>;
107 cell-index = <0>;
108 dma-channel@0 {
109 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
110 reg = <0 0x80>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500111 cell-index = <0>;
Kumar Galadee80552008-06-27 13:45:19 -0500112 interrupt-parent = <&ipic>;
113 interrupts = <71 8>;
114 };
115 dma-channel@80 {
116 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
117 reg = <0x80 0x80>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500118 cell-index = <1>;
Kumar Galadee80552008-06-27 13:45:19 -0500119 interrupt-parent = <&ipic>;
120 interrupts = <71 8>;
121 };
122 dma-channel@100 {
123 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
124 reg = <0x100 0x80>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500125 cell-index = <2>;
Kumar Galadee80552008-06-27 13:45:19 -0500126 interrupt-parent = <&ipic>;
127 interrupts = <71 8>;
128 };
129 dma-channel@180 {
130 compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
131 reg = <0x180 0x28>;
Kumar Galaaeb42762008-09-23 22:05:10 -0500132 cell-index = <3>;
Kumar Galadee80552008-06-27 13:45:19 -0500133 interrupt-parent = <&ipic>;
134 interrupts = <71 8>;
135 };
Michael Barkowski23308c52007-03-19 09:15:28 -0500136 };
137
138 crypto@30000 {
Kim Phillips3fd44732008-07-08 19:13:33 -0500139 compatible = "fsl,sec2.2", "fsl,sec2.1", "fsl,sec2.0";
140 reg = <0x30000 0x10000>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500141 interrupts = <11 0x8>;
Kumar Galadee80552008-06-27 13:45:19 -0500142 interrupt-parent = <&ipic>;
Kim Phillips3fd44732008-07-08 19:13:33 -0500143 fsl,num-channels = <1>;
144 fsl,channel-fifo-len = <24>;
145 fsl,exec-units-mask = <0x4c>;
146 fsl,descriptor-types-mask = <0x0122003f>;
Anton Vorontsov1f8a25d2009-09-16 01:44:02 +0400147 sleep = <&pmc 0x03000000>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500148 };
149
Kumar Galadee80552008-06-27 13:45:19 -0500150 ipic:pic@700 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500151 interrupt-controller;
152 #address-cells = <0>;
153 #interrupt-cells = <2>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500154 reg = <0x700 0x100>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500155 device_type = "ipic";
156 };
157
158 par_io@1400 {
Anton Vorontsov75458282009-03-31 15:24:39 -0700159 #address-cells = <1>;
160 #size-cells = <1>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500161 reg = <0x1400 0x100>;
Anton Vorontsov75458282009-03-31 15:24:39 -0700162 ranges = <3 0x1448 0x18>;
163 compatible = "fsl,mpc8323-qe-pario";
Michael Barkowski23308c52007-03-19 09:15:28 -0500164 device_type = "par_io";
165 num-ports = <7>;
166
Anton Vorontsov75458282009-03-31 15:24:39 -0700167 qe_pio_d: gpio-controller@1448 {
168 #gpio-cells = <2>;
169 compatible = "fsl,mpc8323-qe-pario-bank";
170 reg = <3 0x18>;
171 gpio-controller;
172 };
173
Mathieu Malaterre600ecc12017-12-14 17:54:00 +0100174 ucc2pio:ucc_pin@2 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500175 pio-map = <
176 /* port pin dir open_drain assignment has_irq */
177 3 4 3 0 2 0 /* MDIO */
178 3 5 1 0 2 0 /* MDC */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500179 3 21 2 0 1 0 /* RX_CLK (CLK16) */
180 3 23 2 0 1 0 /* TX_CLK (CLK3) */
181 0 18 1 0 1 0 /* TxD0 */
182 0 19 1 0 1 0 /* TxD1 */
183 0 20 1 0 1 0 /* TxD2 */
184 0 21 1 0 1 0 /* TxD3 */
185 0 22 2 0 1 0 /* RxD0 */
186 0 23 2 0 1 0 /* RxD1 */
187 0 24 2 0 1 0 /* RxD2 */
188 0 25 2 0 1 0 /* RxD3 */
189 0 26 2 0 1 0 /* RX_ER */
190 0 27 1 0 1 0 /* TX_ER */
191 0 28 2 0 1 0 /* RX_DV */
192 0 29 2 0 1 0 /* COL */
193 0 30 1 0 1 0 /* TX_EN */
194 0 31 2 0 1 0>; /* CRS */
Michael Barkowski23308c52007-03-19 09:15:28 -0500195 };
Mathieu Malaterre600ecc12017-12-14 17:54:00 +0100196 ucc3pio:ucc_pin@3 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500197 pio-map = <
198 /* port pin dir open_drain assignment has_irq */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500199 0 13 2 0 1 0 /* RX_CLK (CLK9) */
200 3 24 2 0 1 0 /* TX_CLK (CLK10) */
Michael Barkowski23308c52007-03-19 09:15:28 -0500201 1 0 1 0 1 0 /* TxD0 */
202 1 1 1 0 1 0 /* TxD1 */
203 1 2 1 0 1 0 /* TxD2 */
204 1 3 1 0 1 0 /* TxD3 */
205 1 4 2 0 1 0 /* RxD0 */
206 1 5 2 0 1 0 /* RxD1 */
207 1 6 2 0 1 0 /* RxD2 */
208 1 7 2 0 1 0 /* RxD3 */
209 1 8 2 0 1 0 /* RX_ER */
210 1 9 1 0 1 0 /* TX_ER */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500211 1 10 2 0 1 0 /* RX_DV */
212 1 11 2 0 1 0 /* COL */
213 1 12 1 0 1 0 /* TX_EN */
214 1 13 2 0 1 0>; /* CRS */
Michael Barkowski23308c52007-03-19 09:15:28 -0500215 };
216 };
217 };
218
219 qe@e0100000 {
220 #address-cells = <1>;
221 #size-cells = <1>;
222 device_type = "qe";
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300223 compatible = "fsl,qe";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500224 ranges = <0x0 0xe0100000 0x00100000>;
225 reg = <0xe0100000 0x480>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500226 brg-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500227 bus-frequency = <198000000>;
Haiying Wang01b14a92009-05-01 15:40:51 -0400228 fsl,qe-num-riscs = <1>;
229 fsl,qe-num-snums = <28>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500230
231 muram@10000 {
Paul Gortmaker390167e2008-01-28 02:27:51 -0500232 #address-cells = <1>;
233 #size-cells = <1>;
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300234 compatible = "fsl,qe-muram", "fsl,cpm-muram";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500235 ranges = <0x0 0x00010000 0x00004000>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500236
237 data-only@0 {
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300238 compatible = "fsl,qe-muram-data",
239 "fsl,cpm-muram-data";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500240 reg = <0x0 0x4000>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500241 };
242 };
243
244 spi@4c0 {
Anton Vorontsov75458282009-03-31 15:24:39 -0700245 #address-cells = <1>;
246 #size-cells = <0>;
Anton Vorontsovf3a2b292008-01-24 18:40:07 +0300247 cell-index = <0>;
248 compatible = "fsl,spi";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500249 reg = <0x4c0 0x40>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500250 interrupts = <2>;
251 interrupt-parent = <&qeic>;
Christophe Leroy8c452a82019-11-28 12:16:35 +0000252 cs-gpios = <&qe_pio_d 13 0>;
Anton Vorontsov8237bf02007-08-23 15:36:00 +0400253 mode = "cpu-qe";
Anton Vorontsov75458282009-03-31 15:24:39 -0700254
255 mmc-slot@0 {
256 compatible = "fsl,mpc8323rdb-mmc-slot",
257 "mmc-spi-slot";
258 reg = <0>;
259 gpios = <&qe_pio_d 14 1
260 &qe_pio_d 15 0>;
261 voltage-ranges = <3300 3300>;
262 spi-max-frequency = <50000000>;
263 };
Michael Barkowski23308c52007-03-19 09:15:28 -0500264 };
265
266 spi@500 {
Anton Vorontsovf3a2b292008-01-24 18:40:07 +0300267 cell-index = <1>;
268 compatible = "fsl,spi";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500269 reg = <0x500 0x40>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500270 interrupts = <1>;
271 interrupt-parent = <&qeic>;
272 mode = "cpu";
273 };
274
Kumar Galae77b28e2007-12-12 00:28:35 -0600275 enet0: ucc@3000 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500276 device_type = "network";
277 compatible = "ucc_geth";
Kumar Galae77b28e2007-12-12 00:28:35 -0600278 cell-index = <2>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500279 reg = <0x3000 0x200>;
280 interrupts = <33>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500281 interrupt-parent = <&qeic>;
Timur Tabieae98262007-06-22 14:33:15 -0500282 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600283 rx-clock-name = "clk16";
284 tx-clock-name = "clk3";
Michael Barkowski23308c52007-03-19 09:15:28 -0500285 phy-handle = <&phy00>;
286 pio-handle = <&ucc2pio>;
287 };
288
Kumar Galae77b28e2007-12-12 00:28:35 -0600289 enet1: ucc@2200 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500290 device_type = "network";
291 compatible = "ucc_geth";
Kumar Galae77b28e2007-12-12 00:28:35 -0600292 cell-index = <3>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500293 reg = <0x2200 0x200>;
294 interrupts = <34>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500295 interrupt-parent = <&qeic>;
Timur Tabieae98262007-06-22 14:33:15 -0500296 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600297 rx-clock-name = "clk9";
298 tx-clock-name = "clk10";
Michael Barkowski23308c52007-03-19 09:15:28 -0500299 phy-handle = <&phy04>;
300 pio-handle = <&ucc3pio>;
301 };
302
303 mdio@3120 {
304 #address-cells = <1>;
305 #size-cells = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500306 reg = <0x3120 0x18>;
Anton Vorontsovd0a2f822008-01-24 18:40:01 +0300307 compatible = "fsl,ucc-mdio";
Michael Barkowski23308c52007-03-19 09:15:28 -0500308
Mathieu Malaterre600ecc12017-12-14 17:54:00 +0100309 phy00:ethernet-phy@0 {
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500310 reg = <0x0>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500311 };
Mathieu Malaterre600ecc12017-12-14 17:54:00 +0100312 phy04:ethernet-phy@4 {
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500313 reg = <0x4>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500314 };
315 };
316
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300317 qeic:interrupt-controller@80 {
Michael Barkowski23308c52007-03-19 09:15:28 -0500318 interrupt-controller;
Anton Vorontsova2dd70a2008-01-24 18:39:59 +0300319 compatible = "fsl,qe-ic";
Michael Barkowski23308c52007-03-19 09:15:28 -0500320 #address-cells = <0>;
321 #interrupt-cells = <1>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500322 reg = <0x80 0x80>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500323 big-endian;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500324 interrupts = <32 0x8 33 0x8>; //high:32 low:33
Kumar Galadee80552008-06-27 13:45:19 -0500325 interrupt-parent = <&ipic>;
Michael Barkowski23308c52007-03-19 09:15:28 -0500326 };
327 };
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500328
Kumar Galaea082fa2007-12-12 01:46:12 -0600329 pci0: pci@e0008500 {
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500330 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500331 interrupt-map = <
332 /* IDSEL 0x10 AD16 (USB) */
Kumar Galadee80552008-06-27 13:45:19 -0500333 0x8000 0x0 0x0 0x1 &ipic 17 0x8
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500334
335 /* IDSEL 0x11 AD17 (Mini1)*/
Kumar Galadee80552008-06-27 13:45:19 -0500336 0x8800 0x0 0x0 0x1 &ipic 18 0x8
337 0x8800 0x0 0x0 0x2 &ipic 19 0x8
338 0x8800 0x0 0x0 0x3 &ipic 20 0x8
339 0x8800 0x0 0x0 0x4 &ipic 48 0x8
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500340
341 /* IDSEL 0x12 AD18 (PCI/Mini2) */
Kumar Galadee80552008-06-27 13:45:19 -0500342 0x9000 0x0 0x0 0x1 &ipic 19 0x8
343 0x9000 0x0 0x0 0x2 &ipic 20 0x8
344 0x9000 0x0 0x0 0x3 &ipic 48 0x8
345 0x9000 0x0 0x0 0x4 &ipic 17 0x8>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500346
Kumar Galadee80552008-06-27 13:45:19 -0500347 interrupt-parent = <&ipic>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500348 interrupts = <66 0x8>;
349 bus-range = <0x0 0x0>;
350 ranges = <0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
351 0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
352 0x01000000 0x0 0xd0000000 0xd0000000 0x0 0x04000000>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500353 clock-frequency = <0>;
354 #interrupt-cells = <1>;
355 #size-cells = <2>;
356 #address-cells = <3>;
John Rigby5b70a092008-10-07 13:00:18 -0600357 reg = <0xe0008500 0x100 /* internal registers */
358 0xe0008300 0x8>; /* config space access registers */
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500359 compatible = "fsl,mpc8349-pci";
360 device_type = "pci";
Anton Vorontsov1f8a25d2009-09-16 01:44:02 +0400361 sleep = <&pmc 0x00010000>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500362 };
Michael Barkowski23308c52007-03-19 09:15:28 -0500363};