blob: 0ffecf6f91a9c25d4f6b1ace6ec6038513c2bb8e [file] [log] [blame]
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +08001/*
2 * Copyright 2014 Chen-Yu Tsai
3 *
4 * Chen-Yu Tsai <wens@csie.org>
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
Maxime Ripard136d18a2014-10-17 11:38:23 +020011 * a) This file is free software; you can redistribute it and/or
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +080012 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
Maxime Ripard136d18a2014-10-17 11:38:23 +020016 * This file is distributed in the hope that it will be useful,
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +080017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
Maxime Ripard136d18a2014-10-17 11:38:23 +020022 * License along with this file; if not, write to the Free
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +080023 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 * MA 02110-1301 USA
25 *
26 * Or, alternatively,
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
48 */
49
Maxime Ripard71455702014-12-16 22:59:54 +010050#include "skeleton64.dtsi"
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +080051
Maxime Ripard19882b82014-12-16 22:59:58 +010052#include <dt-bindings/interrupt-controller/arm-gic.h>
53
Maxime Ripard092a0c32014-12-16 22:59:57 +010054#include <dt-bindings/pinctrl/sun4i-a10.h>
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +080055
56/ {
57 interrupt-parent = <&gic>;
58
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +080059 cpus {
60 #address-cells = <1>;
61 #size-cells = <0>;
62
63 cpu0: cpu@0 {
64 compatible = "arm,cortex-a7";
65 device_type = "cpu";
66 reg = <0x0>;
67 };
68
69 cpu1: cpu@1 {
70 compatible = "arm,cortex-a7";
71 device_type = "cpu";
72 reg = <0x1>;
73 };
74
75 cpu2: cpu@2 {
76 compatible = "arm,cortex-a7";
77 device_type = "cpu";
78 reg = <0x2>;
79 };
80
81 cpu3: cpu@3 {
82 compatible = "arm,cortex-a7";
83 device_type = "cpu";
84 reg = <0x3>;
85 };
86
87 cpu4: cpu@100 {
88 compatible = "arm,cortex-a15";
89 device_type = "cpu";
90 reg = <0x100>;
91 };
92
93 cpu5: cpu@101 {
94 compatible = "arm,cortex-a15";
95 device_type = "cpu";
96 reg = <0x101>;
97 };
98
99 cpu6: cpu@102 {
100 compatible = "arm,cortex-a15";
101 device_type = "cpu";
102 reg = <0x102>;
103 };
104
105 cpu7: cpu@103 {
106 compatible = "arm,cortex-a15";
107 device_type = "cpu";
108 reg = <0x103>;
109 };
110 };
111
112 memory {
113 /* 8GB max. with LPAE */
114 reg = <0 0x20000000 0x02 0>;
115 };
116
117 clocks {
118 #address-cells = <1>;
119 #size-cells = <1>;
120 /*
121 * map 64 bit address range down to 32 bits,
122 * as the peripherals are all under 512MB.
123 */
124 ranges = <0 0 0 0x20000000>;
125
126 osc24M: osc24M_clk {
127 #clock-cells = <0>;
128 compatible = "fixed-clock";
129 clock-frequency = <24000000>;
130 clock-output-names = "osc24M";
131 };
132
133 osc32k: osc32k_clk {
134 #clock-cells = <0>;
135 compatible = "fixed-clock";
136 clock-frequency = <32768>;
137 clock-output-names = "osc32k";
138 };
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800139
Chen-Yu Tsaibc8ffc22015-01-28 03:54:08 +0800140 usb_mod_clk: clk@00a08000 {
141 #clock-cells = <1>;
142 #reset-cells = <1>;
143 compatible = "allwinner,sun9i-a80-usb-mod-clk";
144 reg = <0x00a08000 0x4>;
145 clocks = <&ahb1_gates 1>;
146 clock-output-names = "usb0_ahb", "usb_ohci0",
147 "usb1_ahb", "usb_ohci1",
148 "usb2_ahb", "usb_ohci2";
149 };
150
151 usb_phy_clk: clk@00a08004 {
152 #clock-cells = <1>;
153 #reset-cells = <1>;
154 compatible = "allwinner,sun9i-a80-usb-phy-clk";
155 reg = <0x00a08004 0x4>;
156 clocks = <&ahb1_gates 1>;
157 clock-output-names = "usb_phy0", "usb_hsic1_480M",
158 "usb_phy1", "usb_hsic2_480M",
159 "usb_phy2", "usb_hsic_12M";
160 };
161
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800162 pll4: clk@0600000c {
163 #clock-cells = <0>;
164 compatible = "allwinner,sun9i-a80-pll4-clk";
165 reg = <0x0600000c 0x4>;
166 clocks = <&osc24M>;
167 clock-output-names = "pll4";
168 };
169
170 pll12: clk@0600002c {
171 #clock-cells = <0>;
172 compatible = "allwinner,sun9i-a80-pll4-clk";
173 reg = <0x0600002c 0x4>;
174 clocks = <&osc24M>;
175 clock-output-names = "pll12";
176 };
177
178 gt_clk: clk@0600005c {
179 #clock-cells = <0>;
180 compatible = "allwinner,sun9i-a80-gt-clk";
181 reg = <0x0600005c 0x4>;
182 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
183 clock-output-names = "gt";
184 };
185
186 ahb0: clk@06000060 {
187 #clock-cells = <0>;
188 compatible = "allwinner,sun9i-a80-ahb-clk";
189 reg = <0x06000060 0x4>;
190 clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
191 clock-output-names = "ahb0";
192 };
193
194 ahb1: clk@06000064 {
195 #clock-cells = <0>;
196 compatible = "allwinner,sun9i-a80-ahb-clk";
197 reg = <0x06000064 0x4>;
198 clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
199 clock-output-names = "ahb1";
200 };
201
202 ahb2: clk@06000068 {
203 #clock-cells = <0>;
204 compatible = "allwinner,sun9i-a80-ahb-clk";
205 reg = <0x06000068 0x4>;
206 clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
207 clock-output-names = "ahb2";
208 };
209
210 apb0: clk@06000070 {
211 #clock-cells = <0>;
212 compatible = "allwinner,sun9i-a80-apb0-clk";
213 reg = <0x06000070 0x4>;
214 clocks = <&osc24M>, <&pll4>;
215 clock-output-names = "apb0";
216 };
217
218 apb1: clk@06000074 {
219 #clock-cells = <0>;
220 compatible = "allwinner,sun9i-a80-apb1-clk";
221 reg = <0x06000074 0x4>;
222 clocks = <&osc24M>, <&pll4>;
223 clock-output-names = "apb1";
224 };
225
226 cci400_clk: clk@06000078 {
227 #clock-cells = <0>;
228 compatible = "allwinner,sun9i-a80-gt-clk";
229 reg = <0x06000078 0x4>;
230 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
231 clock-output-names = "cci400";
232 };
233
Chen-Yu Tsaid2aa6f542015-01-13 09:37:25 +0800234 mmc0_clk: clk@06000410 {
235 #clock-cells = <1>;
236 compatible = "allwinner,sun9i-a80-mmc-clk";
237 reg = <0x06000410 0x4>;
238 clocks = <&osc24M>, <&pll4>;
239 clock-output-names = "mmc0", "mmc0_output",
240 "mmc0_sample";
241 };
242
243 mmc1_clk: clk@06000414 {
244 #clock-cells = <1>;
245 compatible = "allwinner,sun9i-a80-mmc-clk";
246 reg = <0x06000414 0x4>;
247 clocks = <&osc24M>, <&pll4>;
248 clock-output-names = "mmc1", "mmc1_output",
249 "mmc1_sample";
250 };
251
252 mmc2_clk: clk@06000418 {
253 #clock-cells = <1>;
254 compatible = "allwinner,sun9i-a80-mmc-clk";
255 reg = <0x06000418 0x4>;
256 clocks = <&osc24M>, <&pll4>;
257 clock-output-names = "mmc2", "mmc2_output",
258 "mmc2_sample";
259 };
260
261 mmc3_clk: clk@0600041c {
262 #clock-cells = <1>;
263 compatible = "allwinner,sun9i-a80-mmc-clk";
264 reg = <0x0600041c 0x4>;
265 clocks = <&osc24M>, <&pll4>;
266 clock-output-names = "mmc3", "mmc3_output",
267 "mmc3_sample";
268 };
269
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800270 ahb0_gates: clk@06000580 {
271 #clock-cells = <1>;
272 compatible = "allwinner,sun9i-a80-ahb0-gates-clk";
273 reg = <0x06000580 0x4>;
274 clocks = <&ahb0>;
Chen-Yu Tsai203c6882015-01-13 09:37:27 +0800275 clock-indices = <0>, <1>, <3>, <5>, <8>, <12>, <13>,
276 <14>, <15>, <16>, <18>, <20>, <21>,
277 <22>, <23>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800278 clock-output-names = "ahb0_fd", "ahb0_ve", "ahb0_gpu",
279 "ahb0_ss", "ahb0_sd", "ahb0_nand1",
280 "ahb0_nand0", "ahb0_sdram",
281 "ahb0_mipi_hsi", "ahb0_sata", "ahb0_ts",
282 "ahb0_spi0","ahb0_spi1", "ahb0_spi2",
283 "ahb0_spi3";
284 };
285
286 ahb1_gates: clk@06000584 {
287 #clock-cells = <1>;
288 compatible = "allwinner,sun9i-a80-ahb1-gates-clk";
289 reg = <0x06000584 0x4>;
290 clocks = <&ahb1>;
Chen-Yu Tsai203c6882015-01-13 09:37:27 +0800291 clock-indices = <0>, <1>, <17>, <21>, <22>, <23>, <24>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800292 clock-output-names = "ahb1_usbotg", "ahb1_usbhci",
293 "ahb1_gmac", "ahb1_msgbox",
294 "ahb1_spinlock", "ahb1_hstimer",
295 "ahb1_dma";
296 };
297
298 ahb2_gates: clk@06000588 {
299 #clock-cells = <1>;
300 compatible = "allwinner,sun9i-a80-ahb2-gates-clk";
301 reg = <0x06000588 0x4>;
302 clocks = <&ahb2>;
Chen-Yu Tsai203c6882015-01-13 09:37:27 +0800303 clock-indices = <0>, <1>, <2>, <4>, <5>, <7>, <8>,
304 <11>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800305 clock-output-names = "ahb2_lcd0", "ahb2_lcd1",
306 "ahb2_edp", "ahb2_csi", "ahb2_hdmi",
307 "ahb2_de", "ahb2_mp", "ahb2_mipi_dsi";
308 };
309
310 apb0_gates: clk@06000590 {
311 #clock-cells = <1>;
312 compatible = "allwinner,sun9i-a80-apb0-gates-clk";
313 reg = <0x06000590 0x4>;
314 clocks = <&apb0>;
Chen-Yu Tsai203c6882015-01-13 09:37:27 +0800315 clock-indices = <1>, <5>, <11>, <12>, <13>, <15>,
316 <17>, <18>, <19>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800317 clock-output-names = "apb0_spdif", "apb0_pio",
318 "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
319 "apb0_lradc", "apb0_gpadc", "apb0_twd",
320 "apb0_cirtx";
321 };
322
323 apb1_gates: clk@06000594 {
324 #clock-cells = <1>;
325 compatible = "allwinner,sun9i-a80-apb1-gates-clk";
326 reg = <0x06000594 0x4>;
327 clocks = <&apb1>;
Chen-Yu Tsai203c6882015-01-13 09:37:27 +0800328 clock-indices = <0>, <1>, <2>, <3>, <4>,
329 <16>, <17>, <18>, <19>, <20>, <21>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800330 clock-output-names = "apb1_i2c0", "apb1_i2c1",
331 "apb1_i2c2", "apb1_i2c3", "apb1_i2c4",
332 "apb1_uart0", "apb1_uart1",
333 "apb1_uart2", "apb1_uart3",
334 "apb1_uart4", "apb1_uart5";
335 };
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800336 };
337
338 soc {
339 compatible = "simple-bus";
340 #address-cells = <1>;
341 #size-cells = <1>;
342 /*
343 * map 64 bit address range down to 32 bits,
344 * as the peripherals are all under 512MB.
345 */
346 ranges = <0 0 0 0x20000000>;
347
Chen-Yu Tsai2f6941c2015-01-17 13:19:30 +0800348 mmc0: mmc@01c0f000 {
349 compatible = "allwinner,sun5i-a13-mmc";
350 reg = <0x01c0f000 0x1000>;
351 clocks = <&mmc_config_clk 0>, <&mmc0_clk 0>,
352 <&mmc0_clk 1>, <&mmc0_clk 2>;
353 clock-names = "ahb", "mmc", "output", "sample";
354 resets = <&mmc_config_clk 0>;
355 reset-names = "ahb";
356 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
357 status = "disabled";
358 };
359
360 mmc1: mmc@01c10000 {
361 compatible = "allwinner,sun5i-a13-mmc";
362 reg = <0x01c10000 0x1000>;
363 clocks = <&mmc_config_clk 1>, <&mmc1_clk 0>,
364 <&mmc1_clk 1>, <&mmc1_clk 2>;
365 clock-names = "ahb", "mmc", "output", "sample";
366 resets = <&mmc_config_clk 1>;
367 reset-names = "ahb";
368 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
369 status = "disabled";
370 };
371
372 mmc2: mmc@01c11000 {
373 compatible = "allwinner,sun5i-a13-mmc";
374 reg = <0x01c11000 0x1000>;
375 clocks = <&mmc_config_clk 2>, <&mmc2_clk 0>,
376 <&mmc2_clk 1>, <&mmc2_clk 2>;
377 clock-names = "ahb", "mmc", "output", "sample";
378 resets = <&mmc_config_clk 2>;
379 reset-names = "ahb";
380 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
381 status = "disabled";
382 };
383
384 mmc3: mmc@01c12000 {
385 compatible = "allwinner,sun5i-a13-mmc";
386 reg = <0x01c12000 0x1000>;
387 clocks = <&mmc_config_clk 3>, <&mmc3_clk 0>,
388 <&mmc3_clk 1>, <&mmc3_clk 2>;
389 clock-names = "ahb", "mmc", "output", "sample";
390 resets = <&mmc_config_clk 3>;
391 reset-names = "ahb";
392 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
393 status = "disabled";
394 };
395
Chen-Yu Tsai9c56f3f2015-01-17 13:19:29 +0800396 mmc_config_clk: clk@01c13000 {
397 compatible = "allwinner,sun9i-a80-mmc-config-clk";
398 reg = <0x01c13000 0x10>;
399 clocks = <&ahb0_gates 8>;
400 clock-names = "ahb";
401 resets = <&ahb0_resets 8>;
402 reset-names = "ahb";
403 #clock-cells = <1>;
404 #reset-cells = <1>;
405 clock-output-names = "mmc0_config", "mmc1_config",
406 "mmc2_config", "mmc3_config";
407 };
408
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800409 gic: interrupt-controller@01c41000 {
410 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
411 reg = <0x01c41000 0x1000>,
412 <0x01c42000 0x1000>,
413 <0x01c44000 0x2000>,
414 <0x01c46000 0x2000>;
415 interrupt-controller;
416 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100417 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800418 };
419
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800420 ahb0_resets: reset@060005a0 {
421 #reset-cells = <1>;
422 compatible = "allwinner,sun6i-a31-clock-reset";
423 reg = <0x060005a0 0x4>;
424 };
425
426 ahb1_resets: reset@060005a4 {
427 #reset-cells = <1>;
428 compatible = "allwinner,sun6i-a31-clock-reset";
429 reg = <0x060005a4 0x4>;
430 };
431
432 ahb2_resets: reset@060005a8 {
433 #reset-cells = <1>;
434 compatible = "allwinner,sun6i-a31-clock-reset";
435 reg = <0x060005a8 0x4>;
436 };
437
438 apb0_resets: reset@060005b0 {
439 #reset-cells = <1>;
440 compatible = "allwinner,sun6i-a31-clock-reset";
441 reg = <0x060005b0 0x4>;
442 };
443
444 apb1_resets: reset@060005b4 {
445 #reset-cells = <1>;
446 compatible = "allwinner,sun6i-a31-clock-reset";
447 reg = <0x060005b4 0x4>;
448 };
449
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800450 timer@06000c00 {
451 compatible = "allwinner,sun4i-a10-timer";
452 reg = <0x06000c00 0xa0>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100453 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
454 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
455 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
456 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
457 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
458 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800459
460 clocks = <&osc24M>;
461 };
462
Maxime Ripard43d024d2014-10-28 22:41:28 +0100463 pio: pinctrl@06000800 {
464 compatible = "allwinner,sun9i-a80-pinctrl";
465 reg = <0x06000800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100466 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
467 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
468 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
469 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
470 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard43d024d2014-10-28 22:41:28 +0100471 clocks = <&apb0_gates 5>;
472 gpio-controller;
473 interrupt-controller;
474 #interrupt-cells = <2>;
475 #size-cells = <0>;
476 #gpio-cells = <3>;
Maxime Ripard888366f2014-10-28 22:41:29 +0100477
Chen-Yu Tsai6657a052014-10-31 11:05:47 +0800478 i2c3_pins_a: i2c3@0 {
479 allwinner,pins = "PG10", "PG11";
480 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100481 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
482 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai6657a052014-10-31 11:05:47 +0800483 };
484
Chen-Yu Tsaicd23e2e2015-01-13 09:37:31 +0800485 mmc0_pins: mmc0 {
486 allwinner,pins = "PF0", "PF1" ,"PF2", "PF3",
487 "PF4", "PF5";
488 allwinner,function = "mmc0";
489 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
490 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
491 };
492
Chen-Yu Tsai23a602b2015-01-17 13:19:33 +0800493 mmc2_8bit_pins: mmc2_8bit {
494 allwinner,pins = "PC6", "PC7", "PC8", "PC9",
495 "PC10", "PC11", "PC12",
496 "PC13", "PC14", "PC15";
497 allwinner,function = "mmc2";
498 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
499 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard888366f2014-10-28 22:41:29 +0100500 };
Maxime Ripard43d024d2014-10-28 22:41:28 +0100501
502 uart0_pins_a: uart0@0 {
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800503 allwinner,pins = "PH12", "PH13";
504 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100505 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
506 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800507 };
Chen-Yu Tsai2a950b22014-10-31 11:05:50 +0800508
509 uart4_pins_a: uart4@0 {
510 allwinner,pins = "PG12", "PG13", "PG14", "PG15";
511 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100512 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
513 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai2a950b22014-10-31 11:05:50 +0800514 };
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800515 };
516
517 uart0: serial@07000000 {
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800518 compatible = "snps,dw-apb-uart";
519 reg = <0x07000000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100520 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800521 reg-shift = <2>;
522 reg-io-width = <4>;
523 clocks = <&apb1_gates 16>;
524 resets = <&apb1_resets 16>;
525 status = "disabled";
526 };
527
528 uart1: serial@07000400 {
529 compatible = "snps,dw-apb-uart";
530 reg = <0x07000400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100531 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800532 reg-shift = <2>;
533 reg-io-width = <4>;
534 clocks = <&apb1_gates 17>;
535 resets = <&apb1_resets 17>;
536 status = "disabled";
537 };
538
539 uart2: serial@07000800 {
540 compatible = "snps,dw-apb-uart";
541 reg = <0x07000800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100542 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800543 reg-shift = <2>;
544 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800545 clocks = <&apb1_gates 18>;
546 resets = <&apb1_resets 18>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800547 status = "disabled";
548 };
549
550 uart3: serial@07000c00 {
551 compatible = "snps,dw-apb-uart";
552 reg = <0x07000c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100553 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800554 reg-shift = <2>;
555 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800556 clocks = <&apb1_gates 19>;
557 resets = <&apb1_resets 19>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800558 status = "disabled";
559 };
560
561 uart4: serial@07001000 {
562 compatible = "snps,dw-apb-uart";
563 reg = <0x07001000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100564 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800565 reg-shift = <2>;
566 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800567 clocks = <&apb1_gates 20>;
568 resets = <&apb1_resets 20>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800569 status = "disabled";
570 };
571
572 uart5: serial@07001400 {
573 compatible = "snps,dw-apb-uart";
574 reg = <0x07001400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100575 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800576 reg-shift = <2>;
577 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800578 clocks = <&apb1_gates 21>;
579 resets = <&apb1_resets 21>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800580 status = "disabled";
581 };
582
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800583 i2c0: i2c@07002800 {
584 compatible = "allwinner,sun6i-a31-i2c";
585 reg = <0x07002800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100586 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800587 clocks = <&apb1_gates 0>;
588 resets = <&apb1_resets 0>;
589 status = "disabled";
590 #address-cells = <1>;
591 #size-cells = <0>;
592 };
593
594 i2c1: i2c@07002c00 {
595 compatible = "allwinner,sun6i-a31-i2c";
596 reg = <0x07002c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100597 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800598 clocks = <&apb1_gates 1>;
599 resets = <&apb1_resets 1>;
600 status = "disabled";
601 #address-cells = <1>;
602 #size-cells = <0>;
603 };
604
605 i2c2: i2c@07003000 {
606 compatible = "allwinner,sun6i-a31-i2c";
607 reg = <0x07003000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100608 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800609 clocks = <&apb1_gates 2>;
610 resets = <&apb1_resets 2>;
611 status = "disabled";
612 #address-cells = <1>;
613 #size-cells = <0>;
614 };
615
616 i2c3: i2c@07003400 {
617 compatible = "allwinner,sun6i-a31-i2c";
618 reg = <0x07003400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100619 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800620 clocks = <&apb1_gates 3>;
621 resets = <&apb1_resets 3>;
622 status = "disabled";
623 #address-cells = <1>;
624 #size-cells = <0>;
625 };
626
627 i2c4: i2c@07003800 {
628 compatible = "allwinner,sun6i-a31-i2c";
629 reg = <0x07003800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100630 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800631 clocks = <&apb1_gates 4>;
632 resets = <&apb1_resets 4>;
633 status = "disabled";
634 #address-cells = <1>;
635 #size-cells = <0>;
636 };
637
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800638 r_wdt: watchdog@08001000 {
639 compatible = "allwinner,sun6i-a31-wdt";
640 reg = <0x08001000 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100641 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800642 };
643
644 r_uart: serial@08002800 {
645 compatible = "snps,dw-apb-uart";
646 reg = <0x08002800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100647 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800648 reg-shift = <2>;
649 reg-io-width = <4>;
650 clocks = <&osc24M>;
651 status = "disabled";
652 };
653 };
654};