blob: 32efc105df834de3c3143938bf0cfdebbf5d1b55 [file] [log] [blame]
Maxime Ripard4790ecf2013-07-17 10:07:10 +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 = <&gic>;
18
Emilio Lópeze751cce2013-11-16 15:17:29 -030019 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080020 ethernet0 = &gmac;
Maxime Ripard4566b4b2014-01-02 22:05:04 +010021 serial0 = &uart0;
22 serial1 = &uart1;
23 serial2 = &uart2;
24 serial3 = &uart3;
25 serial4 = &uart4;
26 serial5 = &uart5;
27 serial6 = &uart6;
28 serial7 = &uart7;
Emilio Lópeze751cce2013-11-16 15:17:29 -030029 };
30
Maxime Ripard4790ecf2013-07-17 10:07:10 +020031 cpus {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 cpu@0 {
36 compatible = "arm,cortex-a7";
37 device_type = "cpu";
38 reg = <0>;
39 };
40
41 cpu@1 {
42 compatible = "arm,cortex-a7";
43 device_type = "cpu";
44 reg = <1>;
45 };
46 };
47
48 memory {
49 reg = <0x40000000 0x80000000>;
50 };
51
Marc Zyngier79027632014-02-18 14:04:44 +000052 timer {
53 compatible = "arm,armv7-timer";
54 interrupts = <1 13 0xf08>,
55 <1 14 0xf08>,
56 <1 11 0xf08>,
57 <1 10 0xf08>;
58 };
59
Maxime Ripard4790ecf2013-07-17 10:07:10 +020060 clocks {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 ranges;
64
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080065 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020066 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010067 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +020068 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +020069 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080070 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020071 };
72
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080073 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020074 #clock-cells = <0>;
75 compatible = "fixed-clock";
76 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080077 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020078 };
Maxime Ripardde7dc932013-07-25 21:12:52 +020079
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080080 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020081 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010082 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +020083 reg = <0x01c20000 0x4>;
84 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080085 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +020086 };
87
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080088 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020089 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010090 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -030091 reg = <0x01c20018 0x4>;
92 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080093 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -030094 };
95
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080096 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -030097 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010098 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -030099 reg = <0x01c20020 0x4>;
100 clocks = <&osc24M>;
101 clock-output-names = "pll5_ddr", "pll5_other";
102 };
103
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800104 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300105 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100106 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300107 reg = <0x01c20028 0x4>;
108 clocks = <&osc24M>;
109 clock-output-names = "pll6_sata", "pll6_other", "pll6";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200110 };
111
112 cpu: cpu@01c20054 {
113 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100114 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200115 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300116 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800117 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200118 };
119
120 axi: axi@01c20054 {
121 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100122 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200123 reg = <0x01c20054 0x4>;
124 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800125 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200126 };
127
128 ahb: ahb@01c20054 {
129 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100130 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200131 reg = <0x01c20054 0x4>;
132 clocks = <&axi>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800133 clock-output-names = "ahb";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200134 };
135
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800136 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200137 #clock-cells = <1>;
138 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
139 reg = <0x01c20060 0x8>;
140 clocks = <&ahb>;
141 clock-output-names = "ahb_usb0", "ahb_ehci0",
142 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
143 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
144 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
145 "ahb_nand", "ahb_sdram", "ahb_ace",
146 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
147 "ahb_spi2", "ahb_spi3", "ahb_sata",
148 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
149 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
150 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
151 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
152 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
153 "ahb_mali";
154 };
155
156 apb0: apb0@01c20054 {
157 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100158 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200159 reg = <0x01c20054 0x4>;
160 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800161 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200162 };
163
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800164 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200165 #clock-cells = <1>;
166 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
167 reg = <0x01c20068 0x4>;
168 clocks = <&apb0>;
169 clock-output-names = "apb0_codec", "apb0_spdif",
170 "apb0_ac97", "apb0_iis0", "apb0_iis1",
171 "apb0_pio", "apb0_ir0", "apb0_ir1",
172 "apb0_iis2", "apb0_keypad";
173 };
174
175 apb1_mux: apb1_mux@01c20058 {
176 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100177 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200178 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300179 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800180 clock-output-names = "apb1_mux";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200181 };
182
183 apb1: apb1@01c20058 {
184 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100185 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200186 reg = <0x01c20058 0x4>;
187 clocks = <&apb1_mux>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800188 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200189 };
190
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800191 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200192 #clock-cells = <1>;
193 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
194 reg = <0x01c2006c 0x4>;
195 clocks = <&apb1>;
196 clock-output-names = "apb1_i2c0", "apb1_i2c1",
197 "apb1_i2c2", "apb1_i2c3", "apb1_can",
198 "apb1_scr", "apb1_ps20", "apb1_ps21",
199 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
200 "apb1_uart2", "apb1_uart3", "apb1_uart4",
201 "apb1_uart5", "apb1_uart6", "apb1_uart7";
202 };
Emilio López1c92b952013-12-23 00:32:43 -0300203
204 nand_clk: clk@01c20080 {
205 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100206 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300207 reg = <0x01c20080 0x4>;
208 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
209 clock-output-names = "nand";
210 };
211
212 ms_clk: clk@01c20084 {
213 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100214 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300215 reg = <0x01c20084 0x4>;
216 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
217 clock-output-names = "ms";
218 };
219
220 mmc0_clk: clk@01c20088 {
221 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100222 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300223 reg = <0x01c20088 0x4>;
224 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
225 clock-output-names = "mmc0";
226 };
227
228 mmc1_clk: clk@01c2008c {
229 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100230 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300231 reg = <0x01c2008c 0x4>;
232 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
233 clock-output-names = "mmc1";
234 };
235
236 mmc2_clk: clk@01c20090 {
237 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100238 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300239 reg = <0x01c20090 0x4>;
240 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
241 clock-output-names = "mmc2";
242 };
243
244 mmc3_clk: clk@01c20094 {
245 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100246 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300247 reg = <0x01c20094 0x4>;
248 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
249 clock-output-names = "mmc3";
250 };
251
252 ts_clk: clk@01c20098 {
253 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100254 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300255 reg = <0x01c20098 0x4>;
256 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
257 clock-output-names = "ts";
258 };
259
260 ss_clk: clk@01c2009c {
261 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100262 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300263 reg = <0x01c2009c 0x4>;
264 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
265 clock-output-names = "ss";
266 };
267
268 spi0_clk: clk@01c200a0 {
269 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100270 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300271 reg = <0x01c200a0 0x4>;
272 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
273 clock-output-names = "spi0";
274 };
275
276 spi1_clk: clk@01c200a4 {
277 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100278 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300279 reg = <0x01c200a4 0x4>;
280 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
281 clock-output-names = "spi1";
282 };
283
284 spi2_clk: clk@01c200a8 {
285 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100286 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300287 reg = <0x01c200a8 0x4>;
288 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
289 clock-output-names = "spi2";
290 };
291
292 pata_clk: clk@01c200ac {
293 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100294 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300295 reg = <0x01c200ac 0x4>;
296 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
297 clock-output-names = "pata";
298 };
299
300 ir0_clk: clk@01c200b0 {
301 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100302 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300303 reg = <0x01c200b0 0x4>;
304 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305 clock-output-names = "ir0";
306 };
307
308 ir1_clk: clk@01c200b4 {
309 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100310 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300311 reg = <0x01c200b4 0x4>;
312 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
313 clock-output-names = "ir1";
314 };
315
Roman Byshko434e41b2014-02-07 16:21:53 +0100316 usb_clk: clk@01c200cc {
317 #clock-cells = <1>;
318 #reset-cells = <1>;
319 compatible = "allwinner,sun4i-a10-usb-clk";
320 reg = <0x01c200cc 0x4>;
321 clocks = <&pll6 1>;
322 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
323 };
324
Emilio López1c92b952013-12-23 00:32:43 -0300325 spi3_clk: clk@01c200d4 {
326 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100327 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300328 reg = <0x01c200d4 0x4>;
329 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
330 clock-output-names = "spi3";
331 };
Emilio López118c07a2013-12-23 00:32:44 -0300332
333 mbus_clk: clk@01c2015c {
334 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100335 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300336 reg = <0x01c2015c 0x4>;
337 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
338 clock-output-names = "mbus";
339 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800340
341 /*
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800342 * The following two are dummy clocks, placeholders used in the gmac_tx
343 * clock. The gmac driver will choose one parent depending on the PHY
344 * interface mode, using clk_set_rate auto-reparenting.
345 * The actual TX clock rate is not controlled by the gmac_tx clock.
346 */
347 mii_phy_tx_clk: clk@2 {
348 #clock-cells = <0>;
349 compatible = "fixed-clock";
350 clock-frequency = <25000000>;
351 clock-output-names = "mii_phy_tx";
352 };
353
354 gmac_int_tx_clk: clk@3 {
355 #clock-cells = <0>;
356 compatible = "fixed-clock";
357 clock-frequency = <125000000>;
358 clock-output-names = "gmac_int_tx";
359 };
360
361 gmac_tx_clk: clk@01c20164 {
362 #clock-cells = <0>;
363 compatible = "allwinner,sun7i-a20-gmac-clk";
364 reg = <0x01c20164 0x4>;
365 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
366 clock-output-names = "gmac_tx";
367 };
368
369 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800370 * Dummy clock used by output clocks
371 */
372 osc24M_32k: clk@1 {
373 #clock-cells = <0>;
374 compatible = "fixed-factor-clock";
375 clock-div = <750>;
376 clock-mult = <1>;
377 clocks = <&osc24M>;
378 clock-output-names = "osc24M_32k";
379 };
380
381 clk_out_a: clk@01c201f0 {
382 #clock-cells = <0>;
383 compatible = "allwinner,sun7i-a20-out-clk";
384 reg = <0x01c201f0 0x4>;
385 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
386 clock-output-names = "clk_out_a";
387 };
388
389 clk_out_b: clk@01c201f4 {
390 #clock-cells = <0>;
391 compatible = "allwinner,sun7i-a20-out-clk";
392 reg = <0x01c201f4 0x4>;
393 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
394 clock-output-names = "clk_out_b";
395 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200396 };
397
398 soc@01c00000 {
399 compatible = "simple-bus";
400 #address-cells = <1>;
401 #size-cells = <1>;
402 ranges;
403
Carlo Caione8ff973a2014-03-19 20:21:18 +0100404 nmi_intc: interrupt-controller@01c00030 {
405 compatible = "allwinner,sun7i-a20-sc-nmi";
406 interrupt-controller;
407 #interrupt-cells = <2>;
408 reg = <0x01c00030 0x0c>;
409 interrupts = <0 0 4>;
410 };
411
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100412 spi0: spi@01c05000 {
413 compatible = "allwinner,sun4i-a10-spi";
414 reg = <0x01c05000 0x1000>;
415 interrupts = <0 10 4>;
416 clocks = <&ahb_gates 20>, <&spi0_clk>;
417 clock-names = "ahb", "mod";
418 status = "disabled";
419 #address-cells = <1>;
420 #size-cells = <0>;
421 };
422
423 spi1: spi@01c06000 {
424 compatible = "allwinner,sun4i-a10-spi";
425 reg = <0x01c06000 0x1000>;
426 interrupts = <0 11 4>;
427 clocks = <&ahb_gates 21>, <&spi1_clk>;
428 clock-names = "ahb", "mod";
429 status = "disabled";
430 #address-cells = <1>;
431 #size-cells = <0>;
432 };
433
Maxime Ripard2e804d02013-09-11 11:10:06 +0200434 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100435 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200436 reg = <0x01c0b000 0x1000>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100437 interrupts = <0 55 4>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200438 clocks = <&ahb_gates 17>;
439 status = "disabled";
440 };
441
442 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100443 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200444 reg = <0x01c0b080 0x14>;
445 status = "disabled";
446 #address-cells = <1>;
447 #size-cells = <0>;
448 };
449
Roman Byshko9debd0a2014-03-01 20:26:25 +0100450 usbphy: phy@01c13400 {
451 #phy-cells = <1>;
452 compatible = "allwinner,sun7i-a20-usb-phy";
453 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
454 reg-names = "phy_ctrl", "pmu1", "pmu2";
455 clocks = <&usb_clk 8>;
456 clock-names = "usb_phy";
457 resets = <&usb_clk 1>, <&usb_clk 2>;
458 reset-names = "usb1_reset", "usb2_reset";
459 status = "disabled";
460 };
461
462 ehci0: usb@01c14000 {
463 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
464 reg = <0x01c14000 0x100>;
465 interrupts = <0 39 4>;
466 clocks = <&ahb_gates 1>;
467 phys = <&usbphy 1>;
468 phy-names = "usb";
469 status = "disabled";
470 };
471
472 ohci0: usb@01c14400 {
473 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
474 reg = <0x01c14400 0x100>;
475 interrupts = <0 64 4>;
476 clocks = <&usb_clk 6>, <&ahb_gates 2>;
477 phys = <&usbphy 1>;
478 phy-names = "usb";
479 status = "disabled";
480 };
481
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100482 spi2: spi@01c17000 {
483 compatible = "allwinner,sun4i-a10-spi";
484 reg = <0x01c17000 0x1000>;
485 interrupts = <0 12 4>;
486 clocks = <&ahb_gates 22>, <&spi2_clk>;
487 clock-names = "ahb", "mod";
488 status = "disabled";
489 #address-cells = <1>;
490 #size-cells = <0>;
491 };
492
Hans de Goede902febf2014-03-01 20:26:22 +0100493 ahci: sata@01c18000 {
494 compatible = "allwinner,sun4i-a10-ahci";
495 reg = <0x01c18000 0x1000>;
496 interrupts = <0 56 4>;
497 clocks = <&pll6 0>, <&ahb_gates 25>;
498 status = "disabled";
499 };
500
Roman Byshko9debd0a2014-03-01 20:26:25 +0100501 ehci1: usb@01c1c000 {
502 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
503 reg = <0x01c1c000 0x100>;
504 interrupts = <0 40 4>;
505 clocks = <&ahb_gates 3>;
506 phys = <&usbphy 2>;
507 phy-names = "usb";
508 status = "disabled";
509 };
510
511 ohci1: usb@01c1c400 {
512 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
513 reg = <0x01c1c400 0x100>;
514 interrupts = <0 65 4>;
515 clocks = <&usb_clk 7>, <&ahb_gates 4>;
516 phys = <&usbphy 2>;
517 phy-names = "usb";
518 status = "disabled";
519 };
520
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100521 spi3: spi@01c1f000 {
522 compatible = "allwinner,sun4i-a10-spi";
523 reg = <0x01c1f000 0x1000>;
524 interrupts = <0 50 4>;
525 clocks = <&ahb_gates 23>, <&spi3_clk>;
526 clock-names = "ahb", "mod";
527 status = "disabled";
528 #address-cells = <1>;
529 #size-cells = <0>;
530 };
531
Maxime Ripard17eac032013-07-24 23:46:11 +0200532 pio: pinctrl@01c20800 {
533 compatible = "allwinner,sun7i-a20-pinctrl";
534 reg = <0x01c20800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100535 interrupts = <0 28 4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200536 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200537 gpio-controller;
538 interrupt-controller;
539 #address-cells = <1>;
540 #size-cells = <0>;
541 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200542
543 uart0_pins_a: uart0@0 {
544 allwinner,pins = "PB22", "PB23";
545 allwinner,function = "uart0";
546 allwinner,drive = <0>;
547 allwinner,pull = <0>;
548 };
549
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800550 uart2_pins_a: uart2@0 {
551 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
552 allwinner,function = "uart2";
553 allwinner,drive = <0>;
554 allwinner,pull = <0>;
555 };
556
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200557 uart6_pins_a: uart6@0 {
558 allwinner,pins = "PI12", "PI13";
559 allwinner,function = "uart6";
560 allwinner,drive = <0>;
561 allwinner,pull = <0>;
562 };
563
564 uart7_pins_a: uart7@0 {
565 allwinner,pins = "PI20", "PI21";
566 allwinner,function = "uart7";
567 allwinner,drive = <0>;
568 allwinner,pull = <0>;
569 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200570
Maxime Riparde5496a32013-08-31 23:08:49 +0200571 i2c0_pins_a: i2c0@0 {
572 allwinner,pins = "PB0", "PB1";
573 allwinner,function = "i2c0";
574 allwinner,drive = <0>;
575 allwinner,pull = <0>;
576 };
577
578 i2c1_pins_a: i2c1@0 {
579 allwinner,pins = "PB18", "PB19";
580 allwinner,function = "i2c1";
581 allwinner,drive = <0>;
582 allwinner,pull = <0>;
583 };
584
585 i2c2_pins_a: i2c2@0 {
586 allwinner,pins = "PB20", "PB21";
587 allwinner,function = "i2c2";
588 allwinner,drive = <0>;
589 allwinner,pull = <0>;
590 };
591
Maxime Ripard756084c2013-09-11 11:10:07 +0200592 emac_pins_a: emac0@0 {
593 allwinner,pins = "PA0", "PA1", "PA2",
594 "PA3", "PA4", "PA5", "PA6",
595 "PA7", "PA8", "PA9", "PA10",
596 "PA11", "PA12", "PA13", "PA14",
597 "PA15", "PA16";
598 allwinner,function = "emac";
599 allwinner,drive = <0>;
600 allwinner,pull = <0>;
601 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800602
603 clk_out_a_pins_a: clk_out_a@0 {
604 allwinner,pins = "PI12";
605 allwinner,function = "clk_out_a";
606 allwinner,drive = <0>;
607 allwinner,pull = <0>;
608 };
609
610 clk_out_b_pins_a: clk_out_b@0 {
611 allwinner,pins = "PI13";
612 allwinner,function = "clk_out_b";
613 allwinner,drive = <0>;
614 allwinner,pull = <0>;
615 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800616
617 gmac_pins_mii_a: gmac_mii@0 {
618 allwinner,pins = "PA0", "PA1", "PA2",
619 "PA3", "PA4", "PA5", "PA6",
620 "PA7", "PA8", "PA9", "PA10",
621 "PA11", "PA12", "PA13", "PA14",
622 "PA15", "PA16";
623 allwinner,function = "gmac";
624 allwinner,drive = <0>;
625 allwinner,pull = <0>;
626 };
627
628 gmac_pins_rgmii_a: gmac_rgmii@0 {
629 allwinner,pins = "PA0", "PA1", "PA2",
630 "PA3", "PA4", "PA5", "PA6",
631 "PA7", "PA8", "PA10",
632 "PA11", "PA12", "PA13",
633 "PA15", "PA16";
634 allwinner,function = "gmac";
635 /*
636 * data lines in RGMII mode use DDR mode
637 * and need a higher signal drive strength
638 */
639 allwinner,drive = <3>;
640 allwinner,pull = <0>;
641 };
Maxime Ripard412f2c62014-02-22 22:35:58 +0100642
643 spi1_pins_a: spi1@0 {
644 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
645 allwinner,function = "spi1";
646 allwinner,drive = <0>;
647 allwinner,pull = <0>;
648 };
649
650 spi2_pins_a: spi2@0 {
651 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
652 allwinner,function = "spi2";
653 allwinner,drive = <0>;
654 allwinner,pull = <0>;
655 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200656 };
657
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200658 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100659 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200660 reg = <0x01c20c00 0x90>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100661 interrupts = <0 22 4>,
662 <0 23 4>,
663 <0 24 4>,
664 <0 25 4>,
665 <0 67 4>,
666 <0 68 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200667 clocks = <&osc24M>;
668 };
669
670 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100671 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200672 reg = <0x01c20c90 0x10>;
673 };
674
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200675 rtc: rtc@01c20d00 {
676 compatible = "allwinner,sun7i-a20-rtc";
677 reg = <0x01c20d00 0x20>;
Maxime Ripard2f418982014-02-01 16:46:16 +0100678 interrupts = <0 24 4>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200679 };
680
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200681 sid: eeprom@01c23800 {
682 compatible = "allwinner,sun7i-a20-sid";
683 reg = <0x01c23800 0x200>;
684 };
685
Hans de Goede00f7ed82013-12-31 17:20:52 +0100686 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100687 compatible = "allwinner,sun4i-a10-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +0100688 reg = <0x01c25000 0x100>;
689 interrupts = <0 29 4>;
690 };
691
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200692 uart0: serial@01c28000 {
693 compatible = "snps,dw-apb-uart";
694 reg = <0x01c28000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100695 interrupts = <0 1 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200696 reg-shift = <2>;
697 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200698 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200699 status = "disabled";
700 };
701
702 uart1: serial@01c28400 {
703 compatible = "snps,dw-apb-uart";
704 reg = <0x01c28400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100705 interrupts = <0 2 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200706 reg-shift = <2>;
707 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200708 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200709 status = "disabled";
710 };
711
712 uart2: serial@01c28800 {
713 compatible = "snps,dw-apb-uart";
714 reg = <0x01c28800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100715 interrupts = <0 3 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200716 reg-shift = <2>;
717 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200718 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200719 status = "disabled";
720 };
721
722 uart3: serial@01c28c00 {
723 compatible = "snps,dw-apb-uart";
724 reg = <0x01c28c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100725 interrupts = <0 4 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200726 reg-shift = <2>;
727 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200728 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200729 status = "disabled";
730 };
731
732 uart4: serial@01c29000 {
733 compatible = "snps,dw-apb-uart";
734 reg = <0x01c29000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100735 interrupts = <0 17 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200736 reg-shift = <2>;
737 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200738 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200739 status = "disabled";
740 };
741
742 uart5: serial@01c29400 {
743 compatible = "snps,dw-apb-uart";
744 reg = <0x01c29400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100745 interrupts = <0 18 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200746 reg-shift = <2>;
747 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200748 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200749 status = "disabled";
750 };
751
752 uart6: serial@01c29800 {
753 compatible = "snps,dw-apb-uart";
754 reg = <0x01c29800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100755 interrupts = <0 19 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200756 reg-shift = <2>;
757 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200758 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200759 status = "disabled";
760 };
761
762 uart7: serial@01c29c00 {
763 compatible = "snps,dw-apb-uart";
764 reg = <0x01c29c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100765 interrupts = <0 20 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200766 reg-shift = <2>;
767 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200768 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200769 status = "disabled";
770 };
771
Maxime Ripard428abbb2013-08-31 23:07:24 +0200772 i2c0: i2c@01c2ac00 {
773 compatible = "allwinner,sun4i-i2c";
774 reg = <0x01c2ac00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100775 interrupts = <0 7 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200776 clocks = <&apb1_gates 0>;
777 clock-frequency = <100000>;
778 status = "disabled";
779 };
780
781 i2c1: i2c@01c2b000 {
782 compatible = "allwinner,sun4i-i2c";
783 reg = <0x01c2b000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100784 interrupts = <0 8 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200785 clocks = <&apb1_gates 1>;
786 clock-frequency = <100000>;
787 status = "disabled";
788 };
789
790 i2c2: i2c@01c2b400 {
791 compatible = "allwinner,sun4i-i2c";
792 reg = <0x01c2b400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100793 interrupts = <0 9 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200794 clocks = <&apb1_gates 2>;
795 clock-frequency = <100000>;
796 status = "disabled";
797 };
798
799 i2c3: i2c@01c2b800 {
800 compatible = "allwinner,sun4i-i2c";
801 reg = <0x01c2b800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100802 interrupts = <0 88 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200803 clocks = <&apb1_gates 3>;
804 clock-frequency = <100000>;
805 status = "disabled";
806 };
807
808 i2c4: i2c@01c2bc00 {
809 compatible = "allwinner,sun4i-i2c";
810 reg = <0x01c2bc00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100811 interrupts = <0 89 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200812 clocks = <&apb1_gates 15>;
813 clock-frequency = <100000>;
814 status = "disabled";
815 };
816
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +0800817 gmac: ethernet@01c50000 {
818 compatible = "allwinner,sun7i-a20-gmac";
819 reg = <0x01c50000 0x10000>;
820 interrupts = <0 85 4>;
821 interrupt-names = "macirq";
822 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
823 clock-names = "stmmaceth", "allwinner_gmac_tx";
824 snps,pbl = <2>;
825 snps,fixed-burst;
826 snps,force_sf_dma_mode;
827 status = "disabled";
828 #address-cells = <1>;
829 #size-cells = <0>;
830 };
831
Maxime Ripard31f8ad32013-11-07 12:01:48 +0100832 hstimer@01c60000 {
833 compatible = "allwinner,sun7i-a20-hstimer";
834 reg = <0x01c60000 0x1000>;
Maxime Ripard2f418982014-02-01 16:46:16 +0100835 interrupts = <0 81 4>,
836 <0 82 4>,
837 <0 83 4>,
838 <0 84 4>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +0100839 clocks = <&ahb_gates 28>;
840 };
841
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200842 gic: interrupt-controller@01c81000 {
843 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
844 reg = <0x01c81000 0x1000>,
845 <0x01c82000 0x1000>,
846 <0x01c84000 0x2000>,
847 <0x01c86000 0x2000>;
848 interrupt-controller;
849 #interrupt-cells = <3>;
850 interrupts = <1 9 0xf04>;
851 };
852 };
853};