blob: 7961d911a008e50f2aa1ddb8ee474815cfb27b23 [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
19 cpus {
Andy Fleming2654d632006-08-18 18:04:34 -050020 #address-cells = <1>;
21 #size-cells = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050022
23 PowerPC,8540@0 {
24 device_type = "cpu";
25 reg = <0>;
26 d-cache-line-size = <20>; // 32 bytes
27 i-cache-line-size = <20>; // 32 bytes
28 d-cache-size = <8000>; // L1, 32K
29 i-cache-size = <8000>; // L1, 32K
30 timebase-frequency = <0>; // 33 MHz, from uboot
31 bus-frequency = <0>; // 166 MHz
32 clock-frequency = <0>; // 825 MHz, from uboot
Andy Fleming2654d632006-08-18 18:04:34 -050033 };
34 };
35
36 memory {
37 device_type = "memory";
Andy Fleming2654d632006-08-18 18:04:34 -050038 reg = <00000000 08000000>; // 128M at 0x0
39 };
40
41 soc8540@e0000000 {
42 #address-cells = <1>;
43 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050044 device_type = "soc";
45 ranges = <0 e0000000 00100000>;
46 reg = <e0000000 00100000>; // CCSRBAR 1M
47 bus-frequency = <0>;
48
Dave Jiang50cf6702007-05-10 10:03:05 -070049 memory-controller@2000 {
50 compatible = "fsl,8540-memory-controller";
51 reg = <2000 1000>;
52 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050053 interrupts = <12 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070054 };
55
56 l2-cache-controller@20000 {
57 compatible = "fsl,8540-l2-cache-controller";
58 reg = <20000 1000>;
59 cache-line-size = <20>; // 32 bytes
60 cache-size = <40000>; // L2, 256K
61 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050062 interrupts = <10 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070063 };
64
Andy Fleming2654d632006-08-18 18:04:34 -050065 i2c@3000 {
Kumar Galaec9686c2007-12-11 23:17:24 -060066 #address-cells = <1>;
67 #size-cells = <0>;
68 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050069 compatible = "fsl-i2c";
70 reg = <3000 100>;
Kumar Galab533f8a2007-07-03 02:35:35 -050071 interrupts = <2b 2>;
Kumar Gala52094872007-02-17 16:04:23 -060072 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -050073 dfsrr;
74 };
75
76 mdio@24520 {
77 #address-cells = <1>;
78 #size-cells = <0>;
Kumar Galae77b28e2007-12-12 00:28:35 -060079 compatible = "fsl,gianfar-mdio";
Andy Fleming2654d632006-08-18 18:04:34 -050080 reg = <24520 20>;
Kumar Galae77b28e2007-12-12 00:28:35 -060081
Kumar Gala52094872007-02-17 16:04:23 -060082 phy0: ethernet-phy@0 {
83 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050084 interrupts = <5 1>;
Andy Fleming2654d632006-08-18 18:04:34 -050085 reg = <0>;
86 device_type = "ethernet-phy";
87 };
Kumar Gala52094872007-02-17 16:04:23 -060088 phy1: ethernet-phy@1 {
89 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050090 interrupts = <5 1>;
Andy Fleming2654d632006-08-18 18:04:34 -050091 reg = <1>;
92 device_type = "ethernet-phy";
93 };
Kumar Gala52094872007-02-17 16:04:23 -060094 phy3: ethernet-phy@3 {
95 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050096 interrupts = <7 1>;
Andy Flemingaa74a302006-08-21 14:29:28 -050097 reg = <3>;
Andy Fleming2654d632006-08-18 18:04:34 -050098 device_type = "ethernet-phy";
99 };
100 };
101
Kumar Galae77b28e2007-12-12 00:28:35 -0600102 enet0: ethernet@24000 {
103 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500104 device_type = "network";
105 model = "TSEC";
106 compatible = "gianfar";
107 reg = <24000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500108 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500109 interrupts = <1d 2 1e 2 22 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600110 interrupt-parent = <&mpic>;
111 phy-handle = <&phy0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500112 };
113
Kumar Galae77b28e2007-12-12 00:28:35 -0600114 enet1: ethernet@25000 {
115 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500116 device_type = "network";
117 model = "TSEC";
118 compatible = "gianfar";
119 reg = <25000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500120 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500121 interrupts = <23 2 24 2 28 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600122 interrupt-parent = <&mpic>;
123 phy-handle = <&phy1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500124 };
125
Kumar Galae77b28e2007-12-12 00:28:35 -0600126 enet2: ethernet@26000 {
127 cell-index = <2>;
Andy Fleming2654d632006-08-18 18:04:34 -0500128 device_type = "network";
Andy Flemingaa74a302006-08-21 14:29:28 -0500129 model = "FEC";
Andy Fleming2654d632006-08-18 18:04:34 -0500130 compatible = "gianfar";
131 reg = <26000 1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500132 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Galab533f8a2007-07-03 02:35:35 -0500133 interrupts = <29 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600134 interrupt-parent = <&mpic>;
135 phy-handle = <&phy3>;
Andy Fleming2654d632006-08-18 18:04:34 -0500136 };
137
138 serial@4500 {
139 device_type = "serial";
140 compatible = "ns16550";
141 reg = <4500 100>; // reg base, size
142 clock-frequency = <0>; // should we fill in in uboot?
Kumar Galab533f8a2007-07-03 02:35:35 -0500143 interrupts = <2a 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600144 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500145 };
146
147 serial@4600 {
148 device_type = "serial";
149 compatible = "ns16550";
150 reg = <4600 100>; // reg base, size
151 clock-frequency = <0>; // should we fill in in uboot?
Kumar Galab533f8a2007-07-03 02:35:35 -0500152 interrupts = <2a 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600153 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500154 };
Kumar Gala52094872007-02-17 16:04:23 -0600155 mpic: pic@40000 {
Andy Fleming2654d632006-08-18 18:04:34 -0500156 clock-frequency = <0>;
157 interrupt-controller;
158 #address-cells = <0>;
159 #interrupt-cells = <2>;
160 reg = <40000 40000>;
Andy Fleming2654d632006-08-18 18:04:34 -0500161 compatible = "chrp,open-pic";
162 device_type = "open-pic";
Andy Flemingaa74a302006-08-21 14:29:28 -0500163 big-endian;
Andy Fleming2654d632006-08-18 18:04:34 -0500164 };
165 };
Kumar Gala1b3c5cda2007-09-12 18:23:46 -0500166
167 pci@e0008000 {
168 interrupt-map-mask = <f800 0 0 7>;
169 interrupt-map = <
170
171 /* IDSEL 0x02 */
172 1000 0 0 1 &mpic 1 1
173 1000 0 0 2 &mpic 2 1
174 1000 0 0 3 &mpic 3 1
175 1000 0 0 4 &mpic 4 1
176
177 /* IDSEL 0x03 */
178 1800 0 0 1 &mpic 4 1
179 1800 0 0 2 &mpic 1 1
180 1800 0 0 3 &mpic 2 1
181 1800 0 0 4 &mpic 3 1
182
183 /* IDSEL 0x04 */
184 2000 0 0 1 &mpic 3 1
185 2000 0 0 2 &mpic 4 1
186 2000 0 0 3 &mpic 1 1
187 2000 0 0 4 &mpic 2 1
188
189 /* IDSEL 0x05 */
190 2800 0 0 1 &mpic 2 1
191 2800 0 0 2 &mpic 3 1
192 2800 0 0 3 &mpic 4 1
193 2800 0 0 4 &mpic 1 1
194
195 /* IDSEL 0x0c */
196 6000 0 0 1 &mpic 1 1
197 6000 0 0 2 &mpic 2 1
198 6000 0 0 3 &mpic 3 1
199 6000 0 0 4 &mpic 4 1
200
201 /* IDSEL 0x0d */
202 6800 0 0 1 &mpic 4 1
203 6800 0 0 2 &mpic 1 1
204 6800 0 0 3 &mpic 2 1
205 6800 0 0 4 &mpic 3 1
206
207 /* IDSEL 0x0e */
208 7000 0 0 1 &mpic 3 1
209 7000 0 0 2 &mpic 4 1
210 7000 0 0 3 &mpic 1 1
211 7000 0 0 4 &mpic 2 1
212
213 /* IDSEL 0x0f */
214 7800 0 0 1 &mpic 2 1
215 7800 0 0 2 &mpic 3 1
216 7800 0 0 3 &mpic 4 1
217 7800 0 0 4 &mpic 1 1
218
219 /* IDSEL 0x12 */
220 9000 0 0 1 &mpic 1 1
221 9000 0 0 2 &mpic 2 1
222 9000 0 0 3 &mpic 3 1
223 9000 0 0 4 &mpic 4 1
224
225 /* IDSEL 0x13 */
226 9800 0 0 1 &mpic 4 1
227 9800 0 0 2 &mpic 1 1
228 9800 0 0 3 &mpic 2 1
229 9800 0 0 4 &mpic 3 1
230
231 /* IDSEL 0x14 */
232 a000 0 0 1 &mpic 3 1
233 a000 0 0 2 &mpic 4 1
234 a000 0 0 3 &mpic 1 1
235 a000 0 0 4 &mpic 2 1
236
237 /* IDSEL 0x15 */
238 a800 0 0 1 &mpic 2 1
239 a800 0 0 2 &mpic 3 1
240 a800 0 0 3 &mpic 4 1
241 a800 0 0 4 &mpic 1 1>;
242 interrupt-parent = <&mpic>;
243 interrupts = <18 2>;
244 bus-range = <0 0>;
245 ranges = <02000000 0 80000000 80000000 0 20000000
246 01000000 0 00000000 e2000000 0 00100000>;
247 clock-frequency = <3f940aa>;
248 #interrupt-cells = <1>;
249 #size-cells = <2>;
250 #address-cells = <3>;
251 reg = <e0008000 1000>;
252 compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
253 device_type = "pci";
254 };
Andy Fleming2654d632006-08-18 18:04:34 -0500255};