blob: 711f9a30f9aba3fd9a31e97c86b22fde8b261cc6 [file] [log] [blame]
Kim Phillips23dd1cb2008-01-24 20:47:18 -06001/*
2 * MPC8378E RDB Device Tree Source
3 *
4 * Copyright 2007, 2008 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/dts-v1/;
13
14/ {
Kim Phillips3b29dade2008-01-28 13:00:37 -060015 compatible = "fsl,mpc8378rdb";
Kim Phillips23dd1cb2008-01-24 20:47:18 -060016 #address-cells = <1>;
17 #size-cells = <1>;
18
19 aliases {
20 ethernet0 = &enet0;
21 ethernet1 = &enet1;
22 serial0 = &serial0;
23 serial1 = &serial1;
24 pci0 = &pci0;
25 };
26
27 cpus {
28 #address-cells = <1>;
29 #size-cells = <0>;
30
31 PowerPC,8378@0 {
32 device_type = "cpu";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050033 reg = <0x0>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -060034 d-cache-line-size = <32>;
35 i-cache-line-size = <32>;
36 d-cache-size = <32768>;
37 i-cache-size = <32768>;
38 timebase-frequency = <0>;
39 bus-frequency = <0>;
40 clock-frequency = <0>;
41 };
42 };
43
44 memory {
45 device_type = "memory";
46 reg = <0x00000000 0x10000000>; // 256MB at 0
47 };
48
49 localbus@e0005000 {
50 #address-cells = <2>;
51 #size-cells = <1>;
52 compatible = "fsl,mpc8378-elbc", "fsl,elbc", "simple-bus";
53 reg = <0xe0005000 0x1000>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -050054 interrupts = <77 0x8>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -060055 interrupt-parent = <&ipic>;
56
57 // CS0 and CS1 are swapped when
58 // booting from nand, but the
59 // addresses are the same.
Paul Gortmakercda13dd2008-01-28 16:09:36 -050060 ranges = <0x0 0x0 0xfe000000 0x00800000
61 0x1 0x0 0xe0600000 0x00008000
62 0x2 0x0 0xf0000000 0x00020000
63 0x3 0x0 0xfa000000 0x00008000>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -060064
65 flash@0,0 {
66 #address-cells = <1>;
67 #size-cells = <1>;
68 compatible = "cfi-flash";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050069 reg = <0x0 0x0 0x800000>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -060070 bank-width = <2>;
71 device-width = <1>;
72 };
73
74 nand@1,0 {
75 #address-cells = <1>;
76 #size-cells = <1>;
77 compatible = "fsl,mpc8378-fcm-nand",
78 "fsl,elbc-fcm-nand";
Paul Gortmakercda13dd2008-01-28 16:09:36 -050079 reg = <0x1 0x0 0x8000>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -060080
81 u-boot@0 {
82 reg = <0x0 0x100000>;
83 read-only;
84 };
85
86 kernel@100000 {
87 reg = <0x100000 0x300000>;
88 };
89 fs@400000 {
90 reg = <0x400000 0x1c00000>;
91 };
92 };
93 };
94
95 immr@e0000000 {
96 #address-cells = <1>;
97 #size-cells = <1>;
98 device_type = "soc";
99 compatible = "simple-bus";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500100 ranges = <0x0 0xe0000000 0x00100000>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600101 reg = <0xe0000000 0x00000200>;
102 bus-frequency = <0>;
103
104 wdt@200 {
105 device_type = "watchdog";
106 compatible = "mpc83xx_wdt";
107 reg = <0x200 0x100>;
108 };
109
110 i2c@3000 {
111 #address-cells = <1>;
112 #size-cells = <0>;
113 cell-index = <0>;
114 compatible = "fsl-i2c";
115 reg = <0x3000 0x100>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500116 interrupts = <14 0x8>;
117 interrupt-parent = <&ipic>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600118 dfsrr;
119 rtc@68 {
120 device_type = "rtc";
121 compatible = "dallas,ds1339";
122 reg = <0x68>;
123 };
124 };
125
126 i2c@3100 {
127 #address-cells = <1>;
128 #size-cells = <0>;
129 cell-index = <1>;
130 compatible = "fsl-i2c";
131 reg = <0x3100 0x100>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500132 interrupts = <15 0x8>;
133 interrupt-parent = <&ipic>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600134 dfsrr;
135 };
136
137 spi@7000 {
138 cell-index = <0>;
139 compatible = "fsl,spi";
140 reg = <0x7000 0x1000>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500141 interrupts = <16 0x8>;
142 interrupt-parent = <&ipic>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600143 mode = "cpu";
144 };
145
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600146 usb@23000 {
147 compatible = "fsl-usb2-dr";
148 reg = <0x23000 0x1000>;
149 #address-cells = <1>;
150 #size-cells = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500151 interrupt-parent = <&ipic>;
152 interrupts = <38 0x8>;
Anton Vorontsov8e8ff3a2008-03-12 23:02:13 +0300153 phy_type = "ulpi";
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600154 };
155
156 mdio@24520 {
157 #address-cells = <1>;
158 #size-cells = <0>;
159 compatible = "fsl,gianfar-mdio";
160 reg = <0x24520 0x20>;
161 phy2: ethernet-phy@2 {
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500162 interrupt-parent = <&ipic>;
163 interrupts = <17 0x8>;
164 reg = <0x2>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600165 device_type = "ethernet-phy";
166 };
167 phy3: ethernet-phy@3 {
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500168 interrupt-parent = <&ipic>;
169 interrupts = <18 0x8>;
170 reg = <0x3>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600171 device_type = "ethernet-phy";
172 };
173 };
174
175 enet0: ethernet@24000 {
176 cell-index = <0>;
177 device_type = "network";
178 model = "eTSEC";
179 compatible = "gianfar";
180 reg = <0x24000 0x1000>;
181 local-mac-address = [ 00 00 00 00 00 00 ];
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500182 interrupts = <32 0x8 33 0x8 34 0x8>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600183 phy-connection-type = "mii";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500184 interrupt-parent = <&ipic>;
185 phy-handle = <&phy2>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600186 };
187
188 enet1: ethernet@25000 {
189 cell-index = <1>;
190 device_type = "network";
191 model = "eTSEC";
192 compatible = "gianfar";
193 reg = <0x25000 0x1000>;
194 local-mac-address = [ 00 00 00 00 00 00 ];
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500195 interrupts = <35 0x8 36 0x8 37 0x8>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600196 phy-connection-type = "mii";
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500197 interrupt-parent = <&ipic>;
198 phy-handle = <&phy3>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600199 };
200
201 serial0: serial@4500 {
202 cell-index = <0>;
203 device_type = "serial";
204 compatible = "ns16550";
205 reg = <0x4500 0x100>;
206 clock-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500207 interrupts = <9 0x8>;
208 interrupt-parent = <&ipic>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600209 };
210
211 serial1: serial@4600 {
212 cell-index = <1>;
213 device_type = "serial";
214 compatible = "ns16550";
215 reg = <0x4600 0x100>;
216 clock-frequency = <0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500217 interrupts = <10 0x8>;
218 interrupt-parent = <&ipic>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600219 };
220
221 crypto@30000 {
222 model = "SEC3";
223 device_type = "crypto";
224 compatible = "talitos";
225 reg = <0x30000 0x10000>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500226 interrupts = <11 0x8>;
227 interrupt-parent = <&ipic>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600228 /* Rev. 3.0 geometry */
229 num-channels = <4>;
230 channel-fifo-len = <24>;
231 exec-units-mask = <0x000001fe>;
232 descriptor-types-mask = <0x03ab0ebf>;
233 };
234
235 /* IPIC
236 * interrupts cell = <intr #, sense>
237 * sense values match linux IORESOURCE_IRQ_* defines:
238 * sense == 8: Level, low assertion
239 * sense == 2: Edge, high-to-low change
240 */
241 ipic: interrupt-controller@700 {
242 compatible = "fsl,ipic";
243 interrupt-controller;
244 #address-cells = <0>;
245 #interrupt-cells = <2>;
246 reg = <0x700 0x100>;
247 };
248 };
249
250 pci0: pci@e0008500 {
251 interrupt-map-mask = <0xf800 0 0 7>;
252 interrupt-map = <
253 /* IRQ5 = 21 = 0x15, IRQ6 = 0x16, IRQ7 = 23 = 0x17 */
254
255 /* IDSEL AD14 IRQ6 inta */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500256 0x7000 0x0 0x0 0x1 &ipic 22 0x8
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600257
258 /* IDSEL AD15 IRQ5 inta, IRQ6 intb, IRQ7 intd */
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500259 0x7800 0x0 0x0 0x1 &ipic 21 0x8
260 0x7800 0x0 0x0 0x2 &ipic 22 0x8
261 0x7800 0x0 0x0 0x4 &ipic 23 0x8
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600262
263 /* IDSEL AD28 IRQ7 inta, IRQ5 intb IRQ6 intc*/
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500264 0xE000 0x0 0x0 0x1 &ipic 23 0x8
265 0xE000 0x0 0x0 0x2 &ipic 21 0x8
266 0xE000 0x0 0x0 0x3 &ipic 22 0x8>;
267 interrupt-parent = <&ipic>;
268 interrupts = <66 0x8>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600269 bus-range = <0 0>;
Paul Gortmakercda13dd2008-01-28 16:09:36 -0500270 ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
271 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
272 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
Kim Phillips23dd1cb2008-01-24 20:47:18 -0600273 clock-frequency = <66666666>;
274 #interrupt-cells = <1>;
275 #size-cells = <2>;
276 #address-cells = <3>;
277 reg = <0xe0008500 0x100>;
278 compatible = "fsl,mpc8349-pci";
279 device_type = "pci";
280 };
281};