1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Device Tree for Bluestone (APM821xx) board.
5 * Copyright (c) 2010, Applied Micro Circuits Corporation
6 * Author: Tirumala R Marri <tmarri@apm.com>
14 model = "apm,bluestone";
15 compatible = "apm,bluestone";
16 dcr-parent = <&{/cpus/cpu@0}>;
30 model = "PowerPC,apm821xx";
32 clock-frequency = <0>; /* Filled in by U-Boot */
33 timebase-frequency = <0>; /* Filled in by U-Boot */
34 i-cache-line-size = <32>;
35 d-cache-line-size = <32>;
36 i-cache-size = <32768>;
37 d-cache-size = <32768>;
39 dcr-access-method = "native";
40 next-level-cache = <&L2C0>;
45 device_type = "memory";
46 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
49 UIC0: interrupt-controller0 {
50 compatible = "ibm,uic";
53 dcr-reg = <0x0c0 0x009>;
56 #interrupt-cells = <2>;
59 UIC1: interrupt-controller1 {
60 compatible = "ibm,uic";
63 dcr-reg = <0x0d0 0x009>;
66 #interrupt-cells = <2>;
67 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
68 interrupt-parent = <&UIC0>;
71 UIC2: interrupt-controller2 {
72 compatible = "ibm,uic";
75 dcr-reg = <0x0e0 0x009>;
78 #interrupt-cells = <2>;
79 interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
80 interrupt-parent = <&UIC0>;
83 UIC3: interrupt-controller3 {
84 compatible = "ibm,uic";
87 dcr-reg = <0x0f0 0x009>;
90 #interrupt-cells = <2>;
91 interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
92 interrupt-parent = <&UIC0>;
96 compatible = "ibm,ocm";
99 /* configured in U-Boot */
100 reg = <4 0x00040000 0x8000>; /* 32K */
104 compatible = "ibm,sdr-apm821xx";
105 dcr-reg = <0x00e 0x002>;
109 compatible = "ibm,cpr-apm821xx";
110 dcr-reg = <0x00c 0x002>;
114 compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache";
115 dcr-reg = <0x020 0x008
117 cache-line-size = <32>;
118 cache-size = <262144>;
119 interrupt-parent = <&UIC1>;
124 compatible = "ibm,plb4";
125 #address-cells = <2>;
128 clock-frequency = <0>; /* Filled in by U-Boot */
131 compatible = "ibm,sdram-apm821xx";
132 dcr-reg = <0x010 0x002>;
136 compatible = "ibm,mcmal2";
137 descriptor-memory = "ocm";
138 dcr-reg = <0x180 0x062>;
141 #address-cells = <0>;
143 interrupt-parent = <&UIC2>;
144 interrupts = < /*TXEOB*/ 0x6 0x4
152 compatible = "ibm,opb";
153 #address-cells = <1>;
155 ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
156 clock-frequency = <0>; /* Filled in by U-Boot */
159 compatible = "ibm,ebc";
160 dcr-reg = <0x012 0x002>;
161 #address-cells = <2>;
163 clock-frequency = <0>; /* Filled in by U-Boot */
164 /* ranges property is supplied by U-Boot */
165 ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>;
166 interrupts = <0x6 0x4>;
167 interrupt-parent = <&UIC1>;
170 compatible = "amd,s29gl512n", "cfi-flash";
172 reg = <0x00000000 0x00000000 0x00400000>;
173 #address-cells = <1>;
177 reg = <0x00000000 0x00180000>;
181 reg = <0x00180000 0x00020000>;
185 reg = <0x001a0000 0x00060000>;
190 compatible = "ibm,ndfc";
191 reg = <0x00000003 0x00000000 0x00002000>;
193 bank-settings = <0x80002222>;
194 #address-cells = <1>;
198 #address-cells = <1>;
203 reg = <0x00000000 0x00C00000>;
206 label = "environment";
207 reg = <0x00C00000 0x00B00000>;
211 reg = <0x01700000 0x00E00000>;
215 reg = <0x02500000 0x08200000>;
218 label = "device-tree";
219 reg = <0x0A700000 0x00B00000>;
223 reg = <0x0B200000 0x00D00000>;
227 reg = <0x0BF00000 0x00C00000>;
231 reg = <0x0CB00000 0x3500000>;
237 UART0: serial@ef600300 {
238 device_type = "serial";
239 compatible = "ns16550";
240 reg = <0xef600300 0x00000008>;
241 virtual-reg = <0xef600300>;
242 clock-frequency = <0>; /* Filled in by U-Boot */
243 current-speed = <0>; /* Filled in by U-Boot */
244 interrupt-parent = <&UIC1>;
245 interrupts = <0x1 0x4>;
248 UART1: serial@ef600400 {
249 device_type = "serial";
250 compatible = "ns16550";
251 reg = <0xef600400 0x00000008>;
252 virtual-reg = <0xef600400>;
253 clock-frequency = <0>; /* Filled in by U-Boot */
254 current-speed = <0>; /* Filled in by U-Boot */
255 interrupt-parent = <&UIC0>;
256 interrupts = <0x1 0x4>;
260 compatible = "ibm,iic";
261 reg = <0xef600700 0x00000014>;
262 interrupt-parent = <&UIC0>;
263 interrupts = <0x2 0x4>;
264 #address-cells = <1>;
267 compatible = "st,m41t80";
269 interrupt-parent = <&UIC0>;
270 interrupts = <0x9 0x8>;
273 compatible = "adm,adm1032";
275 interrupt-parent = <&UIC1>;
276 interrupts = <0x1E 0x8>; /* CPU_THERNAL_L */
281 compatible = "ibm,iic";
282 reg = <0xef600800 0x00000014>;
283 interrupt-parent = <&UIC0>;
284 interrupts = <0x3 0x4>;
287 RGMII0: emac-rgmii@ef601500 {
288 compatible = "ibm,rgmii";
289 reg = <0xef601500 0x00000008>;
293 TAH0: emac-tah@ef601350 {
294 compatible = "ibm,tah";
295 reg = <0xef601350 0x00000030>;
298 EMAC0: ethernet@ef600c00 {
299 device_type = "network";
300 compatible = "ibm,emac-apm821xx", "ibm,emac4sync";
301 interrupt-parent = <&EMAC0>;
302 interrupts = <0x0 0x1>;
303 #interrupt-cells = <1>;
304 #address-cells = <0>;
306 interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
307 /*Wake*/ 0x1 &UIC2 0x14 0x4>;
308 reg = <0xef600c00 0x000000c4>;
309 local-mac-address = [000000000000]; /* Filled in by U-Boot */
310 mal-device = <&MAL0>;
311 mal-tx-channel = <0>;
312 mal-rx-channel = <0>;
314 max-frame-size = <9000>;
315 rx-fifo-size = <16384>;
316 tx-fifo-size = <2048>;
318 phy-map = <0x00000000>;
319 rgmii-device = <&RGMII0>;
321 tah-device = <&TAH0>;
323 has-inverted-stacr-oc;
324 has-new-stacr-staopc;
328 PCIE0: pciex@d00000000 {
330 #interrupt-cells = <1>;
332 #address-cells = <3>;
333 compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex";
335 port = <0x0>; /* port number */
336 reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
337 0x0000000c 0x08010000 0x00001000>; /* Registers */
338 dcr-reg = <0x100 0x020>;
341 /* Outbound ranges, one memory and one IO,
342 * later cannot be changed
344 ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
345 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
346 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
348 /* Inbound 2GB range starting at 0 */
349 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
351 /* This drives busses 40 to 0x7f */
352 bus-range = <0x40 0x7f>;
354 /* Legacy interrupts (note the weird polarity, the bridge seems
355 * to invert PCIe legacy interrupts).
356 * We are de-swizzling here because the numbers are actually for
357 * port of the root complex virtual P2P bridge. But I want
358 * to avoid putting a node for it in the tree, so the numbers
359 * below are basically de-swizzled numbers.
360 * The real slot is on idsel 0, so the swizzling is 1:1
362 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
364 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
365 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
366 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
367 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
370 MSI: ppc4xx-msi@C10000000 {
371 compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
372 reg = < 0xC 0x10000000 0x100
373 0xC 0x10000000 0x100>;
375 msi-data = <0x00004440>;
376 msi-mask = <0x0000ffe0>;
377 interrupts =<0 1 2 3 4 5 6 7>;
378 interrupt-parent = <&MSI>;
379 #interrupt-cells = <1>;
380 #address-cells = <0>;
382 msi-available-ranges = <0x0 0x100>;