blob: a861a4b9e319202f37733674d3105a311a12d9b2 [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 Jia4d9e9cbb2016-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 Jia4d9e9cbb2016-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 Jia4d9e9cbb2016-10-09 14:47:04 +080079 #cooling-cells = <2>;
Jingchang Lu72392802014-10-31 17:01:08 +080080 };
81
Hongtao Jia4d9e9cbb2016-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
SZ Lin85f8ee72017-09-12 14:49:25 +0800157 qspi: quadspi@1550000 {
158 compatible = "fsl,ls1021a-qspi";
159 #address-cells = <1>;
160 #size-cells = <0>;
161 reg = <0x0 0x1550000 0x0 0x10000>,
162 <0x0 0x40000000 0x0 0x40000000>;
163 reg-names = "QuadSPI", "QuadSPI-memory";
164 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
165 clock-names = "qspi_en", "qspi";
166 clocks = <&clockgen 4 1>, <&clockgen 4 1>;
167 big-endian;
168 status = "disabled";
169 };
170
Jingchang Lu72392802014-10-31 17:01:08 +0800171 esdhc: esdhc@1560000 {
Rasmus Villemoesd5c7b4d2017-11-16 13:15:26 +0100172 compatible = "fsl,ls1021a-esdhc", "fsl,esdhc";
Jingchang Lu72392802014-10-31 17:01:08 +0800173 reg = <0x0 0x1560000 0x0 0x10000>;
174 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
175 clock-frequency = <0>;
176 voltage-ranges = <1800 1800 3300 3300>;
177 sdhci,auto-cmd12;
178 big-endian;
179 bus-width = <4>;
180 status = "disabled";
181 };
182
Tang Yuantian318f05e2015-12-15 15:14:14 +0800183 sata: sata@3200000 {
184 compatible = "fsl,ls1021a-ahci";
185 reg = <0x0 0x3200000 0x0 0x10000>,
186 <0x0 0x20220520 0x0 0x4>;
187 reg-names = "ahci", "sata-ecc";
188 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800189 clocks = <&clockgen 4 1>;
Tang Yuantian318f05e2015-12-15 15:14:14 +0800190 dma-coherent;
191 status = "disabled";
192 };
193
Jingchang Lu72392802014-10-31 17:01:08 +0800194 scfg: scfg@1570000 {
195 compatible = "fsl,ls1021a-scfg", "syscon";
196 reg = <0x0 0x1570000 0x0 0x10000>;
Xiubo Li4fe6be02014-11-24 17:17:24 +0800197 big-endian;
Jingchang Lu72392802014-10-31 17:01:08 +0800198 };
199
Horia Geantă816aa612015-08-12 10:42:41 +0300200 crypto: crypto@1700000 {
201 compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
202 fsl,sec-era = <7>;
203 #address-cells = <1>;
204 #size-cells = <1>;
205 reg = <0x0 0x1700000 0x0 0x100000>;
206 ranges = <0x0 0x0 0x1700000 0x100000>;
207 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
208
209 sec_jr0: jr@10000 {
210 compatible = "fsl,sec-v5.0-job-ring",
211 "fsl,sec-v4.0-job-ring";
212 reg = <0x10000 0x10000>;
213 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
214 };
215
216 sec_jr1: jr@20000 {
217 compatible = "fsl,sec-v5.0-job-ring",
218 "fsl,sec-v4.0-job-ring";
219 reg = <0x20000 0x10000>;
220 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
221 };
222
223 sec_jr2: jr@30000 {
224 compatible = "fsl,sec-v5.0-job-ring",
225 "fsl,sec-v4.0-job-ring";
226 reg = <0x30000 0x10000>;
227 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
228 };
229
230 sec_jr3: jr@40000 {
231 compatible = "fsl,sec-v5.0-job-ring",
232 "fsl,sec-v4.0-job-ring";
233 reg = <0x40000 0x10000>;
234 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
235 };
236
237 };
238
Jingchang Lu72392802014-10-31 17:01:08 +0800239 clockgen: clocking@1ee1000 {
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800240 compatible = "fsl,ls1021a-clockgen";
241 reg = <0x0 0x1ee1000 0x0 0x1000>;
242 #clock-cells = <2>;
243 clocks = <&sysclk>;
Jingchang Lu72392802014-10-31 17:01:08 +0800244 };
245
Hongtao Jia4d9e9cbb2016-10-09 14:47:04 +0800246 tmu: tmu@1f00000 {
247 compatible = "fsl,qoriq-tmu";
248 reg = <0x0 0x1f00000 0x0 0x10000>;
249 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
250 fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x30061>;
251 fsl,tmu-calibration = <0x00000000 0x0000000f
252 0x00000001 0x00000017
253 0x00000002 0x0000001e
254 0x00000003 0x00000026
255 0x00000004 0x0000002e
256 0x00000005 0x00000035
257 0x00000006 0x0000003d
258 0x00000007 0x00000044
259 0x00000008 0x0000004c
260 0x00000009 0x00000053
261 0x0000000a 0x0000005b
262 0x0000000b 0x00000064
263
264 0x00010000 0x00000011
265 0x00010001 0x0000001c
266 0x00010002 0x00000024
267 0x00010003 0x0000002b
268 0x00010004 0x00000034
269 0x00010005 0x00000039
270 0x00010006 0x00000042
271 0x00010007 0x0000004c
272 0x00010008 0x00000051
273 0x00010009 0x0000005a
274 0x0001000a 0x00000063
275
276 0x00020000 0x00000013
277 0x00020001 0x00000019
278 0x00020002 0x00000024
279 0x00020003 0x0000002c
280 0x00020004 0x00000035
281 0x00020005 0x0000003d
282 0x00020006 0x00000046
283 0x00020007 0x00000050
284 0x00020008 0x00000059
285
286 0x00030000 0x00000002
287 0x00030001 0x0000000d
288 0x00030002 0x00000019
289 0x00030003 0x00000024>;
290 #thermal-sensor-cells = <1>;
291 };
292
293 thermal-zones {
294 cpu_thermal: cpu-thermal {
295 polling-delay-passive = <1000>;
296 polling-delay = <5000>;
297
298 thermal-sensors = <&tmu 0>;
299
300 trips {
301 cpu_alert: cpu-alert {
302 temperature = <85000>;
303 hysteresis = <2000>;
304 type = "passive";
305 };
306 cpu_crit: cpu-crit {
307 temperature = <95000>;
308 hysteresis = <2000>;
309 type = "critical";
310 };
311 };
312
313 cooling-maps {
314 map0 {
315 trip = <&cpu_alert>;
316 cooling-device =
317 <&cpu0 THERMAL_NO_LIMIT
318 THERMAL_NO_LIMIT>;
319 };
320 };
321 };
322 };
323
Jingchang Lu72392802014-10-31 17:01:08 +0800324 dspi0: dspi@2100000 {
Haikun Wangc47d6e382015-07-08 10:43:40 +0800325 compatible = "fsl,ls1021a-v1.0-dspi";
Jingchang Lu72392802014-10-31 17:01:08 +0800326 #address-cells = <1>;
327 #size-cells = <0>;
328 reg = <0x0 0x2100000 0x0 0x10000>;
329 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
330 clock-names = "dspi";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800331 clocks = <&clockgen 4 1>;
Alexander Stein5b9f9672016-03-23 10:49:06 +0100332 spi-num-chipselects = <6>;
Jingchang Lu72392802014-10-31 17:01:08 +0800333 big-endian;
334 status = "disabled";
335 };
336
337 dspi1: dspi@2110000 {
Haikun Wangc47d6e382015-07-08 10:43:40 +0800338 compatible = "fsl,ls1021a-v1.0-dspi";
Jingchang Lu72392802014-10-31 17:01:08 +0800339 #address-cells = <1>;
340 #size-cells = <0>;
341 reg = <0x0 0x2110000 0x0 0x10000>;
342 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
343 clock-names = "dspi";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800344 clocks = <&clockgen 4 1>;
Alexander Stein5b9f9672016-03-23 10:49:06 +0100345 spi-num-chipselects = <6>;
Jingchang Lu72392802014-10-31 17:01:08 +0800346 big-endian;
347 status = "disabled";
348 };
349
350 i2c0: i2c@2180000 {
351 compatible = "fsl,vf610-i2c";
352 #address-cells = <1>;
353 #size-cells = <0>;
354 reg = <0x0 0x2180000 0x0 0x10000>;
355 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
356 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800357 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800358 status = "disabled";
359 };
360
361 i2c1: i2c@2190000 {
362 compatible = "fsl,vf610-i2c";
363 #address-cells = <1>;
364 #size-cells = <0>;
365 reg = <0x0 0x2190000 0x0 0x10000>;
366 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
367 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800368 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800369 status = "disabled";
370 };
371
372 i2c2: i2c@21a0000 {
373 compatible = "fsl,vf610-i2c";
374 #address-cells = <1>;
375 #size-cells = <0>;
376 reg = <0x0 0x21a0000 0x0 0x10000>;
377 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
378 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800379 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800380 status = "disabled";
381 };
382
383 uart0: serial@21c0500 {
384 compatible = "fsl,16550-FIFO64", "ns16550a";
385 reg = <0x0 0x21c0500 0x0 0x100>;
386 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
387 clock-frequency = <0>;
388 fifo-size = <15>;
389 status = "disabled";
390 };
391
392 uart1: serial@21c0600 {
393 compatible = "fsl,16550-FIFO64", "ns16550a";
394 reg = <0x0 0x21c0600 0x0 0x100>;
395 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
396 clock-frequency = <0>;
397 fifo-size = <15>;
398 status = "disabled";
399 };
400
401 uart2: serial@21d0500 {
402 compatible = "fsl,16550-FIFO64", "ns16550a";
403 reg = <0x0 0x21d0500 0x0 0x100>;
404 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
405 clock-frequency = <0>;
406 fifo-size = <15>;
407 status = "disabled";
408 };
409
410 uart3: serial@21d0600 {
411 compatible = "fsl,16550-FIFO64", "ns16550a";
412 reg = <0x0 0x21d0600 0x0 0x100>;
413 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
414 clock-frequency = <0>;
415 fifo-size = <15>;
416 status = "disabled";
417 };
418
Liu Gangc54dd442016-03-23 17:47:20 +0800419 gpio0: gpio@2300000 {
420 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
421 reg = <0x0 0x2300000 0x0 0x10000>;
422 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
423 gpio-controller;
424 #gpio-cells = <2>;
425 interrupt-controller;
426 #interrupt-cells = <2>;
427 };
428
429 gpio1: gpio@2310000 {
430 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
431 reg = <0x0 0x2310000 0x0 0x10000>;
432 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
433 gpio-controller;
434 #gpio-cells = <2>;
435 interrupt-controller;
436 #interrupt-cells = <2>;
437 };
438
439 gpio2: gpio@2320000 {
440 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
441 reg = <0x0 0x2320000 0x0 0x10000>;
442 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
443 gpio-controller;
444 #gpio-cells = <2>;
445 interrupt-controller;
446 #interrupt-cells = <2>;
447 };
448
449 gpio3: gpio@2330000 {
450 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
451 reg = <0x0 0x2330000 0x0 0x10000>;
452 interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
453 gpio-controller;
454 #gpio-cells = <2>;
455 interrupt-controller;
456 #interrupt-cells = <2>;
457 };
458
Jingchang Lu72392802014-10-31 17:01:08 +0800459 lpuart0: serial@2950000 {
460 compatible = "fsl,ls1021a-lpuart";
461 reg = <0x0 0x2950000 0x0 0x1000>;
462 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
463 clocks = <&sysclk>;
464 clock-names = "ipg";
465 status = "disabled";
466 };
467
468 lpuart1: serial@2960000 {
469 compatible = "fsl,ls1021a-lpuart";
470 reg = <0x0 0x2960000 0x0 0x1000>;
471 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800472 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800473 clock-names = "ipg";
474 status = "disabled";
475 };
476
477 lpuart2: serial@2970000 {
478 compatible = "fsl,ls1021a-lpuart";
479 reg = <0x0 0x2970000 0x0 0x1000>;
480 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800481 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800482 clock-names = "ipg";
483 status = "disabled";
484 };
485
486 lpuart3: serial@2980000 {
487 compatible = "fsl,ls1021a-lpuart";
488 reg = <0x0 0x2980000 0x0 0x1000>;
489 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800490 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800491 clock-names = "ipg";
492 status = "disabled";
493 };
494
495 lpuart4: serial@2990000 {
496 compatible = "fsl,ls1021a-lpuart";
497 reg = <0x0 0x2990000 0x0 0x1000>;
498 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800499 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800500 clock-names = "ipg";
501 status = "disabled";
502 };
503
504 lpuart5: serial@29a0000 {
505 compatible = "fsl,ls1021a-lpuart";
506 reg = <0x0 0x29a0000 0x0 0x1000>;
507 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800508 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800509 clock-names = "ipg";
510 status = "disabled";
511 };
512
513 wdog0: watchdog@2ad0000 {
514 compatible = "fsl,imx21-wdt";
515 reg = <0x0 0x2ad0000 0x0 0x10000>;
516 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800517 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800518 clock-names = "wdog-en";
519 big-endian;
520 };
521
522 sai1: sai@2b50000 {
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 0x2b50000 0x0 0x10000>;
526 interrupts = <GIC_SPI 132 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 47>,
532 <&edma0 1 46>;
Jingchang Lu72392802014-10-31 17:01:08 +0800533 status = "disabled";
534 };
535
536 sai2: sai@2b60000 {
Alison Wang50897cb2015-07-15 16:02:46 +0800537 #sound-dai-cells = <0>;
Jingchang Lu72392802014-10-31 17:01:08 +0800538 compatible = "fsl,vf610-sai";
539 reg = <0x0 0x2b60000 0x0 0x10000>;
540 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800541 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
542 <&clockgen 4 1>, <&clockgen 4 1>;
Alison Wang50897cb2015-07-15 16:02:46 +0800543 clock-names = "bus", "mclk1", "mclk2", "mclk3";
Jingchang Lu72392802014-10-31 17:01:08 +0800544 dma-names = "tx", "rx";
545 dmas = <&edma0 1 45>,
546 <&edma0 1 44>;
Jingchang Lu72392802014-10-31 17:01:08 +0800547 status = "disabled";
548 };
549
550 edma0: edma@2c00000 {
551 #dma-cells = <2>;
552 compatible = "fsl,vf610-edma";
553 reg = <0x0 0x2c00000 0x0 0x10000>,
554 <0x0 0x2c10000 0x0 0x10000>,
555 <0x0 0x2c20000 0x0 0x10000>;
556 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
557 <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
558 interrupt-names = "edma-tx", "edma-err";
559 dma-channels = <32>;
560 big-endian;
561 clock-names = "dmamux0", "dmamux1";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800562 clocks = <&clockgen 4 1>,
563 <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800564 };
565
Meng Yiab0087d2015-11-25 14:46:06 +0800566 dcu: dcu@2ce0000 {
567 compatible = "fsl,ls1021a-dcu";
568 reg = <0x0 0x2ce0000 0x0 0x10000>;
569 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800570 clocks = <&clockgen 4 0>,
571 <&clockgen 4 0>;
Stefan Agner5d01e992016-04-04 22:28:41 -0700572 clock-names = "dcu", "pix";
Meng Yiab0087d2015-11-25 14:46:06 +0800573 big-endian;
574 status = "disabled";
575 };
576
Jingchang Lu72392802014-10-31 17:01:08 +0800577 mdio0: mdio@2d24000 {
578 compatible = "gianfar";
579 device_type = "mdio";
580 #address-cells = <1>;
581 #size-cells = <0>;
582 reg = <0x0 0x2d24000 0x0 0x4000>;
583 };
584
Yangbo Lu3db66fd2016-02-24 17:26:54 +0800585 ptp_clock@2d10e00 {
586 compatible = "fsl,etsec-ptp";
587 reg = <0x0 0x2d10e00 0x0 0xb0>;
588 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
589 fsl,tclk-period = <5>;
590 fsl,tmr-prsc = <2>;
591 fsl,tmr-add = <0xaaaaaaab>;
Yangbo Lubdba5012017-11-29 14:54:58 +0800592 fsl,tmr-fiper1 = <999999995>;
Yangbo Lu3db66fd2016-02-24 17:26:54 +0800593 fsl,tmr-fiper2 = <99990>;
594 fsl,max-adj = <499999999>;
595 };
596
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300597 enet0: ethernet@2d10000 {
598 compatible = "fsl,etsec2";
599 device_type = "network";
600 #address-cells = <2>;
601 #size-cells = <2>;
602 interrupt-parent = <&gic>;
603 model = "eTSEC";
604 fsl,magic-packet;
605 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800606 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300607
608 queue-group@2d10000 {
609 #address-cells = <2>;
610 #size-cells = <2>;
611 reg = <0x0 0x2d10000 0x0 0x1000>;
612 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
613 <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
614 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
615 };
616
617 queue-group@2d14000 {
618 #address-cells = <2>;
619 #size-cells = <2>;
620 reg = <0x0 0x2d14000 0x0 0x1000>;
621 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
622 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
623 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
624 };
625 };
626
627 enet1: ethernet@2d50000 {
628 compatible = "fsl,etsec2";
629 device_type = "network";
630 #address-cells = <2>;
631 #size-cells = <2>;
632 interrupt-parent = <&gic>;
633 model = "eTSEC";
634 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800635 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300636
637 queue-group@2d50000 {
638 #address-cells = <2>;
639 #size-cells = <2>;
640 reg = <0x0 0x2d50000 0x0 0x1000>;
641 interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
642 <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
643 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
644 };
645
646 queue-group@2d54000 {
647 #address-cells = <2>;
648 #size-cells = <2>;
649 reg = <0x0 0x2d54000 0x0 0x1000>;
650 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
651 <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
652 <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
653 };
654 };
655
656 enet2: ethernet@2d90000 {
657 compatible = "fsl,etsec2";
658 device_type = "network";
659 #address-cells = <2>;
660 #size-cells = <2>;
661 interrupt-parent = <&gic>;
662 model = "eTSEC";
663 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800664 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300665
666 queue-group@2d90000 {
667 #address-cells = <2>;
668 #size-cells = <2>;
669 reg = <0x0 0x2d90000 0x0 0x1000>;
670 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
671 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
672 <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
673 };
674
675 queue-group@2d94000 {
676 #address-cells = <2>;
677 #size-cells = <2>;
678 reg = <0x0 0x2d94000 0x0 0x1000>;
679 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
680 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
681 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
682 };
683 };
684
Jingchang Lu72392802014-10-31 17:01:08 +0800685 usb@8600000 {
686 compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
687 reg = <0x0 0x8600000 0x0 0x1000>;
688 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
689 dr_mode = "host";
690 phy_type = "ulpi";
691 };
692
693 usb3@3100000 {
694 compatible = "snps,dwc3";
695 reg = <0x0 0x3100000 0x0 0x10000>;
696 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
697 dr_mode = "host";
Rajesh Bhagat607e2662015-10-14 11:04:12 +0530698 snps,quirk-frame-length-adjustment = <0x20>;
Rajesh Bhagat6f0808c2016-06-10 11:53:44 +0530699 snps,dis_rxdet_inp3_quirk;
Jingchang Lu72392802014-10-31 17:01:08 +0800700 };
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800701
702 pcie@3400000 {
703 compatible = "fsl,ls1021a-pcie", "snps,dw-pcie";
704 reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */
705 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
706 reg-names = "regs", "config";
707 interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
708 fsl,pcie-scfg = <&scfg 0>;
709 #address-cells = <3>;
710 #size-cells = <2>;
711 device_type = "pci";
712 num-lanes = <4>;
713 bus-range = <0x0 0xff>;
714 ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
715 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Minghuan Liandf301582017-07-05 14:58:58 +0800716 msi-parent = <&msi1>, <&msi2>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800717 #interrupt-cells = <1>;
718 interrupt-map-mask = <0 0 0 7>;
719 interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
720 <0000 0 0 2 &gic GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>,
721 <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
722 <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
723 };
724
725 pcie@3500000 {
726 compatible = "fsl,ls1021a-pcie", "snps,dw-pcie";
727 reg = <0x00 0x03500000 0x0 0x00010000 /* controller registers */
728 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
729 reg-names = "regs", "config";
730 interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
731 fsl,pcie-scfg = <&scfg 1>;
732 #address-cells = <3>;
733 #size-cells = <2>;
734 device_type = "pci";
735 num-lanes = <4>;
736 bus-range = <0x0 0xff>;
737 ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
738 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Minghuan Liandf301582017-07-05 14:58:58 +0800739 msi-parent = <&msi1>, <&msi2>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800740 #interrupt-cells = <1>;
741 interrupt-map-mask = <0 0 0 7>;
742 interrupt-map = <0000 0 0 1 &gic GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
743 <0000 0 0 2 &gic GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
744 <0000 0 0 3 &gic GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
745 <0000 0 0 4 &gic GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
746 };
Jingchang Lu72392802014-10-31 17:01:08 +0800747 };
748};