blob: ddc34676987d7c9aae997505a85875b5e694b79f [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>
55
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +080056/ {
57 interrupt-parent = <&gic>;
58
59 aliases {
60 serial0 = &uart0;
61 serial1 = &uart1;
62 serial2 = &uart2;
63 serial3 = &uart3;
64 serial4 = &uart4;
65 serial5 = &uart5;
66 serial6 = &r_uart;
67 };
68
69 cpus {
70 #address-cells = <1>;
71 #size-cells = <0>;
72
73 cpu0: cpu@0 {
74 compatible = "arm,cortex-a7";
75 device_type = "cpu";
76 reg = <0x0>;
77 };
78
79 cpu1: cpu@1 {
80 compatible = "arm,cortex-a7";
81 device_type = "cpu";
82 reg = <0x1>;
83 };
84
85 cpu2: cpu@2 {
86 compatible = "arm,cortex-a7";
87 device_type = "cpu";
88 reg = <0x2>;
89 };
90
91 cpu3: cpu@3 {
92 compatible = "arm,cortex-a7";
93 device_type = "cpu";
94 reg = <0x3>;
95 };
96
97 cpu4: cpu@100 {
98 compatible = "arm,cortex-a15";
99 device_type = "cpu";
100 reg = <0x100>;
101 };
102
103 cpu5: cpu@101 {
104 compatible = "arm,cortex-a15";
105 device_type = "cpu";
106 reg = <0x101>;
107 };
108
109 cpu6: cpu@102 {
110 compatible = "arm,cortex-a15";
111 device_type = "cpu";
112 reg = <0x102>;
113 };
114
115 cpu7: cpu@103 {
116 compatible = "arm,cortex-a15";
117 device_type = "cpu";
118 reg = <0x103>;
119 };
120 };
121
122 memory {
123 /* 8GB max. with LPAE */
124 reg = <0 0x20000000 0x02 0>;
125 };
126
127 clocks {
128 #address-cells = <1>;
129 #size-cells = <1>;
130 /*
131 * map 64 bit address range down to 32 bits,
132 * as the peripherals are all under 512MB.
133 */
134 ranges = <0 0 0 0x20000000>;
135
136 osc24M: osc24M_clk {
137 #clock-cells = <0>;
138 compatible = "fixed-clock";
139 clock-frequency = <24000000>;
140 clock-output-names = "osc24M";
141 };
142
143 osc32k: osc32k_clk {
144 #clock-cells = <0>;
145 compatible = "fixed-clock";
146 clock-frequency = <32768>;
147 clock-output-names = "osc32k";
148 };
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800149
150 pll4: clk@0600000c {
151 #clock-cells = <0>;
152 compatible = "allwinner,sun9i-a80-pll4-clk";
153 reg = <0x0600000c 0x4>;
154 clocks = <&osc24M>;
155 clock-output-names = "pll4";
156 };
157
158 pll12: clk@0600002c {
159 #clock-cells = <0>;
160 compatible = "allwinner,sun9i-a80-pll4-clk";
161 reg = <0x0600002c 0x4>;
162 clocks = <&osc24M>;
163 clock-output-names = "pll12";
164 };
165
166 gt_clk: clk@0600005c {
167 #clock-cells = <0>;
168 compatible = "allwinner,sun9i-a80-gt-clk";
169 reg = <0x0600005c 0x4>;
170 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
171 clock-output-names = "gt";
172 };
173
174 ahb0: clk@06000060 {
175 #clock-cells = <0>;
176 compatible = "allwinner,sun9i-a80-ahb-clk";
177 reg = <0x06000060 0x4>;
178 clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
179 clock-output-names = "ahb0";
180 };
181
182 ahb1: clk@06000064 {
183 #clock-cells = <0>;
184 compatible = "allwinner,sun9i-a80-ahb-clk";
185 reg = <0x06000064 0x4>;
186 clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
187 clock-output-names = "ahb1";
188 };
189
190 ahb2: clk@06000068 {
191 #clock-cells = <0>;
192 compatible = "allwinner,sun9i-a80-ahb-clk";
193 reg = <0x06000068 0x4>;
194 clocks = <&gt_clk>, <&pll4>, <&pll12>, <&pll12>;
195 clock-output-names = "ahb2";
196 };
197
198 apb0: clk@06000070 {
199 #clock-cells = <0>;
200 compatible = "allwinner,sun9i-a80-apb0-clk";
201 reg = <0x06000070 0x4>;
202 clocks = <&osc24M>, <&pll4>;
203 clock-output-names = "apb0";
204 };
205
206 apb1: clk@06000074 {
207 #clock-cells = <0>;
208 compatible = "allwinner,sun9i-a80-apb1-clk";
209 reg = <0x06000074 0x4>;
210 clocks = <&osc24M>, <&pll4>;
211 clock-output-names = "apb1";
212 };
213
214 cci400_clk: clk@06000078 {
215 #clock-cells = <0>;
216 compatible = "allwinner,sun9i-a80-gt-clk";
217 reg = <0x06000078 0x4>;
218 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
219 clock-output-names = "cci400";
220 };
221
Chen-Yu Tsaid2aa6f542015-01-13 09:37:25 +0800222 mmc0_clk: clk@06000410 {
223 #clock-cells = <1>;
224 compatible = "allwinner,sun9i-a80-mmc-clk";
225 reg = <0x06000410 0x4>;
226 clocks = <&osc24M>, <&pll4>;
227 clock-output-names = "mmc0", "mmc0_output",
228 "mmc0_sample";
229 };
230
231 mmc1_clk: clk@06000414 {
232 #clock-cells = <1>;
233 compatible = "allwinner,sun9i-a80-mmc-clk";
234 reg = <0x06000414 0x4>;
235 clocks = <&osc24M>, <&pll4>;
236 clock-output-names = "mmc1", "mmc1_output",
237 "mmc1_sample";
238 };
239
240 mmc2_clk: clk@06000418 {
241 #clock-cells = <1>;
242 compatible = "allwinner,sun9i-a80-mmc-clk";
243 reg = <0x06000418 0x4>;
244 clocks = <&osc24M>, <&pll4>;
245 clock-output-names = "mmc2", "mmc2_output",
246 "mmc2_sample";
247 };
248
249 mmc3_clk: clk@0600041c {
250 #clock-cells = <1>;
251 compatible = "allwinner,sun9i-a80-mmc-clk";
252 reg = <0x0600041c 0x4>;
253 clocks = <&osc24M>, <&pll4>;
254 clock-output-names = "mmc3", "mmc3_output",
255 "mmc3_sample";
256 };
257
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800258 ahb0_gates: clk@06000580 {
259 #clock-cells = <1>;
260 compatible = "allwinner,sun9i-a80-ahb0-gates-clk";
261 reg = <0x06000580 0x4>;
262 clocks = <&ahb0>;
263 clock-output-names = "ahb0_fd", "ahb0_ve", "ahb0_gpu",
264 "ahb0_ss", "ahb0_sd", "ahb0_nand1",
265 "ahb0_nand0", "ahb0_sdram",
266 "ahb0_mipi_hsi", "ahb0_sata", "ahb0_ts",
267 "ahb0_spi0","ahb0_spi1", "ahb0_spi2",
268 "ahb0_spi3";
269 };
270
271 ahb1_gates: clk@06000584 {
272 #clock-cells = <1>;
273 compatible = "allwinner,sun9i-a80-ahb1-gates-clk";
274 reg = <0x06000584 0x4>;
275 clocks = <&ahb1>;
276 clock-output-names = "ahb1_usbotg", "ahb1_usbhci",
277 "ahb1_gmac", "ahb1_msgbox",
278 "ahb1_spinlock", "ahb1_hstimer",
279 "ahb1_dma";
280 };
281
282 ahb2_gates: clk@06000588 {
283 #clock-cells = <1>;
284 compatible = "allwinner,sun9i-a80-ahb2-gates-clk";
285 reg = <0x06000588 0x4>;
286 clocks = <&ahb2>;
287 clock-output-names = "ahb2_lcd0", "ahb2_lcd1",
288 "ahb2_edp", "ahb2_csi", "ahb2_hdmi",
289 "ahb2_de", "ahb2_mp", "ahb2_mipi_dsi";
290 };
291
292 apb0_gates: clk@06000590 {
293 #clock-cells = <1>;
294 compatible = "allwinner,sun9i-a80-apb0-gates-clk";
295 reg = <0x06000590 0x4>;
296 clocks = <&apb0>;
297 clock-output-names = "apb0_spdif", "apb0_pio",
298 "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
299 "apb0_lradc", "apb0_gpadc", "apb0_twd",
300 "apb0_cirtx";
301 };
302
303 apb1_gates: clk@06000594 {
304 #clock-cells = <1>;
305 compatible = "allwinner,sun9i-a80-apb1-gates-clk";
306 reg = <0x06000594 0x4>;
307 clocks = <&apb1>;
308 clock-output-names = "apb1_i2c0", "apb1_i2c1",
309 "apb1_i2c2", "apb1_i2c3", "apb1_i2c4",
310 "apb1_uart0", "apb1_uart1",
311 "apb1_uart2", "apb1_uart3",
312 "apb1_uart4", "apb1_uart5";
313 };
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800314 };
315
316 soc {
317 compatible = "simple-bus";
318 #address-cells = <1>;
319 #size-cells = <1>;
320 /*
321 * map 64 bit address range down to 32 bits,
322 * as the peripherals are all under 512MB.
323 */
324 ranges = <0 0 0 0x20000000>;
325
326 gic: interrupt-controller@01c41000 {
327 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
328 reg = <0x01c41000 0x1000>,
329 <0x01c42000 0x1000>,
330 <0x01c44000 0x2000>,
331 <0x01c46000 0x2000>;
332 interrupt-controller;
333 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100334 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800335 };
336
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800337 ahb0_resets: reset@060005a0 {
338 #reset-cells = <1>;
339 compatible = "allwinner,sun6i-a31-clock-reset";
340 reg = <0x060005a0 0x4>;
341 };
342
343 ahb1_resets: reset@060005a4 {
344 #reset-cells = <1>;
345 compatible = "allwinner,sun6i-a31-clock-reset";
346 reg = <0x060005a4 0x4>;
347 };
348
349 ahb2_resets: reset@060005a8 {
350 #reset-cells = <1>;
351 compatible = "allwinner,sun6i-a31-clock-reset";
352 reg = <0x060005a8 0x4>;
353 };
354
355 apb0_resets: reset@060005b0 {
356 #reset-cells = <1>;
357 compatible = "allwinner,sun6i-a31-clock-reset";
358 reg = <0x060005b0 0x4>;
359 };
360
361 apb1_resets: reset@060005b4 {
362 #reset-cells = <1>;
363 compatible = "allwinner,sun6i-a31-clock-reset";
364 reg = <0x060005b4 0x4>;
365 };
366
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800367 timer@06000c00 {
368 compatible = "allwinner,sun4i-a10-timer";
369 reg = <0x06000c00 0xa0>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100370 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
371 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
372 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
373 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
374 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
375 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800376
377 clocks = <&osc24M>;
378 };
379
Maxime Ripard43d024d2014-10-28 22:41:28 +0100380 pio: pinctrl@06000800 {
381 compatible = "allwinner,sun9i-a80-pinctrl";
382 reg = <0x06000800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100383 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
384 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
385 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
386 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
387 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard43d024d2014-10-28 22:41:28 +0100388 clocks = <&apb0_gates 5>;
389 gpio-controller;
390 interrupt-controller;
391 #interrupt-cells = <2>;
392 #size-cells = <0>;
393 #gpio-cells = <3>;
Maxime Ripard888366f2014-10-28 22:41:29 +0100394
Chen-Yu Tsai6657a052014-10-31 11:05:47 +0800395 i2c3_pins_a: i2c3@0 {
396 allwinner,pins = "PG10", "PG11";
397 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100398 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
399 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai6657a052014-10-31 11:05:47 +0800400 };
401
Maxime Ripard888366f2014-10-28 22:41:29 +0100402 uart0_pins_a: uart0@0 {
403 allwinner,pins = "PH12", "PH13";
404 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100405 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
406 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard888366f2014-10-28 22:41:29 +0100407 };
Chen-Yu Tsai2a950b22014-10-31 11:05:50 +0800408
409 uart4_pins_a: uart4@0 {
410 allwinner,pins = "PG12", "PG13", "PG14", "PG15";
411 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100412 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
413 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai2a950b22014-10-31 11:05:50 +0800414 };
Maxime Ripard43d024d2014-10-28 22:41:28 +0100415 };
416
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800417 uart0: serial@07000000 {
418 compatible = "snps,dw-apb-uart";
419 reg = <0x07000000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100420 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800421 reg-shift = <2>;
422 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800423 clocks = <&apb1_gates 16>;
424 resets = <&apb1_resets 16>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800425 status = "disabled";
426 };
427
428 uart1: serial@07000400 {
429 compatible = "snps,dw-apb-uart";
430 reg = <0x07000400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100431 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800432 reg-shift = <2>;
433 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800434 clocks = <&apb1_gates 17>;
435 resets = <&apb1_resets 17>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800436 status = "disabled";
437 };
438
439 uart2: serial@07000800 {
440 compatible = "snps,dw-apb-uart";
441 reg = <0x07000800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100442 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800443 reg-shift = <2>;
444 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800445 clocks = <&apb1_gates 18>;
446 resets = <&apb1_resets 18>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800447 status = "disabled";
448 };
449
450 uart3: serial@07000c00 {
451 compatible = "snps,dw-apb-uart";
452 reg = <0x07000c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100453 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800454 reg-shift = <2>;
455 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800456 clocks = <&apb1_gates 19>;
457 resets = <&apb1_resets 19>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800458 status = "disabled";
459 };
460
461 uart4: serial@07001000 {
462 compatible = "snps,dw-apb-uart";
463 reg = <0x07001000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100464 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800465 reg-shift = <2>;
466 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800467 clocks = <&apb1_gates 20>;
468 resets = <&apb1_resets 20>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800469 status = "disabled";
470 };
471
472 uart5: serial@07001400 {
473 compatible = "snps,dw-apb-uart";
474 reg = <0x07001400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100475 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800476 reg-shift = <2>;
477 reg-io-width = <4>;
Chen-Yu Tsaiac399a92014-10-20 22:10:30 +0800478 clocks = <&apb1_gates 21>;
479 resets = <&apb1_resets 21>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800480 status = "disabled";
481 };
482
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800483 i2c0: i2c@07002800 {
484 compatible = "allwinner,sun6i-a31-i2c";
485 reg = <0x07002800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100486 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800487 clocks = <&apb1_gates 0>;
488 resets = <&apb1_resets 0>;
489 status = "disabled";
490 #address-cells = <1>;
491 #size-cells = <0>;
492 };
493
494 i2c1: i2c@07002c00 {
495 compatible = "allwinner,sun6i-a31-i2c";
496 reg = <0x07002c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100497 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800498 clocks = <&apb1_gates 1>;
499 resets = <&apb1_resets 1>;
500 status = "disabled";
501 #address-cells = <1>;
502 #size-cells = <0>;
503 };
504
505 i2c2: i2c@07003000 {
506 compatible = "allwinner,sun6i-a31-i2c";
507 reg = <0x07003000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100508 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800509 clocks = <&apb1_gates 2>;
510 resets = <&apb1_resets 2>;
511 status = "disabled";
512 #address-cells = <1>;
513 #size-cells = <0>;
514 };
515
516 i2c3: i2c@07003400 {
517 compatible = "allwinner,sun6i-a31-i2c";
518 reg = <0x07003400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100519 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800520 clocks = <&apb1_gates 3>;
521 resets = <&apb1_resets 3>;
522 status = "disabled";
523 #address-cells = <1>;
524 #size-cells = <0>;
525 };
526
527 i2c4: i2c@07003800 {
528 compatible = "allwinner,sun6i-a31-i2c";
529 reg = <0x07003800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100530 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaie4aa7532014-10-31 11:05:46 +0800531 clocks = <&apb1_gates 4>;
532 resets = <&apb1_resets 4>;
533 status = "disabled";
534 #address-cells = <1>;
535 #size-cells = <0>;
536 };
537
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800538 r_wdt: watchdog@08001000 {
539 compatible = "allwinner,sun6i-a31-wdt";
540 reg = <0x08001000 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100541 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800542 };
543
544 r_uart: serial@08002800 {
545 compatible = "snps,dw-apb-uart";
546 reg = <0x08002800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100547 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai4ab328f2014-10-08 21:02:53 +0800548 reg-shift = <2>;
549 reg-io-width = <4>;
550 clocks = <&osc24M>;
551 status = "disabled";
552 };
553 };
554};