blob: d0850237c797714467d985a1de6053ec9cc70a48 [file] [log] [blame]
Yuantian Tangd4ad1112019-04-10 16:43:33 +08001// SPDX-License-Identifier: GPL-2.0+ OR X11
2/*
3 * NXP ls1028a SOC common device tree source
4 *
Wasim Khan4c72d2d2020-09-28 16:26:12 +05305 * Copyright 2019-2020 NXP
Yuantian Tangd4ad1112019-04-10 16:43:33 +08006 *
7 */
8
Michael Walle3ffe0902019-12-18 00:10:00 +01009#include <dt-bindings/interrupt-controller/arm-gic.h>
10
Yuantian Tangd4ad1112019-04-10 16:43:33 +080011/ {
12 compatible = "fsl,ls1028a";
13 interrupt-parent = <&gic>;
14 #address-cells = <2>;
15 #size-cells = <2>;
16
17 sysclk: sysclk {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-frequency = <100000000>;
21 clock-output-names = "sysclk";
22 };
23
24 clockgen: clocking@1300000 {
25 compatible = "fsl,ls1028a-clockgen";
26 reg = <0x0 0x1300000 0x0 0xa0000>;
27 #clock-cells = <2>;
28 clocks = <&sysclk>;
29 };
30
31 memory@01080000 {
32 device_type = "memory";
33 reg = <0x00000000 0x01080000 0 0x80000000>;
34 /* DRAM space - 1, size : 2 GB DRAM */
35 };
36
37 gic: interrupt-controller@6000000 {
38 compatible = "arm,gic-v3";
39 reg = <0x0 0x06000000 0 0x10000>, /* GIC Dist */
40 <0x0 0x06040000 0 0x40000>;
41 #interrupt-cells = <3>;
42 interrupt-controller;
Michael Walle3ffe0902019-12-18 00:10:00 +010043 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_RAW(0xf) |
44 IRQ_TYPE_LEVEL_LOW)>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +080045 };
46
Hou Zhiqiangaf288cb2020-08-06 14:38:19 +080047 gic_lpi_base: syscon@0x80000000 {
48 compatible = "gic-lpi-base";
49 reg = <0x0 0x80000000 0x0 0x100000>;
50 max-gic-redistributors = <2>;
51 };
52
Yuantian Tangd4ad1112019-04-10 16:43:33 +080053 timer {
54 compatible = "arm,armv8-timer";
Michael Walle3ffe0902019-12-18 00:10:00 +010055 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
56 IRQ_TYPE_LEVEL_LOW)>,
57 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
58 IRQ_TYPE_LEVEL_LOW)>,
59 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) |
60 IRQ_TYPE_LEVEL_LOW)>,
61 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
62 IRQ_TYPE_LEVEL_LOW)>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +080063 };
64
Michael Walle922ac0f2019-12-18 00:09:59 +010065 fspi: flexspi@20c0000 {
66 compatible = "nxp,lx2160a-fspi";
Yuantian Tangd4ad1112019-04-10 16:43:33 +080067 #address-cells = <1>;
68 #size-cells = <0>;
Michael Walle922ac0f2019-12-18 00:09:59 +010069 reg = <0x0 0x20c0000 0x0 0x10000>,
70 <0x0 0x20000000 0x0 0x10000000>;
71 reg-names = "fspi_base", "fspi_mmap";
72 clocks = <&clockgen 4 3>, <&clockgen 4 3>;
73 clock-names = "fspi_en", "fspi";
Michael Walle3ffe0902019-12-18 00:10:00 +010074 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +080075 status = "disabled";
76 };
77
78 serial0: serial@21c0500 {
79 device_type = "serial";
80 compatible = "fsl,ns16550", "ns16550a";
81 reg = <0x0 0x21c0500 0x0 0x100>;
Michael Walle3ffe0902019-12-18 00:10:00 +010082 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +080083 status = "disabled";
84 };
85
86 serial1: serial@21c0600 {
87 device_type = "serial";
88 compatible = "fsl,ns16550", "ns16550a";
89 reg = <0x0 0x21c0600 0x0 0x100>;
Michael Walle3ffe0902019-12-18 00:10:00 +010090 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +080091 status = "disabled";
92 };
93
Wasim Khan4c72d2d2020-09-28 16:26:12 +053094 pcie1: pcie@3400000 {
Yuantian Tangd4ad1112019-04-10 16:43:33 +080095 compatible = "fsl,ls-pcie", "fsl,ls1028-pcie", "snps,dw-pcie";
96 reg = <0x00 0x03400000 0x0 0x80000
97 0x00 0x03480000 0x0 0x40000 /* lut registers */
98 0x00 0x034c0000 0x0 0x40000 /* pf controls registers */
99 0x80 0x00000000 0x0 0x20000>; /* configuration space */
100 reg-names = "dbi", "lut", "ctrl", "config";
101 #address-cells = <3>;
102 #size-cells = <2>;
103 device_type = "pci";
104 num-lanes = <4>;
105 bus-range = <0x0 0xff>;
106 ranges = <0x81000000 0x0 0x00000000 0x80 0x00020000 0x0 0x00010000 /* downstream I/O */
107 0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
108 };
109
Wasim Khan4c72d2d2020-09-28 16:26:12 +0530110 pcie2: pcie@3500000 {
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800111 compatible = "fsl,ls-pcie", "fsl,ls1028-pcie", "snps,dw-pcie";
112 reg = <0x00 0x03500000 0x0 0x80000
113 0x00 0x03580000 0x0 0x40000 /* lut registers */
114 0x00 0x035c0000 0x0 0x40000 /* pf controls registers */
115 0x88 0x00000000 0x0 0x20000>; /* configuration space */
116 reg-names = "dbi", "lut", "ctrl", "config";
117 #address-cells = <3>;
118 #size-cells = <2>;
119 device_type = "pci";
120 num-lanes = <4>;
121 bus-range = <0x0 0xff>;
122 ranges = <0x81000000 0x0 0x00000000 0x88 0x00020000 0x0 0x00010000 /* downstream I/O */
123 0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
124 };
125
Alex Marginean062d8142019-06-07 17:03:07 +0300126 pcie@1f0000000 {
127 compatible = "pci-host-ecam-generic";
128 /* ECAM bus 0, HW has more space reserved but not populated */
129 bus-range = <0x0 0x0>;
130 reg = <0x01 0xf0000000 0x0 0x100000>;
131 #address-cells = <3>;
132 #size-cells = <2>;
133 device_type = "pci";
134 ranges= <0x82000000 0x0 0x00000000 0x1 0xf8000000 0x0 0x160000>;
Alex Margineanb32e9a72019-07-03 12:11:43 +0300135 enetc0: pci@0,0 {
136 reg = <0x000000 0 0 0 0>;
137 status = "disabled";
138 };
139 enetc1: pci@0,1 {
140 reg = <0x000100 0 0 0 0>;
141 status = "disabled";
142 };
143 enetc2: pci@0,2 {
144 reg = <0x000200 0 0 0 0>;
145 status = "okay";
146 phy-mode = "internal";
147 };
148 mdio0: pci@0,3 {
149 #address-cells=<0>;
150 #size-cells=<1>;
151 reg = <0x000300 0 0 0 0>;
152 status = "disabled";
153 };
154 enetc6: pci@0,6 {
155 reg = <0x000600 0 0 0 0>;
156 status = "okay";
157 phy-mode = "internal";
158 };
Alex Marginean062d8142019-06-07 17:03:07 +0300159 };
160
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800161 i2c0: i2c@2000000 {
162 compatible = "fsl,vf610-i2c";
163 #address-cells = <1>;
164 #size-cells = <0>;
165 reg = <0x0 0x2000000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100166 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800167 clock-names = "i2c";
168 clocks = <&clockgen 4 0>;
169 status = "disabled";
170 };
171
172 i2c1: i2c@2010000 {
173 compatible = "fsl,vf610-i2c";
174 #address-cells = <1>;
175 #size-cells = <0>;
176 reg = <0x0 0x2010000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100177 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800178 clock-names = "i2c";
179 clocks = <&clockgen 4 0>;
180 status = "disabled";
181 };
182
183 i2c2: i2c@2020000 {
184 compatible = "fsl,vf610-i2c";
185 #address-cells = <1>;
186 #size-cells = <0>;
187 reg = <0x0 0x2020000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100188 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800189 clock-names = "i2c";
190 clocks = <&clockgen 4 0>;
191 status = "disabled";
192 };
193
194 i2c3: i2c@2030000 {
195 compatible = "fsl,vf610-i2c";
196 #address-cells = <1>;
197 #size-cells = <0>;
198 reg = <0x0 0x2030000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100199 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800200 clock-names = "i2c";
201 clocks = <&clockgen 4 0>;
202 status = "disabled";
203 };
204
205 i2c4: i2c@2040000 {
206 compatible = "fsl,vf610-i2c";
207 #address-cells = <1>;
208 #size-cells = <0>;
209 reg = <0x0 0x2040000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100210 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800211 clock-names = "i2c";
212 clocks = <&clockgen 4 0>;
213 status = "disabled";
214 };
215
216 i2c5: i2c@2050000 {
217 compatible = "fsl,vf610-i2c";
218 #address-cells = <1>;
219 #size-cells = <0>;
220 reg = <0x0 0x2050000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100221 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800222 clock-names = "i2c";
223 clocks = <&clockgen 4 0>;
224 status = "disabled";
225 };
226
227 i2c6: i2c@2060000 {
228 compatible = "fsl,vf610-i2c";
229 #address-cells = <1>;
230 #size-cells = <0>;
231 reg = <0x0 0x2060000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100232 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800233 clock-names = "i2c";
234 clocks = <&clockgen 4 0>;
235 status = "disabled";
236 };
237
238 i2c7: i2c@2070000 {
239 compatible = "fsl,vf610-i2c";
240 #address-cells = <1>;
241 #size-cells = <0>;
242 reg = <0x0 0x2070000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100243 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800244 clock-names = "i2c";
245 clocks = <&clockgen 4 0>;
246 status = "disabled";
247 };
248
Yuantian Tang4659eb22020-03-19 16:48:24 +0800249 lpuart0: serial@2260000 {
250 compatible = "fsl,ls1021a-lpuart";
251 reg = <0x0 0x2260000 0x0 0x1000>;
252 interrupts = <0 232 0x4>;
253 clocks = <&sysclk>;
254 clock-names = "ipg";
255 little-endian;
256 status = "disabled";
257 };
258
259 lpuart1: serial@2270000 {
260 compatible = "fsl,ls1021a-lpuart";
261 reg = <0x0 0x2270000 0x0 0x1000>;
262 interrupts = <0 233 0x4>;
263 clocks = <&sysclk>;
264 clock-names = "ipg";
265 little-endian;
266 status = "disabled";
267 };
268
269 lpuart2: serial@2280000 {
270 compatible = "fsl,ls1021a-lpuart";
271 reg = <0x0 0x2280000 0x0 0x1000>;
272 interrupts = <0 234 0x4>;
273 clocks = <&sysclk>;
274 clock-names = "ipg";
275 little-endian;
276 status = "disabled";
277 };
278
279 lpuart3: serial@2290000 {
280 compatible = "fsl,ls1021a-lpuart";
281 reg = <0x0 0x2290000 0x0 0x1000>;
282 interrupts = <0 235 0x4>;
283 clocks = <&sysclk>;
284 clock-names = "ipg";
285 little-endian;
286 status = "disabled";
287 };
288
289 lpuart4: serial@22a0000 {
290 compatible = "fsl,ls1021a-lpuart";
291 reg = <0x0 0x22a0000 0x0 0x1000>;
292 interrupts = <0 236 0x4>;
293 clocks = <&sysclk>;
294 clock-names = "ipg";
295 little-endian;
296 status = "disabled";
297 };
298
299 lpuart5: serial@22b0000 {
300 compatible = "fsl,ls1021a-lpuart";
301 reg = <0x0 0x22b0000 0x0 0x1000>;
302 interrupts = <0 237 0x4>;
303 clocks = <&sysclk>;
304 clock-names = "ipg";
305 little-endian;
306 status = "disabled";
307 };
308
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800309 usb1: usb3@3100000 {
310 compatible = "fsl,layerscape-dwc3";
311 reg = <0x0 0x3100000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100312 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800313 dr_mode = "host";
314 status = "disabled";
315 };
316
317 usb2: usb3@3110000 {
318 compatible = "fsl,layerscape-dwc3";
319 reg = <0x0 0x3110000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100320 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800321 dr_mode = "host";
322 status = "disabled";
323 };
324
325 dspi0: dspi@2100000 {
326 compatible = "fsl,vf610-dspi";
327 #address-cells = <1>;
328 #size-cells = <0>;
329 reg = <0x0 0x2100000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100330 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800331 clock-names = "dspi";
332 clocks = <&clockgen 4 0>;
333 num-cs = <5>;
334 litte-endian;
335 status = "disabled";
336 };
337
338 dspi1: dspi@2110000 {
339 compatible = "fsl,vf610-dspi";
340 #address-cells = <1>;
341 #size-cells = <0>;
342 reg = <0x0 0x2110000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100343 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800344 clock-names = "dspi";
345 clocks = <&clockgen 4 0>;
346 num-cs = <5>;
347 little-endian;
348 status = "disabled";
349 };
350
351 dspi2: dspi@2120000 {
352 compatible = "fsl,vf610-dspi";
353 #address-cells = <1>;
354 #size-cells = <0>;
355 reg = <0x0 0x2120000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100356 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800357 clock-names = "dspi";
358 clocks = <&clockgen 4 0>;
359 num-cs = <5>;
360 little-endian;
361 status = "disabled";
362 };
363
364 esdhc0: esdhc@2140000 {
365 compatible = "fsl,esdhc";
366 reg = <0x0 0x2140000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100367 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800368 big-endian;
369 bus-width = <4>;
370 status = "disabled";
371 };
372
373 esdhc1: esdhc@2150000 {
374 compatible = "fsl,esdhc";
375 reg = <0x0 0x2150000 0x0 0x10000>;
Michael Walle3ffe0902019-12-18 00:10:00 +0100376 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800377 big-endian;
378 non-removable;
379 bus-width = <4>;
380 status = "disabled";
381 };
382
383 sata: sata@3200000 {
384 compatible = "fsl,ls1028a-ahci";
Peng Ma91f54e72019-05-23 04:06:48 +0000385 reg = <0x0 0x3200000 0x0 0x10000 /* ccsr sata base */
386 0x7 0x100520 0x0 0x4>; /* ecc sata addr*/
387 reg-names = "sata-base", "ecc-addr";
Michael Walle3ffe0902019-12-18 00:10:00 +0100388 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800389 status = "disabled";
390 };
Qiang Zhao7e817c72019-05-07 03:16:13 +0000391
392 cluster1_core0_watchdog: wdt@c000000 {
393 compatible = "arm,sp805-wdt";
394 reg = <0x0 0xc000000 0x0 0x1000>;
395 };
Yuantian Tangd4ad1112019-04-10 16:43:33 +0800396};