blob: 3ac8926bde27c332edb2db472c1bc28ca13efcaf [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 Riparde29ea4d2014-04-17 21:54:41 +020060 pmu {
61 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
62 interrupts = <0 120 4>,
63 <0 121 4>;
64 };
65
Maxime Ripard4790ecf2013-07-17 10:07:10 +020066 clocks {
67 #address-cells = <1>;
68 #size-cells = <1>;
69 ranges;
70
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080071 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020072 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010073 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +020074 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +020075 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080076 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020077 };
78
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080079 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020080 #clock-cells = <0>;
81 compatible = "fixed-clock";
82 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +080083 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +020084 };
Maxime Ripardde7dc932013-07-25 21:12:52 +020085
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080086 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020087 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010088 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +020089 reg = <0x01c20000 0x4>;
90 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080091 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +020092 };
93
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080094 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +020095 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +010096 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -030097 reg = <0x01c20018 0x4>;
98 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +080099 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300100 };
101
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800102 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300103 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100104 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300105 reg = <0x01c20020 0x4>;
106 clocks = <&osc24M>;
107 clock-output-names = "pll5_ddr", "pll5_other";
108 };
109
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800110 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300111 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100112 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300113 reg = <0x01c20028 0x4>;
114 clocks = <&osc24M>;
115 clock-output-names = "pll6_sata", "pll6_other", "pll6";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200116 };
117
118 cpu: cpu@01c20054 {
119 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100120 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200121 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300122 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800123 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200124 };
125
126 axi: axi@01c20054 {
127 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100128 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200129 reg = <0x01c20054 0x4>;
130 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800131 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200132 };
133
134 ahb: ahb@01c20054 {
135 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100136 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200137 reg = <0x01c20054 0x4>;
138 clocks = <&axi>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800139 clock-output-names = "ahb";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200140 };
141
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800142 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200143 #clock-cells = <1>;
144 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
145 reg = <0x01c20060 0x8>;
146 clocks = <&ahb>;
147 clock-output-names = "ahb_usb0", "ahb_ehci0",
148 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
149 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
150 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
151 "ahb_nand", "ahb_sdram", "ahb_ace",
152 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
153 "ahb_spi2", "ahb_spi3", "ahb_sata",
154 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
155 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
156 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
157 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
158 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
159 "ahb_mali";
160 };
161
162 apb0: apb0@01c20054 {
163 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100164 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200165 reg = <0x01c20054 0x4>;
166 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800167 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200168 };
169
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800170 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200171 #clock-cells = <1>;
172 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
173 reg = <0x01c20068 0x4>;
174 clocks = <&apb0>;
175 clock-output-names = "apb0_codec", "apb0_spdif",
176 "apb0_ac97", "apb0_iis0", "apb0_iis1",
177 "apb0_pio", "apb0_ir0", "apb0_ir1",
178 "apb0_iis2", "apb0_keypad";
179 };
180
181 apb1_mux: apb1_mux@01c20058 {
182 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100183 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200184 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300185 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800186 clock-output-names = "apb1_mux";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200187 };
188
189 apb1: apb1@01c20058 {
190 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100191 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200192 reg = <0x01c20058 0x4>;
193 clocks = <&apb1_mux>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800194 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200195 };
196
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800197 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200198 #clock-cells = <1>;
199 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
200 reg = <0x01c2006c 0x4>;
201 clocks = <&apb1>;
202 clock-output-names = "apb1_i2c0", "apb1_i2c1",
203 "apb1_i2c2", "apb1_i2c3", "apb1_can",
204 "apb1_scr", "apb1_ps20", "apb1_ps21",
205 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
206 "apb1_uart2", "apb1_uart3", "apb1_uart4",
207 "apb1_uart5", "apb1_uart6", "apb1_uart7";
208 };
Emilio López1c92b952013-12-23 00:32:43 -0300209
210 nand_clk: clk@01c20080 {
211 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100212 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300213 reg = <0x01c20080 0x4>;
214 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
215 clock-output-names = "nand";
216 };
217
218 ms_clk: clk@01c20084 {
219 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100220 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300221 reg = <0x01c20084 0x4>;
222 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
223 clock-output-names = "ms";
224 };
225
226 mmc0_clk: clk@01c20088 {
227 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100228 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300229 reg = <0x01c20088 0x4>;
230 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
231 clock-output-names = "mmc0";
232 };
233
234 mmc1_clk: clk@01c2008c {
235 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100236 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300237 reg = <0x01c2008c 0x4>;
238 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
239 clock-output-names = "mmc1";
240 };
241
242 mmc2_clk: clk@01c20090 {
243 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100244 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300245 reg = <0x01c20090 0x4>;
246 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
247 clock-output-names = "mmc2";
248 };
249
250 mmc3_clk: clk@01c20094 {
251 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100252 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300253 reg = <0x01c20094 0x4>;
254 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
255 clock-output-names = "mmc3";
256 };
257
258 ts_clk: clk@01c20098 {
259 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100260 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300261 reg = <0x01c20098 0x4>;
262 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
263 clock-output-names = "ts";
264 };
265
266 ss_clk: clk@01c2009c {
267 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100268 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300269 reg = <0x01c2009c 0x4>;
270 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
271 clock-output-names = "ss";
272 };
273
274 spi0_clk: clk@01c200a0 {
275 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100276 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300277 reg = <0x01c200a0 0x4>;
278 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
279 clock-output-names = "spi0";
280 };
281
282 spi1_clk: clk@01c200a4 {
283 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100284 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300285 reg = <0x01c200a4 0x4>;
286 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
287 clock-output-names = "spi1";
288 };
289
290 spi2_clk: clk@01c200a8 {
291 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100292 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300293 reg = <0x01c200a8 0x4>;
294 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
295 clock-output-names = "spi2";
296 };
297
298 pata_clk: clk@01c200ac {
299 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100300 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300301 reg = <0x01c200ac 0x4>;
302 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
303 clock-output-names = "pata";
304 };
305
306 ir0_clk: clk@01c200b0 {
307 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100308 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300309 reg = <0x01c200b0 0x4>;
310 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
311 clock-output-names = "ir0";
312 };
313
314 ir1_clk: clk@01c200b4 {
315 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100316 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300317 reg = <0x01c200b4 0x4>;
318 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
319 clock-output-names = "ir1";
320 };
321
Roman Byshko434e41b2014-02-07 16:21:53 +0100322 usb_clk: clk@01c200cc {
323 #clock-cells = <1>;
324 #reset-cells = <1>;
325 compatible = "allwinner,sun4i-a10-usb-clk";
326 reg = <0x01c200cc 0x4>;
327 clocks = <&pll6 1>;
328 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
329 };
330
Emilio López1c92b952013-12-23 00:32:43 -0300331 spi3_clk: clk@01c200d4 {
332 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100333 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300334 reg = <0x01c200d4 0x4>;
335 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
336 clock-output-names = "spi3";
337 };
Emilio López118c07a2013-12-23 00:32:44 -0300338
339 mbus_clk: clk@01c2015c {
340 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100341 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300342 reg = <0x01c2015c 0x4>;
343 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
344 clock-output-names = "mbus";
345 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800346
347 /*
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800348 * The following two are dummy clocks, placeholders used in the gmac_tx
349 * clock. The gmac driver will choose one parent depending on the PHY
350 * interface mode, using clk_set_rate auto-reparenting.
351 * The actual TX clock rate is not controlled by the gmac_tx clock.
352 */
353 mii_phy_tx_clk: clk@2 {
354 #clock-cells = <0>;
355 compatible = "fixed-clock";
356 clock-frequency = <25000000>;
357 clock-output-names = "mii_phy_tx";
358 };
359
360 gmac_int_tx_clk: clk@3 {
361 #clock-cells = <0>;
362 compatible = "fixed-clock";
363 clock-frequency = <125000000>;
364 clock-output-names = "gmac_int_tx";
365 };
366
367 gmac_tx_clk: clk@01c20164 {
368 #clock-cells = <0>;
369 compatible = "allwinner,sun7i-a20-gmac-clk";
370 reg = <0x01c20164 0x4>;
371 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
372 clock-output-names = "gmac_tx";
373 };
374
375 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800376 * Dummy clock used by output clocks
377 */
378 osc24M_32k: clk@1 {
379 #clock-cells = <0>;
380 compatible = "fixed-factor-clock";
381 clock-div = <750>;
382 clock-mult = <1>;
383 clocks = <&osc24M>;
384 clock-output-names = "osc24M_32k";
385 };
386
387 clk_out_a: clk@01c201f0 {
388 #clock-cells = <0>;
389 compatible = "allwinner,sun7i-a20-out-clk";
390 reg = <0x01c201f0 0x4>;
391 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
392 clock-output-names = "clk_out_a";
393 };
394
395 clk_out_b: clk@01c201f4 {
396 #clock-cells = <0>;
397 compatible = "allwinner,sun7i-a20-out-clk";
398 reg = <0x01c201f4 0x4>;
399 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
400 clock-output-names = "clk_out_b";
401 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200402 };
403
404 soc@01c00000 {
405 compatible = "simple-bus";
406 #address-cells = <1>;
407 #size-cells = <1>;
408 ranges;
409
Carlo Caione8ff973a2014-03-19 20:21:18 +0100410 nmi_intc: interrupt-controller@01c00030 {
411 compatible = "allwinner,sun7i-a20-sc-nmi";
412 interrupt-controller;
413 #interrupt-cells = <2>;
414 reg = <0x01c00030 0x0c>;
415 interrupts = <0 0 4>;
416 };
417
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100418 spi0: spi@01c05000 {
419 compatible = "allwinner,sun4i-a10-spi";
420 reg = <0x01c05000 0x1000>;
421 interrupts = <0 10 4>;
422 clocks = <&ahb_gates 20>, <&spi0_clk>;
423 clock-names = "ahb", "mod";
424 status = "disabled";
425 #address-cells = <1>;
426 #size-cells = <0>;
427 };
428
429 spi1: spi@01c06000 {
430 compatible = "allwinner,sun4i-a10-spi";
431 reg = <0x01c06000 0x1000>;
432 interrupts = <0 11 4>;
433 clocks = <&ahb_gates 21>, <&spi1_clk>;
434 clock-names = "ahb", "mod";
435 status = "disabled";
436 #address-cells = <1>;
437 #size-cells = <0>;
438 };
439
Maxime Ripard2e804d02013-09-11 11:10:06 +0200440 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100441 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200442 reg = <0x01c0b000 0x1000>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100443 interrupts = <0 55 4>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200444 clocks = <&ahb_gates 17>;
445 status = "disabled";
446 };
447
448 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100449 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200450 reg = <0x01c0b080 0x14>;
451 status = "disabled";
452 #address-cells = <1>;
453 #size-cells = <0>;
454 };
455
Roman Byshko9debd0a2014-03-01 20:26:25 +0100456 usbphy: phy@01c13400 {
457 #phy-cells = <1>;
458 compatible = "allwinner,sun7i-a20-usb-phy";
459 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
460 reg-names = "phy_ctrl", "pmu1", "pmu2";
461 clocks = <&usb_clk 8>;
462 clock-names = "usb_phy";
463 resets = <&usb_clk 1>, <&usb_clk 2>;
464 reset-names = "usb1_reset", "usb2_reset";
465 status = "disabled";
466 };
467
468 ehci0: usb@01c14000 {
469 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
470 reg = <0x01c14000 0x100>;
471 interrupts = <0 39 4>;
472 clocks = <&ahb_gates 1>;
473 phys = <&usbphy 1>;
474 phy-names = "usb";
475 status = "disabled";
476 };
477
478 ohci0: usb@01c14400 {
479 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
480 reg = <0x01c14400 0x100>;
481 interrupts = <0 64 4>;
482 clocks = <&usb_clk 6>, <&ahb_gates 2>;
483 phys = <&usbphy 1>;
484 phy-names = "usb";
485 status = "disabled";
486 };
487
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100488 spi2: spi@01c17000 {
489 compatible = "allwinner,sun4i-a10-spi";
490 reg = <0x01c17000 0x1000>;
491 interrupts = <0 12 4>;
492 clocks = <&ahb_gates 22>, <&spi2_clk>;
493 clock-names = "ahb", "mod";
494 status = "disabled";
495 #address-cells = <1>;
496 #size-cells = <0>;
497 };
498
Hans de Goede902febf2014-03-01 20:26:22 +0100499 ahci: sata@01c18000 {
500 compatible = "allwinner,sun4i-a10-ahci";
501 reg = <0x01c18000 0x1000>;
502 interrupts = <0 56 4>;
503 clocks = <&pll6 0>, <&ahb_gates 25>;
504 status = "disabled";
505 };
506
Roman Byshko9debd0a2014-03-01 20:26:25 +0100507 ehci1: usb@01c1c000 {
508 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
509 reg = <0x01c1c000 0x100>;
510 interrupts = <0 40 4>;
511 clocks = <&ahb_gates 3>;
512 phys = <&usbphy 2>;
513 phy-names = "usb";
514 status = "disabled";
515 };
516
517 ohci1: usb@01c1c400 {
518 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
519 reg = <0x01c1c400 0x100>;
520 interrupts = <0 65 4>;
521 clocks = <&usb_clk 7>, <&ahb_gates 4>;
522 phys = <&usbphy 2>;
523 phy-names = "usb";
524 status = "disabled";
525 };
526
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100527 spi3: spi@01c1f000 {
528 compatible = "allwinner,sun4i-a10-spi";
529 reg = <0x01c1f000 0x1000>;
530 interrupts = <0 50 4>;
531 clocks = <&ahb_gates 23>, <&spi3_clk>;
532 clock-names = "ahb", "mod";
533 status = "disabled";
534 #address-cells = <1>;
535 #size-cells = <0>;
536 };
537
Maxime Ripard17eac032013-07-24 23:46:11 +0200538 pio: pinctrl@01c20800 {
539 compatible = "allwinner,sun7i-a20-pinctrl";
540 reg = <0x01c20800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100541 interrupts = <0 28 4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200542 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200543 gpio-controller;
544 interrupt-controller;
545 #address-cells = <1>;
546 #size-cells = <0>;
547 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200548
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200549 pwm0_pins_a: pwm0@0 {
550 allwinner,pins = "PB2";
551 allwinner,function = "pwm";
552 allwinner,drive = <0>;
553 allwinner,pull = <0>;
554 };
555
556 pwm1_pins_a: pwm1@0 {
557 allwinner,pins = "PI3";
558 allwinner,function = "pwm";
559 allwinner,drive = <0>;
560 allwinner,pull = <0>;
561 };
562
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200563 uart0_pins_a: uart0@0 {
564 allwinner,pins = "PB22", "PB23";
565 allwinner,function = "uart0";
566 allwinner,drive = <0>;
567 allwinner,pull = <0>;
568 };
569
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800570 uart2_pins_a: uart2@0 {
571 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
572 allwinner,function = "uart2";
573 allwinner,drive = <0>;
574 allwinner,pull = <0>;
575 };
576
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200577 uart6_pins_a: uart6@0 {
578 allwinner,pins = "PI12", "PI13";
579 allwinner,function = "uart6";
580 allwinner,drive = <0>;
581 allwinner,pull = <0>;
582 };
583
584 uart7_pins_a: uart7@0 {
585 allwinner,pins = "PI20", "PI21";
586 allwinner,function = "uart7";
587 allwinner,drive = <0>;
588 allwinner,pull = <0>;
589 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200590
Maxime Riparde5496a32013-08-31 23:08:49 +0200591 i2c0_pins_a: i2c0@0 {
592 allwinner,pins = "PB0", "PB1";
593 allwinner,function = "i2c0";
594 allwinner,drive = <0>;
595 allwinner,pull = <0>;
596 };
597
598 i2c1_pins_a: i2c1@0 {
599 allwinner,pins = "PB18", "PB19";
600 allwinner,function = "i2c1";
601 allwinner,drive = <0>;
602 allwinner,pull = <0>;
603 };
604
605 i2c2_pins_a: i2c2@0 {
606 allwinner,pins = "PB20", "PB21";
607 allwinner,function = "i2c2";
608 allwinner,drive = <0>;
609 allwinner,pull = <0>;
610 };
611
Maxime Ripard756084c2013-09-11 11:10:07 +0200612 emac_pins_a: emac0@0 {
613 allwinner,pins = "PA0", "PA1", "PA2",
614 "PA3", "PA4", "PA5", "PA6",
615 "PA7", "PA8", "PA9", "PA10",
616 "PA11", "PA12", "PA13", "PA14",
617 "PA15", "PA16";
618 allwinner,function = "emac";
619 allwinner,drive = <0>;
620 allwinner,pull = <0>;
621 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800622
623 clk_out_a_pins_a: clk_out_a@0 {
624 allwinner,pins = "PI12";
625 allwinner,function = "clk_out_a";
626 allwinner,drive = <0>;
627 allwinner,pull = <0>;
628 };
629
630 clk_out_b_pins_a: clk_out_b@0 {
631 allwinner,pins = "PI13";
632 allwinner,function = "clk_out_b";
633 allwinner,drive = <0>;
634 allwinner,pull = <0>;
635 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800636
637 gmac_pins_mii_a: gmac_mii@0 {
638 allwinner,pins = "PA0", "PA1", "PA2",
639 "PA3", "PA4", "PA5", "PA6",
640 "PA7", "PA8", "PA9", "PA10",
641 "PA11", "PA12", "PA13", "PA14",
642 "PA15", "PA16";
643 allwinner,function = "gmac";
644 allwinner,drive = <0>;
645 allwinner,pull = <0>;
646 };
647
648 gmac_pins_rgmii_a: gmac_rgmii@0 {
649 allwinner,pins = "PA0", "PA1", "PA2",
650 "PA3", "PA4", "PA5", "PA6",
651 "PA7", "PA8", "PA10",
652 "PA11", "PA12", "PA13",
653 "PA15", "PA16";
654 allwinner,function = "gmac";
655 /*
656 * data lines in RGMII mode use DDR mode
657 * and need a higher signal drive strength
658 */
659 allwinner,drive = <3>;
660 allwinner,pull = <0>;
661 };
Maxime Ripard412f2c62014-02-22 22:35:58 +0100662
663 spi1_pins_a: spi1@0 {
664 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
665 allwinner,function = "spi1";
666 allwinner,drive = <0>;
667 allwinner,pull = <0>;
668 };
669
670 spi2_pins_a: spi2@0 {
671 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
672 allwinner,function = "spi2";
673 allwinner,drive = <0>;
674 allwinner,pull = <0>;
675 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200676 };
677
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200678 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100679 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200680 reg = <0x01c20c00 0x90>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100681 interrupts = <0 22 4>,
682 <0 23 4>,
683 <0 24 4>,
684 <0 25 4>,
685 <0 67 4>,
686 <0 68 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200687 clocks = <&osc24M>;
688 };
689
690 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100691 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200692 reg = <0x01c20c90 0x10>;
693 };
694
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200695 rtc: rtc@01c20d00 {
696 compatible = "allwinner,sun7i-a20-rtc";
697 reg = <0x01c20d00 0x20>;
Maxime Ripard2f418982014-02-01 16:46:16 +0100698 interrupts = <0 24 4>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200699 };
700
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200701 sid: eeprom@01c23800 {
702 compatible = "allwinner,sun7i-a20-sid";
703 reg = <0x01c23800 0x200>;
704 };
705
Hans de Goede00f7ed82013-12-31 17:20:52 +0100706 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100707 compatible = "allwinner,sun4i-a10-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +0100708 reg = <0x01c25000 0x100>;
709 interrupts = <0 29 4>;
710 };
711
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200712 uart0: serial@01c28000 {
713 compatible = "snps,dw-apb-uart";
714 reg = <0x01c28000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100715 interrupts = <0 1 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 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200719 status = "disabled";
720 };
721
722 uart1: serial@01c28400 {
723 compatible = "snps,dw-apb-uart";
724 reg = <0x01c28400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100725 interrupts = <0 2 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 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200729 status = "disabled";
730 };
731
732 uart2: serial@01c28800 {
733 compatible = "snps,dw-apb-uart";
734 reg = <0x01c28800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100735 interrupts = <0 3 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 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200739 status = "disabled";
740 };
741
742 uart3: serial@01c28c00 {
743 compatible = "snps,dw-apb-uart";
744 reg = <0x01c28c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100745 interrupts = <0 4 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 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200749 status = "disabled";
750 };
751
752 uart4: serial@01c29000 {
753 compatible = "snps,dw-apb-uart";
754 reg = <0x01c29000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100755 interrupts = <0 17 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 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200759 status = "disabled";
760 };
761
762 uart5: serial@01c29400 {
763 compatible = "snps,dw-apb-uart";
764 reg = <0x01c29400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100765 interrupts = <0 18 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 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200769 status = "disabled";
770 };
771
772 uart6: serial@01c29800 {
773 compatible = "snps,dw-apb-uart";
774 reg = <0x01c29800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100775 interrupts = <0 19 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200776 reg-shift = <2>;
777 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200778 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200779 status = "disabled";
780 };
781
782 uart7: serial@01c29c00 {
783 compatible = "snps,dw-apb-uart";
784 reg = <0x01c29c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100785 interrupts = <0 20 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200786 reg-shift = <2>;
787 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200788 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200789 status = "disabled";
790 };
791
Maxime Ripard428abbb2013-08-31 23:07:24 +0200792 i2c0: i2c@01c2ac00 {
793 compatible = "allwinner,sun4i-i2c";
794 reg = <0x01c2ac00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100795 interrupts = <0 7 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200796 clocks = <&apb1_gates 0>;
797 clock-frequency = <100000>;
798 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +0200799 #address-cells = <1>;
800 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200801 };
802
803 i2c1: i2c@01c2b000 {
804 compatible = "allwinner,sun4i-i2c";
805 reg = <0x01c2b000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100806 interrupts = <0 8 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200807 clocks = <&apb1_gates 1>;
808 clock-frequency = <100000>;
809 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +0200810 #address-cells = <1>;
811 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200812 };
813
814 i2c2: i2c@01c2b400 {
815 compatible = "allwinner,sun4i-i2c";
816 reg = <0x01c2b400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100817 interrupts = <0 9 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200818 clocks = <&apb1_gates 2>;
819 clock-frequency = <100000>;
820 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +0200821 #address-cells = <1>;
822 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200823 };
824
825 i2c3: i2c@01c2b800 {
826 compatible = "allwinner,sun4i-i2c";
827 reg = <0x01c2b800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100828 interrupts = <0 88 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200829 clocks = <&apb1_gates 3>;
830 clock-frequency = <100000>;
831 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +0200832 #address-cells = <1>;
833 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200834 };
835
836 i2c4: i2c@01c2bc00 {
837 compatible = "allwinner,sun4i-i2c";
838 reg = <0x01c2bc00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100839 interrupts = <0 89 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200840 clocks = <&apb1_gates 15>;
841 clock-frequency = <100000>;
842 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +0200843 #address-cells = <1>;
844 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +0200845 };
846
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +0800847 gmac: ethernet@01c50000 {
848 compatible = "allwinner,sun7i-a20-gmac";
849 reg = <0x01c50000 0x10000>;
850 interrupts = <0 85 4>;
851 interrupt-names = "macirq";
852 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
853 clock-names = "stmmaceth", "allwinner_gmac_tx";
854 snps,pbl = <2>;
855 snps,fixed-burst;
856 snps,force_sf_dma_mode;
857 status = "disabled";
858 #address-cells = <1>;
859 #size-cells = <0>;
860 };
861
Maxime Ripard31f8ad32013-11-07 12:01:48 +0100862 hstimer@01c60000 {
863 compatible = "allwinner,sun7i-a20-hstimer";
864 reg = <0x01c60000 0x1000>;
Maxime Ripard2f418982014-02-01 16:46:16 +0100865 interrupts = <0 81 4>,
866 <0 82 4>,
867 <0 83 4>,
868 <0 84 4>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +0100869 clocks = <&ahb_gates 28>;
870 };
871
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200872 gic: interrupt-controller@01c81000 {
873 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
874 reg = <0x01c81000 0x1000>,
875 <0x01c82000 0x1000>,
876 <0x01c84000 0x2000>,
877 <0x01c86000 0x2000>;
878 interrupt-controller;
879 #interrupt-cells = <3>;
880 interrupts = <1 9 0xf04>;
881 };
882 };
883};