2 * Device Tree Source for IBM Embedded PPC 476 Platform
4 * Copyright © 2013 Tony Breeds IBM Corporation
5 * Copyright © 2013 Alistair Popple IBM Corporation
7 * This file is licensed under the terms of the GNU General Public
8 * License version 2. This program is licensed "as is" without
9 * any warranty of any kind, whether express or implied.
14 /memreserve/ 0x01f00000 0x00100000; // spin table
19 model = "ibm,akebono";
20 compatible = "ibm,akebono", "ibm,476gtr";
21 dcr-parent = <&{/cpus/cpu@0}>;
33 model = "PowerPC,476";
35 clock-frequency = <1600000000>; // 1.6 GHz
36 timebase-frequency = <100000000>; // 100Mhz
37 i-cache-line-size = <32>;
38 d-cache-line-size = <32>;
39 i-cache-size = <32768>;
40 d-cache-size = <32768>;
42 dcr-access-method = "native";
47 model = "PowerPC,476";
49 clock-frequency = <1600000000>; // 1.6 GHz
50 timebase-frequency = <100000000>; // 100Mhz
51 i-cache-line-size = <32>;
52 d-cache-line-size = <32>;
53 i-cache-size = <32768>;
54 d-cache-size = <32768>;
56 dcr-access-method = "native";
58 enable-method = "spin-table";
59 cpu-release-addr = <0x0 0x01f00000>;
64 device_type = "memory";
65 reg = <0x0 0x0 0x0 0x0>; // filled in by zImage
68 MPIC: interrupt-controller {
69 compatible = "chrp,open-pic";
71 dcr-reg = <0xffc00000 0x00040000>;
74 #interrupt-cells = <2>;
79 compatible = "ibm,plb6";
83 clock-frequency = <200000000>; // 200Mhz
86 compatible = "ibm,mcmal-476gtr", "ibm,mcmal2";
87 dcr-reg = <0xc0000000 0x062>;
92 interrupt-parent = <&MPIC>;
93 interrupts = < /*TXEOB*/ 77 0x4
100 SATA0: sata@30000010000 {
101 compatible = "ibm,476gtr-ahci";
102 reg = <0x300 0x00010000 0x0 0x10000>;
103 interrupt-parent = <&MPIC>;
107 EHCI0: ehci@30010000000 {
108 compatible = "ibm,476gtr-ehci", "generic-ehci";
109 reg = <0x300 0x10000000 0x0 0x10000>;
110 interrupt-parent = <&MPIC>;
114 SD0: sd@30000000000 {
115 compatible = "ibm,476gtr-sdhci", "generic-sdhci";
116 reg = <0x300 0x00000000 0x0 0x10000>;
118 interrupt-parent = <&MPIC>;
121 OHCI0: ohci@30010010000 {
122 compatible = "ibm,476gtr-ohci", "generic-ohci";
123 reg = <0x300 0x10010000 0x0 0x10000>;
124 interrupt-parent = <&MPIC>;
128 OHCI1: ohci@30010020000 {
129 compatible = "ibm,476gtr-ohci", "generic-ohci";
130 reg = <0x300 0x10020000 0x0 0x10000>;
131 interrupt-parent = <&MPIC>;
136 compatible = "ibm,opb-4xx", "ibm,opb";
137 #address-cells = <1>;
139 /* Wish there was a nicer way of specifying a full
142 ranges = <0x00000000 0x0000033f 0x00000000 0x80000000
143 0x80000000 0x0000033f 0x80000000 0x80000000>;
144 clock-frequency = <100000000>;
146 RGMII0: emac-rgmii-wol@50004 {
147 compatible = "ibm,rgmii-wol-476gtr", "ibm,rgmii-wol";
148 reg = <0x50004 0x00000008>;
152 EMAC0: ethernet@30000 {
153 device_type = "network";
154 compatible = "ibm,emac-476gtr", "ibm,emac4sync";
155 interrupt-parent = <&EMAC0>;
156 interrupts = <0x0 0x1>;
157 #interrupt-cells = <1>;
158 #address-cells = <0>;
160 interrupt-map = </*Status*/ 0x0 &MPIC 81 0x4
161 /*Wake*/ 0x1 &MPIC 82 0x4>;
162 reg = <0x30000 0x78>;
164 /* local-mac-address will normally be added by
165 * the wrapper. If your device doesn't support
166 * passing data to the wrapper (in the form
167 * local-mac-addr=<hwaddr>) then you will need
168 * to set it manually here. */
169 //local-mac-address = [000000000000];
171 mal-device = <&MAL0>;
172 mal-tx-channel = <0>;
173 mal-rx-channel = <0>;
175 max-frame-size = <9000>;
176 rx-fifo-size = <4096>;
177 tx-fifo-size = <2048>;
178 rx-fifo-size-gige = <16384>;
180 phy-map = <0x00000000>;
181 rgmii-wol-device = <&RGMII0>;
182 has-inverted-stacr-oc;
183 has-new-stacr-staopc;
186 UART0: serial@10000 {
187 device_type = "serial";
188 compatible = "ns16750", "ns16550";
189 reg = <0x10000 0x00000008>;
190 virtual-reg = <0xe8010000>;
191 clock-frequency = <1851851>;
192 current-speed = <38400>;
193 interrupt-parent = <&MPIC>;
198 compatible = "ibm,iic-476gtr", "ibm,iic";
199 reg = <0x0 0x00000020>;
200 interrupt-parent = <&MPIC>;
202 #address-cells = <1>;
205 compatible = "stm,m41t80", "m41st85";
211 compatible = "ibm,iic-476gtr", "ibm,iic";
212 reg = <0x100 0x00000020>;
213 interrupt-parent = <&MPIC>;
215 #address-cells = <1>;
218 compatible = "ibm,akebono-avr";
223 FPGA0: fpga@ebc00000 {
224 compatible = "ibm,akebono-fpga";
225 reg = <0xebc00000 0x8>;
229 PCIE0: pciex@10100000000 {
231 #interrupt-cells = <1>;
233 #address-cells = <3>;
234 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
236 port = <0x0>; /* port number */
237 reg = <0x00000101 0x00000000 0x0 0x10000000 /* Config space access */
238 0x00000100 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
239 dcr-reg = <0xc0 0x20>;
241 // pci_space < pci_addr > < cpu_addr > < size >
242 ranges = <0x02000000 0x00000000 0x80000000 0x00000110 0x80000000 0x0 0x80000000
243 0x01000000 0x0 0x0 0x00000140 0x0 0x0 0x00010000>;
245 /* Inbound starting at 0 to memsize filled in by zImage */
246 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>;
248 /* This drives busses 0 to 0xf */
249 bus-range = <0x0 0xf>;
251 /* Legacy interrupts (note the weird polarity, the bridge seems
252 * to invert PCIe legacy interrupts).
253 * We are de-swizzling here because the numbers are actually for
254 * port of the root complex virtual P2P bridge. But I want
255 * to avoid putting a node for it in the tree, so the numbers
256 * below are basically de-swizzled numbers.
257 * The real slot is on idsel 0, so the swizzling is 1:1
259 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
261 0x0 0x0 0x0 0x1 &MPIC 45 0x2 /* int A */
262 0x0 0x0 0x0 0x2 &MPIC 46 0x2 /* int B */
263 0x0 0x0 0x0 0x3 &MPIC 47 0x2 /* int C */
264 0x0 0x0 0x0 0x4 &MPIC 48 0x2 /* int D */>;
267 PCIE1: pciex@20100000000 {
269 #interrupt-cells = <1>;
271 #address-cells = <3>;
272 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
274 port = <0x1>; /* port number */
275 reg = <0x00000201 0x00000000 0x0 0x10000000 /* Config space access */
276 0x00000200 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
277 dcr-reg = <0x100 0x20>;
279 // pci_space < pci_addr > < cpu_addr > < size >
280 ranges = <0x02000000 0x00000000 0x80000000 0x00000210 0x80000000 0x0 0x80000000
281 0x01000000 0x0 0x0 0x00000240 0x0 0x0 0x00010000>;
283 /* Inbound starting at 0 to memsize filled in by zImage */
284 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>;
286 /* This drives busses 0 to 0xf */
287 bus-range = <0x0 0xf>;
289 /* Legacy interrupts (note the weird polarity, the bridge seems
290 * to invert PCIe legacy interrupts).
291 * We are de-swizzling here because the numbers are actually for
292 * port of the root complex virtual P2P bridge. But I want
293 * to avoid putting a node for it in the tree, so the numbers
294 * below are basically de-swizzled numbers.
295 * The real slot is on idsel 0, so the swizzling is 1:1
297 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
299 0x0 0x0 0x0 0x1 &MPIC 53 0x2 /* int A */
300 0x0 0x0 0x0 0x2 &MPIC 54 0x2 /* int B */
301 0x0 0x0 0x0 0x3 &MPIC 55 0x2 /* int C */
302 0x0 0x0 0x0 0x4 &MPIC 56 0x2 /* int D */>;
305 PCIE2: pciex@18100000000 {
307 #interrupt-cells = <1>;
309 #address-cells = <3>;
310 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
312 port = <0x2>; /* port number */
313 reg = <0x00000181 0x00000000 0x0 0x10000000 /* Config space access */
314 0x00000180 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
315 dcr-reg = <0xe0 0x20>;
317 // pci_space < pci_addr > < cpu_addr > < size >
318 ranges = <0x02000000 0x00000000 0x80000000 0x00000190 0x80000000 0x0 0x80000000
319 0x01000000 0x0 0x0 0x000001c0 0x0 0x0 0x00010000>;
321 /* Inbound starting at 0 to memsize filled in by zImage */
322 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>;
324 /* This drives busses 0 to 0xf */
325 bus-range = <0x0 0xf>;
327 /* Legacy interrupts (note the weird polarity, the bridge seems
328 * to invert PCIe legacy interrupts).
329 * We are de-swizzling here because the numbers are actually for
330 * port of the root complex virtual P2P bridge. But I want
331 * to avoid putting a node for it in the tree, so the numbers
332 * below are basically de-swizzled numbers.
333 * The real slot is on idsel 0, so the swizzling is 1:1
335 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
337 0x0 0x0 0x0 0x1 &MPIC 61 0x2 /* int A */
338 0x0 0x0 0x0 0x2 &MPIC 62 0x2 /* int B */
339 0x0 0x0 0x0 0x3 &MPIC 63 0x2 /* int C */
340 0x0 0x0 0x0 0x4 &MPIC 64 0x2 /* int D */>;
343 PCIE3: pciex@28100000000 {
345 #interrupt-cells = <1>;
347 #address-cells = <3>;
348 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
350 port = <0x3>; /* port number */
351 reg = <0x00000281 0x00000000 0x0 0x10000000 /* Config space access */
352 0x00000280 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
353 dcr-reg = <0x120 0x20>;
355 // pci_space < pci_addr > < cpu_addr > < size >
356 ranges = <0x02000000 0x00000000 0x80000000 0x00000290 0x80000000 0x0 0x80000000
357 0x01000000 0x0 0x0 0x000002c0 0x0 0x0 0x00010000>;
359 /* Inbound starting at 0 to memsize filled in by zImage */
360 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>;
362 /* This drives busses 0 to 0xf */
363 bus-range = <0x0 0xf>;
365 /* Legacy interrupts (note the weird polarity, the bridge seems
366 * to invert PCIe legacy interrupts).
367 * We are de-swizzling here because the numbers are actually for
368 * port of the root complex virtual P2P bridge. But I want
369 * to avoid putting a node for it in the tree, so the numbers
370 * below are basically de-swizzled numbers.
371 * The real slot is on idsel 0, so the swizzling is 1:1
373 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
375 0x0 0x0 0x0 0x1 &MPIC 69 0x2 /* int A */
376 0x0 0x0 0x0 0x2 &MPIC 70 0x2 /* int B */
377 0x0 0x0 0x0 0x3 &MPIC 71 0x2 /* int C */
378 0x0 0x0 0x0 0x4 &MPIC 72 0x2 /* int D */>;
383 linux,stdout-path = &UART0;