Merge branches 'release', 'asus', 'sony-laptop' and 'thinkpad' into release
[pandora-kernel.git] / arch / powerpc / boot / dts / makalu.dts
1 /*
2  * Device Tree Source for AMCC Makalu (405EX)
3  *
4  * Copyright 2007 DENX Software Engineering, Stefan Roese <sr@denx.de>
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without
8  * any warranty of any kind, whether express or implied.
9  */
10
11 / {
12         #address-cells = <1>;
13         #size-cells = <1>;
14         model = "amcc,makalu";
15         compatible = "amcc,makalu";
16         dcr-parent = <&/cpus/cpu@0>;
17
18         aliases {
19                 ethernet0 = &EMAC0;
20                 ethernet1 = &EMAC1;
21                 serial0 = &UART0;
22                 serial1 = &UART1;
23         };
24
25         cpus {
26                 #address-cells = <1>;
27                 #size-cells = <0>;
28
29                 cpu@0 {
30                         device_type = "cpu";
31                         model = "PowerPC,405EX";
32                         reg = <0>;
33                         clock-frequency = <0>; /* Filled in by U-Boot */
34                         timebase-frequency = <0>; /* Filled in by U-Boot */
35                         i-cache-line-size = <20>;
36                         d-cache-line-size = <20>;
37                         i-cache-size = <4000>; /* 16 kB */
38                         d-cache-size = <4000>; /* 16 kB */
39                         dcr-controller;
40                         dcr-access-method = "native";
41                 };
42         };
43
44         memory {
45                 device_type = "memory";
46                 reg = <0 0>; /* Filled in by U-Boot */
47         };
48
49         UIC0: interrupt-controller {
50                 compatible = "ibm,uic-405ex", "ibm,uic";
51                 interrupt-controller;
52                 cell-index = <0>;
53                 dcr-reg = <0c0 009>;
54                 #address-cells = <0>;
55                 #size-cells = <0>;
56                 #interrupt-cells = <2>;
57         };
58
59         UIC1: interrupt-controller1 {
60                 compatible = "ibm,uic-405ex","ibm,uic";
61                 interrupt-controller;
62                 cell-index = <1>;
63                 dcr-reg = <0d0 009>;
64                 #address-cells = <0>;
65                 #size-cells = <0>;
66                 #interrupt-cells = <2>;
67                 interrupts = <1e 4 1f 4>; /* cascade */
68                 interrupt-parent = <&UIC0>;
69         };
70
71         UIC2: interrupt-controller2 {
72                 compatible = "ibm,uic-405ex","ibm,uic";
73                 interrupt-controller;
74                 cell-index = <2>;
75                 dcr-reg = <0e0 009>;
76                 #address-cells = <0>;
77                 #size-cells = <0>;
78                 #interrupt-cells = <2>;
79                 interrupts = <1c 4 1d 4>; /* cascade */
80                 interrupt-parent = <&UIC0>;
81         };
82
83         plb {
84                 compatible = "ibm,plb-405ex", "ibm,plb4";
85                 #address-cells = <1>;
86                 #size-cells = <1>;
87                 ranges;
88                 clock-frequency = <0>; /* Filled in by U-Boot */
89
90                 SDRAM0: memory-controller {
91                         compatible = "ibm,sdram-405ex";
92                         dcr-reg = <010 2>;
93                 };
94
95                 MAL0: mcmal {
96                         compatible = "ibm,mcmal-405ex", "ibm,mcmal2";
97                         dcr-reg = <180 62>;
98                         num-tx-chans = <2>;
99                         num-rx-chans = <2>;
100                         interrupt-parent = <&MAL0>;
101                         interrupts = <0 1 2 3 4>;
102                         #interrupt-cells = <1>;
103                         #address-cells = <0>;
104                         #size-cells = <0>;
105                         interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
106                                         /*RXEOB*/ 1 &UIC0 b 4
107                                         /*SERR*/  2 &UIC1 0 4
108                                         /*TXDE*/  3 &UIC1 1 4
109                                         /*RXDE*/  4 &UIC1 2 4>;
110                         interrupt-map-mask = <ffffffff>;
111                 };
112
113                 POB0: opb {
114                         compatible = "ibm,opb-405ex", "ibm,opb";
115                         #address-cells = <1>;
116                         #size-cells = <1>;
117                         ranges = <80000000 80000000 10000000
118                                   ef600000 ef600000 a00000
119                                   f0000000 f0000000 10000000>;
120                         dcr-reg = <0a0 5>;
121                         clock-frequency = <0>; /* Filled in by U-Boot */
122
123                         EBC0: ebc {
124                                 compatible = "ibm,ebc-405ex", "ibm,ebc";
125                                 dcr-reg = <012 2>;
126                                 #address-cells = <2>;
127                                 #size-cells = <1>;
128                                 clock-frequency = <0>; /* Filled in by U-Boot */
129                                 /* ranges property is supplied by U-Boot */
130                                 interrupts = <5 1>;
131                                 interrupt-parent = <&UIC1>;
132
133                                 nor_flash@0,0 {
134                                         compatible = "amd,s29gl512n", "cfi-flash";
135                                         bank-width = <2>;
136                                         reg = <0 000000 4000000>;
137                                         #address-cells = <1>;
138                                         #size-cells = <1>;
139                                         partition@0 {
140                                                 label = "kernel";
141                                                 reg = <0 200000>;
142                                         };
143                                         partition@200000 {
144                                                 label = "root";
145                                                 reg = <200000 200000>;
146                                         };
147                                         partition@400000 {
148                                                 label = "user";
149                                                 reg = <400000 3b60000>;
150                                         };
151                                         partition@3f60000 {
152                                                 label = "env";
153                                                 reg = <3f60000 40000>;
154                                         };
155                                         partition@3fa0000 {
156                                                 label = "u-boot";
157                                                 reg = <3fa0000 60000>;
158                                         };
159                                 };
160                         };
161
162                         UART0: serial@ef600200 {
163                                 device_type = "serial";
164                                 compatible = "ns16550";
165                                 reg = <ef600200 8>;
166                                 virtual-reg = <ef600200>;
167                                 clock-frequency = <0>; /* Filled in by U-Boot */
168                                 current-speed = <0>;
169                                 interrupt-parent = <&UIC0>;
170                                 interrupts = <1a 4>;
171                         };
172
173                         UART1: serial@ef600300 {
174                                 device_type = "serial";
175                                 compatible = "ns16550";
176                                 reg = <ef600300 8>;
177                                 virtual-reg = <ef600300>;
178                                 clock-frequency = <0>; /* Filled in by U-Boot */
179                                 current-speed = <0>;
180                                 interrupt-parent = <&UIC0>;
181                                 interrupts = <1 4>;
182                         };
183
184                         IIC0: i2c@ef600400 {
185                                 device_type = "i2c";
186                                 compatible = "ibm,iic-405ex", "ibm,iic";
187                                 reg = <ef600400 14>;
188                                 interrupt-parent = <&UIC0>;
189                                 interrupts = <2 4>;
190                         };
191
192                         IIC1: i2c@ef600500 {
193                                 device_type = "i2c";
194                                 compatible = "ibm,iic-405ex", "ibm,iic";
195                                 reg = <ef600500 14>;
196                                 interrupt-parent = <&UIC0>;
197                                 interrupts = <7 4>;
198                         };
199
200
201                         RGMII0: emac-rgmii@ef600b00 {
202                                 device_type = "rgmii-interface";
203                                 compatible = "ibm,rgmii-405ex", "ibm,rgmii";
204                                 reg = <ef600b00 104>;
205                                 has-mdio;
206                         };
207
208                         EMAC0: ethernet@ef600900 {
209                                 linux,network-index = <0>;
210                                 device_type = "network";
211                                 compatible = "ibm,emac-405ex", "ibm,emac4";
212                                 interrupt-parent = <&EMAC0>;
213                                 interrupts = <0 1>;
214                                 #interrupt-cells = <1>;
215                                 #address-cells = <0>;
216                                 #size-cells = <0>;
217                                 interrupt-map = </*Status*/ 0 &UIC0 18 4
218                                                 /*Wake*/  1 &UIC1 1d 4>;
219                                 reg = <ef600900 70>;
220                                 local-mac-address = [000000000000]; /* Filled in by U-Boot */
221                                 mal-device = <&MAL0>;
222                                 mal-tx-channel = <0>;
223                                 mal-rx-channel = <0>;
224                                 cell-index = <0>;
225                                 max-frame-size = <5dc>;
226                                 rx-fifo-size = <1000>;
227                                 tx-fifo-size = <800>;
228                                 phy-mode = "rgmii";
229                                 phy-map = <0000003f>;   /* Start at 6 */
230                                 rgmii-device = <&RGMII0>;
231                                 rgmii-channel = <0>;
232                                 has-inverted-stacr-oc;
233                                 has-new-stacr-staopc;
234                         };
235
236                         EMAC1: ethernet@ef600a00 {
237                                 linux,network-index = <1>;
238                                 device_type = "network";
239                                 compatible = "ibm,emac-405ex", "ibm,emac4";
240                                 interrupt-parent = <&EMAC1>;
241                                 interrupts = <0 1>;
242                                 #interrupt-cells = <1>;
243                                 #address-cells = <0>;
244                                 #size-cells = <0>;
245                                 interrupt-map = </*Status*/ 0 &UIC0 19 4
246                                                 /*Wake*/  1 &UIC1 1f 4>;
247                                 reg = <ef600a00 70>;
248                                 local-mac-address = [000000000000]; /* Filled in by U-Boot */
249                                 mal-device = <&MAL0>;
250                                 mal-tx-channel = <1>;
251                                 mal-rx-channel = <1>;
252                                 cell-index = <1>;
253                                 max-frame-size = <5dc>;
254                                 rx-fifo-size = <1000>;
255                                 tx-fifo-size = <800>;
256                                 phy-mode = "rgmii";
257                                 phy-map = <00000000>;
258                                 rgmii-device = <&RGMII0>;
259                                 rgmii-channel = <1>;
260                                 has-inverted-stacr-oc;
261                                 has-new-stacr-staopc;
262                         };
263                 };
264
265                 PCIE0: pciex@0a0000000 {
266                         device_type = "pci";
267                         #interrupt-cells = <1>;
268                         #size-cells = <2>;
269                         #address-cells = <3>;
270                         compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
271                         primary;
272                         port = <0>; /* port number */
273                         reg = <a0000000 20000000        /* Config space access */
274                                ef000000 00001000>;      /* Registers */
275                         dcr-reg = <040 020>;
276                         sdr-base = <400>;
277
278                         /* Outbound ranges, one memory and one IO,
279                          * later cannot be changed
280                          */
281                         ranges = <02000000 0 80000000 90000000 0 08000000
282                                   01000000 0 00000000 e0000000 0 00010000>;
283
284                         /* Inbound 2GB range starting at 0 */
285                         dma-ranges = <42000000 0 0 0 0 80000000>;
286
287                         /* This drives busses 0x00 to 0x3f */
288                         bus-range = <00 3f>;
289
290                         /* Legacy interrupts (note the weird polarity, the bridge seems
291                          * to invert PCIe legacy interrupts).
292                          * We are de-swizzling here because the numbers are actually for
293                          * port of the root complex virtual P2P bridge. But I want
294                          * to avoid putting a node for it in the tree, so the numbers
295                          * below are basically de-swizzled numbers.
296                          * The real slot is on idsel 0, so the swizzling is 1:1
297                          */
298                         interrupt-map-mask = <0000 0 0 7>;
299                         interrupt-map = <
300                                 0000 0 0 1 &UIC2 0 4 /* swizzled int A */
301                                 0000 0 0 2 &UIC2 1 4 /* swizzled int B */
302                                 0000 0 0 3 &UIC2 2 4 /* swizzled int C */
303                                 0000 0 0 4 &UIC2 3 4 /* swizzled int D */>;
304                 };
305
306                 PCIE1: pciex@0c0000000 {
307                         device_type = "pci";
308                         #interrupt-cells = <1>;
309                         #size-cells = <2>;
310                         #address-cells = <3>;
311                         compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
312                         primary;
313                         port = <1>; /* port number */
314                         reg = <c0000000 20000000        /* Config space access */
315                                ef001000 00001000>;      /* Registers */
316                         dcr-reg = <060 020>;
317                         sdr-base = <440>;
318
319                         /* Outbound ranges, one memory and one IO,
320                          * later cannot be changed
321                          */
322                         ranges = <02000000 0 80000000 98000000 0 08000000
323                                   01000000 0 00000000 e0010000 0 00010000>;
324
325                         /* Inbound 2GB range starting at 0 */
326                         dma-ranges = <42000000 0 0 0 0 80000000>;
327
328                         /* This drives busses 0x40 to 0x7f */
329                         bus-range = <40 7f>;
330
331                         /* Legacy interrupts (note the weird polarity, the bridge seems
332                          * to invert PCIe legacy interrupts).
333                          * We are de-swizzling here because the numbers are actually for
334                          * port of the root complex virtual P2P bridge. But I want
335                          * to avoid putting a node for it in the tree, so the numbers
336                          * below are basically de-swizzled numbers.
337                          * The real slot is on idsel 0, so the swizzling is 1:1
338                          */
339                         interrupt-map-mask = <0000 0 0 7>;
340                         interrupt-map = <
341                                 0000 0 0 1 &UIC2 b 4 /* swizzled int A */
342                                 0000 0 0 2 &UIC2 c 4 /* swizzled int B */
343                                 0000 0 0 3 &UIC2 d 4 /* swizzled int C */
344                                 0000 0 0 4 &UIC2 e 4 /* swizzled int D */>;
345                 };
346         };
347 };