]>
Commit | Line | Data |
---|---|---|
740d36ae MW |
1 | /* |
2 | * GE Fanuc PPC9A 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_ppc9a.dtb gef_ppc9a.dts | |
19 | */ | |
20 | ||
21 | /dts-v1/; | |
22 | ||
23 | / { | |
24 | model = "GEF_PPC9A"; | |
25 | compatible = "gef,ppc9a"; | |
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 | /* flash@0,0 is a mirror of part of the memory in flash@1,0 | |
88 | flash@0,0 { | |
89 | compatible = "gef,ppc9a-firmware-mirror", "cfi-flash"; | |
90 | reg = <0x0 0x0 0x1000000>; | |
91 | bank-width = <4>; | |
92 | device-width = <2>; | |
93 | #address-cells = <1>; | |
94 | #size-cells = <1>; | |
95 | partition@0 { | |
96 | label = "firmware"; | |
97 | reg = <0x0 0x1000000>; | |
98 | read-only; | |
99 | }; | |
100 | }; | |
101 | */ | |
102 | ||
103 | flash@1,0 { | |
104 | compatible = "gef,ppc9a-paged-flash", "cfi-flash"; | |
105 | reg = <0x1 0x0 0x8000000>; | |
106 | bank-width = <4>; | |
107 | device-width = <2>; | |
108 | #address-cells = <1>; | |
109 | #size-cells = <1>; | |
110 | partition@0 { | |
111 | label = "user"; | |
112 | reg = <0x0 0x7800000>; | |
113 | }; | |
114 | partition@7800000 { | |
115 | label = "firmware"; | |
116 | reg = <0x7800000 0x800000>; | |
117 | read-only; | |
118 | }; | |
119 | }; | |
120 | ||
121 | fpga@4,0 { | |
122 | compatible = "gef,ppc9a-fpga-regs"; | |
123 | reg = <0x4 0x0 0x40>; | |
124 | }; | |
125 | ||
126 | wdt@4,2000 { | |
127 | compatible = "gef,ppc9a-fpga-wdt", "gef,fpga-wdt-1.00", | |
128 | "gef,fpga-wdt"; | |
129 | reg = <0x4 0x2000 0x8>; | |
130 | interrupts = <0x1a 0x4>; | |
131 | interrupt-parent = <&gef_pic>; | |
132 | }; | |
133 | /* Second watchdog available, driver currently supports one. | |
134 | wdt@4,2010 { | |
135 | compatible = "gef,ppc9a-fpga-wdt", "gef,fpga-wdt-1.00", | |
136 | "gef,fpga-wdt"; | |
137 | reg = <0x4 0x2010 0x8>; | |
138 | interrupts = <0x1b 0x4>; | |
139 | interrupt-parent = <&gef_pic>; | |
140 | }; | |
141 | */ | |
142 | gef_pic: pic@4,4000 { | |
143 | #interrupt-cells = <1>; | |
144 | interrupt-controller; | |
145 | compatible = "gef,ppc9a-fpga-pic", "gef,fpga-pic-1.00"; | |
146 | reg = <0x4 0x4000 0x20>; | |
147 | interrupts = <0x8 | |
148 | 0x9>; | |
149 | interrupt-parent = <&mpic>; | |
150 | ||
151 | }; | |
152 | gef_gpio: gpio@7,14000 { | |
153 | #gpio-cells = <2>; | |
154 | compatible = "gef,ppc9a-gpio", "gef,sbc610-gpio"; | |
155 | reg = <0x7 0x14000 0x24>; | |
156 | gpio-controller; | |
157 | }; | |
158 | }; | |
159 | ||
160 | soc@fef00000 { | |
161 | #address-cells = <1>; | |
162 | #size-cells = <1>; | |
163 | #interrupt-cells = <2>; | |
28853da2 | 164 | device_type = "soc"; |
740d36ae MW |
165 | compatible = "fsl,mpc8641-soc", "simple-bus"; |
166 | ranges = <0x0 0xfef00000 0x00100000>; | |
167 | reg = <0xfef00000 0x100000>; // CCSRBAR 1M | |
168 | bus-frequency = <33333333>; | |
169 | ||
170 | i2c1: i2c@3000 { | |
171 | #address-cells = <1>; | |
172 | #size-cells = <0>; | |
173 | compatible = "fsl-i2c"; | |
174 | reg = <0x3000 0x100>; | |
175 | interrupts = <0x2b 0x2>; | |
176 | interrupt-parent = <&mpic>; | |
177 | dfsrr; | |
178 | ||
179 | hwmon@48 { | |
180 | compatible = "national,lm92"; | |
181 | reg = <0x48>; | |
182 | }; | |
183 | ||
184 | hwmon@4c { | |
185 | compatible = "adi,adt7461"; | |
186 | reg = <0x4c>; | |
187 | }; | |
188 | ||
189 | rtc@51 { | |
190 | compatible = "epson,rx8581"; | |
191 | reg = <0x00000051>; | |
192 | }; | |
193 | ||
194 | eti@6b { | |
195 | compatible = "dallas,ds1682"; | |
196 | reg = <0x6b>; | |
197 | }; | |
198 | }; | |
199 | ||
200 | i2c2: i2c@3100 { | |
201 | #address-cells = <1>; | |
202 | #size-cells = <0>; | |
203 | compatible = "fsl-i2c"; | |
204 | reg = <0x3100 0x100>; | |
205 | interrupts = <0x2b 0x2>; | |
206 | interrupt-parent = <&mpic>; | |
207 | dfsrr; | |
208 | }; | |
209 | ||
210 | dma@21300 { | |
211 | #address-cells = <1>; | |
212 | #size-cells = <1>; | |
213 | compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma"; | |
214 | reg = <0x21300 0x4>; | |
215 | ranges = <0x0 0x21100 0x200>; | |
216 | cell-index = <0>; | |
217 | dma-channel@0 { | |
218 | compatible = "fsl,mpc8641-dma-channel", | |
219 | "fsl,eloplus-dma-channel"; | |
220 | reg = <0x0 0x80>; | |
221 | cell-index = <0>; | |
222 | interrupt-parent = <&mpic>; | |
223 | interrupts = <20 2>; | |
224 | }; | |
225 | dma-channel@80 { | |
226 | compatible = "fsl,mpc8641-dma-channel", | |
227 | "fsl,eloplus-dma-channel"; | |
228 | reg = <0x80 0x80>; | |
229 | cell-index = <1>; | |
230 | interrupt-parent = <&mpic>; | |
231 | interrupts = <21 2>; | |
232 | }; | |
233 | dma-channel@100 { | |
234 | compatible = "fsl,mpc8641-dma-channel", | |
235 | "fsl,eloplus-dma-channel"; | |
236 | reg = <0x100 0x80>; | |
237 | cell-index = <2>; | |
238 | interrupt-parent = <&mpic>; | |
239 | interrupts = <22 2>; | |
240 | }; | |
241 | dma-channel@180 { | |
242 | compatible = "fsl,mpc8641-dma-channel", | |
243 | "fsl,eloplus-dma-channel"; | |
244 | reg = <0x180 0x80>; | |
245 | cell-index = <3>; | |
246 | interrupt-parent = <&mpic>; | |
247 | interrupts = <23 2>; | |
248 | }; | |
249 | }; | |
250 | ||
740d36ae | 251 | enet0: ethernet@24000 { |
d8bc55fb AV |
252 | #address-cells = <1>; |
253 | #size-cells = <1>; | |
740d36ae MW |
254 | device_type = "network"; |
255 | model = "eTSEC"; | |
256 | compatible = "gianfar"; | |
257 | reg = <0x24000 0x1000>; | |
d8bc55fb | 258 | ranges = <0x0 0x24000 0x1000>; |
740d36ae MW |
259 | local-mac-address = [ 00 00 00 00 00 00 ]; |
260 | interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; | |
261 | interrupt-parent = <&mpic>; | |
262 | phy-handle = <&phy0>; | |
263 | phy-connection-type = "gmii"; | |
d8bc55fb AV |
264 | |
265 | mdio@520 { | |
266 | #address-cells = <1>; | |
267 | #size-cells = <0>; | |
268 | compatible = "fsl,gianfar-mdio"; | |
269 | reg = <0x520 0x20>; | |
270 | ||
271 | phy0: ethernet-phy@0 { | |
272 | interrupt-parent = <&gef_pic>; | |
273 | interrupts = <0x9 0x4>; | |
274 | reg = <1>; | |
275 | }; | |
276 | phy2: ethernet-phy@2 { | |
277 | interrupt-parent = <&gef_pic>; | |
278 | interrupts = <0x8 0x4>; | |
279 | reg = <3>; | |
280 | }; | |
281 | }; | |
740d36ae MW |
282 | }; |
283 | ||
284 | enet1: ethernet@26000 { | |
285 | device_type = "network"; | |
286 | model = "eTSEC"; | |
287 | compatible = "gianfar"; | |
288 | reg = <0x26000 0x1000>; | |
289 | local-mac-address = [ 00 00 00 00 00 00 ]; | |
290 | interrupts = <0x1f 0x2 0x20 0x2 0x21 0x2>; | |
291 | interrupt-parent = <&mpic>; | |
292 | phy-handle = <&phy2>; | |
293 | phy-connection-type = "gmii"; | |
294 | }; | |
295 | ||
296 | serial0: serial@4500 { | |
297 | cell-index = <0>; | |
298 | device_type = "serial"; | |
299 | compatible = "ns16550"; | |
300 | reg = <0x4500 0x100>; | |
301 | clock-frequency = <0>; | |
302 | interrupts = <0x2a 0x2>; | |
303 | interrupt-parent = <&mpic>; | |
304 | }; | |
305 | ||
306 | serial1: serial@4600 { | |
307 | cell-index = <1>; | |
308 | device_type = "serial"; | |
309 | compatible = "ns16550"; | |
310 | reg = <0x4600 0x100>; | |
311 | clock-frequency = <0>; | |
312 | interrupts = <0x1c 0x2>; | |
313 | interrupt-parent = <&mpic>; | |
314 | }; | |
315 | ||
316 | mpic: pic@40000 { | |
317 | clock-frequency = <0>; | |
318 | interrupt-controller; | |
319 | #address-cells = <0>; | |
320 | #interrupt-cells = <2>; | |
321 | reg = <0x40000 0x40000>; | |
322 | compatible = "chrp,open-pic"; | |
323 | device_type = "open-pic"; | |
324 | }; | |
325 | ||
326 | global-utilities@e0000 { | |
327 | compatible = "fsl,mpc8641-guts"; | |
328 | reg = <0xe0000 0x1000>; | |
329 | fsl,has-rstcr; | |
330 | }; | |
331 | }; | |
332 | ||
333 | pci0: pcie@fef08000 { | |
334 | compatible = "fsl,mpc8641-pcie"; | |
335 | device_type = "pci"; | |
336 | #interrupt-cells = <1>; | |
337 | #size-cells = <2>; | |
338 | #address-cells = <3>; | |
339 | reg = <0xfef08000 0x1000>; | |
340 | bus-range = <0x0 0xff>; | |
341 | ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x40000000 | |
342 | 0x01000000 0x0 0x00000000 0xfe000000 0x0 0x00400000>; | |
343 | clock-frequency = <33333333>; | |
344 | interrupt-parent = <&mpic>; | |
345 | interrupts = <0x18 0x2>; | |
346 | interrupt-map-mask = <0xf800 0x0 0x0 0x7>; | |
347 | interrupt-map = < | |
348 | 0x0000 0x0 0x0 0x1 &mpic 0x0 0x1 | |
349 | 0x0000 0x0 0x0 0x2 &mpic 0x1 0x1 | |
350 | 0x0000 0x0 0x0 0x3 &mpic 0x2 0x1 | |
351 | 0x0000 0x0 0x0 0x4 &mpic 0x3 0x1 | |
352 | >; | |
353 | ||
354 | pcie@0 { | |
355 | reg = <0 0 0 0 0>; | |
356 | #size-cells = <2>; | |
357 | #address-cells = <3>; | |
358 | device_type = "pci"; | |
359 | ranges = <0x02000000 0x0 0x80000000 | |
360 | 0x02000000 0x0 0x80000000 | |
361 | 0x0 0x40000000 | |
362 | ||
363 | 0x01000000 0x0 0x00000000 | |
364 | 0x01000000 0x0 0x00000000 | |
365 | 0x0 0x00400000>; | |
366 | }; | |
367 | }; | |
368 | }; |