blob: 0cbb5404ff1396afefa63a72542b43b433c32fc4 [file] [log] [blame]
Maxime Ripard8aed3b32013-03-10 16:09:06 +01001/*
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
Maxime Ripard54428d42014-01-02 22:05:04 +010019 aliases {
20 serial0 = &uart0;
21 serial1 = &uart1;
22 serial2 = &uart2;
23 serial3 = &uart3;
24 serial4 = &uart4;
25 serial5 = &uart5;
26 };
27
28
Maxime Ripard8aed3b32013-03-10 16:09:06 +010029 cpus {
30 #address-cells = <1>;
31 #size-cells = <0>;
32
33 cpu@0 {
34 compatible = "arm,cortex-a7";
35 device_type = "cpu";
36 reg = <0>;
37 };
38
39 cpu@1 {
40 compatible = "arm,cortex-a7";
41 device_type = "cpu";
42 reg = <1>;
43 };
44
45 cpu@2 {
46 compatible = "arm,cortex-a7";
47 device_type = "cpu";
48 reg = <2>;
49 };
50
51 cpu@3 {
52 compatible = "arm,cortex-a7";
53 device_type = "cpu";
54 reg = <3>;
55 };
56 };
57
58 memory {
59 reg = <0x40000000 0x80000000>;
60 };
61
Maxime Ripardb5a10b72014-04-17 21:54:41 +020062 pmu {
63 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
64 interrupts = <0 120 4>,
65 <0 121 4>,
66 <0 122 4>,
67 <0 123 4>;
68 };
69
Maxime Ripard8aed3b32013-03-10 16:09:06 +010070 clocks {
71 #address-cells = <1>;
Maxime Ripard98096562013-07-23 23:54:19 +020072 #size-cells = <1>;
73 ranges;
Maxime Ripard8aed3b32013-03-10 16:09:06 +010074
Maxime Ripard98096562013-07-23 23:54:19 +020075 osc24M: osc24M {
Maxime Ripard8aed3b32013-03-10 16:09:06 +010076 #clock-cells = <0>;
77 compatible = "fixed-clock";
78 clock-frequency = <24000000>;
79 };
Maxime Ripard98096562013-07-23 23:54:19 +020080
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +080081 osc32k: clk@0 {
Maxime Ripard98096562013-07-23 23:54:19 +020082 #clock-cells = <0>;
83 compatible = "fixed-clock";
84 clock-frequency = <32768>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +080085 clock-output-names = "osc32k";
Maxime Ripard98096562013-07-23 23:54:19 +020086 };
87
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +080088 pll1: clk@01c20000 {
Maxime Ripard98096562013-07-23 23:54:19 +020089 #clock-cells = <0>;
90 compatible = "allwinner,sun6i-a31-pll1-clk";
91 reg = <0x01c20000 0x4>;
92 clocks = <&osc24M>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +080093 clock-output-names = "pll1";
Maxime Ripard98096562013-07-23 23:54:19 +020094 };
95
Maxime Ripardb0a09c72014-02-05 14:05:04 +010096 pll6: clk@01c20028 {
Maxime Ripard98096562013-07-23 23:54:19 +020097 #clock-cells = <0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +010098 compatible = "allwinner,sun6i-a31-pll6-clk";
99 reg = <0x01c20028 0x4>;
100 clocks = <&osc24M>;
101 clock-output-names = "pll6";
Maxime Ripard98096562013-07-23 23:54:19 +0200102 };
103
104 cpu: cpu@01c20050 {
105 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100106 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200107 reg = <0x01c20050 0x4>;
108
109 /*
110 * PLL1 is listed twice here.
111 * While it looks suspicious, it's actually documented
112 * that way both in the datasheet and in the code from
113 * Allwinner.
114 */
115 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800116 clock-output-names = "cpu";
Maxime Ripard98096562013-07-23 23:54:19 +0200117 };
118
119 axi: axi@01c20050 {
120 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100121 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200122 reg = <0x01c20050 0x4>;
123 clocks = <&cpu>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800124 clock-output-names = "axi";
Maxime Ripard98096562013-07-23 23:54:19 +0200125 };
126
127 ahb1_mux: ahb1_mux@01c20054 {
128 #clock-cells = <0>;
129 compatible = "allwinner,sun6i-a31-ahb1-mux-clk";
130 reg = <0x01c20054 0x4>;
131 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800132 clock-output-names = "ahb1_mux";
Maxime Ripard98096562013-07-23 23:54:19 +0200133 };
134
135 ahb1: ahb1@01c20054 {
136 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100137 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200138 reg = <0x01c20054 0x4>;
139 clocks = <&ahb1_mux>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800140 clock-output-names = "ahb1";
Maxime Ripard98096562013-07-23 23:54:19 +0200141 };
142
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800143 ahb1_gates: clk@01c20060 {
Maxime Ripard98096562013-07-23 23:54:19 +0200144 #clock-cells = <1>;
145 compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
146 reg = <0x01c20060 0x8>;
147 clocks = <&ahb1>;
148 clock-output-names = "ahb1_mipidsi", "ahb1_ss",
149 "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
150 "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
151 "ahb1_nand0", "ahb1_sdram",
152 "ahb1_gmac", "ahb1_ts", "ahb1_hstimer",
153 "ahb1_spi0", "ahb1_spi1", "ahb1_spi2",
154 "ahb1_spi3", "ahb1_otg", "ahb1_ehci0",
155 "ahb1_ehci1", "ahb1_ohci0",
156 "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve",
157 "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi",
158 "ahb1_hdmi", "ahb1_de0", "ahb1_de1",
159 "ahb1_fe0", "ahb1_fe1", "ahb1_mp",
160 "ahb1_gpu", "ahb1_deu0", "ahb1_deu1",
161 "ahb1_drc0", "ahb1_drc1";
162 };
163
164 apb1: apb1@01c20054 {
165 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100166 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200167 reg = <0x01c20054 0x4>;
168 clocks = <&ahb1>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800169 clock-output-names = "apb1";
Maxime Ripard98096562013-07-23 23:54:19 +0200170 };
171
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800172 apb1_gates: clk@01c20068 {
Maxime Ripard98096562013-07-23 23:54:19 +0200173 #clock-cells = <1>;
174 compatible = "allwinner,sun6i-a31-apb1-gates-clk";
175 reg = <0x01c20068 0x4>;
176 clocks = <&apb1>;
177 clock-output-names = "apb1_codec", "apb1_digital_mic",
178 "apb1_pio", "apb1_daudio0",
179 "apb1_daudio1";
180 };
181
182 apb2_mux: apb2_mux@01c20058 {
183 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100184 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200185 reg = <0x01c20058 0x4>;
186 clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800187 clock-output-names = "apb2_mux";
Maxime Ripard98096562013-07-23 23:54:19 +0200188 };
189
190 apb2: apb2@01c20058 {
191 #clock-cells = <0>;
192 compatible = "allwinner,sun6i-a31-apb2-div-clk";
193 reg = <0x01c20058 0x4>;
194 clocks = <&apb2_mux>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800195 clock-output-names = "apb2";
Maxime Ripard98096562013-07-23 23:54:19 +0200196 };
197
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800198 apb2_gates: clk@01c2006c {
Maxime Ripard98096562013-07-23 23:54:19 +0200199 #clock-cells = <1>;
200 compatible = "allwinner,sun6i-a31-apb2-gates-clk";
Maxime Ripard439d9f52013-09-24 16:30:05 +0300201 reg = <0x01c2006c 0x4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200202 clocks = <&apb2>;
203 clock-output-names = "apb2_i2c0", "apb2_i2c1",
204 "apb2_i2c2", "apb2_i2c3", "apb2_uart0",
205 "apb2_uart1", "apb2_uart2", "apb2_uart3",
206 "apb2_uart4", "apb2_uart5";
207 };
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100208
Hans de Goedeadc54c82014-05-02 17:57:23 +0200209 mmc0_clk: clk@01c20088 {
210 #clock-cells = <0>;
211 compatible = "allwinner,sun4i-a10-mod0-clk";
212 reg = <0x01c20088 0x4>;
213 clocks = <&osc24M>, <&pll6>;
214 clock-output-names = "mmc0";
215 };
216
217 mmc1_clk: clk@01c2008c {
218 #clock-cells = <0>;
219 compatible = "allwinner,sun4i-a10-mod0-clk";
220 reg = <0x01c2008c 0x4>;
221 clocks = <&osc24M>, <&pll6>;
222 clock-output-names = "mmc1";
223 };
224
225 mmc2_clk: clk@01c20090 {
226 #clock-cells = <0>;
227 compatible = "allwinner,sun4i-a10-mod0-clk";
228 reg = <0x01c20090 0x4>;
229 clocks = <&osc24M>, <&pll6>;
230 clock-output-names = "mmc2";
231 };
232
233 mmc3_clk: clk@01c20094 {
234 #clock-cells = <0>;
235 compatible = "allwinner,sun4i-a10-mod0-clk";
236 reg = <0x01c20094 0x4>;
237 clocks = <&osc24M>, <&pll6>;
238 clock-output-names = "mmc3";
239 };
240
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100241 spi0_clk: clk@01c200a0 {
242 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100243 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100244 reg = <0x01c200a0 0x4>;
245 clocks = <&osc24M>, <&pll6>;
246 clock-output-names = "spi0";
247 };
248
249 spi1_clk: clk@01c200a4 {
250 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100251 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100252 reg = <0x01c200a4 0x4>;
253 clocks = <&osc24M>, <&pll6>;
254 clock-output-names = "spi1";
255 };
256
257 spi2_clk: clk@01c200a8 {
258 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100259 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100260 reg = <0x01c200a8 0x4>;
261 clocks = <&osc24M>, <&pll6>;
262 clock-output-names = "spi2";
263 };
264
265 spi3_clk: clk@01c200ac {
266 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100267 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100268 reg = <0x01c200ac 0x4>;
269 clocks = <&osc24M>, <&pll6>;
270 clock-output-names = "spi3";
271 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100272 };
273
274 soc@01c00000 {
275 compatible = "simple-bus";
276 #address-cells = <1>;
277 #size-cells = <1>;
278 ranges;
279
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100280 dma: dma-controller@01c02000 {
281 compatible = "allwinner,sun6i-a31-dma";
282 reg = <0x01c02000 0x1000>;
283 interrupts = <0 50 4>;
284 clocks = <&ahb1_gates 6>;
285 resets = <&ahb1_rst 6>;
286 #dma-cells = <1>;
287 };
288
Maxime Ripard140e1722013-03-12 22:16:05 +0100289 pio: pinctrl@01c20800 {
290 compatible = "allwinner,sun6i-a31-pinctrl";
291 reg = <0x01c20800 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100292 interrupts = <0 11 4>,
293 <0 15 4>,
294 <0 16 4>,
295 <0 17 4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200296 clocks = <&apb1_gates 5>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100297 gpio-controller;
298 interrupt-controller;
299 #address-cells = <1>;
300 #size-cells = <0>;
301 #gpio-cells = <3>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200302
303 uart0_pins_a: uart0@0 {
304 allwinner,pins = "PH20", "PH21";
305 allwinner,function = "uart0";
306 allwinner,drive = <0>;
307 allwinner,pull = <0>;
308 };
Maxime Ripard8be188b2014-03-04 17:28:40 +0100309
310 i2c0_pins_a: i2c0@0 {
311 allwinner,pins = "PH14", "PH15";
312 allwinner,function = "i2c0";
313 allwinner,drive = <0>;
314 allwinner,pull = <0>;
315 };
316
317 i2c1_pins_a: i2c1@0 {
318 allwinner,pins = "PH16", "PH17";
319 allwinner,function = "i2c1";
320 allwinner,drive = <0>;
321 allwinner,pull = <0>;
322 };
323
324 i2c2_pins_a: i2c2@0 {
325 allwinner,pins = "PH18", "PH19";
326 allwinner,function = "i2c2";
327 allwinner,drive = <0>;
328 allwinner,pull = <0>;
329 };
Hans de Goede9797eb82014-04-26 12:16:16 +0200330
331 mmc0_pins_a: mmc0@0 {
332 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
333 allwinner,function = "mmc0";
334 allwinner,drive = <2>;
335 allwinner,pull = <0>;
336 };
Maxime Ripard140e1722013-03-12 22:16:05 +0100337 };
338
Maxime Ripard24a661e92013-09-24 11:10:41 +0300339 ahb1_rst: reset@01c202c0 {
340 #reset-cells = <1>;
341 compatible = "allwinner,sun6i-a31-ahb1-reset";
342 reg = <0x01c202c0 0xc>;
343 };
344
345 apb1_rst: reset@01c202d0 {
346 #reset-cells = <1>;
347 compatible = "allwinner,sun6i-a31-clock-reset";
348 reg = <0x01c202d0 0x4>;
349 };
350
351 apb2_rst: reset@01c202d8 {
352 #reset-cells = <1>;
353 compatible = "allwinner,sun6i-a31-clock-reset";
354 reg = <0x01c202d8 0x4>;
355 };
356
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100357 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100358 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100359 reg = <0x01c20c00 0xa0>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100360 interrupts = <0 18 4>,
361 <0 19 4>,
362 <0 20 4>,
363 <0 21 4>,
364 <0 22 4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200365 clocks = <&osc24M>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100366 };
367
368 wdt1: watchdog@01c20ca0 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100369 compatible = "allwinner,sun6i-a31-wdt";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100370 reg = <0x01c20ca0 0x20>;
371 };
372
373 uart0: serial@01c28000 {
374 compatible = "snps,dw-apb-uart";
375 reg = <0x01c28000 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100376 interrupts = <0 0 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100377 reg-shift = <2>;
378 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200379 clocks = <&apb2_gates 16>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300380 resets = <&apb2_rst 16>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100381 dmas = <&dma 6>, <&dma 6>;
382 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100383 status = "disabled";
384 };
385
386 uart1: serial@01c28400 {
387 compatible = "snps,dw-apb-uart";
388 reg = <0x01c28400 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100389 interrupts = <0 1 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100390 reg-shift = <2>;
391 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200392 clocks = <&apb2_gates 17>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300393 resets = <&apb2_rst 17>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100394 dmas = <&dma 7>, <&dma 7>;
395 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100396 status = "disabled";
397 };
398
399 uart2: serial@01c28800 {
400 compatible = "snps,dw-apb-uart";
401 reg = <0x01c28800 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100402 interrupts = <0 2 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100403 reg-shift = <2>;
404 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200405 clocks = <&apb2_gates 18>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300406 resets = <&apb2_rst 18>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100407 dmas = <&dma 8>, <&dma 8>;
408 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100409 status = "disabled";
410 };
411
412 uart3: serial@01c28c00 {
413 compatible = "snps,dw-apb-uart";
414 reg = <0x01c28c00 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100415 interrupts = <0 3 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100416 reg-shift = <2>;
417 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200418 clocks = <&apb2_gates 19>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300419 resets = <&apb2_rst 19>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100420 dmas = <&dma 9>, <&dma 9>;
421 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100422 status = "disabled";
423 };
424
425 uart4: serial@01c29000 {
426 compatible = "snps,dw-apb-uart";
427 reg = <0x01c29000 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100428 interrupts = <0 4 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100429 reg-shift = <2>;
430 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200431 clocks = <&apb2_gates 20>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300432 resets = <&apb2_rst 20>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100433 dmas = <&dma 10>, <&dma 10>;
434 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100435 status = "disabled";
436 };
437
438 uart5: serial@01c29400 {
439 compatible = "snps,dw-apb-uart";
440 reg = <0x01c29400 0x400>;
Maxime Ripard6f97dc82013-12-10 19:37:22 +0100441 interrupts = <0 5 4>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100442 reg-shift = <2>;
443 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200444 clocks = <&apb2_gates 21>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300445 resets = <&apb2_rst 21>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100446 dmas = <&dma 22>, <&dma 22>;
447 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100448 status = "disabled";
449 };
450
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100451 i2c0: i2c@01c2ac00 {
452 compatible = "allwinner,sun6i-a31-i2c";
453 reg = <0x01c2ac00 0x400>;
454 interrupts = <0 6 4>;
455 clocks = <&apb2_gates 0>;
456 clock-frequency = <100000>;
457 resets = <&apb2_rst 0>;
458 status = "disabled";
459 };
460
461 i2c1: i2c@01c2b000 {
462 compatible = "allwinner,sun6i-a31-i2c";
463 reg = <0x01c2b000 0x400>;
464 interrupts = <0 7 4>;
465 clocks = <&apb2_gates 1>;
466 clock-frequency = <100000>;
467 resets = <&apb2_rst 1>;
468 status = "disabled";
469 };
470
471 i2c2: i2c@01c2b400 {
472 compatible = "allwinner,sun6i-a31-i2c";
473 reg = <0x01c2b400 0x400>;
474 interrupts = <0 8 4>;
475 clocks = <&apb2_gates 2>;
476 clock-frequency = <100000>;
477 resets = <&apb2_rst 2>;
478 status = "disabled";
479 };
480
481 i2c3: i2c@01c2b800 {
482 compatible = "allwinner,sun6i-a31-i2c";
483 reg = <0x01c2b800 0x400>;
484 interrupts = <0 9 4>;
485 clocks = <&apb2_gates 3>;
486 clock-frequency = <100000>;
487 resets = <&apb2_rst 3>;
488 status = "disabled";
489 };
490
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100491 spi0: spi@01c68000 {
492 compatible = "allwinner,sun6i-a31-spi";
493 reg = <0x01c68000 0x1000>;
494 interrupts = <0 65 4>;
495 clocks = <&ahb1_gates 20>, <&spi0_clk>;
496 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100497 dmas = <&dma 23>, <&dma 23>;
498 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100499 resets = <&ahb1_rst 20>;
500 status = "disabled";
501 };
502
503 spi1: spi@01c69000 {
504 compatible = "allwinner,sun6i-a31-spi";
505 reg = <0x01c69000 0x1000>;
506 interrupts = <0 66 4>;
507 clocks = <&ahb1_gates 21>, <&spi1_clk>;
508 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100509 dmas = <&dma 24>, <&dma 24>;
510 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100511 resets = <&ahb1_rst 21>;
512 status = "disabled";
513 };
514
515 spi2: spi@01c6a000 {
516 compatible = "allwinner,sun6i-a31-spi";
517 reg = <0x01c6a000 0x1000>;
518 interrupts = <0 67 4>;
519 clocks = <&ahb1_gates 22>, <&spi2_clk>;
520 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100521 dmas = <&dma 25>, <&dma 25>;
522 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100523 resets = <&ahb1_rst 22>;
524 status = "disabled";
525 };
526
527 spi3: spi@01c6b000 {
528 compatible = "allwinner,sun6i-a31-spi";
529 reg = <0x01c6b000 0x1000>;
530 interrupts = <0 68 4>;
531 clocks = <&ahb1_gates 23>, <&spi3_clk>;
532 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100533 dmas = <&dma 26>, <&dma 26>;
534 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100535 resets = <&ahb1_rst 23>;
536 status = "disabled";
537 };
538
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100539 gic: interrupt-controller@01c81000 {
540 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
541 reg = <0x01c81000 0x1000>,
542 <0x01c82000 0x1000>,
543 <0x01c84000 0x2000>,
544 <0x01c86000 0x2000>;
545 interrupt-controller;
546 #interrupt-cells = <3>;
547 interrupts = <1 9 0xf04>;
548 };
Maxime Ripard81ee4292013-11-03 10:30:12 +0100549
Maxime Ripard28240d22014-04-17 10:29:35 +0200550 nmi_intc: interrupt-controller@01f00c0c {
551 compatible = "allwinner,sun6i-a31-sc-nmi";
552 interrupt-controller;
553 #interrupt-cells = <2>;
554 reg = <0x01f00c0c 0x38>;
555 interrupts = <0 32 4>;
556 };
557
Hans de Goedea42ea602014-04-13 13:41:02 +0200558 prcm@01f01400 {
559 compatible = "allwinner,sun6i-a31-prcm";
560 reg = <0x01f01400 0x200>;
561 };
562
Maxime Ripard81ee4292013-11-03 10:30:12 +0100563 cpucfg@01f01c00 {
564 compatible = "allwinner,sun6i-a31-cpuconfig";
565 reg = <0x01f01c00 0x300>;
566 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100567 };
568};