blob: c570a9b08fec4feee2d91a501aa4e72384f58aa5 [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 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010042
43 framebuffer@1 {
44 compatible = "allwinner,simple-framebuffer",
45 "simple-framebuffer";
46 allwinner,pipeline = "de_be0-lcd0";
47 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
48 status = "disabled";
49 };
Hans de Goeded5018412014-11-14 16:34:35 +010050 };
51
Maxime Ripardd3ae0782013-06-09 10:40:53 +020052 cpus {
53 cpu@0 {
54 compatible = "arm,cortex-a8";
55 };
56 };
57
58 memory {
59 reg = <0x40000000 0x20000000>;
60 };
61
62 clocks {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 ranges;
66
67 /*
68 * This is a dummy clock, to be used as placeholder on
69 * other mux clocks when a specific parent clock is not
70 * yet implemented. It should be dropped when the driver
71 * is complete.
72 */
73 dummy: dummy {
74 #clock-cells = <0>;
75 compatible = "fixed-clock";
76 clock-frequency = <0>;
77 };
78
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080079 osc24M: clk@01c20050 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020080 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010081 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020082 reg = <0x01c20050 0x4>;
83 clock-frequency = <24000000>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080084 clock-output-names = "osc24M";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020085 };
86
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080087 osc32k: clk@0 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020088 #clock-cells = <0>;
89 compatible = "fixed-clock";
90 clock-frequency = <32768>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080091 clock-output-names = "osc32k";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020092 };
93
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080094 pll1: clk@01c20000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020095 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010096 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020097 reg = <0x01c20000 0x4>;
98 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080099 clock-output-names = "pll1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200100 };
101
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800102 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300103 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100104 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300105 reg = <0x01c20018 0x4>;
106 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800107 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300108 };
109
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800110 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300111 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100112 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300113 reg = <0x01c20020 0x4>;
114 clocks = <&osc24M>;
115 clock-output-names = "pll5_ddr", "pll5_other";
116 };
117
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800118 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300119 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100120 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300121 reg = <0x01c20028 0x4>;
122 clocks = <&osc24M>;
123 clock-output-names = "pll6_sata", "pll6_other", "pll6";
124 };
125
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200126 /* dummy is 200M */
127 cpu: cpu@01c20054 {
128 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100129 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200130 reg = <0x01c20054 0x4>;
131 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800132 clock-output-names = "cpu";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200133 };
134
135 axi: axi@01c20054 {
136 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100137 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200138 reg = <0x01c20054 0x4>;
139 clocks = <&cpu>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800140 clock-output-names = "axi";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200141 };
142
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800143 axi_gates: clk@01c2005c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200144 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100145 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200146 reg = <0x01c2005c 0x4>;
147 clocks = <&axi>;
148 clock-output-names = "axi_dram";
149 };
150
151 ahb: ahb@01c20054 {
152 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100153 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200154 reg = <0x01c20054 0x4>;
155 clocks = <&axi>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800156 clock-output-names = "ahb";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200157 };
158
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800159 ahb_gates: clk@01c20060 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200160 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200161 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200162 reg = <0x01c20060 0x8>;
163 clocks = <&ahb>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200164 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
165 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
166 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
167 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
168 "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
169 "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
170 "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200171 };
172
173 apb0: apb0@01c20054 {
174 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100175 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200176 reg = <0x01c20054 0x4>;
177 clocks = <&ahb>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800178 clock-output-names = "apb0";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200179 };
180
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800181 apb0_gates: clk@01c20068 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200182 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200183 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200184 reg = <0x01c20068 0x4>;
185 clocks = <&apb0>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200186 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
187 "apb0_ir", "apb0_keypad";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200188 };
189
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800190 apb1: clk@01c20058 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200191 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100192 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200193 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800194 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800195 clock-output-names = "apb1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200196 };
197
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800198 apb1_gates: clk@01c2006c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200199 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200200 compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200201 reg = <0x01c2006c 0x4>;
202 clocks = <&apb1>;
203 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard29bb8052013-07-16 11:28:58 +0200204 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
205 "apb1_uart2", "apb1_uart3";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200206 };
Emilio López8dc36bf2013-12-23 00:32:42 -0300207
208 nand_clk: clk@01c20080 {
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 = <0x01c20080 0x4>;
212 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
213 clock-output-names = "nand";
214 };
215
216 ms_clk: clk@01c20084 {
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 = <0x01c20084 0x4>;
220 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
221 clock-output-names = "ms";
222 };
223
224 mmc0_clk: clk@01c20088 {
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 = <0x01c20088 0x4>;
228 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
229 clock-output-names = "mmc0";
230 };
231
232 mmc1_clk: clk@01c2008c {
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 = <0x01c2008c 0x4>;
236 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
237 clock-output-names = "mmc1";
238 };
239
240 mmc2_clk: clk@01c20090 {
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 = <0x01c20090 0x4>;
244 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
245 clock-output-names = "mmc2";
246 };
247
248 ts_clk: clk@01c20098 {
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 = <0x01c20098 0x4>;
252 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
253 clock-output-names = "ts";
254 };
255
256 ss_clk: clk@01c2009c {
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 = <0x01c2009c 0x4>;
260 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
261 clock-output-names = "ss";
262 };
263
264 spi0_clk: clk@01c200a0 {
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 = <0x01c200a0 0x4>;
268 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
269 clock-output-names = "spi0";
270 };
271
272 spi1_clk: clk@01c200a4 {
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 = <0x01c200a4 0x4>;
276 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
277 clock-output-names = "spi1";
278 };
279
280 spi2_clk: clk@01c200a8 {
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 = <0x01c200a8 0x4>;
284 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
285 clock-output-names = "spi2";
286 };
287
288 ir0_clk: clk@01c200b0 {
289 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100290 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300291 reg = <0x01c200b0 0x4>;
292 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
293 clock-output-names = "ir0";
294 };
Emilio López118c07a2013-12-23 00:32:44 -0300295
Roman Byshko4c5d72f2014-02-07 16:21:52 +0100296 usb_clk: clk@01c200cc {
297 #clock-cells = <1>;
298 #reset-cells = <1>;
299 compatible = "allwinner,sun5i-a13-usb-clk";
300 reg = <0x01c200cc 0x4>;
301 clocks = <&pll6 1>;
302 clock-output-names = "usb_ohci0", "usb_phy";
303 };
304
Emilio López118c07a2013-12-23 00:32:44 -0300305 mbus_clk: clk@01c2015c {
306 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200307 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300308 reg = <0x01c2015c 0x4>;
309 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
310 clock-output-names = "mbus";
311 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200312 };
313
Maxime Ripard9e199292013-08-03 16:07:36 +0200314 soc@01c00000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200315 compatible = "simple-bus";
316 #address-cells = <1>;
317 #size-cells = <1>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200318 ranges;
319
Emilio López6a5775e2014-08-04 17:09:58 -0300320 dma: dma-controller@01c02000 {
321 compatible = "allwinner,sun4i-a10-dma";
322 reg = <0x01c02000 0x1000>;
323 interrupts = <27>;
324 clocks = <&ahb_gates 6>;
325 #dma-cells = <2>;
326 };
327
Maxime Ripard8a689562014-02-22 22:35:56 +0100328 spi0: spi@01c05000 {
329 compatible = "allwinner,sun4i-a10-spi";
330 reg = <0x01c05000 0x1000>;
331 interrupts = <10>;
332 clocks = <&ahb_gates 20>, <&spi0_clk>;
333 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100334 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
335 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300336 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100337 status = "disabled";
338 #address-cells = <1>;
339 #size-cells = <0>;
340 };
341
342 spi1: spi@01c06000 {
343 compatible = "allwinner,sun4i-a10-spi";
344 reg = <0x01c06000 0x1000>;
345 interrupts = <11>;
346 clocks = <&ahb_gates 21>, <&spi1_clk>;
347 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100348 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
349 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300350 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100351 status = "disabled";
352 #address-cells = <1>;
353 #size-cells = <0>;
354 };
355
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200356 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100357 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200358 reg = <0x01c0b000 0x1000>;
359 interrupts = <55>;
360 clocks = <&ahb_gates 17>;
361 status = "disabled";
362 };
363
364 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100365 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200366 reg = <0x01c0b080 0x14>;
367 status = "disabled";
368 #address-cells = <1>;
369 #size-cells = <0>;
370 };
371
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200372 mmc0: mmc@01c0f000 {
373 compatible = "allwinner,sun5i-a13-mmc";
374 reg = <0x01c0f000 0x1000>;
375 clocks = <&ahb_gates 8>, <&mmc0_clk>;
376 clock-names = "ahb", "mmc";
377 interrupts = <32>;
378 status = "disabled";
379 };
380
381 mmc1: mmc@01c10000 {
382 compatible = "allwinner,sun5i-a13-mmc";
383 reg = <0x01c10000 0x1000>;
384 clocks = <&ahb_gates 9>, <&mmc1_clk>;
385 clock-names = "ahb", "mmc";
386 interrupts = <33>;
387 status = "disabled";
388 };
389
390 mmc2: mmc@01c11000 {
391 compatible = "allwinner,sun5i-a13-mmc";
392 reg = <0x01c11000 0x1000>;
393 clocks = <&ahb_gates 10>, <&mmc2_clk>;
394 clock-names = "ahb", "mmc";
395 interrupts = <34>;
396 status = "disabled";
397 };
398
Roman Byshko06c7d522014-03-01 20:26:24 +0100399 usbphy: phy@01c13400 {
400 #phy-cells = <1>;
401 compatible = "allwinner,sun5i-a13-usb-phy";
402 reg = <0x01c13400 0x10 0x01c14800 0x4>;
403 reg-names = "phy_ctrl", "pmu1";
404 clocks = <&usb_clk 8>;
405 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800406 resets = <&usb_clk 0>, <&usb_clk 1>;
407 reset-names = "usb0_reset", "usb1_reset";
Roman Byshko06c7d522014-03-01 20:26:24 +0100408 status = "disabled";
409 };
410
411 ehci0: usb@01c14000 {
412 compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci";
413 reg = <0x01c14000 0x100>;
414 interrupts = <39>;
415 clocks = <&ahb_gates 1>;
416 phys = <&usbphy 1>;
417 phy-names = "usb";
418 status = "disabled";
419 };
420
421 ohci0: usb@01c14400 {
422 compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci";
423 reg = <0x01c14400 0x100>;
424 interrupts = <40>;
425 clocks = <&usb_clk 6>, <&ahb_gates 2>;
426 phys = <&usbphy 1>;
427 phy-names = "usb";
428 status = "disabled";
429 };
430
Maxime Ripard8a689562014-02-22 22:35:56 +0100431 spi2: spi@01c17000 {
432 compatible = "allwinner,sun4i-a10-spi";
433 reg = <0x01c17000 0x1000>;
434 interrupts = <12>;
435 clocks = <&ahb_gates 22>, <&spi2_clk>;
436 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100437 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
438 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300439 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100440 status = "disabled";
441 #address-cells = <1>;
442 #size-cells = <0>;
443 };
444
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200445 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100446 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200447 reg = <0x01c20400 0x400>;
448 interrupt-controller;
449 #interrupt-cells = <1>;
450 };
451
452 pio: pinctrl@01c20800 {
453 compatible = "allwinner,sun5i-a10s-pinctrl";
454 reg = <0x01c20800 0x400>;
455 interrupts = <28>;
456 clocks = <&apb0_gates 5>;
457 gpio-controller;
458 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200459 #interrupt-cells = <2>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200460 #size-cells = <0>;
461 #gpio-cells = <3>;
462
463 uart0_pins_a: uart0@0 {
464 allwinner,pins = "PB19", "PB20";
465 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100466 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
467 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200468 };
469
470 uart2_pins_a: uart2@0 {
471 allwinner,pins = "PC18", "PC19";
472 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100473 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
474 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200475 };
476
477 uart3_pins_a: uart3@0 {
478 allwinner,pins = "PG9", "PG10";
479 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100480 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
481 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200482 };
483
484 emac_pins_a: emac0@0 {
485 allwinner,pins = "PA0", "PA1", "PA2",
486 "PA3", "PA4", "PA5", "PA6",
487 "PA7", "PA8", "PA9", "PA10",
488 "PA11", "PA12", "PA13", "PA14",
489 "PA15", "PA16";
490 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100491 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
492 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200493 };
Emilio López170ab4362013-07-07 18:31:56 -0300494
495 i2c0_pins_a: i2c0@0 {
496 allwinner,pins = "PB0", "PB1";
497 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100498 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
499 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab4362013-07-07 18:31:56 -0300500 };
501
502 i2c1_pins_a: i2c1@0 {
503 allwinner,pins = "PB15", "PB16";
504 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100505 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
506 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab4362013-07-07 18:31:56 -0300507 };
508
509 i2c2_pins_a: i2c2@0 {
510 allwinner,pins = "PB17", "PB18";
511 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100512 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
513 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab4362013-07-07 18:31:56 -0300514 };
Hans de Goede6da50f12014-04-26 12:16:12 +0200515
516 mmc0_pins_a: mmc0@0 {
517 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
518 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100519 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
520 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede6da50f12014-04-26 12:16:12 +0200521 };
522
523 mmc1_pins_a: mmc1@0 {
524 allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8";
525 allwinner,function = "mmc1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100526 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
527 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede6da50f12014-04-26 12:16:12 +0200528 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200529 };
530
531 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100532 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200533 reg = <0x01c20c00 0x90>;
534 interrupts = <22>;
535 clocks = <&osc24M>;
536 };
537
538 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100539 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200540 reg = <0x01c20c90 0x10>;
541 };
542
Hans de Goedeec011af52014-12-23 11:13:21 +0100543 lradc: lradc@01c22800 {
544 compatible = "allwinner,sun4i-a10-lradc-keys";
545 reg = <0x01c22800 0x100>;
546 interrupts = <31>;
547 status = "disabled";
548 };
549
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200550 sid: eeprom@01c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100551 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200552 reg = <0x01c23800 0x10>;
553 };
554
Hans de Goedef65c93a2013-12-31 17:20:51 +0100555 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100556 compatible = "allwinner,sun4i-a10-ts";
Hans de Goedef65c93a2013-12-31 17:20:51 +0100557 reg = <0x01c25000 0x100>;
558 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800559 #thermal-sensor-cells = <0>;
Hans de Goedef65c93a2013-12-31 17:20:51 +0100560 };
561
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200562 uart0: serial@01c28000 {
563 compatible = "snps,dw-apb-uart";
564 reg = <0x01c28000 0x400>;
565 interrupts = <1>;
566 reg-shift = <2>;
567 reg-io-width = <4>;
568 clocks = <&apb1_gates 16>;
569 status = "disabled";
570 };
571
572 uart1: serial@01c28400 {
573 compatible = "snps,dw-apb-uart";
574 reg = <0x01c28400 0x400>;
575 interrupts = <2>;
576 reg-shift = <2>;
577 reg-io-width = <4>;
578 clocks = <&apb1_gates 17>;
579 status = "disabled";
580 };
581
582 uart2: serial@01c28800 {
583 compatible = "snps,dw-apb-uart";
584 reg = <0x01c28800 0x400>;
585 interrupts = <3>;
586 reg-shift = <2>;
587 reg-io-width = <4>;
588 clocks = <&apb1_gates 18>;
589 status = "disabled";
590 };
591
592 uart3: serial@01c28c00 {
593 compatible = "snps,dw-apb-uart";
594 reg = <0x01c28c00 0x400>;
595 interrupts = <4>;
596 reg-shift = <2>;
597 reg-io-width = <4>;
598 clocks = <&apb1_gates 19>;
599 status = "disabled";
600 };
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300601
602 i2c0: i2c@01c2ac00 {
603 #address-cells = <1>;
604 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200605 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300606 reg = <0x01c2ac00 0x400>;
607 interrupts = <7>;
608 clocks = <&apb1_gates 0>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300609 status = "disabled";
610 };
611
612 i2c1: i2c@01c2b000 {
613 #address-cells = <1>;
614 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200615 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300616 reg = <0x01c2b000 0x400>;
617 interrupts = <8>;
618 clocks = <&apb1_gates 1>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300619 status = "disabled";
620 };
621
622 i2c2: i2c@01c2b400 {
623 #address-cells = <1>;
624 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200625 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300626 reg = <0x01c2b400 0x400>;
627 interrupts = <9>;
628 clocks = <&apb1_gates 2>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300629 status = "disabled";
630 };
Maxime Ripardf2b50022013-11-07 12:01:48 +0100631
632 timer@01c60000 {
633 compatible = "allwinner,sun5i-a13-hstimer";
634 reg = <0x01c60000 0x1000>;
635 interrupts = <82>, <83>;
636 clocks = <&ahb_gates 28>;
637 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200638 };
639};