blob: 0e011427615f9200be33c239cb523e46451a2555 [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
14/include/ "skeleton.dtsi"
15
16/ {
17 interrupt-parent = <&intc>;
18
Emilio Lópeze751cce2013-11-16 15:17:29 -030019 aliases {
20 ethernet0 = &emac;
Maxime Ripard4dd40652014-01-02 22:05:04 +010021 serial0 = &uart0;
22 serial1 = &uart1;
23 serial2 = &uart2;
24 serial3 = &uart3;
Emilio Lópeze751cce2013-11-16 15:17:29 -030025 };
26
Hans de Goeded5018412014-11-14 16:34:35 +010027 chosen {
28 #address-cells = <1>;
29 #size-cells = <1>;
30 ranges;
31
Hans de Goedea9f8cda2014-11-18 12:07:13 +010032 framebuffer@0 {
33 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
34 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010035 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
36 <&ahb_gates 44>;
Hans de Goeded5018412014-11-14 16:34:35 +010037 status = "disabled";
38 };
39 };
40
Maxime Ripardd3ae0782013-06-09 10:40:53 +020041 cpus {
42 cpu@0 {
43 compatible = "arm,cortex-a8";
44 };
45 };
46
47 memory {
48 reg = <0x40000000 0x20000000>;
49 };
50
51 clocks {
52 #address-cells = <1>;
53 #size-cells = <1>;
54 ranges;
55
56 /*
57 * This is a dummy clock, to be used as placeholder on
58 * other mux clocks when a specific parent clock is not
59 * yet implemented. It should be dropped when the driver
60 * is complete.
61 */
62 dummy: dummy {
63 #clock-cells = <0>;
64 compatible = "fixed-clock";
65 clock-frequency = <0>;
66 };
67
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080068 osc24M: clk@01c20050 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020069 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010070 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020071 reg = <0x01c20050 0x4>;
72 clock-frequency = <24000000>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080073 clock-output-names = "osc24M";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020074 };
75
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080076 osc32k: clk@0 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020077 #clock-cells = <0>;
78 compatible = "fixed-clock";
79 clock-frequency = <32768>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080080 clock-output-names = "osc32k";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020081 };
82
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080083 pll1: clk@01c20000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +020084 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010085 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020086 reg = <0x01c20000 0x4>;
87 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080088 clock-output-names = "pll1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +020089 };
90
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080091 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -030092 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010093 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -030094 reg = <0x01c20018 0x4>;
95 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080096 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -030097 };
98
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080099 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300100 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100101 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300102 reg = <0x01c20020 0x4>;
103 clocks = <&osc24M>;
104 clock-output-names = "pll5_ddr", "pll5_other";
105 };
106
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800107 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300108 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100109 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300110 reg = <0x01c20028 0x4>;
111 clocks = <&osc24M>;
112 clock-output-names = "pll6_sata", "pll6_other", "pll6";
113 };
114
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200115 /* dummy is 200M */
116 cpu: cpu@01c20054 {
117 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100118 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200119 reg = <0x01c20054 0x4>;
120 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800121 clock-output-names = "cpu";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200122 };
123
124 axi: axi@01c20054 {
125 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100126 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200127 reg = <0x01c20054 0x4>;
128 clocks = <&cpu>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800129 clock-output-names = "axi";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200130 };
131
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800132 axi_gates: clk@01c2005c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200133 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100134 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200135 reg = <0x01c2005c 0x4>;
136 clocks = <&axi>;
137 clock-output-names = "axi_dram";
138 };
139
140 ahb: ahb@01c20054 {
141 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100142 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200143 reg = <0x01c20054 0x4>;
144 clocks = <&axi>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800145 clock-output-names = "ahb";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200146 };
147
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800148 ahb_gates: clk@01c20060 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200149 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200150 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200151 reg = <0x01c20060 0x8>;
152 clocks = <&ahb>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200153 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
154 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
155 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
156 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
157 "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
158 "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
159 "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200160 };
161
162 apb0: apb0@01c20054 {
163 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100164 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200165 reg = <0x01c20054 0x4>;
166 clocks = <&ahb>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800167 clock-output-names = "apb0";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200168 };
169
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800170 apb0_gates: clk@01c20068 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200171 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200172 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200173 reg = <0x01c20068 0x4>;
174 clocks = <&apb0>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200175 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
176 "apb0_ir", "apb0_keypad";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200177 };
178
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800179 apb1: clk@01c20058 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200180 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100181 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200182 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800183 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800184 clock-output-names = "apb1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200185 };
186
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800187 apb1_gates: clk@01c2006c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200188 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200189 compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200190 reg = <0x01c2006c 0x4>;
191 clocks = <&apb1>;
192 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard29bb8052013-07-16 11:28:58 +0200193 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
194 "apb1_uart2", "apb1_uart3";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200195 };
Emilio López8dc36bf2013-12-23 00:32:42 -0300196
197 nand_clk: clk@01c20080 {
198 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100199 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300200 reg = <0x01c20080 0x4>;
201 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
202 clock-output-names = "nand";
203 };
204
205 ms_clk: clk@01c20084 {
206 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100207 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300208 reg = <0x01c20084 0x4>;
209 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
210 clock-output-names = "ms";
211 };
212
213 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200214 #clock-cells = <1>;
215 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300216 reg = <0x01c20088 0x4>;
217 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200218 clock-output-names = "mmc0",
219 "mmc0_output",
220 "mmc0_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300221 };
222
223 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200224 #clock-cells = <1>;
225 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300226 reg = <0x01c2008c 0x4>;
227 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200228 clock-output-names = "mmc1",
229 "mmc1_output",
230 "mmc1_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300231 };
232
233 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200234 #clock-cells = <1>;
235 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300236 reg = <0x01c20090 0x4>;
237 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200238 clock-output-names = "mmc2",
239 "mmc2_output",
240 "mmc2_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300241 };
242
243 ts_clk: clk@01c20098 {
244 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100245 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300246 reg = <0x01c20098 0x4>;
247 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
248 clock-output-names = "ts";
249 };
250
251 ss_clk: clk@01c2009c {
252 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100253 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300254 reg = <0x01c2009c 0x4>;
255 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
256 clock-output-names = "ss";
257 };
258
259 spi0_clk: clk@01c200a0 {
260 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100261 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300262 reg = <0x01c200a0 0x4>;
263 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
264 clock-output-names = "spi0";
265 };
266
267 spi1_clk: clk@01c200a4 {
268 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100269 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300270 reg = <0x01c200a4 0x4>;
271 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
272 clock-output-names = "spi1";
273 };
274
275 spi2_clk: clk@01c200a8 {
276 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100277 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300278 reg = <0x01c200a8 0x4>;
279 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
280 clock-output-names = "spi2";
281 };
282
283 ir0_clk: clk@01c200b0 {
284 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100285 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300286 reg = <0x01c200b0 0x4>;
287 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
288 clock-output-names = "ir0";
289 };
Emilio López118c07a2013-12-23 00:32:44 -0300290
Roman Byshko4c5d72f2014-02-07 16:21:52 +0100291 usb_clk: clk@01c200cc {
292 #clock-cells = <1>;
293 #reset-cells = <1>;
294 compatible = "allwinner,sun5i-a13-usb-clk";
295 reg = <0x01c200cc 0x4>;
296 clocks = <&pll6 1>;
297 clock-output-names = "usb_ohci0", "usb_phy";
298 };
299
Emilio López118c07a2013-12-23 00:32:44 -0300300 mbus_clk: clk@01c2015c {
301 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200302 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300303 reg = <0x01c2015c 0x4>;
304 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305 clock-output-names = "mbus";
306 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200307 };
308
Maxime Ripard9e199292013-08-03 16:07:36 +0200309 soc@01c00000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200310 compatible = "simple-bus";
311 #address-cells = <1>;
312 #size-cells = <1>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200313 ranges;
314
Emilio López6a5775e2014-08-04 17:09:58 -0300315 dma: dma-controller@01c02000 {
316 compatible = "allwinner,sun4i-a10-dma";
317 reg = <0x01c02000 0x1000>;
318 interrupts = <27>;
319 clocks = <&ahb_gates 6>;
320 #dma-cells = <2>;
321 };
322
Maxime Ripard8a689562014-02-22 22:35:56 +0100323 spi0: spi@01c05000 {
324 compatible = "allwinner,sun4i-a10-spi";
325 reg = <0x01c05000 0x1000>;
326 interrupts = <10>;
327 clocks = <&ahb_gates 20>, <&spi0_clk>;
328 clock-names = "ahb", "mod";
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300329 dmas = <&dma 1 27>, <&dma 1 26>;
330 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100331 status = "disabled";
332 #address-cells = <1>;
333 #size-cells = <0>;
334 };
335
336 spi1: spi@01c06000 {
337 compatible = "allwinner,sun4i-a10-spi";
338 reg = <0x01c06000 0x1000>;
339 interrupts = <11>;
340 clocks = <&ahb_gates 21>, <&spi1_clk>;
341 clock-names = "ahb", "mod";
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300342 dmas = <&dma 1 9>, <&dma 1 8>;
343 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100344 status = "disabled";
345 #address-cells = <1>;
346 #size-cells = <0>;
347 };
348
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200349 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100350 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200351 reg = <0x01c0b000 0x1000>;
352 interrupts = <55>;
353 clocks = <&ahb_gates 17>;
354 status = "disabled";
355 };
356
357 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100358 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200359 reg = <0x01c0b080 0x14>;
360 status = "disabled";
361 #address-cells = <1>;
362 #size-cells = <0>;
363 };
364
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200365 mmc0: mmc@01c0f000 {
366 compatible = "allwinner,sun5i-a13-mmc";
367 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200368 clocks = <&ahb_gates 8>,
369 <&mmc0_clk 0>,
370 <&mmc0_clk 1>,
371 <&mmc0_clk 2>;
372 clock-names = "ahb",
373 "mmc",
374 "output",
375 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200376 interrupts = <32>;
377 status = "disabled";
378 };
379
380 mmc1: mmc@01c10000 {
381 compatible = "allwinner,sun5i-a13-mmc";
382 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200383 clocks = <&ahb_gates 9>,
384 <&mmc1_clk 0>,
385 <&mmc1_clk 1>,
386 <&mmc1_clk 2>;
387 clock-names = "ahb",
388 "mmc",
389 "output",
390 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200391 interrupts = <33>;
392 status = "disabled";
393 };
394
395 mmc2: mmc@01c11000 {
396 compatible = "allwinner,sun5i-a13-mmc";
397 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200398 clocks = <&ahb_gates 10>,
399 <&mmc2_clk 0>,
400 <&mmc2_clk 1>,
401 <&mmc2_clk 2>;
402 clock-names = "ahb",
403 "mmc",
404 "output",
405 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200406 interrupts = <34>;
407 status = "disabled";
408 };
409
Roman Byshko06c7d522014-03-01 20:26:24 +0100410 usbphy: phy@01c13400 {
411 #phy-cells = <1>;
412 compatible = "allwinner,sun5i-a13-usb-phy";
413 reg = <0x01c13400 0x10 0x01c14800 0x4>;
414 reg-names = "phy_ctrl", "pmu1";
415 clocks = <&usb_clk 8>;
416 clock-names = "usb_phy";
417 resets = <&usb_clk 1>;
418 reset-names = "usb1_reset";
419 status = "disabled";
420 };
421
422 ehci0: usb@01c14000 {
423 compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci";
424 reg = <0x01c14000 0x100>;
425 interrupts = <39>;
426 clocks = <&ahb_gates 1>;
427 phys = <&usbphy 1>;
428 phy-names = "usb";
429 status = "disabled";
430 };
431
432 ohci0: usb@01c14400 {
433 compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci";
434 reg = <0x01c14400 0x100>;
435 interrupts = <40>;
436 clocks = <&usb_clk 6>, <&ahb_gates 2>;
437 phys = <&usbphy 1>;
438 phy-names = "usb";
439 status = "disabled";
440 };
441
Maxime Ripard8a689562014-02-22 22:35:56 +0100442 spi2: spi@01c17000 {
443 compatible = "allwinner,sun4i-a10-spi";
444 reg = <0x01c17000 0x1000>;
445 interrupts = <12>;
446 clocks = <&ahb_gates 22>, <&spi2_clk>;
447 clock-names = "ahb", "mod";
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300448 dmas = <&dma 1 29>, <&dma 1 28>;
449 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100450 status = "disabled";
451 #address-cells = <1>;
452 #size-cells = <0>;
453 };
454
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200455 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100456 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200457 reg = <0x01c20400 0x400>;
458 interrupt-controller;
459 #interrupt-cells = <1>;
460 };
461
462 pio: pinctrl@01c20800 {
463 compatible = "allwinner,sun5i-a10s-pinctrl";
464 reg = <0x01c20800 0x400>;
465 interrupts = <28>;
466 clocks = <&apb0_gates 5>;
467 gpio-controller;
468 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200469 #interrupt-cells = <2>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200470 #size-cells = <0>;
471 #gpio-cells = <3>;
472
473 uart0_pins_a: uart0@0 {
474 allwinner,pins = "PB19", "PB20";
475 allwinner,function = "uart0";
476 allwinner,drive = <0>;
477 allwinner,pull = <0>;
478 };
479
480 uart2_pins_a: uart2@0 {
481 allwinner,pins = "PC18", "PC19";
482 allwinner,function = "uart2";
483 allwinner,drive = <0>;
484 allwinner,pull = <0>;
485 };
486
487 uart3_pins_a: uart3@0 {
488 allwinner,pins = "PG9", "PG10";
489 allwinner,function = "uart3";
490 allwinner,drive = <0>;
491 allwinner,pull = <0>;
492 };
493
494 emac_pins_a: emac0@0 {
495 allwinner,pins = "PA0", "PA1", "PA2",
496 "PA3", "PA4", "PA5", "PA6",
497 "PA7", "PA8", "PA9", "PA10",
498 "PA11", "PA12", "PA13", "PA14",
499 "PA15", "PA16";
500 allwinner,function = "emac";
501 allwinner,drive = <0>;
502 allwinner,pull = <0>;
503 };
Emilio López170ab432013-07-07 18:31:56 -0300504
505 i2c0_pins_a: i2c0@0 {
506 allwinner,pins = "PB0", "PB1";
507 allwinner,function = "i2c0";
508 allwinner,drive = <0>;
509 allwinner,pull = <0>;
510 };
511
512 i2c1_pins_a: i2c1@0 {
513 allwinner,pins = "PB15", "PB16";
514 allwinner,function = "i2c1";
515 allwinner,drive = <0>;
516 allwinner,pull = <0>;
517 };
518
519 i2c2_pins_a: i2c2@0 {
520 allwinner,pins = "PB17", "PB18";
521 allwinner,function = "i2c2";
522 allwinner,drive = <0>;
523 allwinner,pull = <0>;
524 };
Hans de Goede6da50f12014-04-26 12:16:12 +0200525
526 mmc0_pins_a: mmc0@0 {
527 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
528 allwinner,function = "mmc0";
529 allwinner,drive = <2>;
530 allwinner,pull = <0>;
531 };
532
533 mmc1_pins_a: mmc1@0 {
534 allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8";
535 allwinner,function = "mmc1";
536 allwinner,drive = <2>;
537 allwinner,pull = <0>;
538 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200539 };
540
541 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100542 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200543 reg = <0x01c20c00 0x90>;
544 interrupts = <22>;
545 clocks = <&osc24M>;
546 };
547
548 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100549 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200550 reg = <0x01c20c90 0x10>;
551 };
552
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200553 sid: eeprom@01c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100554 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200555 reg = <0x01c23800 0x10>;
556 };
557
Hans de Goedef65c93a2013-12-31 17:20:51 +0100558 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100559 compatible = "allwinner,sun4i-a10-ts";
Hans de Goedef65c93a2013-12-31 17:20:51 +0100560 reg = <0x01c25000 0x100>;
561 interrupts = <29>;
562 };
563
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200564 uart0: serial@01c28000 {
565 compatible = "snps,dw-apb-uart";
566 reg = <0x01c28000 0x400>;
567 interrupts = <1>;
568 reg-shift = <2>;
569 reg-io-width = <4>;
570 clocks = <&apb1_gates 16>;
571 status = "disabled";
572 };
573
574 uart1: serial@01c28400 {
575 compatible = "snps,dw-apb-uart";
576 reg = <0x01c28400 0x400>;
577 interrupts = <2>;
578 reg-shift = <2>;
579 reg-io-width = <4>;
580 clocks = <&apb1_gates 17>;
581 status = "disabled";
582 };
583
584 uart2: serial@01c28800 {
585 compatible = "snps,dw-apb-uart";
586 reg = <0x01c28800 0x400>;
587 interrupts = <3>;
588 reg-shift = <2>;
589 reg-io-width = <4>;
590 clocks = <&apb1_gates 18>;
591 status = "disabled";
592 };
593
594 uart3: serial@01c28c00 {
595 compatible = "snps,dw-apb-uart";
596 reg = <0x01c28c00 0x400>;
597 interrupts = <4>;
598 reg-shift = <2>;
599 reg-io-width = <4>;
600 clocks = <&apb1_gates 19>;
601 status = "disabled";
602 };
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300603
604 i2c0: i2c@01c2ac00 {
605 #address-cells = <1>;
606 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200607 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300608 reg = <0x01c2ac00 0x400>;
609 interrupts = <7>;
610 clocks = <&apb1_gates 0>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300611 status = "disabled";
612 };
613
614 i2c1: i2c@01c2b000 {
615 #address-cells = <1>;
616 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200617 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300618 reg = <0x01c2b000 0x400>;
619 interrupts = <8>;
620 clocks = <&apb1_gates 1>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300621 status = "disabled";
622 };
623
624 i2c2: i2c@01c2b400 {
625 #address-cells = <1>;
626 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200627 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300628 reg = <0x01c2b400 0x400>;
629 interrupts = <9>;
630 clocks = <&apb1_gates 2>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300631 status = "disabled";
632 };
Maxime Ripardf2b50022013-11-07 12:01:48 +0100633
634 timer@01c60000 {
635 compatible = "allwinner,sun5i-a13-hstimer";
636 reg = <0x01c60000 0x1000>;
637 interrupts = <82>, <83>;
638 clocks = <&ahb_gates 28>;
639 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200640 };
641};