blob: 3a02b417ba87327b0c2fd0d9488ecc16ad2ed8c0 [file] [log] [blame]
Dinh Nguyen66314222012-07-18 16:07:18 -06001/*
2 * Copyright (C) 2012 Altera <www.altera.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
Steffen Trumtrar7da9b432014-04-02 21:31:31 -050018#include "skeleton.dtsi"
Steffen Trumtrar16fb4f8b2014-04-15 17:27:07 -050019#include <dt-bindings/reset/altr,rst-mgr.h>
Dinh Nguyen66314222012-07-18 16:07:18 -060020
21/ {
22 #address-cells = <1>;
23 #size-cells = <1>;
24
25 aliases {
26 ethernet0 = &gmac0;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -050027 ethernet1 = &gmac1;
Dinh Nguyen66314222012-07-18 16:07:18 -060028 serial0 = &uart0;
29 serial1 = &uart1;
Dinh Nguyenc2ad2842013-02-11 17:30:30 -060030 timer0 = &timer0;
31 timer1 = &timer1;
32 timer2 = &timer2;
33 timer3 = &timer3;
Dinh Nguyen66314222012-07-18 16:07:18 -060034 };
35
36 cpus {
37 #address-cells = <1>;
38 #size-cells = <0>;
Dinh Nguyenebbce1b2015-05-22 23:00:10 -050039 enable-method = "altr,socfpga-smp";
Dinh Nguyen66314222012-07-18 16:07:18 -060040
41 cpu@0 {
42 compatible = "arm,cortex-a9";
43 device_type = "cpu";
44 reg = <0>;
45 next-level-cache = <&L2>;
46 };
47 cpu@1 {
48 compatible = "arm,cortex-a9";
49 device_type = "cpu";
50 reg = <1>;
51 next-level-cache = <&L2>;
52 };
53 };
54
55 intc: intc@fffed000 {
56 compatible = "arm,cortex-a9-gic";
57 #interrupt-cells = <3>;
58 interrupt-controller;
59 reg = <0xfffed000 0x1000>,
60 <0xfffec100 0x100>;
61 };
62
63 soc {
64 #address-cells = <1>;
65 #size-cells = <1>;
66 compatible = "simple-bus";
67 device_type = "soc";
68 interrupt-parent = <&intc>;
69 ranges;
70
71 amba {
72 compatible = "arm,amba-bus";
73 #address-cells = <1>;
74 #size-cells = <1>;
75 ranges;
76
77 pdma: pdma@ffe01000 {
78 compatible = "arm,pl330", "arm,primecell";
79 reg = <0xffe01000 0x1000>;
Steffen Trumtrar18d56192014-04-02 10:40:30 -050080 interrupts = <0 104 4>,
81 <0 105 4>,
82 <0 106 4>,
83 <0 107 4>,
84 <0 108 4>,
85 <0 109 4>,
86 <0 110 4>,
87 <0 111 4>;
Padmavathi Venna0d8abbf2013-03-04 11:04:28 +053088 #dma-cells = <1>;
89 #dma-channels = <8>;
90 #dma-requests = <32>;
Steffen Trumtrar672ef902014-01-08 12:01:26 -060091 clocks = <&l4_main_clk>;
92 clock-names = "apb_pclk";
Dinh Nguyen66314222012-07-18 16:07:18 -060093 };
94 };
95
Steffen Trumtrar36fe3f52014-04-02 11:11:26 -050096 can0: can@ffc00000 {
97 compatible = "bosch,d_can";
98 reg = <0xffc00000 0x1000>;
99 interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
100 clocks = <&can0_clk>;
101 status = "disabled";
102 };
103
104 can1: can@ffc01000 {
105 compatible = "bosch,d_can";
106 reg = <0xffc01000 0x1000>;
107 interrupts = <0 135 4>, <0 136 4>, <0 137 4>, <0 138 4>;
108 clocks = <&can1_clk>;
109 status = "disabled";
110 };
111
Dinh Nguyen042000b2013-04-11 10:55:25 -0500112 clkmgr@ffd04000 {
113 compatible = "altr,clk-mgr";
114 reg = <0xffd04000 0x1000>;
115
116 clocks {
117 #address-cells = <1>;
118 #size-cells = <0>;
119
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600120 osc1: osc1 {
121 #clock-cells = <0>;
122 compatible = "fixed-clock";
123 };
124
125 osc2: osc2 {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500126 #clock-cells = <0>;
127 compatible = "fixed-clock";
128 };
129
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500130 f2s_periph_ref_clk: f2s_periph_ref_clk {
131 #clock-cells = <0>;
132 compatible = "fixed-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600133 };
134
135 f2s_sdram_ref_clk: f2s_sdram_ref_clk {
136 #clock-cells = <0>;
137 compatible = "fixed-clock";
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500138 };
139
Dinh Nguyen042000b2013-04-11 10:55:25 -0500140 main_pll: main_pll {
141 #address-cells = <1>;
142 #size-cells = <0>;
143 #clock-cells = <0>;
144 compatible = "altr,socfpga-pll-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600145 clocks = <&osc1>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500146 reg = <0x40>;
147
148 mpuclk: mpuclk {
149 #clock-cells = <0>;
150 compatible = "altr,socfpga-perip-clk";
151 clocks = <&main_pll>;
Dinh Nguyen8cb289e2014-04-16 15:05:15 -0500152 div-reg = <0xe0 0 9>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500153 reg = <0x48>;
154 };
155
156 mainclk: mainclk {
157 #clock-cells = <0>;
158 compatible = "altr,socfpga-perip-clk";
159 clocks = <&main_pll>;
Dinh Nguyen8cb289e2014-04-16 15:05:15 -0500160 div-reg = <0xe4 0 9>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500161 reg = <0x4C>;
162 };
163
164 dbg_base_clk: dbg_base_clk {
165 #clock-cells = <0>;
166 compatible = "altr,socfpga-perip-clk";
167 clocks = <&main_pll>;
Dinh Nguyen8cb289e2014-04-16 15:05:15 -0500168 div-reg = <0xe8 0 9>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500169 reg = <0x50>;
170 };
171
172 main_qspi_clk: main_qspi_clk {
173 #clock-cells = <0>;
174 compatible = "altr,socfpga-perip-clk";
175 clocks = <&main_pll>;
176 reg = <0x54>;
177 };
178
179 main_nand_sdmmc_clk: main_nand_sdmmc_clk {
180 #clock-cells = <0>;
181 compatible = "altr,socfpga-perip-clk";
182 clocks = <&main_pll>;
183 reg = <0x58>;
184 };
185
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500186 cfg_h2f_usr0_clk: cfg_h2f_usr0_clk {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500187 #clock-cells = <0>;
188 compatible = "altr,socfpga-perip-clk";
189 clocks = <&main_pll>;
190 reg = <0x5C>;
191 };
192 };
193
194 periph_pll: periph_pll {
195 #address-cells = <1>;
196 #size-cells = <0>;
197 #clock-cells = <0>;
198 compatible = "altr,socfpga-pll-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600199 clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500200 reg = <0x80>;
201
202 emac0_clk: emac0_clk {
203 #clock-cells = <0>;
204 compatible = "altr,socfpga-perip-clk";
205 clocks = <&periph_pll>;
206 reg = <0x88>;
207 };
208
209 emac1_clk: emac1_clk {
210 #clock-cells = <0>;
211 compatible = "altr,socfpga-perip-clk";
212 clocks = <&periph_pll>;
213 reg = <0x8C>;
214 };
215
216 per_qspi_clk: per_qsi_clk {
217 #clock-cells = <0>;
218 compatible = "altr,socfpga-perip-clk";
219 clocks = <&periph_pll>;
220 reg = <0x90>;
221 };
222
223 per_nand_mmc_clk: per_nand_mmc_clk {
224 #clock-cells = <0>;
225 compatible = "altr,socfpga-perip-clk";
226 clocks = <&periph_pll>;
227 reg = <0x94>;
228 };
229
230 per_base_clk: per_base_clk {
231 #clock-cells = <0>;
232 compatible = "altr,socfpga-perip-clk";
233 clocks = <&periph_pll>;
234 reg = <0x98>;
235 };
236
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500237 h2f_usr1_clk: h2f_usr1_clk {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500238 #clock-cells = <0>;
239 compatible = "altr,socfpga-perip-clk";
240 clocks = <&periph_pll>;
241 reg = <0x9C>;
242 };
243 };
244
245 sdram_pll: sdram_pll {
246 #address-cells = <1>;
247 #size-cells = <0>;
248 #clock-cells = <0>;
249 compatible = "altr,socfpga-pll-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600250 clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500251 reg = <0xC0>;
252
253 ddr_dqs_clk: ddr_dqs_clk {
254 #clock-cells = <0>;
255 compatible = "altr,socfpga-perip-clk";
256 clocks = <&sdram_pll>;
257 reg = <0xC8>;
258 };
259
260 ddr_2x_dqs_clk: ddr_2x_dqs_clk {
261 #clock-cells = <0>;
262 compatible = "altr,socfpga-perip-clk";
263 clocks = <&sdram_pll>;
264 reg = <0xCC>;
265 };
266
267 ddr_dq_clk: ddr_dq_clk {
268 #clock-cells = <0>;
269 compatible = "altr,socfpga-perip-clk";
270 clocks = <&sdram_pll>;
271 reg = <0xD0>;
272 };
273
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500274 h2f_usr2_clk: h2f_usr2_clk {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500275 #clock-cells = <0>;
276 compatible = "altr,socfpga-perip-clk";
277 clocks = <&sdram_pll>;
278 reg = <0xD4>;
279 };
280 };
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500281
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500282 mpu_periph_clk: mpu_periph_clk {
283 #clock-cells = <0>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600284 compatible = "altr,socfpga-perip-clk";
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500285 clocks = <&mpuclk>;
286 fixed-divider = <4>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500287 };
288
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500289 mpu_l2_ram_clk: mpu_l2_ram_clk {
290 #clock-cells = <0>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600291 compatible = "altr,socfpga-perip-clk";
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500292 clocks = <&mpuclk>;
293 fixed-divider = <2>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500294 };
295
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500296 l4_main_clk: l4_main_clk {
297 #clock-cells = <0>;
298 compatible = "altr,socfpga-gate-clk";
299 clocks = <&mainclk>;
300 clk-gate = <0x60 0>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500301 };
302
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500303 l3_main_clk: l3_main_clk {
304 #clock-cells = <0>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600305 compatible = "altr,socfpga-perip-clk";
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500306 clocks = <&mainclk>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600307 fixed-divider = <1>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500308 };
309
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500310 l3_mp_clk: l3_mp_clk {
311 #clock-cells = <0>;
312 compatible = "altr,socfpga-gate-clk";
313 clocks = <&mainclk>;
314 div-reg = <0x64 0 2>;
315 clk-gate = <0x60 1>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500316 };
317
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500318 l3_sp_clk: l3_sp_clk {
319 #clock-cells = <0>;
320 compatible = "altr,socfpga-gate-clk";
321 clocks = <&mainclk>;
322 div-reg = <0x64 2 2>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500323 };
324
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500325 l4_mp_clk: l4_mp_clk {
326 #clock-cells = <0>;
327 compatible = "altr,socfpga-gate-clk";
328 clocks = <&mainclk>, <&per_base_clk>;
329 div-reg = <0x64 4 3>;
330 clk-gate = <0x60 2>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500331 };
332
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500333 l4_sp_clk: l4_sp_clk {
334 #clock-cells = <0>;
335 compatible = "altr,socfpga-gate-clk";
336 clocks = <&mainclk>, <&per_base_clk>;
337 div-reg = <0x64 7 3>;
338 clk-gate = <0x60 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500339 };
340
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500341 dbg_at_clk: dbg_at_clk {
342 #clock-cells = <0>;
343 compatible = "altr,socfpga-gate-clk";
344 clocks = <&dbg_base_clk>;
345 div-reg = <0x68 0 2>;
346 clk-gate = <0x60 4>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500347 };
348
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500349 dbg_clk: dbg_clk {
350 #clock-cells = <0>;
351 compatible = "altr,socfpga-gate-clk";
352 clocks = <&dbg_base_clk>;
353 div-reg = <0x68 2 2>;
354 clk-gate = <0x60 5>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500355 };
356
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500357 dbg_trace_clk: dbg_trace_clk {
358 #clock-cells = <0>;
359 compatible = "altr,socfpga-gate-clk";
360 clocks = <&dbg_base_clk>;
361 div-reg = <0x6C 0 3>;
362 clk-gate = <0x60 6>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500363 };
364
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500365 dbg_timer_clk: dbg_timer_clk {
366 #clock-cells = <0>;
367 compatible = "altr,socfpga-gate-clk";
368 clocks = <&dbg_base_clk>;
369 clk-gate = <0x60 7>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500370 };
371
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500372 cfg_clk: cfg_clk {
373 #clock-cells = <0>;
374 compatible = "altr,socfpga-gate-clk";
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500375 clocks = <&cfg_h2f_usr0_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500376 clk-gate = <0x60 8>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500377 };
378
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500379 h2f_user0_clk: h2f_user0_clk {
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500380 #clock-cells = <0>;
381 compatible = "altr,socfpga-gate-clk";
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500382 clocks = <&cfg_h2f_usr0_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500383 clk-gate = <0x60 9>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500384 };
385
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500386 emac_0_clk: emac_0_clk {
387 #clock-cells = <0>;
388 compatible = "altr,socfpga-gate-clk";
389 clocks = <&emac0_clk>;
390 clk-gate = <0xa0 0>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500391 };
392
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500393 emac_1_clk: emac_1_clk {
394 #clock-cells = <0>;
395 compatible = "altr,socfpga-gate-clk";
396 clocks = <&emac1_clk>;
397 clk-gate = <0xa0 1>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500398 };
399
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500400 usb_mp_clk: usb_mp_clk {
401 #clock-cells = <0>;
402 compatible = "altr,socfpga-gate-clk";
403 clocks = <&per_base_clk>;
404 clk-gate = <0xa0 2>;
405 div-reg = <0xa4 0 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500406 };
407
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500408 spi_m_clk: spi_m_clk {
409 #clock-cells = <0>;
410 compatible = "altr,socfpga-gate-clk";
411 clocks = <&per_base_clk>;
412 clk-gate = <0xa0 3>;
413 div-reg = <0xa4 3 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500414 };
415
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500416 can0_clk: can0_clk {
417 #clock-cells = <0>;
418 compatible = "altr,socfpga-gate-clk";
419 clocks = <&per_base_clk>;
420 clk-gate = <0xa0 4>;
421 div-reg = <0xa4 6 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500422 };
423
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500424 can1_clk: can1_clk {
425 #clock-cells = <0>;
426 compatible = "altr,socfpga-gate-clk";
427 clocks = <&per_base_clk>;
428 clk-gate = <0xa0 5>;
429 div-reg = <0xa4 9 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500430 };
431
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500432 gpio_db_clk: gpio_db_clk {
433 #clock-cells = <0>;
434 compatible = "altr,socfpga-gate-clk";
435 clocks = <&per_base_clk>;
436 clk-gate = <0xa0 6>;
437 div-reg = <0xa8 0 24>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500438 };
439
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500440 h2f_user1_clk: h2f_user1_clk {
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500441 #clock-cells = <0>;
442 compatible = "altr,socfpga-gate-clk";
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500443 clocks = <&h2f_usr1_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500444 clk-gate = <0xa0 7>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500445 };
446
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500447 sdmmc_clk: sdmmc_clk {
448 #clock-cells = <0>;
449 compatible = "altr,socfpga-gate-clk";
450 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
451 clk-gate = <0xa0 8>;
Dinh Nguyen044abbd2014-01-06 12:17:24 -0600452 clk-phase = <0 135>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500453 };
454
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500455 nand_x_clk: nand_x_clk {
456 #clock-cells = <0>;
457 compatible = "altr,socfpga-gate-clk";
458 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
459 clk-gate = <0xa0 9>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500460 };
461
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500462 nand_clk: nand_clk {
463 #clock-cells = <0>;
464 compatible = "altr,socfpga-gate-clk";
465 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
466 clk-gate = <0xa0 10>;
467 fixed-divider = <4>;
468 };
469
470 qspi_clk: qspi_clk {
471 #clock-cells = <0>;
472 compatible = "altr,socfpga-gate-clk";
473 clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
474 clk-gate = <0xa0 11>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500475 };
Dinh Nguyen042000b2013-04-11 10:55:25 -0500476 };
477 };
478
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500479 gmac0: ethernet@ff700000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600480 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
Dinh Nguyen2755e182014-03-26 22:45:11 -0500481 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600482 reg = <0xff700000 0x2000>;
483 interrupts = <0 115 4>;
484 interrupt-names = "macirq";
485 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500486 clocks = <&emac0_clk>;
487 clock-names = "stmmaceth";
Steffen Trumtrar16fb4f8b2014-04-15 17:27:07 -0500488 resets = <&rst EMAC0_RESET>;
489 reset-names = "stmmaceth";
Vince Bridgersea6856e2014-07-31 15:49:16 -0500490 snps,multicast-filter-bins = <256>;
491 snps,perfect-filter-entries = <128>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500492 status = "disabled";
493 };
494
495 gmac1: ethernet@ff702000 {
496 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
Dinh Nguyen2755e182014-03-26 22:45:11 -0500497 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500498 reg = <0xff702000 0x2000>;
499 interrupts = <0 120 4>;
500 interrupt-names = "macirq";
501 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
502 clocks = <&emac1_clk>;
503 clock-names = "stmmaceth";
Steffen Trumtrar16fb4f8b2014-04-15 17:27:07 -0500504 resets = <&rst EMAC1_RESET>;
505 reset-names = "stmmaceth";
Vince Bridgersea6856e2014-07-31 15:49:16 -0500506 snps,multicast-filter-bins = <256>;
507 snps,perfect-filter-entries = <128>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500508 status = "disabled";
Dinh Nguyen66314222012-07-18 16:07:18 -0600509 };
510
Steffen Trumtrarfdeda152014-04-02 11:05:31 -0500511 i2c0: i2c@ffc04000 {
512 #address-cells = <1>;
513 #size-cells = <0>;
514 compatible = "snps,designware-i2c";
515 reg = <0xffc04000 0x1000>;
516 clocks = <&l4_sp_clk>;
517 interrupts = <0 158 0x4>;
518 status = "disabled";
519 };
520
521 i2c1: i2c@ffc05000 {
522 #address-cells = <1>;
523 #size-cells = <0>;
524 compatible = "snps,designware-i2c";
525 reg = <0xffc05000 0x1000>;
526 clocks = <&l4_sp_clk>;
527 interrupts = <0 159 0x4>;
528 status = "disabled";
529 };
530
531 i2c2: i2c@ffc06000 {
532 #address-cells = <1>;
533 #size-cells = <0>;
534 compatible = "snps,designware-i2c";
535 reg = <0xffc06000 0x1000>;
536 clocks = <&l4_sp_clk>;
537 interrupts = <0 160 0x4>;
538 status = "disabled";
539 };
540
541 i2c3: i2c@ffc07000 {
542 #address-cells = <1>;
543 #size-cells = <0>;
544 compatible = "snps,designware-i2c";
545 reg = <0xffc07000 0x1000>;
546 clocks = <&l4_sp_clk>;
547 interrupts = <0 161 0x4>;
548 status = "disabled";
549 };
550
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500551 gpio0: gpio@ff708000 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500552 #address-cells = <1>;
553 #size-cells = <0>;
554 compatible = "snps,dw-apb-gpio";
555 reg = <0xff708000 0x1000>;
556 clocks = <&per_base_clk>;
557 status = "disabled";
558
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500559 porta: gpio-controller@0 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500560 compatible = "snps,dw-apb-gpio-port";
561 gpio-controller;
562 #gpio-cells = <2>;
563 snps,nr-gpios = <29>;
564 reg = <0>;
565 interrupt-controller;
566 #interrupt-cells = <2>;
567 interrupts = <0 164 4>;
568 };
569 };
570
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500571 gpio1: gpio@ff709000 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500572 #address-cells = <1>;
573 #size-cells = <0>;
574 compatible = "snps,dw-apb-gpio";
575 reg = <0xff709000 0x1000>;
576 clocks = <&per_base_clk>;
577 status = "disabled";
578
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500579 portb: gpio-controller@0 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500580 compatible = "snps,dw-apb-gpio-port";
581 gpio-controller;
582 #gpio-cells = <2>;
583 snps,nr-gpios = <29>;
584 reg = <0>;
585 interrupt-controller;
586 #interrupt-cells = <2>;
587 interrupts = <0 165 4>;
588 };
589 };
590
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500591 gpio2: gpio@ff70a000 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500592 #address-cells = <1>;
593 #size-cells = <0>;
594 compatible = "snps,dw-apb-gpio";
595 reg = <0xff70a000 0x1000>;
596 clocks = <&per_base_clk>;
597 status = "disabled";
598
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500599 portc: gpio-controller@0 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500600 compatible = "snps,dw-apb-gpio-port";
601 gpio-controller;
602 #gpio-cells = <2>;
603 snps,nr-gpios = <27>;
604 reg = <0>;
605 interrupt-controller;
606 #interrupt-cells = <2>;
607 interrupts = <0 166 4>;
608 };
609 };
610
Thor Thayer75a41822014-08-26 16:09:32 -0500611 sdr: sdr@ffc25000 {
612 compatible = "syscon";
613 reg = <0xffc25000 0x1000>;
614 };
615
616 sdramedac {
617 compatible = "altr,sdram-edac";
618 altr,sdr-syscon = <&sdr>;
619 interrupts = <0 39 4>;
620 };
621
Dinh Nguyen66314222012-07-18 16:07:18 -0600622 L2: l2-cache@fffef000 {
623 compatible = "arm,pl310-cache";
624 reg = <0xfffef000 0x1000>;
625 interrupts = <0 38 0x04>;
626 cache-unified;
627 cache-level = <2>;
Dinh Nguyen9a21e552014-01-06 20:54:43 -0600628 arm,tag-latency = <1 1 1>;
629 arm,data-latency = <2 1 1>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600630 };
631
Dinh Nguyen9b931362014-02-17 20:31:02 -0600632 mmc: dwmmc0@ff704000 {
633 compatible = "altr,socfpga-dw-mshc";
634 reg = <0xff704000 0x1000>;
635 interrupts = <0 139 4>;
636 fifo-depth = <0x400>;
637 #address-cells = <1>;
638 #size-cells = <0>;
639 clocks = <&l4_mp_clk>, <&sdmmc_clk>;
640 clock-names = "biu", "ciu";
641 };
642
Dinh Nguyen8b907c82014-09-26 11:04:09 -0500643 ocram: sram@ffff0000 {
644 compatible = "mmio-sram";
645 reg = <0xffff0000 0x10000>;
646 };
647
Thor Thayerba6b96b2014-10-21 18:55:40 +0000648 spi0: spi@fff00000 {
649 compatible = "snps,dw-apb-ssi";
650 #address-cells = <1>;
651 #size-cells = <0>;
652 reg = <0xfff00000 0x1000>;
653 interrupts = <0 154 4>;
654 num-cs = <4>;
655 clocks = <&spi_m_clk>;
656 status = "disabled";
657 };
658
659 spi1: spi@fff01000 {
660 compatible = "snps,dw-apb-ssi";
661 #address-cells = <1>;
662 #size-cells = <0>;
663 reg = <0xfff01000 0x1000>;
Mark James1ac31de2015-03-17 21:35:23 +0000664 interrupts = <0 155 4>;
Thor Thayerba6b96b2014-10-21 18:55:40 +0000665 num-cs = <4>;
666 clocks = <&spi_m_clk>;
667 status = "disabled";
668 };
669
Dinh Nguyen66314222012-07-18 16:07:18 -0600670 /* Local timer */
671 timer@fffec600 {
672 compatible = "arm,cortex-a9-twd-timer";
673 reg = <0xfffec600 0x100>;
674 interrupts = <1 13 0xf04>;
Dinh Nguyen159c7f82013-10-01 14:42:27 -0500675 clocks = <&mpu_periph_clk>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600676 };
677
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600678 timer0: timer0@ffc08000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500679 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600680 interrupts = <0 167 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600681 reg = <0xffc08000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500682 clocks = <&l4_sp_clk>;
683 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600684 };
685
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600686 timer1: timer1@ffc09000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500687 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600688 interrupts = <0 168 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600689 reg = <0xffc09000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500690 clocks = <&l4_sp_clk>;
691 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600692 };
693
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600694 timer2: timer2@ffd00000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500695 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600696 interrupts = <0 169 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600697 reg = <0xffd00000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500698 clocks = <&osc1>;
699 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600700 };
701
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600702 timer3: timer3@ffd01000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500703 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600704 interrupts = <0 170 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600705 reg = <0xffd01000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500706 clocks = <&osc1>;
707 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600708 };
709
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600710 uart0: serial0@ffc02000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600711 compatible = "snps,dw-apb-uart";
712 reg = <0xffc02000 0x1000>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600713 interrupts = <0 162 4>;
714 reg-shift = <2>;
715 reg-io-width = <4>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500716 clocks = <&l4_sp_clk>;
Steffen Trumtrar78c03c72015-02-19 12:07:52 +0000717 dmas = <&pdma 28>,
718 <&pdma 29>;
719 dma-names = "tx", "rx";
Dinh Nguyen66314222012-07-18 16:07:18 -0600720 };
721
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600722 uart1: serial1@ffc03000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600723 compatible = "snps,dw-apb-uart";
724 reg = <0xffc03000 0x1000>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600725 interrupts = <0 163 4>;
726 reg-shift = <2>;
727 reg-io-width = <4>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500728 clocks = <&l4_sp_clk>;
Steffen Trumtrar78c03c72015-02-19 12:07:52 +0000729 dmas = <&pdma 30>,
730 <&pdma 31>;
731 dma-names = "tx", "rx";
Dinh Nguyen66314222012-07-18 16:07:18 -0600732 };
Dinh Nguyen9c4566a2012-10-25 10:41:39 -0600733
Steffen Trumtrar16fb4f8b2014-04-15 17:27:07 -0500734 rst: rstmgr@ffd05000 {
Vince Bridgersdc8fbed2014-06-23 13:32:11 -0500735 #reset-cells = <1>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500736 compatible = "altr,rst-mgr";
737 reg = <0xffd05000 0x1000>;
738 };
Dinh Nguyen9c4566a2012-10-25 10:41:39 -0600739
Dinh Nguyen14032502013-10-28 09:48:32 -0500740 usbphy0: usbphy@0 {
741 #phy-cells = <0>;
742 compatible = "usb-nop-xceiv";
743 status = "okay";
744 };
745
746 usb0: usb@ffb00000 {
747 compatible = "snps,dwc2";
748 reg = <0xffb00000 0xffff>;
749 interrupts = <0 125 4>;
750 clocks = <&usb_mp_clk>;
751 clock-names = "otg";
752 phys = <&usbphy0>;
753 phy-names = "usb2-phy";
754 status = "disabled";
755 };
756
757 usb1: usb@ffb40000 {
758 compatible = "snps,dwc2";
759 reg = <0xffb40000 0xffff>;
760 interrupts = <0 128 4>;
761 clocks = <&usb_mp_clk>;
762 clock-names = "otg";
763 phys = <&usbphy0>;
764 phy-names = "usb2-phy";
765 status = "disabled";
766 };
767
Steffen Trumtrara98b6052014-05-22 16:37:17 -0500768 watchdog0: watchdog@ffd02000 {
769 compatible = "snps,dw-wdt";
770 reg = <0xffd02000 0x1000>;
771 interrupts = <0 171 4>;
772 clocks = <&osc1>;
773 status = "disabled";
774 };
775
776 watchdog1: watchdog@ffd03000 {
777 compatible = "snps,dw-wdt";
778 reg = <0xffd03000 0x1000>;
779 interrupts = <0 172 4>;
780 clocks = <&osc1>;
781 status = "disabled";
782 };
783
Dinh Nguyena5d6ac22014-03-09 23:12:14 -0500784 sysmgr: sysmgr@ffd08000 {
Dinh Nguyen9b931362014-02-17 20:31:02 -0600785 compatible = "altr,sys-mgr", "syscon";
786 reg = <0xffd08000 0x4000>;
787 };
Dinh Nguyen66314222012-07-18 16:07:18 -0600788 };
789};