blob: 314e589cfa00893a47b513053c3586ec263a6da4 [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";
Dinh Nguyen2e4c7582015-07-24 22:10:59 -0500167 clocks = <&main_pll>, <&osc1>;
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";
Dinh Nguyenc5dab6e2013-11-20 09:39:17 -0600321 clocks = <&l3_mp_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500322 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";
Dinh Nguyenc5dab6e2013-11-20 09:39:17 -0600352 clocks = <&dbg_at_clk>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500353 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
Dinh Nguyen5459f9a2015-04-10 15:40:42 -0500455 sdmmc_clk_divided: sdmmc_clk_divided {
456 #clock-cells = <0>;
457 compatible = "altr,socfpga-gate-clk";
458 clocks = <&sdmmc_clk>;
459 clk-gate = <0xa0 8>;
460 fixed-divider = <4>;
461 };
462
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500463 nand_x_clk: nand_x_clk {
464 #clock-cells = <0>;
465 compatible = "altr,socfpga-gate-clk";
466 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
467 clk-gate = <0xa0 9>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500468 };
469
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500470 nand_clk: nand_clk {
471 #clock-cells = <0>;
472 compatible = "altr,socfpga-gate-clk";
473 clocks = <&f2s_periph_ref_clk>, <&main_nand_sdmmc_clk>, <&per_nand_mmc_clk>;
474 clk-gate = <0xa0 10>;
475 fixed-divider = <4>;
476 };
477
478 qspi_clk: qspi_clk {
479 #clock-cells = <0>;
480 compatible = "altr,socfpga-gate-clk";
481 clocks = <&f2s_periph_ref_clk>, <&main_qspi_clk>, <&per_qspi_clk>;
482 clk-gate = <0xa0 11>;
Dinh Nguyena92b83a2013-06-05 10:02:54 -0500483 };
Matthew Gerlach7db85dd2014-02-03 14:22:59 -0800484
485 ddr_dqs_clk_gate: ddr_dqs_clk_gate {
486 #clock-cells = <0>;
487 compatible = "altr,socfpga-gate-clk";
488 clocks = <&ddr_dqs_clk>;
489 clk-gate = <0xd8 0>;
490 };
491
492 ddr_2x_dqs_clk_gate: ddr_2x_dqs_clk_gate {
493 #clock-cells = <0>;
494 compatible = "altr,socfpga-gate-clk";
495 clocks = <&ddr_2x_dqs_clk>;
496 clk-gate = <0xd8 1>;
497 };
498
499 ddr_dq_clk_gate: ddr_dq_clk_gate {
500 #clock-cells = <0>;
501 compatible = "altr,socfpga-gate-clk";
502 clocks = <&ddr_dq_clk>;
503 clk-gate = <0xd8 2>;
504 };
505
506 h2f_user2_clk: h2f_user2_clk {
507 #clock-cells = <0>;
508 compatible = "altr,socfpga-gate-clk";
509 clocks = <&h2f_usr2_clk>;
510 clk-gate = <0xd8 3>;
511 };
512
Dinh Nguyen042000b2013-04-11 10:55:25 -0500513 };
Matthew Gerlach7db85dd2014-02-03 14:22:59 -0800514 };
Dinh Nguyen042000b2013-04-11 10:55:25 -0500515
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500516 gmac0: ethernet@ff700000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600517 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
Dinh Nguyen2755e182014-03-26 22:45:11 -0500518 altr,sysmgr-syscon = <&sysmgr 0x60 0>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600519 reg = <0xff700000 0x2000>;
520 interrupts = <0 115 4>;
521 interrupt-names = "macirq";
522 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500523 clocks = <&emac0_clk>;
524 clock-names = "stmmaceth";
Steffen Trumtrar16fb4f8b2014-04-15 17:27:07 -0500525 resets = <&rst EMAC0_RESET>;
526 reset-names = "stmmaceth";
Vince Bridgersea6856e2014-07-31 15:49:16 -0500527 snps,multicast-filter-bins = <256>;
528 snps,perfect-filter-entries = <128>;
Vince Bridgersc01e8cd2015-04-21 14:19:24 -0500529 tx-fifo-depth = <4096>;
530 rx-fifo-depth = <4096>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500531 status = "disabled";
532 };
533
534 gmac1: ethernet@ff702000 {
535 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
Dinh Nguyen2755e182014-03-26 22:45:11 -0500536 altr,sysmgr-syscon = <&sysmgr 0x60 2>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500537 reg = <0xff702000 0x2000>;
538 interrupts = <0 120 4>;
539 interrupt-names = "macirq";
540 mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
541 clocks = <&emac1_clk>;
542 clock-names = "stmmaceth";
Steffen Trumtrar16fb4f8b2014-04-15 17:27:07 -0500543 resets = <&rst EMAC1_RESET>;
544 reset-names = "stmmaceth";
Vince Bridgersea6856e2014-07-31 15:49:16 -0500545 snps,multicast-filter-bins = <256>;
546 snps,perfect-filter-entries = <128>;
Vince Bridgersc01e8cd2015-04-21 14:19:24 -0500547 tx-fifo-depth = <4096>;
548 rx-fifo-depth = <4096>;
Dinh Nguyen3d954cf2013-06-05 10:02:53 -0500549 status = "disabled";
Dinh Nguyen66314222012-07-18 16:07:18 -0600550 };
551
Steffen Trumtrarfdeda152014-04-02 11:05:31 -0500552 i2c0: i2c@ffc04000 {
553 #address-cells = <1>;
554 #size-cells = <0>;
555 compatible = "snps,designware-i2c";
556 reg = <0xffc04000 0x1000>;
557 clocks = <&l4_sp_clk>;
558 interrupts = <0 158 0x4>;
559 status = "disabled";
560 };
561
562 i2c1: i2c@ffc05000 {
563 #address-cells = <1>;
564 #size-cells = <0>;
565 compatible = "snps,designware-i2c";
566 reg = <0xffc05000 0x1000>;
567 clocks = <&l4_sp_clk>;
568 interrupts = <0 159 0x4>;
569 status = "disabled";
570 };
571
572 i2c2: i2c@ffc06000 {
573 #address-cells = <1>;
574 #size-cells = <0>;
575 compatible = "snps,designware-i2c";
576 reg = <0xffc06000 0x1000>;
577 clocks = <&l4_sp_clk>;
578 interrupts = <0 160 0x4>;
579 status = "disabled";
580 };
581
582 i2c3: i2c@ffc07000 {
583 #address-cells = <1>;
584 #size-cells = <0>;
585 compatible = "snps,designware-i2c";
586 reg = <0xffc07000 0x1000>;
587 clocks = <&l4_sp_clk>;
588 interrupts = <0 161 0x4>;
589 status = "disabled";
590 };
591
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500592 gpio0: gpio@ff708000 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500593 #address-cells = <1>;
594 #size-cells = <0>;
595 compatible = "snps,dw-apb-gpio";
596 reg = <0xff708000 0x1000>;
Dinh Nguyene9f9fe32014-05-28 22:40:13 -0500597 clocks = <&l4_mp_clk>;
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500598 status = "disabled";
599
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500600 porta: gpio-controller@0 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500601 compatible = "snps,dw-apb-gpio-port";
602 gpio-controller;
603 #gpio-cells = <2>;
604 snps,nr-gpios = <29>;
605 reg = <0>;
606 interrupt-controller;
607 #interrupt-cells = <2>;
608 interrupts = <0 164 4>;
609 };
610 };
611
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500612 gpio1: gpio@ff709000 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500613 #address-cells = <1>;
614 #size-cells = <0>;
615 compatible = "snps,dw-apb-gpio";
616 reg = <0xff709000 0x1000>;
Dinh Nguyene9f9fe32014-05-28 22:40:13 -0500617 clocks = <&l4_mp_clk>;
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500618 status = "disabled";
619
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500620 portb: gpio-controller@0 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500621 compatible = "snps,dw-apb-gpio-port";
622 gpio-controller;
623 #gpio-cells = <2>;
624 snps,nr-gpios = <29>;
625 reg = <0>;
626 interrupt-controller;
627 #interrupt-cells = <2>;
628 interrupts = <0 165 4>;
629 };
630 };
631
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500632 gpio2: gpio@ff70a000 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500633 #address-cells = <1>;
634 #size-cells = <0>;
635 compatible = "snps,dw-apb-gpio";
636 reg = <0xff70a000 0x1000>;
Dinh Nguyene9f9fe32014-05-28 22:40:13 -0500637 clocks = <&l4_mp_clk>;
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500638 status = "disabled";
639
Dinh Nguyend11ac1d2014-10-22 13:00:42 -0500640 portc: gpio-controller@0 {
Sebastian Andrzej Siewior6ec08c72014-03-20 18:21:55 -0500641 compatible = "snps,dw-apb-gpio-port";
642 gpio-controller;
643 #gpio-cells = <2>;
644 snps,nr-gpios = <27>;
645 reg = <0>;
646 interrupt-controller;
647 #interrupt-cells = <2>;
648 interrupts = <0 166 4>;
649 };
650 };
651
Thor Thayer75a41822014-08-26 16:09:32 -0500652 sdr: sdr@ffc25000 {
653 compatible = "syscon";
654 reg = <0xffc25000 0x1000>;
655 };
656
657 sdramedac {
658 compatible = "altr,sdram-edac";
659 altr,sdr-syscon = <&sdr>;
660 interrupts = <0 39 4>;
661 };
662
Dinh Nguyen66314222012-07-18 16:07:18 -0600663 L2: l2-cache@fffef000 {
664 compatible = "arm,pl310-cache";
665 reg = <0xfffef000 0x1000>;
666 interrupts = <0 38 0x04>;
667 cache-unified;
668 cache-level = <2>;
Dinh Nguyen9a21e552014-01-06 20:54:43 -0600669 arm,tag-latency = <1 1 1>;
670 arm,data-latency = <2 1 1>;
Dinh Nguyen2211a652015-07-16 15:48:50 -0500671 prefetch-data = <1>;
672 prefetch-instr = <1>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600673 };
674
Dinh Nguyen9b931362014-02-17 20:31:02 -0600675 mmc: dwmmc0@ff704000 {
676 compatible = "altr,socfpga-dw-mshc";
677 reg = <0xff704000 0x1000>;
678 interrupts = <0 139 4>;
679 fifo-depth = <0x400>;
680 #address-cells = <1>;
681 #size-cells = <0>;
Dinh Nguyen5459f9a2015-04-10 15:40:42 -0500682 clocks = <&l4_mp_clk>, <&sdmmc_clk_divided>;
Dinh Nguyen9b931362014-02-17 20:31:02 -0600683 clock-names = "biu", "ciu";
684 };
685
Dinh Nguyen8b907c82014-09-26 11:04:09 -0500686 ocram: sram@ffff0000 {
687 compatible = "mmio-sram";
688 reg = <0xffff0000 0x10000>;
689 };
690
Thor Thayerba6b96b2014-10-21 18:55:40 +0000691 spi0: spi@fff00000 {
692 compatible = "snps,dw-apb-ssi";
693 #address-cells = <1>;
694 #size-cells = <0>;
695 reg = <0xfff00000 0x1000>;
696 interrupts = <0 154 4>;
697 num-cs = <4>;
698 clocks = <&spi_m_clk>;
699 status = "disabled";
700 };
701
Dinh Nguyen85084522015-05-12 15:48:13 -0500702 scu: snoop-control-unit@fffec000 {
703 compatible = "arm,cortex-a9-scu";
704 reg = <0xfffec000 0x100>;
705 };
706
Thor Thayerba6b96b2014-10-21 18:55:40 +0000707 spi1: spi@fff01000 {
708 compatible = "snps,dw-apb-ssi";
709 #address-cells = <1>;
710 #size-cells = <0>;
711 reg = <0xfff01000 0x1000>;
Mark James1ac31de2015-03-17 21:35:23 +0000712 interrupts = <0 155 4>;
Thor Thayerba6b96b2014-10-21 18:55:40 +0000713 num-cs = <4>;
714 clocks = <&spi_m_clk>;
715 status = "disabled";
716 };
717
Dinh Nguyen66314222012-07-18 16:07:18 -0600718 /* Local timer */
719 timer@fffec600 {
720 compatible = "arm,cortex-a9-twd-timer";
721 reg = <0xfffec600 0x100>;
722 interrupts = <1 13 0xf04>;
Dinh Nguyen159c7f82013-10-01 14:42:27 -0500723 clocks = <&mpu_periph_clk>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600724 };
725
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600726 timer0: timer0@ffc08000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500727 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600728 interrupts = <0 167 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600729 reg = <0xffc08000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500730 clocks = <&l4_sp_clk>;
731 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600732 };
733
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600734 timer1: timer1@ffc09000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500735 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600736 interrupts = <0 168 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600737 reg = <0xffc09000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500738 clocks = <&l4_sp_clk>;
739 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600740 };
741
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600742 timer2: timer2@ffd00000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500743 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600744 interrupts = <0 169 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600745 reg = <0xffd00000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500746 clocks = <&osc1>;
747 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600748 };
749
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600750 timer3: timer3@ffd01000 {
Dinh Nguyen620f5e12013-08-21 15:28:49 -0500751 compatible = "snps,dw-apb-timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600752 interrupts = <0 170 4>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600753 reg = <0xffd01000 0x1000>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500754 clocks = <&osc1>;
755 clock-names = "timer";
Dinh Nguyen66314222012-07-18 16:07:18 -0600756 };
757
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600758 uart0: serial0@ffc02000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600759 compatible = "snps,dw-apb-uart";
760 reg = <0xffc02000 0x1000>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600761 interrupts = <0 162 4>;
762 reg-shift = <2>;
763 reg-io-width = <4>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500764 clocks = <&l4_sp_clk>;
Steffen Trumtrar78c03c72015-02-19 12:07:52 +0000765 dmas = <&pdma 28>,
766 <&pdma 29>;
767 dma-names = "tx", "rx";
Dinh Nguyen66314222012-07-18 16:07:18 -0600768 };
769
Dinh Nguyenc2ad2842013-02-11 17:30:30 -0600770 uart1: serial1@ffc03000 {
Dinh Nguyen66314222012-07-18 16:07:18 -0600771 compatible = "snps,dw-apb-uart";
772 reg = <0xffc03000 0x1000>;
Dinh Nguyen66314222012-07-18 16:07:18 -0600773 interrupts = <0 163 4>;
774 reg-shift = <2>;
775 reg-io-width = <4>;
Dinh Nguyenbd785ef2014-04-02 21:14:57 -0500776 clocks = <&l4_sp_clk>;
Steffen Trumtrar78c03c72015-02-19 12:07:52 +0000777 dmas = <&pdma 30>,
778 <&pdma 31>;
779 dma-names = "tx", "rx";
Dinh Nguyen66314222012-07-18 16:07:18 -0600780 };
Dinh Nguyen9c4566a2012-10-25 10:41:39 -0600781
Steffen Trumtrar16fb4f8b2014-04-15 17:27:07 -0500782 rst: rstmgr@ffd05000 {
Vince Bridgersdc8fbed2014-06-23 13:32:11 -0500783 #reset-cells = <1>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500784 compatible = "altr,rst-mgr";
785 reg = <0xffd05000 0x1000>;
Dinh Nguyen1a94acf2015-07-24 14:05:06 -0500786 altr,modrst-offset = <0x10>;
Steffen Trumtrar7857d562013-10-07 10:44:07 -0500787 };
Dinh Nguyen9c4566a2012-10-25 10:41:39 -0600788
Dinh Nguyen14032502013-10-28 09:48:32 -0500789 usbphy0: usbphy@0 {
790 #phy-cells = <0>;
791 compatible = "usb-nop-xceiv";
792 status = "okay";
793 };
794
795 usb0: usb@ffb00000 {
796 compatible = "snps,dwc2";
797 reg = <0xffb00000 0xffff>;
798 interrupts = <0 125 4>;
799 clocks = <&usb_mp_clk>;
800 clock-names = "otg";
801 phys = <&usbphy0>;
802 phy-names = "usb2-phy";
803 status = "disabled";
804 };
805
806 usb1: usb@ffb40000 {
807 compatible = "snps,dwc2";
808 reg = <0xffb40000 0xffff>;
809 interrupts = <0 128 4>;
810 clocks = <&usb_mp_clk>;
811 clock-names = "otg";
812 phys = <&usbphy0>;
813 phy-names = "usb2-phy";
814 status = "disabled";
815 };
816
Steffen Trumtrara98b6052014-05-22 16:37:17 -0500817 watchdog0: watchdog@ffd02000 {
818 compatible = "snps,dw-wdt";
819 reg = <0xffd02000 0x1000>;
820 interrupts = <0 171 4>;
821 clocks = <&osc1>;
822 status = "disabled";
823 };
824
825 watchdog1: watchdog@ffd03000 {
826 compatible = "snps,dw-wdt";
827 reg = <0xffd03000 0x1000>;
828 interrupts = <0 172 4>;
829 clocks = <&osc1>;
830 status = "disabled";
831 };
832
Dinh Nguyena5d6ac22014-03-09 23:12:14 -0500833 sysmgr: sysmgr@ffd08000 {
Dinh Nguyen9b931362014-02-17 20:31:02 -0600834 compatible = "altr,sys-mgr", "syscon";
835 reg = <0xffd08000 0x4000>;
836 };
Dinh Nguyen66314222012-07-18 16:07:18 -0600837 };
838};