blob: d1ae2fabae030ac275f21a7c0b7507df14594680 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -06002/*
3 * Copyright (C) 2018 Intel Corporation
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -06004 */
5
6/dts-v1/;
7#include <dt-bindings/reset/altr,rst-mgr-s10.h>
8#include <dt-bindings/gpio/gpio.h>
9
10/ {
11 compatible = "altr,socfpga-stratix10";
12 #address-cells = <2>;
13 #size-cells = <2>;
14
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 cpu0: cpu@0 {
20 compatible = "arm,cortex-a53", "arm,armv8";
21 device_type = "cpu";
22 enable-method = "psci";
23 reg = <0x0>;
24 };
25
26 cpu1: cpu@1 {
27 compatible = "arm,cortex-a53", "arm,armv8";
28 device_type = "cpu";
29 enable-method = "psci";
30 reg = <0x1>;
31 };
32
33 cpu2: cpu@2 {
34 compatible = "arm,cortex-a53", "arm,armv8";
35 device_type = "cpu";
36 enable-method = "psci";
37 reg = <0x2>;
38 };
39
40 cpu3: cpu@3 {
41 compatible = "arm,cortex-a53", "arm,armv8";
42 device_type = "cpu";
43 enable-method = "psci";
44 reg = <0x3>;
45 };
46 };
47
48 pmu {
49 compatible = "arm,armv8-pmuv3";
50 interrupts = <0 120 8>,
51 <0 121 8>,
52 <0 122 8>,
53 <0 123 8>;
54 interrupt-affinity = <&cpu0>,
55 <&cpu1>,
56 <&cpu2>,
57 <&cpu3>;
58 interrupt-parent = <&intc>;
59 };
60
61 psci {
62 compatible = "arm,psci-0.2";
63 method = "smc";
64 };
65
66 intc: intc@fffc1000 {
67 compatible = "arm,gic-400", "arm,cortex-a15-gic";
68 #interrupt-cells = <3>;
69 interrupt-controller;
70 reg = <0x0 0xfffc1000 0x0 0x1000>,
71 <0x0 0xfffc2000 0x0 0x2000>,
72 <0x0 0xfffc4000 0x0 0x2000>,
73 <0x0 0xfffc6000 0x0 0x2000>;
74 };
75
76 soc {
77 #address-cells = <1>;
78 #size-cells = <1>;
79 compatible = "simple-bus";
80 device_type = "soc";
81 interrupt-parent = <&intc>;
82 ranges = <0 0 0 0xffffffff>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +080083 u-boot,dm-pre-reloc;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060084
85 clkmgr@ffd1000 {
86 compatible = "altr,clk-mgr";
87 reg = <0xffd10000 0x1000>;
88 };
89
90 gmac0: ethernet@ff800000 {
91 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
92 reg = <0xff800000 0x2000>;
93 interrupts = <0 90 4>;
94 interrupt-names = "macirq";
95 mac-address = [00 00 00 00 00 00];
Ley Foon Tan80a77ad2018-05-18 22:05:35 +080096 resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060097 reset-names = "stmmaceth";
Ley Foon Tan6e676272019-03-13 11:03:35 +080098 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060099 status = "disabled";
100 };
101
102 gmac1: ethernet@ff802000 {
103 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
104 reg = <0xff802000 0x2000>;
105 interrupts = <0 91 4>;
106 interrupt-names = "macirq";
107 mac-address = [00 00 00 00 00 00];
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800108 resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600109 reset-names = "stmmaceth";
Ley Foon Tan6e676272019-03-13 11:03:35 +0800110 altr,sysmgr-syscon = <&sysmgr 0x48 0>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600111 status = "disabled";
112 };
113
114 gmac2: ethernet@ff804000 {
115 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
116 reg = <0xff804000 0x2000>;
117 interrupts = <0 92 4>;
118 interrupt-names = "macirq";
119 mac-address = [00 00 00 00 00 00];
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800120 resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600121 reset-names = "stmmaceth";
Ley Foon Tan6e676272019-03-13 11:03:35 +0800122 altr,sysmgr-syscon = <&sysmgr 0x4c 0>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600123 status = "disabled";
124 };
125
126 gpio0: gpio@ffc03200 {
127 #address-cells = <1>;
128 #size-cells = <0>;
129 compatible = "snps,dw-apb-gpio";
130 reg = <0xffc03200 0x100>;
131 resets = <&rst GPIO0_RESET>;
132 status = "disabled";
133
134 porta: gpio-controller@0 {
135 compatible = "snps,dw-apb-gpio-port";
136 gpio-controller;
137 #gpio-cells = <2>;
138 snps,nr-gpios = <24>;
139 reg = <0>;
140 interrupt-controller;
141 #interrupt-cells = <2>;
142 interrupts = <0 110 4>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800143 bank-name = "porta";
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600144 };
145 };
146
147 gpio1: gpio@ffc03300 {
148 #address-cells = <1>;
149 #size-cells = <0>;
150 compatible = "snps,dw-apb-gpio";
151 reg = <0xffc03300 0x100>;
152 resets = <&rst GPIO1_RESET>;
153 status = "disabled";
154
155 portb: gpio-controller@0 {
156 compatible = "snps,dw-apb-gpio-port";
157 gpio-controller;
158 #gpio-cells = <2>;
159 snps,nr-gpios = <24>;
160 reg = <0>;
161 interrupt-controller;
162 #interrupt-cells = <2>;
163 interrupts = <0 111 4>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800164 bank-name = "portb";
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600165 };
166 };
167
168 i2c0: i2c@ffc02800 {
169 #address-cells = <1>;
170 #size-cells = <0>;
171 compatible = "snps,designware-i2c";
172 reg = <0xffc02800 0x100>;
173 interrupts = <0 103 4>;
174 resets = <&rst I2C0_RESET>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800175 reset-names = "i2c";
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600176 status = "disabled";
177 };
178
179 i2c1: i2c@ffc02900 {
180 #address-cells = <1>;
181 #size-cells = <0>;
182 compatible = "snps,designware-i2c";
183 reg = <0xffc02900 0x100>;
184 interrupts = <0 104 4>;
185 resets = <&rst I2C1_RESET>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800186 reset-names = "i2c";
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600187 status = "disabled";
188 };
189
190 i2c2: i2c@ffc02a00 {
191 #address-cells = <1>;
192 #size-cells = <0>;
193 compatible = "snps,designware-i2c";
194 reg = <0xffc02a00 0x100>;
195 interrupts = <0 105 4>;
196 resets = <&rst I2C2_RESET>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800197 reset-names = "i2c";
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600198 status = "disabled";
199 };
200
201 i2c3: i2c@ffc02b00 {
202 #address-cells = <1>;
203 #size-cells = <0>;
204 compatible = "snps,designware-i2c";
205 reg = <0xffc02b00 0x100>;
206 interrupts = <0 106 4>;
207 resets = <&rst I2C3_RESET>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800208 reset-names = "i2c";
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600209 status = "disabled";
210 };
211
212 i2c4: i2c@ffc02c00 {
213 #address-cells = <1>;
214 #size-cells = <0>;
215 compatible = "snps,designware-i2c";
216 reg = <0xffc02c00 0x100>;
217 interrupts = <0 107 4>;
218 resets = <&rst I2C4_RESET>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800219 reset-names = "i2c";
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600220 status = "disabled";
221 };
222
223 mmc: dwmmc0@ff808000 {
224 #address-cells = <1>;
225 #size-cells = <0>;
226 compatible = "altr,socfpga-dw-mshc";
227 reg = <0xff808000 0x1000>;
228 interrupts = <0 96 4>;
229 fifo-depth = <0x400>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800230 resets = <&rst SDMMC_RESET>, <&rst SDMMC_OCP_RESET>;
231 u-boot,dm-pre-reloc;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600232 status = "disabled";
233 };
234
235 ocram: sram@ffe00000 {
236 compatible = "mmio-sram";
237 reg = <0xffe00000 0x100000>;
238 };
239
Ley Foon Tan2f59cf12019-04-03 13:45:02 +0800240 qspi: spi@ff8d2000 {
241 compatible = "cdns,qspi-nor";
242 #address-cells = <1>;
243 #size-cells = <0>;
244 reg = <0xff8d2000 0x100>,
245 <0xff900000 0x100000>;
246 interrupts = <0 3 4>;
247 cdns,fifo-depth = <128>;
248 cdns,fifo-width = <4>;
249 cdns,trigger-address = <0x00000000>;
250 status = "disabled";
251 };
252
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600253 rst: rstmgr@ffd11000 {
254 #reset-cells = <1>;
255 compatible = "altr,rst-mgr";
256 reg = <0xffd11000 0x1000>;
257 altr,modrst-offset = <0x20>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800258 u-boot,dm-pre-reloc;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600259 };
260
261 spi0: spi@ffda4000 {
262 compatible = "snps,dw-apb-ssi";
263 #address-cells = <1>;
264 #size-cells = <0>;
265 reg = <0xffda4000 0x1000>;
266 interrupts = <0 99 4>;
267 resets = <&rst SPIM0_RESET>;
268 reg-io-width = <4>;
269 num-chipselect = <4>;
270 bus-num = <0>;
271 status = "disabled";
272 };
273
274 spi1: spi@ffda5000 {
275 compatible = "snps,dw-apb-ssi";
276 #address-cells = <1>;
277 #size-cells = <0>;
278 reg = <0xffda5000 0x1000>;
279 interrupts = <0 100 4>;
280 resets = <&rst SPIM1_RESET>;
281 reg-io-width = <4>;
282 num-chipselect = <4>;
283 bus-num = <0>;
284 status = "disabled";
285 };
286
287 sysmgr: sysmgr@ffd12000 {
288 compatible = "altr,sys-mgr", "syscon";
289 reg = <0xffd12000 0x1000>;
290 };
291
292 /* Local timer */
293 timer {
294 compatible = "arm,armv8-timer";
295 interrupts = <1 13 0xf08>,
296 <1 14 0xf08>,
297 <1 11 0xf08>,
298 <1 10 0xf08>;
299 };
300
301 timer0: timer0@ffc03000 {
302 compatible = "snps,dw-apb-timer";
303 interrupts = <0 113 4>;
304 reg = <0xffc03000 0x100>;
305 };
306
307 timer1: timer1@ffc03100 {
308 compatible = "snps,dw-apb-timer";
309 interrupts = <0 114 4>;
310 reg = <0xffc03100 0x100>;
311 };
312
313 timer2: timer2@ffd00000 {
314 compatible = "snps,dw-apb-timer";
315 interrupts = <0 115 4>;
316 reg = <0xffd00000 0x100>;
317 };
318
319 timer3: timer3@ffd00100 {
320 compatible = "snps,dw-apb-timer";
321 interrupts = <0 116 4>;
322 reg = <0xffd00100 0x100>;
323 };
324
325 uart0: serial0@ffc02000 {
326 compatible = "snps,dw-apb-uart";
327 reg = <0xffc02000 0x100>;
328 interrupts = <0 108 4>;
329 reg-shift = <2>;
330 reg-io-width = <4>;
331 resets = <&rst UART0_RESET>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800332 clock-frequency = <100000000>;
333 u-boot,dm-pre-reloc;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600334 status = "disabled";
335 };
336
337 uart1: serial1@ffc02100 {
338 compatible = "snps,dw-apb-uart";
339 reg = <0xffc02100 0x100>;
340 interrupts = <0 109 4>;
341 reg-shift = <2>;
342 reg-io-width = <4>;
343 resets = <&rst UART1_RESET>;
344 status = "disabled";
345 };
346
347 usbphy0: usbphy@0 {
348 #phy-cells = <0>;
349 compatible = "usb-nop-xceiv";
350 status = "okay";
351 };
352
353 usb0: usb@ffb00000 {
354 compatible = "snps,dwc2";
355 reg = <0xffb00000 0x40000>;
356 interrupts = <0 93 4>;
357 phys = <&usbphy0>;
358 phy-names = "usb2-phy";
359 resets = <&rst USB0_RESET>, <&rst USB0_OCP_RESET>;
360 reset-names = "dwc2", "dwc2-ecc";
361 status = "disabled";
362 };
363
364 usb1: usb@ffb40000 {
365 compatible = "snps,dwc2";
366 reg = <0xffb40000 0x40000>;
367 interrupts = <0 94 4>;
368 phys = <&usbphy0>;
369 phy-names = "usb2-phy";
370 resets = <&rst USB1_RESET>, <&rst USB1_OCP_RESET>;
371 reset-names = "dwc2", "dwc2-ecc";
372 status = "disabled";
373 };
374
375 watchdog0: watchdog@ffd00200 {
376 compatible = "snps,dw-wdt";
377 reg = <0xffd00200 0x100>;
378 interrupts = <0 117 4>;
379 resets = <&rst WATCHDOG0_RESET>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +0800380 u-boot,dm-pre-reloc;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600381 status = "disabled";
382 };
383
384 watchdog1: watchdog@ffd00300 {
385 compatible = "snps,dw-wdt";
386 reg = <0xffd00300 0x100>;
387 interrupts = <0 118 4>;
388 resets = <&rst WATCHDOG1_RESET>;
389 status = "disabled";
390 };
391
392 watchdog2: watchdog@ffd00400 {
393 compatible = "snps,dw-wdt";
394 reg = <0xffd00400 0x100>;
395 interrupts = <0 125 4>;
396 resets = <&rst WATCHDOG2_RESET>;
397 status = "disabled";
398 };
399
400 watchdog3: watchdog@ffd00500 {
401 compatible = "snps,dw-wdt";
402 reg = <0xffd00500 0x100>;
403 interrupts = <0 126 4>;
404 resets = <&rst WATCHDOG3_RESET>;
405 status = "disabled";
406 };
407 };
408};