blob: 9174724571e24782a2a3ae57d40538e33890912e [file] [log] [blame]
Stefan Roese7423d2d2012-11-26 15:46:12 +01001/*
2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
4 *
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
Maxime Ripard69144e32013-03-13 20:07:37 +010013/include/ "skeleton.dtsi"
Stefan Roese7423d2d2012-11-26 15:46:12 +010014
15/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010016 interrupt-parent = <&intc>;
17
Emilio Lópeze751cce2013-11-16 15:17:29 -030018 aliases {
19 ethernet0 = &emac;
Maxime Ripard10b302a2013-11-17 10:03:04 +010020 serial0 = &uart0;
21 serial1 = &uart1;
Maxime Ripard143b13d2014-01-02 22:05:04 +010022 serial2 = &uart2;
23 serial3 = &uart3;
24 serial4 = &uart4;
25 serial5 = &uart5;
26 serial6 = &uart6;
27 serial7 = &uart7;
Emilio Lópeze751cce2013-11-16 15:17:29 -030028 };
29
Maxime Ripard69144e32013-03-13 20:07:37 +010030 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +020031 #address-cells = <1>;
32 #size-cells = <0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010033 cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010034 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +010035 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010036 reg = <0x0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010037 };
38 };
39
Stefan Roese7423d2d2012-11-26 15:46:12 +010040 memory {
41 reg = <0x40000000 0x80000000>;
42 };
Maxime Ripard874b4e42013-01-26 15:36:54 +010043
Maxime Ripard69144e32013-03-13 20:07:37 +010044 clocks {
45 #address-cells = <1>;
46 #size-cells = <1>;
47 ranges;
48
49 /*
50 * This is a dummy clock, to be used as placeholder on
51 * other mux clocks when a specific parent clock is not
52 * yet implemented. It should be dropped when the driver
53 * is complete.
54 */
55 dummy: dummy {
56 #clock-cells = <0>;
57 compatible = "fixed-clock";
58 clock-frequency = <0>;
59 };
60
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080061 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +010062 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010063 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +010064 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -030065 clock-frequency = <24000000>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080066 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +010067 };
68
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080069 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +010070 #clock-cells = <0>;
71 compatible = "fixed-clock";
72 clock-frequency = <32768>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080073 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +010074 };
75
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080076 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +010077 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010078 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +010079 reg = <0x01c20000 0x4>;
80 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080081 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +010082 };
83
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080084 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -030085 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010086 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -030087 reg = <0x01c20018 0x4>;
88 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080089 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -030090 };
91
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +080092 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -030093 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010094 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -030095 reg = <0x01c20020 0x4>;
96 clocks = <&osc24M>;
97 clock-output-names = "pll5_ddr", "pll5_other";
98 };
99
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800100 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300101 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100102 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300103 reg = <0x01c20028 0x4>;
104 clocks = <&osc24M>;
105 clock-output-names = "pll6_sata", "pll6_other", "pll6";
106 };
107
Maxime Ripard69144e32013-03-13 20:07:37 +0100108 /* dummy is 200M */
109 cpu: cpu@01c20054 {
110 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100111 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100112 reg = <0x01c20054 0x4>;
113 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800114 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100115 };
116
117 axi: axi@01c20054 {
118 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100119 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100120 reg = <0x01c20054 0x4>;
121 clocks = <&cpu>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800122 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100123 };
124
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800125 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100126 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100127 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100128 reg = <0x01c2005c 0x4>;
129 clocks = <&axi>;
130 clock-output-names = "axi_dram";
131 };
132
133 ahb: ahb@01c20054 {
134 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100135 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100136 reg = <0x01c20054 0x4>;
137 clocks = <&axi>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800138 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100139 };
140
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800141 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100142 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100143 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100144 reg = <0x01c20060 0x8>;
145 clocks = <&ahb>;
146 clock-output-names = "ahb_usb0", "ahb_ehci0",
147 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
148 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
149 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
150 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
151 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
152 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
153 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
154 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
155 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
156 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
157 };
158
159 apb0: apb0@01c20054 {
160 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100161 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100162 reg = <0x01c20054 0x4>;
163 clocks = <&ahb>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800164 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100165 };
166
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800167 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100168 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100169 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100170 reg = <0x01c20068 0x4>;
171 clocks = <&apb0>;
172 clock-output-names = "apb0_codec", "apb0_spdif",
173 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
174 "apb0_ir1", "apb0_keypad";
175 };
176
Maxime Ripard69144e32013-03-13 20:07:37 +0100177 apb1_mux: apb1_mux@01c20058 {
178 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100179 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100180 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300181 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800182 clock-output-names = "apb1_mux";
Maxime Ripard69144e32013-03-13 20:07:37 +0100183 };
184
185 apb1: apb1@01c20058 {
186 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100187 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100188 reg = <0x01c20058 0x4>;
189 clocks = <&apb1_mux>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800190 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100191 };
192
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800193 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100194 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100195 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100196 reg = <0x01c2006c 0x4>;
197 clocks = <&apb1>;
198 clock-output-names = "apb1_i2c0", "apb1_i2c1",
199 "apb1_i2c2", "apb1_can", "apb1_scr",
200 "apb1_ps20", "apb1_ps21", "apb1_uart0",
201 "apb1_uart1", "apb1_uart2", "apb1_uart3",
202 "apb1_uart4", "apb1_uart5", "apb1_uart6",
203 "apb1_uart7";
204 };
Emilio López4b756ff2013-12-23 00:32:41 -0300205
206 nand_clk: clk@01c20080 {
207 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100208 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300209 reg = <0x01c20080 0x4>;
210 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
211 clock-output-names = "nand";
212 };
213
214 ms_clk: clk@01c20084 {
215 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100216 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300217 reg = <0x01c20084 0x4>;
218 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
219 clock-output-names = "ms";
220 };
221
222 mmc0_clk: clk@01c20088 {
223 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100224 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300225 reg = <0x01c20088 0x4>;
226 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
227 clock-output-names = "mmc0";
228 };
229
230 mmc1_clk: clk@01c2008c {
231 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100232 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300233 reg = <0x01c2008c 0x4>;
234 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
235 clock-output-names = "mmc1";
236 };
237
238 mmc2_clk: clk@01c20090 {
239 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100240 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300241 reg = <0x01c20090 0x4>;
242 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
243 clock-output-names = "mmc2";
244 };
245
246 mmc3_clk: clk@01c20094 {
247 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100248 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300249 reg = <0x01c20094 0x4>;
250 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
251 clock-output-names = "mmc3";
252 };
253
254 ts_clk: clk@01c20098 {
255 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100256 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300257 reg = <0x01c20098 0x4>;
258 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
259 clock-output-names = "ts";
260 };
261
262 ss_clk: clk@01c2009c {
263 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100264 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300265 reg = <0x01c2009c 0x4>;
266 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
267 clock-output-names = "ss";
268 };
269
270 spi0_clk: clk@01c200a0 {
271 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100272 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300273 reg = <0x01c200a0 0x4>;
274 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
275 clock-output-names = "spi0";
276 };
277
278 spi1_clk: clk@01c200a4 {
279 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100280 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300281 reg = <0x01c200a4 0x4>;
282 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
283 clock-output-names = "spi1";
284 };
285
286 spi2_clk: clk@01c200a8 {
287 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100288 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300289 reg = <0x01c200a8 0x4>;
290 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
291 clock-output-names = "spi2";
292 };
293
294 pata_clk: clk@01c200ac {
295 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100296 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300297 reg = <0x01c200ac 0x4>;
298 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
299 clock-output-names = "pata";
300 };
301
302 ir0_clk: clk@01c200b0 {
303 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100304 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300305 reg = <0x01c200b0 0x4>;
306 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
307 clock-output-names = "ir0";
308 };
309
310 ir1_clk: clk@01c200b4 {
311 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100312 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300313 reg = <0x01c200b4 0x4>;
314 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
315 clock-output-names = "ir1";
316 };
317
Roman Byshko0076c8b2014-02-07 16:21:51 +0100318 usb_clk: clk@01c200cc {
319 #clock-cells = <1>;
320 #reset-cells = <1>;
321 compatible = "allwinner,sun4i-a10-usb-clk";
322 reg = <0x01c200cc 0x4>;
323 clocks = <&pll6 1>;
324 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
325 };
326
Emilio López4b756ff2013-12-23 00:32:41 -0300327 spi3_clk: clk@01c200d4 {
328 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100329 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300330 reg = <0x01c200d4 0x4>;
331 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
332 clock-output-names = "spi3";
333 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100334 };
335
Maxime Ripardb74aec12013-08-03 16:07:36 +0200336 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100337 compatible = "simple-bus";
338 #address-cells = <1>;
339 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100340 ranges;
341
Maxime Ripard65918e22014-02-22 22:35:55 +0100342 spi0: spi@01c05000 {
343 compatible = "allwinner,sun4i-a10-spi";
344 reg = <0x01c05000 0x1000>;
345 interrupts = <10>;
346 clocks = <&ahb_gates 20>, <&spi0_clk>;
347 clock-names = "ahb", "mod";
348 status = "disabled";
349 #address-cells = <1>;
350 #size-cells = <0>;
351 };
352
353 spi1: spi@01c06000 {
354 compatible = "allwinner,sun4i-a10-spi";
355 reg = <0x01c06000 0x1000>;
356 interrupts = <11>;
357 clocks = <&ahb_gates 21>, <&spi1_clk>;
358 clock-names = "ahb", "mod";
359 status = "disabled";
360 #address-cells = <1>;
361 #size-cells = <0>;
362 };
363
Maxime Riparde38afcb2013-05-30 03:49:23 +0000364 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100365 compatible = "allwinner,sun4i-a10-emac";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000366 reg = <0x01c0b000 0x1000>;
367 interrupts = <55>;
368 clocks = <&ahb_gates 17>;
369 status = "disabled";
370 };
371
372 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100373 compatible = "allwinner,sun4i-a10-mdio";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000374 reg = <0x01c0b080 0x14>;
375 status = "disabled";
376 #address-cells = <1>;
377 #size-cells = <0>;
378 };
379
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100380 usbphy: phy@01c13400 {
381 #phy-cells = <1>;
382 compatible = "allwinner,sun4i-a10-usb-phy";
383 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
384 reg-names = "phy_ctrl", "pmu1", "pmu2";
385 clocks = <&usb_clk 8>;
386 clock-names = "usb_phy";
387 resets = <&usb_clk 1>, <&usb_clk 2>;
388 reset-names = "usb1_reset", "usb2_reset";
389 status = "disabled";
390 };
391
392 ehci0: usb@01c14000 {
393 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
394 reg = <0x01c14000 0x100>;
395 interrupts = <39>;
396 clocks = <&ahb_gates 1>;
397 phys = <&usbphy 1>;
398 phy-names = "usb";
399 status = "disabled";
400 };
401
402 ohci0: usb@01c14400 {
403 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
404 reg = <0x01c14400 0x100>;
405 interrupts = <64>;
406 clocks = <&usb_clk 6>, <&ahb_gates 2>;
407 phys = <&usbphy 1>;
408 phy-names = "usb";
409 status = "disabled";
410 };
411
Maxime Ripard65918e22014-02-22 22:35:55 +0100412 spi2: spi@01c17000 {
413 compatible = "allwinner,sun4i-a10-spi";
414 reg = <0x01c17000 0x1000>;
415 interrupts = <12>;
416 clocks = <&ahb_gates 22>, <&spi2_clk>;
417 clock-names = "ahb", "mod";
418 status = "disabled";
419 #address-cells = <1>;
420 #size-cells = <0>;
421 };
422
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100423 ahci: sata@01c18000 {
424 compatible = "allwinner,sun4i-a10-ahci";
425 reg = <0x01c18000 0x1000>;
426 interrupts = <56>;
427 clocks = <&pll6 0>, <&ahb_gates 25>;
428 status = "disabled";
429 };
430
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100431 ehci1: usb@01c1c000 {
432 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
433 reg = <0x01c1c000 0x100>;
434 interrupts = <40>;
435 clocks = <&ahb_gates 3>;
436 phys = <&usbphy 2>;
437 phy-names = "usb";
438 status = "disabled";
439 };
440
441 ohci1: usb@01c1c400 {
442 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
443 reg = <0x01c1c400 0x100>;
444 interrupts = <65>;
445 clocks = <&usb_clk 7>, <&ahb_gates 4>;
446 phys = <&usbphy 2>;
447 phy-names = "usb";
448 status = "disabled";
449 };
450
Maxime Ripard65918e22014-02-22 22:35:55 +0100451 spi3: spi@01c1f000 {
452 compatible = "allwinner,sun4i-a10-spi";
453 reg = <0x01c1f000 0x1000>;
454 interrupts = <50>;
455 clocks = <&ahb_gates 23>, <&spi3_clk>;
456 clock-names = "ahb", "mod";
457 status = "disabled";
458 #address-cells = <1>;
459 #size-cells = <0>;
460 };
461
Maxime Ripard69144e32013-03-13 20:07:37 +0100462 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100463 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100464 reg = <0x01c20400 0x400>;
465 interrupt-controller;
466 #interrupt-cells = <1>;
467 };
468
Maxime Riparde10911e2013-01-27 19:26:05 +0100469 pio: pinctrl@01c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100470 compatible = "allwinner,sun4i-a10-pinctrl";
471 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200472 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300473 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100474 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200475 interrupt-controller;
Maxime Ripard874b4e42013-01-26 15:36:54 +0100476 #address-cells = <1>;
477 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100478 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100479
480 uart0_pins_a: uart0@0 {
481 allwinner,pins = "PB22", "PB23";
482 allwinner,function = "uart0";
483 allwinner,drive = <0>;
484 allwinner,pull = <0>;
485 };
486
487 uart0_pins_b: uart0@1 {
488 allwinner,pins = "PF2", "PF4";
489 allwinner,function = "uart0";
490 allwinner,drive = <0>;
491 allwinner,pull = <0>;
492 };
493
494 uart1_pins_a: uart1@0 {
495 allwinner,pins = "PA10", "PA11";
496 allwinner,function = "uart1";
497 allwinner,drive = <0>;
498 allwinner,pull = <0>;
499 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100500
501 i2c0_pins_a: i2c0@0 {
502 allwinner,pins = "PB0", "PB1";
503 allwinner,function = "i2c0";
504 allwinner,drive = <0>;
505 allwinner,pull = <0>;
506 };
507
508 i2c1_pins_a: i2c1@0 {
509 allwinner,pins = "PB18", "PB19";
510 allwinner,function = "i2c1";
511 allwinner,drive = <0>;
512 allwinner,pull = <0>;
513 };
514
515 i2c2_pins_a: i2c2@0 {
516 allwinner,pins = "PB20", "PB21";
517 allwinner,function = "i2c2";
518 allwinner,drive = <0>;
519 allwinner,pull = <0>;
520 };
Linus Torvalds496322b2013-07-09 18:24:39 -0700521
Maxime Ripardb21da662013-05-30 03:49:22 +0000522 emac_pins_a: emac0@0 {
523 allwinner,pins = "PA0", "PA1", "PA2",
524 "PA3", "PA4", "PA5", "PA6",
525 "PA7", "PA8", "PA9", "PA10",
526 "PA11", "PA12", "PA13", "PA14",
527 "PA15", "PA16";
528 allwinner,function = "emac";
529 allwinner,drive = <0>;
530 allwinner,pull = <0>;
531 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100532 };
Maxime Ripard89b3c992013-02-20 17:25:03 -0800533
Maxime Ripard69144e32013-03-13 20:07:37 +0100534 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100535 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +0100536 reg = <0x01c20c00 0x90>;
537 interrupts = <22>;
538 clocks = <&osc24M>;
539 };
540
541 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100542 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +0100543 reg = <0x01c20c90 0x10>;
544 };
545
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200546 rtc: rtc@01c20d00 {
Maxime Ripard5fc4bc82014-04-03 14:50:03 -0700547 compatible = "allwinner,sun4i-a10-rtc";
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200548 reg = <0x01c20d00 0x20>;
549 interrupts = <24>;
550 };
551
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200552 sid: eeprom@01c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100553 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200554 reg = <0x01c23800 0x10>;
555 };
556
Hans de Goede57c88392013-12-31 17:20:50 +0100557 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100558 compatible = "allwinner,sun4i-a10-ts";
Hans de Goede57c88392013-12-31 17:20:50 +0100559 reg = <0x01c25000 0x100>;
560 interrupts = <29>;
561 };
562
Maxime Ripard89b3c992013-02-20 17:25:03 -0800563 uart0: serial@01c28000 {
564 compatible = "snps,dw-apb-uart";
565 reg = <0x01c28000 0x400>;
566 interrupts = <1>;
567 reg-shift = <2>;
568 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300569 clocks = <&apb1_gates 16>;
Maxime Ripard89b3c992013-02-20 17:25:03 -0800570 status = "disabled";
571 };
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800572
Maxime Ripard69144e32013-03-13 20:07:37 +0100573 uart1: serial@01c28400 {
574 compatible = "snps,dw-apb-uart";
575 reg = <0x01c28400 0x400>;
576 interrupts = <2>;
577 reg-shift = <2>;
578 reg-io-width = <4>;
579 clocks = <&apb1_gates 17>;
580 status = "disabled";
581 };
582
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800583 uart2: serial@01c28800 {
584 compatible = "snps,dw-apb-uart";
585 reg = <0x01c28800 0x400>;
586 interrupts = <3>;
587 reg-shift = <2>;
588 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300589 clocks = <&apb1_gates 18>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800590 status = "disabled";
591 };
592
Maxime Ripard69144e32013-03-13 20:07:37 +0100593 uart3: serial@01c28c00 {
594 compatible = "snps,dw-apb-uart";
595 reg = <0x01c28c00 0x400>;
596 interrupts = <4>;
597 reg-shift = <2>;
598 reg-io-width = <4>;
599 clocks = <&apb1_gates 19>;
600 status = "disabled";
601 };
602
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800603 uart4: serial@01c29000 {
604 compatible = "snps,dw-apb-uart";
605 reg = <0x01c29000 0x400>;
606 interrupts = <17>;
607 reg-shift = <2>;
608 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300609 clocks = <&apb1_gates 20>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800610 status = "disabled";
611 };
612
613 uart5: serial@01c29400 {
614 compatible = "snps,dw-apb-uart";
615 reg = <0x01c29400 0x400>;
616 interrupts = <18>;
617 reg-shift = <2>;
618 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300619 clocks = <&apb1_gates 21>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800620 status = "disabled";
621 };
622
623 uart6: serial@01c29800 {
624 compatible = "snps,dw-apb-uart";
625 reg = <0x01c29800 0x400>;
626 interrupts = <19>;
627 reg-shift = <2>;
628 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300629 clocks = <&apb1_gates 22>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800630 status = "disabled";
631 };
632
633 uart7: serial@01c29c00 {
634 compatible = "snps,dw-apb-uart";
635 reg = <0x01c29c00 0x400>;
636 interrupts = <20>;
637 reg-shift = <2>;
638 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -0300639 clocks = <&apb1_gates 23>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800640 status = "disabled";
641 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100642
643 i2c0: i2c@01c2ac00 {
644 compatible = "allwinner,sun4i-i2c";
645 reg = <0x01c2ac00 0x400>;
646 interrupts = <7>;
647 clocks = <&apb1_gates 0>;
648 clock-frequency = <100000>;
649 status = "disabled";
650 };
651
652 i2c1: i2c@01c2b000 {
653 compatible = "allwinner,sun4i-i2c";
654 reg = <0x01c2b000 0x400>;
655 interrupts = <8>;
656 clocks = <&apb1_gates 1>;
657 clock-frequency = <100000>;
658 status = "disabled";
659 };
660
661 i2c2: i2c@01c2b400 {
662 compatible = "allwinner,sun4i-i2c";
663 reg = <0x01c2b400 0x400>;
664 interrupts = <9>;
665 clocks = <&apb1_gates 2>;
666 clock-frequency = <100000>;
667 status = "disabled";
668 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100669 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100670};