Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec...
[pandora-kernel.git] / arch / powerpc / boot / dts / gef_sbc610.dts
1 /*
2  * GE Fanuc SBC610 Device Tree Source
3  *
4  * Copyright 2008 GE Fanuc Intelligent Platforms Embedded Systems, 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  * Based on: SBS CM6 Device Tree Source
12  * Copyright 2007 SBS Technologies GmbH & Co. KG
13  * And: mpc8641_hpcn.dts (MPC8641 HPCN Device Tree Source)
14  * Copyright 2006 Freescale Semiconductor Inc.
15  */
16
17 /*
18  * Compiled with dtc -I dts -O dtb -o gef_sbc610.dtb gef_sbc610.dts
19  */
20
21 /dts-v1/;
22
23 / {
24         model = "GEF_SBC610";
25         compatible = "gef,sbc610";
26         #address-cells = <1>;
27         #size-cells = <1>;
28
29         aliases {
30                 ethernet0 = &enet0;
31                 ethernet1 = &enet1;
32                 serial0 = &serial0;
33                 serial1 = &serial1;
34                 pci0 = &pci0;
35         };
36
37         cpus {
38                 #address-cells = <1>;
39                 #size-cells = <0>;
40
41                 PowerPC,8641@0 {
42                         device_type = "cpu";
43                         reg = <0>;
44                         d-cache-line-size = <32>;       // 32 bytes
45                         i-cache-line-size = <32>;       // 32 bytes
46                         d-cache-size = <32768>;         // L1, 32K
47                         i-cache-size = <32768>;         // L1, 32K
48                         timebase-frequency = <0>;       // From uboot
49                         bus-frequency = <0>;            // From uboot
50                         clock-frequency = <0>;          // From uboot
51                 };
52                 PowerPC,8641@1 {
53                         device_type = "cpu";
54                         reg = <1>;
55                         d-cache-line-size = <32>;       // 32 bytes
56                         i-cache-line-size = <32>;       // 32 bytes
57                         d-cache-size = <32768>;         // L1, 32K
58                         i-cache-size = <32768>;         // L1, 32K
59                         timebase-frequency = <0>;       // From uboot
60                         bus-frequency = <0>;            // From uboot
61                         clock-frequency = <0>;          // From uboot
62                 };
63         };
64
65         memory {
66                 device_type = "memory";
67                 reg = <0x0 0x40000000>; // set by uboot
68         };
69
70         localbus@fef05000 {
71                 #address-cells = <2>;
72                 #size-cells = <1>;
73                 compatible = "fsl,mpc8641-localbus", "simple-bus";
74                 reg = <0xfef05000 0x1000>;
75                 interrupts = <19 2>;
76                 interrupt-parent = <&mpic>;
77
78                 ranges = <0 0 0xff000000 0x01000000     // 16MB Boot flash
79                           1 0 0xe8000000 0x08000000     // Paged Flash 0
80                           2 0 0xe0000000 0x08000000     // Paged Flash 1
81                           3 0 0xfc100000 0x00020000     // NVRAM
82                           4 0 0xfc000000 0x00008000     // FPGA
83                           5 0 0xfc008000 0x00008000     // AFIX FPGA
84                           6 0 0xfd000000 0x00800000     // IO FPGA (8-bit)
85                           7 0 0xfd800000 0x00800000>;   // IO FPGA (32-bit)
86
87                 fpga@4,0 {
88                         compatible = "gef,fpga-regs";
89                         reg = <0x4 0x0 0x40>;
90                 };
91
92                 wdt@4,2000 {
93                         compatible = "gef,fpga-wdt";
94                         reg = <0x4 0x2000 0x8>;
95                         interrupts = <0x1a 0x4>;
96                         interrupt-parent = <&gef_pic>;
97                 };
98                 /* Second watchdog available, driver currently supports one.
99                 wdt@4,2010 {
100                         compatible = "gef,fpga-wdt";
101                         reg = <0x4 0x2010 0x8>;
102                         interrupts = <0x1b 0x4>;
103                         interrupt-parent = <&gef_pic>;
104                 };
105                 */
106                 gef_pic: pic@4,4000 {
107                         #interrupt-cells = <1>;
108                         interrupt-controller;
109                         compatible = "gef,fpga-pic";
110                         reg = <0x4 0x4000 0x20>;
111                         interrupts = <0x8
112                                       0x9>;
113                         interrupt-parent = <&mpic>;
114
115                 };
116                 gef_gpio: gpio@7,14000 {
117                         #gpio-cells = <2>;
118                         compatible = "gef,sbc610-gpio";
119                         reg = <0x7 0x14000 0x24>;
120                         gpio-controller;
121                 };
122         };
123
124         soc@fef00000 {
125                 #address-cells = <1>;
126                 #size-cells = <1>;
127                 #interrupt-cells = <2>;
128                 device_type = "soc";
129                 compatible = "simple-bus";
130                 ranges = <0x0 0xfef00000 0x00100000>;
131                 bus-frequency = <33333333>;
132
133                 mcm-law@0 {
134                         compatible = "fsl,mcm-law";
135                         reg = <0x0 0x1000>;
136                         fsl,num-laws = <10>;
137                 };
138
139                 mcm@1000 {
140                         compatible = "fsl,mpc8641-mcm", "fsl,mcm";
141                         reg = <0x1000 0x1000>;
142                         interrupts = <17 2>;
143                         interrupt-parent = <&mpic>;
144                 };
145
146                 i2c1: i2c@3000 {
147                         #address-cells = <1>;
148                         #size-cells = <0>;
149                         compatible = "fsl-i2c";
150                         reg = <0x3000 0x100>;
151                         interrupts = <0x2b 0x2>;
152                         interrupt-parent = <&mpic>;
153                         dfsrr;
154
155                         rtc@51 {
156                                 compatible = "epson,rx8581";
157                                 reg = <0x00000051>;
158                         };
159
160                         eti@6b {
161                                 compatible = "dallas,ds1682";
162                                 reg = <0x6b>;
163                         };
164                 };
165
166                 i2c2: i2c@3100 {
167                         #address-cells = <1>;
168                         #size-cells = <0>;
169                         compatible = "fsl-i2c";
170                         reg = <0x3100 0x100>;
171                         interrupts = <0x2b 0x2>;
172                         interrupt-parent = <&mpic>;
173                         dfsrr;
174                 };
175
176                 dma@21300 {
177                         #address-cells = <1>;
178                         #size-cells = <1>;
179                         compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma";
180                         reg = <0x21300 0x4>;
181                         ranges = <0x0 0x21100 0x200>;
182                         cell-index = <0>;
183                         dma-channel@0 {
184                                 compatible = "fsl,mpc8641-dma-channel",
185                                            "fsl,eloplus-dma-channel";
186                                 reg = <0x0 0x80>;
187                                 cell-index = <0>;
188                                 interrupt-parent = <&mpic>;
189                                 interrupts = <20 2>;
190                         };
191                         dma-channel@80 {
192                                 compatible = "fsl,mpc8641-dma-channel",
193                                            "fsl,eloplus-dma-channel";
194                                 reg = <0x80 0x80>;
195                                 cell-index = <1>;
196                                 interrupt-parent = <&mpic>;
197                                 interrupts = <21 2>;
198                         };
199                         dma-channel@100 {
200                                 compatible = "fsl,mpc8641-dma-channel",
201                                            "fsl,eloplus-dma-channel";
202                                 reg = <0x100 0x80>;
203                                 cell-index = <2>;
204                                 interrupt-parent = <&mpic>;
205                                 interrupts = <22 2>;
206                         };
207                         dma-channel@180 {
208                                 compatible = "fsl,mpc8641-dma-channel",
209                                            "fsl,eloplus-dma-channel";
210                                 reg = <0x180 0x80>;
211                                 cell-index = <3>;
212                                 interrupt-parent = <&mpic>;
213                                 interrupts = <23 2>;
214                         };
215                 };
216
217                 enet0: ethernet@24000 {
218                         #address-cells = <1>;
219                         #size-cells = <1>;
220                         device_type = "network";
221                         model = "eTSEC";
222                         compatible = "gianfar";
223                         reg = <0x24000 0x1000>;
224                         ranges = <0x0 0x24000 0x1000>;
225                         local-mac-address = [ 00 00 00 00 00 00 ];
226                         interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>;
227                         interrupt-parent = <&mpic>;
228                         phy-handle = <&phy0>;
229                         phy-connection-type = "gmii";
230
231                         mdio@520 {
232                                 #address-cells = <1>;
233                                 #size-cells = <0>;
234                                 compatible = "fsl,gianfar-mdio";
235                                 reg = <0x520 0x20>;
236
237                                 phy0: ethernet-phy@0 {
238                                         interrupt-parent = <&gef_pic>;
239                                         interrupts = <0x9 0x4>;
240                                         reg = <1>;
241                                 };
242                                 phy2: ethernet-phy@2 {
243                                         interrupt-parent = <&gef_pic>;
244                                         interrupts = <0x8 0x4>;
245                                         reg = <3>;
246                                 };
247                         };
248                 };
249
250                 enet1: ethernet@26000 {
251                         device_type = "network";
252                         model = "eTSEC";
253                         compatible = "gianfar";
254                         reg = <0x26000 0x1000>;
255                         local-mac-address = [ 00 00 00 00 00 00 ];
256                         interrupts = <0x1f 0x2 0x20 0x2 0x21 0x2>;
257                         interrupt-parent = <&mpic>;
258                         phy-handle = <&phy2>;
259                         phy-connection-type = "gmii";
260                 };
261
262                 serial0: serial@4500 {
263                         cell-index = <0>;
264                         device_type = "serial";
265                         compatible = "ns16550";
266                         reg = <0x4500 0x100>;
267                         clock-frequency = <0>;
268                         interrupts = <0x2a 0x2>;
269                         interrupt-parent = <&mpic>;
270                 };
271
272                 serial1: serial@4600 {
273                         cell-index = <1>;
274                         device_type = "serial";
275                         compatible = "ns16550";
276                         reg = <0x4600 0x100>;
277                         clock-frequency = <0>;
278                         interrupts = <0x1c 0x2>;
279                         interrupt-parent = <&mpic>;
280                 };
281
282                 mpic: pic@40000 {
283                         clock-frequency = <0>;
284                         interrupt-controller;
285                         #address-cells = <0>;
286                         #interrupt-cells = <2>;
287                         reg = <0x40000 0x40000>;
288                         compatible = "chrp,open-pic";
289                         device_type = "open-pic";
290                 };
291
292                 global-utilities@e0000 {
293                         compatible = "fsl,mpc8641-guts";
294                         reg = <0xe0000 0x1000>;
295                         fsl,has-rstcr;
296                 };
297         };
298
299         pci0: pcie@fef08000 {
300                 compatible = "fsl,mpc8641-pcie";
301                 device_type = "pci";
302                 #interrupt-cells = <1>;
303                 #size-cells = <2>;
304                 #address-cells = <3>;
305                 reg = <0xfef08000 0x1000>;
306                 bus-range = <0x0 0xff>;
307                 ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x40000000
308                           0x01000000 0x0 0x00000000 0xfe000000 0x0 0x00400000>;
309                 clock-frequency = <33333333>;
310                 interrupt-parent = <&mpic>;
311                 interrupts = <0x18 0x2>;
312                 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
313                 interrupt-map = <
314                         0x0000 0x0 0x0 0x1 &mpic 0x0 0x1
315                         0x0000 0x0 0x0 0x2 &mpic 0x1 0x1
316                         0x0000 0x0 0x0 0x3 &mpic 0x2 0x1
317                         0x0000 0x0 0x0 0x4 &mpic 0x3 0x1
318                 >;
319
320                 pcie@0 {
321                         reg = <0 0 0 0 0>;
322                         #size-cells = <2>;
323                         #address-cells = <3>;
324                         device_type = "pci";
325                         ranges = <0x02000000 0x0 0x80000000
326                                   0x02000000 0x0 0x80000000
327                                   0x0 0x40000000
328
329                                   0x01000000 0x0 0x00000000
330                                   0x01000000 0x0 0x00000000
331                                   0x0 0x00400000>;
332                 };
333         };
334 };