blob: d16cc03b7c5d6aaea59876f8fbec89310da2a478 [file] [log] [blame]
Vinayak Kaleee877b52013-04-24 10:07:00 +01001/*
2 * dts file for AppliedMicro (APM) X-Gene Storm SOC
3 *
4 * Copyright (C) 2013, Applied Micro Circuits Corporation
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
10 */
11
12/ {
13 compatible = "apm,xgene-storm";
14 interrupt-parent = <&gic>;
15 #address-cells = <2>;
16 #size-cells = <2>;
17
18 cpus {
19 #address-cells = <2>;
20 #size-cells = <0>;
21
22 cpu@000 {
23 device_type = "cpu";
24 compatible = "apm,potenza", "arm,armv8";
25 reg = <0x0 0x000>;
26 enable-method = "spin-table";
27 cpu-release-addr = <0x1 0x0000fff8>;
28 };
29 cpu@001 {
30 device_type = "cpu";
31 compatible = "apm,potenza", "arm,armv8";
32 reg = <0x0 0x001>;
33 enable-method = "spin-table";
34 cpu-release-addr = <0x1 0x0000fff8>;
35 };
36 cpu@100 {
37 device_type = "cpu";
38 compatible = "apm,potenza", "arm,armv8";
39 reg = <0x0 0x100>;
40 enable-method = "spin-table";
41 cpu-release-addr = <0x1 0x0000fff8>;
42 };
43 cpu@101 {
44 device_type = "cpu";
45 compatible = "apm,potenza", "arm,armv8";
46 reg = <0x0 0x101>;
47 enable-method = "spin-table";
48 cpu-release-addr = <0x1 0x0000fff8>;
49 };
50 cpu@200 {
51 device_type = "cpu";
52 compatible = "apm,potenza", "arm,armv8";
53 reg = <0x0 0x200>;
54 enable-method = "spin-table";
55 cpu-release-addr = <0x1 0x0000fff8>;
56 };
57 cpu@201 {
58 device_type = "cpu";
59 compatible = "apm,potenza", "arm,armv8";
60 reg = <0x0 0x201>;
61 enable-method = "spin-table";
62 cpu-release-addr = <0x1 0x0000fff8>;
63 };
64 cpu@300 {
65 device_type = "cpu";
66 compatible = "apm,potenza", "arm,armv8";
67 reg = <0x0 0x300>;
68 enable-method = "spin-table";
69 cpu-release-addr = <0x1 0x0000fff8>;
70 };
71 cpu@301 {
72 device_type = "cpu";
73 compatible = "apm,potenza", "arm,armv8";
74 reg = <0x0 0x301>;
75 enable-method = "spin-table";
76 cpu-release-addr = <0x1 0x0000fff8>;
77 };
78 };
79
80 gic: interrupt-controller@78010000 {
81 compatible = "arm,cortex-a15-gic";
82 #interrupt-cells = <3>;
83 interrupt-controller;
84 reg = <0x0 0x78010000 0x0 0x1000>, /* GIC Dist */
85 <0x0 0x78020000 0x0 0x1000>, /* GIC CPU */
86 <0x0 0x78040000 0x0 0x2000>, /* GIC VCPU Control */
87 <0x0 0x78060000 0x0 0x2000>; /* GIC VCPU */
88 interrupts = <1 9 0xf04>; /* GIC Maintenence IRQ */
89 };
90
91 timer {
92 compatible = "arm,armv8-timer";
93 interrupts = <1 0 0xff01>, /* Secure Phys IRQ */
94 <1 13 0xff01>, /* Non-secure Phys IRQ */
95 <1 14 0xff01>, /* Virt IRQ */
96 <1 15 0xff01>; /* Hyp IRQ */
97 clock-frequency = <50000000>;
98 };
99
100 soc {
101 compatible = "simple-bus";
102 #address-cells = <2>;
103 #size-cells = <2>;
104 ranges;
105
Loc Ho3eb15d82013-06-26 11:56:10 -0600106 clocks {
107 #address-cells = <2>;
108 #size-cells = <2>;
109 ranges;
110 refclk: refclk {
111 compatible = "fixed-clock";
112 #clock-cells = <1>;
113 clock-frequency = <100000000>;
114 clock-output-names = "refclk";
115 };
116
117 pcppll: pcppll@17000100 {
118 compatible = "apm,xgene-pcppll-clock";
119 #clock-cells = <1>;
120 clocks = <&refclk 0>;
121 clock-names = "pcppll";
122 reg = <0x0 0x17000100 0x0 0x1000>;
123 clock-output-names = "pcppll";
124 type = <0>;
125 };
126
127 socpll: socpll@17000120 {
128 compatible = "apm,xgene-socpll-clock";
129 #clock-cells = <1>;
130 clocks = <&refclk 0>;
131 clock-names = "socpll";
132 reg = <0x0 0x17000120 0x0 0x1000>;
133 clock-output-names = "socpll";
134 type = <1>;
135 };
136
137 socplldiv2: socplldiv2 {
138 compatible = "fixed-factor-clock";
139 #clock-cells = <1>;
140 clocks = <&socpll 0>;
141 clock-names = "socplldiv2";
142 clock-mult = <1>;
143 clock-div = <2>;
144 clock-output-names = "socplldiv2";
145 };
146
147 qmlclk: qmlclk {
148 compatible = "apm,xgene-device-clock";
149 #clock-cells = <1>;
150 clocks = <&socplldiv2 0>;
151 clock-names = "qmlclk";
152 reg = <0x0 0x1703C000 0x0 0x1000>;
153 reg-names = "csr-reg";
154 clock-output-names = "qmlclk";
155 };
156
157 ethclk: ethclk {
158 compatible = "apm,xgene-device-clock";
159 #clock-cells = <1>;
160 clocks = <&socplldiv2 0>;
161 clock-names = "ethclk";
162 reg = <0x0 0x17000000 0x0 0x1000>;
163 reg-names = "div-reg";
164 divider-offset = <0x238>;
165 divider-width = <0x9>;
166 divider-shift = <0x0>;
167 clock-output-names = "ethclk";
168 };
169
Iyappan Subramanian3d390422014-08-07 15:14:27 -0700170 menetclk: menetclk {
Loc Ho3eb15d82013-06-26 11:56:10 -0600171 compatible = "apm,xgene-device-clock";
172 #clock-cells = <1>;
173 clocks = <&ethclk 0>;
Loc Ho3eb15d82013-06-26 11:56:10 -0600174 reg = <0x0 0x1702C000 0x0 0x1000>;
175 reg-names = "csr-reg";
Iyappan Subramanian3d390422014-08-07 15:14:27 -0700176 clock-output-names = "menetclk";
Loc Ho3eb15d82013-06-26 11:56:10 -0600177 };
Loc Ho71b70ee2014-03-14 17:53:18 -0600178
Iyappan Subramanian5fb32412014-10-09 18:32:04 -0700179 xge0clk: xge0clk@1f61c000 {
180 compatible = "apm,xgene-device-clock";
181 #clock-cells = <1>;
182 clocks = <&socplldiv2 0>;
183 reg = <0x0 0x1f61c000 0x0 0x1000>;
184 reg-names = "csr-reg";
185 csr-mask = <0x3>;
186 clock-output-names = "xge0clk";
187 };
188
Loc Ho71b70ee2014-03-14 17:53:18 -0600189 sataphy1clk: sataphy1clk@1f21c000 {
190 compatible = "apm,xgene-device-clock";
191 #clock-cells = <1>;
192 clocks = <&socplldiv2 0>;
193 reg = <0x0 0x1f21c000 0x0 0x1000>;
194 reg-names = "csr-reg";
195 clock-output-names = "sataphy1clk";
196 status = "disabled";
197 csr-offset = <0x4>;
198 csr-mask = <0x00>;
199 enable-offset = <0x0>;
200 enable-mask = <0x06>;
201 };
202
203 sataphy2clk: sataphy1clk@1f22c000 {
204 compatible = "apm,xgene-device-clock";
205 #clock-cells = <1>;
206 clocks = <&socplldiv2 0>;
207 reg = <0x0 0x1f22c000 0x0 0x1000>;
208 reg-names = "csr-reg";
209 clock-output-names = "sataphy2clk";
210 status = "ok";
211 csr-offset = <0x4>;
212 csr-mask = <0x3a>;
213 enable-offset = <0x0>;
214 enable-mask = <0x06>;
215 };
216
217 sataphy3clk: sataphy1clk@1f23c000 {
218 compatible = "apm,xgene-device-clock";
219 #clock-cells = <1>;
220 clocks = <&socplldiv2 0>;
221 reg = <0x0 0x1f23c000 0x0 0x1000>;
222 reg-names = "csr-reg";
223 clock-output-names = "sataphy3clk";
224 status = "ok";
225 csr-offset = <0x4>;
226 csr-mask = <0x3a>;
227 enable-offset = <0x0>;
228 enable-mask = <0x06>;
229 };
Loc Hodb8c0282014-03-14 17:53:21 -0600230
231 sata01clk: sata01clk@1f21c000 {
232 compatible = "apm,xgene-device-clock";
233 #clock-cells = <1>;
234 clocks = <&socplldiv2 0>;
235 reg = <0x0 0x1f21c000 0x0 0x1000>;
236 reg-names = "csr-reg";
237 clock-output-names = "sata01clk";
238 csr-offset = <0x4>;
239 csr-mask = <0x05>;
240 enable-offset = <0x0>;
241 enable-mask = <0x39>;
242 };
243
244 sata23clk: sata23clk@1f22c000 {
245 compatible = "apm,xgene-device-clock";
246 #clock-cells = <1>;
247 clocks = <&socplldiv2 0>;
248 reg = <0x0 0x1f22c000 0x0 0x1000>;
249 reg-names = "csr-reg";
250 clock-output-names = "sata23clk";
251 csr-offset = <0x4>;
252 csr-mask = <0x05>;
253 enable-offset = <0x0>;
254 enable-mask = <0x39>;
255 };
256
257 sata45clk: sata45clk@1f23c000 {
258 compatible = "apm,xgene-device-clock";
259 #clock-cells = <1>;
260 clocks = <&socplldiv2 0>;
261 reg = <0x0 0x1f23c000 0x0 0x1000>;
262 reg-names = "csr-reg";
263 clock-output-names = "sata45clk";
264 csr-offset = <0x4>;
265 csr-mask = <0x05>;
266 enable-offset = <0x0>;
267 enable-mask = <0x39>;
268 };
Loc Ho652ba662014-06-06 14:35:43 -0700269
270 rtcclk: rtcclk@17000000 {
271 compatible = "apm,xgene-device-clock";
272 #clock-cells = <1>;
273 clocks = <&socplldiv2 0>;
274 reg = <0x0 0x17000000 0x0 0x2000>;
275 reg-names = "csr-reg";
276 csr-offset = <0xc>;
277 csr-mask = <0x2>;
278 enable-offset = <0x10>;
279 enable-mask = <0x2>;
280 clock-output-names = "rtcclk";
281 };
Feng Kanab818732014-08-22 16:26:40 -0700282
283 rngpkaclk: rngpkaclk@17000000 {
284 compatible = "apm,xgene-device-clock";
285 #clock-cells = <1>;
286 clocks = <&socplldiv2 0>;
287 reg = <0x0 0x17000000 0x0 0x2000>;
288 reg-names = "csr-reg";
289 csr-offset = <0xc>;
290 csr-mask = <0x10>;
291 enable-offset = <0x10>;
292 enable-mask = <0x10>;
293 clock-output-names = "rngpkaclk";
294 };
Loc Ho3eb15d82013-06-26 11:56:10 -0600295 };
296
Vinayak Kaleee877b52013-04-24 10:07:00 +0100297 serial0: serial@1c020000 {
Vinayak Kale457ced82014-03-26 12:19:06 +0000298 status = "disabled";
Vinayak Kaleee877b52013-04-24 10:07:00 +0100299 device_type = "serial";
Vinayak Kale457ced82014-03-26 12:19:06 +0000300 compatible = "ns16550a";
Vinayak Kaleee877b52013-04-24 10:07:00 +0100301 reg = <0 0x1c020000 0x0 0x1000>;
302 reg-shift = <2>;
303 clock-frequency = <10000000>; /* Updated by bootloader */
304 interrupt-parent = <&gic>;
305 interrupts = <0x0 0x4c 0x4>;
306 };
Loc Ho71b70ee2014-03-14 17:53:18 -0600307
Vinayak Kale457ced82014-03-26 12:19:06 +0000308 serial1: serial@1c021000 {
309 status = "disabled";
310 device_type = "serial";
311 compatible = "ns16550a";
312 reg = <0 0x1c021000 0x0 0x1000>;
313 reg-shift = <2>;
314 clock-frequency = <10000000>; /* Updated by bootloader */
315 interrupt-parent = <&gic>;
316 interrupts = <0x0 0x4d 0x4>;
317 };
318
319 serial2: serial@1c022000 {
320 status = "disabled";
321 device_type = "serial";
322 compatible = "ns16550a";
323 reg = <0 0x1c022000 0x0 0x1000>;
324 reg-shift = <2>;
325 clock-frequency = <10000000>; /* Updated by bootloader */
326 interrupt-parent = <&gic>;
327 interrupts = <0x0 0x4e 0x4>;
328 };
329
330 serial3: serial@1c023000 {
331 status = "disabled";
332 device_type = "serial";
333 compatible = "ns16550a";
334 reg = <0 0x1c023000 0x0 0x1000>;
335 reg-shift = <2>;
336 clock-frequency = <10000000>; /* Updated by bootloader */
337 interrupt-parent = <&gic>;
338 interrupts = <0x0 0x4f 0x4>;
339 };
340
Loc Ho71b70ee2014-03-14 17:53:18 -0600341 phy1: phy@1f21a000 {
342 compatible = "apm,xgene-phy";
343 reg = <0x0 0x1f21a000 0x0 0x100>;
344 #phy-cells = <1>;
345 clocks = <&sataphy1clk 0>;
346 status = "disabled";
347 apm,tx-boost-gain = <30 30 30 30 30 30>;
348 apm,tx-eye-tuning = <2 10 10 2 10 10>;
349 };
350
351 phy2: phy@1f22a000 {
352 compatible = "apm,xgene-phy";
353 reg = <0x0 0x1f22a000 0x0 0x100>;
354 #phy-cells = <1>;
355 clocks = <&sataphy2clk 0>;
356 status = "ok";
357 apm,tx-boost-gain = <30 30 30 30 30 30>;
358 apm,tx-eye-tuning = <1 10 10 2 10 10>;
359 };
360
361 phy3: phy@1f23a000 {
362 compatible = "apm,xgene-phy";
363 reg = <0x0 0x1f23a000 0x0 0x100>;
364 #phy-cells = <1>;
365 clocks = <&sataphy3clk 0>;
366 status = "ok";
367 apm,tx-boost-gain = <31 31 31 31 31 31>;
368 apm,tx-eye-tuning = <2 10 10 2 10 10>;
369 };
Loc Hodb8c0282014-03-14 17:53:21 -0600370
371 sata1: sata@1a000000 {
372 compatible = "apm,xgene-ahci";
373 reg = <0x0 0x1a000000 0x0 0x1000>,
374 <0x0 0x1f210000 0x0 0x1000>,
375 <0x0 0x1f21d000 0x0 0x1000>,
376 <0x0 0x1f21e000 0x0 0x1000>,
377 <0x0 0x1f217000 0x0 0x1000>;
378 interrupts = <0x0 0x86 0x4>;
Catalin Marinas7a8d1ec2014-04-25 16:39:49 +0100379 dma-coherent;
Loc Hodb8c0282014-03-14 17:53:21 -0600380 status = "disabled";
381 clocks = <&sata01clk 0>;
382 phys = <&phy1 0>;
383 phy-names = "sata-phy";
384 };
385
386 sata2: sata@1a400000 {
387 compatible = "apm,xgene-ahci";
388 reg = <0x0 0x1a400000 0x0 0x1000>,
389 <0x0 0x1f220000 0x0 0x1000>,
390 <0x0 0x1f22d000 0x0 0x1000>,
391 <0x0 0x1f22e000 0x0 0x1000>,
392 <0x0 0x1f227000 0x0 0x1000>;
393 interrupts = <0x0 0x87 0x4>;
Catalin Marinas7a8d1ec2014-04-25 16:39:49 +0100394 dma-coherent;
Loc Hodb8c0282014-03-14 17:53:21 -0600395 status = "ok";
396 clocks = <&sata23clk 0>;
397 phys = <&phy2 0>;
398 phy-names = "sata-phy";
399 };
400
401 sata3: sata@1a800000 {
402 compatible = "apm,xgene-ahci";
403 reg = <0x0 0x1a800000 0x0 0x1000>,
404 <0x0 0x1f230000 0x0 0x1000>,
405 <0x0 0x1f23d000 0x0 0x1000>,
406 <0x0 0x1f23e000 0x0 0x1000>;
407 interrupts = <0x0 0x88 0x4>;
Catalin Marinas7a8d1ec2014-04-25 16:39:49 +0100408 dma-coherent;
Loc Hodb8c0282014-03-14 17:53:21 -0600409 status = "ok";
410 clocks = <&sata45clk 0>;
411 phys = <&phy3 0>;
412 phy-names = "sata-phy";
413 };
Loc Ho652ba662014-06-06 14:35:43 -0700414
415 rtc: rtc@10510000 {
416 compatible = "apm,xgene-rtc";
417 reg = <0x0 0x10510000 0x0 0x400>;
418 interrupts = <0x0 0x46 0x4>;
419 #clock-cells = <1>;
420 clocks = <&rtcclk 0>;
421 };
Iyappan Subramanian3d390422014-08-07 15:14:27 -0700422
423 menet: ethernet@17020000 {
424 compatible = "apm,xgene-enet";
425 status = "disabled";
426 reg = <0x0 0x17020000 0x0 0xd100>,
427 <0x0 0X17030000 0x0 0X400>,
428 <0x0 0X10000000 0x0 0X200>;
429 reg-names = "enet_csr", "ring_csr", "ring_cmd";
430 interrupts = <0x0 0x3c 0x4>;
431 dma-coherent;
432 clocks = <&menetclk 0>;
Iyappan Subramanian5fb32412014-10-09 18:32:04 -0700433 /* mac address will be overwritten by the bootloader */
434 local-mac-address = [00 00 00 00 00 00];
Iyappan Subramanian3d390422014-08-07 15:14:27 -0700435 phy-connection-type = "rgmii";
436 phy-handle = <&menetphy>;
437 mdio {
438 compatible = "apm,xgene-mdio";
439 #address-cells = <1>;
440 #size-cells = <0>;
441 menetphy: menetphy@3 {
442 compatible = "ethernet-phy-id001c.c915";
443 reg = <0x3>;
444 };
445
446 };
447 };
Feng Kanab818732014-08-22 16:26:40 -0700448
Iyappan Subramanian5fb32412014-10-09 18:32:04 -0700449 xgenet: ethernet@1f610000 {
450 compatible = "apm,xgene-enet";
451 status = "disabled";
452 reg = <0x0 0x1f610000 0x0 0xd100>,
453 <0x0 0x1f600000 0x0 0X400>,
454 <0x0 0x18000000 0x0 0X200>;
455 reg-names = "enet_csr", "ring_csr", "ring_cmd";
456 interrupts = <0x0 0x60 0x4>;
457 dma-coherent;
458 clocks = <&xge0clk 0>;
459 /* mac address will be overwritten by the bootloader */
460 local-mac-address = [00 00 00 00 00 00];
461 phy-connection-type = "xgmii";
462 };
463
Feng Kanab818732014-08-22 16:26:40 -0700464 rng: rng@10520000 {
465 compatible = "apm,xgene-rng";
466 reg = <0x0 0x10520000 0x0 0x100>;
467 interrupts = <0x0 0x41 0x4>;
468 clocks = <&rngpkaclk 0>;
469 };
Vinayak Kaleee877b52013-04-24 10:07:00 +0100470 };
471};