blob: 2cdf57da190edf0de8564e4f4a052ee57ad81521 [file] [log] [blame]
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/include/ "skeleton.dtsi"
15
16/ {
17 interrupt-parent = <&gic>;
18
Emilio Lópeze751cce2013-11-16 15:17:29 -030019 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080020 ethernet0 = &gmac;
Maxime Ripard4566b4b2014-01-02 22:05:04 +010021 serial0 = &uart0;
22 serial1 = &uart1;
23 serial2 = &uart2;
24 serial3 = &uart3;
25 serial4 = &uart4;
26 serial5 = &uart5;
27 serial6 = &uart6;
28 serial7 = &uart7;
Emilio Lópeze751cce2013-11-16 15:17:29 -030029 };
30
Maxime Ripard4790ecf2013-07-17 10:07:10 +020031 cpus {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 cpu@0 {
36 compatible = "arm,cortex-a7";
37 device_type = "cpu";
38 reg = <0>;
39 };
40
41 cpu@1 {
42 compatible = "arm,cortex-a7";
43 device_type = "cpu";
44 reg = <1>;
45 };
46 };
47
48 memory {
49 reg = <0x40000000 0x80000000>;
50 };
51
52 clocks {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 ranges;
56
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080057 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020058 #clock-cells = <0>;
Maxime Ripardde7dc932013-07-25 21:12:52 +020059 compatible = "allwinner,sun4i-osc-clk";
60 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +020061 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080062 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020063 };
64
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080065 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020066 #clock-cells = <0>;
67 compatible = "fixed-clock";
68 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080069 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020070 };
Maxime Ripardde7dc932013-07-25 21:12:52 +020071
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080072 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020073 #clock-cells = <0>;
74 compatible = "allwinner,sun4i-pll1-clk";
75 reg = <0x01c20000 0x4>;
76 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080077 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +020078 };
79
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080080 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020081 #clock-cells = <0>;
Emilio Lópezec5589f2013-12-23 00:32:35 -030082 compatible = "allwinner,sun4i-pll1-clk";
83 reg = <0x01c20018 0x4>;
84 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080085 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -030086 };
87
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080088 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -030089 #clock-cells = <1>;
90 compatible = "allwinner,sun4i-pll5-clk";
91 reg = <0x01c20020 0x4>;
92 clocks = <&osc24M>;
93 clock-output-names = "pll5_ddr", "pll5_other";
94 };
95
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080096 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -030097 #clock-cells = <1>;
98 compatible = "allwinner,sun4i-pll6-clk";
99 reg = <0x01c20028 0x4>;
100 clocks = <&osc24M>;
101 clock-output-names = "pll6_sata", "pll6_other", "pll6";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200102 };
103
104 cpu: cpu@01c20054 {
105 #clock-cells = <0>;
106 compatible = "allwinner,sun4i-cpu-clk";
107 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300108 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800109 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200110 };
111
112 axi: axi@01c20054 {
113 #clock-cells = <0>;
114 compatible = "allwinner,sun4i-axi-clk";
115 reg = <0x01c20054 0x4>;
116 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800117 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200118 };
119
120 ahb: ahb@01c20054 {
121 #clock-cells = <0>;
122 compatible = "allwinner,sun4i-ahb-clk";
123 reg = <0x01c20054 0x4>;
124 clocks = <&axi>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800125 clock-output-names = "ahb";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200126 };
127
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800128 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200129 #clock-cells = <1>;
130 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
131 reg = <0x01c20060 0x8>;
132 clocks = <&ahb>;
133 clock-output-names = "ahb_usb0", "ahb_ehci0",
134 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
135 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
136 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
137 "ahb_nand", "ahb_sdram", "ahb_ace",
138 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
139 "ahb_spi2", "ahb_spi3", "ahb_sata",
140 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
141 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
142 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
143 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
144 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
145 "ahb_mali";
146 };
147
148 apb0: apb0@01c20054 {
149 #clock-cells = <0>;
150 compatible = "allwinner,sun4i-apb0-clk";
151 reg = <0x01c20054 0x4>;
152 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800153 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200154 };
155
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800156 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200157 #clock-cells = <1>;
158 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
159 reg = <0x01c20068 0x4>;
160 clocks = <&apb0>;
161 clock-output-names = "apb0_codec", "apb0_spdif",
162 "apb0_ac97", "apb0_iis0", "apb0_iis1",
163 "apb0_pio", "apb0_ir0", "apb0_ir1",
164 "apb0_iis2", "apb0_keypad";
165 };
166
167 apb1_mux: apb1_mux@01c20058 {
168 #clock-cells = <0>;
169 compatible = "allwinner,sun4i-apb1-mux-clk";
170 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300171 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800172 clock-output-names = "apb1_mux";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200173 };
174
175 apb1: apb1@01c20058 {
176 #clock-cells = <0>;
177 compatible = "allwinner,sun4i-apb1-clk";
178 reg = <0x01c20058 0x4>;
179 clocks = <&apb1_mux>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800180 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200181 };
182
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800183 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200184 #clock-cells = <1>;
185 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
186 reg = <0x01c2006c 0x4>;
187 clocks = <&apb1>;
188 clock-output-names = "apb1_i2c0", "apb1_i2c1",
189 "apb1_i2c2", "apb1_i2c3", "apb1_can",
190 "apb1_scr", "apb1_ps20", "apb1_ps21",
191 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
192 "apb1_uart2", "apb1_uart3", "apb1_uart4",
193 "apb1_uart5", "apb1_uart6", "apb1_uart7";
194 };
Emilio López1c92b952013-12-23 00:32:43 -0300195
196 nand_clk: clk@01c20080 {
197 #clock-cells = <0>;
198 compatible = "allwinner,sun4i-mod0-clk";
199 reg = <0x01c20080 0x4>;
200 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
201 clock-output-names = "nand";
202 };
203
204 ms_clk: clk@01c20084 {
205 #clock-cells = <0>;
206 compatible = "allwinner,sun4i-mod0-clk";
207 reg = <0x01c20084 0x4>;
208 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
209 clock-output-names = "ms";
210 };
211
212 mmc0_clk: clk@01c20088 {
213 #clock-cells = <0>;
214 compatible = "allwinner,sun4i-mod0-clk";
215 reg = <0x01c20088 0x4>;
216 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
217 clock-output-names = "mmc0";
218 };
219
220 mmc1_clk: clk@01c2008c {
221 #clock-cells = <0>;
222 compatible = "allwinner,sun4i-mod0-clk";
223 reg = <0x01c2008c 0x4>;
224 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
225 clock-output-names = "mmc1";
226 };
227
228 mmc2_clk: clk@01c20090 {
229 #clock-cells = <0>;
230 compatible = "allwinner,sun4i-mod0-clk";
231 reg = <0x01c20090 0x4>;
232 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
233 clock-output-names = "mmc2";
234 };
235
236 mmc3_clk: clk@01c20094 {
237 #clock-cells = <0>;
238 compatible = "allwinner,sun4i-mod0-clk";
239 reg = <0x01c20094 0x4>;
240 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
241 clock-output-names = "mmc3";
242 };
243
244 ts_clk: clk@01c20098 {
245 #clock-cells = <0>;
246 compatible = "allwinner,sun4i-mod0-clk";
247 reg = <0x01c20098 0x4>;
248 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
249 clock-output-names = "ts";
250 };
251
252 ss_clk: clk@01c2009c {
253 #clock-cells = <0>;
254 compatible = "allwinner,sun4i-mod0-clk";
255 reg = <0x01c2009c 0x4>;
256 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
257 clock-output-names = "ss";
258 };
259
260 spi0_clk: clk@01c200a0 {
261 #clock-cells = <0>;
262 compatible = "allwinner,sun4i-mod0-clk";
263 reg = <0x01c200a0 0x4>;
264 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
265 clock-output-names = "spi0";
266 };
267
268 spi1_clk: clk@01c200a4 {
269 #clock-cells = <0>;
270 compatible = "allwinner,sun4i-mod0-clk";
271 reg = <0x01c200a4 0x4>;
272 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
273 clock-output-names = "spi1";
274 };
275
276 spi2_clk: clk@01c200a8 {
277 #clock-cells = <0>;
278 compatible = "allwinner,sun4i-mod0-clk";
279 reg = <0x01c200a8 0x4>;
280 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
281 clock-output-names = "spi2";
282 };
283
284 pata_clk: clk@01c200ac {
285 #clock-cells = <0>;
286 compatible = "allwinner,sun4i-mod0-clk";
287 reg = <0x01c200ac 0x4>;
288 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
289 clock-output-names = "pata";
290 };
291
292 ir0_clk: clk@01c200b0 {
293 #clock-cells = <0>;
294 compatible = "allwinner,sun4i-mod0-clk";
295 reg = <0x01c200b0 0x4>;
296 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
297 clock-output-names = "ir0";
298 };
299
300 ir1_clk: clk@01c200b4 {
301 #clock-cells = <0>;
302 compatible = "allwinner,sun4i-mod0-clk";
303 reg = <0x01c200b4 0x4>;
304 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305 clock-output-names = "ir1";
306 };
307
Roman Byshko434e41b2014-02-07 16:21:53 +0100308 usb_clk: clk@01c200cc {
309 #clock-cells = <1>;
310 #reset-cells = <1>;
311 compatible = "allwinner,sun4i-a10-usb-clk";
312 reg = <0x01c200cc 0x4>;
313 clocks = <&pll6 1>;
314 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
315 };
316
Emilio López1c92b952013-12-23 00:32:43 -0300317 spi3_clk: clk@01c200d4 {
318 #clock-cells = <0>;
319 compatible = "allwinner,sun4i-mod0-clk";
320 reg = <0x01c200d4 0x4>;
321 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
322 clock-output-names = "spi3";
323 };
Emilio López118c07a2013-12-23 00:32:44 -0300324
325 mbus_clk: clk@01c2015c {
326 #clock-cells = <0>;
327 compatible = "allwinner,sun4i-mod0-clk";
328 reg = <0x01c2015c 0x4>;
329 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
330 clock-output-names = "mbus";
331 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800332
333 /*
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800334 * The following two are dummy clocks, placeholders used in the gmac_tx
335 * clock. The gmac driver will choose one parent depending on the PHY
336 * interface mode, using clk_set_rate auto-reparenting.
337 * The actual TX clock rate is not controlled by the gmac_tx clock.
338 */
339 mii_phy_tx_clk: clk@2 {
340 #clock-cells = <0>;
341 compatible = "fixed-clock";
342 clock-frequency = <25000000>;
343 clock-output-names = "mii_phy_tx";
344 };
345
346 gmac_int_tx_clk: clk@3 {
347 #clock-cells = <0>;
348 compatible = "fixed-clock";
349 clock-frequency = <125000000>;
350 clock-output-names = "gmac_int_tx";
351 };
352
353 gmac_tx_clk: clk@01c20164 {
354 #clock-cells = <0>;
355 compatible = "allwinner,sun7i-a20-gmac-clk";
356 reg = <0x01c20164 0x4>;
357 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
358 clock-output-names = "gmac_tx";
359 };
360
361 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800362 * Dummy clock used by output clocks
363 */
364 osc24M_32k: clk@1 {
365 #clock-cells = <0>;
366 compatible = "fixed-factor-clock";
367 clock-div = <750>;
368 clock-mult = <1>;
369 clocks = <&osc24M>;
370 clock-output-names = "osc24M_32k";
371 };
372
373 clk_out_a: clk@01c201f0 {
374 #clock-cells = <0>;
375 compatible = "allwinner,sun7i-a20-out-clk";
376 reg = <0x01c201f0 0x4>;
377 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
378 clock-output-names = "clk_out_a";
379 };
380
381 clk_out_b: clk@01c201f4 {
382 #clock-cells = <0>;
383 compatible = "allwinner,sun7i-a20-out-clk";
384 reg = <0x01c201f4 0x4>;
385 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
386 clock-output-names = "clk_out_b";
387 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200388 };
389
390 soc@01c00000 {
391 compatible = "simple-bus";
392 #address-cells = <1>;
393 #size-cells = <1>;
394 ranges;
395
Maxime Ripard2e804d02013-09-11 11:10:06 +0200396 emac: ethernet@01c0b000 {
397 compatible = "allwinner,sun4i-emac";
398 reg = <0x01c0b000 0x1000>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100399 interrupts = <0 55 4>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200400 clocks = <&ahb_gates 17>;
401 status = "disabled";
402 };
403
404 mdio@01c0b080 {
405 compatible = "allwinner,sun4i-mdio";
406 reg = <0x01c0b080 0x14>;
407 status = "disabled";
408 #address-cells = <1>;
409 #size-cells = <0>;
410 };
411
Maxime Ripard17eac032013-07-24 23:46:11 +0200412 pio: pinctrl@01c20800 {
413 compatible = "allwinner,sun7i-a20-pinctrl";
414 reg = <0x01c20800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100415 interrupts = <0 28 4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200416 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200417 gpio-controller;
418 interrupt-controller;
419 #address-cells = <1>;
420 #size-cells = <0>;
421 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200422
423 uart0_pins_a: uart0@0 {
424 allwinner,pins = "PB22", "PB23";
425 allwinner,function = "uart0";
426 allwinner,drive = <0>;
427 allwinner,pull = <0>;
428 };
429
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800430 uart2_pins_a: uart2@0 {
431 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
432 allwinner,function = "uart2";
433 allwinner,drive = <0>;
434 allwinner,pull = <0>;
435 };
436
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200437 uart6_pins_a: uart6@0 {
438 allwinner,pins = "PI12", "PI13";
439 allwinner,function = "uart6";
440 allwinner,drive = <0>;
441 allwinner,pull = <0>;
442 };
443
444 uart7_pins_a: uart7@0 {
445 allwinner,pins = "PI20", "PI21";
446 allwinner,function = "uart7";
447 allwinner,drive = <0>;
448 allwinner,pull = <0>;
449 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200450
Maxime Riparde5496a32013-08-31 23:08:49 +0200451 i2c0_pins_a: i2c0@0 {
452 allwinner,pins = "PB0", "PB1";
453 allwinner,function = "i2c0";
454 allwinner,drive = <0>;
455 allwinner,pull = <0>;
456 };
457
458 i2c1_pins_a: i2c1@0 {
459 allwinner,pins = "PB18", "PB19";
460 allwinner,function = "i2c1";
461 allwinner,drive = <0>;
462 allwinner,pull = <0>;
463 };
464
465 i2c2_pins_a: i2c2@0 {
466 allwinner,pins = "PB20", "PB21";
467 allwinner,function = "i2c2";
468 allwinner,drive = <0>;
469 allwinner,pull = <0>;
470 };
471
Maxime Ripard756084c2013-09-11 11:10:07 +0200472 emac_pins_a: emac0@0 {
473 allwinner,pins = "PA0", "PA1", "PA2",
474 "PA3", "PA4", "PA5", "PA6",
475 "PA7", "PA8", "PA9", "PA10",
476 "PA11", "PA12", "PA13", "PA14",
477 "PA15", "PA16";
478 allwinner,function = "emac";
479 allwinner,drive = <0>;
480 allwinner,pull = <0>;
481 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800482
483 clk_out_a_pins_a: clk_out_a@0 {
484 allwinner,pins = "PI12";
485 allwinner,function = "clk_out_a";
486 allwinner,drive = <0>;
487 allwinner,pull = <0>;
488 };
489
490 clk_out_b_pins_a: clk_out_b@0 {
491 allwinner,pins = "PI13";
492 allwinner,function = "clk_out_b";
493 allwinner,drive = <0>;
494 allwinner,pull = <0>;
495 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800496
497 gmac_pins_mii_a: gmac_mii@0 {
498 allwinner,pins = "PA0", "PA1", "PA2",
499 "PA3", "PA4", "PA5", "PA6",
500 "PA7", "PA8", "PA9", "PA10",
501 "PA11", "PA12", "PA13", "PA14",
502 "PA15", "PA16";
503 allwinner,function = "gmac";
504 allwinner,drive = <0>;
505 allwinner,pull = <0>;
506 };
507
508 gmac_pins_rgmii_a: gmac_rgmii@0 {
509 allwinner,pins = "PA0", "PA1", "PA2",
510 "PA3", "PA4", "PA5", "PA6",
511 "PA7", "PA8", "PA10",
512 "PA11", "PA12", "PA13",
513 "PA15", "PA16";
514 allwinner,function = "gmac";
515 /*
516 * data lines in RGMII mode use DDR mode
517 * and need a higher signal drive strength
518 */
519 allwinner,drive = <3>;
520 allwinner,pull = <0>;
521 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200522 };
523
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200524 timer@01c20c00 {
525 compatible = "allwinner,sun4i-timer";
526 reg = <0x01c20c00 0x90>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100527 interrupts = <0 22 4>,
528 <0 23 4>,
529 <0 24 4>,
530 <0 25 4>,
531 <0 67 4>,
532 <0 68 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200533 clocks = <&osc24M>;
534 };
535
536 wdt: watchdog@01c20c90 {
537 compatible = "allwinner,sun4i-wdt";
538 reg = <0x01c20c90 0x10>;
539 };
540
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200541 rtc: rtc@01c20d00 {
542 compatible = "allwinner,sun7i-a20-rtc";
543 reg = <0x01c20d00 0x20>;
544 interrupts = <0 24 1>;
545 };
546
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200547 sid: eeprom@01c23800 {
548 compatible = "allwinner,sun7i-a20-sid";
549 reg = <0x01c23800 0x200>;
550 };
551
Hans de Goede00f7ed82013-12-31 17:20:52 +0100552 rtp: rtp@01c25000 {
553 compatible = "allwinner,sun4i-ts";
554 reg = <0x01c25000 0x100>;
555 interrupts = <0 29 4>;
556 };
557
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200558 uart0: serial@01c28000 {
559 compatible = "snps,dw-apb-uart";
560 reg = <0x01c28000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100561 interrupts = <0 1 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200562 reg-shift = <2>;
563 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200564 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200565 status = "disabled";
566 };
567
568 uart1: serial@01c28400 {
569 compatible = "snps,dw-apb-uart";
570 reg = <0x01c28400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100571 interrupts = <0 2 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200572 reg-shift = <2>;
573 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200574 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200575 status = "disabled";
576 };
577
578 uart2: serial@01c28800 {
579 compatible = "snps,dw-apb-uart";
580 reg = <0x01c28800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100581 interrupts = <0 3 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200582 reg-shift = <2>;
583 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200584 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200585 status = "disabled";
586 };
587
588 uart3: serial@01c28c00 {
589 compatible = "snps,dw-apb-uart";
590 reg = <0x01c28c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100591 interrupts = <0 4 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200592 reg-shift = <2>;
593 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200594 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200595 status = "disabled";
596 };
597
598 uart4: serial@01c29000 {
599 compatible = "snps,dw-apb-uart";
600 reg = <0x01c29000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100601 interrupts = <0 17 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200602 reg-shift = <2>;
603 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200604 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200605 status = "disabled";
606 };
607
608 uart5: serial@01c29400 {
609 compatible = "snps,dw-apb-uart";
610 reg = <0x01c29400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100611 interrupts = <0 18 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200612 reg-shift = <2>;
613 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200614 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200615 status = "disabled";
616 };
617
618 uart6: serial@01c29800 {
619 compatible = "snps,dw-apb-uart";
620 reg = <0x01c29800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100621 interrupts = <0 19 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200622 reg-shift = <2>;
623 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200624 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200625 status = "disabled";
626 };
627
628 uart7: serial@01c29c00 {
629 compatible = "snps,dw-apb-uart";
630 reg = <0x01c29c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100631 interrupts = <0 20 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200632 reg-shift = <2>;
633 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200634 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200635 status = "disabled";
636 };
637
Maxime Ripard428abbb2013-08-31 23:07:24 +0200638 i2c0: i2c@01c2ac00 {
639 compatible = "allwinner,sun4i-i2c";
640 reg = <0x01c2ac00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100641 interrupts = <0 7 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200642 clocks = <&apb1_gates 0>;
643 clock-frequency = <100000>;
644 status = "disabled";
645 };
646
647 i2c1: i2c@01c2b000 {
648 compatible = "allwinner,sun4i-i2c";
649 reg = <0x01c2b000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100650 interrupts = <0 8 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200651 clocks = <&apb1_gates 1>;
652 clock-frequency = <100000>;
653 status = "disabled";
654 };
655
656 i2c2: i2c@01c2b400 {
657 compatible = "allwinner,sun4i-i2c";
658 reg = <0x01c2b400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100659 interrupts = <0 9 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200660 clocks = <&apb1_gates 2>;
661 clock-frequency = <100000>;
662 status = "disabled";
663 };
664
665 i2c3: i2c@01c2b800 {
666 compatible = "allwinner,sun4i-i2c";
667 reg = <0x01c2b800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100668 interrupts = <0 88 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200669 clocks = <&apb1_gates 3>;
670 clock-frequency = <100000>;
671 status = "disabled";
672 };
673
674 i2c4: i2c@01c2bc00 {
675 compatible = "allwinner,sun4i-i2c";
676 reg = <0x01c2bc00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100677 interrupts = <0 89 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200678 clocks = <&apb1_gates 15>;
679 clock-frequency = <100000>;
680 status = "disabled";
681 };
682
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +0800683 gmac: ethernet@01c50000 {
684 compatible = "allwinner,sun7i-a20-gmac";
685 reg = <0x01c50000 0x10000>;
686 interrupts = <0 85 4>;
687 interrupt-names = "macirq";
688 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
689 clock-names = "stmmaceth", "allwinner_gmac_tx";
690 snps,pbl = <2>;
691 snps,fixed-burst;
692 snps,force_sf_dma_mode;
693 status = "disabled";
694 #address-cells = <1>;
695 #size-cells = <0>;
696 };
697
Maxime Ripard31f8ad32013-11-07 12:01:48 +0100698 hstimer@01c60000 {
699 compatible = "allwinner,sun7i-a20-hstimer";
700 reg = <0x01c60000 0x1000>;
701 interrupts = <0 81 1>,
702 <0 82 1>,
703 <0 83 1>,
704 <0 84 1>;
705 clocks = <&ahb_gates 28>;
706 };
707
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200708 gic: interrupt-controller@01c81000 {
709 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
710 reg = <0x01c81000 0x1000>,
711 <0x01c82000 0x1000>,
712 <0x01c84000 0x2000>,
713 <0x01c86000 0x2000>;
714 interrupt-controller;
715 #interrupt-cells = <3>;
716 interrupts = <1 9 0xf04>;
717 };
718 };
719};