blob: 827373ef1a547ef6e5f74bd49787a3237853bc76 [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
Jingchang Lu72392802014-10-31 17:01:08 +080048#include <dt-bindings/interrupt-controller/arm-gic.h>
Hongtao Jia4d9e9cbb2016-10-09 14:47:04 +080049#include <dt-bindings/thermal/thermal.h>
Jingchang Lu72392802014-10-31 17:01:08 +080050
51/ {
Rob Herringabe60a32019-01-09 10:26:14 -060052 #address-cells = <2>;
53 #size-cells = <2>;
Jingchang Lu72392802014-10-31 17:01:08 +080054 compatible = "fsl,ls1021a";
55 interrupt-parent = <&gic>;
56
57 aliases {
Horia Geantă816aa612015-08-12 10:42:41 +030058 crypto = &crypto;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +030059 ethernet0 = &enet0;
60 ethernet1 = &enet1;
61 ethernet2 = &enet2;
Biwen Li22b6db72020-06-24 10:45:01 +080062 rtc1 = &ftm_alarm0;
Jingchang Lu72392802014-10-31 17:01:08 +080063 serial0 = &lpuart0;
64 serial1 = &lpuart1;
65 serial2 = &lpuart2;
66 serial3 = &lpuart3;
67 serial4 = &lpuart4;
68 serial5 = &lpuart5;
69 sysclk = &sysclk;
70 };
71
72 cpus {
73 #address-cells = <1>;
74 #size-cells = <0>;
75
Hongtao Jia4d9e9cbb2016-10-09 14:47:04 +080076 cpu0: cpu@f00 {
Jingchang Lu72392802014-10-31 17:01:08 +080077 compatible = "arm,cortex-a7";
78 device_type = "cpu";
79 reg = <0xf00>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +080080 clocks = <&clockgen 1 0>;
Hongtao Jia4d9e9cbb2016-10-09 14:47:04 +080081 #cooling-cells = <2>;
Jingchang Lu72392802014-10-31 17:01:08 +080082 };
83
Hongtao Jia4d9e9cbb2016-10-09 14:47:04 +080084 cpu1: cpu@f01 {
Jingchang Lu72392802014-10-31 17:01:08 +080085 compatible = "arm,cortex-a7";
86 device_type = "cpu";
87 reg = <0xf01>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +080088 clocks = <&clockgen 1 0>;
Viresh Kumar47768f32018-05-25 16:01:48 +053089 #cooling-cells = <2>;
Jingchang Lu72392802014-10-31 17:01:08 +080090 };
91 };
92
Rob Herringabe60a32019-01-09 10:26:14 -060093 memory {
94 device_type = "memory";
95 reg = <0x0 0x0 0x0 0x0>;
96 };
97
Yuantian Tangb6f5e702017-06-09 14:25:45 +080098 sysclk: sysclk {
99 compatible = "fixed-clock";
100 #clock-cells = <0>;
101 clock-frequency = <100000000>;
102 clock-output-names = "sysclk";
103 };
104
Jingchang Lu72392802014-10-31 17:01:08 +0800105 timer {
106 compatible = "arm,armv7-timer";
107 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
108 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
109 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
110 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
111 };
112
113 pmu {
114 compatible = "arm,cortex-a7-pmu";
115 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
116 <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
Esben Haabendal67421392017-12-05 09:22:25 +0100117 interrupt-affinity = <&cpu0>, <&cpu1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800118 };
119
Rasmus Villemoes7eaec552017-12-05 09:12:47 +0100120 reboot {
121 compatible = "syscon-reboot";
122 regmap = <&dcfg>;
123 offset = <0xb0>;
124 mask = <0x02>;
Jingchang Lu72392802014-10-31 17:01:08 +0800125 };
126
127 soc {
128 compatible = "simple-bus";
129 #address-cells = <2>;
130 #size-cells = <2>;
131 device_type = "soc";
132 interrupt-parent = <&gic>;
133 ranges;
134
Patrick Havelangecd8281a2018-12-11 16:48:34 +0100135 ddr: memory-controller@1080000 {
136 compatible = "fsl,qoriq-memory-controller";
137 reg = <0x0 0x1080000 0x0 0x1000>;
138 interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
139 big-endian;
140 };
141
Jingchang Lu72392802014-10-31 17:01:08 +0800142 gic: interrupt-controller@1400000 {
Marc Zyngier387720c2017-01-18 09:27:28 +0000143 compatible = "arm,gic-400", "arm,cortex-a7-gic";
Jingchang Lu72392802014-10-31 17:01:08 +0800144 #interrupt-cells = <3>;
145 interrupt-controller;
146 reg = <0x0 0x1401000 0x0 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +0000147 <0x0 0x1402000 0x0 0x2000>,
Jingchang Lu72392802014-10-31 17:01:08 +0800148 <0x0 0x1404000 0x0 0x2000>,
149 <0x0 0x1406000 0x0 0x2000>;
150 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
151
152 };
153
Minghuan Lianf4a458f2016-04-06 19:02:07 +0800154 msi1: msi-controller@1570e00 {
Minghuan Lianc9041ea2017-07-05 14:58:56 +0800155 compatible = "fsl,ls1021a-msi";
Minghuan Lianf4a458f2016-04-06 19:02:07 +0800156 reg = <0x0 0x1570e00 0x0 0x8>;
157 msi-controller;
158 interrupts = <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>;
159 };
160
161 msi2: msi-controller@1570e08 {
Minghuan Lianc9041ea2017-07-05 14:58:56 +0800162 compatible = "fsl,ls1021a-msi";
Minghuan Lianf4a458f2016-04-06 19:02:07 +0800163 reg = <0x0 0x1570e08 0x0 0x8>;
164 msi-controller;
165 interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
166 };
167
Jingchang Lu72392802014-10-31 17:01:08 +0800168 ifc: ifc@1530000 {
169 compatible = "fsl,ifc", "simple-bus";
170 reg = <0x0 0x1530000 0x0 0x10000>;
171 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
172 };
173
174 dcfg: dcfg@1ee0000 {
175 compatible = "fsl,ls1021a-dcfg", "syscon";
176 reg = <0x0 0x1ee0000 0x0 0x10000>;
177 big-endian;
178 };
179
Rob Herring5a2ecf02018-09-13 13:12:29 -0500180 qspi: spi@1550000 {
SZ Lin85f8ee72017-09-12 14:49:25 +0800181 compatible = "fsl,ls1021a-qspi";
182 #address-cells = <1>;
183 #size-cells = <0>;
184 reg = <0x0 0x1550000 0x0 0x10000>,
Matthias Schiffer81dbbb42020-07-28 12:50:06 +0200185 <0x0 0x40000000 0x0 0x20000000>;
SZ Lin85f8ee72017-09-12 14:49:25 +0800186 reg-names = "QuadSPI", "QuadSPI-memory";
187 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
188 clock-names = "qspi_en", "qspi";
189 clocks = <&clockgen 4 1>, <&clockgen 4 1>;
SZ Lin85f8ee72017-09-12 14:49:25 +0800190 status = "disabled";
191 };
192
Jingchang Lu72392802014-10-31 17:01:08 +0800193 esdhc: esdhc@1560000 {
Rasmus Villemoesd5c7b4d2017-11-16 13:15:26 +0100194 compatible = "fsl,ls1021a-esdhc", "fsl,esdhc";
Jingchang Lu72392802014-10-31 17:01:08 +0800195 reg = <0x0 0x1560000 0x0 0x10000>;
196 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
197 clock-frequency = <0>;
198 voltage-ranges = <1800 1800 3300 3300>;
199 sdhci,auto-cmd12;
200 big-endian;
201 bus-width = <4>;
202 status = "disabled";
203 };
204
Tang Yuantian318f05e2015-12-15 15:14:14 +0800205 sata: sata@3200000 {
206 compatible = "fsl,ls1021a-ahci";
207 reg = <0x0 0x3200000 0x0 0x10000>,
208 <0x0 0x20220520 0x0 0x4>;
209 reg-names = "ahci", "sata-ecc";
210 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800211 clocks = <&clockgen 4 1>;
Tang Yuantian318f05e2015-12-15 15:14:14 +0800212 dma-coherent;
213 status = "disabled";
214 };
215
Jingchang Lu72392802014-10-31 17:01:08 +0800216 scfg: scfg@1570000 {
217 compatible = "fsl,ls1021a-scfg", "syscon";
218 reg = <0x0 0x1570000 0x0 0x10000>;
Xiubo Li4fe6be02014-11-24 17:17:24 +0800219 big-endian;
Rasmus Villemoesd27f9d62019-11-14 12:02:52 +0100220 #address-cells = <1>;
221 #size-cells = <1>;
222 ranges = <0x0 0x0 0x1570000 0x10000>;
223
224 extirq: interrupt-controller@1ac {
225 compatible = "fsl,ls1021a-extirq";
226 #interrupt-cells = <2>;
227 #address-cells = <0>;
228 interrupt-controller;
229 reg = <0x1ac 4>;
230 interrupt-map =
231 <0 0 &gic GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
232 <1 0 &gic GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
233 <2 0 &gic GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
234 <3 0 &gic GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
235 <4 0 &gic GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
236 <5 0 &gic GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
237 interrupt-map-mask = <0xffffffff 0x0>;
238 };
Jingchang Lu72392802014-10-31 17:01:08 +0800239 };
240
Horia Geantă816aa612015-08-12 10:42:41 +0300241 crypto: crypto@1700000 {
242 compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
243 fsl,sec-era = <7>;
244 #address-cells = <1>;
245 #size-cells = <1>;
246 reg = <0x0 0x1700000 0x0 0x100000>;
247 ranges = <0x0 0x0 0x1700000 0x100000>;
248 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
249
250 sec_jr0: jr@10000 {
251 compatible = "fsl,sec-v5.0-job-ring",
252 "fsl,sec-v4.0-job-ring";
253 reg = <0x10000 0x10000>;
254 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
255 };
256
257 sec_jr1: jr@20000 {
258 compatible = "fsl,sec-v5.0-job-ring",
259 "fsl,sec-v4.0-job-ring";
260 reg = <0x20000 0x10000>;
261 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
262 };
263
264 sec_jr2: jr@30000 {
265 compatible = "fsl,sec-v5.0-job-ring",
266 "fsl,sec-v4.0-job-ring";
267 reg = <0x30000 0x10000>;
268 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
269 };
270
271 sec_jr3: jr@40000 {
272 compatible = "fsl,sec-v5.0-job-ring",
273 "fsl,sec-v4.0-job-ring";
274 reg = <0x40000 0x10000>;
275 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
276 };
277
278 };
279
Jingchang Lu72392802014-10-31 17:01:08 +0800280 clockgen: clocking@1ee1000 {
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800281 compatible = "fsl,ls1021a-clockgen";
282 reg = <0x0 0x1ee1000 0x0 0x1000>;
283 #clock-cells = <2>;
284 clocks = <&sysclk>;
Jingchang Lu72392802014-10-31 17:01:08 +0800285 };
286
Hongtao Jia4d9e9cbb2016-10-09 14:47:04 +0800287 tmu: tmu@1f00000 {
288 compatible = "fsl,qoriq-tmu";
289 reg = <0x0 0x1f00000 0x0 0x10000>;
290 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
291 fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x30061>;
292 fsl,tmu-calibration = <0x00000000 0x0000000f
293 0x00000001 0x00000017
294 0x00000002 0x0000001e
295 0x00000003 0x00000026
296 0x00000004 0x0000002e
297 0x00000005 0x00000035
298 0x00000006 0x0000003d
299 0x00000007 0x00000044
300 0x00000008 0x0000004c
301 0x00000009 0x00000053
302 0x0000000a 0x0000005b
303 0x0000000b 0x00000064
304
305 0x00010000 0x00000011
306 0x00010001 0x0000001c
307 0x00010002 0x00000024
308 0x00010003 0x0000002b
309 0x00010004 0x00000034
310 0x00010005 0x00000039
311 0x00010006 0x00000042
312 0x00010007 0x0000004c
313 0x00010008 0x00000051
314 0x00010009 0x0000005a
315 0x0001000a 0x00000063
316
317 0x00020000 0x00000013
318 0x00020001 0x00000019
319 0x00020002 0x00000024
320 0x00020003 0x0000002c
321 0x00020004 0x00000035
322 0x00020005 0x0000003d
323 0x00020006 0x00000046
324 0x00020007 0x00000050
325 0x00020008 0x00000059
326
327 0x00030000 0x00000002
328 0x00030001 0x0000000d
329 0x00030002 0x00000019
330 0x00030003 0x00000024>;
331 #thermal-sensor-cells = <1>;
332 };
333
334 thermal-zones {
335 cpu_thermal: cpu-thermal {
336 polling-delay-passive = <1000>;
337 polling-delay = <5000>;
338
339 thermal-sensors = <&tmu 0>;
340
341 trips {
342 cpu_alert: cpu-alert {
343 temperature = <85000>;
344 hysteresis = <2000>;
345 type = "passive";
346 };
347 cpu_crit: cpu-crit {
348 temperature = <95000>;
349 hysteresis = <2000>;
350 type = "critical";
351 };
352 };
353
354 cooling-maps {
355 map0 {
356 trip = <&cpu_alert>;
357 cooling-device =
358 <&cpu0 THERMAL_NO_LIMIT
Viresh Kumar4d8aa002018-11-16 15:31:11 +0530359 THERMAL_NO_LIMIT>,
360 <&cpu1 THERMAL_NO_LIMIT
Hongtao Jia4d9e9cbb2016-10-09 14:47:04 +0800361 THERMAL_NO_LIMIT>;
362 };
363 };
364 };
365 };
366
Rob Herring5a2ecf02018-09-13 13:12:29 -0500367 dspi0: spi@2100000 {
Haikun Wangc47d6e382015-07-08 10:43:40 +0800368 compatible = "fsl,ls1021a-v1.0-dspi";
Jingchang Lu72392802014-10-31 17:01:08 +0800369 #address-cells = <1>;
370 #size-cells = <0>;
371 reg = <0x0 0x2100000 0x0 0x10000>;
372 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
373 clock-names = "dspi";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800374 clocks = <&clockgen 4 1>;
Alexander Stein5b9f9672016-03-23 10:49:06 +0100375 spi-num-chipselects = <6>;
Jingchang Lu72392802014-10-31 17:01:08 +0800376 big-endian;
377 status = "disabled";
378 };
379
Rob Herring5a2ecf02018-09-13 13:12:29 -0500380 dspi1: spi@2110000 {
Haikun Wangc47d6e382015-07-08 10:43:40 +0800381 compatible = "fsl,ls1021a-v1.0-dspi";
Jingchang Lu72392802014-10-31 17:01:08 +0800382 #address-cells = <1>;
383 #size-cells = <0>;
384 reg = <0x0 0x2110000 0x0 0x10000>;
385 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
386 clock-names = "dspi";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800387 clocks = <&clockgen 4 1>;
Alexander Stein5b9f9672016-03-23 10:49:06 +0100388 spi-num-chipselects = <6>;
Jingchang Lu72392802014-10-31 17:01:08 +0800389 big-endian;
390 status = "disabled";
391 };
392
393 i2c0: i2c@2180000 {
394 compatible = "fsl,vf610-i2c";
395 #address-cells = <1>;
396 #size-cells = <0>;
397 reg = <0x0 0x2180000 0x0 0x10000>;
398 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
399 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800400 clocks = <&clockgen 4 1>;
Esben Haabendalcc07fd32018-08-09 14:32:07 +0200401 dma-names = "tx", "rx";
402 dmas = <&edma0 1 39>, <&edma0 1 38>;
Jingchang Lu72392802014-10-31 17:01:08 +0800403 status = "disabled";
404 };
405
406 i2c1: i2c@2190000 {
407 compatible = "fsl,vf610-i2c";
408 #address-cells = <1>;
409 #size-cells = <0>;
410 reg = <0x0 0x2190000 0x0 0x10000>;
411 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
412 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800413 clocks = <&clockgen 4 1>;
Esben Haabendalcc07fd32018-08-09 14:32:07 +0200414 dma-names = "tx", "rx";
415 dmas = <&edma0 1 37>, <&edma0 1 36>;
Jingchang Lu72392802014-10-31 17:01:08 +0800416 status = "disabled";
417 };
418
419 i2c2: i2c@21a0000 {
420 compatible = "fsl,vf610-i2c";
421 #address-cells = <1>;
422 #size-cells = <0>;
423 reg = <0x0 0x21a0000 0x0 0x10000>;
424 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
425 clock-names = "i2c";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800426 clocks = <&clockgen 4 1>;
Esben Haabendalcc07fd32018-08-09 14:32:07 +0200427 dma-names = "tx", "rx";
428 dmas = <&edma0 1 35>, <&edma0 1 34>;
Jingchang Lu72392802014-10-31 17:01:08 +0800429 status = "disabled";
430 };
431
432 uart0: serial@21c0500 {
433 compatible = "fsl,16550-FIFO64", "ns16550a";
434 reg = <0x0 0x21c0500 0x0 0x100>;
435 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
436 clock-frequency = <0>;
437 fifo-size = <15>;
438 status = "disabled";
439 };
440
441 uart1: serial@21c0600 {
442 compatible = "fsl,16550-FIFO64", "ns16550a";
443 reg = <0x0 0x21c0600 0x0 0x100>;
444 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
445 clock-frequency = <0>;
446 fifo-size = <15>;
447 status = "disabled";
448 };
449
450 uart2: serial@21d0500 {
451 compatible = "fsl,16550-FIFO64", "ns16550a";
452 reg = <0x0 0x21d0500 0x0 0x100>;
453 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
454 clock-frequency = <0>;
455 fifo-size = <15>;
456 status = "disabled";
457 };
458
459 uart3: serial@21d0600 {
460 compatible = "fsl,16550-FIFO64", "ns16550a";
461 reg = <0x0 0x21d0600 0x0 0x100>;
462 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
463 clock-frequency = <0>;
464 fifo-size = <15>;
465 status = "disabled";
466 };
467
Patrick Havelange575d9272019-04-02 15:30:53 +0900468 counter0: counter@29d0000 {
469 compatible = "fsl,ftm-quaddec";
470 reg = <0x0 0x29d0000 0x0 0x10000>;
471 big-endian;
472 status = "disabled";
473 };
474
475 counter1: counter@29e0000 {
476 compatible = "fsl,ftm-quaddec";
477 reg = <0x0 0x29e0000 0x0 0x10000>;
478 big-endian;
479 status = "disabled";
480 };
481
482 counter2: counter@29f0000 {
483 compatible = "fsl,ftm-quaddec";
484 reg = <0x0 0x29f0000 0x0 0x10000>;
485 big-endian;
486 status = "disabled";
487 };
488
489 counter3: counter@2a00000 {
490 compatible = "fsl,ftm-quaddec";
491 reg = <0x0 0x2a00000 0x0 0x10000>;
492 big-endian;
493 status = "disabled";
494 };
495
Liu Gangc54dd442016-03-23 17:47:20 +0800496 gpio0: gpio@2300000 {
497 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
498 reg = <0x0 0x2300000 0x0 0x10000>;
499 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
500 gpio-controller;
501 #gpio-cells = <2>;
502 interrupt-controller;
503 #interrupt-cells = <2>;
504 };
505
506 gpio1: gpio@2310000 {
507 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
508 reg = <0x0 0x2310000 0x0 0x10000>;
509 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
510 gpio-controller;
511 #gpio-cells = <2>;
512 interrupt-controller;
513 #interrupt-cells = <2>;
514 };
515
516 gpio2: gpio@2320000 {
517 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
518 reg = <0x0 0x2320000 0x0 0x10000>;
519 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
520 gpio-controller;
521 #gpio-cells = <2>;
522 interrupt-controller;
523 #interrupt-cells = <2>;
524 };
525
526 gpio3: gpio@2330000 {
527 compatible = "fsl,ls1021a-gpio", "fsl,qoriq-gpio";
528 reg = <0x0 0x2330000 0x0 0x10000>;
529 interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
530 gpio-controller;
531 #gpio-cells = <2>;
532 interrupt-controller;
533 #interrupt-cells = <2>;
534 };
535
Jingchang Lu72392802014-10-31 17:01:08 +0800536 lpuart0: serial@2950000 {
537 compatible = "fsl,ls1021a-lpuart";
538 reg = <0x0 0x2950000 0x0 0x1000>;
539 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
540 clocks = <&sysclk>;
541 clock-names = "ipg";
542 status = "disabled";
543 };
544
545 lpuart1: serial@2960000 {
546 compatible = "fsl,ls1021a-lpuart";
547 reg = <0x0 0x2960000 0x0 0x1000>;
548 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800549 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800550 clock-names = "ipg";
551 status = "disabled";
552 };
553
554 lpuart2: serial@2970000 {
555 compatible = "fsl,ls1021a-lpuart";
556 reg = <0x0 0x2970000 0x0 0x1000>;
557 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800558 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800559 clock-names = "ipg";
560 status = "disabled";
561 };
562
563 lpuart3: serial@2980000 {
564 compatible = "fsl,ls1021a-lpuart";
565 reg = <0x0 0x2980000 0x0 0x1000>;
566 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800567 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800568 clock-names = "ipg";
569 status = "disabled";
570 };
571
572 lpuart4: serial@2990000 {
573 compatible = "fsl,ls1021a-lpuart";
574 reg = <0x0 0x2990000 0x0 0x1000>;
575 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800576 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800577 clock-names = "ipg";
578 status = "disabled";
579 };
580
581 lpuart5: serial@29a0000 {
582 compatible = "fsl,ls1021a-lpuart";
583 reg = <0x0 0x29a0000 0x0 0x1000>;
584 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800585 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800586 clock-names = "ipg";
587 status = "disabled";
588 };
589
Patrick Havelangef820ca292018-11-27 15:09:44 +0100590 pwm0: pwm@29d0000 {
591 compatible = "fsl,vf610-ftm-pwm";
592 #pwm-cells = <3>;
593 reg = <0x0 0x29d0000 0x0 0x10000>;
594 clock-names = "ftm_sys", "ftm_ext",
595 "ftm_fix", "ftm_cnt_clk_en";
596 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
597 <&clockgen 4 1>, <&clockgen 4 1>;
598 big-endian;
599 status = "disabled";
600 };
601
602 pwm1: pwm@29e0000 {
603 compatible = "fsl,vf610-ftm-pwm";
604 #pwm-cells = <3>;
605 reg = <0x0 0x29e0000 0x0 0x10000>;
606 clock-names = "ftm_sys", "ftm_ext",
607 "ftm_fix", "ftm_cnt_clk_en";
608 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
609 <&clockgen 4 1>, <&clockgen 4 1>;
610 big-endian;
611 status = "disabled";
612 };
613
614 pwm2: pwm@29f0000 {
615 compatible = "fsl,vf610-ftm-pwm";
616 #pwm-cells = <3>;
617 reg = <0x0 0x29f0000 0x0 0x10000>;
618 clock-names = "ftm_sys", "ftm_ext",
619 "ftm_fix", "ftm_cnt_clk_en";
620 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
621 <&clockgen 4 1>, <&clockgen 4 1>;
622 big-endian;
623 status = "disabled";
624 };
625
626 pwm3: pwm@2a00000 {
627 compatible = "fsl,vf610-ftm-pwm";
628 #pwm-cells = <3>;
629 reg = <0x0 0x2a00000 0x0 0x10000>;
630 clock-names = "ftm_sys", "ftm_ext",
631 "ftm_fix", "ftm_cnt_clk_en";
632 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
633 <&clockgen 4 1>, <&clockgen 4 1>;
634 big-endian;
635 status = "disabled";
636 };
637
638 pwm4: pwm@2a10000 {
639 compatible = "fsl,vf610-ftm-pwm";
640 #pwm-cells = <3>;
641 reg = <0x0 0x2a10000 0x0 0x10000>;
642 clock-names = "ftm_sys", "ftm_ext",
643 "ftm_fix", "ftm_cnt_clk_en";
644 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
645 <&clockgen 4 1>, <&clockgen 4 1>;
646 big-endian;
647 status = "disabled";
648 };
649
650 pwm5: pwm@2a20000 {
651 compatible = "fsl,vf610-ftm-pwm";
652 #pwm-cells = <3>;
653 reg = <0x0 0x2a20000 0x0 0x10000>;
654 clock-names = "ftm_sys", "ftm_ext",
655 "ftm_fix", "ftm_cnt_clk_en";
656 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
657 <&clockgen 4 1>, <&clockgen 4 1>;
658 big-endian;
659 status = "disabled";
660 };
661
662 pwm6: pwm@2a30000 {
663 compatible = "fsl,vf610-ftm-pwm";
664 #pwm-cells = <3>;
665 reg = <0x0 0x2a30000 0x0 0x10000>;
666 clock-names = "ftm_sys", "ftm_ext",
667 "ftm_fix", "ftm_cnt_clk_en";
668 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
669 <&clockgen 4 1>, <&clockgen 4 1>;
670 big-endian;
671 status = "disabled";
672 };
673
674 pwm7: pwm@2a40000 {
675 compatible = "fsl,vf610-ftm-pwm";
676 #pwm-cells = <3>;
677 reg = <0x0 0x2a40000 0x0 0x10000>;
678 clock-names = "ftm_sys", "ftm_ext",
679 "ftm_fix", "ftm_cnt_clk_en";
680 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
681 <&clockgen 4 1>, <&clockgen 4 1>;
682 big-endian;
683 status = "disabled";
684 };
685
Jingchang Lu72392802014-10-31 17:01:08 +0800686 wdog0: watchdog@2ad0000 {
687 compatible = "fsl,imx21-wdt";
688 reg = <0x0 0x2ad0000 0x0 0x10000>;
689 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800690 clocks = <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800691 clock-names = "wdog-en";
692 big-endian;
693 };
694
695 sai1: sai@2b50000 {
Alison Wang50897cb2015-07-15 16:02:46 +0800696 #sound-dai-cells = <0>;
Jingchang Lu72392802014-10-31 17:01:08 +0800697 compatible = "fsl,vf610-sai";
698 reg = <0x0 0x2b50000 0x0 0x10000>;
699 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800700 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
701 <&clockgen 4 1>, <&clockgen 4 1>;
Alison Wang50897cb2015-07-15 16:02:46 +0800702 clock-names = "bus", "mclk1", "mclk2", "mclk3";
Jingchang Lu72392802014-10-31 17:01:08 +0800703 dma-names = "tx", "rx";
704 dmas = <&edma0 1 47>,
705 <&edma0 1 46>;
Jingchang Lu72392802014-10-31 17:01:08 +0800706 status = "disabled";
707 };
708
709 sai2: sai@2b60000 {
Alison Wang50897cb2015-07-15 16:02:46 +0800710 #sound-dai-cells = <0>;
Jingchang Lu72392802014-10-31 17:01:08 +0800711 compatible = "fsl,vf610-sai";
712 reg = <0x0 0x2b60000 0x0 0x10000>;
713 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800714 clocks = <&clockgen 4 1>, <&clockgen 4 1>,
715 <&clockgen 4 1>, <&clockgen 4 1>;
Alison Wang50897cb2015-07-15 16:02:46 +0800716 clock-names = "bus", "mclk1", "mclk2", "mclk3";
Jingchang Lu72392802014-10-31 17:01:08 +0800717 dma-names = "tx", "rx";
718 dmas = <&edma0 1 45>,
719 <&edma0 1 44>;
Jingchang Lu72392802014-10-31 17:01:08 +0800720 status = "disabled";
721 };
722
723 edma0: edma@2c00000 {
724 #dma-cells = <2>;
725 compatible = "fsl,vf610-edma";
726 reg = <0x0 0x2c00000 0x0 0x10000>,
727 <0x0 0x2c10000 0x0 0x10000>,
728 <0x0 0x2c20000 0x0 0x10000>;
729 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
730 <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
731 interrupt-names = "edma-tx", "edma-err";
732 dma-channels = <32>;
733 big-endian;
734 clock-names = "dmamux0", "dmamux1";
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800735 clocks = <&clockgen 4 1>,
736 <&clockgen 4 1>;
Jingchang Lu72392802014-10-31 17:01:08 +0800737 };
738
Meng Yiab0087d2015-11-25 14:46:06 +0800739 dcu: dcu@2ce0000 {
740 compatible = "fsl,ls1021a-dcu";
741 reg = <0x0 0x2ce0000 0x0 0x10000>;
742 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangb6f5e702017-06-09 14:25:45 +0800743 clocks = <&clockgen 4 0>,
744 <&clockgen 4 0>;
Stefan Agner5d01e992016-04-04 22:28:41 -0700745 clock-names = "dcu", "pix";
Meng Yiab0087d2015-11-25 14:46:06 +0800746 big-endian;
747 status = "disabled";
748 };
749
Jingchang Lu72392802014-10-31 17:01:08 +0800750 mdio0: mdio@2d24000 {
Vladimir Oltean7155c442020-01-26 21:49:50 +0200751 compatible = "gianfar";
Jingchang Lu72392802014-10-31 17:01:08 +0800752 device_type = "mdio";
753 #address-cells = <1>;
754 #size-cells = <0>;
Esben Haabendal55711962018-04-06 14:46:35 +0200755 reg = <0x0 0x2d24000 0x0 0x4000>,
756 <0x0 0x2d10030 0x0 0x4>;
Jingchang Lu72392802014-10-31 17:01:08 +0800757 };
758
Vladimir Olteanc7861ad2019-04-12 02:23:14 +0300759 mdio1: mdio@2d64000 {
Vladimir Oltean7155c442020-01-26 21:49:50 +0200760 compatible = "gianfar";
Vladimir Olteanc7861ad2019-04-12 02:23:14 +0300761 device_type = "mdio";
762 #address-cells = <1>;
763 #size-cells = <0>;
764 reg = <0x0 0x2d64000 0x0 0x4000>,
765 <0x0 0x2d50030 0x0 0x4>;
766 };
767
Yangbo Lu3db66fd2016-02-24 17:26:54 +0800768 ptp_clock@2d10e00 {
769 compatible = "fsl,etsec-ptp";
770 reg = <0x0 0x2d10e00 0x0 0xb0>;
771 interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
772 fsl,tclk-period = <5>;
773 fsl,tmr-prsc = <2>;
774 fsl,tmr-add = <0xaaaaaaab>;
Yangbo Lubdba5012017-11-29 14:54:58 +0800775 fsl,tmr-fiper1 = <999999995>;
Yangbo Lu5656bb32020-05-22 09:30:52 +0800776 fsl,tmr-fiper2 = <999999995>;
Yangbo Lu3db66fd2016-02-24 17:26:54 +0800777 fsl,max-adj = <499999999>;
Yangbo Lu47205e22019-01-21 18:41:41 +0800778 fsl,extts-fifo;
Yangbo Lu3db66fd2016-02-24 17:26:54 +0800779 };
780
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300781 enet0: ethernet@2d10000 {
782 compatible = "fsl,etsec2";
783 device_type = "network";
784 #address-cells = <2>;
785 #size-cells = <2>;
786 interrupt-parent = <&gic>;
787 model = "eTSEC";
788 fsl,magic-packet;
789 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800790 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300791
792 queue-group@2d10000 {
793 #address-cells = <2>;
794 #size-cells = <2>;
795 reg = <0x0 0x2d10000 0x0 0x1000>;
796 interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
797 <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
798 <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
799 };
800
801 queue-group@2d14000 {
802 #address-cells = <2>;
803 #size-cells = <2>;
804 reg = <0x0 0x2d14000 0x0 0x1000>;
805 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
806 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
807 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
808 };
809 };
810
811 enet1: ethernet@2d50000 {
812 compatible = "fsl,etsec2";
813 device_type = "network";
814 #address-cells = <2>;
815 #size-cells = <2>;
816 interrupt-parent = <&gic>;
817 model = "eTSEC";
818 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800819 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300820
821 queue-group@2d50000 {
822 #address-cells = <2>;
823 #size-cells = <2>;
824 reg = <0x0 0x2d50000 0x0 0x1000>;
825 interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
826 <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
827 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
828 };
829
830 queue-group@2d54000 {
831 #address-cells = <2>;
832 #size-cells = <2>;
833 reg = <0x0 0x2d54000 0x0 0x1000>;
834 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
835 <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
836 <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
837 };
838 };
839
840 enet2: ethernet@2d90000 {
841 compatible = "fsl,etsec2";
842 device_type = "network";
843 #address-cells = <2>;
844 #size-cells = <2>;
845 interrupt-parent = <&gic>;
846 model = "eTSEC";
847 ranges;
Alison Wang70b5ea92015-09-14 14:45:28 +0800848 dma-coherent;
Claudiu Manoild69cb5d2015-07-28 17:43:55 +0300849
850 queue-group@2d90000 {
851 #address-cells = <2>;
852 #size-cells = <2>;
853 reg = <0x0 0x2d90000 0x0 0x1000>;
854 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
855 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
856 <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
857 };
858
859 queue-group@2d94000 {
860 #address-cells = <2>;
861 #size-cells = <2>;
862 reg = <0x0 0x2d94000 0x0 0x1000>;
863 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
864 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
865 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
866 };
867 };
868
Esben Haabendal31fa7632017-12-05 09:16:33 +0100869 usb2: usb@8600000 {
Jingchang Lu72392802014-10-31 17:01:08 +0800870 compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
871 reg = <0x0 0x8600000 0x0 0x1000>;
872 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
873 dr_mode = "host";
874 phy_type = "ulpi";
875 };
876
Esben Haabendal31fa7632017-12-05 09:16:33 +0100877 usb3: usb3@3100000 {
Jingchang Lu72392802014-10-31 17:01:08 +0800878 compatible = "snps,dwc3";
879 reg = <0x0 0x3100000 0x0 0x10000>;
880 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
881 dr_mode = "host";
Rajesh Bhagat607e2662015-10-14 11:04:12 +0530882 snps,quirk-frame-length-adjustment = <0x20>;
Rajesh Bhagat6f0808c2016-06-10 11:53:44 +0530883 snps,dis_rxdet_inp3_quirk;
Ran Wangc4f70b42018-12-19 17:41:09 +0800884 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
Jingchang Lu72392802014-10-31 17:01:08 +0800885 };
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800886
887 pcie@3400000 {
Hou Zhiqiang4246bd42018-11-07 05:35:27 +0000888 compatible = "fsl,ls1021a-pcie";
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800889 reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */
890 0x40 0x00000000 0x0 0x00002000>; /* configuration space */
891 reg-names = "regs", "config";
892 interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; /* controller interrupt */
893 fsl,pcie-scfg = <&scfg 0>;
894 #address-cells = <3>;
895 #size-cells = <2>;
896 device_type = "pci";
Hou Zhiqiang5ddb78d2018-12-18 04:19:26 +0000897 num-viewport = <6>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800898 bus-range = <0x0 0xff>;
899 ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */
900 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Minghuan Liandf301582017-07-05 14:58:58 +0800901 msi-parent = <&msi1>, <&msi2>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800902 #interrupt-cells = <1>;
903 interrupt-map-mask = <0 0 0 7>;
904 interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
905 <0000 0 0 2 &gic GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>,
906 <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
907 <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
Xiaowei Bao8ab9c122018-11-05 16:46:49 +0800908 status = "disabled";
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800909 };
910
911 pcie@3500000 {
Hou Zhiqiang4246bd42018-11-07 05:35:27 +0000912 compatible = "fsl,ls1021a-pcie";
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800913 reg = <0x00 0x03500000 0x0 0x00010000 /* controller registers */
914 0x48 0x00000000 0x0 0x00002000>; /* configuration space */
915 reg-names = "regs", "config";
916 interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
917 fsl,pcie-scfg = <&scfg 1>;
918 #address-cells = <3>;
919 #size-cells = <2>;
920 device_type = "pci";
Hou Zhiqiang5ddb78d2018-12-18 04:19:26 +0000921 num-viewport = <6>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800922 bus-range = <0x0 0xff>;
923 ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */
924 0x82000000 0x0 0x40000000 0x48 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
Minghuan Liandf301582017-07-05 14:58:58 +0800925 msi-parent = <&msi1>, <&msi2>;
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800926 #interrupt-cells = <1>;
927 interrupt-map-mask = <0 0 0 7>;
928 interrupt-map = <0000 0 0 1 &gic GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
929 <0000 0 0 2 &gic GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
930 <0000 0 0 3 &gic GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
931 <0000 0 0 4 &gic GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
Xiaowei Bao8ab9c122018-11-05 16:46:49 +0800932 status = "disabled";
Minghuan Lianbc7abb42016-02-02 16:30:07 +0800933 };
Pankaj Bansalfa2edcf2017-11-24 18:52:13 +0530934
935 can0: can@2a70000 {
936 compatible = "fsl,ls1021ar2-flexcan";
937 reg = <0x0 0x2a70000 0x0 0x1000>;
938 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
939 clocks = <&clockgen 4 1>, <&clockgen 4 1>;
940 clock-names = "ipg", "per";
941 big-endian;
942 };
943
944 can1: can@2a80000 {
945 compatible = "fsl,ls1021ar2-flexcan";
946 reg = <0x0 0x2a80000 0x0 0x1000>;
947 interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
948 clocks = <&clockgen 4 1>, <&clockgen 4 1>;
949 clock-names = "ipg", "per";
950 big-endian;
951 };
952
953 can2: can@2a90000 {
954 compatible = "fsl,ls1021ar2-flexcan";
955 reg = <0x0 0x2a90000 0x0 0x1000>;
956 interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
957 clocks = <&clockgen 4 1>, <&clockgen 4 1>;
958 clock-names = "ipg", "per";
959 big-endian;
960 };
961
962 can3: can@2aa0000 {
963 compatible = "fsl,ls1021ar2-flexcan";
964 reg = <0x0 0x2aa0000 0x0 0x1000>;
965 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
966 clocks = <&clockgen 4 1>, <&clockgen 4 1>;
967 clock-names = "ipg", "per";
968 big-endian;
969 };
Rasmus Villemoes35090322018-01-03 16:45:45 +0100970
971 ocram1: sram@10000000 {
972 compatible = "mmio-sram";
973 reg = <0x0 0x10000000 0x0 0x10000>;
974 #address-cells = <1>;
975 #size-cells = <1>;
976 ranges = <0x0 0x0 0x10000000 0x10000>;
977 };
978
979 ocram2: sram@10010000 {
980 compatible = "mmio-sram";
981 reg = <0x0 0x10010000 0x0 0x10000>;
982 #address-cells = <1>;
983 #size-cells = <1>;
984 ranges = <0x0 0x0 0x10010000 0x10000>;
985 };
Peng Ma1b9c3292018-10-30 10:36:01 +0800986
987 qdma: dma-controller@8390000 {
988 compatible = "fsl,ls1021a-qdma";
989 reg = <0x0 0x8388000 0x0 0x1000>, /* Controller regs */
990 <0x0 0x8389000 0x0 0x1000>, /* Status regs */
991 <0x0 0x838a000 0x0 0x2000>; /* Block regs */
992 interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>,
993 <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
994 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
995 interrupt-names = "qdma-error",
996 "qdma-queue0", "qdma-queue1";
997 dma-channels = <8>;
998 block-number = <1>;
999 block-offset = <0x1000>;
1000 fsl,dma-queues = <2>;
1001 status-sizes = <64>;
1002 queue-sizes = <64 64>;
1003 big-endian;
1004 };
1005
Biwen Li22b6db72020-06-24 10:45:01 +08001006 rcpm: power-controller@1ee2140 {
1007 compatible = "fsl,ls1021a-rcpm", "fsl,qoriq-rcpm-2.1+";
1008 reg = <0x0 0x1ee2140 0x0 0x8>;
1009 #fsl,rcpm-wakeup-cells = <2>;
1010 };
1011
1012 ftm_alarm0: timer0@29d0000 {
1013 compatible = "fsl,ls1021a-ftm-alarm";
1014 reg = <0x0 0x29d0000 0x0 0x10000>;
1015 reg-names = "ftm";
1016 fsl,rcpm-wakeup = <&rcpm 0x20000 0x0>;
1017 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1018 big-endian;
1019 };
Jingchang Lu72392802014-10-31 17:01:08 +08001020 };
1021};