blob: 0eeec43cccca75075547ec6a8e9895a687a1b9f9 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
haikunddf79f32015-03-25 20:23:26 +08002/*
3 * Freescale ls1021a SOC common device tree source
4 *
5 * Copyright 2013-2015 Freescale Semiconductor, Inc.
haikunddf79f32015-03-25 20:23:26 +08006 */
7
haikunce35fc12015-03-24 21:16:31 +08008#include "skeleton.dtsi"
haikunddf79f32015-03-25 20:23:26 +08009#include <dt-bindings/interrupt-controller/arm-gic.h>
10
11/ {
12 compatible = "fsl,ls1021a";
13 interrupt-parent = <&gic>;
14
15 aliases {
16 serial0 = &lpuart0;
17 serial1 = &lpuart1;
18 serial2 = &lpuart2;
19 serial3 = &lpuart3;
20 serial4 = &lpuart4;
21 serial5 = &lpuart5;
22 sysclk = &sysclk;
23 };
24
25 cpus {
26 #address-cells = <1>;
27 #size-cells = <0>;
28
29 cpu@f00 {
30 compatible = "arm,cortex-a7";
31 device_type = "cpu";
32 reg = <0xf00>;
33 clocks = <&cluster1_clk>;
34 };
35
36 cpu@f01 {
37 compatible = "arm,cortex-a7";
38 device_type = "cpu";
39 reg = <0xf01>;
40 clocks = <&cluster1_clk>;
41 };
42 };
43
44 timer {
45 compatible = "arm,armv7-timer";
46 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
47 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
48 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
49 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
50 };
51
52 pmu {
53 compatible = "arm,cortex-a7-pmu";
54 interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
55 <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
56 };
57
58 soc {
59 compatible = "simple-bus";
haikunce35fc12015-03-24 21:16:31 +080060 #address-cells = <1>;
61 #size-cells = <1>;
haikunddf79f32015-03-25 20:23:26 +080062 device_type = "soc";
63 interrupt-parent = <&gic>;
64 ranges;
65
66 gic: interrupt-controller@1400000 {
67 compatible = "arm,cortex-a7-gic";
68 #interrupt-cells = <3>;
69 interrupt-controller;
haikunce35fc12015-03-24 21:16:31 +080070 reg = <0x1401000 0x1000>,
71 <0x1402000 0x1000>,
72 <0x1404000 0x2000>,
73 <0x1406000 0x2000>;
haikunddf79f32015-03-25 20:23:26 +080074 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
75
76 };
77
78 ifc: ifc@1530000 {
79 compatible = "fsl,ifc", "simple-bus";
haikunce35fc12015-03-24 21:16:31 +080080 reg = <0x1530000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +080081 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
82 };
83
84 dcfg: dcfg@1ee0000 {
85 compatible = "fsl,ls1021a-dcfg", "syscon";
haikunce35fc12015-03-24 21:16:31 +080086 reg = <0x1ee0000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +080087 big-endian;
88 };
89
90 esdhc: esdhc@1560000 {
91 compatible = "fsl,esdhc";
haikunce35fc12015-03-24 21:16:31 +080092 reg = <0x1560000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +080093 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
94 clock-frequency = <0>;
95 voltage-ranges = <1800 1800 3300 3300>;
96 sdhci,auto-cmd12;
97 big-endian;
98 bus-width = <4>;
haikunddf79f32015-03-25 20:23:26 +080099 };
100
101 scfg: scfg@1570000 {
102 compatible = "fsl,ls1021a-scfg", "syscon";
haikunce35fc12015-03-24 21:16:31 +0800103 reg = <0x1570000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800104 big-endian;
105 };
106
107 clockgen: clocking@1ee1000 {
108 #address-cells = <1>;
109 #size-cells = <1>;
haikunce35fc12015-03-24 21:16:31 +0800110 ranges = <0x0 0x1ee1000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800111
112 sysclk: sysclk {
113 compatible = "fixed-clock";
114 #clock-cells = <0>;
115 clock-output-names = "sysclk";
116 };
117
118 cga_pll1: pll@800 {
119 compatible = "fsl,qoriq-core-pll-2.0";
120 #clock-cells = <1>;
121 reg = <0x800 0x10>;
122 clocks = <&sysclk>;
123 clock-output-names = "cga-pll1", "cga-pll1-div2",
124 "cga-pll1-div4";
125 };
126
127 platform_clk: pll@c00 {
128 compatible = "fsl,qoriq-core-pll-2.0";
129 #clock-cells = <1>;
130 reg = <0xc00 0x10>;
131 clocks = <&sysclk>;
132 clock-output-names = "platform-clk", "platform-clk-div2";
133 };
134
135 cluster1_clk: clk0c0@0 {
136 compatible = "fsl,qoriq-core-mux-2.0";
137 #clock-cells = <0>;
138 reg = <0x0 0x10>;
139 clock-names = "pll1cga", "pll1cga-div2", "pll1cga-div4";
140 clocks = <&cga_pll1 0>, <&cga_pll1 1>, <&cga_pll1 2>;
141 clock-output-names = "cluster1-clk";
142 };
143 };
144
145 dspi0: dspi@2100000 {
146 compatible = "fsl,vf610-dspi";
147 #address-cells = <1>;
148 #size-cells = <0>;
haikunce35fc12015-03-24 21:16:31 +0800149 reg = <0x2100000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800150 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
151 clock-names = "dspi";
152 clocks = <&platform_clk 1>;
Haikun.Wang@freescale.com6db79c42015-03-24 21:19:23 +0800153 num-cs = <6>;
haikunddf79f32015-03-25 20:23:26 +0800154 big-endian;
155 status = "disabled";
156 };
157
158 dspi1: dspi@2110000 {
159 compatible = "fsl,vf610-dspi";
160 #address-cells = <1>;
161 #size-cells = <0>;
haikunce35fc12015-03-24 21:16:31 +0800162 reg = <0x2110000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800163 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
164 clock-names = "dspi";
165 clocks = <&platform_clk 1>;
Haikun.Wang@freescale.com6db79c42015-03-24 21:19:23 +0800166 num-cs = <6>;
haikunddf79f32015-03-25 20:23:26 +0800167 big-endian;
168 status = "disabled";
169 };
170
Haikun.Wang@freescale.com863b4e12015-03-24 21:20:40 +0800171 qspi: quadspi@1550000 {
Kuldeep Singhb480bcc2019-12-12 11:49:24 +0530172 compatible = "fsl,ls1021a-qspi";
Haikun.Wang@freescale.com863b4e12015-03-24 21:20:40 +0800173 #address-cells = <1>;
174 #size-cells = <0>;
175 reg = <0x1550000 0x10000>,
Kuldeep Singhb480bcc2019-12-12 11:49:24 +0530176 <0x40000000 0x1000000>;
Yuan Yao93a1b7c2016-11-30 11:26:20 +0800177 reg-names = "QuadSPI", "QuadSPI-memory";
Haikun.Wang@freescale.com863b4e12015-03-24 21:20:40 +0800178 status = "disabled";
179 };
180
haikunddf79f32015-03-25 20:23:26 +0800181 i2c0: i2c@2180000 {
182 compatible = "fsl,vf610-i2c";
183 #address-cells = <1>;
184 #size-cells = <0>;
haikunce35fc12015-03-24 21:16:31 +0800185 reg = <0x2180000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800186 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
187 clock-names = "i2c";
188 clocks = <&platform_clk 1>;
189 status = "disabled";
190 };
191
192 i2c1: i2c@2190000 {
193 compatible = "fsl,vf610-i2c";
194 #address-cells = <1>;
195 #size-cells = <0>;
haikunce35fc12015-03-24 21:16:31 +0800196 reg = <0x2190000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800197 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
198 clock-names = "i2c";
199 clocks = <&platform_clk 1>;
200 status = "disabled";
201 };
202
203 i2c2: i2c@21a0000 {
204 compatible = "fsl,vf610-i2c";
205 #address-cells = <1>;
206 #size-cells = <0>;
haikunce35fc12015-03-24 21:16:31 +0800207 reg = <0x21a0000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800208 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
209 clock-names = "i2c";
210 clocks = <&platform_clk 1>;
211 status = "disabled";
212 };
213
214 uart0: serial@21c0500 {
215 compatible = "fsl,16550-FIFO64", "ns16550a";
haikunce35fc12015-03-24 21:16:31 +0800216 reg = <0x21c0500 0x100>;
haikunddf79f32015-03-25 20:23:26 +0800217 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
haikunddf79f32015-03-25 20:23:26 +0800218 fifo-size = <15>;
219 status = "disabled";
220 };
221
222 uart1: serial@21c0600 {
223 compatible = "fsl,16550-FIFO64", "ns16550a";
haikunce35fc12015-03-24 21:16:31 +0800224 reg = <0x21c0600 0x100>;
haikunddf79f32015-03-25 20:23:26 +0800225 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
haikunddf79f32015-03-25 20:23:26 +0800226 fifo-size = <15>;
227 status = "disabled";
228 };
229
230 uart2: serial@21d0500 {
231 compatible = "fsl,16550-FIFO64", "ns16550a";
haikunce35fc12015-03-24 21:16:31 +0800232 reg = <0x21d0500 0x100>;
haikunddf79f32015-03-25 20:23:26 +0800233 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
haikunddf79f32015-03-25 20:23:26 +0800234 fifo-size = <15>;
235 status = "disabled";
236 };
237
238 uart3: serial@21d0600 {
239 compatible = "fsl,16550-FIFO64", "ns16550a";
haikunce35fc12015-03-24 21:16:31 +0800240 reg = <0x21d0600 0x100>;
haikunddf79f32015-03-25 20:23:26 +0800241 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
haikunddf79f32015-03-25 20:23:26 +0800242 fifo-size = <15>;
243 status = "disabled";
244 };
245
246 lpuart0: serial@2950000 {
247 compatible = "fsl,ls1021a-lpuart";
haikunce35fc12015-03-24 21:16:31 +0800248 reg = <0x2950000 0x1000>;
haikunddf79f32015-03-25 20:23:26 +0800249 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
250 clocks = <&sysclk>;
251 clock-names = "ipg";
252 status = "disabled";
253 };
254
255 lpuart1: serial@2960000 {
256 compatible = "fsl,ls1021a-lpuart";
haikunce35fc12015-03-24 21:16:31 +0800257 reg = <0x2960000 0x1000>;
haikunddf79f32015-03-25 20:23:26 +0800258 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
259 clocks = <&platform_clk 1>;
260 clock-names = "ipg";
261 status = "disabled";
262 };
263
264 lpuart2: serial@2970000 {
265 compatible = "fsl,ls1021a-lpuart";
haikunce35fc12015-03-24 21:16:31 +0800266 reg = <0x2970000 0x1000>;
haikunddf79f32015-03-25 20:23:26 +0800267 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
268 clocks = <&platform_clk 1>;
269 clock-names = "ipg";
270 status = "disabled";
271 };
272
273 lpuart3: serial@2980000 {
274 compatible = "fsl,ls1021a-lpuart";
haikunce35fc12015-03-24 21:16:31 +0800275 reg = <0x2980000 0x1000>;
haikunddf79f32015-03-25 20:23:26 +0800276 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
277 clocks = <&platform_clk 1>;
278 clock-names = "ipg";
279 status = "disabled";
280 };
281
282 lpuart4: serial@2990000 {
283 compatible = "fsl,ls1021a-lpuart";
haikunce35fc12015-03-24 21:16:31 +0800284 reg = <0x2990000 0x1000>;
haikunddf79f32015-03-25 20:23:26 +0800285 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
286 clocks = <&platform_clk 1>;
287 clock-names = "ipg";
288 status = "disabled";
289 };
290
291 lpuart5: serial@29a0000 {
292 compatible = "fsl,ls1021a-lpuart";
haikunce35fc12015-03-24 21:16:31 +0800293 reg = <0x29a0000 0x1000>;
haikunddf79f32015-03-25 20:23:26 +0800294 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
295 clocks = <&platform_clk 1>;
296 clock-names = "ipg";
297 status = "disabled";
298 };
299
300 wdog0: watchdog@2ad0000 {
301 compatible = "fsl,imx21-wdt";
haikunce35fc12015-03-24 21:16:31 +0800302 reg = <0x2ad0000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800303 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
304 clocks = <&platform_clk 1>;
305 clock-names = "wdog-en";
306 big-endian;
307 };
308
309 sai1: sai@2b50000 {
310 compatible = "fsl,vf610-sai";
haikunce35fc12015-03-24 21:16:31 +0800311 reg = <0x2b50000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800312 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
313 clocks = <&platform_clk 1>;
314 clock-names = "sai";
315 dma-names = "tx", "rx";
316 dmas = <&edma0 1 47>,
317 <&edma0 1 46>;
318 big-endian;
319 status = "disabled";
320 };
321
322 sai2: sai@2b60000 {
323 compatible = "fsl,vf610-sai";
haikunce35fc12015-03-24 21:16:31 +0800324 reg = <0x2b60000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800325 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
326 clocks = <&platform_clk 1>;
327 clock-names = "sai";
328 dma-names = "tx", "rx";
329 dmas = <&edma0 1 45>,
330 <&edma0 1 44>;
331 big-endian;
332 status = "disabled";
333 };
334
335 edma0: edma@2c00000 {
336 #dma-cells = <2>;
337 compatible = "fsl,vf610-edma";
haikunce35fc12015-03-24 21:16:31 +0800338 reg = <0x2c00000 0x10000>,
339 <0x2c10000 0x10000>,
340 <0x2c20000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800341 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
342 <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
343 interrupt-names = "edma-tx", "edma-err";
344 dma-channels = <32>;
345 big-endian;
346 clock-names = "dmamux0", "dmamux1";
347 clocks = <&platform_clk 1>,
348 <&platform_clk 1>;
349 };
350
Bin Mengf588b4d2019-07-19 00:29:59 +0300351 enet0: ethernet@2d10000 {
352 compatible = "fsl,etsec2";
353 reg = <0x2d10000 0x1000>;
354 status = "disabled";
355 };
356
357 enet1: ethernet@2d50000 {
358 compatible = "fsl,etsec2";
359 reg = <0x2d50000 0x1000>;
360 status = "disabled";
361 };
362
363 enet2: ethernet@2d90000 {
364 compatible = "fsl,etsec2";
365 reg = <0x2d90000 0x1000>;
366 status = "disabled";
367 };
368
haikunddf79f32015-03-25 20:23:26 +0800369 mdio0: mdio@2d24000 {
Bin Mengf588b4d2019-07-19 00:29:59 +0300370 compatible = "fsl,etsec2-mdio";
371 reg = <0x2d24000 0x4000>;
haikunddf79f32015-03-25 20:23:26 +0800372 #address-cells = <1>;
373 #size-cells = <0>;
Bin Mengf588b4d2019-07-19 00:29:59 +0300374 };
375
376 mdio1: mdio@2d64000 {
377 compatible = "fsl,etsec2-mdio";
378 reg = <0x2d64000 0x4000>;
379 #address-cells = <1>;
380 #size-cells = <0>;
haikunddf79f32015-03-25 20:23:26 +0800381 };
382
383 usb@8600000 {
384 compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
haikunce35fc12015-03-24 21:16:31 +0800385 reg = <0x8600000 0x1000>;
haikunddf79f32015-03-25 20:23:26 +0800386 interrupts = <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
387 dr_mode = "host";
388 phy_type = "ulpi";
389 };
390
391 usb3@3100000 {
Rajesh Bhagata866c212016-07-01 18:51:48 +0530392 compatible = "fsl,layerscape-dwc3";
haikunce35fc12015-03-24 21:16:31 +0800393 reg = <0x3100000 0x10000>;
haikunddf79f32015-03-25 20:23:26 +0800394 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
395 dr_mode = "host";
396 };
Minghuan Lianadd73a12016-12-13 14:54:11 +0800397
398 pcie@3400000 {
399 compatible = "fsl,ls-pcie", "snps,dw-pcie";
400 reg = <0x03400000 0x20000 /* dbi registers */
401 0x01570000 0x10000 /* pf controls registers */
402 0x24000000 0x20000>; /* configuration space */
403 reg-names = "dbi", "ctrl", "config";
404 big-endian;
405 #address-cells = <3>;
406 #size-cells = <2>;
407 device_type = "pci";
408 bus-range = <0x0 0xff>;
409 ranges = <0x81000000 0x0 0x00000000 0x24020000 0x0 0x00010000 /* downstream I/O */
410 0x82000000 0x0 0x28000000 0x28000000 0x0 0x08000000>; /* non-prefetchable memory */
411 };
412
413 pcie@3500000 {
414 compatible = "fsl,ls-pcie", "snps,dw-pcie";
415 reg = <0x03500000 0x10000 /* dbi registers */
416 0x01570000 0x10000 /* pf controls registers */
417 0x34000000 0x20000>; /* configuration space */
418 reg-names = "dbi", "ctrl", "config";
419 big-endian;
420 #address-cells = <3>;
421 #size-cells = <2>;
422 device_type = "pci";
423 num-lanes = <2>;
424 bus-range = <0x0 0xff>;
425 ranges = <0x81000000 0x0 0x00000000 0x34020000 0x0 0x00010000 /* downstream I/O */
426 0x82000000 0x0 0x38000000 0x38000000 0x0 0x08000000>; /* non-prefetchable memory */
427 };
Peng Ma9ed5ec92018-08-01 14:15:41 +0800428
429 sata: sata@3200000 {
430 compatible = "fsl,ls1021a-ahci";
Peng Maf68ce9e2019-05-29 02:40:47 +0000431 reg = <0x3200000 0x10000 0x20220520 0x4>;
Peng Mae765ee52019-04-17 10:10:49 +0000432 reg-names = "sata-base", "ecc-addr";
Peng Ma9ed5ec92018-08-01 14:15:41 +0800433 interrupts = <0 101 4>;
434 status = "disabled";
435 };
haikunddf79f32015-03-25 20:23:26 +0800436 };
437};