blob: 241d69d0e7d64937f79e991945d33dfe4ec0dbf2 [file] [log] [blame]
Maxime Ripardd3ae0782013-06-09 10:40:53 +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
Maxime Ripard71455702014-12-16 22:59:54 +010014#include "skeleton.dtsi"
Maxime Ripardd3ae0782013-06-09 10:40:53 +020015
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010016#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010017#include <dt-bindings/pinctrl/sun4i-a10.h>
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010018
Maxime Ripardd3ae0782013-06-09 10:40:53 +020019/ {
20 interrupt-parent = <&intc>;
21
Emilio Lópeze751cce2013-11-16 15:17:29 -030022 aliases {
23 ethernet0 = &emac;
Maxime Ripard4dd40652014-01-02 22:05:04 +010024 serial0 = &uart0;
25 serial1 = &uart1;
26 serial2 = &uart2;
27 serial3 = &uart3;
Emilio Lópeze751cce2013-11-16 15:17:29 -030028 };
29
Hans de Goeded5018412014-11-14 16:34:35 +010030 chosen {
31 #address-cells = <1>;
32 #size-cells = <1>;
33 ranges;
34
Hans de Goedea9f8cda2014-11-18 12:07:13 +010035 framebuffer@0 {
36 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
37 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010038 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
39 <&ahb_gates 44>;
Hans de Goeded5018412014-11-14 16:34:35 +010040 status = "disabled";
41 };
42 };
43
Maxime Ripardd3ae0782013-06-09 10:40:53 +020044 cpus {
45 cpu@0 {
46 compatible = "arm,cortex-a8";
47 };
48 };
49
50 memory {
51 reg = <0x40000000 0x20000000>;
52 };
53
54 clocks {
55 #address-cells = <1>;
56 #size-cells = <1>;
57 ranges;
58
59 /*
60 * This is a dummy clock, to be used as placeholder on
61 * other mux clocks when a specific parent clock is not
62 * yet implemented. It should be dropped when the driver
63 * is complete.
64 */
65 dummy: dummy {
66 #clock-cells = <0>;
67 compatible = "fixed-clock";
68 clock-frequency = <0>;
69 };
70
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080071 osc24M: clk@01c20050 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020072 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010073 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020074 reg = <0x01c20050 0x4>;
75 clock-frequency = <24000000>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080076 clock-output-names = "osc24M";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020077 };
78
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080079 osc32k: clk@0 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020080 #clock-cells = <0>;
81 compatible = "fixed-clock";
82 clock-frequency = <32768>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080083 clock-output-names = "osc32k";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020084 };
85
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080086 pll1: clk@01c20000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020087 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010088 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020089 reg = <0x01c20000 0x4>;
90 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080091 clock-output-names = "pll1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020092 };
93
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080094 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -030095 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010096 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -030097 reg = <0x01c20018 0x4>;
98 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080099 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300100 };
101
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800102 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300103 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100104 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300105 reg = <0x01c20020 0x4>;
106 clocks = <&osc24M>;
107 clock-output-names = "pll5_ddr", "pll5_other";
108 };
109
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800110 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300111 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100112 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300113 reg = <0x01c20028 0x4>;
114 clocks = <&osc24M>;
115 clock-output-names = "pll6_sata", "pll6_other", "pll6";
116 };
117
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200118 /* dummy is 200M */
119 cpu: cpu@01c20054 {
120 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100121 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200122 reg = <0x01c20054 0x4>;
123 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800124 clock-output-names = "cpu";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200125 };
126
127 axi: axi@01c20054 {
128 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100129 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200130 reg = <0x01c20054 0x4>;
131 clocks = <&cpu>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800132 clock-output-names = "axi";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200133 };
134
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800135 axi_gates: clk@01c2005c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200136 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100137 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200138 reg = <0x01c2005c 0x4>;
139 clocks = <&axi>;
140 clock-output-names = "axi_dram";
141 };
142
143 ahb: ahb@01c20054 {
144 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100145 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200146 reg = <0x01c20054 0x4>;
147 clocks = <&axi>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800148 clock-output-names = "ahb";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200149 };
150
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800151 ahb_gates: clk@01c20060 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200152 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200153 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200154 reg = <0x01c20060 0x8>;
155 clocks = <&ahb>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200156 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
157 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
158 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
159 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
160 "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
161 "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
162 "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200163 };
164
165 apb0: apb0@01c20054 {
166 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100167 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200168 reg = <0x01c20054 0x4>;
169 clocks = <&ahb>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800170 clock-output-names = "apb0";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200171 };
172
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800173 apb0_gates: clk@01c20068 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200174 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200175 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200176 reg = <0x01c20068 0x4>;
177 clocks = <&apb0>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200178 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
179 "apb0_ir", "apb0_keypad";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200180 };
181
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800182 apb1: clk@01c20058 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200183 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100184 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200185 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800186 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800187 clock-output-names = "apb1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200188 };
189
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800190 apb1_gates: clk@01c2006c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200191 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200192 compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200193 reg = <0x01c2006c 0x4>;
194 clocks = <&apb1>;
195 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard29bb8052013-07-16 11:28:58 +0200196 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
197 "apb1_uart2", "apb1_uart3";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200198 };
Emilio López8dc36bf2013-12-23 00:32:42 -0300199
200 nand_clk: clk@01c20080 {
201 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100202 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300203 reg = <0x01c20080 0x4>;
204 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
205 clock-output-names = "nand";
206 };
207
208 ms_clk: clk@01c20084 {
209 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100210 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300211 reg = <0x01c20084 0x4>;
212 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
213 clock-output-names = "ms";
214 };
215
216 mmc0_clk: clk@01c20088 {
217 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100218 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300219 reg = <0x01c20088 0x4>;
220 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
221 clock-output-names = "mmc0";
222 };
223
224 mmc1_clk: clk@01c2008c {
225 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100226 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300227 reg = <0x01c2008c 0x4>;
228 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
229 clock-output-names = "mmc1";
230 };
231
232 mmc2_clk: clk@01c20090 {
233 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100234 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300235 reg = <0x01c20090 0x4>;
236 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
237 clock-output-names = "mmc2";
238 };
239
240 ts_clk: clk@01c20098 {
241 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100242 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300243 reg = <0x01c20098 0x4>;
244 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
245 clock-output-names = "ts";
246 };
247
248 ss_clk: clk@01c2009c {
249 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100250 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300251 reg = <0x01c2009c 0x4>;
252 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
253 clock-output-names = "ss";
254 };
255
256 spi0_clk: clk@01c200a0 {
257 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100258 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300259 reg = <0x01c200a0 0x4>;
260 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
261 clock-output-names = "spi0";
262 };
263
264 spi1_clk: clk@01c200a4 {
265 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100266 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300267 reg = <0x01c200a4 0x4>;
268 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
269 clock-output-names = "spi1";
270 };
271
272 spi2_clk: clk@01c200a8 {
273 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100274 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300275 reg = <0x01c200a8 0x4>;
276 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
277 clock-output-names = "spi2";
278 };
279
280 ir0_clk: clk@01c200b0 {
281 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100282 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300283 reg = <0x01c200b0 0x4>;
284 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
285 clock-output-names = "ir0";
286 };
Emilio López118c07a2013-12-23 00:32:44 -0300287
Roman Byshko4c5d72f2014-02-07 16:21:52 +0100288 usb_clk: clk@01c200cc {
289 #clock-cells = <1>;
290 #reset-cells = <1>;
291 compatible = "allwinner,sun5i-a13-usb-clk";
292 reg = <0x01c200cc 0x4>;
293 clocks = <&pll6 1>;
294 clock-output-names = "usb_ohci0", "usb_phy";
295 };
296
Emilio López118c07a2013-12-23 00:32:44 -0300297 mbus_clk: clk@01c2015c {
298 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200299 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300300 reg = <0x01c2015c 0x4>;
301 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
302 clock-output-names = "mbus";
303 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200304 };
305
Maxime Ripard9e199292013-08-03 16:07:36 +0200306 soc@01c00000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200307 compatible = "simple-bus";
308 #address-cells = <1>;
309 #size-cells = <1>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200310 ranges;
311
Emilio López6a5775e2014-08-04 17:09:58 -0300312 dma: dma-controller@01c02000 {
313 compatible = "allwinner,sun4i-a10-dma";
314 reg = <0x01c02000 0x1000>;
315 interrupts = <27>;
316 clocks = <&ahb_gates 6>;
317 #dma-cells = <2>;
318 };
319
Maxime Ripard8a689562014-02-22 22:35:56 +0100320 spi0: spi@01c05000 {
321 compatible = "allwinner,sun4i-a10-spi";
322 reg = <0x01c05000 0x1000>;
323 interrupts = <10>;
324 clocks = <&ahb_gates 20>, <&spi0_clk>;
325 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100326 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
327 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300328 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100329 status = "disabled";
330 #address-cells = <1>;
331 #size-cells = <0>;
332 };
333
334 spi1: spi@01c06000 {
335 compatible = "allwinner,sun4i-a10-spi";
336 reg = <0x01c06000 0x1000>;
337 interrupts = <11>;
338 clocks = <&ahb_gates 21>, <&spi1_clk>;
339 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100340 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
341 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300342 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100343 status = "disabled";
344 #address-cells = <1>;
345 #size-cells = <0>;
346 };
347
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200348 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100349 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200350 reg = <0x01c0b000 0x1000>;
351 interrupts = <55>;
352 clocks = <&ahb_gates 17>;
353 status = "disabled";
354 };
355
356 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100357 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200358 reg = <0x01c0b080 0x14>;
359 status = "disabled";
360 #address-cells = <1>;
361 #size-cells = <0>;
362 };
363
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200364 mmc0: mmc@01c0f000 {
365 compatible = "allwinner,sun5i-a13-mmc";
366 reg = <0x01c0f000 0x1000>;
367 clocks = <&ahb_gates 8>, <&mmc0_clk>;
368 clock-names = "ahb", "mmc";
369 interrupts = <32>;
370 status = "disabled";
371 };
372
373 mmc1: mmc@01c10000 {
374 compatible = "allwinner,sun5i-a13-mmc";
375 reg = <0x01c10000 0x1000>;
376 clocks = <&ahb_gates 9>, <&mmc1_clk>;
377 clock-names = "ahb", "mmc";
378 interrupts = <33>;
379 status = "disabled";
380 };
381
382 mmc2: mmc@01c11000 {
383 compatible = "allwinner,sun5i-a13-mmc";
384 reg = <0x01c11000 0x1000>;
385 clocks = <&ahb_gates 10>, <&mmc2_clk>;
386 clock-names = "ahb", "mmc";
387 interrupts = <34>;
388 status = "disabled";
389 };
390
Roman Byshko06c7d522014-03-01 20:26:24 +0100391 usbphy: phy@01c13400 {
392 #phy-cells = <1>;
393 compatible = "allwinner,sun5i-a13-usb-phy";
394 reg = <0x01c13400 0x10 0x01c14800 0x4>;
395 reg-names = "phy_ctrl", "pmu1";
396 clocks = <&usb_clk 8>;
397 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800398 resets = <&usb_clk 0>, <&usb_clk 1>;
399 reset-names = "usb0_reset", "usb1_reset";
Roman Byshko06c7d522014-03-01 20:26:24 +0100400 status = "disabled";
401 };
402
403 ehci0: usb@01c14000 {
404 compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci";
405 reg = <0x01c14000 0x100>;
406 interrupts = <39>;
407 clocks = <&ahb_gates 1>;
408 phys = <&usbphy 1>;
409 phy-names = "usb";
410 status = "disabled";
411 };
412
413 ohci0: usb@01c14400 {
414 compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci";
415 reg = <0x01c14400 0x100>;
416 interrupts = <40>;
417 clocks = <&usb_clk 6>, <&ahb_gates 2>;
418 phys = <&usbphy 1>;
419 phy-names = "usb";
420 status = "disabled";
421 };
422
Maxime Ripard8a689562014-02-22 22:35:56 +0100423 spi2: spi@01c17000 {
424 compatible = "allwinner,sun4i-a10-spi";
425 reg = <0x01c17000 0x1000>;
426 interrupts = <12>;
427 clocks = <&ahb_gates 22>, <&spi2_clk>;
428 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100429 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
430 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300431 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100432 status = "disabled";
433 #address-cells = <1>;
434 #size-cells = <0>;
435 };
436
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200437 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100438 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200439 reg = <0x01c20400 0x400>;
440 interrupt-controller;
441 #interrupt-cells = <1>;
442 };
443
444 pio: pinctrl@01c20800 {
445 compatible = "allwinner,sun5i-a10s-pinctrl";
446 reg = <0x01c20800 0x400>;
447 interrupts = <28>;
448 clocks = <&apb0_gates 5>;
449 gpio-controller;
450 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200451 #interrupt-cells = <2>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200452 #size-cells = <0>;
453 #gpio-cells = <3>;
454
455 uart0_pins_a: uart0@0 {
456 allwinner,pins = "PB19", "PB20";
457 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100458 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
459 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200460 };
461
462 uart2_pins_a: uart2@0 {
463 allwinner,pins = "PC18", "PC19";
464 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100465 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
466 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200467 };
468
469 uart3_pins_a: uart3@0 {
470 allwinner,pins = "PG9", "PG10";
471 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100472 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
473 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200474 };
475
476 emac_pins_a: emac0@0 {
477 allwinner,pins = "PA0", "PA1", "PA2",
478 "PA3", "PA4", "PA5", "PA6",
479 "PA7", "PA8", "PA9", "PA10",
480 "PA11", "PA12", "PA13", "PA14",
481 "PA15", "PA16";
482 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100483 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
484 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200485 };
Emilio López170ab432013-07-07 18:31:56 -0300486
487 i2c0_pins_a: i2c0@0 {
488 allwinner,pins = "PB0", "PB1";
489 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100490 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
491 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab432013-07-07 18:31:56 -0300492 };
493
494 i2c1_pins_a: i2c1@0 {
495 allwinner,pins = "PB15", "PB16";
496 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100497 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
498 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab432013-07-07 18:31:56 -0300499 };
500
501 i2c2_pins_a: i2c2@0 {
502 allwinner,pins = "PB17", "PB18";
503 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100504 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
505 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab432013-07-07 18:31:56 -0300506 };
Hans de Goede6da50f12014-04-26 12:16:12 +0200507
508 mmc0_pins_a: mmc0@0 {
509 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
510 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100511 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
512 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede6da50f12014-04-26 12:16:12 +0200513 };
514
515 mmc1_pins_a: mmc1@0 {
516 allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8";
517 allwinner,function = "mmc1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100518 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
519 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede6da50f12014-04-26 12:16:12 +0200520 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200521 };
522
523 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100524 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200525 reg = <0x01c20c00 0x90>;
526 interrupts = <22>;
527 clocks = <&osc24M>;
528 };
529
530 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100531 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200532 reg = <0x01c20c90 0x10>;
533 };
534
Hans de Goedeec011af52014-12-23 11:13:21 +0100535 lradc: lradc@01c22800 {
536 compatible = "allwinner,sun4i-a10-lradc-keys";
537 reg = <0x01c22800 0x100>;
538 interrupts = <31>;
539 status = "disabled";
540 };
541
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200542 sid: eeprom@01c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100543 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200544 reg = <0x01c23800 0x10>;
545 };
546
Hans de Goedef65c93a2013-12-31 17:20:51 +0100547 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100548 compatible = "allwinner,sun4i-a10-ts";
Hans de Goedef65c93a2013-12-31 17:20:51 +0100549 reg = <0x01c25000 0x100>;
550 interrupts = <29>;
551 };
552
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200553 uart0: serial@01c28000 {
554 compatible = "snps,dw-apb-uart";
555 reg = <0x01c28000 0x400>;
556 interrupts = <1>;
557 reg-shift = <2>;
558 reg-io-width = <4>;
559 clocks = <&apb1_gates 16>;
560 status = "disabled";
561 };
562
563 uart1: serial@01c28400 {
564 compatible = "snps,dw-apb-uart";
565 reg = <0x01c28400 0x400>;
566 interrupts = <2>;
567 reg-shift = <2>;
568 reg-io-width = <4>;
569 clocks = <&apb1_gates 17>;
570 status = "disabled";
571 };
572
573 uart2: serial@01c28800 {
574 compatible = "snps,dw-apb-uart";
575 reg = <0x01c28800 0x400>;
576 interrupts = <3>;
577 reg-shift = <2>;
578 reg-io-width = <4>;
579 clocks = <&apb1_gates 18>;
580 status = "disabled";
581 };
582
583 uart3: serial@01c28c00 {
584 compatible = "snps,dw-apb-uart";
585 reg = <0x01c28c00 0x400>;
586 interrupts = <4>;
587 reg-shift = <2>;
588 reg-io-width = <4>;
589 clocks = <&apb1_gates 19>;
590 status = "disabled";
591 };
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300592
593 i2c0: i2c@01c2ac00 {
594 #address-cells = <1>;
595 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200596 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300597 reg = <0x01c2ac00 0x400>;
598 interrupts = <7>;
599 clocks = <&apb1_gates 0>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300600 status = "disabled";
601 };
602
603 i2c1: i2c@01c2b000 {
604 #address-cells = <1>;
605 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200606 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300607 reg = <0x01c2b000 0x400>;
608 interrupts = <8>;
609 clocks = <&apb1_gates 1>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300610 status = "disabled";
611 };
612
613 i2c2: i2c@01c2b400 {
614 #address-cells = <1>;
615 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200616 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300617 reg = <0x01c2b400 0x400>;
618 interrupts = <9>;
619 clocks = <&apb1_gates 2>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300620 status = "disabled";
621 };
Maxime Ripardf2b50022013-11-07 12:01:48 +0100622
623 timer@01c60000 {
624 compatible = "allwinner,sun5i-a13-hstimer";
625 reg = <0x01c60000 0x1000>;
626 interrupts = <82>, <83>;
627 clocks = <&ahb_gates 28>;
628 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200629 };
630};