blob: 975248491b7b9dcb258a5377781a07d0ae6ed12f [file] [log] [blame]
Andy Fleming2654d632006-08-18 18:04:34 -05001/*
2 * MPC8540 ADS Device Tree Source
3 *
4 * Copyright 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/ {
14 model = "MPC8540ADS";
Kumar Gala52094872007-02-17 16:04:23 -060015 compatible = "MPC8540ADS", "MPC85xxADS";
Andy Fleming2654d632006-08-18 18:04:34 -050016 #address-cells = <1>;
17 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050018
Kumar Galaea082fa2007-12-12 01:46:12 -060019 aliases {
20 ethernet0 = &enet0;
21 ethernet1 = &enet1;
22 ethernet2 = &enet2;
23 serial0 = &serial0;
24 serial1 = &serial1;
25 pci0 = &pci0;
26 };
27
Andy Fleming2654d632006-08-18 18:04:34 -050028 cpus {
Andy Fleming2654d632006-08-18 18:04:34 -050029 #address-cells = <1>;
30 #size-cells = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050031
32 PowerPC,8540@0 {
33 device_type = "cpu";
34 reg = <0>;
35 d-cache-line-size = <20>; // 32 bytes
36 i-cache-line-size = <20>; // 32 bytes
37 d-cache-size = <8000>; // L1, 32K
38 i-cache-size = <8000>; // L1, 32K
39 timebase-frequency = <0>; // 33 MHz, from uboot
40 bus-frequency = <0>; // 166 MHz
41 clock-frequency = <0>; // 825 MHz, from uboot
Andy Fleming2654d632006-08-18 18:04:34 -050042 };
43 };
44
45 memory {
46 device_type = "memory";
Andy Fleming2654d632006-08-18 18:04:34 -050047 reg = <00000000 08000000>; // 128M at 0x0
48 };
49
50 soc8540@e0000000 {
51 #address-cells = <1>;
52 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050053 device_type = "soc";
54 ranges = <0 e0000000 00100000>;
55 reg = <e0000000 00100000>; // CCSRBAR 1M
56 bus-frequency = <0>;
57
Dave Jiang50cf6702007-05-10 10:03:05 -070058 memory-controller@2000 {
59 compatible = "fsl,8540-memory-controller";
60 reg = <2000 1000>;
61 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050062 interrupts = <12 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070063 };
64
65 l2-cache-controller@20000 {
66 compatible = "fsl,8540-l2-cache-controller";
67 reg = <20000 1000>;
68 cache-line-size = <20>; // 32 bytes
69 cache-size = <40000>; // L2, 256K
70 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050071 interrupts = <10 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070072 };
73
Andy Fleming2654d632006-08-18 18:04:34 -050074 i2c@3000 {
Kumar Galaec9686c2007-12-11 23:17:24 -060075 #address-cells = <1>;
76 #size-cells = <0>;
77 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050078 compatible = "fsl-i2c";
79 reg = <3000 100>;
Kumar Galab533f8a2007-07-03 02:35:35 -050080 interrupts = <2b 2>;
Kumar Gala52094872007-02-17 16:04:23 -060081 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -050082 dfsrr;
83 };
84
85 mdio@24520 {
86 #address-cells = <1>;
87 #size-cells = <0>;
Kumar Galae77b28e2007-12-12 00:28:35 -060088 compatible = "fsl,gianfar-mdio";
Andy Fleming2654d632006-08-18 18:04:34 -050089 reg = <24520 20>;
Kumar Galae77b28e2007-12-12 00:28:35 -060090
Kumar Gala52094872007-02-17 16:04:23 -060091 phy0: ethernet-phy@0 {
92 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050093 interrupts = <5 1>;
Andy Fleming2654d632006-08-18 18:04:34 -050094 reg = <0>;
95 device_type = "ethernet-phy";
96 };
Kumar Gala52094872007-02-17 16:04:23 -060097 phy1: ethernet-phy@1 {
98 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050099 interrupts = <5 1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500100 reg = <1>;
101 device_type = "ethernet-phy";
102 };
Kumar Gala52094872007-02-17 16:04:23 -0600103 phy3: ethernet-phy@3 {
104 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -0500105 interrupts = <7 1>;
Andy Flemingaa74a302006-08-21 14:29:28 -0500106 reg = <3>;
Andy Fleming2654d632006-08-18 18:04:34 -0500107 device_type = "ethernet-phy";
108 };
109 };
110
Kumar Galae77b28e2007-12-12 00:28:35 -0600111 enet0: ethernet@24000 {
112 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500113 device_type = "network";
114 model = "TSEC";
115 compatible = "gianfar";
116 reg = <24000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500117 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500118 interrupts = <1d 2 1e 2 22 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600119 interrupt-parent = <&mpic>;
120 phy-handle = <&phy0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500121 };
122
Kumar Galae77b28e2007-12-12 00:28:35 -0600123 enet1: ethernet@25000 {
124 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500125 device_type = "network";
126 model = "TSEC";
127 compatible = "gianfar";
128 reg = <25000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500129 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500130 interrupts = <23 2 24 2 28 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600131 interrupt-parent = <&mpic>;
132 phy-handle = <&phy1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500133 };
134
Kumar Galae77b28e2007-12-12 00:28:35 -0600135 enet2: ethernet@26000 {
136 cell-index = <2>;
Andy Fleming2654d632006-08-18 18:04:34 -0500137 device_type = "network";
Andy Flemingaa74a302006-08-21 14:29:28 -0500138 model = "FEC";
Andy Fleming2654d632006-08-18 18:04:34 -0500139 compatible = "gianfar";
140 reg = <26000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500141 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500142 interrupts = <29 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600143 interrupt-parent = <&mpic>;
144 phy-handle = <&phy3>;
Andy Fleming2654d632006-08-18 18:04:34 -0500145 };
146
Kumar Galaea082fa2007-12-12 01:46:12 -0600147 serial0: serial@4500 {
148 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500149 device_type = "serial";
150 compatible = "ns16550";
151 reg = <4500 100>; // reg base, size
152 clock-frequency = <0>; // should we fill in in uboot?
Kumar Galab533f8a2007-07-03 02:35:35 -0500153 interrupts = <2a 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600154 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500155 };
156
Kumar Galaea082fa2007-12-12 01:46:12 -0600157 serial1: serial@4600 {
158 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500159 device_type = "serial";
160 compatible = "ns16550";
161 reg = <4600 100>; // reg base, size
162 clock-frequency = <0>; // should we fill in in uboot?
Kumar Galab533f8a2007-07-03 02:35:35 -0500163 interrupts = <2a 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600164 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500165 };
Kumar Gala52094872007-02-17 16:04:23 -0600166 mpic: pic@40000 {
Andy Fleming2654d632006-08-18 18:04:34 -0500167 clock-frequency = <0>;
168 interrupt-controller;
169 #address-cells = <0>;
170 #interrupt-cells = <2>;
171 reg = <40000 40000>;
Andy Fleming2654d632006-08-18 18:04:34 -0500172 compatible = "chrp,open-pic";
173 device_type = "open-pic";
Andy Flemingaa74a302006-08-21 14:29:28 -0500174 big-endian;
Andy Fleming2654d632006-08-18 18:04:34 -0500175 };
176 };
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500177
Kumar Galaea082fa2007-12-12 01:46:12 -0600178 pci0: pci@e0008000 {
179 cell-index = <0>;
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500180 interrupt-map-mask = <f800 0 0 7>;
181 interrupt-map = <
182
183 /* IDSEL 0x02 */
184 1000 0 0 1 &mpic 1 1
185 1000 0 0 2 &mpic 2 1
186 1000 0 0 3 &mpic 3 1
187 1000 0 0 4 &mpic 4 1
188
189 /* IDSEL 0x03 */
190 1800 0 0 1 &mpic 4 1
191 1800 0 0 2 &mpic 1 1
192 1800 0 0 3 &mpic 2 1
193 1800 0 0 4 &mpic 3 1
194
195 /* IDSEL 0x04 */
196 2000 0 0 1 &mpic 3 1
197 2000 0 0 2 &mpic 4 1
198 2000 0 0 3 &mpic 1 1
199 2000 0 0 4 &mpic 2 1
200
201 /* IDSEL 0x05 */
202 2800 0 0 1 &mpic 2 1
203 2800 0 0 2 &mpic 3 1
204 2800 0 0 3 &mpic 4 1
205 2800 0 0 4 &mpic 1 1
206
207 /* IDSEL 0x0c */
208 6000 0 0 1 &mpic 1 1
209 6000 0 0 2 &mpic 2 1
210 6000 0 0 3 &mpic 3 1
211 6000 0 0 4 &mpic 4 1
212
213 /* IDSEL 0x0d */
214 6800 0 0 1 &mpic 4 1
215 6800 0 0 2 &mpic 1 1
216 6800 0 0 3 &mpic 2 1
217 6800 0 0 4 &mpic 3 1
218
219 /* IDSEL 0x0e */
220 7000 0 0 1 &mpic 3 1
221 7000 0 0 2 &mpic 4 1
222 7000 0 0 3 &mpic 1 1
223 7000 0 0 4 &mpic 2 1
224
225 /* IDSEL 0x0f */
226 7800 0 0 1 &mpic 2 1
227 7800 0 0 2 &mpic 3 1
228 7800 0 0 3 &mpic 4 1
229 7800 0 0 4 &mpic 1 1
230
231 /* IDSEL 0x12 */
232 9000 0 0 1 &mpic 1 1
233 9000 0 0 2 &mpic 2 1
234 9000 0 0 3 &mpic 3 1
235 9000 0 0 4 &mpic 4 1
236
237 /* IDSEL 0x13 */
238 9800 0 0 1 &mpic 4 1
239 9800 0 0 2 &mpic 1 1
240 9800 0 0 3 &mpic 2 1
241 9800 0 0 4 &mpic 3 1
242
243 /* IDSEL 0x14 */
244 a000 0 0 1 &mpic 3 1
245 a000 0 0 2 &mpic 4 1
246 a000 0 0 3 &mpic 1 1
247 a000 0 0 4 &mpic 2 1
248
249 /* IDSEL 0x15 */
250 a800 0 0 1 &mpic 2 1
251 a800 0 0 2 &mpic 3 1
252 a800 0 0 3 &mpic 4 1
253 a800 0 0 4 &mpic 1 1>;
254 interrupt-parent = <&mpic>;
255 interrupts = <18 2>;
256 bus-range = <0 0>;
257 ranges = <02000000 0 80000000 80000000 0 20000000
258 01000000 0 00000000 e2000000 0 00100000>;
259 clock-frequency = <3f940aa>;
260 #interrupt-cells = <1>;
261 #size-cells = <2>;
262 #address-cells = <3>;
263 reg = <e0008000 1000>;
264 compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
265 device_type = "pci";
266 };
Andy Fleming2654d632006-08-18 18:04:34 -0500267};