blob: 79881a1fb8aa94e6053cd132c21eb80797092143 [file] [log] [blame]
Andy Fleming2654d632006-08-18 18:04:34 -05001/*
2 * MPC8540 ADS Device Tree Source
3 *
Kumar Gala32f960e2008-04-17 01:28:15 -05004 * Copyright 2006, 2008 Freescale Semiconductor Inc.
Andy Fleming2654d632006-08-18 18:04:34 -05005 *
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
Kumar Gala32f960e2008-04-17 01:28:15 -050012/dts-v1/;
Andy Fleming2654d632006-08-18 18:04:34 -050013
14/ {
15 model = "MPC8540ADS";
Kumar Gala52094872007-02-17 16:04:23 -060016 compatible = "MPC8540ADS", "MPC85xxADS";
Andy Fleming2654d632006-08-18 18:04:34 -050017 #address-cells = <1>;
18 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050019
Kumar Galaea082fa2007-12-12 01:46:12 -060020 aliases {
21 ethernet0 = &enet0;
22 ethernet1 = &enet1;
23 ethernet2 = &enet2;
24 serial0 = &serial0;
25 serial1 = &serial1;
26 pci0 = &pci0;
27 };
28
Andy Fleming2654d632006-08-18 18:04:34 -050029 cpus {
Andy Fleming2654d632006-08-18 18:04:34 -050030 #address-cells = <1>;
31 #size-cells = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050032
33 PowerPC,8540@0 {
34 device_type = "cpu";
Kumar Gala32f960e2008-04-17 01:28:15 -050035 reg = <0x0>;
36 d-cache-line-size = <32>; // 32 bytes
37 i-cache-line-size = <32>; // 32 bytes
38 d-cache-size = <0x8000>; // L1, 32K
39 i-cache-size = <0x8000>; // L1, 32K
Andy Fleming2654d632006-08-18 18:04:34 -050040 timebase-frequency = <0>; // 33 MHz, from uboot
41 bus-frequency = <0>; // 166 MHz
42 clock-frequency = <0>; // 825 MHz, from uboot
Kumar Galac0540652008-05-30 13:43:43 -050043 next-level-cache = <&L2>;
Andy Fleming2654d632006-08-18 18:04:34 -050044 };
45 };
46
47 memory {
48 device_type = "memory";
Kumar Gala32f960e2008-04-17 01:28:15 -050049 reg = <0x0 0x8000000>; // 128M at 0x0
Andy Fleming2654d632006-08-18 18:04:34 -050050 };
51
52 soc8540@e0000000 {
53 #address-cells = <1>;
54 #size-cells = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -050055 device_type = "soc";
Kumar Gala32f960e2008-04-17 01:28:15 -050056 ranges = <0x0 0xe0000000 0x100000>;
57 reg = <0xe0000000 0x100000>; // CCSRBAR 1M
Andy Fleming2654d632006-08-18 18:04:34 -050058 bus-frequency = <0>;
59
Dave Jiang50cf6702007-05-10 10:03:05 -070060 memory-controller@2000 {
61 compatible = "fsl,8540-memory-controller";
Kumar Gala32f960e2008-04-17 01:28:15 -050062 reg = <0x2000 0x1000>;
Dave Jiang50cf6702007-05-10 10:03:05 -070063 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -050064 interrupts = <18 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070065 };
66
Kumar Galac0540652008-05-30 13:43:43 -050067 L2: l2-cache-controller@20000 {
Dave Jiang50cf6702007-05-10 10:03:05 -070068 compatible = "fsl,8540-l2-cache-controller";
Kumar Gala32f960e2008-04-17 01:28:15 -050069 reg = <0x20000 0x1000>;
70 cache-line-size = <32>; // 32 bytes
71 cache-size = <0x40000>; // L2, 256K
Dave Jiang50cf6702007-05-10 10:03:05 -070072 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -050073 interrupts = <16 2>;
Dave Jiang50cf6702007-05-10 10:03:05 -070074 };
75
Andy Fleming2654d632006-08-18 18:04:34 -050076 i2c@3000 {
Kumar Galaec9686c2007-12-11 23:17:24 -060077 #address-cells = <1>;
78 #size-cells = <0>;
79 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -050080 compatible = "fsl-i2c";
Kumar Gala32f960e2008-04-17 01:28:15 -050081 reg = <0x3000 0x100>;
82 interrupts = <43 2>;
Kumar Gala52094872007-02-17 16:04:23 -060083 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -050084 dfsrr;
85 };
86
87 mdio@24520 {
88 #address-cells = <1>;
89 #size-cells = <0>;
Kumar Galae77b28e2007-12-12 00:28:35 -060090 compatible = "fsl,gianfar-mdio";
Kumar Gala32f960e2008-04-17 01:28:15 -050091 reg = <0x24520 0x20>;
Kumar Galae77b28e2007-12-12 00:28:35 -060092
Kumar Gala52094872007-02-17 16:04:23 -060093 phy0: ethernet-phy@0 {
94 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -050095 interrupts = <5 1>;
Kumar Gala32f960e2008-04-17 01:28:15 -050096 reg = <0x0>;
Andy Fleming2654d632006-08-18 18:04:34 -050097 device_type = "ethernet-phy";
98 };
Kumar Gala52094872007-02-17 16:04:23 -060099 phy1: ethernet-phy@1 {
100 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -0500101 interrupts = <5 1>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500102 reg = <0x1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500103 device_type = "ethernet-phy";
104 };
Kumar Gala52094872007-02-17 16:04:23 -0600105 phy3: ethernet-phy@3 {
106 interrupt-parent = <&mpic>;
Kumar Galab533f8a2007-07-03 02:35:35 -0500107 interrupts = <7 1>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500108 reg = <0x3>;
Andy Fleming2654d632006-08-18 18:04:34 -0500109 device_type = "ethernet-phy";
110 };
111 };
112
Kumar Galae77b28e2007-12-12 00:28:35 -0600113 enet0: ethernet@24000 {
114 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500115 device_type = "network";
116 model = "TSEC";
117 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500118 reg = <0x24000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500119 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500120 interrupts = <29 2 30 2 34 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600121 interrupt-parent = <&mpic>;
122 phy-handle = <&phy0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500123 };
124
Kumar Galae77b28e2007-12-12 00:28:35 -0600125 enet1: ethernet@25000 {
126 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500127 device_type = "network";
128 model = "TSEC";
129 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500130 reg = <0x25000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500131 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500132 interrupts = <35 2 36 2 40 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600133 interrupt-parent = <&mpic>;
134 phy-handle = <&phy1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500135 };
136
Kumar Galae77b28e2007-12-12 00:28:35 -0600137 enet2: ethernet@26000 {
138 cell-index = <2>;
Andy Fleming2654d632006-08-18 18:04:34 -0500139 device_type = "network";
Andy Flemingaa74a302006-08-21 14:29:28 -0500140 model = "FEC";
Andy Fleming2654d632006-08-18 18:04:34 -0500141 compatible = "gianfar";
Kumar Gala32f960e2008-04-17 01:28:15 -0500142 reg = <0x26000 0x1000>;
Timur Tabieae98262007-06-22 14:33:15 -0500143 local-mac-address = [ 00 00 00 00 00 00 ];
Kumar Gala32f960e2008-04-17 01:28:15 -0500144 interrupts = <41 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600145 interrupt-parent = <&mpic>;
146 phy-handle = <&phy3>;
Andy Fleming2654d632006-08-18 18:04:34 -0500147 };
148
Kumar Galaea082fa2007-12-12 01:46:12 -0600149 serial0: serial@4500 {
150 cell-index = <0>;
Andy Fleming2654d632006-08-18 18:04:34 -0500151 device_type = "serial";
152 compatible = "ns16550";
Kumar Gala32f960e2008-04-17 01:28:15 -0500153 reg = <0x4500 0x100>; // reg base, size
Andy Fleming2654d632006-08-18 18:04:34 -0500154 clock-frequency = <0>; // should we fill in in uboot?
Kumar Gala32f960e2008-04-17 01:28:15 -0500155 interrupts = <42 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600156 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500157 };
158
Kumar Galaea082fa2007-12-12 01:46:12 -0600159 serial1: serial@4600 {
160 cell-index = <1>;
Andy Fleming2654d632006-08-18 18:04:34 -0500161 device_type = "serial";
162 compatible = "ns16550";
Kumar Gala32f960e2008-04-17 01:28:15 -0500163 reg = <0x4600 0x100>; // reg base, size
Andy Fleming2654d632006-08-18 18:04:34 -0500164 clock-frequency = <0>; // should we fill in in uboot?
Kumar Gala32f960e2008-04-17 01:28:15 -0500165 interrupts = <42 2>;
Kumar Gala52094872007-02-17 16:04:23 -0600166 interrupt-parent = <&mpic>;
Andy Fleming2654d632006-08-18 18:04:34 -0500167 };
Kumar Gala52094872007-02-17 16:04:23 -0600168 mpic: pic@40000 {
Andy Fleming2654d632006-08-18 18:04:34 -0500169 interrupt-controller;
170 #address-cells = <0>;
171 #interrupt-cells = <2>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500172 reg = <0x40000 0x40000>;
Andy Fleming2654d632006-08-18 18:04:34 -0500173 compatible = "chrp,open-pic";
174 device_type = "open-pic";
Andy Fleming2654d632006-08-18 18:04:34 -0500175 };
176 };
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500177
Kumar Galaea082fa2007-12-12 01:46:12 -0600178 pci0: pci@e0008000 {
179 cell-index = <0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500180 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500181 interrupt-map = <
182
183 /* IDSEL 0x02 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500184 0x1000 0x0 0x0 0x1 &mpic 0x1 0x1
185 0x1000 0x0 0x0 0x2 &mpic 0x2 0x1
186 0x1000 0x0 0x0 0x3 &mpic 0x3 0x1
187 0x1000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500188
189 /* IDSEL 0x03 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500190 0x1800 0x0 0x0 0x1 &mpic 0x4 0x1
191 0x1800 0x0 0x0 0x2 &mpic 0x1 0x1
192 0x1800 0x0 0x0 0x3 &mpic 0x2 0x1
193 0x1800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500194
195 /* IDSEL 0x04 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500196 0x2000 0x0 0x0 0x1 &mpic 0x3 0x1
197 0x2000 0x0 0x0 0x2 &mpic 0x4 0x1
198 0x2000 0x0 0x0 0x3 &mpic 0x1 0x1
199 0x2000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500200
201 /* IDSEL 0x05 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500202 0x2800 0x0 0x0 0x1 &mpic 0x2 0x1
203 0x2800 0x0 0x0 0x2 &mpic 0x3 0x1
204 0x2800 0x0 0x0 0x3 &mpic 0x4 0x1
205 0x2800 0x0 0x0 0x4 &mpic 0x1 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500206
207 /* IDSEL 0x0c */
Kumar Gala32f960e2008-04-17 01:28:15 -0500208 0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
209 0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
210 0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
211 0x6000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500212
213 /* IDSEL 0x0d */
Kumar Gala32f960e2008-04-17 01:28:15 -0500214 0x6800 0x0 0x0 0x1 &mpic 0x4 0x1
215 0x6800 0x0 0x0 0x2 &mpic 0x1 0x1
216 0x6800 0x0 0x0 0x3 &mpic 0x2 0x1
217 0x6800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500218
219 /* IDSEL 0x0e */
Kumar Gala32f960e2008-04-17 01:28:15 -0500220 0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
221 0x7000 0x0 0x0 0x2 &mpic 0x4 0x1
222 0x7000 0x0 0x0 0x3 &mpic 0x1 0x1
223 0x7000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500224
225 /* IDSEL 0x0f */
Kumar Gala32f960e2008-04-17 01:28:15 -0500226 0x7800 0x0 0x0 0x1 &mpic 0x2 0x1
227 0x7800 0x0 0x0 0x2 &mpic 0x3 0x1
228 0x7800 0x0 0x0 0x3 &mpic 0x4 0x1
229 0x7800 0x0 0x0 0x4 &mpic 0x1 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500230
231 /* IDSEL 0x12 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500232 0x9000 0x0 0x0 0x1 &mpic 0x1 0x1
233 0x9000 0x0 0x0 0x2 &mpic 0x2 0x1
234 0x9000 0x0 0x0 0x3 &mpic 0x3 0x1
235 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500236
237 /* IDSEL 0x13 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500238 0x9800 0x0 0x0 0x1 &mpic 0x4 0x1
239 0x9800 0x0 0x0 0x2 &mpic 0x1 0x1
240 0x9800 0x0 0x0 0x3 &mpic 0x2 0x1
241 0x9800 0x0 0x0 0x4 &mpic 0x3 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500242
243 /* IDSEL 0x14 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500244 0xa000 0x0 0x0 0x1 &mpic 0x3 0x1
245 0xa000 0x0 0x0 0x2 &mpic 0x4 0x1
246 0xa000 0x0 0x0 0x3 &mpic 0x1 0x1
247 0xa000 0x0 0x0 0x4 &mpic 0x2 0x1
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500248
249 /* IDSEL 0x15 */
Kumar Gala32f960e2008-04-17 01:28:15 -0500250 0xa800 0x0 0x0 0x1 &mpic 0x2 0x1
251 0xa800 0x0 0x0 0x2 &mpic 0x3 0x1
252 0xa800 0x0 0x0 0x3 &mpic 0x4 0x1
253 0xa800 0x0 0x0 0x4 &mpic 0x1 0x1>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500254 interrupt-parent = <&mpic>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500255 interrupts = <24 2>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500256 bus-range = <0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500257 ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
258 0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
259 clock-frequency = <66666666>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500260 #interrupt-cells = <1>;
261 #size-cells = <2>;
262 #address-cells = <3>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500263 reg = <0xe0008000 0x1000>;
Kumar Gala1b3c5cd2007-09-12 18:23:46 -0500264 compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
265 device_type = "pci";
266 };
Andy Fleming2654d632006-08-18 18:04:34 -0500267};