blob: 4d77ad690ed54d93bb863ded9f8b088b47f9ae9f [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 Trumtrar16fb4f82014-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>;
39
40 cpu@0 {
41 compatible = "arm,cortex-a9";
42 device_type = "cpu";
43 reg = <0>;
44 next-level-cache = <&L2>;
45 };
46 cpu@1 {
47 compatible = "arm,cortex-a9";
48 device_type = "cpu";
49 reg = <1>;
50 next-level-cache = <&L2>;
51 };
52 };
53
54 intc: intc@fffed000 {
55 compatible = "arm,cortex-a9-gic";
56 #interrupt-cells = <3>;
57 interrupt-controller;
58 reg = <0xfffed000 0x1000>,
59 <0xfffec100 0x100>;
60 };
61
62 soc {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 compatible = "simple-bus";
66 device_type = "soc";
67 interrupt-parent = <&intc>;
68 ranges;
69
70 amba {
71 compatible = "arm,amba-bus";
72 #address-cells = <1>;
73 #size-cells = <1>;
74 ranges;
75
76 pdma: pdma@ffe01000 {
77 compatible = "arm,pl330", "arm,primecell";
78 reg = <0xffe01000 0x1000>;
Steffen Trumtrar18d56192014-04-02 10:40:30 -050079 interrupts = <0 104 4>,
80 <0 105 4>,
81 <0 106 4>,
82 <0 107 4>,
83 <0 108 4>,
84 <0 109 4>,
85 <0 110 4>,
86 <0 111 4>;
Padmavathi Venna0d8abbf2013-03-04 11:04:28 +053087 #dma-cells = <1>;
88 #dma-channels = <8>;
89 #dma-requests = <32>;
Steffen Trumtrar672ef902014-01-08 12:01:26 -060090 clocks = <&l4_main_clk>;
91 clock-names = "apb_pclk";
Dinh Nguyen66314222012-07-18 16:07:18 -060092 };
93 };
94
Steffen Trumtrar36fe3f52014-04-02 11:11:26 -050095 can0: can@ffc00000 {
96 compatible = "bosch,d_can";
97 reg = <0xffc00000 0x1000>;
98 interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
99 clocks = <&can0_clk>;
100 status = "disabled";
101 };
102
103 can1: can@ffc01000 {
104 compatible = "bosch,d_can";
105 reg = <0xffc01000 0x1000>;
106 interrupts = <0 135 4>, <0 136 4>, <0 137 4>, <0 138 4>;
107 clocks = <&can1_clk>;
108 status = "disabled";
109 };
110
Dinh Nguyen042000b2013-04-11 10:55:25 -0500111 clkmgr@ffd04000 {
112 compatible = "altr,clk-mgr";
113 reg = <0xffd04000 0x1000>;
114
115 clocks {
116 #address-cells = <1>;
117 #size-cells = <0>;
118
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600119 osc1: osc1 {
120 #clock-cells = <0>;
121 compatible = "fixed-clock";
122 };
123
124 osc2: osc2 {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500125 #clock-cells = <0>;
126 compatible = "fixed-clock";
127 };
128
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500129 f2s_periph_ref_clk: f2s_periph_ref_clk {
130 #clock-cells = <0>;
131 compatible = "fixed-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600132 };
133
134 f2s_sdram_ref_clk: f2s_sdram_ref_clk {
135 #clock-cells = <0>;
136 compatible = "fixed-clock";
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500137 };
138
Dinh Nguyen042000b2013-04-11 10:55:25 -0500139 main_pll: main_pll {
140 #address-cells = <1>;
141 #size-cells = <0>;
142 #clock-cells = <0>;
143 compatible = "altr,socfpga-pll-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600144 clocks = <&osc1>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500145 reg = <0x40>;
146
147 mpuclk: mpuclk {
148 #clock-cells = <0>;
149 compatible = "altr,socfpga-perip-clk";
150 clocks = <&main_pll>;
Dinh Nguyen8cb289e2014-04-16 15:05:15 -0500151 div-reg = <0xe0 0 9>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500152 reg = <0x48>;
153 };
154
155 mainclk: mainclk {
156 #clock-cells = <0>;
157 compatible = "altr,socfpga-perip-clk";
158 clocks = <&main_pll>;
Dinh Nguyen8cb289e2014-04-16 15:05:15 -0500159 div-reg = <0xe4 0 9>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500160 reg = <0x4C>;
161 };
162
163 dbg_base_clk: dbg_base_clk {
164 #clock-cells = <0>;
165 compatible = "altr,socfpga-perip-clk";
166 clocks = <&main_pll>;
Dinh Nguyen8cb289e2014-04-16 15:05:15 -0500167 div-reg = <0xe8 0 9>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500168 reg = <0x50>;
169 };
170
171 main_qspi_clk: main_qspi_clk {
172 #clock-cells = <0>;
173 compatible = "altr,socfpga-perip-clk";
174 clocks = <&main_pll>;
175 reg = <0x54>;
176 };
177
178 main_nand_sdmmc_clk: main_nand_sdmmc_clk {
179 #clock-cells = <0>;
180 compatible = "altr,socfpga-perip-clk";
181 clocks = <&main_pll>;
182 reg = <0x58>;
183 };
184
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500185 cfg_h2f_usr0_clk: cfg_h2f_usr0_clk {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500186 #clock-cells = <0>;
187 compatible = "altr,socfpga-perip-clk";
188 clocks = <&main_pll>;
189 reg = <0x5C>;
190 };
191 };
192
193 periph_pll: periph_pll {
194 #address-cells = <1>;
195 #size-cells = <0>;
196 #clock-cells = <0>;
197 compatible = "altr,socfpga-pll-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600198 clocks = <&osc1>, <&osc2>, <&f2s_periph_ref_clk>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500199 reg = <0x80>;
200
201 emac0_clk: emac0_clk {
202 #clock-cells = <0>;
203 compatible = "altr,socfpga-perip-clk";
204 clocks = <&periph_pll>;
205 reg = <0x88>;
206 };
207
208 emac1_clk: emac1_clk {
209 #clock-cells = <0>;
210 compatible = "altr,socfpga-perip-clk";
211 clocks = <&periph_pll>;
212 reg = <0x8C>;
213 };
214
215 per_qspi_clk: per_qsi_clk {
216 #clock-cells = <0>;
217 compatible = "altr,socfpga-perip-clk";
218 clocks = <&periph_pll>;
219 reg = <0x90>;
220 };
221
222 per_nand_mmc_clk: per_nand_mmc_clk {
223 #clock-cells = <0>;
224 compatible = "altr,socfpga-perip-clk";
225 clocks = <&periph_pll>;
226 reg = <0x94>;
227 };
228
229 per_base_clk: per_base_clk {
230 #clock-cells = <0>;
231 compatible = "altr,socfpga-perip-clk";
232 clocks = <&periph_pll>;
233 reg = <0x98>;
234 };
235
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500236 h2f_usr1_clk: h2f_usr1_clk {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500237 #clock-cells = <0>;
238 compatible = "altr,socfpga-perip-clk";
239 clocks = <&periph_pll>;
240 reg = <0x9C>;
241 };
242 };
243
244 sdram_pll: sdram_pll {
245 #address-cells = <1>;
246 #size-cells = <0>;
247 #clock-cells = <0>;
248 compatible = "altr,socfpga-pll-clock";
Dinh Nguyenf1ce1a92014-02-19 14:56:38 -0600249 clocks = <&osc1>, <&osc2>, <&f2s_sdram_ref_clk>;
Dinh Nguyen042000b2013-04-11 10:55:25 -0500250 reg = <0xC0>;
251
252 ddr_dqs_clk: ddr_dqs_clk {
253 #clock-cells = <0>;
254 compatible = "altr,socfpga-perip-clk";
255 clocks = <&sdram_pll>;
256 reg = <0xC8>;
257 };
258
259 ddr_2x_dqs_clk: ddr_2x_dqs_clk {
260 #clock-cells = <0>;
261 compatible = "altr,socfpga-perip-clk";
262 clocks = <&sdram_pll>;
263 reg = <0xCC>;
264 };
265
266 ddr_dq_clk: ddr_dq_clk {
267 #clock-cells = <0>;
268 compatible = "altr,socfpga-perip-clk";
269 clocks = <&sdram_pll>;
270 reg = <0xD0>;
271 };
272
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500273 h2f_usr2_clk: h2f_usr2_clk {
Dinh Nguyen042000b2013-04-11 10:55:25 -0500274 #clock-cells = <0>;
275 compatible = "altr,socfpga-perip-clk";
276 clocks = <&sdram_pll>;
277 reg = <0xD4>;
278 };
279 };
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500280
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500281 mpu_periph_clk: mpu_periph_clk {
282 #clock-cells = <0>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600283 compatible = "altr,socfpga-perip-clk";
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500284 clocks = <&mpuclk>;
285 fixed-divider = <4>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500286 };
287
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500288 mpu_l2_ram_clk: mpu_l2_ram_clk {
289 #clock-cells = <0>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600290 compatible = "altr,socfpga-perip-clk";
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500291 clocks = <&mpuclk>;
292 fixed-divider = <2>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500293 };
294
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500295 l4_main_clk: l4_main_clk {
296 #clock-cells = <0>;
297 compatible = "altr,socfpga-gate-clk";
298 clocks = <&mainclk>;
299 clk-gate = <0x60 0>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500300 };
301
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500302 l3_main_clk: l3_main_clk {
303 #clock-cells = <0>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600304 compatible = "altr,socfpga-perip-clk";
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500305 clocks = <&mainclk>;
Dinh Nguyena5c6e872013-12-03 14:32:10 -0600306 fixed-divider = <1>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500307 };
308
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500309 l3_mp_clk: l3_mp_clk {
310 #clock-cells = <0>;
311 compatible = "altr,socfpga-gate-clk";
312 clocks = <&mainclk>;
313 div-reg = <0x64 0 2>;
314 clk-gate = <0x60 1>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500315 };
316
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500317 l3_sp_clk: l3_sp_clk {
318 #clock-cells = <0>;
319 compatible = "altr,socfpga-gate-clk";
320 clocks = <&mainclk>;
321 div-reg = <0x64 2 2>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500322 };
323
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500324 l4_mp_clk: l4_mp_clk {
325 #clock-cells = <0>;
326 compatible = "altr,socfpga-gate-clk";
327 clocks = <&mainclk>, <&per_base_clk>;
328 div-reg = <0x64 4 3>;
329 clk-gate = <0x60 2>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500330 };
331
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500332 l4_sp_clk: l4_sp_clk {
333 #clock-cells = <0>;
334 compatible = "altr,socfpga-gate-clk";
335 clocks = <&mainclk>, <&per_base_clk>;
336 div-reg = <0x64 7 3>;
337 clk-gate = <0x60 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500338 };
339
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500340 dbg_at_clk: dbg_at_clk {
341 #clock-cells = <0>;
342 compatible = "altr,socfpga-gate-clk";
343 clocks = <&dbg_base_clk>;
344 div-reg = <0x68 0 2>;
345 clk-gate = <0x60 4>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500346 };
347
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500348 dbg_clk: dbg_clk {
349 #clock-cells = <0>;
350 compatible = "altr,socfpga-gate-clk";
351 clocks = <&dbg_base_clk>;
352 div-reg = <0x68 2 2>;
353 clk-gate = <0x60 5>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500354 };
355
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500356 dbg_trace_clk: dbg_trace_clk {
357 #clock-cells = <0>;
358 compatible = "altr,socfpga-gate-clk";
359 clocks = <&dbg_base_clk>;
360 div-reg = <0x6C 0 3>;
361 clk-gate = <0x60 6>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500362 };
363
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500364 dbg_timer_clk: dbg_timer_clk {
365 #clock-cells = <0>;
366 compatible = "altr,socfpga-gate-clk";
367 clocks = <&dbg_base_clk>;
368 clk-gate = <0x60 7>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500369 };
370
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500371 cfg_clk: cfg_clk {
372 #clock-cells = <0>;
373 compatible = "altr,socfpga-gate-clk";
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500374 clocks = <&cfg_h2f_usr0_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500375 clk-gate = <0x60 8>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500376 };
377
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500378 h2f_user0_clk: h2f_user0_clk {
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500379 #clock-cells = <0>;
380 compatible = "altr,socfpga-gate-clk";
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500381 clocks = <&cfg_h2f_usr0_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500382 clk-gate = <0x60 9>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500383 };
384
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500385 emac_0_clk: emac_0_clk {
386 #clock-cells = <0>;
387 compatible = "altr,socfpga-gate-clk";
388 clocks = <&emac0_clk>;
389 clk-gate = <0xa0 0>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500390 };
391
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500392 emac_1_clk: emac_1_clk {
393 #clock-cells = <0>;
394 compatible = "altr,socfpga-gate-clk";
395 clocks = <&emac1_clk>;
396 clk-gate = <0xa0 1>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500397 };
398
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500399 usb_mp_clk: usb_mp_clk {
400 #clock-cells = <0>;
401 compatible = "altr,socfpga-gate-clk";
402 clocks = <&per_base_clk>;
403 clk-gate = <0xa0 2>;
404 div-reg = <0xa4 0 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500405 };
406
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500407 spi_m_clk: spi_m_clk {
408 #clock-cells = <0>;
409 compatible = "altr,socfpga-gate-clk";
410 clocks = <&per_base_clk>;
411 clk-gate = <0xa0 3>;
412 div-reg = <0xa4 3 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500413 };
414
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500415 can0_clk: can0_clk {
416 #clock-cells = <0>;
417 compatible = "altr,socfpga-gate-clk";
418 clocks = <&per_base_clk>;
419 clk-gate = <0xa0 4>;
420 div-reg = <0xa4 6 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500421 };
422
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500423 can1_clk: can1_clk {
424 #clock-cells = <0>;
425 compatible = "altr,socfpga-gate-clk";
426 clocks = <&per_base_clk>;
427 clk-gate = <0xa0 5>;
428 div-reg = <0xa4 9 3>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500429 };
430
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500431 gpio_db_clk: gpio_db_clk {
432 #clock-cells = <0>;
433 compatible = "altr,socfpga-gate-clk";
434 clocks = <&per_base_clk>;
435 clk-gate = <0xa0 6>;
436 div-reg = <0xa8 0 24>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500437 };
438
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500439 h2f_user1_clk: h2f_user1_clk {
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500440 #clock-cells = <0>;
441 compatible = "altr,socfpga-gate-clk";
Steffen Trumtrar01ed80b2013-10-07 11:11:38 -0500442 clocks = <&h2f_usr1_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500443 clk-gate = <0xa0 7>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500444 };
445
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500446 sdmmc_clk: sdmmc_clk {
447 #clock-cells = <0>;
448 compatible = "altr,socfpga-gate-clk";
449 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
450 clk-gate = <0xa0 8>;
Dinh Nguyen044abbd2014-01-06 12:17:24 -0600451 clk-phase = <0 135>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500452 };
453
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500454 nand_x_clk: nand_x_clk {
455 #clock-cells = <0>;
456 compatible = "altr,socfpga-gate-clk";
457 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
458 clk-gate = <0xa0 9>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500459 };
460
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500461 nand_clk: nand_clk {
462 #clock-cells = <0>;
463 compatible = "altr,socfpga-gate-clk";
464 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
465 clk-gate = <0xa0 10>;
466 fixed-divider = <4>;
467 };
468
469 qspi_clk: qspi_clk {
470 #clock-cells = <0>;
471 compatible = "altr,socfpga-gate-clk";
472 clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
473 clk-gate = <0xa0 11>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500474 };
Dinh Nguyen042000b2013-04-11 10:55:25 -0500475 };
476 };
477
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500478 gmac0: ethernet@ff700000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600479 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
Dinh Nguyen2755e182014-03-26 22:45:11 -0500480 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600481 reg = <0xff700000 0x2000>;
482 interrupts = <0 115 4>;
483 interrupt-names = "macirq";
484 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500485 clocks = <&emac0_clk>;
486 clock-names = "stmmaceth";
Steffen Trumtrar16fb4f82014-04-15 17:27:07 -0500487 resets = <&rst EMAC0_RESET>;
488 reset-names = "stmmaceth";
Vince Bridgersea6856e2014-07-31 15:49:16 -0500489 snps,multicast-filter-bins = <256>;
490 snps,perfect-filter-entries = <128>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500491 status = "disabled";
492 };
493
494 gmac1: ethernet@ff702000 {
495 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
Dinh Nguyen2755e182014-03-26 22:45:11 -0500496 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500497 reg = <0xff702000 0x2000>;
498 interrupts = <0 120 4>;
499 interrupt-names = "macirq";
500 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
501 clocks = <&emac1_clk>;
502 clock-names = "stmmaceth";
Steffen Trumtrar16fb4f82014-04-15 17:27:07 -0500503 resets = <&rst EMAC1_RESET>;
504 reset-names = "stmmaceth";
Vince Bridgersea6856e2014-07-31 15:49:16 -0500505 snps,multicast-filter-bins = <256>;
506 snps,perfect-filter-entries = <128>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500507 status = "disabled";
Dinh Nguyen66314222012-07-18 16:07:18 -0600508 };
509
Steffen Trumtrarfdeda152014-04-02 11:05:31 -0500510 i2c0: i2c@ffc04000 {
511 #address-cells = <1>;
512 #size-cells = <0>;
513 compatible = "snps,designware-i2c";
514 reg = <0xffc04000 0x1000>;
515 clocks = <&l4_sp_clk>;
516 interrupts = <0 158 0x4>;
517 status = "disabled";
518 };
519
520 i2c1: i2c@ffc05000 {
521 #address-cells = <1>;
522 #size-cells = <0>;
523 compatible = "snps,designware-i2c";
524 reg = <0xffc05000 0x1000>;
525 clocks = <&l4_sp_clk>;
526 interrupts = <0 159 0x4>;
527 status = "disabled";
528 };
529
530 i2c2: i2c@ffc06000 {
531 #address-cells = <1>;
532 #size-cells = <0>;
533 compatible = "snps,designware-i2c";
534 reg = <0xffc06000 0x1000>;
535 clocks = <&l4_sp_clk>;
536 interrupts = <0 160 0x4>;
537 status = "disabled";
538 };
539
540 i2c3: i2c@ffc07000 {
541 #address-cells = <1>;
542 #size-cells = <0>;
543 compatible = "snps,designware-i2c";
544 reg = <0xffc07000 0x1000>;
545 clocks = <&l4_sp_clk>;
546 interrupts = <0 161 0x4>;
547 status = "disabled";
548 };
549
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500550 gpio@ff708000 {
551 #address-cells = <1>;
552 #size-cells = <0>;
553 compatible = "snps,dw-apb-gpio";
554 reg = <0xff708000 0x1000>;
555 clocks = <&per_base_clk>;
556 status = "disabled";
557
558 gpio0: gpio-controller@0 {
559 compatible = "snps,dw-apb-gpio-port";
560 gpio-controller;
561 #gpio-cells = <2>;
562 snps,nr-gpios = <29>;
563 reg = <0>;
564 interrupt-controller;
565 #interrupt-cells = <2>;
566 interrupts = <0 164 4>;
567 };
568 };
569
570 gpio@ff709000 {
571 #address-cells = <1>;
572 #size-cells = <0>;
573 compatible = "snps,dw-apb-gpio";
574 reg = <0xff709000 0x1000>;
575 clocks = <&per_base_clk>;
576 status = "disabled";
577
578 gpio1: gpio-controller@0 {
579 compatible = "snps,dw-apb-gpio-port";
580 gpio-controller;
581 #gpio-cells = <2>;
582 snps,nr-gpios = <29>;
583 reg = <0>;
584 interrupt-controller;
585 #interrupt-cells = <2>;
586 interrupts = <0 165 4>;
587 };
588 };
589
590 gpio@ff70a000 {
591 #address-cells = <1>;
592 #size-cells = <0>;
593 compatible = "snps,dw-apb-gpio";
594 reg = <0xff70a000 0x1000>;
595 clocks = <&per_base_clk>;
596 status = "disabled";
597
598 gpio2: gpio-controller@0 {
599 compatible = "snps,dw-apb-gpio-port";
600 gpio-controller;
601 #gpio-cells = <2>;
602 snps,nr-gpios = <27>;
603 reg = <0>;
604 interrupt-controller;
605 #interrupt-cells = <2>;
606 interrupts = <0 166 4>;
607 };
608 };
609
Dinh Nguyen66314222012-07-18 16:07:18 -0600610 L2: l2-cache@fffef000 {
611 compatible = "arm,pl310-cache";
612 reg = <0xfffef000 0x1000>;
613 interrupts = <0 38 0x04>;
614 cache-unified;
615 cache-level = <2>;
Dinh Nguyen9a21e552014-01-06 20:54:43 -0600616 arm,tag-latency = <1 1 1>;
617 arm,data-latency = <2 1 1>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600618 };
619
Dinh Nguyen9b931362014-02-17 20:31:02 -0600620 mmc: dwmmc0@ff704000 {
621 compatible = "altr,socfpga-dw-mshc";
622 reg = <0xff704000 0x1000>;
623 interrupts = <0 139 4>;
624 fifo-depth = <0x400>;
625 #address-cells = <1>;
626 #size-cells = <0>;
627 clocks = <&l4_mp_clk>, <&sdmmc_clk>;
628 clock-names = "biu", "ciu";
629 };
630
Dinh Nguyen66314222012-07-18 16:07:18 -0600631 /* Local timer */
632 timer@fffec600 {
633 compatible = "arm,cortex-a9-twd-timer";
634 reg = <0xfffec600 0x100>;
635 interrupts = <1 13 0xf04>;
Dinh Nguyen159c7f82013-10-01 14:42:27 -0500636 clocks = <&mpu_periph_clk>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600637 };
638
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600639 timer0: timer0@ffc08000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500640 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600641 interrupts = <0 167 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600642 reg = <0xffc08000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500643 clocks = <&l4_sp_clk>;
644 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600645 };
646
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600647 timer1: timer1@ffc09000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500648 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600649 interrupts = <0 168 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600650 reg = <0xffc09000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500651 clocks = <&l4_sp_clk>;
652 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600653 };
654
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600655 timer2: timer2@ffd00000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500656 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600657 interrupts = <0 169 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600658 reg = <0xffd00000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500659 clocks = <&osc1>;
660 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600661 };
662
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600663 timer3: timer3@ffd01000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500664 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600665 interrupts = <0 170 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600666 reg = <0xffd01000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500667 clocks = <&osc1>;
668 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600669 };
670
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600671 uart0: serial0@ffc02000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600672 compatible = "snps,dw-apb-uart";
673 reg = <0xffc02000 0x1000>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600674 interrupts = <0 162 4>;
675 reg-shift = <2>;
676 reg-io-width = <4>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500677 clocks = <&l4_sp_clk>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600678 };
679
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600680 uart1: serial1@ffc03000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600681 compatible = "snps,dw-apb-uart";
682 reg = <0xffc03000 0x1000>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600683 interrupts = <0 163 4>;
684 reg-shift = <2>;
685 reg-io-width = <4>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500686 clocks = <&l4_sp_clk>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600687 };
Dinh Nguyen9c4566a2012-10-25 10:41:39 -0600688
Steffen Trumtrar16fb4f82014-04-15 17:27:07 -0500689 rst: rstmgr@ffd05000 {
Vince Bridgersdc8fbed2014-06-23 13:32:11 -0500690 #reset-cells = <1>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500691 compatible = "altr,rst-mgr";
692 reg = <0xffd05000 0x1000>;
693 };
Dinh Nguyen9c4566a2012-10-25 10:41:39 -0600694
Dinh Nguyen14032502013-10-28 09:48:32 -0500695 usbphy0: usbphy@0 {
696 #phy-cells = <0>;
697 compatible = "usb-nop-xceiv";
698 status = "okay";
699 };
700
701 usb0: usb@ffb00000 {
702 compatible = "snps,dwc2";
703 reg = <0xffb00000 0xffff>;
704 interrupts = <0 125 4>;
705 clocks = <&usb_mp_clk>;
706 clock-names = "otg";
707 phys = <&usbphy0>;
708 phy-names = "usb2-phy";
709 status = "disabled";
710 };
711
712 usb1: usb@ffb40000 {
713 compatible = "snps,dwc2";
714 reg = <0xffb40000 0xffff>;
715 interrupts = <0 128 4>;
716 clocks = <&usb_mp_clk>;
717 clock-names = "otg";
718 phys = <&usbphy0>;
719 phy-names = "usb2-phy";
720 status = "disabled";
721 };
722
Steffen Trumtrara98b6052014-05-22 16:37:17 -0500723 watchdog0: watchdog@ffd02000 {
724 compatible = "snps,dw-wdt";
725 reg = <0xffd02000 0x1000>;
726 interrupts = <0 171 4>;
727 clocks = <&osc1>;
728 status = "disabled";
729 };
730
731 watchdog1: watchdog@ffd03000 {
732 compatible = "snps,dw-wdt";
733 reg = <0xffd03000 0x1000>;
734 interrupts = <0 172 4>;
735 clocks = <&osc1>;
736 status = "disabled";
737 };
738
Dinh Nguyena5d6ac22014-03-09 23:12:14 -0500739 sysmgr: sysmgr@ffd08000 {
Dinh Nguyen9b931362014-02-17 20:31:02 -0600740 compatible = "altr,sys-mgr", "syscon";
741 reg = <0xffd08000 0x4000>;
742 };
Dinh Nguyen66314222012-07-18 16:07:18 -0600743 };
744};