blob: bab34ab56c134ce2c9e09021151bf2bbd77fb580 [file] [log] [blame]
Ley Foon Tan32cc1982020-04-07 15:43:13 +08001// SPDX-License-Identifier: GPL-2.0
Ley Foon Tan2f721202017-04-26 02:44:44 +08002/*
Marek Vasut03f80b12018-04-23 01:37:57 +02003 * Copyright Altera Corporation (C) 2014. All rights reserved.
Ley Foon Tan2f721202017-04-26 02:44:44 +08004 */
5
Ley Foon Tan2f721202017-04-26 02:44:44 +08006#include <dt-bindings/interrupt-controller/arm-gic.h>
7#include <dt-bindings/reset/altr,rst-mgr-a10.h>
8
9/ {
10 #address-cells = <1>;
11 #size-cells = <1>;
12
Ley Foon Tan2f721202017-04-26 02:44:44 +080013 cpus {
14 #address-cells = <1>;
15 #size-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +020016 enable-method = "altr,socfpga-a10-smp";
Ley Foon Tan2f721202017-04-26 02:44:44 +080017
18 cpu@0 {
19 compatible = "arm,cortex-a9";
20 device_type = "cpu";
21 reg = <0>;
22 next-level-cache = <&L2>;
23 };
24 cpu@1 {
25 compatible = "arm,cortex-a9";
26 device_type = "cpu";
27 reg = <1>;
28 next-level-cache = <&L2>;
29 };
30 };
31
32 intc: intc@ffffd000 {
33 compatible = "arm,cortex-a9-gic";
34 #interrupt-cells = <3>;
35 interrupt-controller;
36 reg = <0xffffd000 0x1000>,
37 <0xffffc100 0x100>;
38 };
39
40 soc {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 compatible = "simple-bus";
44 device_type = "soc";
45 interrupt-parent = <&intc>;
46 ranges;
47
48 amba {
49 compatible = "simple-bus";
50 #address-cells = <1>;
51 #size-cells = <1>;
52 ranges;
53
54 pdma: pdma@ffda1000 {
55 compatible = "arm,pl330", "arm,primecell";
56 reg = <0xffda1000 0x1000>;
57 interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>,
58 <0 84 IRQ_TYPE_LEVEL_HIGH>,
59 <0 85 IRQ_TYPE_LEVEL_HIGH>,
60 <0 86 IRQ_TYPE_LEVEL_HIGH>,
61 <0 87 IRQ_TYPE_LEVEL_HIGH>,
62 <0 88 IRQ_TYPE_LEVEL_HIGH>,
63 <0 89 IRQ_TYPE_LEVEL_HIGH>,
64 <0 90 IRQ_TYPE_LEVEL_HIGH>,
65 <0 91 IRQ_TYPE_LEVEL_HIGH>;
66 #dma-cells = <1>;
67 #dma-channels = <8>;
68 #dma-requests = <32>;
69 clocks = <&l4_main_clk>;
70 clock-names = "apb_pclk";
Ley Foon Tan32cc1982020-04-07 15:43:13 +080071 resets = <&rst DMA_RESET>, <&rst DMA_OCP_RESET>;
72 reset-names = "dma", "dma-ocp";
Ley Foon Tan2f721202017-04-26 02:44:44 +080073 };
74 };
75
Marek Vasut03f80b12018-04-23 01:37:57 +020076 base_fpga_region {
77 #address-cells = <0x1>;
78 #size-cells = <0x1>;
Ley Foon Tan2f721202017-04-26 02:44:44 +080079
Marek Vasut03f80b12018-04-23 01:37:57 +020080 compatible = "fpga-region";
81 fpga-mgr = <&fpga_mgr>;
82 };
Ley Foon Tan2f721202017-04-26 02:44:44 +080083
Ley Foon Tana217c122019-11-08 10:38:18 +080084 clkmgr: clkmgr@ffd04000 {
Marek Vasut03f80b12018-04-23 01:37:57 +020085 compatible = "altr,clk-mgr";
86 reg = <0xffd04000 0x1000>;
Ley Foon Tan2f721202017-04-26 02:44:44 +080087
Marek Vasut03f80b12018-04-23 01:37:57 +020088 clocks {
Ley Foon Tan2f721202017-04-26 02:44:44 +080089 #address-cells = <1>;
90 #size-cells = <0>;
Ley Foon Tan2f721202017-04-26 02:44:44 +080091
Marek Vasut03f80b12018-04-23 01:37:57 +020092 cb_intosc_hs_div2_clk: cb_intosc_hs_div2_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +080093 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +020094 compatible = "fixed-clock";
Ley Foon Tan2f721202017-04-26 02:44:44 +080095 };
96
Marek Vasut03f80b12018-04-23 01:37:57 +020097 cb_intosc_ls_clk: cb_intosc_ls_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +080098 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +020099 compatible = "fixed-clock";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800100 };
101
Marek Vasut03f80b12018-04-23 01:37:57 +0200102 f2s_free_clk: f2s_free_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800103 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200104 compatible = "fixed-clock";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800105 };
106
Marek Vasut03f80b12018-04-23 01:37:57 +0200107 osc1: osc1 {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800108 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200109 compatible = "fixed-clock";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800110 };
111
Marek Vasut03f80b12018-04-23 01:37:57 +0200112 main_pll: main_pll@40 {
113 #address-cells = <1>;
114 #size-cells = <0>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800115 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200116 compatible = "altr,socfpga-a10-pll-clock";
117 clocks = <&osc1>, <&cb_intosc_ls_clk>,
118 <&f2s_free_clk>;
119 reg = <0x40>;
120
121 main_mpu_base_clk: main_mpu_base_clk {
122 #clock-cells = <0>;
123 compatible = "altr,socfpga-a10-perip-clk";
124 clocks = <&main_pll>;
125 div-reg = <0x140 0 11>;
126 };
127
128 main_noc_base_clk: main_noc_base_clk {
129 #clock-cells = <0>;
130 compatible = "altr,socfpga-a10-perip-clk";
131 clocks = <&main_pll>;
132 div-reg = <0x144 0 11>;
133 };
134
135 main_emaca_clk: main_emaca_clk@68 {
136 #clock-cells = <0>;
137 compatible = "altr,socfpga-a10-perip-clk";
138 clocks = <&main_pll>;
139 reg = <0x68>;
140 };
141
142 main_emacb_clk: main_emacb_clk@6c {
143 #clock-cells = <0>;
144 compatible = "altr,socfpga-a10-perip-clk";
145 clocks = <&main_pll>;
146 reg = <0x6C>;
147 };
148
149 main_emac_ptp_clk: main_emac_ptp_clk@70 {
150 #clock-cells = <0>;
151 compatible = "altr,socfpga-a10-perip-clk";
152 clocks = <&main_pll>;
153 reg = <0x70>;
154 };
155
156 main_gpio_db_clk: main_gpio_db_clk@74 {
157 #clock-cells = <0>;
158 compatible = "altr,socfpga-a10-perip-clk";
159 clocks = <&main_pll>;
160 reg = <0x74>;
161 };
162
163 main_sdmmc_clk: main_sdmmc_clk@78 {
164 #clock-cells = <0>;
165 compatible = "altr,socfpga-a10-perip-clk"
166;
167 clocks = <&main_pll>;
168 reg = <0x78>;
169 };
170
171 main_s2f_usr0_clk: main_s2f_usr0_clk@7c {
172 #clock-cells = <0>;
173 compatible = "altr,socfpga-a10-perip-clk";
174 clocks = <&main_pll>;
175 reg = <0x7C>;
176 };
177
178 main_s2f_usr1_clk: main_s2f_usr1_clk@80 {
179 #clock-cells = <0>;
180 compatible = "altr,socfpga-a10-perip-clk";
181 clocks = <&main_pll>;
182 reg = <0x80>;
183 };
184
185 main_hmc_pll_ref_clk: main_hmc_pll_ref_clk@84 {
186 #clock-cells = <0>;
187 compatible = "altr,socfpga-a10-perip-clk";
188 clocks = <&main_pll>;
189 reg = <0x84>;
190 };
191
192 main_periph_ref_clk: main_periph_ref_clk@9c {
193 #clock-cells = <0>;
194 compatible = "altr,socfpga-a10-perip-clk";
195 clocks = <&main_pll>;
196 reg = <0x9C>;
197 };
Ley Foon Tan2f721202017-04-26 02:44:44 +0800198 };
199
Marek Vasut03f80b12018-04-23 01:37:57 +0200200 periph_pll: periph_pll@c0 {
201 #address-cells = <1>;
202 #size-cells = <0>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800203 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200204 compatible = "altr,socfpga-a10-pll-clock";
205 clocks = <&osc1>, <&cb_intosc_ls_clk>,
206 <&f2s_free_clk>, <&main_periph_ref_clk>;
207 reg = <0xC0>;
208
209 peri_mpu_base_clk: peri_mpu_base_clk {
210 #clock-cells = <0>;
211 compatible = "altr,socfpga-a10-perip-clk";
212 clocks = <&periph_pll>;
213 div-reg = <0x140 16 11>;
214 };
215
216 peri_noc_base_clk: peri_noc_base_clk {
217 #clock-cells = <0>;
218 compatible = "altr,socfpga-a10-perip-clk";
219 clocks = <&periph_pll>;
220 div-reg = <0x144 16 11>;
221 };
222
223 peri_emaca_clk: peri_emaca_clk@e8 {
224 #clock-cells = <0>;
225 compatible = "altr,socfpga-a10-perip-clk";
226 clocks = <&periph_pll>;
227 reg = <0xE8>;
228 };
229
230 peri_emacb_clk: peri_emacb_clk@ec {
231 #clock-cells = <0>;
232 compatible = "altr,socfpga-a10-perip-clk";
233 clocks = <&periph_pll>;
234 reg = <0xEC>;
235 };
236
237 peri_emac_ptp_clk: peri_emac_ptp_clk@f0 {
238 #clock-cells = <0>;
239 compatible = "altr,socfpga-a10-perip-clk";
240 clocks = <&periph_pll>;
241 reg = <0xF0>;
242 };
243
244 peri_gpio_db_clk: peri_gpio_db_clk@f4 {
245 #clock-cells = <0>;
246 compatible = "altr,socfpga-a10-perip-clk";
247 clocks = <&periph_pll>;
248 reg = <0xF4>;
249 };
250
251 peri_sdmmc_clk: peri_sdmmc_clk@f8 {
252 #clock-cells = <0>;
253 compatible = "altr,socfpga-a10-perip-clk";
254 clocks = <&periph_pll>;
255 reg = <0xF8>;
256 };
257
258 peri_s2f_usr0_clk: peri_s2f_usr0_clk@fc {
259 #clock-cells = <0>;
260 compatible = "altr,socfpga-a10-perip-clk";
261 clocks = <&periph_pll>;
262 reg = <0xFC>;
263 };
264
265 peri_s2f_usr1_clk: peri_s2f_usr1_clk@100 {
266 #clock-cells = <0>;
267 compatible = "altr,socfpga-a10-perip-clk";
268 clocks = <&periph_pll>;
269 reg = <0x100>;
270 };
271
272 peri_hmc_pll_ref_clk: peri_hmc_pll_ref_clk@104 {
273 #clock-cells = <0>;
274 compatible = "altr,socfpga-a10-perip-clk";
275 clocks = <&periph_pll>;
276 reg = <0x104>;
277 };
Ley Foon Tan2f721202017-04-26 02:44:44 +0800278 };
279
Marek Vasut03f80b12018-04-23 01:37:57 +0200280 mpu_free_clk: mpu_free_clk@60 {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800281 #clock-cells = <0>;
282 compatible = "altr,socfpga-a10-perip-clk";
Marek Vasut03f80b12018-04-23 01:37:57 +0200283 clocks = <&main_mpu_base_clk>, <&peri_mpu_base_clk>,
284 <&osc1>, <&cb_intosc_hs_div2_clk>,
285 <&f2s_free_clk>;
286 reg = <0x60>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800287 };
288
Marek Vasut03f80b12018-04-23 01:37:57 +0200289 noc_free_clk: noc_free_clk@64 {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800290 #clock-cells = <0>;
291 compatible = "altr,socfpga-a10-perip-clk";
Marek Vasut03f80b12018-04-23 01:37:57 +0200292 clocks = <&main_noc_base_clk>, <&peri_noc_base_clk>,
293 <&osc1>, <&cb_intosc_hs_div2_clk>,
294 <&f2s_free_clk>;
295 reg = <0x64>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800296 };
297
Marek Vasut03f80b12018-04-23 01:37:57 +0200298 s2f_user1_free_clk: s2f_user1_free_clk@104 {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800299 #clock-cells = <0>;
300 compatible = "altr,socfpga-a10-perip-clk";
Marek Vasut03f80b12018-04-23 01:37:57 +0200301 clocks = <&main_s2f_usr1_clk>, <&peri_s2f_usr1_clk>,
302 <&osc1>, <&cb_intosc_hs_div2_clk>,
303 <&f2s_free_clk>;
304 reg = <0x104>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800305 };
306
Marek Vasut03f80b12018-04-23 01:37:57 +0200307 sdmmc_free_clk: sdmmc_free_clk@f8 {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800308 #clock-cells = <0>;
309 compatible = "altr,socfpga-a10-perip-clk";
Marek Vasut03f80b12018-04-23 01:37:57 +0200310 clocks = <&main_sdmmc_clk>, <&peri_sdmmc_clk>,
311 <&osc1>, <&cb_intosc_hs_div2_clk>,
312 <&f2s_free_clk>;
313 fixed-divider = <4>;
314 reg = <0xF8>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800315 };
316
Marek Vasut03f80b12018-04-23 01:37:57 +0200317 l4_sys_free_clk: l4_sys_free_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800318 #clock-cells = <0>;
319 compatible = "altr,socfpga-a10-perip-clk";
Marek Vasut03f80b12018-04-23 01:37:57 +0200320 clocks = <&noc_free_clk>;
321 fixed-divider = <4>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800322 };
Ley Foon Tan2f721202017-04-26 02:44:44 +0800323
Marek Vasut03f80b12018-04-23 01:37:57 +0200324 l4_main_clk: l4_main_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800325 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200326 compatible = "altr,socfpga-a10-gate-clk";
327 clocks = <&noc_free_clk>;
328 div-reg = <0xA8 0 2>;
329 clk-gate = <0x48 1>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800330 };
331
Marek Vasut03f80b12018-04-23 01:37:57 +0200332 l4_mp_clk: l4_mp_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800333 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200334 compatible = "altr,socfpga-a10-gate-clk";
335 clocks = <&noc_free_clk>;
336 div-reg = <0xA8 8 2>;
337 clk-gate = <0x48 2>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800338 };
339
Marek Vasut03f80b12018-04-23 01:37:57 +0200340 l4_sp_clk: l4_sp_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800341 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200342 compatible = "altr,socfpga-a10-gate-clk";
343 clocks = <&noc_free_clk>;
344 div-reg = <0xA8 16 2>;
345 clk-gate = <0x48 3>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800346 };
347
Marek Vasut03f80b12018-04-23 01:37:57 +0200348 mpu_periph_clk: mpu_periph_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800349 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200350 compatible = "altr,socfpga-a10-gate-clk";
351 clocks = <&mpu_free_clk>;
352 fixed-divider = <4>;
353 clk-gate = <0x48 0>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800354 };
355
Marek Vasut03f80b12018-04-23 01:37:57 +0200356 sdmmc_clk: sdmmc_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800357 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200358 compatible = "altr,socfpga-a10-gate-clk";
359 clocks = <&sdmmc_free_clk>;
360 clk-gate = <0xC8 5>;
361 clk-phase = <0 135>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800362 };
363
Marek Vasut03f80b12018-04-23 01:37:57 +0200364 qspi_clk: qspi_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800365 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200366 compatible = "altr,socfpga-a10-gate-clk";
367 clocks = <&l4_main_clk>;
368 clk-gate = <0xC8 11>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800369 };
370
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800371 nand_x_clk: nand_x_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800372 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200373 compatible = "altr,socfpga-a10-gate-clk";
374 clocks = <&l4_mp_clk>;
375 clk-gate = <0xC8 10>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800376 };
377
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800378 nand_ecc_clk: nand_ecc_clk {
379 #clock-cells = <0>;
380 compatible = "altr,socfpga-a10-gate-clk";
381 clocks = <&nand_x_clk>;
382 clk-gate = <0xC8 10>;
383 };
384
385 nand_clk: nand_clk {
386 #clock-cells = <0>;
387 compatible = "altr,socfpga-a10-gate-clk";
388 clocks = <&nand_x_clk>;
389 fixed-divider = <4>;
390 clk-gate = <0xC8 10>;
391 };
392
Marek Vasut03f80b12018-04-23 01:37:57 +0200393 spi_m_clk: spi_m_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800394 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200395 compatible = "altr,socfpga-a10-gate-clk";
396 clocks = <&l4_main_clk>;
397 clk-gate = <0xC8 9>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800398 };
399
Marek Vasut03f80b12018-04-23 01:37:57 +0200400 usb_clk: usb_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800401 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200402 compatible = "altr,socfpga-a10-gate-clk";
403 clocks = <&l4_mp_clk>;
404 clk-gate = <0xC8 8>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800405 };
406
Marek Vasut03f80b12018-04-23 01:37:57 +0200407 s2f_usr1_clk: s2f_usr1_clk {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800408 #clock-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200409 compatible = "altr,socfpga-a10-gate-clk";
410 clocks = <&peri_s2f_usr1_clk>;
411 clk-gate = <0xC8 6>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800412 };
413 };
Marek Vasut03f80b12018-04-23 01:37:57 +0200414 };
Ley Foon Tan2f721202017-04-26 02:44:44 +0800415
Marek Vasut03f80b12018-04-23 01:37:57 +0200416 socfpga_axi_setup: stmmac-axi-config {
417 snps,wr_osr_lmt = <0xf>;
418 snps,rd_osr_lmt = <0xf>;
419 snps,blen = <0 0 0 0 16 0 0>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800420 };
421
422 gmac0: ethernet@ff800000 {
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800423 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800424 altr,sysmgr-syscon = <&sysmgr 0x44 0>;
425 reg = <0xff800000 0x2000>;
426 interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>;
427 interrupt-names = "macirq";
428 /* Filled in by bootloader */
429 mac-address = [00 00 00 00 00 00];
430 snps,multicast-filter-bins = <256>;
431 snps,perfect-filter-entries = <128>;
432 tx-fifo-depth = <4096>;
433 rx-fifo-depth = <16384>;
434 clocks = <&l4_mp_clk>;
435 clock-names = "stmmaceth";
Marek Vasutfbf9e402018-08-13 20:24:20 +0200436 resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
437 reset-names = "stmmaceth", "stmmaceth-ocp";
Marek Vasut03f80b12018-04-23 01:37:57 +0200438 snps,axi-config = <&socfpga_axi_setup>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800439 status = "disabled";
440 };
441
442 gmac1: ethernet@ff802000 {
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800443 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
444 altr,sysmgr-syscon = <&sysmgr 0x48 8>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800445 reg = <0xff802000 0x2000>;
446 interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>;
447 interrupt-names = "macirq";
448 /* Filled in by bootloader */
449 mac-address = [00 00 00 00 00 00];
450 snps,multicast-filter-bins = <256>;
451 snps,perfect-filter-entries = <128>;
452 tx-fifo-depth = <4096>;
453 rx-fifo-depth = <16384>;
454 clocks = <&l4_mp_clk>;
455 clock-names = "stmmaceth";
Marek Vasutfbf9e402018-08-13 20:24:20 +0200456 resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
457 reset-names = "stmmaceth", "stmmaceth-ocp";
Marek Vasut03f80b12018-04-23 01:37:57 +0200458 snps,axi-config = <&socfpga_axi_setup>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800459 status = "disabled";
460 };
461
462 gmac2: ethernet@ff804000 {
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800463 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
464 altr,sysmgr-syscon = <&sysmgr 0x4C 16>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800465 reg = <0xff804000 0x2000>;
466 interrupts = <0 94 IRQ_TYPE_LEVEL_HIGH>;
467 interrupt-names = "macirq";
468 /* Filled in by bootloader */
469 mac-address = [00 00 00 00 00 00];
470 snps,multicast-filter-bins = <256>;
471 snps,perfect-filter-entries = <128>;
472 tx-fifo-depth = <4096>;
473 rx-fifo-depth = <16384>;
474 clocks = <&l4_mp_clk>;
475 clock-names = "stmmaceth";
Marek Vasutfbf9e402018-08-13 20:24:20 +0200476 resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
477 reset-names = "stmmaceth", "stmmaceth-ocp";
Marek Vasut03f80b12018-04-23 01:37:57 +0200478 snps,axi-config = <&socfpga_axi_setup>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800479 status = "disabled";
480 };
481
482 gpio0: gpio@ffc02900 {
483 #address-cells = <1>;
484 #size-cells = <0>;
485 compatible = "snps,dw-apb-gpio";
486 reg = <0xffc02900 0x100>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800487 resets = <&rst GPIO0_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800488 status = "disabled";
489
490 porta: gpio-controller@0 {
491 compatible = "snps,dw-apb-gpio-port";
492 gpio-controller;
493 #gpio-cells = <2>;
494 snps,nr-gpios = <29>;
495 reg = <0>;
496 interrupt-controller;
497 #interrupt-cells = <2>;
498 interrupts = <0 112 IRQ_TYPE_LEVEL_HIGH>;
499 };
500 };
501
502 gpio1: gpio@ffc02a00 {
503 #address-cells = <1>;
504 #size-cells = <0>;
505 compatible = "snps,dw-apb-gpio";
506 reg = <0xffc02a00 0x100>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800507 resets = <&rst GPIO1_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800508 status = "disabled";
509
510 portb: gpio-controller@0 {
511 compatible = "snps,dw-apb-gpio-port";
512 gpio-controller;
513 #gpio-cells = <2>;
514 snps,nr-gpios = <29>;
515 reg = <0>;
516 interrupt-controller;
517 #interrupt-cells = <2>;
518 interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
519 };
520 };
521
522 gpio2: gpio@ffc02b00 {
523 #address-cells = <1>;
524 #size-cells = <0>;
525 compatible = "snps,dw-apb-gpio";
526 reg = <0xffc02b00 0x100>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800527 resets = <&rst GPIO2_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800528 status = "disabled";
529
530 portc: gpio-controller@0 {
531 compatible = "snps,dw-apb-gpio-port";
532 gpio-controller;
533 #gpio-cells = <2>;
534 snps,nr-gpios = <27>;
535 reg = <0>;
536 interrupt-controller;
537 #interrupt-cells = <2>;
538 interrupts = <0 114 IRQ_TYPE_LEVEL_HIGH>;
539 };
540 };
541
542 fpga_mgr: fpga-mgr@ffd03000 {
543 compatible = "altr,socfpga-a10-fpga-mgr";
544 reg = <0xffd03000 0x100
545 0xffcfe400 0x20>;
546 clocks = <&l4_mp_clk>;
547 resets = <&rst FPGAMGR_RESET>;
548 reset-names = "fpgamgr";
549 };
550
551 i2c0: i2c@ffc02200 {
552 #address-cells = <1>;
553 #size-cells = <0>;
554 compatible = "snps,designware-i2c";
555 reg = <0xffc02200 0x100>;
556 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
557 clocks = <&l4_sp_clk>;
Marek Vasutde756742018-08-13 20:40:44 +0200558 resets = <&rst I2C0_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800559 status = "disabled";
560 };
561
562 i2c1: i2c@ffc02300 {
563 #address-cells = <1>;
564 #size-cells = <0>;
565 compatible = "snps,designware-i2c";
566 reg = <0xffc02300 0x100>;
567 interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
568 clocks = <&l4_sp_clk>;
Marek Vasutde756742018-08-13 20:40:44 +0200569 resets = <&rst I2C1_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800570 status = "disabled";
571 };
572
573 i2c2: i2c@ffc02400 {
574 #address-cells = <1>;
575 #size-cells = <0>;
576 compatible = "snps,designware-i2c";
577 reg = <0xffc02400 0x100>;
578 interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
579 clocks = <&l4_sp_clk>;
Marek Vasutde756742018-08-13 20:40:44 +0200580 resets = <&rst I2C2_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800581 status = "disabled";
582 };
583
584 i2c3: i2c@ffc02500 {
585 #address-cells = <1>;
586 #size-cells = <0>;
587 compatible = "snps,designware-i2c";
588 reg = <0xffc02500 0x100>;
589 interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
590 clocks = <&l4_sp_clk>;
Marek Vasutde756742018-08-13 20:40:44 +0200591 resets = <&rst I2C3_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800592 status = "disabled";
593 };
594
595 i2c4: i2c@ffc02600 {
596 #address-cells = <1>;
597 #size-cells = <0>;
598 compatible = "snps,designware-i2c";
599 reg = <0xffc02600 0x100>;
600 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH>;
601 clocks = <&l4_sp_clk>;
Marek Vasutde756742018-08-13 20:40:44 +0200602 resets = <&rst I2C4_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800603 status = "disabled";
604 };
605
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800606 spi0: spi@ffda4000 {
Sean Andersonfd9571a2020-10-16 18:57:50 -0400607 compatible = "altr,socfpga-arria10-spi",
608 "snps,dw-apb-ssi-3.22a", "snps,dw-apb-ssi";
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800609 #address-cells = <1>;
610 #size-cells = <0>;
611 reg = <0xffda4000 0x100>;
612 interrupts = <0 101 4>;
613 num-cs = <4>;
614 /*32bit_access;*/
615 clocks = <&spi_m_clk>;
616 resets = <&rst SPIM0_RESET>;
617 status = "disabled";
618 };
619
Marek Vasut03f80b12018-04-23 01:37:57 +0200620 spi1: spi@ffda5000 {
Sean Andersonfd9571a2020-10-16 18:57:50 -0400621 compatible = "altr,socfpga-arria10-spi",
622 "snps,dw-apb-ssi-3.22a", "snps,dw-apb-ssi";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800623 #address-cells = <1>;
624 #size-cells = <0>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200625 reg = <0xffda5000 0x100>;
626 interrupts = <0 102 4>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800627 num-cs = <4>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200628 /*32bit_access;*/
Ley Foon Tan2f721202017-04-26 02:44:44 +0800629 tx-dma-channel = <&pdma 16>;
630 rx-dma-channel = <&pdma 17>;
631 clocks = <&spi_m_clk>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800632 resets = <&rst SPIM1_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800633 status = "disabled";
634 };
635
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800636 sdr: sdr@ffcfb100 {
Marek Vasut03f80b12018-04-23 01:37:57 +0200637 compatible = "altr,sdr-ctl", "syscon";
638 reg = <0xffcfb100 0x80>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800639 };
640
641 L2: l2-cache@fffff000 {
642 compatible = "arm,pl310-cache";
643 reg = <0xfffff000 0x1000>;
644 interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
645 cache-unified;
646 cache-level = <2>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200647 prefetch-data = <1>;
648 prefetch-instr = <1>;
649 arm,shared-override;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800650 };
651
652 mmc: dwmmc0@ff808000 {
653 #address-cells = <1>;
654 #size-cells = <0>;
655 compatible = "altr,socfpga-dw-mshc";
656 reg = <0xff808000 0x1000>;
657 interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>;
658 fifo-depth = <0x400>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800659 clocks = <&l4_mp_clk>, <&sdmmc_clk>;
660 clock-names = "biu", "ciu";
Tien Fong Cheed5957fb2018-12-30 16:13:45 +0800661 resets = <&rst SDMMC_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800662 status = "disabled";
663 };
664
Marek Vasut03f80b12018-04-23 01:37:57 +0200665 nand: nand@ffb90000 {
666 #address-cells = <1>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800667 #size-cells = <0>;
668 compatible = "altr,socfpga-denali-nand";
669 reg = <0xffb90000 0x72000>,
670 <0xffb80000 0x10000>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200671 reg-names = "nand_data", "denali_reg";
672 interrupts = <0 99 4>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800673 clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
674 clock-names = "nand", "nand_x", "ecc";
Marek Vasuta313da32018-08-21 15:54:22 +0200675 resets = <&rst NAND_RESET>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200676 status = "disabled";
677 };
678
Ley Foon Tan2f721202017-04-26 02:44:44 +0800679 ocram: sram@ffe00000 {
680 compatible = "mmio-sram";
681 reg = <0xffe00000 0x40000>;
682 };
683
Marek Vasut03f80b12018-04-23 01:37:57 +0200684 eccmgr: eccmgr {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800685 compatible = "altr,socfpga-a10-ecc-manager";
686 altr,sysmgr-syscon = <&sysmgr>;
687 #address-cells = <1>;
688 #size-cells = <1>;
689 interrupts = <0 2 IRQ_TYPE_LEVEL_HIGH>,
690 <0 0 IRQ_TYPE_LEVEL_HIGH>;
691 interrupt-controller;
692 #interrupt-cells = <2>;
693 ranges;
694
695 sdramedac {
696 compatible = "altr,sdram-edac-a10";
697 altr,sdr-syscon = <&sdr>;
698 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>,
699 <49 IRQ_TYPE_LEVEL_HIGH>;
700 };
701
702 l2-ecc@ffd06010 {
703 compatible = "altr,socfpga-a10-l2-ecc";
704 reg = <0xffd06010 0x4>;
705 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
706 <32 IRQ_TYPE_LEVEL_HIGH>;
707 };
708
709 ocram-ecc@ff8c3000 {
710 compatible = "altr,socfpga-a10-ocram-ecc";
711 reg = <0xff8c3000 0x400>;
712 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>,
713 <33 IRQ_TYPE_LEVEL_HIGH>;
714 };
715
Ley Foon Tan2f721202017-04-26 02:44:44 +0800716 emac0-rx-ecc@ff8c0800 {
717 compatible = "altr,socfpga-eth-mac-ecc";
718 reg = <0xff8c0800 0x400>;
719 altr,ecc-parent = <&gmac0>;
720 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>,
721 <36 IRQ_TYPE_LEVEL_HIGH>;
722 };
723
724 emac0-tx-ecc@ff8c0c00 {
725 compatible = "altr,socfpga-eth-mac-ecc";
726 reg = <0xff8c0c00 0x400>;
727 altr,ecc-parent = <&gmac0>;
728 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>,
729 <37 IRQ_TYPE_LEVEL_HIGH>;
730 };
731
732 dma-ecc@ff8c8000 {
733 compatible = "altr,socfpga-dma-ecc";
734 reg = <0xff8c8000 0x400>;
735 altr,ecc-parent = <&pdma>;
736 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
737 <42 IRQ_TYPE_LEVEL_HIGH>;
738 };
739
740 usb0-ecc@ff8c8800 {
741 compatible = "altr,socfpga-usb-ecc";
742 reg = <0xff8c8800 0x400>;
743 altr,ecc-parent = <&usb0>;
744 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
745 <34 IRQ_TYPE_LEVEL_HIGH>;
746 };
747 };
748
Marek Vasut03f80b12018-04-23 01:37:57 +0200749 qspi: spi@ff809000 {
Simon Goldschmidt454c9b32018-11-02 11:54:51 +0100750 compatible = "cdns,qspi-nor";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800751 #address-cells = <1>;
752 #size-cells = <0>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800753 reg = <0xff809000 0x100>,
Marek Vasut03f80b12018-04-23 01:37:57 +0200754 <0xffa00000 0x100000>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800755 interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
Jason Rushfeaa3f92018-01-23 17:13:10 -0600756 cdns,fifo-depth = <128>;
757 cdns,fifo-width = <4>;
Marek Vasut03f80b12018-04-23 01:37:57 +0200758 cdns,trigger-address = <0x00000000>;
759 clocks = <&qspi_clk>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800760 resets = <&rst QSPI_RESET>, <&rst QSPI_OCP_RESET>;
761 reset-names = "qspi", "qspi-ocp";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800762 status = "disabled";
763 };
764
765 rst: rstmgr@ffd05000 {
766 #reset-cells = <1>;
767 compatible = "altr,rst-mgr";
768 reg = <0xffd05000 0x100>;
769 altr,modrst-offset = <0x20>;
770 };
771
772 scu: snoop-control-unit@ffffc000 {
773 compatible = "arm,cortex-a9-scu";
774 reg = <0xffffc000 0x100>;
775 };
776
777 sysmgr: sysmgr@ffd06000 {
778 compatible = "altr,sys-mgr", "syscon";
779 reg = <0xffd06000 0x300>;
780 cpu1-start-addr = <0xffd06230>;
781 };
782
783 /* Local timer */
784 timer@ffffc600 {
785 compatible = "arm,cortex-a9-twd-timer";
786 reg = <0xffffc600 0x100>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800787 interrupts = <1 13 0xf01>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800788 clocks = <&mpu_periph_clk>;
789 };
790
791 timer0: timer0@ffc02700 {
792 compatible = "snps,dw-apb-timer";
793 interrupts = <0 115 IRQ_TYPE_LEVEL_HIGH>;
794 reg = <0xffc02700 0x100>;
795 clocks = <&l4_sp_clk>;
796 clock-names = "timer";
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800797 resets = <&rst SPTIMER0_RESET>;
798 reset-names = "timer";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800799 };
800
801 timer1: timer1@ffc02800 {
802 compatible = "snps,dw-apb-timer";
803 interrupts = <0 116 IRQ_TYPE_LEVEL_HIGH>;
804 reg = <0xffc02800 0x100>;
805 clocks = <&l4_sp_clk>;
806 clock-names = "timer";
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800807 resets = <&rst SPTIMER1_RESET>;
808 reset-names = "timer";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800809 };
810
811 timer2: timer2@ffd00000 {
812 compatible = "snps,dw-apb-timer";
813 interrupts = <0 117 IRQ_TYPE_LEVEL_HIGH>;
814 reg = <0xffd00000 0x100>;
815 clocks = <&l4_sys_free_clk>;
816 clock-names = "timer";
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800817 resets = <&rst L4SYSTIMER0_RESET>;
818 reset-names = "timer";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800819 };
820
821 timer3: timer3@ffd00100 {
822 compatible = "snps,dw-apb-timer";
823 interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>;
824 reg = <0xffd01000 0x100>;
825 clocks = <&l4_sys_free_clk>;
826 clock-names = "timer";
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800827 resets = <&rst L4SYSTIMER1_RESET>;
828 reset-names = "timer";
Ley Foon Tan2f721202017-04-26 02:44:44 +0800829 };
830
831 uart0: serial0@ffc02000 {
832 compatible = "snps,dw-apb-uart";
833 reg = <0xffc02000 0x100>;
834 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
835 reg-shift = <2>;
836 reg-io-width = <4>;
837 clocks = <&l4_sp_clk>;
Marek Vasutc6411f02018-08-13 18:42:39 +0200838 resets = <&rst UART0_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800839 status = "disabled";
840 };
841
842 uart1: serial1@ffc02100 {
843 compatible = "snps,dw-apb-uart";
844 reg = <0xffc02100 0x100>;
845 interrupts = <0 111 IRQ_TYPE_LEVEL_HIGH>;
846 reg-shift = <2>;
847 reg-io-width = <4>;
848 clocks = <&l4_sp_clk>;
Marek Vasutc6411f02018-08-13 18:42:39 +0200849 resets = <&rst UART1_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800850 status = "disabled";
851 };
852
Marek Vasut03f80b12018-04-23 01:37:57 +0200853 usbphy0: usbphy {
Ley Foon Tan2f721202017-04-26 02:44:44 +0800854 #phy-cells = <0>;
855 compatible = "usb-nop-xceiv";
856 status = "okay";
857 };
858
859 usb0: usb@ffb00000 {
860 compatible = "snps,dwc2";
861 reg = <0xffb00000 0xffff>;
862 interrupts = <0 95 IRQ_TYPE_LEVEL_HIGH>;
863 clocks = <&usb_clk>;
864 clock-names = "otg";
865 resets = <&rst USB0_RESET>;
866 reset-names = "dwc2";
867 phys = <&usbphy0>;
868 phy-names = "usb2-phy";
869 status = "disabled";
870 };
871
872 usb1: usb@ffb40000 {
873 compatible = "snps,dwc2";
874 reg = <0xffb40000 0xffff>;
875 interrupts = <0 96 IRQ_TYPE_LEVEL_HIGH>;
876 clocks = <&usb_clk>;
877 clock-names = "otg";
878 resets = <&rst USB1_RESET>;
879 reset-names = "dwc2";
880 phys = <&usbphy0>;
881 phy-names = "usb2-phy";
882 status = "disabled";
883 };
884
885 watchdog0: watchdog@ffd00200 {
886 compatible = "snps,dw-wdt";
887 reg = <0xffd00200 0x100>;
888 interrupts = <0 119 IRQ_TYPE_LEVEL_HIGH>;
889 clocks = <&l4_sys_free_clk>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800890 resets = <&rst L4WD0_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800891 status = "disabled";
892 };
893
894 watchdog1: watchdog@ffd00300 {
895 compatible = "snps,dw-wdt";
896 reg = <0xffd00300 0x100>;
897 interrupts = <0 120 IRQ_TYPE_LEVEL_HIGH>;
898 clocks = <&l4_sys_free_clk>;
Ley Foon Tan32cc1982020-04-07 15:43:13 +0800899 resets = <&rst L4WD1_RESET>;
Ley Foon Tan2f721202017-04-26 02:44:44 +0800900 status = "disabled";
901 };
902 };
903};