blob: 9319e1f0f1d8f8360ad11513b178bca7cc71d9fe [file] [log] [blame]
Jingchang Lu72392802014-10-31 17:01:08 +08001/*
2 * Copyright 2013-2014 Freescale Semiconductor, Inc.
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this file; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
23 *
24 * Or, alternatively,
25 *
26 * b) Permission is hereby granted, free of charge, to any person
27 * obtaining a copy of this software and associated documentation
28 * files (the "Software"), to deal in the Software without
29 * restriction, including without limitation the rights to use,
30 * copy, modify, merge, publish, distribute, sublicense, and/or
31 * sell copies of the Software, and to permit persons to whom the
32 * Software is furnished to do so, subject to the following
33 * conditions:
34 *
35 * The above copyright notice and this permission notice shall be
36 * included in all copies or substantial portions of the Software.
37 *
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
40 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
45 * OTHER DEALINGS IN THE SOFTWARE.
46 */
47
48#include "skeleton64.dtsi"
49#include <dt-bindings/interrupt-controller/arm-gic.h>
Hongtao Jia4d9e9cb2016-10-09 14:47:04 +080050#include <dt-bindings/thermal/thermal.h>
Jingchang Lu72392802014-10-31 17:01:08 +080051
52/ {
53 compatible = "fsl,ls1021a";
54 interrupt-parent = <&gic>;
55
56 aliases {
Horia Geantă816aa612015-08-12 10:42:41 +030057 crypto = &crypto;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +030058 ethernet0 = &enet0;
59 ethernet1 = &enet1;
60 ethernet2 = &enet2;
Jingchang Lu72392802014-10-31 17:01:08 +080061 serial0 = &lpuart0;
62 serial1 = &lpuart1;
63 serial2 = &lpuart2;
64 serial3 = &lpuart3;
65 serial4 = &lpuart4;
66 serial5 = &lpuart5;
67 sysclk = &sysclk;
68 };
69
70 cpus {
71 #address-cells = <1>;
72 #size-cells = <0>;
73
Hongtao Jia4d9e9cb2016-10-09 14:47:04 +080074 cpu0: cpu@f00 {
Jingchang Lu72392802014-10-31 17:01:08 +080075 compatible = "arm,cortex-a7";
76 device_type = "cpu";
77 reg = <0xf00>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +080078 clocks = <&clockgen 1 0>;
Hongtao Jia4d9e9cb2016-10-09 14:47:04 +080079 #cooling-cells = <2>;
Jingchang Lu72392802014-10-31 17:01:08 +080080 };
81
Hongtao Jia4d9e9cb2016-10-09 14:47:04 +080082 cpu1: cpu@f01 {
Jingchang Lu72392802014-10-31 17:01:08 +080083 compatible = "arm,cortex-a7";
84 device_type = "cpu";
85 reg = <0xf01>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +080086 clocks = <&clockgen 1 0>;
Jingchang Lu72392802014-10-31 17:01:08 +080087 };
88 };
89
Yuantian Tangb6f5e702017-06-09 14:25:45 +080090 sysclk: sysclk {
91 compatible = "fixed-clock";
92 #clock-cells = <0>;
93 clock-frequency = <100000000>;
94 clock-output-names = "sysclk";
95 };
96
Jingchang Lu72392802014-10-31 17:01:08 +080097 timer {
98 compatible = "arm,armv7-timer";
99 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
100 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
101 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
102 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
103 };
104
105 pmu {
106 compatible = "arm,cortex-a7-pmu";
107 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
108 <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
109 };
110
111 soc {
112 compatible = "simple-bus";
113 #address-cells = <2>;
114 #size-cells = <2>;
115 device_type = "soc";
116 interrupt-parent = <&gic>;
117 ranges;
118
119 gic: interrupt-controller@1400000 {
Marc Zyngier387720c2017-01-18 09:27:28 +0000120 compatible = "arm,gic-400", "arm,cortex-a7-gic";
Jingchang Lu72392802014-10-31 17:01:08 +0800121 #interrupt-cells = <3>;
122 interrupt-controller;
123 reg = <0x0 0x1401000 0x0 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +0000124 <0x0 0x1402000 0x0 0x2000>,
Jingchang Lu72392802014-10-31 17:01:08 +0800125 <0x0 0x1404000 0x0 0x2000>,
126 <0x0 0x1406000 0x0 0x2000>;
127 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
128
129 };
130
Minghuan Lianf4a458f2016-04-06 19:02:07 +0800131 msi1: msi-controller@1570e00 {
Minghuan Lianc9041ea2017-07-05 14:58:56 +0800132 compatible = "fsl,ls1021a-msi";
Minghuan Lianf4a458f2016-04-06 19:02:07 +0800133 reg = <0x0 0x1570e00 0x0 0x8>;
134 msi-controller;
135 interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
136 };
137
138 msi2: msi-controller@1570e08 {
Minghuan Lianc9041ea2017-07-05 14:58:56 +0800139 compatible = "fsl,ls1021a-msi";
Minghuan Lianf4a458f2016-04-06 19:02:07 +0800140 reg = <0x0 0x1570e08 0x0 0x8>;
141 msi-controller;
142 interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
143 };
144
Jingchang Lu72392802014-10-31 17:01:08 +0800145 ifc: ifc@1530000 {
146 compatible = "fsl,ifc", "simple-bus";
147 reg = <0x0 0x1530000 0x0 0x10000>;
148 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
149 };
150
151 dcfg: dcfg@1ee0000 {
152 compatible = "fsl,ls1021a-dcfg", "syscon";
153 reg = <0x0 0x1ee0000 0x0 0x10000>;
154 big-endian;
155 };
156
157 esdhc: esdhc@1560000 {
158 compatible = "fsl,esdhc";
159 reg = <0x0 0x1560000 0x0 0x10000>;
160 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
161 clock-frequency = <0>;
162 voltage-ranges = <1800 1800 3300 3300>;
163 sdhci,auto-cmd12;
164 big-endian;
165 bus-width = <4>;
166 status = "disabled";
167 };
168
Tang Yuantian318f05e2015-12-15 15:14:14 +0800169 sata: sata@3200000 {
170 compatible = "fsl,ls1021a-ahci";
171 reg = <0x0 0x3200000 0x0 0x10000>,
172 <0x0 0x20220520 0x0 0x4>;
173 reg-names = "ahci", "sata-ecc";
174 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800175 clocks = <&clockgen 4 1>;
Tang Yuantian318f05e2015-12-15 15:14:14 +0800176 dma-coherent;
177 status = "disabled";
178 };
179
Jingchang Lu72392802014-10-31 17:01:08 +0800180 scfg: scfg@1570000 {
181 compatible = "fsl,ls1021a-scfg", "syscon";
182 reg = <0x0 0x1570000 0x0 0x10000>;
Xiubo Li4fe6be02014-11-24 17:17:24 +0800183 big-endian;
Jingchang Lu72392802014-10-31 17:01:08 +0800184 };
185
Horia Geantă816aa612015-08-12 10:42:41 +0300186 crypto: crypto@1700000 {
187 compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
188 fsl,sec-era = <7>;
189 #address-cells = <1>;
190 #size-cells = <1>;
191 reg = <0x0 0x1700000 0x0 0x100000>;
192 ranges = <0x0 0x0 0x1700000 0x100000>;
193 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
194
195 sec_jr0: jr@10000 {
196 compatible = "fsl,sec-v5.0-job-ring",
197 "fsl,sec-v4.0-job-ring";
198 reg = <0x10000 0x10000>;
199 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
200 };
201
202 sec_jr1: jr@20000 {
203 compatible = "fsl,sec-v5.0-job-ring",
204 "fsl,sec-v4.0-job-ring";
205 reg = <0x20000 0x10000>;
206 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
207 };
208
209 sec_jr2: jr@30000 {
210 compatible = "fsl,sec-v5.0-job-ring",
211 "fsl,sec-v4.0-job-ring";
212 reg = <0x30000 0x10000>;
213 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
214 };
215
216 sec_jr3: jr@40000 {
217 compatible = "fsl,sec-v5.0-job-ring",
218 "fsl,sec-v4.0-job-ring";
219 reg = <0x40000 0x10000>;
220 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
221 };
222
223 };
224
Jingchang Lu72392802014-10-31 17:01:08 +0800225 clockgen: clocking@1ee1000 {
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800226 compatible = "fsl,ls1021a-clockgen";
227 reg = <0x0 0x1ee1000 0x0 0x1000>;
228 #clock-cells = <2>;
229 clocks = <&sysclk>;
Jingchang Lu72392802014-10-31 17:01:08 +0800230 };
231
Hongtao Jia4d9e9cb2016-10-09 14:47:04 +0800232 tmu: tmu@1f00000 {
233 compatible = "fsl,qoriq-tmu";
234 reg = <0x0 0x1f00000 0x0 0x10000>;
235 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
236 fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x30061>;
237 fsl,tmu-calibration = <0x00000000 0x0000000f
238 0x00000001 0x00000017
239 0x00000002 0x0000001e
240 0x00000003 0x00000026
241 0x00000004 0x0000002e
242 0x00000005 0x00000035
243 0x00000006 0x0000003d
244 0x00000007 0x00000044
245 0x00000008 0x0000004c
246 0x00000009 0x00000053
247 0x0000000a 0x0000005b
248 0x0000000b 0x00000064
249
250 0x00010000 0x00000011
251 0x00010001 0x0000001c
252 0x00010002 0x00000024
253 0x00010003 0x0000002b
254 0x00010004 0x00000034
255 0x00010005 0x00000039
256 0x00010006 0x00000042
257 0x00010007 0x0000004c
258 0x00010008 0x00000051
259 0x00010009 0x0000005a
260 0x0001000a 0x00000063
261
262 0x00020000 0x00000013
263 0x00020001 0x00000019
264 0x00020002 0x00000024
265 0x00020003 0x0000002c
266 0x00020004 0x00000035
267 0x00020005 0x0000003d
268 0x00020006 0x00000046
269 0x00020007 0x00000050
270 0x00020008 0x00000059
271
272 0x00030000 0x00000002
273 0x00030001 0x0000000d
274 0x00030002 0x00000019
275 0x00030003 0x00000024>;
276 #thermal-sensor-cells = <1>;
277 };
278
279 thermal-zones {
280 cpu_thermal: cpu-thermal {
281 polling-delay-passive = <1000>;
282 polling-delay = <5000>;
283
284 thermal-sensors = <&tmu 0>;
285
286 trips {
287 cpu_alert: cpu-alert {
288 temperature = <85000>;
289 hysteresis = <2000>;
290 type = "passive";
291 };
292 cpu_crit: cpu-crit {
293 temperature = <95000>;
294 hysteresis = <2000>;
295 type = "critical";
296 };
297 };
298
299 cooling-maps {
300 map0 {
301 trip = <&cpu_alert>;
302 cooling-device =
303 <&cpu0 THERMAL_NO_LIMIT
304 THERMAL_NO_LIMIT>;
305 };
306 };
307 };
308 };
309
Jingchang Lu72392802014-10-31 17:01:08 +0800310 dspi0: dspi@2100000 {
Haikun Wangc47d6e32015-07-08 10:43:40 +0800311 compatible = "fsl,ls1021a-v1.0-dspi";
Jingchang Lu72392802014-10-31 17:01:08 +0800312 #address-cells = <1>;
313 #size-cells = <0>;
314 reg = <0x0 0x2100000 0x0 0x10000>;
315 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
316 clock-names = "dspi";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800317 clocks = <&clockgen 4 1>;
Alexander Stein5b9f9672016-03-23 10:49:06 +0100318 spi-num-chipselects = <6>;
Jingchang Lu72392802014-10-31 17:01:08 +0800319 big-endian;
320 status = "disabled";
321 };
322
323 dspi1: dspi@2110000 {
Haikun Wangc47d6e32015-07-08 10:43:40 +0800324 compatible = "fsl,ls1021a-v1.0-dspi";
Jingchang Lu72392802014-10-31 17:01:08 +0800325 #address-cells = <1>;
326 #size-cells = <0>;
327 reg = <0x0 0x2110000 0x0 0x10000>;
328 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
329 clock-names = "dspi";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800330 clocks = <&clockgen 4 1>;
Alexander Stein5b9f9672016-03-23 10:49:06 +0100331 spi-num-chipselects = <6>;
Jingchang Lu72392802014-10-31 17:01:08 +0800332 big-endian;
333 status = "disabled";
334 };
335
336 i2c0: i2c@2180000 {
337 compatible = "fsl,vf610-i2c";
338 #address-cells = <1>;
339 #size-cells = <0>;
340 reg = <0x0 0x2180000 0x0 0x10000>;
341 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
342 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800343 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800344 status = "disabled";
345 };
346
347 i2c1: i2c@2190000 {
348 compatible = "fsl,vf610-i2c";
349 #address-cells = <1>;
350 #size-cells = <0>;
351 reg = <0x0 0x2190000 0x0 0x10000>;
352 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
353 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800354 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800355 status = "disabled";
356 };
357
358 i2c2: i2c@21a0000 {
359 compatible = "fsl,vf610-i2c";
360 #address-cells = <1>;
361 #size-cells = <0>;
362 reg = <0x0 0x21a0000 0x0 0x10000>;
363 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
364 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800365 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800366 status = "disabled";
367 };
368
369 uart0: serial@21c0500 {
370 compatible = "fsl,16550-FIFO64", "ns16550a";
371 reg = <0x0 0x21c0500 0x0 0x100>;
372 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
373 clock-frequency = <0>;
374 fifo-size = <15>;
375 status = "disabled";
376 };
377
378 uart1: serial@21c0600 {
379 compatible = "fsl,16550-FIFO64", "ns16550a";
380 reg = <0x0 0x21c0600 0x0 0x100>;
381 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
382 clock-frequency = <0>;
383 fifo-size = <15>;
384 status = "disabled";
385 };
386
387 uart2: serial@21d0500 {
388 compatible = "fsl,16550-FIFO64", "ns16550a";
389 reg = <0x0 0x21d0500 0x0 0x100>;
390 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
391 clock-frequency = <0>;
392 fifo-size = <15>;
393 status = "disabled";
394 };
395
396 uart3: serial@21d0600 {
397 compatible = "fsl,16550-FIFO64", "ns16550a";
398 reg = <0x0 0x21d0600 0x0 0x100>;
399 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
400 clock-frequency = <0>;
401 fifo-size = <15>;
402 status = "disabled";
403 };
404
Liu Gangc54dd442016-03-23 17:47:20 +0800405 gpio0: gpio@2300000 {
406 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
407 reg = <0x0 0x2300000 0x0 0x10000>;
408 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
409 gpio-controller;
410 #gpio-cells = <2>;
411 interrupt-controller;
412 #interrupt-cells = <2>;
413 };
414
415 gpio1: gpio@2310000 {
416 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
417 reg = <0x0 0x2310000 0x0 0x10000>;
418 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
419 gpio-controller;
420 #gpio-cells = <2>;
421 interrupt-controller;
422 #interrupt-cells = <2>;
423 };
424
425 gpio2: gpio@2320000 {
426 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
427 reg = <0x0 0x2320000 0x0 0x10000>;
428 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
429 gpio-controller;
430 #gpio-cells = <2>;
431 interrupt-controller;
432 #interrupt-cells = <2>;
433 };
434
435 gpio3: gpio@2330000 {
436 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
437 reg = <0x0 0x2330000 0x0 0x10000>;
438 interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
439 gpio-controller;
440 #gpio-cells = <2>;
441 interrupt-controller;
442 #interrupt-cells = <2>;
443 };
444
Jingchang Lu72392802014-10-31 17:01:08 +0800445 lpuart0: serial@2950000 {
446 compatible = "fsl,ls1021a-lpuart";
447 reg = <0x0 0x2950000 0x0 0x1000>;
448 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
449 clocks = <&sysclk>;
450 clock-names = "ipg";
451 status = "disabled";
452 };
453
454 lpuart1: serial@2960000 {
455 compatible = "fsl,ls1021a-lpuart";
456 reg = <0x0 0x2960000 0x0 0x1000>;
457 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800458 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800459 clock-names = "ipg";
460 status = "disabled";
461 };
462
463 lpuart2: serial@2970000 {
464 compatible = "fsl,ls1021a-lpuart";
465 reg = <0x0 0x2970000 0x0 0x1000>;
466 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800467 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800468 clock-names = "ipg";
469 status = "disabled";
470 };
471
472 lpuart3: serial@2980000 {
473 compatible = "fsl,ls1021a-lpuart";
474 reg = <0x0 0x2980000 0x0 0x1000>;
475 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800476 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800477 clock-names = "ipg";
478 status = "disabled";
479 };
480
481 lpuart4: serial@2990000 {
482 compatible = "fsl,ls1021a-lpuart";
483 reg = <0x0 0x2990000 0x0 0x1000>;
484 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800485 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800486 clock-names = "ipg";
487 status = "disabled";
488 };
489
490 lpuart5: serial@29a0000 {
491 compatible = "fsl,ls1021a-lpuart";
492 reg = <0x0 0x29a0000 0x0 0x1000>;
493 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800494 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800495 clock-names = "ipg";
496 status = "disabled";
497 };
498
499 wdog0: watchdog@2ad0000 {
500 compatible = "fsl,imx21-wdt";
501 reg = <0x0 0x2ad0000 0x0 0x10000>;
502 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800503 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800504 clock-names = "wdog-en";
505 big-endian;
506 };
507
508 sai1: sai@2b50000 {
Alison Wang50897cb2015-07-15 16:02:46 +0800509 #sound-dai-cells = <0>;
Jingchang Lu72392802014-10-31 17:01:08 +0800510 compatible = "fsl,vf610-sai";
511 reg = <0x0 0x2b50000 0x0 0x10000>;
512 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800513 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
514 <&clockgen 4 1>, <&clockgen 4 1>;
Alison Wang50897cb2015-07-15 16:02:46 +0800515 clock-names = "bus", "mclk1", "mclk2", "mclk3";
Jingchang Lu72392802014-10-31 17:01:08 +0800516 dma-names = "tx", "rx";
517 dmas = <&edma0 1 47>,
518 <&edma0 1 46>;
Jingchang Lu72392802014-10-31 17:01:08 +0800519 status = "disabled";
520 };
521
522 sai2: sai@2b60000 {
Alison Wang50897cb2015-07-15 16:02:46 +0800523 #sound-dai-cells = <0>;
Jingchang Lu72392802014-10-31 17:01:08 +0800524 compatible = "fsl,vf610-sai";
525 reg = <0x0 0x2b60000 0x0 0x10000>;
526 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800527 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
528 <&clockgen 4 1>, <&clockgen 4 1>;
Alison Wang50897cb2015-07-15 16:02:46 +0800529 clock-names = "bus", "mclk1", "mclk2", "mclk3";
Jingchang Lu72392802014-10-31 17:01:08 +0800530 dma-names = "tx", "rx";
531 dmas = <&edma0 1 45>,
532 <&edma0 1 44>;
Jingchang Lu72392802014-10-31 17:01:08 +0800533 status = "disabled";
534 };
535
536 edma0: edma@2c00000 {
537 #dma-cells = <2>;
538 compatible = "fsl,vf610-edma";
539 reg = <0x0 0x2c00000 0x0 0x10000>,
540 <0x0 0x2c10000 0x0 0x10000>,
541 <0x0 0x2c20000 0x0 0x10000>;
542 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
543 <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
544 interrupt-names = "edma-tx", "edma-err";
545 dma-channels = <32>;
546 big-endian;
547 clock-names = "dmamux0", "dmamux1";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800548 clocks = <&clockgen 4 1>,
549 <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800550 };
551
Meng Yiab0087d2015-11-25 14:46:06 +0800552 dcu: dcu@2ce0000 {
553 compatible = "fsl,ls1021a-dcu";
554 reg = <0x0 0x2ce0000 0x0 0x10000>;
555 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800556 clocks = <&clockgen 4 0>,
557 <&clockgen 4 0>;
Stefan Agner5d01e992016-04-04 22:28:41 -0700558 clock-names = "dcu", "pix";
Meng Yiab0087d2015-11-25 14:46:06 +0800559 big-endian;
560 status = "disabled";
561 };
562
Jingchang Lu72392802014-10-31 17:01:08 +0800563 mdio0: mdio@2d24000 {
564 compatible = "gianfar";
565 device_type = "mdio";
566 #address-cells = <1>;
567 #size-cells = <0>;
568 reg = <0x0 0x2d24000 0x0 0x4000>;
569 };
570
Yangbo Lu3db66fd2016-02-24 17:26:54 +0800571 ptp_clock@2d10e00 {
572 compatible = "fsl,etsec-ptp";
573 reg = <0x0 0x2d10e00 0x0 0xb0>;
574 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
575 fsl,tclk-period = <5>;
576 fsl,tmr-prsc = <2>;
577 fsl,tmr-add = <0xaaaaaaab>;
578 fsl,tmr-fiper1 = <999999990>;
579 fsl,tmr-fiper2 = <99990>;
580 fsl,max-adj = <499999999>;
581 };
582
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300583 enet0: ethernet@2d10000 {
584 compatible = "fsl,etsec2";
585 device_type = "network";
586 #address-cells = <2>;
587 #size-cells = <2>;
588 interrupt-parent = <&gic>;
589 model = "eTSEC";
590 fsl,magic-packet;
591 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800592 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300593
594 queue-group@2d10000 {
595 #address-cells = <2>;
596 #size-cells = <2>;
597 reg = <0x0 0x2d10000 0x0 0x1000>;
598 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
599 <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
600 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
601 };
602
603 queue-group@2d14000 {
604 #address-cells = <2>;
605 #size-cells = <2>;
606 reg = <0x0 0x2d14000 0x0 0x1000>;
607 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
608 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
609 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
610 };
611 };
612
613 enet1: ethernet@2d50000 {
614 compatible = "fsl,etsec2";
615 device_type = "network";
616 #address-cells = <2>;
617 #size-cells = <2>;
618 interrupt-parent = <&gic>;
619 model = "eTSEC";
620 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800621 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300622
623 queue-group@2d50000 {
624 #address-cells = <2>;
625 #size-cells = <2>;
626 reg = <0x0 0x2d50000 0x0 0x1000>;
627 interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
628 <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
629 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
630 };
631
632 queue-group@2d54000 {
633 #address-cells = <2>;
634 #size-cells = <2>;
635 reg = <0x0 0x2d54000 0x0 0x1000>;
636 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
637 <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
638 <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
639 };
640 };
641
642 enet2: ethernet@2d90000 {
643 compatible = "fsl,etsec2";
644 device_type = "network";
645 #address-cells = <2>;
646 #size-cells = <2>;
647 interrupt-parent = <&gic>;
648 model = "eTSEC";
649 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800650 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300651
652 queue-group@2d90000 {
653 #address-cells = <2>;
654 #size-cells = <2>;
655 reg = <0x0 0x2d90000 0x0 0x1000>;
656 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
657 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
658 <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
659 };
660
661 queue-group@2d94000 {
662 #address-cells = <2>;
663 #size-cells = <2>;
664 reg = <0x0 0x2d94000 0x0 0x1000>;
665 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
666 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
667 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
668 };
669 };
670
Jingchang Lu72392802014-10-31 17:01:08 +0800671 usb@8600000 {
672 compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
673 reg = <0x0 0x8600000 0x0 0x1000>;
674 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
675 dr_mode = "host";
676 phy_type = "ulpi";
677 };
678
679 usb3@3100000 {
680 compatible = "snps,dwc3";
681 reg = <0x0 0x3100000 0x0 0x10000>;
682 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
683 dr_mode = "host";
Rajesh Bhagat607e2662015-10-14 11:04:12 +0530684 snps,quirk-frame-length-adjustment = <0x20>;
Rajesh Bhagat6f0808c2016-06-10 11:53:44 +0530685 snps,dis_rxdet_inp3_quirk;
Jingchang Lu72392802014-10-31 17:01:08 +0800686 };
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800687
688 pcie@3400000 {
689 compatible = "fsl,ls1021a-pcie", "snps,dw-pcie";
690 reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */
691 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
692 reg-names = "regs", "config";
693 interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
694 fsl,pcie-scfg = <&scfg 0>;
695 #address-cells = <3>;
696 #size-cells = <2>;
697 device_type = "pci";
698 num-lanes = <4>;
699 bus-range = <0x0 0xff>;
700 ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
701 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Minghuan Liandf301582017-07-05 14:58:58 +0800702 msi-parent = <&msi1>, <&msi2>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800703 #interrupt-cells = <1>;
704 interrupt-map-mask = <0 0 0 7>;
705 interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
706 <0000 0 0 2 &gic GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>,
707 <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
708 <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
709 };
710
711 pcie@3500000 {
712 compatible = "fsl,ls1021a-pcie", "snps,dw-pcie";
713 reg = <0x00 0x03500000 0x0 0x00010000 /* controller registers */
714 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
715 reg-names = "regs", "config";
716 interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
717 fsl,pcie-scfg = <&scfg 1>;
718 #address-cells = <3>;
719 #size-cells = <2>;
720 device_type = "pci";
721 num-lanes = <4>;
722 bus-range = <0x0 0xff>;
723 ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
724 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Minghuan Liandf301582017-07-05 14:58:58 +0800725 msi-parent = <&msi1>, <&msi2>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800726 #interrupt-cells = <1>;
727 interrupt-map-mask = <0 0 0 7>;
728 interrupt-map = <0000 0 0 1 &gic GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
729 <0000 0 0 2 &gic GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
730 <0000 0 0 3 &gic GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
731 <0000 0 0 4 &gic GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
732 };
Jingchang Lu72392802014-10-31 17:01:08 +0800733 };
734};