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
85 HSTA0: hsta@310000e0000 {
86 compatible = "ibm,476gtr-hsta-msi", "ibm,hsta-msi";
87 reg = <0x310 0x000e0000 0x0 0xf0>;
88 interrupt-parent = <&MPIC>;
108 compatible = "ibm,mcmal-476gtr", "ibm,mcmal2";
109 dcr-reg = <0xc0000000 0x062>;
112 #address-cells = <0>;
114 interrupt-parent = <&MPIC>;
115 interrupts = < /*TXEOB*/ 77 0x4
122 SATA0: sata@30000010000 {
123 compatible = "ibm,476gtr-ahci";
124 reg = <0x300 0x00010000 0x0 0x10000>;
125 interrupt-parent = <&MPIC>;
129 EHCI0: ehci@30010000000 {
130 compatible = "ibm,476gtr-ehci", "generic-ehci";
131 reg = <0x300 0x10000000 0x0 0x10000>;
132 interrupt-parent = <&MPIC>;
136 SD0: sd@30000000000 {
137 compatible = "ibm,476gtr-sdhci", "generic-sdhci";
138 reg = <0x300 0x00000000 0x0 0x10000>;
140 interrupt-parent = <&MPIC>;
143 OHCI0: ohci@30010010000 {
144 compatible = "ibm,476gtr-ohci", "generic-ohci";
145 reg = <0x300 0x10010000 0x0 0x10000>;
146 interrupt-parent = <&MPIC>;
150 OHCI1: ohci@30010020000 {
151 compatible = "ibm,476gtr-ohci", "generic-ohci";
152 reg = <0x300 0x10020000 0x0 0x10000>;
153 interrupt-parent = <&MPIC>;
158 compatible = "ibm,opb-4xx", "ibm,opb";
159 #address-cells = <1>;
161 /* Wish there was a nicer way of specifying a full
164 ranges = <0x00000000 0x0000033f 0x00000000 0x80000000
165 0x80000000 0x0000033f 0x80000000 0x80000000>;
166 clock-frequency = <100000000>;
168 RGMII0: emac-rgmii-wol@50004 {
169 compatible = "ibm,rgmii-wol-476gtr", "ibm,rgmii-wol";
170 reg = <0x50004 0x00000008>;
174 EMAC0: ethernet@30000 {
175 device_type = "network";
176 compatible = "ibm,emac-476gtr", "ibm,emac4sync";
177 interrupt-parent = <&EMAC0>;
178 interrupts = <0x0 0x1>;
179 #interrupt-cells = <1>;
180 #address-cells = <0>;
182 interrupt-map = </*Status*/ 0x0 &MPIC 81 0x4
183 /*Wake*/ 0x1 &MPIC 82 0x4>;
184 reg = <0x30000 0x78>;
186 /* local-mac-address will normally be added by
187 * the wrapper. If your device doesn't support
188 * passing data to the wrapper (in the form
189 * local-mac-addr=<hwaddr>) then you will need
190 * to set it manually here. */
191 //local-mac-address = [000000000000];
193 mal-device = <&MAL0>;
194 mal-tx-channel = <0>;
195 mal-rx-channel = <0>;
197 max-frame-size = <9000>;
198 rx-fifo-size = <4096>;
199 tx-fifo-size = <2048>;
200 rx-fifo-size-gige = <16384>;
202 phy-map = <0x00000000>;
203 rgmii-wol-device = <&RGMII0>;
204 has-inverted-stacr-oc;
205 has-new-stacr-staopc;
208 UART0: serial@10000 {
209 device_type = "serial";
210 compatible = "ns16750", "ns16550";
211 reg = <0x10000 0x00000008>;
212 virtual-reg = <0xe8010000>;
213 clock-frequency = <1851851>;
214 current-speed = <38400>;
215 interrupt-parent = <&MPIC>;
220 compatible = "ibm,iic-476gtr", "ibm,iic";
221 reg = <0x0 0x00000020>;
222 interrupt-parent = <&MPIC>;
224 #address-cells = <1>;
227 compatible = "st,m41t80", "m41st85";
233 compatible = "ibm,iic-476gtr", "ibm,iic";
234 reg = <0x100 0x00000020>;
235 interrupt-parent = <&MPIC>;
237 #address-cells = <1>;
240 compatible = "ibm,akebono-avr";
245 FPGA0: fpga@ebc00000 {
246 compatible = "ibm,akebono-fpga";
247 reg = <0xebc00000 0x8>;
251 PCIE0: pciex@10100000000 {
253 #interrupt-cells = <1>;
255 #address-cells = <3>;
256 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
258 port = <0x0>; /* port number */
259 reg = <0x00000101 0x00000000 0x0 0x10000000 /* Config space access */
260 0x00000100 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
261 dcr-reg = <0xc0 0x20>;
263 // pci_space < pci_addr > < cpu_addr > < size >
264 ranges = <0x02000000 0x00000000 0x80000000 0x00000110 0x80000000 0x0 0x80000000
265 0x01000000 0x0 0x0 0x00000140 0x0 0x0 0x00010000>;
267 /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
268 * PCI devices must be able to write to the HSTA module.
270 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
272 /* This drives busses 0 to 0xf */
273 bus-range = <0x0 0xf>;
275 /* Legacy interrupts (note the weird polarity, the bridge seems
276 * to invert PCIe legacy interrupts).
277 * We are de-swizzling here because the numbers are actually for
278 * port of the root complex virtual P2P bridge. But I want
279 * to avoid putting a node for it in the tree, so the numbers
280 * below are basically de-swizzled numbers.
281 * The real slot is on idsel 0, so the swizzling is 1:1
283 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
285 0x0 0x0 0x0 0x1 &MPIC 45 0x2 /* int A */
286 0x0 0x0 0x0 0x2 &MPIC 46 0x2 /* int B */
287 0x0 0x0 0x0 0x3 &MPIC 47 0x2 /* int C */
288 0x0 0x0 0x0 0x4 &MPIC 48 0x2 /* int D */>;
291 PCIE1: pciex@20100000000 {
293 #interrupt-cells = <1>;
295 #address-cells = <3>;
296 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
298 port = <0x1>; /* port number */
299 reg = <0x00000201 0x00000000 0x0 0x10000000 /* Config space access */
300 0x00000200 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
301 dcr-reg = <0x100 0x20>;
303 // pci_space < pci_addr > < cpu_addr > < size >
304 ranges = <0x02000000 0x00000000 0x80000000 0x00000210 0x80000000 0x0 0x80000000
305 0x01000000 0x0 0x0 0x00000240 0x0 0x0 0x00010000>;
307 /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
308 * PCI devices must be able to write to the HSTA module.
310 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
312 /* This drives busses 0 to 0xf */
313 bus-range = <0x0 0xf>;
315 /* Legacy interrupts (note the weird polarity, the bridge seems
316 * to invert PCIe legacy interrupts).
317 * We are de-swizzling here because the numbers are actually for
318 * port of the root complex virtual P2P bridge. But I want
319 * to avoid putting a node for it in the tree, so the numbers
320 * below are basically de-swizzled numbers.
321 * The real slot is on idsel 0, so the swizzling is 1:1
323 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
325 0x0 0x0 0x0 0x1 &MPIC 53 0x2 /* int A */
326 0x0 0x0 0x0 0x2 &MPIC 54 0x2 /* int B */
327 0x0 0x0 0x0 0x3 &MPIC 55 0x2 /* int C */
328 0x0 0x0 0x0 0x4 &MPIC 56 0x2 /* int D */>;
331 PCIE2: pciex@18100000000 {
333 #interrupt-cells = <1>;
335 #address-cells = <3>;
336 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
338 port = <0x2>; /* port number */
339 reg = <0x00000181 0x00000000 0x0 0x10000000 /* Config space access */
340 0x00000180 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
341 dcr-reg = <0xe0 0x20>;
343 // pci_space < pci_addr > < cpu_addr > < size >
344 ranges = <0x02000000 0x00000000 0x80000000 0x00000190 0x80000000 0x0 0x80000000
345 0x01000000 0x0 0x0 0x000001c0 0x0 0x0 0x00010000>;
347 /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
348 * PCI devices must be able to write to the HSTA module.
350 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
352 /* This drives busses 0 to 0xf */
353 bus-range = <0x0 0xf>;
355 /* Legacy interrupts (note the weird polarity, the bridge seems
356 * to invert PCIe legacy interrupts).
357 * We are de-swizzling here because the numbers are actually for
358 * port of the root complex virtual P2P bridge. But I want
359 * to avoid putting a node for it in the tree, so the numbers
360 * below are basically de-swizzled numbers.
361 * The real slot is on idsel 0, so the swizzling is 1:1
363 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
365 0x0 0x0 0x0 0x1 &MPIC 61 0x2 /* int A */
366 0x0 0x0 0x0 0x2 &MPIC 62 0x2 /* int B */
367 0x0 0x0 0x0 0x3 &MPIC 63 0x2 /* int C */
368 0x0 0x0 0x0 0x4 &MPIC 64 0x2 /* int D */>;
371 PCIE3: pciex@28100000000 {
373 #interrupt-cells = <1>;
375 #address-cells = <3>;
376 compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
378 port = <0x3>; /* port number */
379 reg = <0x00000281 0x00000000 0x0 0x10000000 /* Config space access */
380 0x00000280 0x00000000 0x0 0x00001000>; /* UTL Registers space access */
381 dcr-reg = <0x120 0x20>;
383 // pci_space < pci_addr > < cpu_addr > < size >
384 ranges = <0x02000000 0x00000000 0x80000000 0x00000290 0x80000000 0x0 0x80000000
385 0x01000000 0x0 0x0 0x000002c0 0x0 0x0 0x00010000>;
387 /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI
388 * PCI devices must be able to write to the HSTA module.
390 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>;
392 /* This drives busses 0 to 0xf */
393 bus-range = <0x0 0xf>;
395 /* Legacy interrupts (note the weird polarity, the bridge seems
396 * to invert PCIe legacy interrupts).
397 * We are de-swizzling here because the numbers are actually for
398 * port of the root complex virtual P2P bridge. But I want
399 * to avoid putting a node for it in the tree, so the numbers
400 * below are basically de-swizzled numbers.
401 * The real slot is on idsel 0, so the swizzling is 1:1
403 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
405 0x0 0x0 0x0 0x1 &MPIC 69 0x2 /* int A */
406 0x0 0x0 0x0 0x2 &MPIC 70 0x2 /* int B */
407 0x0 0x0 0x0 0x3 &MPIC 71 0x2 /* int C */
408 0x0 0x0 0x0 0x4 &MPIC 72 0x2 /* int D */>;
413 stdout-path = &UART0;