2 * Device Tree Source for Meraki MR24 (Ikarem)
4 * Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
6 * Based on Cisco Meraki GPL Release r23-20150601 MR24 DTS
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without
10 * any warranty of any kind, whether express or implied.
18 model = "Meraki MR24 Access Point";
19 compatible = "meraki,ikarem";
20 dcr-parent = <&{/cpus/cpu@0}>;
33 model = "PowerPC,apm821xx";
35 clock-frequency = <0>; /* Filled in by U-Boot */
36 timebase-frequency = <0>; /* Filled in by U-Boot */
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";
43 next-level-cache = <&L2C0>;
48 device_type = "memory";
49 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
52 UIC0: interrupt-controller0 {
53 compatible = "ibm,uic";
56 dcr-reg = <0x0c0 0x009>;
59 #interrupt-cells = <2>;
62 UIC1: interrupt-controller1 {
63 compatible = "ibm,uic";
66 dcr-reg = <0x0d0 0x009>;
69 #interrupt-cells = <2>;
70 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
71 interrupt-parent = <&UIC0>;
74 UIC2: interrupt-controller2 {
75 compatible = "ibm,uic";
78 dcr-reg = <0x0e0 0x009>;
81 #interrupt-cells = <2>;
82 interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
83 interrupt-parent = <&UIC0>;
86 UIC3: interrupt-controller3 {
87 compatible = "ibm,uic";
90 dcr-reg = <0x0f0 0x009>;
93 #interrupt-cells = <2>;
94 interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
95 interrupt-parent = <&UIC0>;
98 /* KPH check the following */
100 compatible = "ibm,ocm";
103 /* configured in U-Boot */
104 reg = <4 0x00040000 0x8000>; /* 32K */
108 compatible = "ibm,sdr-apm821xx";
109 dcr-reg = <0x00e 0x002>;
113 compatible = "ibm,cpr-apm821xx";
114 dcr-reg = <0x00c 0x002>;
118 compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache";
119 dcr-reg = <0x020 0x008
121 cache-line-size = <32>;
122 cache-size = <262144>;
123 interrupt-parent = <&UIC1>;
127 /* kph check the below */
129 compatible = "ibm,cpm-apm821xx", "ibm,cpm";
131 dcr-reg = <0x160 0x003>;
132 pm-cpu = <0x02000000>;
133 pm-doze = <0x302570F0>;
134 pm-nap = <0x302570F0>;
135 pm-deepsleep = <0x302570F0>;
136 pm-iic-device = <&IIC0>;
137 pm-emac-device = <&EMAC0>;
141 compatible = "ibm,plb4";
142 #address-cells = <2>;
145 clock-frequency = <0>; /* Filled in by U-Boot */
148 compatible = "ibm,sdram-apm821xx";
149 dcr-reg = <0x010 0x002>;
152 /* kph check the below */
153 CRYPTO: crypto@180000 {
154 compatible = "amcc,ppc460ex-crypto", "amcc,ppc4xx-crypto";
155 reg = <4 0x00180000 0x80400>;
156 interrupt-parent = <&UIC0>;
157 interrupts = <0x1d 0x4>;
160 /* kph check the below */
163 compatible = "ppc4xx-pka", "amcc,ppc4xx-pka";
164 reg = <4 0x00114000 0x4000>;
165 interrupt-parent = <&UIC0>;
166 interrupts = <0x14 0x2>;
169 /* kph check the below */
171 compatible = "ppc4xx-trng", "amcc,ppc460ex-rng";
172 reg = <4 0x00110000 0x50>;
173 interrupt-parent = <&UIC1>;
174 interrupts = <0x3 0x2>;
178 compatible = "ibm,mcmal2";
179 descriptor-memory = "ocm";
180 dcr-reg = <0x180 0x062>;
183 #address-cells = <0>;
185 interrupt-parent = <&UIC2>;
186 interrupts = < /*TXEOB*/ 0x6 0x4
194 compatible = "ibm,opb";
195 #address-cells = <1>;
197 ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
198 clock-frequency = <0>; /* Filled in by U-Boot */
201 compatible = "ibm,ebc";
202 dcr-reg = <0x012 0x002>;
203 #address-cells = <2>;
205 clock-frequency = <0>; /* Filled in by U-Boot */
206 /* ranges property is supplied by U-Boot */
207 ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>;
208 interrupts = <0x6 0x4>;
209 interrupt-parent = <&UIC1>;
211 /* Ikarem has 32MB of NAND */
213 compatible = "ibm,ndfc";
214 reg = <00000003 00000000 00000400>;
216 bank-settings = <0x80002222>;
217 #address-cells = <1>;
219 /* 32 MiB NAND Flash */
221 #address-cells = <1>;
225 reg = <0x00000000 0x00170000>;
230 reg = <0x00170000 0x00010000>;
234 reg = <0x00180000 0x01e80000>;
240 UART0: serial@ef600400 {
241 device_type = "serial";
242 compatible = "ns16550";
243 reg = <0xef600400 0x00000008>;
244 virtual-reg = <0xef600400>;
245 clock-frequency = <0>; /* Filled in by U-Boot */
246 current-speed = <0>; /* Filled in by U-Boot */
247 interrupt-parent = <&UIC0>;
248 interrupts = <0x1 0x4>;
251 GPIO0: gpio@ef600b00 {
252 compatible = "ibm,ppc4xx-gpio";
253 reg = <0xef600b00 0x00000048>;
259 compatible = "gpio-leds";
261 label = "mr24:green:power";
262 gpios = <&GPIO0 18 1>;
265 label = "mr24:orange:power";
266 gpios = <&GPIO0 19 1>;
269 label = "mr24:green:wan";
270 gpios = <&GPIO0 17 1>;
273 label = "mr24:green:wifi1";
274 gpios = <&GPIO0 23 1>;
277 label = "mr24:green:wifi2";
278 gpios = <&GPIO0 22 1>;
281 label = "mr24:green:wifi3";
282 gpios = <&GPIO0 21 1>;
285 label = "mr24:green:wifi4";
286 gpios = <&GPIO0 20 1>;
291 compatible = "gpio-keys-polled";
292 #address-cells = <1>;
294 poll-interval = <60>; /* 3 * 20 = 60ms */
297 label = "Reset button";
298 linux,code = <0x198>; /* KEY_RESTART */
299 gpios = <&GPIO0 16 1>;
304 compatible = "ibm,iic";
305 reg = <0xef600700 0x00000014>;
306 interrupt-parent = <&UIC0>;
307 interrupts = <0x2 0x4>;
308 #address-cells = <1>;
310 /* Boot ROM is at 0x52-0x53, do not touch */
311 /* Unknown chip at 0x6e, not sure what it is */
315 compatible = "ibm,iic";
316 reg = <0xef600800 0x00000014>;
317 interrupt-parent = <&UIC0>;
318 interrupts = <0x3 0x4>;
321 RGMII0: emac-rgmii@ef601500 {
322 compatible = "ibm,rgmii";
323 reg = <0xef601500 0x00000008>;
327 TAH0: emac-tah@ef601350 {
328 compatible = "ibm,tah";
329 reg = <0xef601350 0x00000030>;
332 EMAC0: ethernet@ef600c00 {
333 device_type = "network";
334 compatible = "ibm,emac-apm821xx", "ibm,emac4sync";
335 interrupt-parent = <&EMAC0>;
336 interrupts = <0x0 0x1>;
337 #interrupt-cells = <1>;
338 #address-cells = <0>;
340 interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
341 /*Wake*/ 0x1 &UIC2 0x14 0x4>;
342 reg = <0xef600c00 0x000000c4>;
343 local-mac-address = [000000000000]; /* Filled in by U-Boot */
344 mal-device = <&MAL0>;
345 mal-tx-channel = <0>;
346 mal-rx-channel = <0>;
348 max-frame-size = <9000>;
349 rx-fifo-size = <16384>;
350 tx-fifo-size = <2048>;
352 phy-map = <0x00000000>;
353 rgmii-device = <&RGMII0>;
355 tah-device = <&TAH0>;
357 has-inverted-stacr-oc;
358 has-new-stacr-staopc;
362 PCIE0: pciex@d00000000 {
364 #interrupt-cells = <1>;
366 #address-cells = <3>;
367 compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex";
369 port = <0x0>; /* port number */
370 reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
371 0x0000000c 0x08010000 0x00001000>; /* Registers */
372 dcr-reg = <0x100 0x020>;
375 /* Outbound ranges, one memory and one IO,
376 * later cannot be changed
378 ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
379 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
380 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
382 /* Inbound 2GB range starting at 0 */
383 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
385 /* This drives busses 40 to 0x7f */
386 bus-range = <0x40 0x7f>;
388 /* Legacy interrupts (note the weird polarity, the bridge seems
389 * to invert PCIe legacy interrupts).
390 * We are de-swizzling here because the numbers are actually for
391 * port of the root complex virtual P2P bridge. But I want
392 * to avoid putting a node for it in the tree, so the numbers
393 * below are basically de-swizzled numbers.
394 * The real slot is on idsel 0, so the swizzling is 1:1
396 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
398 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
399 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
400 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
401 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
404 MSI: ppc4xx-msi@C10000000 {
405 compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
406 reg = < 0xC 0x10000000 0x100
407 0xC 0x10000000 0x100>;
409 msi-data = <0x00004440>;
410 msi-mask = <0x0000ffe0>;
411 interrupts =<0 1 2 3 4 5 6 7>;
412 interrupt-parent = <&MSI>;
413 #interrupt-cells = <1>;
414 #address-cells = <0>;
416 msi-available-ranges = <0x0 0x100>;
431 linux,stdout-path = "/plb/opb/serial@ef600400";